Skip to content
Open
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 @@ -31,7 +31,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d

async def get(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[bytes]:
"""
Provide the Post-Incident Review (PIR) document of a specified service issue for tenant. An issue only with status of PostIncidentReviewPublished indicates that the PIR document exists for the issue. The operation returns an error if the specified issue doesn't exist for the tenant or if PIR document does not exist for the issue.
Provide the Post-Incident Review (PIR) document of a specified service issue for tenant. An issue only with status of PostIncidentReviewPublished indicates that the PIR document exists for the issue. The operation returns an error if the specified issue doesn't exist for the tenant or if PIR document doesn't exist for the issue.
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/servicehealthissue-incidentreport?view=graph-rest-1.0
Expand All @@ -50,7 +50,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration[QueryPar

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
"""
Provide the Post-Incident Review (PIR) document of a specified service issue for tenant. An issue only with status of PostIncidentReviewPublished indicates that the PIR document exists for the issue. The operation returns an error if the specified issue doesn't exist for the tenant or if PIR document does not exist for the issue.
Provide the Post-Incident Review (PIR) document of a specified service issue for tenant. An issue only with status of PostIncidentReviewPublished indicates that the PIR document exists for the issue. The operation returns an error if the specified issue doesn't exist for the tenant or if PIR document doesn't exist for the issue.
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 @@ -31,7 +31,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d

async def get(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[bytes]:
"""
Provide the Post-Incident Review (PIR) document of a specified service issue for tenant. An issue only with status of PostIncidentReviewPublished indicates that the PIR document exists for the issue. The operation returns an error if the specified issue doesn't exist for the tenant or if PIR document does not exist for the issue.
Provide the Post-Incident Review (PIR) document of a specified service issue for tenant. An issue only with status of PostIncidentReviewPublished indicates that the PIR document exists for the issue. The operation returns an error if the specified issue doesn't exist for the tenant or if PIR document doesn't exist for the issue.
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/servicehealthissue-incidentreport?view=graph-rest-1.0
Expand All @@ -50,7 +50,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration[QueryPar

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
"""
Provide the Post-Incident Review (PIR) document of a specified service issue for tenant. An issue only with status of PostIncidentReviewPublished indicates that the PIR document exists for the issue. The operation returns an error if the specified issue doesn't exist for the tenant or if PIR document does not exist for the issue.
Provide the Post-Incident Review (PIR) document of a specified service issue for tenant. An issue only with status of PostIncidentReviewPublished indicates that the PIR document exists for the issue. The operation returns an error if the specified issue doesn't exist for the tenant or if PIR document doesn't exist for the issue.
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 @@ -51,7 +51,7 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query

async def get(self,request_configuration: Optional[RequestConfiguration[ServiceHealthIssueItemRequestBuilderGetQueryParameters]] = None) -> Optional[ServiceHealthIssue]:
"""
Retrieve the properties and relationships of a serviceHealthIssue object. This operation retrieves a specified service health issue for tenant. The operation returns an error if the issue does not exist for the tenant.
Retrieve the properties and relationships of a serviceHealthIssue object. This operation retrieves a specified service health issue for tenant. The operation returns an error if the issue doesn't exist for the tenant.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[ServiceHealthIssue]
Find more info here: https://learn.microsoft.com/graph/api/servicehealthissue-get?view=graph-rest-1.0
Expand Down Expand Up @@ -106,7 +106,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[ServiceHealthIssueItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
Retrieve the properties and relationships of a serviceHealthIssue object. This operation retrieves a specified service health issue for tenant. The operation returns an error if the issue does not exist for the tenant.
Retrieve the properties and relationships of a serviceHealthIssue object. This operation retrieves a specified service health issue for tenant. The operation returns an error if the issue doesn't exist for the tenant.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
Expand Down Expand Up @@ -159,7 +159,7 @@ class ServiceHealthIssueItemRequestBuilderDeleteRequestConfiguration(RequestConf
@dataclass
class ServiceHealthIssueItemRequestBuilderGetQueryParameters():
"""
Retrieve the properties and relationships of a serviceHealthIssue object. This operation retrieves a specified service health issue for tenant. The operation returns an error if the issue does not exist for the tenant.
Retrieve the properties and relationships of a serviceHealthIssue object. This operation retrieves a specified service health issue for tenant. The operation returns an error if the issue doesn't exist for the tenant.
"""
def get_query_parameter(self,original_name: str) -> str:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class ArchivePostResponse(AdditionalDataHolder, BackedModel, Parsable):
# Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additional_data: dict[str, Any] = field(default_factory=dict)
# The value property
value: Optional[bool] = None
value: Optional[bool] = False

@staticmethod
def create_from_discriminator_value(parse_node: ParseNode) -> ArchivePostResponse:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class FavoritePostResponse(AdditionalDataHolder, BackedModel, Parsable):
# Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additional_data: dict[str, Any] = field(default_factory=dict)
# The value property
value: Optional[bool] = None
value: Optional[bool] = False

@staticmethod
def create_from_discriminator_value(parse_node: ParseNode) -> FavoritePostResponse:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query

async def get(self,request_configuration: Optional[RequestConfiguration[ServiceUpdateMessageItemRequestBuilderGetQueryParameters]] = None) -> Optional[ServiceUpdateMessage]:
"""
Retrieve the properties and relationships of a serviceUpdateMessage object. This operation retrieves a specified service update message for the tenant. The operation returns an error if the message does not exist for the tenant.
Retrieve the properties and relationships of a serviceUpdateMessage object. This operation retrieves a specified service update message for the tenant. The operation returns an error if the message doesn't exist for the tenant.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[ServiceUpdateMessage]
Find more info here: https://learn.microsoft.com/graph/api/serviceupdatemessage-get?view=graph-rest-1.0
Expand Down Expand Up @@ -107,7 +107,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[ServiceUpdateMessageItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
Retrieve the properties and relationships of a serviceUpdateMessage object. This operation retrieves a specified service update message for the tenant. The operation returns an error if the message does not exist for the tenant.
Retrieve the properties and relationships of a serviceUpdateMessage object. This operation retrieves a specified service update message for the tenant. The operation returns an error if the message doesn't exist for the tenant.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
Expand Down Expand Up @@ -169,7 +169,7 @@ class ServiceUpdateMessageItemRequestBuilderDeleteRequestConfiguration(RequestCo
@dataclass
class ServiceUpdateMessageItemRequestBuilderGetQueryParameters():
"""
Retrieve the properties and relationships of a serviceUpdateMessage object. This operation retrieves a specified service update message for the tenant. The operation returns an error if the message does not exist for the tenant.
Retrieve the properties and relationships of a serviceUpdateMessage object. This operation retrieves a specified service update message for the tenant. The operation returns an error if the message doesn't exist for the tenant.
"""
def get_query_parameter(self,original_name: str) -> str:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class MarkReadPostResponse(AdditionalDataHolder, BackedModel, Parsable):
# Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additional_data: dict[str, Any] = field(default_factory=dict)
# The value property
value: Optional[bool] = None
value: Optional[bool] = False

@staticmethod
def create_from_discriminator_value(parse_node: ParseNode) -> MarkReadPostResponse:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class MarkUnreadPostResponse(AdditionalDataHolder, BackedModel, Parsable):
# Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additional_data: dict[str, Any] = field(default_factory=dict)
# The value property
value: Optional[bool] = None
value: Optional[bool] = False

@staticmethod
def create_from_discriminator_value(parse_node: ParseNode) -> MarkUnreadPostResponse:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class UnarchivePostResponse(AdditionalDataHolder, BackedModel, Parsable):
# Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additional_data: dict[str, Any] = field(default_factory=dict)
# The value property
value: Optional[bool] = None
value: Optional[bool] = False

@staticmethod
def create_from_discriminator_value(parse_node: ParseNode) -> UnarchivePostResponse:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class UnfavoritePostResponse(AdditionalDataHolder, BackedModel, Parsable):
# Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additional_data: dict[str, Any] = field(default_factory=dict)
# The value property
value: Optional[bool] = None
value: Optional[bool] = False

@staticmethod
def create_from_discriminator_value(parse_node: ParseNode) -> UnfavoritePostResponse:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
from .....models.o_data_errors.o_data_error import ODataError
from .get_policy_id_with_type_with_name_get_response import GetPolicyIdWithTypeWithNameGetResponse

class MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder(BaseRequestBuilder):
class MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWit_a7f81604(BaseRequestBuilder):
"""
Provides operations to call the getPolicyId method.
Provides operations to call the getPolicyId method. Original name: MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder
"""
def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]], name: Optional[str] = None, type: Optional[str] = None) -> None:
"""
Instantiates a new MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder and sets the default values.
Instantiates a new MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWit_a7f81604 and sets the default values.
param name: Usage: name='{name}'
param path_parameters: The raw url or the url-template parameters for the request.
param request_adapter: The request adapter to use to execute the requests.
Expand Down Expand Up @@ -67,15 +67,15 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi
request_info.headers.try_add("Accept", "application/json")
return request_info

def with_url(self,raw_url: str) -> MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder:
def with_url(self,raw_url: str) -> MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWit_a7f81604:
"""
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
param raw_url: The raw URL to use for the request builder.
Returns: MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder
Returns: MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWit_a7f81604
"""
if raw_url is None:
raise TypeError("raw_url cannot be null.")
return MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder(self.request_adapter, raw_url)
return MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWit_a7f81604(self.request_adapter, raw_url)

@dataclass
class MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilderGetQueryParameters():
Expand Down
10 changes: 5 additions & 5 deletions msgraph/generated/admin/teams/policy/policy_request_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
if TYPE_CHECKING:
from ....models.o_data_errors.o_data_error import ODataError
from ....models.teams_administration.teams_policy_assignment import TeamsPolicyAssignment
from .microsoft_graph_teams_administration_get_policy_id_with_type_with_name.microsoft_graph_teams_administration_get_policy_id_with_type_with_name_request_builder import MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder
from .microsoft_graph_teams_administration_get_policy_id_with_type_with_name.microsoft_graph_teams_administration_get_policy_id_with_type_wit_a7f81604 import MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWit_a7f81604
from .user_assignments.user_assignments_request_builder import UserAssignmentsRequestBuilder

class PolicyRequestBuilder(BaseRequestBuilder):
Expand Down Expand Up @@ -70,20 +70,20 @@ async def get(self,request_configuration: Optional[RequestConfiguration[PolicyRe

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

def microsoft_graph_teams_administration_get_policy_id_with_type_with_name(self,name: str, type: str) -> MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder:
def microsoft_graph_teams_administration_get_policy_id_with_type_with_name(self,name: str, type: str) -> MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWit_a7f81604:
"""
Provides operations to call the getPolicyId method.
param name: Usage: name='{name}'
param type: Usage: type='{type}'
Returns: MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder
Returns: MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWit_a7f81604
"""
if name is None:
raise TypeError("name cannot be null.")
if type is None:
raise TypeError("type cannot be null.")
from .microsoft_graph_teams_administration_get_policy_id_with_type_with_name.microsoft_graph_teams_administration_get_policy_id_with_type_with_name_request_builder import MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder
from .microsoft_graph_teams_administration_get_policy_id_with_type_with_name.microsoft_graph_teams_administration_get_policy_id_with_type_wit_a7f81604 import MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWit_a7f81604

return MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWithNameRequestBuilder(self.request_adapter, self.path_parameters, name, type)
return MicrosoftGraphTeamsAdministrationGetPolicyIdWithTypeWit_a7f81604(self.request_adapter, self.path_parameters, name, type)

async def patch(self,body: TeamsPolicyAssignment, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[TeamsPolicyAssignment]:
"""
Expand Down
Loading
Loading