azure_mgmt_storage 0.19.2 → 0.21.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-05-01-preview/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
  3. data/lib/2015-06-15/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
  4. data/lib/2016-01-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
  5. data/lib/2016-12-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
  6. data/lib/2017-06-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
  7. data/lib/2017-10-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
  8. data/lib/2018-02-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
  9. data/lib/2018-03-01-preview/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
  10. data/lib/2018-07-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
  11. data/lib/2018-11-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
  12. data/lib/2019-04-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
  13. data/lib/2019-06-01/generated/azure_mgmt_storage.rb +63 -45
  14. data/lib/2019-06-01/generated/azure_mgmt_storage/encryption_scopes.rb +691 -0
  15. data/lib/2019-06-01/generated/azure_mgmt_storage/file_shares.rb +156 -14
  16. data/lib/2019-06-01/generated/azure_mgmt_storage/models/blob_container.rb +24 -0
  17. data/lib/2019-06-01/generated/azure_mgmt_storage/models/blob_restore_range.rb +4 -2
  18. data/lib/2019-06-01/generated/azure_mgmt_storage/models/blob_service_properties.rb +25 -1
  19. data/lib/2019-06-01/generated/azure_mgmt_storage/models/deleted_share.rb +59 -0
  20. data/lib/2019-06-01/generated/azure_mgmt_storage/models/enabled_protocols.rb +16 -0
  21. data/lib/2019-06-01/generated/azure_mgmt_storage/models/encryption_scope.rb +129 -0
  22. data/lib/2019-06-01/generated/azure_mgmt_storage/models/encryption_scope_key_vault_properties.rb +51 -0
  23. data/lib/2019-06-01/generated/azure_mgmt_storage/models/encryption_scope_list_result.rb +103 -0
  24. data/lib/2019-06-01/generated/azure_mgmt_storage/models/encryption_scope_source.rb +16 -0
  25. data/lib/2019-06-01/generated/azure_mgmt_storage/models/encryption_scope_state.rb +16 -0
  26. data/lib/2019-06-01/generated/azure_mgmt_storage/models/file_share.rb +129 -0
  27. data/lib/2019-06-01/generated/azure_mgmt_storage/models/file_share_item.rb +129 -0
  28. data/lib/2019-06-01/generated/azure_mgmt_storage/models/get_share_expand.rb +15 -0
  29. data/lib/2019-06-01/generated/azure_mgmt_storage/models/immutability_policy.rb +17 -1
  30. data/lib/2019-06-01/generated/azure_mgmt_storage/models/immutability_policy_properties.rb +17 -1
  31. data/lib/2019-06-01/generated/azure_mgmt_storage/models/key_vault_properties.rb +25 -0
  32. data/lib/2019-06-01/generated/azure_mgmt_storage/models/list_container_item.rb +24 -0
  33. data/lib/2019-06-01/generated/azure_mgmt_storage/models/list_shares_expand.rb +15 -0
  34. data/lib/2019-06-01/generated/azure_mgmt_storage/models/management_policy_filter.rb +21 -0
  35. data/lib/2019-06-01/generated/azure_mgmt_storage/models/object_replication_policies.rb +56 -0
  36. data/lib/2019-06-01/generated/azure_mgmt_storage/models/object_replication_policy.rb +131 -0
  37. data/lib/2019-06-01/generated/azure_mgmt_storage/models/object_replication_policy_filter.rb +70 -0
  38. data/lib/2019-06-01/generated/azure_mgmt_storage/models/object_replication_policy_rule.rb +82 -0
  39. data/lib/2019-06-01/generated/azure_mgmt_storage/models/restore_policy_properties.rb +13 -0
  40. data/lib/2019-06-01/generated/azure_mgmt_storage/models/root_squash_type.rb +17 -0
  41. data/lib/2019-06-01/generated/azure_mgmt_storage/models/share_access_tier.rb +18 -0
  42. data/lib/2019-06-01/generated/azure_mgmt_storage/models/tag_filter.rb +80 -0
  43. data/lib/2019-06-01/generated/azure_mgmt_storage/object_replication_policies_operations.rb +495 -0
  44. data/lib/2019-06-01/generated/azure_mgmt_storage/storage_management_client.rb +10 -1
  45. data/lib/azure_mgmt_storage.rb +10 -10
  46. data/lib/profiles/latest/modules/storage_profile_module.rb +223 -155
  47. data/lib/version.rb +1 -1
  48. metadata +22 -4
@@ -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,14 @@ module Azure::Storage::Mgmt::V2019_06_01
13
13
 
14
14
  include MsRestAzure
15
15
 
16
+ # @return [String] Default the container to use specified encryption
17
+ # scope for all writes.
18
+ attr_accessor :default_encryption_scope
19
+
20
+ # @return [Boolean] Block override of encryption scope from the container
21
+ # default.
22
+ attr_accessor :deny_encryption_scope_override
23
+
16
24
  # @return [PublicAccess] Specifies whether data in the container may be
17
25
  # accessed publicly and the level of access. Possible values include:
