Skip to content

Commit fcd8e74

Browse files
authored
Merge pull request #562 from microsoftgraph/beta/pipelinebuild/165500
Generated beta models and request builders
2 parents d19a0c0 + d085a8f commit fcd8e74

File tree

265 files changed

+7262
-1274
lines changed

Some content is hidden

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

265 files changed

+7262
-1274
lines changed

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

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

3232
async def delete(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None:
3333
"""
34-
Delete a resourceConnection object.
34+
Delete an operationalInsightsConnection object.
3535
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
3636
Returns: None
37-
Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-resourceconnection-delete?view=graph-rest-beta
37+
Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-operationalinsightsconnection-delete?view=graph-rest-beta
3838
"""
3939
request_info = self.to_delete_request_information(
4040
request_configuration
@@ -94,7 +94,7 @@ async def patch(self,body: ResourceConnection, request_configuration: Optional[R
9494

9595
def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
9696
"""
97-
Delete a resourceConnection object.
97+
Delete an operationalInsightsConnection object.
9898
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
9999
Returns: RequestInformation
100100
"""

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

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

3636
async def delete(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None:
3737
"""
38-
Delete an updatableAssetGroup object. When an updatableAssetGroup object, its member updatableAsset objects are not deleted.
38+
Delete an updatableAsset object.
3939
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
4040
Returns: None
41-
Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-updatableassetgroup-delete?view=graph-rest-beta
41+
Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-updatableasset-delete?view=graph-rest-beta
4242
"""
4343
request_info = self.to_delete_request_information(
4444
request_configuration
@@ -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 and relationships of an updatableAsset object.
57+
Read the properties of an azureADDevice 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-updatableasset-get?view=graph-rest-beta
60+
Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-azureaddevice-get?view=graph-rest-beta
6161
"""
6262
request_info = self.to_get_request_information(
6363
request_configuration
@@ -98,7 +98,7 @@ async def patch(self,body: UpdatableAsset, request_configuration: Optional[Reque
9898

9999
def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
100100
"""
101-
Delete an updatableAssetGroup object. When an updatableAssetGroup object, its member updatableAsset objects are not deleted.
101+
Delete an updatableAsset object.
102102
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
103103
Returns: RequestInformation
104104
"""
@@ -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 and relationships of an updatableAsset object.
112+
Read the properties of an azureADDevice 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 and relationships of an updatableAsset object.
192+
Read the properties of an azureADDevice 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: 10 additions & 10 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 complianceChange object.
35+
Delete a contentApproval 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-compliancechange-delete?view=graph-rest-beta
38+
Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-contentapproval-delete?view=graph-rest-beta
3939
"""
4040
request_info = self.to_delete_request_information(
4141
request_configuration
@@ -51,10 +51,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query
5151

5252
async def get(self,request_configuration: Optional[RequestConfiguration[ComplianceChangeItemRequestBuilderGetQueryParameters]] = None) -> Optional[ComplianceChange]:
5353
"""
54-
Read the properties and relationships of a complianceChange object.
54+
Read the properties and relationships of a contentApproval object.
5555
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
5656
Returns: Optional[ComplianceChange]
57-
Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-compliancechange-get?view=graph-rest-beta
57+
Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-contentapproval-get?view=graph-rest-beta
5858
"""
5959
request_info = self.to_get_request_information(
6060
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 contentApproval object.
75+
Update the properties of a complianceChange 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-contentapproval-update?view=graph-rest-beta
79+
Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-compliancechange-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 complianceChange object.
99+
Delete a contentApproval object.
100100
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
101101
Returns: RequestInformation
102102
"""
@@ -107,7 +107,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo
107107

108108
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[ComplianceChangeItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
109109
"""
110-
Read the properties and relationships of a complianceChange object.
110+
Read the properties and relationships of a contentApproval object.
111111
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
112112
Returns: RequestInformation
113113
"""
@@ -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 contentApproval object.
121+
Update the properties of a complianceChange 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
@@ -160,7 +160,7 @@ class ComplianceChangeItemRequestBuilderDeleteRequestConfiguration(RequestConfig
160160
@dataclass
161161
class ComplianceChangeItemRequestBuilderGetQueryParameters():
162162
"""
163-
Read the properties and relationships of a complianceChange object.
163+
Read the properties and relationships of a contentApproval object.
164164
"""
165165
def get_query_parameter(self,original_name: str) -> str:
166166
"""

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

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
if TYPE_CHECKING:
1616
from ....models.directory_object import DirectoryObject
1717
from ....models.o_data_errors.o_data_error import ODataError
18-
from .restore_post_request_body import RestorePostRequestBody
1918

2019
class RestoreRequestBuilder(BaseRequestBuilder):
2120
"""
@@ -30,18 +29,15 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, D
3029
"""
3130
super().__init__(request_adapter, "{+baseurl}/administrativeUnits/{administrativeUnit%2Did}/restore", path_parameters)
3231

33-
async def post(self,body: RestorePostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[DirectoryObject]:
32+
async def post(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[DirectoryObject]:
3433
"""
3534
Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. 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-
param body: The request body
3735
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
3836
Returns: Optional[DirectoryObject]
3937
Find more info here: https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-beta
4038
"""
41-
if body is None:
42-
raise TypeError("body cannot be null.")
4339
request_info = self.to_post_request_information(
44-
body, request_configuration
40+
request_configuration
4541
)
4642
from ....models.o_data_errors.o_data_error import ODataError
4743

@@ -54,19 +50,15 @@ async def post(self,body: RestorePostRequestBody, request_configuration: Optiona
5450

5551
return await self.request_adapter.send_async(request_info, DirectoryObject, error_mapping)
5652

57-
def to_post_request_information(self,body: RestorePostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
53+
def to_post_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
5854
"""
5955
Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. 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-
param body: The request body
6156
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
6257
Returns: RequestInformation
6358
"""
64-
if body is None:
65-
raise TypeError("body cannot be null.")
6659
request_info = RequestInformation(Method.POST, self.url_template, self.path_parameters)
6760
request_info.configure(request_configuration)
6861
request_info.headers.try_add("Accept", "application/json")
69-
request_info.set_content_from_parsable(self.request_adapter, "application/json", body)
7062
return request_info
7163

7264
def with_url(self,raw_url: str) -> RestoreRequestBuilder:

msgraph_beta/generated/app/calls/item/participants/invite/invite_request_builder.py

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

3333
async def post(self,body: InvitePostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[InviteParticipantsOperation]:
3434
"""
35-
Invite participants to the active call. For more information about how to handle operations, see commsOperation.
35+
Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled.
3636
param body: The request body
3737
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
3838
Returns: Optional[InviteParticipantsOperation]
39-
Find more info here: https://learn.microsoft.com/graph/api/participant-invite?view=graph-rest-beta
39+
Find more info here: https://learn.microsoft.com/graph/api/participant-delete?view=graph-rest-beta
4040
"""
4141
if body is None:
4242
raise TypeError("body cannot be null.")
@@ -56,7 +56,7 @@ async def post(self,body: InvitePostRequestBody, request_configuration: Optional
5656

5757
def to_post_request_information(self,body: InvitePostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
5858
"""
59-
Invite participants to the active call. For more information about how to handle operations, see commsOperation.
59+
Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled.
6060
param body: The request body
6161
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
6262
Returns: RequestInformation

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

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
if TYPE_CHECKING:
1616
from ....models.directory_object import DirectoryObject
1717
from ....models.o_data_errors.o_data_error import ODataError
18-
from .restore_post_request_body import RestorePostRequestBody
1918

2019
class RestoreRequestBuilder(BaseRequestBuilder):
2120
"""
@@ -30,18 +29,15 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, D
3029
"""
3130
super().__init__(request_adapter, "{+baseurl}/applications/{application%2Did}/restore", path_parameters)
3231

33-
async def post(self,body: RestorePostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[DirectoryObject]:
32+
async def post(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[DirectoryObject]:
3433
"""
3534
Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. 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-
param body: The request body
3735
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
3836
Returns: Optional[DirectoryObject]
3937
Find more info here: https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-beta
4038
"""
41-
if body is None:
42-
raise TypeError("body cannot be null.")
4339
request_info = self.to_post_request_information(
44-
body, request_configuration
40+
request_configuration
4541
)
4642
from ....models.o_data_errors.o_data_error import ODataError
4743

@@ -54,19 +50,15 @@ async def post(self,body: RestorePostRequestBody, request_configuration: Optiona
5450

5551
return await self.request_adapter.send_async(request_info, DirectoryObject, error_mapping)
5652

57-
def to_post_request_information(self,body: RestorePostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
53+
def to_post_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
5854
"""
5955
Restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. 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-
param body: The request body
6156
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
6257
Returns: RequestInformation
6358
"""
64-
if body is None:
65-
raise TypeError("body cannot be null.")
6659
request_info = RequestInformation(Method.POST, self.url_template, self.path_parameters)
6760
request_info.configure(request_configuration)
6861
request_info.headers.try_add("Accept", "application/json")
69-
request_info.set_content_from_parsable(self.request_adapter, "application/json", body)
7062
return request_info
7163

7264
def with_url(self,raw_url: str) -> RestoreRequestBuilder:

0 commit comments

Comments
 (0)