[AutoRelease] t2-storagecache-2024-01-23-36234(can only be merged by SDK owner) (#33953)
* code and test * update-testcase * Update CHANGELOG.md --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: ChenxiJiang333 <v-chenjiang@microsoft.com> Co-authored-by: ChenxiJiang333 <119990644+ChenxiJiang333@users.noreply.github.com>
This commit is contained in:
Родитель
2ed52ae48c
Коммит
616e76ac1f
|
@ -1,5 +1,12 @@
|
|||
# Release History
|
||||
|
||||
## 1.6.0b1 (2024-02-22)
|
||||
|
||||
### Features Added
|
||||
|
||||
- Model AmlFilesystem has a new parameter root_squash_settings
|
||||
- Model AmlFilesystemUpdate has a new parameter root_squash_settings
|
||||
|
||||
## 1.5.0 (2023-06-16)
|
||||
|
||||
### Features Added
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Microsoft Azure SDK for Python
|
||||
|
||||
This is the Microsoft Azure Storage Cache Management Client Library.
|
||||
This package has been tested with Python 3.7+.
|
||||
This package has been tested with Python 3.8+.
|
||||
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
|
||||
|
||||
## _Disclaimer_
|
||||
|
@ -12,7 +12,7 @@ _Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For
|
|||
|
||||
### Prerequisites
|
||||
|
||||
- Python 3.7+ is required to use this package.
|
||||
- Python 3.8+ is required to use this package.
|
||||
- [Azure subscription](https://azure.microsoft.com/free/)
|
||||
|
||||
### Install the package
|
||||
|
@ -59,6 +59,3 @@ Code samples for this package can be found at:
|
|||
If you encounter any bugs or have suggestions, please file an issue in the
|
||||
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
|
||||
section of the project.
|
||||
|
||||
|
||||
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-storagecache%2FREADME.png)
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
{
|
||||
"commit": "a04dcf17baa7d980c29248fa00c14a7c5b69e67f",
|
||||
"commit": "aac54838d8d098a005df918d1667ff19423cc51f",
|
||||
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
|
||||
"autorest": "3.9.2",
|
||||
"autorest": "3.9.7",
|
||||
"use": [
|
||||
"@autorest/python@6.5.0",
|
||||
"@autorest/modelerfour@4.24.3"
|
||||
"@autorest/python@6.7.1",
|
||||
"@autorest/modelerfour@4.26.2"
|
||||
],
|
||||
"autorest_command": "autorest specification/storagecache/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.5.0 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
|
||||
"autorest_command": "autorest specification/storagecache/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.7.1 --use=@autorest/modelerfour@4.26.2 --version=3.9.7 --version-tolerant=False",
|
||||
"readme": "specification/storagecache/resource-manager/readme.md"
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"AssetsRepo": "Azure/azure-sdk-assets",
|
||||
"AssetsRepoPrefixPath": "python",
|
||||
"TagPrefix": "python/storagecache/azure-mgmt-storagecache",
|
||||
"Tag": "python/storagecache/azure-mgmt-storagecache_c96bb635ff"
|
||||
}
|
|
@ -29,14 +29,14 @@ class StorageCacheManagementClientConfiguration(Configuration): # pylint: disab
|
|||
:type credential: ~azure.core.credentials.TokenCredential
|
||||
:param subscription_id: The ID of the target subscription. Required.
|
||||
:type subscription_id: str
|
||||
:keyword api_version: Api Version. Default value is "2023-05-01". Note that overriding this
|
||||
default value may result in unsupported behavior.
|
||||
:keyword api_version: Api Version. Default value is "2023-11-01-preview". Note that overriding
|
||||
this default value may result in unsupported behavior.
|
||||
:paramtype api_version: str
|
||||
"""
|
||||
|
||||
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
|
||||
super(StorageCacheManagementClientConfiguration, self).__init__(**kwargs)
|
||||
api_version: str = kwargs.pop("api_version", "2023-05-01")
|
||||
api_version: str = kwargs.pop("api_version", "2023-11-01-preview")
|
||||
|
||||
if credential is None:
|
||||
raise ValueError("Parameter 'credential' must not be None.")
|
||||
|
|
|
@ -662,8 +662,9 @@ class Serializer(object):
|
|||
_serialized.update(_new_attr) # type: ignore
|
||||
_new_attr = _new_attr[k] # type: ignore
|
||||
_serialized = _serialized[k]
|
||||
except ValueError:
|
||||
continue
|
||||
except ValueError as err:
|
||||
if isinstance(err, SerializationError):
|
||||
raise
|
||||
|
||||
except (AttributeError, KeyError, TypeError) as err:
|
||||
msg = "Attribute {} in object {} cannot be serialized.\n{}".format(attr_name, class_name, str(target_obj))
|
||||
|
@ -741,6 +742,8 @@ class Serializer(object):
|
|||
|
||||
:param data: The data to be serialized.
|
||||
:param str data_type: The type to be serialized from.
|
||||
:keyword bool skip_quote: Whether to skip quote the serialized result.
|
||||
Defaults to False.
|
||||
:rtype: str
|
||||
:raises: TypeError if serialization fails.
|
||||
:raises: ValueError if data is None
|
||||
|
@ -749,10 +752,8 @@ class Serializer(object):
|
|||
# Treat the list aside, since we don't want to encode the div separator
|
||||
if data_type.startswith("["):
|
||||
internal_data_type = data_type[1:-1]
|
||||
data = [self.serialize_data(d, internal_data_type, **kwargs) if d is not None else "" for d in data]
|
||||
if not kwargs.get("skip_quote", False):
|
||||
data = [quote(str(d), safe="") for d in data]
|
||||
return str(self.serialize_iter(data, internal_data_type, **kwargs))
|
||||
do_quote = not kwargs.get("skip_quote", False)
|
||||
return str(self.serialize_iter(data, internal_data_type, do_quote=do_quote, **kwargs))
|
||||
|
||||
# Not a list, regular serialization
|
||||
output = self.serialize_data(data, data_type, **kwargs)
|
||||
|
@ -891,6 +892,8 @@ class Serializer(object):
|
|||
not be None or empty.
|
||||
:param str div: If set, this str will be used to combine the elements
|
||||
in the iterable into a combined string. Default is 'None'.
|
||||
:keyword bool do_quote: Whether to quote the serialized result of each iterable element.
|
||||
Defaults to False.
|
||||
:rtype: list, str
|
||||
"""
|
||||
if isinstance(data, str):
|
||||
|
@ -903,9 +906,14 @@ class Serializer(object):
|
|||
for d in data:
|
||||
try:
|
||||
serialized.append(self.serialize_data(d, iter_type, **kwargs))
|
||||
except ValueError:
|
||||
except ValueError as err:
|
||||
if isinstance(err, SerializationError):
|
||||
raise
|
||||
serialized.append(None)
|
||||
|
||||
if kwargs.get("do_quote", False):
|
||||
serialized = ["" if s is None else quote(str(s), safe="") for s in serialized]
|
||||
|
||||
if div:
|
||||
serialized = ["" if s is None else str(s) for s in serialized]
|
||||
serialized = div.join(serialized)
|
||||
|
@ -950,7 +958,9 @@ class Serializer(object):
|
|||
for key, value in attr.items():
|
||||
try:
|
||||
serialized[self.serialize_unicode(key)] = self.serialize_data(value, dict_type, **kwargs)
|
||||
except ValueError:
|
||||
except ValueError as err:
|
||||
if isinstance(err, SerializationError):
|
||||
raise
|
||||
serialized[self.serialize_unicode(key)] = None
|
||||
|
||||
if "xml" in serialization_ctxt:
|
||||
|
|
|
@ -64,8 +64,8 @@ class StorageCacheManagementClient(
|
|||
:type subscription_id: str
|
||||
:param base_url: Service URL. Default value is "https://management.azure.com".
|
||||
:type base_url: str
|
||||
:keyword api_version: Api Version. Default value is "2023-05-01". Note that overriding this
|
||||
default value may result in unsupported behavior.
|
||||
:keyword api_version: Api Version. Default value is "2023-11-01-preview". Note that overriding
|
||||
this default value may result in unsupported behavior.
|
||||
:paramtype api_version: str
|
||||
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
|
||||
Retry-After header is present.
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
# --------------------------------------------------------------------------
|
||||
|
||||
from abc import ABC
|
||||
from typing import List, TYPE_CHECKING, cast
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from azure.core.pipeline.transport import HttpRequest
|
||||
|
||||
|
@ -27,18 +27,6 @@ def _convert_request(request, files=None):
|
|||
return request
|
||||
|
||||
|
||||
def _format_url_section(template, **kwargs):
|
||||
components = template.split("/")
|
||||
while components:
|
||||
try:
|
||||
return template.format(**kwargs)
|
||||
except KeyError as key:
|
||||
# Need the cast, as for some reasons "split" is typed as list[str | Any]
|
||||
formatted_components = cast(List[str], template.split("/"))
|
||||
components = [c for c in formatted_components if "{}".format(key.args[0]) not in c]
|
||||
template = "/".join(components)
|
||||
|
||||
|
||||
class StorageCacheManagementClientMixinABC(ABC):
|
||||
"""DO NOT use this class. It is for internal typing use only."""
|
||||
|
||||
|
|
|
@ -6,4 +6,4 @@
|
|||
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
|
||||
VERSION = "1.5.0"
|
||||
VERSION = "1.6.0b1"
|
||||
|
|
|
@ -29,14 +29,14 @@ class StorageCacheManagementClientConfiguration(Configuration): # pylint: disab
|
|||
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
|
||||
:param subscription_id: The ID of the target subscription. Required.
|
||||
:type subscription_id: str
|
||||
:keyword api_version: Api Version. Default value is "2023-05-01". Note that overriding this
|
||||
default value may result in unsupported behavior.
|
||||
:keyword api_version: Api Version. Default value is "2023-11-01-preview". Note that overriding
|
||||
this default value may result in unsupported behavior.
|
||||
:paramtype api_version: str
|
||||
"""
|
||||
|
||||
def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
|
||||
super(StorageCacheManagementClientConfiguration, self).__init__(**kwargs)
|
||||
api_version: str = kwargs.pop("api_version", "2023-05-01")
|
||||
api_version: str = kwargs.pop("api_version", "2023-11-01-preview")
|
||||
|
||||
if credential is None:
|
||||
raise ValueError("Parameter 'credential' must not be None.")
|
||||
|
|
|
@ -64,8 +64,8 @@ class StorageCacheManagementClient(
|
|||
:type subscription_id: str
|
||||
:param base_url: Service URL. Default value is "https://management.azure.com".
|
||||
:type base_url: str
|
||||
:keyword api_version: Api Version. Default value is "2023-05-01". Note that overriding this
|
||||
default value may result in unsupported behavior.
|
||||
:keyword api_version: Api Version. Default value is "2023-11-01-preview". Note that overriding
|
||||
this default value may result in unsupported behavior.
|
||||
:paramtype api_version: str
|
||||
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
|
||||
Retry-After header is present.
|
||||
|
|
|
@ -20,6 +20,7 @@ from ._models_py3 import AmlFilesystemHsmSettings
|
|||
from ._models_py3 import AmlFilesystemIdentity
|
||||
from ._models_py3 import AmlFilesystemPropertiesHsm
|
||||
from ._models_py3 import AmlFilesystemPropertiesMaintenanceWindow
|
||||
from ._models_py3 import AmlFilesystemRootSquashSettings
|
||||
from ._models_py3 import AmlFilesystemSubnetInfo
|
||||
from ._models_py3 import AmlFilesystemUpdate
|
||||
from ._models_py3 import AmlFilesystemUpdatePropertiesMaintenanceWindow
|
||||
|
@ -88,6 +89,7 @@ from ._models_py3 import UserAssignedIdentitiesValueAutoGenerated
|
|||
from ._storage_cache_management_client_enums import AmlFilesystemHealthStateType
|
||||
from ._storage_cache_management_client_enums import AmlFilesystemIdentityType
|
||||
from ._storage_cache_management_client_enums import AmlFilesystemProvisioningStateType
|
||||
from ._storage_cache_management_client_enums import AmlFilesystemSquashMode
|
||||
from ._storage_cache_management_client_enums import ArchiveStatusType
|
||||
from ._storage_cache_management_client_enums import CacheIdentityType
|
||||
from ._storage_cache_management_client_enums import CreatedByType
|
||||
|
@ -125,6 +127,7 @@ __all__ = [
|
|||
"AmlFilesystemIdentity",
|
||||
"AmlFilesystemPropertiesHsm",
|
||||
"AmlFilesystemPropertiesMaintenanceWindow",
|
||||
"AmlFilesystemRootSquashSettings",
|
||||
"AmlFilesystemSubnetInfo",
|
||||
"AmlFilesystemUpdate",
|
||||
"AmlFilesystemUpdatePropertiesMaintenanceWindow",
|
||||
|
@ -192,6 +195,7 @@ __all__ = [
|
|||
"AmlFilesystemHealthStateType",
|
||||
"AmlFilesystemIdentityType",
|
||||
"AmlFilesystemProvisioningStateType",
|
||||
"AmlFilesystemSquashMode",
|
||||
"ArchiveStatusType",
|
||||
"CacheIdentityType",
|
||||
"CreatedByType",
|
||||
|
|
|
@ -172,6 +172,8 @@ class AmlFilesystem(TrackedResource): # pylint: disable=too-many-instance-attri
|
|||
~azure.mgmt.storagecache.models.AmlFilesystemPropertiesMaintenanceWindow
|
||||
:ivar hsm: Hydration and archive settings and status.
|
||||
:vartype hsm: ~azure.mgmt.storagecache.models.AmlFilesystemPropertiesHsm
|
||||
:ivar root_squash_settings: Specifies root squash settings of the AML file system.
|
||||
:vartype root_squash_settings: ~azure.mgmt.storagecache.models.AmlFilesystemRootSquashSettings
|
||||
"""
|
||||
|
||||
_validation = {
|
||||
|
@ -208,6 +210,7 @@ class AmlFilesystem(TrackedResource): # pylint: disable=too-many-instance-attri
|
|||
"type": "AmlFilesystemPropertiesMaintenanceWindow",
|
||||
},
|
||||
"hsm": {"key": "properties.hsm", "type": "AmlFilesystemPropertiesHsm"},
|
||||
"root_squash_settings": {"key": "properties.rootSquashSettings", "type": "AmlFilesystemRootSquashSettings"},
|
||||
}
|
||||
|
||||
def __init__(
|
||||
|
@ -223,6 +226,7 @@ class AmlFilesystem(TrackedResource): # pylint: disable=too-many-instance-attri
|
|||
encryption_settings: Optional["_models.AmlFilesystemEncryptionSettings"] = None,
|
||||
maintenance_window: Optional["_models.AmlFilesystemPropertiesMaintenanceWindow"] = None,
|
||||
hsm: Optional["_models.AmlFilesystemPropertiesHsm"] = None,
|
||||
root_squash_settings: Optional["_models.AmlFilesystemRootSquashSettings"] = None,
|
||||
**kwargs: Any
|
||||
) -> None:
|
||||
"""
|
||||
|
@ -250,6 +254,9 @@ class AmlFilesystem(TrackedResource): # pylint: disable=too-many-instance-attri
|
|||
~azure.mgmt.storagecache.models.AmlFilesystemPropertiesMaintenanceWindow
|
||||
:keyword hsm: Hydration and archive settings and status.
|
||||
:paramtype hsm: ~azure.mgmt.storagecache.models.AmlFilesystemPropertiesHsm
|
||||
:keyword root_squash_settings: Specifies root squash settings of the AML file system.
|
||||
:paramtype root_squash_settings:
|
||||
~azure.mgmt.storagecache.models.AmlFilesystemRootSquashSettings
|
||||
"""
|
||||
super().__init__(tags=tags, location=location, **kwargs)
|
||||
self.identity = identity
|
||||
|
@ -264,6 +271,7 @@ class AmlFilesystem(TrackedResource): # pylint: disable=too-many-instance-attri
|
|||
self.encryption_settings = encryption_settings
|
||||
self.maintenance_window = maintenance_window
|
||||
self.hsm = hsm
|
||||
self.root_squash_settings = root_squash_settings
|
||||
|
||||
|
||||
class AmlFilesystemArchive(_serialization.Model):
|
||||
|
@ -740,6 +748,72 @@ class AmlFilesystemPropertiesMaintenanceWindow(_serialization.Model):
|
|||
self.time_of_day_utc = time_of_day_utc
|
||||
|
||||
|
||||
class AmlFilesystemRootSquashSettings(_serialization.Model):
|
||||
"""AML file system squash settings.
|
||||
|
||||
Variables are only populated by the server, and will be ignored when sending a request.
|
||||
|
||||
:ivar mode: Squash mode of the AML file system. 'All': User and Group IDs on files will be
|
||||
squashed to the provided values for all users on non-trusted systems. 'RootOnly': User and
|
||||
Group IDs on files will be squashed to provided values for solely the root user on non-trusted
|
||||
systems. 'None': No squashing of User and Group IDs is performed for any users on any systems.
|
||||
Known values are: "None", "RootOnly", and "All".
|
||||
:vartype mode: str or ~azure.mgmt.storagecache.models.AmlFilesystemSquashMode
|
||||
:ivar no_squash_nid_lists: Semicolon separated NID IP Address list(s) to be added to the
|
||||
TrustedSystems.
|
||||
:vartype no_squash_nid_lists: str
|
||||
:ivar squash_uid: User ID to squash to.
|
||||
:vartype squash_uid: int
|
||||
:ivar squash_gid: Group ID to squash to.
|
||||
:vartype squash_gid: int
|
||||
:ivar status: AML file system squash status.
|
||||
:vartype status: str
|
||||
"""
|
||||
|
||||
_validation = {
|
||||
"status": {"readonly": True},
|
||||
}
|
||||
|
||||
_attribute_map = {
|
||||
"mode": {"key": "mode", "type": "str"},
|
||||
"no_squash_nid_lists": {"key": "noSquashNidLists", "type": "str"},
|
||||
"squash_uid": {"key": "squashUID", "type": "int"},
|
||||
"squash_gid": {"key": "squashGID", "type": "int"},
|
||||
"status": {"key": "status", "type": "str"},
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
mode: Optional[Union[str, "_models.AmlFilesystemSquashMode"]] = None,
|
||||
no_squash_nid_lists: Optional[str] = None,
|
||||
squash_uid: Optional[int] = None,
|
||||
squash_gid: Optional[int] = None,
|
||||
**kwargs: Any
|
||||
) -> None:
|
||||
"""
|
||||
:keyword mode: Squash mode of the AML file system. 'All': User and Group IDs on files will be
|
||||
squashed to the provided values for all users on non-trusted systems. 'RootOnly': User and
|
||||
Group IDs on files will be squashed to provided values for solely the root user on non-trusted
|
||||
systems. 'None': No squashing of User and Group IDs is performed for any users on any systems.
|
||||
Known values are: "None", "RootOnly", and "All".
|
||||
:paramtype mode: str or ~azure.mgmt.storagecache.models.AmlFilesystemSquashMode
|
||||
:keyword no_squash_nid_lists: Semicolon separated NID IP Address list(s) to be added to the
|
||||
TrustedSystems.
|
||||
:paramtype no_squash_nid_lists: str
|
||||
:keyword squash_uid: User ID to squash to.
|
||||
:paramtype squash_uid: int
|
||||
:keyword squash_gid: Group ID to squash to.
|
||||
:paramtype squash_gid: int
|
||||
"""
|
||||
super().__init__(**kwargs)
|
||||
self.mode = mode
|
||||
self.no_squash_nid_lists = no_squash_nid_lists
|
||||
self.squash_uid = squash_uid
|
||||
self.squash_gid = squash_gid
|
||||
self.status = None
|
||||
|
||||
|
||||
class AmlFilesystemsListResult(_serialization.Model):
|
||||
"""Result of the request to list AML file systems. It contains a list of AML file systems and a
|
||||
URL link to get the next set of results.
|
||||
|
@ -827,6 +901,8 @@ class AmlFilesystemUpdate(_serialization.Model):
|
|||
:ivar maintenance_window: Start time of a 30-minute weekly maintenance window.
|
||||
:vartype maintenance_window:
|
||||
~azure.mgmt.storagecache.models.AmlFilesystemUpdatePropertiesMaintenanceWindow
|
||||
:ivar root_squash_settings: Specifies root squash settings of the AML file system.
|
||||
:vartype root_squash_settings: ~azure.mgmt.storagecache.models.AmlFilesystemRootSquashSettings
|
||||
"""
|
||||
|
||||
_attribute_map = {
|
||||
|
@ -836,6 +912,7 @@ class AmlFilesystemUpdate(_serialization.Model):
|
|||
"key": "properties.maintenanceWindow",
|
||||
"type": "AmlFilesystemUpdatePropertiesMaintenanceWindow",
|
||||
},
|
||||
"root_squash_settings": {"key": "properties.rootSquashSettings", "type": "AmlFilesystemRootSquashSettings"},
|
||||
}
|
||||
|
||||
def __init__(
|
||||
|
@ -844,6 +921,7 @@ class AmlFilesystemUpdate(_serialization.Model):
|
|||
tags: Optional[Dict[str, str]] = None,
|
||||
encryption_settings: Optional["_models.AmlFilesystemEncryptionSettings"] = None,
|
||||
maintenance_window: Optional["_models.AmlFilesystemUpdatePropertiesMaintenanceWindow"] = None,
|
||||
root_squash_settings: Optional["_models.AmlFilesystemRootSquashSettings"] = None,
|
||||
**kwargs: Any
|
||||
) -> None:
|
||||
"""
|
||||
|
@ -854,11 +932,15 @@ class AmlFilesystemUpdate(_serialization.Model):
|
|||
:keyword maintenance_window: Start time of a 30-minute weekly maintenance window.
|
||||
:paramtype maintenance_window:
|
||||
~azure.mgmt.storagecache.models.AmlFilesystemUpdatePropertiesMaintenanceWindow
|
||||
:keyword root_squash_settings: Specifies root squash settings of the AML file system.
|
||||
:paramtype root_squash_settings:
|
||||
~azure.mgmt.storagecache.models.AmlFilesystemRootSquashSettings
|
||||
"""
|
||||
super().__init__(**kwargs)
|
||||
self.tags = tags
|
||||
self.encryption_settings = encryption_settings
|
||||
self.maintenance_window = maintenance_window
|
||||
self.root_squash_settings = root_squash_settings
|
||||
|
||||
|
||||
class AmlFilesystemUpdatePropertiesMaintenanceWindow(_serialization.Model):
|
||||
|
|
|
@ -38,6 +38,18 @@ class AmlFilesystemProvisioningStateType(str, Enum, metaclass=CaseInsensitiveEnu
|
|||
CANCELED = "Canceled"
|
||||
|
||||
|
||||
class AmlFilesystemSquashMode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""Squash mode of the AML file system. 'All': User and Group IDs on files will be squashed to the
|
||||
provided values for all users on non-trusted systems. 'RootOnly': User and Group IDs on files
|
||||
will be squashed to provided values for solely the root user on non-trusted systems. 'None': No
|
||||
squashing of User and Group IDs is performed for any users on any systems.
|
||||
"""
|
||||
|
||||
NONE = "None"
|
||||
ROOT_ONLY = "RootOnly"
|
||||
ALL = "All"
|
||||
|
||||
|
||||
class ArchiveStatusType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
||||
"""The state of the archive operation."""
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ from azure.mgmt.core.polling.arm_polling import ARMPolling
|
|||
|
||||
from .. import models as _models
|
||||
from .._serialization import Serializer
|
||||
from .._vendor import StorageCacheManagementClientMixinABC, _convert_request, _format_url_section
|
||||
from .._vendor import StorageCacheManagementClientMixinABC, _convert_request
|
||||
|
||||
T = TypeVar("T")
|
||||
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
|
||||
|
@ -43,7 +43,7 @@ def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest:
|
|||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01"))
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview"))
|
||||
accept = _headers.pop("Accept", "application/json")
|
||||
|
||||
# Construct URL
|
||||
|
@ -52,7 +52,7 @@ def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest:
|
|||
"subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
|
||||
}
|
||||
|
||||
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
||||
_url: str = _url.format(**path_format_arguments) # type: ignore
|
||||
|
||||
# Construct parameters
|
||||
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
|
||||
|
@ -67,7 +67,7 @@ def build_list_by_resource_group_request(resource_group_name: str, subscription_
|
|||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01"))
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview"))
|
||||
accept = _headers.pop("Accept", "application/json")
|
||||
|
||||
# Construct URL
|
||||
|
@ -82,7 +82,7 @@ def build_list_by_resource_group_request(resource_group_name: str, subscription_
|
|||
"subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
|
||||
}
|
||||
|
||||
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
||||
_url: str = _url.format(**path_format_arguments) # type: ignore
|
||||
|
||||
# Construct parameters
|
||||
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
|
||||
|
@ -99,7 +99,7 @@ def build_delete_request(
|
|||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01"))
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview"))
|
||||
accept = _headers.pop("Accept", "application/json")
|
||||
|
||||
# Construct URL
|
||||
|
@ -122,7 +122,7 @@ def build_delete_request(
|
|||
"subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
|
||||
}
|
||||
|
||||
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
||||
_url: str = _url.format(**path_format_arguments) # type: ignore
|
||||
|
||||
# Construct parameters
|
||||
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
|
||||
|
@ -139,7 +139,7 @@ def build_get_request(
|
|||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01"))
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview"))
|
||||
accept = _headers.pop("Accept", "application/json")
|
||||
|
||||
# Construct URL
|
||||
|
@ -162,7 +162,7 @@ def build_get_request(
|
|||
"subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
|
||||
}
|
||||
|
||||
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
||||
_url: str = _url.format(**path_format_arguments) # type: ignore
|
||||
|
||||
# Construct parameters
|
||||
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
|
||||
|
@ -179,7 +179,7 @@ def build_create_or_update_request(
|
|||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01"))
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview"))
|
||||
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
||||
accept = _headers.pop("Accept", "application/json")
|
||||
|
||||
|
@ -203,7 +203,7 @@ def build_create_or_update_request(
|
|||
),
|
||||
}
|
||||
|
||||
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
||||
_url: str = _url.format(**path_format_arguments) # type: ignore
|
||||
|
||||
# Construct parameters
|
||||
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
|
||||
|
@ -222,7 +222,7 @@ def build_update_request(
|
|||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01"))
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview"))
|
||||
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
||||
accept = _headers.pop("Accept", "application/json")
|
||||
|
||||
|
@ -246,7 +246,7 @@ def build_update_request(
|
|||
),
|
||||
}
|
||||
|
||||
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
||||
_url: str = _url.format(**path_format_arguments) # type: ignore
|
||||
|
||||
# Construct parameters
|
||||
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
|
||||
|
@ -265,7 +265,7 @@ def build_archive_request(
|
|||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01"))
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview"))
|
||||
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
||||
accept = _headers.pop("Accept", "application/json")
|
||||
|
||||
|
@ -289,7 +289,7 @@ def build_archive_request(
|
|||
),
|
||||
}
|
||||
|
||||
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
||||
_url: str = _url.format(**path_format_arguments) # type: ignore
|
||||
|
||||
# Construct parameters
|
||||
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
|
||||
|
@ -308,7 +308,7 @@ def build_cancel_archive_request(
|
|||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01"))
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview"))
|
||||
accept = _headers.pop("Accept", "application/json")
|
||||
|
||||
# Construct URL
|
||||
|
@ -331,7 +331,7 @@ def build_cancel_archive_request(
|
|||
),
|
||||
}
|
||||
|
||||
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
||||
_url: str = _url.format(**path_format_arguments) # type: ignore
|
||||
|
||||
# Construct parameters
|
||||
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
|
||||
|
|
|
@ -25,7 +25,7 @@ from azure.mgmt.core.exceptions import ARMErrorFormat
|
|||
|
||||
from .. import models as _models
|
||||
from .._serialization import Serializer
|
||||
from .._vendor import StorageCacheManagementClientMixinABC, _convert_request, _format_url_section
|
||||
from .._vendor import StorageCacheManagementClientMixinABC, _convert_request
|
||||
|
||||
T = TypeVar("T")
|
||||
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
|
||||
|
@ -38,7 +38,7 @@ def build_get_request(location: str, operation_id: str, subscription_id: str, **
|
|||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01"))
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview"))
|
||||
accept = _headers.pop("Accept", "application/json")
|
||||
|
||||
# Construct URL
|
||||
|
@ -52,7 +52,7 @@ def build_get_request(location: str, operation_id: str, subscription_id: str, **
|
|||
"operationId": _SERIALIZER.url("operation_id", operation_id, "str", min_length=1),
|
||||
}
|
||||
|
||||
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
||||
_url: str = _url.format(**path_format_arguments) # type: ignore
|
||||
|
||||
# Construct parameters
|
||||
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
|
||||
|
|
|
@ -27,7 +27,7 @@ from azure.mgmt.core.exceptions import ARMErrorFormat
|
|||
|
||||
from .. import models as _models
|
||||
from .._serialization import Serializer
|
||||
from .._vendor import StorageCacheManagementClientMixinABC, _convert_request, _format_url_section
|
||||
from .._vendor import StorageCacheManagementClientMixinABC, _convert_request
|
||||
|
||||
T = TypeVar("T")
|
||||
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
|
||||
|
@ -40,7 +40,7 @@ def build_list_request(location: str, subscription_id: str, **kwargs: Any) -> Ht
|
|||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01"))
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview"))
|
||||
accept = _headers.pop("Accept", "application/json")
|
||||
|
||||
# Construct URL
|
||||
|
@ -52,7 +52,7 @@ def build_list_request(location: str, subscription_id: str, **kwargs: Any) -> Ht
|
|||
"location": _SERIALIZER.url("location", location, "str"),
|
||||
}
|
||||
|
||||
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
||||
_url: str = _url.format(**path_format_arguments) # type: ignore
|
||||
|
||||
# Construct parameters
|
||||
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
|
||||
|
|
|
@ -30,7 +30,7 @@ from azure.mgmt.core.polling.arm_polling import ARMPolling
|
|||
|
||||
from .. import models as _models
|
||||
from .._serialization import Serializer
|
||||
from .._vendor import StorageCacheManagementClientMixinABC, _convert_request, _format_url_section
|
||||
from .._vendor import StorageCacheManagementClientMixinABC, _convert_request
|
||||
|
||||
T = TypeVar("T")
|
||||
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
|
||||
|
@ -43,7 +43,7 @@ def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest:
|
|||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01"))
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview"))
|
||||
accept = _headers.pop("Accept", "application/json")
|
||||
|
||||
# Construct URL
|
||||
|
@ -52,7 +52,7 @@ def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest:
|
|||
"subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
|
||||
}
|
||||
|
||||
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
||||
_url: str = _url.format(**path_format_arguments) # type: ignore
|
||||
|
||||
# Construct parameters
|
||||
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
|
||||
|
@ -67,7 +67,7 @@ def build_list_by_resource_group_request(resource_group_name: str, subscription_
|
|||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01"))
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview"))
|
||||
accept = _headers.pop("Accept", "application/json")
|
||||
|
||||
# Construct URL
|
||||
|
@ -82,7 +82,7 @@ def build_list_by_resource_group_request(resource_group_name: str, subscription_
|
|||
"subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
|
||||
}
|
||||
|
||||
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
||||
_url: str = _url.format(**path_format_arguments) # type: ignore
|
||||
|
||||
# Construct parameters
|
||||
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
|
||||
|
@ -97,7 +97,7 @@ def build_delete_request(resource_group_name: str, cache_name: str, subscription
|
|||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01"))
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview"))
|
||||
accept = _headers.pop("Accept", "application/json")
|
||||
|
||||
# Construct URL
|
||||
|
@ -113,7 +113,7 @@ def build_delete_request(resource_group_name: str, cache_name: str, subscription
|
|||
"subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
|
||||
}
|
||||
|
||||
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
||||
_url: str = _url.format(**path_format_arguments) # type: ignore
|
||||
|
||||
# Construct parameters
|
||||
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
|
||||
|
@ -128,7 +128,7 @@ def build_get_request(resource_group_name: str, cache_name: str, subscription_id
|
|||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01"))
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview"))
|
||||
accept = _headers.pop("Accept", "application/json")
|
||||
|
||||
# Construct URL
|
||||
|
@ -144,7 +144,7 @@ def build_get_request(resource_group_name: str, cache_name: str, subscription_id
|
|||
"subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
|
||||
}
|
||||
|
||||
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
||||
_url: str = _url.format(**path_format_arguments) # type: ignore
|
||||
|
||||
# Construct parameters
|
||||
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
|
||||
|
@ -161,7 +161,7 @@ def build_create_or_update_request(
|
|||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01"))
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview"))
|
||||
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
||||
accept = _headers.pop("Accept", "application/json")
|
||||
|
||||
|
@ -178,7 +178,7 @@ def build_create_or_update_request(
|
|||
"cacheName": _SERIALIZER.url("cache_name", cache_name, "str", pattern=r"^[-0-9a-zA-Z_]{1,80}$"),
|
||||
}
|
||||
|
||||
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
||||
_url: str = _url.format(**path_format_arguments) # type: ignore
|
||||
|
||||
# Construct parameters
|
||||
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
|
||||
|
@ -195,7 +195,7 @@ def build_update_request(resource_group_name: str, cache_name: str, subscription
|
|||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01"))
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview"))
|
||||
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
||||
accept = _headers.pop("Accept", "application/json")
|
||||
|
||||
|
@ -212,7 +212,7 @@ def build_update_request(resource_group_name: str, cache_name: str, subscription
|
|||
"cacheName": _SERIALIZER.url("cache_name", cache_name, "str", pattern=r"^[-0-9a-zA-Z_]{1,80}$"),
|
||||
}
|
||||
|
||||
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
||||
_url: str = _url.format(**path_format_arguments) # type: ignore
|
||||
|
||||
# Construct parameters
|
||||
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
|
||||
|
@ -231,7 +231,7 @@ def build_debug_info_request(
|
|||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01"))
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview"))
|
||||
accept = _headers.pop("Accept", "application/json")
|
||||
|
||||
# Construct URL
|
||||
|
@ -247,7 +247,7 @@ def build_debug_info_request(
|
|||
"cacheName": _SERIALIZER.url("cache_name", cache_name, "str", pattern=r"^[-0-9a-zA-Z_]{1,80}$"),
|
||||
}
|
||||
|
||||
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
||||
_url: str = _url.format(**path_format_arguments) # type: ignore
|
||||
|
||||
# Construct parameters
|
||||
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
|
||||
|
@ -262,7 +262,7 @@ def build_flush_request(resource_group_name: str, cache_name: str, subscription_
|
|||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01"))
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview"))
|
||||
accept = _headers.pop("Accept", "application/json")
|
||||
|
||||
# Construct URL
|
||||
|
@ -278,7 +278,7 @@ def build_flush_request(resource_group_name: str, cache_name: str, subscription_
|
|||
"cacheName": _SERIALIZER.url("cache_name", cache_name, "str", pattern=r"^[-0-9a-zA-Z_]{1,80}$"),
|
||||
}
|
||||
|
||||
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
||||
_url: str = _url.format(**path_format_arguments) # type: ignore
|
||||
|
||||
# Construct parameters
|
||||
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
|
||||
|
@ -293,7 +293,7 @@ def build_start_request(resource_group_name: str, cache_name: str, subscription_
|
|||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01"))
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview"))
|
||||
accept = _headers.pop("Accept", "application/json")
|
||||
|
||||
# Construct URL
|
||||
|
@ -309,7 +309,7 @@ def build_start_request(resource_group_name: str, cache_name: str, subscription_
|
|||
"cacheName": _SERIALIZER.url("cache_name", cache_name, "str", pattern=r"^[-0-9a-zA-Z_]{1,80}$"),
|
||||
}
|
||||
|
||||
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
||||
_url: str = _url.format(**path_format_arguments) # type: ignore
|
||||
|
||||
# Construct parameters
|
||||
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
|
||||
|
@ -324,7 +324,7 @@ def build_stop_request(resource_group_name: str, cache_name: str, subscription_i
|
|||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01"))
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview"))
|
||||
accept = _headers.pop("Accept", "application/json")
|
||||
|
||||
# Construct URL
|
||||
|
@ -340,7 +340,7 @@ def build_stop_request(resource_group_name: str, cache_name: str, subscription_i
|
|||
"cacheName": _SERIALIZER.url("cache_name", cache_name, "str", pattern=r"^[-0-9a-zA-Z_]{1,80}$"),
|
||||
}
|
||||
|
||||
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
||||
_url: str = _url.format(**path_format_arguments) # type: ignore
|
||||
|
||||
# Construct parameters
|
||||
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
|
||||
|
@ -357,7 +357,7 @@ def build_start_priming_job_request(
|
|||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01"))
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview"))
|
||||
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
||||
accept = _headers.pop("Accept", "application/json")
|
||||
|
||||
|
@ -374,7 +374,7 @@ def build_start_priming_job_request(
|
|||
"cacheName": _SERIALIZER.url("cache_name", cache_name, "str", pattern=r"^[-0-9a-zA-Z_]{1,80}$"),
|
||||
}
|
||||
|
||||
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
||||
_url: str = _url.format(**path_format_arguments) # type: ignore
|
||||
|
||||
# Construct parameters
|
||||
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
|
||||
|
@ -393,7 +393,7 @@ def build_stop_priming_job_request(
|
|||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01"))
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview"))
|
||||
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
||||
accept = _headers.pop("Accept", "application/json")
|
||||
|
||||
|
@ -410,7 +410,7 @@ def build_stop_priming_job_request(
|
|||
"subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
|
||||
}
|
||||
|
||||
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
||||
_url: str = _url.format(**path_format_arguments) # type: ignore
|
||||
|
||||
# Construct parameters
|
||||
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
|
||||
|
@ -429,7 +429,7 @@ def build_pause_priming_job_request(
|
|||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01"))
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview"))
|
||||
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
||||
accept = _headers.pop("Accept", "application/json")
|
||||
|
||||
|
@ -446,7 +446,7 @@ def build_pause_priming_job_request(
|
|||
"subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
|
||||
}
|
||||
|
||||
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
||||
_url: str = _url.format(**path_format_arguments) # type: ignore
|
||||
|
||||
# Construct parameters
|
||||
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
|
||||
|
@ -465,7 +465,7 @@ def build_resume_priming_job_request(
|
|||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01"))
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview"))
|
||||
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
||||
accept = _headers.pop("Accept", "application/json")
|
||||
|
||||
|
@ -482,7 +482,7 @@ def build_resume_priming_job_request(
|
|||
"subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
|
||||
}
|
||||
|
||||
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
||||
_url: str = _url.format(**path_format_arguments) # type: ignore
|
||||
|
||||
# Construct parameters
|
||||
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
|
||||
|
@ -501,7 +501,7 @@ def build_upgrade_firmware_request(
|
|||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01"))
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview"))
|
||||
accept = _headers.pop("Accept", "application/json")
|
||||
|
||||
# Construct URL
|
||||
|
@ -517,7 +517,7 @@ def build_upgrade_firmware_request(
|
|||
"cacheName": _SERIALIZER.url("cache_name", cache_name, "str", pattern=r"^[-0-9a-zA-Z_]{1,80}$"),
|
||||
}
|
||||
|
||||
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
||||
_url: str = _url.format(**path_format_arguments) # type: ignore
|
||||
|
||||
# Construct parameters
|
||||
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
|
||||
|
@ -534,7 +534,7 @@ def build_space_allocation_request(
|
|||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01"))
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview"))
|
||||
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
||||
accept = _headers.pop("Accept", "application/json")
|
||||
|
||||
|
@ -551,7 +551,7 @@ def build_space_allocation_request(
|
|||
"cacheName": _SERIALIZER.url("cache_name", cache_name, "str", pattern=r"^[-0-9a-zA-Z_]{1,80}$"),
|
||||
}
|
||||
|
||||
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
||||
_url: str = _url.format(**path_format_arguments) # type: ignore
|
||||
|
||||
# Construct parameters
|
||||
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
|
||||
|
|
|
@ -40,7 +40,7 @@ def build_list_request(**kwargs: Any) -> HttpRequest:
|
|||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01"))
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview"))
|
||||
accept = _headers.pop("Accept", "application/json")
|
||||
|
||||
# Construct URL
|
||||
|
|
|
@ -27,7 +27,7 @@ from azure.mgmt.core.exceptions import ARMErrorFormat
|
|||
|
||||
from .. import models as _models
|
||||
from .._serialization import Serializer
|
||||
from .._vendor import StorageCacheManagementClientMixinABC, _convert_request, _format_url_section
|
||||
from .._vendor import StorageCacheManagementClientMixinABC, _convert_request
|
||||
|
||||
T = TypeVar("T")
|
||||
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
|
||||
|
@ -40,7 +40,7 @@ def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest:
|
|||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01"))
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview"))
|
||||
accept = _headers.pop("Accept", "application/json")
|
||||
|
||||
# Construct URL
|
||||
|
@ -49,7 +49,7 @@ def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest:
|
|||
"subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
|
||||
}
|
||||
|
||||
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
||||
_url: str = _url.format(**path_format_arguments) # type: ignore
|
||||
|
||||
# Construct parameters
|
||||
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
|
||||
|
|
|
@ -26,7 +26,7 @@ from azure.mgmt.core.exceptions import ARMErrorFormat
|
|||
|
||||
from .. import models as _models
|
||||
from .._serialization import Serializer
|
||||
from .._vendor import StorageCacheManagementClientMixinABC, _convert_request, _format_url_section
|
||||
from .._vendor import StorageCacheManagementClientMixinABC, _convert_request
|
||||
|
||||
T = TypeVar("T")
|
||||
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
|
||||
|
@ -39,7 +39,7 @@ def build_check_aml_fs_subnets_request(subscription_id: str, **kwargs: Any) -> H
|
|||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01"))
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview"))
|
||||
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
||||
accept = _headers.pop("Accept", "application/json")
|
||||
|
||||
|
@ -51,7 +51,7 @@ def build_check_aml_fs_subnets_request(subscription_id: str, **kwargs: Any) -> H
|
|||
"subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
|
||||
}
|
||||
|
||||
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
||||
_url: str = _url.format(**path_format_arguments) # type: ignore
|
||||
|
||||
# Construct parameters
|
||||
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
|
||||
|
@ -68,7 +68,7 @@ def build_get_required_aml_fs_subnets_size_request(subscription_id: str, **kwarg
|
|||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01"))
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview"))
|
||||
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
||||
accept = _headers.pop("Accept", "application/json")
|
||||
|
||||
|
@ -80,7 +80,7 @@ def build_get_required_aml_fs_subnets_size_request(subscription_id: str, **kwarg
|
|||
"subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
|
||||
}
|
||||
|
||||
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
||||
_url: str = _url.format(**path_format_arguments) # type: ignore
|
||||
|
||||
# Construct parameters
|
||||
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
|
||||
|
|
|
@ -27,7 +27,7 @@ from azure.mgmt.core.polling.arm_polling import ARMPolling
|
|||
|
||||
from .. import models as _models
|
||||
from .._serialization import Serializer
|
||||
from .._vendor import StorageCacheManagementClientMixinABC, _convert_request, _format_url_section
|
||||
from .._vendor import StorageCacheManagementClientMixinABC, _convert_request
|
||||
|
||||
T = TypeVar("T")
|
||||
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
|
||||
|
@ -42,7 +42,7 @@ def build_flush_request(
|
|||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01"))
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview"))
|
||||
accept = _headers.pop("Accept", "application/json")
|
||||
|
||||
# Construct URL
|
||||
|
@ -61,7 +61,7 @@ def build_flush_request(
|
|||
),
|
||||
}
|
||||
|
||||
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
||||
_url: str = _url.format(**path_format_arguments) # type: ignore
|
||||
|
||||
# Construct parameters
|
||||
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
|
||||
|
@ -78,7 +78,7 @@ def build_suspend_request(
|
|||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01"))
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview"))
|
||||
accept = _headers.pop("Accept", "application/json")
|
||||
|
||||
# Construct URL
|
||||
|
@ -97,7 +97,7 @@ def build_suspend_request(
|
|||
),
|
||||
}
|
||||
|
||||
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
||||
_url: str = _url.format(**path_format_arguments) # type: ignore
|
||||
|
||||
# Construct parameters
|
||||
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
|
||||
|
@ -114,7 +114,7 @@ def build_resume_request(
|
|||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01"))
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview"))
|
||||
accept = _headers.pop("Accept", "application/json")
|
||||
|
||||
# Construct URL
|
||||
|
@ -133,7 +133,7 @@ def build_resume_request(
|
|||
),
|
||||
}
|
||||
|
||||
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
||||
_url: str = _url.format(**path_format_arguments) # type: ignore
|
||||
|
||||
# Construct parameters
|
||||
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
|
||||
|
@ -150,7 +150,7 @@ def build_invalidate_request(
|
|||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01"))
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview"))
|
||||
accept = _headers.pop("Accept", "application/json")
|
||||
|
||||
# Construct URL
|
||||
|
@ -169,7 +169,7 @@ def build_invalidate_request(
|
|||
),
|
||||
}
|
||||
|
||||
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
||||
_url: str = _url.format(**path_format_arguments) # type: ignore
|
||||
|
||||
# Construct parameters
|
||||
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
|
||||
|
|
|
@ -30,7 +30,7 @@ from azure.mgmt.core.polling.arm_polling import ARMPolling
|
|||
|
||||
from .. import models as _models
|
||||
from .._serialization import Serializer
|
||||
from .._vendor import StorageCacheManagementClientMixinABC, _convert_request, _format_url_section
|
||||
from .._vendor import StorageCacheManagementClientMixinABC, _convert_request
|
||||
|
||||
T = TypeVar("T")
|
||||
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
|
||||
|
@ -45,7 +45,7 @@ def build_dns_refresh_request(
|
|||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01"))
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview"))
|
||||
accept = _headers.pop("Accept", "application/json")
|
||||
|
||||
# Construct URL
|
||||
|
@ -64,7 +64,7 @@ def build_dns_refresh_request(
|
|||
),
|
||||
}
|
||||
|
||||
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
||||
_url: str = _url.format(**path_format_arguments) # type: ignore
|
||||
|
||||
# Construct parameters
|
||||
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
|
||||
|
@ -81,7 +81,7 @@ def build_list_by_cache_request(
|
|||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01"))
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview"))
|
||||
accept = _headers.pop("Accept", "application/json")
|
||||
|
||||
# Construct URL
|
||||
|
@ -97,7 +97,7 @@ def build_list_by_cache_request(
|
|||
"cacheName": _SERIALIZER.url("cache_name", cache_name, "str", pattern=r"^[-0-9a-zA-Z_]{1,80}$"),
|
||||
}
|
||||
|
||||
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
||||
_url: str = _url.format(**path_format_arguments) # type: ignore
|
||||
|
||||
# Construct parameters
|
||||
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
|
||||
|
@ -120,7 +120,7 @@ def build_delete_request(
|
|||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01"))
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview"))
|
||||
accept = _headers.pop("Accept", "application/json")
|
||||
|
||||
# Construct URL
|
||||
|
@ -139,7 +139,7 @@ def build_delete_request(
|
|||
),
|
||||
}
|
||||
|
||||
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
||||
_url: str = _url.format(**path_format_arguments) # type: ignore
|
||||
|
||||
# Construct parameters
|
||||
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
|
||||
|
@ -158,7 +158,7 @@ def build_get_request(
|
|||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01"))
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview"))
|
||||
accept = _headers.pop("Accept", "application/json")
|
||||
|
||||
# Construct URL
|
||||
|
@ -177,7 +177,7 @@ def build_get_request(
|
|||
),
|
||||
}
|
||||
|
||||
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
||||
_url: str = _url.format(**path_format_arguments) # type: ignore
|
||||
|
||||
# Construct parameters
|
||||
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
|
||||
|
@ -194,7 +194,7 @@ def build_create_or_update_request(
|
|||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01"))
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview"))
|
||||
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
||||
accept = _headers.pop("Accept", "application/json")
|
||||
|
||||
|
@ -214,7 +214,7 @@ def build_create_or_update_request(
|
|||
),
|
||||
}
|
||||
|
||||
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
||||
_url: str = _url.format(**path_format_arguments) # type: ignore
|
||||
|
||||
# Construct parameters
|
||||
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
|
||||
|
@ -233,7 +233,7 @@ def build_restore_defaults_request(
|
|||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01"))
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview"))
|
||||
accept = _headers.pop("Accept", "application/json")
|
||||
|
||||
# Construct URL
|
||||
|
@ -252,7 +252,7 @@ def build_restore_defaults_request(
|
|||
),
|
||||
}
|
||||
|
||||
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
||||
_url: str = _url.format(**path_format_arguments) # type: ignore
|
||||
|
||||
# Construct parameters
|
||||
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
|
||||
|
|
|
@ -27,7 +27,7 @@ from azure.mgmt.core.exceptions import ARMErrorFormat
|
|||
|
||||
from .. import models as _models
|
||||
from .._serialization import Serializer
|
||||
from .._vendor import StorageCacheManagementClientMixinABC, _convert_request, _format_url_section
|
||||
from .._vendor import StorageCacheManagementClientMixinABC, _convert_request
|
||||
|
||||
T = TypeVar("T")
|
||||
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
|
||||
|
@ -40,7 +40,7 @@ def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest:
|
|||
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
||||
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
||||
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01"))
|
||||
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview"))
|
||||
accept = _headers.pop("Accept", "application/json")
|
||||
|
||||
# Construct URL
|
||||
|
@ -49,7 +49,7 @@ def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest:
|
|||
"subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
|
||||
}
|
||||
|
||||
_url: str = _format_url_section(_url, **path_format_arguments) # type: ignore
|
||||
_url: str = _url.format(**path_format_arguments) # type: ignore
|
||||
|
||||
# Construct parameters
|
||||
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
|
||||
|
|
|
@ -35,6 +35,6 @@ def main():
|
|||
)
|
||||
|
||||
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/amlFilesystems_Archive.json
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/amlFilesystems_Archive.json
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -35,6 +35,6 @@ def main():
|
|||
)
|
||||
|
||||
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/amlFilesystems_CancelArchive.json
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/amlFilesystems_CancelArchive.json
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -58,6 +58,12 @@ def main():
|
|||
}
|
||||
},
|
||||
"maintenanceWindow": {"dayOfWeek": "Friday", "timeOfDayUTC": "22:00"},
|
||||
"rootSquashSettings": {
|
||||
"mode": "All",
|
||||
"noSquashNidLists": "10.0.0.[5-6]@tcp;10.0.1.2@tcp",
|
||||
"squashGID": 99,
|
||||
"squashUID": 99,
|
||||
},
|
||||
"storageCapacityTiB": 16,
|
||||
},
|
||||
"sku": {"name": "AMLFS-Durable-Premium-250"},
|
||||
|
@ -68,6 +74,6 @@ def main():
|
|||
print(response)
|
||||
|
||||
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/amlFilesystems_CreateOrUpdate.json
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/amlFilesystems_CreateOrUpdate.json
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -35,6 +35,6 @@ def main():
|
|||
).result()
|
||||
|
||||
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/amlFilesystems_Delete.json
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/amlFilesystems_Delete.json
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -36,6 +36,6 @@ def main():
|
|||
print(response)
|
||||
|
||||
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/amlFilesystems_Get.json
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/amlFilesystems_Get.json
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -34,6 +34,6 @@ def main():
|
|||
print(item)
|
||||
|
||||
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/amlFilesystems_List.json
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/amlFilesystems_List.json
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -36,6 +36,6 @@ def main():
|
|||
print(item)
|
||||
|
||||
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/amlFilesystems_ListByResourceGroup.json
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/amlFilesystems_ListByResourceGroup.json
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -43,6 +43,12 @@ def main():
|
|||
}
|
||||
},
|
||||
"maintenanceWindow": {"dayOfWeek": "Friday", "timeOfDayUTC": "22:00"},
|
||||
"rootSquashSettings": {
|
||||
"mode": "All",
|
||||
"noSquashNidLists": "10.0.0.[5-6]@tcp;10.0.1.2@tcp",
|
||||
"squashGID": 99,
|
||||
"squashUID": 99,
|
||||
},
|
||||
},
|
||||
"tags": {"Dept": "ContosoAds"},
|
||||
},
|
||||
|
@ -50,6 +56,6 @@ def main():
|
|||
print(response)
|
||||
|
||||
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/amlFilesystems_Update.json
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/amlFilesystems_Update.json
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -36,6 +36,6 @@ def main():
|
|||
print(response)
|
||||
|
||||
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/AscOperations_Get.json
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/AscOperations_Get.json
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -36,6 +36,6 @@ def main():
|
|||
print(item)
|
||||
|
||||
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/AscResourceUsages_Get.json
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/AscResourceUsages_Get.json
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -96,6 +96,6 @@ def main():
|
|||
print(response)
|
||||
|
||||
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/Caches_CreateOrUpdate.json
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/Caches_CreateOrUpdate.json
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -82,6 +82,6 @@ def main():
|
|||
print(response)
|
||||
|
||||
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/Caches_CreateOrUpdate_ldap_only.json
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/Caches_CreateOrUpdate_ldap_only.json
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -35,6 +35,6 @@ def main():
|
|||
).result()
|
||||
|
||||
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/Caches_DebugInfo.json
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/Caches_DebugInfo.json
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -35,6 +35,6 @@ def main():
|
|||
).result()
|
||||
|
||||
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/Caches_Delete.json
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/Caches_Delete.json
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -35,6 +35,6 @@ def main():
|
|||
).result()
|
||||
|
||||
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/Caches_Flush.json
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/Caches_Flush.json
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -36,6 +36,6 @@ def main():
|
|||
print(response)
|
||||
|
||||
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/Caches_Get.json
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/Caches_Get.json
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -34,6 +34,6 @@ def main():
|
|||
print(item)
|
||||
|
||||
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/Caches_List.json
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/Caches_List.json
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -36,6 +36,6 @@ def main():
|
|||
print(item)
|
||||
|
||||
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/Caches_ListByResourceGroup.json
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/Caches_ListByResourceGroup.json
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -35,6 +35,6 @@ def main():
|
|||
).result()
|
||||
|
||||
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/Caches_Start.json
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/Caches_Start.json
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -35,6 +35,6 @@ def main():
|
|||
).result()
|
||||
|
||||
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/Caches_Stop.json
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/Caches_Stop.json
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -36,6 +36,6 @@ def main():
|
|||
print(response)
|
||||
|
||||
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/Caches_Update.json
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/Caches_Update.json
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -36,6 +36,6 @@ def main():
|
|||
print(response)
|
||||
|
||||
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/Caches_Update_ldap_only.json
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/Caches_Update_ldap_only.json
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -35,6 +35,6 @@ def main():
|
|||
).result()
|
||||
|
||||
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/Caches_UpgradeFirmware.json
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/Caches_UpgradeFirmware.json
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -32,6 +32,6 @@ def main():
|
|||
client.check_aml_fs_subnets()
|
||||
|
||||
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/checkAmlFSSubnets.json
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/checkAmlFSSubnets.json
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -33,6 +33,6 @@ def main():
|
|||
print(response)
|
||||
|
||||
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/getRequiredAmlFSSubnetsSize.json
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/getRequiredAmlFSSubnetsSize.json
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -34,6 +34,6 @@ def main():
|
|||
print(item)
|
||||
|
||||
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/Operations_List.json
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/Operations_List.json
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -35,6 +35,6 @@ def main():
|
|||
).result()
|
||||
|
||||
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/PausePrimingJob.json
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/PausePrimingJob.json
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -35,6 +35,6 @@ def main():
|
|||
).result()
|
||||
|
||||
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/ResumePrimingJob.json
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/ResumePrimingJob.json
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -34,6 +34,6 @@ def main():
|
|||
print(item)
|
||||
|
||||
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/Skus_List.json
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/Skus_List.json
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -35,6 +35,6 @@ def main():
|
|||
).result()
|
||||
|
||||
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/SpaceAllocation_Post.json
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/SpaceAllocation_Post.json
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -35,6 +35,6 @@ def main():
|
|||
).result()
|
||||
|
||||
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/StartPrimingJob.json
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/StartPrimingJob.json
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -35,6 +35,6 @@ def main():
|
|||
).result()
|
||||
|
||||
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/StopPrimingJob.json
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/StopPrimingJob.json
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -57,6 +57,6 @@ def main():
|
|||
print(response)
|
||||
|
||||
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/StorageTargets_CreateOrUpdate.json
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/StorageTargets_CreateOrUpdate.json
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -49,6 +49,6 @@ def main():
|
|||
print(response)
|
||||
|
||||
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/StorageTargets_CreateOrUpdate_BlobNfs.json
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/StorageTargets_CreateOrUpdate_BlobNfs.json
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -43,6 +43,6 @@ def main():
|
|||
print(response)
|
||||
|
||||
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/StorageTargets_CreateOrUpdate_NoJunctions.json
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/StorageTargets_CreateOrUpdate_NoJunctions.json
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -36,6 +36,6 @@ def main():
|
|||
).result()
|
||||
|
||||
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/StorageTargets_Delete.json
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/StorageTargets_Delete.json
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -36,6 +36,6 @@ def main():
|
|||
).result()
|
||||
|
||||
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/StorageTargets_DnsRefresh.json
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/StorageTargets_DnsRefresh.json
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -36,6 +36,6 @@ def main():
|
|||
).result()
|
||||
|
||||
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/StorageTargets_Flush.json
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/StorageTargets_Flush.json
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -37,6 +37,6 @@ def main():
|
|||
print(response)
|
||||
|
||||
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/StorageTargets_Get.json
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/StorageTargets_Get.json
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -36,6 +36,6 @@ def main():
|
|||
).result()
|
||||
|
||||
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/StorageTargets_Invalidate.json
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/StorageTargets_Invalidate.json
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -37,6 +37,6 @@ def main():
|
|||
print(item)
|
||||
|
||||
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/StorageTargets_ListByCache.json
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/StorageTargets_ListByCache.json
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -36,6 +36,6 @@ def main():
|
|||
).result()
|
||||
|
||||
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/StorageTargets_RestoreDefaults.json
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/StorageTargets_RestoreDefaults.json
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -36,6 +36,6 @@ def main():
|
|||
).result()
|
||||
|
||||
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/StorageTargets_Resume.json
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/StorageTargets_Resume.json
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -36,6 +36,6 @@ def main():
|
|||
).result()
|
||||
|
||||
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/StorageTargets_Suspend.json
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/StorageTargets_Suspend.json
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -34,6 +34,6 @@ def main():
|
|||
print(item)
|
||||
|
||||
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/UsageModels_List.json
|
||||
# x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/UsageModels_List.json
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
@ -3,6 +3,6 @@ package_name = "azure-mgmt-storagecache"
|
|||
package_nspkg = "azure-mgmt-nspkg"
|
||||
package_pprint_name = "Storage Cache Management"
|
||||
package_doc_id = ""
|
||||
is_stable = true
|
||||
is_stable = false
|
||||
is_arm = true
|
||||
title = "StorageCacheManagementClient"
|
||||
|
|
|
@ -49,15 +49,15 @@ setup(
|
|||
url="https://github.com/Azure/azure-sdk-for-python",
|
||||
keywords="azure, azure sdk", # update with search keywords relevant to the azure service / product
|
||||
classifiers=[
|
||||
"Development Status :: 5 - Production/Stable",
|
||||
"Development Status :: 4 - Beta",
|
||||
"Programming Language :: Python",
|
||||
"Programming Language :: Python :: 3 :: Only",
|
||||
"Programming Language :: Python :: 3",
|
||||
"Programming Language :: Python :: 3.7",
|
||||
"Programming Language :: Python :: 3.8",
|
||||
"Programming Language :: Python :: 3.9",
|
||||
"Programming Language :: Python :: 3.10",
|
||||
"Programming Language :: Python :: 3.11",
|
||||
"Programming Language :: Python :: 3.12",
|
||||
"License :: OSI Approved :: MIT License",
|
||||
],
|
||||
zip_safe=False,
|
||||
|
@ -77,7 +77,6 @@ setup(
|
|||
"isodate<1.0.0,>=0.6.1",
|
||||
"azure-common~=1.1",
|
||||
"azure-mgmt-core>=1.3.2,<2.0.0",
|
||||
"typing-extensions>=4.3.0; python_version<'3.8.0'",
|
||||
],
|
||||
python_requires=">=3.7",
|
||||
python_requires=">=3.8",
|
||||
)
|
||||
|
|
|
@ -0,0 +1,50 @@
|
|||
# --------------------------------------------------------------------------
|
||||
#
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
#
|
||||
# The MIT License (MIT)
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
# of this software and associated documentation files (the ""Software""), to
|
||||
# deal in the Software without restriction, including without limitation the
|
||||
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||||
# sell copies of the Software, and to permit persons to whom the Software is
|
||||
# furnished to do so, subject to the following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice shall be included in
|
||||
# all copies or substantial portions of the Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
# IN THE SOFTWARE.
|
||||
#
|
||||
# --------------------------------------------------------------------------
|
||||
import os
|
||||
import platform
|
||||
import pytest
|
||||
import sys
|
||||
|
||||
from dotenv import load_dotenv
|
||||
|
||||
from devtools_testutils import test_proxy, add_general_regex_sanitizer
|
||||
from devtools_testutils import add_header_regex_sanitizer, add_body_key_sanitizer
|
||||
|
||||
load_dotenv()
|
||||
|
||||
@pytest.fixture(scope="session", autouse=True)
|
||||
def add_sanitizers(test_proxy):
|
||||
subscription_id = os.environ.get("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000")
|
||||
tenant_id = os.environ.get("AZURE_TENANT_ID", "00000000-0000-0000-0000-000000000000")
|
||||
client_id = os.environ.get("AZURE_CLIENT_ID", "00000000-0000-0000-0000-000000000000")
|
||||
client_secret = os.environ.get("AZURE_CLIENT_SECRET", "00000000-0000-0000-0000-000000000000")
|
||||
add_general_regex_sanitizer(regex=subscription_id, value="00000000-0000-0000-0000-000000000000")
|
||||
add_general_regex_sanitizer(regex=tenant_id, value="00000000-0000-0000-0000-000000000000")
|
||||
add_general_regex_sanitizer(regex=client_id, value="00000000-0000-0000-0000-000000000000")
|
||||
add_general_regex_sanitizer(regex=client_secret, value="00000000-0000-0000-0000-000000000000")
|
||||
add_header_regex_sanitizer(key="Set-Cookie", value="[set-cookie;]")
|
||||
add_header_regex_sanitizer(key="Cookie", value="cookie;")
|
||||
add_body_key_sanitizer(json_path="$..access_token", value="access_token")
|
|
@ -0,0 +1,26 @@
|
|||
# coding: utf-8
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for
|
||||
# license information.
|
||||
#--------------------------------------------------------------------------
|
||||
|
||||
from azure.mgmt.storagecache import StorageCacheManagementClient
|
||||
from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy
|
||||
|
||||
AZURE_LOCATION = 'eastus'
|
||||
|
||||
class TestMgmtStorageCache(AzureMgmtRecordedTestCase):
|
||||
|
||||
def setup_method(self, method):
|
||||
self.client = self.create_mgmt_client(StorageCacheManagementClient)
|
||||
|
||||
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
|
||||
@recorded_by_proxy
|
||||
def test_list_by_resource_group(self, resource_group):
|
||||
assert list(self.client.caches.list_by_resource_group(resource_group.name)) == []
|
||||
|
||||
@recorded_by_proxy
|
||||
def test_list_operations(self):
|
||||
assert list(self.client.operations.list())
|
Загрузка…
Ссылка в новой задаче