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.
CodeGen from PR 12954 in Azure/azure-rest-api-specs
Merge 11378fff4fc6f1d0028f7126b6afd9cac11ac228 into 8c6d9ca
- Loading branch information
SDKAuto
committed
Mar 9, 2021
1 parent
e634a2b
commit be57475
Showing
13 changed files
with
3,252 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2020_03_15_preview/__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 StoragePoolManagementConfiguration | ||
from ._storage_pool_management import StoragePoolManagement | ||
__all__ = ['StoragePoolManagement', 'StoragePoolManagementConfiguration'] | ||
|
||
from .version import VERSION | ||
|
||
__version__ = VERSION | ||
|
48 changes: 48 additions & 0 deletions
48
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2020_03_15_preview/_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 StoragePoolManagementConfiguration(AzureConfiguration): | ||
"""Configuration for StoragePoolManagement | ||
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(StoragePoolManagementConfiguration, self).__init__(base_url) | ||
|
||
# Starting Autorest.Python 4.0.64, make connection pool activated by default | ||
self.keep_alive = True | ||
|
||
self.add_user_agent('storagepool/{}'.format(VERSION)) | ||
self.add_user_agent('Azure-SDK-For-Python') | ||
|
||
self.credentials = credentials | ||
self.subscription_id = subscription_id |
59 changes: 59 additions & 0 deletions
59
...age/azure-mgmt-storage/azure/mgmt/storage/v2020_03_15_preview/_storage_pool_management.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,59 @@ | ||
# 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 StoragePoolManagementConfiguration | ||
from .operations import Operations | ||
from .operations import DiskPoolsOperations | ||
from .operations import IscsiTargetsOperations | ||
from . import models | ||
|
||
|
||
class StoragePoolManagement(SDKClient): | ||
"""StoragePoolManagement | ||
:ivar config: Configuration for client. | ||
:vartype config: StoragePoolManagementConfiguration | ||
:ivar operations: Operations operations | ||
:vartype operations: microsoft.storagepool.operations.Operations | ||
:ivar disk_pools: DiskPools operations | ||
:vartype disk_pools: microsoft.storagepool.operations.DiskPoolsOperations | ||
:ivar iscsi_targets: IscsiTargets operations | ||
:vartype iscsi_targets: microsoft.storagepool.operations.IscsiTargetsOperations | ||
: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 = StoragePoolManagementConfiguration(credentials, subscription_id, base_url) | ||
super(StoragePoolManagement, 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-15-preview' | ||
self._serialize = Serializer(client_models) | ||
self._deserialize = Deserializer(client_models) | ||
|
||
self.operations = Operations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.disk_pools = DiskPoolsOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.iscsi_targets = IscsiTargetsOperations( | ||
self._client, self.config, self._serialize, self._deserialize) |
96 changes: 96 additions & 0 deletions
96
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2020_03_15_preview/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,96 @@ | ||
# 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 Acl | ||
from ._models_py3 import Attributes | ||
from ._models_py3 import Disk | ||
from ._models_py3 import DiskPool | ||
from ._models_py3 import DiskPoolCreate | ||
from ._models_py3 import DiskPoolUpdate | ||
from ._models_py3 import Error, ErrorException | ||
from ._models_py3 import ErrorAdditionalInfo | ||
from ._models_py3 import ErrorResponse | ||
from ._models_py3 import IscsiLun | ||
from ._models_py3 import IscsiTarget | ||
from ._models_py3 import IscsiTargetCreate | ||
from ._models_py3 import IscsiTargetUpdate | ||
from ._models_py3 import ProxyResource | ||
from ._models_py3 import Resource | ||
from ._models_py3 import StoragePoolOperationDisplay | ||
from ._models_py3 import StoragePoolRPOperation | ||
from ._models_py3 import SystemMetadata | ||
from ._models_py3 import TargetPortalGroup | ||
from ._models_py3 import TargetPortalGroupCreate | ||
from ._models_py3 import TargetPortalGroupUpdate | ||
from ._models_py3 import TrackedResource | ||
except (SyntaxError, ImportError): | ||
from ._models import Acl | ||
from ._models import Attributes | ||
from ._models import Disk | ||
from ._models import DiskPool | ||
from ._models import DiskPoolCreate | ||
from ._models import DiskPoolUpdate | ||
from ._models import Error, ErrorException | ||
from ._models import ErrorAdditionalInfo | ||
from ._models import ErrorResponse | ||
from ._models import IscsiLun | ||
from ._models import IscsiTarget | ||
from ._models import IscsiTargetCreate | ||
from ._models import IscsiTargetUpdate | ||
from ._models import ProxyResource | ||
from ._models import Resource | ||
from ._models import StoragePoolOperationDisplay | ||
from ._models import StoragePoolRPOperation | ||
from ._models import SystemMetadata | ||
from ._models import TargetPortalGroup | ||
from ._models import TargetPortalGroupCreate | ||
from ._models import TargetPortalGroupUpdate | ||
from ._models import TrackedResource | ||
from ._paged_models import DiskPoolPaged | ||
from ._paged_models import IscsiTargetPaged | ||
from ._paged_models import StoragePoolRPOperationPaged | ||
from ._storage_pool_management_enums import ( | ||
ProvisioningStates, | ||
OperationalStatus, | ||
DiskPoolTier, | ||
) | ||
|
||
__all__ = [ | ||
'Acl', | ||
'Attributes', | ||
'Disk', | ||
'DiskPool', | ||
'DiskPoolCreate', | ||
'DiskPoolUpdate', | ||
'Error', 'ErrorException', | ||
'ErrorAdditionalInfo', | ||
'ErrorResponse', | ||
'IscsiLun', | ||
'IscsiTarget', | ||
'IscsiTargetCreate', | ||
'IscsiTargetUpdate', | ||
'ProxyResource', | ||
'Resource', | ||
'StoragePoolOperationDisplay', | ||
'StoragePoolRPOperation', | ||
'SystemMetadata', | ||
'TargetPortalGroup', | ||
'TargetPortalGroupCreate', | ||
'TargetPortalGroupUpdate', | ||
'TrackedResource', | ||
'StoragePoolRPOperationPaged', | ||
'DiskPoolPaged', | ||
'IscsiTargetPaged', | ||
'ProvisioningStates', | ||
'OperationalStatus', | ||
'DiskPoolTier', | ||
] |
Oops, something went wrong.