Skip to content

Commit fa2af62

Browse files
AbyssknightShixun GuanAutorestCI
authored
release for mgmt vmware (Azure#12003)
Co-authored-by: Shixun Guan <[email protected]> Co-authored-by: Azure SDK Bot <[email protected]>
1 parent 979ac4c commit fa2af62

23 files changed

+3258
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Release History
2+
3+
## 0.1.0 (2020-06-12)
4+
5+
* Initial Release
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
recursive-include tests *.py *.yaml
2+
include *.md
3+
include azure/__init__.py
4+
include azure/mgmt/__init__.py
5+

sdk/compute/azure-mgmt-avs/README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Microsoft Azure SDK for Python
2+
3+
This is the Microsoft Azure VMware Solution Management Client Library.
4+
This package has been tested with Python 2.7, 3.5, 3.6, 3.7 and 3.8.
5+
For a more complete view of Azure libraries, see the [Github repo](https://github.com/Azure/azure-sdk-for-python/)
6+
7+
8+
# Usage
9+
10+
For code examples, see [VMware Solution Management](https://docs.microsoft.com/python/api/overview/azure/)
11+
on docs.microsoft.com.
12+
13+
14+
# Provide Feedback
15+
16+
If you encounter any bugs or have suggestions, please file an issue in the
17+
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
18+
section of the project.
19+
20+
21+
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-avs%2FREADME.png)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Lines changed: 19 additions & 0 deletions
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 AVSClientConfiguration
13+
from ._avs_client import AVSClient
14+
__all__ = ['AVSClient', 'AVSClientConfiguration']
15+
16+
from .version import VERSION
17+
18+
__version__ = VERSION
19+
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
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 AVSClientConfiguration
16+
from .operations import Operations
17+
from .operations import LocationsOperations
18+
from .operations import PrivateCloudsOperations
19+
from .operations import ClustersOperations
20+
from . import models
21+
22+
23+
class AVSClient(SDKClient):
24+
"""Azure VMware Solution API
25+
26+
:ivar config: Configuration for client.
27+
:vartype config: AVSClientConfiguration
28+
29+
:ivar operations: Operations operations
30+
:vartype operations: azure.mgmt.avs.operations.Operations
31+
:ivar locations: Locations operations
32+
:vartype locations: azure.mgmt.avs.operations.LocationsOperations
33+
:ivar private_clouds: PrivateClouds operations
34+
:vartype private_clouds: azure.mgmt.avs.operations.PrivateCloudsOperations
35+
:ivar clusters: Clusters operations
36+
:vartype clusters: azure.mgmt.avs.operations.ClustersOperations
37+
38+
:param credentials: Credentials needed for the client to connect to Azure.
39+
:type credentials: :mod:`A msrestazure Credentials
40+
object<msrestazure.azure_active_directory>`
41+
:param subscription_id: Unique identifier for the Azure subscription
42+
:type subscription_id: str
43+
:param str base_url: Service URL
44+
"""
45+
46+
def __init__(
47+
self, credentials, subscription_id, base_url=None):
48+
49+
self.config = AVSClientConfiguration(credentials, subscription_id, base_url)
50+
super(AVSClient, self).__init__(self.config.credentials, self.config)
51+
52+
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
53+
self.api_version = '2019-08-09-preview'
54+
self._serialize = Serializer(client_models)
55+
self._deserialize = Deserializer(client_models)
56+
57+
self.operations = Operations(
58+
self._client, self.config, self._serialize, self._deserialize)
59+
self.locations = LocationsOperations(
60+
self._client, self.config, self._serialize, self._deserialize)
61+
self.private_clouds = PrivateCloudsOperations(
62+
self._client, self.config, self._serialize, self._deserialize)
63+
self.clusters = ClustersOperations(
64+
self._client, self.config, self._serialize, self._deserialize)
Lines changed: 48 additions & 0 deletions
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 AVSClientConfiguration(AzureConfiguration):
17+
"""Configuration for AVSClient
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: Unique identifier for the Azure subscription
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(AVSClientConfiguration, 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-avs/{}'.format(VERSION))
45+
self.add_user_agent('Azure-SDK-For-Python')
46+
47+
self.credentials = credentials
48+
self.subscription_id = subscription_id
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
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 AdminCredentials
14+
from ._models_py3 import ApiError, ApiErrorException
15+
from ._models_py3 import ApiErrorBase
16+
from ._models_py3 import Circuit
17+
from ._models_py3 import Cluster
18+
from ._models_py3 import ClusterProperties
19+
from ._models_py3 import DefaultClusterProperties
20+
from ._models_py3 import Endpoints
21+
from ._models_py3 import ExpressRouteAuthorization
22+
from ._models_py3 import IdentitySource
23+
from ._models_py3 import Operation
24+
from ._models_py3 import OperationDisplay
25+
from ._models_py3 import PrivateCloud
26+
from ._models_py3 import PrivateCloudProperties
27+
from ._models_py3 import Quota
28+
from ._models_py3 import Resource
29+
from ._models_py3 import Sku
30+
from ._models_py3 import TrackedResource
31+
from ._models_py3 import Trial
32+
except (SyntaxError, ImportError):
33+
from ._models import AdminCredentials
34+
from ._models import ApiError, ApiErrorException
35+
from ._models import ApiErrorBase
36+
from ._models import Circuit
37+
from ._models import Cluster
38+
from ._models import ClusterProperties
39+
from ._models import DefaultClusterProperties
40+
from ._models import Endpoints
41+
from ._models import ExpressRouteAuthorization
42+
from ._models import IdentitySource
43+
from ._models import Operation
44+
from ._models import OperationDisplay
45+
from ._models import PrivateCloud
46+
from ._models import PrivateCloudProperties
47+
from ._models import Quota
48+
from ._models import Resource
49+
from ._models import Sku
50+
from ._models import TrackedResource
51+
from ._models import Trial
52+
from ._paged_models import ClusterPaged
53+
from ._paged_models import OperationPaged
54+
from ._paged_models import PrivateCloudPaged
55+
from ._avs_client_enums import (
56+
QuotaEnabled,
57+
SslEnum,
58+
PrivateCloudProvisioningState,
59+
InternetEnum,
60+
ClusterProvisioningState,
61+
)
62+
63+
__all__ = [
64+
'AdminCredentials',
65+
'ApiError', 'ApiErrorException',
66+
'ApiErrorBase',
67+
'Circuit',
68+
'Cluster',
69+
'ClusterProperties',
70+
'DefaultClusterProperties',
71+
'Endpoints',
72+
'ExpressRouteAuthorization',
73+
'IdentitySource',
74+
'Operation',
75+
'OperationDisplay',
76+
'PrivateCloud',
77+
'PrivateCloudProperties',
78+
'Quota',
79+
'Resource',
80+
'Sku',
81+
'TrackedResource',
82+
'Trial',
83+
'OperationPaged',
84+
'PrivateCloudPaged',
85+
'ClusterPaged',
86+
'QuotaEnabled',
87+
'SslEnum',
88+
'PrivateCloudProvisioningState',
89+
'InternetEnum',
90+
'ClusterProvisioningState',
91+
]
Lines changed: 48 additions & 0 deletions
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+
12+
from enum import Enum
13+
14+
15+
class QuotaEnabled(str, Enum):
16+
17+
enabled = "Enabled"
18+
disabled = "Disabled"
19+
20+
21+
class SslEnum(str, Enum):
22+
23+
enabled = "Enabled"
24+
disabled = "Disabled"
25+
26+
27+
class PrivateCloudProvisioningState(str, Enum):
28+
29+
succeeded = "Succeeded"
30+
failed = "Failed"
31+
cancelled = "Cancelled"
32+
pending = "Pending"
33+
building = "Building"
34+
updating = "Updating"
35+
36+
37+
class InternetEnum(str, Enum):
38+
39+
enabled = "Enabled"
40+
disabled = "Disabled"
41+
42+
43+
class ClusterProvisioningState(str, Enum):
44+
45+
succeeded = "Succeeded"
46+
failed = "Failed"
47+
cancelled = "Cancelled"
48+
updating = "Updating"

0 commit comments

Comments
 (0)