azure-mgmt-storage 21.1.0__py3-none-any.whl → 21.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- azure/mgmt/storage/_configuration.py +2 -3
- azure/mgmt/storage/_serialization.py +41 -49
- azure/mgmt/storage/_storage_management_client.py +142 -2
- azure/mgmt/storage/_version.py +1 -1
- azure/mgmt/storage/aio/_configuration.py +2 -3
- azure/mgmt/storage/aio/_storage_management_client.py +142 -2
- azure/mgmt/storage/models.py +1 -1
- azure/mgmt/storage/v2015_06_15/_configuration.py +3 -4
- azure/mgmt/storage/v2015_06_15/_patch.py +1 -0
- azure/mgmt/storage/v2015_06_15/_storage_management.py +23 -3
- azure/mgmt/storage/v2015_06_15/_version.py +1 -1
- azure/mgmt/storage/v2015_06_15/aio/_configuration.py +3 -4
- azure/mgmt/storage/v2015_06_15/aio/_patch.py +1 -0
- azure/mgmt/storage/v2015_06_15/aio/_storage_management.py +25 -3
- azure/mgmt/storage/v2015_06_15/aio/operations/_storage_accounts_operations.py +109 -196
- azure/mgmt/storage/v2015_06_15/aio/operations/_usage_operations.py +19 -18
- azure/mgmt/storage/v2015_06_15/models/_models_py3.py +6 -6
- azure/mgmt/storage/v2015_06_15/operations/_storage_accounts_operations.py +109 -196
- azure/mgmt/storage/v2015_06_15/operations/_usage_operations.py +19 -18
- azure/mgmt/storage/v2016_01_01/_configuration.py +3 -4
- azure/mgmt/storage/v2016_01_01/_patch.py +1 -0
- azure/mgmt/storage/v2016_01_01/_storage_management_client.py +23 -3
- azure/mgmt/storage/v2016_01_01/_version.py +1 -1
- azure/mgmt/storage/v2016_01_01/aio/_configuration.py +3 -4
- azure/mgmt/storage/v2016_01_01/aio/_patch.py +1 -0
- azure/mgmt/storage/v2016_01_01/aio/_storage_management_client.py +25 -3
- azure/mgmt/storage/v2016_01_01/aio/operations/_storage_accounts_operations.py +109 -196
- azure/mgmt/storage/v2016_01_01/aio/operations/_usage_operations.py +19 -18
- azure/mgmt/storage/v2016_01_01/models/_models_py3.py +7 -7
- azure/mgmt/storage/v2016_01_01/operations/_storage_accounts_operations.py +109 -196
- azure/mgmt/storage/v2016_01_01/operations/_usage_operations.py +19 -18
- azure/mgmt/storage/v2016_12_01/_configuration.py +3 -4
- azure/mgmt/storage/v2016_12_01/_patch.py +1 -0
- azure/mgmt/storage/v2016_12_01/_storage_management.py +23 -3
- azure/mgmt/storage/v2016_12_01/_version.py +1 -1
- azure/mgmt/storage/v2016_12_01/aio/_configuration.py +3 -4
- azure/mgmt/storage/v2016_12_01/aio/_patch.py +1 -0
- azure/mgmt/storage/v2016_12_01/aio/_storage_management.py +25 -3
- azure/mgmt/storage/v2016_12_01/aio/operations/_storage_accounts_operations.py +133 -242
- azure/mgmt/storage/v2016_12_01/aio/operations/_usage_operations.py +19 -18
- azure/mgmt/storage/v2016_12_01/models/_models_py3.py +9 -9
- azure/mgmt/storage/v2016_12_01/operations/_storage_accounts_operations.py +133 -242
- azure/mgmt/storage/v2016_12_01/operations/_usage_operations.py +19 -18
- azure/mgmt/storage/v2017_06_01/_configuration.py +3 -4
- azure/mgmt/storage/v2017_06_01/_patch.py +1 -0
- azure/mgmt/storage/v2017_06_01/_storage_management.py +23 -3
- azure/mgmt/storage/v2017_06_01/_version.py +1 -1
- azure/mgmt/storage/v2017_06_01/aio/_configuration.py +3 -4
- azure/mgmt/storage/v2017_06_01/aio/_patch.py +1 -0
- azure/mgmt/storage/v2017_06_01/aio/_storage_management.py +25 -3
- azure/mgmt/storage/v2017_06_01/aio/operations/_operations.py +19 -18
- azure/mgmt/storage/v2017_06_01/aio/operations/_skus_operations.py +19 -18
- azure/mgmt/storage/v2017_06_01/aio/operations/_storage_accounts_operations.py +133 -242
- azure/mgmt/storage/v2017_06_01/aio/operations/_usage_operations.py +19 -18
- azure/mgmt/storage/v2017_06_01/models/_models_py3.py +16 -22
- azure/mgmt/storage/v2017_06_01/operations/_operations.py +19 -18
- azure/mgmt/storage/v2017_06_01/operations/_skus_operations.py +19 -18
- azure/mgmt/storage/v2017_06_01/operations/_storage_accounts_operations.py +133 -242
- azure/mgmt/storage/v2017_06_01/operations/_usage_operations.py +19 -18
- azure/mgmt/storage/v2017_10_01/_configuration.py +3 -4
- azure/mgmt/storage/v2017_10_01/_patch.py +1 -0
- azure/mgmt/storage/v2017_10_01/_storage_management.py +23 -3
- azure/mgmt/storage/v2017_10_01/_version.py +1 -1
- azure/mgmt/storage/v2017_10_01/aio/_configuration.py +3 -4
- azure/mgmt/storage/v2017_10_01/aio/_patch.py +1 -0
- azure/mgmt/storage/v2017_10_01/aio/_storage_management.py +25 -3
- azure/mgmt/storage/v2017_10_01/aio/operations/_operations.py +19 -18
- azure/mgmt/storage/v2017_10_01/aio/operations/_skus_operations.py +19 -18
- azure/mgmt/storage/v2017_10_01/aio/operations/_storage_accounts_operations.py +133 -242
- azure/mgmt/storage/v2017_10_01/aio/operations/_usage_operations.py +19 -18
- azure/mgmt/storage/v2017_10_01/models/_models_py3.py +16 -22
- azure/mgmt/storage/v2017_10_01/operations/_operations.py +19 -18
- azure/mgmt/storage/v2017_10_01/operations/_skus_operations.py +19 -18
- azure/mgmt/storage/v2017_10_01/operations/_storage_accounts_operations.py +133 -242
- azure/mgmt/storage/v2017_10_01/operations/_usage_operations.py +19 -18
- azure/mgmt/storage/v2018_02_01/_configuration.py +3 -4
- azure/mgmt/storage/v2018_02_01/_patch.py +1 -0
- azure/mgmt/storage/v2018_02_01/_storage_management_client.py +23 -3
- azure/mgmt/storage/v2018_02_01/_version.py +1 -1
- azure/mgmt/storage/v2018_02_01/aio/_configuration.py +3 -4
- azure/mgmt/storage/v2018_02_01/aio/_patch.py +1 -0
- azure/mgmt/storage/v2018_02_01/aio/_storage_management_client.py +25 -3
- azure/mgmt/storage/v2018_02_01/aio/operations/_blob_containers_operations.py +133 -241
- azure/mgmt/storage/v2018_02_01/aio/operations/_operations.py +19 -18
- azure/mgmt/storage/v2018_02_01/aio/operations/_skus_operations.py +19 -18
- azure/mgmt/storage/v2018_02_01/aio/operations/_storage_accounts_operations.py +133 -242
- azure/mgmt/storage/v2018_02_01/aio/operations/_usage_operations.py +31 -36
- azure/mgmt/storage/v2018_02_01/models/_models_py3.py +30 -36
- azure/mgmt/storage/v2018_02_01/models/_storage_management_client_enums.py +0 -1
- azure/mgmt/storage/v2018_02_01/operations/_blob_containers_operations.py +134 -242
- azure/mgmt/storage/v2018_02_01/operations/_operations.py +19 -18
- azure/mgmt/storage/v2018_02_01/operations/_skus_operations.py +19 -18
- azure/mgmt/storage/v2018_02_01/operations/_storage_accounts_operations.py +133 -242
- azure/mgmt/storage/v2018_02_01/operations/_usage_operations.py +31 -36
- azure/mgmt/storage/v2018_03_01_preview/_configuration.py +3 -4
- azure/mgmt/storage/v2018_03_01_preview/_patch.py +1 -0
- azure/mgmt/storage/v2018_03_01_preview/_storage_management_client.py +23 -3
- azure/mgmt/storage/v2018_03_01_preview/_version.py +1 -1
- azure/mgmt/storage/v2018_03_01_preview/aio/_configuration.py +3 -4
- azure/mgmt/storage/v2018_03_01_preview/aio/_patch.py +1 -0
- azure/mgmt/storage/v2018_03_01_preview/aio/_storage_management_client.py +25 -3
- azure/mgmt/storage/v2018_03_01_preview/aio/operations/_blob_containers_operations.py +136 -241
- azure/mgmt/storage/v2018_03_01_preview/aio/operations/_management_policies_operations.py +32 -50
- azure/mgmt/storage/v2018_03_01_preview/aio/operations/_operations.py +19 -18
- azure/mgmt/storage/v2018_03_01_preview/aio/operations/_skus_operations.py +19 -18
- azure/mgmt/storage/v2018_03_01_preview/aio/operations/_storage_accounts_operations.py +158 -290
- azure/mgmt/storage/v2018_03_01_preview/aio/operations/_usages_operations.py +31 -36
- azure/mgmt/storage/v2018_03_01_preview/models/_models_py3.py +32 -36
- azure/mgmt/storage/v2018_03_01_preview/models/_storage_management_client_enums.py +0 -1
- azure/mgmt/storage/v2018_03_01_preview/operations/_blob_containers_operations.py +137 -242
- azure/mgmt/storage/v2018_03_01_preview/operations/_management_policies_operations.py +32 -50
- azure/mgmt/storage/v2018_03_01_preview/operations/_operations.py +19 -18
- azure/mgmt/storage/v2018_03_01_preview/operations/_skus_operations.py +19 -18
- azure/mgmt/storage/v2018_03_01_preview/operations/_storage_accounts_operations.py +159 -291
- azure/mgmt/storage/v2018_03_01_preview/operations/_usages_operations.py +31 -36
- azure/mgmt/storage/v2018_07_01/_configuration.py +3 -4
- azure/mgmt/storage/v2018_07_01/_patch.py +1 -0
- azure/mgmt/storage/v2018_07_01/_storage_management_client.py +23 -3
- azure/mgmt/storage/v2018_07_01/_version.py +1 -1
- azure/mgmt/storage/v2018_07_01/aio/_configuration.py +3 -4
- azure/mgmt/storage/v2018_07_01/aio/_patch.py +1 -0
- azure/mgmt/storage/v2018_07_01/aio/_storage_management_client.py +25 -3
- azure/mgmt/storage/v2018_07_01/aio/operations/_blob_containers_operations.py +133 -241
- azure/mgmt/storage/v2018_07_01/aio/operations/_blob_services_operations.py +26 -38
- azure/mgmt/storage/v2018_07_01/aio/operations/_operations.py +19 -18
- azure/mgmt/storage/v2018_07_01/aio/operations/_skus_operations.py +19 -18
- azure/mgmt/storage/v2018_07_01/aio/operations/_storage_accounts_operations.py +140 -271
- azure/mgmt/storage/v2018_07_01/aio/operations/_usages_operations.py +19 -20
- azure/mgmt/storage/v2018_07_01/models/_models_py3.py +32 -38
- azure/mgmt/storage/v2018_07_01/models/_storage_management_client_enums.py +0 -1
- azure/mgmt/storage/v2018_07_01/operations/_blob_containers_operations.py +134 -242
- azure/mgmt/storage/v2018_07_01/operations/_blob_services_operations.py +26 -38
- azure/mgmt/storage/v2018_07_01/operations/_operations.py +19 -18
- azure/mgmt/storage/v2018_07_01/operations/_skus_operations.py +19 -18
- azure/mgmt/storage/v2018_07_01/operations/_storage_accounts_operations.py +140 -271
- azure/mgmt/storage/v2018_07_01/operations/_usages_operations.py +19 -20
- azure/mgmt/storage/v2018_11_01/_configuration.py +3 -4
- azure/mgmt/storage/v2018_11_01/_patch.py +1 -0
- azure/mgmt/storage/v2018_11_01/_storage_management_client.py +23 -3
- azure/mgmt/storage/v2018_11_01/_version.py +1 -1
- azure/mgmt/storage/v2018_11_01/aio/_configuration.py +3 -4
- azure/mgmt/storage/v2018_11_01/aio/_patch.py +1 -0
- azure/mgmt/storage/v2018_11_01/aio/_storage_management_client.py +25 -3
- azure/mgmt/storage/v2018_11_01/aio/operations/_blob_containers_operations.py +131 -239
- azure/mgmt/storage/v2018_11_01/aio/operations/_blob_services_operations.py +26 -38
- azure/mgmt/storage/v2018_11_01/aio/operations/_management_policies_operations.py +32 -50
- azure/mgmt/storage/v2018_11_01/aio/operations/_operations.py +19 -18
- azure/mgmt/storage/v2018_11_01/aio/operations/_skus_operations.py +19 -18
- azure/mgmt/storage/v2018_11_01/aio/operations/_storage_accounts_operations.py +146 -283
- azure/mgmt/storage/v2018_11_01/aio/operations/_usages_operations.py +19 -20
- azure/mgmt/storage/v2018_11_01/models/_models_py3.py +39 -45
- azure/mgmt/storage/v2018_11_01/models/_storage_management_client_enums.py +0 -1
- azure/mgmt/storage/v2018_11_01/operations/_blob_containers_operations.py +132 -240
- azure/mgmt/storage/v2018_11_01/operations/_blob_services_operations.py +26 -38
- azure/mgmt/storage/v2018_11_01/operations/_management_policies_operations.py +32 -50
- azure/mgmt/storage/v2018_11_01/operations/_operations.py +19 -18
- azure/mgmt/storage/v2018_11_01/operations/_skus_operations.py +19 -18
- azure/mgmt/storage/v2018_11_01/operations/_storage_accounts_operations.py +147 -284
- azure/mgmt/storage/v2018_11_01/operations/_usages_operations.py +19 -20
- azure/mgmt/storage/v2019_04_01/_configuration.py +3 -4
- azure/mgmt/storage/v2019_04_01/_patch.py +1 -0
- azure/mgmt/storage/v2019_04_01/_storage_management_client.py +23 -3
- azure/mgmt/storage/v2019_04_01/_version.py +1 -1
- azure/mgmt/storage/v2019_04_01/aio/_configuration.py +3 -4
- azure/mgmt/storage/v2019_04_01/aio/_patch.py +1 -0
- azure/mgmt/storage/v2019_04_01/aio/_storage_management_client.py +25 -3
- azure/mgmt/storage/v2019_04_01/aio/operations/_blob_containers_operations.py +136 -244
- azure/mgmt/storage/v2019_04_01/aio/operations/_blob_services_operations.py +38 -56
- azure/mgmt/storage/v2019_04_01/aio/operations/_file_services_operations.py +34 -52
- azure/mgmt/storage/v2019_04_01/aio/operations/_file_shares_operations.py +56 -91
- azure/mgmt/storage/v2019_04_01/aio/operations/_management_policies_operations.py +32 -50
- azure/mgmt/storage/v2019_04_01/aio/operations/_operations.py +19 -18
- azure/mgmt/storage/v2019_04_01/aio/operations/_skus_operations.py +19 -18
- azure/mgmt/storage/v2019_04_01/aio/operations/_storage_accounts_operations.py +147 -283
- azure/mgmt/storage/v2019_04_01/aio/operations/_usages_operations.py +19 -20
- azure/mgmt/storage/v2019_04_01/models/_models_py3.py +44 -50
- azure/mgmt/storage/v2019_04_01/models/_storage_management_client_enums.py +0 -1
- azure/mgmt/storage/v2019_04_01/operations/_blob_containers_operations.py +137 -245
- azure/mgmt/storage/v2019_04_01/operations/_blob_services_operations.py +38 -56
- azure/mgmt/storage/v2019_04_01/operations/_file_services_operations.py +34 -52
- azure/mgmt/storage/v2019_04_01/operations/_file_shares_operations.py +56 -91
- azure/mgmt/storage/v2019_04_01/operations/_management_policies_operations.py +32 -50
- azure/mgmt/storage/v2019_04_01/operations/_operations.py +19 -18
- azure/mgmt/storage/v2019_04_01/operations/_skus_operations.py +19 -18
- azure/mgmt/storage/v2019_04_01/operations/_storage_accounts_operations.py +148 -284
- azure/mgmt/storage/v2019_04_01/operations/_usages_operations.py +19 -20
- azure/mgmt/storage/v2019_06_01/_configuration.py +3 -4
- azure/mgmt/storage/v2019_06_01/_patch.py +1 -0
- azure/mgmt/storage/v2019_06_01/_storage_management_client.py +23 -3
- azure/mgmt/storage/v2019_06_01/_version.py +1 -1
- azure/mgmt/storage/v2019_06_01/aio/_configuration.py +3 -4
- azure/mgmt/storage/v2019_06_01/aio/_patch.py +1 -0
- azure/mgmt/storage/v2019_06_01/aio/_storage_management_client.py +25 -3
- azure/mgmt/storage/v2019_06_01/aio/operations/_blob_containers_operations.py +136 -244
- azure/mgmt/storage/v2019_06_01/aio/operations/_blob_inventory_policies_operations.py +44 -68
- azure/mgmt/storage/v2019_06_01/aio/operations/_blob_services_operations.py +38 -56
- azure/mgmt/storage/v2019_06_01/aio/operations/_encryption_scopes_operations.py +48 -77
- azure/mgmt/storage/v2019_06_01/aio/operations/_file_services_operations.py +34 -52
- azure/mgmt/storage/v2019_06_01/aio/operations/_file_shares_operations.py +65 -116
- azure/mgmt/storage/v2019_06_01/aio/operations/_management_policies_operations.py +32 -50
- azure/mgmt/storage/v2019_06_01/aio/operations/_object_replication_policies_operations.py +45 -68
- azure/mgmt/storage/v2019_06_01/aio/operations/_operations.py +19 -18
- azure/mgmt/storage/v2019_06_01/aio/operations/_private_endpoint_connections_operations.py +44 -68
- azure/mgmt/storage/v2019_06_01/aio/operations/_private_link_resources_operations.py +14 -15
- azure/mgmt/storage/v2019_06_01/aio/operations/_queue_operations.py +56 -91
- azure/mgmt/storage/v2019_06_01/aio/operations/_queue_services_operations.py +33 -51
- azure/mgmt/storage/v2019_06_01/aio/operations/_skus_operations.py +19 -18
- azure/mgmt/storage/v2019_06_01/aio/operations/_storage_accounts_operations.py +163 -333
- azure/mgmt/storage/v2019_06_01/aio/operations/_table_operations.py +46 -71
- azure/mgmt/storage/v2019_06_01/aio/operations/_table_services_operations.py +33 -51
- azure/mgmt/storage/v2019_06_01/aio/operations/_usages_operations.py +19 -20
- azure/mgmt/storage/v2019_06_01/models/_models_py3.py +64 -70
- azure/mgmt/storage/v2019_06_01/models/_storage_management_client_enums.py +0 -1
- azure/mgmt/storage/v2019_06_01/operations/_blob_containers_operations.py +137 -245
- azure/mgmt/storage/v2019_06_01/operations/_blob_inventory_policies_operations.py +44 -68
- azure/mgmt/storage/v2019_06_01/operations/_blob_services_operations.py +38 -56
- azure/mgmt/storage/v2019_06_01/operations/_encryption_scopes_operations.py +48 -77
- azure/mgmt/storage/v2019_06_01/operations/_file_services_operations.py +34 -52
- azure/mgmt/storage/v2019_06_01/operations/_file_shares_operations.py +65 -116
- azure/mgmt/storage/v2019_06_01/operations/_management_policies_operations.py +32 -50
- azure/mgmt/storage/v2019_06_01/operations/_object_replication_policies_operations.py +45 -68
- azure/mgmt/storage/v2019_06_01/operations/_operations.py +19 -18
- azure/mgmt/storage/v2019_06_01/operations/_private_endpoint_connections_operations.py +44 -68
- azure/mgmt/storage/v2019_06_01/operations/_private_link_resources_operations.py +14 -15
- azure/mgmt/storage/v2019_06_01/operations/_queue_operations.py +56 -91
- azure/mgmt/storage/v2019_06_01/operations/_queue_services_operations.py +33 -51
- azure/mgmt/storage/v2019_06_01/operations/_skus_operations.py +19 -18
- azure/mgmt/storage/v2019_06_01/operations/_storage_accounts_operations.py +164 -334
- azure/mgmt/storage/v2019_06_01/operations/_table_operations.py +46 -71
- azure/mgmt/storage/v2019_06_01/operations/_table_services_operations.py +33 -51
- azure/mgmt/storage/v2019_06_01/operations/_usages_operations.py +19 -20
- azure/mgmt/storage/v2020_08_01_preview/_configuration.py +3 -4
- azure/mgmt/storage/v2020_08_01_preview/_patch.py +1 -0
- azure/mgmt/storage/v2020_08_01_preview/_storage_management_client.py +23 -3
- azure/mgmt/storage/v2020_08_01_preview/_version.py +1 -1
- azure/mgmt/storage/v2020_08_01_preview/aio/_configuration.py +3 -4
- azure/mgmt/storage/v2020_08_01_preview/aio/_patch.py +1 -0
- azure/mgmt/storage/v2020_08_01_preview/aio/_storage_management_client.py +25 -3
- azure/mgmt/storage/v2020_08_01_preview/aio/operations/_blob_containers_operations.py +139 -244
- azure/mgmt/storage/v2020_08_01_preview/aio/operations/_blob_inventory_policies_operations.py +45 -68
- azure/mgmt/storage/v2020_08_01_preview/aio/operations/_blob_services_operations.py +39 -56
- azure/mgmt/storage/v2020_08_01_preview/aio/operations/_deleted_accounts_operations.py +26 -31
- azure/mgmt/storage/v2020_08_01_preview/aio/operations/_encryption_scopes_operations.py +50 -77
- azure/mgmt/storage/v2020_08_01_preview/aio/operations/_file_services_operations.py +35 -52
- azure/mgmt/storage/v2020_08_01_preview/aio/operations/_file_shares_operations.py +65 -116
- azure/mgmt/storage/v2020_08_01_preview/aio/operations/_management_policies_operations.py +32 -50
- azure/mgmt/storage/v2020_08_01_preview/aio/operations/_object_replication_policies_operations.py +46 -68
- azure/mgmt/storage/v2020_08_01_preview/aio/operations/_operations.py +19 -18
- azure/mgmt/storage/v2020_08_01_preview/aio/operations/_private_endpoint_connections_operations.py +44 -68
- azure/mgmt/storage/v2020_08_01_preview/aio/operations/_private_link_resources_operations.py +14 -15
- azure/mgmt/storage/v2020_08_01_preview/aio/operations/_queue_operations.py +56 -91
- azure/mgmt/storage/v2020_08_01_preview/aio/operations/_queue_services_operations.py +34 -51
- azure/mgmt/storage/v2020_08_01_preview/aio/operations/_skus_operations.py +19 -18
- azure/mgmt/storage/v2020_08_01_preview/aio/operations/_storage_accounts_operations.py +164 -333
- azure/mgmt/storage/v2020_08_01_preview/aio/operations/_table_operations.py +46 -71
- azure/mgmt/storage/v2020_08_01_preview/aio/operations/_table_services_operations.py +34 -51
- azure/mgmt/storage/v2020_08_01_preview/aio/operations/_usages_operations.py +19 -20
- azure/mgmt/storage/v2020_08_01_preview/models/_models_py3.py +66 -88
- azure/mgmt/storage/v2020_08_01_preview/models/_storage_management_client_enums.py +0 -1
- azure/mgmt/storage/v2020_08_01_preview/operations/_blob_containers_operations.py +140 -245
- azure/mgmt/storage/v2020_08_01_preview/operations/_blob_inventory_policies_operations.py +45 -68
- azure/mgmt/storage/v2020_08_01_preview/operations/_blob_services_operations.py +39 -56
- azure/mgmt/storage/v2020_08_01_preview/operations/_deleted_accounts_operations.py +26 -31
- azure/mgmt/storage/v2020_08_01_preview/operations/_encryption_scopes_operations.py +50 -77
- azure/mgmt/storage/v2020_08_01_preview/operations/_file_services_operations.py +35 -52
- azure/mgmt/storage/v2020_08_01_preview/operations/_file_shares_operations.py +65 -116
- azure/mgmt/storage/v2020_08_01_preview/operations/_management_policies_operations.py +32 -50
- azure/mgmt/storage/v2020_08_01_preview/operations/_object_replication_policies_operations.py +46 -68
- azure/mgmt/storage/v2020_08_01_preview/operations/_operations.py +19 -18
- azure/mgmt/storage/v2020_08_01_preview/operations/_private_endpoint_connections_operations.py +44 -68
- azure/mgmt/storage/v2020_08_01_preview/operations/_private_link_resources_operations.py +14 -15
- azure/mgmt/storage/v2020_08_01_preview/operations/_queue_operations.py +56 -91
- azure/mgmt/storage/v2020_08_01_preview/operations/_queue_services_operations.py +34 -51
- azure/mgmt/storage/v2020_08_01_preview/operations/_skus_operations.py +19 -18
- azure/mgmt/storage/v2020_08_01_preview/operations/_storage_accounts_operations.py +165 -334
- azure/mgmt/storage/v2020_08_01_preview/operations/_table_operations.py +46 -71
- azure/mgmt/storage/v2020_08_01_preview/operations/_table_services_operations.py +34 -51
- azure/mgmt/storage/v2020_08_01_preview/operations/_usages_operations.py +19 -20
- azure/mgmt/storage/v2021_01_01/_configuration.py +3 -4
- azure/mgmt/storage/v2021_01_01/_patch.py +1 -0
- azure/mgmt/storage/v2021_01_01/_storage_management_client.py +23 -3
- azure/mgmt/storage/v2021_01_01/_version.py +1 -1
- azure/mgmt/storage/v2021_01_01/aio/_configuration.py +3 -4
- azure/mgmt/storage/v2021_01_01/aio/_patch.py +1 -0
- azure/mgmt/storage/v2021_01_01/aio/_storage_management_client.py +25 -3
- azure/mgmt/storage/v2021_01_01/aio/operations/_blob_containers_operations.py +136 -244
- azure/mgmt/storage/v2021_01_01/aio/operations/_blob_inventory_policies_operations.py +44 -68
- azure/mgmt/storage/v2021_01_01/aio/operations/_blob_services_operations.py +38 -56
- azure/mgmt/storage/v2021_01_01/aio/operations/_deleted_accounts_operations.py +26 -31
- azure/mgmt/storage/v2021_01_01/aio/operations/_encryption_scopes_operations.py +48 -77
- azure/mgmt/storage/v2021_01_01/aio/operations/_file_services_operations.py +34 -52
- azure/mgmt/storage/v2021_01_01/aio/operations/_file_shares_operations.py +65 -116
- azure/mgmt/storage/v2021_01_01/aio/operations/_management_policies_operations.py +32 -50
- azure/mgmt/storage/v2021_01_01/aio/operations/_object_replication_policies_operations.py +45 -68
- azure/mgmt/storage/v2021_01_01/aio/operations/_operations.py +19 -18
- azure/mgmt/storage/v2021_01_01/aio/operations/_private_endpoint_connections_operations.py +44 -68
- azure/mgmt/storage/v2021_01_01/aio/operations/_private_link_resources_operations.py +14 -15
- azure/mgmt/storage/v2021_01_01/aio/operations/_queue_operations.py +56 -91
- azure/mgmt/storage/v2021_01_01/aio/operations/_queue_services_operations.py +33 -51
- azure/mgmt/storage/v2021_01_01/aio/operations/_skus_operations.py +19 -18
- azure/mgmt/storage/v2021_01_01/aio/operations/_storage_accounts_operations.py +163 -333
- azure/mgmt/storage/v2021_01_01/aio/operations/_table_operations.py +46 -71
- azure/mgmt/storage/v2021_01_01/aio/operations/_table_services_operations.py +33 -51
- azure/mgmt/storage/v2021_01_01/aio/operations/_usages_operations.py +19 -20
- azure/mgmt/storage/v2021_01_01/models/_models_py3.py +66 -88
- azure/mgmt/storage/v2021_01_01/models/_storage_management_client_enums.py +0 -1
- azure/mgmt/storage/v2021_01_01/operations/_blob_containers_operations.py +137 -245
- azure/mgmt/storage/v2021_01_01/operations/_blob_inventory_policies_operations.py +44 -68
- azure/mgmt/storage/v2021_01_01/operations/_blob_services_operations.py +38 -56
- azure/mgmt/storage/v2021_01_01/operations/_deleted_accounts_operations.py +26 -31
- azure/mgmt/storage/v2021_01_01/operations/_encryption_scopes_operations.py +48 -77
- azure/mgmt/storage/v2021_01_01/operations/_file_services_operations.py +34 -52
- azure/mgmt/storage/v2021_01_01/operations/_file_shares_operations.py +65 -116
- azure/mgmt/storage/v2021_01_01/operations/_management_policies_operations.py +32 -50
- azure/mgmt/storage/v2021_01_01/operations/_object_replication_policies_operations.py +45 -68
- azure/mgmt/storage/v2021_01_01/operations/_operations.py +19 -18
- azure/mgmt/storage/v2021_01_01/operations/_private_endpoint_connections_operations.py +44 -68
- azure/mgmt/storage/v2021_01_01/operations/_private_link_resources_operations.py +14 -15
- azure/mgmt/storage/v2021_01_01/operations/_queue_operations.py +56 -91
- azure/mgmt/storage/v2021_01_01/operations/_queue_services_operations.py +33 -51
- azure/mgmt/storage/v2021_01_01/operations/_skus_operations.py +19 -18
- azure/mgmt/storage/v2021_01_01/operations/_storage_accounts_operations.py +164 -334
- azure/mgmt/storage/v2021_01_01/operations/_table_operations.py +46 -71
- azure/mgmt/storage/v2021_01_01/operations/_table_services_operations.py +33 -51
- azure/mgmt/storage/v2021_01_01/operations/_usages_operations.py +19 -20
- azure/mgmt/storage/v2021_02_01/_configuration.py +3 -4
- azure/mgmt/storage/v2021_02_01/_patch.py +1 -0
- azure/mgmt/storage/v2021_02_01/_storage_management_client.py +23 -3
- azure/mgmt/storage/v2021_02_01/_version.py +1 -1
- azure/mgmt/storage/v2021_02_01/aio/_configuration.py +3 -4
- azure/mgmt/storage/v2021_02_01/aio/_patch.py +1 -0
- azure/mgmt/storage/v2021_02_01/aio/_storage_management_client.py +25 -3
- azure/mgmt/storage/v2021_02_01/aio/operations/_blob_containers_operations.py +136 -244
- azure/mgmt/storage/v2021_02_01/aio/operations/_blob_inventory_policies_operations.py +44 -68
- azure/mgmt/storage/v2021_02_01/aio/operations/_blob_services_operations.py +38 -56
- azure/mgmt/storage/v2021_02_01/aio/operations/_deleted_accounts_operations.py +26 -31
- azure/mgmt/storage/v2021_02_01/aio/operations/_encryption_scopes_operations.py +48 -77
- azure/mgmt/storage/v2021_02_01/aio/operations/_file_services_operations.py +34 -52
- azure/mgmt/storage/v2021_02_01/aio/operations/_file_shares_operations.py +65 -116
- azure/mgmt/storage/v2021_02_01/aio/operations/_management_policies_operations.py +32 -50
- azure/mgmt/storage/v2021_02_01/aio/operations/_object_replication_policies_operations.py +45 -68
- azure/mgmt/storage/v2021_02_01/aio/operations/_operations.py +19 -18
- azure/mgmt/storage/v2021_02_01/aio/operations/_private_endpoint_connections_operations.py +44 -68
- azure/mgmt/storage/v2021_02_01/aio/operations/_private_link_resources_operations.py +14 -15
- azure/mgmt/storage/v2021_02_01/aio/operations/_queue_operations.py +56 -91
- azure/mgmt/storage/v2021_02_01/aio/operations/_queue_services_operations.py +33 -51
- azure/mgmt/storage/v2021_02_01/aio/operations/_skus_operations.py +19 -18
- azure/mgmt/storage/v2021_02_01/aio/operations/_storage_accounts_operations.py +163 -333
- azure/mgmt/storage/v2021_02_01/aio/operations/_table_operations.py +46 -71
- azure/mgmt/storage/v2021_02_01/aio/operations/_table_services_operations.py +33 -51
- azure/mgmt/storage/v2021_02_01/aio/operations/_usages_operations.py +19 -20
- azure/mgmt/storage/v2021_02_01/models/_models_py3.py +68 -90
- azure/mgmt/storage/v2021_02_01/models/_storage_management_client_enums.py +0 -1
- azure/mgmt/storage/v2021_02_01/operations/_blob_containers_operations.py +137 -245
- azure/mgmt/storage/v2021_02_01/operations/_blob_inventory_policies_operations.py +44 -68
- azure/mgmt/storage/v2021_02_01/operations/_blob_services_operations.py +38 -56
- azure/mgmt/storage/v2021_02_01/operations/_deleted_accounts_operations.py +26 -31
- azure/mgmt/storage/v2021_02_01/operations/_encryption_scopes_operations.py +48 -77
- azure/mgmt/storage/v2021_02_01/operations/_file_services_operations.py +34 -52
- azure/mgmt/storage/v2021_02_01/operations/_file_shares_operations.py +65 -116
- azure/mgmt/storage/v2021_02_01/operations/_management_policies_operations.py +32 -50
- azure/mgmt/storage/v2021_02_01/operations/_object_replication_policies_operations.py +45 -68
- azure/mgmt/storage/v2021_02_01/operations/_operations.py +19 -18
- azure/mgmt/storage/v2021_02_01/operations/_private_endpoint_connections_operations.py +44 -68
- azure/mgmt/storage/v2021_02_01/operations/_private_link_resources_operations.py +14 -15
- azure/mgmt/storage/v2021_02_01/operations/_queue_operations.py +56 -91
- azure/mgmt/storage/v2021_02_01/operations/_queue_services_operations.py +33 -51
- azure/mgmt/storage/v2021_02_01/operations/_skus_operations.py +19 -18
- azure/mgmt/storage/v2021_02_01/operations/_storage_accounts_operations.py +164 -334
- azure/mgmt/storage/v2021_02_01/operations/_table_operations.py +46 -71
- azure/mgmt/storage/v2021_02_01/operations/_table_services_operations.py +33 -51
- azure/mgmt/storage/v2021_02_01/operations/_usages_operations.py +19 -20
- azure/mgmt/storage/v2021_04_01/_configuration.py +3 -4
- azure/mgmt/storage/v2021_04_01/_patch.py +1 -0
- azure/mgmt/storage/v2021_04_01/_storage_management_client.py +23 -3
- azure/mgmt/storage/v2021_04_01/_version.py +1 -1
- azure/mgmt/storage/v2021_04_01/aio/_configuration.py +3 -4
- azure/mgmt/storage/v2021_04_01/aio/_patch.py +1 -0
- azure/mgmt/storage/v2021_04_01/aio/_storage_management_client.py +25 -3
- azure/mgmt/storage/v2021_04_01/aio/operations/_blob_containers_operations.py +145 -270
- azure/mgmt/storage/v2021_04_01/aio/operations/_blob_inventory_policies_operations.py +44 -68
- azure/mgmt/storage/v2021_04_01/aio/operations/_blob_services_operations.py +38 -56
- azure/mgmt/storage/v2021_04_01/aio/operations/_deleted_accounts_operations.py +26 -31
- azure/mgmt/storage/v2021_04_01/aio/operations/_encryption_scopes_operations.py +48 -77
- azure/mgmt/storage/v2021_04_01/aio/operations/_file_services_operations.py +34 -52
- azure/mgmt/storage/v2021_04_01/aio/operations/_file_shares_operations.py +80 -137
- azure/mgmt/storage/v2021_04_01/aio/operations/_management_policies_operations.py +32 -50
- azure/mgmt/storage/v2021_04_01/aio/operations/_object_replication_policies_operations.py +45 -68
- azure/mgmt/storage/v2021_04_01/aio/operations/_operations.py +19 -18
- azure/mgmt/storage/v2021_04_01/aio/operations/_private_endpoint_connections_operations.py +44 -68
- azure/mgmt/storage/v2021_04_01/aio/operations/_private_link_resources_operations.py +14 -15
- azure/mgmt/storage/v2021_04_01/aio/operations/_queue_operations.py +56 -91
- azure/mgmt/storage/v2021_04_01/aio/operations/_queue_services_operations.py +33 -51
- azure/mgmt/storage/v2021_04_01/aio/operations/_skus_operations.py +19 -18
- azure/mgmt/storage/v2021_04_01/aio/operations/_storage_accounts_operations.py +163 -333
- azure/mgmt/storage/v2021_04_01/aio/operations/_table_operations.py +46 -71
- azure/mgmt/storage/v2021_04_01/aio/operations/_table_services_operations.py +33 -51
- azure/mgmt/storage/v2021_04_01/aio/operations/_usages_operations.py +19 -20
- azure/mgmt/storage/v2021_04_01/models/_models_py3.py +70 -92
- azure/mgmt/storage/v2021_04_01/models/_storage_management_client_enums.py +0 -2
- azure/mgmt/storage/v2021_04_01/operations/_blob_containers_operations.py +146 -271
- azure/mgmt/storage/v2021_04_01/operations/_blob_inventory_policies_operations.py +44 -68
- azure/mgmt/storage/v2021_04_01/operations/_blob_services_operations.py +38 -56
- azure/mgmt/storage/v2021_04_01/operations/_deleted_accounts_operations.py +26 -31
- azure/mgmt/storage/v2021_04_01/operations/_encryption_scopes_operations.py +48 -77
- azure/mgmt/storage/v2021_04_01/operations/_file_services_operations.py +34 -52
- azure/mgmt/storage/v2021_04_01/operations/_file_shares_operations.py +80 -137
- azure/mgmt/storage/v2021_04_01/operations/_management_policies_operations.py +32 -50
- azure/mgmt/storage/v2021_04_01/operations/_object_replication_policies_operations.py +45 -68
- azure/mgmt/storage/v2021_04_01/operations/_operations.py +19 -18
- azure/mgmt/storage/v2021_04_01/operations/_private_endpoint_connections_operations.py +44 -68
- azure/mgmt/storage/v2021_04_01/operations/_private_link_resources_operations.py +14 -15
- azure/mgmt/storage/v2021_04_01/operations/_queue_operations.py +56 -91
- azure/mgmt/storage/v2021_04_01/operations/_queue_services_operations.py +33 -51
- azure/mgmt/storage/v2021_04_01/operations/_skus_operations.py +19 -18
- azure/mgmt/storage/v2021_04_01/operations/_storage_accounts_operations.py +164 -334
- azure/mgmt/storage/v2021_04_01/operations/_table_operations.py +46 -71
- azure/mgmt/storage/v2021_04_01/operations/_table_services_operations.py +33 -51
- azure/mgmt/storage/v2021_04_01/operations/_usages_operations.py +19 -20
- azure/mgmt/storage/v2021_06_01/_configuration.py +3 -4
- azure/mgmt/storage/v2021_06_01/_patch.py +1 -0
- azure/mgmt/storage/v2021_06_01/_storage_management_client.py +23 -3
- azure/mgmt/storage/v2021_06_01/_version.py +1 -1
- azure/mgmt/storage/v2021_06_01/aio/_configuration.py +3 -4
- azure/mgmt/storage/v2021_06_01/aio/_patch.py +1 -0
- azure/mgmt/storage/v2021_06_01/aio/_storage_management_client.py +25 -3
- azure/mgmt/storage/v2021_06_01/aio/operations/_blob_containers_operations.py +143 -293
- azure/mgmt/storage/v2021_06_01/aio/operations/_blob_inventory_policies_operations.py +44 -68
- azure/mgmt/storage/v2021_06_01/aio/operations/_blob_services_operations.py +36 -75
- azure/mgmt/storage/v2021_06_01/aio/operations/_deleted_accounts_operations.py +26 -31
- azure/mgmt/storage/v2021_06_01/aio/operations/_encryption_scopes_operations.py +48 -77
- azure/mgmt/storage/v2021_06_01/aio/operations/_file_services_operations.py +32 -71
- azure/mgmt/storage/v2021_06_01/aio/operations/_file_shares_operations.py +80 -137
- azure/mgmt/storage/v2021_06_01/aio/operations/_management_policies_operations.py +32 -50
- azure/mgmt/storage/v2021_06_01/aio/operations/_object_replication_policies_operations.py +45 -68
- azure/mgmt/storage/v2021_06_01/aio/operations/_operations.py +19 -18
- azure/mgmt/storage/v2021_06_01/aio/operations/_private_endpoint_connections_operations.py +44 -68
- azure/mgmt/storage/v2021_06_01/aio/operations/_private_link_resources_operations.py +14 -15
- azure/mgmt/storage/v2021_06_01/aio/operations/_queue_operations.py +56 -91
- azure/mgmt/storage/v2021_06_01/aio/operations/_queue_services_operations.py +31 -70
- azure/mgmt/storage/v2021_06_01/aio/operations/_skus_operations.py +19 -18
- azure/mgmt/storage/v2021_06_01/aio/operations/_storage_accounts_operations.py +184 -388
- azure/mgmt/storage/v2021_06_01/aio/operations/_table_operations.py +46 -71
- azure/mgmt/storage/v2021_06_01/aio/operations/_table_services_operations.py +31 -70
- azure/mgmt/storage/v2021_06_01/aio/operations/_usages_operations.py +19 -20
- azure/mgmt/storage/v2021_06_01/models/_models_py3.py +70 -92
- azure/mgmt/storage/v2021_06_01/models/_storage_management_client_enums.py +0 -2
- azure/mgmt/storage/v2021_06_01/operations/_blob_containers_operations.py +144 -294
- azure/mgmt/storage/v2021_06_01/operations/_blob_inventory_policies_operations.py +44 -68
- azure/mgmt/storage/v2021_06_01/operations/_blob_services_operations.py +36 -75
- azure/mgmt/storage/v2021_06_01/operations/_deleted_accounts_operations.py +26 -31
- azure/mgmt/storage/v2021_06_01/operations/_encryption_scopes_operations.py +48 -77
- azure/mgmt/storage/v2021_06_01/operations/_file_services_operations.py +32 -71
- azure/mgmt/storage/v2021_06_01/operations/_file_shares_operations.py +80 -137
- azure/mgmt/storage/v2021_06_01/operations/_management_policies_operations.py +32 -50
- azure/mgmt/storage/v2021_06_01/operations/_object_replication_policies_operations.py +45 -68
- azure/mgmt/storage/v2021_06_01/operations/_operations.py +19 -18
- azure/mgmt/storage/v2021_06_01/operations/_private_endpoint_connections_operations.py +44 -68
- azure/mgmt/storage/v2021_06_01/operations/_private_link_resources_operations.py +14 -15
- azure/mgmt/storage/v2021_06_01/operations/_queue_operations.py +56 -91
- azure/mgmt/storage/v2021_06_01/operations/_queue_services_operations.py +31 -70
- azure/mgmt/storage/v2021_06_01/operations/_skus_operations.py +19 -18
- azure/mgmt/storage/v2021_06_01/operations/_storage_accounts_operations.py +187 -391
- azure/mgmt/storage/v2021_06_01/operations/_table_operations.py +46 -71
- azure/mgmt/storage/v2021_06_01/operations/_table_services_operations.py +31 -70
- azure/mgmt/storage/v2021_06_01/operations/_usages_operations.py +19 -20
- azure/mgmt/storage/v2021_08_01/_configuration.py +3 -4
- azure/mgmt/storage/v2021_08_01/_patch.py +1 -0
- azure/mgmt/storage/v2021_08_01/_storage_management_client.py +23 -3
- azure/mgmt/storage/v2021_08_01/_version.py +1 -1
- azure/mgmt/storage/v2021_08_01/aio/_configuration.py +3 -4
- azure/mgmt/storage/v2021_08_01/aio/_patch.py +1 -0
- azure/mgmt/storage/v2021_08_01/aio/_storage_management_client.py +25 -3
- azure/mgmt/storage/v2021_08_01/aio/operations/_blob_containers_operations.py +143 -293
- azure/mgmt/storage/v2021_08_01/aio/operations/_blob_inventory_policies_operations.py +44 -68
- azure/mgmt/storage/v2021_08_01/aio/operations/_blob_services_operations.py +36 -75
- azure/mgmt/storage/v2021_08_01/aio/operations/_deleted_accounts_operations.py +26 -31
- azure/mgmt/storage/v2021_08_01/aio/operations/_encryption_scopes_operations.py +48 -77
- azure/mgmt/storage/v2021_08_01/aio/operations/_file_services_operations.py +32 -71
- azure/mgmt/storage/v2021_08_01/aio/operations/_file_shares_operations.py +80 -137
- azure/mgmt/storage/v2021_08_01/aio/operations/_local_users_operations.py +58 -94
- azure/mgmt/storage/v2021_08_01/aio/operations/_management_policies_operations.py +32 -50
- azure/mgmt/storage/v2021_08_01/aio/operations/_object_replication_policies_operations.py +45 -68
- azure/mgmt/storage/v2021_08_01/aio/operations/_operations.py +19 -18
- azure/mgmt/storage/v2021_08_01/aio/operations/_private_endpoint_connections_operations.py +44 -68
- azure/mgmt/storage/v2021_08_01/aio/operations/_private_link_resources_operations.py +14 -15
- azure/mgmt/storage/v2021_08_01/aio/operations/_queue_operations.py +56 -91
- azure/mgmt/storage/v2021_08_01/aio/operations/_queue_services_operations.py +31 -70
- azure/mgmt/storage/v2021_08_01/aio/operations/_skus_operations.py +19 -18
- azure/mgmt/storage/v2021_08_01/aio/operations/_storage_accounts_operations.py +184 -388
- azure/mgmt/storage/v2021_08_01/aio/operations/_table_operations.py +46 -71
- azure/mgmt/storage/v2021_08_01/aio/operations/_table_services_operations.py +31 -70
- azure/mgmt/storage/v2021_08_01/aio/operations/_usages_operations.py +19 -20
- azure/mgmt/storage/v2021_08_01/models/_models_py3.py +72 -94
- azure/mgmt/storage/v2021_08_01/models/_storage_management_client_enums.py +0 -2
- azure/mgmt/storage/v2021_08_01/operations/_blob_containers_operations.py +144 -294
- azure/mgmt/storage/v2021_08_01/operations/_blob_inventory_policies_operations.py +44 -68
- azure/mgmt/storage/v2021_08_01/operations/_blob_services_operations.py +36 -75
- azure/mgmt/storage/v2021_08_01/operations/_deleted_accounts_operations.py +26 -31
- azure/mgmt/storage/v2021_08_01/operations/_encryption_scopes_operations.py +48 -77
- azure/mgmt/storage/v2021_08_01/operations/_file_services_operations.py +32 -71
- azure/mgmt/storage/v2021_08_01/operations/_file_shares_operations.py +80 -137
- azure/mgmt/storage/v2021_08_01/operations/_local_users_operations.py +58 -94
- azure/mgmt/storage/v2021_08_01/operations/_management_policies_operations.py +32 -50
- azure/mgmt/storage/v2021_08_01/operations/_object_replication_policies_operations.py +45 -68
- azure/mgmt/storage/v2021_08_01/operations/_operations.py +19 -18
- azure/mgmt/storage/v2021_08_01/operations/_private_endpoint_connections_operations.py +44 -68
- azure/mgmt/storage/v2021_08_01/operations/_private_link_resources_operations.py +14 -15
- azure/mgmt/storage/v2021_08_01/operations/_queue_operations.py +56 -91
- azure/mgmt/storage/v2021_08_01/operations/_queue_services_operations.py +31 -70
- azure/mgmt/storage/v2021_08_01/operations/_skus_operations.py +19 -18
- azure/mgmt/storage/v2021_08_01/operations/_storage_accounts_operations.py +187 -391
- azure/mgmt/storage/v2021_08_01/operations/_table_operations.py +46 -71
- azure/mgmt/storage/v2021_08_01/operations/_table_services_operations.py +31 -70
- azure/mgmt/storage/v2021_08_01/operations/_usages_operations.py +19 -20
- azure/mgmt/storage/v2021_09_01/_configuration.py +3 -4
- azure/mgmt/storage/v2021_09_01/_patch.py +1 -0
- azure/mgmt/storage/v2021_09_01/_storage_management_client.py +23 -3
- azure/mgmt/storage/v2021_09_01/_version.py +1 -1
- azure/mgmt/storage/v2021_09_01/aio/_configuration.py +3 -4
- azure/mgmt/storage/v2021_09_01/aio/_patch.py +1 -0
- azure/mgmt/storage/v2021_09_01/aio/_storage_management_client.py +25 -3
- azure/mgmt/storage/v2021_09_01/aio/operations/_blob_containers_operations.py +143 -293
- azure/mgmt/storage/v2021_09_01/aio/operations/_blob_inventory_policies_operations.py +44 -68
- azure/mgmt/storage/v2021_09_01/aio/operations/_blob_services_operations.py +36 -75
- azure/mgmt/storage/v2021_09_01/aio/operations/_deleted_accounts_operations.py +26 -31
- azure/mgmt/storage/v2021_09_01/aio/operations/_encryption_scopes_operations.py +48 -77
- azure/mgmt/storage/v2021_09_01/aio/operations/_file_services_operations.py +32 -71
- azure/mgmt/storage/v2021_09_01/aio/operations/_file_shares_operations.py +80 -137
- azure/mgmt/storage/v2021_09_01/aio/operations/_local_users_operations.py +58 -94
- azure/mgmt/storage/v2021_09_01/aio/operations/_management_policies_operations.py +32 -50
- azure/mgmt/storage/v2021_09_01/aio/operations/_object_replication_policies_operations.py +45 -68
- azure/mgmt/storage/v2021_09_01/aio/operations/_operations.py +19 -18
- azure/mgmt/storage/v2021_09_01/aio/operations/_private_endpoint_connections_operations.py +44 -68
- azure/mgmt/storage/v2021_09_01/aio/operations/_private_link_resources_operations.py +14 -15
- azure/mgmt/storage/v2021_09_01/aio/operations/_queue_operations.py +56 -91
- azure/mgmt/storage/v2021_09_01/aio/operations/_queue_services_operations.py +31 -70
- azure/mgmt/storage/v2021_09_01/aio/operations/_skus_operations.py +19 -18
- azure/mgmt/storage/v2021_09_01/aio/operations/_storage_accounts_operations.py +184 -388
- azure/mgmt/storage/v2021_09_01/aio/operations/_table_operations.py +58 -93
- azure/mgmt/storage/v2021_09_01/aio/operations/_table_services_operations.py +31 -70
- azure/mgmt/storage/v2021_09_01/aio/operations/_usages_operations.py +19 -20
- azure/mgmt/storage/v2021_09_01/models/_models_py3.py +74 -96
- azure/mgmt/storage/v2021_09_01/models/_storage_management_client_enums.py +0 -2
- azure/mgmt/storage/v2021_09_01/operations/_blob_containers_operations.py +144 -294
- azure/mgmt/storage/v2021_09_01/operations/_blob_inventory_policies_operations.py +44 -68
- azure/mgmt/storage/v2021_09_01/operations/_blob_services_operations.py +36 -75
- azure/mgmt/storage/v2021_09_01/operations/_deleted_accounts_operations.py +26 -31
- azure/mgmt/storage/v2021_09_01/operations/_encryption_scopes_operations.py +48 -77
- azure/mgmt/storage/v2021_09_01/operations/_file_services_operations.py +32 -71
- azure/mgmt/storage/v2021_09_01/operations/_file_shares_operations.py +80 -137
- azure/mgmt/storage/v2021_09_01/operations/_local_users_operations.py +58 -94
- azure/mgmt/storage/v2021_09_01/operations/_management_policies_operations.py +32 -50
- azure/mgmt/storage/v2021_09_01/operations/_object_replication_policies_operations.py +45 -68
- azure/mgmt/storage/v2021_09_01/operations/_operations.py +19 -18
- azure/mgmt/storage/v2021_09_01/operations/_private_endpoint_connections_operations.py +44 -68
- azure/mgmt/storage/v2021_09_01/operations/_private_link_resources_operations.py +14 -15
- azure/mgmt/storage/v2021_09_01/operations/_queue_operations.py +56 -91
- azure/mgmt/storage/v2021_09_01/operations/_queue_services_operations.py +31 -70
- azure/mgmt/storage/v2021_09_01/operations/_skus_operations.py +19 -18
- azure/mgmt/storage/v2021_09_01/operations/_storage_accounts_operations.py +187 -391
- azure/mgmt/storage/v2021_09_01/operations/_table_operations.py +58 -93
- azure/mgmt/storage/v2021_09_01/operations/_table_services_operations.py +31 -70
- azure/mgmt/storage/v2021_09_01/operations/_usages_operations.py +19 -20
- azure/mgmt/storage/v2022_05_01/_configuration.py +3 -4
- azure/mgmt/storage/v2022_05_01/_storage_management_client.py +23 -3
- azure/mgmt/storage/v2022_05_01/_version.py +1 -1
- azure/mgmt/storage/v2022_05_01/aio/_configuration.py +3 -4
- azure/mgmt/storage/v2022_05_01/aio/_storage_management_client.py +25 -3
- azure/mgmt/storage/v2022_05_01/aio/operations/_blob_containers_operations.py +143 -293
- azure/mgmt/storage/v2022_05_01/aio/operations/_blob_inventory_policies_operations.py +44 -68
- azure/mgmt/storage/v2022_05_01/aio/operations/_blob_services_operations.py +36 -75
- azure/mgmt/storage/v2022_05_01/aio/operations/_deleted_accounts_operations.py +26 -31
- azure/mgmt/storage/v2022_05_01/aio/operations/_encryption_scopes_operations.py +48 -77
- azure/mgmt/storage/v2022_05_01/aio/operations/_file_services_operations.py +32 -71
- azure/mgmt/storage/v2022_05_01/aio/operations/_file_shares_operations.py +80 -137
- azure/mgmt/storage/v2022_05_01/aio/operations/_local_users_operations.py +58 -94
- azure/mgmt/storage/v2022_05_01/aio/operations/_management_policies_operations.py +32 -50
- azure/mgmt/storage/v2022_05_01/aio/operations/_object_replication_policies_operations.py +45 -68
- azure/mgmt/storage/v2022_05_01/aio/operations/_operations.py +19 -18
- azure/mgmt/storage/v2022_05_01/aio/operations/_private_endpoint_connections_operations.py +44 -68
- azure/mgmt/storage/v2022_05_01/aio/operations/_private_link_resources_operations.py +14 -15
- azure/mgmt/storage/v2022_05_01/aio/operations/_queue_operations.py +56 -91
- azure/mgmt/storage/v2022_05_01/aio/operations/_queue_services_operations.py +31 -70
- azure/mgmt/storage/v2022_05_01/aio/operations/_skus_operations.py +19 -18
- azure/mgmt/storage/v2022_05_01/aio/operations/_storage_accounts_operations.py +184 -388
- azure/mgmt/storage/v2022_05_01/aio/operations/_table_operations.py +58 -93
- azure/mgmt/storage/v2022_05_01/aio/operations/_table_services_operations.py +31 -70
- azure/mgmt/storage/v2022_05_01/aio/operations/_usages_operations.py +19 -20
- azure/mgmt/storage/v2022_05_01/models/_models_py3.py +73 -95
- azure/mgmt/storage/v2022_05_01/models/_storage_management_client_enums.py +0 -2
- azure/mgmt/storage/v2022_05_01/operations/_blob_containers_operations.py +144 -294
- azure/mgmt/storage/v2022_05_01/operations/_blob_inventory_policies_operations.py +44 -68
- azure/mgmt/storage/v2022_05_01/operations/_blob_services_operations.py +36 -75
- azure/mgmt/storage/v2022_05_01/operations/_deleted_accounts_operations.py +26 -31
- azure/mgmt/storage/v2022_05_01/operations/_encryption_scopes_operations.py +48 -77
- azure/mgmt/storage/v2022_05_01/operations/_file_services_operations.py +32 -71
- azure/mgmt/storage/v2022_05_01/operations/_file_shares_operations.py +80 -137
- azure/mgmt/storage/v2022_05_01/operations/_local_users_operations.py +58 -94
- azure/mgmt/storage/v2022_05_01/operations/_management_policies_operations.py +32 -50
- azure/mgmt/storage/v2022_05_01/operations/_object_replication_policies_operations.py +45 -68
- azure/mgmt/storage/v2022_05_01/operations/_operations.py +19 -18
- azure/mgmt/storage/v2022_05_01/operations/_private_endpoint_connections_operations.py +44 -68
- azure/mgmt/storage/v2022_05_01/operations/_private_link_resources_operations.py +14 -15
- azure/mgmt/storage/v2022_05_01/operations/_queue_operations.py +56 -91
- azure/mgmt/storage/v2022_05_01/operations/_queue_services_operations.py +31 -70
- azure/mgmt/storage/v2022_05_01/operations/_skus_operations.py +19 -18
- azure/mgmt/storage/v2022_05_01/operations/_storage_accounts_operations.py +187 -391
- azure/mgmt/storage/v2022_05_01/operations/_table_operations.py +58 -93
- azure/mgmt/storage/v2022_05_01/operations/_table_services_operations.py +31 -70
- azure/mgmt/storage/v2022_05_01/operations/_usages_operations.py +19 -20
- azure/mgmt/storage/v2022_09_01/_configuration.py +3 -4
- azure/mgmt/storage/v2022_09_01/_storage_management_client.py +23 -3
- azure/mgmt/storage/v2022_09_01/_version.py +1 -1
- azure/mgmt/storage/v2022_09_01/aio/_configuration.py +3 -4
- azure/mgmt/storage/v2022_09_01/aio/_storage_management_client.py +25 -3
- azure/mgmt/storage/v2022_09_01/aio/operations/_blob_containers_operations.py +143 -293
- azure/mgmt/storage/v2022_09_01/aio/operations/_blob_inventory_policies_operations.py +44 -68
- azure/mgmt/storage/v2022_09_01/aio/operations/_blob_services_operations.py +36 -75
- azure/mgmt/storage/v2022_09_01/aio/operations/_deleted_accounts_operations.py +26 -31
- azure/mgmt/storage/v2022_09_01/aio/operations/_encryption_scopes_operations.py +48 -77
- azure/mgmt/storage/v2022_09_01/aio/operations/_file_services_operations.py +32 -71
- azure/mgmt/storage/v2022_09_01/aio/operations/_file_shares_operations.py +80 -137
- azure/mgmt/storage/v2022_09_01/aio/operations/_local_users_operations.py +58 -94
- azure/mgmt/storage/v2022_09_01/aio/operations/_management_policies_operations.py +32 -50
- azure/mgmt/storage/v2022_09_01/aio/operations/_object_replication_policies_operations.py +45 -68
- azure/mgmt/storage/v2022_09_01/aio/operations/_operations.py +19 -18
- azure/mgmt/storage/v2022_09_01/aio/operations/_private_endpoint_connections_operations.py +44 -68
- azure/mgmt/storage/v2022_09_01/aio/operations/_private_link_resources_operations.py +14 -15
- azure/mgmt/storage/v2022_09_01/aio/operations/_queue_operations.py +56 -91
- azure/mgmt/storage/v2022_09_01/aio/operations/_queue_services_operations.py +31 -70
- azure/mgmt/storage/v2022_09_01/aio/operations/_skus_operations.py +19 -18
- azure/mgmt/storage/v2022_09_01/aio/operations/_storage_accounts_operations.py +184 -388
- azure/mgmt/storage/v2022_09_01/aio/operations/_table_operations.py +58 -93
- azure/mgmt/storage/v2022_09_01/aio/operations/_table_services_operations.py +31 -70
- azure/mgmt/storage/v2022_09_01/aio/operations/_usages_operations.py +19 -20
- azure/mgmt/storage/v2022_09_01/models/_models_py3.py +73 -95
- azure/mgmt/storage/v2022_09_01/models/_storage_management_client_enums.py +0 -2
- azure/mgmt/storage/v2022_09_01/operations/_blob_containers_operations.py +144 -294
- azure/mgmt/storage/v2022_09_01/operations/_blob_inventory_policies_operations.py +44 -68
- azure/mgmt/storage/v2022_09_01/operations/_blob_services_operations.py +36 -75
- azure/mgmt/storage/v2022_09_01/operations/_deleted_accounts_operations.py +26 -31
- azure/mgmt/storage/v2022_09_01/operations/_encryption_scopes_operations.py +48 -77
- azure/mgmt/storage/v2022_09_01/operations/_file_services_operations.py +32 -71
- azure/mgmt/storage/v2022_09_01/operations/_file_shares_operations.py +80 -137
- azure/mgmt/storage/v2022_09_01/operations/_local_users_operations.py +58 -94
- azure/mgmt/storage/v2022_09_01/operations/_management_policies_operations.py +32 -50
- azure/mgmt/storage/v2022_09_01/operations/_object_replication_policies_operations.py +45 -68
- azure/mgmt/storage/v2022_09_01/operations/_operations.py +19 -18
- azure/mgmt/storage/v2022_09_01/operations/_private_endpoint_connections_operations.py +44 -68
- azure/mgmt/storage/v2022_09_01/operations/_private_link_resources_operations.py +14 -15
- azure/mgmt/storage/v2022_09_01/operations/_queue_operations.py +56 -91
- azure/mgmt/storage/v2022_09_01/operations/_queue_services_operations.py +31 -70
- azure/mgmt/storage/v2022_09_01/operations/_skus_operations.py +19 -18
- azure/mgmt/storage/v2022_09_01/operations/_storage_accounts_operations.py +187 -391
- azure/mgmt/storage/v2022_09_01/operations/_table_operations.py +58 -93
- azure/mgmt/storage/v2022_09_01/operations/_table_services_operations.py +31 -70
- azure/mgmt/storage/v2022_09_01/operations/_usages_operations.py +19 -20
- azure/mgmt/storage/v2023_01_01/_configuration.py +3 -4
- azure/mgmt/storage/v2023_01_01/_storage_management_client.py +23 -3
- azure/mgmt/storage/v2023_01_01/_version.py +1 -1
- azure/mgmt/storage/v2023_01_01/aio/_configuration.py +3 -4
- azure/mgmt/storage/v2023_01_01/aio/_storage_management_client.py +25 -3
- azure/mgmt/storage/v2023_01_01/aio/operations/_blob_containers_operations.py +143 -293
- azure/mgmt/storage/v2023_01_01/aio/operations/_blob_inventory_policies_operations.py +44 -68
- azure/mgmt/storage/v2023_01_01/aio/operations/_blob_services_operations.py +36 -75
- azure/mgmt/storage/v2023_01_01/aio/operations/_deleted_accounts_operations.py +26 -31
- azure/mgmt/storage/v2023_01_01/aio/operations/_encryption_scopes_operations.py +48 -77
- azure/mgmt/storage/v2023_01_01/aio/operations/_file_services_operations.py +32 -71
- azure/mgmt/storage/v2023_01_01/aio/operations/_file_shares_operations.py +80 -137
- azure/mgmt/storage/v2023_01_01/aio/operations/_local_users_operations.py +58 -94
- azure/mgmt/storage/v2023_01_01/aio/operations/_management_policies_operations.py +32 -50
- azure/mgmt/storage/v2023_01_01/aio/operations/_object_replication_policies_operations.py +45 -68
- azure/mgmt/storage/v2023_01_01/aio/operations/_operations.py +19 -18
- azure/mgmt/storage/v2023_01_01/aio/operations/_private_endpoint_connections_operations.py +44 -68
- azure/mgmt/storage/v2023_01_01/aio/operations/_private_link_resources_operations.py +14 -15
- azure/mgmt/storage/v2023_01_01/aio/operations/_queue_operations.py +56 -91
- azure/mgmt/storage/v2023_01_01/aio/operations/_queue_services_operations.py +31 -70
- azure/mgmt/storage/v2023_01_01/aio/operations/_skus_operations.py +19 -18
- azure/mgmt/storage/v2023_01_01/aio/operations/_storage_accounts_operations.py +206 -452
- azure/mgmt/storage/v2023_01_01/aio/operations/_table_operations.py +58 -93
- azure/mgmt/storage/v2023_01_01/aio/operations/_table_services_operations.py +31 -70
- azure/mgmt/storage/v2023_01_01/aio/operations/_usages_operations.py +19 -20
- azure/mgmt/storage/v2023_01_01/models/_models_py3.py +74 -96
- azure/mgmt/storage/v2023_01_01/models/_storage_management_client_enums.py +0 -2
- azure/mgmt/storage/v2023_01_01/operations/_blob_containers_operations.py +144 -294
- azure/mgmt/storage/v2023_01_01/operations/_blob_inventory_policies_operations.py +44 -68
- azure/mgmt/storage/v2023_01_01/operations/_blob_services_operations.py +36 -75
- azure/mgmt/storage/v2023_01_01/operations/_deleted_accounts_operations.py +26 -31
- azure/mgmt/storage/v2023_01_01/operations/_encryption_scopes_operations.py +48 -77
- azure/mgmt/storage/v2023_01_01/operations/_file_services_operations.py +32 -71
- azure/mgmt/storage/v2023_01_01/operations/_file_shares_operations.py +80 -137
- azure/mgmt/storage/v2023_01_01/operations/_local_users_operations.py +58 -94
- azure/mgmt/storage/v2023_01_01/operations/_management_policies_operations.py +32 -50
- azure/mgmt/storage/v2023_01_01/operations/_object_replication_policies_operations.py +45 -68
- azure/mgmt/storage/v2023_01_01/operations/_operations.py +19 -18
- azure/mgmt/storage/v2023_01_01/operations/_private_endpoint_connections_operations.py +44 -68
- azure/mgmt/storage/v2023_01_01/operations/_private_link_resources_operations.py +14 -15
- azure/mgmt/storage/v2023_01_01/operations/_queue_operations.py +56 -91
- azure/mgmt/storage/v2023_01_01/operations/_queue_services_operations.py +31 -70
- azure/mgmt/storage/v2023_01_01/operations/_skus_operations.py +19 -18
- azure/mgmt/storage/v2023_01_01/operations/_storage_accounts_operations.py +211 -457
- azure/mgmt/storage/v2023_01_01/operations/_table_operations.py +58 -93
- azure/mgmt/storage/v2023_01_01/operations/_table_services_operations.py +31 -70
- azure/mgmt/storage/v2023_01_01/operations/_usages_operations.py +19 -20
- azure/mgmt/storage/v2023_05_01/__init__.py +26 -0
- azure/mgmt/storage/v2023_05_01/_configuration.py +65 -0
- azure/mgmt/storage/v2023_05_01/_patch.py +20 -0
- azure/mgmt/storage/v2023_05_01/_storage_management_client.py +256 -0
- azure/mgmt/storage/v2023_05_01/_vendor.py +16 -0
- azure/mgmt/storage/v2023_05_01/_version.py +9 -0
- azure/mgmt/storage/v2023_05_01/aio/__init__.py +23 -0
- azure/mgmt/storage/v2023_05_01/aio/_configuration.py +65 -0
- azure/mgmt/storage/v2023_05_01/aio/_patch.py +20 -0
- azure/mgmt/storage/v2023_05_01/aio/_storage_management_client.py +261 -0
- azure/mgmt/storage/v2023_05_01/aio/operations/__init__.py +65 -0
- azure/mgmt/storage/v2023_05_01/aio/operations/_blob_containers_operations.py +1838 -0
- azure/mgmt/storage/v2023_05_01/aio/operations/_blob_inventory_policies_operations.py +442 -0
- azure/mgmt/storage/v2023_05_01/aio/operations/_blob_services_operations.py +362 -0
- azure/mgmt/storage/v2023_05_01/aio/operations/_deleted_accounts_operations.py +194 -0
- azure/mgmt/storage/v2023_05_01/aio/operations/_encryption_scopes_operations.py +568 -0
- azure/mgmt/storage/v2023_05_01/aio/operations/_file_services_operations.py +328 -0
- azure/mgmt/storage/v2023_05_01/aio/operations/_file_shares_operations.py +1003 -0
- azure/mgmt/storage/v2023_05_01/aio/operations/_local_users_operations.py +583 -0
- azure/mgmt/storage/v2023_05_01/aio/operations/_management_policies_operations.py +349 -0
- azure/mgmt/storage/v2023_05_01/aio/operations/_network_security_perimeter_configurations_operations.py +342 -0
- azure/mgmt/storage/v2023_05_01/aio/operations/_object_replication_policies_operations.py +446 -0
- azure/mgmt/storage/v2023_05_01/aio/operations/_operations.py +135 -0
- azure/mgmt/storage/v2023_05_01/aio/operations/_patch.py +20 -0
- azure/mgmt/storage/v2023_05_01/aio/operations/_private_endpoint_connections_operations.py +432 -0
- azure/mgmt/storage/v2023_05_01/aio/operations/_private_link_resources_operations.py +117 -0
- azure/mgmt/storage/v2023_05_01/aio/operations/_queue_operations.py +608 -0
- azure/mgmt/storage/v2023_05_01/aio/operations/_queue_services_operations.py +328 -0
- azure/mgmt/storage/v2023_05_01/aio/operations/_skus_operations.py +136 -0
- azure/mgmt/storage/v2023_05_01/aio/operations/_storage_accounts_operations.py +2187 -0
- azure/mgmt/storage/v2023_05_01/aio/operations/_storage_task_assignment_instances_report_operations.py +170 -0
- azure/mgmt/storage/v2023_05_01/aio/operations/_storage_task_assignments_instances_report_operations.py +164 -0
- azure/mgmt/storage/v2023_05_01/aio/operations/_storage_task_assignments_operations.py +802 -0
- azure/mgmt/storage/v2023_05_01/aio/operations/_table_operations.py +588 -0
- azure/mgmt/storage/v2023_05_01/aio/operations/_table_services_operations.py +328 -0
- azure/mgmt/storage/v2023_05_01/aio/operations/_usages_operations.py +139 -0
- azure/mgmt/storage/v2023_05_01/models/__init__.py +537 -0
- azure/mgmt/storage/v2023_05_01/models/_models_py3.py +9703 -0
- azure/mgmt/storage/v2023_05_01/models/_patch.py +20 -0
- azure/mgmt/storage/v2023_05_01/models/_storage_management_client_enums.py +706 -0
- azure/mgmt/storage/v2023_05_01/operations/__init__.py +65 -0
- azure/mgmt/storage/v2023_05_01/operations/_blob_containers_operations.py +2398 -0
- azure/mgmt/storage/v2023_05_01/operations/_blob_inventory_policies_operations.py +595 -0
- azure/mgmt/storage/v2023_05_01/operations/_blob_services_operations.py +470 -0
- azure/mgmt/storage/v2023_05_01/operations/_deleted_accounts_operations.py +250 -0
- azure/mgmt/storage/v2023_05_01/operations/_encryption_scopes_operations.py +732 -0
- azure/mgmt/storage/v2023_05_01/operations/_file_services_operations.py +437 -0
- azure/mgmt/storage/v2023_05_01/operations/_file_shares_operations.py +1310 -0
- azure/mgmt/storage/v2023_05_01/operations/_local_users_operations.py +808 -0
- azure/mgmt/storage/v2023_05_01/operations/_management_policies_operations.py +465 -0
- azure/mgmt/storage/v2023_05_01/operations/_network_security_perimeter_configurations_operations.py +463 -0
- azure/mgmt/storage/v2023_05_01/operations/_object_replication_policies_operations.py +593 -0
- azure/mgmt/storage/v2023_05_01/operations/_operations.py +156 -0
- azure/mgmt/storage/v2023_05_01/operations/_patch.py +20 -0
- azure/mgmt/storage/v2023_05_01/operations/_private_endpoint_connections_operations.py +591 -0
- azure/mgmt/storage/v2023_05_01/operations/_private_link_resources_operations.py +155 -0
- azure/mgmt/storage/v2023_05_01/operations/_queue_operations.py +824 -0
- azure/mgmt/storage/v2023_05_01/operations/_queue_services_operations.py +437 -0
- azure/mgmt/storage/v2023_05_01/operations/_skus_operations.py +162 -0
- azure/mgmt/storage/v2023_05_01/operations/_storage_accounts_operations.py +2796 -0
- azure/mgmt/storage/v2023_05_01/operations/_storage_task_assignment_instances_report_operations.py +227 -0
- azure/mgmt/storage/v2023_05_01/operations/_storage_task_assignments_instances_report_operations.py +212 -0
- azure/mgmt/storage/v2023_05_01/operations/_storage_task_assignments_operations.py +1018 -0
- azure/mgmt/storage/v2023_05_01/operations/_table_operations.py +775 -0
- azure/mgmt/storage/v2023_05_01/operations/_table_services_operations.py +437 -0
- azure/mgmt/storage/v2023_05_01/operations/_usages_operations.py +169 -0
- {azure_mgmt_storage-21.1.0.dist-info → azure_mgmt_storage-21.2.0.dist-info}/METADATA +28 -11
- {azure_mgmt_storage-21.1.0.dist-info → azure_mgmt_storage-21.2.0.dist-info}/RECORD +776 -710
- {azure_mgmt_storage-21.1.0.dist-info → azure_mgmt_storage-21.2.0.dist-info}/WHEEL +1 -1
- {azure_mgmt_storage-21.1.0.dist-info → azure_mgmt_storage-21.2.0.dist-info}/LICENSE +0 -0
- {azure_mgmt_storage-21.1.0.dist-info → azure_mgmt_storage-21.2.0.dist-info}/top_level.txt +0 -0
@@ -1,4 +1,4 @@
|
|
1
|
-
# pylint: disable=too-many-lines
|
1
|
+
# pylint: disable=too-many-lines,too-many-statements
|
2
2
|
# coding=utf-8
|
3
3
|
# --------------------------------------------------------------------------
|
4
4
|
# Copyright (c) Microsoft Corporation. All rights reserved.
|
@@ -8,7 +8,7 @@
|
|
8
8
|
# --------------------------------------------------------------------------
|
9
9
|
from io import IOBase
|
10
10
|
import sys
|
11
|
-
from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload
|
11
|
+
from typing import Any, AsyncIterable, Callable, Dict, IO, Literal, Optional, Type, TypeVar, Union, cast, overload
|
12
12
|
import urllib.parse
|
13
13
|
|
14
14
|
from azure.core.async_paging import AsyncItemPaged, AsyncList
|
@@ -53,10 +53,10 @@ from ...operations._storage_accounts_operations import (
|
|
53
53
|
build_update_request,
|
54
54
|
)
|
55
55
|
|
56
|
-
if sys.version_info >= (3,
|
57
|
-
from
|
56
|
+
if sys.version_info >= (3, 9):
|
57
|
+
from collections.abc import MutableMapping
|
58
58
|
else:
|
59
|
-
from
|
59
|
+
from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
|
60
60
|
T = TypeVar("T")
|
61
61
|
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
|
62
62
|
|
@@ -99,7 +99,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
99
99
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
100
100
|
Default value is "application/json".
|
101
101
|
:paramtype content_type: str
|
102
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
103
102
|
:return: CheckNameAvailabilityResult or the result of cls(response)
|
104
103
|
:rtype: ~azure.mgmt.storage.v2023_01_01.models.CheckNameAvailabilityResult
|
105
104
|
:raises ~azure.core.exceptions.HttpResponseError:
|
@@ -107,18 +106,17 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
107
106
|
|
108
107
|
@overload
|
109
108
|
async def check_name_availability(
|
110
|
-
self, account_name: IO, *, content_type: str = "application/json", **kwargs: Any
|
109
|
+
self, account_name: IO[bytes], *, content_type: str = "application/json", **kwargs: Any
|
111
110
|
) -> _models.CheckNameAvailabilityResult:
|
112
111
|
"""Checks that the storage account name is valid and is not already in use.
|
113
112
|
|
114
113
|
:param account_name: The name of the storage account within the specified resource group.
|
115
114
|
Storage account names must be between 3 and 24 characters in length and use numbers and
|
116
115
|
lower-case letters only. Required.
|
117
|
-
:type account_name: IO
|
116
|
+
:type account_name: IO[bytes]
|
118
117
|
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
119
118
|
Default value is "application/json".
|
120
119
|
:paramtype content_type: str
|
121
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
122
120
|
:return: CheckNameAvailabilityResult or the result of cls(response)
|
123
121
|
:rtype: ~azure.mgmt.storage.v2023_01_01.models.CheckNameAvailabilityResult
|
124
122
|
:raises ~azure.core.exceptions.HttpResponseError:
|
@@ -126,25 +124,22 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
126
124
|
|
127
125
|
@distributed_trace_async
|
128
126
|
async def check_name_availability(
|
129
|
-
self, account_name: Union[_models.StorageAccountCheckNameAvailabilityParameters, IO], **kwargs: Any
|
127
|
+
self, account_name: Union[_models.StorageAccountCheckNameAvailabilityParameters, IO[bytes]], **kwargs: Any
|
130
128
|
) -> _models.CheckNameAvailabilityResult:
|
131
129
|
"""Checks that the storage account name is valid and is not already in use.
|
132
130
|
|
133
131
|
:param account_name: The name of the storage account within the specified resource group.
|
134
132
|
Storage account names must be between 3 and 24 characters in length and use numbers and
|
135
|
-
lower-case letters only. Is either a StorageAccountCheckNameAvailabilityParameters type or a
|
136
|
-
type. Required.
|
133
|
+
lower-case letters only. Is either a StorageAccountCheckNameAvailabilityParameters type or a
|
134
|
+
IO[bytes] type. Required.
|
137
135
|
:type account_name:
|
138
|
-
~azure.mgmt.storage.v2023_01_01.models.StorageAccountCheckNameAvailabilityParameters or
|
139
|
-
|
140
|
-
Default value is None.
|
141
|
-
:paramtype content_type: str
|
142
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
136
|
+
~azure.mgmt.storage.v2023_01_01.models.StorageAccountCheckNameAvailabilityParameters or
|
137
|
+
IO[bytes]
|
143
138
|
:return: CheckNameAvailabilityResult or the result of cls(response)
|
144
139
|
:rtype: ~azure.mgmt.storage.v2023_01_01.models.CheckNameAvailabilityResult
|
145
140
|
:raises ~azure.core.exceptions.HttpResponseError:
|
146
141
|
"""
|
147
|
-
error_map = {
|
142
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
148
143
|
401: ClientAuthenticationError,
|
149
144
|
404: ResourceNotFoundError,
|
150
145
|
409: ResourceExistsError,
|
@@ -167,22 +162,21 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
167
162
|
else:
|
168
163
|
_json = self._serialize.body(account_name, "StorageAccountCheckNameAvailabilityParameters")
|
169
164
|
|
170
|
-
|
165
|
+
_request = build_check_name_availability_request(
|
171
166
|
subscription_id=self._config.subscription_id,
|
172
167
|
api_version=api_version,
|
173
168
|
content_type=content_type,
|
174
169
|
json=_json,
|
175
170
|
content=_content,
|
176
|
-
template_url=self.check_name_availability.metadata["url"],
|
177
171
|
headers=_headers,
|
178
172
|
params=_params,
|
179
173
|
)
|
180
|
-
|
181
|
-
|
174
|
+
_request = _convert_request(_request)
|
175
|
+
_request.url = self._client.format_url(_request.url)
|
182
176
|
|
183
177
|
_stream = False
|
184
178
|
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
185
|
-
|
179
|
+
_request, stream=_stream, **kwargs
|
186
180
|
)
|
187
181
|
|
188
182
|
response = pipeline_response.http_response
|
@@ -194,22 +188,18 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
194
188
|
deserialized = self._deserialize("CheckNameAvailabilityResult", pipeline_response)
|
195
189
|
|
196
190
|
if cls:
|
197
|
-
return cls(pipeline_response, deserialized, {})
|
198
|
-
|
199
|
-
return deserialized
|
191
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
200
192
|
|
201
|
-
|
202
|
-
"url": "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/checkNameAvailability"
|
203
|
-
}
|
193
|
+
return deserialized # type: ignore
|
204
194
|
|
205
195
|
async def _create_initial(
|
206
196
|
self,
|
207
197
|
resource_group_name: str,
|
208
198
|
account_name: str,
|
209
|
-
parameters: Union[_models.StorageAccountCreateParameters, IO],
|
199
|
+
parameters: Union[_models.StorageAccountCreateParameters, IO[bytes]],
|
210
200
|
**kwargs: Any
|
211
201
|
) -> Optional[_models.StorageAccount]:
|
212
|
-
error_map = {
|
202
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
213
203
|
401: ClientAuthenticationError,
|
214
204
|
404: ResourceNotFoundError,
|
215
205
|
409: ResourceExistsError,
|
@@ -232,7 +222,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
232
222
|
else:
|
233
223
|
_json = self._serialize.body(parameters, "StorageAccountCreateParameters")
|
234
224
|
|
235
|
-
|
225
|
+
_request = build_create_request(
|
236
226
|
resource_group_name=resource_group_name,
|
237
227
|
account_name=account_name,
|
238
228
|
subscription_id=self._config.subscription_id,
|
@@ -240,16 +230,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
240
230
|
content_type=content_type,
|
241
231
|
json=_json,
|
242
232
|
content=_content,
|
243
|
-
template_url=self._create_initial.metadata["url"],
|
244
233
|
headers=_headers,
|
245
234
|
params=_params,
|
246
235
|
)
|
247
|
-
|
248
|
-
|
236
|
+
_request = _convert_request(_request)
|
237
|
+
_request.url = self._client.format_url(_request.url)
|
249
238
|
|
250
239
|
_stream = False
|
251
240
|
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
252
|
-
|
241
|
+
_request, stream=_stream, **kwargs
|
253
242
|
)
|
254
243
|
|
255
244
|
response = pipeline_response.http_response
|
@@ -263,13 +252,9 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
263
252
|
deserialized = self._deserialize("StorageAccount", pipeline_response)
|
264
253
|
|
265
254
|
if cls:
|
266
|
-
return cls(pipeline_response, deserialized, {})
|
267
|
-
|
268
|
-
return deserialized
|
255
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
269
256
|
|
270
|
-
|
271
|
-
"url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"
|
272
|
-
}
|
257
|
+
return deserialized # type: ignore
|
273
258
|
|
274
259
|
@overload
|
275
260
|
async def begin_create(
|
@@ -298,14 +283,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
298
283
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
299
284
|
Default value is "application/json".
|
300
285
|
:paramtype content_type: str
|
301
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
302
|
-
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
|
303
|
-
:keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for
|
304
|
-
this operation to not poll, or pass in your own initialized polling object for a personal
|
305
|
-
polling strategy.
|
306
|
-
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
|
307
|
-
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
|
308
|
-
Retry-After header is present.
|
309
286
|
:return: An instance of AsyncLROPoller that returns either StorageAccount or the result of
|
310
287
|
cls(response)
|
311
288
|
:rtype:
|
@@ -318,7 +295,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
318
295
|
self,
|
319
296
|
resource_group_name: str,
|
320
297
|
account_name: str,
|
321
|
-
parameters: IO,
|
298
|
+
parameters: IO[bytes],
|
322
299
|
*,
|
323
300
|
content_type: str = "application/json",
|
324
301
|
**kwargs: Any
|
@@ -336,18 +313,10 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
336
313
|
lower-case letters only. Required.
|
337
314
|
:type account_name: str
|
338
315
|
:param parameters: The parameters to provide for the created account. Required.
|
339
|
-
:type parameters: IO
|
316
|
+
:type parameters: IO[bytes]
|
340
317
|
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
341
318
|
Default value is "application/json".
|
342
319
|
:paramtype content_type: str
|
343
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
344
|
-
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
|
345
|
-
:keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for
|
346
|
-
this operation to not poll, or pass in your own initialized polling object for a personal
|
347
|
-
polling strategy.
|
348
|
-
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
|
349
|
-
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
|
350
|
-
Retry-After header is present.
|
351
320
|
:return: An instance of AsyncLROPoller that returns either StorageAccount or the result of
|
352
321
|
cls(response)
|
353
322
|
:rtype:
|
@@ -360,7 +329,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
360
329
|
self,
|
361
330
|
resource_group_name: str,
|
362
331
|
account_name: str,
|
363
|
-
parameters: Union[_models.StorageAccountCreateParameters, IO],
|
332
|
+
parameters: Union[_models.StorageAccountCreateParameters, IO[bytes]],
|
364
333
|
**kwargs: Any
|
365
334
|
) -> AsyncLROPoller[_models.StorageAccount]:
|
366
335
|
"""Asynchronously creates a new storage account with the specified parameters. If an account is
|
@@ -376,19 +345,9 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
376
345
|
lower-case letters only. Required.
|
377
346
|
:type account_name: str
|
378
347
|
:param parameters: The parameters to provide for the created account. Is either a
|
379
|
-
StorageAccountCreateParameters type or a IO type. Required.
|
380
|
-
:type parameters: ~azure.mgmt.storage.v2023_01_01.models.StorageAccountCreateParameters or
|
381
|
-
|
382
|
-
Default value is None.
|
383
|
-
:paramtype content_type: str
|
384
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
385
|
-
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
|
386
|
-
:keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for
|
387
|
-
this operation to not poll, or pass in your own initialized polling object for a personal
|
388
|
-
polling strategy.
|
389
|
-
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
|
390
|
-
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
|
391
|
-
Retry-After header is present.
|
348
|
+
StorageAccountCreateParameters type or a IO[bytes] type. Required.
|
349
|
+
:type parameters: ~azure.mgmt.storage.v2023_01_01.models.StorageAccountCreateParameters or
|
350
|
+
IO[bytes]
|
392
351
|
:return: An instance of AsyncLROPoller that returns either StorageAccount or the result of
|
393
352
|
cls(response)
|
394
353
|
:rtype:
|
@@ -421,7 +380,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
421
380
|
def get_long_running_output(pipeline_response):
|
422
381
|
deserialized = self._deserialize("StorageAccount", pipeline_response)
|
423
382
|
if cls:
|
424
|
-
return cls(pipeline_response, deserialized, {})
|
383
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
425
384
|
return deserialized
|
426
385
|
|
427
386
|
if polling is True:
|
@@ -431,17 +390,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
431
390
|
else:
|
432
391
|
polling_method = polling
|
433
392
|
if cont_token:
|
434
|
-
return AsyncLROPoller.from_continuation_token(
|
393
|
+
return AsyncLROPoller[_models.StorageAccount].from_continuation_token(
|
435
394
|
polling_method=polling_method,
|
436
395
|
continuation_token=cont_token,
|
437
396
|
client=self._client,
|
438
397
|
deserialization_callback=get_long_running_output,
|
439
398
|
)
|
440
|
-
return AsyncLROPoller(
|
441
|
-
|
442
|
-
|
443
|
-
"url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"
|
444
|
-
}
|
399
|
+
return AsyncLROPoller[_models.StorageAccount](
|
400
|
+
self._client, raw_result, get_long_running_output, polling_method # type: ignore
|
401
|
+
)
|
445
402
|
|
446
403
|
@distributed_trace_async
|
447
404
|
async def delete( # pylint: disable=inconsistent-return-statements
|
@@ -456,12 +413,11 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
456
413
|
Storage account names must be between 3 and 24 characters in length and use numbers and
|
457
414
|
lower-case letters only. Required.
|
458
415
|
:type account_name: str
|
459
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
460
416
|
:return: None or the result of cls(response)
|
461
417
|
:rtype: None
|
462
418
|
:raises ~azure.core.exceptions.HttpResponseError:
|
463
419
|
"""
|
464
|
-
error_map = {
|
420
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
465
421
|
401: ClientAuthenticationError,
|
466
422
|
404: ResourceNotFoundError,
|
467
423
|
409: ResourceExistsError,
|
@@ -475,21 +431,20 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
475
431
|
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-01-01"))
|
476
432
|
cls: ClsType[None] = kwargs.pop("cls", None)
|
477
433
|
|
478
|
-
|
434
|
+
_request = build_delete_request(
|
479
435
|
resource_group_name=resource_group_name,
|
480
436
|
account_name=account_name,
|
481
437
|
subscription_id=self._config.subscription_id,
|
482
438
|
api_version=api_version,
|
483
|
-
template_url=self.delete.metadata["url"],
|
484
439
|
headers=_headers,
|
485
440
|
params=_params,
|
486
441
|
)
|
487
|
-
|
488
|
-
|
442
|
+
_request = _convert_request(_request)
|
443
|
+
_request.url = self._client.format_url(_request.url)
|
489
444
|
|
490
445
|
_stream = False
|
491
446
|
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
492
|
-
|
447
|
+
_request, stream=_stream, **kwargs
|
493
448
|
)
|
494
449
|
|
495
450
|
response = pipeline_response.http_response
|
@@ -499,11 +454,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
499
454
|
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
|
500
455
|
|
501
456
|
if cls:
|
502
|
-
return cls(pipeline_response, None, {})
|
503
|
-
|
504
|
-
delete.metadata = {
|
505
|
-
"url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"
|
506
|
-
}
|
457
|
+
return cls(pipeline_response, None, {}) # type: ignore
|
507
458
|
|
508
459
|
@distributed_trace_async
|
509
460
|
async def get_properties(
|
@@ -529,12 +480,11 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
529
480
|
and blobRestoreStatus. Known values are: "geoReplicationStats" and "blobRestoreStatus". Default
|
530
481
|
value is None.
|
531
482
|
:type expand: str or ~azure.mgmt.storage.v2023_01_01.models.StorageAccountExpand
|
532
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
533
483
|
:return: StorageAccount or the result of cls(response)
|
534
484
|
:rtype: ~azure.mgmt.storage.v2023_01_01.models.StorageAccount
|
535
485
|
:raises ~azure.core.exceptions.HttpResponseError:
|
536
486
|
"""
|
537
|
-
error_map = {
|
487
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
538
488
|
401: ClientAuthenticationError,
|
539
489
|
404: ResourceNotFoundError,
|
540
490
|
409: ResourceExistsError,
|
@@ -548,22 +498,21 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
548
498
|
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-01-01"))
|
549
499
|
cls: ClsType[_models.StorageAccount] = kwargs.pop("cls", None)
|
550
500
|
|
551
|
-
|
501
|
+
_request = build_get_properties_request(
|
552
502
|
resource_group_name=resource_group_name,
|
553
503
|
account_name=account_name,
|
554
504
|
subscription_id=self._config.subscription_id,
|
555
505
|
expand=expand,
|
556
506
|
api_version=api_version,
|
557
|
-
template_url=self.get_properties.metadata["url"],
|
558
507
|
headers=_headers,
|
559
508
|
params=_params,
|
560
509
|
)
|
561
|
-
|
562
|
-
|
510
|
+
_request = _convert_request(_request)
|
511
|
+
_request.url = self._client.format_url(_request.url)
|
563
512
|
|
564
513
|
_stream = False
|
565
514
|
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
566
|
-
|
515
|
+
_request, stream=_stream, **kwargs
|
567
516
|
)
|
568
517
|
|
569
518
|
response = pipeline_response.http_response
|
@@ -575,13 +524,9 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
575
524
|
deserialized = self._deserialize("StorageAccount", pipeline_response)
|
576
525
|
|
577
526
|
if cls:
|
578
|
-
return cls(pipeline_response, deserialized, {})
|
579
|
-
|
580
|
-
return deserialized
|
527
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
581
528
|
|
582
|
-
|
583
|
-
"url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"
|
584
|
-
}
|
529
|
+
return deserialized # type: ignore
|
585
530
|
|
586
531
|
@overload
|
587
532
|
async def update(
|
@@ -614,7 +559,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
614
559
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
615
560
|
Default value is "application/json".
|
616
561
|
:paramtype content_type: str
|
617
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
618
562
|
:return: StorageAccount or the result of cls(response)
|
619
563
|
:rtype: ~azure.mgmt.storage.v2023_01_01.models.StorageAccount
|
620
564
|
:raises ~azure.core.exceptions.HttpResponseError:
|
@@ -625,7 +569,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
625
569
|
self,
|
626
570
|
resource_group_name: str,
|
627
571
|
account_name: str,
|
628
|
-
parameters: IO,
|
572
|
+
parameters: IO[bytes],
|
629
573
|
*,
|
630
574
|
content_type: str = "application/json",
|
631
575
|
**kwargs: Any
|
@@ -647,11 +591,10 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
647
591
|
lower-case letters only. Required.
|
648
592
|
:type account_name: str
|
649
593
|
:param parameters: The parameters to provide for the updated account. Required.
|
650
|
-
:type parameters: IO
|
594
|
+
:type parameters: IO[bytes]
|
651
595
|
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
652
596
|
Default value is "application/json".
|
653
597
|
:paramtype content_type: str
|
654
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
655
598
|
:return: StorageAccount or the result of cls(response)
|
656
599
|
:rtype: ~azure.mgmt.storage.v2023_01_01.models.StorageAccount
|
657
600
|
:raises ~azure.core.exceptions.HttpResponseError:
|
@@ -662,7 +605,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
662
605
|
self,
|
663
606
|
resource_group_name: str,
|
664
607
|
account_name: str,
|
665
|
-
parameters: Union[_models.StorageAccountUpdateParameters, IO],
|
608
|
+
parameters: Union[_models.StorageAccountUpdateParameters, IO[bytes]],
|
666
609
|
**kwargs: Any
|
667
610
|
) -> _models.StorageAccount:
|
668
611
|
"""The update operation can be used to update the SKU, encryption, access tier, or tags for a
|
@@ -682,17 +625,14 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
682
625
|
lower-case letters only. Required.
|
683
626
|
:type account_name: str
|
684
627
|
:param parameters: The parameters to provide for the updated account. Is either a
|
685
|
-
StorageAccountUpdateParameters type or a IO type. Required.
|
686
|
-
:type parameters: ~azure.mgmt.storage.v2023_01_01.models.StorageAccountUpdateParameters or
|
687
|
-
|
688
|
-
Default value is None.
|
689
|
-
:paramtype content_type: str
|
690
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
628
|
+
StorageAccountUpdateParameters type or a IO[bytes] type. Required.
|
629
|
+
:type parameters: ~azure.mgmt.storage.v2023_01_01.models.StorageAccountUpdateParameters or
|
630
|
+
IO[bytes]
|
691
631
|
:return: StorageAccount or the result of cls(response)
|
692
632
|
:rtype: ~azure.mgmt.storage.v2023_01_01.models.StorageAccount
|
693
633
|
:raises ~azure.core.exceptions.HttpResponseError:
|
694
634
|
"""
|
695
|
-
error_map = {
|
635
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
696
636
|
401: ClientAuthenticationError,
|
697
637
|
404: ResourceNotFoundError,
|
698
638
|
409: ResourceExistsError,
|
@@ -715,7 +655,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
715
655
|
else:
|
716
656
|
_json = self._serialize.body(parameters, "StorageAccountUpdateParameters")
|
717
657
|
|
718
|
-
|
658
|
+
_request = build_update_request(
|
719
659
|
resource_group_name=resource_group_name,
|
720
660
|
account_name=account_name,
|
721
661
|
subscription_id=self._config.subscription_id,
|
@@ -723,16 +663,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
723
663
|
content_type=content_type,
|
724
664
|
json=_json,
|
725
665
|
content=_content,
|
726
|
-
template_url=self.update.metadata["url"],
|
727
666
|
headers=_headers,
|
728
667
|
params=_params,
|
729
668
|
)
|
730
|
-
|
731
|
-
|
669
|
+
_request = _convert_request(_request)
|
670
|
+
_request.url = self._client.format_url(_request.url)
|
732
671
|
|
733
672
|
_stream = False
|
734
673
|
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
735
|
-
|
674
|
+
_request, stream=_stream, **kwargs
|
736
675
|
)
|
737
676
|
|
738
677
|
response = pipeline_response.http_response
|
@@ -744,20 +683,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
744
683
|
deserialized = self._deserialize("StorageAccount", pipeline_response)
|
745
684
|
|
746
685
|
if cls:
|
747
|
-
return cls(pipeline_response, deserialized, {})
|
748
|
-
|
749
|
-
return deserialized
|
686
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
750
687
|
|
751
|
-
|
752
|
-
"url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"
|
753
|
-
}
|
688
|
+
return deserialized # type: ignore
|
754
689
|
|
755
690
|
@distributed_trace
|
756
691
|
def list(self, **kwargs: Any) -> AsyncIterable["_models.StorageAccount"]:
|
757
692
|
"""Lists all the storage accounts available under the subscription. Note that storage keys are not
|
758
693
|
returned; use the ListKeys operation for this.
|
759
694
|
|
760
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
761
695
|
:return: An iterator like instance of either StorageAccount or the result of cls(response)
|
762
696
|
:rtype:
|
763
697
|
~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2023_01_01.models.StorageAccount]
|
@@ -769,7 +703,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
769
703
|
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-01-01"))
|
770
704
|
cls: ClsType[_models.StorageAccountListResult] = kwargs.pop("cls", None)
|
771
705
|
|
772
|
-
error_map = {
|
706
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
773
707
|
401: ClientAuthenticationError,
|
774
708
|
404: ResourceNotFoundError,
|
775
709
|
409: ResourceExistsError,
|
@@ -780,15 +714,14 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
780
714
|
def prepare_request(next_link=None):
|
781
715
|
if not next_link:
|
782
716
|
|
783
|
-
|
717
|
+
_request = build_list_request(
|
784
718
|
subscription_id=self._config.subscription_id,
|
785
719
|
api_version=api_version,
|
786
|
-
template_url=self.list.metadata["url"],
|
787
720
|
headers=_headers,
|
788
721
|
params=_params,
|
789
722
|
)
|
790
|
-
|
791
|
-
|
723
|
+
_request = _convert_request(_request)
|
724
|
+
_request.url = self._client.format_url(_request.url)
|
792
725
|
|
793
726
|
else:
|
794
727
|
# make call to next link with the client's api-version
|
@@ -799,14 +732,14 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
799
732
|
for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
|
800
733
|
}
|
801
734
|
)
|
802
|
-
_next_request_params["api-version"] = self.
|
803
|
-
|
735
|
+
_next_request_params["api-version"] = self._api_version
|
736
|
+
_request = HttpRequest(
|
804
737
|
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
|
805
738
|
)
|
806
|
-
|
807
|
-
|
808
|
-
|
809
|
-
return
|
739
|
+
_request = _convert_request(_request)
|
740
|
+
_request.url = self._client.format_url(_request.url)
|
741
|
+
_request.method = "GET"
|
742
|
+
return _request
|
810
743
|
|
811
744
|
async def extract_data(pipeline_response):
|
812
745
|
deserialized = self._deserialize("StorageAccountListResult", pipeline_response)
|
@@ -816,11 +749,11 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
816
749
|
return deserialized.next_link or None, AsyncList(list_of_elem)
|
817
750
|
|
818
751
|
async def get_next(next_link=None):
|
819
|
-
|
752
|
+
_request = prepare_request(next_link)
|
820
753
|
|
821
754
|
_stream = False
|
822
755
|
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
823
|
-
|
756
|
+
_request, stream=_stream, **kwargs
|
824
757
|
)
|
825
758
|
response = pipeline_response.http_response
|
826
759
|
|
@@ -832,8 +765,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
832
765
|
|
833
766
|
return AsyncItemPaged(get_next, extract_data)
|
834
767
|
|
835
|
-
list.metadata = {"url": "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts"}
|
836
|
-
|
837
768
|
@distributed_trace
|
838
769
|
def list_by_resource_group(
|
839
770
|
self, resource_group_name: str, **kwargs: Any
|
@@ -844,7 +775,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
844
775
|
:param resource_group_name: The name of the resource group within the user's subscription. The
|
845
776
|
name is case insensitive. Required.
|
846
777
|
:type resource_group_name: str
|
847
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
848
778
|
:return: An iterator like instance of either StorageAccount or the result of cls(response)
|
849
779
|
:rtype:
|
850
780
|
~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.storage.v2023_01_01.models.StorageAccount]
|
@@ -856,7 +786,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
856
786
|
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-01-01"))
|
857
787
|
cls: ClsType[_models.StorageAccountListResult] = kwargs.pop("cls", None)
|
858
788
|
|
859
|
-
error_map = {
|
789
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
860
790
|
401: ClientAuthenticationError,
|
861
791
|
404: ResourceNotFoundError,
|
862
792
|
409: ResourceExistsError,
|
@@ -867,16 +797,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
867
797
|
def prepare_request(next_link=None):
|
868
798
|
if not next_link:
|
869
799
|
|
870
|
-
|
800
|
+
_request = build_list_by_resource_group_request(
|
871
801
|
resource_group_name=resource_group_name,
|
872
802
|
subscription_id=self._config.subscription_id,
|
873
803
|
api_version=api_version,
|
874
|
-
template_url=self.list_by_resource_group.metadata["url"],
|
875
804
|
headers=_headers,
|
876
805
|
params=_params,
|
877
806
|
)
|
878
|
-
|
879
|
-
|
807
|
+
_request = _convert_request(_request)
|
808
|
+
_request.url = self._client.format_url(_request.url)
|
880
809
|
|
881
810
|
else:
|
882
811
|
# make call to next link with the client's api-version
|
@@ -887,14 +816,14 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
887
816
|
for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
|
888
817
|
}
|
889
818
|
)
|
890
|
-
_next_request_params["api-version"] = self.
|
891
|
-
|
819
|
+
_next_request_params["api-version"] = self._api_version
|
820
|
+
_request = HttpRequest(
|
892
821
|
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
|
893
822
|
)
|
894
|
-
|
895
|
-
|
896
|
-
|
897
|
-
return
|
823
|
+
_request = _convert_request(_request)
|
824
|
+
_request.url = self._client.format_url(_request.url)
|
825
|
+
_request.method = "GET"
|
826
|
+
return _request
|
898
827
|
|
899
828
|
async def extract_data(pipeline_response):
|
900
829
|
deserialized = self._deserialize("StorageAccountListResult", pipeline_response)
|
@@ -904,11 +833,11 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
904
833
|
return deserialized.next_link or None, AsyncList(list_of_elem)
|
905
834
|
|
906
835
|
async def get_next(next_link=None):
|
907
|
-
|
836
|
+
_request = prepare_request(next_link)
|
908
837
|
|
909
838
|
_stream = False
|
910
839
|
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
911
|
-
|
840
|
+
_request, stream=_stream, **kwargs
|
912
841
|
)
|
913
842
|
response = pipeline_response.http_response
|
914
843
|
|
@@ -920,10 +849,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
920
849
|
|
921
850
|
return AsyncItemPaged(get_next, extract_data)
|
922
851
|
|
923
|
-
list_by_resource_group.metadata = {
|
924
|
-
"url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts"
|
925
|
-
}
|
926
|
-
|
927
852
|
@distributed_trace_async
|
928
853
|
async def list_keys(
|
929
854
|
self, resource_group_name: str, account_name: str, expand: Literal["kerb"] = "kerb", **kwargs: Any
|
@@ -941,12 +866,11 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
941
866
|
:param expand: Specifies type of the key to be listed. Possible value is kerb. Known values are
|
942
867
|
"kerb" and None. Default value is "kerb".
|
943
868
|
:type expand: str
|
944
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
945
869
|
:return: StorageAccountListKeysResult or the result of cls(response)
|
946
870
|
:rtype: ~azure.mgmt.storage.v2023_01_01.models.StorageAccountListKeysResult
|
947
871
|
:raises ~azure.core.exceptions.HttpResponseError:
|
948
872
|
"""
|
949
|
-
error_map = {
|
873
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
950
874
|
401: ClientAuthenticationError,
|
951
875
|
404: ResourceNotFoundError,
|
952
876
|
409: ResourceExistsError,
|
@@ -960,22 +884,21 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
960
884
|
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-01-01"))
|
961
885
|
cls: ClsType[_models.StorageAccountListKeysResult] = kwargs.pop("cls", None)
|
962
886
|
|
963
|
-
|
887
|
+
_request = build_list_keys_request(
|
964
888
|
resource_group_name=resource_group_name,
|
965
889
|
account_name=account_name,
|
966
890
|
subscription_id=self._config.subscription_id,
|
967
891
|
expand=expand,
|
968
892
|
api_version=api_version,
|
969
|
-
template_url=self.list_keys.metadata["url"],
|
970
893
|
headers=_headers,
|
971
894
|
params=_params,
|
972
895
|
)
|
973
|
-
|
974
|
-
|
896
|
+
_request = _convert_request(_request)
|
897
|
+
_request.url = self._client.format_url(_request.url)
|
975
898
|
|
976
899
|
_stream = False
|
977
900
|
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
978
|
-
|
901
|
+
_request, stream=_stream, **kwargs
|
979
902
|
)
|
980
903
|
|
981
904
|
response = pipeline_response.http_response
|
@@ -987,13 +910,9 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
987
910
|
deserialized = self._deserialize("StorageAccountListKeysResult", pipeline_response)
|
988
911
|
|
989
912
|
if cls:
|
990
|
-
return cls(pipeline_response, deserialized, {})
|
991
|
-
|
992
|
-
return deserialized
|
913
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
993
914
|
|
994
|
-
|
995
|
-
"url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys"
|
996
|
-
}
|
915
|
+
return deserialized # type: ignore
|
997
916
|
|
998
917
|
@overload
|
999
918
|
async def regenerate_key(
|
@@ -1021,7 +940,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1021
940
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
1022
941
|
Default value is "application/json".
|
1023
942
|
:paramtype content_type: str
|
1024
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
1025
943
|
:return: StorageAccountListKeysResult or the result of cls(response)
|
1026
944
|
:rtype: ~azure.mgmt.storage.v2023_01_01.models.StorageAccountListKeysResult
|
1027
945
|
:raises ~azure.core.exceptions.HttpResponseError:
|
@@ -1032,7 +950,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1032
950
|
self,
|
1033
951
|
resource_group_name: str,
|
1034
952
|
account_name: str,
|
1035
|
-
regenerate_key: IO,
|
953
|
+
regenerate_key: IO[bytes],
|
1036
954
|
*,
|
1037
955
|
content_type: str = "application/json",
|
1038
956
|
**kwargs: Any
|
@@ -1048,11 +966,10 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1048
966
|
:type account_name: str
|
1049
967
|
:param regenerate_key: Specifies name of the key which should be regenerated -- key1, key2,
|
1050
968
|
kerb1, kerb2. Required.
|
1051
|
-
:type regenerate_key: IO
|
969
|
+
:type regenerate_key: IO[bytes]
|
1052
970
|
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
1053
971
|
Default value is "application/json".
|
1054
972
|
:paramtype content_type: str
|
1055
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
1056
973
|
:return: StorageAccountListKeysResult or the result of cls(response)
|
1057
974
|
:rtype: ~azure.mgmt.storage.v2023_01_01.models.StorageAccountListKeysResult
|
1058
975
|
:raises ~azure.core.exceptions.HttpResponseError:
|
@@ -1063,7 +980,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1063
980
|
self,
|
1064
981
|
resource_group_name: str,
|
1065
982
|
account_name: str,
|
1066
|
-
regenerate_key: Union[_models.StorageAccountRegenerateKeyParameters, IO],
|
983
|
+
regenerate_key: Union[_models.StorageAccountRegenerateKeyParameters, IO[bytes]],
|
1067
984
|
**kwargs: Any
|
1068
985
|
) -> _models.StorageAccountListKeysResult:
|
1069
986
|
"""Regenerates one of the access keys or Kerberos keys for the specified storage account.
|
@@ -1076,18 +993,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1076
993
|
lower-case letters only. Required.
|
1077
994
|
:type account_name: str
|
1078
995
|
:param regenerate_key: Specifies name of the key which should be regenerated -- key1, key2,
|
1079
|
-
kerb1, kerb2. Is either a StorageAccountRegenerateKeyParameters type or a IO type.
|
996
|
+
kerb1, kerb2. Is either a StorageAccountRegenerateKeyParameters type or a IO[bytes] type.
|
997
|
+
Required.
|
1080
998
|
:type regenerate_key:
|
1081
|
-
~azure.mgmt.storage.v2023_01_01.models.StorageAccountRegenerateKeyParameters or IO
|
1082
|
-
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
|
1083
|
-
Default value is None.
|
1084
|
-
:paramtype content_type: str
|
1085
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
999
|
+
~azure.mgmt.storage.v2023_01_01.models.StorageAccountRegenerateKeyParameters or IO[bytes]
|
1086
1000
|
:return: StorageAccountListKeysResult or the result of cls(response)
|
1087
1001
|
:rtype: ~azure.mgmt.storage.v2023_01_01.models.StorageAccountListKeysResult
|
1088
1002
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1089
1003
|
"""
|
1090
|
-
error_map = {
|
1004
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
1091
1005
|
401: ClientAuthenticationError,
|
1092
1006
|
404: ResourceNotFoundError,
|
1093
1007
|
409: ResourceExistsError,
|
@@ -1110,7 +1024,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1110
1024
|
else:
|
1111
1025
|
_json = self._serialize.body(regenerate_key, "StorageAccountRegenerateKeyParameters")
|
1112
1026
|
|
1113
|
-
|
1027
|
+
_request = build_regenerate_key_request(
|
1114
1028
|
resource_group_name=resource_group_name,
|
1115
1029
|
account_name=account_name,
|
1116
1030
|
subscription_id=self._config.subscription_id,
|
@@ -1118,16 +1032,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1118
1032
|
content_type=content_type,
|
1119
1033
|
json=_json,
|
1120
1034
|
content=_content,
|
1121
|
-
template_url=self.regenerate_key.metadata["url"],
|
1122
1035
|
headers=_headers,
|
1123
1036
|
params=_params,
|
1124
1037
|
)
|
1125
|
-
|
1126
|
-
|
1038
|
+
_request = _convert_request(_request)
|
1039
|
+
_request.url = self._client.format_url(_request.url)
|
1127
1040
|
|
1128
1041
|
_stream = False
|
1129
1042
|
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
1130
|
-
|
1043
|
+
_request, stream=_stream, **kwargs
|
1131
1044
|
)
|
1132
1045
|
|
1133
1046
|
response = pipeline_response.http_response
|
@@ -1139,13 +1052,9 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1139
1052
|
deserialized = self._deserialize("StorageAccountListKeysResult", pipeline_response)
|
1140
1053
|
|
1141
1054
|
if cls:
|
1142
|
-
return cls(pipeline_response, deserialized, {})
|
1143
|
-
|
1144
|
-
return deserialized
|
1055
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
1145
1056
|
|
1146
|
-
|
1147
|
-
"url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/regenerateKey"
|
1148
|
-
}
|
1057
|
+
return deserialized # type: ignore
|
1149
1058
|
|
1150
1059
|
@overload
|
1151
1060
|
async def list_account_sas(
|
@@ -1172,7 +1081,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1172
1081
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
1173
1082
|
Default value is "application/json".
|
1174
1083
|
:paramtype content_type: str
|
1175
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
1176
1084
|
:return: ListAccountSasResponse or the result of cls(response)
|
1177
1085
|
:rtype: ~azure.mgmt.storage.v2023_01_01.models.ListAccountSasResponse
|
1178
1086
|
:raises ~azure.core.exceptions.HttpResponseError:
|
@@ -1183,7 +1091,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1183
1091
|
self,
|
1184
1092
|
resource_group_name: str,
|
1185
1093
|
account_name: str,
|
1186
|
-
parameters: IO,
|
1094
|
+
parameters: IO[bytes],
|
1187
1095
|
*,
|
1188
1096
|
content_type: str = "application/json",
|
1189
1097
|
**kwargs: Any
|
@@ -1199,11 +1107,10 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1199
1107
|
:type account_name: str
|
1200
1108
|
:param parameters: The parameters to provide to list SAS credentials for the storage account.
|
1201
1109
|
Required.
|
1202
|
-
:type parameters: IO
|
1110
|
+
:type parameters: IO[bytes]
|
1203
1111
|
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
1204
1112
|
Default value is "application/json".
|
1205
1113
|
:paramtype content_type: str
|
1206
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
1207
1114
|
:return: ListAccountSasResponse or the result of cls(response)
|
1208
1115
|
:rtype: ~azure.mgmt.storage.v2023_01_01.models.ListAccountSasResponse
|
1209
1116
|
:raises ~azure.core.exceptions.HttpResponseError:
|
@@ -1214,7 +1121,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1214
1121
|
self,
|
1215
1122
|
resource_group_name: str,
|
1216
1123
|
account_name: str,
|
1217
|
-
parameters: Union[_models.AccountSasParameters, IO],
|
1124
|
+
parameters: Union[_models.AccountSasParameters, IO[bytes]],
|
1218
1125
|
**kwargs: Any
|
1219
1126
|
) -> _models.ListAccountSasResponse:
|
1220
1127
|
"""List SAS credentials of a storage account.
|
@@ -1227,17 +1134,13 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1227
1134
|
lower-case letters only. Required.
|
1228
1135
|
:type account_name: str
|
1229
1136
|
:param parameters: The parameters to provide to list SAS credentials for the storage account.
|
1230
|
-
Is either a AccountSasParameters type or a IO type. Required.
|
1231
|
-
:type parameters: ~azure.mgmt.storage.v2023_01_01.models.AccountSasParameters or IO
|
1232
|
-
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
|
1233
|
-
Default value is None.
|
1234
|
-
:paramtype content_type: str
|
1235
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
1137
|
+
Is either a AccountSasParameters type or a IO[bytes] type. Required.
|
1138
|
+
:type parameters: ~azure.mgmt.storage.v2023_01_01.models.AccountSasParameters or IO[bytes]
|
1236
1139
|
:return: ListAccountSasResponse or the result of cls(response)
|
1237
1140
|
:rtype: ~azure.mgmt.storage.v2023_01_01.models.ListAccountSasResponse
|
1238
1141
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1239
1142
|
"""
|
1240
|
-
error_map = {
|
1143
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
1241
1144
|
401: ClientAuthenticationError,
|
1242
1145
|
404: ResourceNotFoundError,
|
1243
1146
|
409: ResourceExistsError,
|
@@ -1260,7 +1163,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1260
1163
|
else:
|
1261
1164
|
_json = self._serialize.body(parameters, "AccountSasParameters")
|
1262
1165
|
|
1263
|
-
|
1166
|
+
_request = build_list_account_sas_request(
|
1264
1167
|
resource_group_name=resource_group_name,
|
1265
1168
|
account_name=account_name,
|
1266
1169
|
subscription_id=self._config.subscription_id,
|
@@ -1268,16 +1171,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1268
1171
|
content_type=content_type,
|
1269
1172
|
json=_json,
|
1270
1173
|
content=_content,
|
1271
|
-
template_url=self.list_account_sas.metadata["url"],
|
1272
1174
|
headers=_headers,
|
1273
1175
|
params=_params,
|
1274
1176
|
)
|
1275
|
-
|
1276
|
-
|
1177
|
+
_request = _convert_request(_request)
|
1178
|
+
_request.url = self._client.format_url(_request.url)
|
1277
1179
|
|
1278
1180
|
_stream = False
|
1279
1181
|
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
1280
|
-
|
1182
|
+
_request, stream=_stream, **kwargs
|
1281
1183
|
)
|
1282
1184
|
|
1283
1185
|
response = pipeline_response.http_response
|
@@ -1289,13 +1191,9 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1289
1191
|
deserialized = self._deserialize("ListAccountSasResponse", pipeline_response)
|
1290
1192
|
|
1291
1193
|
if cls:
|
1292
|
-
return cls(pipeline_response, deserialized, {})
|
1293
|
-
|
1294
|
-
return deserialized
|
1194
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
1295
1195
|
|
1296
|
-
|
1297
|
-
"url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/ListAccountSas"
|
1298
|
-
}
|
1196
|
+
return deserialized # type: ignore
|
1299
1197
|
|
1300
1198
|
@overload
|
1301
1199
|
async def list_service_sas(
|
@@ -1321,7 +1219,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1321
1219
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
1322
1220
|
Default value is "application/json".
|
1323
1221
|
:paramtype content_type: str
|
1324
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
1325
1222
|
:return: ListServiceSasResponse or the result of cls(response)
|
1326
1223
|
:rtype: ~azure.mgmt.storage.v2023_01_01.models.ListServiceSasResponse
|
1327
1224
|
:raises ~azure.core.exceptions.HttpResponseError:
|
@@ -1332,7 +1229,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1332
1229
|
self,
|
1333
1230
|
resource_group_name: str,
|
1334
1231
|
account_name: str,
|
1335
|
-
parameters: IO,
|
1232
|
+
parameters: IO[bytes],
|
1336
1233
|
*,
|
1337
1234
|
content_type: str = "application/json",
|
1338
1235
|
**kwargs: Any
|
@@ -1347,11 +1244,10 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1347
1244
|
lower-case letters only. Required.
|
1348
1245
|
:type account_name: str
|
1349
1246
|
:param parameters: The parameters to provide to list service SAS credentials. Required.
|
1350
|
-
:type parameters: IO
|
1247
|
+
:type parameters: IO[bytes]
|
1351
1248
|
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
1352
1249
|
Default value is "application/json".
|
1353
1250
|
:paramtype content_type: str
|
1354
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
1355
1251
|
:return: ListServiceSasResponse or the result of cls(response)
|
1356
1252
|
:rtype: ~azure.mgmt.storage.v2023_01_01.models.ListServiceSasResponse
|
1357
1253
|
:raises ~azure.core.exceptions.HttpResponseError:
|
@@ -1362,7 +1258,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1362
1258
|
self,
|
1363
1259
|
resource_group_name: str,
|
1364
1260
|
account_name: str,
|
1365
|
-
parameters: Union[_models.ServiceSasParameters, IO],
|
1261
|
+
parameters: Union[_models.ServiceSasParameters, IO[bytes]],
|
1366
1262
|
**kwargs: Any
|
1367
1263
|
) -> _models.ListServiceSasResponse:
|
1368
1264
|
"""List service SAS credentials of a specific resource.
|
@@ -1375,17 +1271,13 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1375
1271
|
lower-case letters only. Required.
|
1376
1272
|
:type account_name: str
|
1377
1273
|
:param parameters: The parameters to provide to list service SAS credentials. Is either a
|
1378
|
-
ServiceSasParameters type or a IO type. Required.
|
1379
|
-
:type parameters: ~azure.mgmt.storage.v2023_01_01.models.ServiceSasParameters or IO
|
1380
|
-
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
|
1381
|
-
Default value is None.
|
1382
|
-
:paramtype content_type: str
|
1383
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
1274
|
+
ServiceSasParameters type or a IO[bytes] type. Required.
|
1275
|
+
:type parameters: ~azure.mgmt.storage.v2023_01_01.models.ServiceSasParameters or IO[bytes]
|
1384
1276
|
:return: ListServiceSasResponse or the result of cls(response)
|
1385
1277
|
:rtype: ~azure.mgmt.storage.v2023_01_01.models.ListServiceSasResponse
|
1386
1278
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1387
1279
|
"""
|
1388
|
-
error_map = {
|
1280
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
1389
1281
|
401: ClientAuthenticationError,
|
1390
1282
|
404: ResourceNotFoundError,
|
1391
1283
|
409: ResourceExistsError,
|
@@ -1408,7 +1300,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1408
1300
|
else:
|
1409
1301
|
_json = self._serialize.body(parameters, "ServiceSasParameters")
|
1410
1302
|
|
1411
|
-
|
1303
|
+
_request = build_list_service_sas_request(
|
1412
1304
|
resource_group_name=resource_group_name,
|
1413
1305
|
account_name=account_name,
|
1414
1306
|
subscription_id=self._config.subscription_id,
|
@@ -1416,16 +1308,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1416
1308
|
content_type=content_type,
|
1417
1309
|
json=_json,
|
1418
1310
|
content=_content,
|
1419
|
-
template_url=self.list_service_sas.metadata["url"],
|
1420
1311
|
headers=_headers,
|
1421
1312
|
params=_params,
|
1422
1313
|
)
|
1423
|
-
|
1424
|
-
|
1314
|
+
_request = _convert_request(_request)
|
1315
|
+
_request.url = self._client.format_url(_request.url)
|
1425
1316
|
|
1426
1317
|
_stream = False
|
1427
1318
|
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
1428
|
-
|
1319
|
+
_request, stream=_stream, **kwargs
|
1429
1320
|
)
|
1430
1321
|
|
1431
1322
|
response = pipeline_response.http_response
|
@@ -1437,18 +1328,14 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1437
1328
|
deserialized = self._deserialize("ListServiceSasResponse", pipeline_response)
|
1438
1329
|
|
1439
1330
|
if cls:
|
1440
|
-
return cls(pipeline_response, deserialized, {})
|
1441
|
-
|
1442
|
-
return deserialized
|
1331
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
1443
1332
|
|
1444
|
-
|
1445
|
-
"url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/ListServiceSas"
|
1446
|
-
}
|
1333
|
+
return deserialized # type: ignore
|
1447
1334
|
|
1448
1335
|
async def _failover_initial( # pylint: disable=inconsistent-return-statements
|
1449
1336
|
self, resource_group_name: str, account_name: str, failover_type: Literal["Planned"] = "Planned", **kwargs: Any
|
1450
1337
|
) -> None:
|
1451
|
-
error_map = {
|
1338
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
1452
1339
|
401: ClientAuthenticationError,
|
1453
1340
|
404: ResourceNotFoundError,
|
1454
1341
|
409: ResourceExistsError,
|
@@ -1462,22 +1349,21 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1462
1349
|
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-01-01"))
|
1463
1350
|
cls: ClsType[None] = kwargs.pop("cls", None)
|
1464
1351
|
|
1465
|
-
|
1352
|
+
_request = build_failover_request(
|
1466
1353
|
resource_group_name=resource_group_name,
|
1467
1354
|
account_name=account_name,
|
1468
1355
|
subscription_id=self._config.subscription_id,
|
1469
1356
|
failover_type=failover_type,
|
1470
1357
|
api_version=api_version,
|
1471
|
-
template_url=self._failover_initial.metadata["url"],
|
1472
1358
|
headers=_headers,
|
1473
1359
|
params=_params,
|
1474
1360
|
)
|
1475
|
-
|
1476
|
-
|
1361
|
+
_request = _convert_request(_request)
|
1362
|
+
_request.url = self._client.format_url(_request.url)
|
1477
1363
|
|
1478
1364
|
_stream = False
|
1479
1365
|
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
1480
|
-
|
1366
|
+
_request, stream=_stream, **kwargs
|
1481
1367
|
)
|
1482
1368
|
|
1483
1369
|
response = pipeline_response.http_response
|
@@ -1487,11 +1373,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1487
1373
|
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
|
1488
1374
|
|
1489
1375
|
if cls:
|
1490
|
-
return cls(pipeline_response, None, {})
|
1491
|
-
|
1492
|
-
_failover_initial.metadata = {
|
1493
|
-
"url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/failover"
|
1494
|
-
}
|
1376
|
+
return cls(pipeline_response, None, {}) # type: ignore
|
1495
1377
|
|
1496
1378
|
@distributed_trace_async
|
1497
1379
|
async def begin_failover(
|
@@ -1519,14 +1401,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1519
1401
|
:param failover_type: The parameter is set to 'Planned' to indicate whether a Planned failover
|
1520
1402
|
is requested. Known values are "Planned" and None. Default value is "Planned".
|
1521
1403
|
:type failover_type: str
|
1522
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
1523
|
-
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
|
1524
|
-
:keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for
|
1525
|
-
this operation to not poll, or pass in your own initialized polling object for a personal
|
1526
|
-
polling strategy.
|
1527
|
-
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
|
1528
|
-
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
|
1529
|
-
Retry-After header is present.
|
1530
1404
|
:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
|
1531
1405
|
:rtype: ~azure.core.polling.AsyncLROPoller[None]
|
1532
1406
|
:raises ~azure.core.exceptions.HttpResponseError:
|
@@ -1554,7 +1428,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1554
1428
|
|
1555
1429
|
def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements
|
1556
1430
|
if cls:
|
1557
|
-
return cls(pipeline_response, None, {})
|
1431
|
+
return cls(pipeline_response, None, {}) # type: ignore
|
1558
1432
|
|
1559
1433
|
if polling is True:
|
1560
1434
|
polling_method: AsyncPollingMethod = cast(
|
@@ -1565,22 +1439,18 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1565
1439
|
else:
|
1566
1440
|
polling_method = polling
|
1567
1441
|
if cont_token:
|
1568
|
-
return AsyncLROPoller.from_continuation_token(
|
1442
|
+
return AsyncLROPoller[None].from_continuation_token(
|
1569
1443
|
polling_method=polling_method,
|
1570
1444
|
continuation_token=cont_token,
|
1571
1445
|
client=self._client,
|
1572
1446
|
deserialization_callback=get_long_running_output,
|
1573
1447
|
)
|
1574
|
-
return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) # type: ignore
|
1448
|
+
return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore
|
1575
1449
|
|
1576
|
-
|
1577
|
-
"url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/failover"
|
1578
|
-
}
|
1579
|
-
|
1580
|
-
async def _hierarchical_namespace_migration_initial( # pylint: disable=inconsistent-return-statements
|
1450
|
+
async def _hierarchical_namespace_migration_initial( # pylint: disable=inconsistent-return-statements,name-too-long
|
1581
1451
|
self, resource_group_name: str, account_name: str, request_type: str, **kwargs: Any
|
1582
1452
|
) -> None:
|
1583
|
-
error_map = {
|
1453
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
1584
1454
|
401: ClientAuthenticationError,
|
1585
1455
|
404: ResourceNotFoundError,
|
1586
1456
|
409: ResourceExistsError,
|
@@ -1594,22 +1464,21 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1594
1464
|
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-01-01"))
|
1595
1465
|
cls: ClsType[None] = kwargs.pop("cls", None)
|
1596
1466
|
|
1597
|
-
|
1467
|
+
_request = build_hierarchical_namespace_migration_request(
|
1598
1468
|
resource_group_name=resource_group_name,
|
1599
1469
|
account_name=account_name,
|
1600
1470
|
subscription_id=self._config.subscription_id,
|
1601
1471
|
request_type=request_type,
|
1602
1472
|
api_version=api_version,
|
1603
|
-
template_url=self._hierarchical_namespace_migration_initial.metadata["url"],
|
1604
1473
|
headers=_headers,
|
1605
1474
|
params=_params,
|
1606
1475
|
)
|
1607
|
-
|
1608
|
-
|
1476
|
+
_request = _convert_request(_request)
|
1477
|
+
_request.url = self._client.format_url(_request.url)
|
1609
1478
|
|
1610
1479
|
_stream = False
|
1611
1480
|
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
1612
|
-
|
1481
|
+
_request, stream=_stream, **kwargs
|
1613
1482
|
)
|
1614
1483
|
|
1615
1484
|
response = pipeline_response.http_response
|
@@ -1620,11 +1489,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1620
1489
|
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
|
1621
1490
|
|
1622
1491
|
if cls:
|
1623
|
-
return cls(pipeline_response, None, {})
|
1624
|
-
|
1625
|
-
_hierarchical_namespace_migration_initial.metadata = {
|
1626
|
-
"url": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/hnsonmigration"
|
1627
|
-
}
|
1492
|
+
return cls(pipeline_response, None, {}) # type: ignore
|
1628
1493
|
|
1629
1494
|
@distributed_trace_async
|
1630
1495
|
async def begin_hierarchical_namespace_migration(
|
@@ -1644,14 +1509,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1644
1509
|
'HnsOnHydrationRequest'. The validation request will validate the migration whereas the
|
1645
1510
|
hydration request will migrate the account. Required.
|
1646
1511
|
:type request_type: str
|
1647
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
1648
|
-
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
|
1649
|
-
:keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for
|
1650
|
-
this operation to not poll, or pass in your own initialized polling object for a personal
|
1651
|
-
polling strategy.
|
1652
|
-
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
|
1653
|
-
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
|
1654
|
-
Retry-After header is present.
|
1655
1512
|
:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
|
1656
1513
|
:rtype: ~azure.core.polling.AsyncLROPoller[None]
|
1657
1514
|
:raises ~azure.core.exceptions.HttpResponseError:
|
@@ -1679,7 +1536,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1679
1536
|
|
1680
1537
|
def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements
|
1681
1538
|
if cls:
|
1682
|
-
return cls(pipeline_response, None, {})
|
1539
|
+
return cls(pipeline_response, None, {}) # type: ignore
|
1683
1540
|
|
1684
1541
|
if polling is True:
|
1685
1542
|
polling_method: AsyncPollingMethod = cast(
|
@@ -1690,22 +1547,18 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1690
1547
|
else:
|
1691
1548
|
polling_method = polling
|
1692
1549
|
if cont_token:
|
1693
|
-
return AsyncLROPoller.from_continuation_token(
|
1550
|
+
return AsyncLROPoller[None].from_continuation_token(
|
1694
1551
|
polling_method=polling_method,
|
1695
1552
|
continuation_token=cont_token,
|
1696
1553
|
client=self._client,
|
1697
1554
|
deserialization_callback=get_long_running_output,
|
1698
1555
|
)
|
1699
|
-
return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) # type: ignore
|
1700
|
-
|
1701
|
-
begin_hierarchical_namespace_migration.metadata = {
|
1702
|
-
"url": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/hnsonmigration"
|
1703
|
-
}
|
1556
|
+
return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore
|
1704
1557
|
|
1705
|
-
async def _abort_hierarchical_namespace_migration_initial( # pylint: disable=inconsistent-return-statements
|
1558
|
+
async def _abort_hierarchical_namespace_migration_initial( # pylint: disable=inconsistent-return-statements,name-too-long
|
1706
1559
|
self, resource_group_name: str, account_name: str, **kwargs: Any
|
1707
1560
|
) -> None:
|
1708
|
-
error_map = {
|
1561
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
1709
1562
|
401: ClientAuthenticationError,
|
1710
1563
|
404: ResourceNotFoundError,
|
1711
1564
|
409: ResourceExistsError,
|
@@ -1719,21 +1572,20 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1719
1572
|
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-01-01"))
|
1720
1573
|
cls: ClsType[None] = kwargs.pop("cls", None)
|
1721
1574
|
|
1722
|
-
|
1575
|
+
_request = build_abort_hierarchical_namespace_migration_request(
|
1723
1576
|
resource_group_name=resource_group_name,
|
1724
1577
|
account_name=account_name,
|
1725
1578
|
subscription_id=self._config.subscription_id,
|
1726
1579
|
api_version=api_version,
|
1727
|
-
template_url=self._abort_hierarchical_namespace_migration_initial.metadata["url"],
|
1728
1580
|
headers=_headers,
|
1729
1581
|
params=_params,
|
1730
1582
|
)
|
1731
|
-
|
1732
|
-
|
1583
|
+
_request = _convert_request(_request)
|
1584
|
+
_request.url = self._client.format_url(_request.url)
|
1733
1585
|
|
1734
1586
|
_stream = False
|
1735
1587
|
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
1736
|
-
|
1588
|
+
_request, stream=_stream, **kwargs
|
1737
1589
|
)
|
1738
1590
|
|
1739
1591
|
response = pipeline_response.http_response
|
@@ -1744,14 +1596,10 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1744
1596
|
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
|
1745
1597
|
|
1746
1598
|
if cls:
|
1747
|
-
return cls(pipeline_response, None, {})
|
1748
|
-
|
1749
|
-
_abort_hierarchical_namespace_migration_initial.metadata = {
|
1750
|
-
"url": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/aborthnsonmigration"
|
1751
|
-
}
|
1599
|
+
return cls(pipeline_response, None, {}) # type: ignore
|
1752
1600
|
|
1753
1601
|
@distributed_trace_async
|
1754
|
-
async def begin_abort_hierarchical_namespace_migration(
|
1602
|
+
async def begin_abort_hierarchical_namespace_migration( # pylint: disable=name-too-long
|
1755
1603
|
self, resource_group_name: str, account_name: str, **kwargs: Any
|
1756
1604
|
) -> AsyncLROPoller[None]:
|
1757
1605
|
"""Abort live Migration of storage account to enable Hns.
|
@@ -1763,14 +1611,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1763
1611
|
Storage account names must be between 3 and 24 characters in length and use numbers and
|
1764
1612
|
lower-case letters only. Required.
|
1765
1613
|
:type account_name: str
|
1766
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
1767
|
-
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
|
1768
|
-
:keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for
|
1769
|
-
this operation to not poll, or pass in your own initialized polling object for a personal
|
1770
|
-
polling strategy.
|
1771
|
-
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
|
1772
|
-
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
|
1773
|
-
Retry-After header is present.
|
1774
1614
|
:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
|
1775
1615
|
:rtype: ~azure.core.polling.AsyncLROPoller[None]
|
1776
1616
|
:raises ~azure.core.exceptions.HttpResponseError:
|
@@ -1797,7 +1637,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1797
1637
|
|
1798
1638
|
def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements
|
1799
1639
|
if cls:
|
1800
|
-
return cls(pipeline_response, None, {})
|
1640
|
+
return cls(pipeline_response, None, {}) # type: ignore
|
1801
1641
|
|
1802
1642
|
if polling is True:
|
1803
1643
|
polling_method: AsyncPollingMethod = cast(
|
@@ -1808,26 +1648,22 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1808
1648
|
else:
|
1809
1649
|
polling_method = polling
|
1810
1650
|
if cont_token:
|
1811
|
-
return AsyncLROPoller.from_continuation_token(
|
1651
|
+
return AsyncLROPoller[None].from_continuation_token(
|
1812
1652
|
polling_method=polling_method,
|
1813
1653
|
continuation_token=cont_token,
|
1814
1654
|
client=self._client,
|
1815
1655
|
deserialization_callback=get_long_running_output,
|
1816
1656
|
)
|
1817
|
-
return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) # type: ignore
|
1818
|
-
|
1819
|
-
begin_abort_hierarchical_namespace_migration.metadata = {
|
1820
|
-
"url": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/aborthnsonmigration"
|
1821
|
-
}
|
1657
|
+
return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore
|
1822
1658
|
|
1823
1659
|
async def _customer_initiated_migration_initial( # pylint: disable=inconsistent-return-statements
|
1824
1660
|
self,
|
1825
1661
|
resource_group_name: str,
|
1826
1662
|
account_name: str,
|
1827
|
-
parameters: Union[_models.StorageAccountMigration, IO],
|
1663
|
+
parameters: Union[_models.StorageAccountMigration, IO[bytes]],
|
1828
1664
|
**kwargs: Any
|
1829
1665
|
) -> None:
|
1830
|
-
error_map = {
|
1666
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
1831
1667
|
401: ClientAuthenticationError,
|
1832
1668
|
404: ResourceNotFoundError,
|
1833
1669
|
409: ResourceExistsError,
|
@@ -1850,7 +1686,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1850
1686
|
else:
|
1851
1687
|
_json = self._serialize.body(parameters, "StorageAccountMigration")
|
1852
1688
|
|
1853
|
-
|
1689
|
+
_request = build_customer_initiated_migration_request(
|
1854
1690
|
resource_group_name=resource_group_name,
|
1855
1691
|
account_name=account_name,
|
1856
1692
|
subscription_id=self._config.subscription_id,
|
@@ -1858,16 +1694,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1858
1694
|
content_type=content_type,
|
1859
1695
|
json=_json,
|
1860
1696
|
content=_content,
|
1861
|
-
template_url=self._customer_initiated_migration_initial.metadata["url"],
|
1862
1697
|
headers=_headers,
|
1863
1698
|
params=_params,
|
1864
1699
|
)
|
1865
|
-
|
1866
|
-
|
1700
|
+
_request = _convert_request(_request)
|
1701
|
+
_request.url = self._client.format_url(_request.url)
|
1867
1702
|
|
1868
1703
|
_stream = False
|
1869
1704
|
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
1870
|
-
|
1705
|
+
_request, stream=_stream, **kwargs
|
1871
1706
|
)
|
1872
1707
|
|
1873
1708
|
response = pipeline_response.http_response
|
@@ -1882,11 +1717,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1882
1717
|
response_headers["Location"] = self._deserialize("str", response.headers.get("Location"))
|
1883
1718
|
|
1884
1719
|
if cls:
|
1885
|
-
return cls(pipeline_response, None, response_headers)
|
1886
|
-
|
1887
|
-
_customer_initiated_migration_initial.metadata = {
|
1888
|
-
"url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/startAccountMigration"
|
1889
|
-
}
|
1720
|
+
return cls(pipeline_response, None, response_headers) # type: ignore
|
1890
1721
|
|
1891
1722
|
@overload
|
1892
1723
|
async def begin_customer_initiated_migration(
|
@@ -1917,14 +1748,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1917
1748
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
1918
1749
|
Default value is "application/json".
|
1919
1750
|
:paramtype content_type: str
|
1920
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
1921
|
-
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
|
1922
|
-
:keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for
|
1923
|
-
this operation to not poll, or pass in your own initialized polling object for a personal
|
1924
|
-
polling strategy.
|
1925
|
-
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
|
1926
|
-
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
|
1927
|
-
Retry-After header is present.
|
1928
1751
|
:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
|
1929
1752
|
:rtype: ~azure.core.polling.AsyncLROPoller[None]
|
1930
1753
|
:raises ~azure.core.exceptions.HttpResponseError:
|
@@ -1935,7 +1758,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1935
1758
|
self,
|
1936
1759
|
resource_group_name: str,
|
1937
1760
|
account_name: str,
|
1938
|
-
parameters: IO,
|
1761
|
+
parameters: IO[bytes],
|
1939
1762
|
*,
|
1940
1763
|
content_type: str = "application/json",
|
1941
1764
|
**kwargs: Any
|
@@ -1955,18 +1778,10 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1955
1778
|
:type account_name: str
|
1956
1779
|
:param parameters: The request parameters required to perform storage account migration.
|
1957
1780
|
Required.
|
1958
|
-
:type parameters: IO
|
1781
|
+
:type parameters: IO[bytes]
|
1959
1782
|
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
1960
1783
|
Default value is "application/json".
|
1961
1784
|
:paramtype content_type: str
|
1962
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
1963
|
-
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
|
1964
|
-
:keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for
|
1965
|
-
this operation to not poll, or pass in your own initialized polling object for a personal
|
1966
|
-
polling strategy.
|
1967
|
-
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
|
1968
|
-
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
|
1969
|
-
Retry-After header is present.
|
1970
1785
|
:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
|
1971
1786
|
:rtype: ~azure.core.polling.AsyncLROPoller[None]
|
1972
1787
|
:raises ~azure.core.exceptions.HttpResponseError:
|
@@ -1977,7 +1792,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1977
1792
|
self,
|
1978
1793
|
resource_group_name: str,
|
1979
1794
|
account_name: str,
|
1980
|
-
parameters: Union[_models.StorageAccountMigration, IO],
|
1795
|
+
parameters: Union[_models.StorageAccountMigration, IO[bytes]],
|
1981
1796
|
**kwargs: Any
|
1982
1797
|
) -> AsyncLROPoller[None]:
|
1983
1798
|
"""Account Migration request can be triggered for a storage account to change its redundancy
|
@@ -1994,19 +1809,8 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1994
1809
|
lower-case letters only. Required.
|
1995
1810
|
:type account_name: str
|
1996
1811
|
:param parameters: The request parameters required to perform storage account migration. Is
|
1997
|
-
either a StorageAccountMigration type or a IO type. Required.
|
1998
|
-
:type parameters: ~azure.mgmt.storage.v2023_01_01.models.StorageAccountMigration or IO
|
1999
|
-
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
|
2000
|
-
Default value is None.
|
2001
|
-
:paramtype content_type: str
|
2002
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
2003
|
-
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
|
2004
|
-
:keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for
|
2005
|
-
this operation to not poll, or pass in your own initialized polling object for a personal
|
2006
|
-
polling strategy.
|
2007
|
-
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
|
2008
|
-
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
|
2009
|
-
Retry-After header is present.
|
1812
|
+
either a StorageAccountMigration type or a IO[bytes] type. Required.
|
1813
|
+
:type parameters: ~azure.mgmt.storage.v2023_01_01.models.StorageAccountMigration or IO[bytes]
|
2010
1814
|
:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
|
2011
1815
|
:rtype: ~azure.core.polling.AsyncLROPoller[None]
|
2012
1816
|
:raises ~azure.core.exceptions.HttpResponseError:
|
@@ -2036,7 +1840,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2036
1840
|
|
2037
1841
|
def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements
|
2038
1842
|
if cls:
|
2039
|
-
return cls(pipeline_response, None, {})
|
1843
|
+
return cls(pipeline_response, None, {}) # type: ignore
|
2040
1844
|
|
2041
1845
|
if polling is True:
|
2042
1846
|
polling_method: AsyncPollingMethod = cast(
|
@@ -2047,17 +1851,13 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2047
1851
|
else:
|
2048
1852
|
polling_method = polling
|
2049
1853
|
if cont_token:
|
2050
|
-
return AsyncLROPoller.from_continuation_token(
|
1854
|
+
return AsyncLROPoller[None].from_continuation_token(
|
2051
1855
|
polling_method=polling_method,
|
2052
1856
|
continuation_token=cont_token,
|
2053
1857
|
client=self._client,
|
2054
1858
|
deserialization_callback=get_long_running_output,
|
2055
1859
|
)
|
2056
|
-
return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) # type: ignore
|
2057
|
-
|
2058
|
-
begin_customer_initiated_migration.metadata = {
|
2059
|
-
"url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/startAccountMigration"
|
2060
|
-
}
|
1860
|
+
return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore
|
2061
1861
|
|
2062
1862
|
@distributed_trace_async
|
2063
1863
|
async def get_customer_initiated_migration(
|
@@ -2079,12 +1879,11 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2079
1879
|
:param migration_name: The name of the Storage Account Migration. It should always be
|
2080
1880
|
'default'. "default" Required.
|
2081
1881
|
:type migration_name: str or ~azure.mgmt.storage.v2023_01_01.models.MigrationName
|
2082
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
2083
1882
|
:return: StorageAccountMigration or the result of cls(response)
|
2084
1883
|
:rtype: ~azure.mgmt.storage.v2023_01_01.models.StorageAccountMigration
|
2085
1884
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2086
1885
|
"""
|
2087
|
-
error_map = {
|
1886
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
2088
1887
|
401: ClientAuthenticationError,
|
2089
1888
|
404: ResourceNotFoundError,
|
2090
1889
|
409: ResourceExistsError,
|
@@ -2098,22 +1897,21 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2098
1897
|
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-01-01"))
|
2099
1898
|
cls: ClsType[_models.StorageAccountMigration] = kwargs.pop("cls", None)
|
2100
1899
|
|
2101
|
-
|
1900
|
+
_request = build_get_customer_initiated_migration_request(
|
2102
1901
|
resource_group_name=resource_group_name,
|
2103
1902
|
account_name=account_name,
|
2104
1903
|
migration_name=migration_name,
|
2105
1904
|
subscription_id=self._config.subscription_id,
|
2106
1905
|
api_version=api_version,
|
2107
|
-
template_url=self.get_customer_initiated_migration.metadata["url"],
|
2108
1906
|
headers=_headers,
|
2109
1907
|
params=_params,
|
2110
1908
|
)
|
2111
|
-
|
2112
|
-
|
1909
|
+
_request = _convert_request(_request)
|
1910
|
+
_request.url = self._client.format_url(_request.url)
|
2113
1911
|
|
2114
1912
|
_stream = False
|
2115
1913
|
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
2116
|
-
|
1914
|
+
_request, stream=_stream, **kwargs
|
2117
1915
|
)
|
2118
1916
|
|
2119
1917
|
response = pipeline_response.http_response
|
@@ -2126,22 +1924,18 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2126
1924
|
deserialized = self._deserialize("StorageAccountMigration", pipeline_response)
|
2127
1925
|
|
2128
1926
|
if cls:
|
2129
|
-
return cls(pipeline_response, deserialized, {})
|
2130
|
-
|
2131
|
-
return deserialized
|
1927
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
2132
1928
|
|
2133
|
-
|
2134
|
-
"url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/accountMigrations/{migrationName}"
|
2135
|
-
}
|
1929
|
+
return deserialized # type: ignore
|
2136
1930
|
|
2137
1931
|
async def _restore_blob_ranges_initial(
|
2138
1932
|
self,
|
2139
1933
|
resource_group_name: str,
|
2140
1934
|
account_name: str,
|
2141
|
-
parameters: Union[_models.BlobRestoreParameters, IO],
|
1935
|
+
parameters: Union[_models.BlobRestoreParameters, IO[bytes]],
|
2142
1936
|
**kwargs: Any
|
2143
1937
|
) -> _models.BlobRestoreStatus:
|
2144
|
-
error_map = {
|
1938
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
2145
1939
|
401: ClientAuthenticationError,
|
2146
1940
|
404: ResourceNotFoundError,
|
2147
1941
|
409: ResourceExistsError,
|
@@ -2164,7 +1958,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2164
1958
|
else:
|
2165
1959
|
_json = self._serialize.body(parameters, "BlobRestoreParameters")
|
2166
1960
|
|
2167
|
-
|
1961
|
+
_request = build_restore_blob_ranges_request(
|
2168
1962
|
resource_group_name=resource_group_name,
|
2169
1963
|
account_name=account_name,
|
2170
1964
|
subscription_id=self._config.subscription_id,
|
@@ -2172,16 +1966,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2172
1966
|
content_type=content_type,
|
2173
1967
|
json=_json,
|
2174
1968
|
content=_content,
|
2175
|
-
template_url=self._restore_blob_ranges_initial.metadata["url"],
|
2176
1969
|
headers=_headers,
|
2177
1970
|
params=_params,
|
2178
1971
|
)
|
2179
|
-
|
2180
|
-
|
1972
|
+
_request = _convert_request(_request)
|
1973
|
+
_request.url = self._client.format_url(_request.url)
|
2181
1974
|
|
2182
1975
|
_stream = False
|
2183
1976
|
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
2184
|
-
|
1977
|
+
_request, stream=_stream, **kwargs
|
2185
1978
|
)
|
2186
1979
|
|
2187
1980
|
response = pipeline_response.http_response
|
@@ -2201,10 +1994,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2201
1994
|
|
2202
1995
|
return deserialized # type: ignore
|
2203
1996
|
|
2204
|
-
_restore_blob_ranges_initial.metadata = {
|
2205
|
-
"url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/restoreBlobRanges"
|
2206
|
-
}
|
2207
|
-
|
2208
1997
|
@overload
|
2209
1998
|
async def begin_restore_blob_ranges(
|
2210
1999
|
self,
|
@@ -2229,14 +2018,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2229
2018
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
2230
2019
|
Default value is "application/json".
|
2231
2020
|
:paramtype content_type: str
|
2232
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
2233
|
-
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
|
2234
|
-
:keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for
|
2235
|
-
this operation to not poll, or pass in your own initialized polling object for a personal
|
2236
|
-
polling strategy.
|
2237
|
-
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
|
2238
|
-
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
|
2239
|
-
Retry-After header is present.
|
2240
2021
|
:return: An instance of AsyncLROPoller that returns either BlobRestoreStatus or the result of
|
2241
2022
|
cls(response)
|
2242
2023
|
:rtype:
|
@@ -2249,7 +2030,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2249
2030
|
self,
|
2250
2031
|
resource_group_name: str,
|
2251
2032
|
account_name: str,
|
2252
|
-
parameters: IO,
|
2033
|
+
parameters: IO[bytes],
|
2253
2034
|
*,
|
2254
2035
|
content_type: str = "application/json",
|
2255
2036
|
**kwargs: Any
|
@@ -2264,18 +2045,10 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2264
2045
|
lower-case letters only. Required.
|
2265
2046
|
:type account_name: str
|
2266
2047
|
:param parameters: The parameters to provide for restore blob ranges. Required.
|
2267
|
-
:type parameters: IO
|
2048
|
+
:type parameters: IO[bytes]
|
2268
2049
|
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
2269
2050
|
Default value is "application/json".
|
2270
2051
|
:paramtype content_type: str
|
2271
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
2272
|
-
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
|
2273
|
-
:keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for
|
2274
|
-
this operation to not poll, or pass in your own initialized polling object for a personal
|
2275
|
-
polling strategy.
|
2276
|
-
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
|
2277
|
-
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
|
2278
|
-
Retry-After header is present.
|
2279
2052
|
:return: An instance of AsyncLROPoller that returns either BlobRestoreStatus or the result of
|
2280
2053
|
cls(response)
|
2281
2054
|
:rtype:
|
@@ -2288,7 +2061,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2288
2061
|
self,
|
2289
2062
|
resource_group_name: str,
|
2290
2063
|
account_name: str,
|
2291
|
-
parameters: Union[_models.BlobRestoreParameters, IO],
|
2064
|
+
parameters: Union[_models.BlobRestoreParameters, IO[bytes]],
|
2292
2065
|
**kwargs: Any
|
2293
2066
|
) -> AsyncLROPoller[_models.BlobRestoreStatus]:
|
2294
2067
|
"""Restore blobs in the specified blob ranges.
|
@@ -2301,19 +2074,8 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2301
2074
|
lower-case letters only. Required.
|
2302
2075
|
:type account_name: str
|
2303
2076
|
:param parameters: The parameters to provide for restore blob ranges. Is either a
|
2304
|
-
BlobRestoreParameters type or a IO type. Required.
|
2305
|
-
:type parameters: ~azure.mgmt.storage.v2023_01_01.models.BlobRestoreParameters or IO
|
2306
|
-
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
|
2307
|
-
Default value is None.
|
2308
|
-
:paramtype content_type: str
|
2309
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
2310
|
-
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
|
2311
|
-
:keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for
|
2312
|
-
this operation to not poll, or pass in your own initialized polling object for a personal
|
2313
|
-
polling strategy.
|
2314
|
-
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
|
2315
|
-
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
|
2316
|
-
Retry-After header is present.
|
2077
|
+
BlobRestoreParameters type or a IO[bytes] type. Required.
|
2078
|
+
:type parameters: ~azure.mgmt.storage.v2023_01_01.models.BlobRestoreParameters or IO[bytes]
|
2317
2079
|
:return: An instance of AsyncLROPoller that returns either BlobRestoreStatus or the result of
|
2318
2080
|
cls(response)
|
2319
2081
|
:rtype:
|
@@ -2346,7 +2108,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2346
2108
|
def get_long_running_output(pipeline_response):
|
2347
2109
|
deserialized = self._deserialize("BlobRestoreStatus", pipeline_response)
|
2348
2110
|
if cls:
|
2349
|
-
return cls(pipeline_response, deserialized, {})
|
2111
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
2350
2112
|
return deserialized
|
2351
2113
|
|
2352
2114
|
if polling is True:
|
@@ -2358,17 +2120,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2358
2120
|
else:
|
2359
2121
|
polling_method = polling
|
2360
2122
|
if cont_token:
|
2361
|
-
return AsyncLROPoller.from_continuation_token(
|
2123
|
+
return AsyncLROPoller[_models.BlobRestoreStatus].from_continuation_token(
|
2362
2124
|
polling_method=polling_method,
|
2363
2125
|
continuation_token=cont_token,
|
2364
2126
|
client=self._client,
|
2365
2127
|
deserialization_callback=get_long_running_output,
|
2366
2128
|
)
|
2367
|
-
return AsyncLROPoller(
|
2368
|
-
|
2369
|
-
|
2370
|
-
"url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/restoreBlobRanges"
|
2371
|
-
}
|
2129
|
+
return AsyncLROPoller[_models.BlobRestoreStatus](
|
2130
|
+
self._client, raw_result, get_long_running_output, polling_method # type: ignore
|
2131
|
+
)
|
2372
2132
|
|
2373
2133
|
@distributed_trace_async
|
2374
2134
|
async def revoke_user_delegation_keys( # pylint: disable=inconsistent-return-statements
|
@@ -2383,12 +2143,11 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2383
2143
|
Storage account names must be between 3 and 24 characters in length and use numbers and
|
2384
2144
|
lower-case letters only. Required.
|
2385
2145
|
:type account_name: str
|
2386
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
2387
2146
|
:return: None or the result of cls(response)
|
2388
2147
|
:rtype: None
|
2389
2148
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2390
2149
|
"""
|
2391
|
-
error_map = {
|
2150
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
2392
2151
|
401: ClientAuthenticationError,
|
2393
2152
|
404: ResourceNotFoundError,
|
2394
2153
|
409: ResourceExistsError,
|
@@ -2402,21 +2161,20 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2402
2161
|
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-01-01"))
|
2403
2162
|
cls: ClsType[None] = kwargs.pop("cls", None)
|
2404
2163
|
|
2405
|
-
|
2164
|
+
_request = build_revoke_user_delegation_keys_request(
|
2406
2165
|
resource_group_name=resource_group_name,
|
2407
2166
|
account_name=account_name,
|
2408
2167
|
subscription_id=self._config.subscription_id,
|
2409
2168
|
api_version=api_version,
|
2410
|
-
template_url=self.revoke_user_delegation_keys.metadata["url"],
|
2411
2169
|
headers=_headers,
|
2412
2170
|
params=_params,
|
2413
2171
|
)
|
2414
|
-
|
2415
|
-
|
2172
|
+
_request = _convert_request(_request)
|
2173
|
+
_request.url = self._client.format_url(_request.url)
|
2416
2174
|
|
2417
2175
|
_stream = False
|
2418
2176
|
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
2419
|
-
|
2177
|
+
_request, stream=_stream, **kwargs
|
2420
2178
|
)
|
2421
2179
|
|
2422
2180
|
response = pipeline_response.http_response
|
@@ -2426,8 +2184,4 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2426
2184
|
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
|
2427
2185
|
|
2428
2186
|
if cls:
|
2429
|
-
return cls(pipeline_response, None, {})
|
2430
|
-
|
2431
|
-
revoke_user_delegation_keys.metadata = {
|
2432
|
-
"url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/revokeUserDelegationKeys"
|
2433
|
-
}
|
2187
|
+
return cls(pipeline_response, None, {}) # type: ignore
|