Skip to content

Commit

Permalink
Merge pull request #368 from microsoftgraph/beta/pipelinebuild/140091
Browse files Browse the repository at this point in the history
Generated beta models and request builders
  • Loading branch information
samwelkanda authored Mar 20, 2024
2 parents fade48d + 2b38023 commit 4bfc69a
Show file tree
Hide file tree
Showing 13,428 changed files with 289,041 additions and 56,275 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
@@ -1,7 +1,6 @@
from __future__ import annotations
from dataclasses import dataclass, field
from kiota_abstractions.base_request_builder import BaseRequestBuilder
from kiota_abstractions.base_request_configuration import RequestConfiguration
from kiota_abstractions.get_path_parameters import get_path_parameters
from kiota_abstractions.method import Method
from kiota_abstractions.request_adapter import RequestAdapter
Expand Down Expand Up @@ -44,7 +43,7 @@ def by_access_review_decision_id(self,access_review_decision_id: str) -> AccessR
url_tpl_params["accessReviewDecision%2Did"] = access_review_decision_id
return AccessReviewDecisionItemRequestBuilder(self.request_adapter, url_tpl_params)

async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[AccessReviewDecisionCollectionResponse]:
async def get(self,request_configuration: Optional[AccessReviewDecisionsRequestBuilderGetRequestConfiguration] = None) -> Optional[AccessReviewDecisionCollectionResponse]:
"""
Get entities from accessReviewDecisions
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Expand All @@ -64,7 +63,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None)

return await self.request_adapter.send_async(request_info, AccessReviewDecisionCollectionResponse, error_mapping)

async def post(self,body: Optional[AccessReviewDecision] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[AccessReviewDecision]:
async def post(self,body: Optional[AccessReviewDecision] = None, request_configuration: Optional[AccessReviewDecisionsRequestBuilderPostRequestConfiguration] = None) -> Optional[AccessReviewDecision]:
"""
Add new entity to accessReviewDecisions
param body: The request body
Expand All @@ -87,7 +86,7 @@ async def post(self,body: Optional[AccessReviewDecision] = None, request_configu

return await self.request_adapter.send_async(request_info, AccessReviewDecision, error_mapping)

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation:
def to_get_request_information(self,request_configuration: Optional[AccessReviewDecisionsRequestBuilderGetRequestConfiguration] = None) -> RequestInformation:
"""
Get entities from accessReviewDecisions
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Expand All @@ -98,7 +97,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi
request_info.headers.try_add("Accept", "application/json")
return request_info

def to_post_request_information(self,body: Optional[AccessReviewDecision] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation:
def to_post_request_information(self,body: Optional[AccessReviewDecision] = None, request_configuration: Optional[AccessReviewDecisionsRequestBuilderPostRequestConfiguration] = None) -> RequestInformation:
"""
Add new entity to accessReviewDecisions
param body: The request body
Expand Down Expand Up @@ -188,4 +187,27 @@ def get_query_parameter(self,original_name: Optional[str] = None) -> str:
top: Optional[int] = None


from kiota_abstractions.base_request_configuration import BaseRequestConfiguration

@dataclass
class AccessReviewDecisionsRequestBuilderGetRequestConfiguration(BaseRequestConfiguration):
from kiota_abstractions.base_request_configuration import BaseRequestConfiguration

"""
Configuration for the request such as headers, query parameters, and middleware options.
"""
# Request query parameters
query_parameters: Optional[AccessReviewDecisionsRequestBuilder.AccessReviewDecisionsRequestBuilderGetQueryParameters] = None


from kiota_abstractions.base_request_configuration import BaseRequestConfiguration

@dataclass
class AccessReviewDecisionsRequestBuilderPostRequestConfiguration(BaseRequestConfiguration):
from kiota_abstractions.base_request_configuration import BaseRequestConfiguration

"""
Configuration for the request such as headers, query parameters, and middleware options.
"""


Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from __future__ import annotations
from dataclasses import dataclass, field
from kiota_abstractions.base_request_builder import BaseRequestBuilder
from kiota_abstractions.base_request_configuration import RequestConfiguration
from kiota_abstractions.get_path_parameters import get_path_parameters
from kiota_abstractions.method import Method
from kiota_abstractions.request_adapter import RequestAdapter
Expand All @@ -26,7 +25,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, D
"""
super().__init__(request_adapter, "{+baseurl}/accessReviewDecisions/$count{?%24filter,%24search}", path_parameters)

async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[int]:
async def get(self,request_configuration: Optional[CountRequestBuilderGetRequestConfiguration] = None) -> Optional[int]:
"""
Get the number of the resource
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Expand All @@ -44,7 +43,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None)
raise Exception("Http core is null")
return await self.request_adapter.send_primitive_async(request_info, "int", error_mapping)

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation:
def to_get_request_information(self,request_configuration: Optional[CountRequestBuilderGetRequestConfiguration] = None) -> RequestInformation:
"""
Get the number of the resource
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Expand Down Expand Up @@ -91,4 +90,17 @@ def get_query_parameter(self,original_name: Optional[str] = None) -> str:
search: Optional[str] = None


from kiota_abstractions.base_request_configuration import BaseRequestConfiguration

@dataclass
class CountRequestBuilderGetRequestConfiguration(BaseRequestConfiguration):
from kiota_abstractions.base_request_configuration import BaseRequestConfiguration

"""
Configuration for the request such as headers, query parameters, and middleware options.
"""
# Request query parameters
query_parameters: Optional[CountRequestBuilder.CountRequestBuilderGetQueryParameters] = None



Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from __future__ import annotations
from dataclasses import dataclass, field
from kiota_abstractions.base_request_builder import BaseRequestBuilder
from kiota_abstractions.base_request_configuration import RequestConfiguration
from kiota_abstractions.get_path_parameters import get_path_parameters
from kiota_abstractions.method import Method
from kiota_abstractions.request_adapter import RequestAdapter
Expand All @@ -27,7 +26,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, D
"""
super().__init__(request_adapter, "{+baseurl}/accessReviewDecisions/{accessReviewDecision%2Did}{?%24expand,%24select}", path_parameters)

