-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #564 from microsoftgraph/v1.0/pipelinebuild/132033
Generated models and request builders
- Loading branch information
Showing
282 changed files
with
24,537 additions
and
362 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
msgraph/generated/applications/item/synchronization/secrets/secrets_put_request_body.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
from __future__ import annotations | ||
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, Callable, Dict, List, Optional, TYPE_CHECKING, Union | ||
|
||
if TYPE_CHECKING: | ||
from .....models.synchronization_secret_key_string_value_pair import SynchronizationSecretKeyStringValuePair | ||
|
||
@dataclass | ||
class SecretsPutRequestBody(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 value property | ||
value: Optional[List[SynchronizationSecretKeyStringValuePair]] = None | ||
|
||
@staticmethod | ||
def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> SecretsPutRequestBody: | ||
""" | ||
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: SecretsPutRequestBody | ||
""" | ||
if not parse_node: | ||
raise TypeError("parse_node cannot be null.") | ||
return SecretsPutRequestBody() | ||
|
||
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.synchronization_secret_key_string_value_pair import SynchronizationSecretKeyStringValuePair | ||
|
||
from .....models.synchronization_secret_key_string_value_pair import SynchronizationSecretKeyStringValuePair | ||
|
||
fields: Dict[str, Callable[[Any], None]] = { | ||
"value": lambda n : setattr(self, 'value', n.get_collection_of_object_values(SynchronizationSecretKeyStringValuePair)), | ||
} | ||
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 not writer: | ||
raise TypeError("writer cannot be null.") | ||
writer.write_collection_of_object_values("value", self.value) | ||
writer.write_additional_data_value(self.additional_data) | ||
|
||
|
56 changes: 56 additions & 0 deletions
56
msgraph/generated/applications/item/synchronization/secrets/secrets_put_response.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
from __future__ import annotations | ||
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, Callable, Dict, List, Optional, TYPE_CHECKING, Union | ||
|
||
if TYPE_CHECKING: | ||
from .....models.synchronization_secret_key_string_value_pair import SynchronizationSecretKeyStringValuePair | ||
|
||
@dataclass | ||
class SecretsPutResponse(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 value property | ||
value: Optional[List[SynchronizationSecretKeyStringValuePair]] = None | ||
|
||
@staticmethod | ||
def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> SecretsPutResponse: | ||
""" | ||
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: SecretsPutResponse | ||
""" | ||
if not parse_node: | ||
raise TypeError("parse_node cannot be null.") | ||
return SecretsPutResponse() | ||
|
||
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.synchronization_secret_key_string_value_pair import SynchronizationSecretKeyStringValuePair | ||
|
||
from .....models.synchronization_secret_key_string_value_pair import SynchronizationSecretKeyStringValuePair | ||
|
||
fields: Dict[str, Callable[[Any], None]] = { | ||
"value": lambda n : setattr(self, 'value', n.get_collection_of_object_values(SynchronizationSecretKeyStringValuePair)), | ||
} | ||
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 not writer: | ||
raise TypeError("writer cannot be null.") | ||
writer.write_collection_of_object_values("value", self.value) | ||
writer.write_additional_data_value(self.additional_data) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.