forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from c5d9680f3953b1f594931dfa0438639fe5a13a4f
- Loading branch information
SDK Automation
committed
Oct 13, 2020
1 parent
2057b28
commit 5f3a991
Showing
26 changed files
with
5,351 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
...italtwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_03_01_preview/__init__.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,19 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from ._configuration import AzureDigitalTwinsManagementClientConfiguration | ||
from ._azure_digital_twins_management_client import AzureDigitalTwinsManagementClient | ||
__all__ = ['AzureDigitalTwinsManagementClient', 'AzureDigitalTwinsManagementClientConfiguration'] | ||
|
||
from .version import VERSION | ||
|
||
__version__ = VERSION | ||
|
59 changes: 59 additions & 0 deletions
59
...ins/azure/mgmt/digitaltwins/v2020_03_01_preview/_azure_digital_twins_management_client.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,59 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from msrest.service_client import SDKClient | ||
from msrest import Serializer, Deserializer | ||
|
||
from ._configuration import AzureDigitalTwinsManagementClientConfiguration | ||
from .operations import DigitalTwinsOperations | ||
from .operations import DigitalTwinsEndpointOperations | ||
from .operations import Operations | ||
from . import models | ||
|
||
|
||
class AzureDigitalTwinsManagementClient(SDKClient): | ||
"""Azure Digital Twins Client for managing DigitalTwinsInstance | ||
:ivar config: Configuration for client. | ||
:vartype config: AzureDigitalTwinsManagementClientConfiguration | ||
:ivar digital_twins: DigitalTwins operations | ||
:vartype digital_twins: azure.mgmt.digitaltwins.operations.DigitalTwinsOperations | ||
:ivar digital_twins_endpoint: DigitalTwinsEndpoint operations | ||
:vartype digital_twins_endpoint: azure.mgmt.digitaltwins.operations.DigitalTwinsEndpointOperations | ||
:ivar operations: Operations operations | ||
:vartype operations: azure.mgmt.digitaltwins.operations.Operations | ||
:param credentials: Credentials needed for the client to connect to Azure. | ||
:type credentials: :mod:`A msrestazure Credentials | ||
object<msrestazure.azure_active_directory>` | ||
:param subscription_id: The subscription identifier. | ||
:type subscription_id: str | ||
:param str base_url: Service URL | ||
""" | ||
|
||
def __init__( | ||
self, credentials, subscription_id, base_url=None): | ||
|
||
self.config = AzureDigitalTwinsManagementClientConfiguration(credentials, subscription_id, base_url) | ||
super(AzureDigitalTwinsManagementClient, self).__init__(self.config.credentials, self.config) | ||
|
||
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} | ||
self.api_version = '2020-03-01-preview' | ||
self._serialize = Serializer(client_models) | ||
self._deserialize = Deserializer(client_models) | ||
|
||
self.digital_twins = DigitalTwinsOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.digital_twins_endpoint = DigitalTwinsEndpointOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.operations = Operations( | ||
self._client, self.config, self._serialize, self._deserialize) |
48 changes: 48 additions & 0 deletions
48
...ins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_03_01_preview/_configuration.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,48 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
from msrestazure import AzureConfiguration | ||
|
||
from .version import VERSION | ||
|
||
|
||
class AzureDigitalTwinsManagementClientConfiguration(AzureConfiguration): | ||
"""Configuration for AzureDigitalTwinsManagementClient | ||
Note that all parameters used to create this instance are saved as instance | ||
attributes. | ||
:param credentials: Credentials needed for the client to connect to Azure. | ||
:type credentials: :mod:`A msrestazure Credentials | ||
object<msrestazure.azure_active_directory>` | ||
:param subscription_id: The subscription identifier. | ||
:type subscription_id: str | ||
:param str base_url: Service URL | ||
""" | ||
|
||
def __init__( | ||
self, credentials, subscription_id, base_url=None): | ||
|
||
if credentials is None: | ||
raise ValueError("Parameter 'credentials' must not be None.") | ||
if subscription_id is None: | ||
raise ValueError("Parameter 'subscription_id' must not be None.") | ||
if not base_url: | ||
base_url = 'https://management.azure.com' | ||
|
||
super(AzureDigitalTwinsManagementClientConfiguration, self).__init__(base_url) | ||
|
||
# Starting Autorest.Python 4.0.64, make connection pool activated by default | ||
self.keep_alive = True | ||
|
||
self.add_user_agent('azure-mgmt-digitaltwins/{}'.format(VERSION)) | ||
self.add_user_agent('Azure-SDK-For-Python') | ||
|
||
self.credentials = credentials | ||
self.subscription_id = subscription_id |
78 changes: 78 additions & 0 deletions
78
...ns/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_03_01_preview/models/__init__.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,78 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
try: | ||
from ._models_py3 import CheckNameRequest | ||
from ._models_py3 import CheckNameResult | ||
from ._models_py3 import DigitalTwinsDescription | ||
from ._models_py3 import DigitalTwinsEndpointResource | ||
from ._models_py3 import DigitalTwinsEndpointResourceProperties | ||
from ._models_py3 import DigitalTwinsPatchDescription | ||
from ._models_py3 import DigitalTwinsResource | ||
from ._models_py3 import DigitalTwinsSkuInfo | ||
from ._models_py3 import ErrorDefinition | ||
from ._models_py3 import ErrorResponse, ErrorResponseException | ||
from ._models_py3 import EventGrid | ||
from ._models_py3 import EventHub | ||
from ._models_py3 import ExternalResource | ||
from ._models_py3 import Operation | ||
from ._models_py3 import OperationDisplay | ||
from ._models_py3 import ServiceBus | ||
except (SyntaxError, ImportError): | ||
from ._models import CheckNameRequest | ||
from ._models import CheckNameResult | ||
from ._models import DigitalTwinsDescription | ||
from ._models import DigitalTwinsEndpointResource | ||
from ._models import DigitalTwinsEndpointResourceProperties | ||
from ._models import DigitalTwinsPatchDescription | ||
from ._models import DigitalTwinsResource | ||
from ._models import DigitalTwinsSkuInfo | ||
from ._models import ErrorDefinition | ||
from ._models import ErrorResponse, ErrorResponseException | ||
from ._models import EventGrid | ||
from ._models import EventHub | ||
from ._models import ExternalResource | ||
from ._models import Operation | ||
from ._models import OperationDisplay | ||
from ._models import ServiceBus | ||
from ._paged_models import DigitalTwinsDescriptionPaged | ||
from ._paged_models import DigitalTwinsEndpointResourcePaged | ||
from ._paged_models import OperationPaged | ||
from ._azure_digital_twins_management_client_enums import ( | ||
ProvisioningState, | ||
Reason, | ||
EndpointProvisioningState, | ||
) | ||
|
||
__all__ = [ | ||
'CheckNameRequest', | ||
'CheckNameResult', | ||
'DigitalTwinsDescription', | ||
'DigitalTwinsEndpointResource', | ||
'DigitalTwinsEndpointResourceProperties', | ||
'DigitalTwinsPatchDescription', | ||
'DigitalTwinsResource', | ||
'DigitalTwinsSkuInfo', | ||
'ErrorDefinition', | ||
'ErrorResponse', 'ErrorResponseException', | ||
'EventGrid', | ||
'EventHub', | ||
'ExternalResource', | ||
'Operation', | ||
'OperationDisplay', | ||
'ServiceBus', | ||
'DigitalTwinsDescriptionPaged', | ||
'DigitalTwinsEndpointResourcePaged', | ||
'OperationPaged', | ||
'ProvisioningState', | ||
'Reason', | ||
'EndpointProvisioningState', | ||
] |
36 changes: 36 additions & 0 deletions
36
...t/digitaltwins/v2020_03_01_preview/models/_azure_digital_twins_management_client_enums.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,36 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from enum import Enum | ||
|
||
|
||
class ProvisioningState(str, Enum): | ||
|
||
provisioning = "Provisioning" | ||
deleting = "Deleting" | ||
succeeded = "Succeeded" | ||
failed = "Failed" | ||
canceled = "Canceled" | ||
|
||
|
||
class Reason(str, Enum): | ||
|
||
invalid = "Invalid" | ||
already_exists = "AlreadyExists" | ||
|
||
|
||
class EndpointProvisioningState(str, Enum): | ||
|
||
provisioning = "Provisioning" | ||
deleting = "Deleting" | ||
succeeded = "Succeeded" | ||
failed = "Failed" | ||
canceled = "Canceled" |
Oops, something went wrong.