Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated beta models and request builders #425

Merged
merged 2 commits into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query

async def get(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> bytes:
"""
The attachment content.
Read the properties and relationships of a serviceAnnouncementAttachment object.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: bytes
Find more info here: https://learn.microsoft.com/graph/api/serviceannouncementattachment-get?view=graph-rest-beta
"""
request_info = self.to_get_request_information(
request_configuration
Expand Down Expand Up @@ -101,7 +102,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
"""
The attachment content.
Read the properties and relationships of a serviceAnnouncementAttachment 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 of an azureADDevice 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-azureaddevice-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 of an azureADDevice 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 of an azureADDevice 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 @@ -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 not body:
raise TypeError("body cannot be null.")
Expand Down Expand Up @@ -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 @@ -29,7 +29,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, D
param request_adapter: The request adapter to use to execute the requests.
Returns: None
"""
super().__init__(request_adapter, "{+baseurl}/agreementAcceptances{?%24count,%24filter,%24search,%24select,%24skip,%24top}", path_parameters)
super().__init__(request_adapter, "{+baseurl}/agreementAcceptances{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", path_parameters)

def by_agreement_acceptance_id(self,agreement_acceptance_id: str) -> AgreementAcceptanceItemRequestBuilder:
"""
Expand Down Expand Up @@ -139,8 +139,12 @@ def get_query_parameter(self,original_name: str) -> str:
raise TypeError("original_name cannot be null.")
if original_name == "count":
return "%24count"
if original_name == "expand":
return "%24expand"
if original_name == "filter":
return "%24filter"
if original_name == "orderby":
return "%24orderby"
if original_name == "search":
return "%24search"
if original_name == "select":
Expand All @@ -154,9 +158,15 @@ def get_query_parameter(self,original_name: str) -> str:
# Include count of items
count: Optional[bool] = None

# Expand related entities
expand: Optional[List[str]] = None

# Filter items by property values
filter: Optional[str] = None

# Order items by property values
orderby: Optional[List[str]] = None

# Search items by search phrases
search: Optional[str] = None

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, D
param request_adapter: The request adapter to use to execute the requests.
Returns: None
"""
super().__init__(request_adapter, "{+baseurl}/agreements{?%24count,%24filter,%24search,%24select,%24skip,%24top}", path_parameters)
super().__init__(request_adapter, "{+baseurl}/agreements{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", path_parameters)

def by_agreement_id(self,agreement_id: str) -> AgreementItemRequestBuilder:
"""
Expand Down Expand Up @@ -139,8 +139,12 @@ def get_query_parameter(self,original_name: str) -> str:
raise TypeError("original_name cannot be null.")
if original_name == "count":
return "%24count"
if original_name == "expand":
return "%24expand"
if original_name == "filter":
return "%24filter"
if original_name == "orderby":
return "%24orderby"
if original_name == "search":
return "%24search"
if original_name == "select":
Expand All @@ -154,9 +158,15 @@ def get_query_parameter(self,original_name: str) -> str:
# Include count of items
count: Optional[bool] = None

# Expand related entities
expand: Optional[List[str]] = None

# Filter items by property values
filter: Optional[str] = None

# Order items by property values
orderby: Optional[List[str]] = None

# Search items by search phrases
search: Optional[str] = None

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 not body:
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 @@ -49,9 +49,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query

async def get(self,request_configuration: Optional[RequestConfiguration[BotRequestBuilderGetQueryParameters]] = None) -> Optional[TeamworkBot]:
"""
The details of the bot specified in the Teams app manifest.
Get the bot associated with a specific definition of the TeamsApp.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[TeamworkBot]
Find more info here: https://learn.microsoft.com/graph/api/teamworkbot-get?view=graph-rest-beta
"""
request_info = self.to_get_request_information(
request_configuration
Expand Down Expand Up @@ -103,7 +104,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[BotRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
The details of the bot specified in the Teams app manifest.
Get the bot associated with a specific definition of the TeamsApp.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
Expand Down Expand Up @@ -147,7 +148,7 @@ class BotRequestBuilderDeleteRequestConfiguration(RequestConfiguration[QueryPara
@dataclass
class BotRequestBuilderGetQueryParameters():
"""
The details of the bot specified in the Teams app manifest.
Get the bot associated with a specific definition of the TeamsApp.
"""
def get_query_parameter(self,original_name: str) -> str:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query

async def get(self,request_configuration: Optional[RequestConfiguration[ColorIconRequestBuilderGetQueryParameters]] = None) -> Optional[TeamsAppIcon]:
"""
The color version of the Teams app's icon.
Retrieve a Teams app icon associated with a specific definition of an app.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[TeamsAppIcon]
Find more info here: https://learn.microsoft.com/graph/api/teamsappicon-get?view=graph-rest-beta
"""
request_info = self.to_get_request_information(
request_configuration
Expand Down Expand Up @@ -104,7 +105,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[ColorIconRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
The color version of the Teams app's icon.
Retrieve a Teams app icon associated with a specific definition of an app.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
Expand Down Expand Up @@ -157,7 +158,7 @@ class ColorIconRequestBuilderDeleteRequestConfiguration(RequestConfiguration[Que
@dataclass
class ColorIconRequestBuilderGetQueryParameters():
"""
The color version of the Teams app's icon.
Retrieve a Teams app icon associated with a specific definition of an app.
"""
def get_query_parameter(self,original_name: str) -> str:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query

async def get(self,request_configuration: Optional[RequestConfiguration[HostedContentRequestBuilderGetQueryParameters]] = None) -> Optional[TeamworkHostedContent]:
"""
The contents of the app icon if the icon is hosted within the Teams infrastructure.
Retrieve the hosted content in an app's icon.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[TeamworkHostedContent]
Find more info here: https://learn.microsoft.com/graph/api/teamworkhostedcontent-get?view=graph-rest-beta
"""
request_info = self.to_get_request_information(
request_configuration
Expand Down Expand Up @@ -104,7 +105,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[HostedContentRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
The contents of the app icon if the icon is hosted within the Teams infrastructure.
Retrieve the hosted content in an app's icon.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
Expand Down Expand Up @@ -157,7 +158,7 @@ class HostedContentRequestBuilderDeleteRequestConfiguration(RequestConfiguration
@dataclass
class HostedContentRequestBuilderGetQueryParameters():
"""
The contents of the app icon if the icon is hosted within the Teams infrastructure.
Retrieve the hosted content in an app's icon.
"""
def get_query_parameter(self,original_name: str) -> str:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query

async def get(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> bytes:
"""
The contents of the app icon if the icon is hosted within the Teams infrastructure.
Retrieve the hosted content in an app's icon.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: bytes
Find more info here: https://learn.microsoft.com/graph/api/teamworkhostedcontent-get?view=graph-rest-beta
"""
request_info = self.to_get_request_information(
request_configuration
Expand Down Expand Up @@ -98,7 +99,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
"""
The contents of the app icon if the icon is hosted within the Teams infrastructure.
Retrieve the hosted content in an app's icon.
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,9 +50,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query

async def get(self,request_configuration: Optional[RequestConfiguration[HostedContentRequestBuilderGetQueryParameters]] = None) -> Optional[TeamworkHostedContent]:
"""
The contents of the app icon if the icon is hosted within the Teams infrastructure.
Retrieve the hosted content in an app's icon.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[TeamworkHostedContent]
Find more info here: https://learn.microsoft.com/graph/api/teamworkhostedcontent-get?view=graph-rest-beta
"""
request_info = self.to_get_request_information(
request_configuration
Expand Down Expand Up @@ -104,7 +105,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[HostedContentRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
The contents of the app icon if the icon is hosted within the Teams infrastructure.
Retrieve the hosted content in an app's icon.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
Expand Down Expand Up @@ -157,7 +158,7 @@ class HostedContentRequestBuilderDeleteRequestConfiguration(RequestConfiguration
@dataclass
class HostedContentRequestBuilderGetQueryParameters():
"""
The contents of the app icon if the icon is hosted within the Teams infrastructure.
Retrieve the hosted content in an app's icon.
"""
def get_query_parameter(self,original_name: str) -> str:
"""
Expand Down
Loading
Loading