Skip to content

Commit

Permalink
Merge pull request #5 from microsoftgraph/v1.0/pipelinebuild/93956
Browse files Browse the repository at this point in the history
Update generated files with build 93956 [skip ci]
  • Loading branch information
samwelkanda authored Nov 22, 2022
2 parents d1b1a8e + d32bb2e commit 835c6ac
Show file tree
Hide file tree
Showing 11,408 changed files with 64,211 additions and 62,402 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
18 changes: 9 additions & 9 deletions msgraph/generated/admin/admin_request_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Optional[Uni
pathParameters: The raw url or the Url template parameters for the request.
requestAdapter: The request adapter to use to execute the requests.
"""
if not path_parameters:
if path_parameters is None:
raise Exception("path_parameters cannot be undefined")
if not request_adapter:
if request_adapter is None:
raise Exception("request_adapter cannot be undefined")
# Url template to use to build the URL for the current request builder
self.url_template: str = "{+baseurl}/admin{?%24select,%24expand}"
Expand Down Expand Up @@ -67,7 +67,7 @@ def create_patch_request_information(self,body: Optional[admin.Admin] = None, re
requestConfiguration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
if not body:
if body is None:
raise Exception("body cannot be undefined")
request_info = RequestInformation()
request_info.url_template = self.url_template
Expand All @@ -92,8 +92,8 @@ async def get(self,request_configuration: Optional[AdminRequestBuilderGetRequest
request_configuration
)
error_mapping: Dict[str, ParsableFactory] = {
"4XX": o_data_error.ODataError.get_from_discriminator_value(),
"5XX": o_data_error.ODataError.get_from_discriminator_value(),
"4XX": o_data_error.ODataError,
"5XX": o_data_error.ODataError,
}
if not self.request_adapter:
raise Exception("Http core is null")
Expand All @@ -108,14 +108,14 @@ async def patch(self,body: Optional[admin.Admin] = None, request_configuration:
responseHandler: Response handler to use in place of the default response handling provided by the core service
Returns: Optional[admin.Admin]
"""
if not body:
if body is None:
raise Exception("body cannot be undefined")
request_info = self.create_patch_request_information(
body, request_configuration
)
error_mapping: Dict[str, ParsableFactory] = {
"4XX": o_data_error.ODataError.get_from_discriminator_value(),
"5XX": o_data_error.ODataError.get_from_discriminator_value(),
"4XX": o_data_error.ODataError,
"5XX": o_data_error.ODataError,
}
if not self.request_adapter:
raise Exception("Http core is null")
Expand All @@ -139,7 +139,7 @@ def get_query_parameter(self,original_name: Optional[str] = None) -> str:
originalName: The original query parameter name in the class.
Returns: str
"""
if not original_name:
if original_name is None:
raise Exception("original_name cannot be undefined")
if original_name == "expand":
return "%24expand"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Optional[Uni
pathParameters: The raw url or the Url template parameters for the request.
requestAdapter: The request adapter to use to execute the requests.
"""
if not path_parameters:
if path_parameters is None:
raise Exception("path_parameters cannot be undefined")
if not request_adapter:
if request_adapter is None:
raise Exception("request_adapter cannot be undefined")
# Url template to use to build the URL for the current request builder
self.url_template: str = "{+baseurl}/admin/serviceAnnouncement/healthOverviews/$count"
Expand Down Expand Up @@ -62,8 +62,8 @@ async def get(self,request_configuration: Optional[CountRequestBuilderGetRequest
request_configuration
)
error_mapping: Dict[str, ParsableFactory] = {
"4XX": o_data_error.ODataError.get_from_discriminator_value(),
"5XX": o_data_error.ODataError.get_from_discriminator_value(),
"4XX": o_data_error.ODataError,
"5XX": o_data_error.ODataError,
}
if not self.request_adapter:
raise Exception("Http core is null")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Optional[Uni
pathParameters: The raw url or the Url template parameters for the request.
requestAdapter: The request adapter to use to execute the requests.
"""
if not path_parameters:
if path_parameters is None:
raise Exception("path_parameters cannot be undefined")
if not request_adapter:
if request_adapter is None:
raise Exception("request_adapter cannot be undefined")
# Url template to use to build the URL for the current request builder
self.url_template: str = "{+baseurl}/admin/serviceAnnouncement/healthOverviews{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"
Expand Down Expand Up @@ -67,7 +67,7 @@ def create_post_request_information(self,body: Optional[service_health.ServiceHe
requestConfiguration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
if not body:
if body is None:
raise Exception("body cannot be undefined")
request_info = RequestInformation()
request_info.url_template = self.url_template
Expand All @@ -92,8 +92,8 @@ async def get(self,request_configuration: Optional[HealthOverviewsRequestBuilder
request_configuration
)
error_mapping: Dict[str, ParsableFactory] = {
"4XX": o_data_error.ODataError.get_from_discriminator_value(),
"5XX": o_data_error.ODataError.get_from_discriminator_value(),
"4XX": o_data_error.ODataError,
"5XX": o_data_error.ODataError,
}
if not self.request_adapter:
raise Exception("Http core is null")
Expand All @@ -108,14 +108,14 @@ async def post(self,body: Optional[service_health.ServiceHealth] = None, request
responseHandler: Response handler to use in place of the default response handling provided by the core service
Returns: Optional[service_health.ServiceHealth]
"""
if not body:
if body is None:
raise Exception("body cannot be undefined")
request_info = self.create_post_request_information(
body, request_configuration
)
error_mapping: Dict[str, ParsableFactory] = {
"4XX": o_data_error.ODataError.get_from_discriminator_value(),
"5XX": o_data_error.ODataError.get_from_discriminator_value(),
"4XX": o_data_error.ODataError,
"5XX": o_data_error.ODataError,
}
if not self.request_adapter:
raise Exception("Http core is null")
Expand Down Expand Up @@ -157,7 +157,7 @@ def get_query_parameter(self,original_name: Optional[str] = None) -> str:
originalName: The original query parameter name in the class.
Returns: str
"""
if not original_name:
if original_name is None:
raise Exception("original_name cannot be undefined")
if original_name == "count":
return "%24count"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Optional[Uni
pathParameters: The raw url or the Url template parameters for the request.
requestAdapter: The request adapter to use to execute the requests.
"""
if not path_parameters:
if path_parameters is None:
raise Exception("path_parameters cannot be undefined")
if not request_adapter:
if request_adapter is None:
raise Exception("request_adapter cannot be undefined")
# Url template to use to build the URL for the current request builder
self.url_template: str = "{+baseurl}/admin/serviceAnnouncement/healthOverviews/{serviceHealth%2Did}/issues/$count"
Expand Down Expand Up @@ -62,8 +62,8 @@ async def get(self,request_configuration: Optional[CountRequestBuilderGetRequest
request_configuration
)
error_mapping: Dict[str, ParsableFactory] = {
"4XX": o_data_error.ODataError.get_from_discriminator_value(),
"5XX": o_data_error.ODataError.get_from_discriminator_value(),
"4XX": o_data_error.ODataError,
"5XX": o_data_error.ODataError,
}
if not self.request_adapter:
raise Exception("Http core is null")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Optional[Uni
pathParameters: The raw url or the Url template parameters for the request.
requestAdapter: The request adapter to use to execute the requests.
"""
if not path_parameters:
if path_parameters is None:
raise Exception("path_parameters cannot be undefined")
if not request_adapter:
if request_adapter is None:
raise Exception("request_adapter cannot be undefined")
# Url template to use to build the URL for the current request builder
self.url_template: str = "{+baseurl}/admin/serviceAnnouncement/healthOverviews/{serviceHealth%2Did}/issues{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"
Expand Down Expand Up @@ -67,7 +67,7 @@ def create_post_request_information(self,body: Optional[service_health_issue.Ser
requestConfiguration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
if not body:
if body is None:
raise Exception("body cannot be undefined")
request_info = RequestInformation()
request_info.url_template = self.url_template
Expand All @@ -92,8 +92,8 @@ async def get(self,request_configuration: Optional[IssuesRequestBuilderGetReques
request_configuration
)
error_mapping: Dict[str, ParsableFactory] = {
"4XX": o_data_error.ODataError.get_from_discriminator_value(),
"5XX": o_data_error.ODataError.get_from_discriminator_value(),
"4XX": o_data_error.ODataError,
"5XX": o_data_error.ODataError,
}
if not self.request_adapter:
raise Exception("Http core is null")
Expand All @@ -108,14 +108,14 @@ async def post(self,body: Optional[service_health_issue.ServiceHealthIssue] = No
responseHandler: Response handler to use in place of the default response handling provided by the core service
Returns: Optional[service_health_issue.ServiceHealthIssue]
"""
if not body:
if body is None:
raise Exception("body cannot be undefined")
request_info = self.create_post_request_information(
body, request_configuration
)
error_mapping: Dict[str, ParsableFactory] = {
"4XX": o_data_error.ODataError.get_from_discriminator_value(),
"5XX": o_data_error.ODataError.get_from_discriminator_value(),
"4XX": o_data_error.ODataError,
"5XX": o_data_error.ODataError,
}
if not self.request_adapter:
raise Exception("Http core is null")
Expand Down Expand Up @@ -157,7 +157,7 @@ def get_query_parameter(self,original_name: Optional[str] = None) -> str:
originalName: The original query parameter name in the class.
Returns: str
"""
if not original_name:
if original_name is None:
raise Exception("original_name cannot be undefined")
if original_name == "count":
return "%24count"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Optional[Uni
pathParameters: The raw url or the Url template parameters for the request.
requestAdapter: The request adapter to use to execute the requests.
"""
if not path_parameters:
if path_parameters is None:
raise Exception("path_parameters cannot be undefined")
if not request_adapter:
if request_adapter is None:
raise Exception("request_adapter cannot be undefined")
# Url template to use to build the URL for the current request builder
self.url_template: str = "{+baseurl}/admin/serviceAnnouncement/healthOverviews/{serviceHealth%2Did}/issues/{serviceHealthIssue%2Did}/microsoft.graph.incidentReport()"
Expand Down Expand Up @@ -61,8 +61,8 @@ async def get(self,request_configuration: Optional[IncidentReportRequestBuilderG
request_configuration
)
error_mapping: Dict[str, ParsableFactory] = {
"4XX": o_data_error.ODataError.get_from_discriminator_value(),
"5XX": o_data_error.ODataError.get_from_discriminator_value(),
"4XX": o_data_error.ODataError,
"5XX": o_data_error.ODataError,
}
if not self.request_adapter:
raise Exception("Http core is null")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Optional[Uni
pathParameters: The raw url or the Url template parameters for the request.
requestAdapter: The request adapter to use to execute the requests.
"""
if not path_parameters:
if path_parameters is None:
raise Exception("path_parameters cannot be undefined")
if not request_adapter:
if request_adapter is None:
raise Exception("request_adapter cannot be undefined")
# Url template to use to build the URL for the current request builder
self.url_template: str = "{+baseurl}/admin/serviceAnnouncement/healthOverviews/{serviceHealth%2Did}/issues/{serviceHealthIssue%2Did}{?%24select,%24expand}"
Expand Down Expand Up @@ -77,7 +77,7 @@ def create_patch_request_information(self,body: Optional[service_health_issue.Se
requestConfiguration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
if not body:
if body is None:
raise Exception("body cannot be undefined")
request_info = RequestInformation()
request_info.url_template = self.url_template
Expand All @@ -101,8 +101,8 @@ async def delete(self,request_configuration: Optional[ServiceHealthIssueItemRequ
request_configuration
)
error_mapping: Dict[str, ParsableFactory] = {
"4XX": o_data_error.ODataError.get_from_discriminator_value(),
"5XX": o_data_error.ODataError.get_from_discriminator_value(),
"4XX": o_data_error.ODataError,
"5XX": o_data_error.ODataError,
}
if not self.request_adapter:
raise Exception("Http core is null")
Expand All @@ -120,8 +120,8 @@ async def get(self,request_configuration: Optional[ServiceHealthIssueItemRequest
request_configuration
)
error_mapping: Dict[str, ParsableFactory] = {
"4XX": o_data_error.ODataError.get_from_discriminator_value(),
"5XX": o_data_error.ODataError.get_from_discriminator_value(),
"4XX": o_data_error.ODataError,
"5XX": o_data_error.ODataError,
}
if not self.request_adapter:
raise Exception("Http core is null")
Expand All @@ -143,14 +143,14 @@ async def patch(self,body: Optional[service_health_issue.ServiceHealthIssue] = N
responseHandler: Response handler to use in place of the default response handling provided by the core service
Returns: Optional[service_health_issue.ServiceHealthIssue]
"""
if not body:
if body is None:
raise Exception("body cannot be undefined")
request_info = self.create_patch_request_information(
body, request_configuration
)
error_mapping: Dict[str, ParsableFactory] = {
"4XX": o_data_error.ODataError.get_from_discriminator_value(),
"5XX": o_data_error.ODataError.get_from_discriminator_value(),
"4XX": o_data_error.ODataError,
"5XX": o_data_error.ODataError,
}
if not self.request_adapter:
raise Exception("Http core is null")
Expand Down Expand Up @@ -186,7 +186,7 @@ def get_query_parameter(self,original_name: Optional[str] = None) -> str:
originalName: The original query parameter name in the class.
Returns: str
"""
if not original_name:
if original_name is None:
raise Exception("original_name cannot be undefined")
if original_name == "expand":
return "%24expand"
Expand Down
Loading

0 comments on commit 835c6ac

Please sign in to comment.