Skip to content

Commit

Permalink
CodeGen from PR 14545 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 40b1234023327a131f4befdd3faaecdbaaef6a4d into 83fc40f
  • Loading branch information
SDKAuto committed Jun 1, 2021
1 parent 0b4a699 commit 9a5b64c
Show file tree
Hide file tree
Showing 26 changed files with 1,080 additions and 154 deletions.
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.2",
"use": [
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"commit": "e86d29059496fb4b313892db1e11534b90132dd5",
"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.0 --use=@autorest/[email protected] --version=3.4.2",
"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

0 comments on commit 9a5b64c

Please sign in to comment.