Skip to content

Commit e9f8c6a

Browse files
Azure CLI BotSDKAuto
andauthored
[AutoRelease] t2-storagecache-2021-07-29-63871 (Azure#19987)
* CodeGen from PR 14545 in Azure/azure-rest-api-specs [Hub Generated] Review request for Microsoft.StorageCache to add version stable/2021-05-01 (Azure#14545) * Adds base for updating Microsoft.StorageCache from version stable/2021-03-01 to version 2021-05-01 * Updates readme * Updates API version in new specs and examples * 2021-05-01 API Changes * prettier fix * Lintdiff fix * Add create only fields * Create only tag for CacheIdentity * Create only tag for CacheIdentity * Remove create only for key rotation * Fix s360 errors * Fix read only * Revert package-lock.json * Revert package-lock.json * version,CHANGELOG Co-authored-by: SDKAuto <[email protected]> Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>
1 parent 6878e8f commit e9f8c6a

28 files changed

+1097
-159
lines changed

sdk/storage/azure-mgmt-storagecache/CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Release History
22

3+
## 1.0.0 (2021-07-29)
4+
5+
**Features**
6+
7+
- Model CacheEncryptionSettings has a new parameter rotation_to_latest_key_version_enabled
8+
- Model CacheIdentity has a new parameter user_assigned_identities
9+
- Added operation group StorageTargetOperations
10+
11+
**Breaking changes**
12+
13+
- Operation StorageTargetsOperations.begin_delete has a new signature
14+
315
## 1.0.0b1 (2021-05-13)
416

517
This is beta preview version.
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{
2-
"autorest": "3.3.0",
3-
"use": "@autorest/[email protected]",
4-
"commit": "e7411b54a07fdf737ac2d5557401e3a9c7e7a3fe",
2+
"autorest": "3.4.5",
3+
"use": [
4+
"@autorest/[email protected]",
5+
"@autorest/[email protected]"
6+
],
7+
"commit": "2b4fc08199d3789162b806c70eb25f09a40fc55c",
58
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
6-
"autorest_command": "autorest specification/storagecache/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.6.6 --version=3.3.0",
9+
"autorest_command": "autorest specification/storagecache/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.4 --use=@autorest/[email protected] --version=3.4.5",
710
"readme": "specification/storagecache/resource-manager/readme.md"
811
}

sdk/storage/azure-mgmt-storagecache/azure/mgmt/storagecache/_configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def __init__(
4848

4949
self.credential = credential
5050
self.subscription_id = subscription_id
51-
self.api_version = "2021-03-01"
51+
self.api_version = "2021-05-01"
5252
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5353
kwargs.setdefault('sdk_moniker', 'mgmt-storagecache/{}'.format(VERSION))
5454
self._configure(**kwargs)

sdk/storage/azure-mgmt-storagecache/azure/mgmt/storagecache/_metadata.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"chosen_version": "2021-03-01",
3-
"total_api_version_list": ["2021-03-01"],
2+
"chosen_version": "2021-05-01",
3+
"total_api_version_list": ["2021-05-01"],
44
"client": {
55
"name": "StorageCacheManagementClient",
66
"filename": "_storage_cache_management_client",
@@ -103,6 +103,7 @@
103103
"usage_models": "UsageModelsOperations",
104104
"asc_operations": "AscOperationsOperations",
105105
"caches": "CachesOperations",
106-
"storage_targets": "StorageTargetsOperations"
106+
"storage_targets": "StorageTargetsOperations",
107+
"storage_target": "StorageTargetOperations"
107108
}
108109
}

sdk/storage/azure-mgmt-storagecache/azure/mgmt/storagecache/_storage_cache_management_client.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
from .operations import AscOperationsOperations
2626
from .operations import CachesOperations
2727
from .operations import StorageTargetsOperations
28+
from .operations import StorageTargetOperations
2829
from . import models
2930

3031

@@ -43,6 +44,8 @@ class StorageCacheManagementClient(object):
4344
:vartype caches: storage_cache_management_client.operations.CachesOperations
4445
:ivar storage_targets: StorageTargetsOperations operations
4546
:vartype storage_targets: storage_cache_management_client.operations.StorageTargetsOperations
47+
:ivar storage_target: StorageTargetOperations operations
48+
:vartype storage_target: storage_cache_management_client.operations.StorageTargetOperations
4649
:param credential: Credential needed for the client to connect to Azure.
4750
:type credential: ~azure.core.credentials.TokenCredential
4851
:param subscription_id: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
@@ -81,6 +84,8 @@ def __init__(
8184
self._client, self._config, self._serialize, self._deserialize)
8285
self.storage_targets = StorageTargetsOperations(
8386
self._client, self._config, self._serialize, self._deserialize)
87+
self.storage_target = StorageTargetOperations(
88+
self._client, self._config, self._serialize, self._deserialize)
8489

8590
def _send_request(self, http_request, **kwargs):
8691
# type: (HttpRequest, Any) -> HttpResponse

sdk/storage/azure-mgmt-storagecache/azure/mgmt/storagecache/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "1.0.0b1"
9+
VERSION = "1.0.0"

sdk/storage/azure-mgmt-storagecache/azure/mgmt/storagecache/aio/_configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __init__(
4545

4646
self.credential = credential
4747
self.subscription_id = subscription_id
48-
self.api_version = "2021-03-01"
48+
self.api_version = "2021-05-01"
4949
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5050
kwargs.setdefault('sdk_moniker', 'mgmt-storagecache/{}'.format(VERSION))
5151
self._configure(**kwargs)

sdk/storage/azure-mgmt-storagecache/azure/mgmt/storagecache/aio/_storage_cache_management_client.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
from .operations import AscOperationsOperations
2424
from .operations import CachesOperations
2525
from .operations import StorageTargetsOperations
26+
from .operations import StorageTargetOperations
2627
from .. import models
2728

2829

@@ -41,6 +42,8 @@ class StorageCacheManagementClient(object):
4142
:vartype caches: storage_cache_management_client.aio.operations.CachesOperations
4243
:ivar storage_targets: StorageTargetsOperations operations
4344
:vartype storage_targets: storage_cache_management_client.aio.operations.StorageTargetsOperations
45+
:ivar storage_target: StorageTargetOperations operations
46+
:vartype storage_target: storage_cache_management_client.aio.operations.StorageTargetOperations
4447
:param credential: Credential needed for the client to connect to Azure.
4548
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
4649
:param subscription_id: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
@@ -78,6 +81,8 @@ def __init__(
7881
self._client, self._config, self._serialize, self._deserialize)
7982
self.storage_targets = StorageTargetsOperations(
8083
self._client, self._config, self._serialize, self._deserialize)
84+
self.storage_target = StorageTargetOperations(
85+
self._client, self._config, self._serialize, self._deserialize)
8186

8287
async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse:
8388
"""Runs the network request through the client's chained policies.

sdk/storage/azure-mgmt-storagecache/azure/mgmt/storagecache/aio/operations/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
from ._asc_operations_operations import AscOperationsOperations
1313
from ._caches_operations import CachesOperations
1414
from ._storage_targets_operations import StorageTargetsOperations
15+
from ._storage_target_operations import StorageTargetOperations
1516

1617
__all__ = [
1718
'Operations',
@@ -20,4 +21,5 @@
2021
'AscOperationsOperations',
2122
'CachesOperations',
2223
'StorageTargetsOperations',
24+
'StorageTargetOperations',
2325
]

sdk/storage/azure-mgmt-storagecache/azure/mgmt/storagecache/aio/operations/_asc_operations_operations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ async def get(
4444
self,
4545
location: str,
4646
operation_id: str,
47-
**kwargs
47+
**kwargs: Any
4848
) -> "_models.AscOperation":
4949
"""Gets the status of an asynchronous operation for the Azure HPC Cache.
5050
@@ -62,7 +62,7 @@ async def get(
6262
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
6363
}
6464
error_map.update(kwargs.pop('error_map', {}))
65-
api_version = "2021-03-01"
65+
api_version = "2021-05-01"
6666
accept = "application/json"
6767

6868
# Construct URL

0 commit comments

Comments
 (0)