Skip to content

Commit

Permalink
feat(generation): update request builders and models
Browse files Browse the repository at this point in the history
Update generated files with build 172840
  • Loading branch information
Microsoft Graph DevX Tooling authored and baywet committed Dec 9, 2024
1 parent 70f8747 commit 240fda7
Show file tree
Hide file tree
Showing 304 changed files with 17,280 additions and 433 deletions.
7 changes: 0 additions & 7 deletions msgraph_beta/generated/admin/entra/entra_request_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: None
"""
warn(" as of 2023-11/PrivatePreview:BulkJobs", DeprecationWarning)
request_info = self.to_delete_request_information(
request_configuration
)
Expand All @@ -55,7 +54,6 @@ async def get(self,request_configuration: Optional[RequestConfiguration[EntraReq
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[Entra]
"""
warn(" as of 2023-11/PrivatePreview:BulkJobs", DeprecationWarning)
request_info = self.to_get_request_information(
request_configuration
)
Expand All @@ -77,7 +75,6 @@ async def patch(self,body: Entra, request_configuration: Optional[RequestConfigu
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[Entra]
"""
warn(" as of 2023-11/PrivatePreview:BulkJobs", DeprecationWarning)
if body is None:
raise TypeError("body cannot be null.")
request_info = self.to_patch_request_information(
Expand All @@ -100,7 +97,6 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
warn(" as of 2023-11/PrivatePreview:BulkJobs", DeprecationWarning)
request_info = RequestInformation(Method.DELETE, self.url_template, self.path_parameters)
request_info.configure(request_configuration)
request_info.headers.try_add("Accept", "application/json")
Expand All @@ -112,7 +108,6 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
warn(" as of 2023-11/PrivatePreview:BulkJobs", DeprecationWarning)
request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters)
request_info.configure(request_configuration)
request_info.headers.try_add("Accept", "application/json")
Expand All @@ -125,7 +120,6 @@ def to_patch_request_information(self,body: Entra, request_configuration: Option
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
warn(" as of 2023-11/PrivatePreview:BulkJobs", DeprecationWarning)
if body is None:
raise TypeError("body cannot be null.")
request_info = RequestInformation(Method.PATCH, self.url_template, self.path_parameters)
Expand All @@ -140,7 +134,6 @@ def with_url(self,raw_url: str) -> EntraRequestBuilder:
param raw_url: The raw URL to use for the request builder.
Returns: EntraRequestBuilder
"""
warn(" as of 2023-11/PrivatePreview:BulkJobs", DeprecationWarning)
if raw_url is None:
raise TypeError("raw_url cannot be null.")
return EntraRequestBuilder(self.request_adapter, raw_url)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: None
"""
warn(" as of 2023-11/PrivatePreview:BulkJobs", DeprecationWarning)
request_info = self.to_delete_request_information(
request_configuration
)
Expand All @@ -55,7 +54,6 @@ async def get(self,request_configuration: Optional[RequestConfiguration[UxSettin
Returns: Optional[UxSetting]
Find more info here: https://learn.microsoft.com/graph/api/uxsetting-get?view=graph-rest-beta
"""
warn(" as of 2023-11/PrivatePreview:BulkJobs", DeprecationWarning)
request_info = self.to_get_request_information(
request_configuration
)
Expand All @@ -78,7 +76,6 @@ async def patch(self,body: UxSetting, request_configuration: Optional[RequestCon
Returns: Optional[UxSetting]
Find more info here: https://learn.microsoft.com/graph/api/uxsetting-update?view=graph-rest-beta
"""
warn(" as of 2023-11/PrivatePreview:BulkJobs", DeprecationWarning)
if body is None:
raise TypeError("body cannot be null.")
request_info = self.to_patch_request_information(
Expand All @@ -101,7 +98,6 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
warn(" as of 2023-11/PrivatePreview:BulkJobs", DeprecationWarning)
request_info = RequestInformation(Method.DELETE, self.url_template, self.path_parameters)
request_info.configure(request_configuration)
request_info.headers.try_add("Accept", "application/json")
Expand All @@ -113,7 +109,6 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
warn(" as of 2023-11/PrivatePreview:BulkJobs", DeprecationWarning)
request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters)
request_info.configure(request_configuration)
request_info.headers.try_add("Accept", "application/json")
Expand All @@ -126,7 +121,6 @@ def to_patch_request_information(self,body: UxSetting, request_configuration: Op
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
warn(" as of 2023-11/PrivatePreview:BulkJobs", DeprecationWarning)
if body is None:
raise TypeError("body cannot be null.")
request_info = RequestInformation(Method.PATCH, self.url_template, self.path_parameters)
Expand All @@ -141,7 +135,6 @@ def with_url(self,raw_url: str) -> UxSettingRequestBuilder:
param raw_url: The raw URL to use for the request builder.
Returns: UxSettingRequestBuilder
"""
warn(" as of 2023-11/PrivatePreview:BulkJobs", DeprecationWarning)
if raw_url is None:
raise TypeError("raw_url cannot be null.")
return UxSettingRequestBuilder(self.request_adapter, raw_url)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, D

async def delete(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None:
"""
Delete a resourceConnection object.
Delete an operationalInsightsConnection object.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: None
Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-resourceconnection-delete?view=graph-rest-beta
Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-operationalinsightsconnection-delete?view=graph-rest-beta
"""
request_info = self.to_delete_request_information(
request_configuration
Expand All @@ -50,10 +50,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query

async def get(self,request_configuration: Optional[RequestConfiguration[ResourceConnectionItemRequestBuilderGetQueryParameters]] = None) -> Optional[ResourceConnection]:
"""
Read the properties and relationships of an operationalInsightsConnection object.
Read the properties and relationships of a resourceConnection object.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[ResourceConnection]
Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-operationalinsightsconnection-get?view=graph-rest-beta
Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-resourceconnection-get?view=graph-rest-beta
"""
request_info = self.to_get_request_information(
request_configuration
Expand Down Expand Up @@ -94,7 +94,7 @@ async def patch(self,body: ResourceConnection, request_configuration: Optional[R

def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
"""
Delete a resourceConnection object.
Delete an operationalInsightsConnection object.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
Expand All @@ -105,7 +105,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[ResourceConnectionItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
Read the properties and relationships of an operationalInsightsConnection object.
Read the properties and relationships of a resourceConnection object.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
Expand Down Expand Up @@ -149,7 +149,7 @@ class ResourceConnectionItemRequestBuilderDeleteRequestConfiguration(RequestConf
@dataclass
class ResourceConnectionItemRequestBuilderGetQueryParameters():
"""
Read the properties and relationships of an operationalInsightsConnection object.
Read the properties and relationships of a resourceConnection object.
"""
def get_query_parameter(self,original_name: str) -> str:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, D

async def delete(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None:
"""
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.
Delete an updatableAssetGroup object. When an updatableAssetGroup object, its member updatableAsset objects are not deleted.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: None
Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-azureaddevice-delete?view=graph-rest-beta
Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-updatableassetgroup-delete?view=graph-rest-beta
"""
request_info = self.to_delete_request_information(
request_configuration
Expand Down Expand Up @@ -98,7 +98,7 @@ async def patch(self,body: UpdatableAsset, request_configuration: Optional[Reque

def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
"""
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.
Delete an updatableAssetGroup object. When an updatableAssetGroup object, its member updatableAsset objects are not deleted.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, D

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

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

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

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

0 comments on commit 240fda7

Please sign in to comment.