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 174332
  • Loading branch information
Microsoft Graph DevX Tooling authored and Microsoft Graph DevX Tooling committed Dec 17, 2024
1 parent 877142c commit 6b2e0c1
Show file tree
Hide file tree
Showing 293 changed files with 16,977 additions and 392 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 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 a resourceConnection object.
Read the properties and relationships of an operationalInsightsConnection 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-resourceconnection-get?view=graph-rest-beta
Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-operationalinsightsconnection-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 a resourceConnection object.
Read the properties and relationships of an operationalInsightsConnection 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 a resourceConnection object.
Read the properties and relationships of an operationalInsightsConnection 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 updatableAssetGroup object. When an updatableAssetGroup object, its member updatableAsset objects are not deleted.
Delete an updatableAsset 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-updatableassetgroup-delete?view=graph-rest-beta
Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-updatableasset-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 updatableAssetGroup object. When an updatableAssetGroup object, its member updatableAsset objects are not deleted.
Delete an updatableAsset 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 @@ -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]:
"""
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.
Invite participants to the active call. For more information about how to handle operations, see commsOperation.
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-delete?view=graph-rest-beta
Find more info here: https://learn.microsoft.com/graph/api/participant-invite?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:
"""
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.
Invite participants to the active call. For more information about how to handle operations, see commsOperation.
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_teams_app_id(self,teams_app_id: str) -> TeamsAppItemRequestBuilder:

async def get(self,request_configuration: Optional[RequestConfiguration[TeamsAppsRequestBuilderGetQueryParameters]] = None) -> Optional[TeamsAppCollectionResponse]:
"""
List apps from the Microsoft Teams app catalog. This includes apps from the Microsoft Teams store and apps from your organization's app catalog (the tenant app catalog). To get apps from your organization's app catalog only, specify organization as the distributionMethod in the request.
List apps from the Microsoft Teams app catalog, including apps from the Microsoft Teams store and apps from your organization's app catalog (the tenant app catalog). To get apps from your organization's app catalog only, specify organization as the distributionMethod in the request.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[TeamsAppCollectionResponse]
Find more info here: https://learn.microsoft.com/graph/api/appcatalogs-list-teamsapps?view=graph-rest-beta
Expand Down Expand Up @@ -93,7 +93,7 @@ async def post(self,body: TeamsApp, request_configuration: Optional[RequestConfi

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[TeamsAppsRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
List apps from the Microsoft Teams app catalog. This includes apps from the Microsoft Teams store and apps from your organization's app catalog (the tenant app catalog). To get apps from your organization's app catalog only, specify organization as the distributionMethod in the request.
List apps from the Microsoft Teams app catalog, including apps from the Microsoft Teams store and apps from your organization's app catalog (the tenant app catalog). To get apps from your organization's app catalog only, specify organization as the distributionMethod in the request.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
Expand Down Expand Up @@ -139,7 +139,7 @@ def count(self) -> CountRequestBuilder:
@dataclass
class TeamsAppsRequestBuilderGetQueryParameters():
"""
List apps from the Microsoft Teams app catalog. This includes apps from the Microsoft Teams store and apps from your organization's app catalog (the tenant app catalog). To get apps from your organization's app catalog only, specify organization as the distributionMethod in the request.
List apps from the Microsoft Teams app catalog, including apps from the Microsoft Teams store and apps from your organization's app catalog (the tenant app catalog). To get apps from your organization's app catalog only, specify organization as the distributionMethod in the request.
"""
def get_query_parameter(self,original_name: str) -> str:
"""
Expand Down
20 changes: 20 additions & 0 deletions msgraph_beta/generated/base_graph_service_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
from .booking_businesses.booking_businesses_request_builder import BookingBusinessesRequestBuilder
from .booking_currencies.booking_currencies_request_builder import BookingCurrenciesRequestBuilder
from .business_flow_templates.business_flow_templates_request_builder import BusinessFlowTemplatesRequestBuilder
from .certificate_authorities.certificate_authorities_request_builder import CertificateAuthoritiesRequestBuilder
from .certificate_based_auth_configuration.certificate_based_auth_configuration_request_builder import CertificateBasedAuthConfigurationRequestBuilder
from .chats.chats_request_builder import ChatsRequestBuilder
from .commands.commands_request_builder import CommandsRequestBuilder
Expand Down Expand Up @@ -132,6 +133,7 @@
from .teams_templates.teams_templates_request_builder import TeamsTemplatesRequestBuilder
from .teamwork.teamwork_request_builder import TeamworkRequestBuilder
from .team_template_definition.team_template_definition_request_builder import TeamTemplateDefinitionRequestBuilder
from .templates.templates_request_builder import TemplatesRequestBuilder
from .tenant_relationships.tenant_relationships_request_builder import TenantRelationshipsRequestBuilder
from .term_store.term_store_request_builder import TermStoreRequestBuilder
from .threat_submission.threat_submission_request_builder import ThreatSubmissionRequestBuilder
Expand Down Expand Up @@ -451,6 +453,15 @@ def business_flow_templates(self) -> BusinessFlowTemplatesRequestBuilder:

return BusinessFlowTemplatesRequestBuilder(self.request_adapter, self.path_parameters)

@property
def certificate_authorities(self) -> CertificateAuthoritiesRequestBuilder:
"""
Provides operations to manage the certificateAuthorityPath singleton.
"""
from .certificate_authorities.certificate_authorities_request_builder import CertificateAuthoritiesRequestBuilder

return CertificateAuthoritiesRequestBuilder(self.request_adapter, self.path_parameters)

@property
def certificate_based_auth_configuration(self) -> CertificateBasedAuthConfigurationRequestBuilder:
"""
Expand Down Expand Up @@ -1252,6 +1263,15 @@ def teamwork(self) -> TeamworkRequestBuilder:

return TeamworkRequestBuilder(self.request_adapter, self.path_parameters)

@property
def templates(self) -> TemplatesRequestBuilder:
"""
Provides operations to manage the template singleton.
"""
from .templates.templates_request_builder import TemplatesRequestBuilder

return TemplatesRequestBuilder(self.request_adapter, self.path_parameters)

@property
def tenant_relationships(self) -> TenantRelationshipsRequestBuilder:
"""
Expand Down
Loading

0 comments on commit 6b2e0c1

Please sign in to comment.