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
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 @@ -50,7 +50,7 @@ def by_mailbox_folder_id(self,mailbox_folder_id: str) -> MailboxFolderItemReques

async def get(self,request_configuration: Optional[RequestConfiguration[FoldersRequestBuilderGetQueryParameters]] = None) -> Optional[MailboxFolderCollectionResponse]:
"""
Get all the mailboxFolder objects in the specified mailbox, including any search folders.
Get all the mailboxFolder objects in the specified mailbox, including any search folders. By default, hidden folders aren't returned. To include them, specify includeHiddenFolders=true.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[MailboxFolderCollectionResponse]
Find more info here: https://learn.microsoft.com/graph/api/mailbox-list-folders?view=graph-rest-beta
Expand Down Expand Up @@ -95,7 +95,7 @@ async def post(self,body: MailboxFolder, request_configuration: Optional[Request

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[FoldersRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
Get all the mailboxFolder objects in the specified mailbox, including any search folders.
Get all the mailboxFolder objects in the specified mailbox, including any search folders. By default, hidden folders aren't returned. To include them, specify includeHiddenFolders=true.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
Expand Down Expand Up @@ -150,7 +150,7 @@ def delta(self) -> DeltaRequestBuilder:
@dataclass
class FoldersRequestBuilderGetQueryParameters():
"""
Get all the mailboxFolder objects in the specified mailbox, including any search folders.
Get all the mailboxFolder objects in the specified mailbox, including any search folders. By default, hidden folders aren't returned. To include them, specify includeHiddenFolders=true.
"""
def get_query_parameter(self,original_name: str) -> str:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def by_mailbox_folder_id1(self,mailbox_folder_id1: str) -> MailboxFolderItemRequ

async def get(self,request_configuration: Optional[RequestConfiguration[ChildFoldersRequestBuilderGetQueryParameters]] = None) -> Optional[MailboxFolderCollectionResponse]:
"""
Get the mailboxFolder collection under the specified mailboxFolder in a mailbox.
Get the mailboxFolder collection under the specified mailboxFolder in a mailbox. By default, hidden child folders aren't returned. To include them, specify includeHiddenFolders=true.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[MailboxFolderCollectionResponse]
Find more info here: https://learn.microsoft.com/graph/api/mailboxfolder-list-childfolders?view=graph-rest-beta
Expand Down Expand Up @@ -94,7 +94,7 @@ async def post(self,body: MailboxFolder, request_configuration: Optional[Request

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[ChildFoldersRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
Get the mailboxFolder collection under the specified mailboxFolder in a mailbox.
Get the mailboxFolder collection under the specified mailboxFolder in a mailbox. By default, hidden child folders aren't returned. To include them, specify includeHiddenFolders=true.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
Expand Down Expand Up @@ -149,7 +149,7 @@ def delta(self) -> DeltaRequestBuilder:
@dataclass
class ChildFoldersRequestBuilderGetQueryParameters():
"""
Get the mailboxFolder collection under the specified mailboxFolder in a mailbox.
Get the mailboxFolder collection under the specified mailboxFolder in a mailbox. By default, hidden child folders aren't returned. To include them, specify includeHiddenFolders=true.
"""
def get_query_parameter(self,original_name: str) -> str:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def by_api_usage_report_enablement_status_metric(self,api_usage_report_enablemen

async def get(self,request_configuration: Optional[RequestConfiguration[ApiUsageReportMetricsRequestBuilderGetQueryParameters]] = None) -> Optional[ApiUsageReportEnablementStatusCollectionResponse]:
"""
Get the list of SharePoint API usage report metrics and their enablement status for the tenant. The supported metrics are egressReport and throttlingReport.
Get the list of SharePoint API usage report metrics and their enablement status for the tenant. The supported metrics are egressReport, sharePointServicePrioritizationReport, and throttlingReport.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[ApiUsageReportEnablementStatusCollectionResponse]
Find more info here: https://learn.microsoft.com/graph/api/sharepointreportsettings-list-apiusagereportmetrics?view=graph-rest-beta
Expand Down Expand Up @@ -93,7 +93,7 @@ async def post(self,body: ApiUsageReportEnablementStatus, request_configuration:

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[ApiUsageReportMetricsRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
Get the list of SharePoint API usage report metrics and their enablement status for the tenant. The supported metrics are egressReport and throttlingReport.
Get the list of SharePoint API usage report metrics and their enablement status for the tenant. The supported metrics are egressReport, sharePointServicePrioritizationReport, and throttlingReport.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
Expand Down Expand Up @@ -139,7 +139,7 @@ def count(self) -> CountRequestBuilder:
@dataclass
class ApiUsageReportMetricsRequestBuilderGetQueryParameters():
"""
Get the list of SharePoint API usage report metrics and their enablement status for the tenant. The supported metrics are egressReport and throttlingReport.
Get the list of SharePoint API usage report metrics and their enablement status for the tenant. The supported metrics are egressReport, sharePointServicePrioritizationReport, and throttlingReport.
"""
def get_query_parameter(self,original_name: str) -> str:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ class SetReactionPostRequestBody(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 displayName property
display_name: Optional[str] = None
# The reactionId property
reaction_id: Optional[str] = None
# The reactionType property
reaction_type: Optional[str] = None

Expand All @@ -32,6 +36,8 @@ def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
Returns: dict[str, Callable[[ParseNode], None]]
"""
fields: dict[str, Callable[[Any], None]] = {
"displayName": lambda n : setattr(self, 'display_name', n.get_str_value()),
"reactionId": lambda n : setattr(self, 'reaction_id', n.get_str_value()),
"reactionType": lambda n : setattr(self, 'reaction_type', n.get_str_value()),
}
return fields
Expand All @@ -44,6 +50,8 @@ def serialize(self,writer: SerializationWriter) -> None:
"""
if writer is None:
raise TypeError("writer cannot be null.")
writer.write_str_value("displayName", self.display_name)
writer.write_str_value("reactionId", self.reaction_id)
writer.write_str_value("reactionType", self.reaction_type)
writer.write_additional_data_value(self.additional_data)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ class UnsetReactionPostRequestBody(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 displayName property
display_name: Optional[str] = None
# The reactionId property
reaction_id: Optional[str] = None
# The reactionType property
reaction_type: Optional[str] = None

Expand All @@ -32,6 +36,8 @@ def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
Returns: dict[str, Callable[[ParseNode], None]]
"""
fields: dict[str, Callable[[Any], None]] = {
"displayName": lambda n : setattr(self, 'display_name', n.get_str_value()),
"reactionId": lambda n : setattr(self, 'reaction_id', n.get_str_value()),
"reactionType": lambda n : setattr(self, 'reaction_type', n.get_str_value()),
}
return fields
Expand All @@ -44,6 +50,8 @@ def serialize(self,writer: SerializationWriter) -> None:
"""
if writer is None:
raise TypeError("writer cannot be null.")
writer.write_str_value("displayName", self.display_name)
writer.write_str_value("reactionId", self.reaction_id)
writer.write_str_value("reactionType", self.reaction_type)
writer.write_additional_data_value(self.additional_data)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ class SetReactionPostRequestBody(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 displayName property
display_name: Optional[str] = None
# The reactionId property
reaction_id: Optional[str] = None
# The reactionType property
reaction_type: Optional[str] = None

Expand All @@ -32,6 +36,8 @@ def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
Returns: dict[str, Callable[[ParseNode], None]]
"""
fields: dict[str, Callable[[Any], None]] = {
"displayName": lambda n : setattr(self, 'display_name', n.get_str_value()),
"reactionId": lambda n : setattr(self, 'reaction_id', n.get_str_value()),
"reactionType": lambda n : setattr(self, 'reaction_type', n.get_str_value()),
}
return fields
Expand All @@ -44,6 +50,8 @@ def serialize(self,writer: SerializationWriter) -> None:
"""
if writer is None:
raise TypeError("writer cannot be null.")
writer.write_str_value("displayName", self.display_name)
writer.write_str_value("reactionId", self.reaction_id)
writer.write_str_value("reactionType", self.reaction_type)
writer.write_additional_data_value(self.additional_data)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ class UnsetReactionPostRequestBody(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 displayName property
display_name: Optional[str] = None
# The reactionId property
reaction_id: Optional[str] = None
# The reactionType property
reaction_type: Optional[str] = None

Expand All @@ -32,6 +36,8 @@ def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
Returns: dict[str, Callable[[ParseNode], None]]
"""
fields: dict[str, Callable[[Any], None]] = {
"displayName": lambda n : setattr(self, 'display_name', n.get_str_value()),
"reactionId": lambda n : setattr(self, 'reaction_id', n.get_str_value()),
"reactionType": lambda n : setattr(self, 'reaction_type', n.get_str_value()),
}
return fields
Expand All @@ -44,6 +50,8 @@ def serialize(self,writer: SerializationWriter) -> None:
"""
if writer is None:
raise TypeError("writer cannot be null.")
writer.write_str_value("displayName", self.display_name)
writer.write_str_value("reactionId", self.reaction_id)
writer.write_str_value("reactionType", self.reaction_type)
writer.write_additional_data_value(self.additional_data)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ class SetReactionPostRequestBody(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 displayName property
display_name: Optional[str] = None
# The reactionId property
reaction_id: Optional[str] = None
# The reactionType property
reaction_type: Optional[str] = None

Expand All @@ -32,6 +36,8 @@ def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
Returns: dict[str, Callable[[ParseNode], None]]
"""
fields: dict[str, Callable[[Any], None]] = {
"displayName": lambda n : setattr(self, 'display_name', n.get_str_value()),
"reactionId": lambda n : setattr(self, 'reaction_id', n.get_str_value()),
"reactionType": lambda n : setattr(self, 'reaction_type', n.get_str_value()),
}
return fields
Expand All @@ -44,6 +50,8 @@ def serialize(self,writer: SerializationWriter) -> None:
"""
if writer is None:
raise TypeError("writer cannot be null.")
writer.write_str_value("displayName", self.display_name)
writer.write_str_value("reactionId", self.reaction_id)
writer.write_str_value("reactionType", self.reaction_type)
writer.write_additional_data_value(self.additional_data)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ class UnsetReactionPostRequestBody(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 displayName property
display_name: Optional[str] = None
# The reactionId property
reaction_id: Optional[str] = None
# The reactionType property
reaction_type: Optional[str] = None

Expand All @@ -32,6 +36,8 @@ def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
Returns: dict[str, Callable[[ParseNode], None]]
"""
fields: dict[str, Callable[[Any], None]] = {
"displayName": lambda n : setattr(self, 'display_name', n.get_str_value()),
"reactionId": lambda n : setattr(self, 'reaction_id', n.get_str_value()),
"reactionType": lambda n : setattr(self, 'reaction_type', n.get_str_value()),
}
return fields
Expand All @@ -44,6 +50,8 @@ def serialize(self,writer: SerializationWriter) -> None:
"""
if writer is None:
raise TypeError("writer cannot be null.")
writer.write_str_value("displayName", self.display_name)
writer.write_str_value("reactionId", self.reaction_id)
writer.write_str_value("reactionType", self.reaction_type)
writer.write_additional_data_value(self.additional_data)

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
from __future__ import annotations
from collections.abc import Callable
from dataclasses import dataclass, field
from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter
from kiota_abstractions.store import BackedModel, BackingStore, BackingStoreFactorySingleton
from typing import Any, Optional, TYPE_CHECKING, Union

@dataclass
class BulkCreateUserProfileSnapshotPostRequestBody(AdditionalDataHolder, BackedModel, Parsable):
# Stores model information.
backing_store: BackingStore = field(default_factory=BackingStoreFactorySingleton(backing_store_factory=None).backing_store_factory.create_backing_store, repr=False)

# 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 cloudProfileIds property
cloud_profile_ids: Optional[list[str]] = None

@staticmethod
def create_from_discriminator_value(parse_node: ParseNode) -> BulkCreateUserProfileSnapshotPostRequestBody:
"""
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: BulkCreateUserProfileSnapshotPostRequestBody
"""
if parse_node is None:
raise TypeError("parse_node cannot be null.")
return BulkCreateUserProfileSnapshotPostRequestBody()

def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
"""
The deserialization information for the current model
Returns: dict[str, Callable[[ParseNode], None]]
"""
fields: dict[str, Callable[[Any], None]] = {
"cloudProfileIds": lambda n : setattr(self, 'cloud_profile_ids', n.get_collection_of_primitive_values(str)),
}
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.")
writer.write_collection_of_primitive_values("cloudProfileIds", self.cloud_profile_ids)
writer.write_additional_data_value(self.additional_data)


Loading
Loading