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 173698
  • Loading branch information
Microsoft Graph DevX Tooling authored and Microsoft Graph DevX Tooling committed Dec 10, 2024
1 parent 9ed6e96 commit ceb9e99
Show file tree
Hide file tree
Showing 204 changed files with 603 additions and 588 deletions.
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 an operationalInsightsConnection object.
Delete a resourceConnection 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-operationalinsightsconnection-delete?view=graph-rest-beta
Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-resourceconnection-delete?view=graph-rest-beta
"""
request_info = self.to_delete_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 an operationalInsightsConnection object.
Delete a resourceConnection object.
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 @@ -54,10 +54,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query

async def get(self,request_configuration: Optional[RequestConfiguration[UpdatableAssetItemRequestBuilderGetQueryParameters]] = None) -> Optional[UpdatableAsset]:
"""
Read the properties and relationships of an updatableAssetGroup object.
Read the properties and relationships of an updatableAsset object.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[UpdatableAsset]
Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-updatableassetgroup-get?view=graph-rest-beta
Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-updatableasset-get?view=graph-rest-beta
"""
request_info = self.to_get_request_information(
request_configuration
Expand Down Expand Up @@ -109,7 +109,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[UpdatableAssetItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
Read the properties and relationships of an updatableAssetGroup object.
Read the properties and relationships of an updatableAsset object.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
Expand Down Expand Up @@ -189,7 +189,7 @@ class UpdatableAssetItemRequestBuilderDeleteRequestConfiguration(RequestConfigur
@dataclass
class UpdatableAssetItemRequestBuilderGetQueryParameters():
"""
Read the properties and relationships of an updatableAssetGroup object.
Read the properties and relationships of an updatableAsset object.
"""
def get_query_parameter(self,original_name: str) -> str:
"""
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 complianceChange object.
Delete a contentApproval 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-compliancechange-delete?view=graph-rest-beta
Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-contentapproval-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 complianceChange object.
Update the properties of a contentApproval 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-compliancechange-update?view=graph-rest-beta
Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-contentapproval-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 complianceChange object.
Delete a contentApproval 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 complianceChange object.
Update the properties of a contentApproval 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
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, D