async def delete(self,request_configuration: Optional[RequestConfiguration] = None) -> None:
async def delete(self,request_configuration: Optional[AccessReviewDecisionItemRequestBuilderDeleteRequestConfiguration] = None) -> None:
"""
Delete entity from accessReviewDecisions
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Expand All @@ -45,7 +44,7 @@ async def delete(self,request_configuration: Optional[RequestConfiguration] = No
raise Exception("Http core is null")
return await self.request_adapter.send_no_response_content_async(request_info, error_mapping)

async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[AccessReviewDecision]:
async def get(self,request_configuration: Optional[AccessReviewDecisionItemRequestBuilderGetRequestConfiguration] = None) -> Optional[AccessReviewDecision]:
"""
Get entity from accessReviewDecisions by key
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Expand All @@ -65,7 +64,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None)

return await self.request_adapter.send_async(request_info, AccessReviewDecision, error_mapping)

async def patch(self,body: Optional[AccessReviewDecision] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[AccessReviewDecision]:
async def patch(self,body: Optional[AccessReviewDecision] = None, request_configuration: Optional[AccessReviewDecisionItemRequestBuilderPatchRequestConfiguration] = None) -> Optional[AccessReviewDecision]:
"""
Update entity in accessReviewDecisions
param body: The request body
Expand All @@ -88,7 +87,7 @@ async def patch(self,body: Optional[AccessReviewDecision] = None, request_config

return await self.request_adapter.send_async(request_info, AccessReviewDecision, error_mapping)

def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation:
def to_delete_request_information(self,request_configuration: Optional[AccessReviewDecisionItemRequestBuilderDeleteRequestConfiguration] = None) -> RequestInformation:
"""
Delete entity from accessReviewDecisions
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Expand All @@ -99,7 +98,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo
request_info.headers.try_add("Accept", "application/json")
return request_info

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation:
def to_get_request_information(self,request_configuration: Optional[AccessReviewDecisionItemRequestBuilderGetRequestConfiguration] = None) -> RequestInformation:
"""
Get entity from accessReviewDecisions by key
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Expand All @@ -110,7 +109,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi
request_info.headers.try_add("Accept", "application/json")
return request_info

def to_patch_request_information(self,body: Optional[AccessReviewDecision] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation:
def to_patch_request_information(self,body: Optional[AccessReviewDecision] = None, request_configuration: Optional[AccessReviewDecisionItemRequestBuilderPatchRequestConfiguration] = None) -> RequestInformation:
"""
Update entity in accessReviewDecisions
param body: The request body
Expand All @@ -135,6 +134,16 @@ def with_url(self,raw_url: Optional[str] = None) -> AccessReviewDecisionItemRequ
raise TypeError("raw_url cannot be null.")
return AccessReviewDecisionItemRequestBuilder(self.request_adapter, raw_url)

from kiota_abstractions.base_request_configuration import BaseRequestConfiguration

@dataclass
class AccessReviewDecisionItemRequestBuilderDeleteRequestConfiguration(BaseRequestConfiguration):
from kiota_abstractions.base_request_configuration import BaseRequestConfiguration

"""
Configuration for the request such as headers, query parameters, and middleware options.
"""

@dataclass
class AccessReviewDecisionItemRequestBuilderGetQueryParameters():
"""
Expand All @@ -161,4 +170,27 @@ def get_query_parameter(self,original_name: Optional[str] = None) -> str:
select: Optional[List[str]] = None


from kiota_abstractions.base_request_configuration import BaseRequestConfiguration

@dataclass
class AccessReviewDecisionItemRequestBuilderGetRequestConfiguration(BaseRequestConfiguration):
from kiota_abstractions.base_request_configuration import BaseRequestConfiguration

"""
Configuration for the request such as headers, query parameters, and middleware options.
"""
# Request query parameters
query_parameters: Optional[AccessReviewDecisionItemRequestBuilder.AccessReviewDecisionItemRequestBuilderGetQueryParameters] = None


from kiota_abstractions.base_request_configuration import BaseRequestConfiguration

@dataclass
class AccessReviewDecisionItemRequestBuilderPatchRequestConfiguration(BaseRequestConfiguration):
from kiota_abstractions.base_request_configuration import BaseRequestConfiguration

"""
Configuration for the request such as headers, query parameters, and middleware options.
"""


Loading

0 comments on commit 4bfc69a

Please sign in to comment.