Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/[email protected]",
"commit": "e7411b54a07fdf737ac2d5557401e3a9c7e7a3fe",
"autorest": "3.4.5",
"use": [
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"commit": "06cdc2b4a3dfed3ad88d81a700859c66abe16079",
"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/[email protected] --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 @@ -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