Skip to content
Draft
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
2 changes: 1 addition & 1 deletion sdk/compute/azure-mgmt-avs/azure/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
2 changes: 1 addition & 1 deletion sdk/compute/azure-mgmt-avs/azure/mgmt/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
4 changes: 0 additions & 4 deletions sdk/compute/azure-mgmt-avs/azure/mgmt/avs/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# 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.
Expand Down
4 changes: 0 additions & 4 deletions sdk/compute/azure-mgmt-avs/azure/mgmt/avs/_avs_client.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# 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.
Expand Down
6 changes: 1 addition & 5 deletions sdk/compute/azure-mgmt-avs/azure/mgmt/avs/_configuration.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# 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.
Expand Down Expand Up @@ -41,7 +37,7 @@ def __init__(
# Starting Autorest.Python 4.0.64, make connection pool activated by default
self.keep_alive = True

self.add_user_agent('azure-mgmt-avs/{}'.format(VERSION))
self.add_user_agent('avsclient/{}'.format(VERSION))
self.add_user_agent('Azure-SDK-For-Python')

self.credentials = credentials
Expand Down
9 changes: 9 additions & 0 deletions sdk/compute/azure-mgmt-avs/azure/mgmt/avs/aio/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from ._avs_client_async import AVSClient
__all__ = ['AVSClient']
70 changes: 70 additions & 0 deletions sdk/compute/azure-mgmt-avs/azure/mgmt/avs/aio/_avs_client_async.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.async_client import SDKClientAsync
from msrest import Serializer, Deserializer

from .._configuration import AVSClientConfiguration
from .operations_async import Operations
from .operations_async import LocationsOperations
from .operations_async import PrivateCloudsOperations
from .operations_async import ClustersOperations
from .operations_async import HcxEnterpriseSitesOperations
from .operations_async import AuthorizationsOperations
from .. import models


class AVSClient(SDKClientAsync):
"""Azure VMware Solution API

:ivar config: Configuration for client.
:vartype config: AVSClientConfiguration

:ivar operations: Operations operations
:vartype operations: azure.mgmt.avs.operations.Operations
:ivar locations: Locations operations
:vartype locations: azure.mgmt.avs.operations.LocationsOperations
:ivar private_clouds: PrivateClouds operations
:vartype private_clouds: azure.mgmt.avs.operations.PrivateCloudsOperations
:ivar clusters: Clusters operations
:vartype clusters: azure.mgmt.avs.operations.ClustersOperations
:ivar hcx_enterprise_sites: HcxEnterpriseSites operations
:vartype hcx_enterprise_sites: azure.mgmt.avs.operations.HcxEnterpriseSitesOperations
:ivar authorizations: Authorizations operations
:vartype authorizations: azure.mgmt.avs.operations.AuthorizationsOperations

: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 ID of the target subscription.
:type subscription_id: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, base_url=None):

self.config = AVSClientConfiguration(credentials, subscription_id, base_url)
super(AVSClient, self).__init__(self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2020-03-20'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
self.locations = LocationsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.private_clouds = PrivateCloudsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.clusters = ClustersOperations(
self._client, self.config, self._serialize, self._deserialize)
self.hcx_enterprise_sites = HcxEnterpriseSitesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.authorizations = AuthorizationsOperations(
self._client, self.config, self._serialize, self._deserialize)
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from ._operations_async import Operations
from ._locations_operations_async import LocationsOperations
from ._private_clouds_operations_async import PrivateCloudsOperations
from ._clusters_operations_async import ClustersOperations
from ._hcx_enterprise_sites_operations_async import HcxEnterpriseSitesOperations
from ._authorizations_operations_async import AuthorizationsOperations

__all__ = [
'Operations',
'LocationsOperations',
'PrivateCloudsOperations',
'ClustersOperations',
'HcxEnterpriseSitesOperations',
'AuthorizationsOperations',
]
Loading