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, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload
|
11
|
+
from typing import Any, Callable, Dict, IO, Iterable, Literal, Optional, Type, TypeVar, Union, cast, overload
|
12
12
|
import urllib.parse
|
13
13
|
|
14
14
|
from azure.core.exceptions import (
|
@@ -33,10 +33,10 @@ from .. import models as _models
|
|
33
33
|
from ..._serialization import Serializer
|
34
34
|
from .._vendor import _convert_request
|
35
35
|
|
36
|
-
if sys.version_info >= (3,
|
37
|
-
from
|
36
|
+
if sys.version_info >= (3, 9):
|
37
|
+
from collections.abc import MutableMapping
|
38
38
|
else:
|
39
|
-
from
|
39
|
+
from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
|
40
40
|
T = TypeVar("T")
|
41
41
|
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
|
42
42
|
|
@@ -466,7 +466,7 @@ def build_failover_request(
|
|
466
466
|
return HttpRequest(method="POST", url=_url, params=_params, **kwargs)
|
467
467
|
|
468
468
|
|
469
|
-
def build_hierarchical_namespace_migration_request(
|
469
|
+
def build_hierarchical_namespace_migration_request( # pylint: disable=name-too-long
|
470
470
|
resource_group_name: str, account_name: str, subscription_id: str, *, request_type: str, **kwargs: Any
|
471
471
|
) -> HttpRequest:
|
472
472
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
@@ -502,7 +502,7 @@ def build_hierarchical_namespace_migration_request(
|
|
502
502
|
return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs)
|
503
503
|
|
504
504
|
|
505
|
-
def build_abort_hierarchical_namespace_migration_request(
|
505
|
+
def build_abort_hierarchical_namespace_migration_request( # pylint: disable=name-too-long
|
506
506
|
resource_group_name: str, account_name: str, subscription_id: str, **kwargs: Any
|
507
507
|
) -> HttpRequest:
|
508
508
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
@@ -537,7 +537,7 @@ def build_abort_hierarchical_namespace_migration_request(
|
|
537
537
|
return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs)
|
538
538
|
|
539
539
|
|
540
|
-
def build_customer_initiated_migration_request(
|
540
|
+
def build_customer_initiated_migration_request( # pylint: disable=name-too-long
|
541
541
|
resource_group_name: str, account_name: str, subscription_id: str, **kwargs: Any
|
542
542
|
) -> HttpRequest:
|
543
543
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
@@ -575,7 +575,7 @@ def build_customer_initiated_migration_request(
|
|
575
575
|
return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs)
|
576
576
|
|
577
577
|
|
578
|
-
def build_get_customer_initiated_migration_request(
|
578
|
+
def build_get_customer_initiated_migration_request( # pylint: disable=name-too-long
|
579
579
|
resource_group_name: str,
|
580
580
|
account_name: str,
|
581
581
|
migration_name: Union[str, _models.MigrationName],
|
@@ -653,7 +653,7 @@ def build_restore_blob_ranges_request(
|
|
653
653
|
return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs)
|
654
654
|
|
655
655
|
|
656
|
-
def build_revoke_user_delegation_keys_request(
|
656
|
+
def build_revoke_user_delegation_keys_request( # pylint: disable=name-too-long
|
657
657
|
resource_group_name: str, account_name: str, subscription_id: str, **kwargs: Any
|
658
658
|
) -> HttpRequest:
|
659
659
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
@@ -718,7 +718,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
718
718
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
719
719
|
Default value is "application/json".
|
720
720
|
:paramtype content_type: str
|
721
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
722
721
|
:return: CheckNameAvailabilityResult or the result of cls(response)
|
723
722
|
:rtype: ~azure.mgmt.storage.v2023_01_01.models.CheckNameAvailabilityResult
|
724
723
|
:raises ~azure.core.exceptions.HttpResponseError:
|
@@ -726,18 +725,17 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
726
725
|
|
727
726
|
@overload
|
728
727
|
def check_name_availability(
|
729
|
-
self, account_name: IO, *, content_type: str = "application/json", **kwargs: Any
|
728
|
+
self, account_name: IO[bytes], *, content_type: str = "application/json", **kwargs: Any
|
730
729
|
) -> _models.CheckNameAvailabilityResult:
|
731
730
|
"""Checks that the storage account name is valid and is not already in use.
|
732
731
|
|
733
732
|
:param account_name: The name of the storage account within the specified resource group.
|
734
733
|
Storage account names must be between 3 and 24 characters in length and use numbers and
|
735
734
|
lower-case letters only. Required.
|
736
|
-
:type account_name: IO
|
735
|
+
:type account_name: IO[bytes]
|
737
736
|
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
738
737
|
Default value is "application/json".
|
739
738
|
:paramtype content_type: str
|
740
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
741
739
|
:return: CheckNameAvailabilityResult or the result of cls(response)
|
742
740
|
:rtype: ~azure.mgmt.storage.v2023_01_01.models.CheckNameAvailabilityResult
|
743
741
|
:raises ~azure.core.exceptions.HttpResponseError:
|
@@ -745,25 +743,22 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
745
743
|
|
746
744
|
@distributed_trace
|
747
745
|
def check_name_availability(
|
748
|
-
self, account_name: Union[_models.StorageAccountCheckNameAvailabilityParameters, IO], **kwargs: Any
|
746
|
+
self, account_name: Union[_models.StorageAccountCheckNameAvailabilityParameters, IO[bytes]], **kwargs: Any
|
749
747
|
) -> _models.CheckNameAvailabilityResult:
|
750
748
|
"""Checks that the storage account name is valid and is not already in use.
|
751
749
|
|
752
750
|
:param account_name: The name of the storage account within the specified resource group.
|
753
751
|
Storage account names must be between 3 and 24 characters in length and use numbers and
|
754
|
-
lower-case letters only. Is either a StorageAccountCheckNameAvailabilityParameters type or a
|
755
|
-
type. Required.
|
752
|
+
lower-case letters only. Is either a StorageAccountCheckNameAvailabilityParameters type or a
|
753
|
+
IO[bytes] type. Required.
|
756
754
|
:type account_name:
|
757
|
-
~azure.mgmt.storage.v2023_01_01.models.StorageAccountCheckNameAvailabilityParameters or
|
758
|
-
|
759
|
-
Default value is None.
|
760
|
-
:paramtype content_type: str
|
761
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
755
|
+
~azure.mgmt.storage.v2023_01_01.models.StorageAccountCheckNameAvailabilityParameters or
|
756
|
+
IO[bytes]
|
762
757
|
:return: CheckNameAvailabilityResult or the result of cls(response)
|
763
758
|
:rtype: ~azure.mgmt.storage.v2023_01_01.models.CheckNameAvailabilityResult
|
764
759
|
:raises ~azure.core.exceptions.HttpResponseError:
|
765
760
|
"""
|
766
|
-
error_map = {
|
761
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
767
762
|
401: ClientAuthenticationError,
|
768
763
|
404: ResourceNotFoundError,
|
769
764
|
409: ResourceExistsError,
|
@@ -786,22 +781,21 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
786
781
|
else:
|
787
782
|
_json = self._serialize.body(account_name, "StorageAccountCheckNameAvailabilityParameters")
|
788
783
|
|
789
|
-
|
784
|
+
_request = build_check_name_availability_request(
|
790
785
|
subscription_id=self._config.subscription_id,
|
791
786
|
api_version=api_version,
|
792
787
|
content_type=content_type,
|
793
788
|
json=_json,
|
794
789
|
content=_content,
|
795
|
-
template_url=self.check_name_availability.metadata["url"],
|
796
790
|
headers=_headers,
|
797
791
|
params=_params,
|
798
792
|
)
|
799
|
-
|
800
|
-
|
793
|
+
_request = _convert_request(_request)
|
794
|
+
_request.url = self._client.format_url(_request.url)
|
801
795
|
|
802
796
|
_stream = False
|
803
797
|
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
804
|
-
|
798
|
+
_request, stream=_stream, **kwargs
|
805
799
|
)
|
806
800
|
|
807
801
|
response = pipeline_response.http_response
|
@@ -813,22 +807,18 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
813
807
|
deserialized = self._deserialize("CheckNameAvailabilityResult", pipeline_response)
|
814
808
|
|
815
809
|
if cls:
|
816
|
-
return cls(pipeline_response, deserialized, {})
|
817
|
-
|
818
|
-
return deserialized
|
810
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
819
811
|
|
820
|
-
|
821
|
-
"url": "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/checkNameAvailability"
|
822
|
-
}
|
812
|
+
return deserialized # type: ignore
|
823
813
|
|
824
814
|
def _create_initial(
|
825
815
|
self,
|
826
816
|
resource_group_name: str,
|
827
817
|
account_name: str,
|
828
|
-
parameters: Union[_models.StorageAccountCreateParameters, IO],
|
818
|
+
parameters: Union[_models.StorageAccountCreateParameters, IO[bytes]],
|
829
819
|
**kwargs: Any
|
830
820
|
) -> Optional[_models.StorageAccount]:
|
831
|
-
error_map = {
|
821
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
832
822
|
401: ClientAuthenticationError,
|
833
823
|
404: ResourceNotFoundError,
|
834
824
|
409: ResourceExistsError,
|
@@ -851,7 +841,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
851
841
|
else:
|
852
842
|
_json = self._serialize.body(parameters, "StorageAccountCreateParameters")
|
853
843
|
|
854
|
-
|
844
|
+
_request = build_create_request(
|
855
845
|
resource_group_name=resource_group_name,
|
856
846
|
account_name=account_name,
|
857
847
|
subscription_id=self._config.subscription_id,
|
@@ -859,16 +849,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
859
849
|
content_type=content_type,
|
860
850
|
json=_json,
|
861
851
|
content=_content,
|
862
|
-
template_url=self._create_initial.metadata["url"],
|
863
852
|
headers=_headers,
|
864
853
|
params=_params,
|
865
854
|
)
|
866
|
-
|
867
|
-
|
855
|
+
_request = _convert_request(_request)
|
856
|
+
_request.url = self._client.format_url(_request.url)
|
868
857
|
|
869
858
|
_stream = False
|
870
859
|
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
871
|
-
|
860
|
+
_request, stream=_stream, **kwargs
|
872
861
|
)
|
873
862
|
|
874
863
|
response = pipeline_response.http_response
|
@@ -882,13 +871,9 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
882
871
|
deserialized = self._deserialize("StorageAccount", pipeline_response)
|
883
872
|
|
884
873
|
if cls:
|
885
|
-
return cls(pipeline_response, deserialized, {})
|
886
|
-
|
887
|
-
return deserialized
|
874
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
888
875
|
|
889
|
-
|
890
|
-
"url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"
|
891
|
-
}
|
876
|
+
return deserialized # type: ignore
|
892
877
|
|
893
878
|
@overload
|
894
879
|
def begin_create(
|
@@ -917,14 +902,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
917
902
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
918
903
|
Default value is "application/json".
|
919
904
|
:paramtype content_type: str
|
920
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
921
|
-
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
|
922
|
-
:keyword polling: By default, your polling method will be ARMPolling. Pass in False for this
|
923
|
-
operation to not poll, or pass in your own initialized polling object for a personal polling
|
924
|
-
strategy.
|
925
|
-
:paramtype polling: bool or ~azure.core.polling.PollingMethod
|
926
|
-
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
|
927
|
-
Retry-After header is present.
|
928
905
|
:return: An instance of LROPoller that returns either StorageAccount or the result of
|
929
906
|
cls(response)
|
930
907
|
:rtype: ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2023_01_01.models.StorageAccount]
|
@@ -936,7 +913,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
936
913
|
self,
|
937
914
|
resource_group_name: str,
|
938
915
|
account_name: str,
|
939
|
-
parameters: IO,
|
916
|
+
parameters: IO[bytes],
|
940
917
|
*,
|
941
918
|
content_type: str = "application/json",
|
942
919
|
**kwargs: Any
|
@@ -954,18 +931,10 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
954
931
|
lower-case letters only. Required.
|
955
932
|
:type account_name: str
|
956
933
|
:param parameters: The parameters to provide for the created account. Required.
|
957
|
-
:type parameters: IO
|
934
|
+
:type parameters: IO[bytes]
|
958
935
|
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
959
936
|
Default value is "application/json".
|
960
937
|
:paramtype content_type: str
|
961
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
962
|
-
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
|
963
|
-
:keyword polling: By default, your polling method will be ARMPolling. Pass in False for this
|
964
|
-
operation to not poll, or pass in your own initialized polling object for a personal polling
|
965
|
-
strategy.
|
966
|
-
:paramtype polling: bool or ~azure.core.polling.PollingMethod
|
967
|
-
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
|
968
|
-
Retry-After header is present.
|
969
938
|
:return: An instance of LROPoller that returns either StorageAccount or the result of
|
970
939
|
cls(response)
|
971
940
|
:rtype: ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2023_01_01.models.StorageAccount]
|
@@ -977,7 +946,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
977
946
|
self,
|
978
947
|
resource_group_name: str,
|
979
948
|
account_name: str,
|
980
|
-
parameters: Union[_models.StorageAccountCreateParameters, IO],
|
949
|
+
parameters: Union[_models.StorageAccountCreateParameters, IO[bytes]],
|
981
950
|
**kwargs: Any
|
982
951
|
) -> LROPoller[_models.StorageAccount]:
|
983
952
|
"""Asynchronously creates a new storage account with the specified parameters. If an account is
|
@@ -993,19 +962,9 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
993
962
|
lower-case letters only. Required.
|
994
963
|
:type account_name: str
|
995
964
|
:param parameters: The parameters to provide for the created account. Is either a
|
996
|
-
StorageAccountCreateParameters type or a IO type. Required.
|
997
|
-
:type parameters: ~azure.mgmt.storage.v2023_01_01.models.StorageAccountCreateParameters or
|
998
|
-
|
999
|
-
Default value is None.
|
1000
|
-
:paramtype content_type: str
|
1001
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
1002
|
-
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
|
1003
|
-
:keyword polling: By default, your polling method will be ARMPolling. Pass in False for this
|
1004
|
-
operation to not poll, or pass in your own initialized polling object for a personal polling
|
1005
|
-
strategy.
|
1006
|
-
:paramtype polling: bool or ~azure.core.polling.PollingMethod
|
1007
|
-
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
|
1008
|
-
Retry-After header is present.
|
965
|
+
StorageAccountCreateParameters type or a IO[bytes] type. Required.
|
966
|
+
:type parameters: ~azure.mgmt.storage.v2023_01_01.models.StorageAccountCreateParameters or
|
967
|
+
IO[bytes]
|
1009
968
|
:return: An instance of LROPoller that returns either StorageAccount or the result of
|
1010
969
|
cls(response)
|
1011
970
|
:rtype: ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2023_01_01.models.StorageAccount]
|
@@ -1037,7 +996,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1037
996
|
def get_long_running_output(pipeline_response):
|
1038
997
|
deserialized = self._deserialize("StorageAccount", pipeline_response)
|
1039
998
|
if cls:
|
1040
|
-
return cls(pipeline_response, deserialized, {})
|
999
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
1041
1000
|
return deserialized
|
1042
1001
|
|
1043
1002
|
if polling is True:
|
@@ -1047,17 +1006,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1047
1006
|
else:
|
1048
1007
|
polling_method = polling
|
1049
1008
|
if cont_token:
|
1050
|
-
return LROPoller.from_continuation_token(
|
1009
|
+
return LROPoller[_models.StorageAccount].from_continuation_token(
|
1051
1010
|
polling_method=polling_method,
|
1052
1011
|
continuation_token=cont_token,
|
1053
1012
|
client=self._client,
|
1054
1013
|
deserialization_callback=get_long_running_output,
|
1055
1014
|
)
|
1056
|
-
return LROPoller(
|
1057
|
-
|
1058
|
-
|
1059
|
-
"url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"
|
1060
|
-
}
|
1015
|
+
return LROPoller[_models.StorageAccount](
|
1016
|
+
self._client, raw_result, get_long_running_output, polling_method # type: ignore
|
1017
|
+
)
|
1061
1018
|
|
1062
1019
|
@distributed_trace
|
1063
1020
|
def delete( # pylint: disable=inconsistent-return-statements
|
@@ -1072,12 +1029,11 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1072
1029
|
Storage account names must be between 3 and 24 characters in length and use numbers and
|
1073
1030
|
lower-case letters only. Required.
|
1074
1031
|
:type account_name: str
|
1075
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
1076
1032
|
:return: None or the result of cls(response)
|
1077
1033
|
:rtype: None
|
1078
1034
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1079
1035
|
"""
|
1080
|
-
error_map = {
|
1036
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
1081
1037
|
401: ClientAuthenticationError,
|
1082
1038
|
404: ResourceNotFoundError,
|
1083
1039
|
409: ResourceExistsError,
|
@@ -1091,21 +1047,20 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1091
1047
|
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-01-01"))
|
1092
1048
|
cls: ClsType[None] = kwargs.pop("cls", None)
|
1093
1049
|
|
1094
|
-
|
1050
|
+
_request = build_delete_request(
|
1095
1051
|
resource_group_name=resource_group_name,
|
1096
1052
|
account_name=account_name,
|
1097
1053
|
subscription_id=self._config.subscription_id,
|
1098
1054
|
api_version=api_version,
|
1099
|
-
template_url=self.delete.metadata["url"],
|
1100
1055
|
headers=_headers,
|
1101
1056
|
params=_params,
|
1102
1057
|
)
|
1103
|
-
|
1104
|
-
|
1058
|
+
_request = _convert_request(_request)
|
1059
|
+
_request.url = self._client.format_url(_request.url)
|
1105
1060
|
|
1106
1061
|
_stream = False
|
1107
1062
|
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
1108
|
-
|
1063
|
+
_request, stream=_stream, **kwargs
|
1109
1064
|
)
|
1110
1065
|
|
1111
1066
|
response = pipeline_response.http_response
|
@@ -1115,11 +1070,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1115
1070
|
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
|
1116
1071
|
|
1117
1072
|
if cls:
|
1118
|
-
return cls(pipeline_response, None, {})
|
1119
|
-
|
1120
|
-
delete.metadata = {
|
1121
|
-
"url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"
|
1122
|
-
}
|
1073
|
+
return cls(pipeline_response, None, {}) # type: ignore
|
1123
1074
|
|
1124
1075
|
@distributed_trace
|
1125
1076
|
def get_properties(
|
@@ -1145,12 +1096,11 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1145
1096
|
and blobRestoreStatus. Known values are: "geoReplicationStats" and "blobRestoreStatus". Default
|
1146
1097
|
value is None.
|
1147
1098
|
:type expand: str or ~azure.mgmt.storage.v2023_01_01.models.StorageAccountExpand
|
1148
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
1149
1099
|
:return: StorageAccount or the result of cls(response)
|
1150
1100
|
:rtype: ~azure.mgmt.storage.v2023_01_01.models.StorageAccount
|
1151
1101
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1152
1102
|
"""
|
1153
|
-
error_map = {
|
1103
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
1154
1104
|
401: ClientAuthenticationError,
|
1155
1105
|
404: ResourceNotFoundError,
|
1156
1106
|
409: ResourceExistsError,
|
@@ -1164,22 +1114,21 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1164
1114
|
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-01-01"))
|
1165
1115
|
cls: ClsType[_models.StorageAccount] = kwargs.pop("cls", None)
|
1166
1116
|
|
1167
|
-
|
1117
|
+
_request = build_get_properties_request(
|
1168
1118
|
resource_group_name=resource_group_name,
|
1169
1119
|
account_name=account_name,
|
1170
1120
|
subscription_id=self._config.subscription_id,
|
1171
1121
|
expand=expand,
|
1172
1122
|
api_version=api_version,
|
1173
|
-
template_url=self.get_properties.metadata["url"],
|
1174
1123
|
headers=_headers,
|
1175
1124
|
params=_params,
|
1176
1125
|
)
|
1177
|
-
|
1178
|
-
|
1126
|
+
_request = _convert_request(_request)
|
1127
|
+
_request.url = self._client.format_url(_request.url)
|
1179
1128
|
|
1180
1129
|
_stream = False
|
1181
1130
|
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
1182
|
-
|
1131
|
+
_request, stream=_stream, **kwargs
|
1183
1132
|
)
|
1184
1133
|
|
1185
1134
|
response = pipeline_response.http_response
|
@@ -1191,13 +1140,9 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1191
1140
|
deserialized = self._deserialize("StorageAccount", pipeline_response)
|
1192
1141
|
|
1193
1142
|
if cls:
|
1194
|
-
return cls(pipeline_response, deserialized, {})
|
1195
|
-
|
1196
|
-
return deserialized
|
1143
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
1197
1144
|
|
1198
|
-
|
1199
|
-
"url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"
|
1200
|
-
}
|
1145
|
+
return deserialized # type: ignore
|
1201
1146
|
|
1202
1147
|
@overload
|
1203
1148
|
def update(
|
@@ -1230,7 +1175,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1230
1175
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
1231
1176
|
Default value is "application/json".
|
1232
1177
|
:paramtype content_type: str
|
1233
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
1234
1178
|
:return: StorageAccount or the result of cls(response)
|
1235
1179
|
:rtype: ~azure.mgmt.storage.v2023_01_01.models.StorageAccount
|
1236
1180
|
:raises ~azure.core.exceptions.HttpResponseError:
|
@@ -1241,7 +1185,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1241
1185
|
self,
|
1242
1186
|
resource_group_name: str,
|
1243
1187
|
account_name: str,
|
1244
|
-
parameters: IO,
|
1188
|
+
parameters: IO[bytes],
|
1245
1189
|
*,
|
1246
1190
|
content_type: str = "application/json",
|
1247
1191
|
**kwargs: Any
|
@@ -1263,11 +1207,10 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1263
1207
|
lower-case letters only. Required.
|
1264
1208
|
:type account_name: str
|
1265
1209
|
:param parameters: The parameters to provide for the updated account. Required.
|
1266
|
-
:type parameters: IO
|
1210
|
+
:type parameters: IO[bytes]
|
1267
1211
|
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
1268
1212
|
Default value is "application/json".
|
1269
1213
|
:paramtype content_type: str
|
1270
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
1271
1214
|
:return: StorageAccount or the result of cls(response)
|
1272
1215
|
:rtype: ~azure.mgmt.storage.v2023_01_01.models.StorageAccount
|
1273
1216
|
:raises ~azure.core.exceptions.HttpResponseError:
|
@@ -1278,7 +1221,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1278
1221
|
self,
|
1279
1222
|
resource_group_name: str,
|
1280
1223
|
account_name: str,
|
1281
|
-
parameters: Union[_models.StorageAccountUpdateParameters, IO],
|
1224
|
+
parameters: Union[_models.StorageAccountUpdateParameters, IO[bytes]],
|
1282
1225
|
**kwargs: Any
|
1283
1226
|
) -> _models.StorageAccount:
|
1284
1227
|
"""The update operation can be used to update the SKU, encryption, access tier, or tags for a
|
@@ -1298,17 +1241,14 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1298
1241
|
lower-case letters only. Required.
|
1299
1242
|
:type account_name: str
|
1300
1243
|
:param parameters: The parameters to provide for the updated account. Is either a
|
1301
|
-
StorageAccountUpdateParameters type or a IO type. Required.
|
1302
|
-
:type parameters: ~azure.mgmt.storage.v2023_01_01.models.StorageAccountUpdateParameters or
|
1303
|
-
|
1304
|
-
Default value is None.
|
1305
|
-
:paramtype content_type: str
|
1306
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
1244
|
+
StorageAccountUpdateParameters type or a IO[bytes] type. Required.
|
1245
|
+
:type parameters: ~azure.mgmt.storage.v2023_01_01.models.StorageAccountUpdateParameters or
|
1246
|
+
IO[bytes]
|
1307
1247
|
:return: StorageAccount or the result of cls(response)
|
1308
1248
|
:rtype: ~azure.mgmt.storage.v2023_01_01.models.StorageAccount
|
1309
1249
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1310
1250
|
"""
|
1311
|
-
error_map = {
|
1251
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
1312
1252
|
401: ClientAuthenticationError,
|
1313
1253
|
404: ResourceNotFoundError,
|
1314
1254
|
409: ResourceExistsError,
|
@@ -1331,7 +1271,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1331
1271
|
else:
|
1332
1272
|
_json = self._serialize.body(parameters, "StorageAccountUpdateParameters")
|
1333
1273
|
|
1334
|
-
|
1274
|
+
_request = build_update_request(
|
1335
1275
|
resource_group_name=resource_group_name,
|
1336
1276
|
account_name=account_name,
|
1337
1277
|
subscription_id=self._config.subscription_id,
|
@@ -1339,16 +1279,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1339
1279
|
content_type=content_type,
|
1340
1280
|
json=_json,
|
1341
1281
|
content=_content,
|
1342
|
-
template_url=self.update.metadata["url"],
|
1343
1282
|
headers=_headers,
|
1344
1283
|
params=_params,
|
1345
1284
|
)
|
1346
|
-
|
1347
|
-
|
1285
|
+
_request = _convert_request(_request)
|
1286
|
+
_request.url = self._client.format_url(_request.url)
|
1348
1287
|
|
1349
1288
|
_stream = False
|
1350
1289
|
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
1351
|
-
|
1290
|
+
_request, stream=_stream, **kwargs
|
1352
1291
|
)
|
1353
1292
|
|
1354
1293
|
response = pipeline_response.http_response
|
@@ -1360,20 +1299,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1360
1299
|
deserialized = self._deserialize("StorageAccount", pipeline_response)
|
1361
1300
|
|
1362
1301
|
if cls:
|
1363
|
-
return cls(pipeline_response, deserialized, {})
|
1364
|
-
|
1365
|
-
return deserialized
|
1302
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
1366
1303
|
|
1367
|
-
|
1368
|
-
"url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"
|
1369
|
-
}
|
1304
|
+
return deserialized # type: ignore
|
1370
1305
|
|
1371
1306
|
@distributed_trace
|
1372
1307
|
def list(self, **kwargs: Any) -> Iterable["_models.StorageAccount"]:
|
1373
1308
|
"""Lists all the storage accounts available under the subscription. Note that storage keys are not
|
1374
1309
|
returned; use the ListKeys operation for this.
|
1375
1310
|
|
1376
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
1377
1311
|
:return: An iterator like instance of either StorageAccount or the result of cls(response)
|
1378
1312
|
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2023_01_01.models.StorageAccount]
|
1379
1313
|
:raises ~azure.core.exceptions.HttpResponseError:
|
@@ -1384,7 +1318,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1384
1318
|
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-01-01"))
|
1385
1319
|
cls: ClsType[_models.StorageAccountListResult] = kwargs.pop("cls", None)
|
1386
1320
|
|
1387
|
-
error_map = {
|
1321
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
1388
1322
|
401: ClientAuthenticationError,
|
1389
1323
|
404: ResourceNotFoundError,
|
1390
1324
|
409: ResourceExistsError,
|
@@ -1395,15 +1329,14 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1395
1329
|
def prepare_request(next_link=None):
|
1396
1330
|
if not next_link:
|
1397
1331
|
|
1398
|
-
|
1332
|
+
_request = build_list_request(
|
1399
1333
|
subscription_id=self._config.subscription_id,
|
1400
1334
|
api_version=api_version,
|
1401
|
-
template_url=self.list.metadata["url"],
|
1402
1335
|
headers=_headers,
|
1403
1336
|
params=_params,
|
1404
1337
|
)
|
1405
|
-
|
1406
|
-
|
1338
|
+
_request = _convert_request(_request)
|
1339
|
+
_request.url = self._client.format_url(_request.url)
|
1407
1340
|
|
1408
1341
|
else:
|
1409
1342
|
# make call to next link with the client's api-version
|
@@ -1414,14 +1347,14 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1414
1347
|
for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
|
1415
1348
|
}
|
1416
1349
|
)
|
1417
|
-
_next_request_params["api-version"] = self.
|
1418
|
-
|
1350
|
+
_next_request_params["api-version"] = self._api_version
|
1351
|
+
_request = HttpRequest(
|
1419
1352
|
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
|
1420
1353
|
)
|
1421
|
-
|
1422
|
-
|
1423
|
-
|
1424
|
-
return
|
1354
|
+
_request = _convert_request(_request)
|
1355
|
+
_request.url = self._client.format_url(_request.url)
|
1356
|
+
_request.method = "GET"
|
1357
|
+
return _request
|
1425
1358
|
|
1426
1359
|
def extract_data(pipeline_response):
|
1427
1360
|
deserialized = self._deserialize("StorageAccountListResult", pipeline_response)
|
@@ -1431,11 +1364,11 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1431
1364
|
return deserialized.next_link or None, iter(list_of_elem)
|
1432
1365
|
|
1433
1366
|
def get_next(next_link=None):
|
1434
|
-
|
1367
|
+
_request = prepare_request(next_link)
|
1435
1368
|
|
1436
1369
|
_stream = False
|
1437
1370
|
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
1438
|
-
|
1371
|
+
_request, stream=_stream, **kwargs
|
1439
1372
|
)
|
1440
1373
|
response = pipeline_response.http_response
|
1441
1374
|
|
@@ -1447,8 +1380,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1447
1380
|
|
1448
1381
|
return ItemPaged(get_next, extract_data)
|
1449
1382
|
|
1450
|
-
list.metadata = {"url": "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts"}
|
1451
|
-
|
1452
1383
|
@distributed_trace
|
1453
1384
|
def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Iterable["_models.StorageAccount"]:
|
1454
1385
|
"""Lists all the storage accounts available under the given resource group. Note that storage keys
|
@@ -1457,7 +1388,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1457
1388
|
:param resource_group_name: The name of the resource group within the user's subscription. The
|
1458
1389
|
name is case insensitive. Required.
|
1459
1390
|
:type resource_group_name: str
|
1460
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
1461
1391
|
:return: An iterator like instance of either StorageAccount or the result of cls(response)
|
1462
1392
|
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2023_01_01.models.StorageAccount]
|
1463
1393
|
:raises ~azure.core.exceptions.HttpResponseError:
|
@@ -1468,7 +1398,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1468
1398
|
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-01-01"))
|
1469
1399
|
cls: ClsType[_models.StorageAccountListResult] = kwargs.pop("cls", None)
|
1470
1400
|
|
1471
|
-
error_map = {
|
1401
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
1472
1402
|
401: ClientAuthenticationError,
|
1473
1403
|
404: ResourceNotFoundError,
|
1474
1404
|
409: ResourceExistsError,
|
@@ -1479,16 +1409,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1479
1409
|
def prepare_request(next_link=None):
|
1480
1410
|
if not next_link:
|
1481
1411
|
|
1482
|
-
|
1412
|
+
_request = build_list_by_resource_group_request(
|
1483
1413
|
resource_group_name=resource_group_name,
|
1484
1414
|
subscription_id=self._config.subscription_id,
|
1485
1415
|
api_version=api_version,
|
1486
|
-
template_url=self.list_by_resource_group.metadata["url"],
|
1487
1416
|
headers=_headers,
|
1488
1417
|
params=_params,
|
1489
1418
|
)
|
1490
|
-
|
1491
|
-
|
1419
|
+
_request = _convert_request(_request)
|
1420
|
+
_request.url = self._client.format_url(_request.url)
|
1492
1421
|
|
1493
1422
|
else:
|
1494
1423
|
# make call to next link with the client's api-version
|
@@ -1499,14 +1428,14 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1499
1428
|
for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
|
1500
1429
|
}
|
1501
1430
|
)
|
1502
|
-
_next_request_params["api-version"] = self.
|
1503
|
-
|
1431
|
+
_next_request_params["api-version"] = self._api_version
|
1432
|
+
_request = HttpRequest(
|
1504
1433
|
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
|
1505
1434
|
)
|
1506
|
-
|
1507
|
-
|
1508
|
-
|
1509
|
-
return
|
1435
|
+
_request = _convert_request(_request)
|
1436
|
+
_request.url = self._client.format_url(_request.url)
|
1437
|
+
_request.method = "GET"
|
1438
|
+
return _request
|
1510
1439
|
|
1511
1440
|
def extract_data(pipeline_response):
|
1512
1441
|
deserialized = self._deserialize("StorageAccountListResult", pipeline_response)
|
@@ -1516,11 +1445,11 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1516
1445
|
return deserialized.next_link or None, iter(list_of_elem)
|
1517
1446
|
|
1518
1447
|
def get_next(next_link=None):
|
1519
|
-
|
1448
|
+
_request = prepare_request(next_link)
|
1520
1449
|
|
1521
1450
|
_stream = False
|
1522
1451
|
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
1523
|
-
|
1452
|
+
_request, stream=_stream, **kwargs
|
1524
1453
|
)
|
1525
1454
|
response = pipeline_response.http_response
|
1526
1455
|
|
@@ -1532,10 +1461,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1532
1461
|
|
1533
1462
|
return ItemPaged(get_next, extract_data)
|
1534
1463
|
|
1535
|
-
list_by_resource_group.metadata = {
|
1536
|
-
"url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts"
|
1537
|
-
}
|
1538
|
-
|
1539
1464
|
@distributed_trace
|
1540
1465
|
def list_keys(
|
1541
1466
|
self, resource_group_name: str, account_name: str, expand: Literal["kerb"] = "kerb", **kwargs: Any
|
@@ -1553,12 +1478,11 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1553
1478
|
:param expand: Specifies type of the key to be listed. Possible value is kerb. Known values are
|
1554
1479
|
"kerb" and None. Default value is "kerb".
|
1555
1480
|
:type expand: str
|
1556
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
1557
1481
|
:return: StorageAccountListKeysResult or the result of cls(response)
|
1558
1482
|
:rtype: ~azure.mgmt.storage.v2023_01_01.models.StorageAccountListKeysResult
|
1559
1483
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1560
1484
|
"""
|
1561
|
-
error_map = {
|
1485
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
1562
1486
|
401: ClientAuthenticationError,
|
1563
1487
|
404: ResourceNotFoundError,
|
1564
1488
|
409: ResourceExistsError,
|
@@ -1572,22 +1496,21 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1572
1496
|
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-01-01"))
|
1573
1497
|
cls: ClsType[_models.StorageAccountListKeysResult] = kwargs.pop("cls", None)
|
1574
1498
|
|
1575
|
-
|
1499
|
+
_request = build_list_keys_request(
|
1576
1500
|
resource_group_name=resource_group_name,
|
1577
1501
|
account_name=account_name,
|
1578
1502
|
subscription_id=self._config.subscription_id,
|
1579
1503
|
expand=expand,
|
1580
1504
|
api_version=api_version,
|
1581
|
-
template_url=self.list_keys.metadata["url"],
|
1582
1505
|
headers=_headers,
|
1583
1506
|
params=_params,
|
1584
1507
|
)
|
1585
|
-
|
1586
|
-
|
1508
|
+
_request = _convert_request(_request)
|
1509
|
+
_request.url = self._client.format_url(_request.url)
|
1587
1510
|
|
1588
1511
|
_stream = False
|
1589
1512
|
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
1590
|
-
|
1513
|
+
_request, stream=_stream, **kwargs
|
1591
1514
|
)
|
1592
1515
|
|
1593
1516
|
response = pipeline_response.http_response
|
@@ -1599,13 +1522,9 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1599
1522
|
deserialized = self._deserialize("StorageAccountListKeysResult", pipeline_response)
|
1600
1523
|
|
1601
1524
|
if cls:
|
1602
|
-
return cls(pipeline_response, deserialized, {})
|
1603
|
-
|
1604
|
-
return deserialized
|
1525
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
1605
1526
|
|
1606
|
-
|
1607
|
-
"url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys"
|
1608
|
-
}
|
1527
|
+
return deserialized # type: ignore
|
1609
1528
|
|
1610
1529
|
@overload
|
1611
1530
|
def regenerate_key(
|
@@ -1633,7 +1552,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1633
1552
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
1634
1553
|
Default value is "application/json".
|
1635
1554
|
:paramtype content_type: str
|
1636
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
1637
1555
|
:return: StorageAccountListKeysResult or the result of cls(response)
|
1638
1556
|
:rtype: ~azure.mgmt.storage.v2023_01_01.models.StorageAccountListKeysResult
|
1639
1557
|
:raises ~azure.core.exceptions.HttpResponseError:
|
@@ -1644,7 +1562,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1644
1562
|
self,
|
1645
1563
|
resource_group_name: str,
|
1646
1564
|
account_name: str,
|
1647
|
-
regenerate_key: IO,
|
1565
|
+
regenerate_key: IO[bytes],
|
1648
1566
|
*,
|
1649
1567
|
content_type: str = "application/json",
|
1650
1568
|
**kwargs: Any
|
@@ -1660,11 +1578,10 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1660
1578
|
:type account_name: str
|
1661
1579
|
:param regenerate_key: Specifies name of the key which should be regenerated -- key1, key2,
|
1662
1580
|
kerb1, kerb2. Required.
|
1663
|
-
:type regenerate_key: IO
|
1581
|
+
:type regenerate_key: IO[bytes]
|
1664
1582
|
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
1665
1583
|
Default value is "application/json".
|
1666
1584
|
:paramtype content_type: str
|
1667
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
1668
1585
|
:return: StorageAccountListKeysResult or the result of cls(response)
|
1669
1586
|
:rtype: ~azure.mgmt.storage.v2023_01_01.models.StorageAccountListKeysResult
|
1670
1587
|
:raises ~azure.core.exceptions.HttpResponseError:
|
@@ -1675,7 +1592,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1675
1592
|
self,
|
1676
1593
|
resource_group_name: str,
|
1677
1594
|
account_name: str,
|
1678
|
-
regenerate_key: Union[_models.StorageAccountRegenerateKeyParameters, IO],
|
1595
|
+
regenerate_key: Union[_models.StorageAccountRegenerateKeyParameters, IO[bytes]],
|
1679
1596
|
**kwargs: Any
|
1680
1597
|
) -> _models.StorageAccountListKeysResult:
|
1681
1598
|
"""Regenerates one of the access keys or Kerberos keys for the specified storage account.
|
@@ -1688,18 +1605,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1688
1605
|
lower-case letters only. Required.
|
1689
1606
|
:type account_name: str
|
1690
1607
|
:param regenerate_key: Specifies name of the key which should be regenerated -- key1, key2,
|
1691
|
-
kerb1, kerb2. Is either a StorageAccountRegenerateKeyParameters type or a IO type.
|
1608
|
+
kerb1, kerb2. Is either a StorageAccountRegenerateKeyParameters type or a IO[bytes] type.
|
1609
|
+
Required.
|
1692
1610
|
:type regenerate_key:
|
1693
|
-
~azure.mgmt.storage.v2023_01_01.models.StorageAccountRegenerateKeyParameters or IO
|
1694
|
-
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
|
1695
|
-
Default value is None.
|
1696
|
-
:paramtype content_type: str
|
1697
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
1611
|
+
~azure.mgmt.storage.v2023_01_01.models.StorageAccountRegenerateKeyParameters or IO[bytes]
|
1698
1612
|
:return: StorageAccountListKeysResult or the result of cls(response)
|
1699
1613
|
:rtype: ~azure.mgmt.storage.v2023_01_01.models.StorageAccountListKeysResult
|
1700
1614
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1701
1615
|
"""
|
1702
|
-
error_map = {
|
1616
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
1703
1617
|
401: ClientAuthenticationError,
|
1704
1618
|
404: ResourceNotFoundError,
|
1705
1619
|
409: ResourceExistsError,
|
@@ -1722,7 +1636,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1722
1636
|
else:
|
1723
1637
|
_json = self._serialize.body(regenerate_key, "StorageAccountRegenerateKeyParameters")
|
1724
1638
|
|
1725
|
-
|
1639
|
+
_request = build_regenerate_key_request(
|
1726
1640
|
resource_group_name=resource_group_name,
|
1727
1641
|
account_name=account_name,
|
1728
1642
|
subscription_id=self._config.subscription_id,
|
@@ -1730,16 +1644,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1730
1644
|
content_type=content_type,
|
1731
1645
|
json=_json,
|
1732
1646
|
content=_content,
|
1733
|
-
template_url=self.regenerate_key.metadata["url"],
|
1734
1647
|
headers=_headers,
|
1735
1648
|
params=_params,
|
1736
1649
|
)
|
1737
|
-
|
1738
|
-
|
1650
|
+
_request = _convert_request(_request)
|
1651
|
+
_request.url = self._client.format_url(_request.url)
|
1739
1652
|
|
1740
1653
|
_stream = False
|
1741
1654
|
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
1742
|
-
|
1655
|
+
_request, stream=_stream, **kwargs
|
1743
1656
|
)
|
1744
1657
|
|
1745
1658
|
response = pipeline_response.http_response
|
@@ -1751,13 +1664,9 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1751
1664
|
deserialized = self._deserialize("StorageAccountListKeysResult", pipeline_response)
|
1752
1665
|
|
1753
1666
|
if cls:
|
1754
|
-
return cls(pipeline_response, deserialized, {})
|
1755
|
-
|
1756
|
-
return deserialized
|
1667
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
1757
1668
|
|
1758
|
-
|
1759
|
-
"url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/regenerateKey"
|
1760
|
-
}
|
1669
|
+
return deserialized # type: ignore
|
1761
1670
|
|
1762
1671
|
@overload
|
1763
1672
|
def list_account_sas(
|
@@ -1784,7 +1693,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1784
1693
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
1785
1694
|
Default value is "application/json".
|
1786
1695
|
:paramtype content_type: str
|
1787
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
1788
1696
|
:return: ListAccountSasResponse or the result of cls(response)
|
1789
1697
|
:rtype: ~azure.mgmt.storage.v2023_01_01.models.ListAccountSasResponse
|
1790
1698
|
:raises ~azure.core.exceptions.HttpResponseError:
|
@@ -1795,7 +1703,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1795
1703
|
self,
|
1796
1704
|
resource_group_name: str,
|
1797
1705
|
account_name: str,
|
1798
|
-
parameters: IO,
|
1706
|
+
parameters: IO[bytes],
|
1799
1707
|
*,
|
1800
1708
|
content_type: str = "application/json",
|
1801
1709
|
**kwargs: Any
|
@@ -1811,11 +1719,10 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1811
1719
|
:type account_name: str
|
1812
1720
|
:param parameters: The parameters to provide to list SAS credentials for the storage account.
|
1813
1721
|
Required.
|
1814
|
-
:type parameters: IO
|
1722
|
+
:type parameters: IO[bytes]
|
1815
1723
|
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
1816
1724
|
Default value is "application/json".
|
1817
1725
|
:paramtype content_type: str
|
1818
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
1819
1726
|
:return: ListAccountSasResponse or the result of cls(response)
|
1820
1727
|
:rtype: ~azure.mgmt.storage.v2023_01_01.models.ListAccountSasResponse
|
1821
1728
|
:raises ~azure.core.exceptions.HttpResponseError:
|
@@ -1826,7 +1733,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1826
1733
|
self,
|
1827
1734
|
resource_group_name: str,
|
1828
1735
|
account_name: str,
|
1829
|
-
parameters: Union[_models.AccountSasParameters, IO],
|
1736
|
+
parameters: Union[_models.AccountSasParameters, IO[bytes]],
|
1830
1737
|
**kwargs: Any
|
1831
1738
|
) -> _models.ListAccountSasResponse:
|
1832
1739
|
"""List SAS credentials of a storage account.
|
@@ -1839,17 +1746,13 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1839
1746
|
lower-case letters only. Required.
|
1840
1747
|
:type account_name: str
|
1841
1748
|
:param parameters: The parameters to provide to list SAS credentials for the storage account.
|
1842
|
-
Is either a AccountSasParameters type or a IO type. Required.
|
1843
|
-
:type parameters: ~azure.mgmt.storage.v2023_01_01.models.AccountSasParameters or IO
|
1844
|
-
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
|
1845
|
-
Default value is None.
|
1846
|
-
:paramtype content_type: str
|
1847
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
1749
|
+
Is either a AccountSasParameters type or a IO[bytes] type. Required.
|
1750
|
+
:type parameters: ~azure.mgmt.storage.v2023_01_01.models.AccountSasParameters or IO[bytes]
|
1848
1751
|
:return: ListAccountSasResponse or the result of cls(response)
|
1849
1752
|
:rtype: ~azure.mgmt.storage.v2023_01_01.models.ListAccountSasResponse
|
1850
1753
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1851
1754
|
"""
|
1852
|
-
error_map = {
|
1755
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
1853
1756
|
401: ClientAuthenticationError,
|
1854
1757
|
404: ResourceNotFoundError,
|
1855
1758
|
409: ResourceExistsError,
|
@@ -1872,7 +1775,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1872
1775
|
else:
|
1873
1776
|
_json = self._serialize.body(parameters, "AccountSasParameters")
|
1874
1777
|
|
1875
|
-
|
1778
|
+
_request = build_list_account_sas_request(
|
1876
1779
|
resource_group_name=resource_group_name,
|
1877
1780
|
account_name=account_name,
|
1878
1781
|
subscription_id=self._config.subscription_id,
|
@@ -1880,16 +1783,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1880
1783
|
content_type=content_type,
|
1881
1784
|
json=_json,
|
1882
1785
|
content=_content,
|
1883
|
-
template_url=self.list_account_sas.metadata["url"],
|
1884
1786
|
headers=_headers,
|
1885
1787
|
params=_params,
|
1886
1788
|
)
|
1887
|
-
|
1888
|
-
|
1789
|
+
_request = _convert_request(_request)
|
1790
|
+
_request.url = self._client.format_url(_request.url)
|
1889
1791
|
|
1890
1792
|
_stream = False
|
1891
1793
|
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
1892
|
-
|
1794
|
+
_request, stream=_stream, **kwargs
|
1893
1795
|
)
|
1894
1796
|
|
1895
1797
|
response = pipeline_response.http_response
|
@@ -1901,13 +1803,9 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1901
1803
|
deserialized = self._deserialize("ListAccountSasResponse", pipeline_response)
|
1902
1804
|
|
1903
1805
|
if cls:
|
1904
|
-
return cls(pipeline_response, deserialized, {})
|
1905
|
-
|
1906
|
-
return deserialized
|
1806
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
1907
1807
|
|
1908
|
-
|
1909
|
-
"url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/ListAccountSas"
|
1910
|
-
}
|
1808
|
+
return deserialized # type: ignore
|
1911
1809
|
|
1912
1810
|
@overload
|
1913
1811
|
def list_service_sas(
|
@@ -1933,7 +1831,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1933
1831
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
1934
1832
|
Default value is "application/json".
|
1935
1833
|
:paramtype content_type: str
|
1936
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
1937
1834
|
:return: ListServiceSasResponse or the result of cls(response)
|
1938
1835
|
:rtype: ~azure.mgmt.storage.v2023_01_01.models.ListServiceSasResponse
|
1939
1836
|
:raises ~azure.core.exceptions.HttpResponseError:
|
@@ -1944,7 +1841,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1944
1841
|
self,
|
1945
1842
|
resource_group_name: str,
|
1946
1843
|
account_name: str,
|
1947
|
-
parameters: IO,
|
1844
|
+
parameters: IO[bytes],
|
1948
1845
|
*,
|
1949
1846
|
content_type: str = "application/json",
|
1950
1847
|
**kwargs: Any
|
@@ -1959,11 +1856,10 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1959
1856
|
lower-case letters only. Required.
|
1960
1857
|
:type account_name: str
|
1961
1858
|
:param parameters: The parameters to provide to list service SAS credentials. Required.
|
1962
|
-
:type parameters: IO
|
1859
|
+
:type parameters: IO[bytes]
|
1963
1860
|
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
1964
1861
|
Default value is "application/json".
|
1965
1862
|
:paramtype content_type: str
|
1966
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
1967
1863
|
:return: ListServiceSasResponse or the result of cls(response)
|
1968
1864
|
:rtype: ~azure.mgmt.storage.v2023_01_01.models.ListServiceSasResponse
|
1969
1865
|
:raises ~azure.core.exceptions.HttpResponseError:
|
@@ -1974,7 +1870,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1974
1870
|
self,
|
1975
1871
|
resource_group_name: str,
|
1976
1872
|
account_name: str,
|
1977
|
-
parameters: Union[_models.ServiceSasParameters, IO],
|
1873
|
+
parameters: Union[_models.ServiceSasParameters, IO[bytes]],
|
1978
1874
|
**kwargs: Any
|
1979
1875
|
) -> _models.ListServiceSasResponse:
|
1980
1876
|
"""List service SAS credentials of a specific resource.
|
@@ -1987,17 +1883,13 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
1987
1883
|
lower-case letters only. Required.
|
1988
1884
|
:type account_name: str
|
1989
1885
|
:param parameters: The parameters to provide to list service SAS credentials. Is either a
|
1990
|
-
ServiceSasParameters type or a IO type. Required.
|
1991
|
-
:type parameters: ~azure.mgmt.storage.v2023_01_01.models.ServiceSasParameters or IO
|
1992
|
-
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
|
1993
|
-
Default value is None.
|
1994
|
-
:paramtype content_type: str
|
1995
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
1886
|
+
ServiceSasParameters type or a IO[bytes] type. Required.
|
1887
|
+
:type parameters: ~azure.mgmt.storage.v2023_01_01.models.ServiceSasParameters or IO[bytes]
|
1996
1888
|
:return: ListServiceSasResponse or the result of cls(response)
|
1997
1889
|
:rtype: ~azure.mgmt.storage.v2023_01_01.models.ListServiceSasResponse
|
1998
1890
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1999
1891
|
"""
|
2000
|
-
error_map = {
|
1892
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
2001
1893
|
401: ClientAuthenticationError,
|
2002
1894
|
404: ResourceNotFoundError,
|
2003
1895
|
409: ResourceExistsError,
|
@@ -2020,7 +1912,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2020
1912
|
else:
|
2021
1913
|
_json = self._serialize.body(parameters, "ServiceSasParameters")
|
2022
1914
|
|
2023
|
-
|
1915
|
+
_request = build_list_service_sas_request(
|
2024
1916
|
resource_group_name=resource_group_name,
|
2025
1917
|
account_name=account_name,
|
2026
1918
|
subscription_id=self._config.subscription_id,
|
@@ -2028,16 +1920,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2028
1920
|
content_type=content_type,
|
2029
1921
|
json=_json,
|
2030
1922
|
content=_content,
|
2031
|
-
template_url=self.list_service_sas.metadata["url"],
|
2032
1923
|
headers=_headers,
|
2033
1924
|
params=_params,
|
2034
1925
|
)
|
2035
|
-
|
2036
|
-
|
1926
|
+
_request = _convert_request(_request)
|
1927
|
+
_request.url = self._client.format_url(_request.url)
|
2037
1928
|
|
2038
1929
|
_stream = False
|
2039
1930
|
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
2040
|
-
|
1931
|
+
_request, stream=_stream, **kwargs
|
2041
1932
|
)
|
2042
1933
|
|
2043
1934
|
response = pipeline_response.http_response
|
@@ -2049,18 +1940,14 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2049
1940
|
deserialized = self._deserialize("ListServiceSasResponse", pipeline_response)
|
2050
1941
|
|
2051
1942
|
if cls:
|
2052
|
-
return cls(pipeline_response, deserialized, {})
|
2053
|
-
|
2054
|
-
return deserialized
|
1943
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
2055
1944
|
|
2056
|
-
|
2057
|
-
"url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/ListServiceSas"
|
2058
|
-
}
|
1945
|
+
return deserialized # type: ignore
|
2059
1946
|
|
2060
1947
|
def _failover_initial( # pylint: disable=inconsistent-return-statements
|
2061
1948
|
self, resource_group_name: str, account_name: str, failover_type: Literal["Planned"] = "Planned", **kwargs: Any
|
2062
1949
|
) -> None:
|
2063
|
-
error_map = {
|
1950
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
2064
1951
|
401: ClientAuthenticationError,
|
2065
1952
|
404: ResourceNotFoundError,
|
2066
1953
|
409: ResourceExistsError,
|
@@ -2074,22 +1961,21 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2074
1961
|
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-01-01"))
|
2075
1962
|
cls: ClsType[None] = kwargs.pop("cls", None)
|
2076
1963
|
|
2077
|
-
|
1964
|
+
_request = build_failover_request(
|
2078
1965
|
resource_group_name=resource_group_name,
|
2079
1966
|
account_name=account_name,
|
2080
1967
|
subscription_id=self._config.subscription_id,
|
2081
1968
|
failover_type=failover_type,
|
2082
1969
|
api_version=api_version,
|
2083
|
-
template_url=self._failover_initial.metadata["url"],
|
2084
1970
|
headers=_headers,
|
2085
1971
|
params=_params,
|
2086
1972
|
)
|
2087
|
-
|
2088
|
-
|
1973
|
+
_request = _convert_request(_request)
|
1974
|
+
_request.url = self._client.format_url(_request.url)
|
2089
1975
|
|
2090
1976
|
_stream = False
|
2091
1977
|
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
2092
|
-
|
1978
|
+
_request, stream=_stream, **kwargs
|
2093
1979
|
)
|
2094
1980
|
|
2095
1981
|
response = pipeline_response.http_response
|
@@ -2099,11 +1985,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2099
1985
|
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
|
2100
1986
|
|
2101
1987
|
if cls:
|
2102
|
-
return cls(pipeline_response, None, {})
|
2103
|
-
|
2104
|
-
_failover_initial.metadata = {
|
2105
|
-
"url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/failover"
|
2106
|
-
}
|
1988
|
+
return cls(pipeline_response, None, {}) # type: ignore
|
2107
1989
|
|
2108
1990
|
@distributed_trace
|
2109
1991
|
def begin_failover(
|
@@ -2131,14 +2013,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2131
2013
|
:param failover_type: The parameter is set to 'Planned' to indicate whether a Planned failover
|
2132
2014
|
is requested. Known values are "Planned" and None. Default value is "Planned".
|
2133
2015
|
:type failover_type: str
|
2134
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
2135
|
-
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
|
2136
|
-
:keyword polling: By default, your polling method will be ARMPolling. Pass in False for this
|
2137
|
-
operation to not poll, or pass in your own initialized polling object for a personal polling
|
2138
|
-
strategy.
|
2139
|
-
:paramtype polling: bool or ~azure.core.polling.PollingMethod
|
2140
|
-
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
|
2141
|
-
Retry-After header is present.
|
2142
2016
|
:return: An instance of LROPoller that returns either None or the result of cls(response)
|
2143
2017
|
:rtype: ~azure.core.polling.LROPoller[None]
|
2144
2018
|
:raises ~azure.core.exceptions.HttpResponseError:
|
@@ -2166,7 +2040,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2166
2040
|
|
2167
2041
|
def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements
|
2168
2042
|
if cls:
|
2169
|
-
return cls(pipeline_response, None, {})
|
2043
|
+
return cls(pipeline_response, None, {}) # type: ignore
|
2170
2044
|
|
2171
2045
|
if polling is True:
|
2172
2046
|
polling_method: PollingMethod = cast(
|
@@ -2177,22 +2051,18 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2177
2051
|
else:
|
2178
2052
|
polling_method = polling
|
2179
2053
|
if cont_token:
|
2180
|
-
return LROPoller.from_continuation_token(
|
2054
|
+
return LROPoller[None].from_continuation_token(
|
2181
2055
|
polling_method=polling_method,
|
2182
2056
|
continuation_token=cont_token,
|
2183
2057
|
client=self._client,
|
2184
2058
|
deserialization_callback=get_long_running_output,
|
2185
2059
|
)
|
2186
|
-
return LROPoller(self._client, raw_result, get_long_running_output, polling_method) # type: ignore
|
2187
|
-
|
2188
|
-
begin_failover.metadata = {
|
2189
|
-
"url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/failover"
|
2190
|
-
}
|
2060
|
+
return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore
|
2191
2061
|
|
2192
|
-
def _hierarchical_namespace_migration_initial( # pylint: disable=inconsistent-return-statements
|
2062
|
+
def _hierarchical_namespace_migration_initial( # pylint: disable=inconsistent-return-statements,name-too-long
|
2193
2063
|
self, resource_group_name: str, account_name: str, request_type: str, **kwargs: Any
|
2194
2064
|
) -> None:
|
2195
|
-
error_map = {
|
2065
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
2196
2066
|
401: ClientAuthenticationError,
|
2197
2067
|
404: ResourceNotFoundError,
|
2198
2068
|
409: ResourceExistsError,
|
@@ -2206,22 +2076,21 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2206
2076
|
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-01-01"))
|
2207
2077
|
cls: ClsType[None] = kwargs.pop("cls", None)
|
2208
2078
|
|
2209
|
-
|
2079
|
+
_request = build_hierarchical_namespace_migration_request(
|
2210
2080
|
resource_group_name=resource_group_name,
|
2211
2081
|
account_name=account_name,
|
2212
2082
|
subscription_id=self._config.subscription_id,
|
2213
2083
|
request_type=request_type,
|
2214
2084
|
api_version=api_version,
|
2215
|
-
template_url=self._hierarchical_namespace_migration_initial.metadata["url"],
|
2216
2085
|
headers=_headers,
|
2217
2086
|
params=_params,
|
2218
2087
|
)
|
2219
|
-
|
2220
|
-
|
2088
|
+
_request = _convert_request(_request)
|
2089
|
+
_request.url = self._client.format_url(_request.url)
|
2221
2090
|
|
2222
2091
|
_stream = False
|
2223
2092
|
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
2224
|
-
|
2093
|
+
_request, stream=_stream, **kwargs
|
2225
2094
|
)
|
2226
2095
|
|
2227
2096
|
response = pipeline_response.http_response
|
@@ -2232,11 +2101,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2232
2101
|
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
|
2233
2102
|
|
2234
2103
|
if cls:
|
2235
|
-
return cls(pipeline_response, None, {})
|
2236
|
-
|
2237
|
-
_hierarchical_namespace_migration_initial.metadata = {
|
2238
|
-
"url": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/hnsonmigration"
|
2239
|
-
}
|
2104
|
+
return cls(pipeline_response, None, {}) # type: ignore
|
2240
2105
|
|
2241
2106
|
@distributed_trace
|
2242
2107
|
def begin_hierarchical_namespace_migration(
|
@@ -2256,14 +2121,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2256
2121
|
'HnsOnHydrationRequest'. The validation request will validate the migration whereas the
|
2257
2122
|
hydration request will migrate the account. Required.
|
2258
2123
|
:type request_type: str
|
2259
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
2260
|
-
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
|
2261
|
-
:keyword polling: By default, your polling method will be ARMPolling. Pass in False for this
|
2262
|
-
operation to not poll, or pass in your own initialized polling object for a personal polling
|
2263
|
-
strategy.
|
2264
|
-
:paramtype polling: bool or ~azure.core.polling.PollingMethod
|
2265
|
-
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
|
2266
|
-
Retry-After header is present.
|
2267
2124
|
:return: An instance of LROPoller that returns either None or the result of cls(response)
|
2268
2125
|
:rtype: ~azure.core.polling.LROPoller[None]
|
2269
2126
|
:raises ~azure.core.exceptions.HttpResponseError:
|
@@ -2291,7 +2148,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2291
2148
|
|
2292
2149
|
def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements
|
2293
2150
|
if cls:
|
2294
|
-
return cls(pipeline_response, None, {})
|
2151
|
+
return cls(pipeline_response, None, {}) # type: ignore
|
2295
2152
|
|
2296
2153
|
if polling is True:
|
2297
2154
|
polling_method: PollingMethod = cast(
|
@@ -2302,22 +2159,18 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2302
2159
|
else:
|
2303
2160
|
polling_method = polling
|
2304
2161
|
if cont_token:
|
2305
|
-
return LROPoller.from_continuation_token(
|
2162
|
+
return LROPoller[None].from_continuation_token(
|
2306
2163
|
polling_method=polling_method,
|
2307
2164
|
continuation_token=cont_token,
|
2308
2165
|
client=self._client,
|
2309
2166
|
deserialization_callback=get_long_running_output,
|
2310
2167
|
)
|
2311
|
-
return LROPoller(self._client, raw_result, get_long_running_output, polling_method) # type: ignore
|
2168
|
+
return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore
|
2312
2169
|
|
2313
|
-
|
2314
|
-
"url": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/hnsonmigration"
|
2315
|
-
}
|
2316
|
-
|
2317
|
-
def _abort_hierarchical_namespace_migration_initial( # pylint: disable=inconsistent-return-statements
|
2170
|
+
def _abort_hierarchical_namespace_migration_initial( # pylint: disable=inconsistent-return-statements,name-too-long
|
2318
2171
|
self, resource_group_name: str, account_name: str, **kwargs: Any
|
2319
2172
|
) -> None:
|
2320
|
-
error_map = {
|
2173
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
2321
2174
|
401: ClientAuthenticationError,
|
2322
2175
|
404: ResourceNotFoundError,
|
2323
2176
|
409: ResourceExistsError,
|
@@ -2331,21 +2184,20 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2331
2184
|
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-01-01"))
|
2332
2185
|
cls: ClsType[None] = kwargs.pop("cls", None)
|
2333
2186
|
|
2334
|
-
|
2187
|
+
_request = build_abort_hierarchical_namespace_migration_request(
|
2335
2188
|
resource_group_name=resource_group_name,
|
2336
2189
|
account_name=account_name,
|
2337
2190
|
subscription_id=self._config.subscription_id,
|
2338
2191
|
api_version=api_version,
|
2339
|
-
template_url=self._abort_hierarchical_namespace_migration_initial.metadata["url"],
|
2340
2192
|
headers=_headers,
|
2341
2193
|
params=_params,
|
2342
2194
|
)
|
2343
|
-
|
2344
|
-
|
2195
|
+
_request = _convert_request(_request)
|
2196
|
+
_request.url = self._client.format_url(_request.url)
|
2345
2197
|
|
2346
2198
|
_stream = False
|
2347
2199
|
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
2348
|
-
|
2200
|
+
_request, stream=_stream, **kwargs
|
2349
2201
|
)
|
2350
2202
|
|
2351
2203
|
response = pipeline_response.http_response
|
@@ -2356,14 +2208,10 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2356
2208
|
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
|
2357
2209
|
|
2358
2210
|
if cls:
|
2359
|
-
return cls(pipeline_response, None, {})
|
2360
|
-
|
2361
|
-
_abort_hierarchical_namespace_migration_initial.metadata = {
|
2362
|
-
"url": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/aborthnsonmigration"
|
2363
|
-
}
|
2211
|
+
return cls(pipeline_response, None, {}) # type: ignore
|
2364
2212
|
|
2365
2213
|
@distributed_trace
|
2366
|
-
def begin_abort_hierarchical_namespace_migration(
|
2214
|
+
def begin_abort_hierarchical_namespace_migration( # pylint: disable=name-too-long
|
2367
2215
|
self, resource_group_name: str, account_name: str, **kwargs: Any
|
2368
2216
|
) -> LROPoller[None]:
|
2369
2217
|
"""Abort live Migration of storage account to enable Hns.
|
@@ -2375,14 +2223,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2375
2223
|
Storage account names must be between 3 and 24 characters in length and use numbers and
|
2376
2224
|
lower-case letters only. Required.
|
2377
2225
|
:type account_name: str
|
2378
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
2379
|
-
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
|
2380
|
-
:keyword polling: By default, your polling method will be ARMPolling. Pass in False for this
|
2381
|
-
operation to not poll, or pass in your own initialized polling object for a personal polling
|
2382
|
-
strategy.
|
2383
|
-
:paramtype polling: bool or ~azure.core.polling.PollingMethod
|
2384
|
-
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
|
2385
|
-
Retry-After header is present.
|
2386
2226
|
:return: An instance of LROPoller that returns either None or the result of cls(response)
|
2387
2227
|
:rtype: ~azure.core.polling.LROPoller[None]
|
2388
2228
|
:raises ~azure.core.exceptions.HttpResponseError:
|
@@ -2409,7 +2249,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2409
2249
|
|
2410
2250
|
def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements
|
2411
2251
|
if cls:
|
2412
|
-
return cls(pipeline_response, None, {})
|
2252
|
+
return cls(pipeline_response, None, {}) # type: ignore
|
2413
2253
|
|
2414
2254
|
if polling is True:
|
2415
2255
|
polling_method: PollingMethod = cast(
|
@@ -2420,26 +2260,22 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2420
2260
|
else:
|
2421
2261
|
polling_method = polling
|
2422
2262
|
if cont_token:
|
2423
|
-
return LROPoller.from_continuation_token(
|
2263
|
+
return LROPoller[None].from_continuation_token(
|
2424
2264
|
polling_method=polling_method,
|
2425
2265
|
continuation_token=cont_token,
|
2426
2266
|
client=self._client,
|
2427
2267
|
deserialization_callback=get_long_running_output,
|
2428
2268
|
)
|
2429
|
-
return LROPoller(self._client, raw_result, get_long_running_output, polling_method) # type: ignore
|
2430
|
-
|
2431
|
-
begin_abort_hierarchical_namespace_migration.metadata = {
|
2432
|
-
"url": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/aborthnsonmigration"
|
2433
|
-
}
|
2269
|
+
return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore
|
2434
2270
|
|
2435
2271
|
def _customer_initiated_migration_initial( # pylint: disable=inconsistent-return-statements
|
2436
2272
|
self,
|
2437
2273
|
resource_group_name: str,
|
2438
2274
|
account_name: str,
|
2439
|
-
parameters: Union[_models.StorageAccountMigration, IO],
|
2275
|
+
parameters: Union[_models.StorageAccountMigration, IO[bytes]],
|
2440
2276
|
**kwargs: Any
|
2441
2277
|
) -> None:
|
2442
|
-
error_map = {
|
2278
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
2443
2279
|
401: ClientAuthenticationError,
|
2444
2280
|
404: ResourceNotFoundError,
|
2445
2281
|
409: ResourceExistsError,
|
@@ -2462,7 +2298,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2462
2298
|
else:
|
2463
2299
|
_json = self._serialize.body(parameters, "StorageAccountMigration")
|
2464
2300
|
|
2465
|
-
|
2301
|
+
_request = build_customer_initiated_migration_request(
|
2466
2302
|
resource_group_name=resource_group_name,
|
2467
2303
|
account_name=account_name,
|
2468
2304
|
subscription_id=self._config.subscription_id,
|
@@ -2470,16 +2306,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2470
2306
|
content_type=content_type,
|
2471
2307
|
json=_json,
|
2472
2308
|
content=_content,
|
2473
|
-
template_url=self._customer_initiated_migration_initial.metadata["url"],
|
2474
2309
|
headers=_headers,
|
2475
2310
|
params=_params,
|
2476
2311
|
)
|
2477
|
-
|
2478
|
-
|
2312
|
+
_request = _convert_request(_request)
|
2313
|
+
_request.url = self._client.format_url(_request.url)
|
2479
2314
|
|
2480
2315
|
_stream = False
|
2481
2316
|
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
2482
|
-
|
2317
|
+
_request, stream=_stream, **kwargs
|
2483
2318
|
)
|
2484
2319
|
|
2485
2320
|
response = pipeline_response.http_response
|
@@ -2494,11 +2329,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2494
2329
|
response_headers["Location"] = self._deserialize("str", response.headers.get("Location"))
|
2495
2330
|
|
2496
2331
|
if cls:
|
2497
|
-
return cls(pipeline_response, None, response_headers)
|
2498
|
-
|
2499
|
-
_customer_initiated_migration_initial.metadata = {
|
2500
|
-
"url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/startAccountMigration"
|
2501
|
-
}
|
2332
|
+
return cls(pipeline_response, None, response_headers) # type: ignore
|
2502
2333
|
|
2503
2334
|
@overload
|
2504
2335
|
def begin_customer_initiated_migration(
|
@@ -2529,14 +2360,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2529
2360
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
2530
2361
|
Default value is "application/json".
|
2531
2362
|
:paramtype content_type: str
|
2532
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
2533
|
-
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
|
2534
|
-
:keyword polling: By default, your polling method will be ARMPolling. Pass in False for this
|
2535
|
-
operation to not poll, or pass in your own initialized polling object for a personal polling
|
2536
|
-
strategy.
|
2537
|
-
:paramtype polling: bool or ~azure.core.polling.PollingMethod
|
2538
|
-
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
|
2539
|
-
Retry-After header is present.
|
2540
2363
|
:return: An instance of LROPoller that returns either None or the result of cls(response)
|
2541
2364
|
:rtype: ~azure.core.polling.LROPoller[None]
|
2542
2365
|
:raises ~azure.core.exceptions.HttpResponseError:
|
@@ -2547,7 +2370,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2547
2370
|
self,
|
2548
2371
|
resource_group_name: str,
|
2549
2372
|
account_name: str,
|
2550
|
-
parameters: IO,
|
2373
|
+
parameters: IO[bytes],
|
2551
2374
|
*,
|
2552
2375
|
content_type: str = "application/json",
|
2553
2376
|
**kwargs: Any
|
@@ -2567,18 +2390,10 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2567
2390
|
:type account_name: str
|
2568
2391
|
:param parameters: The request parameters required to perform storage account migration.
|
2569
2392
|
Required.
|
2570
|
-
:type parameters: IO
|
2393
|
+
:type parameters: IO[bytes]
|
2571
2394
|
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
2572
2395
|
Default value is "application/json".
|
2573
2396
|
:paramtype content_type: str
|
2574
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
2575
|
-
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
|
2576
|
-
:keyword polling: By default, your polling method will be ARMPolling. Pass in False for this
|
2577
|
-
operation to not poll, or pass in your own initialized polling object for a personal polling
|
2578
|
-
strategy.
|
2579
|
-
:paramtype polling: bool or ~azure.core.polling.PollingMethod
|
2580
|
-
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
|
2581
|
-
Retry-After header is present.
|
2582
2397
|
:return: An instance of LROPoller that returns either None or the result of cls(response)
|
2583
2398
|
:rtype: ~azure.core.polling.LROPoller[None]
|
2584
2399
|
:raises ~azure.core.exceptions.HttpResponseError:
|
@@ -2589,7 +2404,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2589
2404
|
self,
|
2590
2405
|
resource_group_name: str,
|
2591
2406
|
account_name: str,
|
2592
|
-
parameters: Union[_models.StorageAccountMigration, IO],
|
2407
|
+
parameters: Union[_models.StorageAccountMigration, IO[bytes]],
|
2593
2408
|
**kwargs: Any
|
2594
2409
|
) -> LROPoller[None]:
|
2595
2410
|
"""Account Migration request can be triggered for a storage account to change its redundancy
|
@@ -2606,19 +2421,8 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2606
2421
|
lower-case letters only. Required.
|
2607
2422
|
:type account_name: str
|
2608
2423
|
:param parameters: The request parameters required to perform storage account migration. Is
|
2609
|
-
either a StorageAccountMigration type or a IO type. Required.
|
2610
|
-
:type parameters: ~azure.mgmt.storage.v2023_01_01.models.StorageAccountMigration or IO
|
2611
|
-
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
|
2612
|
-
Default value is None.
|
2613
|
-
:paramtype content_type: str
|
2614
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
2615
|
-
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
|
2616
|
-
:keyword polling: By default, your polling method will be ARMPolling. Pass in False for this
|
2617
|
-
operation to not poll, or pass in your own initialized polling object for a personal polling
|
2618
|
-
strategy.
|
2619
|
-
:paramtype polling: bool or ~azure.core.polling.PollingMethod
|
2620
|
-
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
|
2621
|
-
Retry-After header is present.
|
2424
|
+
either a StorageAccountMigration type or a IO[bytes] type. Required.
|
2425
|
+
:type parameters: ~azure.mgmt.storage.v2023_01_01.models.StorageAccountMigration or IO[bytes]
|
2622
2426
|
:return: An instance of LROPoller that returns either None or the result of cls(response)
|
2623
2427
|
:rtype: ~azure.core.polling.LROPoller[None]
|
2624
2428
|
:raises ~azure.core.exceptions.HttpResponseError:
|
@@ -2648,7 +2452,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2648
2452
|
|
2649
2453
|
def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements
|
2650
2454
|
if cls:
|
2651
|
-
return cls(pipeline_response, None, {})
|
2455
|
+
return cls(pipeline_response, None, {}) # type: ignore
|
2652
2456
|
|
2653
2457
|
if polling is True:
|
2654
2458
|
polling_method: PollingMethod = cast(
|
@@ -2659,17 +2463,13 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2659
2463
|
else:
|
2660
2464
|
polling_method = polling
|
2661
2465
|
if cont_token:
|
2662
|
-
return LROPoller.from_continuation_token(
|
2466
|
+
return LROPoller[None].from_continuation_token(
|
2663
2467
|
polling_method=polling_method,
|
2664
2468
|
continuation_token=cont_token,
|
2665
2469
|
client=self._client,
|
2666
2470
|
deserialization_callback=get_long_running_output,
|
2667
2471
|
)
|
2668
|
-
return LROPoller(self._client, raw_result, get_long_running_output, polling_method) # type: ignore
|
2669
|
-
|
2670
|
-
begin_customer_initiated_migration.metadata = {
|
2671
|
-
"url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/startAccountMigration"
|
2672
|
-
}
|
2472
|
+
return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore
|
2673
2473
|
|
2674
2474
|
@distributed_trace
|
2675
2475
|
def get_customer_initiated_migration(
|
@@ -2691,12 +2491,11 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2691
2491
|
:param migration_name: The name of the Storage Account Migration. It should always be
|
2692
2492
|
'default'. "default" Required.
|
2693
2493
|
:type migration_name: str or ~azure.mgmt.storage.v2023_01_01.models.MigrationName
|
2694
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
2695
2494
|
:return: StorageAccountMigration or the result of cls(response)
|
2696
2495
|
:rtype: ~azure.mgmt.storage.v2023_01_01.models.StorageAccountMigration
|
2697
2496
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2698
2497
|
"""
|
2699
|
-
error_map = {
|
2498
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
2700
2499
|
401: ClientAuthenticationError,
|
2701
2500
|
404: ResourceNotFoundError,
|
2702
2501
|
409: ResourceExistsError,
|
@@ -2710,22 +2509,21 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2710
2509
|
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-01-01"))
|
2711
2510
|
cls: ClsType[_models.StorageAccountMigration] = kwargs.pop("cls", None)
|
2712
2511
|
|
2713
|
-
|
2512
|
+
_request = build_get_customer_initiated_migration_request(
|
2714
2513
|
resource_group_name=resource_group_name,
|
2715
2514
|
account_name=account_name,
|
2716
2515
|
migration_name=migration_name,
|
2717
2516
|
subscription_id=self._config.subscription_id,
|
2718
2517
|
api_version=api_version,
|
2719
|
-
template_url=self.get_customer_initiated_migration.metadata["url"],
|
2720
2518
|
headers=_headers,
|
2721
2519
|
params=_params,
|
2722
2520
|
)
|
2723
|
-
|
2724
|
-
|
2521
|
+
_request = _convert_request(_request)
|
2522
|
+
_request.url = self._client.format_url(_request.url)
|
2725
2523
|
|
2726
2524
|
_stream = False
|
2727
2525
|
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
2728
|
-
|
2526
|
+
_request, stream=_stream, **kwargs
|
2729
2527
|
)
|
2730
2528
|
|
2731
2529
|
response = pipeline_response.http_response
|
@@ -2738,22 +2536,18 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2738
2536
|
deserialized = self._deserialize("StorageAccountMigration", pipeline_response)
|
2739
2537
|
|
2740
2538
|
if cls:
|
2741
|
-
return cls(pipeline_response, deserialized, {})
|
2742
|
-
|
2743
|
-
return deserialized
|
2539
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
2744
2540
|
|
2745
|
-
|
2746
|
-
"url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/accountMigrations/{migrationName}"
|
2747
|
-
}
|
2541
|
+
return deserialized # type: ignore
|
2748
2542
|
|
2749
2543
|
def _restore_blob_ranges_initial(
|
2750
2544
|
self,
|
2751
2545
|
resource_group_name: str,
|
2752
2546
|
account_name: str,
|
2753
|
-
parameters: Union[_models.BlobRestoreParameters, IO],
|
2547
|
+
parameters: Union[_models.BlobRestoreParameters, IO[bytes]],
|
2754
2548
|
**kwargs: Any
|
2755
2549
|
) -> _models.BlobRestoreStatus:
|
2756
|
-
error_map = {
|
2550
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
2757
2551
|
401: ClientAuthenticationError,
|
2758
2552
|
404: ResourceNotFoundError,
|
2759
2553
|
409: ResourceExistsError,
|
@@ -2776,7 +2570,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2776
2570
|
else:
|
2777
2571
|
_json = self._serialize.body(parameters, "BlobRestoreParameters")
|
2778
2572
|
|
2779
|
-
|
2573
|
+
_request = build_restore_blob_ranges_request(
|
2780
2574
|
resource_group_name=resource_group_name,
|
2781
2575
|
account_name=account_name,
|
2782
2576
|
subscription_id=self._config.subscription_id,
|
@@ -2784,16 +2578,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2784
2578
|
content_type=content_type,
|
2785
2579
|
json=_json,
|
2786
2580
|
content=_content,
|
2787
|
-
template_url=self._restore_blob_ranges_initial.metadata["url"],
|
2788
2581
|
headers=_headers,
|
2789
2582
|
params=_params,
|
2790
2583
|
)
|
2791
|
-
|
2792
|
-
|
2584
|
+
_request = _convert_request(_request)
|
2585
|
+
_request.url = self._client.format_url(_request.url)
|
2793
2586
|
|
2794
2587
|
_stream = False
|
2795
2588
|
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
2796
|
-
|
2589
|
+
_request, stream=_stream, **kwargs
|
2797
2590
|
)
|
2798
2591
|
|
2799
2592
|
response = pipeline_response.http_response
|
@@ -2813,10 +2606,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2813
2606
|
|
2814
2607
|
return deserialized # type: ignore
|
2815
2608
|
|
2816
|
-
_restore_blob_ranges_initial.metadata = {
|
2817
|
-
"url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/restoreBlobRanges"
|
2818
|
-
}
|
2819
|
-
|
2820
2609
|
@overload
|
2821
2610
|
def begin_restore_blob_ranges(
|
2822
2611
|
self,
|
@@ -2841,14 +2630,6 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2841
2630
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
2842
2631
|
Default value is "application/json".
|
2843
2632
|
:paramtype content_type: str
|
2844
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
2845
|
-
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
|
2846
|
-
:keyword polling: By default, your polling method will be ARMPolling. Pass in False for this
|
2847
|
-
operation to not poll, or pass in your own initialized polling object for a personal polling
|
2848
|
-
strategy.
|
2849
|
-
:paramtype polling: bool or ~azure.core.polling.PollingMethod
|
2850
|
-
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
|
2851
|
-
Retry-After header is present.
|
2852
2633
|
:return: An instance of LROPoller that returns either BlobRestoreStatus or the result of
|
2853
2634
|
cls(response)
|
2854
2635
|
:rtype: ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2023_01_01.models.BlobRestoreStatus]
|
@@ -2860,7 +2641,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2860
2641
|
self,
|
2861
2642
|
resource_group_name: str,
|
2862
2643
|
account_name: str,
|
2863
|
-
parameters: IO,
|
2644
|
+
parameters: IO[bytes],
|
2864
2645
|
*,
|
2865
2646
|
content_type: str = "application/json",
|
2866
2647
|
**kwargs: Any
|
@@ -2875,18 +2656,10 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2875
2656
|
lower-case letters only. Required.
|
2876
2657
|
:type account_name: str
|
2877
2658
|
:param parameters: The parameters to provide for restore blob ranges. Required.
|
2878
|
-
:type parameters: IO
|
2659
|
+
:type parameters: IO[bytes]
|
2879
2660
|
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
|
2880
2661
|
Default value is "application/json".
|
2881
2662
|
:paramtype content_type: str
|
2882
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
2883
|
-
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
|
2884
|
-
:keyword polling: By default, your polling method will be ARMPolling. Pass in False for this
|
2885
|
-
operation to not poll, or pass in your own initialized polling object for a personal polling
|
2886
|
-
strategy.
|
2887
|
-
:paramtype polling: bool or ~azure.core.polling.PollingMethod
|
2888
|
-
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
|
2889
|
-
Retry-After header is present.
|
2890
2663
|
:return: An instance of LROPoller that returns either BlobRestoreStatus or the result of
|
2891
2664
|
cls(response)
|
2892
2665
|
:rtype: ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2023_01_01.models.BlobRestoreStatus]
|
@@ -2898,7 +2671,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2898
2671
|
self,
|
2899
2672
|
resource_group_name: str,
|
2900
2673
|
account_name: str,
|
2901
|
-
parameters: Union[_models.BlobRestoreParameters, IO],
|
2674
|
+
parameters: Union[_models.BlobRestoreParameters, IO[bytes]],
|
2902
2675
|
**kwargs: Any
|
2903
2676
|
) -> LROPoller[_models.BlobRestoreStatus]:
|
2904
2677
|
"""Restore blobs in the specified blob ranges.
|
@@ -2911,19 +2684,8 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2911
2684
|
lower-case letters only. Required.
|
2912
2685
|
:type account_name: str
|
2913
2686
|
:param parameters: The parameters to provide for restore blob ranges. Is either a
|
2914
|
-
BlobRestoreParameters type or a IO type. Required.
|
2915
|
-
:type parameters: ~azure.mgmt.storage.v2023_01_01.models.BlobRestoreParameters or IO
|
2916
|
-
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
|
2917
|
-
Default value is None.
|
2918
|
-
:paramtype content_type: str
|
2919
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
2920
|
-
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
|
2921
|
-
:keyword polling: By default, your polling method will be ARMPolling. Pass in False for this
|
2922
|
-
operation to not poll, or pass in your own initialized polling object for a personal polling
|
2923
|
-
strategy.
|
2924
|
-
:paramtype polling: bool or ~azure.core.polling.PollingMethod
|
2925
|
-
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
|
2926
|
-
Retry-After header is present.
|
2687
|
+
BlobRestoreParameters type or a IO[bytes] type. Required.
|
2688
|
+
:type parameters: ~azure.mgmt.storage.v2023_01_01.models.BlobRestoreParameters or IO[bytes]
|
2927
2689
|
:return: An instance of LROPoller that returns either BlobRestoreStatus or the result of
|
2928
2690
|
cls(response)
|
2929
2691
|
:rtype: ~azure.core.polling.LROPoller[~azure.mgmt.storage.v2023_01_01.models.BlobRestoreStatus]
|
@@ -2955,7 +2717,7 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2955
2717
|
def get_long_running_output(pipeline_response):
|
2956
2718
|
deserialized = self._deserialize("BlobRestoreStatus", pipeline_response)
|
2957
2719
|
if cls:
|
2958
|
-
return cls(pipeline_response, deserialized, {})
|
2720
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
2959
2721
|
return deserialized
|
2960
2722
|
|
2961
2723
|
if polling is True:
|
@@ -2967,17 +2729,15 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2967
2729
|
else:
|
2968
2730
|
polling_method = polling
|
2969
2731
|
if cont_token:
|
2970
|
-
return LROPoller.from_continuation_token(
|
2732
|
+
return LROPoller[_models.BlobRestoreStatus].from_continuation_token(
|
2971
2733
|
polling_method=polling_method,
|
2972
2734
|
continuation_token=cont_token,
|
2973
2735
|
client=self._client,
|
2974
2736
|
deserialization_callback=get_long_running_output,
|
2975
2737
|
)
|
2976
|
-
return LROPoller(
|
2977
|
-
|
2978
|
-
|
2979
|
-
"url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/restoreBlobRanges"
|
2980
|
-
}
|
2738
|
+
return LROPoller[_models.BlobRestoreStatus](
|
2739
|
+
self._client, raw_result, get_long_running_output, polling_method # type: ignore
|
2740
|
+
)
|
2981
2741
|
|
2982
2742
|
@distributed_trace
|
2983
2743
|
def revoke_user_delegation_keys( # pylint: disable=inconsistent-return-statements
|
@@ -2992,12 +2752,11 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
2992
2752
|
Storage account names must be between 3 and 24 characters in length and use numbers and
|
2993
2753
|
lower-case letters only. Required.
|
2994
2754
|
:type account_name: str
|
2995
|
-
:keyword callable cls: A custom type or function that will be passed the direct response
|
2996
2755
|
:return: None or the result of cls(response)
|
2997
2756
|
:rtype: None
|
2998
2757
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2999
2758
|
"""
|
3000
|
-
error_map = {
|
2759
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
3001
2760
|
401: ClientAuthenticationError,
|
3002
2761
|
404: ResourceNotFoundError,
|
3003
2762
|
409: ResourceExistsError,
|
@@ -3011,21 +2770,20 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
3011
2770
|
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2023-01-01"))
|
3012
2771
|
cls: ClsType[None] = kwargs.pop("cls", None)
|
3013
2772
|
|
3014
|
-
|
2773
|
+
_request = build_revoke_user_delegation_keys_request(
|
3015
2774
|
resource_group_name=resource_group_name,
|
3016
2775
|
account_name=account_name,
|
3017
2776
|
subscription_id=self._config.subscription_id,
|
3018
2777
|
api_version=api_version,
|
3019
|
-
template_url=self.revoke_user_delegation_keys.metadata["url"],
|
3020
2778
|
headers=_headers,
|
3021
2779
|
params=_params,
|
3022
2780
|
)
|
3023
|
-
|
3024
|
-
|
2781
|
+
_request = _convert_request(_request)
|
2782
|
+
_request.url = self._client.format_url(_request.url)
|
3025
2783
|
|
3026
2784
|
_stream = False
|
3027
2785
|
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
3028
|
-
|
2786
|
+
_request, stream=_stream, **kwargs
|
3029
2787
|
)
|
3030
2788
|
|
3031
2789
|
response = pipeline_response.http_response
|
@@ -3035,8 +2793,4 @@ class StorageAccountsOperations: # pylint: disable=too-many-public-methods
|
|
3035
2793
|
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
|
3036
2794
|
|
3037
2795
|
if cls:
|
3038
|
-
return cls(pipeline_response, None, {})
|
3039
|
-
|
3040
|
-
revoke_user_delegation_keys.metadata = {
|
3041
|
-
"url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/revokeUserDelegationKeys"
|
3042
|
-
}
|
2796
|
+
return cls(pipeline_response, None, {}) # type: ignore
|