diff --git a/sdk/storage/azure-mgmt-storage/_meta.json b/sdk/storage/azure-mgmt-storage/_meta.json index 9a7886a0a2cb..8724c6ab684e 100644 --- a/sdk/storage/azure-mgmt-storage/_meta.json +++ b/sdk/storage/azure-mgmt-storage/_meta.json @@ -1,12 +1,12 @@ { - "commit": "aa4ba9eb0ab21268118c11052b081ff5d2e01e4d", + "commit": "e714d02e2ab697ca2ce31258823a72e829d27396", "repository_url": "https://github.com/Azure/azure-rest-api-specs", "autorest": "3.10.2", "use": [ "@autorest/python@6.27.4", "@autorest/modelerfour@4.27.0" ], - "autorest_command": "autorest specification/storage/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.27.4 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False", + "autorest_command": "autorest specification/storage/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.27.4 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False", "readme": "specification/storage/resource-manager/readme.md", "package-2023-01": "2023-07-20 11:56:40 -0700 3e6b4ddca225530c27273d0f816466a905c0151b Microsoft.Storage/stable/2023-01-01/table.json", "package-2022-09": "2022-11-13 19:43:16 -0800 da0cfefaa0e6c237e1e3819f1cb2e11d7606878d Microsoft.Storage/stable/2022-09-01/table.json", diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/_storage_management_client.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/_storage_management_client.py index 53ce69d266ec..018526c3f2ee 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/_storage_management_client.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/_storage_management_client.py @@ -56,7 +56,7 @@ class StorageManagementClient(MultiApiClientMixin, _SDKClient): :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ - DEFAULT_API_VERSION = '2023-05-01' + DEFAULT_API_VERSION = '2024-01-01' _PROFILE_TAG = "azure.mgmt.storage.StorageManagementClient" LATEST_PROFILE = ProfileDefinition({ _PROFILE_TAG: { @@ -113,7 +113,7 @@ def models(cls, api_version=DEFAULT_API_VERSION): * 2016-01-01: :mod:`v2016_01_01.models` * 2017-10-01: :mod:`v2017_10_01.models` * 2019-06-01: :mod:`v2019_06_01.models` - * 2023-05-01: :mod:`v2023_05_01.models` + * 2024-01-01: :mod:`v2024_01_01.models` """ if api_version == '2016-01-01': from .v2016_01_01 import models @@ -124,8 +124,8 @@ def models(cls, api_version=DEFAULT_API_VERSION): elif api_version == '2019-06-01': from .v2019_06_01 import models return models - elif api_version == '2023-05-01': - from .v2023_05_01 import models + elif api_version == '2024-01-01': + from .v2024_01_01 import models return models raise ValueError("API version {} is not available".format(api_version)) @@ -134,13 +134,13 @@ def blob_containers(self): """Instance depends on the API version: * 2019-06-01: :class:`BlobContainersOperations` - * 2023-05-01: :class:`BlobContainersOperations` + * 2024-01-01: :class:`BlobContainersOperations` """ api_version = self._get_api_version('blob_containers') if api_version == '2019-06-01': from .v2019_06_01.operations import BlobContainersOperations as OperationClass - elif api_version == '2023-05-01': - from .v2023_05_01.operations import BlobContainersOperations as OperationClass + elif api_version == '2024-01-01': + from .v2024_01_01.operations import BlobContainersOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'blob_containers'".format(api_version)) self._config.api_version = api_version @@ -151,13 +151,13 @@ def blob_inventory_policies(self): """Instance depends on the API version: * 2019-06-01: :class:`BlobInventoryPoliciesOperations` - * 2023-05-01: :class:`BlobInventoryPoliciesOperations` + * 2024-01-01: :class:`BlobInventoryPoliciesOperations` """ api_version = self._get_api_version('blob_inventory_policies') if api_version == '2019-06-01': from .v2019_06_01.operations import BlobInventoryPoliciesOperations as OperationClass - elif api_version == '2023-05-01': - from .v2023_05_01.operations import BlobInventoryPoliciesOperations as OperationClass + elif api_version == '2024-01-01': + from .v2024_01_01.operations import BlobInventoryPoliciesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'blob_inventory_policies'".format(api_version)) self._config.api_version = api_version @@ -168,13 +168,13 @@ def blob_services(self): """Instance depends on the API version: * 2019-06-01: :class:`BlobServicesOperations` - * 2023-05-01: :class:`BlobServicesOperations` + * 2024-01-01: :class:`BlobServicesOperations` """ api_version = self._get_api_version('blob_services') if api_version == '2019-06-01': from .v2019_06_01.operations import BlobServicesOperations as OperationClass - elif api_version == '2023-05-01': - from .v2023_05_01.operations import BlobServicesOperations as OperationClass + elif api_version == '2024-01-01': + from .v2024_01_01.operations import BlobServicesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'blob_services'".format(api_version)) self._config.api_version = api_version @@ -184,11 +184,11 @@ def blob_services(self): def deleted_accounts(self): """Instance depends on the API version: - * 2023-05-01: :class:`DeletedAccountsOperations` + * 2024-01-01: :class:`DeletedAccountsOperations` """ api_version = self._get_api_version('deleted_accounts') - if api_version == '2023-05-01': - from .v2023_05_01.operations import DeletedAccountsOperations as OperationClass + if api_version == '2024-01-01': + from .v2024_01_01.operations import DeletedAccountsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'deleted_accounts'".format(api_version)) self._config.api_version = api_version @@ -199,13 +199,13 @@ def encryption_scopes(self): """Instance depends on the API version: * 2019-06-01: :class:`EncryptionScopesOperations` - * 2023-05-01: :class:`EncryptionScopesOperations` + * 2024-01-01: :class:`EncryptionScopesOperations` """ api_version = self._get_api_version('encryption_scopes') if api_version == '2019-06-01': from .v2019_06_01.operations import EncryptionScopesOperations as OperationClass - elif api_version == '2023-05-01': - from .v2023_05_01.operations import EncryptionScopesOperations as OperationClass + elif api_version == '2024-01-01': + from .v2024_01_01.operations import EncryptionScopesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'encryption_scopes'".format(api_version)) self._config.api_version = api_version @@ -216,13 +216,13 @@ def file_services(self): """Instance depends on the API version: * 2019-06-01: :class:`FileServicesOperations` - * 2023-05-01: :class:`FileServicesOperations` + * 2024-01-01: :class:`FileServicesOperations` """ api_version = self._get_api_version('file_services') if api_version == '2019-06-01': from .v2019_06_01.operations import FileServicesOperations as OperationClass - elif api_version == '2023-05-01': - from .v2023_05_01.operations import FileServicesOperations as OperationClass + elif api_version == '2024-01-01': + from .v2024_01_01.operations import FileServicesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'file_services'".format(api_version)) self._config.api_version = api_version @@ -233,13 +233,13 @@ def file_shares(self): """Instance depends on the API version: * 2019-06-01: :class:`FileSharesOperations` - * 2023-05-01: :class:`FileSharesOperations` + * 2024-01-01: :class:`FileSharesOperations` """ api_version = self._get_api_version('file_shares') if api_version == '2019-06-01': from .v2019_06_01.operations import FileSharesOperations as OperationClass - elif api_version == '2023-05-01': - from .v2023_05_01.operations import FileSharesOperations as OperationClass + elif api_version == '2024-01-01': + from .v2024_01_01.operations import FileSharesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'file_shares'".format(api_version)) self._config.api_version = api_version @@ -249,11 +249,11 @@ def file_shares(self): def local_users(self): """Instance depends on the API version: - * 2023-05-01: :class:`LocalUsersOperations` + * 2024-01-01: :class:`LocalUsersOperations` """ api_version = self._get_api_version('local_users') - if api_version == '2023-05-01': - from .v2023_05_01.operations import LocalUsersOperations as OperationClass + if api_version == '2024-01-01': + from .v2024_01_01.operations import LocalUsersOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'local_users'".format(api_version)) self._config.api_version = api_version @@ -264,13 +264,13 @@ def management_policies(self): """Instance depends on the API version: * 2019-06-01: :class:`ManagementPoliciesOperations` - * 2023-05-01: :class:`ManagementPoliciesOperations` + * 2024-01-01: :class:`ManagementPoliciesOperations` """ api_version = self._get_api_version('management_policies') if api_version == '2019-06-01': from .v2019_06_01.operations import ManagementPoliciesOperations as OperationClass - elif api_version == '2023-05-01': - from .v2023_05_01.operations import ManagementPoliciesOperations as OperationClass + elif api_version == '2024-01-01': + from .v2024_01_01.operations import ManagementPoliciesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'management_policies'".format(api_version)) self._config.api_version = api_version @@ -280,11 +280,11 @@ def management_policies(self): def network_security_perimeter_configurations(self): """Instance depends on the API version: - * 2023-05-01: :class:`NetworkSecurityPerimeterConfigurationsOperations` + * 2024-01-01: :class:`NetworkSecurityPerimeterConfigurationsOperations` """ api_version = self._get_api_version('network_security_perimeter_configurations') - if api_version == '2023-05-01': - from .v2023_05_01.operations import NetworkSecurityPerimeterConfigurationsOperations as OperationClass + if api_version == '2024-01-01': + from .v2024_01_01.operations import NetworkSecurityPerimeterConfigurationsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'network_security_perimeter_configurations'".format(api_version)) self._config.api_version = api_version @@ -295,13 +295,13 @@ def object_replication_policies(self): """Instance depends on the API version: * 2019-06-01: :class:`ObjectReplicationPoliciesOperations` - * 2023-05-01: :class:`ObjectReplicationPoliciesOperations` + * 2024-01-01: :class:`ObjectReplicationPoliciesOperations` """ api_version = self._get_api_version('object_replication_policies') if api_version == '2019-06-01': from .v2019_06_01.operations import ObjectReplicationPoliciesOperations as OperationClass - elif api_version == '2023-05-01': - from .v2023_05_01.operations import ObjectReplicationPoliciesOperations as OperationClass + elif api_version == '2024-01-01': + from .v2024_01_01.operations import ObjectReplicationPoliciesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'object_replication_policies'".format(api_version)) self._config.api_version = api_version @@ -313,15 +313,15 @@ def operations(self): * 2017-10-01: :class:`Operations` * 2019-06-01: :class:`Operations` - * 2023-05-01: :class:`Operations` + * 2024-01-01: :class:`Operations` """ api_version = self._get_api_version('operations') if api_version == '2017-10-01': from .v2017_10_01.operations import Operations as OperationClass elif api_version == '2019-06-01': from .v2019_06_01.operations import Operations as OperationClass - elif api_version == '2023-05-01': - from .v2023_05_01.operations import Operations as OperationClass + elif api_version == '2024-01-01': + from .v2024_01_01.operations import Operations as OperationClass else: raise ValueError("API version {} does not have operation group 'operations'".format(api_version)) self._config.api_version = api_version @@ -332,13 +332,13 @@ def private_endpoint_connections(self): """Instance depends on the API version: * 2019-06-01: :class:`PrivateEndpointConnectionsOperations` - * 2023-05-01: :class:`PrivateEndpointConnectionsOperations` + * 2024-01-01: :class:`PrivateEndpointConnectionsOperations` """ api_version = self._get_api_version('private_endpoint_connections') if api_version == '2019-06-01': from .v2019_06_01.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == '2023-05-01': - from .v2023_05_01.operations import PrivateEndpointConnectionsOperations as OperationClass + elif api_version == '2024-01-01': + from .v2024_01_01.operations import PrivateEndpointConnectionsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'private_endpoint_connections'".format(api_version)) self._config.api_version = api_version @@ -349,13 +349,13 @@ def private_link_resources(self): """Instance depends on the API version: * 2019-06-01: :class:`PrivateLinkResourcesOperations` - * 2023-05-01: :class:`PrivateLinkResourcesOperations` + * 2024-01-01: :class:`PrivateLinkResourcesOperations` """ api_version = self._get_api_version('private_link_resources') if api_version == '2019-06-01': from .v2019_06_01.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == '2023-05-01': - from .v2023_05_01.operations import PrivateLinkResourcesOperations as OperationClass + elif api_version == '2024-01-01': + from .v2024_01_01.operations import PrivateLinkResourcesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'private_link_resources'".format(api_version)) self._config.api_version = api_version @@ -366,13 +366,13 @@ def queue(self): """Instance depends on the API version: * 2019-06-01: :class:`QueueOperations` - * 2023-05-01: :class:`QueueOperations` + * 2024-01-01: :class:`QueueOperations` """ api_version = self._get_api_version('queue') if api_version == '2019-06-01': from .v2019_06_01.operations import QueueOperations as OperationClass - elif api_version == '2023-05-01': - from .v2023_05_01.operations import QueueOperations as OperationClass + elif api_version == '2024-01-01': + from .v2024_01_01.operations import QueueOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'queue'".format(api_version)) self._config.api_version = api_version @@ -383,13 +383,13 @@ def queue_services(self): """Instance depends on the API version: * 2019-06-01: :class:`QueueServicesOperations` - * 2023-05-01: :class:`QueueServicesOperations` + * 2024-01-01: :class:`QueueServicesOperations` """ api_version = self._get_api_version('queue_services') if api_version == '2019-06-01': from .v2019_06_01.operations import QueueServicesOperations as OperationClass - elif api_version == '2023-05-01': - from .v2023_05_01.operations import QueueServicesOperations as OperationClass + elif api_version == '2024-01-01': + from .v2024_01_01.operations import QueueServicesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'queue_services'".format(api_version)) self._config.api_version = api_version @@ -401,15 +401,15 @@ def skus(self): * 2017-10-01: :class:`SkusOperations` * 2019-06-01: :class:`SkusOperations` - * 2023-05-01: :class:`SkusOperations` + * 2024-01-01: :class:`SkusOperations` """ api_version = self._get_api_version('skus') if api_version == '2017-10-01': from .v2017_10_01.operations import SkusOperations as OperationClass elif api_version == '2019-06-01': from .v2019_06_01.operations import SkusOperations as OperationClass - elif api_version == '2023-05-01': - from .v2023_05_01.operations import SkusOperations as OperationClass + elif api_version == '2024-01-01': + from .v2024_01_01.operations import SkusOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'skus'".format(api_version)) self._config.api_version = api_version @@ -422,7 +422,7 @@ def storage_accounts(self): * 2016-01-01: :class:`StorageAccountsOperations` * 2017-10-01: :class:`StorageAccountsOperations` * 2019-06-01: :class:`StorageAccountsOperations` - * 2023-05-01: :class:`StorageAccountsOperations` + * 2024-01-01: :class:`StorageAccountsOperations` """ api_version = self._get_api_version('storage_accounts') if api_version == '2016-01-01': @@ -431,8 +431,8 @@ def storage_accounts(self): from .v2017_10_01.operations import StorageAccountsOperations as OperationClass elif api_version == '2019-06-01': from .v2019_06_01.operations import StorageAccountsOperations as OperationClass - elif api_version == '2023-05-01': - from .v2023_05_01.operations import StorageAccountsOperations as OperationClass + elif api_version == '2024-01-01': + from .v2024_01_01.operations import StorageAccountsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'storage_accounts'".format(api_version)) self._config.api_version = api_version @@ -442,11 +442,11 @@ def storage_accounts(self): def storage_task_assignment_instances_report(self): """Instance depends on the API version: - * 2023-05-01: :class:`StorageTaskAssignmentInstancesReportOperations` + * 2024-01-01: :class:`StorageTaskAssignmentInstancesReportOperations` """ api_version = self._get_api_version('storage_task_assignment_instances_report') - if api_version == '2023-05-01': - from .v2023_05_01.operations import StorageTaskAssignmentInstancesReportOperations as OperationClass + if api_version == '2024-01-01': + from .v2024_01_01.operations import StorageTaskAssignmentInstancesReportOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'storage_task_assignment_instances_report'".format(api_version)) self._config.api_version = api_version @@ -456,11 +456,11 @@ def storage_task_assignment_instances_report(self): def storage_task_assignments(self): """Instance depends on the API version: - * 2023-05-01: :class:`StorageTaskAssignmentsOperations` + * 2024-01-01: :class:`StorageTaskAssignmentsOperations` """ api_version = self._get_api_version('storage_task_assignments') - if api_version == '2023-05-01': - from .v2023_05_01.operations import StorageTaskAssignmentsOperations as OperationClass + if api_version == '2024-01-01': + from .v2024_01_01.operations import StorageTaskAssignmentsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'storage_task_assignments'".format(api_version)) self._config.api_version = api_version @@ -470,11 +470,11 @@ def storage_task_assignments(self): def storage_task_assignments_instances_report(self): """Instance depends on the API version: - * 2023-05-01: :class:`StorageTaskAssignmentsInstancesReportOperations` + * 2024-01-01: :class:`StorageTaskAssignmentsInstancesReportOperations` """ api_version = self._get_api_version('storage_task_assignments_instances_report') - if api_version == '2023-05-01': - from .v2023_05_01.operations import StorageTaskAssignmentsInstancesReportOperations as OperationClass + if api_version == '2024-01-01': + from .v2024_01_01.operations import StorageTaskAssignmentsInstancesReportOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'storage_task_assignments_instances_report'".format(api_version)) self._config.api_version = api_version @@ -485,13 +485,13 @@ def table(self): """Instance depends on the API version: * 2019-06-01: :class:`TableOperations` - * 2023-05-01: :class:`TableOperations` + * 2024-01-01: :class:`TableOperations` """ api_version = self._get_api_version('table') if api_version == '2019-06-01': from .v2019_06_01.operations import TableOperations as OperationClass - elif api_version == '2023-05-01': - from .v2023_05_01.operations import TableOperations as OperationClass + elif api_version == '2024-01-01': + from .v2024_01_01.operations import TableOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'table'".format(api_version)) self._config.api_version = api_version @@ -502,13 +502,13 @@ def table_services(self): """Instance depends on the API version: * 2019-06-01: :class:`TableServicesOperations` - * 2023-05-01: :class:`TableServicesOperations` + * 2024-01-01: :class:`TableServicesOperations` """ api_version = self._get_api_version('table_services') if api_version == '2019-06-01': from .v2019_06_01.operations import TableServicesOperations as OperationClass - elif api_version == '2023-05-01': - from .v2023_05_01.operations import TableServicesOperations as OperationClass + elif api_version == '2024-01-01': + from .v2024_01_01.operations import TableServicesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'table_services'".format(api_version)) self._config.api_version = api_version @@ -536,13 +536,13 @@ def usages(self): """Instance depends on the API version: * 2019-06-01: :class:`UsagesOperations` - * 2023-05-01: :class:`UsagesOperations` + * 2024-01-01: :class:`UsagesOperations` """ api_version = self._get_api_version('usages') if api_version == '2019-06-01': from .v2019_06_01.operations import UsagesOperations as OperationClass - elif api_version == '2023-05-01': - from .v2023_05_01.operations import UsagesOperations as OperationClass + elif api_version == '2024-01-01': + from .v2024_01_01.operations import UsagesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'usages'".format(api_version)) self._config.api_version = api_version diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/aio/_storage_management_client.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/aio/_storage_management_client.py index 5c64edafa0b2..5756259864d8 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/aio/_storage_management_client.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/aio/_storage_management_client.py @@ -56,7 +56,7 @@ class StorageManagementClient(MultiApiClientMixin, _SDKClient): :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ - DEFAULT_API_VERSION = '2023-05-01' + DEFAULT_API_VERSION = '2024-01-01' _PROFILE_TAG = "azure.mgmt.storage.StorageManagementClient" LATEST_PROFILE = ProfileDefinition({ _PROFILE_TAG: { @@ -113,7 +113,7 @@ def models(cls, api_version=DEFAULT_API_VERSION): * 2016-01-01: :mod:`v2016_01_01.models` * 2017-10-01: :mod:`v2017_10_01.models` * 2019-06-01: :mod:`v2019_06_01.models` - * 2023-05-01: :mod:`v2023_05_01.models` + * 2024-01-01: :mod:`v2024_01_01.models` """ if api_version == '2016-01-01': from ..v2016_01_01 import models @@ -124,8 +124,8 @@ def models(cls, api_version=DEFAULT_API_VERSION): elif api_version == '2019-06-01': from ..v2019_06_01 import models return models - elif api_version == '2023-05-01': - from ..v2023_05_01 import models + elif api_version == '2024-01-01': + from ..v2024_01_01 import models return models raise ValueError("API version {} is not available".format(api_version)) @@ -134,13 +134,13 @@ def blob_containers(self): """Instance depends on the API version: * 2019-06-01: :class:`BlobContainersOperations` - * 2023-05-01: :class:`BlobContainersOperations` + * 2024-01-01: :class:`BlobContainersOperations` """ api_version = self._get_api_version('blob_containers') if api_version == '2019-06-01': from ..v2019_06_01.aio.operations import BlobContainersOperations as OperationClass - elif api_version == '2023-05-01': - from ..v2023_05_01.aio.operations import BlobContainersOperations as OperationClass + elif api_version == '2024-01-01': + from ..v2024_01_01.aio.operations import BlobContainersOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'blob_containers'".format(api_version)) self._config.api_version = api_version @@ -151,13 +151,13 @@ def blob_inventory_policies(self): """Instance depends on the API version: * 2019-06-01: :class:`BlobInventoryPoliciesOperations` - * 2023-05-01: :class:`BlobInventoryPoliciesOperations` + * 2024-01-01: :class:`BlobInventoryPoliciesOperations` """ api_version = self._get_api_version('blob_inventory_policies') if api_version == '2019-06-01': from ..v2019_06_01.aio.operations import BlobInventoryPoliciesOperations as OperationClass - elif api_version == '2023-05-01': - from ..v2023_05_01.aio.operations import BlobInventoryPoliciesOperations as OperationClass + elif api_version == '2024-01-01': + from ..v2024_01_01.aio.operations import BlobInventoryPoliciesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'blob_inventory_policies'".format(api_version)) self._config.api_version = api_version @@ -168,13 +168,13 @@ def blob_services(self): """Instance depends on the API version: * 2019-06-01: :class:`BlobServicesOperations` - * 2023-05-01: :class:`BlobServicesOperations` + * 2024-01-01: :class:`BlobServicesOperations` """ api_version = self._get_api_version('blob_services') if api_version == '2019-06-01': from ..v2019_06_01.aio.operations import BlobServicesOperations as OperationClass - elif api_version == '2023-05-01': - from ..v2023_05_01.aio.operations import BlobServicesOperations as OperationClass + elif api_version == '2024-01-01': + from ..v2024_01_01.aio.operations import BlobServicesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'blob_services'".format(api_version)) self._config.api_version = api_version @@ -184,11 +184,11 @@ def blob_services(self): def deleted_accounts(self): """Instance depends on the API version: - * 2023-05-01: :class:`DeletedAccountsOperations` + * 2024-01-01: :class:`DeletedAccountsOperations` """ api_version = self._get_api_version('deleted_accounts') - if api_version == '2023-05-01': - from ..v2023_05_01.aio.operations import DeletedAccountsOperations as OperationClass + if api_version == '2024-01-01': + from ..v2024_01_01.aio.operations import DeletedAccountsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'deleted_accounts'".format(api_version)) self._config.api_version = api_version @@ -199,13 +199,13 @@ def encryption_scopes(self): """Instance depends on the API version: * 2019-06-01: :class:`EncryptionScopesOperations` - * 2023-05-01: :class:`EncryptionScopesOperations` + * 2024-01-01: :class:`EncryptionScopesOperations` """ api_version = self._get_api_version('encryption_scopes') if api_version == '2019-06-01': from ..v2019_06_01.aio.operations import EncryptionScopesOperations as OperationClass - elif api_version == '2023-05-01': - from ..v2023_05_01.aio.operations import EncryptionScopesOperations as OperationClass + elif api_version == '2024-01-01': + from ..v2024_01_01.aio.operations import EncryptionScopesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'encryption_scopes'".format(api_version)) self._config.api_version = api_version @@ -216,13 +216,13 @@ def file_services(self): """Instance depends on the API version: * 2019-06-01: :class:`FileServicesOperations` - * 2023-05-01: :class:`FileServicesOperations` + * 2024-01-01: :class:`FileServicesOperations` """ api_version = self._get_api_version('file_services') if api_version == '2019-06-01': from ..v2019_06_01.aio.operations import FileServicesOperations as OperationClass - elif api_version == '2023-05-01': - from ..v2023_05_01.aio.operations import FileServicesOperations as OperationClass + elif api_version == '2024-01-01': + from ..v2024_01_01.aio.operations import FileServicesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'file_services'".format(api_version)) self._config.api_version = api_version @@ -233,13 +233,13 @@ def file_shares(self): """Instance depends on the API version: * 2019-06-01: :class:`FileSharesOperations` - * 2023-05-01: :class:`FileSharesOperations` + * 2024-01-01: :class:`FileSharesOperations` """ api_version = self._get_api_version('file_shares') if api_version == '2019-06-01': from ..v2019_06_01.aio.operations import FileSharesOperations as OperationClass - elif api_version == '2023-05-01': - from ..v2023_05_01.aio.operations import FileSharesOperations as OperationClass + elif api_version == '2024-01-01': + from ..v2024_01_01.aio.operations import FileSharesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'file_shares'".format(api_version)) self._config.api_version = api_version @@ -249,11 +249,11 @@ def file_shares(self): def local_users(self): """Instance depends on the API version: - * 2023-05-01: :class:`LocalUsersOperations` + * 2024-01-01: :class:`LocalUsersOperations` """ api_version = self._get_api_version('local_users') - if api_version == '2023-05-01': - from ..v2023_05_01.aio.operations import LocalUsersOperations as OperationClass + if api_version == '2024-01-01': + from ..v2024_01_01.aio.operations import LocalUsersOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'local_users'".format(api_version)) self._config.api_version = api_version @@ -264,13 +264,13 @@ def management_policies(self): """Instance depends on the API version: * 2019-06-01: :class:`ManagementPoliciesOperations` - * 2023-05-01: :class:`ManagementPoliciesOperations` + * 2024-01-01: :class:`ManagementPoliciesOperations` """ api_version = self._get_api_version('management_policies') if api_version == '2019-06-01': from ..v2019_06_01.aio.operations import ManagementPoliciesOperations as OperationClass - elif api_version == '2023-05-01': - from ..v2023_05_01.aio.operations import ManagementPoliciesOperations as OperationClass + elif api_version == '2024-01-01': + from ..v2024_01_01.aio.operations import ManagementPoliciesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'management_policies'".format(api_version)) self._config.api_version = api_version @@ -280,11 +280,11 @@ def management_policies(self): def network_security_perimeter_configurations(self): """Instance depends on the API version: - * 2023-05-01: :class:`NetworkSecurityPerimeterConfigurationsOperations` + * 2024-01-01: :class:`NetworkSecurityPerimeterConfigurationsOperations` """ api_version = self._get_api_version('network_security_perimeter_configurations') - if api_version == '2023-05-01': - from ..v2023_05_01.aio.operations import NetworkSecurityPerimeterConfigurationsOperations as OperationClass + if api_version == '2024-01-01': + from ..v2024_01_01.aio.operations import NetworkSecurityPerimeterConfigurationsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'network_security_perimeter_configurations'".format(api_version)) self._config.api_version = api_version @@ -295,13 +295,13 @@ def object_replication_policies(self): """Instance depends on the API version: * 2019-06-01: :class:`ObjectReplicationPoliciesOperations` - * 2023-05-01: :class:`ObjectReplicationPoliciesOperations` + * 2024-01-01: :class:`ObjectReplicationPoliciesOperations` """ api_version = self._get_api_version('object_replication_policies') if api_version == '2019-06-01': from ..v2019_06_01.aio.operations import ObjectReplicationPoliciesOperations as OperationClass - elif api_version == '2023-05-01': - from ..v2023_05_01.aio.operations import ObjectReplicationPoliciesOperations as OperationClass + elif api_version == '2024-01-01': + from ..v2024_01_01.aio.operations import ObjectReplicationPoliciesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'object_replication_policies'".format(api_version)) self._config.api_version = api_version @@ -313,15 +313,15 @@ def operations(self): * 2017-10-01: :class:`Operations` * 2019-06-01: :class:`Operations` - * 2023-05-01: :class:`Operations` + * 2024-01-01: :class:`Operations` """ api_version = self._get_api_version('operations') if api_version == '2017-10-01': from ..v2017_10_01.aio.operations import Operations as OperationClass elif api_version == '2019-06-01': from ..v2019_06_01.aio.operations import Operations as OperationClass - elif api_version == '2023-05-01': - from ..v2023_05_01.aio.operations import Operations as OperationClass + elif api_version == '2024-01-01': + from ..v2024_01_01.aio.operations import Operations as OperationClass else: raise ValueError("API version {} does not have operation group 'operations'".format(api_version)) self._config.api_version = api_version @@ -332,13 +332,13 @@ def private_endpoint_connections(self): """Instance depends on the API version: * 2019-06-01: :class:`PrivateEndpointConnectionsOperations` - * 2023-05-01: :class:`PrivateEndpointConnectionsOperations` + * 2024-01-01: :class:`PrivateEndpointConnectionsOperations` """ api_version = self._get_api_version('private_endpoint_connections') if api_version == '2019-06-01': from ..v2019_06_01.aio.operations import PrivateEndpointConnectionsOperations as OperationClass - elif api_version == '2023-05-01': - from ..v2023_05_01.aio.operations import PrivateEndpointConnectionsOperations as OperationClass + elif api_version == '2024-01-01': + from ..v2024_01_01.aio.operations import PrivateEndpointConnectionsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'private_endpoint_connections'".format(api_version)) self._config.api_version = api_version @@ -349,13 +349,13 @@ def private_link_resources(self): """Instance depends on the API version: * 2019-06-01: :class:`PrivateLinkResourcesOperations` - * 2023-05-01: :class:`PrivateLinkResourcesOperations` + * 2024-01-01: :class:`PrivateLinkResourcesOperations` """ api_version = self._get_api_version('private_link_resources') if api_version == '2019-06-01': from ..v2019_06_01.aio.operations import PrivateLinkResourcesOperations as OperationClass - elif api_version == '2023-05-01': - from ..v2023_05_01.aio.operations import PrivateLinkResourcesOperations as OperationClass + elif api_version == '2024-01-01': + from ..v2024_01_01.aio.operations import PrivateLinkResourcesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'private_link_resources'".format(api_version)) self._config.api_version = api_version @@ -366,13 +366,13 @@ def queue(self): """Instance depends on the API version: * 2019-06-01: :class:`QueueOperations` - * 2023-05-01: :class:`QueueOperations` + * 2024-01-01: :class:`QueueOperations` """ api_version = self._get_api_version('queue') if api_version == '2019-06-01': from ..v2019_06_01.aio.operations import QueueOperations as OperationClass - elif api_version == '2023-05-01': - from ..v2023_05_01.aio.operations import QueueOperations as OperationClass + elif api_version == '2024-01-01': + from ..v2024_01_01.aio.operations import QueueOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'queue'".format(api_version)) self._config.api_version = api_version @@ -383,13 +383,13 @@ def queue_services(self): """Instance depends on the API version: * 2019-06-01: :class:`QueueServicesOperations` - * 2023-05-01: :class:`QueueServicesOperations` + * 2024-01-01: :class:`QueueServicesOperations` """ api_version = self._get_api_version('queue_services') if api_version == '2019-06-01': from ..v2019_06_01.aio.operations import QueueServicesOperations as OperationClass - elif api_version == '2023-05-01': - from ..v2023_05_01.aio.operations import QueueServicesOperations as OperationClass + elif api_version == '2024-01-01': + from ..v2024_01_01.aio.operations import QueueServicesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'queue_services'".format(api_version)) self._config.api_version = api_version @@ -401,15 +401,15 @@ def skus(self): * 2017-10-01: :class:`SkusOperations` * 2019-06-01: :class:`SkusOperations` - * 2023-05-01: :class:`SkusOperations` + * 2024-01-01: :class:`SkusOperations` """ api_version = self._get_api_version('skus') if api_version == '2017-10-01': from ..v2017_10_01.aio.operations import SkusOperations as OperationClass elif api_version == '2019-06-01': from ..v2019_06_01.aio.operations import SkusOperations as OperationClass - elif api_version == '2023-05-01': - from ..v2023_05_01.aio.operations import SkusOperations as OperationClass + elif api_version == '2024-01-01': + from ..v2024_01_01.aio.operations import SkusOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'skus'".format(api_version)) self._config.api_version = api_version @@ -422,7 +422,7 @@ def storage_accounts(self): * 2016-01-01: :class:`StorageAccountsOperations` * 2017-10-01: :class:`StorageAccountsOperations` * 2019-06-01: :class:`StorageAccountsOperations` - * 2023-05-01: :class:`StorageAccountsOperations` + * 2024-01-01: :class:`StorageAccountsOperations` """ api_version = self._get_api_version('storage_accounts') if api_version == '2016-01-01': @@ -431,8 +431,8 @@ def storage_accounts(self): from ..v2017_10_01.aio.operations import StorageAccountsOperations as OperationClass elif api_version == '2019-06-01': from ..v2019_06_01.aio.operations import StorageAccountsOperations as OperationClass - elif api_version == '2023-05-01': - from ..v2023_05_01.aio.operations import StorageAccountsOperations as OperationClass + elif api_version == '2024-01-01': + from ..v2024_01_01.aio.operations import StorageAccountsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'storage_accounts'".format(api_version)) self._config.api_version = api_version @@ -442,11 +442,11 @@ def storage_accounts(self): def storage_task_assignment_instances_report(self): """Instance depends on the API version: - * 2023-05-01: :class:`StorageTaskAssignmentInstancesReportOperations` + * 2024-01-01: :class:`StorageTaskAssignmentInstancesReportOperations` """ api_version = self._get_api_version('storage_task_assignment_instances_report') - if api_version == '2023-05-01': - from ..v2023_05_01.aio.operations import StorageTaskAssignmentInstancesReportOperations as OperationClass + if api_version == '2024-01-01': + from ..v2024_01_01.aio.operations import StorageTaskAssignmentInstancesReportOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'storage_task_assignment_instances_report'".format(api_version)) self._config.api_version = api_version @@ -456,11 +456,11 @@ def storage_task_assignment_instances_report(self): def storage_task_assignments(self): """Instance depends on the API version: - * 2023-05-01: :class:`StorageTaskAssignmentsOperations` + * 2024-01-01: :class:`StorageTaskAssignmentsOperations` """ api_version = self._get_api_version('storage_task_assignments') - if api_version == '2023-05-01': - from ..v2023_05_01.aio.operations import StorageTaskAssignmentsOperations as OperationClass + if api_version == '2024-01-01': + from ..v2024_01_01.aio.operations import StorageTaskAssignmentsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'storage_task_assignments'".format(api_version)) self._config.api_version = api_version @@ -470,11 +470,11 @@ def storage_task_assignments(self): def storage_task_assignments_instances_report(self): """Instance depends on the API version: - * 2023-05-01: :class:`StorageTaskAssignmentsInstancesReportOperations` + * 2024-01-01: :class:`StorageTaskAssignmentsInstancesReportOperations` """ api_version = self._get_api_version('storage_task_assignments_instances_report') - if api_version == '2023-05-01': - from ..v2023_05_01.aio.operations import StorageTaskAssignmentsInstancesReportOperations as OperationClass + if api_version == '2024-01-01': + from ..v2024_01_01.aio.operations import StorageTaskAssignmentsInstancesReportOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'storage_task_assignments_instances_report'".format(api_version)) self._config.api_version = api_version @@ -485,13 +485,13 @@ def table(self): """Instance depends on the API version: * 2019-06-01: :class:`TableOperations` - * 2023-05-01: :class:`TableOperations` + * 2024-01-01: :class:`TableOperations` """ api_version = self._get_api_version('table') if api_version == '2019-06-01': from ..v2019_06_01.aio.operations import TableOperations as OperationClass - elif api_version == '2023-05-01': - from ..v2023_05_01.aio.operations import TableOperations as OperationClass + elif api_version == '2024-01-01': + from ..v2024_01_01.aio.operations import TableOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'table'".format(api_version)) self._config.api_version = api_version @@ -502,13 +502,13 @@ def table_services(self): """Instance depends on the API version: * 2019-06-01: :class:`TableServicesOperations` - * 2023-05-01: :class:`TableServicesOperations` + * 2024-01-01: :class:`TableServicesOperations` """ api_version = self._get_api_version('table_services') if api_version == '2019-06-01': from ..v2019_06_01.aio.operations import TableServicesOperations as OperationClass - elif api_version == '2023-05-01': - from ..v2023_05_01.aio.operations import TableServicesOperations as OperationClass + elif api_version == '2024-01-01': + from ..v2024_01_01.aio.operations import TableServicesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'table_services'".format(api_version)) self._config.api_version = api_version @@ -536,13 +536,13 @@ def usages(self): """Instance depends on the API version: * 2019-06-01: :class:`UsagesOperations` - * 2023-05-01: :class:`UsagesOperations` + * 2024-01-01: :class:`UsagesOperations` """ api_version = self._get_api_version('usages') if api_version == '2019-06-01': from ..v2019_06_01.aio.operations import UsagesOperations as OperationClass - elif api_version == '2023-05-01': - from ..v2023_05_01.aio.operations import UsagesOperations as OperationClass + elif api_version == '2024-01-01': + from ..v2024_01_01.aio.operations import UsagesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'usages'".format(api_version)) self._config.api_version = api_version diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/models.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/models.py index 6f4f936a93f7..6607b403ac10 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/models.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/models.py @@ -5,4 +5,4 @@ # license information. # -------------------------------------------------------------------------- from .v2017_10_01.models import * -from .v2023_05_01.models import * +from .v2024_01_01.models import * diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2016_01_01/_version.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2016_01_01/_version.py index 81b10eb08899..e5754a47ce68 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2016_01_01/_version.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2016_01_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "22.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2017_10_01/_version.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2017_10_01/_version.py index 81b10eb08899..e5754a47ce68 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2017_10_01/_version.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2017_10_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "22.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_06_01/_version.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_06_01/_version.py index 81b10eb08899..e5754a47ce68 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_06_01/_version.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_06_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "22.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_file_services_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_file_services_operations.py deleted file mode 100644 index 352a8ccb303d..000000000000 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_file_services_operations.py +++ /dev/null @@ -1,431 +0,0 @@ -# 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. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -import sys -from typing import Any, Callable, Dict, IO, Literal, Optional, TypeVar, Union, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer - -if sys.version_info >= (3, 9): - from collections.abc import MutableMapping -else: - from typing import MutableMapping # type: ignore -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(resource_group_name: str, account_name: str, 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")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices", - ) # pylint: disable=line-too-long - path_format_arguments = { - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "accountName": _SERIALIZER.url( - "account_name", account_name, "str", max_length=24, min_length=3, pattern=r"^[a-z0-9]+$" - ), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_set_service_properties_request( - resource_group_name: str, account_name: str, 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")) - file_services_name: Literal["default"] = kwargs.pop("file_services_name", "default") - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/{FileServicesName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "accountName": _SERIALIZER.url( - "account_name", account_name, "str", max_length=24, min_length=3, pattern=r"^[a-z0-9]+$" - ), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "FileServicesName": _SERIALIZER.url("file_services_name", file_services_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_service_properties_request( - resource_group_name: str, account_name: str, 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")) - file_services_name: Literal["default"] = kwargs.pop("file_services_name", "default") - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/{FileServicesName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "resourceGroupName": _SERIALIZER.url( - "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" - ), - "accountName": _SERIALIZER.url( - "account_name", account_name, "str", max_length=24, min_length=3, pattern=r"^[a-z0-9]+$" - ), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), - "FileServicesName": _SERIALIZER.url("file_services_name", file_services_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class FileServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.StorageManagementClient`'s - :attr:`file_services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, resource_group_name: str, account_name: str, **kwargs: Any) -> _models.FileServiceItems: - """List all file services in storage accounts. - - :param resource_group_name: The name of the resource group within the user's subscription. The - name is case insensitive. Required. - :type resource_group_name: str - :param account_name: The name of the storage account within the specified resource group. - Storage account names must be between 3 and 24 characters in length and use numbers and - lower-case letters only. Required. - :type account_name: str - :return: FileServiceItems or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.FileServiceItems - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) - cls: ClsType[_models.FileServiceItems] = kwargs.pop("cls", None) - - _request = build_list_request( - resource_group_name=resource_group_name, - account_name=account_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("FileServiceItems", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def set_service_properties( - self, - resource_group_name: str, - account_name: str, - parameters: _models.FileServiceProperties, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.FileServiceProperties: - """Sets the properties of file services in storage accounts, including CORS (Cross-Origin Resource - Sharing) rules. - - :param resource_group_name: The name of the resource group within the user's subscription. The - name is case insensitive. Required. - :type resource_group_name: str - :param account_name: The name of the storage account within the specified resource group. - Storage account names must be between 3 and 24 characters in length and use numbers and - lower-case letters only. Required. - :type account_name: str - :param parameters: The properties of file services in storage accounts, including CORS - (Cross-Origin Resource Sharing) rules. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.FileServiceProperties - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: FileServiceProperties or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.FileServiceProperties - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def set_service_properties( - self, - resource_group_name: str, - account_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.FileServiceProperties: - """Sets the properties of file services in storage accounts, including CORS (Cross-Origin Resource - Sharing) rules. - - :param resource_group_name: The name of the resource group within the user's subscription. The - name is case insensitive. Required. - :type resource_group_name: str - :param account_name: The name of the storage account within the specified resource group. - Storage account names must be between 3 and 24 characters in length and use numbers and - lower-case letters only. Required. - :type account_name: str - :param parameters: The properties of file services in storage accounts, including CORS - (Cross-Origin Resource Sharing) rules. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: FileServiceProperties or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.FileServiceProperties - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def set_service_properties( - self, - resource_group_name: str, - account_name: str, - parameters: Union[_models.FileServiceProperties, IO[bytes]], - **kwargs: Any - ) -> _models.FileServiceProperties: - """Sets the properties of file services in storage accounts, including CORS (Cross-Origin Resource - Sharing) rules. - - :param resource_group_name: The name of the resource group within the user's subscription. The - name is case insensitive. Required. - :type resource_group_name: str - :param account_name: The name of the storage account within the specified resource group. - Storage account names must be between 3 and 24 characters in length and use numbers and - lower-case letters only. Required. - :type account_name: str - :param parameters: The properties of file services in storage accounts, including CORS - (Cross-Origin Resource Sharing) rules. Is either a FileServiceProperties type or a IO[bytes] - type. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.FileServiceProperties or IO[bytes] - :return: FileServiceProperties or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.FileServiceProperties - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _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", self._api_version or "2023-05-01")) - file_services_name: Literal["default"] = kwargs.pop("file_services_name", "default") - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.FileServiceProperties] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "FileServiceProperties") - - _request = build_set_service_properties_request( - resource_group_name=resource_group_name, - account_name=account_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - file_services_name=file_services_name, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("FileServiceProperties", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_service_properties( - self, resource_group_name: str, account_name: str, **kwargs: Any - ) -> _models.FileServiceProperties: - """Gets the properties of file services in storage accounts, including CORS (Cross-Origin Resource - Sharing) rules. - - :param resource_group_name: The name of the resource group within the user's subscription. The - name is case insensitive. Required. - :type resource_group_name: str - :param account_name: The name of the storage account within the specified resource group. - Storage account names must be between 3 and 24 characters in length and use numbers and - lower-case letters only. Required. - :type account_name: str - :return: FileServiceProperties or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.FileServiceProperties - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) - file_services_name: Literal["default"] = kwargs.pop("file_services_name", "default") - cls: ClsType[_models.FileServiceProperties] = kwargs.pop("cls", None) - - _request = build_get_service_properties_request( - resource_group_name=resource_group_name, - account_name=account_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - file_services_name=file_services_name, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("FileServiceProperties", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/__init__.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/__init__.py similarity index 100% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/__init__.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/__init__.py diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/_configuration.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/_configuration.py similarity index 96% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/_configuration.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/_configuration.py index 0764dabc5844..e0c260142f24 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/_configuration.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/_configuration.py @@ -27,13 +27,13 @@ class StorageManagementClientConfiguration: # pylint: disable=too-many-instance :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 + :keyword api_version: Api Version. Default value is "2024-01-01". 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: - api_version: str = kwargs.pop("api_version", "2023-05-01") + api_version: str = kwargs.pop("api_version", "2024-01-01") if credential is None: raise ValueError("Parameter 'credential' must not be None.") diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/_metadata.json b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/_metadata.json similarity index 98% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/_metadata.json rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/_metadata.json index a8ecdfe7db54..652cd062ecca 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/_metadata.json +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/_metadata.json @@ -1,6 +1,6 @@ { - "chosen_version": "2023-05-01", - "total_api_version_list": ["2023-05-01"], + "chosen_version": "2024-01-01", + "total_api_version_list": ["2024-01-01"], "client": { "name": "StorageManagementClient", "filename": "_storage_management_client", diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/_patch.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/_patch.py similarity index 100% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/_patch.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/_patch.py diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/_storage_management_client.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/_storage_management_client.py similarity index 82% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/_storage_management_client.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/_storage_management_client.py index fbf11af66426..f7a227d374fa 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/_storage_management_client.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/_storage_management_client.py @@ -53,73 +53,73 @@ class StorageManagementClient: # pylint: disable=too-many-instance-attributes """The Azure Storage Management API. :ivar blob_services: BlobServicesOperations operations - :vartype blob_services: azure.mgmt.storage.v2023_05_01.operations.BlobServicesOperations + :vartype blob_services: azure.mgmt.storage.v2024_01_01.operations.BlobServicesOperations :ivar blob_containers: BlobContainersOperations operations - :vartype blob_containers: azure.mgmt.storage.v2023_05_01.operations.BlobContainersOperations + :vartype blob_containers: azure.mgmt.storage.v2024_01_01.operations.BlobContainersOperations :ivar file_services: FileServicesOperations operations - :vartype file_services: azure.mgmt.storage.v2023_05_01.operations.FileServicesOperations + :vartype file_services: azure.mgmt.storage.v2024_01_01.operations.FileServicesOperations :ivar file_shares: FileSharesOperations operations - :vartype file_shares: azure.mgmt.storage.v2023_05_01.operations.FileSharesOperations + :vartype file_shares: azure.mgmt.storage.v2024_01_01.operations.FileSharesOperations :ivar queue_services: QueueServicesOperations operations - :vartype queue_services: azure.mgmt.storage.v2023_05_01.operations.QueueServicesOperations + :vartype queue_services: azure.mgmt.storage.v2024_01_01.operations.QueueServicesOperations :ivar queue: QueueOperations operations - :vartype queue: azure.mgmt.storage.v2023_05_01.operations.QueueOperations + :vartype queue: azure.mgmt.storage.v2024_01_01.operations.QueueOperations :ivar operations: Operations operations - :vartype operations: azure.mgmt.storage.v2023_05_01.operations.Operations + :vartype operations: azure.mgmt.storage.v2024_01_01.operations.Operations :ivar skus: SkusOperations operations - :vartype skus: azure.mgmt.storage.v2023_05_01.operations.SkusOperations + :vartype skus: azure.mgmt.storage.v2024_01_01.operations.SkusOperations :ivar storage_accounts: StorageAccountsOperations operations - :vartype storage_accounts: azure.mgmt.storage.v2023_05_01.operations.StorageAccountsOperations + :vartype storage_accounts: azure.mgmt.storage.v2024_01_01.operations.StorageAccountsOperations :ivar deleted_accounts: DeletedAccountsOperations operations - :vartype deleted_accounts: azure.mgmt.storage.v2023_05_01.operations.DeletedAccountsOperations + :vartype deleted_accounts: azure.mgmt.storage.v2024_01_01.operations.DeletedAccountsOperations :ivar usages: UsagesOperations operations - :vartype usages: azure.mgmt.storage.v2023_05_01.operations.UsagesOperations + :vartype usages: azure.mgmt.storage.v2024_01_01.operations.UsagesOperations :ivar management_policies: ManagementPoliciesOperations operations :vartype management_policies: - azure.mgmt.storage.v2023_05_01.operations.ManagementPoliciesOperations + azure.mgmt.storage.v2024_01_01.operations.ManagementPoliciesOperations :ivar blob_inventory_policies: BlobInventoryPoliciesOperations operations :vartype blob_inventory_policies: - azure.mgmt.storage.v2023_05_01.operations.BlobInventoryPoliciesOperations + azure.mgmt.storage.v2024_01_01.operations.BlobInventoryPoliciesOperations :ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations :vartype private_endpoint_connections: - azure.mgmt.storage.v2023_05_01.operations.PrivateEndpointConnectionsOperations + azure.mgmt.storage.v2024_01_01.operations.PrivateEndpointConnectionsOperations :ivar private_link_resources: PrivateLinkResourcesOperations operations :vartype private_link_resources: - azure.mgmt.storage.v2023_05_01.operations.PrivateLinkResourcesOperations + azure.mgmt.storage.v2024_01_01.operations.PrivateLinkResourcesOperations :ivar object_replication_policies: ObjectReplicationPoliciesOperations operations :vartype object_replication_policies: - azure.mgmt.storage.v2023_05_01.operations.ObjectReplicationPoliciesOperations + azure.mgmt.storage.v2024_01_01.operations.ObjectReplicationPoliciesOperations :ivar local_users: LocalUsersOperations operations - :vartype local_users: azure.mgmt.storage.v2023_05_01.operations.LocalUsersOperations + :vartype local_users: azure.mgmt.storage.v2024_01_01.operations.LocalUsersOperations :ivar encryption_scopes: EncryptionScopesOperations operations :vartype encryption_scopes: - azure.mgmt.storage.v2023_05_01.operations.EncryptionScopesOperations + azure.mgmt.storage.v2024_01_01.operations.EncryptionScopesOperations :ivar table_services: TableServicesOperations operations - :vartype table_services: azure.mgmt.storage.v2023_05_01.operations.TableServicesOperations + :vartype table_services: azure.mgmt.storage.v2024_01_01.operations.TableServicesOperations :ivar table: TableOperations operations - :vartype table: azure.mgmt.storage.v2023_05_01.operations.TableOperations + :vartype table: azure.mgmt.storage.v2024_01_01.operations.TableOperations :ivar network_security_perimeter_configurations: NetworkSecurityPerimeterConfigurationsOperations operations :vartype network_security_perimeter_configurations: - azure.mgmt.storage.v2023_05_01.operations.NetworkSecurityPerimeterConfigurationsOperations + azure.mgmt.storage.v2024_01_01.operations.NetworkSecurityPerimeterConfigurationsOperations :ivar storage_task_assignments: StorageTaskAssignmentsOperations operations :vartype storage_task_assignments: - azure.mgmt.storage.v2023_05_01.operations.StorageTaskAssignmentsOperations + azure.mgmt.storage.v2024_01_01.operations.StorageTaskAssignmentsOperations :ivar storage_task_assignments_instances_report: StorageTaskAssignmentsInstancesReportOperations operations :vartype storage_task_assignments_instances_report: - azure.mgmt.storage.v2023_05_01.operations.StorageTaskAssignmentsInstancesReportOperations + azure.mgmt.storage.v2024_01_01.operations.StorageTaskAssignmentsInstancesReportOperations :ivar storage_task_assignment_instances_report: StorageTaskAssignmentInstancesReportOperations operations :vartype storage_task_assignment_instances_report: - azure.mgmt.storage.v2023_05_01.operations.StorageTaskAssignmentInstancesReportOperations + azure.mgmt.storage.v2024_01_01.operations.StorageTaskAssignmentInstancesReportOperations :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: The ID of the target subscription. Required. :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 + :keyword api_version: Api Version. Default value is "2024-01-01". 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 @@ -161,66 +161,66 @@ def __init__( self._deserialize = Deserializer(client_models) self._serialize.client_side_validation = False self.blob_services = BlobServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01" + self._client, self._config, self._serialize, self._deserialize, "2024-01-01" ) self.blob_containers = BlobContainersOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01" + self._client, self._config, self._serialize, self._deserialize, "2024-01-01" ) self.file_services = FileServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01" + self._client, self._config, self._serialize, self._deserialize, "2024-01-01" ) self.file_shares = FileSharesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01" + self._client, self._config, self._serialize, self._deserialize, "2024-01-01" ) self.queue_services = QueueServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01" + self._client, self._config, self._serialize, self._deserialize, "2024-01-01" ) - self.queue = QueueOperations(self._client, self._config, self._serialize, self._deserialize, "2023-05-01") - self.operations = Operations(self._client, self._config, self._serialize, self._deserialize, "2023-05-01") - self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize, "2023-05-01") + self.queue = QueueOperations(self._client, self._config, self._serialize, self._deserialize, "2024-01-01") + self.operations = Operations(self._client, self._config, self._serialize, self._deserialize, "2024-01-01") + self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize, "2024-01-01") self.storage_accounts = StorageAccountsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01" + self._client, self._config, self._serialize, self._deserialize, "2024-01-01" ) self.deleted_accounts = DeletedAccountsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01" + self._client, self._config, self._serialize, self._deserialize, "2024-01-01" ) - self.usages = UsagesOperations(self._client, self._config, self._serialize, self._deserialize, "2023-05-01") + self.usages = UsagesOperations(self._client, self._config, self._serialize, self._deserialize, "2024-01-01") self.management_policies = ManagementPoliciesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01" + self._client, self._config, self._serialize, self._deserialize, "2024-01-01" ) self.blob_inventory_policies = BlobInventoryPoliciesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01" + self._client, self._config, self._serialize, self._deserialize, "2024-01-01" ) self.private_endpoint_connections = PrivateEndpointConnectionsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01" + self._client, self._config, self._serialize, self._deserialize, "2024-01-01" ) self.private_link_resources = PrivateLinkResourcesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01" + self._client, self._config, self._serialize, self._deserialize, "2024-01-01" ) self.object_replication_policies = ObjectReplicationPoliciesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01" + self._client, self._config, self._serialize, self._deserialize, "2024-01-01" ) self.local_users = LocalUsersOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01" + self._client, self._config, self._serialize, self._deserialize, "2024-01-01" ) self.encryption_scopes = EncryptionScopesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01" + self._client, self._config, self._serialize, self._deserialize, "2024-01-01" ) self.table_services = TableServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01" + self._client, self._config, self._serialize, self._deserialize, "2024-01-01" ) - self.table = TableOperations(self._client, self._config, self._serialize, self._deserialize, "2023-05-01") + self.table = TableOperations(self._client, self._config, self._serialize, self._deserialize, "2024-01-01") self.network_security_perimeter_configurations = NetworkSecurityPerimeterConfigurationsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01" + self._client, self._config, self._serialize, self._deserialize, "2024-01-01" ) self.storage_task_assignments = StorageTaskAssignmentsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01" + self._client, self._config, self._serialize, self._deserialize, "2024-01-01" ) self.storage_task_assignments_instances_report = StorageTaskAssignmentsInstancesReportOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01" + self._client, self._config, self._serialize, self._deserialize, "2024-01-01" ) self.storage_task_assignment_instances_report = StorageTaskAssignmentInstancesReportOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01" + self._client, self._config, self._serialize, self._deserialize, "2024-01-01" ) def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse: diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/_version.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/_version.py similarity index 95% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/_version.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/_version.py index 81b10eb08899..e5754a47ce68 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/_version.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "22.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/__init__.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/__init__.py similarity index 100% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/__init__.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/__init__.py diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/_configuration.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/_configuration.py similarity index 96% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/_configuration.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/_configuration.py index c72e14b6958f..f5f277521e4b 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/_configuration.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/_configuration.py @@ -27,13 +27,13 @@ class StorageManagementClientConfiguration: # pylint: disable=too-many-instance :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 + :keyword api_version: Api Version. Default value is "2024-01-01". 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: - api_version: str = kwargs.pop("api_version", "2023-05-01") + api_version: str = kwargs.pop("api_version", "2024-01-01") if credential is None: raise ValueError("Parameter 'credential' must not be None.") diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/_patch.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/_patch.py similarity index 100% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/_patch.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/_patch.py diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/_storage_management_client.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/_storage_management_client.py similarity index 83% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/_storage_management_client.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/_storage_management_client.py index 8403397691a6..50641ab8cba5 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/_storage_management_client.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/_storage_management_client.py @@ -53,76 +53,76 @@ class StorageManagementClient: # pylint: disable=too-many-instance-attributes """The Azure Storage Management API. :ivar blob_services: BlobServicesOperations operations - :vartype blob_services: azure.mgmt.storage.v2023_05_01.aio.operations.BlobServicesOperations + :vartype blob_services: azure.mgmt.storage.v2024_01_01.aio.operations.BlobServicesOperations :ivar blob_containers: BlobContainersOperations operations :vartype blob_containers: - azure.mgmt.storage.v2023_05_01.aio.operations.BlobContainersOperations + azure.mgmt.storage.v2024_01_01.aio.operations.BlobContainersOperations :ivar file_services: FileServicesOperations operations - :vartype file_services: azure.mgmt.storage.v2023_05_01.aio.operations.FileServicesOperations + :vartype file_services: azure.mgmt.storage.v2024_01_01.aio.operations.FileServicesOperations :ivar file_shares: FileSharesOperations operations - :vartype file_shares: azure.mgmt.storage.v2023_05_01.aio.operations.FileSharesOperations + :vartype file_shares: azure.mgmt.storage.v2024_01_01.aio.operations.FileSharesOperations :ivar queue_services: QueueServicesOperations operations - :vartype queue_services: azure.mgmt.storage.v2023_05_01.aio.operations.QueueServicesOperations + :vartype queue_services: azure.mgmt.storage.v2024_01_01.aio.operations.QueueServicesOperations :ivar queue: QueueOperations operations - :vartype queue: azure.mgmt.storage.v2023_05_01.aio.operations.QueueOperations + :vartype queue: azure.mgmt.storage.v2024_01_01.aio.operations.QueueOperations :ivar operations: Operations operations - :vartype operations: azure.mgmt.storage.v2023_05_01.aio.operations.Operations + :vartype operations: azure.mgmt.storage.v2024_01_01.aio.operations.Operations :ivar skus: SkusOperations operations - :vartype skus: azure.mgmt.storage.v2023_05_01.aio.operations.SkusOperations + :vartype skus: azure.mgmt.storage.v2024_01_01.aio.operations.SkusOperations :ivar storage_accounts: StorageAccountsOperations operations :vartype storage_accounts: - azure.mgmt.storage.v2023_05_01.aio.operations.StorageAccountsOperations + azure.mgmt.storage.v2024_01_01.aio.operations.StorageAccountsOperations :ivar deleted_accounts: DeletedAccountsOperations operations :vartype deleted_accounts: - azure.mgmt.storage.v2023_05_01.aio.operations.DeletedAccountsOperations + azure.mgmt.storage.v2024_01_01.aio.operations.DeletedAccountsOperations :ivar usages: UsagesOperations operations - :vartype usages: azure.mgmt.storage.v2023_05_01.aio.operations.UsagesOperations + :vartype usages: azure.mgmt.storage.v2024_01_01.aio.operations.UsagesOperations :ivar management_policies: ManagementPoliciesOperations operations :vartype management_policies: - azure.mgmt.storage.v2023_05_01.aio.operations.ManagementPoliciesOperations + azure.mgmt.storage.v2024_01_01.aio.operations.ManagementPoliciesOperations :ivar blob_inventory_policies: BlobInventoryPoliciesOperations operations :vartype blob_inventory_policies: - azure.mgmt.storage.v2023_05_01.aio.operations.BlobInventoryPoliciesOperations + azure.mgmt.storage.v2024_01_01.aio.operations.BlobInventoryPoliciesOperations :ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations :vartype private_endpoint_connections: - azure.mgmt.storage.v2023_05_01.aio.operations.PrivateEndpointConnectionsOperations + azure.mgmt.storage.v2024_01_01.aio.operations.PrivateEndpointConnectionsOperations :ivar private_link_resources: PrivateLinkResourcesOperations operations :vartype private_link_resources: - azure.mgmt.storage.v2023_05_01.aio.operations.PrivateLinkResourcesOperations + azure.mgmt.storage.v2024_01_01.aio.operations.PrivateLinkResourcesOperations :ivar object_replication_policies: ObjectReplicationPoliciesOperations operations :vartype object_replication_policies: - azure.mgmt.storage.v2023_05_01.aio.operations.ObjectReplicationPoliciesOperations + azure.mgmt.storage.v2024_01_01.aio.operations.ObjectReplicationPoliciesOperations :ivar local_users: LocalUsersOperations operations - :vartype local_users: azure.mgmt.storage.v2023_05_01.aio.operations.LocalUsersOperations + :vartype local_users: azure.mgmt.storage.v2024_01_01.aio.operations.LocalUsersOperations :ivar encryption_scopes: EncryptionScopesOperations operations :vartype encryption_scopes: - azure.mgmt.storage.v2023_05_01.aio.operations.EncryptionScopesOperations + azure.mgmt.storage.v2024_01_01.aio.operations.EncryptionScopesOperations :ivar table_services: TableServicesOperations operations - :vartype table_services: azure.mgmt.storage.v2023_05_01.aio.operations.TableServicesOperations + :vartype table_services: azure.mgmt.storage.v2024_01_01.aio.operations.TableServicesOperations :ivar table: TableOperations operations - :vartype table: azure.mgmt.storage.v2023_05_01.aio.operations.TableOperations + :vartype table: azure.mgmt.storage.v2024_01_01.aio.operations.TableOperations :ivar network_security_perimeter_configurations: NetworkSecurityPerimeterConfigurationsOperations operations :vartype network_security_perimeter_configurations: - azure.mgmt.storage.v2023_05_01.aio.operations.NetworkSecurityPerimeterConfigurationsOperations + azure.mgmt.storage.v2024_01_01.aio.operations.NetworkSecurityPerimeterConfigurationsOperations :ivar storage_task_assignments: StorageTaskAssignmentsOperations operations :vartype storage_task_assignments: - azure.mgmt.storage.v2023_05_01.aio.operations.StorageTaskAssignmentsOperations + azure.mgmt.storage.v2024_01_01.aio.operations.StorageTaskAssignmentsOperations :ivar storage_task_assignments_instances_report: StorageTaskAssignmentsInstancesReportOperations operations :vartype storage_task_assignments_instances_report: - azure.mgmt.storage.v2023_05_01.aio.operations.StorageTaskAssignmentsInstancesReportOperations + azure.mgmt.storage.v2024_01_01.aio.operations.StorageTaskAssignmentsInstancesReportOperations :ivar storage_task_assignment_instances_report: StorageTaskAssignmentInstancesReportOperations operations :vartype storage_task_assignment_instances_report: - azure.mgmt.storage.v2023_05_01.aio.operations.StorageTaskAssignmentInstancesReportOperations + azure.mgmt.storage.v2024_01_01.aio.operations.StorageTaskAssignmentInstancesReportOperations :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: The ID of the target subscription. Required. :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 + :keyword api_version: Api Version. Default value is "2024-01-01". 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 @@ -164,66 +164,66 @@ def __init__( self._deserialize = Deserializer(client_models) self._serialize.client_side_validation = False self.blob_services = BlobServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01" + self._client, self._config, self._serialize, self._deserialize, "2024-01-01" ) self.blob_containers = BlobContainersOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01" + self._client, self._config, self._serialize, self._deserialize, "2024-01-01" ) self.file_services = FileServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01" + self._client, self._config, self._serialize, self._deserialize, "2024-01-01" ) self.file_shares = FileSharesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01" + self._client, self._config, self._serialize, self._deserialize, "2024-01-01" ) self.queue_services = QueueServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01" + self._client, self._config, self._serialize, self._deserialize, "2024-01-01" ) - self.queue = QueueOperations(self._client, self._config, self._serialize, self._deserialize, "2023-05-01") - self.operations = Operations(self._client, self._config, self._serialize, self._deserialize, "2023-05-01") - self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize, "2023-05-01") + self.queue = QueueOperations(self._client, self._config, self._serialize, self._deserialize, "2024-01-01") + self.operations = Operations(self._client, self._config, self._serialize, self._deserialize, "2024-01-01") + self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize, "2024-01-01") self.storage_accounts = StorageAccountsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01" + self._client, self._config, self._serialize, self._deserialize, "2024-01-01" ) self.deleted_accounts = DeletedAccountsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01" + self._client, self._config, self._serialize, self._deserialize, "2024-01-01" ) - self.usages = UsagesOperations(self._client, self._config, self._serialize, self._deserialize, "2023-05-01") + self.usages = UsagesOperations(self._client, self._config, self._serialize, self._deserialize, "2024-01-01") self.management_policies = ManagementPoliciesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01" + self._client, self._config, self._serialize, self._deserialize, "2024-01-01" ) self.blob_inventory_policies = BlobInventoryPoliciesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01" + self._client, self._config, self._serialize, self._deserialize, "2024-01-01" ) self.private_endpoint_connections = PrivateEndpointConnectionsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01" + self._client, self._config, self._serialize, self._deserialize, "2024-01-01" ) self.private_link_resources = PrivateLinkResourcesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01" + self._client, self._config, self._serialize, self._deserialize, "2024-01-01" ) self.object_replication_policies = ObjectReplicationPoliciesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01" + self._client, self._config, self._serialize, self._deserialize, "2024-01-01" ) self.local_users = LocalUsersOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01" + self._client, self._config, self._serialize, self._deserialize, "2024-01-01" ) self.encryption_scopes = EncryptionScopesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01" + self._client, self._config, self._serialize, self._deserialize, "2024-01-01" ) self.table_services = TableServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01" + self._client, self._config, self._serialize, self._deserialize, "2024-01-01" ) - self.table = TableOperations(self._client, self._config, self._serialize, self._deserialize, "2023-05-01") + self.table = TableOperations(self._client, self._config, self._serialize, self._deserialize, "2024-01-01") self.network_security_perimeter_configurations = NetworkSecurityPerimeterConfigurationsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01" + self._client, self._config, self._serialize, self._deserialize, "2024-01-01" ) self.storage_task_assignments = StorageTaskAssignmentsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01" + self._client, self._config, self._serialize, self._deserialize, "2024-01-01" ) self.storage_task_assignments_instances_report = StorageTaskAssignmentsInstancesReportOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01" + self._client, self._config, self._serialize, self._deserialize, "2024-01-01" ) self.storage_task_assignment_instances_report = StorageTaskAssignmentInstancesReportOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01" + self._client, self._config, self._serialize, self._deserialize, "2024-01-01" ) def _send_request( diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/__init__.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/__init__.py similarity index 100% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/__init__.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/__init__.py diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_blob_containers_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_blob_containers_operations.py similarity index 96% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_blob_containers_operations.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_blob_containers_operations.py index 107ac64f3da2..50d8113dba12 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_blob_containers_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_blob_containers_operations.py @@ -76,7 +76,7 @@ class BlobContainersOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.aio.StorageManagementClient`'s + :class:`~azure.mgmt.storage.v2024_01_01.aio.StorageManagementClient`'s :attr:`blob_containers` attribute. """ @@ -118,16 +118,16 @@ def list( :type filter: str :param include: Optional, used to include the properties for soft deleted blob containers. "deleted" Default value is None. - :type include: str or ~azure.mgmt.storage.v2023_05_01.models.ListContainersInclude + :type include: str or ~azure.mgmt.storage.v2024_01_01.models.ListContainersInclude :return: An iterator like instance of either ListContainerItem or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2023_05_01.models.ListContainerItem] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2024_01_01.models.ListContainerItem] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.ListContainerItems] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -223,12 +223,12 @@ async def create( by a letter or number. Required. :type container_name: str :param blob_container: Properties of the blob container to create. Required. - :type blob_container: ~azure.mgmt.storage.v2023_05_01.models.BlobContainer + :type blob_container: ~azure.mgmt.storage.v2024_01_01.models.BlobContainer :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: BlobContainer or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.BlobContainer + :rtype: ~azure.mgmt.storage.v2024_01_01.models.BlobContainer :raises ~azure.core.exceptions.HttpResponseError: """ @@ -265,7 +265,7 @@ async def create( Default value is "application/json". :paramtype content_type: str :return: BlobContainer or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.BlobContainer + :rtype: ~azure.mgmt.storage.v2024_01_01.models.BlobContainer :raises ~azure.core.exceptions.HttpResponseError: """ @@ -296,9 +296,9 @@ async def create( :type container_name: str :param blob_container: Properties of the blob container to create. Is either a BlobContainer type or a IO[bytes] type. Required. - :type blob_container: ~azure.mgmt.storage.v2023_05_01.models.BlobContainer or IO[bytes] + :type blob_container: ~azure.mgmt.storage.v2024_01_01.models.BlobContainer or IO[bytes] :return: BlobContainer or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.BlobContainer + :rtype: ~azure.mgmt.storage.v2024_01_01.models.BlobContainer :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -312,7 +312,7 @@ async def create( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.BlobContainer] = kwargs.pop("cls", None) @@ -383,12 +383,12 @@ async def update( by a letter or number. Required. :type container_name: str :param blob_container: Properties to update for the blob container. Required. - :type blob_container: ~azure.mgmt.storage.v2023_05_01.models.BlobContainer + :type blob_container: ~azure.mgmt.storage.v2024_01_01.models.BlobContainer :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: BlobContainer or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.BlobContainer + :rtype: ~azure.mgmt.storage.v2024_01_01.models.BlobContainer :raises ~azure.core.exceptions.HttpResponseError: """ @@ -424,7 +424,7 @@ async def update( Default value is "application/json". :paramtype content_type: str :return: BlobContainer or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.BlobContainer + :rtype: ~azure.mgmt.storage.v2024_01_01.models.BlobContainer :raises ~azure.core.exceptions.HttpResponseError: """ @@ -454,9 +454,9 @@ async def update( :type container_name: str :param blob_container: Properties to update for the blob container. Is either a BlobContainer type or a IO[bytes] type. Required. - :type blob_container: ~azure.mgmt.storage.v2023_05_01.models.BlobContainer or IO[bytes] + :type blob_container: ~azure.mgmt.storage.v2024_01_01.models.BlobContainer or IO[bytes] :return: BlobContainer or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.BlobContainer + :rtype: ~azure.mgmt.storage.v2024_01_01.models.BlobContainer :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -470,7 +470,7 @@ async def update( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.BlobContainer] = kwargs.pop("cls", None) @@ -533,7 +533,7 @@ async def get( by a letter or number. Required. :type container_name: str :return: BlobContainer or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.BlobContainer + :rtype: ~azure.mgmt.storage.v2024_01_01.models.BlobContainer :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -547,7 +547,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.BlobContainer] = kwargs.pop("cls", None) _request = build_get_request( @@ -610,7 +610,7 @@ async def delete(self, resource_group_name: str, account_name: str, container_na _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_delete_request( @@ -666,12 +666,12 @@ async def set_legal_hold( by a letter or number. Required. :type container_name: str :param legal_hold: The LegalHold property that will be set to a blob container. Required. - :type legal_hold: ~azure.mgmt.storage.v2023_05_01.models.LegalHold + :type legal_hold: ~azure.mgmt.storage.v2024_01_01.models.LegalHold :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: LegalHold or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.LegalHold + :rtype: ~azure.mgmt.storage.v2024_01_01.models.LegalHold :raises ~azure.core.exceptions.HttpResponseError: """ @@ -708,7 +708,7 @@ async def set_legal_hold( Default value is "application/json". :paramtype content_type: str :return: LegalHold or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.LegalHold + :rtype: ~azure.mgmt.storage.v2024_01_01.models.LegalHold :raises ~azure.core.exceptions.HttpResponseError: """ @@ -739,9 +739,9 @@ async def set_legal_hold( :type container_name: str :param legal_hold: The LegalHold property that will be set to a blob container. Is either a LegalHold type or a IO[bytes] type. Required. - :type legal_hold: ~azure.mgmt.storage.v2023_05_01.models.LegalHold or IO[bytes] + :type legal_hold: ~azure.mgmt.storage.v2024_01_01.models.LegalHold or IO[bytes] :return: LegalHold or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.LegalHold + :rtype: ~azure.mgmt.storage.v2024_01_01.models.LegalHold :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -755,7 +755,7 @@ async def set_legal_hold( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.LegalHold] = kwargs.pop("cls", None) @@ -826,12 +826,12 @@ async def clear_legal_hold( by a letter or number. Required. :type container_name: str :param legal_hold: The LegalHold property that will be clear from a blob container. Required. - :type legal_hold: ~azure.mgmt.storage.v2023_05_01.models.LegalHold + :type legal_hold: ~azure.mgmt.storage.v2024_01_01.models.LegalHold :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: LegalHold or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.LegalHold + :rtype: ~azure.mgmt.storage.v2024_01_01.models.LegalHold :raises ~azure.core.exceptions.HttpResponseError: """ @@ -867,7 +867,7 @@ async def clear_legal_hold( Default value is "application/json". :paramtype content_type: str :return: LegalHold or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.LegalHold + :rtype: ~azure.mgmt.storage.v2024_01_01.models.LegalHold :raises ~azure.core.exceptions.HttpResponseError: """ @@ -897,9 +897,9 @@ async def clear_legal_hold( :type container_name: str :param legal_hold: The LegalHold property that will be clear from a blob container. Is either a LegalHold type or a IO[bytes] type. Required. - :type legal_hold: ~azure.mgmt.storage.v2023_05_01.models.LegalHold or IO[bytes] + :type legal_hold: ~azure.mgmt.storage.v2024_01_01.models.LegalHold or IO[bytes] :return: LegalHold or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.LegalHold + :rtype: ~azure.mgmt.storage.v2024_01_01.models.LegalHold :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -913,7 +913,7 @@ async def clear_legal_hold( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.LegalHold] = kwargs.pop("cls", None) @@ -990,12 +990,12 @@ async def create_or_update_immutability_policy( :type if_match: str :param parameters: The ImmutabilityPolicy Properties that will be created or updated to a blob container. Default value is None. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.ImmutabilityPolicy + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.ImmutabilityPolicy :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: ImmutabilityPolicy or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ImmutabilityPolicy + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ImmutabilityPolicy :raises ~azure.core.exceptions.HttpResponseError: """ @@ -1037,7 +1037,7 @@ async def create_or_update_immutability_policy( Default value is "application/json". :paramtype content_type: str :return: ImmutabilityPolicy or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ImmutabilityPolicy + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ImmutabilityPolicy :raises ~azure.core.exceptions.HttpResponseError: """ @@ -1072,9 +1072,9 @@ async def create_or_update_immutability_policy( :type if_match: str :param parameters: The ImmutabilityPolicy Properties that will be created or updated to a blob container. Is either a ImmutabilityPolicy type or a IO[bytes] type. Default value is None. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.ImmutabilityPolicy or IO[bytes] + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.ImmutabilityPolicy or IO[bytes] :return: ImmutabilityPolicy or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ImmutabilityPolicy + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ImmutabilityPolicy :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -1089,7 +1089,7 @@ async def create_or_update_immutability_policy( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) immutability_policy_name: Literal["default"] = kwargs.pop("immutability_policy_name", "default") - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ImmutabilityPolicy] = kwargs.pop("cls", None) @@ -1170,7 +1170,7 @@ async def get_immutability_policy( trailing double quotes as returned by the service. Default value is None. :type if_match: str :return: ImmutabilityPolicy or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ImmutabilityPolicy + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ImmutabilityPolicy :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -1185,7 +1185,7 @@ async def get_immutability_policy( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) immutability_policy_name: Literal["default"] = kwargs.pop("immutability_policy_name", "default") - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.ImmutabilityPolicy] = kwargs.pop("cls", None) _request = build_get_immutability_policy_request( @@ -1248,7 +1248,7 @@ async def delete_immutability_policy( trailing double quotes as returned by the service. Required. :type if_match: str :return: ImmutabilityPolicy or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ImmutabilityPolicy + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ImmutabilityPolicy :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -1263,7 +1263,7 @@ async def delete_immutability_policy( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) immutability_policy_name: Literal["default"] = kwargs.pop("immutability_policy_name", "default") - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.ImmutabilityPolicy] = kwargs.pop("cls", None) _request = build_delete_immutability_policy_request( @@ -1324,7 +1324,7 @@ async def lock_immutability_policy( trailing double quotes as returned by the service. Required. :type if_match: str :return: ImmutabilityPolicy or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ImmutabilityPolicy + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ImmutabilityPolicy :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -1338,7 +1338,7 @@ async def lock_immutability_policy( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.ImmutabilityPolicy] = kwargs.pop("cls", None) _request = build_lock_immutability_policy_request( @@ -1408,12 +1408,12 @@ async def extend_immutability_policy( :type if_match: str :param parameters: The ImmutabilityPolicy Properties that will be extended for a blob container. Default value is None. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.ImmutabilityPolicy + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.ImmutabilityPolicy :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: ImmutabilityPolicy or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ImmutabilityPolicy + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ImmutabilityPolicy :raises ~azure.core.exceptions.HttpResponseError: """ @@ -1456,7 +1456,7 @@ async def extend_immutability_policy( Default value is "application/json". :paramtype content_type: str :return: ImmutabilityPolicy or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ImmutabilityPolicy + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ImmutabilityPolicy :raises ~azure.core.exceptions.HttpResponseError: """ @@ -1492,9 +1492,9 @@ async def extend_immutability_policy( :type if_match: str :param parameters: The ImmutabilityPolicy Properties that will be extended for a blob container. Is either a ImmutabilityPolicy type or a IO[bytes] type. Default value is None. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.ImmutabilityPolicy or IO[bytes] + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.ImmutabilityPolicy or IO[bytes] :return: ImmutabilityPolicy or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ImmutabilityPolicy + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ImmutabilityPolicy :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -1508,7 +1508,7 @@ async def extend_immutability_policy( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ImmutabilityPolicy] = kwargs.pop("cls", None) @@ -1586,12 +1586,12 @@ async def lease( by a letter or number. Required. :type container_name: str :param parameters: Lease Container request body. Default value is None. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.LeaseContainerRequest + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.LeaseContainerRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: LeaseContainerResponse or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.LeaseContainerResponse + :rtype: ~azure.mgmt.storage.v2024_01_01.models.LeaseContainerResponse :raises ~azure.core.exceptions.HttpResponseError: """ @@ -1627,7 +1627,7 @@ async def lease( Default value is "application/json". :paramtype content_type: str :return: LeaseContainerResponse or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.LeaseContainerResponse + :rtype: ~azure.mgmt.storage.v2024_01_01.models.LeaseContainerResponse :raises ~azure.core.exceptions.HttpResponseError: """ @@ -1657,9 +1657,9 @@ async def lease( :type container_name: str :param parameters: Lease Container request body. Is either a LeaseContainerRequest type or a IO[bytes] type. Default value is None. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.LeaseContainerRequest or IO[bytes] + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.LeaseContainerRequest or IO[bytes] :return: LeaseContainerResponse or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.LeaseContainerResponse + :rtype: ~azure.mgmt.storage.v2024_01_01.models.LeaseContainerResponse :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -1673,7 +1673,7 @@ async def lease( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.LeaseContainerResponse] = kwargs.pop("cls", None) @@ -1734,7 +1734,7 @@ async def _object_level_worm_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_object_level_worm_request( @@ -1799,7 +1799,7 @@ async def begin_object_level_worm( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_blob_inventory_policies_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_blob_inventory_policies_operations.py similarity index 94% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_blob_inventory_policies_operations.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_blob_inventory_policies_operations.py index 16c02ffba5a3..56543d68deb1 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_blob_inventory_policies_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_blob_inventory_policies_operations.py @@ -48,7 +48,7 @@ class BlobInventoryPoliciesOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.aio.StorageManagementClient`'s + :class:`~azure.mgmt.storage.v2024_01_01.aio.StorageManagementClient`'s :attr:`blob_inventory_policies` attribute. """ @@ -82,9 +82,9 @@ async def get( :param blob_inventory_policy_name: The name of the storage account blob inventory policy. It should always be 'default'. "default" Required. :type blob_inventory_policy_name: str or - ~azure.mgmt.storage.v2023_05_01.models.BlobInventoryPolicyName + ~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicyName :return: BlobInventoryPolicy or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.BlobInventoryPolicy + :rtype: ~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicy :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -98,7 +98,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.BlobInventoryPolicy] = kwargs.pop("cls", None) _request = build_get_request( @@ -153,14 +153,14 @@ async def create_or_update( :param blob_inventory_policy_name: The name of the storage account blob inventory policy. It should always be 'default'. "default" Required. :type blob_inventory_policy_name: str or - ~azure.mgmt.storage.v2023_05_01.models.BlobInventoryPolicyName + ~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicyName :param properties: The blob inventory policy set to a storage account. Required. - :type properties: ~azure.mgmt.storage.v2023_05_01.models.BlobInventoryPolicy + :type properties: ~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicy :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: BlobInventoryPolicy or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.BlobInventoryPolicy + :rtype: ~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicy :raises ~azure.core.exceptions.HttpResponseError: """ @@ -187,14 +187,14 @@ async def create_or_update( :param blob_inventory_policy_name: The name of the storage account blob inventory policy. It should always be 'default'. "default" Required. :type blob_inventory_policy_name: str or - ~azure.mgmt.storage.v2023_05_01.models.BlobInventoryPolicyName + ~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicyName :param properties: The blob inventory policy set to a storage account. Required. :type properties: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: BlobInventoryPolicy or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.BlobInventoryPolicy + :rtype: ~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicy :raises ~azure.core.exceptions.HttpResponseError: """ @@ -219,12 +219,12 @@ async def create_or_update( :param blob_inventory_policy_name: The name of the storage account blob inventory policy. It should always be 'default'. "default" Required. :type blob_inventory_policy_name: str or - ~azure.mgmt.storage.v2023_05_01.models.BlobInventoryPolicyName + ~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicyName :param properties: The blob inventory policy set to a storage account. Is either a BlobInventoryPolicy type or a IO[bytes] type. Required. - :type properties: ~azure.mgmt.storage.v2023_05_01.models.BlobInventoryPolicy or IO[bytes] + :type properties: ~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicy or IO[bytes] :return: BlobInventoryPolicy or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.BlobInventoryPolicy + :rtype: ~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicy :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -238,7 +238,7 @@ async def create_or_update( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.BlobInventoryPolicy] = kwargs.pop("cls", None) @@ -302,7 +302,7 @@ async def delete( :param blob_inventory_policy_name: The name of the storage account blob inventory policy. It should always be 'default'. "default" Required. :type blob_inventory_policy_name: str or - ~azure.mgmt.storage.v2023_05_01.models.BlobInventoryPolicyName + ~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicyName :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -318,7 +318,7 @@ async def delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_delete_request( @@ -361,13 +361,13 @@ def list( :type account_name: str :return: An iterator like instance of either BlobInventoryPolicy or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2023_05_01.models.BlobInventoryPolicy] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicy] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.ListBlobInventoryPolicy] = kwargs.pop("cls", None) error_map: MutableMapping = { diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_blob_services_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_blob_services_operations.py similarity index 96% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_blob_services_operations.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_blob_services_operations.py index 66c38946e41b..d5d9b9a6c7a7 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_blob_services_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_blob_services_operations.py @@ -47,7 +47,7 @@ class BlobServicesOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.aio.StorageManagementClient`'s + :class:`~azure.mgmt.storage.v2024_01_01.aio.StorageManagementClient`'s :attr:`blob_services` attribute. """ @@ -77,13 +77,13 @@ def list( :return: An iterator like instance of either BlobServiceProperties or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2023_05_01.models.BlobServiceProperties] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2024_01_01.models.BlobServiceProperties] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.BlobServiceItems] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -170,12 +170,12 @@ async def set_service_properties( :type account_name: str :param parameters: The properties of a storage account’s Blob service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.BlobServiceProperties + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.BlobServiceProperties :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: BlobServiceProperties or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.BlobServiceProperties + :rtype: ~azure.mgmt.storage.v2024_01_01.models.BlobServiceProperties :raises ~azure.core.exceptions.HttpResponseError: """ @@ -206,7 +206,7 @@ async def set_service_properties( Default value is "application/json". :paramtype content_type: str :return: BlobServiceProperties or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.BlobServiceProperties + :rtype: ~azure.mgmt.storage.v2024_01_01.models.BlobServiceProperties :raises ~azure.core.exceptions.HttpResponseError: """ @@ -231,9 +231,9 @@ async def set_service_properties( :param parameters: The properties of a storage account’s Blob service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. Is either a BlobServiceProperties type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.BlobServiceProperties or IO[bytes] + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.BlobServiceProperties or IO[bytes] :return: BlobServiceProperties or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.BlobServiceProperties + :rtype: ~azure.mgmt.storage.v2024_01_01.models.BlobServiceProperties :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -247,7 +247,7 @@ async def set_service_properties( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) blob_services_name: Literal["default"] = kwargs.pop("blob_services_name", "default") content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.BlobServiceProperties] = kwargs.pop("cls", None) @@ -307,7 +307,7 @@ async def get_service_properties( lower-case letters only. Required. :type account_name: str :return: BlobServiceProperties or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.BlobServiceProperties + :rtype: ~azure.mgmt.storage.v2024_01_01.models.BlobServiceProperties :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -321,7 +321,7 @@ async def get_service_properties( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) blob_services_name: Literal["default"] = kwargs.pop("blob_services_name", "default") cls: ClsType[_models.BlobServiceProperties] = kwargs.pop("cls", None) diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_deleted_accounts_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_deleted_accounts_operations.py similarity index 96% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_deleted_accounts_operations.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_deleted_accounts_operations.py index c389b47e2663..6c947379cb5e 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_deleted_accounts_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_deleted_accounts_operations.py @@ -42,7 +42,7 @@ class DeletedAccountsOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.aio.StorageManagementClient`'s + :class:`~azure.mgmt.storage.v2024_01_01.aio.StorageManagementClient`'s :attr:`deleted_accounts` attribute. """ @@ -62,13 +62,13 @@ def list(self, **kwargs: Any) -> AsyncIterable["_models.DeletedAccount"]: :return: An iterator like instance of either DeletedAccount or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2023_05_01.models.DeletedAccount] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2024_01_01.models.DeletedAccount] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.DeletedAccountListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -141,7 +141,7 @@ async def get(self, deleted_account_name: str, location: str, **kwargs: Any) -> :param location: The location of the deleted storage account. Required. :type location: str :return: DeletedAccount or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.DeletedAccount + :rtype: ~azure.mgmt.storage.v2024_01_01.models.DeletedAccount :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -155,7 +155,7 @@ async def get(self, deleted_account_name: str, location: str, **kwargs: Any) -> _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.DeletedAccount] = kwargs.pop("cls", None) _request = build_get_request( diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_encryption_scopes_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_encryption_scopes_operations.py similarity index 95% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_encryption_scopes_operations.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_encryption_scopes_operations.py index fc5d1d347bc1..448f45a78459 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_encryption_scopes_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_encryption_scopes_operations.py @@ -48,7 +48,7 @@ class EncryptionScopesOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.aio.StorageManagementClient`'s + :class:`~azure.mgmt.storage.v2024_01_01.aio.StorageManagementClient`'s :attr:`encryption_scopes` attribute. """ @@ -91,12 +91,12 @@ async def put( :type encryption_scope_name: str :param encryption_scope: Encryption scope properties to be used for the create or update. Required. - :type encryption_scope: ~azure.mgmt.storage.v2023_05_01.models.EncryptionScope + :type encryption_scope: ~azure.mgmt.storage.v2024_01_01.models.EncryptionScope :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: EncryptionScope or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.EncryptionScope + :rtype: ~azure.mgmt.storage.v2024_01_01.models.EncryptionScope :raises ~azure.core.exceptions.HttpResponseError: """ @@ -134,7 +134,7 @@ async def put( Default value is "application/json". :paramtype content_type: str :return: EncryptionScope or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.EncryptionScope + :rtype: ~azure.mgmt.storage.v2024_01_01.models.EncryptionScope :raises ~azure.core.exceptions.HttpResponseError: """ @@ -165,9 +165,9 @@ async def put( :type encryption_scope_name: str :param encryption_scope: Encryption scope properties to be used for the create or update. Is either a EncryptionScope type or a IO[bytes] type. Required. - :type encryption_scope: ~azure.mgmt.storage.v2023_05_01.models.EncryptionScope or IO[bytes] + :type encryption_scope: ~azure.mgmt.storage.v2024_01_01.models.EncryptionScope or IO[bytes] :return: EncryptionScope or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.EncryptionScope + :rtype: ~azure.mgmt.storage.v2024_01_01.models.EncryptionScope :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -181,7 +181,7 @@ async def put( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.EncryptionScope] = kwargs.pop("cls", None) @@ -253,12 +253,12 @@ async def patch( followed by a letter or number. Required. :type encryption_scope_name: str :param encryption_scope: Encryption scope properties to be used for the update. Required. - :type encryption_scope: ~azure.mgmt.storage.v2023_05_01.models.EncryptionScope + :type encryption_scope: ~azure.mgmt.storage.v2024_01_01.models.EncryptionScope :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: EncryptionScope or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.EncryptionScope + :rtype: ~azure.mgmt.storage.v2024_01_01.models.EncryptionScope :raises ~azure.core.exceptions.HttpResponseError: """ @@ -294,7 +294,7 @@ async def patch( Default value is "application/json". :paramtype content_type: str :return: EncryptionScope or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.EncryptionScope + :rtype: ~azure.mgmt.storage.v2024_01_01.models.EncryptionScope :raises ~azure.core.exceptions.HttpResponseError: """ @@ -324,9 +324,9 @@ async def patch( :type encryption_scope_name: str :param encryption_scope: Encryption scope properties to be used for the update. Is either a EncryptionScope type or a IO[bytes] type. Required. - :type encryption_scope: ~azure.mgmt.storage.v2023_05_01.models.EncryptionScope or IO[bytes] + :type encryption_scope: ~azure.mgmt.storage.v2024_01_01.models.EncryptionScope or IO[bytes] :return: EncryptionScope or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.EncryptionScope + :rtype: ~azure.mgmt.storage.v2024_01_01.models.EncryptionScope :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -340,7 +340,7 @@ async def patch( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.EncryptionScope] = kwargs.pop("cls", None) @@ -404,7 +404,7 @@ async def get( followed by a letter or number. Required. :type encryption_scope_name: str :return: EncryptionScope or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.EncryptionScope + :rtype: ~azure.mgmt.storage.v2024_01_01.models.EncryptionScope :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -418,7 +418,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.EncryptionScope] = kwargs.pop("cls", None) _request = build_get_request( @@ -478,16 +478,16 @@ def list( :type filter: str :param include: Optional, when specified, will list encryption scopes with the specific state. Defaults to All. Known values are: "All", "Enabled", and "Disabled". Default value is None. - :type include: str or ~azure.mgmt.storage.v2023_05_01.models.ListEncryptionScopesInclude + :type include: str or ~azure.mgmt.storage.v2024_01_01.models.ListEncryptionScopesInclude :return: An iterator like instance of either EncryptionScope or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2023_05_01.models.EncryptionScope] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2024_01_01.models.EncryptionScope] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.EncryptionScopeListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_file_services_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_file_services_operations.py similarity index 62% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_file_services_operations.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_file_services_operations.py index beec036e05e6..3f4e5136e370 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_file_services_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_file_services_operations.py @@ -7,8 +7,10 @@ # -------------------------------------------------------------------------- from io import IOBase import sys -from typing import Any, Callable, Dict, IO, Literal, Optional, TypeVar, Union, overload +from typing import Any, AsyncIterable, Callable, Dict, IO, Literal, Optional, TypeVar, Union, overload +import urllib.parse +from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ( ClientAuthenticationError, HttpResponseError, @@ -19,6 +21,7 @@ ) from azure.core.pipeline import PipelineResponse from azure.core.rest import AsyncHttpResponse, HttpRequest +from azure.core.tracing.decorator import distributed_trace from azure.core.tracing.decorator_async import distributed_trace_async from azure.core.utils import case_insensitive_dict from azure.mgmt.core.exceptions import ARMErrorFormat @@ -26,7 +29,9 @@ from ... import models as _models from ...operations._file_services_operations import ( build_get_service_properties_request, + build_get_service_usage_request, build_list_request, + build_list_service_usages_request, build_set_service_properties_request, ) @@ -44,7 +49,7 @@ class FileServicesOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.aio.StorageManagementClient`'s + :class:`~azure.mgmt.storage.v2024_01_01.aio.StorageManagementClient`'s :attr:`file_services` attribute. """ @@ -70,7 +75,7 @@ async def list(self, resource_group_name: str, account_name: str, **kwargs: Any) lower-case letters only. Required. :type account_name: str :return: FileServiceItems or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.FileServiceItems + :rtype: ~azure.mgmt.storage.v2024_01_01.models.FileServiceItems :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -84,7 +89,7 @@ async def list(self, resource_group_name: str, account_name: str, **kwargs: Any) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.FileServiceItems] = kwargs.pop("cls", None) _request = build_list_request( @@ -137,12 +142,12 @@ async def set_service_properties( :type account_name: str :param parameters: The properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing) rules. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.FileServiceProperties + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.FileServiceProperties :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: FileServiceProperties or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.FileServiceProperties + :rtype: ~azure.mgmt.storage.v2024_01_01.models.FileServiceProperties :raises ~azure.core.exceptions.HttpResponseError: """ @@ -173,7 +178,7 @@ async def set_service_properties( Default value is "application/json". :paramtype content_type: str :return: FileServiceProperties or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.FileServiceProperties + :rtype: ~azure.mgmt.storage.v2024_01_01.models.FileServiceProperties :raises ~azure.core.exceptions.HttpResponseError: """ @@ -198,9 +203,9 @@ async def set_service_properties( :param parameters: The properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing) rules. Is either a FileServiceProperties type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.FileServiceProperties or IO[bytes] + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.FileServiceProperties or IO[bytes] :return: FileServiceProperties or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.FileServiceProperties + :rtype: ~azure.mgmt.storage.v2024_01_01.models.FileServiceProperties :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -214,7 +219,7 @@ async def set_service_properties( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) file_services_name: Literal["default"] = kwargs.pop("file_services_name", "default") content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.FileServiceProperties] = kwargs.pop("cls", None) @@ -274,7 +279,7 @@ async def get_service_properties( lower-case letters only. Required. :type account_name: str :return: FileServiceProperties or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.FileServiceProperties + :rtype: ~azure.mgmt.storage.v2024_01_01.models.FileServiceProperties :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -288,7 +293,7 @@ async def get_service_properties( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) file_services_name: Literal["default"] = kwargs.pop("file_services_name", "default") cls: ClsType[_models.FileServiceProperties] = kwargs.pop("cls", None) @@ -320,3 +325,159 @@ async def get_service_properties( return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized # type: ignore + + @distributed_trace + def list_service_usages( + self, resource_group_name: str, account_name: str, maxpagesize: Optional[int] = None, **kwargs: Any + ) -> AsyncIterable["_models.FileServiceUsage"]: + """Gets the usages of file service in storage account. + + :param resource_group_name: The name of the resource group within the user's subscription. The + name is case insensitive. Required. + :type resource_group_name: str + :param account_name: The name of the storage account within the specified resource group. + Storage account names must be between 3 and 24 characters in length and use numbers and + lower-case letters only. Required. + :type account_name: str + :param maxpagesize: Optional, specifies the maximum number of file service usages to be + included in the list response. Default value is None. + :type maxpagesize: int + :return: An iterator like instance of either FileServiceUsage or the result of cls(response) + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2024_01_01.models.FileServiceUsage] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) + file_services_name: Literal["default"] = kwargs.pop("file_services_name", "default") + cls: ClsType[_models.FileServiceUsages] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_list_service_usages_request( + resource_group_name=resource_group_name, + account_name=account_name, + subscription_id=self._config.subscription_id, + maxpagesize=maxpagesize, + api_version=api_version, + file_services_name=file_services_name, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request + + async def extract_data(pipeline_response): + deserialized = self._deserialize("FileServiceUsages", pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace_async + async def get_service_usage( + self, resource_group_name: str, account_name: str, **kwargs: Any + ) -> _models.FileServiceUsage: + """Gets the usage of file service in storage account including account limits, file share limits + and constants used in recommendations and bursting formula. + + :param resource_group_name: The name of the resource group within the user's subscription. The + name is case insensitive. Required. + :type resource_group_name: str + :param account_name: The name of the storage account within the specified resource group. + Storage account names must be between 3 and 24 characters in length and use numbers and + lower-case letters only. Required. + :type account_name: str + :return: FileServiceUsage or the result of cls(response) + :rtype: ~azure.mgmt.storage.v2024_01_01.models.FileServiceUsage + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) + file_services_name: Literal["default"] = kwargs.pop("file_services_name", "default") + file_service_usages_name: Literal["default"] = kwargs.pop("file_service_usages_name", "default") + cls: ClsType[_models.FileServiceUsage] = kwargs.pop("cls", None) + + _request = build_get_service_usage_request( + resource_group_name=resource_group_name, + account_name=account_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + file_services_name=file_services_name, + file_service_usages_name=file_service_usages_name, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = self._deserialize("FileServiceUsage", pipeline_response.http_response) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_file_shares_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_file_shares_operations.py similarity index 96% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_file_shares_operations.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_file_shares_operations.py index d8c7b581baf8..9036825874f3 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_file_shares_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_file_shares_operations.py @@ -51,7 +51,7 @@ class FileSharesOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.aio.StorageManagementClient`'s + :class:`~azure.mgmt.storage.v2024_01_01.aio.StorageManagementClient`'s :attr:`file_shares` attribute. """ @@ -96,13 +96,13 @@ def list( :type expand: str :return: An iterator like instance of either FileShareItem or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2023_05_01.models.FileShareItem] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2024_01_01.models.FileShareItem] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.FileShareItems] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -199,7 +199,7 @@ async def create( or number. Required. :type share_name: str :param file_share: Properties of the file share to create. Required. - :type file_share: ~azure.mgmt.storage.v2023_05_01.models.FileShare + :type file_share: ~azure.mgmt.storage.v2024_01_01.models.FileShare :param expand: Optional, used to expand the properties within share's properties. Valid values are: snapshots. Should be passed as a string with delimiter ','. Default value is None. :type expand: str @@ -207,7 +207,7 @@ async def create( Default value is "application/json". :paramtype content_type: str :return: FileShare or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.FileShare + :rtype: ~azure.mgmt.storage.v2024_01_01.models.FileShare :raises ~azure.core.exceptions.HttpResponseError: """ @@ -248,7 +248,7 @@ async def create( Default value is "application/json". :paramtype content_type: str :return: FileShare or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.FileShare + :rtype: ~azure.mgmt.storage.v2024_01_01.models.FileShare :raises ~azure.core.exceptions.HttpResponseError: """ @@ -280,12 +280,12 @@ async def create( :type share_name: str :param file_share: Properties of the file share to create. Is either a FileShare type or a IO[bytes] type. Required. - :type file_share: ~azure.mgmt.storage.v2023_05_01.models.FileShare or IO[bytes] + :type file_share: ~azure.mgmt.storage.v2024_01_01.models.FileShare or IO[bytes] :param expand: Optional, used to expand the properties within share's properties. Valid values are: snapshots. Should be passed as a string with delimiter ','. Default value is None. :type expand: str :return: FileShare or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.FileShare + :rtype: ~azure.mgmt.storage.v2024_01_01.models.FileShare :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -299,7 +299,7 @@ async def create( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.FileShare] = kwargs.pop("cls", None) @@ -371,12 +371,12 @@ async def update( or number. Required. :type share_name: str :param file_share: Properties to update for the file share. Required. - :type file_share: ~azure.mgmt.storage.v2023_05_01.models.FileShare + :type file_share: ~azure.mgmt.storage.v2024_01_01.models.FileShare :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: FileShare or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.FileShare + :rtype: ~azure.mgmt.storage.v2024_01_01.models.FileShare :raises ~azure.core.exceptions.HttpResponseError: """ @@ -412,7 +412,7 @@ async def update( Default value is "application/json". :paramtype content_type: str :return: FileShare or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.FileShare + :rtype: ~azure.mgmt.storage.v2024_01_01.models.FileShare :raises ~azure.core.exceptions.HttpResponseError: """ @@ -442,9 +442,9 @@ async def update( :type share_name: str :param file_share: Properties to update for the file share. Is either a FileShare type or a IO[bytes] type. Required. - :type file_share: ~azure.mgmt.storage.v2023_05_01.models.FileShare or IO[bytes] + :type file_share: ~azure.mgmt.storage.v2024_01_01.models.FileShare or IO[bytes] :return: FileShare or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.FileShare + :rtype: ~azure.mgmt.storage.v2024_01_01.models.FileShare :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -458,7 +458,7 @@ async def update( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.FileShare] = kwargs.pop("cls", None) @@ -533,7 +533,7 @@ async def get( None. :type x_ms_snapshot: str :return: FileShare or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.FileShare + :rtype: ~azure.mgmt.storage.v2024_01_01.models.FileShare :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -547,7 +547,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.FileShare] = kwargs.pop("cls", None) _request = build_get_request( @@ -630,7 +630,7 @@ async def delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_delete_request( @@ -686,7 +686,7 @@ async def restore( or number. Required. :type share_name: str :param deleted_share: Required. - :type deleted_share: ~azure.mgmt.storage.v2023_05_01.models.DeletedShare + :type deleted_share: ~azure.mgmt.storage.v2024_01_01.models.DeletedShare :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -754,7 +754,7 @@ async def restore( or number. Required. :type share_name: str :param deleted_share: Is either a DeletedShare type or a IO[bytes] type. Required. - :type deleted_share: ~azure.mgmt.storage.v2023_05_01.models.DeletedShare or IO[bytes] + :type deleted_share: ~azure.mgmt.storage.v2024_01_01.models.DeletedShare or IO[bytes] :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -770,7 +770,7 @@ async def restore( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) @@ -841,12 +841,12 @@ async def lease( None. :type x_ms_snapshot: str :param parameters: Lease Share request body. Default value is None. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.LeaseShareRequest + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.LeaseShareRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: LeaseShareResponse or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.LeaseShareResponse + :rtype: ~azure.mgmt.storage.v2024_01_01.models.LeaseShareResponse :raises ~azure.core.exceptions.HttpResponseError: """ @@ -886,7 +886,7 @@ async def lease( Default value is "application/json". :paramtype content_type: str :return: LeaseShareResponse or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.LeaseShareResponse + :rtype: ~azure.mgmt.storage.v2024_01_01.models.LeaseShareResponse :raises ~azure.core.exceptions.HttpResponseError: """ @@ -920,9 +920,9 @@ async def lease( :type x_ms_snapshot: str :param parameters: Lease Share request body. Is either a LeaseShareRequest type or a IO[bytes] type. Default value is None. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.LeaseShareRequest or IO[bytes] + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.LeaseShareRequest or IO[bytes] :return: LeaseShareResponse or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.LeaseShareResponse + :rtype: ~azure.mgmt.storage.v2024_01_01.models.LeaseShareResponse :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -936,7 +936,7 @@ async def lease( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.LeaseShareResponse] = kwargs.pop("cls", None) diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_local_users_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_local_users_operations.py similarity index 96% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_local_users_operations.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_local_users_operations.py index 73e1885ff695..82d364dfd4b5 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_local_users_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_local_users_operations.py @@ -50,7 +50,7 @@ class LocalUsersOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.aio.StorageManagementClient`'s + :class:`~azure.mgmt.storage.v2024_01_01.aio.StorageManagementClient`'s :attr:`local_users` attribute. """ @@ -91,16 +91,16 @@ def list( :type filter: str :param include: Optional, when specified, will list local users enabled for the specific protocol. Lists all users by default. "nfsv3" Default value is None. - :type include: str or ~azure.mgmt.storage.v2023_05_01.models.ListLocalUserIncludeParam + :type include: str or ~azure.mgmt.storage.v2024_01_01.models.ListLocalUserIncludeParam :return: An iterator like instance of either LocalUser or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2023_05_01.models.LocalUser] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2024_01_01.models.LocalUser] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.LocalUsers] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -184,7 +184,7 @@ async def get(self, resource_group_name: str, account_name: str, username: str, numbers only. It must be unique only within the storage account. Required. :type username: str :return: LocalUser or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.LocalUser + :rtype: ~azure.mgmt.storage.v2024_01_01.models.LocalUser :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -198,7 +198,7 @@ async def get(self, resource_group_name: str, account_name: str, username: str, _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.LocalUser] = kwargs.pop("cls", None) _request = build_get_request( @@ -256,12 +256,12 @@ async def create_or_update( numbers only. It must be unique only within the storage account. Required. :type username: str :param properties: The local user associated with a storage account. Required. - :type properties: ~azure.mgmt.storage.v2023_05_01.models.LocalUser + :type properties: ~azure.mgmt.storage.v2024_01_01.models.LocalUser :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: LocalUser or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.LocalUser + :rtype: ~azure.mgmt.storage.v2024_01_01.models.LocalUser :raises ~azure.core.exceptions.HttpResponseError: """ @@ -295,7 +295,7 @@ async def create_or_update( Default value is "application/json". :paramtype content_type: str :return: LocalUser or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.LocalUser + :rtype: ~azure.mgmt.storage.v2024_01_01.models.LocalUser :raises ~azure.core.exceptions.HttpResponseError: """ @@ -323,9 +323,9 @@ async def create_or_update( :type username: str :param properties: The local user associated with a storage account. Is either a LocalUser type or a IO[bytes] type. Required. - :type properties: ~azure.mgmt.storage.v2023_05_01.models.LocalUser or IO[bytes] + :type properties: ~azure.mgmt.storage.v2024_01_01.models.LocalUser or IO[bytes] :return: LocalUser or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.LocalUser + :rtype: ~azure.mgmt.storage.v2024_01_01.models.LocalUser :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -339,7 +339,7 @@ async def create_or_update( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.LocalUser] = kwargs.pop("cls", None) @@ -413,7 +413,7 @@ async def delete(self, resource_group_name: str, account_name: str, username: st _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_delete_request( @@ -459,7 +459,7 @@ async def list_keys( numbers only. It must be unique only within the storage account. Required. :type username: str :return: LocalUserKeys or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.LocalUserKeys + :rtype: ~azure.mgmt.storage.v2024_01_01.models.LocalUserKeys :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -473,7 +473,7 @@ async def list_keys( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.LocalUserKeys] = kwargs.pop("cls", None) _request = build_list_keys_request( @@ -523,7 +523,7 @@ async def regenerate_password( numbers only. It must be unique only within the storage account. Required. :type username: str :return: LocalUserRegeneratePasswordResult or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.LocalUserRegeneratePasswordResult + :rtype: ~azure.mgmt.storage.v2024_01_01.models.LocalUserRegeneratePasswordResult :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -537,7 +537,7 @@ async def regenerate_password( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.LocalUserRegeneratePasswordResult] = kwargs.pop("cls", None) _request = build_regenerate_password_request( diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_management_policies_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_management_policies_operations.py similarity index 93% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_management_policies_operations.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_management_policies_operations.py index 10f82ca8c8a8..cdd4f6e61e7a 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_management_policies_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_management_policies_operations.py @@ -44,7 +44,7 @@ class ManagementPoliciesOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.aio.StorageManagementClient`'s + :class:`~azure.mgmt.storage.v2024_01_01.aio.StorageManagementClient`'s :attr:`management_policies` attribute. """ @@ -78,9 +78,9 @@ async def get( :param management_policy_name: The name of the Storage Account Management Policy. It should always be 'default'. "default" Required. :type management_policy_name: str or - ~azure.mgmt.storage.v2023_05_01.models.ManagementPolicyName + ~azure.mgmt.storage.v2024_01_01.models.ManagementPolicyName :return: ManagementPolicy or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ManagementPolicy + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ManagementPolicy :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -94,7 +94,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.ManagementPolicy] = kwargs.pop("cls", None) _request = build_get_request( @@ -149,14 +149,14 @@ async def create_or_update( :param management_policy_name: The name of the Storage Account Management Policy. It should always be 'default'. "default" Required. :type management_policy_name: str or - ~azure.mgmt.storage.v2023_05_01.models.ManagementPolicyName + ~azure.mgmt.storage.v2024_01_01.models.ManagementPolicyName :param properties: The ManagementPolicy set to a storage account. Required. - :type properties: ~azure.mgmt.storage.v2023_05_01.models.ManagementPolicy + :type properties: ~azure.mgmt.storage.v2024_01_01.models.ManagementPolicy :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: ManagementPolicy or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ManagementPolicy + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ManagementPolicy :raises ~azure.core.exceptions.HttpResponseError: """ @@ -183,14 +183,14 @@ async def create_or_update( :param management_policy_name: The name of the Storage Account Management Policy. It should always be 'default'. "default" Required. :type management_policy_name: str or - ~azure.mgmt.storage.v2023_05_01.models.ManagementPolicyName + ~azure.mgmt.storage.v2024_01_01.models.ManagementPolicyName :param properties: The ManagementPolicy set to a storage account. Required. :type properties: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: ManagementPolicy or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ManagementPolicy + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ManagementPolicy :raises ~azure.core.exceptions.HttpResponseError: """ @@ -215,12 +215,12 @@ async def create_or_update( :param management_policy_name: The name of the Storage Account Management Policy. It should always be 'default'. "default" Required. :type management_policy_name: str or - ~azure.mgmt.storage.v2023_05_01.models.ManagementPolicyName + ~azure.mgmt.storage.v2024_01_01.models.ManagementPolicyName :param properties: The ManagementPolicy set to a storage account. Is either a ManagementPolicy type or a IO[bytes] type. Required. - :type properties: ~azure.mgmt.storage.v2023_05_01.models.ManagementPolicy or IO[bytes] + :type properties: ~azure.mgmt.storage.v2024_01_01.models.ManagementPolicy or IO[bytes] :return: ManagementPolicy or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ManagementPolicy + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ManagementPolicy :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -234,7 +234,7 @@ async def create_or_update( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ManagementPolicy] = kwargs.pop("cls", None) @@ -298,7 +298,7 @@ async def delete( :param management_policy_name: The name of the Storage Account Management Policy. It should always be 'default'. "default" Required. :type management_policy_name: str or - ~azure.mgmt.storage.v2023_05_01.models.ManagementPolicyName + ~azure.mgmt.storage.v2024_01_01.models.ManagementPolicyName :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -314,7 +314,7 @@ async def delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_delete_request( diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_network_security_perimeter_configurations_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_network_security_perimeter_configurations_operations.py similarity index 97% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_network_security_perimeter_configurations_operations.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_network_security_perimeter_configurations_operations.py index 88e591f6abaa..de73ff3edf45 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_network_security_perimeter_configurations_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_network_security_perimeter_configurations_operations.py @@ -50,7 +50,7 @@ class NetworkSecurityPerimeterConfigurationsOperations: # pylint: disable=name- **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.aio.StorageManagementClient`'s + :class:`~azure.mgmt.storage.v2024_01_01.aio.StorageManagementClient`'s :attr:`network_security_perimeter_configurations` attribute. """ @@ -81,13 +81,13 @@ def list( :return: An iterator like instance of either NetworkSecurityPerimeterConfiguration or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2023_05_01.models.NetworkSecurityPerimeterConfiguration] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2024_01_01.models.NetworkSecurityPerimeterConfiguration] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.NetworkSecurityPerimeterConfigurationList] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -174,7 +174,7 @@ async def get( configuration. Required. :type network_security_perimeter_configuration_name: str :return: NetworkSecurityPerimeterConfiguration or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.NetworkSecurityPerimeterConfiguration + :rtype: ~azure.mgmt.storage.v2024_01_01.models.NetworkSecurityPerimeterConfiguration :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -188,7 +188,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.NetworkSecurityPerimeterConfiguration] = kwargs.pop("cls", None) _request = build_get_request( @@ -239,7 +239,7 @@ async def _reconcile_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_reconcile_request( @@ -307,7 +307,7 @@ async def begin_reconcile( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_object_replication_policies_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_object_replication_policies_operations.py similarity index 96% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_object_replication_policies_operations.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_object_replication_policies_operations.py index 6bfcebc13883..8bf620401bdc 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_object_replication_policies_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_object_replication_policies_operations.py @@ -48,7 +48,7 @@ class ObjectReplicationPoliciesOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.aio.StorageManagementClient`'s + :class:`~azure.mgmt.storage.v2024_01_01.aio.StorageManagementClient`'s :attr:`object_replication_policies` attribute. """ @@ -78,13 +78,13 @@ def list( :return: An iterator like instance of either ObjectReplicationPolicy or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2023_05_01.models.ObjectReplicationPolicy] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2024_01_01.models.ObjectReplicationPolicy] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.ObjectReplicationPolicies] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -169,7 +169,7 @@ async def get( destination account. The policy is downloaded as a JSON file. Required. :type object_replication_policy_id: str :return: ObjectReplicationPolicy or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ObjectReplicationPolicy + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ObjectReplicationPolicy :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -183,7 +183,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.ObjectReplicationPolicy] = kwargs.pop("cls", None) _request = build_get_request( @@ -243,12 +243,12 @@ async def create_or_update( :type object_replication_policy_id: str :param properties: The object replication policy set to a storage account. A unique policy ID will be created if absent. Required. - :type properties: ~azure.mgmt.storage.v2023_05_01.models.ObjectReplicationPolicy + :type properties: ~azure.mgmt.storage.v2024_01_01.models.ObjectReplicationPolicy :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: ObjectReplicationPolicy or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ObjectReplicationPolicy + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ObjectReplicationPolicy :raises ~azure.core.exceptions.HttpResponseError: """ @@ -284,7 +284,7 @@ async def create_or_update( Default value is "application/json". :paramtype content_type: str :return: ObjectReplicationPolicy or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ObjectReplicationPolicy + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ObjectReplicationPolicy :raises ~azure.core.exceptions.HttpResponseError: """ @@ -314,9 +314,9 @@ async def create_or_update( :param properties: The object replication policy set to a storage account. A unique policy ID will be created if absent. Is either a ObjectReplicationPolicy type or a IO[bytes] type. Required. - :type properties: ~azure.mgmt.storage.v2023_05_01.models.ObjectReplicationPolicy or IO[bytes] + :type properties: ~azure.mgmt.storage.v2024_01_01.models.ObjectReplicationPolicy or IO[bytes] :return: ObjectReplicationPolicy or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ObjectReplicationPolicy + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ObjectReplicationPolicy :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -330,7 +330,7 @@ async def create_or_update( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ObjectReplicationPolicy] = kwargs.pop("cls", None) @@ -408,7 +408,7 @@ async def delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_delete_request( diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_operations.py similarity index 97% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_operations.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_operations.py index 400da45c98ca..85b9c5531bbe 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_operations.py @@ -41,7 +41,7 @@ class Operations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.aio.StorageManagementClient`'s + :class:`~azure.mgmt.storage.v2024_01_01.aio.StorageManagementClient`'s :attr:`operations` attribute. """ @@ -61,13 +61,13 @@ def list(self, **kwargs: Any) -> AsyncIterable["_models.Operation"]: :return: An iterator like instance of either Operation or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2023_05_01.models.Operation] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2024_01_01.models.Operation] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.OperationListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_patch.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_patch.py similarity index 100% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_patch.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_patch.py diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_private_endpoint_connections_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_private_endpoint_connections_operations.py similarity index 96% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_private_endpoint_connections_operations.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_private_endpoint_connections_operations.py index 81086b4016f2..7e302e1d396c 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_private_endpoint_connections_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_private_endpoint_connections_operations.py @@ -48,7 +48,7 @@ class PrivateEndpointConnectionsOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.aio.StorageManagementClient`'s + :class:`~azure.mgmt.storage.v2024_01_01.aio.StorageManagementClient`'s :attr:`private_endpoint_connections` attribute. """ @@ -78,13 +78,13 @@ def list( :return: An iterator like instance of either PrivateEndpointConnection or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2023_05_01.models.PrivateEndpointConnection] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2024_01_01.models.PrivateEndpointConnection] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.PrivateEndpointConnectionListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -166,7 +166,7 @@ async def get( with the Azure resource. Required. :type private_endpoint_connection_name: str :return: PrivateEndpointConnection or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.PrivateEndpointConnection + :rtype: ~azure.mgmt.storage.v2024_01_01.models.PrivateEndpointConnection :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -180,7 +180,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.PrivateEndpointConnection] = kwargs.pop("cls", None) _request = build_get_request( @@ -237,12 +237,12 @@ async def put( with the Azure resource. Required. :type private_endpoint_connection_name: str :param properties: The private endpoint connection properties. Required. - :type properties: ~azure.mgmt.storage.v2023_05_01.models.PrivateEndpointConnection + :type properties: ~azure.mgmt.storage.v2024_01_01.models.PrivateEndpointConnection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: PrivateEndpointConnection or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.PrivateEndpointConnection + :rtype: ~azure.mgmt.storage.v2024_01_01.models.PrivateEndpointConnection :raises ~azure.core.exceptions.HttpResponseError: """ @@ -275,7 +275,7 @@ async def put( Default value is "application/json". :paramtype content_type: str :return: PrivateEndpointConnection or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.PrivateEndpointConnection + :rtype: ~azure.mgmt.storage.v2024_01_01.models.PrivateEndpointConnection :raises ~azure.core.exceptions.HttpResponseError: """ @@ -302,9 +302,9 @@ async def put( :type private_endpoint_connection_name: str :param properties: The private endpoint connection properties. Is either a PrivateEndpointConnection type or a IO[bytes] type. Required. - :type properties: ~azure.mgmt.storage.v2023_05_01.models.PrivateEndpointConnection or IO[bytes] + :type properties: ~azure.mgmt.storage.v2024_01_01.models.PrivateEndpointConnection or IO[bytes] :return: PrivateEndpointConnection or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.PrivateEndpointConnection + :rtype: ~azure.mgmt.storage.v2024_01_01.models.PrivateEndpointConnection :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -318,7 +318,7 @@ async def put( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.PrivateEndpointConnection] = kwargs.pop("cls", None) @@ -394,7 +394,7 @@ async def delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_delete_request( diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_private_link_resources_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_private_link_resources_operations.py similarity index 96% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_private_link_resources_operations.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_private_link_resources_operations.py index 71e2d534c4ff..2eaa2b007aca 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_private_link_resources_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_private_link_resources_operations.py @@ -39,7 +39,7 @@ class PrivateLinkResourcesOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.aio.StorageManagementClient`'s + :class:`~azure.mgmt.storage.v2024_01_01.aio.StorageManagementClient`'s :attr:`private_link_resources` attribute. """ @@ -67,7 +67,7 @@ async def list_by_storage_account( lower-case letters only. Required. :type account_name: str :return: PrivateLinkResourceListResult or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.PrivateLinkResourceListResult + :rtype: ~azure.mgmt.storage.v2024_01_01.models.PrivateLinkResourceListResult :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -81,7 +81,7 @@ async def list_by_storage_account( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.PrivateLinkResourceListResult] = kwargs.pop("cls", None) _request = build_list_by_storage_account_request( diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_queue_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_queue_operations.py similarity index 96% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_queue_operations.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_queue_operations.py index 895458d188fa..499059b60851 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_queue_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_queue_operations.py @@ -49,7 +49,7 @@ class QueueOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.aio.StorageManagementClient`'s + :class:`~azure.mgmt.storage.v2024_01_01.aio.StorageManagementClient`'s :attr:`queue` attribute. """ @@ -89,12 +89,12 @@ async def create( dash(-) characters. Required. :type queue_name: str :param queue: Queue properties and metadata to be created with. Required. - :type queue: ~azure.mgmt.storage.v2023_05_01.models.StorageQueue + :type queue: ~azure.mgmt.storage.v2024_01_01.models.StorageQueue :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: StorageQueue or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.StorageQueue + :rtype: ~azure.mgmt.storage.v2024_01_01.models.StorageQueue :raises ~azure.core.exceptions.HttpResponseError: """ @@ -129,7 +129,7 @@ async def create( Default value is "application/json". :paramtype content_type: str :return: StorageQueue or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.StorageQueue + :rtype: ~azure.mgmt.storage.v2024_01_01.models.StorageQueue :raises ~azure.core.exceptions.HttpResponseError: """ @@ -158,9 +158,9 @@ async def create( :type queue_name: str :param queue: Queue properties and metadata to be created with. Is either a StorageQueue type or a IO[bytes] type. Required. - :type queue: ~azure.mgmt.storage.v2023_05_01.models.StorageQueue or IO[bytes] + :type queue: ~azure.mgmt.storage.v2024_01_01.models.StorageQueue or IO[bytes] :return: StorageQueue or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.StorageQueue + :rtype: ~azure.mgmt.storage.v2024_01_01.models.StorageQueue :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -174,7 +174,7 @@ async def create( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.StorageQueue] = kwargs.pop("cls", None) @@ -244,12 +244,12 @@ async def update( dash(-) characters. Required. :type queue_name: str :param queue: Queue properties and metadata to be created with. Required. - :type queue: ~azure.mgmt.storage.v2023_05_01.models.StorageQueue + :type queue: ~azure.mgmt.storage.v2024_01_01.models.StorageQueue :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: StorageQueue or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.StorageQueue + :rtype: ~azure.mgmt.storage.v2024_01_01.models.StorageQueue :raises ~azure.core.exceptions.HttpResponseError: """ @@ -284,7 +284,7 @@ async def update( Default value is "application/json". :paramtype content_type: str :return: StorageQueue or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.StorageQueue + :rtype: ~azure.mgmt.storage.v2024_01_01.models.StorageQueue :raises ~azure.core.exceptions.HttpResponseError: """ @@ -313,9 +313,9 @@ async def update( :type queue_name: str :param queue: Queue properties and metadata to be created with. Is either a StorageQueue type or a IO[bytes] type. Required. - :type queue: ~azure.mgmt.storage.v2023_05_01.models.StorageQueue or IO[bytes] + :type queue: ~azure.mgmt.storage.v2024_01_01.models.StorageQueue or IO[bytes] :return: StorageQueue or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.StorageQueue + :rtype: ~azure.mgmt.storage.v2024_01_01.models.StorageQueue :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -329,7 +329,7 @@ async def update( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.StorageQueue] = kwargs.pop("cls", None) @@ -392,7 +392,7 @@ async def get( dash(-) characters. Required. :type queue_name: str :return: StorageQueue or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.StorageQueue + :rtype: ~azure.mgmt.storage.v2024_01_01.models.StorageQueue :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -406,7 +406,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.StorageQueue] = kwargs.pop("cls", None) _request = build_get_request( @@ -469,7 +469,7 @@ async def delete(self, resource_group_name: str, account_name: str, queue_name: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_delete_request( @@ -523,13 +523,13 @@ def list( :type filter: str :return: An iterator like instance of either ListQueue or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2023_05_01.models.ListQueue] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2024_01_01.models.ListQueue] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.ListQueueResource] = kwargs.pop("cls", None) error_map: MutableMapping = { diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_queue_services_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_queue_services_operations.py similarity index 95% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_queue_services_operations.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_queue_services_operations.py index c86b8564fbc1..b83601300a4e 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_queue_services_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_queue_services_operations.py @@ -44,7 +44,7 @@ class QueueServicesOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.aio.StorageManagementClient`'s + :class:`~azure.mgmt.storage.v2024_01_01.aio.StorageManagementClient`'s :attr:`queue_services` attribute. """ @@ -70,7 +70,7 @@ async def list(self, resource_group_name: str, account_name: str, **kwargs: Any) lower-case letters only. Required. :type account_name: str :return: ListQueueServices or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ListQueueServices + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ListQueueServices :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -84,7 +84,7 @@ async def list(self, resource_group_name: str, account_name: str, **kwargs: Any) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.ListQueueServices] = kwargs.pop("cls", None) _request = build_list_request( @@ -137,12 +137,12 @@ async def set_service_properties( :type account_name: str :param parameters: The properties of a storage account’s Queue service, only properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules can be specified. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.QueueServiceProperties + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.QueueServiceProperties :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: QueueServiceProperties or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.QueueServiceProperties + :rtype: ~azure.mgmt.storage.v2024_01_01.models.QueueServiceProperties :raises ~azure.core.exceptions.HttpResponseError: """ @@ -173,7 +173,7 @@ async def set_service_properties( Default value is "application/json". :paramtype content_type: str :return: QueueServiceProperties or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.QueueServiceProperties + :rtype: ~azure.mgmt.storage.v2024_01_01.models.QueueServiceProperties :raises ~azure.core.exceptions.HttpResponseError: """ @@ -198,9 +198,9 @@ async def set_service_properties( :param parameters: The properties of a storage account’s Queue service, only properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules can be specified. Is either a QueueServiceProperties type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.QueueServiceProperties or IO[bytes] + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.QueueServiceProperties or IO[bytes] :return: QueueServiceProperties or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.QueueServiceProperties + :rtype: ~azure.mgmt.storage.v2024_01_01.models.QueueServiceProperties :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -214,7 +214,7 @@ async def set_service_properties( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) queue_service_name: Literal["default"] = kwargs.pop("queue_service_name", "default") content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.QueueServiceProperties] = kwargs.pop("cls", None) @@ -274,7 +274,7 @@ async def get_service_properties( lower-case letters only. Required. :type account_name: str :return: QueueServiceProperties or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.QueueServiceProperties + :rtype: ~azure.mgmt.storage.v2024_01_01.models.QueueServiceProperties :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -288,7 +288,7 @@ async def get_service_properties( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) queue_service_name: Literal["default"] = kwargs.pop("queue_service_name", "default") cls: ClsType[_models.QueueServiceProperties] = kwargs.pop("cls", None) diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_skus_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_skus_operations.py similarity index 97% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_skus_operations.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_skus_operations.py index 807446895b47..d31978257e3d 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_skus_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_skus_operations.py @@ -41,7 +41,7 @@ class SkusOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.aio.StorageManagementClient`'s + :class:`~azure.mgmt.storage.v2024_01_01.aio.StorageManagementClient`'s :attr:`skus` attribute. """ @@ -61,13 +61,13 @@ def list(self, **kwargs: Any) -> AsyncIterable["_models.SkuInformation"]: :return: An iterator like instance of either SkuInformation or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2023_05_01.models.SkuInformation] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2024_01_01.models.SkuInformation] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.StorageSkuListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_storage_accounts_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_storage_accounts_operations.py similarity index 96% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_storage_accounts_operations.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_storage_accounts_operations.py index a1c0bd1bcdc9..a51f5cfba65d 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_storage_accounts_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_storage_accounts_operations.py @@ -80,7 +80,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.aio.StorageManagementClient`'s + :class:`~azure.mgmt.storage.v2024_01_01.aio.StorageManagementClient`'s :attr:`storage_accounts` attribute. """ @@ -108,12 +108,12 @@ async def check_name_availability( Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. Required. :type account_name: - ~azure.mgmt.storage.v2023_05_01.models.StorageAccountCheckNameAvailabilityParameters + ~azure.mgmt.storage.v2024_01_01.models.StorageAccountCheckNameAvailabilityParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: CheckNameAvailabilityResult or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.CheckNameAvailabilityResult + :rtype: ~azure.mgmt.storage.v2024_01_01.models.CheckNameAvailabilityResult :raises ~azure.core.exceptions.HttpResponseError: """ @@ -131,7 +131,7 @@ async def check_name_availability( Default value is "application/json". :paramtype content_type: str :return: CheckNameAvailabilityResult or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.CheckNameAvailabilityResult + :rtype: ~azure.mgmt.storage.v2024_01_01.models.CheckNameAvailabilityResult :raises ~azure.core.exceptions.HttpResponseError: """ @@ -146,10 +146,10 @@ async def check_name_availability( lower-case letters only. Is either a StorageAccountCheckNameAvailabilityParameters type or a IO[bytes] type. Required. :type account_name: - ~azure.mgmt.storage.v2023_05_01.models.StorageAccountCheckNameAvailabilityParameters or + ~azure.mgmt.storage.v2024_01_01.models.StorageAccountCheckNameAvailabilityParameters or IO[bytes] :return: CheckNameAvailabilityResult or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.CheckNameAvailabilityResult + :rtype: ~azure.mgmt.storage.v2024_01_01.models.CheckNameAvailabilityResult :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -163,7 +163,7 @@ async def check_name_availability( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.CheckNameAvailabilityResult] = kwargs.pop("cls", None) @@ -222,7 +222,7 @@ async def _create_initial( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -293,14 +293,14 @@ async def begin_create( lower-case letters only. Required. :type account_name: str :param parameters: The parameters to provide for the created account. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.StorageAccountCreateParameters + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.StorageAccountCreateParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either StorageAccount or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.v2023_05_01.models.StorageAccount] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.v2024_01_01.models.StorageAccount] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -334,7 +334,7 @@ async def begin_create( :return: An instance of AsyncLROPoller that returns either StorageAccount or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.v2023_05_01.models.StorageAccount] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.v2024_01_01.models.StorageAccount] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -360,18 +360,18 @@ async def begin_create( :type account_name: str :param parameters: The parameters to provide for the created account. Is either a StorageAccountCreateParameters type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.StorageAccountCreateParameters or + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.StorageAccountCreateParameters or IO[bytes] :return: An instance of AsyncLROPoller that returns either StorageAccount or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.v2023_05_01.models.StorageAccount] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.v2024_01_01.models.StorageAccount] :raises ~azure.core.exceptions.HttpResponseError: """ _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.StorageAccount] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -441,7 +441,7 @@ async def delete(self, resource_group_name: str, account_name: str, **kwargs: An _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_delete_request( @@ -491,9 +491,9 @@ async def get_properties( data is not included when fetching properties. Currently we only support geoReplicationStats and blobRestoreStatus. Known values are: "geoReplicationStats" and "blobRestoreStatus". Default value is None. - :type expand: str or ~azure.mgmt.storage.v2023_05_01.models.StorageAccountExpand + :type expand: str or ~azure.mgmt.storage.v2024_01_01.models.StorageAccountExpand :return: StorageAccount or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.StorageAccount + :rtype: ~azure.mgmt.storage.v2024_01_01.models.StorageAccount :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -507,7 +507,7 @@ async def get_properties( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.StorageAccount] = kwargs.pop("cls", None) _request = build_get_properties_request( @@ -566,12 +566,12 @@ async def update( lower-case letters only. Required. :type account_name: str :param parameters: The parameters to provide for the updated account. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.StorageAccountUpdateParameters + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.StorageAccountUpdateParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: StorageAccount or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.StorageAccount + :rtype: ~azure.mgmt.storage.v2024_01_01.models.StorageAccount :raises ~azure.core.exceptions.HttpResponseError: """ @@ -607,7 +607,7 @@ async def update( Default value is "application/json". :paramtype content_type: str :return: StorageAccount or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.StorageAccount + :rtype: ~azure.mgmt.storage.v2024_01_01.models.StorageAccount :raises ~azure.core.exceptions.HttpResponseError: """ @@ -637,10 +637,10 @@ async def update( :type account_name: str :param parameters: The parameters to provide for the updated account. Is either a StorageAccountUpdateParameters type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.StorageAccountUpdateParameters or + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.StorageAccountUpdateParameters or IO[bytes] :return: StorageAccount or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.StorageAccount + :rtype: ~azure.mgmt.storage.v2024_01_01.models.StorageAccount :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -654,7 +654,7 @@ async def update( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.StorageAccount] = kwargs.pop("cls", None) @@ -704,13 +704,13 @@ def list(self, **kwargs: Any) -> AsyncIterable["_models.StorageAccount"]: :return: An iterator like instance of either StorageAccount or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2023_05_01.models.StorageAccount] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2024_01_01.models.StorageAccount] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.StorageAccountListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -785,13 +785,13 @@ def list_by_resource_group( :type resource_group_name: str :return: An iterator like instance of either StorageAccount or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2023_05_01.models.StorageAccount] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2024_01_01.models.StorageAccount] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.StorageAccountListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -873,7 +873,7 @@ async def list_keys( "kerb" and None. Default value is "kerb". :type expand: str :return: StorageAccountListKeysResult or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.StorageAccountListKeysResult + :rtype: ~azure.mgmt.storage.v2024_01_01.models.StorageAccountListKeysResult :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -887,7 +887,7 @@ async def list_keys( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.StorageAccountListKeysResult] = kwargs.pop("cls", None) _request = build_list_keys_request( @@ -941,12 +941,12 @@ async def regenerate_key( :param regenerate_key: Specifies name of the key which should be regenerated -- key1, key2, kerb1, kerb2. Required. :type regenerate_key: - ~azure.mgmt.storage.v2023_05_01.models.StorageAccountRegenerateKeyParameters + ~azure.mgmt.storage.v2024_01_01.models.StorageAccountRegenerateKeyParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: StorageAccountListKeysResult or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.StorageAccountListKeysResult + :rtype: ~azure.mgmt.storage.v2024_01_01.models.StorageAccountListKeysResult :raises ~azure.core.exceptions.HttpResponseError: """ @@ -976,7 +976,7 @@ async def regenerate_key( Default value is "application/json". :paramtype content_type: str :return: StorageAccountListKeysResult or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.StorageAccountListKeysResult + :rtype: ~azure.mgmt.storage.v2024_01_01.models.StorageAccountListKeysResult :raises ~azure.core.exceptions.HttpResponseError: """ @@ -1001,9 +1001,9 @@ async def regenerate_key( kerb1, kerb2. Is either a StorageAccountRegenerateKeyParameters type or a IO[bytes] type. Required. :type regenerate_key: - ~azure.mgmt.storage.v2023_05_01.models.StorageAccountRegenerateKeyParameters or IO[bytes] + ~azure.mgmt.storage.v2024_01_01.models.StorageAccountRegenerateKeyParameters or IO[bytes] :return: StorageAccountListKeysResult or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.StorageAccountListKeysResult + :rtype: ~azure.mgmt.storage.v2024_01_01.models.StorageAccountListKeysResult :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -1017,7 +1017,7 @@ async def regenerate_key( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.StorageAccountListKeysResult] = kwargs.pop("cls", None) @@ -1081,12 +1081,12 @@ async def list_account_sas( :type account_name: str :param parameters: The parameters to provide to list SAS credentials for the storage account. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.AccountSasParameters + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.AccountSasParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: ListAccountSasResponse or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ListAccountSasResponse + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ListAccountSasResponse :raises ~azure.core.exceptions.HttpResponseError: """ @@ -1116,7 +1116,7 @@ async def list_account_sas( Default value is "application/json". :paramtype content_type: str :return: ListAccountSasResponse or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ListAccountSasResponse + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ListAccountSasResponse :raises ~azure.core.exceptions.HttpResponseError: """ @@ -1139,9 +1139,9 @@ async def list_account_sas( :type account_name: str :param parameters: The parameters to provide to list SAS credentials for the storage account. Is either a AccountSasParameters type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.AccountSasParameters or IO[bytes] + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.AccountSasParameters or IO[bytes] :return: ListAccountSasResponse or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ListAccountSasResponse + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ListAccountSasResponse :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -1155,7 +1155,7 @@ async def list_account_sas( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ListAccountSasResponse] = kwargs.pop("cls", None) @@ -1218,12 +1218,12 @@ async def list_service_sas( lower-case letters only. Required. :type account_name: str :param parameters: The parameters to provide to list service SAS credentials. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.ServiceSasParameters + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.ServiceSasParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: ListServiceSasResponse or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ListServiceSasResponse + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ListServiceSasResponse :raises ~azure.core.exceptions.HttpResponseError: """ @@ -1252,7 +1252,7 @@ async def list_service_sas( Default value is "application/json". :paramtype content_type: str :return: ListServiceSasResponse or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ListServiceSasResponse + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ListServiceSasResponse :raises ~azure.core.exceptions.HttpResponseError: """ @@ -1275,9 +1275,9 @@ async def list_service_sas( :type account_name: str :param parameters: The parameters to provide to list service SAS credentials. Is either a ServiceSasParameters type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.ServiceSasParameters or IO[bytes] + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.ServiceSasParameters or IO[bytes] :return: ListServiceSasResponse or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ListServiceSasResponse + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ListServiceSasResponse :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -1291,7 +1291,7 @@ async def list_service_sas( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ListServiceSasResponse] = kwargs.pop("cls", None) @@ -1348,7 +1348,7 @@ async def _failover_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_failover_request( @@ -1418,7 +1418,7 @@ async def begin_failover( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -1472,7 +1472,7 @@ async def _hierarchical_namespace_migration_initial( # pylint: disable=name-too _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_hierarchical_namespace_migration_request( @@ -1535,7 +1535,7 @@ async def begin_hierarchical_namespace_migration( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -1589,7 +1589,7 @@ async def _abort_hierarchical_namespace_migration_initial( # pylint: disable=na _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_abort_hierarchical_namespace_migration_request( @@ -1646,7 +1646,7 @@ async def begin_abort_hierarchical_namespace_migration( # pylint: disable=name- _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -1703,7 +1703,7 @@ async def _customer_initiated_migration_initial( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -1781,7 +1781,7 @@ async def begin_customer_initiated_migration( :type account_name: str :param parameters: The request parameters required to perform storage account migration. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.StorageAccountMigration + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.StorageAccountMigration :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -1847,7 +1847,7 @@ async def begin_customer_initiated_migration( :type account_name: str :param parameters: The request parameters required to perform storage account migration. Is either a StorageAccountMigration type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.StorageAccountMigration or IO[bytes] + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.StorageAccountMigration or IO[bytes] :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -1855,7 +1855,7 @@ async def begin_customer_initiated_migration( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -1916,9 +1916,9 @@ async def get_customer_initiated_migration( :type account_name: str :param migration_name: The name of the Storage Account Migration. It should always be 'default'. "default" Required. - :type migration_name: str or ~azure.mgmt.storage.v2023_05_01.models.MigrationName + :type migration_name: str or ~azure.mgmt.storage.v2024_01_01.models.MigrationName :return: StorageAccountMigration or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.StorageAccountMigration + :rtype: ~azure.mgmt.storage.v2024_01_01.models.StorageAccountMigration :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -1932,7 +1932,7 @@ async def get_customer_initiated_migration( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.StorageAccountMigration] = kwargs.pop("cls", None) _request = build_get_customer_initiated_migration_request( @@ -1983,7 +1983,7 @@ async def _restore_blob_ranges_initial( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -2051,14 +2051,14 @@ async def begin_restore_blob_ranges( lower-case letters only. Required. :type account_name: str :param parameters: The parameters to provide for restore blob ranges. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.BlobRestoreParameters + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.BlobRestoreParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either BlobRestoreStatus or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.v2023_05_01.models.BlobRestoreStatus] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.v2024_01_01.models.BlobRestoreStatus] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -2089,7 +2089,7 @@ async def begin_restore_blob_ranges( :return: An instance of AsyncLROPoller that returns either BlobRestoreStatus or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.v2023_05_01.models.BlobRestoreStatus] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.v2024_01_01.models.BlobRestoreStatus] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -2112,17 +2112,17 @@ async def begin_restore_blob_ranges( :type account_name: str :param parameters: The parameters to provide for restore blob ranges. Is either a BlobRestoreParameters type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.BlobRestoreParameters or IO[bytes] + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.BlobRestoreParameters or IO[bytes] :return: An instance of AsyncLROPoller that returns either BlobRestoreStatus or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.v2023_05_01.models.BlobRestoreStatus] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.v2024_01_01.models.BlobRestoreStatus] :raises ~azure.core.exceptions.HttpResponseError: """ _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.BlobRestoreStatus] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -2194,7 +2194,7 @@ async def revoke_user_delegation_keys(self, resource_group_name: str, account_na _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_revoke_user_delegation_keys_request( diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_storage_task_assignment_instances_report_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_storage_task_assignment_instances_report_operations.py similarity index 97% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_storage_task_assignment_instances_report_operations.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_storage_task_assignment_instances_report_operations.py index 8338be3708fd..bb1fe0ab48c8 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_storage_task_assignment_instances_report_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_storage_task_assignment_instances_report_operations.py @@ -41,7 +41,7 @@ class StorageTaskAssignmentInstancesReportOperations: # pylint: disable=name-to **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.aio.StorageManagementClient`'s + :class:`~azure.mgmt.storage.v2024_01_01.aio.StorageManagementClient`'s :attr:`storage_task_assignment_instances_report` attribute. """ @@ -90,13 +90,13 @@ def list( :return: An iterator like instance of either StorageTaskReportInstance or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2023_05_01.models.StorageTaskReportInstance] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2024_01_01.models.StorageTaskReportInstance] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.StorageTaskReportSummary] = kwargs.pop("cls", None) error_map: MutableMapping = { diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_storage_task_assignments_instances_report_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_storage_task_assignments_instances_report_operations.py similarity index 97% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_storage_task_assignments_instances_report_operations.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_storage_task_assignments_instances_report_operations.py index b2e92ba6d702..5c1f50376cbb 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_storage_task_assignments_instances_report_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_storage_task_assignments_instances_report_operations.py @@ -41,7 +41,7 @@ class StorageTaskAssignmentsInstancesReportOperations: # pylint: disable=name-t **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.aio.StorageManagementClient`'s + :class:`~azure.mgmt.storage.v2024_01_01.aio.StorageManagementClient`'s :attr:`storage_task_assignments_instances_report` attribute. """ @@ -85,13 +85,13 @@ def list( :return: An iterator like instance of either StorageTaskReportInstance or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2023_05_01.models.StorageTaskReportInstance] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2024_01_01.models.StorageTaskReportInstance] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.StorageTaskReportSummary] = kwargs.pop("cls", None) error_map: MutableMapping = { diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_storage_task_assignments_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_storage_task_assignments_operations.py similarity index 97% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_storage_task_assignments_operations.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_storage_task_assignments_operations.py index 6d5c7bf6dd71..0b252065894e 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_storage_task_assignments_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_storage_task_assignments_operations.py @@ -53,7 +53,7 @@ class StorageTaskAssignmentsOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.aio.StorageManagementClient`'s + :class:`~azure.mgmt.storage.v2024_01_01.aio.StorageManagementClient`'s :attr:`storage_task_assignments` attribute. """ @@ -86,7 +86,7 @@ async def _create_initial( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -169,14 +169,14 @@ async def begin_create( length and use numbers and lower-case letters only. Required. :type storage_task_assignment_name: str :param parameters: The parameters to create a Storage Task Assignment. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.StorageTaskAssignment + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.StorageTaskAssignment :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either StorageTaskAssignment or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.v2023_05_01.models.StorageTaskAssignment] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.v2024_01_01.models.StorageTaskAssignment] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -216,7 +216,7 @@ async def begin_create( :return: An instance of AsyncLROPoller that returns either StorageTaskAssignment or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.v2023_05_01.models.StorageTaskAssignment] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.v2024_01_01.models.StorageTaskAssignment] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -248,17 +248,17 @@ async def begin_create( :type storage_task_assignment_name: str :param parameters: The parameters to create a Storage Task Assignment. Is either a StorageTaskAssignment type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.StorageTaskAssignment or IO[bytes] + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.StorageTaskAssignment or IO[bytes] :return: An instance of AsyncLROPoller that returns either StorageTaskAssignment or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.v2023_05_01.models.StorageTaskAssignment] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.v2024_01_01.models.StorageTaskAssignment] :raises ~azure.core.exceptions.HttpResponseError: """ _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.StorageTaskAssignment] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -324,7 +324,7 @@ async def _update_initial( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -403,14 +403,14 @@ async def begin_update( length and use numbers and lower-case letters only. Required. :type storage_task_assignment_name: str :param parameters: The parameters to update a Storage Task Assignment. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.StorageTaskAssignmentUpdateParameters + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.StorageTaskAssignmentUpdateParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of AsyncLROPoller that returns either StorageTaskAssignment or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.v2023_05_01.models.StorageTaskAssignment] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.v2024_01_01.models.StorageTaskAssignment] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -446,7 +446,7 @@ async def begin_update( :return: An instance of AsyncLROPoller that returns either StorageTaskAssignment or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.v2023_05_01.models.StorageTaskAssignment] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.v2024_01_01.models.StorageTaskAssignment] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -474,18 +474,18 @@ async def begin_update( :type storage_task_assignment_name: str :param parameters: The parameters to update a Storage Task Assignment. Is either a StorageTaskAssignmentUpdateParameters type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.StorageTaskAssignmentUpdateParameters + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.StorageTaskAssignmentUpdateParameters or IO[bytes] :return: An instance of AsyncLROPoller that returns either StorageTaskAssignment or the result of cls(response) :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.v2023_05_01.models.StorageTaskAssignment] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.storage.v2024_01_01.models.StorageTaskAssignment] :raises ~azure.core.exceptions.HttpResponseError: """ _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.StorageTaskAssignment] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -550,7 +550,7 @@ async def get( length and use numbers and lower-case letters only. Required. :type storage_task_assignment_name: str :return: StorageTaskAssignment or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.StorageTaskAssignment + :rtype: ~azure.mgmt.storage.v2024_01_01.models.StorageTaskAssignment :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -564,7 +564,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.StorageTaskAssignment] = kwargs.pop("cls", None) _request = build_get_request( @@ -611,7 +611,7 @@ async def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_delete_request( @@ -677,7 +677,7 @@ async def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -736,13 +736,13 @@ def list( :return: An iterator like instance of either StorageTaskAssignment or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2023_05_01.models.StorageTaskAssignment] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2024_01_01.models.StorageTaskAssignment] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.StorageTaskAssignmentsList] = kwargs.pop("cls", None) error_map: MutableMapping = { diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_table_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_table_operations.py similarity index 95% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_table_operations.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_table_operations.py index 0cbc2da1955f..4302371e22b9 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_table_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_table_operations.py @@ -49,7 +49,7 @@ class TableOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.aio.StorageManagementClient`'s + :class:`~azure.mgmt.storage.v2024_01_01.aio.StorageManagementClient`'s :attr:`table` attribute. """ @@ -88,12 +88,12 @@ async def create( with a numeric character. Required. :type table_name: str :param parameters: The parameters to provide to create a table. Default value is None. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.Table + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.Table :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: Table or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.Table + :rtype: ~azure.mgmt.storage.v2024_01_01.models.Table :raises ~azure.core.exceptions.HttpResponseError: """ @@ -127,7 +127,7 @@ async def create( Default value is "application/json". :paramtype content_type: str :return: Table or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.Table + :rtype: ~azure.mgmt.storage.v2024_01_01.models.Table :raises ~azure.core.exceptions.HttpResponseError: """ @@ -155,9 +155,9 @@ async def create( :type table_name: str :param parameters: The parameters to provide to create a table. Is either a Table type or a IO[bytes] type. Default value is None. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.Table or IO[bytes] + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.Table or IO[bytes] :return: Table or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.Table + :rtype: ~azure.mgmt.storage.v2024_01_01.models.Table :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -171,7 +171,7 @@ async def create( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.Table] = kwargs.pop("cls", None) @@ -243,12 +243,12 @@ async def update( with a numeric character. Required. :type table_name: str :param parameters: The parameters to provide to create a table. Default value is None. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.Table + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.Table :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: Table or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.Table + :rtype: ~azure.mgmt.storage.v2024_01_01.models.Table :raises ~azure.core.exceptions.HttpResponseError: """ @@ -282,7 +282,7 @@ async def update( Default value is "application/json". :paramtype content_type: str :return: Table or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.Table + :rtype: ~azure.mgmt.storage.v2024_01_01.models.Table :raises ~azure.core.exceptions.HttpResponseError: """ @@ -310,9 +310,9 @@ async def update( :type table_name: str :param parameters: The parameters to provide to create a table. Is either a Table type or a IO[bytes] type. Default value is None. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.Table or IO[bytes] + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.Table or IO[bytes] :return: Table or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.Table + :rtype: ~azure.mgmt.storage.v2024_01_01.models.Table :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -326,7 +326,7 @@ async def update( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.Table] = kwargs.pop("cls", None) @@ -389,7 +389,7 @@ async def get(self, resource_group_name: str, account_name: str, table_name: str with a numeric character. Required. :type table_name: str :return: Table or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.Table + :rtype: ~azure.mgmt.storage.v2024_01_01.models.Table :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -403,7 +403,7 @@ async def get(self, resource_group_name: str, account_name: str, table_name: str _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.Table] = kwargs.pop("cls", None) _request = build_get_request( @@ -465,7 +465,7 @@ async def delete(self, resource_group_name: str, account_name: str, table_name: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_delete_request( @@ -505,13 +505,13 @@ def list(self, resource_group_name: str, account_name: str, **kwargs: Any) -> As lower-case letters only. Required. :type account_name: str :return: An iterator like instance of either Table or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2023_05_01.models.Table] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2024_01_01.models.Table] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.ListTableResource] = kwargs.pop("cls", None) error_map: MutableMapping = { diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_table_services_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_table_services_operations.py similarity index 95% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_table_services_operations.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_table_services_operations.py index 5b5a4673c2ed..0f9e09b16508 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_table_services_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_table_services_operations.py @@ -44,7 +44,7 @@ class TableServicesOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.aio.StorageManagementClient`'s + :class:`~azure.mgmt.storage.v2024_01_01.aio.StorageManagementClient`'s :attr:`table_services` attribute. """ @@ -70,7 +70,7 @@ async def list(self, resource_group_name: str, account_name: str, **kwargs: Any) lower-case letters only. Required. :type account_name: str :return: ListTableServices or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ListTableServices + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ListTableServices :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -84,7 +84,7 @@ async def list(self, resource_group_name: str, account_name: str, **kwargs: Any) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.ListTableServices] = kwargs.pop("cls", None) _request = build_list_request( @@ -137,12 +137,12 @@ async def set_service_properties( :type account_name: str :param parameters: The properties of a storage account’s Table service, only properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules can be specified. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.TableServiceProperties + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.TableServiceProperties :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: TableServiceProperties or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.TableServiceProperties + :rtype: ~azure.mgmt.storage.v2024_01_01.models.TableServiceProperties :raises ~azure.core.exceptions.HttpResponseError: """ @@ -173,7 +173,7 @@ async def set_service_properties( Default value is "application/json". :paramtype content_type: str :return: TableServiceProperties or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.TableServiceProperties + :rtype: ~azure.mgmt.storage.v2024_01_01.models.TableServiceProperties :raises ~azure.core.exceptions.HttpResponseError: """ @@ -198,9 +198,9 @@ async def set_service_properties( :param parameters: The properties of a storage account’s Table service, only properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules can be specified. Is either a TableServiceProperties type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.TableServiceProperties or IO[bytes] + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.TableServiceProperties or IO[bytes] :return: TableServiceProperties or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.TableServiceProperties + :rtype: ~azure.mgmt.storage.v2024_01_01.models.TableServiceProperties :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -214,7 +214,7 @@ async def set_service_properties( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) table_service_name: Literal["default"] = kwargs.pop("table_service_name", "default") content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.TableServiceProperties] = kwargs.pop("cls", None) @@ -274,7 +274,7 @@ async def get_service_properties( lower-case letters only. Required. :type account_name: str :return: TableServiceProperties or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.TableServiceProperties + :rtype: ~azure.mgmt.storage.v2024_01_01.models.TableServiceProperties :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -288,7 +288,7 @@ async def get_service_properties( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) table_service_name: Literal["default"] = kwargs.pop("table_service_name", "default") cls: ClsType[_models.TableServiceProperties] = kwargs.pop("cls", None) diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_usages_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_usages_operations.py similarity index 97% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_usages_operations.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_usages_operations.py index 6ca63d8f0c8f..799d1ca52f24 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_usages_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_usages_operations.py @@ -41,7 +41,7 @@ class UsagesOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.aio.StorageManagementClient`'s + :class:`~azure.mgmt.storage.v2024_01_01.aio.StorageManagementClient`'s :attr:`usages` attribute. """ @@ -63,13 +63,13 @@ def list_by_location(self, location: str, **kwargs: Any) -> AsyncIterable["_mode :param location: The location of the Azure Storage resource. Required. :type location: str :return: An iterator like instance of either Usage or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2023_05_01.models.Usage] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2024_01_01.models.Usage] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.UsageListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/models/__init__.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/models/__init__.py similarity index 95% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/models/__init__.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/models/__init__.py index 46195c06af2b..a96fb656d625 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/models/__init__.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/models/__init__.py @@ -16,7 +16,10 @@ from ._models_py3 import ( # type: ignore AccessPolicy, AccountImmutabilityPolicyProperties, + AccountLimits, AccountSasParameters, + AccountUsage, + AccountUsageElements, ActiveDirectoryProperties, AzureEntityResource, AzureFilesIdentityBasedAuthentication, @@ -32,6 +35,7 @@ BlobRestoreStatus, BlobServiceItems, BlobServiceProperties, + BurstingConstants, ChangeFeed, CheckNameAvailabilityResult, CloudErrorBody, @@ -64,9 +68,15 @@ ExtendedLocation, FileServiceItems, FileServiceProperties, + FileServiceUsage, + FileServiceUsageProperties, + FileServiceUsages, FileShare, FileShareItem, FileShareItems, + FileShareLimits, + FileSharePropertiesFileSharePaidBursting, + FileShareRecommendations, GeoReplicationStats, IPRule, Identity, @@ -121,6 +131,7 @@ ObjectReplicationPolicies, ObjectReplicationPolicy, ObjectReplicationPolicyFilter, + ObjectReplicationPolicyPropertiesMetrics, ObjectReplicationPolicyRule, Operation, OperationDisplay, @@ -285,7 +296,10 @@ __all__ = [ "AccessPolicy", "AccountImmutabilityPolicyProperties", + "AccountLimits", "AccountSasParameters", + "AccountUsage", + "AccountUsageElements", "ActiveDirectoryProperties", "AzureEntityResource", "AzureFilesIdentityBasedAuthentication", @@ -301,6 +315,7 @@ "BlobRestoreStatus", "BlobServiceItems", "BlobServiceProperties", + "BurstingConstants", "ChangeFeed", "CheckNameAvailabilityResult", "CloudErrorBody", @@ -333,9 +348,15 @@ "ExtendedLocation", "FileServiceItems", "FileServiceProperties", + "FileServiceUsage", + "FileServiceUsageProperties", + "FileServiceUsages", "FileShare", "FileShareItem", "FileShareItems", + "FileShareLimits", + "FileSharePropertiesFileSharePaidBursting", + "FileShareRecommendations", "GeoReplicationStats", "IPRule", "Identity", @@ -390,6 +411,7 @@ "ObjectReplicationPolicies", "ObjectReplicationPolicy", "ObjectReplicationPolicyFilter", + "ObjectReplicationPolicyPropertiesMetrics", "ObjectReplicationPolicyRule", "Operation", "OperationDisplay", diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/models/_models_py3.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/models/_models_py3.py similarity index 86% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/models/_models_py3.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/models/_models_py3.py index 90c61b12f54f..c05c889fbaa4 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/models/_models_py3.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/models/_models_py3.py @@ -68,7 +68,7 @@ class AccountImmutabilityPolicyProperties(_serialization.Model): Unlocked state and can be toggled between the two states. Only a policy in an Unlocked state can transition to a Locked state which cannot be reverted. Known values are: "Unlocked", "Locked", and "Disabled". - :vartype state: str or ~azure.mgmt.storage.v2023_05_01.models.AccountImmutabilityPolicyState + :vartype state: str or ~azure.mgmt.storage.v2024_01_01.models.AccountImmutabilityPolicyState :ivar allow_protected_append_writes: This property can only be changed for disabled and unlocked time-based retention policies. When enabled, new blocks can be written to an append blob while maintaining immutability protection and compliance. Only new blocks can be added and @@ -105,7 +105,7 @@ def __init__( Unlocked state and can be toggled between the two states. Only a policy in an Unlocked state can transition to a Locked state which cannot be reverted. Known values are: "Unlocked", "Locked", and "Disabled". - :paramtype state: str or ~azure.mgmt.storage.v2023_05_01.models.AccountImmutabilityPolicyState + :paramtype state: str or ~azure.mgmt.storage.v2024_01_01.models.AccountImmutabilityPolicyState :keyword allow_protected_append_writes: This property can only be changed for disabled and unlocked time-based retention policies. When enabled, new blocks can be written to an append blob while maintaining immutability protection and compliance. Only new blocks can be added and @@ -118,6 +118,47 @@ def __init__( self.allow_protected_append_writes = allow_protected_append_writes +class AccountLimits(_serialization.Model): + """Maximum provisioned storage, IOPS, bandwidth and number of file shares limits for the storage + account. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar max_file_shares: The maximum number of file shares limit for the storage account. + :vartype max_file_shares: int + :ivar max_provisioned_storage_gi_b: The maximum provisioned storage quota limit in gibibytes + for the storage account. + :vartype max_provisioned_storage_gi_b: int + :ivar max_provisioned_iops: The maximum provisioned IOPS limit for the storage account. + :vartype max_provisioned_iops: int + :ivar max_provisioned_bandwidth_mi_b_per_sec: The maximum provisioned bandwidth limit in + mebibytes per second for the storage account. + :vartype max_provisioned_bandwidth_mi_b_per_sec: int + """ + + _validation = { + "max_file_shares": {"readonly": True}, + "max_provisioned_storage_gi_b": {"readonly": True}, + "max_provisioned_iops": {"readonly": True}, + "max_provisioned_bandwidth_mi_b_per_sec": {"readonly": True}, + } + + _attribute_map = { + "max_file_shares": {"key": "maxFileShares", "type": "int"}, + "max_provisioned_storage_gi_b": {"key": "maxProvisionedStorageGiB", "type": "int"}, + "max_provisioned_iops": {"key": "maxProvisionedIOPS", "type": "int"}, + "max_provisioned_bandwidth_mi_b_per_sec": {"key": "maxProvisionedBandwidthMiBPerSec", "type": "int"}, + } + + def __init__(self, **kwargs: Any) -> None: + """ """ + super().__init__(**kwargs) + self.max_file_shares = None + self.max_provisioned_storage_gi_b = None + self.max_provisioned_iops = None + self.max_provisioned_bandwidth_mi_b_per_sec = None + + class AccountSasParameters(_serialization.Model): """The parameters to list SAS credentials of a storage account. @@ -125,22 +166,22 @@ class AccountSasParameters(_serialization.Model): :ivar services: The signed services accessible with the account SAS. Possible values include: Blob (b), Queue (q), Table (t), File (f). Required. Known values are: "b", "q", "t", and "f". - :vartype services: str or ~azure.mgmt.storage.v2023_05_01.models.Services + :vartype services: str or ~azure.mgmt.storage.v2024_01_01.models.Services :ivar resource_types: The signed resource types that are accessible with the account SAS. Service (s): Access to service-level APIs; Container (c): Access to container-level APIs; Object (o): Access to object-level APIs for blobs, queue messages, table entities, and files. Required. Known values are: "s", "c", and "o". - :vartype resource_types: str or ~azure.mgmt.storage.v2023_05_01.models.SignedResourceTypes + :vartype resource_types: str or ~azure.mgmt.storage.v2024_01_01.models.SignedResourceTypes :ivar permissions: The signed permissions for the account SAS. Possible values include: Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p). Required. Known values are: "r", "d", "w", "l", "a", "c", "u", and "p". - :vartype permissions: str or ~azure.mgmt.storage.v2023_05_01.models.Permissions + :vartype permissions: str or ~azure.mgmt.storage.v2024_01_01.models.Permissions :ivar ip_address_or_range: An IP address or a range of IP addresses from which to accept requests. :vartype ip_address_or_range: str :ivar protocols: The protocol permitted for a request made with the account SAS. Known values are: "https,http" and "https". - :vartype protocols: str or ~azure.mgmt.storage.v2023_05_01.models.HttpProtocol + :vartype protocols: str or ~azure.mgmt.storage.v2024_01_01.models.HttpProtocol :ivar shared_access_start_time: The time at which the SAS becomes valid. :vartype shared_access_start_time: ~datetime.datetime :ivar shared_access_expiry_time: The time at which the shared access signature becomes invalid. @@ -185,22 +226,22 @@ def __init__( :keyword services: The signed services accessible with the account SAS. Possible values include: Blob (b), Queue (q), Table (t), File (f). Required. Known values are: "b", "q", "t", and "f". - :paramtype services: str or ~azure.mgmt.storage.v2023_05_01.models.Services + :paramtype services: str or ~azure.mgmt.storage.v2024_01_01.models.Services :keyword resource_types: The signed resource types that are accessible with the account SAS. Service (s): Access to service-level APIs; Container (c): Access to container-level APIs; Object (o): Access to object-level APIs for blobs, queue messages, table entities, and files. Required. Known values are: "s", "c", and "o". - :paramtype resource_types: str or ~azure.mgmt.storage.v2023_05_01.models.SignedResourceTypes + :paramtype resource_types: str or ~azure.mgmt.storage.v2024_01_01.models.SignedResourceTypes :keyword permissions: The signed permissions for the account SAS. Possible values include: Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p). Required. Known values are: "r", "d", "w", "l", "a", "c", "u", and "p". - :paramtype permissions: str or ~azure.mgmt.storage.v2023_05_01.models.Permissions + :paramtype permissions: str or ~azure.mgmt.storage.v2024_01_01.models.Permissions :keyword ip_address_or_range: An IP address or a range of IP addresses from which to accept requests. :paramtype ip_address_or_range: str :keyword protocols: The protocol permitted for a request made with the account SAS. Known values are: "https,http" and "https". - :paramtype protocols: str or ~azure.mgmt.storage.v2023_05_01.models.HttpProtocol + :paramtype protocols: str or ~azure.mgmt.storage.v2024_01_01.models.HttpProtocol :keyword shared_access_start_time: The time at which the SAS becomes valid. :paramtype shared_access_start_time: ~datetime.datetime :keyword shared_access_expiry_time: The time at which the shared access signature becomes @@ -220,6 +261,77 @@ def __init__( self.key_to_sign = key_to_sign +class AccountUsage(_serialization.Model): + """Usage of provisioned storage, IOPS, bandwidth and number of file shares across all live shares + and soft-deleted shares in the account. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar live_shares: Usage of provisioned storage, IOPS, bandwidth and number of file shares + across all live shares or soft-deleted shares in the account. + :vartype live_shares: ~azure.mgmt.storage.v2024_01_01.models.AccountUsageElements + :ivar soft_deleted_shares: Usage of provisioned storage, IOPS, bandwidth and number of file + shares across all live shares or soft-deleted shares in the account. + :vartype soft_deleted_shares: ~azure.mgmt.storage.v2024_01_01.models.AccountUsageElements + """ + + _validation = { + "live_shares": {"readonly": True}, + "soft_deleted_shares": {"readonly": True}, + } + + _attribute_map = { + "live_shares": {"key": "liveShares", "type": "AccountUsageElements"}, + "soft_deleted_shares": {"key": "softDeletedShares", "type": "AccountUsageElements"}, + } + + def __init__(self, **kwargs: Any) -> None: + """ """ + super().__init__(**kwargs) + self.live_shares = None + self.soft_deleted_shares = None + + +class AccountUsageElements(_serialization.Model): + """Usage of provisioned storage, IOPS, bandwidth and number of file shares across all live shares + or soft-deleted shares in the account. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar file_share_count: The total number of file shares. + :vartype file_share_count: int + :ivar provisioned_storage_gi_b: The total provisioned storage quota in gibibytes. + :vartype provisioned_storage_gi_b: int + :ivar provisioned_iops: The total provisioned IOPS. + :vartype provisioned_iops: int + :ivar provisioned_bandwidth_mi_b_per_sec: The total provisioned bandwidth in mebibytes per + second. + :vartype provisioned_bandwidth_mi_b_per_sec: int + """ + + _validation = { + "file_share_count": {"readonly": True}, + "provisioned_storage_gi_b": {"readonly": True}, + "provisioned_iops": {"readonly": True}, + "provisioned_bandwidth_mi_b_per_sec": {"readonly": True}, + } + + _attribute_map = { + "file_share_count": {"key": "fileShareCount", "type": "int"}, + "provisioned_storage_gi_b": {"key": "provisionedStorageGiB", "type": "int"}, + "provisioned_iops": {"key": "provisionedIOPS", "type": "int"}, + "provisioned_bandwidth_mi_b_per_sec": {"key": "provisionedBandwidthMiBPerSec", "type": "int"}, + } + + def __init__(self, **kwargs: Any) -> None: + """ """ + super().__init__(**kwargs) + self.file_share_count = None + self.provisioned_storage_gi_b = None + self.provisioned_iops = None + self.provisioned_bandwidth_mi_b_per_sec = None + + class ActiveDirectoryProperties(_serialization.Model): """Settings properties for Active Directory (AD). @@ -242,7 +354,7 @@ class ActiveDirectoryProperties(_serialization.Model): :vartype sam_account_name: str :ivar account_type: Specifies the Active Directory account type for Azure Storage. Known values are: "User" and "Computer". - :vartype account_type: str or ~azure.mgmt.storage.v2023_05_01.models.AccountType + :vartype account_type: str or ~azure.mgmt.storage.v2024_01_01.models.AccountType """ _validation = { @@ -292,7 +404,7 @@ def __init__( :paramtype sam_account_name: str :keyword account_type: Specifies the Active Directory account type for Azure Storage. Known values are: "User" and "Computer". - :paramtype account_type: str or ~azure.mgmt.storage.v2023_05_01.models.AccountType + :paramtype account_type: str or ~azure.mgmt.storage.v2024_01_01.models.AccountType """ super().__init__(**kwargs) self.domain_name = domain_name @@ -385,17 +497,17 @@ class AzureFilesIdentityBasedAuthentication(_serialization.Model): :ivar directory_service_options: Indicates the directory service used. Note that this enum may be extended in the future. Required. Known values are: "None", "AADDS", "AD", and "AADKERB". :vartype directory_service_options: str or - ~azure.mgmt.storage.v2023_05_01.models.DirectoryServiceOptions + ~azure.mgmt.storage.v2024_01_01.models.DirectoryServiceOptions :ivar active_directory_properties: Required if directoryServiceOptions are AD, optional if they are AADKERB. :vartype active_directory_properties: - ~azure.mgmt.storage.v2023_05_01.models.ActiveDirectoryProperties + ~azure.mgmt.storage.v2024_01_01.models.ActiveDirectoryProperties :ivar default_share_permission: Default share permission for users using Kerberos authentication if RBAC role is not assigned. Known values are: "None", "StorageFileDataSmbShareReader", "StorageFileDataSmbShareContributor", and "StorageFileDataSmbShareElevatedContributor". :vartype default_share_permission: str or - ~azure.mgmt.storage.v2023_05_01.models.DefaultSharePermission + ~azure.mgmt.storage.v2024_01_01.models.DefaultSharePermission """ _validation = { @@ -421,17 +533,17 @@ def __init__( may be extended in the future. Required. Known values are: "None", "AADDS", "AD", and "AADKERB". :paramtype directory_service_options: str or - ~azure.mgmt.storage.v2023_05_01.models.DirectoryServiceOptions + ~azure.mgmt.storage.v2024_01_01.models.DirectoryServiceOptions :keyword active_directory_properties: Required if directoryServiceOptions are AD, optional if they are AADKERB. :paramtype active_directory_properties: - ~azure.mgmt.storage.v2023_05_01.models.ActiveDirectoryProperties + ~azure.mgmt.storage.v2024_01_01.models.ActiveDirectoryProperties :keyword default_share_permission: Default share permission for users using Kerberos authentication if RBAC role is not assigned. Known values are: "None", "StorageFileDataSmbShareReader", "StorageFileDataSmbShareContributor", and "StorageFileDataSmbShareElevatedContributor". :paramtype default_share_permission: str or - ~azure.mgmt.storage.v2023_05_01.models.DefaultSharePermission + ~azure.mgmt.storage.v2024_01_01.models.DefaultSharePermission """ super().__init__(**kwargs) self.directory_service_options = directory_service_options @@ -470,25 +582,25 @@ class BlobContainer(AzureEntityResource): :vartype deny_encryption_scope_override: bool :ivar public_access: Specifies whether data in the container may be accessed publicly and the level of access. Known values are: "Container", "Blob", and "None". - :vartype public_access: str or ~azure.mgmt.storage.v2023_05_01.models.PublicAccess + :vartype public_access: str or ~azure.mgmt.storage.v2024_01_01.models.PublicAccess :ivar last_modified_time: Returns the date and time the container was last modified. :vartype last_modified_time: ~datetime.datetime :ivar lease_status: The lease status of the container. Known values are: "Locked" and "Unlocked". - :vartype lease_status: str or ~azure.mgmt.storage.v2023_05_01.models.LeaseStatus + :vartype lease_status: str or ~azure.mgmt.storage.v2024_01_01.models.LeaseStatus :ivar lease_state: Lease state of the container. Known values are: "Available", "Leased", "Expired", "Breaking", and "Broken". - :vartype lease_state: str or ~azure.mgmt.storage.v2023_05_01.models.LeaseState + :vartype lease_state: str or ~azure.mgmt.storage.v2024_01_01.models.LeaseState :ivar lease_duration: Specifies whether the lease on a container is of infinite or fixed duration, only when the container is leased. Known values are: "Infinite" and "Fixed". - :vartype lease_duration: str or ~azure.mgmt.storage.v2023_05_01.models.LeaseDuration + :vartype lease_duration: str or ~azure.mgmt.storage.v2024_01_01.models.LeaseDuration :ivar metadata: A name-value pair to associate with the container as metadata. :vartype metadata: dict[str, str] :ivar immutability_policy: The ImmutabilityPolicy property of the container. :vartype immutability_policy: - ~azure.mgmt.storage.v2023_05_01.models.ImmutabilityPolicyProperties + ~azure.mgmt.storage.v2024_01_01.models.ImmutabilityPolicyProperties :ivar legal_hold: The LegalHold property of the container. - :vartype legal_hold: ~azure.mgmt.storage.v2023_05_01.models.LegalHoldProperties + :vartype legal_hold: ~azure.mgmt.storage.v2024_01_01.models.LegalHoldProperties :ivar has_legal_hold: The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with @@ -502,7 +614,7 @@ class BlobContainer(AzureEntityResource): container. The property is immutable and can only be set to true at the container creation time. Existing containers must undergo a migration process. :vartype immutable_storage_with_versioning: - ~azure.mgmt.storage.v2023_05_01.models.ImmutableStorageWithVersioning + ~azure.mgmt.storage.v2024_01_01.models.ImmutableStorageWithVersioning :ivar enable_nfs_v3_root_squash: Enable NFSv3 root squash on blob container. :vartype enable_nfs_v3_root_squash: bool :ivar enable_nfs_v3_all_squash: Enable NFSv3 all squash on blob container. @@ -578,14 +690,14 @@ def __init__( :paramtype deny_encryption_scope_override: bool :keyword public_access: Specifies whether data in the container may be accessed publicly and the level of access. Known values are: "Container", "Blob", and "None". - :paramtype public_access: str or ~azure.mgmt.storage.v2023_05_01.models.PublicAccess + :paramtype public_access: str or ~azure.mgmt.storage.v2024_01_01.models.PublicAccess :keyword metadata: A name-value pair to associate with the container as metadata. :paramtype metadata: dict[str, str] :keyword immutable_storage_with_versioning: The object level immutability property of the container. The property is immutable and can only be set to true at the container creation time. Existing containers must undergo a migration process. :paramtype immutable_storage_with_versioning: - ~azure.mgmt.storage.v2023_05_01.models.ImmutableStorageWithVersioning + ~azure.mgmt.storage.v2024_01_01.models.ImmutableStorageWithVersioning :keyword enable_nfs_v3_root_squash: Enable NFSv3 root squash on blob container. :paramtype enable_nfs_v3_root_squash: bool :keyword enable_nfs_v3_all_squash: Enable NFSv3 all squash on blob container. @@ -654,11 +766,11 @@ class BlobInventoryPolicy(Resource): "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.storage.v2023_05_01.models.SystemData + :vartype system_data: ~azure.mgmt.storage.v2024_01_01.models.SystemData :ivar last_modified_time: Returns the last modified date and time of the blob inventory policy. :vartype last_modified_time: ~datetime.datetime :ivar policy: The storage account blob inventory policy object. It is composed of policy rules. - :vartype policy: ~azure.mgmt.storage.v2023_05_01.models.BlobInventoryPolicySchema + :vartype policy: ~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicySchema """ _validation = { @@ -682,7 +794,7 @@ def __init__(self, *, policy: Optional["_models.BlobInventoryPolicySchema"] = No """ :keyword policy: The storage account blob inventory policy object. It is composed of policy rules. - :paramtype policy: ~azure.mgmt.storage.v2023_05_01.models.BlobInventoryPolicySchema + :paramtype policy: ~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicySchema """ super().__init__(**kwargs) self.system_data = None @@ -696,17 +808,17 @@ class BlobInventoryPolicyDefinition(_serialization.Model): All required parameters must be populated in order to send to server. :ivar filters: An object that defines the filter set. - :vartype filters: ~azure.mgmt.storage.v2023_05_01.models.BlobInventoryPolicyFilter + :vartype filters: ~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicyFilter :ivar format: This is a required field, it specifies the format for the inventory files. Required. Known values are: "Csv" and "Parquet". - :vartype format: str or ~azure.mgmt.storage.v2023_05_01.models.Format + :vartype format: str or ~azure.mgmt.storage.v2024_01_01.models.Format :ivar schedule: This is a required field. This field is used to schedule an inventory formation. Required. Known values are: "Daily" and "Weekly". - :vartype schedule: str or ~azure.mgmt.storage.v2023_05_01.models.Schedule + :vartype schedule: str or ~azure.mgmt.storage.v2024_01_01.models.Schedule :ivar object_type: This is a required field. This field specifies the scope of the inventory created either at the blob or container level. Required. Known values are: "Blob" and "Container". - :vartype object_type: str or ~azure.mgmt.storage.v2023_05_01.models.ObjectType + :vartype object_type: str or ~azure.mgmt.storage.v2024_01_01.models.ObjectType :ivar schema_fields: This is a required field. This field specifies the fields and properties of the object to be included in the inventory. The Schema field value 'Name' is always required. The valid values for this field for the 'Blob' definition.objectType include 'Name, @@ -756,17 +868,17 @@ def __init__( ) -> None: """ :keyword filters: An object that defines the filter set. - :paramtype filters: ~azure.mgmt.storage.v2023_05_01.models.BlobInventoryPolicyFilter + :paramtype filters: ~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicyFilter :keyword format: This is a required field, it specifies the format for the inventory files. Required. Known values are: "Csv" and "Parquet". - :paramtype format: str or ~azure.mgmt.storage.v2023_05_01.models.Format + :paramtype format: str or ~azure.mgmt.storage.v2024_01_01.models.Format :keyword schedule: This is a required field. This field is used to schedule an inventory formation. Required. Known values are: "Daily" and "Weekly". - :paramtype schedule: str or ~azure.mgmt.storage.v2023_05_01.models.Schedule + :paramtype schedule: str or ~azure.mgmt.storage.v2024_01_01.models.Schedule :keyword object_type: This is a required field. This field specifies the scope of the inventory created either at the blob or container level. Required. Known values are: "Blob" and "Container". - :paramtype object_type: str or ~azure.mgmt.storage.v2023_05_01.models.ObjectType + :paramtype object_type: str or ~azure.mgmt.storage.v2024_01_01.models.ObjectType :keyword schema_fields: This is a required field. This field specifies the fields and properties of the object to be included in the inventory. The Schema field value 'Name' is always required. The valid values for this field for the 'Blob' definition.objectType include @@ -828,7 +940,7 @@ class BlobInventoryPolicyFilter(_serialization.Model): excluded. :vartype include_deleted: bool :ivar creation_time: This property is used to filter objects based on the object creation time. - :vartype creation_time: ~azure.mgmt.storage.v2023_05_01.models.BlobInventoryCreationTime + :vartype creation_time: ~azure.mgmt.storage.v2024_01_01.models.BlobInventoryCreationTime """ _attribute_map = { @@ -881,7 +993,7 @@ def __init__( :paramtype include_deleted: bool :keyword creation_time: This property is used to filter objects based on the object creation time. - :paramtype creation_time: ~azure.mgmt.storage.v2023_05_01.models.BlobInventoryCreationTime + :paramtype creation_time: ~azure.mgmt.storage.v2024_01_01.models.BlobInventoryCreationTime """ super().__init__(**kwargs) self.prefix_match = prefix_match @@ -907,7 +1019,7 @@ class BlobInventoryPolicyRule(_serialization.Model): Required. :vartype destination: str :ivar definition: An object that defines the blob inventory policy rule. Required. - :vartype definition: ~azure.mgmt.storage.v2023_05_01.models.BlobInventoryPolicyDefinition + :vartype definition: ~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicyDefinition """ _validation = { @@ -943,7 +1055,7 @@ def __init__( pre-created. Required. :paramtype destination: str :keyword definition: An object that defines the blob inventory policy rule. Required. - :paramtype definition: ~azure.mgmt.storage.v2023_05_01.models.BlobInventoryPolicyDefinition + :paramtype definition: ~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicyDefinition """ super().__init__(**kwargs) self.enabled = enabled @@ -965,10 +1077,10 @@ class BlobInventoryPolicySchema(_serialization.Model): destination container name must be specified at the rule level 'policy.rule.destination'. :vartype destination: str :ivar type: The valid value is Inventory. Required. "Inventory" - :vartype type: str or ~azure.mgmt.storage.v2023_05_01.models.InventoryRuleType + :vartype type: str or ~azure.mgmt.storage.v2024_01_01.models.InventoryRuleType :ivar rules: The storage account blob inventory policy rules. The rule is applied when it is enabled. Required. - :vartype rules: list[~azure.mgmt.storage.v2023_05_01.models.BlobInventoryPolicyRule] + :vartype rules: list[~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicyRule] """ _validation = { @@ -997,10 +1109,10 @@ def __init__( :keyword enabled: Policy is enabled if set to true. Required. :paramtype enabled: bool :keyword type: The valid value is Inventory. Required. "Inventory" - :paramtype type: str or ~azure.mgmt.storage.v2023_05_01.models.InventoryRuleType + :paramtype type: str or ~azure.mgmt.storage.v2024_01_01.models.InventoryRuleType :keyword rules: The storage account blob inventory policy rules. The rule is applied when it is enabled. Required. - :paramtype rules: list[~azure.mgmt.storage.v2023_05_01.models.BlobInventoryPolicyRule] + :paramtype rules: list[~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicyRule] """ super().__init__(**kwargs) self.enabled = enabled @@ -1017,7 +1129,7 @@ class BlobRestoreParameters(_serialization.Model): :ivar time_to_restore: Restore blob to the specified time. Required. :vartype time_to_restore: ~datetime.datetime :ivar blob_ranges: Blob ranges to restore. Required. - :vartype blob_ranges: list[~azure.mgmt.storage.v2023_05_01.models.BlobRestoreRange] + :vartype blob_ranges: list[~azure.mgmt.storage.v2024_01_01.models.BlobRestoreRange] """ _validation = { @@ -1037,7 +1149,7 @@ def __init__( :keyword time_to_restore: Restore blob to the specified time. Required. :paramtype time_to_restore: ~datetime.datetime :keyword blob_ranges: Blob ranges to restore. Required. - :paramtype blob_ranges: list[~azure.mgmt.storage.v2023_05_01.models.BlobRestoreRange] + :paramtype blob_ranges: list[~azure.mgmt.storage.v2024_01_01.models.BlobRestoreRange] """ super().__init__(**kwargs) self.time_to_restore = time_to_restore @@ -1086,13 +1198,13 @@ class BlobRestoreStatus(_serialization.Model): that blob restore is ongoing. - Complete: Indicates that blob restore has been completed successfully. - Failed: Indicates that blob restore is failed. Known values are: "InProgress", "Complete", and "Failed". - :vartype status: str or ~azure.mgmt.storage.v2023_05_01.models.BlobRestoreProgressStatus + :vartype status: str or ~azure.mgmt.storage.v2024_01_01.models.BlobRestoreProgressStatus :ivar failure_reason: Failure reason when blob restore is failed. :vartype failure_reason: str :ivar restore_id: Id for tracking blob restore request. :vartype restore_id: str :ivar parameters: Blob restore request parameters. - :vartype parameters: ~azure.mgmt.storage.v2023_05_01.models.BlobRestoreParameters + :vartype parameters: ~azure.mgmt.storage.v2024_01_01.models.BlobRestoreParameters """ _validation = { @@ -1124,7 +1236,7 @@ class BlobServiceItems(_serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. :ivar value: List of blob services returned. - :vartype value: list[~azure.mgmt.storage.v2023_05_01.models.BlobServiceProperties] + :vartype value: list[~azure.mgmt.storage.v2024_01_01.models.BlobServiceProperties] """ _validation = { @@ -1155,32 +1267,32 @@ class BlobServiceProperties(Resource): "Microsoft.Storage/storageAccounts". :vartype type: str :ivar sku: Sku name and tier. - :vartype sku: ~azure.mgmt.storage.v2023_05_01.models.Sku + :vartype sku: ~azure.mgmt.storage.v2024_01_01.models.Sku :ivar cors: Specifies CORS rules for the Blob service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the Blob service. - :vartype cors: ~azure.mgmt.storage.v2023_05_01.models.CorsRules + :vartype cors: ~azure.mgmt.storage.v2024_01_01.models.CorsRules :ivar default_service_version: DefaultServiceVersion indicates the default version to use for requests to the Blob service if an incoming request’s version is not specified. Possible values include version 2008-10-27 and all more recent versions. :vartype default_service_version: str :ivar delete_retention_policy: The blob service properties for blob soft delete. - :vartype delete_retention_policy: ~azure.mgmt.storage.v2023_05_01.models.DeleteRetentionPolicy + :vartype delete_retention_policy: ~azure.mgmt.storage.v2024_01_01.models.DeleteRetentionPolicy :ivar is_versioning_enabled: Versioning is enabled if set to true. :vartype is_versioning_enabled: bool :ivar automatic_snapshot_policy_enabled: Deprecated in favor of isVersioningEnabled property. :vartype automatic_snapshot_policy_enabled: bool :ivar change_feed: The blob service properties for change feed events. - :vartype change_feed: ~azure.mgmt.storage.v2023_05_01.models.ChangeFeed + :vartype change_feed: ~azure.mgmt.storage.v2024_01_01.models.ChangeFeed :ivar restore_policy: The blob service properties for blob restore policy. - :vartype restore_policy: ~azure.mgmt.storage.v2023_05_01.models.RestorePolicyProperties + :vartype restore_policy: ~azure.mgmt.storage.v2024_01_01.models.RestorePolicyProperties :ivar container_delete_retention_policy: The blob service properties for container soft delete. :vartype container_delete_retention_policy: - ~azure.mgmt.storage.v2023_05_01.models.DeleteRetentionPolicy + ~azure.mgmt.storage.v2024_01_01.models.DeleteRetentionPolicy :ivar last_access_time_tracking_policy: The blob service property to configure last access time based tracking policy. :vartype last_access_time_tracking_policy: - ~azure.mgmt.storage.v2023_05_01.models.LastAccessTimeTrackingPolicy + ~azure.mgmt.storage.v2024_01_01.models.LastAccessTimeTrackingPolicy """ _validation = { @@ -1230,31 +1342,31 @@ def __init__( :keyword cors: Specifies CORS rules for the Blob service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the Blob service. - :paramtype cors: ~azure.mgmt.storage.v2023_05_01.models.CorsRules + :paramtype cors: ~azure.mgmt.storage.v2024_01_01.models.CorsRules :keyword default_service_version: DefaultServiceVersion indicates the default version to use for requests to the Blob service if an incoming request’s version is not specified. Possible values include version 2008-10-27 and all more recent versions. :paramtype default_service_version: str :keyword delete_retention_policy: The blob service properties for blob soft delete. :paramtype delete_retention_policy: - ~azure.mgmt.storage.v2023_05_01.models.DeleteRetentionPolicy + ~azure.mgmt.storage.v2024_01_01.models.DeleteRetentionPolicy :keyword is_versioning_enabled: Versioning is enabled if set to true. :paramtype is_versioning_enabled: bool :keyword automatic_snapshot_policy_enabled: Deprecated in favor of isVersioningEnabled property. :paramtype automatic_snapshot_policy_enabled: bool :keyword change_feed: The blob service properties for change feed events. - :paramtype change_feed: ~azure.mgmt.storage.v2023_05_01.models.ChangeFeed + :paramtype change_feed: ~azure.mgmt.storage.v2024_01_01.models.ChangeFeed :keyword restore_policy: The blob service properties for blob restore policy. - :paramtype restore_policy: ~azure.mgmt.storage.v2023_05_01.models.RestorePolicyProperties + :paramtype restore_policy: ~azure.mgmt.storage.v2024_01_01.models.RestorePolicyProperties :keyword container_delete_retention_policy: The blob service properties for container soft delete. :paramtype container_delete_retention_policy: - ~azure.mgmt.storage.v2023_05_01.models.DeleteRetentionPolicy + ~azure.mgmt.storage.v2024_01_01.models.DeleteRetentionPolicy :keyword last_access_time_tracking_policy: The blob service property to configure last access time based tracking policy. :paramtype last_access_time_tracking_policy: - ~azure.mgmt.storage.v2023_05_01.models.LastAccessTimeTrackingPolicy + ~azure.mgmt.storage.v2024_01_01.models.LastAccessTimeTrackingPolicy """ super().__init__(**kwargs) self.sku = None @@ -1269,6 +1381,42 @@ def __init__( self.last_access_time_tracking_policy = last_access_time_tracking_policy +class BurstingConstants(_serialization.Model): + """Constants used for calculating included burst IOPS and maximum burst credits for IOPS for a + file share in the storage account. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar burst_floor_iops: The guaranteed floor of burst IOPS for small file shares. + :vartype burst_floor_iops: int + :ivar burst_io_scalar: The scalar against provisioned IOPS in the file share included burst + IOPS formula. + :vartype burst_io_scalar: float + :ivar burst_timeframe_seconds: The time frame for bursting in seconds in the file share maximum + burst credits for IOPS formula. + :vartype burst_timeframe_seconds: int + """ + + _validation = { + "burst_floor_iops": {"readonly": True}, + "burst_io_scalar": {"readonly": True}, + "burst_timeframe_seconds": {"readonly": True}, + } + + _attribute_map = { + "burst_floor_iops": {"key": "burstFloorIOPS", "type": "int"}, + "burst_io_scalar": {"key": "burstIOScalar", "type": "float"}, + "burst_timeframe_seconds": {"key": "burstTimeframeSeconds", "type": "int"}, + } + + def __init__(self, **kwargs: Any) -> None: + """ """ + super().__init__(**kwargs) + self.burst_floor_iops = None + self.burst_io_scalar = None + self.burst_timeframe_seconds = None + + class ChangeFeed(_serialization.Model): """The blob service properties for change feed events. @@ -1317,7 +1465,7 @@ class CheckNameAvailabilityResult(_serialization.Model): :ivar reason: Gets the reason that a storage account name could not be used. The Reason element is only returned if NameAvailable is false. Known values are: "AccountNameInvalid" and "AlreadyExists". - :vartype reason: str or ~azure.mgmt.storage.v2023_05_01.models.Reason + :vartype reason: str or ~azure.mgmt.storage.v2024_01_01.models.Reason :ivar message: Gets an error message explaining the Reason value in more detail. :vartype message: str """ @@ -1355,7 +1503,7 @@ class CloudErrorBody(_serialization.Model): error. :vartype target: str :ivar details: A list of additional details about the error. - :vartype details: list[~azure.mgmt.storage.v2023_05_01.models.CloudErrorBody] + :vartype details: list[~azure.mgmt.storage.v2024_01_01.models.CloudErrorBody] """ _attribute_map = { @@ -1385,7 +1533,7 @@ def __init__( error. :paramtype target: str :keyword details: A list of additional details about the error. - :paramtype details: list[~azure.mgmt.storage.v2023_05_01.models.CloudErrorBody] + :paramtype details: list[~azure.mgmt.storage.v2024_01_01.models.CloudErrorBody] """ super().__init__(**kwargs) self.code = code @@ -1404,7 +1552,7 @@ class CorsRule(_serialization.Model): :vartype allowed_origins: list[str] :ivar allowed_methods: Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin. Required. - :vartype allowed_methods: list[str or ~azure.mgmt.storage.v2023_05_01.models.AllowedMethods] + :vartype allowed_methods: list[str or ~azure.mgmt.storage.v2024_01_01.models.AllowedMethods] :ivar max_age_in_seconds: Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response. Required. :vartype max_age_in_seconds: int @@ -1448,7 +1596,7 @@ def __init__( :paramtype allowed_origins: list[str] :keyword allowed_methods: Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin. Required. - :paramtype allowed_methods: list[str or ~azure.mgmt.storage.v2023_05_01.models.AllowedMethods] + :paramtype allowed_methods: list[str or ~azure.mgmt.storage.v2024_01_01.models.AllowedMethods] :keyword max_age_in_seconds: Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response. Required. :paramtype max_age_in_seconds: int @@ -1472,7 +1620,7 @@ class CorsRules(_serialization.Model): :ivar cors_rules: The List of CORS rules. You can include up to five CorsRule elements in the request. - :vartype cors_rules: list[~azure.mgmt.storage.v2023_05_01.models.CorsRule] + :vartype cors_rules: list[~azure.mgmt.storage.v2024_01_01.models.CorsRule] """ _attribute_map = { @@ -1483,7 +1631,7 @@ def __init__(self, *, cors_rules: Optional[List["_models.CorsRule"]] = None, **k """ :keyword cors_rules: The List of CORS rules. You can include up to five CorsRule elements in the request. - :paramtype cors_rules: list[~azure.mgmt.storage.v2023_05_01.models.CorsRule] + :paramtype cors_rules: list[~azure.mgmt.storage.v2024_01_01.models.CorsRule] """ super().__init__(**kwargs) self.cors_rules = cors_rules @@ -1723,7 +1871,7 @@ class DeletedAccountListResult(_serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. :ivar value: Gets the list of deleted accounts and their properties. - :vartype value: list[~azure.mgmt.storage.v2023_05_01.models.DeletedAccount] + :vartype value: list[~azure.mgmt.storage.v2024_01_01.models.DeletedAccount] :ivar next_link: Request URL that can be used to query next page of deleted accounts. Returned when total number of requested deleted accounts exceed maximum page size. :vartype next_link: str @@ -1862,18 +2010,18 @@ class Encryption(_serialization.Model): """The encryption settings on the storage account. :ivar services: List of services which support encryption. - :vartype services: ~azure.mgmt.storage.v2023_05_01.models.EncryptionServices + :vartype services: ~azure.mgmt.storage.v2024_01_01.models.EncryptionServices :ivar key_source: The encryption keySource (provider). Possible values (case-insensitive): Microsoft.Storage, Microsoft.Keyvault. Known values are: "Microsoft.Storage" and "Microsoft.Keyvault". - :vartype key_source: str or ~azure.mgmt.storage.v2023_05_01.models.KeySource + :vartype key_source: str or ~azure.mgmt.storage.v2024_01_01.models.KeySource :ivar require_infrastructure_encryption: A boolean indicating whether or not the service applies a secondary layer of encryption with platform managed keys for data at rest. :vartype require_infrastructure_encryption: bool :ivar key_vault_properties: Properties provided by key vault. - :vartype key_vault_properties: ~azure.mgmt.storage.v2023_05_01.models.KeyVaultProperties + :vartype key_vault_properties: ~azure.mgmt.storage.v2024_01_01.models.KeyVaultProperties :ivar encryption_identity: The identity to be used with service-side encryption at rest. - :vartype encryption_identity: ~azure.mgmt.storage.v2023_05_01.models.EncryptionIdentity + :vartype encryption_identity: ~azure.mgmt.storage.v2024_01_01.models.EncryptionIdentity """ _attribute_map = { @@ -1896,18 +2044,18 @@ def __init__( ) -> None: """ :keyword services: List of services which support encryption. - :paramtype services: ~azure.mgmt.storage.v2023_05_01.models.EncryptionServices + :paramtype services: ~azure.mgmt.storage.v2024_01_01.models.EncryptionServices :keyword key_source: The encryption keySource (provider). Possible values (case-insensitive): Microsoft.Storage, Microsoft.Keyvault. Known values are: "Microsoft.Storage" and "Microsoft.Keyvault". - :paramtype key_source: str or ~azure.mgmt.storage.v2023_05_01.models.KeySource + :paramtype key_source: str or ~azure.mgmt.storage.v2024_01_01.models.KeySource :keyword require_infrastructure_encryption: A boolean indicating whether or not the service applies a secondary layer of encryption with platform managed keys for data at rest. :paramtype require_infrastructure_encryption: bool :keyword key_vault_properties: Properties provided by key vault. - :paramtype key_vault_properties: ~azure.mgmt.storage.v2023_05_01.models.KeyVaultProperties + :paramtype key_vault_properties: ~azure.mgmt.storage.v2024_01_01.models.KeyVaultProperties :keyword encryption_identity: The identity to be used with service-side encryption at rest. - :paramtype encryption_identity: ~azure.mgmt.storage.v2023_05_01.models.EncryptionIdentity + :paramtype encryption_identity: ~azure.mgmt.storage.v2024_01_01.models.EncryptionIdentity """ super().__init__(**kwargs) self.services = services @@ -1971,10 +2119,10 @@ class EncryptionScope(Resource): :ivar source: The provider for the encryption scope. Possible values (case-insensitive): Microsoft.Storage, Microsoft.KeyVault. Known values are: "Microsoft.Storage" and "Microsoft.KeyVault". - :vartype source: str or ~azure.mgmt.storage.v2023_05_01.models.EncryptionScopeSource + :vartype source: str or ~azure.mgmt.storage.v2024_01_01.models.EncryptionScopeSource :ivar state: The state of the encryption scope. Possible values (case-insensitive): Enabled, Disabled. Known values are: "Enabled" and "Disabled". - :vartype state: str or ~azure.mgmt.storage.v2023_05_01.models.EncryptionScopeState + :vartype state: str or ~azure.mgmt.storage.v2024_01_01.models.EncryptionScopeState :ivar creation_time: Gets the creation date and time of the encryption scope in UTC. :vartype creation_time: ~datetime.datetime :ivar last_modified_time: Gets the last modification date and time of the encryption scope in @@ -1983,7 +2131,7 @@ class EncryptionScope(Resource): :ivar key_vault_properties: The key vault properties for the encryption scope. This is a required field if encryption scope 'source' attribute is set to 'Microsoft.KeyVault'. :vartype key_vault_properties: - ~azure.mgmt.storage.v2023_05_01.models.EncryptionScopeKeyVaultProperties + ~azure.mgmt.storage.v2024_01_01.models.EncryptionScopeKeyVaultProperties :ivar require_infrastructure_encryption: A boolean indicating whether or not the service applies a secondary layer of encryption with platform managed keys for data at rest. :vartype require_infrastructure_encryption: bool @@ -2022,14 +2170,14 @@ def __init__( :keyword source: The provider for the encryption scope. Possible values (case-insensitive): Microsoft.Storage, Microsoft.KeyVault. Known values are: "Microsoft.Storage" and "Microsoft.KeyVault". - :paramtype source: str or ~azure.mgmt.storage.v2023_05_01.models.EncryptionScopeSource + :paramtype source: str or ~azure.mgmt.storage.v2024_01_01.models.EncryptionScopeSource :keyword state: The state of the encryption scope. Possible values (case-insensitive): Enabled, Disabled. Known values are: "Enabled" and "Disabled". - :paramtype state: str or ~azure.mgmt.storage.v2023_05_01.models.EncryptionScopeState + :paramtype state: str or ~azure.mgmt.storage.v2024_01_01.models.EncryptionScopeState :keyword key_vault_properties: The key vault properties for the encryption scope. This is a required field if encryption scope 'source' attribute is set to 'Microsoft.KeyVault'. :paramtype key_vault_properties: - ~azure.mgmt.storage.v2023_05_01.models.EncryptionScopeKeyVaultProperties + ~azure.mgmt.storage.v2024_01_01.models.EncryptionScopeKeyVaultProperties :keyword require_infrastructure_encryption: A boolean indicating whether or not the service applies a secondary layer of encryption with platform managed keys for data at rest. :paramtype require_infrastructure_encryption: bool @@ -2091,7 +2239,7 @@ class EncryptionScopeListResult(_serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. :ivar value: List of encryption scopes requested. - :vartype value: list[~azure.mgmt.storage.v2023_05_01.models.EncryptionScope] + :vartype value: list[~azure.mgmt.storage.v2024_01_01.models.EncryptionScope] :ivar next_link: Request URL that can be used to query next page of encryption scopes. Returned when total number of requested encryption scopes exceeds the maximum page size. :vartype next_link: str @@ -2128,7 +2276,7 @@ class EncryptionService(_serialization.Model): :ivar key_type: Encryption key type to be used for the encryption service. 'Account' key type implies that an account-scoped encryption key will be used. 'Service' key type implies that a default service key is used. Known values are: "Service" and "Account". - :vartype key_type: str or ~azure.mgmt.storage.v2023_05_01.models.KeyType + :vartype key_type: str or ~azure.mgmt.storage.v2024_01_01.models.KeyType """ _validation = { @@ -2151,7 +2299,7 @@ def __init__( :keyword key_type: Encryption key type to be used for the encryption service. 'Account' key type implies that an account-scoped encryption key will be used. 'Service' key type implies that a default service key is used. Known values are: "Service" and "Account". - :paramtype key_type: str or ~azure.mgmt.storage.v2023_05_01.models.KeyType + :paramtype key_type: str or ~azure.mgmt.storage.v2024_01_01.models.KeyType """ super().__init__(**kwargs) self.enabled = enabled @@ -2163,13 +2311,13 @@ class EncryptionServices(_serialization.Model): """A list of services that support encryption. :ivar blob: The encryption function of the blob storage service. - :vartype blob: ~azure.mgmt.storage.v2023_05_01.models.EncryptionService + :vartype blob: ~azure.mgmt.storage.v2024_01_01.models.EncryptionService :ivar file: The encryption function of the file storage service. - :vartype file: ~azure.mgmt.storage.v2023_05_01.models.EncryptionService + :vartype file: ~azure.mgmt.storage.v2024_01_01.models.EncryptionService :ivar table: The encryption function of the table storage service. - :vartype table: ~azure.mgmt.storage.v2023_05_01.models.EncryptionService + :vartype table: ~azure.mgmt.storage.v2024_01_01.models.EncryptionService :ivar queue: The encryption function of the queue storage service. - :vartype queue: ~azure.mgmt.storage.v2023_05_01.models.EncryptionService + :vartype queue: ~azure.mgmt.storage.v2024_01_01.models.EncryptionService """ _attribute_map = { @@ -2190,13 +2338,13 @@ def __init__( ) -> None: """ :keyword blob: The encryption function of the blob storage service. - :paramtype blob: ~azure.mgmt.storage.v2023_05_01.models.EncryptionService + :paramtype blob: ~azure.mgmt.storage.v2024_01_01.models.EncryptionService :keyword file: The encryption function of the file storage service. - :paramtype file: ~azure.mgmt.storage.v2023_05_01.models.EncryptionService + :paramtype file: ~azure.mgmt.storage.v2024_01_01.models.EncryptionService :keyword table: The encryption function of the table storage service. - :paramtype table: ~azure.mgmt.storage.v2023_05_01.models.EncryptionService + :paramtype table: ~azure.mgmt.storage.v2024_01_01.models.EncryptionService :keyword queue: The encryption function of the queue storage service. - :paramtype queue: ~azure.mgmt.storage.v2023_05_01.models.EncryptionService + :paramtype queue: ~azure.mgmt.storage.v2024_01_01.models.EncryptionService """ super().__init__(**kwargs) self.blob = blob @@ -2225,10 +2373,10 @@ class Endpoints(_serialization.Model): :vartype dfs: str :ivar microsoft_endpoints: Gets the microsoft routing storage endpoints. :vartype microsoft_endpoints: - ~azure.mgmt.storage.v2023_05_01.models.StorageAccountMicrosoftEndpoints + ~azure.mgmt.storage.v2024_01_01.models.StorageAccountMicrosoftEndpoints :ivar internet_endpoints: Gets the internet routing storage endpoints. :vartype internet_endpoints: - ~azure.mgmt.storage.v2023_05_01.models.StorageAccountInternetEndpoints + ~azure.mgmt.storage.v2024_01_01.models.StorageAccountInternetEndpoints """ _validation = { @@ -2261,10 +2409,10 @@ def __init__( """ :keyword microsoft_endpoints: Gets the microsoft routing storage endpoints. :paramtype microsoft_endpoints: - ~azure.mgmt.storage.v2023_05_01.models.StorageAccountMicrosoftEndpoints + ~azure.mgmt.storage.v2024_01_01.models.StorageAccountMicrosoftEndpoints :keyword internet_endpoints: Gets the internet routing storage endpoints. :paramtype internet_endpoints: - ~azure.mgmt.storage.v2023_05_01.models.StorageAccountInternetEndpoints + ~azure.mgmt.storage.v2024_01_01.models.StorageAccountInternetEndpoints """ super().__init__(**kwargs) self.blob = None @@ -2317,9 +2465,9 @@ class ErrorDetail(_serialization.Model): :ivar target: The error target. :vartype target: str :ivar details: The error details. - :vartype details: list[~azure.mgmt.storage.v2023_05_01.models.ErrorDetail] + :vartype details: list[~azure.mgmt.storage.v2024_01_01.models.ErrorDetail] :ivar additional_info: The error additional info. - :vartype additional_info: list[~azure.mgmt.storage.v2023_05_01.models.ErrorAdditionalInfo] + :vartype additional_info: list[~azure.mgmt.storage.v2024_01_01.models.ErrorAdditionalInfo] """ _validation = { @@ -2352,7 +2500,7 @@ class ErrorResponse(_serialization.Model): """An error response from the storage resource provider. :ivar error: Azure Storage Resource Provider error response body. - :vartype error: ~azure.mgmt.storage.v2023_05_01.models.ErrorResponseBody + :vartype error: ~azure.mgmt.storage.v2024_01_01.models.ErrorResponseBody """ _attribute_map = { @@ -2362,7 +2510,7 @@ class ErrorResponse(_serialization.Model): def __init__(self, *, error: Optional["_models.ErrorResponseBody"] = None, **kwargs: Any) -> None: """ :keyword error: Azure Storage Resource Provider error response body. - :paramtype error: ~azure.mgmt.storage.v2023_05_01.models.ErrorResponseBody + :paramtype error: ~azure.mgmt.storage.v2024_01_01.models.ErrorResponseBody """ super().__init__(**kwargs) self.error = error @@ -2373,7 +2521,7 @@ class ErrorResponseAutoGenerated(_serialization.Model): operations. (This also follows the OData error response format.). :ivar error: The error object. - :vartype error: ~azure.mgmt.storage.v2023_05_01.models.ErrorDetail + :vartype error: ~azure.mgmt.storage.v2024_01_01.models.ErrorDetail """ _attribute_map = { @@ -2383,7 +2531,7 @@ class ErrorResponseAutoGenerated(_serialization.Model): def __init__(self, *, error: Optional["_models.ErrorDetail"] = None, **kwargs: Any) -> None: """ :keyword error: The error object. - :paramtype error: ~azure.mgmt.storage.v2023_05_01.models.ErrorDetail + :paramtype error: ~azure.mgmt.storage.v2024_01_01.models.ErrorDetail """ super().__init__(**kwargs) self.error = error @@ -2459,9 +2607,9 @@ class ExecutionTrigger(_serialization.Model): :ivar type: The trigger type of the storage task assignment execution. Required. Known values are: "RunOnce" and "OnSchedule". - :vartype type: str or ~azure.mgmt.storage.v2023_05_01.models.TriggerType + :vartype type: str or ~azure.mgmt.storage.v2024_01_01.models.TriggerType :ivar parameters: The trigger parameters of the storage task assignment execution. Required. - :vartype parameters: ~azure.mgmt.storage.v2023_05_01.models.TriggerParameters + :vartype parameters: ~azure.mgmt.storage.v2024_01_01.models.TriggerParameters """ _validation = { @@ -2480,9 +2628,9 @@ def __init__( """ :keyword type: The trigger type of the storage task assignment execution. Required. Known values are: "RunOnce" and "OnSchedule". - :paramtype type: str or ~azure.mgmt.storage.v2023_05_01.models.TriggerType + :paramtype type: str or ~azure.mgmt.storage.v2024_01_01.models.TriggerType :keyword parameters: The trigger parameters of the storage task assignment execution. Required. - :paramtype parameters: ~azure.mgmt.storage.v2023_05_01.models.TriggerParameters + :paramtype parameters: ~azure.mgmt.storage.v2024_01_01.models.TriggerParameters """ super().__init__(**kwargs) self.type = type @@ -2494,9 +2642,9 @@ class ExecutionTriggerUpdate(_serialization.Model): :ivar type: The trigger type of the storage task assignment execution. Known values are: "RunOnce" and "OnSchedule". - :vartype type: str or ~azure.mgmt.storage.v2023_05_01.models.TriggerType + :vartype type: str or ~azure.mgmt.storage.v2024_01_01.models.TriggerType :ivar parameters: The trigger parameters of the storage task assignment execution. - :vartype parameters: ~azure.mgmt.storage.v2023_05_01.models.TriggerParametersUpdate + :vartype parameters: ~azure.mgmt.storage.v2024_01_01.models.TriggerParametersUpdate """ _attribute_map = { @@ -2514,9 +2662,9 @@ def __init__( """ :keyword type: The trigger type of the storage task assignment execution. Known values are: "RunOnce" and "OnSchedule". - :paramtype type: str or ~azure.mgmt.storage.v2023_05_01.models.TriggerType + :paramtype type: str or ~azure.mgmt.storage.v2024_01_01.models.TriggerType :keyword parameters: The trigger parameters of the storage task assignment execution. - :paramtype parameters: ~azure.mgmt.storage.v2023_05_01.models.TriggerParametersUpdate + :paramtype parameters: ~azure.mgmt.storage.v2024_01_01.models.TriggerParametersUpdate """ super().__init__(**kwargs) self.type = type @@ -2529,7 +2677,7 @@ class ExtendedLocation(_serialization.Model): :ivar name: The name of the extended location. :vartype name: str :ivar type: The type of the extended location. "EdgeZone" - :vartype type: str or ~azure.mgmt.storage.v2023_05_01.models.ExtendedLocationTypes + :vartype type: str or ~azure.mgmt.storage.v2024_01_01.models.ExtendedLocationTypes """ _attribute_map = { @@ -2548,7 +2696,7 @@ def __init__( :keyword name: The name of the extended location. :paramtype name: str :keyword type: The type of the extended location. "EdgeZone" - :paramtype type: str or ~azure.mgmt.storage.v2023_05_01.models.ExtendedLocationTypes + :paramtype type: str or ~azure.mgmt.storage.v2024_01_01.models.ExtendedLocationTypes """ super().__init__(**kwargs) self.name = name @@ -2561,7 +2709,7 @@ class FileServiceItems(_serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. :ivar value: List of file services returned. - :vartype value: list[~azure.mgmt.storage.v2023_05_01.models.FileServiceProperties] + :vartype value: list[~azure.mgmt.storage.v2024_01_01.models.FileServiceProperties] """ _validation = { @@ -2592,16 +2740,16 @@ class FileServiceProperties(Resource): "Microsoft.Storage/storageAccounts". :vartype type: str :ivar sku: Sku name and tier. - :vartype sku: ~azure.mgmt.storage.v2023_05_01.models.Sku + :vartype sku: ~azure.mgmt.storage.v2024_01_01.models.Sku :ivar cors: Specifies CORS rules for the File service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the File service. - :vartype cors: ~azure.mgmt.storage.v2023_05_01.models.CorsRules + :vartype cors: ~azure.mgmt.storage.v2024_01_01.models.CorsRules :ivar share_delete_retention_policy: The file service properties for share soft delete. :vartype share_delete_retention_policy: - ~azure.mgmt.storage.v2023_05_01.models.DeleteRetentionPolicy + ~azure.mgmt.storage.v2024_01_01.models.DeleteRetentionPolicy :ivar protocol_settings: Protocol settings for file service. - :vartype protocol_settings: ~azure.mgmt.storage.v2023_05_01.models.ProtocolSettings + :vartype protocol_settings: ~azure.mgmt.storage.v2024_01_01.models.ProtocolSettings """ _validation = { @@ -2636,12 +2784,12 @@ def __init__( :keyword cors: Specifies CORS rules for the File service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the File service. - :paramtype cors: ~azure.mgmt.storage.v2023_05_01.models.CorsRules + :paramtype cors: ~azure.mgmt.storage.v2024_01_01.models.CorsRules :keyword share_delete_retention_policy: The file service properties for share soft delete. :paramtype share_delete_retention_policy: - ~azure.mgmt.storage.v2023_05_01.models.DeleteRetentionPolicy + ~azure.mgmt.storage.v2024_01_01.models.DeleteRetentionPolicy :keyword protocol_settings: Protocol settings for file service. - :paramtype protocol_settings: ~azure.mgmt.storage.v2023_05_01.models.ProtocolSettings + :paramtype protocol_settings: ~azure.mgmt.storage.v2024_01_01.models.ProtocolSettings """ super().__init__(**kwargs) self.sku = None @@ -2650,6 +2798,123 @@ def __init__( self.protocol_settings = protocol_settings +class FileServiceUsage(Resource): + """The usage of file service in storage account. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar properties: File service usage in storage account including account limits, file share + limits and constants used in recommendations and bursting formula. + :vartype properties: ~azure.mgmt.storage.v2024_01_01.models.FileServiceUsageProperties + """ + + _validation = { + "id": {"readonly": True}, + "name": {"readonly": True}, + "type": {"readonly": True}, + "properties": {"readonly": True}, + } + + _attribute_map = { + "id": {"key": "id", "type": "str"}, + "name": {"key": "name", "type": "str"}, + "type": {"key": "type", "type": "str"}, + "properties": {"key": "properties", "type": "FileServiceUsageProperties"}, + } + + def __init__(self, **kwargs: Any) -> None: + """ """ + super().__init__(**kwargs) + self.properties = None + + +class FileServiceUsageProperties(_serialization.Model): + """File service usage in storage account including account limits, file share limits and constants + used in recommendations and bursting formula. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar storage_account_limits: Maximum provisioned storage, IOPS, bandwidth and number of file + shares limits for the storage account. + :vartype storage_account_limits: ~azure.mgmt.storage.v2024_01_01.models.AccountLimits + :ivar file_share_limits: Minimum and maximum provisioned storage, IOPS and bandwidth limits for + a file share in the storage account. + :vartype file_share_limits: ~azure.mgmt.storage.v2024_01_01.models.FileShareLimits + :ivar file_share_recommendations: Constants used for calculating recommended provisioned IOPS + and bandwidth for a file share in the storage account. + :vartype file_share_recommendations: + ~azure.mgmt.storage.v2024_01_01.models.FileShareRecommendations + :ivar bursting_constants: Constants used for calculating included burst IOPS and maximum burst + credits for IOPS for a file share in the storage account. + :vartype bursting_constants: ~azure.mgmt.storage.v2024_01_01.models.BurstingConstants + :ivar storage_account_usage: Usage of provisioned storage, IOPS, bandwidth and number of file + shares across all live shares and soft-deleted shares in the account. + :vartype storage_account_usage: ~azure.mgmt.storage.v2024_01_01.models.AccountUsage + """ + + _validation = { + "storage_account_limits": {"readonly": True}, + "file_share_limits": {"readonly": True}, + "file_share_recommendations": {"readonly": True}, + "bursting_constants": {"readonly": True}, + "storage_account_usage": {"readonly": True}, + } + + _attribute_map = { + "storage_account_limits": {"key": "storageAccountLimits", "type": "AccountLimits"}, + "file_share_limits": {"key": "fileShareLimits", "type": "FileShareLimits"}, + "file_share_recommendations": {"key": "fileShareRecommendations", "type": "FileShareRecommendations"}, + "bursting_constants": {"key": "burstingConstants", "type": "BurstingConstants"}, + "storage_account_usage": {"key": "storageAccountUsage", "type": "AccountUsage"}, + } + + def __init__(self, **kwargs: Any) -> None: + """ """ + super().__init__(**kwargs) + self.storage_account_limits = None + self.file_share_limits = None + self.file_share_recommendations = None + self.bursting_constants = None + self.storage_account_usage = None + + +class FileServiceUsages(_serialization.Model): + """List file service usages schema. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of file service usages returned. + :vartype value: list[~azure.mgmt.storage.v2024_01_01.models.FileServiceUsage] + :ivar next_link: Request URL that can be used to query next page of file service usages. + Returned when total number of requested file service usages exceed maximum page size. + :vartype next_link: str + """ + + _validation = { + "value": {"readonly": True}, + "next_link": {"readonly": True}, + } + + _attribute_map = { + "value": {"key": "value", "type": "[FileServiceUsage]"}, + "next_link": {"key": "nextLink", "type": "str"}, + } + + def __init__(self, **kwargs: Any) -> None: + """ """ + super().__init__(**kwargs) + self.value = None + self.next_link = None + + class FileShare(AzureEntityResource): """Properties of the file share, including Id, resource name, resource type, Etag. @@ -2669,15 +2934,44 @@ class FileShare(AzureEntityResource): :vartype last_modified_time: ~datetime.datetime :ivar metadata: A name-value pair to associate with the share as metadata. :vartype metadata: dict[str, str] - :ivar share_quota: The maximum size of the share, in gigabytes. Must be greater than 0, and - less than or equal to 5TB (5120). For Large File Shares, the maximum size is 102400. + :ivar share_quota: The provisioned size of the share, in gibibytes. Must be greater than 0, and + less than or equal to 5TB (5120). For Large File Shares, the maximum size is 102400. For file + shares created under Files Provisioned v2 account type, please refer to the GetFileServiceUsage + API response for the minimum and maximum allowed provisioned storage size. :vartype share_quota: int + :ivar provisioned_iops: The provisioned IOPS of the share. This property is only for file + shares created under Files Provisioned v2 account type. Please refer to the GetFileServiceUsage + API response for the minimum and maximum allowed value for provisioned IOPS. + :vartype provisioned_iops: int + :ivar provisioned_bandwidth_mibps: The provisioned bandwidth of the share, in mebibytes per + second. This property is only for file shares created under Files Provisioned v2 account type. + Please refer to the GetFileServiceUsage API response for the minimum and maximum allowed value + for provisioned bandwidth. + :vartype provisioned_bandwidth_mibps: int + :ivar included_burst_iops: The calculated burst IOPS of the share. This property is only for + file shares created under Files Provisioned v2 account type. + :vartype included_burst_iops: int + :ivar max_burst_credits_for_iops: The calculated maximum burst credits for the share. This + property is only for file shares created under Files Provisioned v2 account type. + :vartype max_burst_credits_for_iops: int + :ivar next_allowed_quota_downgrade_time: Returns the next allowed provisioned storage size + downgrade time for the share. This property is only for file shares created under Files + Provisioned v1 SSD and Files Provisioned v2 account type. + :vartype next_allowed_quota_downgrade_time: ~datetime.datetime + :ivar next_allowed_provisioned_iops_downgrade_time: Returns the next allowed provisioned IOPS + downgrade time for the share. This property is only for file shares created under Files + Provisioned v2 account type. + :vartype next_allowed_provisioned_iops_downgrade_time: ~datetime.datetime + :ivar next_allowed_provisioned_bandwidth_downgrade_time: Returns the next allowed provisioned + bandwidth downgrade time for the share. This property is only for file shares created under + Files Provisioned v2 account type. + :vartype next_allowed_provisioned_bandwidth_downgrade_time: ~datetime.datetime :ivar enabled_protocols: The authentication protocol that is used for the file share. Can only be specified when creating a share. Known values are: "SMB" and "NFS". - :vartype enabled_protocols: str or ~azure.mgmt.storage.v2023_05_01.models.EnabledProtocols + :vartype enabled_protocols: str or ~azure.mgmt.storage.v2024_01_01.models.EnabledProtocols :ivar root_squash: The property is for NFS share only. The default is NoRootSquash. Known values are: "NoRootSquash", "RootSquash", and "AllSquash". - :vartype root_squash: str or ~azure.mgmt.storage.v2023_05_01.models.RootSquashType + :vartype root_squash: str or ~azure.mgmt.storage.v2024_01_01.models.RootSquashType :ivar version: The version of the share. :vartype version: str :ivar deleted: Indicates whether the share was deleted. @@ -2689,7 +2983,7 @@ class FileShare(AzureEntityResource): :ivar access_tier: Access tier for specific share. GpV2 account can choose between TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium. Known values are: "TransactionOptimized", "Hot", "Cool", and "Premium". - :vartype access_tier: str or ~azure.mgmt.storage.v2023_05_01.models.ShareAccessTier + :vartype access_tier: str or ~azure.mgmt.storage.v2024_01_01.models.ShareAccessTier :ivar access_tier_change_time: Indicates the last modification time for share access tier. :vartype access_tier_change_time: ~datetime.datetime :ivar access_tier_status: Indicates if there is a pending transition for access tier. @@ -2698,18 +2992,21 @@ class FileShare(AzureEntityResource): value may not include all recently created or recently resized files. :vartype share_usage_bytes: int :ivar lease_status: The lease status of the share. Known values are: "Locked" and "Unlocked". - :vartype lease_status: str or ~azure.mgmt.storage.v2023_05_01.models.LeaseStatus + :vartype lease_status: str or ~azure.mgmt.storage.v2024_01_01.models.LeaseStatus :ivar lease_state: Lease state of the share. Known values are: "Available", "Leased", "Expired", "Breaking", and "Broken". - :vartype lease_state: str or ~azure.mgmt.storage.v2023_05_01.models.LeaseState + :vartype lease_state: str or ~azure.mgmt.storage.v2024_01_01.models.LeaseState :ivar lease_duration: Specifies whether the lease on a share is of infinite or fixed duration, only when the share is leased. Known values are: "Infinite" and "Fixed". - :vartype lease_duration: str or ~azure.mgmt.storage.v2023_05_01.models.LeaseDuration + :vartype lease_duration: str or ~azure.mgmt.storage.v2024_01_01.models.LeaseDuration :ivar signed_identifiers: List of stored access policies specified on the share. - :vartype signed_identifiers: list[~azure.mgmt.storage.v2023_05_01.models.SignedIdentifier] + :vartype signed_identifiers: list[~azure.mgmt.storage.v2024_01_01.models.SignedIdentifier] :ivar snapshot_time: Creation time of share snapshot returned in the response of list shares with expand param "snapshots". :vartype snapshot_time: ~datetime.datetime + :ivar file_share_paid_bursting: File Share Paid Bursting properties. + :vartype file_share_paid_bursting: + ~azure.mgmt.storage.v2024_01_01.models.FileSharePropertiesFileSharePaidBursting """ _validation = { @@ -2718,7 +3015,11 @@ class FileShare(AzureEntityResource): "type": {"readonly": True}, "etag": {"readonly": True}, "last_modified_time": {"readonly": True}, - "share_quota": {"maximum": 102400, "minimum": 1}, + "included_burst_iops": {"readonly": True}, + "max_burst_credits_for_iops": {"readonly": True}, + "next_allowed_quota_downgrade_time": {"readonly": True}, + "next_allowed_provisioned_iops_downgrade_time": {"readonly": True}, + "next_allowed_provisioned_bandwidth_downgrade_time": {"readonly": True}, "version": {"readonly": True}, "deleted": {"readonly": True}, "deleted_time": {"readonly": True}, @@ -2740,6 +3041,19 @@ class FileShare(AzureEntityResource): "last_modified_time": {"key": "properties.lastModifiedTime", "type": "iso-8601"}, "metadata": {"key": "properties.metadata", "type": "{str}"}, "share_quota": {"key": "properties.shareQuota", "type": "int"}, + "provisioned_iops": {"key": "properties.provisionedIops", "type": "int"}, + "provisioned_bandwidth_mibps": {"key": "properties.provisionedBandwidthMibps", "type": "int"}, + "included_burst_iops": {"key": "properties.includedBurstIops", "type": "int"}, + "max_burst_credits_for_iops": {"key": "properties.maxBurstCreditsForIops", "type": "int"}, + "next_allowed_quota_downgrade_time": {"key": "properties.nextAllowedQuotaDowngradeTime", "type": "iso-8601"}, + "next_allowed_provisioned_iops_downgrade_time": { + "key": "properties.nextAllowedProvisionedIopsDowngradeTime", + "type": "iso-8601", + }, + "next_allowed_provisioned_bandwidth_downgrade_time": { + "key": "properties.nextAllowedProvisionedBandwidthDowngradeTime", + "type": "iso-8601", + }, "enabled_protocols": {"key": "properties.enabledProtocols", "type": "str"}, "root_squash": {"key": "properties.rootSquash", "type": "str"}, "version": {"key": "properties.version", "type": "str"}, @@ -2755,42 +3069,70 @@ class FileShare(AzureEntityResource): "lease_duration": {"key": "properties.leaseDuration", "type": "str"}, "signed_identifiers": {"key": "properties.signedIdentifiers", "type": "[SignedIdentifier]"}, "snapshot_time": {"key": "properties.snapshotTime", "type": "iso-8601"}, + "file_share_paid_bursting": { + "key": "properties.fileSharePaidBursting", + "type": "FileSharePropertiesFileSharePaidBursting", + }, } - def __init__( + def __init__( # pylint: disable=too-many-locals self, *, metadata: Optional[Dict[str, str]] = None, share_quota: Optional[int] = None, + provisioned_iops: Optional[int] = None, + provisioned_bandwidth_mibps: Optional[int] = None, enabled_protocols: Optional[Union[str, "_models.EnabledProtocols"]] = None, root_squash: Optional[Union[str, "_models.RootSquashType"]] = None, access_tier: Optional[Union[str, "_models.ShareAccessTier"]] = None, signed_identifiers: Optional[List["_models.SignedIdentifier"]] = None, + file_share_paid_bursting: Optional["_models.FileSharePropertiesFileSharePaidBursting"] = None, **kwargs: Any ) -> None: """ :keyword metadata: A name-value pair to associate with the share as metadata. :paramtype metadata: dict[str, str] - :keyword share_quota: The maximum size of the share, in gigabytes. Must be greater than 0, and - less than or equal to 5TB (5120). For Large File Shares, the maximum size is 102400. + :keyword share_quota: The provisioned size of the share, in gibibytes. Must be greater than 0, + and less than or equal to 5TB (5120). For Large File Shares, the maximum size is 102400. For + file shares created under Files Provisioned v2 account type, please refer to the + GetFileServiceUsage API response for the minimum and maximum allowed provisioned storage size. :paramtype share_quota: int + :keyword provisioned_iops: The provisioned IOPS of the share. This property is only for file + shares created under Files Provisioned v2 account type. Please refer to the GetFileServiceUsage + API response for the minimum and maximum allowed value for provisioned IOPS. + :paramtype provisioned_iops: int + :keyword provisioned_bandwidth_mibps: The provisioned bandwidth of the share, in mebibytes per + second. This property is only for file shares created under Files Provisioned v2 account type. + Please refer to the GetFileServiceUsage API response for the minimum and maximum allowed value + for provisioned bandwidth. + :paramtype provisioned_bandwidth_mibps: int :keyword enabled_protocols: The authentication protocol that is used for the file share. Can only be specified when creating a share. Known values are: "SMB" and "NFS". - :paramtype enabled_protocols: str or ~azure.mgmt.storage.v2023_05_01.models.EnabledProtocols + :paramtype enabled_protocols: str or ~azure.mgmt.storage.v2024_01_01.models.EnabledProtocols :keyword root_squash: The property is for NFS share only. The default is NoRootSquash. Known values are: "NoRootSquash", "RootSquash", and "AllSquash". - :paramtype root_squash: str or ~azure.mgmt.storage.v2023_05_01.models.RootSquashType + :paramtype root_squash: str or ~azure.mgmt.storage.v2024_01_01.models.RootSquashType :keyword access_tier: Access tier for specific share. GpV2 account can choose between TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium. Known values are: "TransactionOptimized", "Hot", "Cool", and "Premium". - :paramtype access_tier: str or ~azure.mgmt.storage.v2023_05_01.models.ShareAccessTier + :paramtype access_tier: str or ~azure.mgmt.storage.v2024_01_01.models.ShareAccessTier :keyword signed_identifiers: List of stored access policies specified on the share. - :paramtype signed_identifiers: list[~azure.mgmt.storage.v2023_05_01.models.SignedIdentifier] + :paramtype signed_identifiers: list[~azure.mgmt.storage.v2024_01_01.models.SignedIdentifier] + :keyword file_share_paid_bursting: File Share Paid Bursting properties. + :paramtype file_share_paid_bursting: + ~azure.mgmt.storage.v2024_01_01.models.FileSharePropertiesFileSharePaidBursting """ super().__init__(**kwargs) self.last_modified_time = None self.metadata = metadata self.share_quota = share_quota + self.provisioned_iops = provisioned_iops + self.provisioned_bandwidth_mibps = provisioned_bandwidth_mibps + self.included_burst_iops = None + self.max_burst_credits_for_iops = None + self.next_allowed_quota_downgrade_time = None + self.next_allowed_provisioned_iops_downgrade_time = None + self.next_allowed_provisioned_bandwidth_downgrade_time = None self.enabled_protocols = enabled_protocols self.root_squash = root_squash self.version = None @@ -2806,6 +3148,7 @@ def __init__( self.lease_duration = None self.signed_identifiers = signed_identifiers self.snapshot_time = None + self.file_share_paid_bursting = file_share_paid_bursting class FileShareItem(AzureEntityResource): @@ -2827,15 +3170,44 @@ class FileShareItem(AzureEntityResource): :vartype last_modified_time: ~datetime.datetime :ivar metadata: A name-value pair to associate with the share as metadata. :vartype metadata: dict[str, str] - :ivar share_quota: The maximum size of the share, in gigabytes. Must be greater than 0, and - less than or equal to 5TB (5120). For Large File Shares, the maximum size is 102400. + :ivar share_quota: The provisioned size of the share, in gibibytes. Must be greater than 0, and + less than or equal to 5TB (5120). For Large File Shares, the maximum size is 102400. For file + shares created under Files Provisioned v2 account type, please refer to the GetFileServiceUsage + API response for the minimum and maximum allowed provisioned storage size. :vartype share_quota: int + :ivar provisioned_iops: The provisioned IOPS of the share. This property is only for file + shares created under Files Provisioned v2 account type. Please refer to the GetFileServiceUsage + API response for the minimum and maximum allowed value for provisioned IOPS. + :vartype provisioned_iops: int + :ivar provisioned_bandwidth_mibps: The provisioned bandwidth of the share, in mebibytes per + second. This property is only for file shares created under Files Provisioned v2 account type. + Please refer to the GetFileServiceUsage API response for the minimum and maximum allowed value + for provisioned bandwidth. + :vartype provisioned_bandwidth_mibps: int + :ivar included_burst_iops: The calculated burst IOPS of the share. This property is only for + file shares created under Files Provisioned v2 account type. + :vartype included_burst_iops: int + :ivar max_burst_credits_for_iops: The calculated maximum burst credits for the share. This + property is only for file shares created under Files Provisioned v2 account type. + :vartype max_burst_credits_for_iops: int + :ivar next_allowed_quota_downgrade_time: Returns the next allowed provisioned storage size + downgrade time for the share. This property is only for file shares created under Files + Provisioned v1 SSD and Files Provisioned v2 account type. + :vartype next_allowed_quota_downgrade_time: ~datetime.datetime + :ivar next_allowed_provisioned_iops_downgrade_time: Returns the next allowed provisioned IOPS + downgrade time for the share. This property is only for file shares created under Files + Provisioned v2 account type. + :vartype next_allowed_provisioned_iops_downgrade_time: ~datetime.datetime + :ivar next_allowed_provisioned_bandwidth_downgrade_time: Returns the next allowed provisioned + bandwidth downgrade time for the share. This property is only for file shares created under + Files Provisioned v2 account type. + :vartype next_allowed_provisioned_bandwidth_downgrade_time: ~datetime.datetime :ivar enabled_protocols: The authentication protocol that is used for the file share. Can only be specified when creating a share. Known values are: "SMB" and "NFS". - :vartype enabled_protocols: str or ~azure.mgmt.storage.v2023_05_01.models.EnabledProtocols + :vartype enabled_protocols: str or ~azure.mgmt.storage.v2024_01_01.models.EnabledProtocols :ivar root_squash: The property is for NFS share only. The default is NoRootSquash. Known values are: "NoRootSquash", "RootSquash", and "AllSquash". - :vartype root_squash: str or ~azure.mgmt.storage.v2023_05_01.models.RootSquashType + :vartype root_squash: str or ~azure.mgmt.storage.v2024_01_01.models.RootSquashType :ivar version: The version of the share. :vartype version: str :ivar deleted: Indicates whether the share was deleted. @@ -2847,7 +3219,7 @@ class FileShareItem(AzureEntityResource): :ivar access_tier: Access tier for specific share. GpV2 account can choose between TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium. Known values are: "TransactionOptimized", "Hot", "Cool", and "Premium". - :vartype access_tier: str or ~azure.mgmt.storage.v2023_05_01.models.ShareAccessTier + :vartype access_tier: str or ~azure.mgmt.storage.v2024_01_01.models.ShareAccessTier :ivar access_tier_change_time: Indicates the last modification time for share access tier. :vartype access_tier_change_time: ~datetime.datetime :ivar access_tier_status: Indicates if there is a pending transition for access tier. @@ -2856,18 +3228,21 @@ class FileShareItem(AzureEntityResource): value may not include all recently created or recently resized files. :vartype share_usage_bytes: int :ivar lease_status: The lease status of the share. Known values are: "Locked" and "Unlocked". - :vartype lease_status: str or ~azure.mgmt.storage.v2023_05_01.models.LeaseStatus + :vartype lease_status: str or ~azure.mgmt.storage.v2024_01_01.models.LeaseStatus :ivar lease_state: Lease state of the share. Known values are: "Available", "Leased", "Expired", "Breaking", and "Broken". - :vartype lease_state: str or ~azure.mgmt.storage.v2023_05_01.models.LeaseState + :vartype lease_state: str or ~azure.mgmt.storage.v2024_01_01.models.LeaseState :ivar lease_duration: Specifies whether the lease on a share is of infinite or fixed duration, only when the share is leased. Known values are: "Infinite" and "Fixed". - :vartype lease_duration: str or ~azure.mgmt.storage.v2023_05_01.models.LeaseDuration + :vartype lease_duration: str or ~azure.mgmt.storage.v2024_01_01.models.LeaseDuration :ivar signed_identifiers: List of stored access policies specified on the share. - :vartype signed_identifiers: list[~azure.mgmt.storage.v2023_05_01.models.SignedIdentifier] + :vartype signed_identifiers: list[~azure.mgmt.storage.v2024_01_01.models.SignedIdentifier] :ivar snapshot_time: Creation time of share snapshot returned in the response of list shares with expand param "snapshots". :vartype snapshot_time: ~datetime.datetime + :ivar file_share_paid_bursting: File Share Paid Bursting properties. + :vartype file_share_paid_bursting: + ~azure.mgmt.storage.v2024_01_01.models.FileSharePropertiesFileSharePaidBursting """ _validation = { @@ -2876,7 +3251,11 @@ class FileShareItem(AzureEntityResource): "type": {"readonly": True}, "etag": {"readonly": True}, "last_modified_time": {"readonly": True}, - "share_quota": {"maximum": 102400, "minimum": 1}, + "included_burst_iops": {"readonly": True}, + "max_burst_credits_for_iops": {"readonly": True}, + "next_allowed_quota_downgrade_time": {"readonly": True}, + "next_allowed_provisioned_iops_downgrade_time": {"readonly": True}, + "next_allowed_provisioned_bandwidth_downgrade_time": {"readonly": True}, "version": {"readonly": True}, "deleted": {"readonly": True}, "deleted_time": {"readonly": True}, @@ -2898,6 +3277,19 @@ class FileShareItem(AzureEntityResource): "last_modified_time": {"key": "properties.lastModifiedTime", "type": "iso-8601"}, "metadata": {"key": "properties.metadata", "type": "{str}"}, "share_quota": {"key": "properties.shareQuota", "type": "int"}, + "provisioned_iops": {"key": "properties.provisionedIops", "type": "int"}, + "provisioned_bandwidth_mibps": {"key": "properties.provisionedBandwidthMibps", "type": "int"}, + "included_burst_iops": {"key": "properties.includedBurstIops", "type": "int"}, + "max_burst_credits_for_iops": {"key": "properties.maxBurstCreditsForIops", "type": "int"}, + "next_allowed_quota_downgrade_time": {"key": "properties.nextAllowedQuotaDowngradeTime", "type": "iso-8601"}, + "next_allowed_provisioned_iops_downgrade_time": { + "key": "properties.nextAllowedProvisionedIopsDowngradeTime", + "type": "iso-8601", + }, + "next_allowed_provisioned_bandwidth_downgrade_time": { + "key": "properties.nextAllowedProvisionedBandwidthDowngradeTime", + "type": "iso-8601", + }, "enabled_protocols": {"key": "properties.enabledProtocols", "type": "str"}, "root_squash": {"key": "properties.rootSquash", "type": "str"}, "version": {"key": "properties.version", "type": "str"}, @@ -2913,42 +3305,70 @@ class FileShareItem(AzureEntityResource): "lease_duration": {"key": "properties.leaseDuration", "type": "str"}, "signed_identifiers": {"key": "properties.signedIdentifiers", "type": "[SignedIdentifier]"}, "snapshot_time": {"key": "properties.snapshotTime", "type": "iso-8601"}, + "file_share_paid_bursting": { + "key": "properties.fileSharePaidBursting", + "type": "FileSharePropertiesFileSharePaidBursting", + }, } - def __init__( + def __init__( # pylint: disable=too-many-locals self, *, metadata: Optional[Dict[str, str]] = None, share_quota: Optional[int] = None, + provisioned_iops: Optional[int] = None, + provisioned_bandwidth_mibps: Optional[int] = None, enabled_protocols: Optional[Union[str, "_models.EnabledProtocols"]] = None, root_squash: Optional[Union[str, "_models.RootSquashType"]] = None, access_tier: Optional[Union[str, "_models.ShareAccessTier"]] = None, signed_identifiers: Optional[List["_models.SignedIdentifier"]] = None, + file_share_paid_bursting: Optional["_models.FileSharePropertiesFileSharePaidBursting"] = None, **kwargs: Any ) -> None: """ :keyword metadata: A name-value pair to associate with the share as metadata. :paramtype metadata: dict[str, str] - :keyword share_quota: The maximum size of the share, in gigabytes. Must be greater than 0, and - less than or equal to 5TB (5120). For Large File Shares, the maximum size is 102400. + :keyword share_quota: The provisioned size of the share, in gibibytes. Must be greater than 0, + and less than or equal to 5TB (5120). For Large File Shares, the maximum size is 102400. For + file shares created under Files Provisioned v2 account type, please refer to the + GetFileServiceUsage API response for the minimum and maximum allowed provisioned storage size. :paramtype share_quota: int + :keyword provisioned_iops: The provisioned IOPS of the share. This property is only for file + shares created under Files Provisioned v2 account type. Please refer to the GetFileServiceUsage + API response for the minimum and maximum allowed value for provisioned IOPS. + :paramtype provisioned_iops: int + :keyword provisioned_bandwidth_mibps: The provisioned bandwidth of the share, in mebibytes per + second. This property is only for file shares created under Files Provisioned v2 account type. + Please refer to the GetFileServiceUsage API response for the minimum and maximum allowed value + for provisioned bandwidth. + :paramtype provisioned_bandwidth_mibps: int :keyword enabled_protocols: The authentication protocol that is used for the file share. Can only be specified when creating a share. Known values are: "SMB" and "NFS". - :paramtype enabled_protocols: str or ~azure.mgmt.storage.v2023_05_01.models.EnabledProtocols + :paramtype enabled_protocols: str or ~azure.mgmt.storage.v2024_01_01.models.EnabledProtocols :keyword root_squash: The property is for NFS share only. The default is NoRootSquash. Known values are: "NoRootSquash", "RootSquash", and "AllSquash". - :paramtype root_squash: str or ~azure.mgmt.storage.v2023_05_01.models.RootSquashType + :paramtype root_squash: str or ~azure.mgmt.storage.v2024_01_01.models.RootSquashType :keyword access_tier: Access tier for specific share. GpV2 account can choose between TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium. Known values are: "TransactionOptimized", "Hot", "Cool", and "Premium". - :paramtype access_tier: str or ~azure.mgmt.storage.v2023_05_01.models.ShareAccessTier + :paramtype access_tier: str or ~azure.mgmt.storage.v2024_01_01.models.ShareAccessTier :keyword signed_identifiers: List of stored access policies specified on the share. - :paramtype signed_identifiers: list[~azure.mgmt.storage.v2023_05_01.models.SignedIdentifier] + :paramtype signed_identifiers: list[~azure.mgmt.storage.v2024_01_01.models.SignedIdentifier] + :keyword file_share_paid_bursting: File Share Paid Bursting properties. + :paramtype file_share_paid_bursting: + ~azure.mgmt.storage.v2024_01_01.models.FileSharePropertiesFileSharePaidBursting """ super().__init__(**kwargs) self.last_modified_time = None self.metadata = metadata self.share_quota = share_quota + self.provisioned_iops = provisioned_iops + self.provisioned_bandwidth_mibps = provisioned_bandwidth_mibps + self.included_burst_iops = None + self.max_burst_credits_for_iops = None + self.next_allowed_quota_downgrade_time = None + self.next_allowed_provisioned_iops_downgrade_time = None + self.next_allowed_provisioned_bandwidth_downgrade_time = None self.enabled_protocols = enabled_protocols self.root_squash = root_squash self.version = None @@ -2964,6 +3384,7 @@ def __init__( self.lease_duration = None self.signed_identifiers = signed_identifiers self.snapshot_time = None + self.file_share_paid_bursting = file_share_paid_bursting class FileShareItems(_serialization.Model): @@ -2973,7 +3394,7 @@ class FileShareItems(_serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. :ivar value: List of file shares returned. - :vartype value: list[~azure.mgmt.storage.v2023_05_01.models.FileShareItem] + :vartype value: list[~azure.mgmt.storage.v2024_01_01.models.FileShareItem] :ivar next_link: Request URL that can be used to query next page of shares. Returned when total number of requested shares exceed maximum page size. :vartype next_link: str @@ -2996,6 +3417,153 @@ def __init__(self, **kwargs: Any) -> None: self.next_link = None +class FileShareLimits(_serialization.Model): + """Minimum and maximum provisioned storage, IOPS and bandwidth limits for a file share in the + storage account. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar min_provisioned_storage_gi_b: The minimum provisioned storage quota limit in gibibytes + for a file share in the storage account. + :vartype min_provisioned_storage_gi_b: int + :ivar max_provisioned_storage_gi_b: The maximum provisioned storage quota limit in gibibytes + for a file share in the storage account. + :vartype max_provisioned_storage_gi_b: int + :ivar min_provisioned_iops: The minimum provisioned IOPS limit for a file share in the storage + account. + :vartype min_provisioned_iops: int + :ivar max_provisioned_iops: The maximum provisioned IOPS limit for a file share in the storage + account. + :vartype max_provisioned_iops: int + :ivar min_provisioned_bandwidth_mi_b_per_sec: The minimum provisioned bandwidth limit in + mebibytes per second for a file share in the storage account. + :vartype min_provisioned_bandwidth_mi_b_per_sec: int + :ivar max_provisioned_bandwidth_mi_b_per_sec: The maximum provisioned bandwidth limit in + mebibytes per second for a file share in the storage account. + :vartype max_provisioned_bandwidth_mi_b_per_sec: int + """ + + _validation = { + "min_provisioned_storage_gi_b": {"readonly": True}, + "max_provisioned_storage_gi_b": {"readonly": True}, + "min_provisioned_iops": {"readonly": True}, + "max_provisioned_iops": {"readonly": True}, + "min_provisioned_bandwidth_mi_b_per_sec": {"readonly": True}, + "max_provisioned_bandwidth_mi_b_per_sec": {"readonly": True}, + } + + _attribute_map = { + "min_provisioned_storage_gi_b": {"key": "minProvisionedStorageGiB", "type": "int"}, + "max_provisioned_storage_gi_b": {"key": "maxProvisionedStorageGiB", "type": "int"}, + "min_provisioned_iops": {"key": "minProvisionedIOPS", "type": "int"}, + "max_provisioned_iops": {"key": "maxProvisionedIOPS", "type": "int"}, + "min_provisioned_bandwidth_mi_b_per_sec": {"key": "minProvisionedBandwidthMiBPerSec", "type": "int"}, + "max_provisioned_bandwidth_mi_b_per_sec": {"key": "maxProvisionedBandwidthMiBPerSec", "type": "int"}, + } + + def __init__(self, **kwargs: Any) -> None: + """ """ + super().__init__(**kwargs) + self.min_provisioned_storage_gi_b = None + self.max_provisioned_storage_gi_b = None + self.min_provisioned_iops = None + self.max_provisioned_iops = None + self.min_provisioned_bandwidth_mi_b_per_sec = None + self.max_provisioned_bandwidth_mi_b_per_sec = None + + +class FileSharePropertiesFileSharePaidBursting(_serialization.Model): + """File Share Paid Bursting properties. + + :ivar paid_bursting_enabled: Indicates whether paid bursting is enabled for the share. This + property is only for file shares created under Files Provisioned v1 SSD account type. + :vartype paid_bursting_enabled: bool + :ivar paid_bursting_max_iops: The maximum paid bursting IOPS for the share. This property is + only for file shares created under Files Provisioned v1 SSD account type. The maximum allowed + value is 102400 which is the maximum allowed IOPS for a share. + :vartype paid_bursting_max_iops: int + :ivar paid_bursting_max_bandwidth_mibps: The maximum paid bursting bandwidth for the share, in + mebibytes per second. This property is only for file shares created under Files Provisioned v1 + SSD account type. The maximum allowed value is 10340 which is the maximum allowed bandwidth for + a share. + :vartype paid_bursting_max_bandwidth_mibps: int + """ + + _attribute_map = { + "paid_bursting_enabled": {"key": "paidBurstingEnabled", "type": "bool"}, + "paid_bursting_max_iops": {"key": "paidBurstingMaxIops", "type": "int"}, + "paid_bursting_max_bandwidth_mibps": {"key": "paidBurstingMaxBandwidthMibps", "type": "int"}, + } + + def __init__( + self, + *, + paid_bursting_enabled: Optional[bool] = None, + paid_bursting_max_iops: Optional[int] = None, + paid_bursting_max_bandwidth_mibps: Optional[int] = None, + **kwargs: Any + ) -> None: + """ + :keyword paid_bursting_enabled: Indicates whether paid bursting is enabled for the share. This + property is only for file shares created under Files Provisioned v1 SSD account type. + :paramtype paid_bursting_enabled: bool + :keyword paid_bursting_max_iops: The maximum paid bursting IOPS for the share. This property is + only for file shares created under Files Provisioned v1 SSD account type. The maximum allowed + value is 102400 which is the maximum allowed IOPS for a share. + :paramtype paid_bursting_max_iops: int + :keyword paid_bursting_max_bandwidth_mibps: The maximum paid bursting bandwidth for the share, + in mebibytes per second. This property is only for file shares created under Files Provisioned + v1 SSD account type. The maximum allowed value is 10340 which is the maximum allowed bandwidth + for a share. + :paramtype paid_bursting_max_bandwidth_mibps: int + """ + super().__init__(**kwargs) + self.paid_bursting_enabled = paid_bursting_enabled + self.paid_bursting_max_iops = paid_bursting_max_iops + self.paid_bursting_max_bandwidth_mibps = paid_bursting_max_bandwidth_mibps + + +class FileShareRecommendations(_serialization.Model): + """Constants used for calculating recommended provisioned IOPS and bandwidth for a file share in + the storage account. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar base_iops: The base IOPS in the file share provisioned IOPS recommendation formula. + :vartype base_iops: int + :ivar io_scalar: The scalar for IO in the file share provisioned IOPS recommendation formula. + :vartype io_scalar: float + :ivar base_bandwidth_mi_b_per_sec: The base bandwidth in the file share provisioned bandwidth + recommendation formula. + :vartype base_bandwidth_mi_b_per_sec: int + :ivar bandwidth_scalar: The scalar for bandwidth in the file share provisioned bandwidth + recommendation formula. + :vartype bandwidth_scalar: float + """ + + _validation = { + "base_iops": {"readonly": True}, + "io_scalar": {"readonly": True}, + "base_bandwidth_mi_b_per_sec": {"readonly": True}, + "bandwidth_scalar": {"readonly": True}, + } + + _attribute_map = { + "base_iops": {"key": "baseIOPS", "type": "int"}, + "io_scalar": {"key": "ioScalar", "type": "float"}, + "base_bandwidth_mi_b_per_sec": {"key": "baseBandwidthMiBPerSec", "type": "int"}, + "bandwidth_scalar": {"key": "bandwidthScalar", "type": "float"}, + } + + def __init__(self, **kwargs: Any) -> None: + """ """ + super().__init__(**kwargs) + self.base_iops = None + self.io_scalar = None + self.base_bandwidth_mi_b_per_sec = None + self.bandwidth_scalar = None + + class GeoReplicationStats(_serialization.Model): """Statistics related to replication for storage account's Blob, Table, Queue and File services. It is only available when geo-redundant replication is enabled for the storage account. @@ -3007,7 +3575,7 @@ class GeoReplicationStats(_serialization.Model): synchronization from the primary location to the secondary location is in progress.This typically occurs when replication is first enabled. - Unavailable: Indicates that the secondary location is temporarily unavailable. Known values are: "Live", "Bootstrap", and "Unavailable". - :vartype status: str or ~azure.mgmt.storage.v2023_05_01.models.GeoReplicationStatus + :vartype status: str or ~azure.mgmt.storage.v2024_01_01.models.GeoReplicationStatus :ivar last_sync_time: All primary writes preceding this UTC date/time value are guaranteed to be available for read operations. Primary writes following this point in time may or may not be available for reads. Element may be default value if value of LastSyncTime is not available, @@ -3022,12 +3590,12 @@ class GeoReplicationStats(_serialization.Model): :ivar post_failover_redundancy: The redundancy type of the account after an account failover is performed. Known values are: "Standard_LRS" and "Standard_ZRS". :vartype post_failover_redundancy: str or - ~azure.mgmt.storage.v2023_05_01.models.PostFailoverRedundancy + ~azure.mgmt.storage.v2024_01_01.models.PostFailoverRedundancy :ivar post_planned_failover_redundancy: The redundancy type of the account after a planned account failover is performed. Known values are: "Standard_GRS", "Standard_GZRS", "Standard_RAGRS", and "Standard_RAGZRS". :vartype post_planned_failover_redundancy: str or - ~azure.mgmt.storage.v2023_05_01.models.PostPlannedFailoverRedundancy + ~azure.mgmt.storage.v2024_01_01.models.PostPlannedFailoverRedundancy """ _validation = { @@ -3072,12 +3640,12 @@ class Identity(_serialization.Model): :vartype tenant_id: str :ivar type: The identity type. Required. Known values are: "None", "SystemAssigned", "UserAssigned", and "SystemAssigned,UserAssigned". - :vartype type: str or ~azure.mgmt.storage.v2023_05_01.models.IdentityType + :vartype type: str or ~azure.mgmt.storage.v2024_01_01.models.IdentityType :ivar user_assigned_identities: Gets or sets a list of key value pairs that describe the set of User Assigned identities that will be used with this storage account. The key is the ARM resource identifier of the identity. Only 1 User Assigned identity is permitted here. :vartype user_assigned_identities: dict[str, - ~azure.mgmt.storage.v2023_05_01.models.UserAssignedIdentity] + ~azure.mgmt.storage.v2024_01_01.models.UserAssignedIdentity] """ _validation = { @@ -3103,12 +3671,12 @@ def __init__( """ :keyword type: The identity type. Required. Known values are: "None", "SystemAssigned", "UserAssigned", and "SystemAssigned,UserAssigned". - :paramtype type: str or ~azure.mgmt.storage.v2023_05_01.models.IdentityType + :paramtype type: str or ~azure.mgmt.storage.v2024_01_01.models.IdentityType :keyword user_assigned_identities: Gets or sets a list of key value pairs that describe the set of User Assigned identities that will be used with this storage account. The key is the ARM resource identifier of the identity. Only 1 User Assigned identity is permitted here. :paramtype user_assigned_identities: dict[str, - ~azure.mgmt.storage.v2023_05_01.models.UserAssignedIdentity] + ~azure.mgmt.storage.v2024_01_01.models.UserAssignedIdentity] """ super().__init__(**kwargs) self.principal_id = None @@ -3138,7 +3706,7 @@ class ImmutabilityPolicy(AzureEntityResource): :vartype immutability_period_since_creation_in_days: int :ivar state: The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked. Known values are: "Locked" and "Unlocked". - :vartype state: str or ~azure.mgmt.storage.v2023_05_01.models.ImmutabilityPolicyState + :vartype state: str or ~azure.mgmt.storage.v2024_01_01.models.ImmutabilityPolicyState :ivar allow_protected_append_writes: This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to an append blob while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks @@ -3217,13 +3785,13 @@ class ImmutabilityPolicyProperties(_serialization.Model): :ivar etag: ImmutabilityPolicy Etag. :vartype etag: str :ivar update_history: The ImmutabilityPolicy update history of the blob container. - :vartype update_history: list[~azure.mgmt.storage.v2023_05_01.models.UpdateHistoryProperty] + :vartype update_history: list[~azure.mgmt.storage.v2024_01_01.models.UpdateHistoryProperty] :ivar immutability_period_since_creation_in_days: The immutability period for the blobs in the container since the policy creation, in days. :vartype immutability_period_since_creation_in_days: int :ivar state: The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked. Known values are: "Locked" and "Unlocked". - :vartype state: str or ~azure.mgmt.storage.v2023_05_01.models.ImmutabilityPolicyState + :vartype state: str or ~azure.mgmt.storage.v2024_01_01.models.ImmutabilityPolicyState :ivar allow_protected_append_writes: This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to an append blob while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks @@ -3305,7 +3873,7 @@ class ImmutableStorageAccount(_serialization.Model): container-level immutability policy, which has a higher precedence than the account-level immutability policy. :vartype immutability_policy: - ~azure.mgmt.storage.v2023_05_01.models.AccountImmutabilityPolicyProperties + ~azure.mgmt.storage.v2024_01_01.models.AccountImmutabilityPolicyProperties """ _attribute_map = { @@ -3330,7 +3898,7 @@ def __init__( container-level immutability policy, which has a higher precedence than the account-level immutability policy. :paramtype immutability_policy: - ~azure.mgmt.storage.v2023_05_01.models.AccountImmutabilityPolicyProperties + ~azure.mgmt.storage.v2024_01_01.models.AccountImmutabilityPolicyProperties """ super().__init__(**kwargs) self.enabled = enabled @@ -3349,7 +3917,7 @@ class ImmutableStorageWithVersioning(_serialization.Model): :vartype time_stamp: ~datetime.datetime :ivar migration_state: This property denotes the container level immutability to object level immutability migration state. Known values are: "InProgress" and "Completed". - :vartype migration_state: str or ~azure.mgmt.storage.v2023_05_01.models.MigrationState + :vartype migration_state: str or ~azure.mgmt.storage.v2024_01_01.models.MigrationState """ _validation = { @@ -3536,7 +4104,7 @@ class LastAccessTimeTrackingPolicy(_serialization.Model): :vartype enable: bool :ivar name: Name of the policy. The valid value is AccessTimeTracking. This field is currently read only. "AccessTimeTracking" - :vartype name: str or ~azure.mgmt.storage.v2023_05_01.models.Name + :vartype name: str or ~azure.mgmt.storage.v2024_01_01.models.Name :ivar tracking_granularity_in_days: The field specifies blob object tracking granularity in days, typically how often the blob object should be tracked.This field is currently read only with value as 1. @@ -3571,7 +4139,7 @@ def __init__( :paramtype enable: bool :keyword name: Name of the policy. The valid value is AccessTimeTracking. This field is currently read only. "AccessTimeTracking" - :paramtype name: str or ~azure.mgmt.storage.v2023_05_01.models.Name + :paramtype name: str or ~azure.mgmt.storage.v2024_01_01.models.Name :keyword tracking_granularity_in_days: The field specifies blob object tracking granularity in days, typically how often the blob object should be tracked.This field is currently read only with value as 1. @@ -3594,7 +4162,7 @@ class LeaseContainerRequest(_serialization.Model): :ivar action: Specifies the lease action. Can be one of the available actions. Required. Known values are: "Acquire", "Renew", "Change", "Release", "Break", and "Break". - :vartype action: str or ~azure.mgmt.storage.v2023_05_01.models.LeaseContainerRequestEnum + :vartype action: str or ~azure.mgmt.storage.v2024_01_01.models.LeaseContainerRequestEnum :ivar lease_id: Identifies the lease. Can be specified in any valid GUID string format. :vartype lease_id: str :ivar break_period: Optional. For a break action, proposed duration the lease should continue @@ -3633,7 +4201,7 @@ def __init__( """ :keyword action: Specifies the lease action. Can be one of the available actions. Required. Known values are: "Acquire", "Renew", "Change", "Release", "Break", and "Break". - :paramtype action: str or ~azure.mgmt.storage.v2023_05_01.models.LeaseContainerRequestEnum + :paramtype action: str or ~azure.mgmt.storage.v2024_01_01.models.LeaseContainerRequestEnum :keyword lease_id: Identifies the lease. Can be specified in any valid GUID string format. :paramtype lease_id: str :keyword break_period: Optional. For a break action, proposed duration the lease should @@ -3691,7 +4259,7 @@ class LeaseShareRequest(_serialization.Model): :ivar action: Specifies the lease action. Can be one of the available actions. Required. Known values are: "Acquire", "Renew", "Change", "Release", "Break", and "Break". - :vartype action: str or ~azure.mgmt.storage.v2023_05_01.models.LeaseShareAction + :vartype action: str or ~azure.mgmt.storage.v2024_01_01.models.LeaseShareAction :ivar lease_id: Identifies the lease. Can be specified in any valid GUID string format. :vartype lease_id: str :ivar break_period: Optional. For a break action, proposed duration the lease should continue @@ -3730,7 +4298,7 @@ def __init__( """ :keyword action: Specifies the lease action. Can be one of the available actions. Required. Known values are: "Acquire", "Renew", "Change", "Release", "Break", and "Break". - :paramtype action: str or ~azure.mgmt.storage.v2023_05_01.models.LeaseShareAction + :paramtype action: str or ~azure.mgmt.storage.v2024_01_01.models.LeaseShareAction :keyword lease_id: Identifies the lease. Can be specified in any valid GUID string format. :paramtype lease_id: str :keyword break_period: Optional. For a break action, proposed duration the lease should @@ -3842,10 +4410,10 @@ class LegalHoldProperties(_serialization.Model): hasLegalHold=true for a given account. :vartype has_legal_hold: bool :ivar tags: The list of LegalHold tags of a blob container. - :vartype tags: list[~azure.mgmt.storage.v2023_05_01.models.TagProperty] + :vartype tags: list[~azure.mgmt.storage.v2024_01_01.models.TagProperty] :ivar protected_append_writes_history: Protected append blob writes history. :vartype protected_append_writes_history: - ~azure.mgmt.storage.v2023_05_01.models.ProtectedAppendWritesHistory + ~azure.mgmt.storage.v2024_01_01.models.ProtectedAppendWritesHistory """ _validation = { @@ -3870,10 +4438,10 @@ def __init__( ) -> None: """ :keyword tags: The list of LegalHold tags of a blob container. - :paramtype tags: list[~azure.mgmt.storage.v2023_05_01.models.TagProperty] + :paramtype tags: list[~azure.mgmt.storage.v2024_01_01.models.TagProperty] :keyword protected_append_writes_history: Protected append blob writes history. :paramtype protected_append_writes_history: - ~azure.mgmt.storage.v2023_05_01.models.ProtectedAppendWritesHistory + ~azure.mgmt.storage.v2024_01_01.models.ProtectedAppendWritesHistory """ super().__init__(**kwargs) self.has_legal_hold = None @@ -3910,7 +4478,7 @@ class ListBlobInventoryPolicy(_serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. :ivar value: List of blob inventory policies. - :vartype value: list[~azure.mgmt.storage.v2023_05_01.models.BlobInventoryPolicy] + :vartype value: list[~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicy] """ _validation = { @@ -3958,25 +4526,25 @@ class ListContainerItem(AzureEntityResource): :vartype deny_encryption_scope_override: bool :ivar public_access: Specifies whether data in the container may be accessed publicly and the level of access. Known values are: "Container", "Blob", and "None". - :vartype public_access: str or ~azure.mgmt.storage.v2023_05_01.models.PublicAccess + :vartype public_access: str or ~azure.mgmt.storage.v2024_01_01.models.PublicAccess :ivar last_modified_time: Returns the date and time the container was last modified. :vartype last_modified_time: ~datetime.datetime :ivar lease_status: The lease status of the container. Known values are: "Locked" and "Unlocked". - :vartype lease_status: str or ~azure.mgmt.storage.v2023_05_01.models.LeaseStatus + :vartype lease_status: str or ~azure.mgmt.storage.v2024_01_01.models.LeaseStatus :ivar lease_state: Lease state of the container. Known values are: "Available", "Leased", "Expired", "Breaking", and "Broken". - :vartype lease_state: str or ~azure.mgmt.storage.v2023_05_01.models.LeaseState + :vartype lease_state: str or ~azure.mgmt.storage.v2024_01_01.models.LeaseState :ivar lease_duration: Specifies whether the lease on a container is of infinite or fixed duration, only when the container is leased. Known values are: "Infinite" and "Fixed". - :vartype lease_duration: str or ~azure.mgmt.storage.v2023_05_01.models.LeaseDuration + :vartype lease_duration: str or ~azure.mgmt.storage.v2024_01_01.models.LeaseDuration :ivar metadata: A name-value pair to associate with the container as metadata. :vartype metadata: dict[str, str] :ivar immutability_policy: The ImmutabilityPolicy property of the container. :vartype immutability_policy: - ~azure.mgmt.storage.v2023_05_01.models.ImmutabilityPolicyProperties + ~azure.mgmt.storage.v2024_01_01.models.ImmutabilityPolicyProperties :ivar legal_hold: The LegalHold property of the container. - :vartype legal_hold: ~azure.mgmt.storage.v2023_05_01.models.LegalHoldProperties + :vartype legal_hold: ~azure.mgmt.storage.v2024_01_01.models.LegalHoldProperties :ivar has_legal_hold: The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to false by SRP if all existing legal hold tags are cleared out. There can be a maximum of 1000 blob containers with @@ -3990,7 +4558,7 @@ class ListContainerItem(AzureEntityResource): container. The property is immutable and can only be set to true at the container creation time. Existing containers must undergo a migration process. :vartype immutable_storage_with_versioning: - ~azure.mgmt.storage.v2023_05_01.models.ImmutableStorageWithVersioning + ~azure.mgmt.storage.v2024_01_01.models.ImmutableStorageWithVersioning :ivar enable_nfs_v3_root_squash: Enable NFSv3 root squash on blob container. :vartype enable_nfs_v3_root_squash: bool :ivar enable_nfs_v3_all_squash: Enable NFSv3 all squash on blob container. @@ -4066,14 +4634,14 @@ def __init__( :paramtype deny_encryption_scope_override: bool :keyword public_access: Specifies whether data in the container may be accessed publicly and the level of access. Known values are: "Container", "Blob", and "None". - :paramtype public_access: str or ~azure.mgmt.storage.v2023_05_01.models.PublicAccess + :paramtype public_access: str or ~azure.mgmt.storage.v2024_01_01.models.PublicAccess :keyword metadata: A name-value pair to associate with the container as metadata. :paramtype metadata: dict[str, str] :keyword immutable_storage_with_versioning: The object level immutability property of the container. The property is immutable and can only be set to true at the container creation time. Existing containers must undergo a migration process. :paramtype immutable_storage_with_versioning: - ~azure.mgmt.storage.v2023_05_01.models.ImmutableStorageWithVersioning + ~azure.mgmt.storage.v2024_01_01.models.ImmutableStorageWithVersioning :keyword enable_nfs_v3_root_squash: Enable NFSv3 root squash on blob container. :paramtype enable_nfs_v3_root_squash: bool :keyword enable_nfs_v3_all_squash: Enable NFSv3 all squash on blob container. @@ -4108,7 +4676,7 @@ class ListContainerItems(_serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. :ivar value: List of blobs containers returned. - :vartype value: list[~azure.mgmt.storage.v2023_05_01.models.ListContainerItem] + :vartype value: list[~azure.mgmt.storage.v2024_01_01.models.ListContainerItem] :ivar next_link: Request URL that can be used to query next page of containers. Returned when total number of requested containers exceed maximum page size. :vartype next_link: str @@ -4176,7 +4744,7 @@ class ListQueueResource(_serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. :ivar value: List of queues returned. - :vartype value: list[~azure.mgmt.storage.v2023_05_01.models.ListQueue] + :vartype value: list[~azure.mgmt.storage.v2024_01_01.models.ListQueue] :ivar next_link: Request URL that can be used to list next page of queues. :vartype next_link: str """ @@ -4204,7 +4772,7 @@ class ListQueueServices(_serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. :ivar value: List of queue services returned. - :vartype value: list[~azure.mgmt.storage.v2023_05_01.models.QueueServiceProperties] + :vartype value: list[~azure.mgmt.storage.v2024_01_01.models.QueueServiceProperties] """ _validation = { @@ -4250,7 +4818,7 @@ class ListTableResource(_serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. :ivar value: List of tables returned. - :vartype value: list[~azure.mgmt.storage.v2023_05_01.models.Table] + :vartype value: list[~azure.mgmt.storage.v2024_01_01.models.Table] :ivar next_link: Request URL that can be used to query next page of tables. :vartype next_link: str """ @@ -4278,7 +4846,7 @@ class ListTableServices(_serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. :ivar value: List of table services returned. - :vartype value: list[~azure.mgmt.storage.v2023_05_01.models.TableServiceProperties] + :vartype value: list[~azure.mgmt.storage.v2024_01_01.models.TableServiceProperties] """ _validation = { @@ -4309,13 +4877,13 @@ class LocalUser(Resource): "Microsoft.Storage/storageAccounts". :vartype type: str :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.storage.v2023_05_01.models.SystemData + :vartype system_data: ~azure.mgmt.storage.v2024_01_01.models.SystemData :ivar permission_scopes: The permission scopes of the local user. - :vartype permission_scopes: list[~azure.mgmt.storage.v2023_05_01.models.PermissionScope] + :vartype permission_scopes: list[~azure.mgmt.storage.v2024_01_01.models.PermissionScope] :ivar home_directory: Optional, local user home directory. :vartype home_directory: str :ivar ssh_authorized_keys: Optional, local user ssh authorized keys for SFTP. - :vartype ssh_authorized_keys: list[~azure.mgmt.storage.v2023_05_01.models.SshPublicKey] + :vartype ssh_authorized_keys: list[~azure.mgmt.storage.v2024_01_01.models.SshPublicKey] :ivar sid: A unique Security Identifier that is generated by the server. :vartype sid: str :ivar has_shared_key: Indicates whether shared key exists. Set it to false to remove existing @@ -4386,11 +4954,11 @@ def __init__( ) -> None: """ :keyword permission_scopes: The permission scopes of the local user. - :paramtype permission_scopes: list[~azure.mgmt.storage.v2023_05_01.models.PermissionScope] + :paramtype permission_scopes: list[~azure.mgmt.storage.v2024_01_01.models.PermissionScope] :keyword home_directory: Optional, local user home directory. :paramtype home_directory: str :keyword ssh_authorized_keys: Optional, local user ssh authorized keys for SFTP. - :paramtype ssh_authorized_keys: list[~azure.mgmt.storage.v2023_05_01.models.SshPublicKey] + :paramtype ssh_authorized_keys: list[~azure.mgmt.storage.v2024_01_01.models.SshPublicKey] :keyword has_shared_key: Indicates whether shared key exists. Set it to false to remove existing shared key. :paramtype has_shared_key: bool @@ -4434,7 +5002,7 @@ class LocalUserKeys(_serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. :ivar ssh_authorized_keys: Optional, local user ssh authorized keys for SFTP. - :vartype ssh_authorized_keys: list[~azure.mgmt.storage.v2023_05_01.models.SshPublicKey] + :vartype ssh_authorized_keys: list[~azure.mgmt.storage.v2024_01_01.models.SshPublicKey] :ivar shared_key: Auto generated by the server for SMB authentication. :vartype shared_key: str """ @@ -4451,7 +5019,7 @@ class LocalUserKeys(_serialization.Model): def __init__(self, *, ssh_authorized_keys: Optional[List["_models.SshPublicKey"]] = None, **kwargs: Any) -> None: """ :keyword ssh_authorized_keys: Optional, local user ssh authorized keys for SFTP. - :paramtype ssh_authorized_keys: list[~azure.mgmt.storage.v2023_05_01.models.SshPublicKey] + :paramtype ssh_authorized_keys: list[~azure.mgmt.storage.v2024_01_01.models.SshPublicKey] """ super().__init__(**kwargs) self.ssh_authorized_keys = ssh_authorized_keys @@ -4489,7 +5057,7 @@ class LocalUsers(_serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. :ivar value: The list of local users associated with the storage account. - :vartype value: list[~azure.mgmt.storage.v2023_05_01.models.LocalUser] + :vartype value: list[~azure.mgmt.storage.v2024_01_01.models.LocalUser] :ivar next_link: Request URL that can be used to query next page of local users. Returned when total number of requested local users exceeds the maximum page size. :vartype next_link: str @@ -4507,7 +5075,7 @@ class LocalUsers(_serialization.Model): def __init__(self, *, value: Optional[List["_models.LocalUser"]] = None, **kwargs: Any) -> None: """ :keyword value: The list of local users associated with the storage account. - :paramtype value: list[~azure.mgmt.storage.v2023_05_01.models.LocalUser] + :paramtype value: list[~azure.mgmt.storage.v2024_01_01.models.LocalUser] """ super().__init__(**kwargs) self.value = value @@ -4531,7 +5099,7 @@ class ManagementPolicy(Resource): :vartype last_modified_time: ~datetime.datetime :ivar policy: The Storage Account ManagementPolicy, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts. - :vartype policy: ~azure.mgmt.storage.v2023_05_01.models.ManagementPolicySchema + :vartype policy: ~azure.mgmt.storage.v2024_01_01.models.ManagementPolicySchema """ _validation = { @@ -4553,7 +5121,7 @@ def __init__(self, *, policy: Optional["_models.ManagementPolicySchema"] = None, """ :keyword policy: The Storage Account ManagementPolicy, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts. - :paramtype policy: ~azure.mgmt.storage.v2023_05_01.models.ManagementPolicySchema + :paramtype policy: ~azure.mgmt.storage.v2024_01_01.models.ManagementPolicySchema """ super().__init__(**kwargs) self.last_modified_time = None @@ -4564,11 +5132,11 @@ class ManagementPolicyAction(_serialization.Model): """Actions are applied to the filtered blobs when the execution condition is met. :ivar base_blob: The management policy action for base blob. - :vartype base_blob: ~azure.mgmt.storage.v2023_05_01.models.ManagementPolicyBaseBlob + :vartype base_blob: ~azure.mgmt.storage.v2024_01_01.models.ManagementPolicyBaseBlob :ivar snapshot: The management policy action for snapshot. - :vartype snapshot: ~azure.mgmt.storage.v2023_05_01.models.ManagementPolicySnapShot + :vartype snapshot: ~azure.mgmt.storage.v2024_01_01.models.ManagementPolicySnapShot :ivar version: The management policy action for version. - :vartype version: ~azure.mgmt.storage.v2023_05_01.models.ManagementPolicyVersion + :vartype version: ~azure.mgmt.storage.v2024_01_01.models.ManagementPolicyVersion """ _attribute_map = { @@ -4587,11 +5155,11 @@ def __init__( ) -> None: """ :keyword base_blob: The management policy action for base blob. - :paramtype base_blob: ~azure.mgmt.storage.v2023_05_01.models.ManagementPolicyBaseBlob + :paramtype base_blob: ~azure.mgmt.storage.v2024_01_01.models.ManagementPolicyBaseBlob :keyword snapshot: The management policy action for snapshot. - :paramtype snapshot: ~azure.mgmt.storage.v2023_05_01.models.ManagementPolicySnapShot + :paramtype snapshot: ~azure.mgmt.storage.v2024_01_01.models.ManagementPolicySnapShot :keyword version: The management policy action for version. - :paramtype version: ~azure.mgmt.storage.v2023_05_01.models.ManagementPolicyVersion + :paramtype version: ~azure.mgmt.storage.v2024_01_01.models.ManagementPolicyVersion """ super().__init__(**kwargs) self.base_blob = base_blob @@ -4603,16 +5171,16 @@ class ManagementPolicyBaseBlob(_serialization.Model): """Management policy action for base blob. :ivar tier_to_cool: The function to tier blobs to cool storage. - :vartype tier_to_cool: ~azure.mgmt.storage.v2023_05_01.models.DateAfterModification + :vartype tier_to_cool: ~azure.mgmt.storage.v2024_01_01.models.DateAfterModification :ivar tier_to_archive: The function to tier blobs to archive storage. - :vartype tier_to_archive: ~azure.mgmt.storage.v2023_05_01.models.DateAfterModification + :vartype tier_to_archive: ~azure.mgmt.storage.v2024_01_01.models.DateAfterModification :ivar tier_to_cold: The function to tier blobs to cold storage. - :vartype tier_to_cold: ~azure.mgmt.storage.v2023_05_01.models.DateAfterModification + :vartype tier_to_cold: ~azure.mgmt.storage.v2024_01_01.models.DateAfterModification :ivar tier_to_hot: The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts. - :vartype tier_to_hot: ~azure.mgmt.storage.v2023_05_01.models.DateAfterModification + :vartype tier_to_hot: ~azure.mgmt.storage.v2024_01_01.models.DateAfterModification :ivar delete: The function to delete the blob. - :vartype delete: ~azure.mgmt.storage.v2023_05_01.models.DateAfterModification + :vartype delete: ~azure.mgmt.storage.v2024_01_01.models.DateAfterModification :ivar enable_auto_tier_to_hot_from_cool: This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan. :vartype enable_auto_tier_to_hot_from_cool: bool @@ -4640,16 +5208,16 @@ def __init__( ) -> None: """ :keyword tier_to_cool: The function to tier blobs to cool storage. - :paramtype tier_to_cool: ~azure.mgmt.storage.v2023_05_01.models.DateAfterModification + :paramtype tier_to_cool: ~azure.mgmt.storage.v2024_01_01.models.DateAfterModification :keyword tier_to_archive: The function to tier blobs to archive storage. - :paramtype tier_to_archive: ~azure.mgmt.storage.v2023_05_01.models.DateAfterModification + :paramtype tier_to_archive: ~azure.mgmt.storage.v2024_01_01.models.DateAfterModification :keyword tier_to_cold: The function to tier blobs to cold storage. - :paramtype tier_to_cold: ~azure.mgmt.storage.v2023_05_01.models.DateAfterModification + :paramtype tier_to_cold: ~azure.mgmt.storage.v2024_01_01.models.DateAfterModification :keyword tier_to_hot: The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts. - :paramtype tier_to_hot: ~azure.mgmt.storage.v2023_05_01.models.DateAfterModification + :paramtype tier_to_hot: ~azure.mgmt.storage.v2024_01_01.models.DateAfterModification :keyword delete: The function to delete the blob. - :paramtype delete: ~azure.mgmt.storage.v2023_05_01.models.DateAfterModification + :paramtype delete: ~azure.mgmt.storage.v2024_01_01.models.DateAfterModification :keyword enable_auto_tier_to_hot_from_cool: This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan. @@ -4671,9 +5239,9 @@ class ManagementPolicyDefinition(_serialization.Model): All required parameters must be populated in order to send to server. :ivar actions: An object that defines the action set. Required. - :vartype actions: ~azure.mgmt.storage.v2023_05_01.models.ManagementPolicyAction + :vartype actions: ~azure.mgmt.storage.v2024_01_01.models.ManagementPolicyAction :ivar filters: An object that defines the filter set. - :vartype filters: ~azure.mgmt.storage.v2023_05_01.models.ManagementPolicyFilter + :vartype filters: ~azure.mgmt.storage.v2024_01_01.models.ManagementPolicyFilter """ _validation = { @@ -4694,9 +5262,9 @@ def __init__( ) -> None: """ :keyword actions: An object that defines the action set. Required. - :paramtype actions: ~azure.mgmt.storage.v2023_05_01.models.ManagementPolicyAction + :paramtype actions: ~azure.mgmt.storage.v2024_01_01.models.ManagementPolicyAction :keyword filters: An object that defines the filter set. - :paramtype filters: ~azure.mgmt.storage.v2023_05_01.models.ManagementPolicyFilter + :paramtype filters: ~azure.mgmt.storage.v2024_01_01.models.ManagementPolicyFilter """ super().__init__(**kwargs) self.actions = actions @@ -4716,7 +5284,7 @@ class ManagementPolicyFilter(_serialization.Model): :vartype blob_types: list[str] :ivar blob_index_match: An array of blob index tag based filters, there can be at most 10 tag filters. - :vartype blob_index_match: list[~azure.mgmt.storage.v2023_05_01.models.TagFilter] + :vartype blob_index_match: list[~azure.mgmt.storage.v2024_01_01.models.TagFilter] """ _validation = { @@ -4745,7 +5313,7 @@ def __init__( :paramtype blob_types: list[str] :keyword blob_index_match: An array of blob index tag based filters, there can be at most 10 tag filters. - :paramtype blob_index_match: list[~azure.mgmt.storage.v2023_05_01.models.TagFilter] + :paramtype blob_index_match: list[~azure.mgmt.storage.v2024_01_01.models.TagFilter] """ super().__init__(**kwargs) self.prefix_match = prefix_match @@ -4764,9 +5332,9 @@ class ManagementPolicyRule(_serialization.Model): case-sensitive. It must be unique within a policy. Required. :vartype name: str :ivar type: The valid value is Lifecycle. Required. "Lifecycle" - :vartype type: str or ~azure.mgmt.storage.v2023_05_01.models.RuleType + :vartype type: str or ~azure.mgmt.storage.v2024_01_01.models.RuleType :ivar definition: An object that defines the Lifecycle rule. Required. - :vartype definition: ~azure.mgmt.storage.v2023_05_01.models.ManagementPolicyDefinition + :vartype definition: ~azure.mgmt.storage.v2024_01_01.models.ManagementPolicyDefinition """ _validation = { @@ -4798,9 +5366,9 @@ def __init__( is case-sensitive. It must be unique within a policy. Required. :paramtype name: str :keyword type: The valid value is Lifecycle. Required. "Lifecycle" - :paramtype type: str or ~azure.mgmt.storage.v2023_05_01.models.RuleType + :paramtype type: str or ~azure.mgmt.storage.v2024_01_01.models.RuleType :keyword definition: An object that defines the Lifecycle rule. Required. - :paramtype definition: ~azure.mgmt.storage.v2023_05_01.models.ManagementPolicyDefinition + :paramtype definition: ~azure.mgmt.storage.v2024_01_01.models.ManagementPolicyDefinition """ super().__init__(**kwargs) self.enabled = enabled @@ -4818,7 +5386,7 @@ class ManagementPolicySchema(_serialization.Model): :ivar rules: The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts. Required. - :vartype rules: list[~azure.mgmt.storage.v2023_05_01.models.ManagementPolicyRule] + :vartype rules: list[~azure.mgmt.storage.v2024_01_01.models.ManagementPolicyRule] """ _validation = { @@ -4834,7 +5402,7 @@ def __init__(self, *, rules: List["_models.ManagementPolicyRule"], **kwargs: Any :keyword rules: The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts. Required. - :paramtype rules: list[~azure.mgmt.storage.v2023_05_01.models.ManagementPolicyRule] + :paramtype rules: list[~azure.mgmt.storage.v2024_01_01.models.ManagementPolicyRule] """ super().__init__(**kwargs) self.rules = rules @@ -4844,16 +5412,16 @@ class ManagementPolicySnapShot(_serialization.Model): """Management policy action for snapshot. :ivar tier_to_cool: The function to tier blob snapshot to cool storage. - :vartype tier_to_cool: ~azure.mgmt.storage.v2023_05_01.models.DateAfterCreation + :vartype tier_to_cool: ~azure.mgmt.storage.v2024_01_01.models.DateAfterCreation :ivar tier_to_archive: The function to tier blob snapshot to archive storage. - :vartype tier_to_archive: ~azure.mgmt.storage.v2023_05_01.models.DateAfterCreation + :vartype tier_to_archive: ~azure.mgmt.storage.v2024_01_01.models.DateAfterCreation :ivar tier_to_cold: The function to tier blobs to cold storage. - :vartype tier_to_cold: ~azure.mgmt.storage.v2023_05_01.models.DateAfterCreation + :vartype tier_to_cold: ~azure.mgmt.storage.v2024_01_01.models.DateAfterCreation :ivar tier_to_hot: The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts. - :vartype tier_to_hot: ~azure.mgmt.storage.v2023_05_01.models.DateAfterCreation + :vartype tier_to_hot: ~azure.mgmt.storage.v2024_01_01.models.DateAfterCreation :ivar delete: The function to delete the blob snapshot. - :vartype delete: ~azure.mgmt.storage.v2023_05_01.models.DateAfterCreation + :vartype delete: ~azure.mgmt.storage.v2024_01_01.models.DateAfterCreation """ _attribute_map = { @@ -4876,16 +5444,16 @@ def __init__( ) -> None: """ :keyword tier_to_cool: The function to tier blob snapshot to cool storage. - :paramtype tier_to_cool: ~azure.mgmt.storage.v2023_05_01.models.DateAfterCreation + :paramtype tier_to_cool: ~azure.mgmt.storage.v2024_01_01.models.DateAfterCreation :keyword tier_to_archive: The function to tier blob snapshot to archive storage. - :paramtype tier_to_archive: ~azure.mgmt.storage.v2023_05_01.models.DateAfterCreation + :paramtype tier_to_archive: ~azure.mgmt.storage.v2024_01_01.models.DateAfterCreation :keyword tier_to_cold: The function to tier blobs to cold storage. - :paramtype tier_to_cold: ~azure.mgmt.storage.v2023_05_01.models.DateAfterCreation + :paramtype tier_to_cold: ~azure.mgmt.storage.v2024_01_01.models.DateAfterCreation :keyword tier_to_hot: The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts. - :paramtype tier_to_hot: ~azure.mgmt.storage.v2023_05_01.models.DateAfterCreation + :paramtype tier_to_hot: ~azure.mgmt.storage.v2024_01_01.models.DateAfterCreation :keyword delete: The function to delete the blob snapshot. - :paramtype delete: ~azure.mgmt.storage.v2023_05_01.models.DateAfterCreation + :paramtype delete: ~azure.mgmt.storage.v2024_01_01.models.DateAfterCreation """ super().__init__(**kwargs) self.tier_to_cool = tier_to_cool @@ -4899,16 +5467,16 @@ class ManagementPolicyVersion(_serialization.Model): """Management policy action for blob version. :ivar tier_to_cool: The function to tier blob version to cool storage. - :vartype tier_to_cool: ~azure.mgmt.storage.v2023_05_01.models.DateAfterCreation + :vartype tier_to_cool: ~azure.mgmt.storage.v2024_01_01.models.DateAfterCreation :ivar tier_to_archive: The function to tier blob version to archive storage. - :vartype tier_to_archive: ~azure.mgmt.storage.v2023_05_01.models.DateAfterCreation + :vartype tier_to_archive: ~azure.mgmt.storage.v2024_01_01.models.DateAfterCreation :ivar tier_to_cold: The function to tier blobs to cold storage. - :vartype tier_to_cold: ~azure.mgmt.storage.v2023_05_01.models.DateAfterCreation + :vartype tier_to_cold: ~azure.mgmt.storage.v2024_01_01.models.DateAfterCreation :ivar tier_to_hot: The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts. - :vartype tier_to_hot: ~azure.mgmt.storage.v2023_05_01.models.DateAfterCreation + :vartype tier_to_hot: ~azure.mgmt.storage.v2024_01_01.models.DateAfterCreation :ivar delete: The function to delete the blob version. - :vartype delete: ~azure.mgmt.storage.v2023_05_01.models.DateAfterCreation + :vartype delete: ~azure.mgmt.storage.v2024_01_01.models.DateAfterCreation """ _attribute_map = { @@ -4931,16 +5499,16 @@ def __init__( ) -> None: """ :keyword tier_to_cool: The function to tier blob version to cool storage. - :paramtype tier_to_cool: ~azure.mgmt.storage.v2023_05_01.models.DateAfterCreation + :paramtype tier_to_cool: ~azure.mgmt.storage.v2024_01_01.models.DateAfterCreation :keyword tier_to_archive: The function to tier blob version to archive storage. - :paramtype tier_to_archive: ~azure.mgmt.storage.v2023_05_01.models.DateAfterCreation + :paramtype tier_to_archive: ~azure.mgmt.storage.v2024_01_01.models.DateAfterCreation :keyword tier_to_cold: The function to tier blobs to cold storage. - :paramtype tier_to_cold: ~azure.mgmt.storage.v2023_05_01.models.DateAfterCreation + :paramtype tier_to_cold: ~azure.mgmt.storage.v2024_01_01.models.DateAfterCreation :keyword tier_to_hot: The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts. - :paramtype tier_to_hot: ~azure.mgmt.storage.v2023_05_01.models.DateAfterCreation + :paramtype tier_to_hot: ~azure.mgmt.storage.v2024_01_01.models.DateAfterCreation :keyword delete: The function to delete the blob version. - :paramtype delete: ~azure.mgmt.storage.v2023_05_01.models.DateAfterCreation + :paramtype delete: ~azure.mgmt.storage.v2024_01_01.models.DateAfterCreation """ super().__init__(**kwargs) self.tier_to_cool = tier_to_cool @@ -4962,7 +5530,7 @@ class MetricSpecification(_serialization.Model): :ivar unit: Unit could be Bytes or Count. :vartype unit: str :ivar dimensions: Dimensions of blobs, including blob type and access tier. - :vartype dimensions: list[~azure.mgmt.storage.v2023_05_01.models.Dimension] + :vartype dimensions: list[~azure.mgmt.storage.v2024_01_01.models.Dimension] :ivar aggregation_type: Aggregation type could be Average. :vartype aggregation_type: str :ivar fill_gap_with_zero: The property to decide fill gap with zero or not. @@ -5009,7 +5577,7 @@ def __init__( :keyword unit: Unit could be Bytes or Count. :paramtype unit: str :keyword dimensions: Dimensions of blobs, including blob type and access tier. - :paramtype dimensions: list[~azure.mgmt.storage.v2023_05_01.models.Dimension] + :paramtype dimensions: list[~azure.mgmt.storage.v2024_01_01.models.Dimension] :keyword aggregation_type: Aggregation type could be Average. :paramtype aggregation_type: str :keyword fill_gap_with_zero: The property to decide fill gap with zero or not. @@ -5060,16 +5628,16 @@ class NetworkRuleSet(_serialization.Model): values are any combination of Logging|Metrics|AzureServices (For example, "Logging, Metrics"), or None to bypass none of those traffics. Known values are: "None", "Logging", "Metrics", and "AzureServices". - :vartype bypass: str or ~azure.mgmt.storage.v2023_05_01.models.Bypass + :vartype bypass: str or ~azure.mgmt.storage.v2024_01_01.models.Bypass :ivar resource_access_rules: Sets the resource access rules. - :vartype resource_access_rules: list[~azure.mgmt.storage.v2023_05_01.models.ResourceAccessRule] + :vartype resource_access_rules: list[~azure.mgmt.storage.v2024_01_01.models.ResourceAccessRule] :ivar virtual_network_rules: Sets the virtual network rules. - :vartype virtual_network_rules: list[~azure.mgmt.storage.v2023_05_01.models.VirtualNetworkRule] + :vartype virtual_network_rules: list[~azure.mgmt.storage.v2024_01_01.models.VirtualNetworkRule] :ivar ip_rules: Sets the IP ACL rules. - :vartype ip_rules: list[~azure.mgmt.storage.v2023_05_01.models.IPRule] + :vartype ip_rules: list[~azure.mgmt.storage.v2024_01_01.models.IPRule] :ivar default_action: Specifies the default action of allow or deny when no other rules match. Known values are: "Allow" and "Deny". - :vartype default_action: str or ~azure.mgmt.storage.v2023_05_01.models.DefaultAction + :vartype default_action: str or ~azure.mgmt.storage.v2024_01_01.models.DefaultAction """ _validation = { @@ -5099,18 +5667,18 @@ def __init__( Possible values are any combination of Logging|Metrics|AzureServices (For example, "Logging, Metrics"), or None to bypass none of those traffics. Known values are: "None", "Logging", "Metrics", and "AzureServices". - :paramtype bypass: str or ~azure.mgmt.storage.v2023_05_01.models.Bypass + :paramtype bypass: str or ~azure.mgmt.storage.v2024_01_01.models.Bypass :keyword resource_access_rules: Sets the resource access rules. :paramtype resource_access_rules: - list[~azure.mgmt.storage.v2023_05_01.models.ResourceAccessRule] + list[~azure.mgmt.storage.v2024_01_01.models.ResourceAccessRule] :keyword virtual_network_rules: Sets the virtual network rules. :paramtype virtual_network_rules: - list[~azure.mgmt.storage.v2023_05_01.models.VirtualNetworkRule] + list[~azure.mgmt.storage.v2024_01_01.models.VirtualNetworkRule] :keyword ip_rules: Sets the IP ACL rules. - :paramtype ip_rules: list[~azure.mgmt.storage.v2023_05_01.models.IPRule] + :paramtype ip_rules: list[~azure.mgmt.storage.v2024_01_01.models.IPRule] :keyword default_action: Specifies the default action of allow or deny when no other rules match. Known values are: "Allow" and "Deny". - :paramtype default_action: str or ~azure.mgmt.storage.v2023_05_01.models.DefaultAction + :paramtype default_action: str or ~azure.mgmt.storage.v2024_01_01.models.DefaultAction """ super().__init__(**kwargs) self.bypass = bypass @@ -5174,7 +5742,7 @@ class ResourceAutoGenerated(_serialization.Model): :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: ~azure.mgmt.storage.v2023_05_01.models.SystemData + :vartype system_data: ~azure.mgmt.storage.v2024_01_01.models.SystemData """ _validation = { @@ -5216,7 +5784,7 @@ class ProxyResourceAutoGenerated(ResourceAutoGenerated): :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: ~azure.mgmt.storage.v2023_05_01.models.SystemData + :vartype system_data: ~azure.mgmt.storage.v2024_01_01.models.SystemData """ @@ -5235,22 +5803,22 @@ class NetworkSecurityPerimeterConfiguration(ProxyResourceAutoGenerated): :vartype type: str :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: ~azure.mgmt.storage.v2023_05_01.models.SystemData + :vartype system_data: ~azure.mgmt.storage.v2024_01_01.models.SystemData :ivar provisioning_state: Provisioning state of Network Security Perimeter configuration propagation. Known values are: "Accepted", "Succeeded", "Failed", "Deleting", and "Canceled". :vartype provisioning_state: str or - ~azure.mgmt.storage.v2023_05_01.models.NetworkSecurityPerimeterConfigurationProvisioningState + ~azure.mgmt.storage.v2024_01_01.models.NetworkSecurityPerimeterConfigurationProvisioningState :ivar provisioning_issues: List of Provisioning Issues if any. - :vartype provisioning_issues: list[~azure.mgmt.storage.v2023_05_01.models.ProvisioningIssue] + :vartype provisioning_issues: list[~azure.mgmt.storage.v2024_01_01.models.ProvisioningIssue] :ivar network_security_perimeter: NetworkSecurityPerimeter related information. :vartype network_security_perimeter: - ~azure.mgmt.storage.v2023_05_01.models.NetworkSecurityPerimeter + ~azure.mgmt.storage.v2024_01_01.models.NetworkSecurityPerimeter :ivar resource_association: Information about resource association. :vartype resource_association: - ~azure.mgmt.storage.v2023_05_01.models.NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation + ~azure.mgmt.storage.v2024_01_01.models.NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation :ivar profile: Network Security Perimeter profile. :vartype profile: - ~azure.mgmt.storage.v2023_05_01.models.NetworkSecurityPerimeterConfigurationPropertiesProfile + ~azure.mgmt.storage.v2024_01_01.models.NetworkSecurityPerimeterConfigurationPropertiesProfile """ _validation = { @@ -5300,7 +5868,7 @@ class NetworkSecurityPerimeterConfigurationList(_serialization.Model): # pylint :ivar value: A collection of Network Security Perimeter configurations. :vartype value: - list[~azure.mgmt.storage.v2023_05_01.models.NetworkSecurityPerimeterConfiguration] + list[~azure.mgmt.storage.v2024_01_01.models.NetworkSecurityPerimeterConfiguration] :ivar next_link: The URI that can be used to request the next set of paged results. :vartype next_link: str """ @@ -5332,7 +5900,7 @@ class NetworkSecurityPerimeterConfigurationPropertiesProfile(_serialization.Mode :ivar access_rules_version: Current access rules version. :vartype access_rules_version: float :ivar access_rules: List of Access Rules. - :vartype access_rules: list[~azure.mgmt.storage.v2023_05_01.models.NspAccessRule] + :vartype access_rules: list[~azure.mgmt.storage.v2024_01_01.models.NspAccessRule] :ivar diagnostic_settings_version: Diagnostic settings version. :vartype diagnostic_settings_version: float :ivar enabled_log_categories: Enabled logging categories. @@ -5363,7 +5931,7 @@ def __init__( :keyword access_rules_version: Current access rules version. :paramtype access_rules_version: float :keyword access_rules: List of Access Rules. - :paramtype access_rules: list[~azure.mgmt.storage.v2023_05_01.models.NspAccessRule] + :paramtype access_rules: list[~azure.mgmt.storage.v2024_01_01.models.NspAccessRule] :keyword diagnostic_settings_version: Diagnostic settings version. :paramtype diagnostic_settings_version: float :keyword enabled_log_categories: Enabled logging categories. @@ -5387,7 +5955,7 @@ class NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation( :ivar access_mode: Access Mode of the resource association. Known values are: "Enforced", "Learning", and "Audit". :vartype access_mode: str or - ~azure.mgmt.storage.v2023_05_01.models.ResourceAssociationAccessMode + ~azure.mgmt.storage.v2024_01_01.models.ResourceAssociationAccessMode """ _attribute_map = { @@ -5408,7 +5976,7 @@ def __init__( :keyword access_mode: Access Mode of the resource association. Known values are: "Enforced", "Learning", and "Audit". :paramtype access_mode: str or - ~azure.mgmt.storage.v2023_05_01.models.ResourceAssociationAccessMode + ~azure.mgmt.storage.v2024_01_01.models.ResourceAssociationAccessMode """ super().__init__(**kwargs) self.name = name @@ -5423,7 +5991,7 @@ class NspAccessRule(_serialization.Model): :ivar name: Name of the resource. :vartype name: str :ivar properties: Properties of Access Rule. - :vartype properties: ~azure.mgmt.storage.v2023_05_01.models.NspAccessRuleProperties + :vartype properties: ~azure.mgmt.storage.v2024_01_01.models.NspAccessRuleProperties """ _validation = { @@ -5451,15 +6019,15 @@ class NspAccessRuleProperties(_serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. :ivar direction: Direction of Access Rule. Known values are: "Inbound" and "Outbound". - :vartype direction: str or ~azure.mgmt.storage.v2023_05_01.models.NspAccessRuleDirection + :vartype direction: str or ~azure.mgmt.storage.v2024_01_01.models.NspAccessRuleDirection :ivar address_prefixes: Address prefixes in the CIDR format for inbound rules. :vartype address_prefixes: list[str] :ivar subscriptions: Subscriptions for inbound rules. :vartype subscriptions: - list[~azure.mgmt.storage.v2023_05_01.models.NspAccessRulePropertiesSubscriptionsItem] + list[~azure.mgmt.storage.v2024_01_01.models.NspAccessRulePropertiesSubscriptionsItem] :ivar network_security_perimeters: NetworkSecurityPerimeters for inbound rules. :vartype network_security_perimeters: - list[~azure.mgmt.storage.v2023_05_01.models.NetworkSecurityPerimeter] + list[~azure.mgmt.storage.v2024_01_01.models.NetworkSecurityPerimeter] :ivar fully_qualified_domain_names: FQDN for outbound rules. :vartype fully_qualified_domain_names: list[str] """ @@ -5487,12 +6055,12 @@ def __init__( ) -> None: """ :keyword direction: Direction of Access Rule. Known values are: "Inbound" and "Outbound". - :paramtype direction: str or ~azure.mgmt.storage.v2023_05_01.models.NspAccessRuleDirection + :paramtype direction: str or ~azure.mgmt.storage.v2024_01_01.models.NspAccessRuleDirection :keyword address_prefixes: Address prefixes in the CIDR format for inbound rules. :paramtype address_prefixes: list[str] :keyword subscriptions: Subscriptions for inbound rules. :paramtype subscriptions: - list[~azure.mgmt.storage.v2023_05_01.models.NspAccessRulePropertiesSubscriptionsItem] + list[~azure.mgmt.storage.v2024_01_01.models.NspAccessRulePropertiesSubscriptionsItem] """ super().__init__(**kwargs) self.direction = direction @@ -5526,7 +6094,7 @@ class ObjectReplicationPolicies(_serialization.Model): """List storage account object replication policies. :ivar value: The replication policy between two storage accounts. - :vartype value: list[~azure.mgmt.storage.v2023_05_01.models.ObjectReplicationPolicy] + :vartype value: list[~azure.mgmt.storage.v2024_01_01.models.ObjectReplicationPolicy] """ _attribute_map = { @@ -5536,7 +6104,7 @@ class ObjectReplicationPolicies(_serialization.Model): def __init__(self, *, value: Optional[List["_models.ObjectReplicationPolicy"]] = None, **kwargs: Any) -> None: """ :keyword value: The replication policy between two storage accounts. - :paramtype value: list[~azure.mgmt.storage.v2023_05_01.models.ObjectReplicationPolicy] + :paramtype value: list[~azure.mgmt.storage.v2024_01_01.models.ObjectReplicationPolicy] """ super().__init__(**kwargs) self.value = value @@ -5567,7 +6135,10 @@ class ObjectReplicationPolicy(Resource): allowCrossTenantReplication set to false. :vartype destination_account: str :ivar rules: The storage account object replication rules. - :vartype rules: list[~azure.mgmt.storage.v2023_05_01.models.ObjectReplicationPolicyRule] + :vartype rules: list[~azure.mgmt.storage.v2024_01_01.models.ObjectReplicationPolicyRule] + :ivar metrics: Optional. The object replication policy metrics feature options. + :vartype metrics: + ~azure.mgmt.storage.v2024_01_01.models.ObjectReplicationPolicyPropertiesMetrics """ _validation = { @@ -5587,6 +6158,7 @@ class ObjectReplicationPolicy(Resource): "source_account": {"key": "properties.sourceAccount", "type": "str"}, "destination_account": {"key": "properties.destinationAccount", "type": "str"}, "rules": {"key": "properties.rules", "type": "[ObjectReplicationPolicyRule]"}, + "metrics": {"key": "properties.metrics", "type": "ObjectReplicationPolicyPropertiesMetrics"}, } def __init__( @@ -5595,6 +6167,7 @@ def __init__( source_account: Optional[str] = None, destination_account: Optional[str] = None, rules: Optional[List["_models.ObjectReplicationPolicyRule"]] = None, + metrics: Optional["_models.ObjectReplicationPolicyPropertiesMetrics"] = None, **kwargs: Any ) -> None: """ @@ -5605,7 +6178,10 @@ def __init__( if allowCrossTenantReplication set to false. :paramtype destination_account: str :keyword rules: The storage account object replication rules. - :paramtype rules: list[~azure.mgmt.storage.v2023_05_01.models.ObjectReplicationPolicyRule] + :paramtype rules: list[~azure.mgmt.storage.v2024_01_01.models.ObjectReplicationPolicyRule] + :keyword metrics: Optional. The object replication policy metrics feature options. + :paramtype metrics: + ~azure.mgmt.storage.v2024_01_01.models.ObjectReplicationPolicyPropertiesMetrics """ super().__init__(**kwargs) self.policy_id = None @@ -5613,6 +6189,7 @@ def __init__( self.source_account = source_account self.destination_account = destination_account self.rules = rules + self.metrics = metrics class ObjectReplicationPolicyFilter(_serialization.Model): @@ -5649,6 +6226,27 @@ def __init__( self.min_creation_time = min_creation_time +class ObjectReplicationPolicyPropertiesMetrics(_serialization.Model): + """Optional. The object replication policy metrics feature options. + + :ivar enabled: Indicates whether object replication metrics feature is enabled for the policy. + :vartype enabled: bool + """ + + _attribute_map = { + "enabled": {"key": "enabled", "type": "bool"}, + } + + def __init__(self, *, enabled: Optional[bool] = None, **kwargs: Any) -> None: + """ + :keyword enabled: Indicates whether object replication metrics feature is enabled for the + policy. + :paramtype enabled: bool + """ + super().__init__(**kwargs) + self.enabled = enabled + + class ObjectReplicationPolicyRule(_serialization.Model): """The replication policy rule between two containers. @@ -5662,7 +6260,7 @@ class ObjectReplicationPolicyRule(_serialization.Model): :ivar destination_container: Required. Destination container name. Required. :vartype destination_container: str :ivar filters: Optional. An object that defines the filter set. - :vartype filters: ~azure.mgmt.storage.v2023_05_01.models.ObjectReplicationPolicyFilter + :vartype filters: ~azure.mgmt.storage.v2024_01_01.models.ObjectReplicationPolicyFilter """ _validation = { @@ -5695,7 +6293,7 @@ def __init__( :keyword destination_container: Required. Destination container name. Required. :paramtype destination_container: str :keyword filters: Optional. An object that defines the filter set. - :paramtype filters: ~azure.mgmt.storage.v2023_05_01.models.ObjectReplicationPolicyFilter + :paramtype filters: ~azure.mgmt.storage.v2024_01_01.models.ObjectReplicationPolicyFilter """ super().__init__(**kwargs) self.rule_id = rule_id @@ -5710,11 +6308,11 @@ class Operation(_serialization.Model): :ivar name: Operation name: {provider}/{resource}/{operation}. :vartype name: str :ivar display: Display metadata associated with the operation. - :vartype display: ~azure.mgmt.storage.v2023_05_01.models.OperationDisplay + :vartype display: ~azure.mgmt.storage.v2024_01_01.models.OperationDisplay :ivar origin: The origin of operations. :vartype origin: str :ivar service_specification: One property of operation, include metric specifications. - :vartype service_specification: ~azure.mgmt.storage.v2023_05_01.models.ServiceSpecification + :vartype service_specification: ~azure.mgmt.storage.v2024_01_01.models.ServiceSpecification """ _attribute_map = { @@ -5737,11 +6335,11 @@ def __init__( :keyword name: Operation name: {provider}/{resource}/{operation}. :paramtype name: str :keyword display: Display metadata associated with the operation. - :paramtype display: ~azure.mgmt.storage.v2023_05_01.models.OperationDisplay + :paramtype display: ~azure.mgmt.storage.v2024_01_01.models.OperationDisplay :keyword origin: The origin of operations. :paramtype origin: str :keyword service_specification: One property of operation, include metric specifications. - :paramtype service_specification: ~azure.mgmt.storage.v2023_05_01.models.ServiceSpecification + :paramtype service_specification: ~azure.mgmt.storage.v2024_01_01.models.ServiceSpecification """ super().__init__(**kwargs) self.name = name @@ -5801,7 +6399,7 @@ class OperationListResult(_serialization.Model): link to get the next set of results. :ivar value: List of Storage operations supported by the Storage resource provider. - :vartype value: list[~azure.mgmt.storage.v2023_05_01.models.Operation] + :vartype value: list[~azure.mgmt.storage.v2024_01_01.models.Operation] """ _attribute_map = { @@ -5811,7 +6409,7 @@ class OperationListResult(_serialization.Model): def __init__(self, *, value: Optional[List["_models.Operation"]] = None, **kwargs: Any) -> None: """ :keyword value: List of Storage operations supported by the Storage resource provider. - :paramtype value: list[~azure.mgmt.storage.v2023_05_01.models.Operation] + :paramtype value: list[~azure.mgmt.storage.v2024_01_01.models.Operation] """ super().__init__(**kwargs) self.value = value @@ -5900,15 +6498,15 @@ class PrivateEndpointConnection(Resource): "Microsoft.Storage/storageAccounts". :vartype type: str :ivar private_endpoint: The resource of private end point. - :vartype private_endpoint: ~azure.mgmt.storage.v2023_05_01.models.PrivateEndpoint + :vartype private_endpoint: ~azure.mgmt.storage.v2024_01_01.models.PrivateEndpoint :ivar private_link_service_connection_state: A collection of information about the state of the connection between service consumer and provider. :vartype private_link_service_connection_state: - ~azure.mgmt.storage.v2023_05_01.models.PrivateLinkServiceConnectionState + ~azure.mgmt.storage.v2024_01_01.models.PrivateLinkServiceConnectionState :ivar provisioning_state: The provisioning state of the private endpoint connection resource. Known values are: "Succeeded", "Creating", "Deleting", and "Failed". :vartype provisioning_state: str or - ~azure.mgmt.storage.v2023_05_01.models.PrivateEndpointConnectionProvisioningState + ~azure.mgmt.storage.v2024_01_01.models.PrivateEndpointConnectionProvisioningState """ _validation = { @@ -5939,11 +6537,11 @@ def __init__( ) -> None: """ :keyword private_endpoint: The resource of private end point. - :paramtype private_endpoint: ~azure.mgmt.storage.v2023_05_01.models.PrivateEndpoint + :paramtype private_endpoint: ~azure.mgmt.storage.v2024_01_01.models.PrivateEndpoint :keyword private_link_service_connection_state: A collection of information about the state of the connection between service consumer and provider. :paramtype private_link_service_connection_state: - ~azure.mgmt.storage.v2023_05_01.models.PrivateLinkServiceConnectionState + ~azure.mgmt.storage.v2024_01_01.models.PrivateLinkServiceConnectionState """ super().__init__(**kwargs) self.private_endpoint = private_endpoint @@ -5955,7 +6553,7 @@ class PrivateEndpointConnectionListResult(_serialization.Model): """List of private endpoint connection associated with the specified storage account. :ivar value: Array of private endpoint connections. - :vartype value: list[~azure.mgmt.storage.v2023_05_01.models.PrivateEndpointConnection] + :vartype value: list[~azure.mgmt.storage.v2024_01_01.models.PrivateEndpointConnection] """ _attribute_map = { @@ -5965,7 +6563,7 @@ class PrivateEndpointConnectionListResult(_serialization.Model): def __init__(self, *, value: Optional[List["_models.PrivateEndpointConnection"]] = None, **kwargs: Any) -> None: """ :keyword value: Array of private endpoint connections. - :paramtype value: list[~azure.mgmt.storage.v2023_05_01.models.PrivateEndpointConnection] + :paramtype value: list[~azure.mgmt.storage.v2024_01_01.models.PrivateEndpointConnection] """ super().__init__(**kwargs) self.value = value @@ -6024,7 +6622,7 @@ class PrivateLinkResourceListResult(_serialization.Model): """A list of private link resources. :ivar value: Array of private link resources. - :vartype value: list[~azure.mgmt.storage.v2023_05_01.models.PrivateLinkResource] + :vartype value: list[~azure.mgmt.storage.v2024_01_01.models.PrivateLinkResource] """ _attribute_map = { @@ -6034,7 +6632,7 @@ class PrivateLinkResourceListResult(_serialization.Model): def __init__(self, *, value: Optional[List["_models.PrivateLinkResource"]] = None, **kwargs: Any) -> None: """ :keyword value: Array of private link resources. - :paramtype value: list[~azure.mgmt.storage.v2023_05_01.models.PrivateLinkResource] + :paramtype value: list[~azure.mgmt.storage.v2024_01_01.models.PrivateLinkResource] """ super().__init__(**kwargs) self.value = value @@ -6047,7 +6645,7 @@ class PrivateLinkServiceConnectionState(_serialization.Model): :ivar status: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. Known values are: "Pending", "Approved", and "Rejected". :vartype status: str or - ~azure.mgmt.storage.v2023_05_01.models.PrivateEndpointServiceConnectionStatus + ~azure.mgmt.storage.v2024_01_01.models.PrivateEndpointServiceConnectionStatus :ivar description: The reason for approval/rejection of the connection. :vartype description: str :ivar action_required: A message indicating if changes on the service provider require any @@ -6073,7 +6671,7 @@ def __init__( :keyword status: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. Known values are: "Pending", "Approved", and "Rejected". :paramtype status: str or - ~azure.mgmt.storage.v2023_05_01.models.PrivateEndpointServiceConnectionStatus + ~azure.mgmt.storage.v2024_01_01.models.PrivateEndpointServiceConnectionStatus :keyword description: The reason for approval/rejection of the connection. :paramtype description: str :keyword action_required: A message indicating if changes on the service provider require any @@ -6124,7 +6722,7 @@ class ProtocolSettings(_serialization.Model): """Protocol settings for file service. :ivar smb: Setting for SMB protocol. - :vartype smb: ~azure.mgmt.storage.v2023_05_01.models.SmbSetting + :vartype smb: ~azure.mgmt.storage.v2024_01_01.models.SmbSetting """ _attribute_map = { @@ -6134,7 +6732,7 @@ class ProtocolSettings(_serialization.Model): def __init__(self, *, smb: Optional["_models.SmbSetting"] = None, **kwargs: Any) -> None: """ :keyword smb: Setting for SMB protocol. - :paramtype smb: ~azure.mgmt.storage.v2023_05_01.models.SmbSetting + :paramtype smb: ~azure.mgmt.storage.v2024_01_01.models.SmbSetting """ super().__init__(**kwargs) self.smb = smb @@ -6148,7 +6746,7 @@ class ProvisioningIssue(_serialization.Model): :ivar name: Name of the issue. :vartype name: str :ivar properties: Properties of provisioning issue. - :vartype properties: ~azure.mgmt.storage.v2023_05_01.models.ProvisioningIssueProperties + :vartype properties: ~azure.mgmt.storage.v2024_01_01.models.ProvisioningIssueProperties """ _validation = { @@ -6175,9 +6773,9 @@ class ProvisioningIssueProperties(_serialization.Model): :ivar issue_type: Type of issue. Known values are: "Unknown" and "ConfigurationPropagationFailure". - :vartype issue_type: str or ~azure.mgmt.storage.v2023_05_01.models.IssueType + :vartype issue_type: str or ~azure.mgmt.storage.v2024_01_01.models.IssueType :ivar severity: Severity of the issue. Known values are: "Warning" and "Error". - :vartype severity: str or ~azure.mgmt.storage.v2023_05_01.models.Severity + :vartype severity: str or ~azure.mgmt.storage.v2024_01_01.models.Severity :ivar description: Description of the issue. :vartype description: str """ @@ -6199,9 +6797,9 @@ def __init__( """ :keyword issue_type: Type of issue. Known values are: "Unknown" and "ConfigurationPropagationFailure". - :paramtype issue_type: str or ~azure.mgmt.storage.v2023_05_01.models.IssueType + :paramtype issue_type: str or ~azure.mgmt.storage.v2024_01_01.models.IssueType :keyword severity: Severity of the issue. Known values are: "Warning" and "Error". - :paramtype severity: str or ~azure.mgmt.storage.v2023_05_01.models.Severity + :paramtype severity: str or ~azure.mgmt.storage.v2024_01_01.models.Severity :keyword description: Description of the issue. :paramtype description: str """ @@ -6227,7 +6825,7 @@ class QueueServiceProperties(Resource): :ivar cors: Specifies CORS rules for the Queue service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the Queue service. - :vartype cors: ~azure.mgmt.storage.v2023_05_01.models.CorsRules + :vartype cors: ~azure.mgmt.storage.v2024_01_01.models.CorsRules """ _validation = { @@ -6248,7 +6846,7 @@ def __init__(self, *, cors: Optional["_models.CorsRules"] = None, **kwargs: Any) :keyword cors: Specifies CORS rules for the Queue service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the Queue service. - :paramtype cors: ~azure.mgmt.storage.v2023_05_01.models.CorsRules + :paramtype cors: ~azure.mgmt.storage.v2024_01_01.models.CorsRules """ super().__init__(**kwargs) self.cors = cors @@ -6341,7 +6939,7 @@ class Restriction(_serialization.Model): "NotAvailableForSubscription". Quota Id is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. The "NotAvailableForSubscription" is related to capacity at DC. Known values are: "QuotaId" and "NotAvailableForSubscription". - :vartype reason_code: str or ~azure.mgmt.storage.v2023_05_01.models.ReasonCode + :vartype reason_code: str or ~azure.mgmt.storage.v2024_01_01.models.ReasonCode """ _validation = { @@ -6361,7 +6959,7 @@ def __init__(self, *, reason_code: Optional[Union[str, "_models.ReasonCode"]] = "NotAvailableForSubscription". Quota Id is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. The "NotAvailableForSubscription" is related to capacity at DC. Known values are: "QuotaId" and "NotAvailableForSubscription". - :paramtype reason_code: str or ~azure.mgmt.storage.v2023_05_01.models.ReasonCode + :paramtype reason_code: str or ~azure.mgmt.storage.v2024_01_01.models.ReasonCode """ super().__init__(**kwargs) self.type = None @@ -6375,7 +6973,7 @@ class RoutingPreference(_serialization.Model): :ivar routing_choice: Routing Choice defines the kind of network routing opted by the user. Known values are: "MicrosoftRouting" and "InternetRouting". - :vartype routing_choice: str or ~azure.mgmt.storage.v2023_05_01.models.RoutingChoice + :vartype routing_choice: str or ~azure.mgmt.storage.v2024_01_01.models.RoutingChoice :ivar publish_microsoft_endpoints: A boolean flag which indicates whether microsoft routing storage endpoints are to be published. :vartype publish_microsoft_endpoints: bool @@ -6401,7 +6999,7 @@ def __init__( """ :keyword routing_choice: Routing Choice defines the kind of network routing opted by the user. Known values are: "MicrosoftRouting" and "InternetRouting". - :paramtype routing_choice: str or ~azure.mgmt.storage.v2023_05_01.models.RoutingChoice + :paramtype routing_choice: str or ~azure.mgmt.storage.v2024_01_01.models.RoutingChoice :keyword publish_microsoft_endpoints: A boolean flag which indicates whether microsoft routing storage endpoints are to be published. :paramtype publish_microsoft_endpoints: bool @@ -6426,7 +7024,7 @@ class SasPolicy(_serialization.Model): sasPolicy.sasExpirationPeriod is violated. The 'Log' action can be used for audit purposes and the 'Block' action can be used to block and deny the usage of SAS tokens that do not adhere to the sas policy expiration period. Known values are: "Log" and "Block". - :vartype expiration_action: str or ~azure.mgmt.storage.v2023_05_01.models.ExpirationAction + :vartype expiration_action: str or ~azure.mgmt.storage.v2024_01_01.models.ExpirationAction """ _validation = { @@ -6453,7 +7051,7 @@ def __init__( sasPolicy.sasExpirationPeriod is violated. The 'Log' action can be used for audit purposes and the 'Block' action can be used to block and deny the usage of SAS tokens that do not adhere to the sas policy expiration period. Known values are: "Log" and "Block". - :paramtype expiration_action: str or ~azure.mgmt.storage.v2023_05_01.models.ExpirationAction + :paramtype expiration_action: str or ~azure.mgmt.storage.v2024_01_01.models.ExpirationAction """ super().__init__(**kwargs) self.sas_expiration_period = sas_expiration_period @@ -6469,17 +7067,17 @@ class ServiceSasParameters(_serialization.Model): :vartype canonicalized_resource: str :ivar resource: The signed services accessible with the service SAS. Possible values include: Blob (b), Container (c), File (f), Share (s). Known values are: "b", "c", "f", and "s". - :vartype resource: str or ~azure.mgmt.storage.v2023_05_01.models.SignedResource + :vartype resource: str or ~azure.mgmt.storage.v2024_01_01.models.SignedResource :ivar permissions: The signed permissions for the service SAS. Possible values include: Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p). Known values are: "r", "d", "w", "l", "a", "c", "u", and "p". - :vartype permissions: str or ~azure.mgmt.storage.v2023_05_01.models.Permissions + :vartype permissions: str or ~azure.mgmt.storage.v2024_01_01.models.Permissions :ivar ip_address_or_range: An IP address or a range of IP addresses from which to accept requests. :vartype ip_address_or_range: str :ivar protocols: The protocol permitted for a request made with the account SAS. Known values are: "https,http" and "https". - :vartype protocols: str or ~azure.mgmt.storage.v2023_05_01.models.HttpProtocol + :vartype protocols: str or ~azure.mgmt.storage.v2024_01_01.models.HttpProtocol :ivar shared_access_start_time: The time at which the SAS becomes valid. :vartype shared_access_start_time: ~datetime.datetime :ivar shared_access_expiry_time: The time at which the shared access signature becomes invalid. @@ -6564,17 +7162,17 @@ def __init__( :keyword resource: The signed services accessible with the service SAS. Possible values include: Blob (b), Container (c), File (f), Share (s). Known values are: "b", "c", "f", and "s". - :paramtype resource: str or ~azure.mgmt.storage.v2023_05_01.models.SignedResource + :paramtype resource: str or ~azure.mgmt.storage.v2024_01_01.models.SignedResource :keyword permissions: The signed permissions for the service SAS. Possible values include: Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p). Known values are: "r", "d", "w", "l", "a", "c", "u", and "p". - :paramtype permissions: str or ~azure.mgmt.storage.v2023_05_01.models.Permissions + :paramtype permissions: str or ~azure.mgmt.storage.v2024_01_01.models.Permissions :keyword ip_address_or_range: An IP address or a range of IP addresses from which to accept requests. :paramtype ip_address_or_range: str :keyword protocols: The protocol permitted for a request made with the account SAS. Known values are: "https,http" and "https". - :paramtype protocols: str or ~azure.mgmt.storage.v2023_05_01.models.HttpProtocol + :paramtype protocols: str or ~azure.mgmt.storage.v2024_01_01.models.HttpProtocol :keyword shared_access_start_time: The time at which the SAS becomes valid. :paramtype shared_access_start_time: ~datetime.datetime :keyword shared_access_expiry_time: The time at which the shared access signature becomes @@ -6630,7 +7228,7 @@ class ServiceSpecification(_serialization.Model): :ivar metric_specifications: Metric specifications of operation. :vartype metric_specifications: - list[~azure.mgmt.storage.v2023_05_01.models.MetricSpecification] + list[~azure.mgmt.storage.v2024_01_01.models.MetricSpecification] """ _attribute_map = { @@ -6643,7 +7241,7 @@ def __init__( """ :keyword metric_specifications: Metric specifications of operation. :paramtype metric_specifications: - list[~azure.mgmt.storage.v2023_05_01.models.MetricSpecification] + list[~azure.mgmt.storage.v2024_01_01.models.MetricSpecification] """ super().__init__(**kwargs) self.metric_specifications = metric_specifications @@ -6655,7 +7253,7 @@ class SignedIdentifier(_serialization.Model): :ivar id: An unique identifier of the stored access policy. :vartype id: str :ivar access_policy: Access policy. - :vartype access_policy: ~azure.mgmt.storage.v2023_05_01.models.AccessPolicy + :vartype access_policy: ~azure.mgmt.storage.v2024_01_01.models.AccessPolicy """ _attribute_map = { @@ -6674,7 +7272,7 @@ def __init__( :keyword id: An unique identifier of the stored access policy. :paramtype id: str :keyword access_policy: Access policy. - :paramtype access_policy: ~azure.mgmt.storage.v2023_05_01.models.AccessPolicy + :paramtype access_policy: ~azure.mgmt.storage.v2024_01_01.models.AccessPolicy """ super().__init__(**kwargs) self.id = id @@ -6691,11 +7289,12 @@ class Sku(_serialization.Model): :ivar name: The SKU name. Required for account creation; optional for update. Note that in older versions, SKU name was called accountType. Required. Known values are: "Standard_LRS", "Standard_GRS", "Standard_RAGRS", "Standard_ZRS", "Premium_LRS", "Premium_ZRS", - "Standard_GZRS", and "Standard_RAGZRS". - :vartype name: str or ~azure.mgmt.storage.v2023_05_01.models.SkuName + "Standard_GZRS", "Standard_RAGZRS", "StandardV2_LRS", "StandardV2_GRS", "StandardV2_ZRS", + "StandardV2_GZRS", "PremiumV2_LRS", and "PremiumV2_ZRS". + :vartype name: str or ~azure.mgmt.storage.v2024_01_01.models.SkuName :ivar tier: The SKU tier. This is based on the SKU name. Known values are: "Standard" and "Premium". - :vartype tier: str or ~azure.mgmt.storage.v2023_05_01.models.SkuTier + :vartype tier: str or ~azure.mgmt.storage.v2024_01_01.models.SkuTier """ _validation = { @@ -6713,8 +7312,9 @@ def __init__(self, *, name: Union[str, "_models.SkuName"], **kwargs: Any) -> Non :keyword name: The SKU name. Required for account creation; optional for update. Note that in older versions, SKU name was called accountType. Required. Known values are: "Standard_LRS", "Standard_GRS", "Standard_RAGRS", "Standard_ZRS", "Premium_LRS", "Premium_ZRS", - "Standard_GZRS", and "Standard_RAGZRS". - :paramtype name: str or ~azure.mgmt.storage.v2023_05_01.models.SkuName + "Standard_GZRS", "Standard_RAGZRS", "StandardV2_LRS", "StandardV2_GRS", "StandardV2_ZRS", + "StandardV2_GZRS", "PremiumV2_LRS", and "PremiumV2_ZRS". + :paramtype name: str or ~azure.mgmt.storage.v2024_01_01.models.SkuName """ super().__init__(**kwargs) self.name = name @@ -6761,25 +7361,26 @@ class SkuInformation(_serialization.Model): :ivar name: The SKU name. Required for account creation; optional for update. Note that in older versions, SKU name was called accountType. Required. Known values are: "Standard_LRS", "Standard_GRS", "Standard_RAGRS", "Standard_ZRS", "Premium_LRS", "Premium_ZRS", - "Standard_GZRS", and "Standard_RAGZRS". - :vartype name: str or ~azure.mgmt.storage.v2023_05_01.models.SkuName + "Standard_GZRS", "Standard_RAGZRS", "StandardV2_LRS", "StandardV2_GRS", "StandardV2_ZRS", + "StandardV2_GZRS", "PremiumV2_LRS", and "PremiumV2_ZRS". + :vartype name: str or ~azure.mgmt.storage.v2024_01_01.models.SkuName :ivar tier: The SKU tier. This is based on the SKU name. Known values are: "Standard" and "Premium". - :vartype tier: str or ~azure.mgmt.storage.v2023_05_01.models.SkuTier + :vartype tier: str or ~azure.mgmt.storage.v2024_01_01.models.SkuTier :ivar resource_type: The type of the resource, usually it is 'storageAccounts'. :vartype resource_type: str :ivar kind: Indicates the type of storage account. Known values are: "Storage", "StorageV2", "BlobStorage", "FileStorage", and "BlockBlobStorage". - :vartype kind: str or ~azure.mgmt.storage.v2023_05_01.models.Kind + :vartype kind: str or ~azure.mgmt.storage.v2024_01_01.models.Kind :ivar locations: The set of locations that the SKU is available. This will be supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). :vartype locations: list[str] :ivar capabilities: The capability information in the specified SKU, including file encryption, network ACLs, change notification, etc. - :vartype capabilities: list[~azure.mgmt.storage.v2023_05_01.models.SKUCapability] + :vartype capabilities: list[~azure.mgmt.storage.v2024_01_01.models.SKUCapability] :ivar restrictions: The restrictions because of which SKU cannot be used. This is empty if there are no restrictions. - :vartype restrictions: list[~azure.mgmt.storage.v2023_05_01.models.Restriction] + :vartype restrictions: list[~azure.mgmt.storage.v2024_01_01.models.Restriction] """ _validation = { @@ -6812,11 +7413,12 @@ def __init__( :keyword name: The SKU name. Required for account creation; optional for update. Note that in older versions, SKU name was called accountType. Required. Known values are: "Standard_LRS", "Standard_GRS", "Standard_RAGRS", "Standard_ZRS", "Premium_LRS", "Premium_ZRS", - "Standard_GZRS", and "Standard_RAGZRS". - :paramtype name: str or ~azure.mgmt.storage.v2023_05_01.models.SkuName + "Standard_GZRS", "Standard_RAGZRS", "StandardV2_LRS", "StandardV2_GRS", "StandardV2_ZRS", + "StandardV2_GZRS", "PremiumV2_LRS", and "PremiumV2_ZRS". + :paramtype name: str or ~azure.mgmt.storage.v2024_01_01.models.SkuName :keyword restrictions: The restrictions because of which SKU cannot be used. This is empty if there are no restrictions. - :paramtype restrictions: list[~azure.mgmt.storage.v2023_05_01.models.Restriction] + :paramtype restrictions: list[~azure.mgmt.storage.v2024_01_01.models.Restriction] """ super().__init__(**kwargs) self.name = name @@ -6832,7 +7434,7 @@ class SmbSetting(_serialization.Model): """Setting for SMB protocol. :ivar multichannel: Multichannel setting. Applies to Premium FileStorage only. - :vartype multichannel: ~azure.mgmt.storage.v2023_05_01.models.Multichannel + :vartype multichannel: ~azure.mgmt.storage.v2024_01_01.models.Multichannel :ivar versions: SMB protocol versions supported by server. Valid values are SMB2.1, SMB3.0, SMB3.1.1. Should be passed as a string with delimiter ';'. :vartype versions: str @@ -6867,7 +7469,7 @@ def __init__( ) -> None: """ :keyword multichannel: Multichannel setting. Applies to Premium FileStorage only. - :paramtype multichannel: ~azure.mgmt.storage.v2023_05_01.models.Multichannel + :paramtype multichannel: ~azure.mgmt.storage.v2024_01_01.models.Multichannel :keyword versions: SMB protocol versions supported by server. Valid values are SMB2.1, SMB3.0, SMB3.1.1. Should be passed as a string with delimiter ';'. :paramtype versions: str @@ -6986,28 +7588,28 @@ class StorageAccount(TrackedResource): :ivar location: The geo-location where the resource lives. Required. :vartype location: str :ivar sku: Gets the SKU. - :vartype sku: ~azure.mgmt.storage.v2023_05_01.models.Sku + :vartype sku: ~azure.mgmt.storage.v2024_01_01.models.Sku :ivar kind: Gets the Kind. Known values are: "Storage", "StorageV2", "BlobStorage", "FileStorage", and "BlockBlobStorage". - :vartype kind: str or ~azure.mgmt.storage.v2023_05_01.models.Kind + :vartype kind: str or ~azure.mgmt.storage.v2024_01_01.models.Kind :ivar identity: The identity of the resource. - :vartype identity: ~azure.mgmt.storage.v2023_05_01.models.Identity + :vartype identity: ~azure.mgmt.storage.v2024_01_01.models.Identity :ivar extended_location: The extendedLocation of the resource. - :vartype extended_location: ~azure.mgmt.storage.v2023_05_01.models.ExtendedLocation + :vartype extended_location: ~azure.mgmt.storage.v2024_01_01.models.ExtendedLocation :ivar provisioning_state: Gets the status of the storage account at the time the operation was called. Known values are: "Creating", "ResolvingDNS", "Succeeded", "ValidateSubscriptionQuotaBegin", "ValidateSubscriptionQuotaEnd", "Deleting", "Canceled", and "Failed". - :vartype provisioning_state: str or ~azure.mgmt.storage.v2023_05_01.models.ProvisioningState + :vartype provisioning_state: str or ~azure.mgmt.storage.v2024_01_01.models.ProvisioningState :ivar primary_endpoints: Gets the URLs that are used to perform a retrieval of a public blob, queue, or table object. Note that Standard_ZRS and Premium_LRS accounts only return the blob endpoint. - :vartype primary_endpoints: ~azure.mgmt.storage.v2023_05_01.models.Endpoints + :vartype primary_endpoints: ~azure.mgmt.storage.v2024_01_01.models.Endpoints :ivar primary_location: Gets the location of the primary data center for the storage account. :vartype primary_location: str :ivar status_of_primary: Gets the status indicating whether the primary location of the storage account is available or unavailable. Known values are: "available" and "unavailable". - :vartype status_of_primary: str or ~azure.mgmt.storage.v2023_05_01.models.AccountStatus + :vartype status_of_primary: str or ~azure.mgmt.storage.v2024_01_01.models.AccountStatus :ivar last_geo_failover_time: Gets the timestamp of the most recent instance of a failover to the secondary location. Only the most recent timestamp is retained. This element is not returned if there has never been a failover instance. Only available if the accountType is @@ -7019,37 +7621,37 @@ class StorageAccount(TrackedResource): :ivar status_of_secondary: Gets the status indicating whether the secondary location of the storage account is available or unavailable. Only available if the SKU name is Standard_GRS or Standard_RAGRS. Known values are: "available" and "unavailable". - :vartype status_of_secondary: str or ~azure.mgmt.storage.v2023_05_01.models.AccountStatus + :vartype status_of_secondary: str or ~azure.mgmt.storage.v2024_01_01.models.AccountStatus :ivar creation_time: Gets the creation date and time of the storage account in UTC. :vartype creation_time: ~datetime.datetime :ivar custom_domain: Gets the custom domain the user assigned to this storage account. - :vartype custom_domain: ~azure.mgmt.storage.v2023_05_01.models.CustomDomain + :vartype custom_domain: ~azure.mgmt.storage.v2024_01_01.models.CustomDomain :ivar sas_policy: SasPolicy assigned to the storage account. - :vartype sas_policy: ~azure.mgmt.storage.v2023_05_01.models.SasPolicy + :vartype sas_policy: ~azure.mgmt.storage.v2024_01_01.models.SasPolicy :ivar key_policy: KeyPolicy assigned to the storage account. - :vartype key_policy: ~azure.mgmt.storage.v2023_05_01.models.KeyPolicy + :vartype key_policy: ~azure.mgmt.storage.v2024_01_01.models.KeyPolicy :ivar key_creation_time: Storage account keys creation time. - :vartype key_creation_time: ~azure.mgmt.storage.v2023_05_01.models.KeyCreationTime + :vartype key_creation_time: ~azure.mgmt.storage.v2024_01_01.models.KeyCreationTime :ivar secondary_endpoints: Gets the URLs that are used to perform a retrieval of a public blob, queue, or table object from the secondary location of the storage account. Only available if the SKU name is Standard_RAGRS. - :vartype secondary_endpoints: ~azure.mgmt.storage.v2023_05_01.models.Endpoints + :vartype secondary_endpoints: ~azure.mgmt.storage.v2024_01_01.models.Endpoints :ivar encryption: Encryption settings to be used for server-side encryption for the storage account. - :vartype encryption: ~azure.mgmt.storage.v2023_05_01.models.Encryption + :vartype encryption: ~azure.mgmt.storage.v2024_01_01.models.Encryption :ivar access_tier: Required for storage accounts where kind = BlobStorage. The access tier is used for billing. The 'Premium' access tier is the default value for premium block blobs storage account type and it cannot be changed for the premium block blobs storage account type. Known values are: "Hot", "Cool", "Premium", and "Cold". - :vartype access_tier: str or ~azure.mgmt.storage.v2023_05_01.models.AccessTier + :vartype access_tier: str or ~azure.mgmt.storage.v2024_01_01.models.AccessTier :ivar azure_files_identity_based_authentication: Provides the identity based authentication settings for Azure Files. :vartype azure_files_identity_based_authentication: - ~azure.mgmt.storage.v2023_05_01.models.AzureFilesIdentityBasedAuthentication + ~azure.mgmt.storage.v2024_01_01.models.AzureFilesIdentityBasedAuthentication :ivar enable_https_traffic_only: Allows https traffic only to storage service if sets to true. :vartype enable_https_traffic_only: bool :ivar network_rule_set: Network rule set. - :vartype network_rule_set: ~azure.mgmt.storage.v2023_05_01.models.NetworkRuleSet + :vartype network_rule_set: ~azure.mgmt.storage.v2024_01_01.models.NetworkRuleSet :ivar is_sftp_enabled: Enables Secure File Transfer Protocol, if set to true. :vartype is_sftp_enabled: bool :ivar is_local_user_enabled: Enables local users feature, if set to true. @@ -7060,30 +7662,30 @@ class StorageAccount(TrackedResource): :ivar is_hns_enabled: Account HierarchicalNamespace enabled if sets to true. :vartype is_hns_enabled: bool :ivar geo_replication_stats: Geo Replication Stats. - :vartype geo_replication_stats: ~azure.mgmt.storage.v2023_05_01.models.GeoReplicationStats + :vartype geo_replication_stats: ~azure.mgmt.storage.v2024_01_01.models.GeoReplicationStats :ivar failover_in_progress: If the failover is in progress, the value will be true, otherwise, it will be null. :vartype failover_in_progress: bool :ivar large_file_shares_state: Allow large file shares if sets to Enabled. It cannot be disabled once it is enabled. Known values are: "Disabled" and "Enabled". :vartype large_file_shares_state: str or - ~azure.mgmt.storage.v2023_05_01.models.LargeFileSharesState + ~azure.mgmt.storage.v2024_01_01.models.LargeFileSharesState :ivar private_endpoint_connections: List of private endpoint connection associated with the specified storage account. :vartype private_endpoint_connections: - list[~azure.mgmt.storage.v2023_05_01.models.PrivateEndpointConnection] + list[~azure.mgmt.storage.v2024_01_01.models.PrivateEndpointConnection] :ivar routing_preference: Maintains information about the network routing choice opted by the user for data transfer. - :vartype routing_preference: ~azure.mgmt.storage.v2023_05_01.models.RoutingPreference + :vartype routing_preference: ~azure.mgmt.storage.v2024_01_01.models.RoutingPreference :ivar blob_restore_status: Blob restore status. - :vartype blob_restore_status: ~azure.mgmt.storage.v2023_05_01.models.BlobRestoreStatus + :vartype blob_restore_status: ~azure.mgmt.storage.v2024_01_01.models.BlobRestoreStatus :ivar allow_blob_public_access: Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is false for this property. :vartype allow_blob_public_access: bool :ivar minimum_tls_version: Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property. Known values are: "TLS1_0", "TLS1_1", "TLS1_2", and "TLS1_3". - :vartype minimum_tls_version: str or ~azure.mgmt.storage.v2023_05_01.models.MinimumTlsVersion + :vartype minimum_tls_version: str or ~azure.mgmt.storage.v2024_01_01.models.MinimumTlsVersion :ivar allow_shared_key_access: Indicates whether the storage account permits requests to be authorized with the account access key via Shared Key. If false, then all requests, including shared access signatures, must be authorized with Azure Active Directory (Azure AD). The @@ -7103,24 +7705,24 @@ class StorageAccount(TrackedResource): to evaluate public network access to Storage Account. Known values are: "Enabled", "Disabled", and "SecuredByPerimeter". :vartype public_network_access: str or - ~azure.mgmt.storage.v2023_05_01.models.PublicNetworkAccess + ~azure.mgmt.storage.v2024_01_01.models.PublicNetworkAccess :ivar immutable_storage_with_versioning: The property is immutable and can only be set to true at the account creation time. When set to true, it enables object level immutability for all the containers in the account by default. :vartype immutable_storage_with_versioning: - ~azure.mgmt.storage.v2023_05_01.models.ImmutableStorageAccount + ~azure.mgmt.storage.v2024_01_01.models.ImmutableStorageAccount :ivar allowed_copy_scope: Restrict copy to and from Storage Accounts within an AAD tenant or with Private Links to the same VNet. Known values are: "PrivateLink" and "AAD". - :vartype allowed_copy_scope: str or ~azure.mgmt.storage.v2023_05_01.models.AllowedCopyScope + :vartype allowed_copy_scope: str or ~azure.mgmt.storage.v2024_01_01.models.AllowedCopyScope :ivar storage_account_sku_conversion_status: This property is readOnly and is set by server during asynchronous storage account sku conversion operations. :vartype storage_account_sku_conversion_status: - ~azure.mgmt.storage.v2023_05_01.models.StorageAccountSkuConversionStatus + ~azure.mgmt.storage.v2024_01_01.models.StorageAccountSkuConversionStatus :ivar dns_endpoint_type: Allows you to specify the type of endpoint. Set this to AzureDNSZone to create a large number of accounts in a single subscription, which creates accounts in an Azure DNS Zone and the endpoint URL will have an alphanumeric DNS Zone identifier. Known values are: "Standard" and "AzureDnsZone". - :vartype dns_endpoint_type: str or ~azure.mgmt.storage.v2023_05_01.models.DnsEndpointType + :vartype dns_endpoint_type: str or ~azure.mgmt.storage.v2024_01_01.models.DnsEndpointType :ivar is_sku_conversion_blocked: This property will be set to true or false on an event of ongoing migration. Default value is null. :vartype is_sku_conversion_blocked: bool @@ -7259,13 +7861,13 @@ def __init__( # pylint: disable=too-many-locals :keyword location: The geo-location where the resource lives. Required. :paramtype location: str :keyword identity: The identity of the resource. - :paramtype identity: ~azure.mgmt.storage.v2023_05_01.models.Identity + :paramtype identity: ~azure.mgmt.storage.v2024_01_01.models.Identity :keyword extended_location: The extendedLocation of the resource. - :paramtype extended_location: ~azure.mgmt.storage.v2023_05_01.models.ExtendedLocation + :paramtype extended_location: ~azure.mgmt.storage.v2024_01_01.models.ExtendedLocation :keyword azure_files_identity_based_authentication: Provides the identity based authentication settings for Azure Files. :paramtype azure_files_identity_based_authentication: - ~azure.mgmt.storage.v2023_05_01.models.AzureFilesIdentityBasedAuthentication + ~azure.mgmt.storage.v2024_01_01.models.AzureFilesIdentityBasedAuthentication :keyword enable_https_traffic_only: Allows https traffic only to storage service if sets to true. :paramtype enable_https_traffic_only: bool @@ -7281,17 +7883,17 @@ def __init__( # pylint: disable=too-many-locals :keyword large_file_shares_state: Allow large file shares if sets to Enabled. It cannot be disabled once it is enabled. Known values are: "Disabled" and "Enabled". :paramtype large_file_shares_state: str or - ~azure.mgmt.storage.v2023_05_01.models.LargeFileSharesState + ~azure.mgmt.storage.v2024_01_01.models.LargeFileSharesState :keyword routing_preference: Maintains information about the network routing choice opted by the user for data transfer. - :paramtype routing_preference: ~azure.mgmt.storage.v2023_05_01.models.RoutingPreference + :paramtype routing_preference: ~azure.mgmt.storage.v2024_01_01.models.RoutingPreference :keyword allow_blob_public_access: Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is false for this property. :paramtype allow_blob_public_access: bool :keyword minimum_tls_version: Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property. Known values are: "TLS1_0", "TLS1_1", "TLS1_2", and "TLS1_3". - :paramtype minimum_tls_version: str or ~azure.mgmt.storage.v2023_05_01.models.MinimumTlsVersion + :paramtype minimum_tls_version: str or ~azure.mgmt.storage.v2024_01_01.models.MinimumTlsVersion :keyword allow_shared_key_access: Indicates whether the storage account permits requests to be authorized with the account access key via Shared Key. If false, then all requests, including shared access signatures, must be authorized with Azure Active Directory (Azure AD). The @@ -7311,24 +7913,24 @@ def __init__( # pylint: disable=too-many-locals configuration to evaluate public network access to Storage Account. Known values are: "Enabled", "Disabled", and "SecuredByPerimeter". :paramtype public_network_access: str or - ~azure.mgmt.storage.v2023_05_01.models.PublicNetworkAccess + ~azure.mgmt.storage.v2024_01_01.models.PublicNetworkAccess :keyword immutable_storage_with_versioning: The property is immutable and can only be set to true at the account creation time. When set to true, it enables object level immutability for all the containers in the account by default. :paramtype immutable_storage_with_versioning: - ~azure.mgmt.storage.v2023_05_01.models.ImmutableStorageAccount + ~azure.mgmt.storage.v2024_01_01.models.ImmutableStorageAccount :keyword allowed_copy_scope: Restrict copy to and from Storage Accounts within an AAD tenant or with Private Links to the same VNet. Known values are: "PrivateLink" and "AAD". - :paramtype allowed_copy_scope: str or ~azure.mgmt.storage.v2023_05_01.models.AllowedCopyScope + :paramtype allowed_copy_scope: str or ~azure.mgmt.storage.v2024_01_01.models.AllowedCopyScope :keyword storage_account_sku_conversion_status: This property is readOnly and is set by server during asynchronous storage account sku conversion operations. :paramtype storage_account_sku_conversion_status: - ~azure.mgmt.storage.v2023_05_01.models.StorageAccountSkuConversionStatus + ~azure.mgmt.storage.v2024_01_01.models.StorageAccountSkuConversionStatus :keyword dns_endpoint_type: Allows you to specify the type of endpoint. Set this to AzureDNSZone to create a large number of accounts in a single subscription, which creates accounts in an Azure DNS Zone and the endpoint URL will have an alphanumeric DNS Zone identifier. Known values are: "Standard" and "AzureDnsZone". - :paramtype dns_endpoint_type: str or ~azure.mgmt.storage.v2023_05_01.models.DnsEndpointType + :paramtype dns_endpoint_type: str or ~azure.mgmt.storage.v2024_01_01.models.DnsEndpointType """ super().__init__(tags=tags, location=location, **kwargs) self.sku = None @@ -7419,10 +8021,10 @@ class StorageAccountCreateParameters(_serialization.Model): All required parameters must be populated in order to send to server. :ivar sku: Required. Gets or sets the SKU name. Required. - :vartype sku: ~azure.mgmt.storage.v2023_05_01.models.Sku + :vartype sku: ~azure.mgmt.storage.v2024_01_01.models.Sku :ivar kind: Required. Indicates the type of storage account. Required. Known values are: "Storage", "StorageV2", "BlobStorage", "FileStorage", and "BlockBlobStorage". - :vartype kind: str or ~azure.mgmt.storage.v2023_05_01.models.Kind + :vartype kind: str or ~azure.mgmt.storage.v2024_01_01.models.Kind :ivar location: Required. Gets or sets the location of the resource. This will be one of the supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The geo region of a resource cannot be changed once it is created, but if an identical geo region @@ -7431,45 +8033,45 @@ class StorageAccountCreateParameters(_serialization.Model): :ivar extended_location: Optional. Set the extended location of the resource. If not set, the storage account will be created in Azure main region. Otherwise it will be created in the specified extended location. - :vartype extended_location: ~azure.mgmt.storage.v2023_05_01.models.ExtendedLocation + :vartype extended_location: ~azure.mgmt.storage.v2024_01_01.models.ExtendedLocation :ivar tags: Gets or sets a list of key value pairs that describe the resource. These tags can be used for viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key with a length no greater than 128 characters and a value with a length no greater than 256 characters. :vartype tags: dict[str, str] :ivar identity: The identity of the resource. - :vartype identity: ~azure.mgmt.storage.v2023_05_01.models.Identity + :vartype identity: ~azure.mgmt.storage.v2024_01_01.models.Identity :ivar allowed_copy_scope: Restrict copy to and from Storage Accounts within an AAD tenant or with Private Links to the same VNet. Known values are: "PrivateLink" and "AAD". - :vartype allowed_copy_scope: str or ~azure.mgmt.storage.v2023_05_01.models.AllowedCopyScope + :vartype allowed_copy_scope: str or ~azure.mgmt.storage.v2024_01_01.models.AllowedCopyScope :ivar public_network_access: Allow, disallow, or let Network Security Perimeter configuration to evaluate public network access to Storage Account. Value is optional but if passed in, must be 'Enabled', 'Disabled' or 'SecuredByPerimeter'. Known values are: "Enabled", "Disabled", and "SecuredByPerimeter". :vartype public_network_access: str or - ~azure.mgmt.storage.v2023_05_01.models.PublicNetworkAccess + ~azure.mgmt.storage.v2024_01_01.models.PublicNetworkAccess :ivar sas_policy: SasPolicy assigned to the storage account. - :vartype sas_policy: ~azure.mgmt.storage.v2023_05_01.models.SasPolicy + :vartype sas_policy: ~azure.mgmt.storage.v2024_01_01.models.SasPolicy :ivar key_policy: KeyPolicy assigned to the storage account. - :vartype key_policy: ~azure.mgmt.storage.v2023_05_01.models.KeyPolicy + :vartype key_policy: ~azure.mgmt.storage.v2024_01_01.models.KeyPolicy :ivar custom_domain: User domain assigned to the storage account. Name is the CNAME source. Only one custom domain is supported per storage account at this time. To clear the existing custom domain, use an empty string for the custom domain name property. - :vartype custom_domain: ~azure.mgmt.storage.v2023_05_01.models.CustomDomain + :vartype custom_domain: ~azure.mgmt.storage.v2024_01_01.models.CustomDomain :ivar encryption: Encryption settings to be used for server-side encryption for the storage account. - :vartype encryption: ~azure.mgmt.storage.v2023_05_01.models.Encryption + :vartype encryption: ~azure.mgmt.storage.v2024_01_01.models.Encryption :ivar network_rule_set: Network rule set. - :vartype network_rule_set: ~azure.mgmt.storage.v2023_05_01.models.NetworkRuleSet + :vartype network_rule_set: ~azure.mgmt.storage.v2024_01_01.models.NetworkRuleSet :ivar access_tier: Required for storage accounts where kind = BlobStorage. The access tier is used for billing. The 'Premium' access tier is the default value for premium block blobs storage account type and it cannot be changed for the premium block blobs storage account type. Known values are: "Hot", "Cool", "Premium", and "Cold". - :vartype access_tier: str or ~azure.mgmt.storage.v2023_05_01.models.AccessTier + :vartype access_tier: str or ~azure.mgmt.storage.v2024_01_01.models.AccessTier :ivar azure_files_identity_based_authentication: Provides the identity based authentication settings for Azure Files. :vartype azure_files_identity_based_authentication: - ~azure.mgmt.storage.v2023_05_01.models.AzureFilesIdentityBasedAuthentication + ~azure.mgmt.storage.v2024_01_01.models.AzureFilesIdentityBasedAuthentication :ivar enable_https_traffic_only: Allows https traffic only to storage service if sets to true. The default value is true since API version 2019-04-01. :vartype enable_https_traffic_only: bool @@ -7485,17 +8087,17 @@ class StorageAccountCreateParameters(_serialization.Model): :ivar large_file_shares_state: Allow large file shares if sets to Enabled. It cannot be disabled once it is enabled. Known values are: "Disabled" and "Enabled". :vartype large_file_shares_state: str or - ~azure.mgmt.storage.v2023_05_01.models.LargeFileSharesState + ~azure.mgmt.storage.v2024_01_01.models.LargeFileSharesState :ivar routing_preference: Maintains information about the network routing choice opted by the user for data transfer. - :vartype routing_preference: ~azure.mgmt.storage.v2023_05_01.models.RoutingPreference + :vartype routing_preference: ~azure.mgmt.storage.v2024_01_01.models.RoutingPreference :ivar allow_blob_public_access: Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is false for this property. :vartype allow_blob_public_access: bool :ivar minimum_tls_version: Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property. Known values are: "TLS1_0", "TLS1_1", "TLS1_2", and "TLS1_3". - :vartype minimum_tls_version: str or ~azure.mgmt.storage.v2023_05_01.models.MinimumTlsVersion + :vartype minimum_tls_version: str or ~azure.mgmt.storage.v2024_01_01.models.MinimumTlsVersion :ivar allow_shared_key_access: Indicates whether the storage account permits requests to be authorized with the account access key via Shared Key. If false, then all requests, including shared access signatures, must be authorized with Azure Active Directory (Azure AD). The @@ -7515,12 +8117,12 @@ class StorageAccountCreateParameters(_serialization.Model): at the account creation time. When set to true, it enables object level immutability for all the new containers in the account by default. :vartype immutable_storage_with_versioning: - ~azure.mgmt.storage.v2023_05_01.models.ImmutableStorageAccount + ~azure.mgmt.storage.v2024_01_01.models.ImmutableStorageAccount :ivar dns_endpoint_type: Allows you to specify the type of endpoint. Set this to AzureDNSZone to create a large number of accounts in a single subscription, which creates accounts in an Azure DNS Zone and the endpoint URL will have an alphanumeric DNS Zone identifier. Known values are: "Standard" and "AzureDnsZone". - :vartype dns_endpoint_type: str or ~azure.mgmt.storage.v2023_05_01.models.DnsEndpointType + :vartype dns_endpoint_type: str or ~azure.mgmt.storage.v2024_01_01.models.DnsEndpointType """ _validation = { @@ -7605,10 +8207,10 @@ def __init__( # pylint: disable=too-many-locals ) -> None: """ :keyword sku: Required. Gets or sets the SKU name. Required. - :paramtype sku: ~azure.mgmt.storage.v2023_05_01.models.Sku + :paramtype sku: ~azure.mgmt.storage.v2024_01_01.models.Sku :keyword kind: Required. Indicates the type of storage account. Required. Known values are: "Storage", "StorageV2", "BlobStorage", "FileStorage", and "BlockBlobStorage". - :paramtype kind: str or ~azure.mgmt.storage.v2023_05_01.models.Kind + :paramtype kind: str or ~azure.mgmt.storage.v2024_01_01.models.Kind :keyword location: Required. Gets or sets the location of the resource. This will be one of the supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The geo region of a resource cannot be changed once it is created, but if an identical geo region @@ -7617,45 +8219,45 @@ def __init__( # pylint: disable=too-many-locals :keyword extended_location: Optional. Set the extended location of the resource. If not set, the storage account will be created in Azure main region. Otherwise it will be created in the specified extended location. - :paramtype extended_location: ~azure.mgmt.storage.v2023_05_01.models.ExtendedLocation + :paramtype extended_location: ~azure.mgmt.storage.v2024_01_01.models.ExtendedLocation :keyword tags: Gets or sets a list of key value pairs that describe the resource. These tags can be used for viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key with a length no greater than 128 characters and a value with a length no greater than 256 characters. :paramtype tags: dict[str, str] :keyword identity: The identity of the resource. - :paramtype identity: ~azure.mgmt.storage.v2023_05_01.models.Identity + :paramtype identity: ~azure.mgmt.storage.v2024_01_01.models.Identity :keyword allowed_copy_scope: Restrict copy to and from Storage Accounts within an AAD tenant or with Private Links to the same VNet. Known values are: "PrivateLink" and "AAD". - :paramtype allowed_copy_scope: str or ~azure.mgmt.storage.v2023_05_01.models.AllowedCopyScope + :paramtype allowed_copy_scope: str or ~azure.mgmt.storage.v2024_01_01.models.AllowedCopyScope :keyword public_network_access: Allow, disallow, or let Network Security Perimeter configuration to evaluate public network access to Storage Account. Value is optional but if passed in, must be 'Enabled', 'Disabled' or 'SecuredByPerimeter'. Known values are: "Enabled", "Disabled", and "SecuredByPerimeter". :paramtype public_network_access: str or - ~azure.mgmt.storage.v2023_05_01.models.PublicNetworkAccess + ~azure.mgmt.storage.v2024_01_01.models.PublicNetworkAccess :keyword sas_policy: SasPolicy assigned to the storage account. - :paramtype sas_policy: ~azure.mgmt.storage.v2023_05_01.models.SasPolicy + :paramtype sas_policy: ~azure.mgmt.storage.v2024_01_01.models.SasPolicy :keyword key_policy: KeyPolicy assigned to the storage account. - :paramtype key_policy: ~azure.mgmt.storage.v2023_05_01.models.KeyPolicy + :paramtype key_policy: ~azure.mgmt.storage.v2024_01_01.models.KeyPolicy :keyword custom_domain: User domain assigned to the storage account. Name is the CNAME source. Only one custom domain is supported per storage account at this time. To clear the existing custom domain, use an empty string for the custom domain name property. - :paramtype custom_domain: ~azure.mgmt.storage.v2023_05_01.models.CustomDomain + :paramtype custom_domain: ~azure.mgmt.storage.v2024_01_01.models.CustomDomain :keyword encryption: Encryption settings to be used for server-side encryption for the storage account. - :paramtype encryption: ~azure.mgmt.storage.v2023_05_01.models.Encryption + :paramtype encryption: ~azure.mgmt.storage.v2024_01_01.models.Encryption :keyword network_rule_set: Network rule set. - :paramtype network_rule_set: ~azure.mgmt.storage.v2023_05_01.models.NetworkRuleSet + :paramtype network_rule_set: ~azure.mgmt.storage.v2024_01_01.models.NetworkRuleSet :keyword access_tier: Required for storage accounts where kind = BlobStorage. The access tier is used for billing. The 'Premium' access tier is the default value for premium block blobs storage account type and it cannot be changed for the premium block blobs storage account type. Known values are: "Hot", "Cool", "Premium", and "Cold". - :paramtype access_tier: str or ~azure.mgmt.storage.v2023_05_01.models.AccessTier + :paramtype access_tier: str or ~azure.mgmt.storage.v2024_01_01.models.AccessTier :keyword azure_files_identity_based_authentication: Provides the identity based authentication settings for Azure Files. :paramtype azure_files_identity_based_authentication: - ~azure.mgmt.storage.v2023_05_01.models.AzureFilesIdentityBasedAuthentication + ~azure.mgmt.storage.v2024_01_01.models.AzureFilesIdentityBasedAuthentication :keyword enable_https_traffic_only: Allows https traffic only to storage service if sets to true. The default value is true since API version 2019-04-01. :paramtype enable_https_traffic_only: bool @@ -7671,17 +8273,17 @@ def __init__( # pylint: disable=too-many-locals :keyword large_file_shares_state: Allow large file shares if sets to Enabled. It cannot be disabled once it is enabled. Known values are: "Disabled" and "Enabled". :paramtype large_file_shares_state: str or - ~azure.mgmt.storage.v2023_05_01.models.LargeFileSharesState + ~azure.mgmt.storage.v2024_01_01.models.LargeFileSharesState :keyword routing_preference: Maintains information about the network routing choice opted by the user for data transfer. - :paramtype routing_preference: ~azure.mgmt.storage.v2023_05_01.models.RoutingPreference + :paramtype routing_preference: ~azure.mgmt.storage.v2024_01_01.models.RoutingPreference :keyword allow_blob_public_access: Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is false for this property. :paramtype allow_blob_public_access: bool :keyword minimum_tls_version: Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property. Known values are: "TLS1_0", "TLS1_1", "TLS1_2", and "TLS1_3". - :paramtype minimum_tls_version: str or ~azure.mgmt.storage.v2023_05_01.models.MinimumTlsVersion + :paramtype minimum_tls_version: str or ~azure.mgmt.storage.v2024_01_01.models.MinimumTlsVersion :keyword allow_shared_key_access: Indicates whether the storage account permits requests to be authorized with the account access key via Shared Key. If false, then all requests, including shared access signatures, must be authorized with Azure Active Directory (Azure AD). The @@ -7701,12 +8303,12 @@ def __init__( # pylint: disable=too-many-locals true at the account creation time. When set to true, it enables object level immutability for all the new containers in the account by default. :paramtype immutable_storage_with_versioning: - ~azure.mgmt.storage.v2023_05_01.models.ImmutableStorageAccount + ~azure.mgmt.storage.v2024_01_01.models.ImmutableStorageAccount :keyword dns_endpoint_type: Allows you to specify the type of endpoint. Set this to AzureDNSZone to create a large number of accounts in a single subscription, which creates accounts in an Azure DNS Zone and the endpoint URL will have an alphanumeric DNS Zone identifier. Known values are: "Standard" and "AzureDnsZone". - :paramtype dns_endpoint_type: str or ~azure.mgmt.storage.v2023_05_01.models.DnsEndpointType + :paramtype dns_endpoint_type: str or ~azure.mgmt.storage.v2024_01_01.models.DnsEndpointType """ super().__init__(**kwargs) self.sku = sku @@ -7791,7 +8393,7 @@ class StorageAccountKey(_serialization.Model): :vartype value: str :ivar permissions: Permissions for the key -- read-only or full permissions. Known values are: "Read" and "Full". - :vartype permissions: str or ~azure.mgmt.storage.v2023_05_01.models.KeyPermission + :vartype permissions: str or ~azure.mgmt.storage.v2024_01_01.models.KeyPermission :ivar creation_time: Creation time of the key, in round trip date format. :vartype creation_time: ~datetime.datetime """ @@ -7826,7 +8428,7 @@ class StorageAccountListKeysResult(_serialization.Model): :ivar keys: Gets the list of storage account keys and their properties for the specified storage account. - :vartype keys: list[~azure.mgmt.storage.v2023_05_01.models.StorageAccountKey] + :vartype keys: list[~azure.mgmt.storage.v2024_01_01.models.StorageAccountKey] """ _validation = { @@ -7849,7 +8451,7 @@ class StorageAccountListResult(_serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. :ivar value: Gets the list of storage accounts and their properties. - :vartype value: list[~azure.mgmt.storage.v2023_05_01.models.StorageAccount] + :vartype value: list[~azure.mgmt.storage.v2024_01_01.models.StorageAccount] :ivar next_link: Request URL that can be used to query next page of storage accounts. Returned when total number of requested storage accounts exceed maximum page size. :vartype next_link: str @@ -7937,11 +8539,12 @@ class StorageAccountMigration(_serialization.Model): :vartype type: str :ivar target_sku_name: Target sku name for the account. Required. Known values are: "Standard_LRS", "Standard_GRS", "Standard_RAGRS", "Standard_ZRS", "Premium_LRS", "Premium_ZRS", - "Standard_GZRS", and "Standard_RAGZRS". - :vartype target_sku_name: str or ~azure.mgmt.storage.v2023_05_01.models.SkuName + "Standard_GZRS", "Standard_RAGZRS", "StandardV2_LRS", "StandardV2_GRS", "StandardV2_ZRS", + "StandardV2_GZRS", "PremiumV2_LRS", and "PremiumV2_ZRS". + :vartype target_sku_name: str or ~azure.mgmt.storage.v2024_01_01.models.SkuName :ivar migration_status: Current status of migration. Known values are: "Invalid", "SubmittedForConversion", "InProgress", "Complete", and "Failed". - :vartype migration_status: str or ~azure.mgmt.storage.v2023_05_01.models.MigrationStatus + :vartype migration_status: str or ~azure.mgmt.storage.v2024_01_01.models.MigrationStatus :ivar migration_failed_reason: Error code for migration failure. :vartype migration_failed_reason: str :ivar migration_failed_detailed_reason: Reason for migration failure. @@ -7981,8 +8584,9 @@ def __init__( :paramtype type: str :keyword target_sku_name: Target sku name for the account. Required. Known values are: "Standard_LRS", "Standard_GRS", "Standard_RAGRS", "Standard_ZRS", "Premium_LRS", "Premium_ZRS", - "Standard_GZRS", and "Standard_RAGZRS". - :paramtype target_sku_name: str or ~azure.mgmt.storage.v2023_05_01.models.SkuName + "Standard_GZRS", "Standard_RAGZRS", "StandardV2_LRS", "StandardV2_GRS", "StandardV2_ZRS", + "StandardV2_GZRS", "PremiumV2_LRS", and "PremiumV2_ZRS". + :paramtype target_sku_name: str or ~azure.mgmt.storage.v2024_01_01.models.SkuName """ super().__init__(**kwargs) self.id = None @@ -8030,12 +8634,13 @@ class StorageAccountSkuConversionStatus(_serialization.Model): :ivar sku_conversion_status: This property indicates the current sku conversion status. Known values are: "InProgress", "Succeeded", and "Failed". :vartype sku_conversion_status: str or - ~azure.mgmt.storage.v2023_05_01.models.SkuConversionStatus + ~azure.mgmt.storage.v2024_01_01.models.SkuConversionStatus :ivar target_sku_name: This property represents the target sku name to which the account sku is being converted asynchronously. Known values are: "Standard_LRS", "Standard_GRS", - "Standard_RAGRS", "Standard_ZRS", "Premium_LRS", "Premium_ZRS", "Standard_GZRS", and - "Standard_RAGZRS". - :vartype target_sku_name: str or ~azure.mgmt.storage.v2023_05_01.models.SkuName + "Standard_RAGRS", "Standard_ZRS", "Premium_LRS", "Premium_ZRS", "Standard_GZRS", + "Standard_RAGZRS", "StandardV2_LRS", "StandardV2_GRS", "StandardV2_ZRS", "StandardV2_GZRS", + "PremiumV2_LRS", and "PremiumV2_ZRS". + :vartype target_sku_name: str or ~azure.mgmt.storage.v2024_01_01.models.SkuName :ivar start_time: This property represents the sku conversion start time. :vartype start_time: str :ivar end_time: This property represents the sku conversion end time. @@ -8059,9 +8664,10 @@ def __init__(self, *, target_sku_name: Optional[Union[str, "_models.SkuName"]] = """ :keyword target_sku_name: This property represents the target sku name to which the account sku is being converted asynchronously. Known values are: "Standard_LRS", "Standard_GRS", - "Standard_RAGRS", "Standard_ZRS", "Premium_LRS", "Premium_ZRS", "Standard_GZRS", and - "Standard_RAGZRS". - :paramtype target_sku_name: str or ~azure.mgmt.storage.v2023_05_01.models.SkuName + "Standard_RAGRS", "Standard_ZRS", "Premium_LRS", "Premium_ZRS", "Standard_GZRS", + "Standard_RAGZRS", "StandardV2_LRS", "StandardV2_GRS", "StandardV2_ZRS", "StandardV2_GZRS", + "PremiumV2_LRS", and "PremiumV2_ZRS". + :paramtype target_sku_name: str or ~azure.mgmt.storage.v2024_01_01.models.SkuName """ super().__init__(**kwargs) self.sku_conversion_status = None @@ -8075,38 +8681,38 @@ class StorageAccountUpdateParameters(_serialization.Model): :ivar sku: Gets or sets the SKU name. Note that the SKU name cannot be updated to Standard_ZRS, Premium_LRS or Premium_ZRS, nor can accounts of those SKU names be updated to any other value. - :vartype sku: ~azure.mgmt.storage.v2023_05_01.models.Sku + :vartype sku: ~azure.mgmt.storage.v2024_01_01.models.Sku :ivar tags: Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater in length than 128 characters and a value no greater in length than 256 characters. :vartype tags: dict[str, str] :ivar identity: The identity of the resource. - :vartype identity: ~azure.mgmt.storage.v2023_05_01.models.Identity + :vartype identity: ~azure.mgmt.storage.v2024_01_01.models.Identity :ivar kind: Optional. Indicates the type of storage account. Currently only StorageV2 value supported by server. Known values are: "Storage", "StorageV2", "BlobStorage", "FileStorage", and "BlockBlobStorage". - :vartype kind: str or ~azure.mgmt.storage.v2023_05_01.models.Kind + :vartype kind: str or ~azure.mgmt.storage.v2024_01_01.models.Kind :ivar custom_domain: Custom domain assigned to the storage account by the user. Name is the CNAME source. Only one custom domain is supported per storage account at this time. To clear the existing custom domain, use an empty string for the custom domain name property. - :vartype custom_domain: ~azure.mgmt.storage.v2023_05_01.models.CustomDomain + :vartype custom_domain: ~azure.mgmt.storage.v2024_01_01.models.CustomDomain :ivar encryption: Not applicable. Azure Storage encryption at rest is enabled by default for all storage accounts and cannot be disabled. - :vartype encryption: ~azure.mgmt.storage.v2023_05_01.models.Encryption + :vartype encryption: ~azure.mgmt.storage.v2024_01_01.models.Encryption :ivar sas_policy: SasPolicy assigned to the storage account. - :vartype sas_policy: ~azure.mgmt.storage.v2023_05_01.models.SasPolicy + :vartype sas_policy: ~azure.mgmt.storage.v2024_01_01.models.SasPolicy :ivar key_policy: KeyPolicy assigned to the storage account. - :vartype key_policy: ~azure.mgmt.storage.v2023_05_01.models.KeyPolicy + :vartype key_policy: ~azure.mgmt.storage.v2024_01_01.models.KeyPolicy :ivar access_tier: Required for storage accounts where kind = BlobStorage. The access tier is used for billing. The 'Premium' access tier is the default value for premium block blobs storage account type and it cannot be changed for the premium block blobs storage account type. Known values are: "Hot", "Cool", "Premium", and "Cold". - :vartype access_tier: str or ~azure.mgmt.storage.v2023_05_01.models.AccessTier + :vartype access_tier: str or ~azure.mgmt.storage.v2024_01_01.models.AccessTier :ivar azure_files_identity_based_authentication: Provides the identity based authentication settings for Azure Files. :vartype azure_files_identity_based_authentication: - ~azure.mgmt.storage.v2023_05_01.models.AzureFilesIdentityBasedAuthentication + ~azure.mgmt.storage.v2024_01_01.models.AzureFilesIdentityBasedAuthentication :ivar enable_https_traffic_only: Allows https traffic only to storage service if sets to true. :vartype enable_https_traffic_only: bool :ivar is_sftp_enabled: Enables Secure File Transfer Protocol, if set to true. @@ -8117,21 +8723,21 @@ class StorageAccountUpdateParameters(_serialization.Model): to true. :vartype enable_extended_groups: bool :ivar network_rule_set: Network rule set. - :vartype network_rule_set: ~azure.mgmt.storage.v2023_05_01.models.NetworkRuleSet + :vartype network_rule_set: ~azure.mgmt.storage.v2024_01_01.models.NetworkRuleSet :ivar large_file_shares_state: Allow large file shares if sets to Enabled. It cannot be disabled once it is enabled. Known values are: "Disabled" and "Enabled". :vartype large_file_shares_state: str or - ~azure.mgmt.storage.v2023_05_01.models.LargeFileSharesState + ~azure.mgmt.storage.v2024_01_01.models.LargeFileSharesState :ivar routing_preference: Maintains information about the network routing choice opted by the user for data transfer. - :vartype routing_preference: ~azure.mgmt.storage.v2023_05_01.models.RoutingPreference + :vartype routing_preference: ~azure.mgmt.storage.v2024_01_01.models.RoutingPreference :ivar allow_blob_public_access: Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is false for this property. :vartype allow_blob_public_access: bool :ivar minimum_tls_version: Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property. Known values are: "TLS1_0", "TLS1_1", "TLS1_2", and "TLS1_3". - :vartype minimum_tls_version: str or ~azure.mgmt.storage.v2023_05_01.models.MinimumTlsVersion + :vartype minimum_tls_version: str or ~azure.mgmt.storage.v2024_01_01.models.MinimumTlsVersion :ivar allow_shared_key_access: Indicates whether the storage account permits requests to be authorized with the account access key via Shared Key. If false, then all requests, including shared access signatures, must be authorized with Azure Active Directory (Azure AD). The @@ -8150,20 +8756,20 @@ class StorageAccountUpdateParameters(_serialization.Model): be 'Enabled', 'Disabled' or 'SecuredByPerimeter'. Known values are: "Enabled", "Disabled", and "SecuredByPerimeter". :vartype public_network_access: str or - ~azure.mgmt.storage.v2023_05_01.models.PublicNetworkAccess + ~azure.mgmt.storage.v2024_01_01.models.PublicNetworkAccess :ivar immutable_storage_with_versioning: The property is immutable and can only be set to true at the account creation time. When set to true, it enables object level immutability for all the containers in the account by default. :vartype immutable_storage_with_versioning: - ~azure.mgmt.storage.v2023_05_01.models.ImmutableStorageAccount + ~azure.mgmt.storage.v2024_01_01.models.ImmutableStorageAccount :ivar allowed_copy_scope: Restrict copy to and from Storage Accounts within an AAD tenant or with Private Links to the same VNet. Known values are: "PrivateLink" and "AAD". - :vartype allowed_copy_scope: str or ~azure.mgmt.storage.v2023_05_01.models.AllowedCopyScope + :vartype allowed_copy_scope: str or ~azure.mgmt.storage.v2024_01_01.models.AllowedCopyScope :ivar dns_endpoint_type: Allows you to specify the type of endpoint. Set this to AzureDNSZone to create a large number of accounts in a single subscription, which creates accounts in an Azure DNS Zone and the endpoint URL will have an alphanumeric DNS Zone identifier. Known values are: "Standard" and "AzureDnsZone". - :vartype dns_endpoint_type: str or ~azure.mgmt.storage.v2023_05_01.models.DnsEndpointType + :vartype dns_endpoint_type: str or ~azure.mgmt.storage.v2024_01_01.models.DnsEndpointType """ _attribute_map = { @@ -8236,38 +8842,38 @@ def __init__( # pylint: disable=too-many-locals :keyword sku: Gets or sets the SKU name. Note that the SKU name cannot be updated to Standard_ZRS, Premium_LRS or Premium_ZRS, nor can accounts of those SKU names be updated to any other value. - :paramtype sku: ~azure.mgmt.storage.v2023_05_01.models.Sku + :paramtype sku: ~azure.mgmt.storage.v2024_01_01.models.Sku :keyword tags: Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater in length than 128 characters and a value no greater in length than 256 characters. :paramtype tags: dict[str, str] :keyword identity: The identity of the resource. - :paramtype identity: ~azure.mgmt.storage.v2023_05_01.models.Identity + :paramtype identity: ~azure.mgmt.storage.v2024_01_01.models.Identity :keyword kind: Optional. Indicates the type of storage account. Currently only StorageV2 value supported by server. Known values are: "Storage", "StorageV2", "BlobStorage", "FileStorage", and "BlockBlobStorage". - :paramtype kind: str or ~azure.mgmt.storage.v2023_05_01.models.Kind + :paramtype kind: str or ~azure.mgmt.storage.v2024_01_01.models.Kind :keyword custom_domain: Custom domain assigned to the storage account by the user. Name is the CNAME source. Only one custom domain is supported per storage account at this time. To clear the existing custom domain, use an empty string for the custom domain name property. - :paramtype custom_domain: ~azure.mgmt.storage.v2023_05_01.models.CustomDomain + :paramtype custom_domain: ~azure.mgmt.storage.v2024_01_01.models.CustomDomain :keyword encryption: Not applicable. Azure Storage encryption at rest is enabled by default for all storage accounts and cannot be disabled. - :paramtype encryption: ~azure.mgmt.storage.v2023_05_01.models.Encryption + :paramtype encryption: ~azure.mgmt.storage.v2024_01_01.models.Encryption :keyword sas_policy: SasPolicy assigned to the storage account. - :paramtype sas_policy: ~azure.mgmt.storage.v2023_05_01.models.SasPolicy + :paramtype sas_policy: ~azure.mgmt.storage.v2024_01_01.models.SasPolicy :keyword key_policy: KeyPolicy assigned to the storage account. - :paramtype key_policy: ~azure.mgmt.storage.v2023_05_01.models.KeyPolicy + :paramtype key_policy: ~azure.mgmt.storage.v2024_01_01.models.KeyPolicy :keyword access_tier: Required for storage accounts where kind = BlobStorage. The access tier is used for billing. The 'Premium' access tier is the default value for premium block blobs storage account type and it cannot be changed for the premium block blobs storage account type. Known values are: "Hot", "Cool", "Premium", and "Cold". - :paramtype access_tier: str or ~azure.mgmt.storage.v2023_05_01.models.AccessTier + :paramtype access_tier: str or ~azure.mgmt.storage.v2024_01_01.models.AccessTier :keyword azure_files_identity_based_authentication: Provides the identity based authentication settings for Azure Files. :paramtype azure_files_identity_based_authentication: - ~azure.mgmt.storage.v2023_05_01.models.AzureFilesIdentityBasedAuthentication + ~azure.mgmt.storage.v2024_01_01.models.AzureFilesIdentityBasedAuthentication :keyword enable_https_traffic_only: Allows https traffic only to storage service if sets to true. :paramtype enable_https_traffic_only: bool @@ -8279,21 +8885,21 @@ def __init__( # pylint: disable=too-many-locals set to true. :paramtype enable_extended_groups: bool :keyword network_rule_set: Network rule set. - :paramtype network_rule_set: ~azure.mgmt.storage.v2023_05_01.models.NetworkRuleSet + :paramtype network_rule_set: ~azure.mgmt.storage.v2024_01_01.models.NetworkRuleSet :keyword large_file_shares_state: Allow large file shares if sets to Enabled. It cannot be disabled once it is enabled. Known values are: "Disabled" and "Enabled". :paramtype large_file_shares_state: str or - ~azure.mgmt.storage.v2023_05_01.models.LargeFileSharesState + ~azure.mgmt.storage.v2024_01_01.models.LargeFileSharesState :keyword routing_preference: Maintains information about the network routing choice opted by the user for data transfer. - :paramtype routing_preference: ~azure.mgmt.storage.v2023_05_01.models.RoutingPreference + :paramtype routing_preference: ~azure.mgmt.storage.v2024_01_01.models.RoutingPreference :keyword allow_blob_public_access: Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is false for this property. :paramtype allow_blob_public_access: bool :keyword minimum_tls_version: Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property. Known values are: "TLS1_0", "TLS1_1", "TLS1_2", and "TLS1_3". - :paramtype minimum_tls_version: str or ~azure.mgmt.storage.v2023_05_01.models.MinimumTlsVersion + :paramtype minimum_tls_version: str or ~azure.mgmt.storage.v2024_01_01.models.MinimumTlsVersion :keyword allow_shared_key_access: Indicates whether the storage account permits requests to be authorized with the account access key via Shared Key. If false, then all requests, including shared access signatures, must be authorized with Azure Active Directory (Azure AD). The @@ -8312,20 +8918,20 @@ def __init__( # pylint: disable=too-many-locals passed in, must be 'Enabled', 'Disabled' or 'SecuredByPerimeter'. Known values are: "Enabled", "Disabled", and "SecuredByPerimeter". :paramtype public_network_access: str or - ~azure.mgmt.storage.v2023_05_01.models.PublicNetworkAccess + ~azure.mgmt.storage.v2024_01_01.models.PublicNetworkAccess :keyword immutable_storage_with_versioning: The property is immutable and can only be set to true at the account creation time. When set to true, it enables object level immutability for all the containers in the account by default. :paramtype immutable_storage_with_versioning: - ~azure.mgmt.storage.v2023_05_01.models.ImmutableStorageAccount + ~azure.mgmt.storage.v2024_01_01.models.ImmutableStorageAccount :keyword allowed_copy_scope: Restrict copy to and from Storage Accounts within an AAD tenant or with Private Links to the same VNet. Known values are: "PrivateLink" and "AAD". - :paramtype allowed_copy_scope: str or ~azure.mgmt.storage.v2023_05_01.models.AllowedCopyScope + :paramtype allowed_copy_scope: str or ~azure.mgmt.storage.v2024_01_01.models.AllowedCopyScope :keyword dns_endpoint_type: Allows you to specify the type of endpoint. Set this to AzureDNSZone to create a large number of accounts in a single subscription, which creates accounts in an Azure DNS Zone and the endpoint URL will have an alphanumeric DNS Zone identifier. Known values are: "Standard" and "AzureDnsZone". - :paramtype dns_endpoint_type: str or ~azure.mgmt.storage.v2023_05_01.models.DnsEndpointType + :paramtype dns_endpoint_type: str or ~azure.mgmt.storage.v2024_01_01.models.DnsEndpointType """ super().__init__(**kwargs) self.sku = sku @@ -8408,7 +9014,7 @@ class StorageSkuListResult(_serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. :ivar value: Get the list result of storage SKUs and their properties. - :vartype value: list[~azure.mgmt.storage.v2023_05_01.models.SkuInformation] + :vartype value: list[~azure.mgmt.storage.v2024_01_01.models.SkuInformation] """ _validation = { @@ -8441,7 +9047,7 @@ class StorageTaskAssignment(Resource): "Microsoft.Storage/storageAccounts". :vartype type: str :ivar properties: Properties of the storage task assignment. Required. - :vartype properties: ~azure.mgmt.storage.v2023_05_01.models.StorageTaskAssignmentProperties + :vartype properties: ~azure.mgmt.storage.v2024_01_01.models.StorageTaskAssignmentProperties """ _validation = { @@ -8461,7 +9067,7 @@ class StorageTaskAssignment(Resource): def __init__(self, *, properties: "_models.StorageTaskAssignmentProperties", **kwargs: Any) -> None: """ :keyword properties: Properties of the storage task assignment. Required. - :paramtype properties: ~azure.mgmt.storage.v2023_05_01.models.StorageTaskAssignmentProperties + :paramtype properties: ~azure.mgmt.storage.v2024_01_01.models.StorageTaskAssignmentProperties """ super().__init__(**kwargs) self.properties = properties @@ -8473,9 +9079,9 @@ class StorageTaskAssignmentExecutionContext(_serialization.Model): All required parameters must be populated in order to send to server. :ivar target: Execution target of the storage task assignment. - :vartype target: ~azure.mgmt.storage.v2023_05_01.models.ExecutionTarget + :vartype target: ~azure.mgmt.storage.v2024_01_01.models.ExecutionTarget :ivar trigger: Execution trigger of the storage task assignment. Required. - :vartype trigger: ~azure.mgmt.storage.v2023_05_01.models.ExecutionTrigger + :vartype trigger: ~azure.mgmt.storage.v2024_01_01.models.ExecutionTrigger """ _validation = { @@ -8492,9 +9098,9 @@ def __init__( ) -> None: """ :keyword target: Execution target of the storage task assignment. - :paramtype target: ~azure.mgmt.storage.v2023_05_01.models.ExecutionTarget + :paramtype target: ~azure.mgmt.storage.v2024_01_01.models.ExecutionTarget :keyword trigger: Execution trigger of the storage task assignment. Required. - :paramtype trigger: ~azure.mgmt.storage.v2023_05_01.models.ExecutionTrigger + :paramtype trigger: ~azure.mgmt.storage.v2024_01_01.models.ExecutionTrigger """ super().__init__(**kwargs) self.target = target @@ -8516,15 +9122,15 @@ class StorageTaskAssignmentProperties(_serialization.Model): :vartype description: str :ivar execution_context: The storage task assignment execution context. Required. :vartype execution_context: - ~azure.mgmt.storage.v2023_05_01.models.StorageTaskAssignmentExecutionContext + ~azure.mgmt.storage.v2024_01_01.models.StorageTaskAssignmentExecutionContext :ivar report: The storage task assignment report. Required. - :vartype report: ~azure.mgmt.storage.v2023_05_01.models.StorageTaskAssignmentReport + :vartype report: ~azure.mgmt.storage.v2024_01_01.models.StorageTaskAssignmentReport :ivar provisioning_state: Represents the provisioning state of the storage task assignment. Known values are: "Creating", "ResolvingDNS", "Succeeded", "ValidateSubscriptionQuotaBegin", "ValidateSubscriptionQuotaEnd", "Deleting", "Canceled", and "Failed". - :vartype provisioning_state: str or ~azure.mgmt.storage.v2023_05_01.models.ProvisioningState + :vartype provisioning_state: str or ~azure.mgmt.storage.v2024_01_01.models.ProvisioningState :ivar run_status: Run status of storage task assignment. - :vartype run_status: ~azure.mgmt.storage.v2023_05_01.models.StorageTaskReportProperties + :vartype run_status: ~azure.mgmt.storage.v2024_01_01.models.StorageTaskReportProperties """ _validation = { @@ -8566,11 +9172,11 @@ def __init__( :paramtype description: str :keyword execution_context: The storage task assignment execution context. Required. :paramtype execution_context: - ~azure.mgmt.storage.v2023_05_01.models.StorageTaskAssignmentExecutionContext + ~azure.mgmt.storage.v2024_01_01.models.StorageTaskAssignmentExecutionContext :keyword report: The storage task assignment report. Required. - :paramtype report: ~azure.mgmt.storage.v2023_05_01.models.StorageTaskAssignmentReport + :paramtype report: ~azure.mgmt.storage.v2024_01_01.models.StorageTaskAssignmentReport :keyword run_status: Run status of storage task assignment. - :paramtype run_status: ~azure.mgmt.storage.v2023_05_01.models.StorageTaskReportProperties + :paramtype run_status: ~azure.mgmt.storage.v2024_01_01.models.StorageTaskReportProperties """ super().__init__(**kwargs) self.task_id = task_id @@ -8616,7 +9222,7 @@ class StorageTaskAssignmentsList(_serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. :ivar value: Gets the list of storage task assignments and their properties. - :vartype value: list[~azure.mgmt.storage.v2023_05_01.models.StorageTaskAssignment] + :vartype value: list[~azure.mgmt.storage.v2024_01_01.models.StorageTaskAssignment] :ivar next_link: Request URL that can be used to query next page of storage task assignments. Returned when total number of requested storage task assignments exceed maximum page size. :vartype next_link: str @@ -8643,9 +9249,9 @@ class StorageTaskAssignmentUpdateExecutionContext(_serialization.Model): # pyli """Execution context of the storage task assignment update. :ivar target: Execution target of the storage task assignment. - :vartype target: ~azure.mgmt.storage.v2023_05_01.models.ExecutionTarget + :vartype target: ~azure.mgmt.storage.v2024_01_01.models.ExecutionTarget :ivar trigger: Execution trigger of the storage task assignment. - :vartype trigger: ~azure.mgmt.storage.v2023_05_01.models.ExecutionTriggerUpdate + :vartype trigger: ~azure.mgmt.storage.v2024_01_01.models.ExecutionTriggerUpdate """ _attribute_map = { @@ -8662,9 +9268,9 @@ def __init__( ) -> None: """ :keyword target: Execution target of the storage task assignment. - :paramtype target: ~azure.mgmt.storage.v2023_05_01.models.ExecutionTarget + :paramtype target: ~azure.mgmt.storage.v2024_01_01.models.ExecutionTarget :keyword trigger: Execution trigger of the storage task assignment. - :paramtype trigger: ~azure.mgmt.storage.v2023_05_01.models.ExecutionTriggerUpdate + :paramtype trigger: ~azure.mgmt.storage.v2024_01_01.models.ExecutionTriggerUpdate """ super().__init__(**kwargs) self.target = target @@ -8676,7 +9282,7 @@ class StorageTaskAssignmentUpdateParameters(_serialization.Model): :ivar properties: Properties of the storage task assignment. :vartype properties: - ~azure.mgmt.storage.v2023_05_01.models.StorageTaskAssignmentUpdateProperties + ~azure.mgmt.storage.v2024_01_01.models.StorageTaskAssignmentUpdateProperties """ _attribute_map = { @@ -8689,7 +9295,7 @@ def __init__( """ :keyword properties: Properties of the storage task assignment. :paramtype properties: - ~azure.mgmt.storage.v2023_05_01.models.StorageTaskAssignmentUpdateProperties + ~azure.mgmt.storage.v2024_01_01.models.StorageTaskAssignmentUpdateProperties """ super().__init__(**kwargs) self.properties = properties @@ -8708,15 +9314,15 @@ class StorageTaskAssignmentUpdateProperties(_serialization.Model): :vartype description: str :ivar execution_context: The storage task assignment execution context. :vartype execution_context: - ~azure.mgmt.storage.v2023_05_01.models.StorageTaskAssignmentUpdateExecutionContext + ~azure.mgmt.storage.v2024_01_01.models.StorageTaskAssignmentUpdateExecutionContext :ivar report: The storage task assignment report. - :vartype report: ~azure.mgmt.storage.v2023_05_01.models.StorageTaskAssignmentUpdateReport + :vartype report: ~azure.mgmt.storage.v2024_01_01.models.StorageTaskAssignmentUpdateReport :ivar provisioning_state: Represents the provisioning state of the storage task assignment. Known values are: "Creating", "ResolvingDNS", "Succeeded", "ValidateSubscriptionQuotaBegin", "ValidateSubscriptionQuotaEnd", "Deleting", "Canceled", and "Failed". - :vartype provisioning_state: str or ~azure.mgmt.storage.v2023_05_01.models.ProvisioningState + :vartype provisioning_state: str or ~azure.mgmt.storage.v2024_01_01.models.ProvisioningState :ivar run_status: Run status of storage task assignment. - :vartype run_status: ~azure.mgmt.storage.v2023_05_01.models.StorageTaskReportProperties + :vartype run_status: ~azure.mgmt.storage.v2024_01_01.models.StorageTaskReportProperties """ _validation = { @@ -8751,11 +9357,11 @@ def __init__( :paramtype description: str :keyword execution_context: The storage task assignment execution context. :paramtype execution_context: - ~azure.mgmt.storage.v2023_05_01.models.StorageTaskAssignmentUpdateExecutionContext + ~azure.mgmt.storage.v2024_01_01.models.StorageTaskAssignmentUpdateExecutionContext :keyword report: The storage task assignment report. - :paramtype report: ~azure.mgmt.storage.v2023_05_01.models.StorageTaskAssignmentUpdateReport + :paramtype report: ~azure.mgmt.storage.v2024_01_01.models.StorageTaskAssignmentUpdateReport :keyword run_status: Run status of storage task assignment. - :paramtype run_status: ~azure.mgmt.storage.v2023_05_01.models.StorageTaskReportProperties + :paramtype run_status: ~azure.mgmt.storage.v2024_01_01.models.StorageTaskReportProperties """ super().__init__(**kwargs) self.task_id = None @@ -8801,7 +9407,7 @@ class StorageTaskReportInstance(ProxyResource): "Microsoft.Storage/storageAccounts". :vartype type: str :ivar properties: Storage task execution report for a run instance. - :vartype properties: ~azure.mgmt.storage.v2023_05_01.models.StorageTaskReportProperties + :vartype properties: ~azure.mgmt.storage.v2024_01_01.models.StorageTaskReportProperties """ _validation = { @@ -8820,7 +9426,7 @@ class StorageTaskReportInstance(ProxyResource): def __init__(self, *, properties: Optional["_models.StorageTaskReportProperties"] = None, **kwargs: Any) -> None: """ :keyword properties: Storage task execution report for a run instance. - :paramtype properties: ~azure.mgmt.storage.v2023_05_01.models.StorageTaskReportProperties + :paramtype properties: ~azure.mgmt.storage.v2024_01_01.models.StorageTaskReportProperties """ super().__init__(**kwargs) self.properties = properties @@ -8872,7 +9478,7 @@ class StorageTaskReportProperties(_serialization.Model): :vartype run_status_error: str :ivar run_status_enum: Represents the status of the execution. Known values are: "InProgress" and "Finished". - :vartype run_status_enum: str or ~azure.mgmt.storage.v2023_05_01.models.RunStatusEnum + :vartype run_status_enum: str or ~azure.mgmt.storage.v2024_01_01.models.RunStatusEnum :ivar summary_report_path: Full path to the verbose report stored in the reporting container as specified in the assignment execution context for the storage account. :vartype summary_report_path: str @@ -8882,7 +9488,7 @@ class StorageTaskReportProperties(_serialization.Model): :vartype task_version: str :ivar run_result: Represents the overall result of the execution for the run instance. Known values are: "Succeeded" and "Failed". - :vartype run_result: str or ~azure.mgmt.storage.v2023_05_01.models.RunResult + :vartype run_result: str or ~azure.mgmt.storage.v2024_01_01.models.RunResult """ _validation = { @@ -8944,7 +9550,7 @@ class StorageTaskReportSummary(_serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. :ivar value: Gets storage tasks run result summary. - :vartype value: list[~azure.mgmt.storage.v2023_05_01.models.StorageTaskReportInstance] + :vartype value: list[~azure.mgmt.storage.v2024_01_01.models.StorageTaskReportInstance] :ivar next_link: Request URL that can be used to query next page of storage task run results summary. Returned when the number of run instances and summary reports exceed maximum page size. @@ -8975,14 +9581,14 @@ class SystemData(_serialization.Model): :vartype created_by: str :ivar created_by_type: The type of identity that created the resource. Known values are: "User", "Application", "ManagedIdentity", and "Key". - :vartype created_by_type: str or ~azure.mgmt.storage.v2023_05_01.models.CreatedByType + :vartype created_by_type: str or ~azure.mgmt.storage.v2024_01_01.models.CreatedByType :ivar created_at: The timestamp of resource creation (UTC). :vartype created_at: ~datetime.datetime :ivar last_modified_by: The identity that last modified the resource. :vartype last_modified_by: str :ivar last_modified_by_type: The type of identity that last modified the resource. Known values are: "User", "Application", "ManagedIdentity", and "Key". - :vartype last_modified_by_type: str or ~azure.mgmt.storage.v2023_05_01.models.CreatedByType + :vartype last_modified_by_type: str or ~azure.mgmt.storage.v2024_01_01.models.CreatedByType :ivar last_modified_at: The timestamp of resource last modification (UTC). :vartype last_modified_at: ~datetime.datetime """ @@ -9012,14 +9618,14 @@ def __init__( :paramtype created_by: str :keyword created_by_type: The type of identity that created the resource. Known values are: "User", "Application", "ManagedIdentity", and "Key". - :paramtype created_by_type: str or ~azure.mgmt.storage.v2023_05_01.models.CreatedByType + :paramtype created_by_type: str or ~azure.mgmt.storage.v2024_01_01.models.CreatedByType :keyword created_at: The timestamp of resource creation (UTC). :paramtype created_at: ~datetime.datetime :keyword last_modified_by: The identity that last modified the resource. :paramtype last_modified_by: str :keyword last_modified_by_type: The type of identity that last modified the resource. Known values are: "User", "Application", "ManagedIdentity", and "Key". - :paramtype last_modified_by_type: str or ~azure.mgmt.storage.v2023_05_01.models.CreatedByType + :paramtype last_modified_by_type: str or ~azure.mgmt.storage.v2024_01_01.models.CreatedByType :keyword last_modified_at: The timestamp of resource last modification (UTC). :paramtype last_modified_at: ~datetime.datetime """ @@ -9048,7 +9654,7 @@ class Table(Resource): :ivar table_name: Table name under the specified account. :vartype table_name: str :ivar signed_identifiers: List of stored access policies specified on the table. - :vartype signed_identifiers: list[~azure.mgmt.storage.v2023_05_01.models.TableSignedIdentifier] + :vartype signed_identifiers: list[~azure.mgmt.storage.v2024_01_01.models.TableSignedIdentifier] """ _validation = { @@ -9072,7 +9678,7 @@ def __init__( """ :keyword signed_identifiers: List of stored access policies specified on the table. :paramtype signed_identifiers: - list[~azure.mgmt.storage.v2023_05_01.models.TableSignedIdentifier] + list[~azure.mgmt.storage.v2024_01_01.models.TableSignedIdentifier] """ super().__init__(**kwargs) self.table_name = None @@ -9142,7 +9748,7 @@ class TableServiceProperties(Resource): :ivar cors: Specifies CORS rules for the Table service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the Table service. - :vartype cors: ~azure.mgmt.storage.v2023_05_01.models.CorsRules + :vartype cors: ~azure.mgmt.storage.v2024_01_01.models.CorsRules """ _validation = { @@ -9163,7 +9769,7 @@ def __init__(self, *, cors: Optional["_models.CorsRules"] = None, **kwargs: Any) :keyword cors: Specifies CORS rules for the Table service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the Table service. - :paramtype cors: ~azure.mgmt.storage.v2023_05_01.models.CorsRules + :paramtype cors: ~azure.mgmt.storage.v2024_01_01.models.CorsRules """ super().__init__(**kwargs) self.cors = cors @@ -9177,7 +9783,7 @@ class TableSignedIdentifier(_serialization.Model): :ivar id: unique-64-character-value of the stored access policy. Required. :vartype id: str :ivar access_policy: Access policy. - :vartype access_policy: ~azure.mgmt.storage.v2023_05_01.models.TableAccessPolicy + :vartype access_policy: ~azure.mgmt.storage.v2024_01_01.models.TableAccessPolicy """ _validation = { @@ -9200,7 +9806,7 @@ def __init__( :keyword id: unique-64-character-value of the stored access policy. Required. :paramtype id: str :keyword access_policy: Access policy. - :paramtype access_policy: ~azure.mgmt.storage.v2023_05_01.models.TableAccessPolicy + :paramtype access_policy: ~azure.mgmt.storage.v2024_01_01.models.TableAccessPolicy """ super().__init__(**kwargs) self.id = id @@ -9455,7 +10061,7 @@ class UpdateHistoryProperty(_serialization.Model): :ivar update: The ImmutabilityPolicy update type of a blob container, possible values include: put, lock and extend. Known values are: "put", "lock", and "extend". - :vartype update: str or ~azure.mgmt.storage.v2023_05_01.models.ImmutabilityPolicyUpdateType + :vartype update: str or ~azure.mgmt.storage.v2024_01_01.models.ImmutabilityPolicyUpdateType :ivar immutability_period_since_creation_in_days: The immutability period for the blobs in the container since the policy creation, in days. :vartype immutability_period_since_creation_in_days: int @@ -9543,13 +10149,13 @@ class Usage(_serialization.Model): :ivar unit: Gets the unit of measurement. Known values are: "Count", "Bytes", "Seconds", "Percent", "CountsPerSecond", and "BytesPerSecond". - :vartype unit: str or ~azure.mgmt.storage.v2023_05_01.models.UsageUnit + :vartype unit: str or ~azure.mgmt.storage.v2024_01_01.models.UsageUnit :ivar current_value: Gets the current count of the allocated resources in the subscription. :vartype current_value: int :ivar limit: Gets the maximum count of the resources that can be allocated in the subscription. :vartype limit: int :ivar name: Gets the name of the type of usage. - :vartype name: ~azure.mgmt.storage.v2023_05_01.models.UsageName + :vartype name: ~azure.mgmt.storage.v2024_01_01.models.UsageName """ _validation = { @@ -9579,7 +10185,7 @@ class UsageListResult(_serialization.Model): """The response from the List Usages operation. :ivar value: Gets or sets the list of Storage Resource Usages. - :vartype value: list[~azure.mgmt.storage.v2023_05_01.models.Usage] + :vartype value: list[~azure.mgmt.storage.v2024_01_01.models.Usage] """ _attribute_map = { @@ -9589,7 +10195,7 @@ class UsageListResult(_serialization.Model): def __init__(self, *, value: Optional[List["_models.Usage"]] = None, **kwargs: Any) -> None: """ :keyword value: Gets or sets the list of Storage Resource Usages. - :paramtype value: list[~azure.mgmt.storage.v2023_05_01.models.Usage] + :paramtype value: list[~azure.mgmt.storage.v2024_01_01.models.Usage] """ super().__init__(**kwargs) self.value = value @@ -9664,7 +10270,7 @@ class VirtualNetworkRule(_serialization.Model): :vartype action: str :ivar state: Gets the state of virtual network rule. Known values are: "Provisioning", "Deprovisioning", "Succeeded", "Failed", and "NetworkSourceDeleted". - :vartype state: str or ~azure.mgmt.storage.v2023_05_01.models.State + :vartype state: str or ~azure.mgmt.storage.v2024_01_01.models.State """ _validation = { @@ -9694,7 +10300,7 @@ def __init__( :paramtype action: str :keyword state: Gets the state of virtual network rule. Known values are: "Provisioning", "Deprovisioning", "Succeeded", "Failed", and "NetworkSourceDeleted". - :paramtype state: str or ~azure.mgmt.storage.v2023_05_01.models.State + :paramtype state: str or ~azure.mgmt.storage.v2024_01_01.models.State """ super().__init__(**kwargs) self.virtual_network_resource_id = virtual_network_resource_id diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/models/_patch.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/models/_patch.py similarity index 100% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/models/_patch.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/models/_patch.py diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/models/_storage_management_client_enums.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/models/_storage_management_client_enums.py similarity index 98% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/models/_storage_management_client_enums.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/models/_storage_management_client_enums.py index b3b0496d00f0..b5e4ec197e70 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/models/_storage_management_client_enums.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/models/_storage_management_client_enums.py @@ -664,6 +664,12 @@ class SkuName(str, Enum, metaclass=CaseInsensitiveEnumMeta): PREMIUM_ZRS = "Premium_ZRS" STANDARD_GZRS = "Standard_GZRS" STANDARD_RAGZRS = "Standard_RAGZRS" + STANDARD_V2_LRS = "StandardV2_LRS" + STANDARD_V2_GRS = "StandardV2_GRS" + STANDARD_V2_ZRS = "StandardV2_ZRS" + STANDARD_V2_GZRS = "StandardV2_GZRS" + PREMIUM_V2_LRS = "PremiumV2_LRS" + PREMIUM_V2_ZRS = "PremiumV2_ZRS" class SkuTier(str, Enum, metaclass=CaseInsensitiveEnumMeta): diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/__init__.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/__init__.py similarity index 100% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/__init__.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/__init__.py diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_blob_containers_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_blob_containers_operations.py similarity index 96% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_blob_containers_operations.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_blob_containers_operations.py index 3dd86b4432b9..13f46fed6d0f 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_blob_containers_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_blob_containers_operations.py @@ -57,7 +57,7 @@ def build_list_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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -98,7 +98,7 @@ def build_create_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", "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -137,7 +137,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", "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -176,7 +176,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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -211,7 +211,7 @@ def build_delete_request( ) -> HttpRequest: _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", "2024-01-01")) # Construct URL _url = kwargs.pop( "template_url", @@ -242,7 +242,7 @@ def build_set_legal_hold_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", "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -281,7 +281,7 @@ def build_clear_legal_hold_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", "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -327,7 +327,7 @@ def build_create_or_update_immutability_policy_request( # pylint: disable=name- _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) immutability_policy_name: Literal["default"] = kwargs.pop("immutability_policy_name", "default") - 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", "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -376,7 +376,7 @@ def build_get_immutability_policy_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) immutability_policy_name: Literal["default"] = kwargs.pop("immutability_policy_name", "default") - 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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -422,7 +422,7 @@ def build_delete_immutability_policy_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) immutability_policy_name: Literal["default"] = kwargs.pop("immutability_policy_name", "default") - 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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -466,7 +466,7 @@ def build_lock_immutability_policy_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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -509,7 +509,7 @@ def build_extend_immutability_policy_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", "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -549,7 +549,7 @@ def build_lease_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", "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -588,7 +588,7 @@ def build_object_level_worm_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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -624,7 +624,7 @@ class BlobContainersOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.StorageManagementClient`'s + :class:`~azure.mgmt.storage.v2024_01_01.StorageManagementClient`'s :attr:`blob_containers` attribute. """ @@ -666,15 +666,15 @@ def list( :type filter: str :param include: Optional, used to include the properties for soft deleted blob containers. "deleted" Default value is None. - :type include: str or ~azure.mgmt.storage.v2023_05_01.models.ListContainersInclude + :type include: str or ~azure.mgmt.storage.v2024_01_01.models.ListContainersInclude :return: An iterator like instance of either ListContainerItem or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2023_05_01.models.ListContainerItem] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2024_01_01.models.ListContainerItem] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.ListContainerItems] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -770,12 +770,12 @@ def create( by a letter or number. Required. :type container_name: str :param blob_container: Properties of the blob container to create. Required. - :type blob_container: ~azure.mgmt.storage.v2023_05_01.models.BlobContainer + :type blob_container: ~azure.mgmt.storage.v2024_01_01.models.BlobContainer :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: BlobContainer or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.BlobContainer + :rtype: ~azure.mgmt.storage.v2024_01_01.models.BlobContainer :raises ~azure.core.exceptions.HttpResponseError: """ @@ -812,7 +812,7 @@ def create( Default value is "application/json". :paramtype content_type: str :return: BlobContainer or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.BlobContainer + :rtype: ~azure.mgmt.storage.v2024_01_01.models.BlobContainer :raises ~azure.core.exceptions.HttpResponseError: """ @@ -843,9 +843,9 @@ def create( :type container_name: str :param blob_container: Properties of the blob container to create. Is either a BlobContainer type or a IO[bytes] type. Required. - :type blob_container: ~azure.mgmt.storage.v2023_05_01.models.BlobContainer or IO[bytes] + :type blob_container: ~azure.mgmt.storage.v2024_01_01.models.BlobContainer or IO[bytes] :return: BlobContainer or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.BlobContainer + :rtype: ~azure.mgmt.storage.v2024_01_01.models.BlobContainer :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -859,7 +859,7 @@ def create( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.BlobContainer] = kwargs.pop("cls", None) @@ -930,12 +930,12 @@ def update( by a letter or number. Required. :type container_name: str :param blob_container: Properties to update for the blob container. Required. - :type blob_container: ~azure.mgmt.storage.v2023_05_01.models.BlobContainer + :type blob_container: ~azure.mgmt.storage.v2024_01_01.models.BlobContainer :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: BlobContainer or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.BlobContainer + :rtype: ~azure.mgmt.storage.v2024_01_01.models.BlobContainer :raises ~azure.core.exceptions.HttpResponseError: """ @@ -971,7 +971,7 @@ def update( Default value is "application/json". :paramtype content_type: str :return: BlobContainer or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.BlobContainer + :rtype: ~azure.mgmt.storage.v2024_01_01.models.BlobContainer :raises ~azure.core.exceptions.HttpResponseError: """ @@ -1001,9 +1001,9 @@ def update( :type container_name: str :param blob_container: Properties to update for the blob container. Is either a BlobContainer type or a IO[bytes] type. Required. - :type blob_container: ~azure.mgmt.storage.v2023_05_01.models.BlobContainer or IO[bytes] + :type blob_container: ~azure.mgmt.storage.v2024_01_01.models.BlobContainer or IO[bytes] :return: BlobContainer or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.BlobContainer + :rtype: ~azure.mgmt.storage.v2024_01_01.models.BlobContainer :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -1017,7 +1017,7 @@ def update( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.BlobContainer] = kwargs.pop("cls", None) @@ -1080,7 +1080,7 @@ def get( by a letter or number. Required. :type container_name: str :return: BlobContainer or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.BlobContainer + :rtype: ~azure.mgmt.storage.v2024_01_01.models.BlobContainer :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -1094,7 +1094,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.BlobContainer] = kwargs.pop("cls", None) _request = build_get_request( @@ -1159,7 +1159,7 @@ def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_delete_request( @@ -1215,12 +1215,12 @@ def set_legal_hold( by a letter or number. Required. :type container_name: str :param legal_hold: The LegalHold property that will be set to a blob container. Required. - :type legal_hold: ~azure.mgmt.storage.v2023_05_01.models.LegalHold + :type legal_hold: ~azure.mgmt.storage.v2024_01_01.models.LegalHold :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: LegalHold or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.LegalHold + :rtype: ~azure.mgmt.storage.v2024_01_01.models.LegalHold :raises ~azure.core.exceptions.HttpResponseError: """ @@ -1257,7 +1257,7 @@ def set_legal_hold( Default value is "application/json". :paramtype content_type: str :return: LegalHold or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.LegalHold + :rtype: ~azure.mgmt.storage.v2024_01_01.models.LegalHold :raises ~azure.core.exceptions.HttpResponseError: """ @@ -1288,9 +1288,9 @@ def set_legal_hold( :type container_name: str :param legal_hold: The LegalHold property that will be set to a blob container. Is either a LegalHold type or a IO[bytes] type. Required. - :type legal_hold: ~azure.mgmt.storage.v2023_05_01.models.LegalHold or IO[bytes] + :type legal_hold: ~azure.mgmt.storage.v2024_01_01.models.LegalHold or IO[bytes] :return: LegalHold or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.LegalHold + :rtype: ~azure.mgmt.storage.v2024_01_01.models.LegalHold :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -1304,7 +1304,7 @@ def set_legal_hold( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.LegalHold] = kwargs.pop("cls", None) @@ -1375,12 +1375,12 @@ def clear_legal_hold( by a letter or number. Required. :type container_name: str :param legal_hold: The LegalHold property that will be clear from a blob container. Required. - :type legal_hold: ~azure.mgmt.storage.v2023_05_01.models.LegalHold + :type legal_hold: ~azure.mgmt.storage.v2024_01_01.models.LegalHold :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: LegalHold or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.LegalHold + :rtype: ~azure.mgmt.storage.v2024_01_01.models.LegalHold :raises ~azure.core.exceptions.HttpResponseError: """ @@ -1416,7 +1416,7 @@ def clear_legal_hold( Default value is "application/json". :paramtype content_type: str :return: LegalHold or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.LegalHold + :rtype: ~azure.mgmt.storage.v2024_01_01.models.LegalHold :raises ~azure.core.exceptions.HttpResponseError: """ @@ -1446,9 +1446,9 @@ def clear_legal_hold( :type container_name: str :param legal_hold: The LegalHold property that will be clear from a blob container. Is either a LegalHold type or a IO[bytes] type. Required. - :type legal_hold: ~azure.mgmt.storage.v2023_05_01.models.LegalHold or IO[bytes] + :type legal_hold: ~azure.mgmt.storage.v2024_01_01.models.LegalHold or IO[bytes] :return: LegalHold or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.LegalHold + :rtype: ~azure.mgmt.storage.v2024_01_01.models.LegalHold :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -1462,7 +1462,7 @@ def clear_legal_hold( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.LegalHold] = kwargs.pop("cls", None) @@ -1539,12 +1539,12 @@ def create_or_update_immutability_policy( :type if_match: str :param parameters: The ImmutabilityPolicy Properties that will be created or updated to a blob container. Default value is None. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.ImmutabilityPolicy + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.ImmutabilityPolicy :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: ImmutabilityPolicy or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ImmutabilityPolicy + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ImmutabilityPolicy :raises ~azure.core.exceptions.HttpResponseError: """ @@ -1586,7 +1586,7 @@ def create_or_update_immutability_policy( Default value is "application/json". :paramtype content_type: str :return: ImmutabilityPolicy or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ImmutabilityPolicy + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ImmutabilityPolicy :raises ~azure.core.exceptions.HttpResponseError: """ @@ -1621,9 +1621,9 @@ def create_or_update_immutability_policy( :type if_match: str :param parameters: The ImmutabilityPolicy Properties that will be created or updated to a blob container. Is either a ImmutabilityPolicy type or a IO[bytes] type. Default value is None. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.ImmutabilityPolicy or IO[bytes] + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.ImmutabilityPolicy or IO[bytes] :return: ImmutabilityPolicy or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ImmutabilityPolicy + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ImmutabilityPolicy :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -1638,7 +1638,7 @@ def create_or_update_immutability_policy( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) immutability_policy_name: Literal["default"] = kwargs.pop("immutability_policy_name", "default") - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ImmutabilityPolicy] = kwargs.pop("cls", None) @@ -1719,7 +1719,7 @@ def get_immutability_policy( trailing double quotes as returned by the service. Default value is None. :type if_match: str :return: ImmutabilityPolicy or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ImmutabilityPolicy + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ImmutabilityPolicy :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -1734,7 +1734,7 @@ def get_immutability_policy( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) immutability_policy_name: Literal["default"] = kwargs.pop("immutability_policy_name", "default") - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.ImmutabilityPolicy] = kwargs.pop("cls", None) _request = build_get_immutability_policy_request( @@ -1797,7 +1797,7 @@ def delete_immutability_policy( trailing double quotes as returned by the service. Required. :type if_match: str :return: ImmutabilityPolicy or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ImmutabilityPolicy + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ImmutabilityPolicy :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -1812,7 +1812,7 @@ def delete_immutability_policy( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) immutability_policy_name: Literal["default"] = kwargs.pop("immutability_policy_name", "default") - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.ImmutabilityPolicy] = kwargs.pop("cls", None) _request = build_delete_immutability_policy_request( @@ -1873,7 +1873,7 @@ def lock_immutability_policy( trailing double quotes as returned by the service. Required. :type if_match: str :return: ImmutabilityPolicy or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ImmutabilityPolicy + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ImmutabilityPolicy :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -1887,7 +1887,7 @@ def lock_immutability_policy( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.ImmutabilityPolicy] = kwargs.pop("cls", None) _request = build_lock_immutability_policy_request( @@ -1957,12 +1957,12 @@ def extend_immutability_policy( :type if_match: str :param parameters: The ImmutabilityPolicy Properties that will be extended for a blob container. Default value is None. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.ImmutabilityPolicy + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.ImmutabilityPolicy :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: ImmutabilityPolicy or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ImmutabilityPolicy + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ImmutabilityPolicy :raises ~azure.core.exceptions.HttpResponseError: """ @@ -2005,7 +2005,7 @@ def extend_immutability_policy( Default value is "application/json". :paramtype content_type: str :return: ImmutabilityPolicy or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ImmutabilityPolicy + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ImmutabilityPolicy :raises ~azure.core.exceptions.HttpResponseError: """ @@ -2041,9 +2041,9 @@ def extend_immutability_policy( :type if_match: str :param parameters: The ImmutabilityPolicy Properties that will be extended for a blob container. Is either a ImmutabilityPolicy type or a IO[bytes] type. Default value is None. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.ImmutabilityPolicy or IO[bytes] + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.ImmutabilityPolicy or IO[bytes] :return: ImmutabilityPolicy or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ImmutabilityPolicy + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ImmutabilityPolicy :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -2057,7 +2057,7 @@ def extend_immutability_policy( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ImmutabilityPolicy] = kwargs.pop("cls", None) @@ -2135,12 +2135,12 @@ def lease( by a letter or number. Required. :type container_name: str :param parameters: Lease Container request body. Default value is None. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.LeaseContainerRequest + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.LeaseContainerRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: LeaseContainerResponse or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.LeaseContainerResponse + :rtype: ~azure.mgmt.storage.v2024_01_01.models.LeaseContainerResponse :raises ~azure.core.exceptions.HttpResponseError: """ @@ -2176,7 +2176,7 @@ def lease( Default value is "application/json". :paramtype content_type: str :return: LeaseContainerResponse or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.LeaseContainerResponse + :rtype: ~azure.mgmt.storage.v2024_01_01.models.LeaseContainerResponse :raises ~azure.core.exceptions.HttpResponseError: """ @@ -2206,9 +2206,9 @@ def lease( :type container_name: str :param parameters: Lease Container request body. Is either a LeaseContainerRequest type or a IO[bytes] type. Default value is None. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.LeaseContainerRequest or IO[bytes] + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.LeaseContainerRequest or IO[bytes] :return: LeaseContainerResponse or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.LeaseContainerResponse + :rtype: ~azure.mgmt.storage.v2024_01_01.models.LeaseContainerResponse :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -2222,7 +2222,7 @@ def lease( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.LeaseContainerResponse] = kwargs.pop("cls", None) @@ -2283,7 +2283,7 @@ def _object_level_worm_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_object_level_worm_request( @@ -2348,7 +2348,7 @@ def begin_object_level_worm( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_blob_inventory_policies_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_blob_inventory_policies_operations.py similarity index 95% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_blob_inventory_policies_operations.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_blob_inventory_policies_operations.py index 06e160463f59..66b5ed08fe5c 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_blob_inventory_policies_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_blob_inventory_policies_operations.py @@ -49,7 +49,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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -89,7 +89,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", "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -132,7 +132,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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -166,7 +166,7 @@ def build_list_request(resource_group_name: str, account_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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -201,7 +201,7 @@ class BlobInventoryPoliciesOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.StorageManagementClient`'s + :class:`~azure.mgmt.storage.v2024_01_01.StorageManagementClient`'s :attr:`blob_inventory_policies` attribute. """ @@ -235,9 +235,9 @@ def get( :param blob_inventory_policy_name: The name of the storage account blob inventory policy. It should always be 'default'. "default" Required. :type blob_inventory_policy_name: str or - ~azure.mgmt.storage.v2023_05_01.models.BlobInventoryPolicyName + ~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicyName :return: BlobInventoryPolicy or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.BlobInventoryPolicy + :rtype: ~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicy :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -251,7 +251,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.BlobInventoryPolicy] = kwargs.pop("cls", None) _request = build_get_request( @@ -306,14 +306,14 @@ def create_or_update( :param blob_inventory_policy_name: The name of the storage account blob inventory policy. It should always be 'default'. "default" Required. :type blob_inventory_policy_name: str or - ~azure.mgmt.storage.v2023_05_01.models.BlobInventoryPolicyName + ~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicyName :param properties: The blob inventory policy set to a storage account. Required. - :type properties: ~azure.mgmt.storage.v2023_05_01.models.BlobInventoryPolicy + :type properties: ~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicy :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: BlobInventoryPolicy or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.BlobInventoryPolicy + :rtype: ~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicy :raises ~azure.core.exceptions.HttpResponseError: """ @@ -340,14 +340,14 @@ def create_or_update( :param blob_inventory_policy_name: The name of the storage account blob inventory policy. It should always be 'default'. "default" Required. :type blob_inventory_policy_name: str or - ~azure.mgmt.storage.v2023_05_01.models.BlobInventoryPolicyName + ~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicyName :param properties: The blob inventory policy set to a storage account. Required. :type properties: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: BlobInventoryPolicy or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.BlobInventoryPolicy + :rtype: ~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicy :raises ~azure.core.exceptions.HttpResponseError: """ @@ -372,12 +372,12 @@ def create_or_update( :param blob_inventory_policy_name: The name of the storage account blob inventory policy. It should always be 'default'. "default" Required. :type blob_inventory_policy_name: str or - ~azure.mgmt.storage.v2023_05_01.models.BlobInventoryPolicyName + ~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicyName :param properties: The blob inventory policy set to a storage account. Is either a BlobInventoryPolicy type or a IO[bytes] type. Required. - :type properties: ~azure.mgmt.storage.v2023_05_01.models.BlobInventoryPolicy or IO[bytes] + :type properties: ~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicy or IO[bytes] :return: BlobInventoryPolicy or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.BlobInventoryPolicy + :rtype: ~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicy :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -391,7 +391,7 @@ def create_or_update( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.BlobInventoryPolicy] = kwargs.pop("cls", None) @@ -455,7 +455,7 @@ def delete( # pylint: disable=inconsistent-return-statements :param blob_inventory_policy_name: The name of the storage account blob inventory policy. It should always be 'default'. "default" Required. :type blob_inventory_policy_name: str or - ~azure.mgmt.storage.v2023_05_01.models.BlobInventoryPolicyName + ~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicyName :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -471,7 +471,7 @@ def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_delete_request( @@ -514,13 +514,13 @@ def list( :type account_name: str :return: An iterator like instance of either BlobInventoryPolicy or the result of cls(response) :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2023_05_01.models.BlobInventoryPolicy] + ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2024_01_01.models.BlobInventoryPolicy] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.ListBlobInventoryPolicy] = kwargs.pop("cls", None) error_map: MutableMapping = { diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_blob_services_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_blob_services_operations.py similarity index 96% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_blob_services_operations.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_blob_services_operations.py index f12d7665321d..5e0f1aa981ec 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_blob_services_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_blob_services_operations.py @@ -43,7 +43,7 @@ def build_list_request(resource_group_name: str, account_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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -78,7 +78,7 @@ def build_set_service_properties_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", "2024-01-01")) blob_services_name: Literal["default"] = kwargs.pop("blob_services_name", "default") content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -118,7 +118,7 @@ def build_get_service_properties_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", "2024-01-01")) blob_services_name: Literal["default"] = kwargs.pop("blob_services_name", "default") accept = _headers.pop("Accept", "application/json") @@ -155,7 +155,7 @@ class BlobServicesOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.StorageManagementClient`'s + :class:`~azure.mgmt.storage.v2024_01_01.StorageManagementClient`'s :attr:`blob_services` attribute. """ @@ -185,13 +185,13 @@ def list( :return: An iterator like instance of either BlobServiceProperties or the result of cls(response) :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2023_05_01.models.BlobServiceProperties] + ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2024_01_01.models.BlobServiceProperties] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.BlobServiceItems] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -278,12 +278,12 @@ def set_service_properties( :type account_name: str :param parameters: The properties of a storage account’s Blob service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.BlobServiceProperties + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.BlobServiceProperties :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: BlobServiceProperties or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.BlobServiceProperties + :rtype: ~azure.mgmt.storage.v2024_01_01.models.BlobServiceProperties :raises ~azure.core.exceptions.HttpResponseError: """ @@ -314,7 +314,7 @@ def set_service_properties( Default value is "application/json". :paramtype content_type: str :return: BlobServiceProperties or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.BlobServiceProperties + :rtype: ~azure.mgmt.storage.v2024_01_01.models.BlobServiceProperties :raises ~azure.core.exceptions.HttpResponseError: """ @@ -339,9 +339,9 @@ def set_service_properties( :param parameters: The properties of a storage account’s Blob service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. Is either a BlobServiceProperties type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.BlobServiceProperties or IO[bytes] + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.BlobServiceProperties or IO[bytes] :return: BlobServiceProperties or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.BlobServiceProperties + :rtype: ~azure.mgmt.storage.v2024_01_01.models.BlobServiceProperties :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -355,7 +355,7 @@ def set_service_properties( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) blob_services_name: Literal["default"] = kwargs.pop("blob_services_name", "default") content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.BlobServiceProperties] = kwargs.pop("cls", None) @@ -415,7 +415,7 @@ def get_service_properties( lower-case letters only. Required. :type account_name: str :return: BlobServiceProperties or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.BlobServiceProperties + :rtype: ~azure.mgmt.storage.v2024_01_01.models.BlobServiceProperties :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -429,7 +429,7 @@ def get_service_properties( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) blob_services_name: Literal["default"] = kwargs.pop("blob_services_name", "default") cls: ClsType[_models.BlobServiceProperties] = kwargs.pop("cls", None) diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_deleted_accounts_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_deleted_accounts_operations.py similarity index 96% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_deleted_accounts_operations.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_deleted_accounts_operations.py index 6a77d39db4c1..9330ce743d34 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_deleted_accounts_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_deleted_accounts_operations.py @@ -42,7 +42,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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -66,7 +66,7 @@ def build_get_request(deleted_account_name: str, location: 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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -99,7 +99,7 @@ class DeletedAccountsOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.StorageManagementClient`'s + :class:`~azure.mgmt.storage.v2024_01_01.StorageManagementClient`'s :attr:`deleted_accounts` attribute. """ @@ -118,13 +118,13 @@ def list(self, **kwargs: Any) -> Iterable["_models.DeletedAccount"]: """Lists deleted accounts under the subscription. :return: An iterator like instance of either DeletedAccount or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2023_05_01.models.DeletedAccount] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2024_01_01.models.DeletedAccount] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.DeletedAccountListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -197,7 +197,7 @@ def get(self, deleted_account_name: str, location: str, **kwargs: Any) -> _model :param location: The location of the deleted storage account. Required. :type location: str :return: DeletedAccount or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.DeletedAccount + :rtype: ~azure.mgmt.storage.v2024_01_01.models.DeletedAccount :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -211,7 +211,7 @@ def get(self, deleted_account_name: str, location: str, **kwargs: Any) -> _model _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.DeletedAccount] = kwargs.pop("cls", None) _request = build_get_request( diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_encryption_scopes_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_encryption_scopes_operations.py similarity index 96% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_encryption_scopes_operations.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_encryption_scopes_operations.py index 89b8a8e34d83..c5d7fd18bf85 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_encryption_scopes_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_encryption_scopes_operations.py @@ -45,7 +45,7 @@ def build_put_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", "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -86,7 +86,7 @@ def build_patch_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", "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -127,7 +127,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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -172,7 +172,7 @@ def build_list_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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -213,7 +213,7 @@ class EncryptionScopesOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.StorageManagementClient`'s + :class:`~azure.mgmt.storage.v2024_01_01.StorageManagementClient`'s :attr:`encryption_scopes` attribute. """ @@ -256,12 +256,12 @@ def put( :type encryption_scope_name: str :param encryption_scope: Encryption scope properties to be used for the create or update. Required. - :type encryption_scope: ~azure.mgmt.storage.v2023_05_01.models.EncryptionScope + :type encryption_scope: ~azure.mgmt.storage.v2024_01_01.models.EncryptionScope :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: EncryptionScope or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.EncryptionScope + :rtype: ~azure.mgmt.storage.v2024_01_01.models.EncryptionScope :raises ~azure.core.exceptions.HttpResponseError: """ @@ -299,7 +299,7 @@ def put( Default value is "application/json". :paramtype content_type: str :return: EncryptionScope or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.EncryptionScope + :rtype: ~azure.mgmt.storage.v2024_01_01.models.EncryptionScope :raises ~azure.core.exceptions.HttpResponseError: """ @@ -330,9 +330,9 @@ def put( :type encryption_scope_name: str :param encryption_scope: Encryption scope properties to be used for the create or update. Is either a EncryptionScope type or a IO[bytes] type. Required. - :type encryption_scope: ~azure.mgmt.storage.v2023_05_01.models.EncryptionScope or IO[bytes] + :type encryption_scope: ~azure.mgmt.storage.v2024_01_01.models.EncryptionScope or IO[bytes] :return: EncryptionScope or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.EncryptionScope + :rtype: ~azure.mgmt.storage.v2024_01_01.models.EncryptionScope :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -346,7 +346,7 @@ def put( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.EncryptionScope] = kwargs.pop("cls", None) @@ -418,12 +418,12 @@ def patch( followed by a letter or number. Required. :type encryption_scope_name: str :param encryption_scope: Encryption scope properties to be used for the update. Required. - :type encryption_scope: ~azure.mgmt.storage.v2023_05_01.models.EncryptionScope + :type encryption_scope: ~azure.mgmt.storage.v2024_01_01.models.EncryptionScope :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: EncryptionScope or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.EncryptionScope + :rtype: ~azure.mgmt.storage.v2024_01_01.models.EncryptionScope :raises ~azure.core.exceptions.HttpResponseError: """ @@ -459,7 +459,7 @@ def patch( Default value is "application/json". :paramtype content_type: str :return: EncryptionScope or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.EncryptionScope + :rtype: ~azure.mgmt.storage.v2024_01_01.models.EncryptionScope :raises ~azure.core.exceptions.HttpResponseError: """ @@ -489,9 +489,9 @@ def patch( :type encryption_scope_name: str :param encryption_scope: Encryption scope properties to be used for the update. Is either a EncryptionScope type or a IO[bytes] type. Required. - :type encryption_scope: ~azure.mgmt.storage.v2023_05_01.models.EncryptionScope or IO[bytes] + :type encryption_scope: ~azure.mgmt.storage.v2024_01_01.models.EncryptionScope or IO[bytes] :return: EncryptionScope or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.EncryptionScope + :rtype: ~azure.mgmt.storage.v2024_01_01.models.EncryptionScope :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -505,7 +505,7 @@ def patch( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.EncryptionScope] = kwargs.pop("cls", None) @@ -569,7 +569,7 @@ def get( followed by a letter or number. Required. :type encryption_scope_name: str :return: EncryptionScope or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.EncryptionScope + :rtype: ~azure.mgmt.storage.v2024_01_01.models.EncryptionScope :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -583,7 +583,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.EncryptionScope] = kwargs.pop("cls", None) _request = build_get_request( @@ -643,15 +643,15 @@ def list( :type filter: str :param include: Optional, when specified, will list encryption scopes with the specific state. Defaults to All. Known values are: "All", "Enabled", and "Disabled". Default value is None. - :type include: str or ~azure.mgmt.storage.v2023_05_01.models.ListEncryptionScopesInclude + :type include: str or ~azure.mgmt.storage.v2024_01_01.models.ListEncryptionScopesInclude :return: An iterator like instance of either EncryptionScope or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2023_05_01.models.EncryptionScope] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2024_01_01.models.EncryptionScope] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.EncryptionScopeListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_file_services_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_file_services_operations.py new file mode 100644 index 000000000000..9f1195b06e97 --- /dev/null +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_file_services_operations.py @@ -0,0 +1,669 @@ +# 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. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from io import IOBase +import sys +from typing import Any, Callable, Dict, IO, Iterable, Literal, Optional, TypeVar, Union, overload +import urllib.parse + +from azure.core.exceptions import ( + ClientAuthenticationError, + HttpResponseError, + ResourceExistsError, + ResourceNotFoundError, + ResourceNotModifiedError, + map_error, +) +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.rest import HttpRequest, HttpResponse +from azure.core.tracing.decorator import distributed_trace +from azure.core.utils import case_insensitive_dict +from azure.mgmt.core.exceptions import ARMErrorFormat + +from .. import models as _models +from ..._serialization import Serializer + +if sys.version_info >= (3, 9): + from collections.abc import MutableMapping +else: + from typing import MutableMapping # type: ignore +T = TypeVar("T") +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +_SERIALIZER = Serializer() +_SERIALIZER.client_side_validation = False + + +def build_list_request(resource_group_name: str, account_name: str, 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", "2024-01-01")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = kwargs.pop( + "template_url", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices", + ) # pylint: disable=line-too-long + path_format_arguments = { + "resourceGroupName": _SERIALIZER.url( + "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" + ), + "accountName": _SERIALIZER.url( + "account_name", account_name, "str", max_length=24, min_length=3, pattern=r"^[a-z0-9]+$" + ), + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_set_service_properties_request( + resource_group_name: str, account_name: str, 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", "2024-01-01")) + file_services_name: Literal["default"] = kwargs.pop("file_services_name", "default") + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = kwargs.pop( + "template_url", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/{FileServicesName}", + ) # pylint: disable=line-too-long + path_format_arguments = { + "resourceGroupName": _SERIALIZER.url( + "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" + ), + "accountName": _SERIALIZER.url( + "account_name", account_name, "str", max_length=24, min_length=3, pattern=r"^[a-z0-9]+$" + ), + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), + "FileServicesName": _SERIALIZER.url("file_services_name", file_services_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_get_service_properties_request( + resource_group_name: str, account_name: str, 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", "2024-01-01")) + file_services_name: Literal["default"] = kwargs.pop("file_services_name", "default") + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = kwargs.pop( + "template_url", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/{FileServicesName}", + ) # pylint: disable=line-too-long + path_format_arguments = { + "resourceGroupName": _SERIALIZER.url( + "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" + ), + "accountName": _SERIALIZER.url( + "account_name", account_name, "str", max_length=24, min_length=3, pattern=r"^[a-z0-9]+$" + ), + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), + "FileServicesName": _SERIALIZER.url("file_services_name", file_services_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_list_service_usages_request( + resource_group_name: str, + account_name: str, + subscription_id: str, + *, + maxpagesize: Optional[int] = None, + **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", "2024-01-01")) + file_services_name: Literal["default"] = kwargs.pop("file_services_name", "default") + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = kwargs.pop( + "template_url", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/{FileServicesName}/usages", + ) # pylint: disable=line-too-long + path_format_arguments = { + "resourceGroupName": _SERIALIZER.url( + "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" + ), + "accountName": _SERIALIZER.url( + "account_name", account_name, "str", max_length=24, min_length=3, pattern=r"^[a-z0-9]+$" + ), + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), + "FileServicesName": _SERIALIZER.url("file_services_name", file_services_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + if maxpagesize is not None: + _params["$maxpagesize"] = _SERIALIZER.query("maxpagesize", maxpagesize, "int") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_get_service_usage_request( + resource_group_name: str, account_name: str, 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", "2024-01-01")) + file_services_name: Literal["default"] = kwargs.pop("file_services_name", "default") + file_service_usages_name: Literal["default"] = kwargs.pop("file_service_usages_name", "default") + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = kwargs.pop( + "template_url", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/{FileServicesName}/usages/{fileServiceUsagesName}", + ) # pylint: disable=line-too-long + path_format_arguments = { + "resourceGroupName": _SERIALIZER.url( + "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$" + ), + "accountName": _SERIALIZER.url( + "account_name", account_name, "str", max_length=24, min_length=3, pattern=r"^[a-z0-9]+$" + ), + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1), + "FileServicesName": _SERIALIZER.url("file_services_name", file_services_name, "str"), + "fileServiceUsagesName": _SERIALIZER.url("file_service_usages_name", file_service_usages_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +class FileServicesOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.storage.v2024_01_01.StorageManagementClient`'s + :attr:`file_services` attribute. + """ + + models = _models + + def __init__(self, *args, **kwargs): + input_args = list(args) + self._client = input_args.pop(0) if input_args else kwargs.pop("client") + self._config = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") + self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") + + @distributed_trace + def list(self, resource_group_name: str, account_name: str, **kwargs: Any) -> _models.FileServiceItems: + """List all file services in storage accounts. + + :param resource_group_name: The name of the resource group within the user's subscription. The + name is case insensitive. Required. + :type resource_group_name: str + :param account_name: The name of the storage account within the specified resource group. + Storage account names must be between 3 and 24 characters in length and use numbers and + lower-case letters only. Required. + :type account_name: str + :return: FileServiceItems or the result of cls(response) + :rtype: ~azure.mgmt.storage.v2024_01_01.models.FileServiceItems + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) + cls: ClsType[_models.FileServiceItems] = kwargs.pop("cls", None) + + _request = build_list_request( + resource_group_name=resource_group_name, + account_name=account_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = self._deserialize("FileServiceItems", pipeline_response.http_response) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def set_service_properties( + self, + resource_group_name: str, + account_name: str, + parameters: _models.FileServiceProperties, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.FileServiceProperties: + """Sets the properties of file services in storage accounts, including CORS (Cross-Origin Resource + Sharing) rules. + + :param resource_group_name: The name of the resource group within the user's subscription. The + name is case insensitive. Required. + :type resource_group_name: str + :param account_name: The name of the storage account within the specified resource group. + Storage account names must be between 3 and 24 characters in length and use numbers and + lower-case letters only. Required. + :type account_name: str + :param parameters: The properties of file services in storage accounts, including CORS + (Cross-Origin Resource Sharing) rules. Required. + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.FileServiceProperties + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: FileServiceProperties or the result of cls(response) + :rtype: ~azure.mgmt.storage.v2024_01_01.models.FileServiceProperties + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def set_service_properties( + self, + resource_group_name: str, + account_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.FileServiceProperties: + """Sets the properties of file services in storage accounts, including CORS (Cross-Origin Resource + Sharing) rules. + + :param resource_group_name: The name of the resource group within the user's subscription. The + name is case insensitive. Required. + :type resource_group_name: str + :param account_name: The name of the storage account within the specified resource group. + Storage account names must be between 3 and 24 characters in length and use numbers and + lower-case letters only. Required. + :type account_name: str + :param parameters: The properties of file services in storage accounts, including CORS + (Cross-Origin Resource Sharing) rules. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: FileServiceProperties or the result of cls(response) + :rtype: ~azure.mgmt.storage.v2024_01_01.models.FileServiceProperties + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def set_service_properties( + self, + resource_group_name: str, + account_name: str, + parameters: Union[_models.FileServiceProperties, IO[bytes]], + **kwargs: Any + ) -> _models.FileServiceProperties: + """Sets the properties of file services in storage accounts, including CORS (Cross-Origin Resource + Sharing) rules. + + :param resource_group_name: The name of the resource group within the user's subscription. The + name is case insensitive. Required. + :type resource_group_name: str + :param account_name: The name of the storage account within the specified resource group. + Storage account names must be between 3 and 24 characters in length and use numbers and + lower-case letters only. Required. + :type account_name: str + :param parameters: The properties of file services in storage accounts, including CORS + (Cross-Origin Resource Sharing) rules. Is either a FileServiceProperties type or a IO[bytes] + type. Required. + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.FileServiceProperties or IO[bytes] + :return: FileServiceProperties or the result of cls(response) + :rtype: ~azure.mgmt.storage.v2024_01_01.models.FileServiceProperties + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _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", self._api_version or "2024-01-01")) + file_services_name: Literal["default"] = kwargs.pop("file_services_name", "default") + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.FileServiceProperties] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _json = None + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _json = self._serialize.body(parameters, "FileServiceProperties") + + _request = build_set_service_properties_request( + resource_group_name=resource_group_name, + account_name=account_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + file_services_name=file_services_name, + content_type=content_type, + json=_json, + content=_content, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = self._deserialize("FileServiceProperties", pipeline_response.http_response) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def get_service_properties( + self, resource_group_name: str, account_name: str, **kwargs: Any + ) -> _models.FileServiceProperties: + """Gets the properties of file services in storage accounts, including CORS (Cross-Origin Resource + Sharing) rules. + + :param resource_group_name: The name of the resource group within the user's subscription. The + name is case insensitive. Required. + :type resource_group_name: str + :param account_name: The name of the storage account within the specified resource group. + Storage account names must be between 3 and 24 characters in length and use numbers and + lower-case letters only. Required. + :type account_name: str + :return: FileServiceProperties or the result of cls(response) + :rtype: ~azure.mgmt.storage.v2024_01_01.models.FileServiceProperties + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) + file_services_name: Literal["default"] = kwargs.pop("file_services_name", "default") + cls: ClsType[_models.FileServiceProperties] = kwargs.pop("cls", None) + + _request = build_get_service_properties_request( + resource_group_name=resource_group_name, + account_name=account_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + file_services_name=file_services_name, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = self._deserialize("FileServiceProperties", pipeline_response.http_response) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def list_service_usages( + self, resource_group_name: str, account_name: str, maxpagesize: Optional[int] = None, **kwargs: Any + ) -> Iterable["_models.FileServiceUsage"]: + """Gets the usages of file service in storage account. + + :param resource_group_name: The name of the resource group within the user's subscription. The + name is case insensitive. Required. + :type resource_group_name: str + :param account_name: The name of the storage account within the specified resource group. + Storage account names must be between 3 and 24 characters in length and use numbers and + lower-case letters only. Required. + :type account_name: str + :param maxpagesize: Optional, specifies the maximum number of file service usages to be + included in the list response. Default value is None. + :type maxpagesize: int + :return: An iterator like instance of either FileServiceUsage or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2024_01_01.models.FileServiceUsage] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) + file_services_name: Literal["default"] = kwargs.pop("file_services_name", "default") + cls: ClsType[_models.FileServiceUsages] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_list_service_usages_request( + resource_group_name=resource_group_name, + account_name=account_name, + subscription_id=self._config.subscription_id, + maxpagesize=maxpagesize, + api_version=api_version, + file_services_name=file_services_name, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request + + def extract_data(pipeline_response): + deserialized = self._deserialize("FileServiceUsages", pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @distributed_trace + def get_service_usage(self, resource_group_name: str, account_name: str, **kwargs: Any) -> _models.FileServiceUsage: + """Gets the usage of file service in storage account including account limits, file share limits + and constants used in recommendations and bursting formula. + + :param resource_group_name: The name of the resource group within the user's subscription. The + name is case insensitive. Required. + :type resource_group_name: str + :param account_name: The name of the storage account within the specified resource group. + Storage account names must be between 3 and 24 characters in length and use numbers and + lower-case letters only. Required. + :type account_name: str + :return: FileServiceUsage or the result of cls(response) + :rtype: ~azure.mgmt.storage.v2024_01_01.models.FileServiceUsage + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) + file_services_name: Literal["default"] = kwargs.pop("file_services_name", "default") + file_service_usages_name: Literal["default"] = kwargs.pop("file_service_usages_name", "default") + cls: ClsType[_models.FileServiceUsage] = kwargs.pop("cls", None) + + _request = build_get_service_usage_request( + resource_group_name=resource_group_name, + account_name=account_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + file_services_name=file_services_name, + file_service_usages_name=file_service_usages_name, + headers=_headers, + params=_params, + ) + _request.url = self._client.format_url(_request.url) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = self._deserialize("FileServiceUsage", pipeline_response.http_response) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_file_shares_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_file_shares_operations.py similarity index 96% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_file_shares_operations.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_file_shares_operations.py index 6ad1af90d0cc..e06efff4c626 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_file_shares_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_file_shares_operations.py @@ -53,7 +53,7 @@ def build_list_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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -100,7 +100,7 @@ def build_create_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", "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -141,7 +141,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", "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -187,7 +187,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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -234,7 +234,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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -274,7 +274,7 @@ def build_restore_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", "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -319,7 +319,7 @@ def build_lease_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", "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -360,7 +360,7 @@ class FileSharesOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.StorageManagementClient`'s + :class:`~azure.mgmt.storage.v2024_01_01.StorageManagementClient`'s :attr:`file_shares` attribute. """ @@ -404,13 +404,13 @@ def list( None. :type expand: str :return: An iterator like instance of either FileShareItem or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2023_05_01.models.FileShareItem] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2024_01_01.models.FileShareItem] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.FileShareItems] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -507,7 +507,7 @@ def create( or number. Required. :type share_name: str :param file_share: Properties of the file share to create. Required. - :type file_share: ~azure.mgmt.storage.v2023_05_01.models.FileShare + :type file_share: ~azure.mgmt.storage.v2024_01_01.models.FileShare :param expand: Optional, used to expand the properties within share's properties. Valid values are: snapshots. Should be passed as a string with delimiter ','. Default value is None. :type expand: str @@ -515,7 +515,7 @@ def create( Default value is "application/json". :paramtype content_type: str :return: FileShare or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.FileShare + :rtype: ~azure.mgmt.storage.v2024_01_01.models.FileShare :raises ~azure.core.exceptions.HttpResponseError: """ @@ -556,7 +556,7 @@ def create( Default value is "application/json". :paramtype content_type: str :return: FileShare or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.FileShare + :rtype: ~azure.mgmt.storage.v2024_01_01.models.FileShare :raises ~azure.core.exceptions.HttpResponseError: """ @@ -588,12 +588,12 @@ def create( :type share_name: str :param file_share: Properties of the file share to create. Is either a FileShare type or a IO[bytes] type. Required. - :type file_share: ~azure.mgmt.storage.v2023_05_01.models.FileShare or IO[bytes] + :type file_share: ~azure.mgmt.storage.v2024_01_01.models.FileShare or IO[bytes] :param expand: Optional, used to expand the properties within share's properties. Valid values are: snapshots. Should be passed as a string with delimiter ','. Default value is None. :type expand: str :return: FileShare or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.FileShare + :rtype: ~azure.mgmt.storage.v2024_01_01.models.FileShare :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -607,7 +607,7 @@ def create( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.FileShare] = kwargs.pop("cls", None) @@ -679,12 +679,12 @@ def update( or number. Required. :type share_name: str :param file_share: Properties to update for the file share. Required. - :type file_share: ~azure.mgmt.storage.v2023_05_01.models.FileShare + :type file_share: ~azure.mgmt.storage.v2024_01_01.models.FileShare :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: FileShare or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.FileShare + :rtype: ~azure.mgmt.storage.v2024_01_01.models.FileShare :raises ~azure.core.exceptions.HttpResponseError: """ @@ -720,7 +720,7 @@ def update( Default value is "application/json". :paramtype content_type: str :return: FileShare or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.FileShare + :rtype: ~azure.mgmt.storage.v2024_01_01.models.FileShare :raises ~azure.core.exceptions.HttpResponseError: """ @@ -750,9 +750,9 @@ def update( :type share_name: str :param file_share: Properties to update for the file share. Is either a FileShare type or a IO[bytes] type. Required. - :type file_share: ~azure.mgmt.storage.v2023_05_01.models.FileShare or IO[bytes] + :type file_share: ~azure.mgmt.storage.v2024_01_01.models.FileShare or IO[bytes] :return: FileShare or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.FileShare + :rtype: ~azure.mgmt.storage.v2024_01_01.models.FileShare :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -766,7 +766,7 @@ def update( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.FileShare] = kwargs.pop("cls", None) @@ -841,7 +841,7 @@ def get( None. :type x_ms_snapshot: str :return: FileShare or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.FileShare + :rtype: ~azure.mgmt.storage.v2024_01_01.models.FileShare :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -855,7 +855,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.FileShare] = kwargs.pop("cls", None) _request = build_get_request( @@ -938,7 +938,7 @@ def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_delete_request( @@ -994,7 +994,7 @@ def restore( or number. Required. :type share_name: str :param deleted_share: Required. - :type deleted_share: ~azure.mgmt.storage.v2023_05_01.models.DeletedShare + :type deleted_share: ~azure.mgmt.storage.v2024_01_01.models.DeletedShare :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -1062,7 +1062,7 @@ def restore( # pylint: disable=inconsistent-return-statements or number. Required. :type share_name: str :param deleted_share: Is either a DeletedShare type or a IO[bytes] type. Required. - :type deleted_share: ~azure.mgmt.storage.v2023_05_01.models.DeletedShare or IO[bytes] + :type deleted_share: ~azure.mgmt.storage.v2024_01_01.models.DeletedShare or IO[bytes] :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -1078,7 +1078,7 @@ def restore( # pylint: disable=inconsistent-return-statements _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) @@ -1149,12 +1149,12 @@ def lease( None. :type x_ms_snapshot: str :param parameters: Lease Share request body. Default value is None. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.LeaseShareRequest + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.LeaseShareRequest :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: LeaseShareResponse or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.LeaseShareResponse + :rtype: ~azure.mgmt.storage.v2024_01_01.models.LeaseShareResponse :raises ~azure.core.exceptions.HttpResponseError: """ @@ -1194,7 +1194,7 @@ def lease( Default value is "application/json". :paramtype content_type: str :return: LeaseShareResponse or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.LeaseShareResponse + :rtype: ~azure.mgmt.storage.v2024_01_01.models.LeaseShareResponse :raises ~azure.core.exceptions.HttpResponseError: """ @@ -1228,9 +1228,9 @@ def lease( :type x_ms_snapshot: str :param parameters: Lease Share request body. Is either a LeaseShareRequest type or a IO[bytes] type. Default value is None. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.LeaseShareRequest or IO[bytes] + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.LeaseShareRequest or IO[bytes] :return: LeaseShareResponse or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.LeaseShareResponse + :rtype: ~azure.mgmt.storage.v2024_01_01.models.LeaseShareResponse :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -1244,7 +1244,7 @@ def lease( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.LeaseShareResponse] = kwargs.pop("cls", None) diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_local_users_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_local_users_operations.py similarity index 96% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_local_users_operations.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_local_users_operations.py index dc804b0c9bb3..88a9928a5df3 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_local_users_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_local_users_operations.py @@ -52,7 +52,7 @@ def build_list_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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -93,7 +93,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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -129,7 +129,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", "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -168,7 +168,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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -204,7 +204,7 @@ def build_list_keys_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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -240,7 +240,7 @@ def build_regenerate_password_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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -276,7 +276,7 @@ class LocalUsersOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.StorageManagementClient`'s + :class:`~azure.mgmt.storage.v2024_01_01.StorageManagementClient`'s :attr:`local_users` attribute. """ @@ -317,15 +317,15 @@ def list( :type filter: str :param include: Optional, when specified, will list local users enabled for the specific protocol. Lists all users by default. "nfsv3" Default value is None. - :type include: str or ~azure.mgmt.storage.v2023_05_01.models.ListLocalUserIncludeParam + :type include: str or ~azure.mgmt.storage.v2024_01_01.models.ListLocalUserIncludeParam :return: An iterator like instance of either LocalUser or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2023_05_01.models.LocalUser] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2024_01_01.models.LocalUser] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.LocalUsers] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -409,7 +409,7 @@ def get(self, resource_group_name: str, account_name: str, username: str, **kwar numbers only. It must be unique only within the storage account. Required. :type username: str :return: LocalUser or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.LocalUser + :rtype: ~azure.mgmt.storage.v2024_01_01.models.LocalUser :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -423,7 +423,7 @@ def get(self, resource_group_name: str, account_name: str, username: str, **kwar _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.LocalUser] = kwargs.pop("cls", None) _request = build_get_request( @@ -481,12 +481,12 @@ def create_or_update( numbers only. It must be unique only within the storage account. Required. :type username: str :param properties: The local user associated with a storage account. Required. - :type properties: ~azure.mgmt.storage.v2023_05_01.models.LocalUser + :type properties: ~azure.mgmt.storage.v2024_01_01.models.LocalUser :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: LocalUser or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.LocalUser + :rtype: ~azure.mgmt.storage.v2024_01_01.models.LocalUser :raises ~azure.core.exceptions.HttpResponseError: """ @@ -520,7 +520,7 @@ def create_or_update( Default value is "application/json". :paramtype content_type: str :return: LocalUser or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.LocalUser + :rtype: ~azure.mgmt.storage.v2024_01_01.models.LocalUser :raises ~azure.core.exceptions.HttpResponseError: """ @@ -548,9 +548,9 @@ def create_or_update( :type username: str :param properties: The local user associated with a storage account. Is either a LocalUser type or a IO[bytes] type. Required. - :type properties: ~azure.mgmt.storage.v2023_05_01.models.LocalUser or IO[bytes] + :type properties: ~azure.mgmt.storage.v2024_01_01.models.LocalUser or IO[bytes] :return: LocalUser or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.LocalUser + :rtype: ~azure.mgmt.storage.v2024_01_01.models.LocalUser :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -564,7 +564,7 @@ def create_or_update( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.LocalUser] = kwargs.pop("cls", None) @@ -640,7 +640,7 @@ def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_delete_request( @@ -686,7 +686,7 @@ def list_keys( numbers only. It must be unique only within the storage account. Required. :type username: str :return: LocalUserKeys or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.LocalUserKeys + :rtype: ~azure.mgmt.storage.v2024_01_01.models.LocalUserKeys :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -700,7 +700,7 @@ def list_keys( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.LocalUserKeys] = kwargs.pop("cls", None) _request = build_list_keys_request( @@ -750,7 +750,7 @@ def regenerate_password( numbers only. It must be unique only within the storage account. Required. :type username: str :return: LocalUserRegeneratePasswordResult or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.LocalUserRegeneratePasswordResult + :rtype: ~azure.mgmt.storage.v2024_01_01.models.LocalUserRegeneratePasswordResult :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -764,7 +764,7 @@ def regenerate_password( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.LocalUserRegeneratePasswordResult] = kwargs.pop("cls", None) _request = build_regenerate_password_request( diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_management_policies_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_management_policies_operations.py similarity index 95% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_management_policies_operations.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_management_policies_operations.py index 742075be5763..0e1f50568816 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_management_policies_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_management_policies_operations.py @@ -47,7 +47,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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -87,7 +87,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", "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -129,7 +129,7 @@ def build_delete_request( ) -> HttpRequest: _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", "2024-01-01")) # Construct URL _url = kwargs.pop( "template_url", @@ -160,7 +160,7 @@ class ManagementPoliciesOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.StorageManagementClient`'s + :class:`~azure.mgmt.storage.v2024_01_01.StorageManagementClient`'s :attr:`management_policies` attribute. """ @@ -194,9 +194,9 @@ def get( :param management_policy_name: The name of the Storage Account Management Policy. It should always be 'default'. "default" Required. :type management_policy_name: str or - ~azure.mgmt.storage.v2023_05_01.models.ManagementPolicyName + ~azure.mgmt.storage.v2024_01_01.models.ManagementPolicyName :return: ManagementPolicy or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ManagementPolicy + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ManagementPolicy :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -210,7 +210,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.ManagementPolicy] = kwargs.pop("cls", None) _request = build_get_request( @@ -265,14 +265,14 @@ def create_or_update( :param management_policy_name: The name of the Storage Account Management Policy. It should always be 'default'. "default" Required. :type management_policy_name: str or - ~azure.mgmt.storage.v2023_05_01.models.ManagementPolicyName + ~azure.mgmt.storage.v2024_01_01.models.ManagementPolicyName :param properties: The ManagementPolicy set to a storage account. Required. - :type properties: ~azure.mgmt.storage.v2023_05_01.models.ManagementPolicy + :type properties: ~azure.mgmt.storage.v2024_01_01.models.ManagementPolicy :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: ManagementPolicy or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ManagementPolicy + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ManagementPolicy :raises ~azure.core.exceptions.HttpResponseError: """ @@ -299,14 +299,14 @@ def create_or_update( :param management_policy_name: The name of the Storage Account Management Policy. It should always be 'default'. "default" Required. :type management_policy_name: str or - ~azure.mgmt.storage.v2023_05_01.models.ManagementPolicyName + ~azure.mgmt.storage.v2024_01_01.models.ManagementPolicyName :param properties: The ManagementPolicy set to a storage account. Required. :type properties: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str :return: ManagementPolicy or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ManagementPolicy + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ManagementPolicy :raises ~azure.core.exceptions.HttpResponseError: """ @@ -331,12 +331,12 @@ def create_or_update( :param management_policy_name: The name of the Storage Account Management Policy. It should always be 'default'. "default" Required. :type management_policy_name: str or - ~azure.mgmt.storage.v2023_05_01.models.ManagementPolicyName + ~azure.mgmt.storage.v2024_01_01.models.ManagementPolicyName :param properties: The ManagementPolicy set to a storage account. Is either a ManagementPolicy type or a IO[bytes] type. Required. - :type properties: ~azure.mgmt.storage.v2023_05_01.models.ManagementPolicy or IO[bytes] + :type properties: ~azure.mgmt.storage.v2024_01_01.models.ManagementPolicy or IO[bytes] :return: ManagementPolicy or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ManagementPolicy + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ManagementPolicy :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -350,7 +350,7 @@ def create_or_update( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ManagementPolicy] = kwargs.pop("cls", None) @@ -414,7 +414,7 @@ def delete( # pylint: disable=inconsistent-return-statements :param management_policy_name: The name of the Storage Account Management Policy. It should always be 'default'. "default" Required. :type management_policy_name: str or - ~azure.mgmt.storage.v2023_05_01.models.ManagementPolicyName + ~azure.mgmt.storage.v2024_01_01.models.ManagementPolicyName :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -430,7 +430,7 @@ def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_delete_request( diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_network_security_perimeter_configurations_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_network_security_perimeter_configurations_operations.py similarity index 97% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_network_security_perimeter_configurations_operations.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_network_security_perimeter_configurations_operations.py index ff7ae649449d..12e5cf920cc4 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_network_security_perimeter_configurations_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_network_security_perimeter_configurations_operations.py @@ -46,7 +46,7 @@ def build_list_request(resource_group_name: str, account_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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -85,7 +85,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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -130,7 +130,7 @@ def build_reconcile_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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -171,7 +171,7 @@ class NetworkSecurityPerimeterConfigurationsOperations: # pylint: disable=name- **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.StorageManagementClient`'s + :class:`~azure.mgmt.storage.v2024_01_01.StorageManagementClient`'s :attr:`network_security_perimeter_configurations` attribute. """ @@ -201,13 +201,13 @@ def list( :return: An iterator like instance of either NetworkSecurityPerimeterConfiguration or the result of cls(response) :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2023_05_01.models.NetworkSecurityPerimeterConfiguration] + ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2024_01_01.models.NetworkSecurityPerimeterConfiguration] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.NetworkSecurityPerimeterConfigurationList] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -294,7 +294,7 @@ def get( configuration. Required. :type network_security_perimeter_configuration_name: str :return: NetworkSecurityPerimeterConfiguration or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.NetworkSecurityPerimeterConfiguration + :rtype: ~azure.mgmt.storage.v2024_01_01.models.NetworkSecurityPerimeterConfiguration :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -308,7 +308,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.NetworkSecurityPerimeterConfiguration] = kwargs.pop("cls", None) _request = build_get_request( @@ -359,7 +359,7 @@ def _reconcile_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_reconcile_request( @@ -427,7 +427,7 @@ def begin_reconcile( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_object_replication_policies_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_object_replication_policies_operations.py similarity index 96% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_object_replication_policies_operations.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_object_replication_policies_operations.py index 2a7352c55cdd..17f336c4d82e 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_object_replication_policies_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_object_replication_policies_operations.py @@ -43,7 +43,7 @@ def build_list_request(resource_group_name: str, account_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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -78,7 +78,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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -116,7 +116,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", "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -157,7 +157,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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -195,7 +195,7 @@ class ObjectReplicationPoliciesOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.StorageManagementClient`'s + :class:`~azure.mgmt.storage.v2024_01_01.StorageManagementClient`'s :attr:`object_replication_policies` attribute. """ @@ -225,13 +225,13 @@ def list( :return: An iterator like instance of either ObjectReplicationPolicy or the result of cls(response) :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2023_05_01.models.ObjectReplicationPolicy] + ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2024_01_01.models.ObjectReplicationPolicy] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.ObjectReplicationPolicies] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -316,7 +316,7 @@ def get( destination account. The policy is downloaded as a JSON file. Required. :type object_replication_policy_id: str :return: ObjectReplicationPolicy or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ObjectReplicationPolicy + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ObjectReplicationPolicy :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -330,7 +330,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.ObjectReplicationPolicy] = kwargs.pop("cls", None) _request = build_get_request( @@ -390,12 +390,12 @@ def create_or_update( :type object_replication_policy_id: str :param properties: The object replication policy set to a storage account. A unique policy ID will be created if absent. Required. - :type properties: ~azure.mgmt.storage.v2023_05_01.models.ObjectReplicationPolicy + :type properties: ~azure.mgmt.storage.v2024_01_01.models.ObjectReplicationPolicy :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: ObjectReplicationPolicy or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ObjectReplicationPolicy + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ObjectReplicationPolicy :raises ~azure.core.exceptions.HttpResponseError: """ @@ -431,7 +431,7 @@ def create_or_update( Default value is "application/json". :paramtype content_type: str :return: ObjectReplicationPolicy or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ObjectReplicationPolicy + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ObjectReplicationPolicy :raises ~azure.core.exceptions.HttpResponseError: """ @@ -461,9 +461,9 @@ def create_or_update( :param properties: The object replication policy set to a storage account. A unique policy ID will be created if absent. Is either a ObjectReplicationPolicy type or a IO[bytes] type. Required. - :type properties: ~azure.mgmt.storage.v2023_05_01.models.ObjectReplicationPolicy or IO[bytes] + :type properties: ~azure.mgmt.storage.v2024_01_01.models.ObjectReplicationPolicy or IO[bytes] :return: ObjectReplicationPolicy or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ObjectReplicationPolicy + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ObjectReplicationPolicy :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -477,7 +477,7 @@ def create_or_update( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ObjectReplicationPolicy] = kwargs.pop("cls", None) @@ -555,7 +555,7 @@ def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_delete_request( diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_operations.py similarity index 97% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_operations.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_operations.py index 55024e1890bf..bd4a2c8cb9dd 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_operations.py @@ -42,7 +42,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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -63,7 +63,7 @@ class Operations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.StorageManagementClient`'s + :class:`~azure.mgmt.storage.v2024_01_01.StorageManagementClient`'s :attr:`operations` attribute. """ @@ -82,13 +82,13 @@ def list(self, **kwargs: Any) -> Iterable["_models.Operation"]: """Lists all of the available Storage Rest API operations. :return: An iterator like instance of either Operation or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2023_05_01.models.Operation] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2024_01_01.models.Operation] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.OperationListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_patch.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_patch.py similarity index 100% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_patch.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_patch.py diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_private_endpoint_connections_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_private_endpoint_connections_operations.py similarity index 96% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_private_endpoint_connections_operations.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_private_endpoint_connections_operations.py index 732e198e3545..ec96250524c8 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_private_endpoint_connections_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_private_endpoint_connections_operations.py @@ -43,7 +43,7 @@ def build_list_request(resource_group_name: str, account_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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -82,7 +82,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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -124,7 +124,7 @@ def build_put_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", "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -169,7 +169,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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -207,7 +207,7 @@ class PrivateEndpointConnectionsOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.StorageManagementClient`'s + :class:`~azure.mgmt.storage.v2024_01_01.StorageManagementClient`'s :attr:`private_endpoint_connections` attribute. """ @@ -237,13 +237,13 @@ def list( :return: An iterator like instance of either PrivateEndpointConnection or the result of cls(response) :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2023_05_01.models.PrivateEndpointConnection] + ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2024_01_01.models.PrivateEndpointConnection] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.PrivateEndpointConnectionListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -325,7 +325,7 @@ def get( with the Azure resource. Required. :type private_endpoint_connection_name: str :return: PrivateEndpointConnection or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.PrivateEndpointConnection + :rtype: ~azure.mgmt.storage.v2024_01_01.models.PrivateEndpointConnection :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -339,7 +339,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.PrivateEndpointConnection] = kwargs.pop("cls", None) _request = build_get_request( @@ -396,12 +396,12 @@ def put( with the Azure resource. Required. :type private_endpoint_connection_name: str :param properties: The private endpoint connection properties. Required. - :type properties: ~azure.mgmt.storage.v2023_05_01.models.PrivateEndpointConnection + :type properties: ~azure.mgmt.storage.v2024_01_01.models.PrivateEndpointConnection :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: PrivateEndpointConnection or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.PrivateEndpointConnection + :rtype: ~azure.mgmt.storage.v2024_01_01.models.PrivateEndpointConnection :raises ~azure.core.exceptions.HttpResponseError: """ @@ -434,7 +434,7 @@ def put( Default value is "application/json". :paramtype content_type: str :return: PrivateEndpointConnection or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.PrivateEndpointConnection + :rtype: ~azure.mgmt.storage.v2024_01_01.models.PrivateEndpointConnection :raises ~azure.core.exceptions.HttpResponseError: """ @@ -461,9 +461,9 @@ def put( :type private_endpoint_connection_name: str :param properties: The private endpoint connection properties. Is either a PrivateEndpointConnection type or a IO[bytes] type. Required. - :type properties: ~azure.mgmt.storage.v2023_05_01.models.PrivateEndpointConnection or IO[bytes] + :type properties: ~azure.mgmt.storage.v2024_01_01.models.PrivateEndpointConnection or IO[bytes] :return: PrivateEndpointConnection or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.PrivateEndpointConnection + :rtype: ~azure.mgmt.storage.v2024_01_01.models.PrivateEndpointConnection :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -477,7 +477,7 @@ def put( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.PrivateEndpointConnection] = kwargs.pop("cls", None) @@ -553,7 +553,7 @@ def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_delete_request( diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_private_link_resources_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_private_link_resources_operations.py similarity index 96% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_private_link_resources_operations.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_private_link_resources_operations.py index d43255bee032..c548968b3d22 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_private_link_resources_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_private_link_resources_operations.py @@ -42,7 +42,7 @@ def build_list_by_storage_account_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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -77,7 +77,7 @@ class PrivateLinkResourcesOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.StorageManagementClient`'s + :class:`~azure.mgmt.storage.v2024_01_01.StorageManagementClient`'s :attr:`private_link_resources` attribute. """ @@ -105,7 +105,7 @@ def list_by_storage_account( lower-case letters only. Required. :type account_name: str :return: PrivateLinkResourceListResult or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.PrivateLinkResourceListResult + :rtype: ~azure.mgmt.storage.v2024_01_01.models.PrivateLinkResourceListResult :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -119,7 +119,7 @@ def list_by_storage_account( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.PrivateLinkResourceListResult] = kwargs.pop("cls", None) _request = build_list_by_storage_account_request( diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_queue_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_queue_operations.py similarity index 96% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_queue_operations.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_queue_operations.py index cfbb67045e3c..f32923ab4d9d 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_queue_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_queue_operations.py @@ -45,7 +45,7 @@ def build_create_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", "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -91,7 +91,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", "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -137,7 +137,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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -180,7 +180,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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -229,7 +229,7 @@ def build_list_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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -268,7 +268,7 @@ class QueueOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.StorageManagementClient`'s + :class:`~azure.mgmt.storage.v2024_01_01.StorageManagementClient`'s :attr:`queue` attribute. """ @@ -308,12 +308,12 @@ def create( dash(-) characters. Required. :type queue_name: str :param queue: Queue properties and metadata to be created with. Required. - :type queue: ~azure.mgmt.storage.v2023_05_01.models.StorageQueue + :type queue: ~azure.mgmt.storage.v2024_01_01.models.StorageQueue :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: StorageQueue or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.StorageQueue + :rtype: ~azure.mgmt.storage.v2024_01_01.models.StorageQueue :raises ~azure.core.exceptions.HttpResponseError: """ @@ -348,7 +348,7 @@ def create( Default value is "application/json". :paramtype content_type: str :return: StorageQueue or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.StorageQueue + :rtype: ~azure.mgmt.storage.v2024_01_01.models.StorageQueue :raises ~azure.core.exceptions.HttpResponseError: """ @@ -377,9 +377,9 @@ def create( :type queue_name: str :param queue: Queue properties and metadata to be created with. Is either a StorageQueue type or a IO[bytes] type. Required. - :type queue: ~azure.mgmt.storage.v2023_05_01.models.StorageQueue or IO[bytes] + :type queue: ~azure.mgmt.storage.v2024_01_01.models.StorageQueue or IO[bytes] :return: StorageQueue or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.StorageQueue + :rtype: ~azure.mgmt.storage.v2024_01_01.models.StorageQueue :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -393,7 +393,7 @@ def create( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.StorageQueue] = kwargs.pop("cls", None) @@ -463,12 +463,12 @@ def update( dash(-) characters. Required. :type queue_name: str :param queue: Queue properties and metadata to be created with. Required. - :type queue: ~azure.mgmt.storage.v2023_05_01.models.StorageQueue + :type queue: ~azure.mgmt.storage.v2024_01_01.models.StorageQueue :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: StorageQueue or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.StorageQueue + :rtype: ~azure.mgmt.storage.v2024_01_01.models.StorageQueue :raises ~azure.core.exceptions.HttpResponseError: """ @@ -503,7 +503,7 @@ def update( Default value is "application/json". :paramtype content_type: str :return: StorageQueue or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.StorageQueue + :rtype: ~azure.mgmt.storage.v2024_01_01.models.StorageQueue :raises ~azure.core.exceptions.HttpResponseError: """ @@ -532,9 +532,9 @@ def update( :type queue_name: str :param queue: Queue properties and metadata to be created with. Is either a StorageQueue type or a IO[bytes] type. Required. - :type queue: ~azure.mgmt.storage.v2023_05_01.models.StorageQueue or IO[bytes] + :type queue: ~azure.mgmt.storage.v2024_01_01.models.StorageQueue or IO[bytes] :return: StorageQueue or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.StorageQueue + :rtype: ~azure.mgmt.storage.v2024_01_01.models.StorageQueue :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -548,7 +548,7 @@ def update( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.StorageQueue] = kwargs.pop("cls", None) @@ -609,7 +609,7 @@ def get(self, resource_group_name: str, account_name: str, queue_name: str, **kw dash(-) characters. Required. :type queue_name: str :return: StorageQueue or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.StorageQueue + :rtype: ~azure.mgmt.storage.v2024_01_01.models.StorageQueue :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -623,7 +623,7 @@ def get(self, resource_group_name: str, account_name: str, queue_name: str, **kw _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.StorageQueue] = kwargs.pop("cls", None) _request = build_get_request( @@ -688,7 +688,7 @@ def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_delete_request( @@ -741,13 +741,13 @@ def list( filter will be listed. Default value is None. :type filter: str :return: An iterator like instance of either ListQueue or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2023_05_01.models.ListQueue] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2024_01_01.models.ListQueue] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.ListQueueResource] = kwargs.pop("cls", None) error_map: MutableMapping = { diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_queue_services_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_queue_services_operations.py similarity index 96% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_queue_services_operations.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_queue_services_operations.py index a68ce95f429b..aa64d0bfdc14 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_queue_services_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_queue_services_operations.py @@ -41,7 +41,7 @@ def build_list_request(resource_group_name: str, account_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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -76,7 +76,7 @@ def build_set_service_properties_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", "2024-01-01")) queue_service_name: Literal["default"] = kwargs.pop("queue_service_name", "default") content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -116,7 +116,7 @@ def build_get_service_properties_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", "2024-01-01")) queue_service_name: Literal["default"] = kwargs.pop("queue_service_name", "default") accept = _headers.pop("Accept", "application/json") @@ -153,7 +153,7 @@ class QueueServicesOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.StorageManagementClient`'s + :class:`~azure.mgmt.storage.v2024_01_01.StorageManagementClient`'s :attr:`queue_services` attribute. """ @@ -179,7 +179,7 @@ def list(self, resource_group_name: str, account_name: str, **kwargs: Any) -> _m lower-case letters only. Required. :type account_name: str :return: ListQueueServices or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ListQueueServices + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ListQueueServices :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -193,7 +193,7 @@ def list(self, resource_group_name: str, account_name: str, **kwargs: Any) -> _m _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.ListQueueServices] = kwargs.pop("cls", None) _request = build_list_request( @@ -246,12 +246,12 @@ def set_service_properties( :type account_name: str :param parameters: The properties of a storage account’s Queue service, only properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules can be specified. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.QueueServiceProperties + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.QueueServiceProperties :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: QueueServiceProperties or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.QueueServiceProperties + :rtype: ~azure.mgmt.storage.v2024_01_01.models.QueueServiceProperties :raises ~azure.core.exceptions.HttpResponseError: """ @@ -282,7 +282,7 @@ def set_service_properties( Default value is "application/json". :paramtype content_type: str :return: QueueServiceProperties or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.QueueServiceProperties + :rtype: ~azure.mgmt.storage.v2024_01_01.models.QueueServiceProperties :raises ~azure.core.exceptions.HttpResponseError: """ @@ -307,9 +307,9 @@ def set_service_properties( :param parameters: The properties of a storage account’s Queue service, only properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules can be specified. Is either a QueueServiceProperties type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.QueueServiceProperties or IO[bytes] + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.QueueServiceProperties or IO[bytes] :return: QueueServiceProperties or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.QueueServiceProperties + :rtype: ~azure.mgmt.storage.v2024_01_01.models.QueueServiceProperties :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -323,7 +323,7 @@ def set_service_properties( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) queue_service_name: Literal["default"] = kwargs.pop("queue_service_name", "default") content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.QueueServiceProperties] = kwargs.pop("cls", None) @@ -383,7 +383,7 @@ def get_service_properties( lower-case letters only. Required. :type account_name: str :return: QueueServiceProperties or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.QueueServiceProperties + :rtype: ~azure.mgmt.storage.v2024_01_01.models.QueueServiceProperties :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -397,7 +397,7 @@ def get_service_properties( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) queue_service_name: Literal["default"] = kwargs.pop("queue_service_name", "default") cls: ClsType[_models.QueueServiceProperties] = kwargs.pop("cls", None) diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_skus_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_skus_operations.py similarity index 97% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_skus_operations.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_skus_operations.py index a2c86e63f8b0..e4fe6195fdf6 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_skus_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_skus_operations.py @@ -42,7 +42,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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -68,7 +68,7 @@ class SkusOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.StorageManagementClient`'s + :class:`~azure.mgmt.storage.v2024_01_01.StorageManagementClient`'s :attr:`skus` attribute. """ @@ -87,13 +87,13 @@ def list(self, **kwargs: Any) -> Iterable["_models.SkuInformation"]: """Lists the available SKUs supported by Microsoft.Storage for given subscription. :return: An iterator like instance of either SkuInformation or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2023_05_01.models.SkuInformation] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2024_01_01.models.SkuInformation] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.StorageSkuListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_storage_accounts_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_storage_accounts_operations.py similarity index 96% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_storage_accounts_operations.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_storage_accounts_operations.py index b1f182b3132a..689c8bf92afd 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_storage_accounts_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_storage_accounts_operations.py @@ -48,7 +48,7 @@ def build_check_name_availability_request(subscription_id: str, **kwargs: Any) - _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", "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -79,7 +79,7 @@ def build_create_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", "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -116,7 +116,7 @@ def build_delete_request( ) -> HttpRequest: _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", "2024-01-01")) # Construct URL _url = kwargs.pop( "template_url", @@ -151,7 +151,7 @@ def build_get_properties_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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -188,7 +188,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", "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -224,7 +224,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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -248,7 +248,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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -285,7 +285,7 @@ def build_list_keys_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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -322,7 +322,7 @@ def build_regenerate_key_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", "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -360,7 +360,7 @@ def build_list_account_sas_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", "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -398,7 +398,7 @@ def build_list_service_sas_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", "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -440,7 +440,7 @@ def build_failover_request( ) -> HttpRequest: _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", "2024-01-01")) # Construct URL _url = kwargs.pop( "template_url", @@ -472,7 +472,7 @@ def build_hierarchical_namespace_migration_request( # pylint: disable=name-too- _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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -508,7 +508,7 @@ def build_abort_hierarchical_namespace_migration_request( # pylint: disable=nam _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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -543,7 +543,7 @@ def build_customer_initiated_migration_request( # pylint: disable=name-too-long _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", "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -585,7 +585,7 @@ def build_get_customer_initiated_migration_request( # pylint: disable=name-too- _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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -621,7 +621,7 @@ def build_restore_blob_ranges_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", "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -658,7 +658,7 @@ def build_revoke_user_delegation_keys_request( # pylint: disable=name-too-long ) -> HttpRequest: _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", "2024-01-01")) # Construct URL _url = kwargs.pop( "template_url", @@ -686,7 +686,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.StorageManagementClient`'s + :class:`~azure.mgmt.storage.v2024_01_01.StorageManagementClient`'s :attr:`storage_accounts` attribute. """ @@ -714,12 +714,12 @@ def check_name_availability( Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. Required. :type account_name: - ~azure.mgmt.storage.v2023_05_01.models.StorageAccountCheckNameAvailabilityParameters + ~azure.mgmt.storage.v2024_01_01.models.StorageAccountCheckNameAvailabilityParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: CheckNameAvailabilityResult or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.CheckNameAvailabilityResult + :rtype: ~azure.mgmt.storage.v2024_01_01.models.CheckNameAvailabilityResult :raises ~azure.core.exceptions.HttpResponseError: """ @@ -737,7 +737,7 @@ def check_name_availability( Default value is "application/json". :paramtype content_type: str :return: CheckNameAvailabilityResult or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.CheckNameAvailabilityResult + :rtype: ~azure.mgmt.storage.v2024_01_01.models.CheckNameAvailabilityResult :raises ~azure.core.exceptions.HttpResponseError: """ @@ -752,10 +752,10 @@ def check_name_availability( lower-case letters only. Is either a StorageAccountCheckNameAvailabilityParameters type or a IO[bytes] type. Required. :type account_name: - ~azure.mgmt.storage.v2023_05_01.models.StorageAccountCheckNameAvailabilityParameters or + ~azure.mgmt.storage.v2024_01_01.models.StorageAccountCheckNameAvailabilityParameters or IO[bytes] :return: CheckNameAvailabilityResult or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.CheckNameAvailabilityResult + :rtype: ~azure.mgmt.storage.v2024_01_01.models.CheckNameAvailabilityResult :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -769,7 +769,7 @@ def check_name_availability( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.CheckNameAvailabilityResult] = kwargs.pop("cls", None) @@ -828,7 +828,7 @@ def _create_initial( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -899,13 +899,13 @@ def begin_create( lower-case letters only. Required. :type account_name: str :param parameters: The parameters to provide for the created account. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.StorageAccountCreateParameters + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.StorageAccountCreateParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either StorageAccount or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2023_05_01.models.StorageAccount] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2024_01_01.models.StorageAccount] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -938,7 +938,7 @@ def begin_create( :paramtype content_type: str :return: An instance of LROPoller that returns either StorageAccount or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2023_05_01.models.StorageAccount] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2024_01_01.models.StorageAccount] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -964,17 +964,17 @@ def begin_create( :type account_name: str :param parameters: The parameters to provide for the created account. Is either a StorageAccountCreateParameters type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.StorageAccountCreateParameters or + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.StorageAccountCreateParameters or IO[bytes] :return: An instance of LROPoller that returns either StorageAccount or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2023_05_01.models.StorageAccount] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2024_01_01.models.StorageAccount] :raises ~azure.core.exceptions.HttpResponseError: """ _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.StorageAccount] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -1046,7 +1046,7 @@ def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_delete_request( @@ -1096,9 +1096,9 @@ def get_properties( data is not included when fetching properties. Currently we only support geoReplicationStats and blobRestoreStatus. Known values are: "geoReplicationStats" and "blobRestoreStatus". Default value is None. - :type expand: str or ~azure.mgmt.storage.v2023_05_01.models.StorageAccountExpand + :type expand: str or ~azure.mgmt.storage.v2024_01_01.models.StorageAccountExpand :return: StorageAccount or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.StorageAccount + :rtype: ~azure.mgmt.storage.v2024_01_01.models.StorageAccount :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -1112,7 +1112,7 @@ def get_properties( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.StorageAccount] = kwargs.pop("cls", None) _request = build_get_properties_request( @@ -1171,12 +1171,12 @@ def update( lower-case letters only. Required. :type account_name: str :param parameters: The parameters to provide for the updated account. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.StorageAccountUpdateParameters + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.StorageAccountUpdateParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: StorageAccount or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.StorageAccount + :rtype: ~azure.mgmt.storage.v2024_01_01.models.StorageAccount :raises ~azure.core.exceptions.HttpResponseError: """ @@ -1212,7 +1212,7 @@ def update( Default value is "application/json". :paramtype content_type: str :return: StorageAccount or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.StorageAccount + :rtype: ~azure.mgmt.storage.v2024_01_01.models.StorageAccount :raises ~azure.core.exceptions.HttpResponseError: """ @@ -1242,10 +1242,10 @@ def update( :type account_name: str :param parameters: The parameters to provide for the updated account. Is either a StorageAccountUpdateParameters type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.StorageAccountUpdateParameters or + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.StorageAccountUpdateParameters or IO[bytes] :return: StorageAccount or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.StorageAccount + :rtype: ~azure.mgmt.storage.v2024_01_01.models.StorageAccount :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -1259,7 +1259,7 @@ def update( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.StorageAccount] = kwargs.pop("cls", None) @@ -1308,13 +1308,13 @@ def list(self, **kwargs: Any) -> Iterable["_models.StorageAccount"]: returned; use the ListKeys operation for this. :return: An iterator like instance of either StorageAccount or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2023_05_01.models.StorageAccount] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2024_01_01.models.StorageAccount] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.StorageAccountListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -1386,13 +1386,13 @@ def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Ite name is case insensitive. Required. :type resource_group_name: str :return: An iterator like instance of either StorageAccount or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2023_05_01.models.StorageAccount] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2024_01_01.models.StorageAccount] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.StorageAccountListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { @@ -1474,7 +1474,7 @@ def list_keys( "kerb" and None. Default value is "kerb". :type expand: str :return: StorageAccountListKeysResult or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.StorageAccountListKeysResult + :rtype: ~azure.mgmt.storage.v2024_01_01.models.StorageAccountListKeysResult :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -1488,7 +1488,7 @@ def list_keys( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.StorageAccountListKeysResult] = kwargs.pop("cls", None) _request = build_list_keys_request( @@ -1542,12 +1542,12 @@ def regenerate_key( :param regenerate_key: Specifies name of the key which should be regenerated -- key1, key2, kerb1, kerb2. Required. :type regenerate_key: - ~azure.mgmt.storage.v2023_05_01.models.StorageAccountRegenerateKeyParameters + ~azure.mgmt.storage.v2024_01_01.models.StorageAccountRegenerateKeyParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: StorageAccountListKeysResult or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.StorageAccountListKeysResult + :rtype: ~azure.mgmt.storage.v2024_01_01.models.StorageAccountListKeysResult :raises ~azure.core.exceptions.HttpResponseError: """ @@ -1577,7 +1577,7 @@ def regenerate_key( Default value is "application/json". :paramtype content_type: str :return: StorageAccountListKeysResult or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.StorageAccountListKeysResult + :rtype: ~azure.mgmt.storage.v2024_01_01.models.StorageAccountListKeysResult :raises ~azure.core.exceptions.HttpResponseError: """ @@ -1602,9 +1602,9 @@ def regenerate_key( kerb1, kerb2. Is either a StorageAccountRegenerateKeyParameters type or a IO[bytes] type. Required. :type regenerate_key: - ~azure.mgmt.storage.v2023_05_01.models.StorageAccountRegenerateKeyParameters or IO[bytes] + ~azure.mgmt.storage.v2024_01_01.models.StorageAccountRegenerateKeyParameters or IO[bytes] :return: StorageAccountListKeysResult or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.StorageAccountListKeysResult + :rtype: ~azure.mgmt.storage.v2024_01_01.models.StorageAccountListKeysResult :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -1618,7 +1618,7 @@ def regenerate_key( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.StorageAccountListKeysResult] = kwargs.pop("cls", None) @@ -1682,12 +1682,12 @@ def list_account_sas( :type account_name: str :param parameters: The parameters to provide to list SAS credentials for the storage account. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.AccountSasParameters + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.AccountSasParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: ListAccountSasResponse or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ListAccountSasResponse + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ListAccountSasResponse :raises ~azure.core.exceptions.HttpResponseError: """ @@ -1717,7 +1717,7 @@ def list_account_sas( Default value is "application/json". :paramtype content_type: str :return: ListAccountSasResponse or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ListAccountSasResponse + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ListAccountSasResponse :raises ~azure.core.exceptions.HttpResponseError: """ @@ -1740,9 +1740,9 @@ def list_account_sas( :type account_name: str :param parameters: The parameters to provide to list SAS credentials for the storage account. Is either a AccountSasParameters type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.AccountSasParameters or IO[bytes] + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.AccountSasParameters or IO[bytes] :return: ListAccountSasResponse or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ListAccountSasResponse + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ListAccountSasResponse :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -1756,7 +1756,7 @@ def list_account_sas( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ListAccountSasResponse] = kwargs.pop("cls", None) @@ -1819,12 +1819,12 @@ def list_service_sas( lower-case letters only. Required. :type account_name: str :param parameters: The parameters to provide to list service SAS credentials. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.ServiceSasParameters + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.ServiceSasParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: ListServiceSasResponse or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ListServiceSasResponse + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ListServiceSasResponse :raises ~azure.core.exceptions.HttpResponseError: """ @@ -1853,7 +1853,7 @@ def list_service_sas( Default value is "application/json". :paramtype content_type: str :return: ListServiceSasResponse or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ListServiceSasResponse + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ListServiceSasResponse :raises ~azure.core.exceptions.HttpResponseError: """ @@ -1876,9 +1876,9 @@ def list_service_sas( :type account_name: str :param parameters: The parameters to provide to list service SAS credentials. Is either a ServiceSasParameters type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.ServiceSasParameters or IO[bytes] + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.ServiceSasParameters or IO[bytes] :return: ListServiceSasResponse or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ListServiceSasResponse + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ListServiceSasResponse :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -1892,7 +1892,7 @@ def list_service_sas( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ListServiceSasResponse] = kwargs.pop("cls", None) @@ -1949,7 +1949,7 @@ def _failover_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_failover_request( @@ -2019,7 +2019,7 @@ def begin_failover( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -2073,7 +2073,7 @@ def _hierarchical_namespace_migration_initial( # pylint: disable=name-too-long _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_hierarchical_namespace_migration_request( @@ -2136,7 +2136,7 @@ def begin_hierarchical_namespace_migration( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -2190,7 +2190,7 @@ def _abort_hierarchical_namespace_migration_initial( # pylint: disable=name-too _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_abort_hierarchical_namespace_migration_request( @@ -2247,7 +2247,7 @@ def begin_abort_hierarchical_namespace_migration( # pylint: disable=name-too-lo _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -2304,7 +2304,7 @@ def _customer_initiated_migration_initial( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -2382,7 +2382,7 @@ def begin_customer_initiated_migration( :type account_name: str :param parameters: The request parameters required to perform storage account migration. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.StorageAccountMigration + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.StorageAccountMigration :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str @@ -2448,7 +2448,7 @@ def begin_customer_initiated_migration( :type account_name: str :param parameters: The request parameters required to perform storage account migration. Is either a StorageAccountMigration type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.StorageAccountMigration or IO[bytes] + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.StorageAccountMigration or IO[bytes] :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -2456,7 +2456,7 @@ def begin_customer_initiated_migration( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -2517,9 +2517,9 @@ def get_customer_initiated_migration( :type account_name: str :param migration_name: The name of the Storage Account Migration. It should always be 'default'. "default" Required. - :type migration_name: str or ~azure.mgmt.storage.v2023_05_01.models.MigrationName + :type migration_name: str or ~azure.mgmt.storage.v2024_01_01.models.MigrationName :return: StorageAccountMigration or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.StorageAccountMigration + :rtype: ~azure.mgmt.storage.v2024_01_01.models.StorageAccountMigration :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -2533,7 +2533,7 @@ def get_customer_initiated_migration( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.StorageAccountMigration] = kwargs.pop("cls", None) _request = build_get_customer_initiated_migration_request( @@ -2584,7 +2584,7 @@ def _restore_blob_ranges_initial( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -2652,13 +2652,13 @@ def begin_restore_blob_ranges( lower-case letters only. Required. :type account_name: str :param parameters: The parameters to provide for restore blob ranges. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.BlobRestoreParameters + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.BlobRestoreParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either BlobRestoreStatus or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2023_05_01.models.BlobRestoreStatus] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2024_01_01.models.BlobRestoreStatus] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -2688,7 +2688,7 @@ def begin_restore_blob_ranges( :paramtype content_type: str :return: An instance of LROPoller that returns either BlobRestoreStatus or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2023_05_01.models.BlobRestoreStatus] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2024_01_01.models.BlobRestoreStatus] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -2711,16 +2711,16 @@ def begin_restore_blob_ranges( :type account_name: str :param parameters: The parameters to provide for restore blob ranges. Is either a BlobRestoreParameters type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.BlobRestoreParameters or IO[bytes] + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.BlobRestoreParameters or IO[bytes] :return: An instance of LROPoller that returns either BlobRestoreStatus or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2023_05_01.models.BlobRestoreStatus] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2024_01_01.models.BlobRestoreStatus] :raises ~azure.core.exceptions.HttpResponseError: """ _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.BlobRestoreStatus] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -2794,7 +2794,7 @@ def revoke_user_delegation_keys( # pylint: disable=inconsistent-return-statemen _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_revoke_user_delegation_keys_request( diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_storage_task_assignment_instances_report_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_storage_task_assignment_instances_report_operations.py similarity index 97% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_storage_task_assignment_instances_report_operations.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_storage_task_assignment_instances_report_operations.py index 87085a027282..ea20ab88f98e 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_storage_task_assignment_instances_report_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_storage_task_assignment_instances_report_operations.py @@ -51,7 +51,7 @@ def build_list_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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -98,7 +98,7 @@ class StorageTaskAssignmentInstancesReportOperations: # pylint: disable=name-to **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.StorageManagementClient`'s + :class:`~azure.mgmt.storage.v2024_01_01.StorageManagementClient`'s :attr:`storage_task_assignment_instances_report` attribute. """ @@ -147,13 +147,13 @@ def list( :return: An iterator like instance of either StorageTaskReportInstance or the result of cls(response) :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2023_05_01.models.StorageTaskReportInstance] + ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2024_01_01.models.StorageTaskReportInstance] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.StorageTaskReportSummary] = kwargs.pop("cls", None) error_map: MutableMapping = { diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_storage_task_assignments_instances_report_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_storage_task_assignments_instances_report_operations.py similarity index 97% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_storage_task_assignments_instances_report_operations.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_storage_task_assignments_instances_report_operations.py index be0537874d68..4b48c25b9a04 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_storage_task_assignments_instances_report_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_storage_task_assignments_instances_report_operations.py @@ -50,7 +50,7 @@ def build_list_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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -89,7 +89,7 @@ class StorageTaskAssignmentsInstancesReportOperations: # pylint: disable=name-t **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.StorageManagementClient`'s + :class:`~azure.mgmt.storage.v2024_01_01.StorageManagementClient`'s :attr:`storage_task_assignments_instances_report` attribute. """ @@ -133,13 +133,13 @@ def list( :return: An iterator like instance of either StorageTaskReportInstance or the result of cls(response) :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2023_05_01.models.StorageTaskReportInstance] + ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2024_01_01.models.StorageTaskReportInstance] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.StorageTaskReportSummary] = kwargs.pop("cls", None) error_map: MutableMapping = { diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_storage_task_assignments_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_storage_task_assignments_operations.py similarity index 96% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_storage_task_assignments_operations.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_storage_task_assignments_operations.py index 65bd194305ce..551ecc77d8a8 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_storage_task_assignments_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_storage_task_assignments_operations.py @@ -50,7 +50,7 @@ def build_create_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", "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -96,7 +96,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", "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -142,7 +142,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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -185,7 +185,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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -233,7 +233,7 @@ def build_list_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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -270,7 +270,7 @@ class StorageTaskAssignmentsOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.StorageManagementClient`'s + :class:`~azure.mgmt.storage.v2024_01_01.StorageManagementClient`'s :attr:`storage_task_assignments` attribute. """ @@ -303,7 +303,7 @@ def _create_initial( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -386,14 +386,14 @@ def begin_create( length and use numbers and lower-case letters only. Required. :type storage_task_assignment_name: str :param parameters: The parameters to create a Storage Task Assignment. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.StorageTaskAssignment + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.StorageTaskAssignment :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either StorageTaskAssignment or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2023_05_01.models.StorageTaskAssignment] + ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2024_01_01.models.StorageTaskAssignment] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -433,7 +433,7 @@ def begin_create( :return: An instance of LROPoller that returns either StorageTaskAssignment or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2023_05_01.models.StorageTaskAssignment] + ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2024_01_01.models.StorageTaskAssignment] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -465,17 +465,17 @@ def begin_create( :type storage_task_assignment_name: str :param parameters: The parameters to create a Storage Task Assignment. Is either a StorageTaskAssignment type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.StorageTaskAssignment or IO[bytes] + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.StorageTaskAssignment or IO[bytes] :return: An instance of LROPoller that returns either StorageTaskAssignment or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2023_05_01.models.StorageTaskAssignment] + ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2024_01_01.models.StorageTaskAssignment] :raises ~azure.core.exceptions.HttpResponseError: """ _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.StorageTaskAssignment] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -541,7 +541,7 @@ def _update_initial( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -620,14 +620,14 @@ def begin_update( length and use numbers and lower-case letters only. Required. :type storage_task_assignment_name: str :param parameters: The parameters to update a Storage Task Assignment. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.StorageTaskAssignmentUpdateParameters + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.StorageTaskAssignmentUpdateParameters :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: An instance of LROPoller that returns either StorageTaskAssignment or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2023_05_01.models.StorageTaskAssignment] + ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2024_01_01.models.StorageTaskAssignment] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -663,7 +663,7 @@ def begin_update( :return: An instance of LROPoller that returns either StorageTaskAssignment or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2023_05_01.models.StorageTaskAssignment] + ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2024_01_01.models.StorageTaskAssignment] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -691,18 +691,18 @@ def begin_update( :type storage_task_assignment_name: str :param parameters: The parameters to update a Storage Task Assignment. Is either a StorageTaskAssignmentUpdateParameters type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.StorageTaskAssignmentUpdateParameters + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.StorageTaskAssignmentUpdateParameters or IO[bytes] :return: An instance of LROPoller that returns either StorageTaskAssignment or the result of cls(response) :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2023_05_01.models.StorageTaskAssignment] + ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2024_01_01.models.StorageTaskAssignment] :raises ~azure.core.exceptions.HttpResponseError: """ _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.StorageTaskAssignment] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -767,7 +767,7 @@ def get( length and use numbers and lower-case letters only. Required. :type storage_task_assignment_name: str :return: StorageTaskAssignment or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.StorageTaskAssignment + :rtype: ~azure.mgmt.storage.v2024_01_01.models.StorageTaskAssignment :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -781,7 +781,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.StorageTaskAssignment] = kwargs.pop("cls", None) _request = build_get_request( @@ -828,7 +828,7 @@ def _delete_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_delete_request( @@ -894,7 +894,7 @@ def begin_delete( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -953,13 +953,13 @@ def list( :return: An iterator like instance of either StorageTaskAssignment or the result of cls(response) :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2023_05_01.models.StorageTaskAssignment] + ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2024_01_01.models.StorageTaskAssignment] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.StorageTaskAssignmentsList] = kwargs.pop("cls", None) error_map: MutableMapping = { diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_table_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_table_operations.py similarity index 96% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_table_operations.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_table_operations.py index 54bdd2874f5d..69619dc68215 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_table_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_table_operations.py @@ -45,7 +45,7 @@ def build_create_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", "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -86,7 +86,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", "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -127,7 +127,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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -165,7 +165,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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -201,7 +201,7 @@ def build_list_request(resource_group_name: str, account_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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -236,7 +236,7 @@ class TableOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.StorageManagementClient`'s + :class:`~azure.mgmt.storage.v2024_01_01.StorageManagementClient`'s :attr:`table` attribute. """ @@ -275,12 +275,12 @@ def create( with a numeric character. Required. :type table_name: str :param parameters: The parameters to provide to create a table. Default value is None. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.Table + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.Table :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: Table or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.Table + :rtype: ~azure.mgmt.storage.v2024_01_01.models.Table :raises ~azure.core.exceptions.HttpResponseError: """ @@ -314,7 +314,7 @@ def create( Default value is "application/json". :paramtype content_type: str :return: Table or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.Table + :rtype: ~azure.mgmt.storage.v2024_01_01.models.Table :raises ~azure.core.exceptions.HttpResponseError: """ @@ -342,9 +342,9 @@ def create( :type table_name: str :param parameters: The parameters to provide to create a table. Is either a Table type or a IO[bytes] type. Default value is None. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.Table or IO[bytes] + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.Table or IO[bytes] :return: Table or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.Table + :rtype: ~azure.mgmt.storage.v2024_01_01.models.Table :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -358,7 +358,7 @@ def create( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.Table] = kwargs.pop("cls", None) @@ -430,12 +430,12 @@ def update( with a numeric character. Required. :type table_name: str :param parameters: The parameters to provide to create a table. Default value is None. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.Table + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.Table :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: Table or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.Table + :rtype: ~azure.mgmt.storage.v2024_01_01.models.Table :raises ~azure.core.exceptions.HttpResponseError: """ @@ -469,7 +469,7 @@ def update( Default value is "application/json". :paramtype content_type: str :return: Table or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.Table + :rtype: ~azure.mgmt.storage.v2024_01_01.models.Table :raises ~azure.core.exceptions.HttpResponseError: """ @@ -497,9 +497,9 @@ def update( :type table_name: str :param parameters: The parameters to provide to create a table. Is either a Table type or a IO[bytes] type. Default value is None. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.Table or IO[bytes] + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.Table or IO[bytes] :return: Table or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.Table + :rtype: ~azure.mgmt.storage.v2024_01_01.models.Table :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -513,7 +513,7 @@ def update( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.Table] = kwargs.pop("cls", None) @@ -576,7 +576,7 @@ def get(self, resource_group_name: str, account_name: str, table_name: str, **kw with a numeric character. Required. :type table_name: str :return: Table or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.Table + :rtype: ~azure.mgmt.storage.v2024_01_01.models.Table :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -590,7 +590,7 @@ def get(self, resource_group_name: str, account_name: str, table_name: str, **kw _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.Table] = kwargs.pop("cls", None) _request = build_get_request( @@ -654,7 +654,7 @@ def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[None] = kwargs.pop("cls", None) _request = build_delete_request( @@ -694,13 +694,13 @@ def list(self, resource_group_name: str, account_name: str, **kwargs: Any) -> It lower-case letters only. Required. :type account_name: str :return: An iterator like instance of either Table or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2023_05_01.models.Table] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2024_01_01.models.Table] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.ListTableResource] = kwargs.pop("cls", None) error_map: MutableMapping = { diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_table_services_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_table_services_operations.py similarity index 96% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_table_services_operations.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_table_services_operations.py index fe242dac6140..5024fc68a203 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_table_services_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_table_services_operations.py @@ -41,7 +41,7 @@ def build_list_request(resource_group_name: str, account_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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -76,7 +76,7 @@ def build_set_service_properties_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", "2024-01-01")) table_service_name: Literal["default"] = kwargs.pop("table_service_name", "default") content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -116,7 +116,7 @@ def build_get_service_properties_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", "2024-01-01")) table_service_name: Literal["default"] = kwargs.pop("table_service_name", "default") accept = _headers.pop("Accept", "application/json") @@ -153,7 +153,7 @@ class TableServicesOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.StorageManagementClient`'s + :class:`~azure.mgmt.storage.v2024_01_01.StorageManagementClient`'s :attr:`table_services` attribute. """ @@ -179,7 +179,7 @@ def list(self, resource_group_name: str, account_name: str, **kwargs: Any) -> _m lower-case letters only. Required. :type account_name: str :return: ListTableServices or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.ListTableServices + :rtype: ~azure.mgmt.storage.v2024_01_01.models.ListTableServices :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -193,7 +193,7 @@ def list(self, resource_group_name: str, account_name: str, **kwargs: Any) -> _m _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.ListTableServices] = kwargs.pop("cls", None) _request = build_list_request( @@ -246,12 +246,12 @@ def set_service_properties( :type account_name: str :param parameters: The properties of a storage account’s Table service, only properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules can be specified. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.TableServiceProperties + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.TableServiceProperties :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str :return: TableServiceProperties or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.TableServiceProperties + :rtype: ~azure.mgmt.storage.v2024_01_01.models.TableServiceProperties :raises ~azure.core.exceptions.HttpResponseError: """ @@ -282,7 +282,7 @@ def set_service_properties( Default value is "application/json". :paramtype content_type: str :return: TableServiceProperties or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.TableServiceProperties + :rtype: ~azure.mgmt.storage.v2024_01_01.models.TableServiceProperties :raises ~azure.core.exceptions.HttpResponseError: """ @@ -307,9 +307,9 @@ def set_service_properties( :param parameters: The properties of a storage account’s Table service, only properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules can be specified. Is either a TableServiceProperties type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.storage.v2023_05_01.models.TableServiceProperties or IO[bytes] + :type parameters: ~azure.mgmt.storage.v2024_01_01.models.TableServiceProperties or IO[bytes] :return: TableServiceProperties or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.TableServiceProperties + :rtype: ~azure.mgmt.storage.v2024_01_01.models.TableServiceProperties :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -323,7 +323,7 @@ def set_service_properties( _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", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) table_service_name: Literal["default"] = kwargs.pop("table_service_name", "default") content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.TableServiceProperties] = kwargs.pop("cls", None) @@ -383,7 +383,7 @@ def get_service_properties( lower-case letters only. Required. :type account_name: str :return: TableServiceProperties or the result of cls(response) - :rtype: ~azure.mgmt.storage.v2023_05_01.models.TableServiceProperties + :rtype: ~azure.mgmt.storage.v2024_01_01.models.TableServiceProperties :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -397,7 +397,7 @@ def get_service_properties( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) table_service_name: Literal["default"] = kwargs.pop("table_service_name", "default") cls: ClsType[_models.TableServiceProperties] = kwargs.pop("cls", None) diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_usages_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_usages_operations.py similarity index 97% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_usages_operations.py rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_usages_operations.py index a773cd696cf8..6f6b04b888bc 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_usages_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_usages_operations.py @@ -42,7 +42,7 @@ def build_list_by_location_request(location: str, subscription_id: str, **kwargs _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", "2024-01-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -71,7 +71,7 @@ class UsagesOperations: **DO NOT** instantiate this class directly. Instead, you should access the following operations through - :class:`~azure.mgmt.storage.v2023_05_01.StorageManagementClient`'s + :class:`~azure.mgmt.storage.v2024_01_01.StorageManagementClient`'s :attr:`usages` attribute. """ @@ -93,13 +93,13 @@ def list_by_location(self, location: str, **kwargs: Any) -> Iterable["_models.Us :param location: The location of the Azure Storage resource. Required. :type location: str :return: An iterator like instance of either Usage or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2023_05_01.models.Usage] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2024_01_01.models.Usage] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-05-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2024-01-01")) cls: ClsType[_models.UsageListResult] = kwargs.pop("cls", None) error_map: MutableMapping = { diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/py.typed b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/py.typed similarity index 100% rename from sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/py.typed rename to sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/py.typed diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_delete.py b/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_delete.py index 0647bea170e6..f4e5ce359806 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_delete.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_delete.py @@ -37,6 +37,6 @@ def main(): ) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/BlobContainersDelete.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersDelete.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_delete_immutability_policy.py b/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_delete_immutability_policy.py index 10afc162b462..48da047f06c7 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_delete_immutability_policy.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_delete_immutability_policy.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/BlobContainersDeleteImmutabilityPolicy.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersDeleteImmutabilityPolicy.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_extend_immutability_policy.py b/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_extend_immutability_policy.py index 9125b544d398..21da003ab629 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_extend_immutability_policy.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_extend_immutability_policy.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/BlobContainersExtendImmutabilityPolicy.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersExtendImmutabilityPolicy.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_get.py b/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_get.py index 81f028c9b85d..01cadd9a5f4d 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_get.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/BlobContainersGet.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersGet.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_get_immutability_policy.py b/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_get_immutability_policy.py index 7a22c6bed5e2..adddc10d3bb7 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_get_immutability_policy.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_get_immutability_policy.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/BlobContainersGetImmutabilityPolicy.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersGetImmutabilityPolicy.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_get_with_allow_protected_append_writes_all.py b/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_get_with_allow_protected_append_writes_all.py index 48ffa555e419..564f05021a4f 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_get_with_allow_protected_append_writes_all.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_get_with_allow_protected_append_writes_all.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/BlobContainersGetWithAllowProtectedAppendWritesAll.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersGetWithAllowProtectedAppendWritesAll.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_lease_acquire.py b/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_lease_acquire.py index 968c5d1f6c09..9c647fc2d3f9 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_lease_acquire.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_lease_acquire.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/BlobContainersLease_Acquire.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersLease_Acquire.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_lease_break.py b/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_lease_break.py index 3db1886c8fd6..f6eb103d01c4 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_lease_break.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_lease_break.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/BlobContainersLease_Break.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersLease_Break.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_list.py b/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_list.py index 0bff302e7c41..f9f25d2366ca 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_list.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/BlobContainersList.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersList.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_lock_immutability_policy.py b/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_lock_immutability_policy.py index c3ce51f495fe..9ea9e481f510 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_lock_immutability_policy.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_lock_immutability_policy.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/BlobContainersLockImmutabilityPolicy.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersLockImmutabilityPolicy.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_patch.py b/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_patch.py index f6246fc9a64c..96dda53ee8ff 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_patch.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_patch.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/BlobContainersPatch.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersPatch.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_put_default_encryption_scope.py b/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_put_default_encryption_scope.py index dbaaeda23a7b..670d9fe90726 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_put_default_encryption_scope.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_put_default_encryption_scope.py @@ -41,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/BlobContainersPutDefaultEncryptionScope.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersPutDefaultEncryptionScope.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_put_immutability_policy.py b/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_put_immutability_policy.py index 1ba027c17945..ba37d7c4cb96 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_put_immutability_policy.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_put_immutability_policy.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/BlobContainersPutImmutabilityPolicy.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersPutImmutabilityPolicy.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_put_immutability_policy_allow_protected_append_writes_all.py b/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_put_immutability_policy_allow_protected_append_writes_all.py index ff5e031fefd2..1b897cfb9fa0 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_put_immutability_policy_allow_protected_append_writes_all.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_put_immutability_policy_allow_protected_append_writes_all.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/BlobContainersPutImmutabilityPolicyAllowProtectedAppendWritesAll.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersPutImmutabilityPolicyAllowProtectedAppendWritesAll.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_put_object_level_worm.py b/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_put_object_level_worm.py index 91922d681be7..3fd2bae87e44 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_put_object_level_worm.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_put_object_level_worm.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/BlobContainersPutObjectLevelWorm.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersPutObjectLevelWorm.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/blob_ranges_restore.py b/sdk/storage/azure-mgmt-storage/generated_samples/blob_ranges_restore.py index aa1d7cd3d98e..3068af92d4a0 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/blob_ranges_restore.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/blob_ranges_restore.py @@ -44,6 +44,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/BlobRangesRestore.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobRangesRestore.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/blob_services_get.py b/sdk/storage/azure-mgmt-storage/generated_samples/blob_services_get.py index a4cf68c61cf9..4c8d7bae7d13 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/blob_services_get.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/blob_services_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/BlobServicesGet.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobServicesGet.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/blob_services_list.py b/sdk/storage/azure-mgmt-storage/generated_samples/blob_services_list.py index 966b2eff5d5f..1ebdfbba09c9 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/blob_services_list.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/blob_services_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/BlobServicesList.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobServicesList.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/blob_services_put.py b/sdk/storage/azure-mgmt-storage/generated_samples/blob_services_put.py index b3dbfa90e9a8..83181cab9851 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/blob_services_put.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/blob_services_put.py @@ -70,6 +70,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/BlobServicesPut.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobServicesPut.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/blob_services_put_allow_permanent_delete.py b/sdk/storage/azure-mgmt-storage/generated_samples/blob_services_put_allow_permanent_delete.py index 9b8836919145..438f52002fdb 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/blob_services_put_allow_permanent_delete.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/blob_services_put_allow_permanent_delete.py @@ -43,6 +43,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/BlobServicesPutAllowPermanentDelete.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobServicesPutAllowPermanentDelete.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/blob_services_put_last_access_time_based_tracking.py b/sdk/storage/azure-mgmt-storage/generated_samples/blob_services_put_last_access_time_based_tracking.py index e73240729067..682313c19066 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/blob_services_put_last_access_time_based_tracking.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/blob_services_put_last_access_time_based_tracking.py @@ -47,6 +47,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/BlobServicesPutLastAccessTimeBasedTracking.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobServicesPutLastAccessTimeBasedTracking.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/deleted_account_get.py b/sdk/storage/azure-mgmt-storage/generated_samples/deleted_account_get.py index ba8d33411c5c..15c79b16d0b9 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/deleted_account_get.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/deleted_account_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/DeletedAccountGet.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/DeletedAccountGet.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/deleted_account_list.py b/sdk/storage/azure-mgmt-storage/generated_samples/deleted_account_list.py index e3ebe4a1035f..14584f86c5f7 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/deleted_account_list.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/deleted_account_list.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/DeletedAccountList.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/DeletedAccountList.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/deleted_blob_containers_list.py b/sdk/storage/azure-mgmt-storage/generated_samples/deleted_blob_containers_list.py index 2fd7a6e1368e..14fb740c4e8a 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/deleted_blob_containers_list.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/deleted_blob_containers_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/DeletedBlobContainersList.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/DeletedBlobContainersList.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/deleted_file_shares_list.py b/sdk/storage/azure-mgmt-storage/generated_samples/deleted_file_shares_list.py index e36f575e7f0c..1ecfd975e18e 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/deleted_file_shares_list.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/deleted_file_shares_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/DeletedFileSharesList.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/DeletedFileSharesList.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/file_services_get.py b/sdk/storage/azure-mgmt-storage/generated_samples/file_services_get.py index 1c2bf1e2edcd..6b052273b8d9 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/file_services_get.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/file_services_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/FileServicesGet.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileServicesGet.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/file_services_get_usage.py b/sdk/storage/azure-mgmt-storage/generated_samples/file_services_get_usage.py new file mode 100644 index 000000000000..de607f14161a --- /dev/null +++ b/sdk/storage/azure-mgmt-storage/generated_samples/file_services_get_usage.py @@ -0,0 +1,42 @@ +# 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. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.storage import StorageManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-storage +# USAGE + python file_services_get_usage.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = StorageManagementClient( + credential=DefaultAzureCredential(), + subscription_id="00000000-1111-2222-3333-444444444444", + ) + + response = client.file_services.get_service_usage( + resource_group_name="res4410", + account_name="sto8607", + ) + print(response) + + +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileServicesGetUsage.json +if __name__ == "__main__": + main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/file_services_list.py b/sdk/storage/azure-mgmt-storage/generated_samples/file_services_list.py index cbd54d1e6a8d..c3e8c4157339 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/file_services_list.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/file_services_list.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/FileServicesList.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileServicesList.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/file_services_list_usages.py b/sdk/storage/azure-mgmt-storage/generated_samples/file_services_list_usages.py new file mode 100644 index 000000000000..aa8e5e9b946e --- /dev/null +++ b/sdk/storage/azure-mgmt-storage/generated_samples/file_services_list_usages.py @@ -0,0 +1,43 @@ +# 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. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.storage import StorageManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-storage +# USAGE + python file_services_list_usages.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = StorageManagementClient( + credential=DefaultAzureCredential(), + subscription_id="00000000-1111-2222-3333-444444444444", + ) + + response = client.file_services.list_service_usages( + resource_group_name="res4410", + account_name="sto8607", + ) + for item in response: + print(item) + + +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileServicesListUsages.json +if __name__ == "__main__": + main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/file_services_put.py b/sdk/storage/azure-mgmt-storage/generated_samples/file_services_put.py index 2b56ec96b2e8..9c6f3c5ef388 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/file_services_put.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/file_services_put.py @@ -66,6 +66,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/FileServicesPut.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileServicesPut.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/file_services_put_enable_secure_smb_features.py b/sdk/storage/azure-mgmt-storage/generated_samples/file_services_put_enable_secure_smb_features.py index 986d4cfdff82..6442591dd87e 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/file_services_put_enable_secure_smb_features.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/file_services_put_enable_secure_smb_features.py @@ -49,6 +49,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/FileServicesPut_EnableSecureSmbFeatures.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileServicesPut_EnableSecureSmbFeatures.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/file_services_put_enable_smb_multichannel.py b/sdk/storage/azure-mgmt-storage/generated_samples/file_services_put_enable_smb_multichannel.py index 9065a1a965f5..fa5e0f30e706 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/file_services_put_enable_smb_multichannel.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/file_services_put_enable_smb_multichannel.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/FileServicesPut_EnableSMBMultichannel.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileServicesPut_EnableSMBMultichannel.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/file_share_acls_patch.py b/sdk/storage/azure-mgmt-storage/generated_samples/file_share_acls_patch.py index 47390379aeeb..6151095ce563 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/file_share_acls_patch.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/file_share_acls_patch.py @@ -52,6 +52,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/FileShareAclsPatch.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileShareAclsPatch.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/file_share_snapshots_list.py b/sdk/storage/azure-mgmt-storage/generated_samples/file_share_snapshots_list.py index 192b576cca84..6ad11c0f8de1 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/file_share_snapshots_list.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/file_share_snapshots_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/FileShareSnapshotsList.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileShareSnapshotsList.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_delete.py b/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_delete.py index 67d728b6833e..520feab52cdd 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_delete.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_delete.py @@ -37,6 +37,6 @@ def main(): ) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/FileSharesDelete.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesDelete.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_get.py b/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_get.py index d32599aa7432..0d7ab552d4b7 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_get.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/FileSharesGet.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesGet.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_get_paid_bursting.py b/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_get_paid_bursting.py new file mode 100644 index 000000000000..272364f81e7a --- /dev/null +++ b/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_get_paid_bursting.py @@ -0,0 +1,43 @@ +# 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. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.storage import StorageManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-storage +# USAGE + python file_shares_get_paid_bursting.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = StorageManagementClient( + credential=DefaultAzureCredential(), + subscription_id="{subscription-id}", + ) + + response = client.file_shares.get( + resource_group_name="res9871", + account_name="sto6217", + share_name="share1634", + ) + print(response) + + +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesGet_PaidBursting.json +if __name__ == "__main__": + main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_get_provisioned_v2.py b/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_get_provisioned_v2.py new file mode 100644 index 000000000000..c73a4c1f035d --- /dev/null +++ b/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_get_provisioned_v2.py @@ -0,0 +1,43 @@ +# 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. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.storage import StorageManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-storage +# USAGE + python file_shares_get_provisioned_v2.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = StorageManagementClient( + credential=DefaultAzureCredential(), + subscription_id="{subscription-id}", + ) + + response = client.file_shares.get( + resource_group_name="res9871", + account_name="sto6217", + share_name="share1634", + ) + print(response) + + +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesGet_ProvisionedV2.json +if __name__ == "__main__": + main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_get_stats.py b/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_get_stats.py index fc620ded54b5..44b3177eb210 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_get_stats.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_get_stats.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/FileSharesGet_Stats.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesGet_Stats.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_lease_acquire.py b/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_lease_acquire.py index 1a617340938f..e2023aacca57 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_lease_acquire.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_lease_acquire.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/FileSharesLease_Acquire.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesLease_Acquire.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_lease_break.py b/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_lease_break.py index 1265433c6195..7de7ad26af6a 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_lease_break.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_lease_break.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/FileSharesLease_Break.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesLease_Break.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_list.py b/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_list.py index d993e582b6cc..fc328c89936c 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_list.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/FileSharesList.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesList.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_list_paid_bursting.py b/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_list_paid_bursting.py new file mode 100644 index 000000000000..1622f54bc12e --- /dev/null +++ b/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_list_paid_bursting.py @@ -0,0 +1,43 @@ +# 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. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.storage import StorageManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-storage +# USAGE + python file_shares_list_paid_bursting.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = StorageManagementClient( + credential=DefaultAzureCredential(), + subscription_id="{subscription-id}", + ) + + response = client.file_shares.list( + resource_group_name="res9290", + account_name="sto1590", + ) + for item in response: + print(item) + + +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesList_PaidBursting.json +if __name__ == "__main__": + main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_list_provisioned_v2.py b/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_list_provisioned_v2.py new file mode 100644 index 000000000000..11f969e00803 --- /dev/null +++ b/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_list_provisioned_v2.py @@ -0,0 +1,43 @@ +# 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. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.storage import StorageManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-storage +# USAGE + python file_shares_list_provisioned_v2.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = StorageManagementClient( + credential=DefaultAzureCredential(), + subscription_id="{subscription-id}", + ) + + response = client.file_shares.list( + resource_group_name="res9290", + account_name="sto1590", + ) + for item in response: + print(item) + + +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesList_ProvisionedV2.json +if __name__ == "__main__": + main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_patch.py b/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_patch.py index cb4b2011daec..fda0fe0d9754 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_patch.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_patch.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/FileSharesPatch.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesPatch.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_patch_paid_bursting.py b/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_patch_paid_bursting.py new file mode 100644 index 000000000000..5cead2571831 --- /dev/null +++ b/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_patch_paid_bursting.py @@ -0,0 +1,52 @@ +# 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. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.storage import StorageManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-storage +# USAGE + python file_shares_patch_paid_bursting.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = StorageManagementClient( + credential=DefaultAzureCredential(), + subscription_id="{subscription-id}", + ) + + response = client.file_shares.update( + resource_group_name="res3376", + account_name="sto328", + share_name="share6185", + file_share={ + "properties": { + "fileSharePaidBursting": { + "paidBurstingEnabled": True, + "paidBurstingMaxBandwidthMibps": 10340, + "paidBurstingMaxIops": 102400, + } + } + }, + ) + print(response) + + +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesPatch_PaidBursting.json +if __name__ == "__main__": + main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_patch_provisioned_v2.py b/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_patch_provisioned_v2.py new file mode 100644 index 000000000000..07df120119e9 --- /dev/null +++ b/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_patch_provisioned_v2.py @@ -0,0 +1,44 @@ +# 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. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.storage import StorageManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-storage +# USAGE + python file_shares_patch_provisioned_v2.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = StorageManagementClient( + credential=DefaultAzureCredential(), + subscription_id="{subscription-id}", + ) + + response = client.file_shares.update( + resource_group_name="res3376", + account_name="sto328", + share_name="share6185", + file_share={"properties": {"provisionedBandwidthMibps": 200, "provisionedIops": 5000, "shareQuota": 100}}, + ) + print(response) + + +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesPatch_ProvisionedV2.json +if __name__ == "__main__": + main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_put_access_tier.py b/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_put_access_tier.py index 22055adeead2..0d3cb4031bbc 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_put_access_tier.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_put_access_tier.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/FileSharesPut_AccessTier.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesPut_AccessTier.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_put_nfs.py b/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_put_nfs.py index 63d60fb3c3e5..a847a080d238 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_put_nfs.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_put_nfs.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/FileSharesPut_NFS.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesPut_NFS.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_put_paid_bursting.py b/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_put_paid_bursting.py new file mode 100644 index 000000000000..8949a338386f --- /dev/null +++ b/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_put_paid_bursting.py @@ -0,0 +1,52 @@ +# 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. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.storage import StorageManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-storage +# USAGE + python file_shares_put_paid_bursting.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = StorageManagementClient( + credential=DefaultAzureCredential(), + subscription_id="{subscription-id}", + ) + + response = client.file_shares.create( + resource_group_name="res346", + account_name="sto666", + share_name="share1235", + file_share={ + "properties": { + "fileSharePaidBursting": { + "paidBurstingEnabled": True, + "paidBurstingMaxBandwidthMibps": 10340, + "paidBurstingMaxIops": 102400, + } + } + }, + ) + print(response) + + +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesPut_PaidBursting.json +if __name__ == "__main__": + main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_put_provisioned_v2.py b/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_put_provisioned_v2.py new file mode 100644 index 000000000000..6573f3ffe423 --- /dev/null +++ b/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_put_provisioned_v2.py @@ -0,0 +1,44 @@ +# 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. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.storage import StorageManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-storage +# USAGE + python file_shares_put_provisioned_v2.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = StorageManagementClient( + credential=DefaultAzureCredential(), + subscription_id="{subscription-id}", + ) + + response = client.file_shares.create( + resource_group_name="res346", + account_name="sto666", + share_name="share1235", + file_share={"properties": {"provisionedBandwidthMibps": 200, "provisionedIops": 5000, "shareQuota": 100}}, + ) + print(response) + + +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesPut_ProvisionedV2.json +if __name__ == "__main__": + main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_restore.py b/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_restore.py index 3b9c653ac806..1d0a23e18102 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_restore.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/file_shares_restore.py @@ -38,6 +38,6 @@ def main(): ) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/FileSharesRestore.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesRestore.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/local_user_create.py b/sdk/storage/azure-mgmt-storage/generated_samples/local_user_create.py index 43cb7d7dab80..74c91178a686 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/local_user_create.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/local_user_create.py @@ -51,6 +51,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/LocalUserCreate.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/LocalUserCreate.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/local_user_create_nf_sv3_enabled.py b/sdk/storage/azure-mgmt-storage/generated_samples/local_user_create_nf_sv3_enabled.py index 0a0865f9c524..273bfa1a00eb 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/local_user_create_nf_sv3_enabled.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/local_user_create_nf_sv3_enabled.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/LocalUserCreateNFSv3Enabled.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/LocalUserCreateNFSv3Enabled.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/local_user_delete.py b/sdk/storage/azure-mgmt-storage/generated_samples/local_user_delete.py index 83e8b8f8fa5b..8479544f44b0 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/local_user_delete.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/local_user_delete.py @@ -37,6 +37,6 @@ def main(): ) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/LocalUserDelete.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/LocalUserDelete.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/local_user_get.py b/sdk/storage/azure-mgmt-storage/generated_samples/local_user_get.py index c05559860406..28ac9651483b 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/local_user_get.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/local_user_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/LocalUserGet.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/LocalUserGet.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/local_user_list_keys.py b/sdk/storage/azure-mgmt-storage/generated_samples/local_user_list_keys.py index 2600b58407e7..7569baca5ef8 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/local_user_list_keys.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/local_user_list_keys.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/LocalUserListKeys.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/LocalUserListKeys.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/local_user_regenerate_password.py b/sdk/storage/azure-mgmt-storage/generated_samples/local_user_regenerate_password.py index f28f54ceb654..929ba87944dc 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/local_user_regenerate_password.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/local_user_regenerate_password.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/LocalUserRegeneratePassword.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/LocalUserRegeneratePassword.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/local_user_update.py b/sdk/storage/azure-mgmt-storage/generated_samples/local_user_update.py index b8594abb640e..441a6e739df3 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/local_user_update.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/local_user_update.py @@ -50,6 +50,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/LocalUserUpdate.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/LocalUserUpdate.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/local_users_list.py b/sdk/storage/azure-mgmt-storage/generated_samples/local_users_list.py index 1b5668769d98..e87a6bbd3f83 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/local_users_list.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/local_users_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/LocalUsersList.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/LocalUsersList.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/local_users_list_nf_sv3_enabled.py b/sdk/storage/azure-mgmt-storage/generated_samples/local_users_list_nf_sv3_enabled.py index 432234d5f5e8..be998305a0e0 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/local_users_list_nf_sv3_enabled.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/local_users_list_nf_sv3_enabled.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/LocalUsersListNFSv3Enabled.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/LocalUsersListNFSv3Enabled.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/network_security_perimeter_configuration_get.py b/sdk/storage/azure-mgmt-storage/generated_samples/network_security_perimeter_configuration_get.py index 79c700d56bf9..1cfc79b225ec 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/network_security_perimeter_configuration_get.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/network_security_perimeter_configuration_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/NetworkSecurityPerimeterConfigurationGet.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/NetworkSecurityPerimeterConfigurationGet.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/network_security_perimeter_configuration_list.py b/sdk/storage/azure-mgmt-storage/generated_samples/network_security_perimeter_configuration_list.py index 6ac0f53f55b7..5caad662fd6d 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/network_security_perimeter_configuration_list.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/network_security_perimeter_configuration_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/NetworkSecurityPerimeterConfigurationList.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/NetworkSecurityPerimeterConfigurationList.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/network_security_perimeter_configuration_reconcile.py b/sdk/storage/azure-mgmt-storage/generated_samples/network_security_perimeter_configuration_reconcile.py index dd3d8ef7ee24..a604c2542df9 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/network_security_perimeter_configuration_reconcile.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/network_security_perimeter_configuration_reconcile.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/NetworkSecurityPerimeterConfigurationReconcile.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/NetworkSecurityPerimeterConfigurationReconcile.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/nfs_v3_account_create.py b/sdk/storage/azure-mgmt-storage/generated_samples/nfs_v3_account_create.py index caa611262e73..73154c7a47e8 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/nfs_v3_account_create.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/nfs_v3_account_create.py @@ -58,6 +58,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/NfsV3AccountCreate.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/NfsV3AccountCreate.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/object_level_worm_container_migration.py b/sdk/storage/azure-mgmt-storage/generated_samples/object_level_worm_container_migration.py index 26d30a90e301..e5dd38701b57 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/object_level_worm_container_migration.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/object_level_worm_container_migration.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/ObjectLevelWormContainerMigration.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ObjectLevelWormContainerMigration.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/operations_list.py b/sdk/storage/azure-mgmt-storage/generated_samples/operations_list.py index 84a6d96cb7ad..2fa3ac0412ba 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/operations_list.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/operations_list.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/OperationsList.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/OperationsList.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/queue_operation_delete.py b/sdk/storage/azure-mgmt-storage/generated_samples/queue_operation_delete.py index eba135f88343..441b239d0ea5 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/queue_operation_delete.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/queue_operation_delete.py @@ -37,6 +37,6 @@ def main(): ) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/QueueOperationDelete.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/QueueOperationDelete.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/queue_operation_get.py b/sdk/storage/azure-mgmt-storage/generated_samples/queue_operation_get.py index 153545cb62af..e1ca670d98cd 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/queue_operation_get.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/queue_operation_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/QueueOperationGet.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/QueueOperationGet.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/queue_operation_list.py b/sdk/storage/azure-mgmt-storage/generated_samples/queue_operation_list.py index 215a93cc2d12..3503ad287d4d 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/queue_operation_list.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/queue_operation_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/QueueOperationList.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/QueueOperationList.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/queue_operation_put_with_metadata.py b/sdk/storage/azure-mgmt-storage/generated_samples/queue_operation_put_with_metadata.py index 73a331a0c6d3..6c34dc0679a9 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/queue_operation_put_with_metadata.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/queue_operation_put_with_metadata.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/QueueOperationPutWithMetadata.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/QueueOperationPutWithMetadata.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/queue_services_get.py b/sdk/storage/azure-mgmt-storage/generated_samples/queue_services_get.py index c2896553fd57..3934b2c3e611 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/queue_services_get.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/queue_services_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/QueueServicesGet.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/QueueServicesGet.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/queue_services_list.py b/sdk/storage/azure-mgmt-storage/generated_samples/queue_services_list.py index f5e00b2d8e63..d63f2c9666fc 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/queue_services_list.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/queue_services_list.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/QueueServicesList.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/QueueServicesList.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/queue_services_put.py b/sdk/storage/azure-mgmt-storage/generated_samples/queue_services_put.py index cc31e31b12a4..9c8bc851e4df 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/queue_services_put.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/queue_services_put.py @@ -66,6 +66,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/QueueServicesPut.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/QueueServicesPut.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/sku_list.py b/sdk/storage/azure-mgmt-storage/generated_samples/sku_list.py index d1eb3e5734ca..e74c2d835ff0 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/sku_list.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/sku_list.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/SKUList.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/SKUList.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_abort_hierarchical_namespace_migration.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_abort_hierarchical_namespace_migration.py index 98bac60a5ece..686c827c1779 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_abort_hierarchical_namespace_migration.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_abort_hierarchical_namespace_migration.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountAbortHierarchicalNamespaceMigration.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountAbortHierarchicalNamespaceMigration.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_check_name_availability.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_check_name_availability.py index ec486992536a..49a1fc49d54b 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_check_name_availability.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_check_name_availability.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountCheckNameAvailability.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountCheckNameAvailability.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create.py index fe876827ede1..f733f1548581 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create.py @@ -67,6 +67,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountCreate.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountCreate.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_allowed_copy_scope_to_aad.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_allowed_copy_scope_to_aad.py index 19444d1f899e..9a408a57b9ac 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_allowed_copy_scope_to_aad.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_allowed_copy_scope_to_aad.py @@ -65,6 +65,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountCreateAllowedCopyScopeToAAD.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountCreateAllowedCopyScopeToAAD.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_allowed_copy_scope_to_private_link.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_allowed_copy_scope_to_private_link.py index 08f90a1c6544..82fc5f2aa6fa 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_allowed_copy_scope_to_private_link.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_allowed_copy_scope_to_private_link.py @@ -65,6 +65,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountCreateAllowedCopyScopeToPrivateLink.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountCreateAllowedCopyScopeToPrivateLink.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_disallow_public_network_access.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_disallow_public_network_access.py index 93639ce935c8..ca6766000310 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_disallow_public_network_access.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_disallow_public_network_access.py @@ -66,6 +66,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountCreateDisallowPublicNetworkAccess.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountCreateDisallowPublicNetworkAccess.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_dns_endpoint_type_to_azure_dns_zone.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_dns_endpoint_type_to_azure_dns_zone.py index e38367dc440e..07abd9ea8879 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_dns_endpoint_type_to_azure_dns_zone.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_dns_endpoint_type_to_azure_dns_zone.py @@ -68,6 +68,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountCreateDnsEndpointTypeToAzureDnsZone.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountCreateDnsEndpointTypeToAzureDnsZone.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_dns_endpoint_type_to_standard.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_dns_endpoint_type_to_standard.py index 3439488f08f8..1c4ef4ef1d58 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_dns_endpoint_type_to_standard.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_dns_endpoint_type_to_standard.py @@ -68,6 +68,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountCreateDnsEndpointTypeToStandard.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountCreateDnsEndpointTypeToStandard.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_enable_public_network_access.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_enable_public_network_access.py index d15dea0f97e8..4b0558373565 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_enable_public_network_access.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_enable_public_network_access.py @@ -66,6 +66,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountCreateEnablePublicNetworkAccess.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountCreateEnablePublicNetworkAccess.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_object_replication_policy_on_destination.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_object_replication_policy_on_destination.py index 675777de93f3..43e26354b4b8 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_object_replication_policy_on_destination.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_object_replication_policy_on_destination.py @@ -37,6 +37,7 @@ def main(): properties={ "properties": { "destinationAccount": "dst112", + "metrics": {"enabled": True}, "rules": [ { "destinationContainer": "dcont139", @@ -51,6 +52,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountCreateObjectReplicationPolicyOnDestination.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountCreateObjectReplicationPolicyOnDestination.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_object_replication_policy_on_source.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_object_replication_policy_on_source.py index 6ae93817bdb1..d1020148e90d 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_object_replication_policy_on_source.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_object_replication_policy_on_source.py @@ -37,6 +37,7 @@ def main(): properties={ "properties": { "destinationAccount": "dst112", + "metrics": {"enabled": True}, "rules": [ { "destinationContainer": "dcont139", @@ -52,6 +53,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountCreateObjectReplicationPolicyOnSource.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountCreateObjectReplicationPolicyOnSource.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_premium_block_blob_storage.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_premium_block_blob_storage.py index 6c55ac3fe5a7..1638b1394ae9 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_premium_block_blob_storage.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_premium_block_blob_storage.py @@ -55,6 +55,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountCreatePremiumBlockBlobStorage.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountCreatePremiumBlockBlobStorage.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_user_assigned_encryption_identity_with_cmk.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_user_assigned_encryption_identity_with_cmk.py index bd0304976cf7..68aab268d927 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_user_assigned_encryption_identity_with_cmk.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_user_assigned_encryption_identity_with_cmk.py @@ -65,6 +65,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountCreateUserAssignedEncryptionIdentityWithCMK.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountCreateUserAssignedEncryptionIdentityWithCMK.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_user_assigned_identity_with_federated_identity_client_id.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_user_assigned_identity_with_federated_identity_client_id.py index 43455df9c321..9c976426b87e 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_user_assigned_identity_with_federated_identity_client_id.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_user_assigned_identity_with_federated_identity_client_id.py @@ -66,6 +66,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountCreateUserAssignedIdentityWithFederatedIdentityClientId.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountCreateUserAssignedIdentityWithFederatedIdentityClientId.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_with_immutability_policy.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_with_immutability_policy.py index 12bbc48cebc4..fe21a4a39311 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_with_immutability_policy.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_create_with_immutability_policy.py @@ -53,6 +53,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountCreateWithImmutabilityPolicy.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountCreateWithImmutabilityPolicy.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_delete.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_delete.py index 4bf60089ef86..2635e16da7ae 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_delete.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_delete.py @@ -36,6 +36,6 @@ def main(): ) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountDelete.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountDelete.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_delete_blob_inventory_policy.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_delete_blob_inventory_policy.py index be3e8b2a7e19..8dd29463a70d 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_delete_blob_inventory_policy.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_delete_blob_inventory_policy.py @@ -37,6 +37,6 @@ def main(): ) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountDeleteBlobInventoryPolicy.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountDeleteBlobInventoryPolicy.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_delete_management_policy.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_delete_management_policy.py index a01776aa7558..38bad5152075 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_delete_management_policy.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_delete_management_policy.py @@ -37,6 +37,6 @@ def main(): ) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountDeleteManagementPolicy.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountDeleteManagementPolicy.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_delete_object_replication_policy.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_delete_object_replication_policy.py index 6c97fb695bb7..411679333417 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_delete_object_replication_policy.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_delete_object_replication_policy.py @@ -37,6 +37,6 @@ def main(): ) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountDeleteObjectReplicationPolicy.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountDeleteObjectReplicationPolicy.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_delete_private_endpoint_connection.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_delete_private_endpoint_connection.py index a69178caf0a4..1bdd9ccc28b5 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_delete_private_endpoint_connection.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_delete_private_endpoint_connection.py @@ -37,6 +37,6 @@ def main(): ) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountDeletePrivateEndpointConnection.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountDeletePrivateEndpointConnection.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_enable_ad.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_enable_ad.py index 04417d9ba1b9..55252d5124b3 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_enable_ad.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_enable_ad.py @@ -54,6 +54,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountEnableAD.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountEnableAD.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_enable_cmk.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_enable_cmk.py index 57601d16323d..ccadfb7db3cf 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_enable_cmk.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_enable_cmk.py @@ -53,6 +53,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountEnableCMK.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountEnableCMK.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_encryption_scope_list.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_encryption_scope_list.py index 79d9cf443805..3e902cbbd008 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_encryption_scope_list.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_encryption_scope_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountEncryptionScopeList.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountEncryptionScopeList.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_failover.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_failover.py index bcc0d5733f24..8820b2c3f4fa 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_failover.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_failover.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountFailover.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountFailover.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_failover_planned.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_failover_planned.py index b2a4313ed476..d1e91a1ea0d1 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_failover_planned.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_failover_planned.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountFailoverPlanned.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountFailoverPlanned.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_async_sku_conversion_status.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_async_sku_conversion_status.py index 1775bbfa7e09..ec8ae5a3eedf 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_async_sku_conversion_status.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_async_sku_conversion_status.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountGetAsyncSkuConversionStatus.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetAsyncSkuConversionStatus.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_blob_inventory_policy.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_blob_inventory_policy.py index c2c2c1b2bb85..5afd3104a50c 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_blob_inventory_policy.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_blob_inventory_policy.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountGetBlobInventoryPolicy.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetBlobInventoryPolicy.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_encryption_scope.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_encryption_scope.py index 83cc5b2d8c54..31ac805e9ad7 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_encryption_scope.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_encryption_scope.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountGetEncryptionScope.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetEncryptionScope.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_management_policy.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_management_policy.py index 0a15f9fa08db..030ce2787b9a 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_management_policy.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_management_policy.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountGetManagementPolicy.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetManagementPolicy.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_migration_failed.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_migration_failed.py index ba131de38952..4ecf7e78f19d 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_migration_failed.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_migration_failed.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountGetMigrationFailed.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetMigrationFailed.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_migration_in_progress.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_migration_in_progress.py index b82d2cd15d14..96a97f52ed23 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_migration_in_progress.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_migration_in_progress.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountGetMigrationInProgress.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetMigrationInProgress.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_object_replication_policy.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_object_replication_policy.py index 524c7d62ce11..19ee1b90a73f 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_object_replication_policy.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_object_replication_policy.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountGetObjectReplicationPolicy.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetObjectReplicationPolicy.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_private_endpoint_connection.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_private_endpoint_connection.py index 9567ba8cff60..07dba2bfc318 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_private_endpoint_connection.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_private_endpoint_connection.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountGetPrivateEndpointConnection.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetPrivateEndpointConnection.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_properties.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_properties.py index 2a138b095f71..de0bcd922e66 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_properties.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_properties.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountGetProperties.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetProperties.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_properties_cmk_enabled.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_properties_cmk_enabled.py index df8e059c73d0..169e47315325 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_properties_cmk_enabled.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_properties_cmk_enabled.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountGetPropertiesCMKEnabled.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetPropertiesCMKEnabled.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_properties_cmk_version_expiration_time.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_properties_cmk_version_expiration_time.py index 502c8f725b1b..c711d9229191 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_properties_cmk_version_expiration_time.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_properties_cmk_version_expiration_time.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountGetPropertiesCMKVersionExpirationTime.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetPropertiesCMKVersionExpirationTime.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_properties_geo_replication_statscan_failover_false.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_properties_geo_replication_statscan_failover_false.py index eaafafca11e7..5514b6d3e14a 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_properties_geo_replication_statscan_failover_false.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_properties_geo_replication_statscan_failover_false.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountGetPropertiesGeoReplicationStatscanFailoverFalse.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetPropertiesGeoReplicationStatscanFailoverFalse.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_properties_geo_replication_statscan_failover_true.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_properties_geo_replication_statscan_failover_true.py index 45f63690a8cd..f439afe5dc86 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_properties_geo_replication_statscan_failover_true.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_get_properties_geo_replication_statscan_failover_true.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountGetPropertiesGeoReplicationStatscanFailoverTrue.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetPropertiesGeoReplicationStatscanFailoverTrue.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_hierarchical_namespace_migration.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_hierarchical_namespace_migration.py index f34d5c6ed359..7a34b0e22f33 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_hierarchical_namespace_migration.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_hierarchical_namespace_migration.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountHierarchicalNamespaceMigration.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountHierarchicalNamespaceMigration.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_list.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_list.py index 1b41c7b2d35e..806f0b960e55 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_list.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_list.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountList.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountList.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_list_account_sas.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_list_account_sas.py index b338b076ae4b..9a36a5fc1dcf 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_list_account_sas.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_list_account_sas.py @@ -46,6 +46,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountListAccountSAS.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountListAccountSAS.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_list_blob_inventory_policy.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_list_blob_inventory_policy.py index ee849ce0f080..95cc452a8ddc 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_list_blob_inventory_policy.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_list_blob_inventory_policy.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountListBlobInventoryPolicy.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountListBlobInventoryPolicy.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_list_by_resource_group.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_list_by_resource_group.py index 270e9314b75d..dc9dd906ce34 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_list_by_resource_group.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_list_by_resource_group.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountListByResourceGroup.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_list_keys.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_list_keys.py index b8a0a2130ab7..38d63dc8a98a 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_list_keys.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_list_keys.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountListKeys.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountListKeys.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_list_location_usage.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_list_location_usage.py index 92db211ea846..114f765d9852 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_list_location_usage.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_list_location_usage.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountListLocationUsage.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountListLocationUsage.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_list_object_replication_policies.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_list_object_replication_policies.py index 3046ffcc93ec..26a25353d5fa 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_list_object_replication_policies.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_list_object_replication_policies.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountListObjectReplicationPolicies.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountListObjectReplicationPolicies.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_list_private_endpoint_connections.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_list_private_endpoint_connections.py index 36aac94511c3..cf6d871e0902 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_list_private_endpoint_connections.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_list_private_endpoint_connections.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountListPrivateEndpointConnections.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountListPrivateEndpointConnections.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_list_private_link_resources.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_list_private_link_resources.py index 599c76d24135..863d18a72c37 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_list_private_link_resources.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_list_private_link_resources.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountListPrivateLinkResources.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountListPrivateLinkResources.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_list_service_sas.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_list_service_sas.py index 29c2ddcb394f..fe2114447cfe 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_list_service_sas.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_list_service_sas.py @@ -43,6 +43,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountListServiceSAS.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountListServiceSAS.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_patch_encryption_scope.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_patch_encryption_scope.py index d5d8b9b52edf..4f0003e182da 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_patch_encryption_scope.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_patch_encryption_scope.py @@ -44,6 +44,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountPatchEncryptionScope.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountPatchEncryptionScope.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_post_migration.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_post_migration.py index 9b2d1283518a..7334a48cec02 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_post_migration.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_post_migration.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountPostMigration.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountPostMigration.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_put_encryption_scope_with_infrastructure_encryption.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_put_encryption_scope_with_infrastructure_encryption.py index 28f4204f2523..77ca92c7ad6b 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_put_encryption_scope_with_infrastructure_encryption.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_put_encryption_scope_with_infrastructure_encryption.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountPutEncryptionScopeWithInfrastructureEncryption.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountPutEncryptionScopeWithInfrastructureEncryption.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_put_private_endpoint_connection.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_put_private_endpoint_connection.py index 1a72371f8866..647702c4594f 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_put_private_endpoint_connection.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_put_private_endpoint_connection.py @@ -41,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountPutPrivateEndpointConnection.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountPutPrivateEndpointConnection.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_regenerate_kerb_key.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_regenerate_kerb_key.py index 92bc80813588..3f7c743ebef8 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_regenerate_kerb_key.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_regenerate_kerb_key.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountRegenerateKerbKey.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountRegenerateKerbKey.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_regenerate_key.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_regenerate_key.py index bd5ada38af33..a07da3c21f4a 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_regenerate_key.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_regenerate_key.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountRegenerateKey.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountRegenerateKey.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_revoke_user_delegation_keys.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_revoke_user_delegation_keys.py index b2294cdf435e..175cbb236c32 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_revoke_user_delegation_keys.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_revoke_user_delegation_keys.py @@ -36,6 +36,6 @@ def main(): ) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountRevokeUserDelegationKeys.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountRevokeUserDelegationKeys.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_set_blob_inventory_policy.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_set_blob_inventory_policy.py index 689f0d2c61a9..8b2fa9b6cabd 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_set_blob_inventory_policy.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_set_blob_inventory_policy.py @@ -100,6 +100,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountSetBlobInventoryPolicy.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountSetBlobInventoryPolicy.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_set_blob_inventory_policy_include_delete_and_new_schema_for_hns_account.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_set_blob_inventory_policy_include_delete_and_new_schema_for_hns_account.py index b9eff00f835f..ebb9b962411b 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_set_blob_inventory_policy_include_delete_and_new_schema_for_hns_account.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_set_blob_inventory_policy_include_delete_and_new_schema_for_hns_account.py @@ -118,6 +118,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountSetBlobInventoryPolicyIncludeDeleteAndNewSchemaForHnsAccount.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountSetBlobInventoryPolicyIncludeDeleteAndNewSchemaForHnsAccount.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_set_blob_inventory_policy_include_delete_and_new_schema_for_non_hns_account.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_set_blob_inventory_policy_include_delete_and_new_schema_for_non_hns_account.py index 3657faefcfe2..fab5bdf70f60 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_set_blob_inventory_policy_include_delete_and_new_schema_for_non_hns_account.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_set_blob_inventory_policy_include_delete_and_new_schema_for_non_hns_account.py @@ -117,6 +117,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountSetBlobInventoryPolicyIncludeDeleteAndNewSchemaForNonHnsAccount.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountSetBlobInventoryPolicyIncludeDeleteAndNewSchemaForNonHnsAccount.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_set_management_policy.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_set_management_policy.py index 0b3141493719..7bdeee709651 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_set_management_policy.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_set_management_policy.py @@ -84,6 +84,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountSetManagementPolicy.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountSetManagementPolicy.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_set_management_policy_base_blob_days_after_creation_actions.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_set_management_policy_base_blob_days_after_creation_actions.py index e15862b56b47..4845112231c1 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_set_management_policy_base_blob_days_after_creation_actions.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_set_management_policy_base_blob_days_after_creation_actions.py @@ -61,6 +61,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountSetManagementPolicy_BaseBlobDaysAfterCreationActions.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountSetManagementPolicy_BaseBlobDaysAfterCreationActions.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_set_management_policy_cold_tier_actions.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_set_management_policy_cold_tier_actions.py index 28726eb18d60..9f347ba724e5 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_set_management_policy_cold_tier_actions.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_set_management_policy_cold_tier_actions.py @@ -70,6 +70,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountSetManagementPolicyColdTierActions.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountSetManagementPolicyColdTierActions.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_set_management_policy_for_block_and_append_blobs.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_set_management_policy_for_block_and_append_blobs.py index 26c5dd983561..3da4609a60ce 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_set_management_policy_for_block_and_append_blobs.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_set_management_policy_for_block_and_append_blobs.py @@ -62,6 +62,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountSetManagementPolicyForBlockAndAppendBlobs.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountSetManagementPolicyForBlockAndAppendBlobs.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_set_management_policy_hot_tier_actions.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_set_management_policy_hot_tier_actions.py index 8e5e8b0ca450..8496ffbcfe29 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_set_management_policy_hot_tier_actions.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_set_management_policy_hot_tier_actions.py @@ -59,6 +59,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountSetManagementPolicyHotTierActions.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountSetManagementPolicyHotTierActions.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_set_management_policy_last_access_time_based_blob_actions.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_set_management_policy_last_access_time_based_blob_actions.py index dd2f42004d72..94b8387f3943 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_set_management_policy_last_access_time_based_blob_actions.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_set_management_policy_last_access_time_based_blob_actions.py @@ -63,6 +63,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountSetManagementPolicy_LastAccessTimeBasedBlobActions.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountSetManagementPolicy_LastAccessTimeBasedBlobActions.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_set_management_policy_last_tier_change_time_actions.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_set_management_policy_last_tier_change_time_actions.py index c31c7e4a3d2d..59f7f2b93fdb 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_set_management_policy_last_tier_change_time_actions.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_set_management_policy_last_tier_change_time_actions.py @@ -76,6 +76,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountSetManagementPolicy_LastTierChangeTimeActions.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountSetManagementPolicy_LastTierChangeTimeActions.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_set_management_policy_with_snapshot_and_version.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_set_management_policy_with_snapshot_and_version.py index 836ef1da3eb8..b3ec41c76a29 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_set_management_policy_with_snapshot_and_version.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_set_management_policy_with_snapshot_and_version.py @@ -71,6 +71,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountSetManagementPolicyWithSnapshotAndVersion.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountSetManagementPolicyWithSnapshotAndVersion.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_update.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_update.py index d1d71d1ea0bd..8dd8159850a4 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_update.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_update.py @@ -71,6 +71,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountUpdate.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountUpdate.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_update_allowed_copy_scope_to_aad.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_update_allowed_copy_scope_to_aad.py index 6e083894da43..144e0e71abe4 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_update_allowed_copy_scope_to_aad.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_update_allowed_copy_scope_to_aad.py @@ -68,6 +68,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountUpdateAllowedCopyScopeToAAD.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountUpdateAllowedCopyScopeToAAD.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_update_disable_public_network_access.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_update_disable_public_network_access.py index a1fbf1dc28d6..05156fc1bb6c 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_update_disable_public_network_access.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_update_disable_public_network_access.py @@ -68,6 +68,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountUpdateDisablePublicNetworkAccess.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountUpdateDisablePublicNetworkAccess.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_update_object_replication_policy_on_destination.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_update_object_replication_policy_on_destination.py index 89fbdb7df61f..3acbd45eaa41 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_update_object_replication_policy_on_destination.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_update_object_replication_policy_on_destination.py @@ -37,6 +37,7 @@ def main(): properties={ "properties": { "destinationAccount": "dst112", + "metrics": {"enabled": True}, "rules": [ { "destinationContainer": "dcont139", @@ -53,6 +54,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountUpdateObjectReplicationPolicyOnDestination.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountUpdateObjectReplicationPolicyOnDestination.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_update_object_replication_policy_on_source.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_update_object_replication_policy_on_source.py index 84dc93f9fe68..317919a850cf 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_update_object_replication_policy_on_source.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_update_object_replication_policy_on_source.py @@ -37,6 +37,7 @@ def main(): properties={ "properties": { "destinationAccount": "dst112", + "metrics": {"enabled": True}, "rules": [ { "destinationContainer": "dcont139", @@ -57,6 +58,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountUpdateObjectReplicationPolicyOnSource.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountUpdateObjectReplicationPolicyOnSource.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_update_user_assigned_encryption_identity_with_cmk.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_update_user_assigned_encryption_identity_with_cmk.py index 03d8e0bf9fee..7efd80001d49 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_update_user_assigned_encryption_identity_with_cmk.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_update_user_assigned_encryption_identity_with_cmk.py @@ -64,6 +64,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountUpdateUserAssignedEncryptionIdentityWithCMK.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountUpdateUserAssignedEncryptionIdentityWithCMK.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_update_user_assigned_identity_with_federated_identity_client_id.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_update_user_assigned_identity_with_federated_identity_client_id.py index c5ed23287d5b..bc1fdb679deb 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_update_user_assigned_identity_with_federated_identity_client_id.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_update_user_assigned_identity_with_federated_identity_client_id.py @@ -65,6 +65,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountUpdateUserAssignedIdentityWithFederatedIdentityClientId.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountUpdateUserAssignedIdentityWithFederatedIdentityClientId.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_update_with_immutability_policy.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_update_with_immutability_policy.py index 762dc70c8097..08d00b49244d 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_update_with_immutability_policy.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_account_update_with_immutability_policy.py @@ -49,6 +49,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountUpdateWithImmutabilityPolicy.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountUpdateWithImmutabilityPolicy.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_task_assignments_crud/delete_storage_task_assignment.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_task_assignments_crud/delete_storage_task_assignment.py index 8582d8da9440..0e7fb70f9fe8 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_task_assignments_crud/delete_storage_task_assignment.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_task_assignments_crud/delete_storage_task_assignment.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/storageTaskAssignmentsCrud/DeleteStorageTaskAssignment.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/storageTaskAssignmentsCrud/DeleteStorageTaskAssignment.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_task_assignments_crud/get_storage_task_assignment.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_task_assignments_crud/get_storage_task_assignment.py index 9ebb2e93f17a..b98f927ee36b 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_task_assignments_crud/get_storage_task_assignment.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_task_assignments_crud/get_storage_task_assignment.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/storageTaskAssignmentsCrud/GetStorageTaskAssignment.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/storageTaskAssignmentsCrud/GetStorageTaskAssignment.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_task_assignments_crud/patch_storage_task_assignment.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_task_assignments_crud/patch_storage_task_assignment.py index c5972a31222d..7a276b10d6e1 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_task_assignments_crud/patch_storage_task_assignment.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_task_assignments_crud/patch_storage_task_assignment.py @@ -49,6 +49,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/storageTaskAssignmentsCrud/PatchStorageTaskAssignment.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/storageTaskAssignmentsCrud/PatchStorageTaskAssignment.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_task_assignments_crud/put_storage_task_assignment.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_task_assignments_crud/put_storage_task_assignment.py index c855d0564a03..bdfe12219525 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_task_assignments_crud/put_storage_task_assignment.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_task_assignments_crud/put_storage_task_assignment.py @@ -50,6 +50,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/storageTaskAssignmentsCrud/PutStorageTaskAssignment.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/storageTaskAssignmentsCrud/PutStorageTaskAssignment.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_task_assignments_crud/put_storage_task_assignment_required_properties.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_task_assignments_crud/put_storage_task_assignment_required_properties.py index 70f1a6e58584..d2d2661f845e 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_task_assignments_crud/put_storage_task_assignment_required_properties.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_task_assignments_crud/put_storage_task_assignment_required_properties.py @@ -49,6 +49,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/storageTaskAssignmentsCrud/PutStorageTaskAssignmentRequiredProperties.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/storageTaskAssignmentsCrud/PutStorageTaskAssignmentRequiredProperties.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_task_assignments_list/list_storage_task_assignment_instances_report_summary.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_task_assignments_list/list_storage_task_assignment_instances_report_summary.py index c8aa32b58dec..bc1e7392ffd2 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_task_assignments_list/list_storage_task_assignment_instances_report_summary.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_task_assignments_list/list_storage_task_assignment_instances_report_summary.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/storageTaskAssignmentsList/ListStorageTaskAssignmentInstancesReportSummary.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/storageTaskAssignmentsList/ListStorageTaskAssignmentInstancesReportSummary.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_task_assignments_list/list_storage_task_assignments_for_account.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_task_assignments_list/list_storage_task_assignments_for_account.py index a51ec649b012..f21cc3a172dc 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_task_assignments_list/list_storage_task_assignments_for_account.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_task_assignments_list/list_storage_task_assignments_for_account.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/storageTaskAssignmentsList/ListStorageTaskAssignmentsForAccount.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/storageTaskAssignmentsList/ListStorageTaskAssignmentsForAccount.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/storage_task_assignments_list/list_storage_task_assignments_instances_report_summary.py b/sdk/storage/azure-mgmt-storage/generated_samples/storage_task_assignments_list/list_storage_task_assignments_instances_report_summary.py index 9a7284368335..3e8c64496e27 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/storage_task_assignments_list/list_storage_task_assignments_instances_report_summary.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/storage_task_assignments_list/list_storage_task_assignments_instances_report_summary.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/storageTaskAssignmentsList/ListStorageTaskAssignmentsInstancesReportSummary.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/storageTaskAssignmentsList/ListStorageTaskAssignmentsInstancesReportSummary.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/table_operation_delete.py b/sdk/storage/azure-mgmt-storage/generated_samples/table_operation_delete.py index 20f391e482ed..5906302c2e1f 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/table_operation_delete.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/table_operation_delete.py @@ -37,6 +37,6 @@ def main(): ) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/TableOperationDelete.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/TableOperationDelete.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/table_operation_get.py b/sdk/storage/azure-mgmt-storage/generated_samples/table_operation_get.py index e9cc81e2c8b9..348c33d533de 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/table_operation_get.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/table_operation_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/TableOperationGet.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/TableOperationGet.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/table_operation_list.py b/sdk/storage/azure-mgmt-storage/generated_samples/table_operation_list.py index b8596e1e79cb..baf81313e821 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/table_operation_list.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/table_operation_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/TableOperationList.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/TableOperationList.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/table_operation_patch.py b/sdk/storage/azure-mgmt-storage/generated_samples/table_operation_patch.py index bfeb6c21821b..fbc0196a0f0f 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/table_operation_patch.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/table_operation_patch.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/TableOperationPatch.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/TableOperationPatch.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/table_operation_put.py b/sdk/storage/azure-mgmt-storage/generated_samples/table_operation_put.py index 1e311f5573ac..4087c7673373 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/table_operation_put.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/table_operation_put.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/TableOperationPut.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/TableOperationPut.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/table_operation_put_or_patch_acls.py b/sdk/storage/azure-mgmt-storage/generated_samples/table_operation_put_or_patch_acls.py index 034b75e8530b..c9055224d2fe 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/table_operation_put_or_patch_acls.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/table_operation_put_or_patch_acls.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/TableOperationPutOrPatchAcls.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/TableOperationPutOrPatchAcls.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/table_services_get.py b/sdk/storage/azure-mgmt-storage/generated_samples/table_services_get.py index e7042624a211..a483b360c535 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/table_services_get.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/table_services_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/TableServicesGet.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/TableServicesGet.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/table_services_list.py b/sdk/storage/azure-mgmt-storage/generated_samples/table_services_list.py index b45d936c56b4..db87eb3768c7 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/table_services_list.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/table_services_list.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/TableServicesList.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/TableServicesList.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_samples/table_services_put.py b/sdk/storage/azure-mgmt-storage/generated_samples/table_services_put.py index 2c9779137b51..5c735bdda100 100644 --- a/sdk/storage/azure-mgmt-storage/generated_samples/table_services_put.py +++ b/sdk/storage/azure-mgmt-storage/generated_samples/table_services_put.py @@ -66,6 +66,6 @@ def main(): print(response) -# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/TableServicesPut.json +# x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/TableServicesPut.json if __name__ == "__main__": main() diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_blob_containers_operations.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_blob_containers_operations.py index e2a1ff10ee3f..353314ba875a 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_blob_containers_operations.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_blob_containers_operations.py @@ -24,7 +24,7 @@ def test_blob_containers_list(self, resource_group): response = self.client.blob_containers.list( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -99,7 +99,7 @@ def test_blob_containers_create(self, resource_group): "type": "str", "version": "str", }, - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -174,7 +174,7 @@ def test_blob_containers_update(self, resource_group): "type": "str", "version": "str", }, - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -187,7 +187,7 @@ def test_blob_containers_get(self, resource_group): resource_group_name=resource_group.name, account_name="str", container_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -200,7 +200,7 @@ def test_blob_containers_delete(self, resource_group): resource_group_name=resource_group.name, account_name="str", container_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -214,7 +214,7 @@ def test_blob_containers_set_legal_hold(self, resource_group): account_name="str", container_name="str", legal_hold={"tags": ["str"], "allowProtectedAppendWritesAll": bool, "hasLegalHold": bool}, - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -228,7 +228,7 @@ def test_blob_containers_clear_legal_hold(self, resource_group): account_name="str", container_name="str", legal_hold={"tags": ["str"], "allowProtectedAppendWritesAll": bool, "hasLegalHold": bool}, - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -242,7 +242,7 @@ def test_blob_containers_create_or_update_immutability_policy(self, resource_gro account_name="str", container_name="str", immutability_policy_name="default", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -256,7 +256,7 @@ def test_blob_containers_get_immutability_policy(self, resource_group): account_name="str", container_name="str", immutability_policy_name="default", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -271,7 +271,7 @@ def test_blob_containers_delete_immutability_policy(self, resource_group): container_name="str", if_match="str", immutability_policy_name="default", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -285,7 +285,7 @@ def test_blob_containers_lock_immutability_policy(self, resource_group): account_name="str", container_name="str", if_match="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -299,7 +299,7 @@ def test_blob_containers_extend_immutability_policy(self, resource_group): account_name="str", container_name="str", if_match="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -312,7 +312,7 @@ def test_blob_containers_lease(self, resource_group): resource_group_name=resource_group.name, account_name="str", container_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -325,7 +325,7 @@ def test_blob_containers_begin_object_level_worm(self, resource_group): resource_group_name=resource_group.name, account_name="str", container_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_blob_containers_operations_async.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_blob_containers_operations_async.py index 779d53890a1c..48f5542ec93c 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_blob_containers_operations_async.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_blob_containers_operations_async.py @@ -25,7 +25,7 @@ async def test_blob_containers_list(self, resource_group): response = self.client.blob_containers.list( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -100,7 +100,7 @@ async def test_blob_containers_create(self, resource_group): "type": "str", "version": "str", }, - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -175,7 +175,7 @@ async def test_blob_containers_update(self, resource_group): "type": "str", "version": "str", }, - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -188,7 +188,7 @@ async def test_blob_containers_get(self, resource_group): resource_group_name=resource_group.name, account_name="str", container_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -201,7 +201,7 @@ async def test_blob_containers_delete(self, resource_group): resource_group_name=resource_group.name, account_name="str", container_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -215,7 +215,7 @@ async def test_blob_containers_set_legal_hold(self, resource_group): account_name="str", container_name="str", legal_hold={"tags": ["str"], "allowProtectedAppendWritesAll": bool, "hasLegalHold": bool}, - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -229,7 +229,7 @@ async def test_blob_containers_clear_legal_hold(self, resource_group): account_name="str", container_name="str", legal_hold={"tags": ["str"], "allowProtectedAppendWritesAll": bool, "hasLegalHold": bool}, - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -243,7 +243,7 @@ async def test_blob_containers_create_or_update_immutability_policy(self, resour account_name="str", container_name="str", immutability_policy_name="default", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -257,7 +257,7 @@ async def test_blob_containers_get_immutability_policy(self, resource_group): account_name="str", container_name="str", immutability_policy_name="default", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -272,7 +272,7 @@ async def test_blob_containers_delete_immutability_policy(self, resource_group): container_name="str", if_match="str", immutability_policy_name="default", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -286,7 +286,7 @@ async def test_blob_containers_lock_immutability_policy(self, resource_group): account_name="str", container_name="str", if_match="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -300,7 +300,7 @@ async def test_blob_containers_extend_immutability_policy(self, resource_group): account_name="str", container_name="str", if_match="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -313,7 +313,7 @@ async def test_blob_containers_lease(self, resource_group): resource_group_name=resource_group.name, account_name="str", container_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -327,7 +327,7 @@ async def test_blob_containers_begin_object_level_worm(self, resource_group): resource_group_name=resource_group.name, account_name="str", container_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_blob_inventory_policies_operations.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_blob_inventory_policies_operations.py index 1a59501b100e..e140e9e33a3b 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_blob_inventory_policies_operations.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_blob_inventory_policies_operations.py @@ -25,7 +25,7 @@ def test_blob_inventory_policies_get(self, resource_group): resource_group_name=resource_group.name, account_name="str", blob_inventory_policy_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -79,7 +79,7 @@ def test_blob_inventory_policies_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -92,7 +92,7 @@ def test_blob_inventory_policies_delete(self, resource_group): resource_group_name=resource_group.name, account_name="str", blob_inventory_policy_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -104,7 +104,7 @@ def test_blob_inventory_policies_list(self, resource_group): response = self.client.blob_inventory_policies.list( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_blob_inventory_policies_operations_async.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_blob_inventory_policies_operations_async.py index 6894bb0f21ed..5550d0b90e60 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_blob_inventory_policies_operations_async.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_blob_inventory_policies_operations_async.py @@ -26,7 +26,7 @@ async def test_blob_inventory_policies_get(self, resource_group): resource_group_name=resource_group.name, account_name="str", blob_inventory_policy_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -80,7 +80,7 @@ async def test_blob_inventory_policies_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -93,7 +93,7 @@ async def test_blob_inventory_policies_delete(self, resource_group): resource_group_name=resource_group.name, account_name="str", blob_inventory_policy_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -105,7 +105,7 @@ async def test_blob_inventory_policies_list(self, resource_group): response = self.client.blob_inventory_policies.list( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_blob_services_operations.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_blob_services_operations.py index 01037888d872..b49f714cc3a6 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_blob_services_operations.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_blob_services_operations.py @@ -24,7 +24,7 @@ def test_blob_services_list(self, resource_group): response = self.client.blob_services.list( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -71,7 +71,7 @@ def test_blob_services_set_service_properties(self, resource_group): "sku": {"name": "str", "tier": "str"}, "type": "str", }, - api_version="2023-05-01", + api_version="2024-01-01", blob_services_name="default", ) @@ -84,7 +84,7 @@ def test_blob_services_get_service_properties(self, resource_group): response = self.client.blob_services.get_service_properties( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", blob_services_name="default", ) diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_blob_services_operations_async.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_blob_services_operations_async.py index 7dcb3dcb783e..7f78ac3a6ff6 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_blob_services_operations_async.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_blob_services_operations_async.py @@ -25,7 +25,7 @@ async def test_blob_services_list(self, resource_group): response = self.client.blob_services.list( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -72,7 +72,7 @@ async def test_blob_services_set_service_properties(self, resource_group): "sku": {"name": "str", "tier": "str"}, "type": "str", }, - api_version="2023-05-01", + api_version="2024-01-01", blob_services_name="default", ) @@ -85,7 +85,7 @@ async def test_blob_services_get_service_properties(self, resource_group): response = await self.client.blob_services.get_service_properties( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", blob_services_name="default", ) diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_deleted_accounts_operations.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_deleted_accounts_operations.py index 0c93601d263f..ca15e8fd0c89 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_deleted_accounts_operations.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_deleted_accounts_operations.py @@ -22,7 +22,7 @@ def setup_method(self, method): @recorded_by_proxy def test_deleted_accounts_list(self, resource_group): response = self.client.deleted_accounts.list( - api_version="2023-05-01", + api_version="2024-01-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -34,7 +34,7 @@ def test_deleted_accounts_get(self, resource_group): response = self.client.deleted_accounts.get( deleted_account_name="str", location="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_deleted_accounts_operations_async.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_deleted_accounts_operations_async.py index 51438764de64..f41ba8858628 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_deleted_accounts_operations_async.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_deleted_accounts_operations_async.py @@ -23,7 +23,7 @@ def setup_method(self, method): @recorded_by_proxy_async async def test_deleted_accounts_list(self, resource_group): response = self.client.deleted_accounts.list( - api_version="2023-05-01", + api_version="2024-01-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -35,7 +35,7 @@ async def test_deleted_accounts_get(self, resource_group): response = await self.client.deleted_accounts.get( deleted_account_name="str", location="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_encryption_scopes_operations.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_encryption_scopes_operations.py index 9666c4662b16..490d16b421d7 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_encryption_scopes_operations.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_encryption_scopes_operations.py @@ -40,7 +40,7 @@ def test_encryption_scopes_put(self, resource_group): "state": "str", "type": "str", }, - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -68,7 +68,7 @@ def test_encryption_scopes_patch(self, resource_group): "state": "str", "type": "str", }, - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -81,7 +81,7 @@ def test_encryption_scopes_get(self, resource_group): resource_group_name=resource_group.name, account_name="str", encryption_scope_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -93,7 +93,7 @@ def test_encryption_scopes_list(self, resource_group): response = self.client.encryption_scopes.list( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_encryption_scopes_operations_async.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_encryption_scopes_operations_async.py index fdd1a7cb993b..6466547c9669 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_encryption_scopes_operations_async.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_encryption_scopes_operations_async.py @@ -41,7 +41,7 @@ async def test_encryption_scopes_put(self, resource_group): "state": "str", "type": "str", }, - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -69,7 +69,7 @@ async def test_encryption_scopes_patch(self, resource_group): "state": "str", "type": "str", }, - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -82,7 +82,7 @@ async def test_encryption_scopes_get(self, resource_group): resource_group_name=resource_group.name, account_name="str", encryption_scope_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -94,7 +94,7 @@ async def test_encryption_scopes_list(self, resource_group): response = self.client.encryption_scopes.list( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_file_services_operations.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_file_services_operations.py index 31c6fd576c33..680ac6365b46 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_file_services_operations.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_file_services_operations.py @@ -24,7 +24,7 @@ def test_file_services_list(self, resource_group): response = self.client.file_services.list( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -63,7 +63,7 @@ def test_file_services_set_service_properties(self, resource_group): "sku": {"name": "str", "tier": "str"}, "type": "str", }, - api_version="2023-05-01", + api_version="2024-01-01", file_services_name="default", ) @@ -76,9 +76,36 @@ def test_file_services_get_service_properties(self, resource_group): response = self.client.file_services.get_service_properties( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", file_services_name="default", ) # please add some check logic here by yourself # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_file_services_list_service_usages(self, resource_group): + response = self.client.file_services.list_service_usages( + resource_group_name=resource_group.name, + account_name="str", + api_version="2024-01-01", + file_services_name="default", + ) + result = [r for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_file_services_get_service_usage(self, resource_group): + response = self.client.file_services.get_service_usage( + resource_group_name=resource_group.name, + account_name="str", + api_version="2024-01-01", + file_services_name="default", + file_service_usages_name="default", + ) + + # please add some check logic here by yourself + # ... diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_file_services_operations_async.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_file_services_operations_async.py index 59390ce86770..bc52b1cfb7b5 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_file_services_operations_async.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_file_services_operations_async.py @@ -25,7 +25,7 @@ async def test_file_services_list(self, resource_group): response = await self.client.file_services.list( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -64,7 +64,7 @@ async def test_file_services_set_service_properties(self, resource_group): "sku": {"name": "str", "tier": "str"}, "type": "str", }, - api_version="2023-05-01", + api_version="2024-01-01", file_services_name="default", ) @@ -77,9 +77,36 @@ async def test_file_services_get_service_properties(self, resource_group): response = await self.client.file_services.get_service_properties( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", file_services_name="default", ) # please add some check logic here by yourself # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_file_services_list_service_usages(self, resource_group): + response = self.client.file_services.list_service_usages( + resource_group_name=resource_group.name, + account_name="str", + api_version="2024-01-01", + file_services_name="default", + ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_file_services_get_service_usage(self, resource_group): + response = await self.client.file_services.get_service_usage( + resource_group_name=resource_group.name, + account_name="str", + api_version="2024-01-01", + file_services_name="default", + file_service_usages_name="default", + ) + + # please add some check logic here by yourself + # ... diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_file_shares_operations.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_file_shares_operations.py index 95c9db02ae33..c41ce2263532 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_file_shares_operations.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_file_shares_operations.py @@ -24,7 +24,7 @@ def test_file_shares_list(self, resource_group): response = self.client.file_shares.list( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -45,13 +45,25 @@ def test_file_shares_create(self, resource_group): "deletedTime": "2020-02-20 00:00:00", "enabledProtocols": "str", "etag": "str", + "fileSharePaidBursting": { + "paidBurstingEnabled": bool, + "paidBurstingMaxBandwidthMibps": 0, + "paidBurstingMaxIops": 0, + }, "id": "str", + "includedBurstIops": 0, "lastModifiedTime": "2020-02-20 00:00:00", "leaseDuration": "str", "leaseState": "str", "leaseStatus": "str", + "maxBurstCreditsForIops": 0, "metadata": {"str": "str"}, "name": "str", + "nextAllowedProvisionedBandwidthDowngradeTime": "2020-02-20 00:00:00", + "nextAllowedProvisionedIopsDowngradeTime": "2020-02-20 00:00:00", + "nextAllowedQuotaDowngradeTime": "2020-02-20 00:00:00", + "provisionedBandwidthMibps": 0, + "provisionedIops": 0, "remainingRetentionDays": 0, "rootSquash": "str", "shareQuota": 0, @@ -70,7 +82,7 @@ def test_file_shares_create(self, resource_group): "type": "str", "version": "str", }, - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -91,13 +103,25 @@ def test_file_shares_update(self, resource_group): "deletedTime": "2020-02-20 00:00:00", "enabledProtocols": "str", "etag": "str", + "fileSharePaidBursting": { + "paidBurstingEnabled": bool, + "paidBurstingMaxBandwidthMibps": 0, + "paidBurstingMaxIops": 0, + }, "id": "str", + "includedBurstIops": 0, "lastModifiedTime": "2020-02-20 00:00:00", "leaseDuration": "str", "leaseState": "str", "leaseStatus": "str", + "maxBurstCreditsForIops": 0, "metadata": {"str": "str"}, "name": "str", + "nextAllowedProvisionedBandwidthDowngradeTime": "2020-02-20 00:00:00", + "nextAllowedProvisionedIopsDowngradeTime": "2020-02-20 00:00:00", + "nextAllowedQuotaDowngradeTime": "2020-02-20 00:00:00", + "provisionedBandwidthMibps": 0, + "provisionedIops": 0, "remainingRetentionDays": 0, "rootSquash": "str", "shareQuota": 0, @@ -116,7 +140,7 @@ def test_file_shares_update(self, resource_group): "type": "str", "version": "str", }, - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -129,7 +153,7 @@ def test_file_shares_get(self, resource_group): resource_group_name=resource_group.name, account_name="str", share_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -142,7 +166,7 @@ def test_file_shares_delete(self, resource_group): resource_group_name=resource_group.name, account_name="str", share_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -156,7 +180,7 @@ def test_file_shares_restore(self, resource_group): account_name="str", share_name="str", deleted_share={"deletedShareName": "str", "deletedShareVersion": "str"}, - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -169,7 +193,7 @@ def test_file_shares_lease(self, resource_group): resource_group_name=resource_group.name, account_name="str", share_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_file_shares_operations_async.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_file_shares_operations_async.py index d99e15231a85..7362e277626c 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_file_shares_operations_async.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_file_shares_operations_async.py @@ -25,7 +25,7 @@ async def test_file_shares_list(self, resource_group): response = self.client.file_shares.list( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -46,13 +46,25 @@ async def test_file_shares_create(self, resource_group): "deletedTime": "2020-02-20 00:00:00", "enabledProtocols": "str", "etag": "str", + "fileSharePaidBursting": { + "paidBurstingEnabled": bool, + "paidBurstingMaxBandwidthMibps": 0, + "paidBurstingMaxIops": 0, + }, "id": "str", + "includedBurstIops": 0, "lastModifiedTime": "2020-02-20 00:00:00", "leaseDuration": "str", "leaseState": "str", "leaseStatus": "str", + "maxBurstCreditsForIops": 0, "metadata": {"str": "str"}, "name": "str", + "nextAllowedProvisionedBandwidthDowngradeTime": "2020-02-20 00:00:00", + "nextAllowedProvisionedIopsDowngradeTime": "2020-02-20 00:00:00", + "nextAllowedQuotaDowngradeTime": "2020-02-20 00:00:00", + "provisionedBandwidthMibps": 0, + "provisionedIops": 0, "remainingRetentionDays": 0, "rootSquash": "str", "shareQuota": 0, @@ -71,7 +83,7 @@ async def test_file_shares_create(self, resource_group): "type": "str", "version": "str", }, - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -92,13 +104,25 @@ async def test_file_shares_update(self, resource_group): "deletedTime": "2020-02-20 00:00:00", "enabledProtocols": "str", "etag": "str", + "fileSharePaidBursting": { + "paidBurstingEnabled": bool, + "paidBurstingMaxBandwidthMibps": 0, + "paidBurstingMaxIops": 0, + }, "id": "str", + "includedBurstIops": 0, "lastModifiedTime": "2020-02-20 00:00:00", "leaseDuration": "str", "leaseState": "str", "leaseStatus": "str", + "maxBurstCreditsForIops": 0, "metadata": {"str": "str"}, "name": "str", + "nextAllowedProvisionedBandwidthDowngradeTime": "2020-02-20 00:00:00", + "nextAllowedProvisionedIopsDowngradeTime": "2020-02-20 00:00:00", + "nextAllowedQuotaDowngradeTime": "2020-02-20 00:00:00", + "provisionedBandwidthMibps": 0, + "provisionedIops": 0, "remainingRetentionDays": 0, "rootSquash": "str", "shareQuota": 0, @@ -117,7 +141,7 @@ async def test_file_shares_update(self, resource_group): "type": "str", "version": "str", }, - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -130,7 +154,7 @@ async def test_file_shares_get(self, resource_group): resource_group_name=resource_group.name, account_name="str", share_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -143,7 +167,7 @@ async def test_file_shares_delete(self, resource_group): resource_group_name=resource_group.name, account_name="str", share_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -157,7 +181,7 @@ async def test_file_shares_restore(self, resource_group): account_name="str", share_name="str", deleted_share={"deletedShareName": "str", "deletedShareVersion": "str"}, - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -170,7 +194,7 @@ async def test_file_shares_lease(self, resource_group): resource_group_name=resource_group.name, account_name="str", share_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_local_users_operations.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_local_users_operations.py index acd69b4046e2..12c9d0a630c7 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_local_users_operations.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_local_users_operations.py @@ -24,7 +24,7 @@ def test_local_users_list(self, resource_group): response = self.client.local_users.list( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -37,7 +37,7 @@ def test_local_users_get(self, resource_group): resource_group_name=resource_group.name, account_name="str", username="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -75,7 +75,7 @@ def test_local_users_create_or_update(self, resource_group): "type": "str", "userId": 0, }, - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -88,7 +88,7 @@ def test_local_users_delete(self, resource_group): resource_group_name=resource_group.name, account_name="str", username="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -101,7 +101,7 @@ def test_local_users_list_keys(self, resource_group): resource_group_name=resource_group.name, account_name="str", username="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -114,7 +114,7 @@ def test_local_users_regenerate_password(self, resource_group): resource_group_name=resource_group.name, account_name="str", username="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_local_users_operations_async.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_local_users_operations_async.py index 25ef0d4d499e..d1f8a08b0d9d 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_local_users_operations_async.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_local_users_operations_async.py @@ -25,7 +25,7 @@ async def test_local_users_list(self, resource_group): response = self.client.local_users.list( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -38,7 +38,7 @@ async def test_local_users_get(self, resource_group): resource_group_name=resource_group.name, account_name="str", username="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -76,7 +76,7 @@ async def test_local_users_create_or_update(self, resource_group): "type": "str", "userId": 0, }, - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -89,7 +89,7 @@ async def test_local_users_delete(self, resource_group): resource_group_name=resource_group.name, account_name="str", username="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -102,7 +102,7 @@ async def test_local_users_list_keys(self, resource_group): resource_group_name=resource_group.name, account_name="str", username="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -115,7 +115,7 @@ async def test_local_users_regenerate_password(self, resource_group): resource_group_name=resource_group.name, account_name="str", username="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_management_policies_operations.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_management_policies_operations.py index 37d954e5df67..8921eac74aaa 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_management_policies_operations.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_management_policies_operations.py @@ -25,7 +25,7 @@ def test_management_policies_get(self, resource_group): resource_group_name=resource_group.name, account_name="str", management_policy_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -139,7 +139,7 @@ def test_management_policies_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -152,7 +152,7 @@ def test_management_policies_delete(self, resource_group): resource_group_name=resource_group.name, account_name="str", management_policy_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_management_policies_operations_async.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_management_policies_operations_async.py index ea96be653e80..564b8780d25a 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_management_policies_operations_async.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_management_policies_operations_async.py @@ -26,7 +26,7 @@ async def test_management_policies_get(self, resource_group): resource_group_name=resource_group.name, account_name="str", management_policy_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -140,7 +140,7 @@ async def test_management_policies_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -153,7 +153,7 @@ async def test_management_policies_delete(self, resource_group): resource_group_name=resource_group.name, account_name="str", management_policy_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_network_security_perimeter_configurations_operations.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_network_security_perimeter_configurations_operations.py index 2aa5c3408026..c17ab03dc7b9 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_network_security_perimeter_configurations_operations.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_network_security_perimeter_configurations_operations.py @@ -24,7 +24,7 @@ def test_network_security_perimeter_configurations_list(self, resource_group): response = self.client.network_security_perimeter_configurations.list( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -37,7 +37,7 @@ def test_network_security_perimeter_configurations_get(self, resource_group): resource_group_name=resource_group.name, account_name="str", network_security_perimeter_configuration_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -50,7 +50,7 @@ def test_network_security_perimeter_configurations_begin_reconcile(self, resourc resource_group_name=resource_group.name, account_name="str", network_security_perimeter_configuration_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_network_security_perimeter_configurations_operations_async.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_network_security_perimeter_configurations_operations_async.py index ce6759395f4b..a84a08b0728b 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_network_security_perimeter_configurations_operations_async.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_network_security_perimeter_configurations_operations_async.py @@ -25,7 +25,7 @@ async def test_network_security_perimeter_configurations_list(self, resource_gro response = self.client.network_security_perimeter_configurations.list( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -38,7 +38,7 @@ async def test_network_security_perimeter_configurations_get(self, resource_grou resource_group_name=resource_group.name, account_name="str", network_security_perimeter_configuration_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -52,7 +52,7 @@ async def test_network_security_perimeter_configurations_begin_reconcile(self, r resource_group_name=resource_group.name, account_name="str", network_security_perimeter_configuration_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_object_replication_policies_operations.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_object_replication_policies_operations.py index c5e97c4e0852..19570d67272c 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_object_replication_policies_operations.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_object_replication_policies_operations.py @@ -24,7 +24,7 @@ def test_object_replication_policies_list(self, resource_group): response = self.client.object_replication_policies.list( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -37,7 +37,7 @@ def test_object_replication_policies_get(self, resource_group): resource_group_name=resource_group.name, account_name="str", object_replication_policy_id="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -54,6 +54,7 @@ def test_object_replication_policies_create_or_update(self, resource_group): "destinationAccount": "str", "enabledTime": "2020-02-20 00:00:00", "id": "str", + "metrics": {"enabled": bool}, "name": "str", "policyId": "str", "rules": [ @@ -67,7 +68,7 @@ def test_object_replication_policies_create_or_update(self, resource_group): "sourceAccount": "str", "type": "str", }, - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -80,7 +81,7 @@ def test_object_replication_policies_delete(self, resource_group): resource_group_name=resource_group.name, account_name="str", object_replication_policy_id="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_object_replication_policies_operations_async.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_object_replication_policies_operations_async.py index a1f5e72b3613..e139100aa34a 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_object_replication_policies_operations_async.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_object_replication_policies_operations_async.py @@ -25,7 +25,7 @@ async def test_object_replication_policies_list(self, resource_group): response = self.client.object_replication_policies.list( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -38,7 +38,7 @@ async def test_object_replication_policies_get(self, resource_group): resource_group_name=resource_group.name, account_name="str", object_replication_policy_id="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -55,6 +55,7 @@ async def test_object_replication_policies_create_or_update(self, resource_group "destinationAccount": "str", "enabledTime": "2020-02-20 00:00:00", "id": "str", + "metrics": {"enabled": bool}, "name": "str", "policyId": "str", "rules": [ @@ -68,7 +69,7 @@ async def test_object_replication_policies_create_or_update(self, resource_group "sourceAccount": "str", "type": "str", }, - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -81,7 +82,7 @@ async def test_object_replication_policies_delete(self, resource_group): resource_group_name=resource_group.name, account_name="str", object_replication_policy_id="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_operations.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_operations.py index 4ba4fd6bca42..91487e28ef03 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_operations.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_operations.py @@ -22,7 +22,7 @@ def setup_method(self, method): @recorded_by_proxy def test_operations_list(self, resource_group): response = self.client.operations.list( - api_version="2023-05-01", + api_version="2024-01-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_operations_async.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_operations_async.py index fa67c04a205f..2e73c5d5effa 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_operations_async.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_operations_async.py @@ -23,7 +23,7 @@ def setup_method(self, method): @recorded_by_proxy_async async def test_operations_list(self, resource_group): response = self.client.operations.list( - api_version="2023-05-01", + api_version="2024-01-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_private_endpoint_connections_operations.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_private_endpoint_connections_operations.py index 31f7271a917f..82952f11b2ba 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_private_endpoint_connections_operations.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_private_endpoint_connections_operations.py @@ -24,7 +24,7 @@ def test_private_endpoint_connections_list(self, resource_group): response = self.client.private_endpoint_connections.list( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -37,7 +37,7 @@ def test_private_endpoint_connections_get(self, resource_group): resource_group_name=resource_group.name, account_name="str", private_endpoint_connection_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -58,7 +58,7 @@ def test_private_endpoint_connections_put(self, resource_group): "provisioningState": "str", "type": "str", }, - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -71,7 +71,7 @@ def test_private_endpoint_connections_delete(self, resource_group): resource_group_name=resource_group.name, account_name="str", private_endpoint_connection_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_private_endpoint_connections_operations_async.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_private_endpoint_connections_operations_async.py index 5b62e2e518c3..447d6ec990dc 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_private_endpoint_connections_operations_async.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_private_endpoint_connections_operations_async.py @@ -25,7 +25,7 @@ async def test_private_endpoint_connections_list(self, resource_group): response = self.client.private_endpoint_connections.list( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -38,7 +38,7 @@ async def test_private_endpoint_connections_get(self, resource_group): resource_group_name=resource_group.name, account_name="str", private_endpoint_connection_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -59,7 +59,7 @@ async def test_private_endpoint_connections_put(self, resource_group): "provisioningState": "str", "type": "str", }, - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -72,7 +72,7 @@ async def test_private_endpoint_connections_delete(self, resource_group): resource_group_name=resource_group.name, account_name="str", private_endpoint_connection_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_private_link_resources_operations.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_private_link_resources_operations.py index dfc0b948e21c..56da160e3620 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_private_link_resources_operations.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_private_link_resources_operations.py @@ -24,7 +24,7 @@ def test_private_link_resources_list_by_storage_account(self, resource_group): response = self.client.private_link_resources.list_by_storage_account( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_private_link_resources_operations_async.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_private_link_resources_operations_async.py index 2ba8169c9540..c55345e4b271 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_private_link_resources_operations_async.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_private_link_resources_operations_async.py @@ -25,7 +25,7 @@ async def test_private_link_resources_list_by_storage_account(self, resource_gro response = await self.client.private_link_resources.list_by_storage_account( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_queue_operations.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_queue_operations.py index f23660bc4ba8..d16c283b2aeb 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_queue_operations.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_queue_operations.py @@ -26,7 +26,7 @@ def test_queue_create(self, resource_group): account_name="str", queue_name="str", queue={"approximateMessageCount": 0, "id": "str", "metadata": {"str": "str"}, "name": "str", "type": "str"}, - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -40,7 +40,7 @@ def test_queue_update(self, resource_group): account_name="str", queue_name="str", queue={"approximateMessageCount": 0, "id": "str", "metadata": {"str": "str"}, "name": "str", "type": "str"}, - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -53,7 +53,7 @@ def test_queue_get(self, resource_group): resource_group_name=resource_group.name, account_name="str", queue_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -66,7 +66,7 @@ def test_queue_delete(self, resource_group): resource_group_name=resource_group.name, account_name="str", queue_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -78,7 +78,7 @@ def test_queue_list(self, resource_group): response = self.client.queue.list( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_queue_operations_async.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_queue_operations_async.py index a735fad6059c..852aaea1e1d2 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_queue_operations_async.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_queue_operations_async.py @@ -27,7 +27,7 @@ async def test_queue_create(self, resource_group): account_name="str", queue_name="str", queue={"approximateMessageCount": 0, "id": "str", "metadata": {"str": "str"}, "name": "str", "type": "str"}, - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -41,7 +41,7 @@ async def test_queue_update(self, resource_group): account_name="str", queue_name="str", queue={"approximateMessageCount": 0, "id": "str", "metadata": {"str": "str"}, "name": "str", "type": "str"}, - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -54,7 +54,7 @@ async def test_queue_get(self, resource_group): resource_group_name=resource_group.name, account_name="str", queue_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -67,7 +67,7 @@ async def test_queue_delete(self, resource_group): resource_group_name=resource_group.name, account_name="str", queue_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -79,7 +79,7 @@ async def test_queue_list(self, resource_group): response = self.client.queue.list( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_queue_services_operations.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_queue_services_operations.py index 6763db2f8cab..2bb2671d78c6 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_queue_services_operations.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_queue_services_operations.py @@ -24,7 +24,7 @@ def test_queue_services_list(self, resource_group): response = self.client.queue_services.list( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -52,7 +52,7 @@ def test_queue_services_set_service_properties(self, resource_group): "name": "str", "type": "str", }, - api_version="2023-05-01", + api_version="2024-01-01", queue_service_name="default", ) @@ -65,7 +65,7 @@ def test_queue_services_get_service_properties(self, resource_group): response = self.client.queue_services.get_service_properties( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", queue_service_name="default", ) diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_queue_services_operations_async.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_queue_services_operations_async.py index d69edc1c2bb5..710db353af96 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_queue_services_operations_async.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_queue_services_operations_async.py @@ -25,7 +25,7 @@ async def test_queue_services_list(self, resource_group): response = await self.client.queue_services.list( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -53,7 +53,7 @@ async def test_queue_services_set_service_properties(self, resource_group): "name": "str", "type": "str", }, - api_version="2023-05-01", + api_version="2024-01-01", queue_service_name="default", ) @@ -66,7 +66,7 @@ async def test_queue_services_get_service_properties(self, resource_group): response = await self.client.queue_services.get_service_properties( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", queue_service_name="default", ) diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_skus_operations.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_skus_operations.py index c11eda407acb..4e89953d0abb 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_skus_operations.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_skus_operations.py @@ -22,7 +22,7 @@ def setup_method(self, method): @recorded_by_proxy def test_skus_list(self, resource_group): response = self.client.skus.list( - api_version="2023-05-01", + api_version="2024-01-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_skus_operations_async.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_skus_operations_async.py index 353907f10b52..0ff248c2f97e 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_skus_operations_async.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_skus_operations_async.py @@ -23,7 +23,7 @@ def setup_method(self, method): @recorded_by_proxy_async async def test_skus_list(self, resource_group): response = self.client.skus.list( - api_version="2023-05-01", + api_version="2024-01-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_storage_accounts_operations.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_storage_accounts_operations.py index d8a2bb7e29c7..00fd403d313d 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_storage_accounts_operations.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_storage_accounts_operations.py @@ -23,7 +23,7 @@ def setup_method(self, method): def test_storage_accounts_check_name_availability(self, resource_group): response = self.client.storage_accounts.check_name_availability( account_name={"name": "str", "type": "Microsoft.Storage/storageAccounts"}, - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -120,7 +120,7 @@ def test_storage_accounts_begin_create(self, resource_group): "supportsHttpsTrafficOnly": bool, "tags": {"str": "str"}, }, - api_version="2023-05-01", + api_version="2024-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -132,7 +132,7 @@ def test_storage_accounts_delete(self, resource_group): response = self.client.storage_accounts.delete( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -144,7 +144,7 @@ def test_storage_accounts_get_properties(self, resource_group): response = self.client.storage_accounts.get_properties( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -237,7 +237,7 @@ def test_storage_accounts_update(self, resource_group): "supportsHttpsTrafficOnly": bool, "tags": {"str": "str"}, }, - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -247,7 +247,7 @@ def test_storage_accounts_update(self, resource_group): @recorded_by_proxy def test_storage_accounts_list(self, resource_group): response = self.client.storage_accounts.list( - api_version="2023-05-01", + api_version="2024-01-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -258,7 +258,7 @@ def test_storage_accounts_list(self, resource_group): def test_storage_accounts_list_by_resource_group(self, resource_group): response = self.client.storage_accounts.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2023-05-01", + api_version="2024-01-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -270,7 +270,7 @@ def test_storage_accounts_list_keys(self, resource_group): response = self.client.storage_accounts.list_keys( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -283,7 +283,7 @@ def test_storage_accounts_regenerate_key(self, resource_group): resource_group_name=resource_group.name, account_name="str", regenerate_key={"keyName": "str"}, - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -305,7 +305,7 @@ def test_storage_accounts_list_account_sas(self, resource_group): "signedProtocol": "str", "signedStart": "2020-02-20 00:00:00", }, - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -337,7 +337,7 @@ def test_storage_accounts_list_service_sas(self, resource_group): "startPk": "str", "startRk": "str", }, - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -349,7 +349,7 @@ def test_storage_accounts_begin_failover(self, resource_group): response = self.client.storage_accounts.begin_failover( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -362,7 +362,7 @@ def test_storage_accounts_begin_hierarchical_namespace_migration(self, resource_ resource_group_name=resource_group.name, account_name="str", request_type="str", - api_version="2023-05-01", + api_version="2024-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -374,7 +374,7 @@ def test_storage_accounts_begin_abort_hierarchical_namespace_migration(self, res response = self.client.storage_accounts.begin_abort_hierarchical_namespace_migration( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -395,7 +395,7 @@ def test_storage_accounts_begin_customer_initiated_migration(self, resource_grou "name": "str", "type": "str", }, - api_version="2023-05-01", + api_version="2024-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -408,7 +408,7 @@ def test_storage_accounts_get_customer_initiated_migration(self, resource_group) resource_group_name=resource_group.name, account_name="str", migration_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -424,7 +424,7 @@ def test_storage_accounts_begin_restore_blob_ranges(self, resource_group): "blobRanges": [{"endRange": "str", "startRange": "str"}], "timeToRestore": "2020-02-20 00:00:00", }, - api_version="2023-05-01", + api_version="2024-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -436,7 +436,7 @@ def test_storage_accounts_revoke_user_delegation_keys(self, resource_group): response = self.client.storage_accounts.revoke_user_delegation_keys( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_storage_accounts_operations_async.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_storage_accounts_operations_async.py index 048933df0f92..6bd5d97e5034 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_storage_accounts_operations_async.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_storage_accounts_operations_async.py @@ -24,7 +24,7 @@ def setup_method(self, method): async def test_storage_accounts_check_name_availability(self, resource_group): response = await self.client.storage_accounts.check_name_availability( account_name={"name": "str", "type": "Microsoft.Storage/storageAccounts"}, - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -122,7 +122,7 @@ async def test_storage_accounts_begin_create(self, resource_group): "supportsHttpsTrafficOnly": bool, "tags": {"str": "str"}, }, - api_version="2023-05-01", + api_version="2024-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -135,7 +135,7 @@ async def test_storage_accounts_delete(self, resource_group): response = await self.client.storage_accounts.delete( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -147,7 +147,7 @@ async def test_storage_accounts_get_properties(self, resource_group): response = await self.client.storage_accounts.get_properties( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -240,7 +240,7 @@ async def test_storage_accounts_update(self, resource_group): "supportsHttpsTrafficOnly": bool, "tags": {"str": "str"}, }, - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -250,7 +250,7 @@ async def test_storage_accounts_update(self, resource_group): @recorded_by_proxy_async async def test_storage_accounts_list(self, resource_group): response = self.client.storage_accounts.list( - api_version="2023-05-01", + api_version="2024-01-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -261,7 +261,7 @@ async def test_storage_accounts_list(self, resource_group): async def test_storage_accounts_list_by_resource_group(self, resource_group): response = self.client.storage_accounts.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2023-05-01", + api_version="2024-01-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -273,7 +273,7 @@ async def test_storage_accounts_list_keys(self, resource_group): response = await self.client.storage_accounts.list_keys( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -286,7 +286,7 @@ async def test_storage_accounts_regenerate_key(self, resource_group): resource_group_name=resource_group.name, account_name="str", regenerate_key={"keyName": "str"}, - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -308,7 +308,7 @@ async def test_storage_accounts_list_account_sas(self, resource_group): "signedProtocol": "str", "signedStart": "2020-02-20 00:00:00", }, - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -340,7 +340,7 @@ async def test_storage_accounts_list_service_sas(self, resource_group): "startPk": "str", "startRk": "str", }, - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -353,7 +353,7 @@ async def test_storage_accounts_begin_failover(self, resource_group): await self.client.storage_accounts.begin_failover( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -368,7 +368,7 @@ async def test_storage_accounts_begin_hierarchical_namespace_migration(self, res resource_group_name=resource_group.name, account_name="str", request_type="str", - api_version="2023-05-01", + api_version="2024-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -382,7 +382,7 @@ async def test_storage_accounts_begin_abort_hierarchical_namespace_migration(sel await self.client.storage_accounts.begin_abort_hierarchical_namespace_migration( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -405,7 +405,7 @@ async def test_storage_accounts_begin_customer_initiated_migration(self, resourc "name": "str", "type": "str", }, - api_version="2023-05-01", + api_version="2024-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -419,7 +419,7 @@ async def test_storage_accounts_get_customer_initiated_migration(self, resource_ resource_group_name=resource_group.name, account_name="str", migration_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -436,7 +436,7 @@ async def test_storage_accounts_begin_restore_blob_ranges(self, resource_group): "blobRanges": [{"endRange": "str", "startRange": "str"}], "timeToRestore": "2020-02-20 00:00:00", }, - api_version="2023-05-01", + api_version="2024-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -449,7 +449,7 @@ async def test_storage_accounts_revoke_user_delegation_keys(self, resource_group response = await self.client.storage_accounts.revoke_user_delegation_keys( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_storage_task_assignment_instances_report_operations.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_storage_task_assignment_instances_report_operations.py index 9e62d56e83a3..0414f11644c2 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_storage_task_assignment_instances_report_operations.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_storage_task_assignment_instances_report_operations.py @@ -25,7 +25,7 @@ def test_storage_task_assignment_instances_report_list(self, resource_group): resource_group_name=resource_group.name, account_name="str", storage_task_assignment_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_storage_task_assignment_instances_report_operations_async.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_storage_task_assignment_instances_report_operations_async.py index 144191865d15..21e2feb33ec3 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_storage_task_assignment_instances_report_operations_async.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_storage_task_assignment_instances_report_operations_async.py @@ -26,7 +26,7 @@ async def test_storage_task_assignment_instances_report_list(self, resource_grou resource_group_name=resource_group.name, account_name="str", storage_task_assignment_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_storage_task_assignments_instances_report_operations.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_storage_task_assignments_instances_report_operations.py index 6a2e1249e98a..616f5cc4accc 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_storage_task_assignments_instances_report_operations.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_storage_task_assignments_instances_report_operations.py @@ -24,7 +24,7 @@ def test_storage_task_assignments_instances_report_list(self, resource_group): response = self.client.storage_task_assignments_instances_report.list( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_storage_task_assignments_instances_report_operations_async.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_storage_task_assignments_instances_report_operations_async.py index 30efc30ba81e..39351069a95c 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_storage_task_assignments_instances_report_operations_async.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_storage_task_assignments_instances_report_operations_async.py @@ -25,7 +25,7 @@ async def test_storage_task_assignments_instances_report_list(self, resource_gro response = self.client.storage_task_assignments_instances_report.list( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_storage_task_assignments_operations.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_storage_task_assignments_operations.py index 72fc8c774248..83f8160c270c 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_storage_task_assignments_operations.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_storage_task_assignments_operations.py @@ -66,7 +66,7 @@ def test_storage_task_assignments_begin_create(self, resource_group): "name": "str", "type": "str", }, - api_version="2023-05-01", + api_version="2024-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -117,7 +117,7 @@ def test_storage_task_assignments_begin_update(self, resource_group): "taskId": "str", } }, - api_version="2023-05-01", + api_version="2024-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -130,7 +130,7 @@ def test_storage_task_assignments_get(self, resource_group): resource_group_name=resource_group.name, account_name="str", storage_task_assignment_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -143,7 +143,7 @@ def test_storage_task_assignments_begin_delete(self, resource_group): resource_group_name=resource_group.name, account_name="str", storage_task_assignment_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -155,7 +155,7 @@ def test_storage_task_assignments_list(self, resource_group): response = self.client.storage_task_assignments.list( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_storage_task_assignments_operations_async.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_storage_task_assignments_operations_async.py index 7790ec72fe2a..767d0c07739a 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_storage_task_assignments_operations_async.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_storage_task_assignments_operations_async.py @@ -68,7 +68,7 @@ async def test_storage_task_assignments_begin_create(self, resource_group): "name": "str", "type": "str", }, - api_version="2023-05-01", + api_version="2024-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -121,7 +121,7 @@ async def test_storage_task_assignments_begin_update(self, resource_group): "taskId": "str", } }, - api_version="2023-05-01", + api_version="2024-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -135,7 +135,7 @@ async def test_storage_task_assignments_get(self, resource_group): resource_group_name=resource_group.name, account_name="str", storage_task_assignment_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -149,7 +149,7 @@ async def test_storage_task_assignments_begin_delete(self, resource_group): resource_group_name=resource_group.name, account_name="str", storage_task_assignment_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) ).result() # call '.result()' to poll until service return final result @@ -162,7 +162,7 @@ async def test_storage_task_assignments_list(self, resource_group): response = self.client.storage_task_assignments.list( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_table_operations.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_table_operations.py index 0349ee699cdc..c7d7a5d17f01 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_table_operations.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_table_operations.py @@ -25,7 +25,7 @@ def test_table_create(self, resource_group): resource_group_name=resource_group.name, account_name="str", table_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -38,7 +38,7 @@ def test_table_update(self, resource_group): resource_group_name=resource_group.name, account_name="str", table_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -51,7 +51,7 @@ def test_table_get(self, resource_group): resource_group_name=resource_group.name, account_name="str", table_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -64,7 +64,7 @@ def test_table_delete(self, resource_group): resource_group_name=resource_group.name, account_name="str", table_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -76,7 +76,7 @@ def test_table_list(self, resource_group): response = self.client.table.list( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_table_operations_async.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_table_operations_async.py index 8868fd68c46d..1d4c2e86969f 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_table_operations_async.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_table_operations_async.py @@ -26,7 +26,7 @@ async def test_table_create(self, resource_group): resource_group_name=resource_group.name, account_name="str", table_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -39,7 +39,7 @@ async def test_table_update(self, resource_group): resource_group_name=resource_group.name, account_name="str", table_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -52,7 +52,7 @@ async def test_table_get(self, resource_group): resource_group_name=resource_group.name, account_name="str", table_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -65,7 +65,7 @@ async def test_table_delete(self, resource_group): resource_group_name=resource_group.name, account_name="str", table_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -77,7 +77,7 @@ async def test_table_list(self, resource_group): response = self.client.table.list( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_table_services_operations.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_table_services_operations.py index c1905e49197e..7dd84486324c 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_table_services_operations.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_table_services_operations.py @@ -24,7 +24,7 @@ def test_table_services_list(self, resource_group): response = self.client.table_services.list( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -52,7 +52,7 @@ def test_table_services_set_service_properties(self, resource_group): "name": "str", "type": "str", }, - api_version="2023-05-01", + api_version="2024-01-01", table_service_name="default", ) @@ -65,7 +65,7 @@ def test_table_services_get_service_properties(self, resource_group): response = self.client.table_services.get_service_properties( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", table_service_name="default", ) diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_table_services_operations_async.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_table_services_operations_async.py index 2bed3cd1ea16..a1324418fe24 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_table_services_operations_async.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_table_services_operations_async.py @@ -25,7 +25,7 @@ async def test_table_services_list(self, resource_group): response = await self.client.table_services.list( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", ) # please add some check logic here by yourself @@ -53,7 +53,7 @@ async def test_table_services_set_service_properties(self, resource_group): "name": "str", "type": "str", }, - api_version="2023-05-01", + api_version="2024-01-01", table_service_name="default", ) @@ -66,7 +66,7 @@ async def test_table_services_get_service_properties(self, resource_group): response = await self.client.table_services.get_service_properties( resource_group_name=resource_group.name, account_name="str", - api_version="2023-05-01", + api_version="2024-01-01", table_service_name="default", ) diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_usages_operations.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_usages_operations.py index a436035eda35..e992f824553c 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_usages_operations.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_usages_operations.py @@ -23,7 +23,7 @@ def setup_method(self, method): def test_usages_list_by_location(self, resource_group): response = self.client.usages.list_by_location( location="str", - api_version="2023-05-01", + api_version="2024-01-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_usages_operations_async.py b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_usages_operations_async.py index c4bf2fdfd73e..e0e28353883d 100644 --- a/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_usages_operations_async.py +++ b/sdk/storage/azure-mgmt-storage/generated_tests/test_storage_management_usages_operations_async.py @@ -24,7 +24,7 @@ def setup_method(self, method): async def test_usages_list_by_location(self, resource_group): response = self.client.usages.list_by_location( location="str", - api_version="2023-05-01", + api_version="2024-01-01", ) result = [r async for r in response] # please add some check logic here by yourself