Skip to content

Commit 834503b

Browse files
Merge pull request #1163 from microsoftgraph/beta/pipelinebuild/251993
Generated beta models and request builders
2 parents a0fdf4b + 1d36254 commit 834503b

637 files changed

Lines changed: 50617 additions & 214 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎msgraph_beta/generated/admin/exchange/mailboxes/item/folders/folders_request_builder.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def by_mailbox_folder_id(self,mailbox_folder_id: str) -> MailboxFolderItemReques
5050

5151
async def get(self,request_configuration: Optional[RequestConfiguration[FoldersRequestBuilderGetQueryParameters]] = None) -> Optional[MailboxFolderCollectionResponse]:
5252
"""
53-
Get all the mailboxFolder objects in the specified mailbox, including any search folders.
53+
Get all the mailboxFolder objects in the specified mailbox, including any search folders. By default, hidden folders aren't returned. To include them, specify includeHiddenFolders=true.
5454
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
5555
Returns: Optional[MailboxFolderCollectionResponse]
5656
Find more info here: https://learn.microsoft.com/graph/api/mailbox-list-folders?view=graph-rest-beta
@@ -95,7 +95,7 @@ async def post(self,body: MailboxFolder, request_configuration: Optional[Request
9595

9696
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[FoldersRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
9797
"""
98-
Get all the mailboxFolder objects in the specified mailbox, including any search folders.
98+
Get all the mailboxFolder objects in the specified mailbox, including any search folders. By default, hidden folders aren't returned. To include them, specify includeHiddenFolders=true.
9999
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
100100
Returns: RequestInformation
101101
"""
@@ -150,7 +150,7 @@ def delta(self) -> DeltaRequestBuilder:
150150
@dataclass
151151
class FoldersRequestBuilderGetQueryParameters():
152152
"""
153-
Get all the mailboxFolder objects in the specified mailbox, including any search folders.
153+
Get all the mailboxFolder objects in the specified mailbox, including any search folders. By default, hidden folders aren't returned. To include them, specify includeHiddenFolders=true.
154154
"""
155155
def get_query_parameter(self,original_name: str) -> str:
156156
"""

‎msgraph_beta/generated/admin/exchange/mailboxes/item/folders/item/child_folders/child_folders_request_builder.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def by_mailbox_folder_id1(self,mailbox_folder_id1: str) -> MailboxFolderItemRequ
5050

5151
async def get(self,request_configuration: Optional[RequestConfiguration[ChildFoldersRequestBuilderGetQueryParameters]] = None) -> Optional[MailboxFolderCollectionResponse]:
5252
"""
53-
Get the mailboxFolder collection under the specified mailboxFolder in a mailbox.
53+
Get the mailboxFolder collection under the specified mailboxFolder in a mailbox. By default, hidden child folders aren't returned. To include them, specify includeHiddenFolders=true.
5454
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
5555
Returns: Optional[MailboxFolderCollectionResponse]
5656
Find more info here: https://learn.microsoft.com/graph/api/mailboxfolder-list-childfolders?view=graph-rest-beta
@@ -94,7 +94,7 @@ async def post(self,body: MailboxFolder, request_configuration: Optional[Request
9494

9595
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[ChildFoldersRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
9696
"""
97-
Get the mailboxFolder collection under the specified mailboxFolder in a mailbox.
97+
Get the mailboxFolder collection under the specified mailboxFolder in a mailbox. By default, hidden child folders aren't returned. To include them, specify includeHiddenFolders=true.
9898
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
9999
Returns: RequestInformation
100100
"""
@@ -149,7 +149,7 @@ def delta(self) -> DeltaRequestBuilder:
149149
@dataclass
150150
class ChildFoldersRequestBuilderGetQueryParameters():
151151
"""
152-
Get the mailboxFolder collection under the specified mailboxFolder in a mailbox.
152+
Get the mailboxFolder collection under the specified mailboxFolder in a mailbox. By default, hidden child folders aren't returned. To include them, specify includeHiddenFolders=true.
153153
"""
154154
def get_query_parameter(self,original_name: str) -> str:
155155
"""

