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

async def delete(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None:
"""
Delete a complianceChange object.
Delete a contentApproval 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/windowsupdates-compliancechange-delete?view=graph-rest-beta
Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-contentapproval-delete?view=graph-rest-beta
"""
request_info = self.to_delete_request_information(
request_configuration
Expand Down Expand Up @@ -73,11 +73,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration[Complian

async def patch(self,body: ComplianceChange, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[ComplianceChange]:
"""
Update the properties of a complianceChange object.
Update the properties of a contentApproval object.
param body: The request body
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[ComplianceChange]
Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-compliancechange-update?view=graph-rest-beta
Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-contentapproval-update?view=graph-rest-beta
"""
if body is None:
raise TypeError("body cannot be null.")
Expand All @@ -97,7 +97,7 @@ async def patch(self,body: ComplianceChange, request_configuration: Optional[Req

def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
"""
Delete a complianceChange object.
Delete a contentApproval object.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
Expand All @@ -119,7 +119,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi

def to_patch_request_information(self,body: ComplianceChange, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
"""
Update the properties of a complianceChange object.
Update the properties of a contentApproval 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
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d

async def post(self,body: CheckMemberGroupsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[CheckMemberGroupsPostResponse]:
"""
Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct.
Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct.
param body: The request body
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[CheckMemberGroupsPostResponse]
Expand All @@ -57,7 +57,7 @@ async def post(self,body: CheckMemberGroupsPostRequestBody, request_configuratio

def to_post_request_information(self,body: CheckMemberGroupsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
"""
Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct.
Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct.
param body: The request body
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 @@ -33,11 +33,11 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d

async def post(self,body: InvitePostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[InviteParticipantsOperation]:
"""
Invite participants to the active call. For more information about how to handle operations, see commsOperation.
Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled.
param body: The request body
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[InviteParticipantsOperation]
Find more info here: https://learn.microsoft.com/graph/api/participant-invite?view=graph-rest-beta
Find more info here: https://learn.microsoft.com/graph/api/participant-delete?view=graph-rest-beta
"""
if body is None:
raise TypeError("body cannot be null.")
Expand All @@ -57,7 +57,7 @@ async def post(self,body: InvitePostRequestBody, request_configuration: Optional

def to_post_request_information(self,body: InvitePostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
"""
Invite participants to the active call. For more information about how to handle operations, see commsOperation.
Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled.
param body: The request body
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 @@ -18,7 +18,11 @@
from ..models.app_role_assignment_collection_response import AppRoleAssignmentCollectionResponse
from ..models.o_data_errors.o_data_error import ODataError
from .count.count_request_builder import CountRequestBuilder
from .delta.delta_request_builder import DeltaRequestBuilder
from .get_by_ids.get_by_ids_request_builder import GetByIdsRequestBuilder
from .get_user_owned_objects.get_user_owned_objects_request_builder import GetUserOwnedObjectsRequestBuilder
from .item.app_role_assignment_item_request_builder import AppRoleAssignmentItemRequestBuilder
from .validate_properties.validate_properties_request_builder import ValidatePropertiesRequestBuilder

class AppRoleAssignmentsRequestBuilder(BaseRequestBuilder):
"""
Expand Down Expand Up @@ -135,6 +139,42 @@ def count(self) -> CountRequestBuilder:

return CountRequestBuilder(self.request_adapter, self.path_parameters)

@property
def delta(self) -> DeltaRequestBuilder:
"""
Provides operations to call the delta method.
"""
from .delta.delta_request_builder import DeltaRequestBuilder

return DeltaRequestBuilder(self.request_adapter, self.path_parameters)

@property
def get_by_ids(self) -> GetByIdsRequestBuilder:
"""
Provides operations to call the getByIds method.
"""
from .get_by_ids.get_by_ids_request_builder import GetByIdsRequestBuilder

return GetByIdsRequestBuilder(self.request_adapter, self.path_parameters)

@property
def get_user_owned_objects(self) -> GetUserOwnedObjectsRequestBuilder:
"""
Provides operations to call the getUserOwnedObjects method.
"""
from .get_user_owned_objects.get_user_owned_objects_request_builder import GetUserOwnedObjectsRequestBuilder

return GetUserOwnedObjectsRequestBuilder(self.request_adapter, self.path_parameters)

@property
def validate_properties(self) -> ValidatePropertiesRequestBuilder:
"""
Provides operations to call the validateProperties method.
"""
from .validate_properties.validate_properties_request_builder import ValidatePropertiesRequestBuilder

return ValidatePropertiesRequestBuilder(self.request_adapter, self.path_parameters)

@dataclass
class AppRoleAssignmentsRequestBuilderGetQueryParameters():
"""
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
from __future__ import annotations
from collections.abc import Callable
from dataclasses import dataclass, field
from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter
from typing import Any, Optional, TYPE_CHECKING, Union

if TYPE_CHECKING:
from ...models.base_delta_function_response import BaseDeltaFunctionResponse
from ...models.directory_object import DirectoryObject

from ...models.base_delta_function_response import BaseDeltaFunctionResponse

@dataclass
class DeltaGetResponse(BaseDeltaFunctionResponse, Parsable):
# The value property
value: Optional[list[DirectoryObject]] = None

@staticmethod
def create_from_discriminator_value(parse_node: ParseNode) -> DeltaGetResponse:
"""
Creates a new instance of the appropriate class based on discriminator value
param parse_node: The parse node to use to read the discriminator value and create the object
Returns: DeltaGetResponse
"""
if parse_node is None:
raise TypeError("parse_node cannot be null.")
return DeltaGetResponse()

def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
"""
The deserialization information for the current model
Returns: dict[str, Callable[[ParseNode], None]]
"""
from ...models.base_delta_function_response import BaseDeltaFunctionResponse
from ...models.directory_object import DirectoryObject

from ...models.base_delta_function_response import BaseDeltaFunctionResponse
from ...models.directory_object import DirectoryObject

fields: dict[str, Callable[[Any], None]] = {
"value": lambda n : setattr(self, 'value', n.get_collection_of_object_values(DirectoryObject)),
}
super_fields = super().get_field_deserializers()
fields.update(super_fields)
return fields

def serialize(self,writer: SerializationWriter) -> None:
"""
Serializes information the current object
param writer: Serialization writer to use to serialize this model
Returns: None
"""
if writer is None:
raise TypeError("writer cannot be null.")
super().serialize(writer)
writer.write_collection_of_object_values("value", self.value)


Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
from __future__ import annotations
from collections.abc import Callable
from dataclasses import dataclass, field
from kiota_abstractions.base_request_builder import BaseRequestBuilder
from kiota_abstractions.base_request_configuration import RequestConfiguration
from kiota_abstractions.default_query_parameters import QueryParameters
from kiota_abstractions.get_path_parameters import get_path_parameters
from kiota_abstractions.method import Method
from kiota_abstractions.request_adapter import RequestAdapter
from kiota_abstractions.request_information import RequestInformation
from kiota_abstractions.request_option import RequestOption
from kiota_abstractions.serialization import Parsable, ParsableFactory
from typing import Any, Optional, TYPE_CHECKING, Union
from warnings import warn

if TYPE_CHECKING:
from ...models.o_data_errors.o_data_error import ODataError
from .delta_get_response import DeltaGetResponse

class DeltaRequestBuilder(BaseRequestBuilder):
"""
Provides operations to call the delta method.
"""
def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None:
"""
Instantiates a new DeltaRequestBuilder and sets the default values.
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.
Returns: None
"""
super().__init__(request_adapter, "{+baseurl}/appRoleAssignments/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", path_parameters)

async def get(self,request_configuration: Optional[RequestConfiguration[DeltaRequestBuilderGetQueryParameters]] = None) -> Optional[DeltaGetResponse]:
"""
Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information, see Use delta query to track changes in Microsoft Graph data for details.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[DeltaGetResponse]
Find more info here: https://learn.microsoft.com/graph/api/directoryobject-delta?view=graph-rest-beta
"""
request_info = self.to_get_request_information(
request_configuration
)
from ...models.o_data_errors.o_data_error import ODataError

error_mapping: dict[str, type[ParsableFactory]] = {
"XXX": ODataError,
}
if not self.request_adapter:
raise Exception("Http core is null")
from .delta_get_response import DeltaGetResponse

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

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[DeltaRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information, see Use delta query to track changes in Microsoft Graph data for details.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters)
request_info.configure(request_configuration)
request_info.headers.try_add("Accept", "application/json")
return request_info

def with_url(self,raw_url: str) -> DeltaRequestBuilder:
"""
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: DeltaRequestBuilder
"""
if raw_url is None:
raise TypeError("raw_url cannot be null.")
return DeltaRequestBuilder(self.request_adapter, raw_url)

@dataclass
class DeltaRequestBuilderGetQueryParameters():
"""
Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information, see Use delta query to track changes in Microsoft Graph data for details.
"""
def get_query_parameter(self,original_name: str) -> str:
"""
Maps the query parameters names to their encoded names for the URI template parsing.
param original_name: The original query parameter name in the class.
Returns: str
"""
if original_name is None:
raise TypeError("original_name cannot be null.")
if original_name == "count":
return "%24count"
if original_name == "expand":
return "%24expand"
if original_name == "filter":
return "%24filter"
if original_name == "orderby":
return "%24orderby"
if original_name == "search":
return "%24search"
if original_name == "select":
return "%24select"
if original_name == "skip":
return "%24skip"
if original_name == "top":
return "%24top"
return original_name

# Include count of items
count: Optional[bool] = None

# Expand related entities
expand: Optional[list[str]] = None

# Filter items by property values
filter: Optional[str] = None

# Order items by property values
orderby: Optional[list[str]] = None

# Search items by search phrases
search: Optional[str] = None

# Select properties to be returned
select: Optional[list[str]] = None

# Skip the first n items
skip: Optional[int] = None

# Show only the first n items
top: Optional[int] = None


@dataclass
class DeltaRequestBuilderGetRequestConfiguration(RequestConfiguration[DeltaRequestBuilderGetQueryParameters]):
"""
Configuration for the request such as headers, query parameters, and middleware options.
"""
warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)


Loading
Loading