forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <sdkautomation@microsoft.com>
- Loading branch information
1 parent
0009740
commit 41a8d43
Showing
22 changed files
with
2,087 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Release History | ||
|
||
## 1.0.0rc (2020-07-22) | ||
|
||
* Initial Release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
recursive-include tests *.py *.yaml | ||
include *.md | ||
include azure/__init__.py | ||
include azure/mgmt/__init__.py | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Microsoft Azure SDK for Python | ||
|
||
This is the Microsoft Azure MyService Management Client Library. | ||
This package has been tested with Python 2.7, 3.5, 3.6, 3.7 and 3.8. | ||
For a more complete view of Azure libraries, see the [Github repo](https://github.com/Azure/azure-sdk-for-python/) | ||
|
||
|
||
# Usage | ||
|
||
For code examples, see [MyService Management](https://docs.microsoft.com/python/api/overview/azure/) | ||
on docs.microsoft.com. | ||
|
||
|
||
# Provide Feedback | ||
|
||
If you encounter any bugs or have suggestions, please file an issue in the | ||
[Issues](https://github.com/Azure/azure-sdk-for-python/issues) | ||
section of the project. | ||
|
||
|
||
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-azurestackhci%2FREADME.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__path__ = __import__('pkgutil').extend_path(__path__, __name__) |
1 change: 1 addition & 0 deletions
1
sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__path__ = __import__('pkgutil').extend_path(__path__, __name__) |
19 changes: 19 additions & 0 deletions
19
sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 AzureStackHCIClientConfiguration | ||
from ._azure_stack_hci_client import AzureStackHCIClient | ||
__all__ = ['AzureStackHCIClient', 'AzureStackHCIClientConfiguration'] | ||
|
||
from .version import VERSION | ||
|
||
__version__ = VERSION | ||
|
54 changes: 54 additions & 0 deletions
54
...zurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/_azure_stack_hci_client.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# 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 AzureStackHCIClientConfiguration | ||
from .operations import Operations | ||
from .operations import ClustersOperations | ||
from . import models | ||
|
||
|
||
class AzureStackHCIClient(SDKClient): | ||
"""Azure Stack HCI management service | ||
:ivar config: Configuration for client. | ||
:vartype config: AzureStackHCIClientConfiguration | ||
:ivar operations: Operations operations | ||
:vartype operations: azure.mgmt.azurestackhci.operations.Operations | ||
:ivar clusters: Clusters operations | ||
:vartype clusters: azure.mgmt.azurestackhci.operations.ClustersOperations | ||
: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 = AzureStackHCIClientConfiguration(credentials, subscription_id, base_url) | ||
super(AzureStackHCIClient, 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-03-01-preview' | ||
self._serialize = Serializer(client_models) | ||
self._deserialize = Deserializer(client_models) | ||
|
||
self.operations = Operations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.clusters = ClustersOperations( | ||
self._client, self.config, self._serialize, self._deserialize) |
48 changes: 48 additions & 0 deletions
48
sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/_configuration.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 AzureStackHCIClientConfiguration(AzureConfiguration): | ||
"""Configuration for AzureStackHCIClient | ||
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 ID of the target subscription. | ||
: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(AzureStackHCIClientConfiguration, 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-azurestackhci/{}'.format(VERSION)) | ||
self.add_user_agent('Azure-SDK-For-Python') | ||
|
||
self.credentials = credentials | ||
self.subscription_id = subscription_id |
66 changes: 66 additions & 0 deletions
66
sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/models/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# 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 AzureEntityResource | ||
from ._models_py3 import Cluster | ||
from ._models_py3 import ClusterNode | ||
from ._models_py3 import ClusterReportedProperties | ||
from ._models_py3 import ClusterUpdate | ||
from ._models_py3 import ErrorAdditionalInfo | ||
from ._models_py3 import ErrorResponse, ErrorResponseException | ||
from ._models_py3 import ErrorResponseError | ||
from ._models_py3 import Operation | ||
from ._models_py3 import OperationDisplay | ||
from ._models_py3 import OperationList | ||
from ._models_py3 import ProxyResource | ||
from ._models_py3 import Resource | ||
from ._models_py3 import TrackedResource | ||
except (SyntaxError, ImportError): | ||
from ._models import AzureEntityResource | ||
from ._models import Cluster | ||
from ._models import ClusterNode | ||
from ._models import ClusterReportedProperties | ||
from ._models import ClusterUpdate | ||
from ._models import ErrorAdditionalInfo | ||
from ._models import ErrorResponse, ErrorResponseException | ||
from ._models import ErrorResponseError | ||
from ._models import Operation | ||
from ._models import OperationDisplay | ||
from ._models import OperationList | ||
from ._models import ProxyResource | ||
from ._models import Resource | ||
from ._models import TrackedResource | ||
from ._paged_models import ClusterPaged | ||
from ._azure_stack_hci_client_enums import ( | ||
ProvisioningState, | ||
Status, | ||
) | ||
|
||
__all__ = [ | ||
'AzureEntityResource', | ||
'Cluster', | ||
'ClusterNode', | ||
'ClusterReportedProperties', | ||
'ClusterUpdate', | ||
'ErrorAdditionalInfo', | ||
'ErrorResponse', 'ErrorResponseException', | ||
'ErrorResponseError', | ||
'Operation', | ||
'OperationDisplay', | ||
'OperationList', | ||
'ProxyResource', | ||
'Resource', | ||
'TrackedResource', | ||
'ClusterPaged', | ||
'ProvisioningState', | ||
'Status', | ||
] |
30 changes: 30 additions & 0 deletions
30
...azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/models/_azure_stack_hci_client_enums.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# 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 enum import Enum | ||
|
||
|
||
class ProvisioningState(str, Enum): | ||
|
||
succeeded = "Succeeded" | ||
failed = "Failed" | ||
canceled = "Canceled" | ||
accepted = "Accepted" | ||
provisioning = "Provisioning" | ||
|
||
|
||
class Status(str, Enum): | ||
|
||
never_connected = "NeverConnected" | ||
connected_recently = "ConnectedRecently" | ||
not_connected_recently = "NotConnectedRecently" | ||
expired = "Expired" | ||
error = "Error" |
Oops, something went wrong.