Skip to content

Commit ae99383

Browse files
AutorestCIZim Kalinowski
authored and
Zim Kalinowski
committed
[AutoPR] storagecache/resource-manager (Azure#7015)
* [AutoPR storagecache/resource-manager] Dev storagecache microsoft.storagecache 2019 06 01 preview (Azure#6940) * Generated from afea9378cc5a41d4dfa3ecd17eb582eabcbc14f5 Merge branch 'master' into dev-storagecache-microsoft.storagecache-2019-06-01-preview * Packaging update of azure-mgmt-storagecache * updated version and history * Packaging update of azure-mgmt-storagecache * updated readme * Packaging update of azure-mgmt-storagecache
1 parent 505bf11 commit ae99383

23 files changed

+3418
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.. :changelog:
2+
3+
Release History
4+
===============
5+
6+
0.1.0rc1 (2019-09-03)
7+
+++++++++++++++++++++
8+
9+
* 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 *.rst
3+
include azure/__init__.py
4+
include azure/mgmt/__init__.py
5+
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
Microsoft Azure SDK for Python
2+
==============================
3+
4+
This is the Microsoft Azure MyService Management Client Library.
5+
6+
Azure Resource Manager (ARM) is the next generation of management APIs that
7+
replace the old Azure Service Management (ASM).
8+
9+
This package has been tested with Python 2.7, 3.5, 3.6 and 3.7.
10+
11+
For the older Azure Service Management (ASM) libraries, see
12+
`azure-servicemanagement-legacy <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library.
13+
14+
For a more complete set of Azure libraries, see the `azure <https://pypi.python.org/pypi/azure>`__ bundle package.
15+
16+
17+
Usage
18+
=====
19+
20+
For code examples, see `MyService Management
21+
<https://docs.microsoft.com/python/api/overview/azure/>`__
22+
on docs.microsoft.com.
23+
24+
25+
Provide Feedback
26+
================
27+
28+
If you encounter any bugs or have suggestions, please file an issue in the
29+
`Issues <https://github.com/Azure/azure-sdk-for-python/issues>`__
30+
section of the project.
31+
32+
33+
.. image:: https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-storagecache%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 StorageCacheMgmtClientConfiguration
13+
from ._storage_cache_mgmt_client import StorageCacheMgmtClient
14+
__all__ = ['StorageCacheMgmtClient', 'StorageCacheMgmtClientConfiguration']
15+
16+
from .version import VERSION
17+
18+
__version__ = VERSION
19+
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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 StorageCacheMgmtClientConfiguration(AzureConfiguration):
17+
"""Configuration for StorageCacheMgmtClient
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: Subscription credentials which uniquely identify
25+
Microsoft Azure subscription. The subscription ID forms part of the URI
26+
for every service call.
27+
:type subscription_id: str
28+
:param str base_url: Service URL
29+
"""
30+
31+
def __init__(
32+
self, credentials, subscription_id, base_url=None):
33+
34+
if credentials is None:
35+
raise ValueError("Parameter 'credentials' must not be None.")
36+
if subscription_id is None:
37+
raise ValueError("Parameter 'subscription_id' must not be None.")
38+
if not base_url:
39+
base_url = 'https://management.azure.com'
40+
41+
super(StorageCacheMgmtClientConfiguration, self).__init__(base_url)
42+
43+
# Starting Autorest.Python 4.0.64, make connection pool activated by default
44+
self.keep_alive = True
45+
46+
self.add_user_agent('azure-mgmt-storagecache/{}'.format(VERSION))
47+
self.add_user_agent('Azure-SDK-For-Python')
48+
49+
self.credentials = credentials
50+
self.subscription_id = subscription_id
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
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 StorageCacheMgmtClientConfiguration
16+
from .operations import Operations
17+
from .operations import SkusOperations
18+
from .operations import UsageModelsOperations
19+
from .operations import CachesOperations
20+
from .operations import StorageTargetsOperations
21+
from . import models
22+
23+
24+
class StorageCacheMgmtClient(SDKClient):
25+
"""A Storage Cache provides scalable caching service for NAS clients, serving data from either NFSv3 or Blob at-rest storage (referred to as "Storage Targets"). These operations allow you to manage caches.
26+
27+
:ivar config: Configuration for client.
28+
:vartype config: StorageCacheMgmtClientConfiguration
29+
30+
:ivar operations: Operations operations
31+
:vartype operations: azure.mgmt.storagecache.operations.Operations
32+
:ivar skus: Skus operations
33+
:vartype skus: azure.mgmt.storagecache.operations.SkusOperations
34+
:ivar usage_models: UsageModels operations
35+
:vartype usage_models: azure.mgmt.storagecache.operations.UsageModelsOperations
36+
:ivar caches: Caches operations
37+
:vartype caches: azure.mgmt.storagecache.operations.CachesOperations
38+
:ivar storage_targets: StorageTargets operations
39+
:vartype storage_targets: azure.mgmt.storagecache.operations.StorageTargetsOperations
40+
41+
:param credentials: Credentials needed for the client to connect to Azure.
42+
:type credentials: :mod:`A msrestazure Credentials
43+
object<msrestazure.azure_active_directory>`
44+
:param subscription_id: Subscription credentials which uniquely identify
45+
Microsoft Azure subscription. The subscription ID forms part of the URI
46+
for every service call.
47+
:type subscription_id: str
48+
:param str base_url: Service URL
49+
"""
50+
51+
def __init__(
52+
self, credentials, subscription_id, base_url=None):
53+
54+
self.config = StorageCacheMgmtClientConfiguration(credentials, subscription_id, base_url)
55+
super(StorageCacheMgmtClient, self).__init__(self.config.credentials, self.config)
56+
57+
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
58+
self.api_version = '2019-08-01-preview'
59+
self._serialize = Serializer(client_models)
60+
self._deserialize = Deserializer(client_models)
61+
62+
self.operations = Operations(
63+
self._client, self.config, self._serialize, self._deserialize)
64+
self.skus = SkusOperations(
65+
self._client, self.config, self._serialize, self._deserialize)
66+
self.usage_models = UsageModelsOperations(
67+
self._client, self.config, self._serialize, self._deserialize)
68+
self.caches = CachesOperations(
69+
self._client, self.config, self._serialize, self._deserialize)
70+
self.storage_targets = StorageTargetsOperations(
71+
self._client, self.config, self._serialize, self._deserialize)
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
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 ApiOperation
14+
from ._models_py3 import ApiOperationDisplay
15+
from ._models_py3 import Cache
16+
from ._models_py3 import CacheHealth
17+
from ._models_py3 import CacheSku
18+
from ._models_py3 import CacheUpgradeStatus
19+
from ._models_py3 import ClfsTarget
20+
from ._models_py3 import CloudError, CloudErrorException
21+
from ._models_py3 import CloudErrorBody
22+
from ._models_py3 import NamespaceJunction
23+
from ._models_py3 import Nfs3Target
24+
from ._models_py3 import ResourceSku
25+
from ._models_py3 import ResourceSkuCapabilities
26+
from ._models_py3 import ResourceSkuLocationInfo
27+
from ._models_py3 import Restriction
28+
from ._models_py3 import StorageTarget
29+
from ._models_py3 import UnknownTarget
30+
from ._models_py3 import UsageModel
31+
from ._models_py3 import UsageModelDisplay
32+
except (SyntaxError, ImportError):
33+
from ._models import ApiOperation
34+
from ._models import ApiOperationDisplay
35+
from ._models import Cache
36+
from ._models import CacheHealth
37+
from ._models import CacheSku
38+
from ._models import CacheUpgradeStatus
39+
from ._models import ClfsTarget
40+
from ._models import CloudError, CloudErrorException
41+
from ._models import CloudErrorBody
42+
from ._models import NamespaceJunction
43+
from ._models import Nfs3Target
44+
from ._models import ResourceSku
45+
from ._models import ResourceSkuCapabilities
46+
from ._models import ResourceSkuLocationInfo
47+
from ._models import Restriction
48+
from ._models import StorageTarget
49+
from ._models import UnknownTarget
50+
from ._models import UsageModel
51+
from ._models import UsageModelDisplay
52+
from ._paged_models import ApiOperationPaged
53+
from ._paged_models import CachePaged
54+
from ._paged_models import ResourceSkuPaged
55+
from ._paged_models import StorageTargetPaged
56+
from ._paged_models import UsageModelPaged
57+
from ._storage_cache_mgmt_client_enums import (
58+
HealthStateType,
59+
ProvisioningStateType,
60+
FirmwareStatusType,
61+
ReasonCode,
62+
StorageTargetType,
63+
)
64+
65+
__all__ = [
66+
'ApiOperation',
67+
'ApiOperationDisplay',
68+
'Cache',
69+
'CacheHealth',
70+
'CacheSku',
71+
'CacheUpgradeStatus',
72+
'ClfsTarget',
73+
'CloudError', 'CloudErrorException',
74+
'CloudErrorBody',
75+
'NamespaceJunction',
76+
'Nfs3Target',
77+
'ResourceSku',
78+
'ResourceSkuCapabilities',
79+
'ResourceSkuLocationInfo',
80+
'Restriction',
81+
'StorageTarget',
82+
'UnknownTarget',
83+
'UsageModel',
84+
'UsageModelDisplay',
85+
'ApiOperationPaged',
86+
'ResourceSkuPaged',
87+
'UsageModelPaged',
88+
'CachePaged',
89+
'StorageTargetPaged',
90+
'HealthStateType',
91+
'ProvisioningStateType',
92+
'FirmwareStatusType',
93+
'ReasonCode',
94+
'StorageTargetType',
95+
]

0 commit comments

Comments
 (0)