azure_mgmt_storage 0.17.10 → 0.18.0
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/storage_management_client.rb +1 -1
- 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/storage_management_client.rb +1 -1
- 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 +49 -38
- data/lib/2019-04-01/generated/azure_mgmt_storage/blob_containers.rb +151 -8
- data/lib/2019-04-01/generated/azure_mgmt_storage/blob_services.rb +113 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/file_services.rb +377 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/file_shares.rb +806 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/azure_files_identity_based_authentication.rb +47 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/blob_service_items.rb +57 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/blob_service_properties.rb +13 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/change_feed.rb +47 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/date_after_creation.rb +4 -4
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/date_after_modification.rb +4 -3
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/directory_service_options.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/file_service_items.rb +57 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/file_service_properties.rb +77 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/file_share.rb +121 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/file_share_item.rb +120 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/file_share_items.rb +103 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/list_container_items.rb +50 -2
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/storage_account.rb +7 -6
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb +10 -10
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb +7 -6
- data/lib/2019-04-01/generated/azure_mgmt_storage/storage_management_client.rb +9 -1
- data/lib/azure_mgmt_storage.rb +8 -8
- data/lib/profiles/latest/modules/storage_profile_module.rb +165 -125
- data/lib/version.rb +1 -1
- metadata +14 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 69102e2b80f6e0f0107dd51fb8e1aaa06df18a49dc8eb4d96a3b7e0bdd172e29
|
4
|
+
data.tar.gz: 489fcb64a7ebef04639220c1a477721ab00a4a51f6a7f753598cd18dcdea9eaa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66a21cad7349b516dff80e9d975ff1229b57c84266ce03051201ae8ce3f0cc4e2ad11971f808090c882466a91d06dac128d793c86a9abfda2ebd51d2db908aec
|
7
|
+
data.tar.gz: 334d59ac210279629f2302be625a43ba2534d21cdff34f6e1b41654ae0fcfb9dc1344aa9e3026a2c482547172a0c286e0aca7aea642b0e82064e4bae417a2690
|
@@ -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.
|
133
|
+
sdk_information = "#{sdk_information}/0.18.0"
|
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.
|
133
|
+
sdk_information = "#{sdk_information}/0.18.0"
|
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.
|
133
|
+
sdk_information = "#{sdk_information}/0.18.0"
|
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.
|
133
|
+
sdk_information = "#{sdk_information}/0.18.0"
|
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.
|
141
|
+
sdk_information = "#{sdk_information}/0.18.0"
|
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.
|
141
|
+
sdk_information = "#{sdk_information}/0.18.0"
|
142
142
|
add_user_agent_information(sdk_information)
|
143
143
|
end
|
144
144
|
end
|
@@ -140,7 +140,7 @@ module Azure::Storage::Mgmt::V2018_02_01
|
|
140
140
|
#
|
141
141
|
def add_telemetry
|
142
142
|
sdk_information = 'azure_mgmt_storage'
|
143
|
-
sdk_information = "#{sdk_information}/0.
|
143
|
+
sdk_information = "#{sdk_information}/0.18.0"
|
144
144
|
add_user_agent_information(sdk_information)
|
145
145
|
end
|
146
146
|
end
|
@@ -140,7 +140,7 @@ module Azure::Storage::Mgmt::V2018_03_01_preview
|
|
140
140
|
#
|
141
141
|
def add_telemetry
|
142
142
|
sdk_information = 'azure_mgmt_storage'
|
143
|
-
sdk_information = "#{sdk_information}/0.
|
143
|
+
sdk_information = "#{sdk_information}/0.18.0"
|
144
144
|
add_user_agent_information(sdk_information)
|
145
145
|
end
|
146
146
|
end
|
@@ -144,7 +144,7 @@ module Azure::Storage::Mgmt::V2018_07_01
|
|
144
144
|
#
|
145
145
|
def add_telemetry
|
146
146
|
sdk_information = 'azure_mgmt_storage'
|
147
|
-
sdk_information = "#{sdk_information}/0.
|
147
|
+
sdk_information = "#{sdk_information}/0.18.0"
|
148
148
|
add_user_agent_information(sdk_information)
|
149
149
|
end
|
150
150
|
end
|
@@ -148,7 +148,7 @@ module Azure::Storage::Mgmt::V2018_11_01
|
|
148
148
|
#
|
149
149
|
def add_telemetry
|
150
150
|
sdk_information = 'azure_mgmt_storage'
|
151
|
-
sdk_information = "#{sdk_information}/0.
|
151
|
+
sdk_information = "#{sdk_information}/0.18.0"
|
152
152
|
add_user_agent_information(sdk_information)
|
153
153
|
end
|
154
154
|
end
|
@@ -27,75 +27,85 @@ module Azure::Storage::Mgmt::V2019_04_01
|
|
27
27
|
autoload :ManagementPolicies, '2019-04-01/generated/azure_mgmt_storage/management_policies.rb'
|
28
28
|
autoload :BlobServices, '2019-04-01/generated/azure_mgmt_storage/blob_services.rb'
|
29
29
|
autoload :BlobContainers, '2019-04-01/generated/azure_mgmt_storage/blob_containers.rb'
|
30
|
+
autoload :FileServices, '2019-04-01/generated/azure_mgmt_storage/file_services.rb'
|
31
|
+
autoload :FileShares, '2019-04-01/generated/azure_mgmt_storage/file_shares.rb'
|
30
32
|
autoload :StorageManagementClient, '2019-04-01/generated/azure_mgmt_storage/storage_management_client.rb'
|
31
33
|
|
32
34
|
module Models
|
33
|
-
autoload :AccountSasParameters, '2019-04-01/generated/azure_mgmt_storage/models/account_sas_parameters.rb'
|
34
|
-
autoload :OperationDisplay, '2019-04-01/generated/azure_mgmt_storage/models/operation_display.rb'
|
35
|
-
autoload :ListAccountSasResponse, '2019-04-01/generated/azure_mgmt_storage/models/list_account_sas_response.rb'
|
36
|
-
autoload :MetricSpecification, '2019-04-01/generated/azure_mgmt_storage/models/metric_specification.rb'
|
37
|
-
autoload :ServiceSasParameters, '2019-04-01/generated/azure_mgmt_storage/models/service_sas_parameters.rb'
|
38
|
-
autoload :Operation, '2019-04-01/generated/azure_mgmt_storage/models/operation.rb'
|
39
35
|
autoload :ListServiceSasResponse, '2019-04-01/generated/azure_mgmt_storage/models/list_service_sas_response.rb'
|
40
|
-
autoload :StorageAccountCheckNameAvailabilityParameters, '2019-04-01/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb'
|
41
36
|
autoload :DateAfterModification, '2019-04-01/generated/azure_mgmt_storage/models/date_after_modification.rb'
|
42
|
-
autoload :
|
37
|
+
autoload :Dimension, '2019-04-01/generated/azure_mgmt_storage/models/dimension.rb'
|
43
38
|
autoload :ManagementPolicyBaseBlob, '2019-04-01/generated/azure_mgmt_storage/models/management_policy_base_blob.rb'
|
44
|
-
autoload :
|
39
|
+
autoload :ServiceSpecification, '2019-04-01/generated/azure_mgmt_storage/models/service_specification.rb'
|
45
40
|
autoload :DateAfterCreation, '2019-04-01/generated/azure_mgmt_storage/models/date_after_creation.rb'
|
46
|
-
autoload :
|
41
|
+
autoload :OperationListResult, '2019-04-01/generated/azure_mgmt_storage/models/operation_list_result.rb'
|
47
42
|
autoload :ManagementPolicySnapShot, '2019-04-01/generated/azure_mgmt_storage/models/management_policy_snap_shot.rb'
|
48
|
-
autoload :
|
43
|
+
autoload :SKUCapability, '2019-04-01/generated/azure_mgmt_storage/models/skucapability.rb'
|
49
44
|
autoload :ManagementPolicyAction, '2019-04-01/generated/azure_mgmt_storage/models/management_policy_action.rb'
|
50
|
-
autoload :
|
45
|
+
autoload :Sku, '2019-04-01/generated/azure_mgmt_storage/models/sku.rb'
|
51
46
|
autoload :ManagementPolicyFilter, '2019-04-01/generated/azure_mgmt_storage/models/management_policy_filter.rb'
|
52
|
-
autoload :
|
47
|
+
autoload :CheckNameAvailabilityResult, '2019-04-01/generated/azure_mgmt_storage/models/check_name_availability_result.rb'
|
53
48
|
autoload :ManagementPolicyDefinition, '2019-04-01/generated/azure_mgmt_storage/models/management_policy_definition.rb'
|
54
|
-
autoload :
|
49
|
+
autoload :EncryptionService, '2019-04-01/generated/azure_mgmt_storage/models/encryption_service.rb'
|
55
50
|
autoload :ManagementPolicyRule, '2019-04-01/generated/azure_mgmt_storage/models/management_policy_rule.rb'
|
56
|
-
autoload :
|
51
|
+
autoload :KeyVaultProperties, '2019-04-01/generated/azure_mgmt_storage/models/key_vault_properties.rb'
|
57
52
|
autoload :ManagementPolicySchema, '2019-04-01/generated/azure_mgmt_storage/models/management_policy_schema.rb'
|
58
53
|
autoload :VirtualNetworkRule, '2019-04-01/generated/azure_mgmt_storage/models/virtual_network_rule.rb'
|
59
|
-
autoload :
|
60
|
-
autoload :
|
54
|
+
autoload :Restriction, '2019-04-01/generated/azure_mgmt_storage/models/restriction.rb'
|
55
|
+
autoload :StorageSkuListResult, '2019-04-01/generated/azure_mgmt_storage/models/storage_sku_list_result.rb'
|
56
|
+
autoload :AzureFilesIdentityBasedAuthentication, '2019-04-01/generated/azure_mgmt_storage/models/azure_files_identity_based_authentication.rb'
|
57
|
+
autoload :CustomDomain, '2019-04-01/generated/azure_mgmt_storage/models/custom_domain.rb'
|
61
58
|
autoload :StorageAccountCreateParameters, '2019-04-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb'
|
62
|
-
autoload :
|
59
|
+
autoload :EncryptionServices, '2019-04-01/generated/azure_mgmt_storage/models/encryption_services.rb'
|
63
60
|
autoload :GeoReplicationStats, '2019-04-01/generated/azure_mgmt_storage/models/geo_replication_stats.rb'
|
64
|
-
autoload :
|
65
|
-
autoload :UsageListResult, '2019-04-01/generated/azure_mgmt_storage/models/usage_list_result.rb'
|
66
|
-
autoload :LeaseContainerResponse, '2019-04-01/generated/azure_mgmt_storage/models/lease_container_response.rb'
|
67
|
-
autoload :ServiceSpecification, '2019-04-01/generated/azure_mgmt_storage/models/service_specification.rb'
|
68
|
-
autoload :LeaseContainerRequest, '2019-04-01/generated/azure_mgmt_storage/models/lease_container_request.rb'
|
69
|
-
autoload :SKUCapability, '2019-04-01/generated/azure_mgmt_storage/models/skucapability.rb'
|
70
|
-
autoload :Sku, '2019-04-01/generated/azure_mgmt_storage/models/sku.rb'
|
71
|
-
autoload :ListContainerItems, '2019-04-01/generated/azure_mgmt_storage/models/list_container_items.rb'
|
72
|
-
autoload :EncryptionService, '2019-04-01/generated/azure_mgmt_storage/models/encryption_service.rb'
|
73
|
-
autoload :DeleteRetentionPolicy, '2019-04-01/generated/azure_mgmt_storage/models/delete_retention_policy.rb'
|
61
|
+
autoload :Encryption, '2019-04-01/generated/azure_mgmt_storage/models/encryption.rb'
|
74
62
|
autoload :StorageAccountKey, '2019-04-01/generated/azure_mgmt_storage/models/storage_account_key.rb'
|
75
|
-
autoload :
|
63
|
+
autoload :IPRule, '2019-04-01/generated/azure_mgmt_storage/models/iprule.rb'
|
64
|
+
autoload :StorageAccountListKeysResult, '2019-04-01/generated/azure_mgmt_storage/models/storage_account_list_keys_result.rb'
|
76
65
|
autoload :StorageAccountUpdateParameters, '2019-04-01/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb'
|
66
|
+
autoload :Usage, '2019-04-01/generated/azure_mgmt_storage/models/usage.rb'
|
67
|
+
autoload :FileShareItems, '2019-04-01/generated/azure_mgmt_storage/models/file_share_items.rb'
|
68
|
+
autoload :AccountSasParameters, '2019-04-01/generated/azure_mgmt_storage/models/account_sas_parameters.rb'
|
69
|
+
autoload :FileServiceItems, '2019-04-01/generated/azure_mgmt_storage/models/file_service_items.rb'
|
70
|
+
autoload :ServiceSasParameters, '2019-04-01/generated/azure_mgmt_storage/models/service_sas_parameters.rb'
|
71
|
+
autoload :Resource, '2019-04-01/generated/azure_mgmt_storage/models/resource.rb'
|
72
|
+
autoload :MetricSpecification, '2019-04-01/generated/azure_mgmt_storage/models/metric_specification.rb'
|
77
73
|
autoload :UpdateHistoryProperty, '2019-04-01/generated/azure_mgmt_storage/models/update_history_property.rb'
|
78
|
-
autoload :
|
74
|
+
autoload :StorageAccountCheckNameAvailabilityParameters, '2019-04-01/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb'
|
79
75
|
autoload :ImmutabilityPolicyProperties, '2019-04-01/generated/azure_mgmt_storage/models/immutability_policy_properties.rb'
|
80
|
-
autoload :
|
76
|
+
autoload :Identity, '2019-04-01/generated/azure_mgmt_storage/models/identity.rb'
|
81
77
|
autoload :TagProperty, '2019-04-01/generated/azure_mgmt_storage/models/tag_property.rb'
|
82
|
-
autoload :
|
78
|
+
autoload :ChangeFeed, '2019-04-01/generated/azure_mgmt_storage/models/change_feed.rb'
|
79
|
+
autoload :StorageAccountListResult, '2019-04-01/generated/azure_mgmt_storage/models/storage_account_list_result.rb'
|
83
80
|
autoload :LegalHoldProperties, '2019-04-01/generated/azure_mgmt_storage/models/legal_hold_properties.rb'
|
84
|
-
autoload :
|
85
|
-
autoload :
|
86
|
-
autoload :
|
87
|
-
autoload :
|
88
|
-
autoload :
|
81
|
+
autoload :UsageName, '2019-04-01/generated/azure_mgmt_storage/models/usage_name.rb'
|
82
|
+
autoload :LeaseContainerResponse, '2019-04-01/generated/azure_mgmt_storage/models/lease_container_response.rb'
|
83
|
+
autoload :ListAccountSasResponse, '2019-04-01/generated/azure_mgmt_storage/models/list_account_sas_response.rb'
|
84
|
+
autoload :LeaseContainerRequest, '2019-04-01/generated/azure_mgmt_storage/models/lease_container_request.rb'
|
85
|
+
autoload :Operation, '2019-04-01/generated/azure_mgmt_storage/models/operation.rb'
|
89
86
|
autoload :LegalHold, '2019-04-01/generated/azure_mgmt_storage/models/legal_hold.rb'
|
90
|
-
autoload :
|
87
|
+
autoload :Endpoints, '2019-04-01/generated/azure_mgmt_storage/models/endpoints.rb'
|
88
|
+
autoload :BlobServiceItems, '2019-04-01/generated/azure_mgmt_storage/models/blob_service_items.rb'
|
89
|
+
autoload :UsageListResult, '2019-04-01/generated/azure_mgmt_storage/models/usage_list_result.rb'
|
90
|
+
autoload :ListContainerItems, '2019-04-01/generated/azure_mgmt_storage/models/list_container_items.rb'
|
91
|
+
autoload :NetworkRuleSet, '2019-04-01/generated/azure_mgmt_storage/models/network_rule_set.rb'
|
92
|
+
autoload :CorsRule, '2019-04-01/generated/azure_mgmt_storage/models/cors_rule.rb'
|
93
|
+
autoload :OperationDisplay, '2019-04-01/generated/azure_mgmt_storage/models/operation_display.rb'
|
94
|
+
autoload :CorsRules, '2019-04-01/generated/azure_mgmt_storage/models/cors_rules.rb'
|
95
|
+
autoload :StorageAccountRegenerateKeyParameters, '2019-04-01/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb'
|
96
|
+
autoload :DeleteRetentionPolicy, '2019-04-01/generated/azure_mgmt_storage/models/delete_retention_policy.rb'
|
91
97
|
autoload :StorageAccount, '2019-04-01/generated/azure_mgmt_storage/models/storage_account.rb'
|
92
98
|
autoload :ManagementPolicy, '2019-04-01/generated/azure_mgmt_storage/models/management_policy.rb'
|
93
99
|
autoload :ProxyResource, '2019-04-01/generated/azure_mgmt_storage/models/proxy_resource.rb'
|
100
|
+
autoload :TrackedResource, '2019-04-01/generated/azure_mgmt_storage/models/tracked_resource.rb'
|
94
101
|
autoload :AzureEntityResource, '2019-04-01/generated/azure_mgmt_storage/models/azure_entity_resource.rb'
|
95
102
|
autoload :BlobContainer, '2019-04-01/generated/azure_mgmt_storage/models/blob_container.rb'
|
96
103
|
autoload :ImmutabilityPolicy, '2019-04-01/generated/azure_mgmt_storage/models/immutability_policy.rb'
|
97
104
|
autoload :ListContainerItem, '2019-04-01/generated/azure_mgmt_storage/models/list_container_item.rb'
|
98
105
|
autoload :BlobServiceProperties, '2019-04-01/generated/azure_mgmt_storage/models/blob_service_properties.rb'
|
106
|
+
autoload :FileServiceProperties, '2019-04-01/generated/azure_mgmt_storage/models/file_service_properties.rb'
|
107
|
+
autoload :FileShare, '2019-04-01/generated/azure_mgmt_storage/models/file_share.rb'
|
108
|
+
autoload :FileShareItem, '2019-04-01/generated/azure_mgmt_storage/models/file_share_item.rb'
|
99
109
|
autoload :ReasonCode, '2019-04-01/generated/azure_mgmt_storage/models/reason_code.rb'
|
100
110
|
autoload :SkuName, '2019-04-01/generated/azure_mgmt_storage/models/sku_name.rb'
|
101
111
|
autoload :SkuTier, '2019-04-01/generated/azure_mgmt_storage/models/sku_tier.rb'
|
@@ -106,6 +116,7 @@ module Azure::Storage::Mgmt::V2019_04_01
|
|
106
116
|
autoload :State, '2019-04-01/generated/azure_mgmt_storage/models/state.rb'
|
107
117
|
autoload :Bypass, '2019-04-01/generated/azure_mgmt_storage/models/bypass.rb'
|
108
118
|
autoload :DefaultAction, '2019-04-01/generated/azure_mgmt_storage/models/default_action.rb'
|
119
|
+
autoload :DirectoryServiceOptions, '2019-04-01/generated/azure_mgmt_storage/models/directory_service_options.rb'
|
109
120
|
autoload :AccessTier, '2019-04-01/generated/azure_mgmt_storage/models/access_tier.rb'
|
110
121
|
autoload :GeoReplicationStatus, '2019-04-01/generated/azure_mgmt_storage/models/geo_replication_status.rb'
|
111
122
|
autoload :ProvisioningState, '2019-04-01/generated/azure_mgmt_storage/models/provisioning_state.rb'
|
@@ -30,14 +30,20 @@ module Azure::Storage::Mgmt::V2019_04_01
|
|
30
30
|
# @param account_name [String] The name of the storage account within the
|
31
31
|
# specified resource group. Storage account names must be between 3 and 24
|
32
32
|
# characters in length and use numbers and lower-case letters only.
|
33
|
+
# @param skip_token [String] Optional. Continuation token for the list
|
34
|
+
# operation.
|
35
|
+
# @param maxpagesize [String] Optional. Specified maximum number of containers
|
36
|
+
# that can be included in the list.
|
37
|
+
# @param filter [String] Optional. When specified, only container names
|
38
|
+
# starting with the filter will be listed.
|
33
39
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
34
40
|
# will be added to the HTTP request.
|
35
41
|
#
|
36
|
-
# @return [
|
42
|
+
# @return [Array<ListContainerItem>] operation results.
|
37
43
|
#
|
38
|
-
def list(resource_group_name, account_name, custom_headers:nil)
|
39
|
-
|
40
|
-
|
44
|
+
def list(resource_group_name, account_name, skip_token:nil, maxpagesize:nil, filter:nil, custom_headers:nil)
|
45
|
+
first_page = list_as_lazy(resource_group_name, account_name, skip_token:skip_token, maxpagesize:maxpagesize, filter:filter, custom_headers:custom_headers)
|
46
|
+
first_page.get_all_items
|
41
47
|
end
|
42
48
|
|
43
49
|
#
|
@@ -49,13 +55,19 @@ module Azure::Storage::Mgmt::V2019_04_01
|
|
49
55
|
# @param account_name [String] The name of the storage account within the
|
50
56
|
# specified resource group. Storage account names must be between 3 and 24
|
51
57
|
# characters in length and use numbers and lower-case letters only.
|
58
|
+
# @param skip_token [String] Optional. Continuation token for the list
|
59
|
+
# operation.
|
60
|
+
# @param maxpagesize [String] Optional. Specified maximum number of containers
|
61
|
+
# that can be included in the list.
|
62
|
+
# @param filter [String] Optional. When specified, only container names
|
63
|
+
# starting with the filter will be listed.
|
52
64
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
53
65
|
# will be added to the HTTP request.
|
54
66
|
#
|
55
67
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
56
68
|
#
|
57
|
-
def list_with_http_info(resource_group_name, account_name, custom_headers:nil)
|
58
|
-
list_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
69
|
+
def list_with_http_info(resource_group_name, account_name, skip_token:nil, maxpagesize:nil, filter:nil, custom_headers:nil)
|
70
|
+
list_async(resource_group_name, account_name, skip_token:skip_token, maxpagesize:maxpagesize, filter:filter, custom_headers:custom_headers).value!
|
59
71
|
end
|
60
72
|
|
61
73
|
#
|
@@ -67,12 +79,18 @@ module Azure::Storage::Mgmt::V2019_04_01
|
|
67
79
|
# @param account_name [String] The name of the storage account within the
|
68
80
|
# specified resource group. Storage account names must be between 3 and 24
|
69
81
|
# characters in length and use numbers and lower-case letters only.
|
82
|
+
# @param skip_token [String] Optional. Continuation token for the list
|
83
|
+
# operation.
|
84
|
+
# @param maxpagesize [String] Optional. Specified maximum number of containers
|
85
|
+
# that can be included in the list.
|
86
|
+
# @param filter [String] Optional. When specified, only container names
|
87
|
+
# starting with the filter will be listed.
|
70
88
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
71
89
|
# to the HTTP request.
|
72
90
|
#
|
73
91
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
74
92
|
#
|
75
|
-
def list_async(resource_group_name, account_name, custom_headers:nil)
|
93
|
+
def list_async(resource_group_name, account_name, skip_token:nil, maxpagesize:nil, filter:nil, custom_headers:nil)
|
76
94
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
77
95
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
78
96
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -99,7 +117,7 @@ module Azure::Storage::Mgmt::V2019_04_01
|
|
99
117
|
options = {
|
100
118
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
101
119
|
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
|
102
|
-
query_params: {'api-version' => @client.api_version},
|
120
|
+
query_params: {'api-version' => @client.api_version,'$skipToken' => skip_token,'$maxpagesize' => maxpagesize,'$filter' => filter},
|
103
121
|
headers: request_headers.merge(custom_headers || {}),
|
104
122
|
base_url: request_url
|
105
123
|
}
|
@@ -1895,5 +1913,130 @@ module Azure::Storage::Mgmt::V2019_04_01
|
|
1895
1913
|
promise.execute
|
1896
1914
|
end
|
1897
1915
|
|
1916
|
+
#
|
1917
|
+
# Lists all containers and does not support a prefix like data plane. Also SRP
|
1918
|
+
# today does not return continuation token.
|
1919
|
+
#
|
1920
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1921
|
+
# to List operation.
|
1922
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1923
|
+
# will be added to the HTTP request.
|
1924
|
+
#
|
1925
|
+
# @return [ListContainerItems] operation results.
|
1926
|
+
#
|
1927
|
+
def list_next(next_page_link, custom_headers:nil)
|
1928
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
1929
|
+
response.body unless response.nil?
|
1930
|
+
end
|
1931
|
+
|
1932
|
+
#
|
1933
|
+
# Lists all containers and does not support a prefix like data plane. Also SRP
|
1934
|
+
# today does not return continuation token.
|
1935
|
+
#
|
1936
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1937
|
+
# to List operation.
|
1938
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1939
|
+
# will be added to the HTTP request.
|
1940
|
+
#
|
1941
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1942
|
+
#
|
1943
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
1944
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
1945
|
+
end
|
1946
|
+
|
1947
|
+
#
|
1948
|
+
# Lists all containers and does not support a prefix like data plane. Also SRP
|
1949
|
+
# today does not return continuation token.
|
1950
|
+
#
|
1951
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1952
|
+
# to List operation.
|
1953
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1954
|
+
# to the HTTP request.
|
1955
|
+
#
|
1956
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1957
|
+
#
|
1958
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
1959
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1960
|
+
|
1961
|
+
|
1962
|
+
request_headers = {}
|
1963
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1964
|
+
|
1965
|
+
# Set Headers
|
1966
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1967
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1968
|
+
path_template = '{nextLink}'
|
1969
|
+
|
1970
|
+
request_url = @base_url || @client.base_url
|
1971
|
+
|
1972
|
+
options = {
|
1973
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1974
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
1975
|
+
headers: request_headers.merge(custom_headers || {}),
|
1976
|
+
base_url: request_url
|
1977
|
+
}
|
1978
|
+
promise = @client.make_request_async(:get, path_template, options)
|
1979
|
+
|
1980
|
+
promise = promise.then do |result|
|
1981
|
+
http_response = result.response
|
1982
|
+
status_code = http_response.status
|
1983
|
+
response_content = http_response.body
|
1984
|
+
unless status_code == 200
|
1985
|
+
error_model = JSON.load(response_content)
|
1986
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1987
|
+
end
|
1988
|
+
|
1989
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1990
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
1991
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
1992
|
+
# Deserialize Response
|
1993
|
+
if status_code == 200
|
1994
|
+
begin
|
1995
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1996
|
+
result_mapper = Azure::Storage::Mgmt::V2019_04_01::Models::ListContainerItems.mapper()
|
1997
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1998
|
+
rescue Exception => e
|
1999
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
2000
|
+
end
|
2001
|
+
end
|
2002
|
+
|
2003
|
+
result
|
2004
|
+
end
|
2005
|
+
|
2006
|
+
promise.execute
|
2007
|
+
end
|
2008
|
+
|
2009
|
+
#
|
2010
|
+
# Lists all containers and does not support a prefix like data plane. Also SRP
|
2011
|
+
# today does not return continuation token.
|
2012
|
+
#
|
2013
|
+
# @param resource_group_name [String] The name of the resource group within the
|
2014
|
+
# user's subscription. The name is case insensitive.
|
2015
|
+
# @param account_name [String] The name of the storage account within the
|
2016
|
+
# specified resource group. Storage account names must be between 3 and 24
|
2017
|
+
# characters in length and use numbers and lower-case letters only.
|
2018
|
+
# @param skip_token [String] Optional. Continuation token for the list
|
2019
|
+
# operation.
|
2020
|
+
# @param maxpagesize [String] Optional. Specified maximum number of containers
|
2021
|
+
# that can be included in the list.
|
2022
|
+
# @param filter [String] Optional. When specified, only container names
|
2023
|
+
# starting with the filter will be listed.
|
2024
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2025
|
+
# will be added to the HTTP request.
|
2026
|
+
#
|
2027
|
+
# @return [ListContainerItems] which provide lazy access to pages of the
|
2028
|
+
# response.
|
2029
|
+
#
|
2030
|
+
def list_as_lazy(resource_group_name, account_name, skip_token:nil, maxpagesize:nil, filter:nil, custom_headers:nil)
|
2031
|
+
response = list_async(resource_group_name, account_name, skip_token:skip_token, maxpagesize:maxpagesize, filter:filter, custom_headers:custom_headers).value!
|
2032
|
+
unless response.nil?
|
2033
|
+
page = response.body
|
2034
|
+
page.next_method = Proc.new do |next_page_link|
|
2035
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
2036
|
+
end
|
2037
|
+
page
|
2038
|
+
end
|
2039
|
+
end
|
2040
|
+
|
1898
2041
|
end
|
1899
2042
|
end
|
@@ -21,6 +21,119 @@ module Azure::Storage::Mgmt::V2019_04_01
|
|
21
21
|
# @return [StorageManagementClient] reference to the StorageManagementClient
|
22
22
|
attr_reader :client
|
23
23
|
|
24
|
+
#
|
25
|
+
# List blob services of storage account. It returns a collection of one object
|
26
|
+
# named default.
|
27
|
+
#
|
28
|
+
# @param resource_group_name [String] The name of the resource group within the
|
29
|
+
# user's subscription. The name is case insensitive.
|
30
|
+
# @param account_name [String] The name of the storage account within the
|
31
|
+
# specified resource group. Storage account names must be between 3 and 24
|
32
|
+
# characters in length and use numbers and lower-case letters only.
|
33
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
34
|
+
# will be added to the HTTP request.
|
35
|
+
#
|
36
|
+
# @return [BlobServiceItems] operation results.
|
37
|
+
#
|
38
|
+
def list(resource_group_name, account_name, custom_headers:nil)
|
39
|
+
response = list_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
40
|
+
response.body unless response.nil?
|
41
|
+
end
|
42
|
+
|
43
|
+
#
|
44
|
+
# List blob services of storage account. It returns a collection of one object
|
45
|
+
# named default.
|
46
|
+
#
|
47
|
+
# @param resource_group_name [String] The name of the resource group within the
|
48
|
+
# user's subscription. The name is case insensitive.
|
49
|
+
# @param account_name [String] The name of the storage account within the
|
50
|
+
# specified resource group. Storage account names must be between 3 and 24
|
51
|
+
# characters in length and use numbers and lower-case letters only.
|
52
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
53
|
+
# will be added to the HTTP request.
|
54
|
+
#
|
55
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
56
|
+
#
|
57
|
+
def list_with_http_info(resource_group_name, account_name, custom_headers:nil)
|
58
|
+
list_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
59
|
+
end
|
60
|
+
|
61
|
+
#
|
62
|
+
# List blob services of storage account. It returns a collection of one object
|
63
|
+
# named default.
|
64
|
+
#
|
65
|
+
# @param resource_group_name [String] The name of the resource group within the
|
66
|
+
# user's subscription. The name is case insensitive.
|
67
|
+
# @param account_name [String] The name of the storage account within the
|
68
|
+
# specified resource group. Storage account names must be between 3 and 24
|
69
|
+
# characters in length and use numbers and lower-case letters only.
|
70
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
71
|
+
# to the HTTP request.
|
72
|
+
#
|
73
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
74
|
+
#
|
75
|
+
def list_async(resource_group_name, account_name, custom_headers:nil)
|
76
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
77
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
78
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
79
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
80
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
81
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
|
82
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
|
83
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
84
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
85
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
86
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
87
|
+
|
88
|
+
|
89
|
+
request_headers = {}
|
90
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
91
|
+
|
92
|
+
# Set Headers
|
93
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
94
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
95
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices'
|
96
|
+
|
97
|
+
request_url = @base_url || @client.base_url
|
98
|
+
|
99
|
+
options = {
|
100
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
101
|
+
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
|
102
|
+
query_params: {'api-version' => @client.api_version},
|
103
|
+
headers: request_headers.merge(custom_headers || {}),
|
104
|
+
base_url: request_url
|
105
|
+
}
|
106
|
+
promise = @client.make_request_async(:get, path_template, options)
|
107
|
+
|
108
|
+
promise = promise.then do |result|
|
109
|
+
http_response = result.response
|
110
|
+
status_code = http_response.status
|
111
|
+
response_content = http_response.body
|
112
|
+
unless status_code == 200
|
113
|
+
error_model = JSON.load(response_content)
|
114
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
115
|
+
end
|
116
|
+
|
117
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
118
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
119
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
120
|
+
# Deserialize Response
|
121
|
+
if status_code == 200
|
122
|
+
begin
|
123
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
124
|
+
result_mapper = Azure::Storage::Mgmt::V2019_04_01::Models::BlobServiceItems.mapper()
|
125
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
126
|
+
rescue Exception => e
|
127
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
131
|
+
result
|
132
|
+
end
|
133
|
+
|
134
|
+
promise.execute
|
135
|
+
end
|
136
|
+
|
24
137
|
#
|
25
138
|
# Sets the properties of a storage account’s Blob service, including properties
|
26
139
|
# for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules.
|