‎msgraph_beta/generated/admin/report_settings/share_point/api_usage_report_metrics/api_usage_report_metrics_request_builder.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def by_api_usage_report_enablement_status_metric(self,api_usage_report_enablemen
4949

5050
async def get(self,request_configuration: Optional[RequestConfiguration[ApiUsageReportMetricsRequestBuilderGetQueryParameters]] = None) -> Optional[ApiUsageReportEnablementStatusCollectionResponse]:
5151
"""
52-
Get the list of SharePoint API usage report metrics and their enablement status for the tenant. The supported metrics are egressReport and throttlingReport.
52+
Get the list of SharePoint API usage report metrics and their enablement status for the tenant. The supported metrics are egressReport, sharePointServicePrioritizationReport, and throttlingReport.
5353
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
5454
Returns: Optional[ApiUsageReportEnablementStatusCollectionResponse]
5555
Find more info here: https://learn.microsoft.com/graph/api/sharepointreportsettings-list-apiusagereportmetrics?view=graph-rest-beta
@@ -93,7 +93,7 @@ async def post(self,body: ApiUsageReportEnablementStatus, request_configuration:
9393

9494
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[ApiUsageReportMetricsRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
9595
"""
96-
Get the list of SharePoint API usage report metrics and their enablement status for the tenant. The supported metrics are egressReport and throttlingReport.
96+
Get the list of SharePoint API usage report metrics and their enablement status for the tenant. The supported metrics are egressReport, sharePointServicePrioritizationReport, and throttlingReport.
9797
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
9898
Returns: RequestInformation
9999
"""
@@ -139,7 +139,7 @@ def count(self) -> CountRequestBuilder:
139139
@dataclass
140140
class ApiUsageReportMetricsRequestBuilderGetQueryParameters():
141141
"""
142-
Get the list of SharePoint API usage report metrics and their enablement status for the tenant. The supported metrics are egressReport and throttlingReport.
142+
Get the list of SharePoint API usage report metrics and their enablement status for the tenant. The supported metrics are egressReport, sharePointServicePrioritizationReport, and throttlingReport.
143143
"""
144144
def get_query_parameter(self,original_name: str) -> str:
145145
"""

‎msgraph_beta/generated/chats/item/messages/item/replies/item/set_reaction/set_reaction_post_request_body.py‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ class SetReactionPostRequestBody(AdditionalDataHolder, BackedModel, Parsable):
1212

1313
# Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
1414
additional_data: dict[str, Any] = field(default_factory=dict)
15+
# The displayName property
16+
display_name: Optional[str] = None
17+
# The reactionId property
18+
reaction_id: Optional[str] = None
1519
# The reactionType property
1620
reaction_type: Optional[str] = None
1721

@@ -32,6 +36,8 @@ def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
3236
Returns: dict[str, Callable[[ParseNode], None]]
3337
"""
3438
fields: dict[str, Callable[[Any], None]] = {
39+
"displayName": lambda n : setattr(self, 'display_name', n.get_str_value()),
40+
"reactionId": lambda n : setattr(self, 'reaction_id', n.get_str_value()),
3541
"reactionType": lambda n : setattr(self, 'reaction_type', n.get_str_value()),
3642
}
3743
return fields
@@ -44,6 +50,8 @@ def serialize(self,writer: SerializationWriter) -> None:
4450
"""
4551
if writer is None:
4652
raise TypeError("writer cannot be null.")
53+
writer.write_str_value("displayName", self.display_name)
54+
writer.write_str_value("reactionId", self.reaction_id)
4755
writer.write_str_value("reactionType", self.reaction_type)
4856
writer.write_additional_data_value(self.additional_data)
4957

‎msgraph_beta/generated/chats/item/messages/item/replies/item/unset_reaction/unset_reaction_post_request_body.py‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ class UnsetReactionPostRequestBody(AdditionalDataHolder, BackedModel, Parsable):
1212

1313
# Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
1414
additional_data: dict[str, Any] = field(default_factory=dict)
15+
# The displayName property
16+
display_name: Optional[str] = None
17+
# The reactionId property
18+
reaction_id: Optional[str] = None
1519
# The reactionType property
1620
reaction_type: Optional[str] = None
1721

@@ -32,6 +36,8 @@ def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
3236
Returns: dict[str, Callable[[ParseNode], None]]
3337
"""
3438
fields: dict[str, Callable[[Any], None]] = {
39+
"displayName": lambda n : setattr(self, 'display_name', n.get_str_value()),
40+
"reactionId": lambda n : setattr(self, 'reaction_id', n.get_str_value()),
3541
"reactionType": lambda n : setattr(self, 'reaction_type', n.get_str_value()),
3642
}
3743
return fields
@@ -44,6 +50,8 @@ def serialize(self,writer: SerializationWriter) -> None:
4450
"""
4551
if writer is None:
4652
raise TypeError("writer cannot be null.")
53+
writer.write_str_value("displayName", self.display_name)
54+
writer.write_str_value("reactionId", self.reaction_id)
4755
writer.write_str_value("reactionType", self.reaction_type)
4856
writer.write_additional_data_value(self.additional_data)
4957

‎msgraph_beta/generated/chats/item/messages/item/set_reaction/set_reaction_post_request_body.py‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ class SetReactionPostRequestBody(AdditionalDataHolder, BackedModel, Parsable):
1212

1313
# Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
1414
additional_data: dict[str, Any] = field(default_factory=dict)
15+
# The displayName property
16+
display_name: Optional[str] = None
17+
# The reactionId property
18+
reaction_id: Optional[str] = None
1519
# The reactionType property
1620
reaction_type: Optional[str] = None
1721

@@ -32,6 +36,8 @@ def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
3236
Returns: dict[str, Callable[[ParseNode], None]]
3337
"""
3438
fields: dict[str, Callable[[Any], None]] = {
39+
"displayName": lambda n : setattr(self, 'display_name', n.get_str_value()),
40+
"reactionId": lambda n : setattr(self, 'reaction_id', n.get_str_value()),
3541
"reactionType": lambda n : setattr(self, 'reaction_type', n.get_str_value()),
3642
}
3743
return fields
@@ -44,6 +50,8 @@ def serialize(self,writer: SerializationWriter) -> None:
4450
"""
4551
if writer is None:
4652
raise TypeError("writer cannot be null.")
53+
writer.write_str_value("displayName", self.display_name)
54+
writer.write_str_value("reactionId", self.reaction_id)
4755
writer.write_str_value("reactionType", self.reaction_type)
4856
writer.write_additional_data_value(self.additional_data)
4957

‎msgraph_beta/generated/chats/item/messages/item/unset_reaction/unset_reaction_post_request_body.py‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ class UnsetReactionPostRequestBody(AdditionalDataHolder, BackedModel, Parsable):
1212

1313
# Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
1414
additional_data: dict[str, Any] = field(default_factory=dict)
15+
# The displayName property
16+
display_name: Optional[str] = None
17+
# The reactionId property
18+
reaction_id: Optional[str] = None
1519
# The reactionType property
1620
reaction_type: Optional[str] = None
1721

@@ -32,6 +36,8 @@ def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
3236
Returns: dict[str, Callable[[ParseNode], None]]
3337
"""
3438
fields: dict[str, Callable[[Any], None]] = {
39+
"displayName": lambda n : setattr(self, 'display_name', n.get_str_value()),
40+
"reactionId": lambda n : setattr(self, 'reaction_id', n.get_str_value()),
3541
"reactionType": lambda n : setattr(self, 'reaction_type', n.get_str_value()),
3642
}
3743
return fields
@@ -44,6 +50,8 @@ def serialize(self,writer: SerializationWriter) -> None:
4450
"""
4551
if writer is None:
4652
raise TypeError("writer cannot be null.")
53+
writer.write_str_value("displayName", self.display_name)
54+
writer.write_str_value("reactionId", self.reaction_id)
4755
writer.write_str_value("reactionType", self.reaction_type)
4856
writer.write_additional_data_value(self.additional_data)
4957

‎msgraph_beta/generated/chats/item/targeted_messages/item/replies/item/set_reaction/set_reaction_post_request_body.py‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ class SetReactionPostRequestBody(AdditionalDataHolder, BackedModel, Parsable):
1212

1313
# Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
1414
additional_data: dict[str, Any] = field(default_factory=dict)
15+
# The displayName property
16+
display_name: Optional[str] = None
17+
# The reactionId property
18+
reaction_id: Optional[str] = None
1519
# The reactionType property
1620
reaction_type: Optional[str] = None
1721

@@ -32,6 +36,8 @@ def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
3236
Returns: dict[str, Callable[[ParseNode], None]]
3337
"""
3438
fields: dict[str, Callable[[Any], None]] = {
39+
"displayName": lambda n : setattr(self, 'display_name', n.get_str_value()),
40+
"reactionId": lambda n : setattr(self, 'reaction_id', n.get_str_value()),
3541
"reactionType": lambda n : setattr(self, 'reaction_type', n.get_str_value()),
3642
}
3743
return fields
@@ -44,6 +50,8 @@ def serialize(self,writer: SerializationWriter) -> None:
4450
"""
4551
if writer is None:
4652
raise TypeError("writer cannot be null.")
53+
writer.write_str_value("displayName", self.display_name)
54+
writer.write_str_value("reactionId", self.reaction_id)
4755
writer.write_str_value("reactionType", self.reaction_type)
4856
writer.write_additional_data_value(self.additional_data)
4957

‎msgraph_beta/generated/chats/item/targeted_messages/item/replies/item/unset_reaction/unset_reaction_post_request_body.py‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ class UnsetReactionPostRequestBody(AdditionalDataHolder, BackedModel, Parsable):
1212

1313
# Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
1414
additional_data: dict[str, Any] = field(default_factory=dict)
15+
# The displayName property
16+
display_name: Optional[str] = None
17+
# The reactionId property
18+
reaction_id: Optional[str] = None
1519
# The reactionType property
1620
reaction_type: Optional[str] = None
1721

@@ -32,6 +36,8 @@ def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
3236
Returns: dict[str, Callable[[ParseNode], None]]
3337
"""
3438
fields: dict[str, Callable[[Any], None]] = {
39+
"displayName": lambda n : setattr(self, 'display_name', n.get_str_value()),
40+
"reactionId": lambda n : setattr(self, 'reaction_id', n.get_str_value()),
3541
"reactionType": lambda n : setattr(self, 'reaction_type', n.get_str_value()),
3642
}
3743
return fields
@@ -44,6 +50,8 @@ def serialize(self,writer: SerializationWriter) -> None:
4450
"""
4551
if writer is None:
4652
raise TypeError("writer cannot be null.")
53+
writer.write_str_value("displayName", self.display_name)
54+
writer.write_str_value("reactionId", self.reaction_id)
4755
writer.write_str_value("reactionType", self.reaction_type)
4856
writer.write_additional_data_value(self.additional_data)
4957

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
from __future__ import annotations
2+
from collections.abc import Callable
3+
from dataclasses import dataclass, field
4+
from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter
5+
from kiota_abstractions.store import BackedModel, BackingStore, BackingStoreFactorySingleton
6+
from typing import Any, Optional, TYPE_CHECKING, Union
7+
8+
@dataclass
9+
class BulkCreateUserProfileSnapshotPostRequestBody(AdditionalDataHolder, BackedModel, Parsable):
10+
# Stores model information.
11+
backing_store: BackingStore = field(default_factory=BackingStoreFactorySingleton(backing_store_factory=None).backing_store_factory.create_backing_store, repr=False)
12+
13+
# Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
14+
additional_data: dict[str, Any] = field(default_factory=dict)
15+
# The cloudProfileIds property
16+
cloud_profile_ids: Optional[list[str]] = None
17+
18+
@staticmethod
19+
def create_from_discriminator_value(parse_node: ParseNode) -> BulkCreateUserProfileSnapshotPostRequestBody:
20+
"""
21+
Creates a new instance of the appropriate class based on discriminator value
22+
param parse_node: The parse node to use to read the discriminator value and create the object
23+
Returns: BulkCreateUserProfileSnapshotPostRequestBody
24+
"""
25+
if parse_node is None:
26+
raise TypeError("parse_node cannot be null.")
27+
return BulkCreateUserProfileSnapshotPostRequestBody()
28+
29+
def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
30+
"""
31+
The deserialization information for the current model
32+
Returns: dict[str, Callable[[ParseNode], None]]
33+
"""
34+
fields: dict[str, Callable[[Any], None]] = {
35+
"cloudProfileIds": lambda n : setattr(self, 'cloud_profile_ids', n.get_collection_of_primitive_values(str)),
36+
}
37+
return fields
38+
39+
def serialize(self,writer: SerializationWriter) -> None:
40+
"""
41+
Serializes information the current object
42+
param writer: Serialization writer to use to serialize this model
43+
Returns: None
44+
"""
45+
if writer is None:
46+
raise TypeError("writer cannot be null.")
47+
writer.write_collection_of_primitive_values("cloudProfileIds", self.cloud_profile_ids)
48+
writer.write_additional_data_value(self.additional_data)
49+
50+

0 commit comments

Comments
 (0)