azure_mgmt_storage 0.19.3 → 0.21.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- 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.rb +2 -0
- data/lib/2016-12-01/generated/azure_mgmt_storage/models/permissions.rb +22 -0
- data/lib/2016-12-01/generated/azure_mgmt_storage/models/service_sas_parameters.rb +7 -7
- data/lib/2016-12-01/generated/azure_mgmt_storage/models/signed_resource.rb +18 -0
- 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 +1 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/minimum_tls_version.rb +17 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/storage_account.rb +26 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb +26 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb +26 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2019-06-01/generated/azure_mgmt_storage.rb +80 -52
- data/lib/2019-06-01/generated/azure_mgmt_storage/blob_containers.rb +20 -8
- data/lib/2019-06-01/generated/azure_mgmt_storage/file_shares.rb +156 -14
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/blob_container.rb +73 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/blob_restore_range.rb +4 -2
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/deleted_share.rb +59 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/enabled_protocols.rb +16 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/encryption.rb +13 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/file_share.rb +129 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/file_share_item.rb +129 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/get_share_expand.rb +15 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/key_vault_properties.rb +25 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/list_container_item.rb +73 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/list_containers_include.rb +15 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/list_queue.rb +83 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/list_queue_resource.rb +101 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/list_queue_services.rb +58 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/list_shares_expand.rb +15 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/list_table_resource.rb +101 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/list_table_services.rb +58 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/management_policy_filter.rb +21 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/minimum_tls_version.rb +17 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/object_replication_policies.rb +56 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/object_replication_policy.rb +131 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/object_replication_policy_filter.rb +70 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/object_replication_policy_rule.rb +82 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/private_endpoint_connection_list_result.rb +57 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/queue_service_properties.rb +77 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/restore_policy_properties.rb +13 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/root_squash_type.rb +17 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/share_access_tier.rb +18 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/storage_account.rb +26 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb +26 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb +26 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/storage_queue.rb +97 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/table.rb +74 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/table_service_properties.rb +77 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/tag_filter.rb +80 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/object_replication_policies_operations.rb +495 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/private_endpoint_connections.rb +122 -9
- data/lib/2019-06-01/generated/azure_mgmt_storage/queue.rb +805 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/queue_services.rb +386 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/storage_management_client.rb +22 -1
- data/lib/2019-06-01/generated/azure_mgmt_storage/table_operations.rb +743 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/table_services.rb +386 -0
- data/lib/profiles/latest/modules/storage_profile_module.rb +266 -164
- data/lib/version.rb +1 -1
- metadata +35 -4
@@ -34,13 +34,16 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
34
34
|
# that can be included in the list.
|
35
35
|
# @param filter [String] Optional. When specified, only container names
|
36
36
|
# starting with the filter will be listed.
|
37
|
+
# @param include [ListContainersInclude] Optional, used to include the
|
38
|
+
# properties for soft deleted blob containers. Possible values include:
|
39
|
+
# 'deleted'
|
37
40
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
38
41
|
# will be added to the HTTP request.
|
39
42
|
#
|
40
43
|
# @return [Array<ListContainerItem>] operation results.
|
41
44
|
#
|
42
|
-
def list(resource_group_name, account_name, maxpagesize:nil, filter:nil, custom_headers:nil)
|
43
|
-
first_page = list_as_lazy(resource_group_name, account_name, maxpagesize:maxpagesize, filter:filter, custom_headers:custom_headers)
|
45
|
+
def list(resource_group_name, account_name, maxpagesize:nil, filter:nil, include:nil, custom_headers:nil)
|
46
|
+
first_page = list_as_lazy(resource_group_name, account_name, maxpagesize:maxpagesize, filter:filter, include:include, custom_headers:custom_headers)
|
44
47
|
first_page.get_all_items
|
45
48
|
end
|
46
49
|
|
@@ -57,13 +60,16 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
57
60
|
# that can be included in the list.
|
58
61
|
# @param filter [String] Optional. When specified, only container names
|
59
62
|
# starting with the filter will be listed.
|
63
|
+
# @param include [ListContainersInclude] Optional, used to include the
|
64
|
+
# properties for soft deleted blob containers. Possible values include:
|
65
|
+
# 'deleted'
|
60
66
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
61
67
|
# will be added to the HTTP request.
|
62
68
|
#
|
63
69
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
64
70
|
#
|
65
|
-
def list_with_http_info(resource_group_name, account_name, maxpagesize:nil, filter:nil, custom_headers:nil)
|
66
|
-
list_async(resource_group_name, account_name, maxpagesize:maxpagesize, filter:filter, custom_headers:custom_headers).value!
|
71
|
+
def list_with_http_info(resource_group_name, account_name, maxpagesize:nil, filter:nil, include:nil, custom_headers:nil)
|
72
|
+
list_async(resource_group_name, account_name, maxpagesize:maxpagesize, filter:filter, include:include, custom_headers:custom_headers).value!
|
67
73
|
end
|
68
74
|
|
69
75
|
#
|
@@ -79,12 +85,15 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
79
85
|
# that can be included in the list.
|
80
86
|
# @param filter [String] Optional. When specified, only container names
|
81
87
|
# starting with the filter will be listed.
|
88
|
+
# @param include [ListContainersInclude] Optional, used to include the
|
89
|
+
# properties for soft deleted blob containers. Possible values include:
|
90
|
+
# 'deleted'
|
82
91
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
83
92
|
# to the HTTP request.
|
84
93
|
#
|
85
94
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
86
95
|
#
|
87
|
-
def list_async(resource_group_name, account_name, maxpagesize:nil, filter:nil, custom_headers:nil)
|
96
|
+
def list_async(resource_group_name, account_name, maxpagesize:nil, filter:nil, include:nil, custom_headers:nil)
|
88
97
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
89
98
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
90
99
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -111,7 +120,7 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
111
120
|
options = {
|
112
121
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
113
122
|
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
|
114
|
-
query_params: {'api-version' => @client.api_version,'$maxpagesize' => maxpagesize,'$filter' => filter},
|
123
|
+
query_params: {'api-version' => @client.api_version,'$maxpagesize' => maxpagesize,'$filter' => filter,'$include' => include},
|
115
124
|
headers: request_headers.merge(custom_headers || {}),
|
116
125
|
base_url: request_url
|
117
126
|
}
|
@@ -2013,14 +2022,17 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
2013
2022
|
# that can be included in the list.
|
2014
2023
|
# @param filter [String] Optional. When specified, only container names
|
2015
2024
|
# starting with the filter will be listed.
|
2025
|
+
# @param include [ListContainersInclude] Optional, used to include the
|
2026
|
+
# properties for soft deleted blob containers. Possible values include:
|
2027
|
+
# 'deleted'
|
2016
2028
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2017
2029
|
# will be added to the HTTP request.
|
2018
2030
|
#
|
2019
2031
|
# @return [ListContainerItems] which provide lazy access to pages of the
|
2020
2032
|
# response.
|
2021
2033
|
#
|
2022
|
-
def list_as_lazy(resource_group_name, account_name, maxpagesize:nil, filter:nil, custom_headers:nil)
|
2023
|
-
response = list_async(resource_group_name, account_name, maxpagesize:maxpagesize, filter:filter, custom_headers:custom_headers).value!
|
2034
|
+
def list_as_lazy(resource_group_name, account_name, maxpagesize:nil, filter:nil, include:nil, custom_headers:nil)
|
2035
|
+
response = list_async(resource_group_name, account_name, maxpagesize:maxpagesize, filter:filter, include:include, custom_headers:custom_headers).value!
|
2024
2036
|
unless response.nil?
|
2025
2037
|
page = response.body
|
2026
2038
|
page.next_method = Proc.new do |next_page_link|
|
@@ -33,13 +33,15 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
33
33
|
# can be included in the list.
|
34
34
|
# @param filter [String] Optional. When specified, only share names starting
|
35
35
|
# with the filter will be listed.
|
36
|
+
# @param expand [ListSharesExpand] Optional, used to expand the properties
|
37
|
+
# within share's properties. Possible values include: 'deleted'
|
36
38
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
37
39
|
# will be added to the HTTP request.
|
38
40
|
#
|
39
41
|
# @return [Array<FileShareItem>] operation results.
|
40
42
|
#
|
41
|
-
def list(resource_group_name, account_name, maxpagesize:nil, filter:nil, custom_headers:nil)
|
42
|
-
first_page = list_as_lazy(resource_group_name, account_name, maxpagesize:maxpagesize, filter:filter, custom_headers:custom_headers)
|
43
|
+
def list(resource_group_name, account_name, maxpagesize:nil, filter:nil, expand:nil, custom_headers:nil)
|
44
|
+
first_page = list_as_lazy(resource_group_name, account_name, maxpagesize:maxpagesize, filter:filter, expand:expand, custom_headers:custom_headers)
|
43
45
|
first_page.get_all_items
|
44
46
|
end
|
45
47
|
|
@@ -55,13 +57,15 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
55
57
|
# can be included in the list.
|
56
58
|
# @param filter [String] Optional. When specified, only share names starting
|
57
59
|
# with the filter will be listed.
|
60
|
+
# @param expand [ListSharesExpand] Optional, used to expand the properties
|
61
|
+
# within share's properties. Possible values include: 'deleted'
|
58
62
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
59
63
|
# will be added to the HTTP request.
|
60
64
|
#
|
61
65
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
62
66
|
#
|
63
|
-
def list_with_http_info(resource_group_name, account_name, maxpagesize:nil, filter:nil, custom_headers:nil)
|
64
|
-
list_async(resource_group_name, account_name, maxpagesize:maxpagesize, filter:filter, custom_headers:custom_headers).value!
|
67
|
+
def list_with_http_info(resource_group_name, account_name, maxpagesize:nil, filter:nil, expand:nil, custom_headers:nil)
|
68
|
+
list_async(resource_group_name, account_name, maxpagesize:maxpagesize, filter:filter, expand:expand, custom_headers:custom_headers).value!
|
65
69
|
end
|
66
70
|
|
67
71
|
#
|
@@ -76,12 +80,14 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
76
80
|
# can be included in the list.
|
77
81
|
# @param filter [String] Optional. When specified, only share names starting
|
78
82
|
# with the filter will be listed.
|
83
|
+
# @param expand [ListSharesExpand] Optional, used to expand the properties
|
84
|
+
# within share's properties. Possible values include: 'deleted'
|
79
85
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
80
86
|
# to the HTTP request.
|
81
87
|
#
|
82
88
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
83
89
|
#
|
84
|
-
def list_async(resource_group_name, account_name, maxpagesize:nil, filter:nil, custom_headers:nil)
|
90
|
+
def list_async(resource_group_name, account_name, maxpagesize:nil, filter:nil, expand:nil, custom_headers:nil)
|
85
91
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
86
92
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
87
93
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -108,7 +114,7 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
108
114
|
options = {
|
109
115
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
110
116
|
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
|
111
|
-
query_params: {'api-version' => @client.api_version,'$maxpagesize' => maxpagesize,'$filter' => filter},
|
117
|
+
query_params: {'api-version' => @client.api_version,'$maxpagesize' => maxpagesize,'$filter' => filter,'$expand' => expand},
|
112
118
|
headers: request_headers.merge(custom_headers || {}),
|
113
119
|
base_url: request_url
|
114
120
|
}
|
@@ -449,13 +455,15 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
449
455
|
# storage account. File share names must be between 3 and 63 characters in
|
450
456
|
# length and use numbers, lower-case letters and dash (-) only. Every dash (-)
|
451
457
|
# character must be immediately preceded and followed by a letter or number.
|
458
|
+
# @param expand [GetShareExpand] Optional, used to expand the properties within
|
459
|
+
# share's properties. Possible values include: 'stats'
|
452
460
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
453
461
|
# will be added to the HTTP request.
|
454
462
|
#
|
455
463
|
# @return [FileShare] operation results.
|
456
464
|
#
|
457
|
-
def get(resource_group_name, account_name, share_name, custom_headers:nil)
|
458
|
-
response = get_async(resource_group_name, account_name, share_name, custom_headers:custom_headers).value!
|
465
|
+
def get(resource_group_name, account_name, share_name, expand:nil, custom_headers:nil)
|
466
|
+
response = get_async(resource_group_name, account_name, share_name, expand:expand, custom_headers:custom_headers).value!
|
459
467
|
response.body unless response.nil?
|
460
468
|
end
|
461
469
|
|
@@ -471,13 +479,15 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
471
479
|
# storage account. File share names must be between 3 and 63 characters in
|
472
480
|
# length and use numbers, lower-case letters and dash (-) only. Every dash (-)
|
473
481
|
# character must be immediately preceded and followed by a letter or number.
|
482
|
+
# @param expand [GetShareExpand] Optional, used to expand the properties within
|
483
|
+
# share's properties. Possible values include: 'stats'
|
474
484
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
475
485
|
# will be added to the HTTP request.
|
476
486
|
#
|
477
487
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
478
488
|
#
|
479
|
-
def get_with_http_info(resource_group_name, account_name, share_name, custom_headers:nil)
|
480
|
-
get_async(resource_group_name, account_name, share_name, custom_headers:custom_headers).value!
|
489
|
+
def get_with_http_info(resource_group_name, account_name, share_name, expand:nil, custom_headers:nil)
|
490
|
+
get_async(resource_group_name, account_name, share_name, expand:expand, custom_headers:custom_headers).value!
|
481
491
|
end
|
482
492
|
|
483
493
|
#
|
@@ -492,12 +502,14 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
492
502
|
# storage account. File share names must be between 3 and 63 characters in
|
493
503
|
# length and use numbers, lower-case letters and dash (-) only. Every dash (-)
|
494
504
|
# character must be immediately preceded and followed by a letter or number.
|
505
|
+
# @param expand [GetShareExpand] Optional, used to expand the properties within
|
506
|
+
# share's properties. Possible values include: 'stats'
|
495
507
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
496
508
|
# to the HTTP request.
|
497
509
|
#
|
498
510
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
499
511
|
#
|
500
|
-
def get_async(resource_group_name, account_name, share_name, custom_headers:nil)
|
512
|
+
def get_async(resource_group_name, account_name, share_name, expand:nil, custom_headers:nil)
|
501
513
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
502
514
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
503
515
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -527,7 +539,7 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
527
539
|
options = {
|
528
540
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
529
541
|
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'shareName' => share_name,'subscriptionId' => @client.subscription_id},
|
530
|
-
query_params: {'api-version' => @client.api_version},
|
542
|
+
query_params: {'api-version' => @client.api_version,'$expand' => expand},
|
531
543
|
headers: request_headers.merge(custom_headers || {}),
|
532
544
|
base_url: request_url
|
533
545
|
}
|
@@ -676,6 +688,134 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
676
688
|
promise.execute
|
677
689
|
end
|
678
690
|
|
691
|
+
#
|
692
|
+
# Restore a file share within a valid retention days if share soft delete is
|
693
|
+
# enabled
|
694
|
+
#
|
695
|
+
# @param resource_group_name [String] The name of the resource group within the
|
696
|
+
# user's subscription. The name is case insensitive.
|
697
|
+
# @param account_name [String] The name of the storage account within the
|
698
|
+
# specified resource group. Storage account names must be between 3 and 24
|
699
|
+
# characters in length and use numbers and lower-case letters only.
|
700
|
+
# @param share_name [String] The name of the file share within the specified
|
701
|
+
# storage account. File share names must be between 3 and 63 characters in
|
702
|
+
# length and use numbers, lower-case letters and dash (-) only. Every dash (-)
|
703
|
+
# character must be immediately preceded and followed by a letter or number.
|
704
|
+
# @param deleted_share [DeletedShare]
|
705
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
706
|
+
# will be added to the HTTP request.
|
707
|
+
#
|
708
|
+
#
|
709
|
+
def restore(resource_group_name, account_name, share_name, deleted_share, custom_headers:nil)
|
710
|
+
response = restore_async(resource_group_name, account_name, share_name, deleted_share, custom_headers:custom_headers).value!
|
711
|
+
nil
|
712
|
+
end
|
713
|
+
|
714
|
+
#
|
715
|
+
# Restore a file share within a valid retention days if share soft delete is
|
716
|
+
# enabled
|
717
|
+
#
|
718
|
+
# @param resource_group_name [String] The name of the resource group within the
|
719
|
+
# user's subscription. The name is case insensitive.
|
720
|
+
# @param account_name [String] The name of the storage account within the
|
721
|
+
# specified resource group. Storage account names must be between 3 and 24
|
722
|
+
# characters in length and use numbers and lower-case letters only.
|
723
|
+
# @param share_name [String] The name of the file share within the specified
|
724
|
+
# storage account. File share names must be between 3 and 63 characters in
|
725
|
+
# length and use numbers, lower-case letters and dash (-) only. Every dash (-)
|
726
|
+
# character must be immediately preceded and followed by a letter or number.
|
727
|
+
# @param deleted_share [DeletedShare]
|
728
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
729
|
+
# will be added to the HTTP request.
|
730
|
+
#
|
731
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
732
|
+
#
|
733
|
+
def restore_with_http_info(resource_group_name, account_name, share_name, deleted_share, custom_headers:nil)
|
734
|
+
restore_async(resource_group_name, account_name, share_name, deleted_share, custom_headers:custom_headers).value!
|
735
|
+
end
|
736
|
+
|
737
|
+
#
|
738
|
+
# Restore a file share within a valid retention days if share soft delete is
|
739
|
+
# enabled
|
740
|
+
#
|
741
|
+
# @param resource_group_name [String] The name of the resource group within the
|
742
|
+
# user's subscription. The name is case insensitive.
|
743
|
+
# @param account_name [String] The name of the storage account within the
|
744
|
+
# specified resource group. Storage account names must be between 3 and 24
|
745
|
+
# characters in length and use numbers and lower-case letters only.
|
746
|
+
# @param share_name [String] The name of the file share within the specified
|
747
|
+
# storage account. File share names must be between 3 and 63 characters in
|
748
|
+
# length and use numbers, lower-case letters and dash (-) only. Every dash (-)
|
749
|
+
# character must be immediately preceded and followed by a letter or number.
|
750
|
+
# @param deleted_share [DeletedShare]
|
751
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
752
|
+
# to the HTTP request.
|
753
|
+
#
|
754
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
755
|
+
#
|
756
|
+
def restore_async(resource_group_name, account_name, share_name, deleted_share, custom_headers:nil)
|
757
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
758
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
759
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
760
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
761
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
762
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
|
763
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
|
764
|
+
fail ArgumentError, 'share_name is nil' if share_name.nil?
|
765
|
+
fail ArgumentError, "'share_name' should satisfy the constraint - 'MaxLength': '63'" if !share_name.nil? && share_name.length > 63
|
766
|
+
fail ArgumentError, "'share_name' should satisfy the constraint - 'MinLength': '3'" if !share_name.nil? && share_name.length < 3
|
767
|
+
fail ArgumentError, 'deleted_share is nil' if deleted_share.nil?
|
768
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
769
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
770
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
771
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
772
|
+
|
773
|
+
|
774
|
+
request_headers = {}
|
775
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
776
|
+
|
777
|
+
# Set Headers
|
778
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
779
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
780
|
+
|
781
|
+
# Serialize Request
|
782
|
+
request_mapper = Azure::Storage::Mgmt::V2019_06_01::Models::DeletedShare.mapper()
|
783
|
+
request_content = @client.serialize(request_mapper, deleted_share)
|
784
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
785
|
+
|
786
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}/restore'
|
787
|
+
|
788
|
+
request_url = @base_url || @client.base_url
|
789
|
+
|
790
|
+
options = {
|
791
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
792
|
+
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'shareName' => share_name,'subscriptionId' => @client.subscription_id},
|
793
|
+
query_params: {'api-version' => @client.api_version},
|
794
|
+
body: request_content,
|
795
|
+
headers: request_headers.merge(custom_headers || {}),
|
796
|
+
base_url: request_url
|
797
|
+
}
|
798
|
+
promise = @client.make_request_async(:post, path_template, options)
|
799
|
+
|
800
|
+
promise = promise.then do |result|
|
801
|
+
http_response = result.response
|
802
|
+
status_code = http_response.status
|
803
|
+
response_content = http_response.body
|
804
|
+
unless status_code == 200
|
805
|
+
error_model = JSON.load(response_content)
|
806
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
807
|
+
end
|
808
|
+
|
809
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
810
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
811
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
812
|
+
|
813
|
+
result
|
814
|
+
end
|
815
|
+
|
816
|
+
promise.execute
|
817
|
+
end
|
818
|
+
|
679
819
|
#
|
680
820
|
# Lists all shares.
|
681
821
|
#
|
@@ -778,13 +918,15 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
778
918
|
# can be included in the list.
|
779
919
|
# @param filter [String] Optional. When specified, only share names starting
|
780
920
|
# with the filter will be listed.
|
921
|
+
# @param expand [ListSharesExpand] Optional, used to expand the properties
|
922
|
+
# within share's properties. Possible values include: 'deleted'
|
781
923
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
782
924
|
# will be added to the HTTP request.
|
783
925
|
#
|
784
926
|
# @return [FileShareItems] which provide lazy access to pages of the response.
|
785
927
|
#
|
786
|
-
def list_as_lazy(resource_group_name, account_name, maxpagesize:nil, filter:nil, custom_headers:nil)
|
787
|
-
response = list_async(resource_group_name, account_name, maxpagesize:maxpagesize, filter:filter, custom_headers:custom_headers).value!
|
928
|
+
def list_as_lazy(resource_group_name, account_name, maxpagesize:nil, filter:nil, expand:nil, custom_headers:nil)
|
929
|
+
response = list_async(resource_group_name, account_name, maxpagesize:maxpagesize, filter:filter, expand:expand, custom_headers:custom_headers).value!
|
788
930
|
unless response.nil?
|
789
931
|
page = response.body
|
790
932
|
page.next_method = Proc.new do |next_page_link|
|
@@ -13,6 +13,27 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
13
13
|
|
14
14
|
include MsRestAzure
|
15
15
|
|
16
|
+
# @return [String] The version of the deleted blob container.
|
17
|
+
attr_accessor :version
|
18
|
+
|
19
|
+
# @return [Boolean] Indicates whether the blob container was deleted.
|
20
|
+
attr_accessor :deleted
|
21
|
+
|
22
|
+
# @return [DateTime] Blob container deletion time.
|
23
|
+
attr_accessor :deleted_time
|
24
|
+
|
25
|
+
# @return [Integer] Remaining retention days for soft deleted blob
|
26
|
+
# container.
|
27
|
+
attr_accessor :remaining_retention_days
|
28
|
+
|
29
|
+
# @return [String] Default the container to use specified encryption
|
30
|
+
# scope for all writes.
|
31
|
+
attr_accessor :default_encryption_scope
|
32
|
+
|
33
|
+
# @return [Boolean] Block override of encryption scope from the container
|
34
|
+
# default.
|
35
|
+
attr_accessor :deny_encryption_scope_override
|
36
|
+
|
16
37
|
# @return [PublicAccess] Specifies whether data in the container may be
|
17
38
|
# accessed publicly and the level of access. Possible values include:
|
18
39
|
# 'Container', 'Blob', 'None'
|
@@ -109,6 +130,58 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
109
130
|
name: 'String'
|
110
131
|
}
|
111
132
|
},
|
133
|
+
version: {
|
134
|
+
client_side_validation: true,
|
135
|
+
required: false,
|
136
|
+
read_only: true,
|
137
|
+
serialized_name: 'properties.version',
|
138
|
+
type: {
|
139
|
+
name: 'String'
|
140
|
+
}
|
141
|
+
},
|
142
|
+
deleted: {
|
143
|
+
client_side_validation: true,
|
144
|
+
required: false,
|
145
|
+
read_only: true,
|
146
|
+
serialized_name: 'properties.deleted',
|
147
|
+
type: {
|
148
|
+
name: 'Boolean'
|
149
|
+
}
|
150
|
+
},
|
151
|
+
deleted_time: {
|
152
|
+
client_side_validation: true,
|
153
|
+
required: false,
|
154
|
+
read_only: true,
|
155
|
+
serialized_name: 'properties.deletedTime',
|
156
|
+
type: {
|
157
|
+
name: 'DateTime'
|
158
|
+
}
|
159
|
+
},
|
160
|
+
remaining_retention_days: {
|
161
|
+
client_side_validation: true,
|
162
|
+
required: false,
|
163
|
+
read_only: true,
|
164
|
+
serialized_name: 'properties.remainingRetentionDays',
|
165
|
+
type: {
|
166
|
+
name: 'Number'
|
167
|
+
}
|
168
|
+
},
|
169
|
+
default_encryption_scope: {
|
170
|
+
client_side_validation: true,
|
171
|
+
required: false,
|
172
|
+
serialized_name: 'properties.defaultEncryptionScope',
|
173
|
+
type: {
|
174
|
+
name: 'String'
|
175
|
+
}
|
176
|
+
},
|
177
|
+
deny_encryption_scope_override: {
|
178
|
+
client_side_validation: true,
|
179
|
+
required: false,
|
180
|
+
serialized_name: 'properties.denyEncryptionScopeOverride',
|
181
|
+
type: {
|
182
|
+
name: 'Boolean'
|
183
|
+
}
|
184
|
+
},
|
112
185
|
public_access: {
|
113
186
|
client_side_validation: true,
|
114
187
|
required: false,
|
@@ -12,10 +12,12 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
# @return [String] Blob start range. Empty means
|
15
|
+
# @return [String] Blob start range. This is inclusive. Empty means
|
16
|
+
# account start.
|
16
17
|
attr_accessor :start_range
|
17
18
|
|
18
|
-
# @return [String] Blob end range. Empty means account
|
19
|
+
# @return [String] Blob end range. This is exclusive. Empty means account
|
20
|
+
# end.
|
19
21
|
attr_accessor :end_range
|
20
22
|
|
21
23
|
|