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
2 changes: 1 addition & 1 deletion sdk/storage/azure-mgmt-storagecache/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"commit": "2b4fc08199d3789162b806c70eb25f09a40fc55c",
"commit": "372c80287d3f1947454c3c419bf8963f51794fbb",
"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/[email protected] --use=@autorest/[email protected] --version=3.4.5",
"readme": "specification/storagecache/resource-manager/readme.md"
Expand Down
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-05-01"
self.api_version = "2021-09-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-05-01",
"total_api_version_list": ["2021-05-01"],
"chosen_version": "2021-09-01",
"total_api_version_list": ["2021-09-01"],
"client": {
"name": "StorageCacheManagementClient",
"filename": "_storage_cache_management_client",
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.0"
VERSION = "1.0.0b1"
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-05-01"
self.api_version = "2021-09-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 @@ -62,7 +62,7 @@ async def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-05-01"
api_version = "2021-09-01"
accept = "application/json"

# Construct URL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-05-01"
api_version = "2021-09-01"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -128,7 +128,7 @@ def list_by_resource_group(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-05-01"
api_version = "2021-09-01"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -190,7 +190,7 @@ async def _delete_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-05-01"
api_version = "2021-09-01"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -311,7 +311,7 @@ async def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-05-01"
api_version = "2021-09-01"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -359,7 +359,7 @@ async def _create_or_update_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-05-01"
api_version = "2021-09-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -508,7 +508,7 @@ async def update(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-05-01"
api_version = "2021-09-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -563,7 +563,7 @@ async def _debug_info_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-05-01"
api_version = "2021-09-01"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -672,7 +672,7 @@ async def _flush_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-05-01"
api_version = "2021-09-01"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -782,7 +782,7 @@ async def _start_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-05-01"
api_version = "2021-09-01"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -891,7 +891,7 @@ async def _stop_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-05-01"
api_version = "2021-09-01"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -1000,7 +1000,7 @@ async def _upgrade_firmware_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-05-01"
api_version = "2021-09-01"
accept = "application/json"

# Construct URL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-05-01"
api_version = "2021-09-01"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-05-01"
api_version = "2021-09-01"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ async def _flush_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-05-01"
api_version = "2021-09-01"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -172,7 +172,7 @@ async def _suspend_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-05-01"
api_version = "2021-09-01"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -288,7 +288,7 @@ async def _resume_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-05-01"
api_version = "2021-09-01"
accept = "application/json"

# Construct URL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ async def _dns_refresh_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-05-01"
api_version = "2021-09-01"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -182,7 +182,7 @@ def list_by_cache(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-05-01"
api_version = "2021-09-01"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -247,7 +247,7 @@ async def _delete_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-05-01"
api_version = "2021-09-01"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -387,7 +387,7 @@ async def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-05-01"
api_version = "2021-09-01"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -437,7 +437,7 @@ async def _create_or_update_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-05-01"
api_version = "2021-09-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-05-01"
api_version = "2021-09-01"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
MetricAggregationType,
NfsAccessRuleAccess,
NfsAccessRuleScope,
OperationalStateType,
ProvisioningStateType,
ReasonCode,
StorageTargetType,
Expand Down Expand Up @@ -172,6 +173,7 @@
'MetricAggregationType',
'NfsAccessRuleAccess',
'NfsAccessRuleScope',
'OperationalStateType',
'ProvisioningStateType',
'ReasonCode',
'StorageTargetType',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1390,6 +1390,9 @@ class StorageTarget(StorageTargetResource):
"Updating".
:vartype provisioning_state: str or
~storage_cache_management_client.models.ProvisioningStateType
:param state: Storage target operational state. Possible values include: "Ready", "Busy",
"Suspended", "Flushing".
:type state: str or ~storage_cache_management_client.models.OperationalStateType
:param nfs3: Properties when targetType is nfs3.
:type nfs3: ~storage_cache_management_client.models.Nfs3Target
:param clfs: Properties when targetType is clfs.
Expand Down Expand Up @@ -1418,6 +1421,7 @@ class StorageTarget(StorageTargetResource):
'junctions': {'key': 'properties.junctions', 'type': '[NamespaceJunction]'},
'target_type': {'key': 'properties.targetType', 'type': 'str'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'state': {'key': 'properties.state', 'type': 'str'},
'nfs3': {'key': 'properties.nfs3', 'type': 'Nfs3Target'},
'clfs': {'key': 'properties.clfs', 'type': 'ClfsTarget'},
'unknown': {'key': 'properties.unknown', 'type': 'UnknownTarget'},
Expand All @@ -1432,6 +1436,7 @@ def __init__(
self.junctions = kwargs.get('junctions', None)
self.target_type = kwargs.get('target_type', None)
self.provisioning_state = None
self.state = kwargs.get('state', None)
self.nfs3 = kwargs.get('nfs3', None)
self.clfs = kwargs.get('clfs', None)
self.unknown = kwargs.get('unknown', None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1546,6 +1546,9 @@ class StorageTarget(StorageTargetResource):
"Updating".
:vartype provisioning_state: str or
~storage_cache_management_client.models.ProvisioningStateType
:param state: Storage target operational state. Possible values include: "Ready", "Busy",
"Suspended", "Flushing".
:type state: str or ~storage_cache_management_client.models.OperationalStateType
:param nfs3: Properties when targetType is nfs3.
:type nfs3: ~storage_cache_management_client.models.Nfs3Target
:param clfs: Properties when targetType is clfs.
Expand Down Expand Up @@ -1574,6 +1577,7 @@ class StorageTarget(StorageTargetResource):
'junctions': {'key': 'properties.junctions', 'type': '[NamespaceJunction]'},
'target_type': {'key': 'properties.targetType', 'type': 'str'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'state': {'key': 'properties.state', 'type': 'str'},
'nfs3': {'key': 'properties.nfs3', 'type': 'Nfs3Target'},
'clfs': {'key': 'properties.clfs', 'type': 'ClfsTarget'},
'unknown': {'key': 'properties.unknown', 'type': 'UnknownTarget'},
Expand All @@ -1585,6 +1589,7 @@ def __init__(
*,
junctions: Optional[List["NamespaceJunction"]] = None,
target_type: Optional[Union[str, "StorageTargetType"]] = None,
state: Optional[Union[str, "OperationalStateType"]] = None,
nfs3: Optional["Nfs3Target"] = None,
clfs: Optional["ClfsTarget"] = None,
unknown: Optional["UnknownTarget"] = None,
Expand All @@ -1595,6 +1600,7 @@ def __init__(
self.junctions = junctions
self.target_type = target_type
self.provisioning_state = None
self.state = state
self.nfs3 = nfs3
self.clfs = clfs
self.unknown = unknown
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,15 @@ class NfsAccessRuleScope(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
NETWORK = "network"
HOST = "host"

class OperationalStateType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""Storage target operational state.
"""

READY = "Ready"
BUSY = "Busy"
SUSPENDED = "Suspended"
FLUSHING = "Flushing"

class ProvisioningStateType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""ARM provisioning state, see
https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#provisioningstate-property
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-05-01"
api_version = "2021-09-01"
accept = "application/json"

# Construct URL
Expand Down
Loading