async def post(self,body: InvitePostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[InviteParticipantsOperation]:
"""
Invite participants to the active call. For more information about how to handle operations, see commsOperation.
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.
param body: The request body
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[InviteParticipantsOperation]
Find more info here: https://learn.microsoft.com/graph/api/participant-invite?view=graph-rest-beta
Find more info here: https://learn.microsoft.com/graph/api/participant-delete?view=graph-rest-beta
"""
if body is None:
raise TypeError("body cannot be null.")
Expand All @@ -56,7 +56,7 @@ async def post(self,body: InvitePostRequestBody, request_configuration: Optional

def to_post_request_information(self,body: InvitePostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
"""
Invite participants to the active call. For more information about how to handle operations, see commsOperation.
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.
param body: The request body
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 @@ -48,7 +48,7 @@ def by_hardware_oath_token_authentication_method_device_id(self,hardware_oath_to

async def get(self,request_configuration: Optional[RequestConfiguration[HardwareOathDevicesRequestBuilderGetQueryParameters]] = None) -> Optional[HardwareOathTokenAuthenticationMethodDeviceCollectionResponse]:
"""
Get hardwareOathDevices from authenticationMethodDevices
Exposes the hardware OATH method in the directory.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[HardwareOathTokenAuthenticationMethodDeviceCollectionResponse]
"""
Expand Down Expand Up @@ -91,7 +91,7 @@ async def post(self,body: HardwareOathTokenAuthenticationMethodDevice, request_c

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[HardwareOathDevicesRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
Get hardwareOathDevices from authenticationMethodDevices
Exposes the hardware OATH method in the directory.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
Expand Down Expand Up @@ -137,7 +137,7 @@ def count(self) -> CountRequestBuilder:
@dataclass
class HardwareOathDevicesRequestBuilderGetQueryParameters():
"""
Get hardwareOathDevices from authenticationMethodDevices
Exposes the hardware OATH method in the directory.
"""
def get_query_parameter(self,original_name: str) -> str:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, D

async def get(self,request_configuration: Optional[RequestConfiguration[AssignToRequestBuilderGetQueryParameters]] = None) -> Optional[User]:
"""
Get assignTo from authenticationMethodDevices
Assign the hardware OATH token to a user.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[User]
"""
Expand All @@ -53,7 +53,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration[AssignTo

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[AssignToRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
Get assignTo from authenticationMethodDevices
Assign the hardware OATH token to a user.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
Expand Down Expand Up @@ -93,7 +93,7 @@ def service_provisioning_errors(self) -> ServiceProvisioningErrorsRequestBuilder
@dataclass
class AssignToRequestBuilderGetQueryParameters():
"""
Get assignTo from authenticationMethodDevices
Assign the hardware OATH token to a user.
"""
def get_query_parameter(self,original_name: str) -> str:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query

async def get(self,request_configuration: Optional[RequestConfiguration[HardwareOathTokenAuthenticationMethodDeviceItemRequestBuilderGetQueryParameters]] = None) -> Optional[HardwareOathTokenAuthenticationMethodDevice]:
"""
Get hardwareOathDevices from authenticationMethodDevices
Exposes the hardware OATH method in the directory.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[HardwareOathTokenAuthenticationMethodDevice]
"""
Expand Down Expand Up @@ -104,7 +104,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[HardwareOathTokenAuthenticationMethodDeviceItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
Get hardwareOathDevices from authenticationMethodDevices
Exposes the hardware OATH method in the directory.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
Expand Down Expand Up @@ -157,7 +157,7 @@ class HardwareOathTokenAuthenticationMethodDeviceItemRequestBuilderDeleteRequest
@dataclass
class HardwareOathTokenAuthenticationMethodDeviceItemRequestBuilderGetQueryParameters():
"""
Get hardwareOathDevices from authenticationMethodDevices
Exposes the hardware OATH method in the directory.
"""
def get_query_parameter(self,original_name: str) -> str:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, D

async def post(self,body: InvitePostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[InviteParticipantsOperation]:
"""
Invite participants to the active call. For more information about how to handle operations, see commsOperation.
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.
param body: The request body
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[InviteParticipantsOperation]
Find more info here: https://learn.microsoft.com/graph/api/participant-invite?view=graph-rest-beta
Find more info here: https://learn.microsoft.com/graph/api/participant-delete?view=graph-rest-beta
"""
if body is None:
raise TypeError("body cannot be null.")
Expand All @@ -56,7 +56,7 @@ async def post(self,body: InvitePostRequestBody, request_configuration: Optional

def to_post_request_information(self,body: InvitePostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
"""
Invite participants to the active call. For more information about how to handle operations, see commsOperation.
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.
param body: The request body
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 @@ -50,7 +50,7 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query

async def get(self,request_configuration: Optional[RequestConfiguration[DeviceComplianceScheduledActionForRuleItemRequestBuilderGetQueryParameters]] = None) -> Optional[DeviceComplianceScheduledActionForRule]:
"""
The list of scheduled action for this rule
The list of scheduled action per rule for this compliance policy. This is a required property when creating any individual per-platform compliance policies.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[DeviceComplianceScheduledActionForRule]
"""
Expand Down Expand Up @@ -104,7 +104,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[DeviceComplianceScheduledActionForRuleItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
The list of scheduled action for this rule
The list of scheduled action per rule for this compliance policy. This is a required property when creating any individual per-platform compliance policies.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
Expand Down Expand Up @@ -157,7 +157,7 @@ class DeviceComplianceScheduledActionForRuleItemRequestBuilderDeleteRequestConfi
@dataclass
class DeviceComplianceScheduledActionForRuleItemRequestBuilderGetQueryParameters():
"""
The list of scheduled action for this rule
The list of scheduled action per rule for this compliance policy. This is a required property when creating any individual per-platform compliance policies.
"""
def get_query_parameter(self,original_name: str) -> str:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def by_device_compliance_scheduled_action_for_rule_id(self,device_compliance_sch

async def get(self,request_configuration: Optional[RequestConfiguration[ScheduledActionsForRuleRequestBuilderGetQueryParameters]] = None) -> Optional[DeviceComplianceScheduledActionForRuleCollectionResponse]:
"""
The list of scheduled action for this rule
The list of scheduled action per rule for this compliance policy. This is a required property when creating any individual per-platform compliance policies.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[DeviceComplianceScheduledActionForRuleCollectionResponse]
"""
Expand Down Expand Up @@ -91,7 +91,7 @@ async def post(self,body: DeviceComplianceScheduledActionForRule, request_config

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[ScheduledActionsForRuleRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
The list of scheduled action for this rule
The list of scheduled action per rule for this compliance policy. This is a required property when creating any individual per-platform compliance policies.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
Expand Down Expand Up @@ -137,7 +137,7 @@ def count(self) -> CountRequestBuilder:
@dataclass
class ScheduledActionsForRuleRequestBuilderGetQueryParameters():
"""
The list of scheduled action for this rule
The list of scheduled action per rule for this compliance policy. This is a required property when creating any individual per-platform compliance policies.
"""
def get_query_parameter(self,original_name: str) -> str:
"""
Expand Down
Loading

0 comments on commit ceb9e99

Please sign in to comment.