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.
CodeGen from PR 10996 in Azure/azure-rest-api-specs
Merge 043fe7030d60d4609b2d9090f4087c79bb14a88f into 1013594
- Loading branch information
SDKAuto
committed
Dec 14, 2020
1 parent
e1f2009
commit cea82d0
Showing
17 changed files
with
4,346 additions
and
46 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
19 changes: 19 additions & 0 deletions
19
sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_12_01/__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 | ||
|
69 changes: 69 additions & 0 deletions
69
...igitaltwins/azure/mgmt/digitaltwins/v2020_12_01/_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,69 @@ | ||
# 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 .operations import PrivateLinkResourcesOperations | ||
from .operations import PrivateEndpointConnectionsOperations | ||
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 | ||
:ivar private_link_resources: PrivateLinkResources operations | ||
:vartype private_link_resources: azure.mgmt.digitaltwins.operations.PrivateLinkResourcesOperations | ||
:ivar private_endpoint_connections: PrivateEndpointConnections operations | ||
:vartype private_endpoint_connections: azure.mgmt.digitaltwins.operations.PrivateEndpointConnectionsOperations | ||
: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-12-01' | ||
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) | ||
self.private_link_resources = PrivateLinkResourcesOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.private_endpoint_connections = PrivateEndpointConnectionsOperations( | ||
self._client, self.config, self._serialize, self._deserialize) |
48 changes: 48 additions & 0 deletions
48
...igitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_12_01/_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 |
127 changes: 127 additions & 0 deletions
127
...gitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_12_01/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,127 @@ | ||
# 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 ConnectionProperties | ||
from ._models_py3 import ConnectionPropertiesPrivateEndpoint | ||
from ._models_py3 import ConnectionPropertiesPrivateLinkServiceConnectionState | ||
from ._models_py3 import ConnectionState | ||
from ._models_py3 import DigitalTwinsDescription | ||
from ._models_py3 import DigitalTwinsEndpointResource | ||
from ._models_py3 import DigitalTwinsEndpointResourceProperties | ||
from ._models_py3 import DigitalTwinsIdentity | ||
from ._models_py3 import DigitalTwinsPatchDescription | ||
from ._models_py3 import DigitalTwinsPatchProperties | ||
from ._models_py3 import DigitalTwinsResource | ||
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 GroupIdInformation | ||
from ._models_py3 import GroupIdInformationProperties | ||
from ._models_py3 import GroupIdInformationPropertiesModel | ||
from ._models_py3 import GroupIdInformationResponse | ||
from ._models_py3 import Operation | ||
from ._models_py3 import OperationDisplay | ||
from ._models_py3 import PrivateEndpoint | ||
from ._models_py3 import PrivateEndpointConnection | ||
from ._models_py3 import PrivateEndpointConnectionProperties | ||
from ._models_py3 import PrivateEndpointConnectionsResponse | ||
from ._models_py3 import ServiceBus | ||
except (SyntaxError, ImportError): | ||
from ._models import CheckNameRequest | ||
from ._models import CheckNameResult | ||
from ._models import ConnectionProperties | ||
from ._models import ConnectionPropertiesPrivateEndpoint | ||
from ._models import ConnectionPropertiesPrivateLinkServiceConnectionState | ||
from ._models import ConnectionState | ||
from ._models import DigitalTwinsDescription | ||
from ._models import DigitalTwinsEndpointResource | ||
from ._models import DigitalTwinsEndpointResourceProperties | ||
from ._models import DigitalTwinsIdentity | ||
from ._models import DigitalTwinsPatchDescription | ||
from ._models import DigitalTwinsPatchProperties | ||
from ._models import DigitalTwinsResource | ||
from ._models import ErrorDefinition | ||
from ._models import ErrorResponse, ErrorResponseException | ||
from ._models import EventGrid | ||
from ._models import EventHub | ||
from ._models import ExternalResource | ||
from ._models import GroupIdInformation | ||
from ._models import GroupIdInformationProperties | ||
from ._models import GroupIdInformationPropertiesModel | ||
from ._models import GroupIdInformationResponse | ||
from ._models import Operation | ||
from ._models import OperationDisplay | ||
from ._models import PrivateEndpoint | ||
from ._models import PrivateEndpointConnection | ||
from ._models import PrivateEndpointConnectionProperties | ||
from ._models import PrivateEndpointConnectionsResponse | ||
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 ( | ||
PublicNetworkAccess, | ||
ProvisioningState, | ||
DigitalTwinsIdentityType, | ||
Reason, | ||
EndpointProvisioningState, | ||
AuthenticationType, | ||
PrivateLinkServiceConnectionStatus, | ||
ConnectionPropertiesProvisioningState, | ||
) | ||
|
||
__all__ = [ | ||
'CheckNameRequest', | ||
'CheckNameResult', | ||
'ConnectionProperties', | ||
'ConnectionPropertiesPrivateEndpoint', | ||
'ConnectionPropertiesPrivateLinkServiceConnectionState', | ||
'ConnectionState', | ||
'DigitalTwinsDescription', | ||
'DigitalTwinsEndpointResource', | ||
'DigitalTwinsEndpointResourceProperties', | ||
'DigitalTwinsIdentity', | ||
'DigitalTwinsPatchDescription', | ||
'DigitalTwinsPatchProperties', | ||
'DigitalTwinsResource', | ||
'ErrorDefinition', | ||
'ErrorResponse', 'ErrorResponseException', | ||
'EventGrid', | ||
'EventHub', | ||
'ExternalResource', | ||
'GroupIdInformation', | ||
'GroupIdInformationProperties', | ||
'GroupIdInformationPropertiesModel', | ||
'GroupIdInformationResponse', | ||
'Operation', | ||
'OperationDisplay', | ||
'PrivateEndpoint', | ||
'PrivateEndpointConnection', | ||
'PrivateEndpointConnectionProperties', | ||
'PrivateEndpointConnectionsResponse', | ||
'ServiceBus', | ||
'DigitalTwinsDescriptionPaged', | ||
'DigitalTwinsEndpointResourcePaged', | ||
'OperationPaged', | ||
'PublicNetworkAccess', | ||
'ProvisioningState', | ||
'DigitalTwinsIdentityType', | ||
'Reason', | ||
'EndpointProvisioningState', | ||
'AuthenticationType', | ||
'PrivateLinkServiceConnectionStatus', | ||
'ConnectionPropertiesProvisioningState', | ||
] |
Oops, something went wrong.