azure_mgmt_storage 0.17.8 → 0.17.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/2015-05-01-preview/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2016-01-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2016-12-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2017-06-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2017-10-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_storage.rb +25 -23
- data/lib/2018-02-01/generated/azure_mgmt_storage/blob_containers.rb +142 -0
- data/lib/2018-02-01/generated/azure_mgmt_storage/models/lease_container_request.rb +97 -0
- data/lib/2018-02-01/generated/azure_mgmt_storage/models/lease_container_response.rb +60 -0
- data/lib/2018-02-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage.rb +24 -22
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/blob_containers.rb +142 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/lease_container_request.rb +97 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/lease_container_response.rb +60 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2018-07-01/generated/azure_mgmt_storage.rb +27 -25
- data/lib/2018-07-01/generated/azure_mgmt_storage/blob_containers.rb +142 -0
- data/lib/2018-07-01/generated/azure_mgmt_storage/models/lease_container_request.rb +97 -0
- data/lib/2018-07-01/generated/azure_mgmt_storage/models/lease_container_response.rb +60 -0
- data/lib/2018-07-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2018-11-01/generated/azure_mgmt_storage.rb +31 -29
- data/lib/2018-11-01/generated/azure_mgmt_storage/blob_containers.rb +153 -1
- data/lib/2018-11-01/generated/azure_mgmt_storage/models/lease_container_request.rb +97 -0
- data/lib/2018-11-01/generated/azure_mgmt_storage/models/lease_container_response.rb +60 -0
- data/lib/2018-11-01/generated/azure_mgmt_storage/storage_accounts.rb +97 -0
- data/lib/2018-11-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2019-04-01/generated/azure_mgmt_storage.rb +128 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/blob_containers.rb +1873 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/blob_services.rb +266 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/management_policies.rb +355 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/access_tier.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/account_sas_parameters.rb +136 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/account_status.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/action.rb +15 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/azure_entity_resource.rb +75 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/blob_container.rb +217 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/blob_service_properties.rb +115 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/bypass.rb +18 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/check_name_availability_result.rb +77 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/cors_rule.rb +128 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/cors_rules.rb +57 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/custom_domain.rb +60 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/date_after_creation.rb +50 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/date_after_modification.rb +50 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/default_action.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/delete_retention_policy.rb +64 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/dimension.rb +57 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/encryption.rb +74 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/encryption_service.rb +62 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/encryption_services.rb +89 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/endpoints.rb +108 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/geo_replication_stats.rb +85 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/geo_replication_status.rb +17 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/http_protocol.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/identity.rb +72 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/immutability_policy.rb +98 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/immutability_policy_properties.rb +95 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/immutability_policy_state.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/immutability_policy_update_type.rb +17 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/iprule.rb +61 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/key_permission.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/key_source.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/key_vault_properties.rb +68 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/kind.rb +19 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/lease_container_request.rb +97 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/lease_container_response.rb +60 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/lease_duration.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/lease_state.rb +19 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/lease_status.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/legal_hold.rb +71 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/legal_hold_properties.rb +72 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/list_account_sas_response.rb +47 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/list_container_item.rb +216 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/list_container_items.rb +55 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/list_service_sas_response.rb +47 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/management_policy.rb +89 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/management_policy_action.rb +62 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/management_policy_base_blob.rb +73 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/management_policy_definition.rb +60 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/management_policy_filter.rb +76 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/management_policy_rule.rb +87 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/management_policy_schema.rb +58 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/management_policy_snap_shot.rb +47 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/metric_specification.rb +145 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/network_rule_set.rb +106 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/operation.rb +83 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/operation_display.rb +79 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/operation_list_result.rb +57 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/permissions.rb +22 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/provisioning_state.rb +17 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/proxy_resource.rb +63 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/public_access.rb +17 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/reason.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/reason_code.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/resource.rb +83 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/restriction.rb +85 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/service_sas_parameters.rb +247 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/service_specification.rb +56 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/services.rb +18 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/signed_resource.rb +18 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/signed_resource_types.rb +17 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/sku.rb +157 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/sku_name.rb +22 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/sku_tier.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/skucapability.rb +63 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/state.rb +19 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/storage_account.rb +374 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb +63 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb +202 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/storage_account_expand.rb +15 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/storage_account_key.rb +73 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/storage_account_list_keys_result.rb +57 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/storage_account_list_result.rb +57 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb +47 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb +178 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/storage_sku_list_result.rb +57 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/tag_property.rb +97 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/tracked_resource.rb +92 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/update_history_property.rb +114 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/usage.rb +89 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/usage_list_result.rb +56 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/usage_name.rb +59 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/usage_unit.rb +20 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/virtual_network_rule.rb +75 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/module_definition.rb +9 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/operations.rb +108 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/skus.rb +114 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/storage_accounts.rb +1602 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/storage_management_client.rb +155 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/usages.rb +118 -0
- data/lib/azure_mgmt_storage.rb +1 -0
- data/lib/profiles/latest/modules/storage_profile_module.rb +232 -224
- data/lib/version.rb +1 -1
- metadata +115 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 04f79c38dbcae7f693ca5a10d1b64eac436f4664
|
4
|
+
data.tar.gz: 0fb11703f67d86e716f13bad3ee73094bdcb8b2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7a69bed62087ad83222da79fea695bdc9ed0b47d6757cb901dc9b810ddb2adb199300a2b5d2f881ca8361483db40428a7744cbcc46b257bbc659838157dd2d0
|
7
|
+
data.tar.gz: 25f1cfe43b9a4dbf12cd7686072587398ceb89945f8254730d5ffe5b291d92f4b9a49f83ed46c2108d24ff0452b7145e8befe44cca0c91971ff4930454a6cc40
|
@@ -130,7 +130,7 @@ module Azure::Storage::Mgmt::V2015_05_01_preview
|
|
130
130
|
#
|
131
131
|
def add_telemetry
|
132
132
|
sdk_information = 'azure_mgmt_storage'
|
133
|
-
sdk_information = "#{sdk_information}/0.17.
|
133
|
+
sdk_information = "#{sdk_information}/0.17.9"
|
134
134
|
add_user_agent_information(sdk_information)
|
135
135
|
end
|
136
136
|
end
|
@@ -130,7 +130,7 @@ module Azure::Storage::Mgmt::V2015_06_15
|
|
130
130
|
#
|
131
131
|
def add_telemetry
|
132
132
|
sdk_information = 'azure_mgmt_storage'
|
133
|
-
sdk_information = "#{sdk_information}/0.17.
|
133
|
+
sdk_information = "#{sdk_information}/0.17.9"
|
134
134
|
add_user_agent_information(sdk_information)
|
135
135
|
end
|
136
136
|
end
|
@@ -130,7 +130,7 @@ module Azure::Storage::Mgmt::V2016_01_01
|
|
130
130
|
#
|
131
131
|
def add_telemetry
|
132
132
|
sdk_information = 'azure_mgmt_storage'
|
133
|
-
sdk_information = "#{sdk_information}/0.17.
|
133
|
+
sdk_information = "#{sdk_information}/0.17.9"
|
134
134
|
add_user_agent_information(sdk_information)
|
135
135
|
end
|
136
136
|
end
|
@@ -130,7 +130,7 @@ module Azure::Storage::Mgmt::V2016_12_01
|
|
130
130
|
#
|
131
131
|
def add_telemetry
|
132
132
|
sdk_information = 'azure_mgmt_storage'
|
133
|
-
sdk_information = "#{sdk_information}/0.17.
|
133
|
+
sdk_information = "#{sdk_information}/0.17.9"
|
134
134
|
add_user_agent_information(sdk_information)
|
135
135
|
end
|
136
136
|
end
|
@@ -138,7 +138,7 @@ module Azure::Storage::Mgmt::V2017_06_01
|
|
138
138
|
#
|
139
139
|
def add_telemetry
|
140
140
|
sdk_information = 'azure_mgmt_storage'
|
141
|
-
sdk_information = "#{sdk_information}/0.17.
|
141
|
+
sdk_information = "#{sdk_information}/0.17.9"
|
142
142
|
add_user_agent_information(sdk_information)
|
143
143
|
end
|
144
144
|
end
|
@@ -138,7 +138,7 @@ module Azure::Storage::Mgmt::V2017_10_01
|
|
138
138
|
#
|
139
139
|
def add_telemetry
|
140
140
|
sdk_information = 'azure_mgmt_storage'
|
141
|
-
sdk_information = "#{sdk_information}/0.17.
|
141
|
+
sdk_information = "#{sdk_information}/0.17.9"
|
142
142
|
add_user_agent_information(sdk_information)
|
143
143
|
end
|
144
144
|
end
|
@@ -28,48 +28,50 @@ module Azure::Storage::Mgmt::V2018_02_01
|
|
28
28
|
autoload :StorageManagementClient, '2018-02-01/generated/azure_mgmt_storage/storage_management_client.rb'
|
29
29
|
|
30
30
|
module Models
|
31
|
-
autoload :StorageAccountKey, '2018-02-01/generated/azure_mgmt_storage/models/storage_account_key.rb'
|
32
31
|
autoload :StorageAccountListResult, '2018-02-01/generated/azure_mgmt_storage/models/storage_account_list_result.rb'
|
33
|
-
autoload :Dimension, '2018-02-01/generated/azure_mgmt_storage/models/dimension.rb'
|
34
32
|
autoload :StorageAccountListKeysResult, '2018-02-01/generated/azure_mgmt_storage/models/storage_account_list_keys_result.rb'
|
35
|
-
autoload :
|
33
|
+
autoload :Dimension, '2018-02-01/generated/azure_mgmt_storage/models/dimension.rb'
|
36
34
|
autoload :StorageAccountRegenerateKeyParameters, '2018-02-01/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb'
|
37
|
-
autoload :
|
35
|
+
autoload :ServiceSpecification, '2018-02-01/generated/azure_mgmt_storage/models/service_specification.rb'
|
38
36
|
autoload :StorageAccountUpdateParameters, '2018-02-01/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb'
|
39
|
-
autoload :
|
37
|
+
autoload :OperationListResult, '2018-02-01/generated/azure_mgmt_storage/models/operation_list_result.rb'
|
40
38
|
autoload :UsageName, '2018-02-01/generated/azure_mgmt_storage/models/usage_name.rb'
|
41
|
-
autoload :
|
39
|
+
autoload :SKUCapability, '2018-02-01/generated/azure_mgmt_storage/models/skucapability.rb'
|
42
40
|
autoload :Usage, '2018-02-01/generated/azure_mgmt_storage/models/usage.rb'
|
43
|
-
autoload :
|
41
|
+
autoload :Sku, '2018-02-01/generated/azure_mgmt_storage/models/sku.rb'
|
44
42
|
autoload :UsageListResult, '2018-02-01/generated/azure_mgmt_storage/models/usage_list_result.rb'
|
45
|
-
autoload :
|
43
|
+
autoload :CheckNameAvailabilityResult, '2018-02-01/generated/azure_mgmt_storage/models/check_name_availability_result.rb'
|
46
44
|
autoload :AccountSasParameters, '2018-02-01/generated/azure_mgmt_storage/models/account_sas_parameters.rb'
|
47
|
-
autoload :
|
45
|
+
autoload :EncryptionService, '2018-02-01/generated/azure_mgmt_storage/models/encryption_service.rb'
|
48
46
|
autoload :ListAccountSasResponse, '2018-02-01/generated/azure_mgmt_storage/models/list_account_sas_response.rb'
|
49
|
-
autoload :
|
47
|
+
autoload :KeyVaultProperties, '2018-02-01/generated/azure_mgmt_storage/models/key_vault_properties.rb'
|
50
48
|
autoload :ServiceSasParameters, '2018-02-01/generated/azure_mgmt_storage/models/service_sas_parameters.rb'
|
51
|
-
autoload :
|
49
|
+
autoload :VirtualNetworkRule, '2018-02-01/generated/azure_mgmt_storage/models/virtual_network_rule.rb'
|
52
50
|
autoload :ListServiceSasResponse, '2018-02-01/generated/azure_mgmt_storage/models/list_service_sas_response.rb'
|
51
|
+
autoload :NetworkRuleSet, '2018-02-01/generated/azure_mgmt_storage/models/network_rule_set.rb'
|
52
|
+
autoload :Encryption, '2018-02-01/generated/azure_mgmt_storage/models/encryption.rb'
|
53
53
|
autoload :StorageAccountCreateParameters, '2018-02-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb'
|
54
54
|
autoload :IPRule, '2018-02-01/generated/azure_mgmt_storage/models/iprule.rb'
|
55
|
-
autoload :
|
56
|
-
autoload :
|
55
|
+
autoload :LegalHold, '2018-02-01/generated/azure_mgmt_storage/models/legal_hold.rb'
|
56
|
+
autoload :StorageAccountKey, '2018-02-01/generated/azure_mgmt_storage/models/storage_account_key.rb'
|
57
57
|
autoload :Identity, '2018-02-01/generated/azure_mgmt_storage/models/identity.rb'
|
58
|
-
autoload :
|
59
|
-
autoload :Endpoints, '2018-02-01/generated/azure_mgmt_storage/models/endpoints.rb'
|
60
|
-
autoload :Restriction, '2018-02-01/generated/azure_mgmt_storage/models/restriction.rb'
|
61
|
-
autoload :CustomDomain, '2018-02-01/generated/azure_mgmt_storage/models/custom_domain.rb'
|
62
|
-
autoload :ListContainerItems, '2018-02-01/generated/azure_mgmt_storage/models/list_container_items.rb'
|
63
|
-
autoload :Encryption, '2018-02-01/generated/azure_mgmt_storage/models/encryption.rb'
|
64
|
-
autoload :Resource, '2018-02-01/generated/azure_mgmt_storage/models/resource.rb'
|
58
|
+
autoload :MetricSpecification, '2018-02-01/generated/azure_mgmt_storage/models/metric_specification.rb'
|
65
59
|
autoload :StorageAccountCheckNameAvailabilityParameters, '2018-02-01/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb'
|
66
|
-
autoload :
|
60
|
+
autoload :LeaseContainerResponse, '2018-02-01/generated/azure_mgmt_storage/models/lease_container_response.rb'
|
61
|
+
autoload :StorageSkuListResult, '2018-02-01/generated/azure_mgmt_storage/models/storage_sku_list_result.rb'
|
62
|
+
autoload :Resource, '2018-02-01/generated/azure_mgmt_storage/models/resource.rb'
|
67
63
|
autoload :EncryptionServices, '2018-02-01/generated/azure_mgmt_storage/models/encryption_services.rb'
|
64
|
+
autoload :LeaseContainerRequest, '2018-02-01/generated/azure_mgmt_storage/models/lease_container_request.rb'
|
65
|
+
autoload :OperationDisplay, '2018-02-01/generated/azure_mgmt_storage/models/operation_display.rb'
|
68
66
|
autoload :UpdateHistoryProperty, '2018-02-01/generated/azure_mgmt_storage/models/update_history_property.rb'
|
69
|
-
autoload :
|
67
|
+
autoload :Restriction, '2018-02-01/generated/azure_mgmt_storage/models/restriction.rb'
|
70
68
|
autoload :ImmutabilityPolicyProperties, '2018-02-01/generated/azure_mgmt_storage/models/immutability_policy_properties.rb'
|
71
|
-
autoload :
|
69
|
+
autoload :Endpoints, '2018-02-01/generated/azure_mgmt_storage/models/endpoints.rb'
|
72
70
|
autoload :TagProperty, '2018-02-01/generated/azure_mgmt_storage/models/tag_property.rb'
|
71
|
+
autoload :CustomDomain, '2018-02-01/generated/azure_mgmt_storage/models/custom_domain.rb'
|
72
|
+
autoload :LegalHoldProperties, '2018-02-01/generated/azure_mgmt_storage/models/legal_hold_properties.rb'
|
73
|
+
autoload :Operation, '2018-02-01/generated/azure_mgmt_storage/models/operation.rb'
|
74
|
+
autoload :ListContainerItems, '2018-02-01/generated/azure_mgmt_storage/models/list_container_items.rb'
|
73
75
|
autoload :StorageAccount, '2018-02-01/generated/azure_mgmt_storage/models/storage_account.rb'
|
74
76
|
autoload :ProxyResource, '2018-02-01/generated/azure_mgmt_storage/models/proxy_resource.rb'
|
75
77
|
autoload :AzureEntityResource, '2018-02-01/generated/azure_mgmt_storage/models/azure_entity_resource.rb'
|
@@ -1717,5 +1717,147 @@ module Azure::Storage::Mgmt::V2018_02_01
|
|
1717
1717
|
promise.execute
|
1718
1718
|
end
|
1719
1719
|
|
1720
|
+
#
|
1721
|
+
# The Lease Container operation establishes and manages a lock on a container
|
1722
|
+
# for delete operations. The lock duration can be 15 to 60 seconds, or can be
|
1723
|
+
# infinite.
|
1724
|
+
#
|
1725
|
+
# @param resource_group_name [String] The name of the resource group within the
|
1726
|
+
# user's subscription. The name is case insensitive.
|
1727
|
+
# @param account_name [String] The name of the storage account within the
|
1728
|
+
# specified resource group. Storage account names must be between 3 and 24
|
1729
|
+
# characters in length and use numbers and lower-case letters only.
|
1730
|
+
# @param container_name [String] The name of the blob container within the
|
1731
|
+
# specified storage account. Blob container names must be between 3 and 63
|
1732
|
+
# characters in length and use numbers, lower-case letters and dash (-) only.
|
1733
|
+
# Every dash (-) character must be immediately preceded and followed by a
|
1734
|
+
# letter or number.
|
1735
|
+
# @param parameters [LeaseContainerRequest] Lease Container request body.
|
1736
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1737
|
+
# will be added to the HTTP request.
|
1738
|
+
#
|
1739
|
+
# @return [LeaseContainerResponse] operation results.
|
1740
|
+
#
|
1741
|
+
def lease(resource_group_name, account_name, container_name, parameters:nil, custom_headers:nil)
|
1742
|
+
response = lease_async(resource_group_name, account_name, container_name, parameters:parameters, custom_headers:custom_headers).value!
|
1743
|
+
response.body unless response.nil?
|
1744
|
+
end
|
1745
|
+
|
1746
|
+
#
|
1747
|
+
# The Lease Container operation establishes and manages a lock on a container
|
1748
|
+
# for delete operations. The lock duration can be 15 to 60 seconds, or can be
|
1749
|
+
# infinite.
|
1750
|
+
#
|
1751
|
+
# @param resource_group_name [String] The name of the resource group within the
|
1752
|
+
# user's subscription. The name is case insensitive.
|
1753
|
+
# @param account_name [String] The name of the storage account within the
|
1754
|
+
# specified resource group. Storage account names must be between 3 and 24
|
1755
|
+
# characters in length and use numbers and lower-case letters only.
|
1756
|
+
# @param container_name [String] The name of the blob container within the
|
1757
|
+
# specified storage account. Blob container names must be between 3 and 63
|
1758
|
+
# characters in length and use numbers, lower-case letters and dash (-) only.
|
1759
|
+
# Every dash (-) character must be immediately preceded and followed by a
|
1760
|
+
# letter or number.
|
1761
|
+
# @param parameters [LeaseContainerRequest] Lease Container request body.
|
1762
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1763
|
+
# will be added to the HTTP request.
|
1764
|
+
#
|
1765
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1766
|
+
#
|
1767
|
+
def lease_with_http_info(resource_group_name, account_name, container_name, parameters:nil, custom_headers:nil)
|
1768
|
+
lease_async(resource_group_name, account_name, container_name, parameters:parameters, custom_headers:custom_headers).value!
|
1769
|
+
end
|
1770
|
+
|
1771
|
+
#
|
1772
|
+
# The Lease Container operation establishes and manages a lock on a container
|
1773
|
+
# for delete operations. The lock duration can be 15 to 60 seconds, or can be
|
1774
|
+
# infinite.
|
1775
|
+
#
|
1776
|
+
# @param resource_group_name [String] The name of the resource group within the
|
1777
|
+
# user's subscription. The name is case insensitive.
|
1778
|
+
# @param account_name [String] The name of the storage account within the
|
1779
|
+
# specified resource group. Storage account names must be between 3 and 24
|
1780
|
+
# characters in length and use numbers and lower-case letters only.
|
1781
|
+
# @param container_name [String] The name of the blob container within the
|
1782
|
+
# specified storage account. Blob container names must be between 3 and 63
|
1783
|
+
# characters in length and use numbers, lower-case letters and dash (-) only.
|
1784
|
+
# Every dash (-) character must be immediately preceded and followed by a
|
1785
|
+
# letter or number.
|
1786
|
+
# @param parameters [LeaseContainerRequest] Lease Container request body.
|
1787
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1788
|
+
# to the HTTP request.
|
1789
|
+
#
|
1790
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1791
|
+
#
|
1792
|
+
def lease_async(resource_group_name, account_name, container_name, parameters:nil, custom_headers:nil)
|
1793
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1794
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
1795
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
1796
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
1797
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
1798
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
|
1799
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
|
1800
|
+
fail ArgumentError, 'container_name is nil' if container_name.nil?
|
1801
|
+
fail ArgumentError, "'container_name' should satisfy the constraint - 'MaxLength': '63'" if !container_name.nil? && container_name.length > 63
|
1802
|
+
fail ArgumentError, "'container_name' should satisfy the constraint - 'MinLength': '3'" if !container_name.nil? && container_name.length < 3
|
1803
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1804
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
1805
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1806
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
1807
|
+
|
1808
|
+
|
1809
|
+
request_headers = {}
|
1810
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1811
|
+
|
1812
|
+
# Set Headers
|
1813
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1814
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1815
|
+
|
1816
|
+
# Serialize Request
|
1817
|
+
request_mapper = Azure::Storage::Mgmt::V2018_02_01::Models::LeaseContainerRequest.mapper()
|
1818
|
+
request_content = @client.serialize(request_mapper, parameters)
|
1819
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
1820
|
+
|
1821
|
+
path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/lease'
|
1822
|
+
|
1823
|
+
request_url = @base_url || @client.base_url
|
1824
|
+
|
1825
|
+
options = {
|
1826
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1827
|
+
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'containerName' => container_name,'subscriptionId' => @client.subscription_id},
|
1828
|
+
query_params: {'api-version' => @client.api_version},
|
1829
|
+
body: request_content,
|
1830
|
+
headers: request_headers.merge(custom_headers || {}),
|
1831
|
+
base_url: request_url
|
1832
|
+
}
|
1833
|
+
promise = @client.make_request_async(:post, path_template, options)
|
1834
|
+
|
1835
|
+
promise = promise.then do |result|
|
1836
|
+
http_response = result.response
|
1837
|
+
status_code = http_response.status
|
1838
|
+
response_content = http_response.body
|
1839
|
+
unless status_code == 200
|
1840
|
+
error_model = JSON.load(response_content)
|
1841
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1842
|
+
end
|
1843
|
+
|
1844
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1845
|
+
# Deserialize Response
|
1846
|
+
if status_code == 200
|
1847
|
+
begin
|
1848
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1849
|
+
result_mapper = Azure::Storage::Mgmt::V2018_02_01::Models::LeaseContainerResponse.mapper()
|
1850
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1851
|
+
rescue Exception => e
|
1852
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1853
|
+
end
|
1854
|
+
end
|
1855
|
+
|
1856
|
+
result
|
1857
|
+
end
|
1858
|
+
|
1859
|
+
promise.execute
|
1860
|
+
end
|
1861
|
+
|
1720
1862
|
end
|
1721
1863
|
end
|
@@ -0,0 +1,97 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Storage::Mgmt::V2018_02_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Lease Container request schema.
|
10
|
+
#
|
11
|
+
class LeaseContainerRequest
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Enum] Specifies the lease action. Can be one of the available
|
16
|
+
# actions. Possible values include: 'Acquire', 'Renew', 'Change',
|
17
|
+
# 'Release', 'Break'
|
18
|
+
attr_accessor :action
|
19
|
+
|
20
|
+
# @return [String] Identifies the lease. Can be specified in any valid
|
21
|
+
# GUID string format.
|
22
|
+
attr_accessor :lease_id
|
23
|
+
|
24
|
+
# @return [Integer] Optional. For a break action, proposed duration the
|
25
|
+
# lease should continue before it is broken, in seconds, between 0 and
|
26
|
+
# 60.
|
27
|
+
attr_accessor :break_period
|
28
|
+
|
29
|
+
# @return [Integer] Required for acquire. Specifies the duration of the
|
30
|
+
# lease, in seconds, or negative one (-1) for a lease that never expires.
|
31
|
+
attr_accessor :lease_duration
|
32
|
+
|
33
|
+
# @return [String] Optional for acquire, required for change. Proposed
|
34
|
+
# lease ID, in a GUID string format.
|
35
|
+
attr_accessor :proposed_lease_id
|
36
|
+
|
37
|
+
|
38
|
+
#
|
39
|
+
# Mapper for LeaseContainerRequest class as Ruby Hash.
|
40
|
+
# This will be used for serialization/deserialization.
|
41
|
+
#
|
42
|
+
def self.mapper()
|
43
|
+
{
|
44
|
+
client_side_validation: true,
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'LeaseContainerRequest',
|
47
|
+
type: {
|
48
|
+
name: 'Composite',
|
49
|
+
class_name: 'LeaseContainerRequest',
|
50
|
+
model_properties: {
|
51
|
+
action: {
|
52
|
+
client_side_validation: true,
|
53
|
+
required: true,
|
54
|
+
serialized_name: 'action',
|
55
|
+
type: {
|
56
|
+
name: 'String'
|
57
|
+
}
|
58
|
+
},
|
59
|
+
lease_id: {
|
60
|
+
client_side_validation: true,
|
61
|
+
required: false,
|
62
|
+
serialized_name: 'leaseId',
|
63
|
+
type: {
|
64
|
+
name: 'String'
|
65
|
+
}
|
66
|
+
},
|
67
|
+
break_period: {
|
68
|
+
client_side_validation: true,
|
69
|
+
required: false,
|
70
|
+
serialized_name: 'breakPeriod',
|
71
|
+
type: {
|
72
|
+
name: 'Number'
|
73
|
+
}
|
74
|
+
},
|
75
|
+
lease_duration: {
|
76
|
+
client_side_validation: true,
|
77
|
+
required: false,
|
78
|
+
serialized_name: 'leaseDuration',
|
79
|
+
type: {
|
80
|
+
name: 'Number'
|
81
|
+
}
|
82
|
+
},
|
83
|
+
proposed_lease_id: {
|
84
|
+
client_side_validation: true,
|
85
|
+
required: false,
|
86
|
+
serialized_name: 'proposedLeaseId',
|
87
|
+
type: {
|
88
|
+
name: 'String'
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
@@ -0,0 +1,60 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Storage::Mgmt::V2018_02_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Lease Container response schema.
|
10
|
+
#
|
11
|
+
class LeaseContainerResponse
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Returned unique lease ID that must be included with
|
16
|
+
# any request to delete the container, or to renew, change, or release
|
17
|
+
# the lease.
|
18
|
+
attr_accessor :lease_id
|
19
|
+
|
20
|
+
# @return [String] Approximate time remaining in the lease period, in
|
21
|
+
# seconds.
|
22
|
+
attr_accessor :lease_time_seconds
|
23
|
+
|
24
|
+
|
25
|
+
#
|
26
|
+
# Mapper for LeaseContainerResponse class as Ruby Hash.
|
27
|
+
# This will be used for serialization/deserialization.
|
28
|
+
#
|
29
|
+
def self.mapper()
|
30
|
+
{
|
31
|
+
client_side_validation: true,
|
32
|
+
required: false,
|
33
|
+
serialized_name: 'LeaseContainerResponse',
|
34
|
+
type: {
|
35
|
+
name: 'Composite',
|
36
|
+
class_name: 'LeaseContainerResponse',
|
37
|
+
model_properties: {
|
38
|
+
lease_id: {
|
39
|
+
client_side_validation: true,
|
40
|
+
required: false,
|
41
|
+
serialized_name: 'leaseId',
|
42
|
+
type: {
|
43
|
+
name: 'String'
|
44
|
+
}
|
45
|
+
},
|
46
|
+
lease_time_seconds: {
|
47
|
+
client_side_validation: true,
|
48
|
+
required: false,
|
49
|
+
serialized_name: 'leaseTimeSeconds',
|
50
|
+
type: {
|
51
|
+
name: 'String'
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|