Skip to content

Commit a6637e3

Browse files
author
SDKAuto
committed
CodeGen from PR 12161 in Azure/azure-rest-api-specs
ADT: refix path (Azure#12161)
1 parent d1a132d commit a6637e3

17 files changed

+4346
-46
lines changed

sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_03_01_preview/models/_models.py

+23-23
Original file line numberDiff line numberDiff line change
@@ -85,29 +85,6 @@ class CloudError(Model):
8585
}
8686

8787

88-
class DigitalTwinsSkuInfo(Model):
89-
"""Information about the SKU of the DigitalTwinsInstance.
90-
91-
Variables are only populated by the server, and will be ignored when
92-
sending a request.
93-
94-
All required parameters must be populated in order to send to Azure.
95-
96-
:ivar name: Required. The name of the SKU. Default value: "F1" .
97-
:vartype name: str
98-
"""
99-
100-
_validation = {
101-
'name': {'required': True, 'constant': True},
102-
}
103-
104-
_attribute_map = {
105-
'name': {'key': 'name', 'type': 'str'},
106-
}
107-
108-
name = "F1"
109-
110-
11188
class DigitalTwinsResource(Model):
11289
"""The common properties of a DigitalTwinsInstance.
11390
@@ -358,6 +335,29 @@ def __init__(self, **kwargs):
358335
self.tags = kwargs.get('tags', None)
359336

360337

338+
class DigitalTwinsSkuInfo(Model):
339+
"""Information about the SKU of the DigitalTwinsInstance.
340+
341+
Variables are only populated by the server, and will be ignored when
342+
sending a request.
343+
344+
All required parameters must be populated in order to send to Azure.
345+
346+
:ivar name: Required. The name of the SKU. Default value: "F1" .
347+
:vartype name: str
348+
"""
349+
350+
_validation = {
351+
'name': {'required': True, 'constant': True},
352+
}
353+
354+
_attribute_map = {
355+
'name': {'key': 'name', 'type': 'str'},
356+
}
357+
358+
name = "F1"
359+
360+
361361
class ErrorDefinition(Model):
362362
"""Error definition.
363363

sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_03_01_preview/models/_models_py3.py

+23-23
Original file line numberDiff line numberDiff line change
@@ -85,29 +85,6 @@ class CloudError(Model):
8585
}
8686

8787