18
26
  # 'Container', 'Blob', 'None'
@@ -109,6 +117,22 @@ module Azure::Storage::Mgmt::V2019_06_01
109
117
  name: 'String'
110
118
  }
111
119
  },
120
+ default_encryption_scope: {
121
+ client_side_validation: true,
122
+ required: false,
123
+ serialized_name: 'properties.defaultEncryptionScope',
124
+ type: {
125
+ name: 'String'
126
+ }
127
+ },
128
+ deny_encryption_scope_override: {
129
+ client_side_validation: true,
130
+ required: false,
131
+ serialized_name: 'properties.denyEncryptionScopeOverride',
132
+ type: {
133
+ name: 'Boolean'
134
+ }
135
+ },
112
136
  public_access: {
113
137
  client_side_validation: true,
114
138
  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 account start.
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 end.
19
+ # @return [String] Blob end range. This is exclusive. Empty means account
20
+ # end.
19
21
  attr_accessor :end_range
20
22
 
21
23
 
@@ -28,7 +28,10 @@ module Azure::Storage::Mgmt::V2019_06_01
28
28
  # soft delete.
29
29
  attr_accessor :delete_retention_policy
30
30
 
31
- # @return [Boolean] Automatic Snapshot is enabled if set to true.
31
+ # @return [Boolean] Versioning is enabled if set to true.
32
+ attr_accessor :is_versioning_enabled
33
+
34
+ # @return [Boolean] Deprecated in favor of isVersioningEnabled property.
32
35
  attr_accessor :automatic_snapshot_policy_enabled
33
36
 
34
37
  # @return [ChangeFeed] The blob service properties for change feed
@@ -39,6 +42,10 @@ module Azure::Storage::Mgmt::V2019_06_01
39
42
  # restore policy.
40
43
  attr_accessor :restore_policy
41
44
 
45
+ # @return [DeleteRetentionPolicy] The blob service properties for
46
+ # container soft delete.
47
+ attr_accessor :container_delete_retention_policy
48
+
42
49
  # @return [Sku] Sku name and tier.
43
50
  attr_accessor :sku
44
51
 
@@ -109,6 +116,14 @@ module Azure::Storage::Mgmt::V2019_06_01
109
116
  class_name: 'DeleteRetentionPolicy'
110
117
  }
111
118
  },
119
+ is_versioning_enabled: {
120
+ client_side_validation: true,
121
+ required: false,
122
+ serialized_name: 'properties.isVersioningEnabled',
123
+ type: {
124
+ name: 'Boolean'
125
+ }
126
+ },
112
127
  automatic_snapshot_policy_enabled: {
113
128
  client_side_validation: true,
114
129
  required: false,
@@ -135,6 +150,15 @@ module Azure::Storage::Mgmt::V2019_06_01
135
150
  class_name: 'RestorePolicyProperties'
136
151
  }
137
152
  },
153
+ container_delete_retention_policy: {
154
+ client_side_validation: true,
155
+ required: false,
156
+ serialized_name: 'properties.containerDeleteRetentionPolicy',
157
+ type: {
158
+ name: 'Composite',
159
+ class_name: 'DeleteRetentionPolicy'
160
+ }
161
+ },
138
162
  sku: {
139
163
  client_side_validation: true,
140
164
  required: false,
@@ -0,0 +1,59 @@
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::V2019_06_01
7
+ module Models
8
+ #
9
+ # The deleted share to be restored.
10
+ #
11
+ class DeletedShare
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Required. Identify the name of the deleted share that
16
+ # will be restored.
17
+ attr_accessor :deleted_share_name
18
+
19
+ # @return [String] Required. Identify the version of the deleted share
20
+ # that will be restored.
21
+ attr_accessor :deleted_share_version
22
+
23
+
24
+ #
25
+ # Mapper for DeletedShare class as Ruby Hash.
26
+ # This will be used for serialization/deserialization.
27
+ #
28
+ def self.mapper()
29
+ {
30
+ client_side_validation: true,
31
+ required: false,
32
+ serialized_name: 'DeletedShare',
33
+ type: {
34
+ name: 'Composite',
35
+ class_name: 'DeletedShare',
36
+ model_properties: {
37
+ deleted_share_name: {
38
+ client_side_validation: true,
39
+ required: true,
40
+ serialized_name: 'deletedShareName',
41
+ type: {
42
+ name: 'String'
43
+ }
44
+ },
45
+ deleted_share_version: {
46
+ client_side_validation: true,
47
+ required: true,
48
+ serialized_name: 'deletedShareVersion',
49
+ type: {
50
+ name: 'String'
51
+ }
52
+ }
53
+ }
54
+ }
55
+ }
56
+ end
57
+ end
58
+ end
59
+ end
@@ -0,0 +1,16 @@
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::V2019_06_01
7
+ module Models
8
+ #
9
+ # Defines values for EnabledProtocols
10
+ #
11
+ module EnabledProtocols
12
+ SMB = "SMB"
13
+ NFS = "NFS"
14
+ end
15
+ end
16
+ end