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 models and request builders #530

Closed
wants to merge 1 commit into from
Closed
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
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
4 changes: 2 additions & 2 deletions msgraph/generated/admin/admin_request_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def to_get_request_information(self,request_configuration: Optional[AdminRequest
request_info.url_template = self.url_template
request_info.path_parameters = self.path_parameters
request_info.http_method = Method.GET
request_info.headers.try_add("Accept", "application/json;q=1")
request_info.headers.try_add("Accept", "application/json")
return request_info

def to_patch_request_information(self,body: Optional[Admin] = None, request_configuration: Optional[AdminRequestBuilderPatchRequestConfiguration] = None) -> RequestInformation:
Expand All @@ -108,7 +108,7 @@ def to_patch_request_information(self,body: Optional[Admin] = None, request_conf
request_info.url_template = self.url_template
request_info.path_parameters = self.path_parameters
request_info.http_method = Method.PATCH
request_info.headers.try_add("Accept", "application/json;q=1")
request_info.headers.try_add("Accept", "application/json")
request_info.set_content_from_parsable(self.request_adapter, "application/json", body)
return request_info

Expand Down
6 changes: 3 additions & 3 deletions msgraph/generated/admin/edge/edge_request_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def to_delete_request_information(self,request_configuration: Optional[EdgeReque
request_info.url_template = self.url_template
request_info.path_parameters = self.path_parameters
request_info.http_method = Method.DELETE
request_info.headers.try_add("Accept", "application/json, application/json")
request_info.headers.try_add("Accept", "application/json")
return request_info

def to_get_request_information(self,request_configuration: Optional[EdgeRequestBuilderGetRequestConfiguration] = None) -> RequestInformation:
Expand All @@ -121,7 +121,7 @@ def to_get_request_information(self,request_configuration: Optional[EdgeRequestB
request_info.url_template = self.url_template
request_info.path_parameters = self.path_parameters
request_info.http_method = Method.GET
request_info.headers.try_add("Accept", "application/json;q=1")
request_info.headers.try_add("Accept", "application/json")
return request_info

def to_patch_request_information(self,body: Optional[Edge] = None, request_configuration: Optional[EdgeRequestBuilderPatchRequestConfiguration] = None) -> RequestInformation:
Expand All @@ -140,7 +140,7 @@ def to_patch_request_information(self,body: Optional[Edge] = None, request_confi
request_info.url_template = self.url_template
request_info.path_parameters = self.path_parameters
request_info.http_method = Method.PATCH
request_info.headers.try_add("Accept", "application/json;q=1")
request_info.headers.try_add("Accept", "application/json")
request_info.set_content_from_parsable(self.request_adapter, "application/json", body)
return request_info

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def to_delete_request_information(self,request_configuration: Optional[InternetE
request_info.url_template = self.url_template
request_info.path_parameters = self.path_parameters
request_info.http_method = Method.DELETE
request_info.headers.try_add("Accept", "application/json, application/json")
request_info.headers.try_add("Accept", "application/json")
return request_info

def to_get_request_information(self,request_configuration: Optional[InternetExplorerModeRequestBuilderGetRequestConfiguration] = None) -> RequestInformation:
Expand All @@ -121,7 +121,7 @@ def to_get_request_information(self,request_configuration: Optional[InternetExpl
request_info.url_template = self.url_template
request_info.path_parameters = self.path_parameters
request_info.http_method = Method.GET
request_info.headers.try_add("Accept", "application/json;q=1")
request_info.headers.try_add("Accept", "application/json")
return request_info

def to_patch_request_information(self,body: Optional[InternetExplorerMode] = None, request_configuration: Optional[InternetExplorerModeRequestBuilderPatchRequestConfiguration] = None) -> RequestInformation:
Expand All @@ -140,7 +140,7 @@ def to_patch_request_information(self,body: Optional[InternetExplorerMode] = Non
request_info.url_template = self.url_template
request_info.path_parameters = self.path_parameters
request_info.http_method = Method.PATCH
request_info.headers.try_add("Accept", "application/json;q=1")
request_info.headers.try_add("Accept", "application/json")
request_info.set_content_from_parsable(self.request_adapter, "application/json", body)
return request_info

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Optional[Uni

async def delete(self,request_configuration: Optional[BrowserSiteListItemRequestBuilderDeleteRequestConfiguration] = None) -> None:
"""
Delete a browserSiteList object. This API is available in the following national cloud deployments.
Delete a browserSiteList 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/internetexplorermode-delete-sitelists?view=graph-rest-1.0
Expand All @@ -51,7 +51,7 @@ async def delete(self,request_configuration: Optional[BrowserSiteListItemRequest

async def get(self,request_configuration: Optional[BrowserSiteListItemRequestBuilderGetRequestConfiguration] = None) -> Optional[BrowserSiteList]:
"""
Get a browserSiteList that contains browserSite and browserSharedCookie resources. This API is available in the following national cloud deployments.
Get a browserSiteList that contains browserSite and browserSharedCookie resources.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[BrowserSiteList]
Find more info here: https://learn.microsoft.com/graph/api/browsersitelist-get?view=graph-rest-1.0
Expand All @@ -73,7 +73,7 @@ async def get(self,request_configuration: Optional[BrowserSiteListItemRequestBui

async def patch(self,body: Optional[BrowserSiteList] = None, request_configuration: Optional[BrowserSiteListItemRequestBuilderPatchRequestConfiguration] = None) -> Optional[BrowserSiteList]:
"""
Update the properties of a browserSiteList object. This API is available in the following national cloud deployments.
Update the properties of a browserSiteList object.
param body: The request body
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[BrowserSiteList]
Expand All @@ -98,7 +98,7 @@ async def patch(self,body: Optional[BrowserSiteList] = None, request_configurati

def to_delete_request_information(self,request_configuration: Optional[BrowserSiteListItemRequestBuilderDeleteRequestConfiguration] = None) -> RequestInformation:
"""
Delete a browserSiteList object. This API is available in the following national cloud deployments.
Delete a browserSiteList object.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
Expand All @@ -109,12 +109,12 @@ def to_delete_request_information(self,request_configuration: Optional[BrowserSi
request_info.url_template = self.url_template
request_info.path_parameters = self.path_parameters
request_info.http_method = Method.DELETE
request_info.headers.try_add("Accept", "application/json, application/json")
request_info.headers.try_add("Accept", "application/json")
return request_info

def to_get_request_information(self,request_configuration: Optional[BrowserSiteListItemRequestBuilderGetRequestConfiguration] = None) -> RequestInformation:
"""
Get a browserSiteList that contains browserSite and browserSharedCookie resources. This API is available in the following national cloud deployments.
Get a browserSiteList that contains browserSite and browserSharedCookie resources.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
Expand All @@ -126,12 +126,12 @@ def to_get_request_information(self,request_configuration: Optional[BrowserSiteL
request_info.url_template = self.url_template
request_info.path_parameters = self.path_parameters
request_info.http_method = Method.GET
request_info.headers.try_add("Accept", "application/json;q=1")
request_info.headers.try_add("Accept", "application/json")
return request_info

def to_patch_request_information(self,body: Optional[BrowserSiteList] = None, request_configuration: Optional[BrowserSiteListItemRequestBuilderPatchRequestConfiguration] = None) -> RequestInformation:
"""
Update the properties of a browserSiteList object. This API is available in the following national cloud deployments.
Update the properties of a browserSiteList object.
param body: The request body
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
Expand All @@ -145,7 +145,7 @@ def to_patch_request_information(self,body: Optional[BrowserSiteList] = None, re
request_info.url_template = self.url_template
request_info.path_parameters = self.path_parameters
request_info.http_method = Method.PATCH
request_info.headers.try_add("Accept", "application/json;q=1")
request_info.headers.try_add("Accept", "application/json")
request_info.set_content_from_parsable(self.request_adapter, "application/json", body)
return request_info

Expand Down Expand Up @@ -199,7 +199,7 @@ class BrowserSiteListItemRequestBuilderDeleteRequestConfiguration(BaseRequestCon
@dataclass
class BrowserSiteListItemRequestBuilderGetQueryParameters():
"""
Get a browserSiteList that contains browserSite and browserSharedCookie resources. This API is available in the following national cloud deployments.
Get a browserSiteList that contains browserSite and browserSharedCookie resources.
"""
def get_query_parameter(self,original_name: Optional[str] = None) -> str:
"""
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: Optional[Uni

async def post(self,body: Optional[PublishPostRequestBody] = None, request_configuration: Optional[PublishRequestBuilderPostRequestConfiguration] = None) -> Optional[BrowserSiteList]:
"""
Publish the specified browserSiteList for devices to download. This API is available in the following national cloud deployments.
Publish the specified browserSiteList for devices to download.
param body: The request body
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[BrowserSiteList]
Expand All @@ -54,7 +54,7 @@ async def post(self,body: Optional[PublishPostRequestBody] = None, request_confi

def to_post_request_information(self,body: Optional[PublishPostRequestBody] = None, request_configuration: Optional[PublishRequestBuilderPostRequestConfiguration] = None) -> RequestInformation:
"""
Publish the specified browserSiteList for devices to download. This API is available in the following national cloud deployments.
Publish the specified browserSiteList for devices to download.
param body: The request body
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
Expand All @@ -68,7 +68,7 @@ def to_post_request_information(self,body: Optional[PublishPostRequestBody] = No
request_info.url_template = self.url_template
request_info.path_parameters = self.path_parameters
request_info.http_method = Method.POST
request_info.headers.try_add("Accept", "application/json;q=1")
request_info.headers.try_add("Accept", "application/json")
request_info.set_content_from_parsable(self.request_adapter, "application/json", body)
return request_info

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Optional[Uni

async def delete(self,request_configuration: Optional[BrowserSharedCookieItemRequestBuilderDeleteRequestConfiguration] = None) -> None:
"""
Delete a browserSharedCookie from a browserSiteList. This API is available in the following national cloud deployments.
Delete a browserSharedCookie from a browserSiteList.
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/browsersitelist-delete-sharedcookies?view=graph-rest-1.0
Expand All @@ -48,7 +48,7 @@ async def delete(self,request_configuration: Optional[BrowserSharedCookieItemReq

async def get(self,request_configuration: Optional[BrowserSharedCookieItemRequestBuilderGetRequestConfiguration] = None) -> Optional[BrowserSharedCookie]:
"""
Get a session cookie that can be shared between a Microsoft Edge process and an Internet Explorer process, while using Internet Explorer mode. This API is available in the following national cloud deployments.
Get a session cookie that can be shared between a Microsoft Edge process and an Internet Explorer process, while using Internet Explorer mode.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[BrowserSharedCookie]
Find more info here: https://learn.microsoft.com/graph/api/browsersharedcookie-get?view=graph-rest-1.0
Expand All @@ -70,7 +70,7 @@ async def get(self,request_configuration: Optional[BrowserSharedCookieItemReques

async def patch(self,body: Optional[BrowserSharedCookie] = None, request_configuration: Optional[BrowserSharedCookieItemRequestBuilderPatchRequestConfiguration] = None) -> Optional[BrowserSharedCookie]:
"""
Update the properties of a browserSharedCookie object. This API is available in the following national cloud deployments.
Update the properties of a browserSharedCookie object.
param body: The request body
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[BrowserSharedCookie]
Expand All @@ -95,7 +95,7 @@ async def patch(self,body: Optional[BrowserSharedCookie] = None, request_configu

def to_delete_request_information(self,request_configuration: Optional[BrowserSharedCookieItemRequestBuilderDeleteRequestConfiguration] = None) -> RequestInformation:
"""
Delete a browserSharedCookie from a browserSiteList. This API is available in the following national cloud deployments.
Delete a browserSharedCookie from a browserSiteList.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
Expand All @@ -106,12 +106,12 @@ def to_delete_request_information(self,request_configuration: Optional[BrowserSh
request_info.url_template = self.url_template
request_info.path_parameters = self.path_parameters
request_info.http_method = Method.DELETE
request_info.headers.try_add("Accept", "application/json, application/json")
request_info.headers.try_add("Accept", "application/json")
return request_info

def to_get_request_information(self,request_configuration: Optional[BrowserSharedCookieItemRequestBuilderGetRequestConfiguration] = None) -> RequestInformation:
"""
Get a session cookie that can be shared between a Microsoft Edge process and an Internet Explorer process, while using Internet Explorer mode. This API is available in the following national cloud deployments.
Get a session cookie that can be shared between a Microsoft Edge process and an Internet Explorer process, while using Internet Explorer mode.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
Expand All @@ -123,12 +123,12 @@ def to_get_request_information(self,request_configuration: Optional[BrowserShare
request_info.url_template = self.url_template
request_info.path_parameters = self.path_parameters
request_info.http_method = Method.GET
request_info.headers.try_add("Accept", "application/json;q=1")
request_info.headers.try_add("Accept", "application/json")
return request_info

def to_patch_request_information(self,body: Optional[BrowserSharedCookie] = None, request_configuration: Optional[BrowserSharedCookieItemRequestBuilderPatchRequestConfiguration] = None) -> RequestInformation:
"""
Update the properties of a browserSharedCookie object. This API is available in the following national cloud deployments.
Update the properties of a browserSharedCookie object.
param body: The request body
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
Expand All @@ -142,7 +142,7 @@ def to_patch_request_information(self,body: Optional[BrowserSharedCookie] = None
request_info.url_template = self.url_template
request_info.path_parameters = self.path_parameters
request_info.http_method = Method.PATCH
request_info.headers.try_add("Accept", "application/json;q=1")
request_info.headers.try_add("Accept", "application/json")
request_info.set_content_from_parsable(self.request_adapter, "application/json", body)
return request_info

Expand All @@ -169,7 +169,7 @@ class BrowserSharedCookieItemRequestBuilderDeleteRequestConfiguration(BaseReques
@dataclass
class BrowserSharedCookieItemRequestBuilderGetQueryParameters():
"""
Get a session cookie that can be shared between a Microsoft Edge process and an Internet Explorer process, while using Internet Explorer mode. This API is available in the following national cloud deployments.
Get a session cookie that can be shared between a Microsoft Edge process and an Internet Explorer process, while using Internet Explorer mode.
"""
def get_query_parameter(self,original_name: Optional[str] = None) -> str:
"""
Expand Down
Loading