Skip to content
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,10 @@ def by_governance_invitation_id(self,governance_invitation_id: str) -> Governanc

async def get(self,request_configuration: Optional[RequestConfiguration[GovernanceInvitationsRequestBuilderGetQueryParameters]] = None) -> Optional[GovernanceInvitationCollectionResponse]:
"""
Get governanceInvitations from directory
Get a list of the governanceInvitation objects and their properties. This API method returns all governance invitations where the calling tenant is either the governing tenant or the governed tenant.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[GovernanceInvitationCollectionResponse]
Find more info here: https://learn.microsoft.com/graph/api/tenantgovernanceservices-list-governanceinvitations?view=graph-rest-1.0
"""
request_info = self.to_get_request_information(
request_configuration
Expand All @@ -69,10 +70,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration[Governan

async def post(self,body: GovernanceInvitation, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[GovernanceInvitation]:
"""
Create new navigation property to governanceInvitations for directory
Create a new governanceInvitation to establish a governance relationship with a governed tenant. Invitations provide an alternative mechanism to governance requests for initiating relationships.
param body: The request body
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[GovernanceInvitation]
Find more info here: https://learn.microsoft.com/graph/api/tenantgovernanceservices-post-governanceinvitations?view=graph-rest-1.0
"""
if body is None:
raise TypeError("body cannot be null.")
Expand All @@ -92,7 +94,7 @@ async def post(self,body: GovernanceInvitation, request_configuration: Optional[

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[GovernanceInvitationsRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
Get governanceInvitations from directory
Get a list of the governanceInvitation objects and their properties. This API method returns all governance invitations where the calling tenant is either the governing tenant or the governed tenant.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
Expand All @@ -103,7 +105,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi

def to_post_request_information(self,body: GovernanceInvitation, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
"""
Create new navigation property to governanceInvitations for directory
Create a new governanceInvitation to establish a governance relationship with a governed tenant. Invitations provide an alternative mechanism to governance requests for initiating relationships.
param body: The request body
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
Expand Down Expand Up @@ -138,7 +140,7 @@ def count(self) -> CountRequestBuilder:
@dataclass
class GovernanceInvitationsRequestBuilderGetQueryParameters():
"""
Get governanceInvitations from directory
Get a list of the governanceInvitation objects and their properties. This API method returns all governance invitations where the calling tenant is either the governing tenant or the governed tenant.
"""
def get_query_parameter(self,original_name: str) -> str:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d

async def delete(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None:
"""
Delete navigation property governanceInvitations for directory
Delete a governanceInvitation 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/tenantgovernanceservices-governanceinvitation-delete?view=graph-rest-1.0
"""
request_info = self.to_delete_request_information(
request_configuration
Expand All @@ -50,9 +51,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query

async def get(self,request_configuration: Optional[RequestConfiguration[GovernanceInvitationItemRequestBuilderGetQueryParameters]] = None) -> Optional[GovernanceInvitation]:
"""
Get governanceInvitations from directory
Read the properties of a governanceInvitation object.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[GovernanceInvitation]
Find more info here: https://learn.microsoft.com/graph/api/tenantgovernanceservices-governanceinvitation-get?view=graph-rest-1.0
"""
request_info = self.to_get_request_information(
request_configuration
Expand Down Expand Up @@ -93,7 +95,7 @@ async def patch(self,body: GovernanceInvitation, request_configuration: Optional

def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
"""
Delete navigation property governanceInvitations for directory
Delete a governanceInvitation object.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
Expand All @@ -104,7 +106,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[GovernanceInvitationItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
Get governanceInvitations from directory
Read the properties of a governanceInvitation object.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
Expand Down Expand Up @@ -148,7 +150,7 @@ class GovernanceInvitationItemRequestBuilderDeleteRequestConfiguration(RequestCo
@dataclass
class GovernanceInvitationItemRequestBuilderGetQueryParameters():
"""
Get governanceInvitations from directory
Read the properties of a governanceInvitation object.
"""
def get_query_parameter(self,original_name: str) -> str:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,10 @@ def by_tenant_governance_policy_template_id(self,tenant_governance_policy_templa

async def get(self,request_configuration: Optional[RequestConfiguration[GovernancePolicyTemplatesRequestBuilderGetQueryParameters]] = None) -> Optional[TenantGovernancePolicyTemplateCollectionResponse]:
"""
Get governancePolicyTemplates from directory
Get a list of the tenantGovernancePolicyTemplate objects and their properties. Policy templates define the configuration that is applied when establishing governance relationships.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[TenantGovernancePolicyTemplateCollectionResponse]
Find more info here: https://learn.microsoft.com/graph/api/tenantgovernanceservices-list-governancepolicytemplates?view=graph-rest-1.0
"""
request_info = self.to_get_request_information(
request_configuration
Expand All @@ -69,10 +70,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration[Governan

async def post(self,body: TenantGovernancePolicyTemplate, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[TenantGovernancePolicyTemplate]:
"""
Create new navigation property to governancePolicyTemplates for directory
Create a new tenantGovernancePolicyTemplate that defines the configuration for establishing governance relationships, including role assignments and applications to provision.
param body: The request body
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[TenantGovernancePolicyTemplate]
Find more info here: https://learn.microsoft.com/graph/api/tenantgovernanceservices-post-governancepolicytemplates?view=graph-rest-1.0
"""
if body is None:
raise TypeError("body cannot be null.")
Expand All @@ -92,7 +94,7 @@ async def post(self,body: TenantGovernancePolicyTemplate, request_configuration:

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[GovernancePolicyTemplatesRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
Get governancePolicyTemplates from directory
Get a list of the tenantGovernancePolicyTemplate objects and their properties. Policy templates define the configuration that is applied when establishing governance relationships.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
Expand All @@ -103,7 +105,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi

def to_post_request_information(self,body: TenantGovernancePolicyTemplate, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
"""
Create new navigation property to governancePolicyTemplates for directory
Create a new tenantGovernancePolicyTemplate that defines the configuration for establishing governance relationships, including role assignments and applications to provision.
param body: The request body
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
Expand Down Expand Up @@ -138,7 +140,7 @@ def count(self) -> CountRequestBuilder:
@dataclass
class GovernancePolicyTemplatesRequestBuilderGetQueryParameters():
"""
Get governancePolicyTemplates from directory
Get a list of the tenantGovernancePolicyTemplate objects and their properties. Policy templates define the configuration that is applied when establishing governance relationships.
"""
def get_query_parameter(self,original_name: str) -> str:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d

async def delete(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None:
"""
Delete navigation property governancePolicyTemplates for directory
Delete a tenantGovernancePolicyTemplate object. You can't delete the default template or templates currently used by active relationships.
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/tenantgovernanceservices-delete-governancepolicytemplates?view=graph-rest-1.0
"""
request_info = self.to_delete_request_information(
request_configuration
Expand All @@ -50,9 +51,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query

async def get(self,request_configuration: Optional[RequestConfiguration[TenantGovernancePolicyTemplateItemRequestBuilderGetQueryParameters]] = None) -> Optional[TenantGovernancePolicyTemplate]:
"""
Get governancePolicyTemplates from directory
Read the properties of a tenantGovernancePolicyTemplate object.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[TenantGovernancePolicyTemplate]
Find more info here: https://learn.microsoft.com/graph/api/tenantgovernanceservices-governancepolicytemplate-get?view=graph-rest-1.0
"""
request_info = self.to_get_request_information(
request_configuration
Expand All @@ -70,10 +72,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration[TenantGo

async def patch(self,body: TenantGovernancePolicyTemplate, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[TenantGovernancePolicyTemplate]:
"""
Update the navigation property governancePolicyTemplates in directory
Update the properties of a tenantGovernancePolicyTemplate object.
param body: The request body
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[TenantGovernancePolicyTemplate]
Find more info here: https://learn.microsoft.com/graph/api/tenantgovernanceservices-governancepolicytemplate-update?view=graph-rest-1.0
"""
if body is None:
raise TypeError("body cannot be null.")
Expand All @@ -93,7 +96,7 @@ async def patch(self,body: TenantGovernancePolicyTemplate, request_configuration

def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
"""
Delete navigation property governancePolicyTemplates for directory
Delete a tenantGovernancePolicyTemplate object. You can't delete the default template or templates currently used by active relationships.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
Expand All @@ -104,7 +107,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[TenantGovernancePolicyTemplateItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
Get governancePolicyTemplates from directory
Read the properties of a tenantGovernancePolicyTemplate object.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
Expand All @@ -115,7 +118,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi

def to_patch_request_information(self,body: TenantGovernancePolicyTemplate, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
"""
Update the navigation property governancePolicyTemplates in directory
Update the properties of a tenantGovernancePolicyTemplate object.
param body: The request body
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
Expand Down Expand Up @@ -148,7 +151,7 @@ class TenantGovernancePolicyTemplateItemRequestBuilderDeleteRequestConfiguration
@dataclass
class TenantGovernancePolicyTemplateItemRequestBuilderGetQueryParameters():
"""
Get governancePolicyTemplates from directory
Read the properties of a tenantGovernancePolicyTemplate object.
"""
def get_query_parameter(self,original_name: str) -> str:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,10 @@ def by_governance_relationship_id(self,governance_relationship_id: str) -> Gover

async def get(self,request_configuration: Optional[RequestConfiguration[GovernanceRelationshipsRequestBuilderGetQueryParameters]] = None) -> Optional[GovernanceRelationshipCollectionResponse]:
"""
Get governanceRelationships from directory
Get a list of the governanceRelationship objects and their properties. This API method returns all governance relationships where the calling tenant is either the governing tenant or the governed tenant.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[GovernanceRelationshipCollectionResponse]
Find more info here: https://learn.microsoft.com/graph/api/tenantgovernanceservices-list-governancerelationships?view=graph-rest-1.0
"""
request_info = self.to_get_request_information(
request_configuration
Expand Down Expand Up @@ -92,7 +93,7 @@ async def post(self,body: GovernanceRelationship, request_configuration: Optiona

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[GovernanceRelationshipsRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
Get governanceRelationships from directory
Get a list of the governanceRelationship objects and their properties. This API method returns all governance relationships where the calling tenant is either the governing tenant or the governed tenant.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
Expand Down Expand Up @@ -138,7 +139,7 @@ def count(self) -> CountRequestBuilder:
@dataclass
class GovernanceRelationshipsRequestBuilderGetQueryParameters():
"""
Get governanceRelationships from directory
Get a list of the governanceRelationship objects and their properties. This API method returns all governance relationships where the calling tenant is either the governing tenant or the governed tenant.
"""
def get_query_parameter(self,original_name: str) -> str:
"""
Expand Down
Loading
Loading