Skip to content

Commit

Permalink
Merge pull request #518 from microsoftgraph/beta/pipelinebuild/161941
Browse files Browse the repository at this point in the history
Generated beta models and request builders
  • Loading branch information
shemogumbe authored Sep 5, 2024
2 parents 0836350 + ea4306c commit c3eab21
Show file tree
Hide file tree
Showing 25,679 changed files with 528,281 additions and 339,634 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def by_access_review_decision_id(self,access_review_decision_id: str) -> AccessR
param access_review_decision_id: The unique identifier of accessReviewDecision
Returns: AccessReviewDecisionItemRequestBuilder
"""
if not access_review_decision_id:
if access_review_decision_id is None:
raise TypeError("access_review_decision_id cannot be null.")
from .item.access_review_decision_item_request_builder import AccessReviewDecisionItemRequestBuilder

Expand Down Expand Up @@ -73,7 +73,7 @@ async def post(self,body: AccessReviewDecision, request_configuration: Optional[
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[AccessReviewDecision]
"""
if not body:
if body is None:
raise TypeError("body cannot be null.")
request_info = self.to_post_request_information(
body, request_configuration
Expand Down Expand Up @@ -107,7 +107,7 @@ def to_post_request_information(self,body: AccessReviewDecision, request_configu
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
if not body:
if body is None:
raise TypeError("body cannot be null.")
request_info = RequestInformation(Method.POST, self.url_template, self.path_parameters)
request_info.configure(request_configuration)
Expand All @@ -121,7 +121,7 @@ def with_url(self,raw_url: str) -> AccessReviewDecisionsRequestBuilder:
param raw_url: The raw URL to use for the request builder.
Returns: AccessReviewDecisionsRequestBuilder
"""
if not raw_url:
if raw_url is None:
raise TypeError("raw_url cannot be null.")
return AccessReviewDecisionsRequestBuilder(self.request_adapter, raw_url)

Expand All @@ -145,7 +145,7 @@ def get_query_parameter(self,original_name: str) -> str:
param original_name: The original query parameter name in the class.
Returns: str
"""
if not original_name:
if original_name is None:
raise TypeError("original_name cannot be null.")
if original_name == "count":
return "%24count"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def with_url(self,raw_url: str) -> CountRequestBuilder:
param raw_url: The raw URL to use for the request builder.
Returns: CountRequestBuilder
"""
if not raw_url:
if raw_url is None:
raise TypeError("raw_url cannot be null.")
return CountRequestBuilder(self.request_adapter, raw_url)

Expand All @@ -78,7 +78,7 @@ def get_query_parameter(self,original_name: str) -> str:
param original_name: The original query parameter name in the class.
Returns: str
"""
if not original_name:
if original_name is None:
raise TypeError("original_name cannot be null.")
if original_name == "filter":
return "%24filter"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ async def patch(self,body: AccessReviewDecision, request_configuration: Optional
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[AccessReviewDecision]
"""
if not body:
if body is None:
raise TypeError("body cannot be null.")
request_info = self.to_patch_request_information(
body, request_configuration
Expand Down Expand Up @@ -119,7 +119,7 @@ def to_patch_request_information(self,body: AccessReviewDecision, request_config
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
if not body:
if body is None:
raise TypeError("body cannot be null.")
request_info = RequestInformation(Method.PATCH, self.url_template, self.path_parameters)
request_info.configure(request_configuration)
Expand All @@ -133,7 +133,7 @@ def with_url(self,raw_url: str) -> AccessReviewDecisionItemRequestBuilder:
param raw_url: The raw URL to use for the request builder.
Returns: AccessReviewDecisionItemRequestBuilder
"""
if not raw_url:
if raw_url is None:
raise TypeError("raw_url cannot be null.")
return AccessReviewDecisionItemRequestBuilder(self.request_adapter, raw_url)

Expand All @@ -155,7 +155,7 @@ def get_query_parameter(self,original_name: str) -> str:
param original_name: The original query parameter name in the class.
Returns: str
"""
if not original_name:
if original_name is None:
raise TypeError("original_name cannot be null.")
if original_name == "expand":
return "%24expand"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def by_access_review_id(self,access_review_id: str) -> AccessReviewItemRequestBu
param access_review_id: The unique identifier of accessReview
Returns: AccessReviewItemRequestBuilder
"""
if not access_review_id:
if access_review_id is None:
raise TypeError("access_review_id cannot be null.")
from .item.access_review_item_request_builder import AccessReviewItemRequestBuilder

Expand Down Expand Up @@ -75,7 +75,7 @@ async def post(self,body: AccessReview, request_configuration: Optional[RequestC
Returns: Optional[AccessReview]
Find more info here: https://learn.microsoft.com/graph/api/accessreview-create?view=graph-rest-beta
"""
if not body:
if body is None:
raise TypeError("body cannot be null.")
request_info = self.to_post_request_information(
body, request_configuration
Expand Down Expand Up @@ -109,7 +109,7 @@ def to_post_request_information(self,body: AccessReview, request_configuration:
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
if not body:
if body is None:
raise TypeError("body cannot be null.")
request_info = RequestInformation(Method.POST, self.url_template, self.path_parameters)
request_info.configure(request_configuration)
Expand All @@ -123,7 +123,7 @@ def with_url(self,raw_url: str) -> AccessReviewsRequestBuilder:
param raw_url: The raw URL to use for the request builder.
Returns: AccessReviewsRequestBuilder
"""
if not raw_url:
if raw_url is None:
raise TypeError("raw_url cannot be null.")
return AccessReviewsRequestBuilder(self.request_adapter, raw_url)

Expand All @@ -147,7 +147,7 @@ def get_query_parameter(self,original_name: str) -> str:
param original_name: The original query parameter name in the class.
Returns: str
"""
if not original_name:
if original_name is None:
raise TypeError("original_name cannot be null.")
if original_name == "count":
return "%24count"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def with_url(self,raw_url: str) -> CountRequestBuilder:
param raw_url: The raw URL to use for the request builder.
Returns: CountRequestBuilder
"""
if not raw_url:
if raw_url is None:
raise TypeError("raw_url cannot be null.")
return CountRequestBuilder(self.request_adapter, raw_url)

Expand All @@ -78,7 +78,7 @@ def get_query_parameter(self,original_name: str) -> str:
param original_name: The original query parameter name in the class.
Returns: str
"""
if not original_name:
if original_name is None:
raise TypeError("original_name cannot be null.")
if original_name == "filter":
return "%24filter"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ async def patch(self,body: AccessReview, request_configuration: Optional[Request
Returns: Optional[AccessReview]
Find more info here: https://learn.microsoft.com/graph/api/accessreview-update?view=graph-rest-beta
"""
if not body:
if body is None:
raise TypeError("body cannot be null.")
request_info = self.to_patch_request_information(
body, request_configuration
Expand Down Expand Up @@ -130,7 +130,7 @@ def to_patch_request_information(self,body: AccessReview, request_configuration:
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
if not body:
if body is None:
raise TypeError("body cannot be null.")
request_info = RequestInformation(Method.PATCH, self.url_template, self.path_parameters)
request_info.configure(request_configuration)
Expand All @@ -144,7 +144,7 @@ def with_url(self,raw_url: str) -> AccessReviewItemRequestBuilder:
param raw_url: The raw URL to use for the request builder.
Returns: AccessReviewItemRequestBuilder
"""
if not raw_url:
if raw_url is None:
raise TypeError("raw_url cannot be null.")
return AccessReviewItemRequestBuilder(self.request_adapter, raw_url)

Expand Down Expand Up @@ -238,7 +238,7 @@ def get_query_parameter(self,original_name: str) -> str:
param original_name: The original query parameter name in the class.
Returns: str
"""
if not original_name:
if original_name is None:
raise TypeError("original_name cannot be null.")
if original_name == "expand":
return "%24expand"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def with_url(self,raw_url: str) -> ApplyDecisionsRequestBuilder:
param raw_url: The raw URL to use for the request builder.
Returns: ApplyDecisionsRequestBuilder
"""
if not raw_url:
if raw_url is None:
raise TypeError("raw_url cannot be null.")
return ApplyDecisionsRequestBuilder(self.request_adapter, raw_url)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def with_url(self,raw_url: str) -> CountRequestBuilder:
param raw_url: The raw URL to use for the request builder.
Returns: CountRequestBuilder
"""
if not raw_url:
if raw_url is None:
raise TypeError("raw_url cannot be null.")
return CountRequestBuilder(self.request_adapter, raw_url)

Expand All @@ -78,7 +78,7 @@ def get_query_parameter(self,original_name: str) -> str:
param original_name: The original query parameter name in the class.
Returns: str
"""
if not original_name:
if original_name is None:
raise TypeError("original_name cannot be null.")
if original_name == "filter":
return "%24filter"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def by_access_review_decision_id(self,access_review_decision_id: str) -> AccessR
param access_review_decision_id: The unique identifier of accessReviewDecision
Returns: AccessReviewDecisionItemRequestBuilder
"""
if not access_review_decision_id:
if access_review_decision_id is None:
raise TypeError("access_review_decision_id cannot be null.")
from .item.access_review_decision_item_request_builder import AccessReviewDecisionItemRequestBuilder

Expand Down Expand Up @@ -74,7 +74,7 @@ async def post(self,body: AccessReviewDecision, request_configuration: Optional[
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[AccessReviewDecision]
"""
if not body:
if body is None:
raise TypeError("body cannot be null.")
request_info = self.to_post_request_information(
body, request_configuration
Expand Down Expand Up @@ -108,7 +108,7 @@ def to_post_request_information(self,body: AccessReviewDecision, request_configu
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
if not body:
if body is None:
raise TypeError("body cannot be null.")
request_info = RequestInformation(Method.POST, self.url_template, self.path_parameters)
request_info.configure(request_configuration)
Expand All @@ -122,7 +122,7 @@ def with_url(self,raw_url: str) -> DecisionsRequestBuilder:
param raw_url: The raw URL to use for the request builder.
Returns: DecisionsRequestBuilder
"""
if not raw_url:
if raw_url is None:
raise TypeError("raw_url cannot be null.")
return DecisionsRequestBuilder(self.request_adapter, raw_url)

Expand All @@ -146,7 +146,7 @@ def get_query_parameter(self,original_name: str) -> str:
param original_name: The original query parameter name in the class.
Returns: str
"""
if not original_name:
if original_name is None:
raise TypeError("original_name cannot be null.")
if original_name == "count":
return "%24count"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ async def patch(self,body: AccessReviewDecision, request_configuration: Optional
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[AccessReviewDecision]
"""
if not body:
if body is None:
raise TypeError("body cannot be null.")
request_info = self.to_patch_request_information(
body, request_configuration
Expand Down Expand Up @@ -119,7 +119,7 @@ def to_patch_request_information(self,body: AccessReviewDecision, request_config
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
if not body:
if body is None:
raise TypeError("body cannot be null.")
request_info = RequestInformation(Method.PATCH, self.url_template, self.path_parameters)
request_info.configure(request_configuration)
Expand All @@ -133,7 +133,7 @@ def with_url(self,raw_url: str) -> AccessReviewDecisionItemRequestBuilder:
param raw_url: The raw URL to use for the request builder.
Returns: AccessReviewDecisionItemRequestBuilder
"""
if not raw_url:
if raw_url is None:
raise TypeError("raw_url cannot be null.")
return AccessReviewDecisionItemRequestBuilder(self.request_adapter, raw_url)

Expand All @@ -155,7 +155,7 @@ def get_query_parameter(self,original_name: str) -> str:
param original_name: The original query parameter name in the class.
Returns: str
"""
if not original_name:
if original_name is None:
raise TypeError("original_name cannot be null.")
if original_name == "expand":
return "%24expand"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def with_url(self,raw_url: str) -> CountRequestBuilder:
param raw_url: The raw URL to use for the request builder.
Returns: CountRequestBuilder
"""
if not raw_url:
if raw_url is None:
raise TypeError("raw_url cannot be null.")
return CountRequestBuilder(self.request_adapter, raw_url)

Expand All @@ -78,7 +78,7 @@ def get_query_parameter(self,original_name: str) -> str:
param original_name: The original query parameter name in the class.
Returns: str
"""
if not original_name:
if original_name is None:
raise TypeError("original_name cannot be null.")
if original_name == "filter":
return "%24filter"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def by_access_review_id1(self,access_review_id1: str) -> AccessReviewItemRequest
param access_review_id1: The unique identifier of accessReview
Returns: AccessReviewItemRequestBuilder
"""
if not access_review_id1:
if access_review_id1 is None:
raise TypeError("access_review_id1 cannot be null.")
from .item.access_review_item_request_builder import AccessReviewItemRequestBuilder

Expand Down Expand Up @@ -73,7 +73,7 @@ async def post(self,body: AccessReview, request_configuration: Optional[RequestC
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[AccessReview]
"""
if not body:
if body is None:
raise TypeError("body cannot be null.")
request_info = self.to_post_request_information(
body, request_configuration
Expand Down Expand Up @@ -107,7 +107,7 @@ def to_post_request_information(self,body: AccessReview, request_configuration:
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
if not body:
if body is None:
raise TypeError("body cannot be null.")
request_info = RequestInformation(Method.POST, self.url_template, self.path_parameters)
request_info.configure(request_configuration)
Expand All @@ -121,7 +121,7 @@ def with_url(self,raw_url: str) -> InstancesRequestBuilder:
param raw_url: The raw URL to use for the request builder.
Returns: InstancesRequestBuilder
"""
if not raw_url:
if raw_url is None:
raise TypeError("raw_url cannot be null.")
return InstancesRequestBuilder(self.request_adapter, raw_url)

Expand All @@ -145,7 +145,7 @@ def get_query_parameter(self,original_name: str) -> str:
param original_name: The original query parameter name in the class.
Returns: str
"""
if not original_name:
if original_name is None:
raise TypeError("original_name cannot be null.")
if original_name == "count":
return "%24count"
Expand Down
Loading

0 comments on commit c3eab21

Please sign in to comment.