88-
class DigitalTwinsSkuInfo(Model):
89-
"""Information about the SKU of the DigitalTwinsInstance.
90-
91-
Variables are only populated by the server, and will be ignored when
92-
sending a request.
93-
94-
All required parameters must be populated in order to send to Azure.
95-
96-
:ivar name: Required. The name of the SKU. Default value: "F1" .
97-
:vartype name: str
98-
"""
99-
100-
_validation = {
101-
'name': {'required': True, 'constant': True},
102-
}
103-
104-
_attribute_map = {
105-
'name': {'key': 'name', 'type': 'str'},
106-
}
107-
108-
name = "F1"
109-
110-
11188
class DigitalTwinsResource(Model):
11289
"""The common properties of a DigitalTwinsInstance.
11390
@@ -358,6 +335,29 @@ def __init__(self, *, tags=None, **kwargs) -> None:
358335
self.tags = tags
359336

360337

338+
class DigitalTwinsSkuInfo(Model):
339+
"""Information about the SKU of the DigitalTwinsInstance.
340+
341+
Variables are only populated by the server, and will be ignored when
342+
sending a request.
343+
344+
All required parameters must be populated in order to send to Azure.
345+
346+
:ivar name: Required. The name of the SKU. Default value: "F1" .
347+
:vartype name: str
348+
"""
349+
350+
_validation = {
351+
'name': {'required': True, 'constant': True},
352+
}
353+
354+
_attribute_map = {
355+
'name': {'key': 'name', 'type': 'str'},
356+
}
357+
358+
name = "F1"
359+
360+
361361
class ErrorDefinition(Model):
362362
"""Error definition.
363363
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from ._configuration import AzureDigitalTwinsManagementClientConfiguration
13+
from ._azure_digital_twins_management_client import AzureDigitalTwinsManagementClient
14+
__all__ = ['AzureDigitalTwinsManagementClient', 'AzureDigitalTwinsManagementClientConfiguration']
15+
16+
from .version import VERSION
17+
18+
__version__ = VERSION
19+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.service_client import SDKClient
13+
from msrest import Serializer, Deserializer
14+
15+
from ._configuration import AzureDigitalTwinsManagementClientConfiguration
16+
from .operations import DigitalTwinsOperations
17+
from .operations import DigitalTwinsEndpointOperations
18+
from .operations import Operations
19+
from .operations import PrivateLinkResourcesOperations
20+
from .operations import PrivateEndpointConnectionsOperations
21+
from . import models
22+
23+
24+
class AzureDigitalTwinsManagementClient(SDKClient):
25+
"""Azure Digital Twins Client for managing DigitalTwinsInstance
26+
27+
:ivar config: Configuration for client.
28+
:vartype config: AzureDigitalTwinsManagementClientConfiguration
29+
30+
:ivar digital_twins: DigitalTwins operations
31+
:vartype digital_twins: azure.mgmt.digitaltwins.operations.DigitalTwinsOperations
32+
:ivar digital_twins_endpoint: DigitalTwinsEndpoint operations
33+
:vartype digital_twins_endpoint: azure.mgmt.digitaltwins.operations.DigitalTwinsEndpointOperations
34+
:ivar operations: Operations operations
35+
:vartype operations: azure.mgmt.digitaltwins.operations.Operations
36+
:ivar private_link_resources: PrivateLinkResources operations
37+
:vartype private_link_resources: azure.mgmt.digitaltwins.operations.PrivateLinkResourcesOperations
38+
:ivar private_endpoint_connections: PrivateEndpointConnections operations
39+
:vartype private_endpoint_connections: azure.mgmt.digitaltwins.operations.PrivateEndpointConnectionsOperations
40+
41+
:param credentials: Credentials needed for the client to connect to Azure.
42+
:type credentials: :mod:`A msrestazure Credentials
43+
object<msrestazure.azure_active_directory>`
44+
:param subscription_id: The subscription identifier.
45+
:type subscription_id: str
46+
:param str base_url: Service URL
47+
"""
48+
49+
def __init__(
50+
self, credentials, subscription_id, base_url=None):
51+
52+
self.config = AzureDigitalTwinsManagementClientConfiguration(credentials, subscription_id, base_url)
53+
super(AzureDigitalTwinsManagementClient, self).__init__(self.config.credentials, self.config)
54+
55+
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
56+
self.api_version = '2020-12-01'
57+
self._serialize = Serializer(client_models)
58+
self._deserialize = Deserializer(client_models)
59+
60+
self.digital_twins = DigitalTwinsOperations(
61+
self._client, self.config, self._serialize, self._deserialize)
62+
self.digital_twins_endpoint = DigitalTwinsEndpointOperations(
63+
self._client, self.config, self._serialize, self._deserialize)
64+
self.operations = Operations(
65+
self._client, self.config, self._serialize, self._deserialize)
66+
self.private_link_resources = PrivateLinkResourcesOperations(
67+
self._client, self.config, self._serialize, self._deserialize)
68+
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
69+
self._client, self.config, self._serialize, self._deserialize)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
from msrestazure import AzureConfiguration
12+
13+
from .version import VERSION
14+
15+
16+
class AzureDigitalTwinsManagementClientConfiguration(AzureConfiguration):
17+
"""Configuration for AzureDigitalTwinsManagementClient
18+
Note that all parameters used to create this instance are saved as instance
19+
attributes.
20+
21+
:param credentials: Credentials needed for the client to connect to Azure.
22+
:type credentials: :mod:`A msrestazure Credentials
23+
object<msrestazure.azure_active_directory>`
24+
:param subscription_id: The subscription identifier.
25+
:type subscription_id: str
26+
:param str base_url: Service URL
27+
"""
28+
29+
def __init__(
30+
self, credentials, subscription_id, base_url=None):
31+
32+
if credentials is None:
33+
raise ValueError("Parameter 'credentials' must not be None.")
34+
if subscription_id is None:
35+
raise ValueError("Parameter 'subscription_id' must not be None.")
36+
if not base_url:
37+
base_url = 'https://management.azure.com'
38+
39+
super(AzureDigitalTwinsManagementClientConfiguration, self).__init__(base_url)
40+
41+
# Starting Autorest.Python 4.0.64, make connection pool activated by default
42+
self.keep_alive = True
43+
44+
self.add_user_agent('azure-mgmt-digitaltwins/{}'.format(VERSION))
45+
self.add_user_agent('Azure-SDK-For-Python')
46+
47+
self.credentials = credentials
48+
self.subscription_id = subscription_id
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
try:
13+
from ._models_py3 import CheckNameRequest
14+
from ._models_py3 import CheckNameResult
15+
from ._models_py3 import ConnectionProperties
16+
from ._models_py3 import ConnectionPropertiesPrivateEndpoint
17+
from ._models_py3 import ConnectionPropertiesPrivateLinkServiceConnectionState
18+
from ._models_py3 import ConnectionState
19+
from ._models_py3 import DigitalTwinsDescription
20+
from ._models_py3 import DigitalTwinsEndpointResource
21+
from ._models_py3 import DigitalTwinsEndpointResourceProperties
22+
from ._models_py3 import DigitalTwinsIdentity
23+
from ._models_py3 import DigitalTwinsPatchDescription
24+
from ._models_py3 import DigitalTwinsPatchProperties
25+
from ._models_py3 import DigitalTwinsResource
26+
from ._models_py3 import ErrorDefinition
27+
from ._models_py3 import ErrorResponse, ErrorResponseException
28+
from ._models_py3 import EventGrid
29+
from ._models_py3 import EventHub
30+
from ._models_py3 import ExternalResource
31+
from ._models_py3 import GroupIdInformation
32+
from ._models_py3 import GroupIdInformationProperties
33+
from ._models_py3 import GroupIdInformationPropertiesModel
34+
from ._models_py3 import GroupIdInformationResponse
35+
from ._models_py3 import Operation
36+
from ._models_py3 import OperationDisplay
37+
from ._models_py3 import PrivateEndpoint
38+
from ._models_py3 import PrivateEndpointConnection
39+
from ._models_py3 import PrivateEndpointConnectionProperties
40+
from ._models_py3 import PrivateEndpointConnectionsResponse
41+
from ._models_py3 import ServiceBus
42+
except (SyntaxError, ImportError):
43+
from ._models import CheckNameRequest
44+
from ._models import CheckNameResult
45+
from ._models import ConnectionProperties
46+
from ._models import ConnectionPropertiesPrivateEndpoint
47+
from ._models import ConnectionPropertiesPrivateLinkServiceConnectionState
48+
from ._models import ConnectionState
49+
from ._models import DigitalTwinsDescription
50+
from ._models import DigitalTwinsEndpointResource
51+
from ._models import DigitalTwinsEndpointResourceProperties
52+
from ._models import DigitalTwinsIdentity
53+
from ._models import DigitalTwinsPatchDescription
54+
from ._models import DigitalTwinsPatchProperties
55+
from ._models import DigitalTwinsResource
56+
from ._models import ErrorDefinition
57+
from ._models import ErrorResponse, ErrorResponseException
58+
from ._models import EventGrid
59+
from ._models import EventHub
60+
from ._models import ExternalResource
61+
from ._models import GroupIdInformation
62+
from ._models import GroupIdInformationProperties
63+
from ._models import GroupIdInformationPropertiesModel
64+
from ._models import GroupIdInformationResponse
65+
from ._models import Operation
66+
from ._models import OperationDisplay
67+
from ._models import PrivateEndpoint
68+
from ._models import PrivateEndpointConnection
69+
from ._models import PrivateEndpointConnectionProperties
70+
from ._models import PrivateEndpointConnectionsResponse
71+
from ._models import ServiceBus
72+
from ._paged_models import DigitalTwinsDescriptionPaged
73+
from ._paged_models import DigitalTwinsEndpointResourcePaged
74+
from ._paged_models import OperationPaged
75+
from ._azure_digital_twins_management_client_enums import (
76+
PublicNetworkAccess,
77+
ProvisioningState,
78+
DigitalTwinsIdentityType,
79+
Reason,
80+
EndpointProvisioningState,
81+
AuthenticationType,
82+
PrivateLinkServiceConnectionStatus,
83+
ConnectionPropertiesProvisioningState,
84+
)
85+
86+
__all__ = [
87+
'CheckNameRequest',
88+
'CheckNameResult',
89+
'ConnectionProperties',
90+
'ConnectionPropertiesPrivateEndpoint',
91+
'ConnectionPropertiesPrivateLinkServiceConnectionState',
92+
'ConnectionState',
93+
'DigitalTwinsDescription',
94+
'DigitalTwinsEndpointResource',
95+
'DigitalTwinsEndpointResourceProperties',
96+
'DigitalTwinsIdentity',
97+
'DigitalTwinsPatchDescription',
98+
'DigitalTwinsPatchProperties',
99+
'DigitalTwinsResource',
100+
'ErrorDefinition',
101+
'ErrorResponse', 'ErrorResponseException',
102+
'EventGrid',
103+
'EventHub',
104+
'ExternalResource',
105+
'GroupIdInformation',
106+
'GroupIdInformationProperties',
107+
'GroupIdInformationPropertiesModel',
108+
'GroupIdInformationResponse',
109+
'Operation',
110+
'OperationDisplay',
111+
'PrivateEndpoint',
112+
'PrivateEndpointConnection',
113+
'PrivateEndpointConnectionProperties',
114+
'PrivateEndpointConnectionsResponse',
115+
'ServiceBus',
116+
'DigitalTwinsDescriptionPaged',
117+
'DigitalTwinsEndpointResourcePaged',
118+
'OperationPaged',
119+
'PublicNetworkAccess',
120+
'ProvisioningState',
121+
'DigitalTwinsIdentityType',
122+
'Reason',
123+
'EndpointProvisioningState',
124+
'AuthenticationType',
125+
'PrivateLinkServiceConnectionStatus',
126+
'ConnectionPropertiesProvisioningState',
127+
]

0 commit comments

Comments
 (0)