Skip to content

Commit 67b03e3

Browse files
authored
Merge pull request #781 from microsoftgraph/beta/pipelinebuild/183670
Generated beta models and request builders
2 parents b6a392b + 94ece41 commit 67b03e3

File tree

105 files changed

+304
-304
lines changed

Some content is hidden

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

105 files changed

+304
-304
lines changed

msgraph_beta/generated/admin/windows/updates/resource_connections/item/resource_connection_item_request_builder.py

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

5252
async def get(self,request_configuration: Optional[RequestConfiguration[ResourceConnectionItemRequestBuilderGetQueryParameters]] = None) -> Optional[ResourceConnection]:
5353
"""
54-
Read the properties and relationships of an operationalInsightsConnection object.
54+
Read the properties and relationships of a resourceConnection object.
5555
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
5656
Returns: Optional[ResourceConnection]
57-
Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-operationalinsightsconnection-get?view=graph-rest-beta
57+
Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-resourceconnection-get?view=graph-rest-beta
5858
"""
5959
request_info = self.to_get_request_information(
6060
request_configuration
@@ -106,7 +106,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo
106106

107107
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[ResourceConnectionItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
108108
"""
109-
Read the properties and relationships of an operationalInsightsConnection object.
109+
Read the properties and relationships of a resourceConnection object.
110110
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
111111
Returns: RequestInformation
112112
"""
@@ -150,7 +150,7 @@ class ResourceConnectionItemRequestBuilderDeleteRequestConfiguration(RequestConf
150150
@dataclass
151151
class ResourceConnectionItemRequestBuilderGetQueryParameters():
152152
"""
153-
Read the properties and relationships of an operationalInsightsConnection object.
153+
Read the properties and relationships of a resourceConnection object.
154154
"""
155155
def get_query_parameter(self,original_name: str) -> str:
156156
"""

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d
3636

3737
async def delete(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None:
3838
"""
39-
Delete an azureADDevice object. When a Microsoft Entra device is deleted, it is unregistered and automatically unenrolled from management for all update categories, as well as removed from every deploymentAudience and updatableAssetGroup.
39+
Delete an updatableAssetGroup object. When an updatableAssetGroup object, its member updatableAsset objects are not deleted.
4040
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
4141
Returns: None
42-
Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-azureaddevice-delete?view=graph-rest-beta
42+
Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-updatableassetgroup-delete?view=graph-rest-beta
4343
"""
4444
request_info = self.to_delete_request_information(
4545
request_configuration
@@ -99,7 +99,7 @@ async def patch(self,body: UpdatableAsset, request_configuration: Optional[Reque
9999

100100
def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
101101
"""
102-
Delete an azureADDevice object. When a Microsoft Entra device is deleted, it is unregistered and automatically unenrolled from management for all update categories, as well as removed from every deploymentAudience and updatableAssetGroup.
102+
Delete an updatableAssetGroup object. When an updatableAssetGroup object, its member updatableAsset objects are not deleted.
103103
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
104104
Returns: RequestInformation
105105
"""

msgraph_beta/generated/administrative_units/item/restore/restore_request_builder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d
3333

3434
async def post(self,body: RestorePostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[DirectoryObject]:
3535
"""
36-
Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- [certificateAuthorityDetail](../resources/certificateauthoritydetail.md- externalUserProfile- group- pendingExternalUserProfile- servicePrincipal- user If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.
36+
Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- externalUserProfile- group- pendingExternalUserProfile- servicePrincipal- user If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.
3737
param body: The request body
3838
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
3939
Returns: Optional[DirectoryObject]
@@ -57,7 +57,7 @@ async def post(self,body: RestorePostRequestBody, request_configuration: Optiona
5757

5858
def to_post_request_information(self,body: RestorePostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
5959
"""
60-
Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- [certificateAuthorityDetail](../resources/certificateauthoritydetail.md- externalUserProfile- group- pendingExternalUserProfile- servicePrincipal- user If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.
60+
Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- externalUserProfile- group- pendingExternalUserProfile- servicePrincipal- user If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.
6161
param body: The request body
6262
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
6363
Returns: RequestInformation

msgraph_beta/generated/applications/item/owners/ref/ref_request_builder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration[RefReque
7373

7474
async def post(self,body: ReferenceCreate, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None:
7575
"""
76-
Add an owner to an application. Currently, only individual users are supported as owners of applications.
76+
Add an owner to an application. Application owners can be individual users, the associated service principal, or another service principal.
7777
param body: The request body
7878
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
7979
Returns: None
@@ -117,7 +117,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi
117117

118118
def to_post_request_information(self,body: ReferenceCreate, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
119119
"""
120-
Add an owner to an application. Currently, only individual users are supported as owners of applications.
120+
Add an owner to an application. Application owners can be individual users, the associated service principal, or another service principal.
121121
param body: The request body
122122
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
123123
Returns: RequestInformation

msgraph_beta/generated/applications/item/restore/restore_request_builder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d
3333

3434
async def post(self,body: RestorePostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[DirectoryObject]:
3535
"""
36-
Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- [certificateAuthorityDetail](../resources/certificateauthoritydetail.md- externalUserProfile- group- pendingExternalUserProfile- servicePrincipal- user If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.
36+
Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- externalUserProfile- group- pendingExternalUserProfile- servicePrincipal- user If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.
3737
param body: The request body
3838
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
3939
Returns: Optional[DirectoryObject]
@@ -57,7 +57,7 @@ async def post(self,body: RestorePostRequestBody, request_configuration: Optiona
5757

5858
def to_post_request_information(self,body: RestorePostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
5959
"""
60-
Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- [certificateAuthorityDetail](../resources/certificateauthoritydetail.md- externalUserProfile- group- pendingExternalUserProfile- servicePrincipal- user If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.
60+
Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- externalUserProfile- group- pendingExternalUserProfile- servicePrincipal- user If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.
6161
param body: The request body
6262
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
6363
Returns: RequestInformation

msgraph_beta/generated/chats/item/messages/messages_request_builder.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration[Messages
7373

7474
async def post(self,body: ChatMessage, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[ChatMessage]:
7575
"""
76-
Send a new chatMessage in the specified channel or a chat.
76+
Send a new chatMessage in the specified chat. This API cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before creating a chat message.
7777
param body: The request body
7878
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
7979
Returns: Optional[ChatMessage]
80-
Find more info here: https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-beta
80+
Find more info here: https://learn.microsoft.com/graph/api/chat-post-messages?view=graph-rest-beta
8181
"""
8282
if body is None:
8383
raise TypeError("body cannot be null.")
@@ -108,7 +108,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi
108108

109109
def to_post_request_information(self,body: ChatMessage, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
110110
"""
111-
Send a new chatMessage in the specified channel or a chat.
111+
Send a new chatMessage in the specified chat. This API cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before creating a chat message.
112112
param body: The request body
113113
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
114114
Returns: RequestInformation

msgraph_beta/generated/contacts/item/restore/restore_request_builder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d
3333

3434
async def post(self,body: RestorePostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[DirectoryObject]:
3535
"""
36-
Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- [certificateAuthorityDetail](../resources/certificateauthoritydetail.md- externalUserProfile- group- pendingExternalUserProfile- servicePrincipal- user If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.
36+
Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- externalUserProfile- group- pendingExternalUserProfile- servicePrincipal- user If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.
3737
param body: The request body
3838
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
3939
Returns: Optional[DirectoryObject]
@@ -57,7 +57,7 @@ async def post(self,body: RestorePostRequestBody, request_configuration: Optiona
5757

5858
def to_post_request_information(self,body: RestorePostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
5959
"""
60-
Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- [certificateAuthorityDetail](../resources/certificateauthoritydetail.md- externalUserProfile- group- pendingExternalUserProfile- servicePrincipal- user If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.
60+
Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- externalUserProfile- group- pendingExternalUserProfile- servicePrincipal- user If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.
6161
param body: The request body
6262
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
6363
Returns: RequestInformation

0 commit comments

Comments
 (0)