Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ReleasePR azure-mgmt-digitaltwins] ADT: refix .NET output path #15821

Closed
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -85,29 +85,6 @@ class CloudError(Model):
}


class DigitalTwinsSkuInfo(Model):
"""Information about the SKU of the DigitalTwinsInstance.

Variables are only populated by the server, and will be ignored when
sending a request.

All required parameters must be populated in order to send to Azure.

:ivar name: Required. The name of the SKU. Default value: "F1" .
:vartype name: str
"""

_validation = {
'name': {'required': True, 'constant': True},
}

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
}

name = "F1"


class DigitalTwinsResource(Model):
"""The common properties of a DigitalTwinsInstance.

Expand Down Expand Up @@ -358,6 +335,29 @@ def __init__(self, **kwargs):
self.tags = kwargs.get('tags', None)


class DigitalTwinsSkuInfo(Model):
"""Information about the SKU of the DigitalTwinsInstance.

Variables are only populated by the server, and will be ignored when
sending a request.

All required parameters must be populated in order to send to Azure.

:ivar name: Required. The name of the SKU. Default value: "F1" .
:vartype name: str
"""

_validation = {
'name': {'required': True, 'constant': True},
}

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
}

name = "F1"


class ErrorDefinition(Model):
"""Error definition.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,29 +85,6 @@ class CloudError(Model):
}


class DigitalTwinsSkuInfo(Model):
"""Information about the SKU of the DigitalTwinsInstance.

Variables are only populated by the server, and will be ignored when
sending a request.

All required parameters must be populated in order to send to Azure.

:ivar name: Required. The name of the SKU. Default value: "F1" .
:vartype name: str
"""

_validation = {
'name': {'required': True, 'constant': True},
}

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
}

name = "F1"


class DigitalTwinsResource(Model):
"""The common properties of a DigitalTwinsInstance.

Expand Down Expand Up @@ -358,6 +335,29 @@ def __init__(self, *, tags=None, **kwargs) -> None:
self.tags = tags


class DigitalTwinsSkuInfo(Model):
"""Information about the SKU of the DigitalTwinsInstance.

Variables are only populated by the server, and will be ignored when
sending a request.

All required parameters must be populated in order to send to Azure.

:ivar name: Required. The name of the SKU. Default value: "F1" .
:vartype name: str
"""

_validation = {
'name': {'required': True, 'constant': True},
}

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
}

name = "F1"


class ErrorDefinition(Model):
"""Error definition.

Expand Down
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

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)
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
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',
]
Loading