Skip to content

Commit 40e3690

Browse files
authored
Merge pull request #571 from microsoftgraph/beta/pipelinebuild/166343
Generated beta models and request builders
2 parents f6d59de + 1730716 commit 40e3690

File tree

118 files changed

+912
-350
lines changed

Some content is hidden

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

118 files changed

+912
-350
lines changed

msgraph_beta/generated/admin/windows/updates/updatable_assets/item/updatable_asset_item_request_builder.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query
5454

5555
async def get(self,request_configuration: Optional[RequestConfiguration[UpdatableAssetItemRequestBuilderGetQueryParameters]] = None) -> Optional[UpdatableAsset]:
5656
"""
57-
Read the properties of an azureADDevice object.
57+
Read the properties and relationships of an updatableAsset object.
5858
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
5959
Returns: Optional[UpdatableAsset]
60-
Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-azureaddevice-get?view=graph-rest-beta
60+
Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-updatableasset-get?view=graph-rest-beta
6161
"""
6262
request_info = self.to_get_request_information(
6363
request_configuration
@@ -109,7 +109,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo
109109

110110
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[UpdatableAssetItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
111111
"""
112-
Read the properties of an azureADDevice object.
112+
Read the properties and relationships of an updatableAsset object.
113113
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
114114
Returns: RequestInformation
115115
"""
@@ -189,7 +189,7 @@ class UpdatableAssetItemRequestBuilderDeleteRequestConfiguration(RequestConfigur
189189
@dataclass
190190
class UpdatableAssetItemRequestBuilderGetQueryParameters():
191191
"""
192-
Read the properties of an azureADDevice object.
192+
Read the properties and relationships of an updatableAsset object.
193193
"""
194194
def get_query_parameter(self,original_name: str) -> str:
195195
"""

msgraph_beta/generated/admin/windows/updates/update_policies/item/compliance_changes/item/compliance_change_item_request_builder.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, D
3232

3333
async def delete(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None:
3434
"""
35-
Delete a contentApproval object.
35+
Delete a complianceChange object.
3636
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
3737
Returns: None
38-
Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-contentapproval-delete?view=graph-rest-beta
38+
Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-compliancechange-delete?view=graph-rest-beta
3939
"""
4040
request_info = self.to_delete_request_information(
4141
request_configuration
@@ -72,11 +72,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration[Complian
7272

7373
async def patch(self,body: ComplianceChange, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[ComplianceChange]:
7474
"""
75-
Update the properties of a complianceChange object.
75+
Update the properties of a contentApproval object.
7676
param body: The request body
7777
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
7878
Returns: Optional[ComplianceChange]
79-
Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-compliancechange-update?view=graph-rest-beta
79+
Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-contentapproval-update?view=graph-rest-beta
8080
"""
8181
if body is None:
8282
raise TypeError("body cannot be null.")
@@ -96,7 +96,7 @@ async def patch(self,body: ComplianceChange, request_configuration: Optional[Req
9696

9797
def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
9898
"""
99-
Delete a contentApproval object.
99+
Delete a complianceChange object.
100100
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
101101
Returns: RequestInformation
102102
"""
@@ -118,7 +118,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi
118118

119119
def to_patch_request_information(self,body: ComplianceChange, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
120120
"""
121-
Update the properties of a complianceChange object.
121+
Update the properties of a contentApproval object.
122122
param body: The request body
123123
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
124124
Returns: RequestInformation

msgraph_beta/generated/application_templates/item/instantiate/instantiate_post_request_body.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ class InstantiatePostRequestBody(AdditionalDataHolder, BackedModel, Parsable):
1313
additional_data: Dict[str, Any] = field(default_factory=dict)
1414
# The displayName property
1515
display_name: Optional[str] = None
16+
# The serviceManagementReference property
17+
service_management_reference: Optional[str] = None
1618

1719
@staticmethod
1820
def create_from_discriminator_value(parse_node: ParseNode) -> InstantiatePostRequestBody:
@@ -32,6 +34,7 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]:
3234
"""
3335
fields: Dict[str, Callable[[Any], None]] = {
3436
"displayName": lambda n : setattr(self, 'display_name', n.get_str_value()),
37+
"serviceManagementReference": lambda n : setattr(self, 'service_management_reference', n.get_str_value()),
3538
}
3639
return fields
3740

@@ -44,6 +47,7 @@ def serialize(self,writer: SerializationWriter) -> None:
4447
if writer is None:
4548
raise TypeError("writer cannot be null.")
4649
writer.write_str_value("displayName", self.display_name)
50+
writer.write_str_value("serviceManagementReference", self.service_management_reference)
4751
writer.write_additional_data_value(self.additional_data)
4852

4953

msgraph_beta/generated/chats/item/messages/delta/delta_request_builder.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, D
3131

3232
async def get(self,request_configuration: Optional[RequestConfiguration[DeltaRequestBuilderGetQueryParameters]] = None) -> Optional[DeltaGetResponse]:
3333
"""
34-
Retrieve the list of messages (without the replies) in a channel of a team. By using delta query, you can get new or updated messages in a channel. Delta query supports both full synchronization that retrieves all the messages in the specified channel, and incremental synchronization that retrieves those messages that have been added or changed in the channel since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that messages view periodically. To get the replies for a message, use the list message replies or the get message reply operation. A GET request with the delta function returns either: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call for that same calendar view. A @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin the to retrieve additional changes (messages changed or posted after acquiring @odata.deltaLink). For more information, see the delta query documentation.
34+
Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can obtain new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation.
3535
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
3636
Returns: Optional[DeltaGetResponse]
3737
Find more info here: https://learn.microsoft.com/graph/api/chatmessage-delta?view=graph-rest-beta
@@ -52,7 +52,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration[DeltaReq
5252

5353
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[DeltaRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
5454
"""
55-
Retrieve the list of messages (without the replies) in a channel of a team. By using delta query, you can get new or updated messages in a channel. Delta query supports both full synchronization that retrieves all the messages in the specified channel, and incremental synchronization that retrieves those messages that have been added or changed in the channel since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that messages view periodically. To get the replies for a message, use the list message replies or the get message reply operation. A GET request with the delta function returns either: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call for that same calendar view. A @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin the to retrieve additional changes (messages changed or posted after acquiring @odata.deltaLink). For more information, see the delta query documentation.
55+
Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can obtain new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation.
5656
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
5757
Returns: RequestInformation
5858
"""
@@ -74,7 +74,7 @@ def with_url(self,raw_url: str) -> DeltaRequestBuilder:
7474
@dataclass
7575
class DeltaRequestBuilderGetQueryParameters():
7676
"""
77-
Retrieve the list of messages (without the replies) in a channel of a team. By using delta query, you can get new or updated messages in a channel. Delta query supports both full synchronization that retrieves all the messages in the specified channel, and incremental synchronization that retrieves those messages that have been added or changed in the channel since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that messages view periodically. To get the replies for a message, use the list message replies or the get message reply operation. A GET request with the delta function returns either: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call for that same calendar view. A @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin the to retrieve additional changes (messages changed or posted after acquiring @odata.deltaLink). For more information, see the delta query documentation.
77+
Get the list of messages from all chats in which a user is a participant, including one-on-one chats, group chats, and meeting chats. When you use delta query, you can obtain new or updated messages. To get the replies for a message, use the list message replies or the get message reply operations. A GET request with the delta function returns one of the following: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call. An @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin to retrieve more changes (messages changed or posted after you acquire @odata.deltaLink). For more information, see the delta query documentation.
7878
"""
7979
def get_query_parameter(self,original_name: str) -> str:
8080
"""

0 commit comments

Comments
 (0)