Skip to content

Commit 41a8d43

Browse files
changlong-liuSDK Automation
andauthored
Sdk automation/azure mgmt azurestackhci (Azure#12639)
* Generated from 131e378c7ab0494ea96068f58fe34721a3c98f77 correct output folder * add ci support * add changlog version * update release date Co-authored-by: SDK Automation <[email protected]>
1 parent 0009740 commit 41a8d43

22 files changed

+2087
-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+
## 1.0.0rc (2020-07-22)
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+
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 MyService 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 [MyService 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-azurestackhci%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 AzureStackHCIClientConfiguration
13+
from ._azure_stack_hci_client import AzureStackHCIClient
14+
__all__ = ['AzureStackHCIClient', 'AzureStackHCIClientConfiguration']
15+
16+
from .version import VERSION
17+
18+
__version__ = VERSION
19+
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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 AzureStackHCIClientConfiguration
16+
from .operations import Operations
17+
from .operations import ClustersOperations
18+
from . import models
19+
20+
21+
class AzureStackHCIClient(SDKClient):
22+
"""Azure Stack HCI management service
23+
24+
:ivar config: Configuration for client.
25+
:vartype config: AzureStackHCIClientConfiguration
26+
27+
:ivar operations: Operations operations
28+
:vartype operations: azure.mgmt.azurestackhci.operations.Operations
29+
:ivar clusters: Clusters operations
30+
:vartype clusters: azure.mgmt.azurestackhci.operations.ClustersOperations
31+
32+
:param credentials: Credentials needed for the client to connect to Azure.
33+
:type credentials: :mod:`A msrestazure Credentials
34+
object<msrestazure.azure_active_directory>`
35+
:param subscription_id: The ID of the target subscription.
36+
:type subscription_id: str
37+
:param str base_url: Service URL
38+
"""
39+
40+
def __init__(
41+
self, credentials, subscription_id, base_url=None):
42+
43+
self.config = AzureStackHCIClientConfiguration(credentials, subscription_id, base_url)
44+
super(AzureStackHCIClient, self).__init__(self.config.credentials, self.config)
45+
46+
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
47+
self.api_version = '2020-03-01-preview'
48+
self._serialize = Serializer(client_models)
49+
self._deserialize = Deserializer(client_models)
50+
51+
self.operations = Operations(
52+
self._client, self.config, self._serialize, self._deserialize)
53+
self.clusters = ClustersOperations(
54+
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 AzureStackHCIClientConfiguration(AzureConfiguration):
17+
"""Configuration for AzureStackHCIClient
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 ID of the target 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(AzureStackHCIClientConfiguration, 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-azurestackhci/{}'.format(VERSION))
45+
self.add_user_agent('Azure-SDK-For-Python')
46+
47+
self.credentials = credentials
48+
self.subscription_id = subscription_id
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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 AzureEntityResource
14+
from ._models_py3 import Cluster
15+
from ._models_py3 import ClusterNode
16+
from ._models_py3 import ClusterReportedProperties
17+
from ._models_py3 import ClusterUpdate
18+
from ._models_py3 import ErrorAdditionalInfo
19+
from ._models_py3 import ErrorResponse, ErrorResponseException
20+
from ._models_py3 import ErrorResponseError
21+
from ._models_py3 import Operation
22+
from ._models_py3 import OperationDisplay
23+
from ._models_py3 import OperationList
24+
from ._models_py3 import ProxyResource
25+
from ._models_py3 import Resource
26+
from ._models_py3 import TrackedResource
27+
except (SyntaxError, ImportError):
28+
from ._models import AzureEntityResource
29+
from ._models import Cluster
30+
from ._models import ClusterNode
31+
from ._models import ClusterReportedProperties
32+
from ._models import ClusterUpdate
33+
from ._models import ErrorAdditionalInfo
34+
from ._models import ErrorResponse, ErrorResponseException
35+
from ._models import ErrorResponseError
36+
from ._models import Operation
37+
from ._models import OperationDisplay
38+
from ._models import OperationList
39+
from ._models import ProxyResource
40+
from ._models import Resource
41+
from ._models import TrackedResource
42+
from ._paged_models import ClusterPaged
43+
from ._azure_stack_hci_client_enums import (
44+
ProvisioningState,
45+
Status,
46+
)
47+
48+
__all__ = [
49+
'AzureEntityResource',
50+
'Cluster',
51+
'ClusterNode',
52+
'ClusterReportedProperties',
53+
'ClusterUpdate',
54+
'ErrorAdditionalInfo',
55+
'ErrorResponse', 'ErrorResponseException',
56+
'ErrorResponseError',
57+
'Operation',
58+
'OperationDisplay',
59+
'OperationList',
60+
'ProxyResource',
61+
'Resource',
62+
'TrackedResource',
63+
'ClusterPaged',
64+
'ProvisioningState',
65+
'Status',
66+
]
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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 ProvisioningState(str, Enum):
16+
17+
succeeded = "Succeeded"
18+
failed = "Failed"
19+
canceled = "Canceled"
20+
accepted = "Accepted"
21+
provisioning = "Provisioning"
22+
23+
24+
class Status(str, Enum):
25+
26+
never_connected = "NeverConnected"
27+
connected_recently = "ConnectedRecently"
28+
not_connected_recently = "NotConnectedRecently"
29+
expired = "Expired"
30+
error = "Error"

0 commit comments

Comments
 (0)