Skip to content

Commit

Permalink
[AutoRelease] t2-storagecache-2021-07-29-63871 (#19987)
Browse files Browse the repository at this point in the history
* CodeGen from PR 14545 in Azure/azure-rest-api-specs
[Hub Generated] Review request for Microsoft.StorageCache to add version stable/2021-05-01 (#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 <sdkautomation@microsoft.com>
Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>
  • Loading branch information
Azure CLI Bot and SDKAuto authored Aug 2, 2021
1 parent 6878e8f commit e9f8c6a
Show file tree
Hide file tree
Showing 28 changed files with 1,097 additions and 159 deletions.
12 changes: 12 additions & 0 deletions sdk/storage/azure-mgmt-storagecache/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Release History

## 1.0.0 (2021-07-29)

**Features**

- Model CacheEncryptionSettings has a new parameter rotation_to_latest_key_version_enabled
- Model CacheIdentity has a new parameter user_assigned_identities
- Added operation group StorageTargetOperations

**Breaking changes**

- Operation StorageTargetsOperations.begin_delete has a new signature

## 1.0.0b1 (2021-05-13)

This is beta preview version.
Expand Down
11 changes: 7 additions & 4 deletions sdk/storage/azure-mgmt-storagecache/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"autorest": "3.3.0",
"use": "@autorest/python@5.6.6",
"commit": "e7411b54a07fdf737ac2d5557401e3a9c7e7a3fe",
"autorest": "3.4.5",
"use": [
"@autorest/python@5.8.4",
"@autorest/modelerfour@4.19.2"
],
"commit": "2b4fc08199d3789162b806c70eb25f09a40fc55c",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"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",
"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/modelerfour@4.19.2 --version=3.4.5",
"readme": "specification/storagecache/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2021-03-01"
self.api_version = "2021-05-01"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-storagecache/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"chosen_version": "2021-03-01",
"total_api_version_list": ["2021-03-01"],
"chosen_version": "2021-05-01",
"total_api_version_list": ["2021-05-01"],
"client": {
"name": "StorageCacheManagementClient",
"filename": "_storage_cache_management_client",
Expand Down Expand Up @@ -103,6 +103,7 @@
"usage_models": "UsageModelsOperations",
"asc_operations": "AscOperationsOperations",
"caches": "CachesOperations",
"storage_targets": "StorageTargetsOperations"
"storage_targets": "StorageTargetsOperations",
"storage_target": "StorageTargetOperations"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
from .operations import AscOperationsOperations
from .operations import CachesOperations
from .operations import StorageTargetsOperations
from .operations import StorageTargetOperations
from . import models


Expand All @@ -43,6 +44,8 @@ class StorageCacheManagementClient(object):
:vartype caches: storage_cache_management_client.operations.CachesOperations
:ivar storage_targets: StorageTargetsOperations operations
:vartype storage_targets: storage_cache_management_client.operations.StorageTargetsOperations
:ivar storage_target: StorageTargetOperations operations
:vartype storage_target: storage_cache_management_client.operations.StorageTargetOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
Expand Down Expand Up @@ -81,6 +84,8 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.storage_targets = StorageTargetsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.storage_target = StorageTargetOperations(
self._client, self._config, self._serialize, self._deserialize)

def _send_request(self, http_request, **kwargs):
# type: (HttpRequest, Any) -> HttpResponse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "1.0.0b1"
VERSION = "1.0.0"
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2021-03-01"
self.api_version = "2021-05-01"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-storagecache/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from .operations import AscOperationsOperations
from .operations import CachesOperations
from .operations import StorageTargetsOperations
from .operations import StorageTargetOperations
from .. import models


Expand All @@ -41,6 +42,8 @@ class StorageCacheManagementClient(object):
:vartype caches: storage_cache_management_client.aio.operations.CachesOperations
:ivar storage_targets: StorageTargetsOperations operations
:vartype storage_targets: storage_cache_management_client.aio.operations.StorageTargetsOperations
:ivar storage_target: StorageTargetOperations operations
:vartype storage_target: storage_cache_management_client.aio.operations.StorageTargetOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
Expand Down Expand Up @@ -78,6 +81,8 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.storage_targets = StorageTargetsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.storage_target = StorageTargetOperations(
self._client, self._config, self._serialize, self._deserialize)

async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse:
"""Runs the network request through the client's chained policies.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from ._asc_operations_operations import AscOperationsOperations
from ._caches_operations import CachesOperations
from ._storage_targets_operations import StorageTargetsOperations
from ._storage_target_operations import StorageTargetOperations

__all__ = [
'Operations',
Expand All @@ -20,4 +21,5 @@
'AscOperationsOperations',
'CachesOperations',
'StorageTargetsOperations',
'StorageTargetOperations',
]
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def get(
self,
location: str,
operation_id: str,
**kwargs
**kwargs: Any
) -> "_models.AscOperation":
"""Gets the status of an asynchronous operation for the Azure HPC Cache.
Expand All @@ -62,7 +62,7 @@ async def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-03-01"
api_version = "2021-05-01"
accept = "application/json"

# Construct URL
Expand Down
Loading

0 comments on commit e9f8c6a

Please sign in to comment.