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.
Files changed (37) hide show
  1. checksums.yaml +5 -5
  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.rb +49 -38
  13. data/lib/2019-04-01/generated/azure_mgmt_storage/blob_containers.rb +151 -8
  14. data/lib/2019-04-01/generated/azure_mgmt_storage/blob_services.rb +113 -0
  15. data/lib/2019-04-01/generated/azure_mgmt_storage/file_services.rb +377 -0
  16. data/lib/2019-04-01/generated/azure_mgmt_storage/file_shares.rb +806 -0
  17. data/lib/2019-04-01/generated/azure_mgmt_storage/models/azure_files_identity_based_authentication.rb +47 -0
  18. data/lib/2019-04-01/generated/azure_mgmt_storage/models/blob_service_items.rb +57 -0
  19. data/lib/2019-04-01/generated/azure_mgmt_storage/models/blob_service_properties.rb +13 -0
  20. data/lib/2019-04-01/generated/azure_mgmt_storage/models/change_feed.rb +47 -0
  21. data/lib/2019-04-01/generated/azure_mgmt_storage/models/date_after_creation.rb +4 -4
  22. data/lib/2019-04-01/generated/azure_mgmt_storage/models/date_after_modification.rb +4 -3
  23. data/lib/2019-04-01/generated/azure_mgmt_storage/models/directory_service_options.rb +16 -0
  24. data/lib/2019-04-01/generated/azure_mgmt_storage/models/file_service_items.rb +57 -0
  25. data/lib/2019-04-01/generated/azure_mgmt_storage/models/file_service_properties.rb +77 -0
  26. data/lib/2019-04-01/generated/azure_mgmt_storage/models/file_share.rb +121 -0
  27. data/lib/2019-04-01/generated/azure_mgmt_storage/models/file_share_item.rb +120 -0
  28. data/lib/2019-04-01/generated/azure_mgmt_storage/models/file_share_items.rb +103 -0
  29. data/lib/2019-04-01/generated/azure_mgmt_storage/models/list_container_items.rb +50 -2
  30. data/lib/2019-04-01/generated/azure_mgmt_storage/models/storage_account.rb +7 -6
  31. data/lib/2019-04-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb +10 -10
  32. data/lib/2019-04-01/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb +7 -6
  33. data/lib/2019-04-01/generated/azure_mgmt_storage/storage_management_client.rb +9 -1
  34. data/lib/azure_mgmt_storage.rb +8 -8
  35. data/lib/profiles/latest/modules/storage_profile_module.rb +165 -125
  36. data/lib/version.rb +1 -1
  37. metadata +14 -3
@@ -0,0 +1,120 @@
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_04_01
7
+ module Models
8
+ #
9
+ # The file share properties be listed out.
10
+ #
11
+ class FileShareItem < AzureEntityResource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [DateTime] Returns the date and time the share was last
16
+ # modified.
17
+ attr_accessor :last_modified_time
18
+
19
+ # @return [Hash{String => String}] A name-value pair to associate with
20
+ # the share as metadata.
21
+ attr_accessor :metadata
22
+
23
+ # @return [Integer] The maximum size of the share, in gigabytes. Must be
24
+ # greater than 0, and less than or equal to 5TB (5120).
25
+ attr_accessor :share_quota
26
+
27
+
28
+ #
29
+ # Mapper for FileShareItem class as Ruby Hash.
30
+ # This will be used for serialization/deserialization.
31
+ #
32
+ def self.mapper()
33
+ {
34
+ client_side_validation: true,
35
+ required: false,
36
+ serialized_name: 'FileShareItem',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'FileShareItem',
40
+ model_properties: {
41
+ id: {
42
+ client_side_validation: true,
43
+ required: false,
44
+ read_only: true,
45
+ serialized_name: 'id',
46
+ type: {
47
+ name: 'String'
48
+ }
49
+ },
50
+ name: {
51
+ client_side_validation: true,
52
+ required: false,
53
+ read_only: true,
54
+ serialized_name: 'name',
55
+ type: {
56
+ name: 'String'
57
+ }
58
+ },
59
+ type: {
60
+ client_side_validation: true,
61
+ required: false,
62
+ read_only: true,
63
+ serialized_name: 'type',
64
+ type: {
65
+ name: 'String'
66
+ }
67
+ },
68
+ etag: {
69
+ client_side_validation: true,
70
+ required: false,
71
+ read_only: true,
72
+ serialized_name: 'etag',
73
+ type: {
74
+ name: 'String'
75
+ }
76
+ },
77
+ last_modified_time: {
78
+ client_side_validation: true,
79
+ required: false,
80
+ read_only: true,
81
+ serialized_name: 'properties.lastModifiedTime',
82
+ type: {
83
+ name: 'DateTime'
84
+ }
85
+ },
86
+ metadata: {
87
+ client_side_validation: true,
88
+ required: false,
89
+ serialized_name: 'properties.metadata',
90
+ type: {
91
+ name: 'Dictionary',
92
+ value: {
93
+ client_side_validation: true,
94
+ required: false,
95
+ serialized_name: 'StringElementType',
96
+ type: {
97
+ name: 'String'
98
+ }
99
+ }
100
+ }
101
+ },
102
+ share_quota: {
103
+ client_side_validation: true,
104
+ required: false,
105
+ serialized_name: 'properties.shareQuota',
106
+ constraints: {
107
+ InclusiveMaximum: 5120,
108
+ InclusiveMinimum: 1
109
+ },
110
+ type: {
111
+ name: 'Number'
112
+ }
113
+ }
114
+ }
115
+ }
116
+ }
117
+ end
118
+ end
119
+ end
120
+ end
@@ -0,0 +1,103 @@
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_04_01
7
+ module Models
8
+ #
9
+ # Response schema. Contains list of shares returned, and if paging is
10
+ # requested or required, a URL to next page of shares.
11
+ #
12
+ class FileShareItems
13
+
14
+ include MsRestAzure
15
+
16
+ include MsRest::JSONable
17
+ # @return [Array<FileShareItem>] List of file shares returned.
18
+ attr_accessor :value
19
+
20
+ # @return [String] Request URL that can be used to query next page of
21
+ # shares. Returned when total number of requested shares exceed maximum
22
+ # page size.
23
+ attr_accessor :next_link
24
+
25
+ # return [Proc] with next page method call.
26
+ attr_accessor :next_method
27
+
28
+ #
29
+ # Gets the rest of the items for the request, enabling auto-pagination.
30
+ #
31
+ # @return [Array<FileShareItem>] operation results.
32
+ #
33
+ def get_all_items
34
+ items = @value
35
+ page = self
36
+ while page.next_link != nil && !page.next_link.strip.empty? do
37
+ page = page.get_next_page
38
+ items.concat(page.value)
39
+ end
40
+ items
41
+ end
42
+
43
+ #
44
+ # Gets the next page of results.
45
+ #
46
+ # @return [FileShareItems] with next page content.
47
+ #
48
+ def get_next_page
49
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
50
+ unless response.nil?
51
+ @next_link = response.body.next_link
52
+ @value = response.body.value
53
+ self
54
+ end
55
+ end
56
+
57
+ #
58
+ # Mapper for FileShareItems class as Ruby Hash.
59
+ # This will be used for serialization/deserialization.
60
+ #
61
+ def self.mapper()
62
+ {
63
+ client_side_validation: true,
64
+ required: false,
65
+ serialized_name: 'FileShareItems',
66
+ type: {
67
+ name: 'Composite',
68
+ class_name: 'FileShareItems',
69
+ model_properties: {
70
+ value: {
71
+ client_side_validation: true,
72
+ required: false,
73
+ read_only: true,
74
+ serialized_name: 'value',
75
+ type: {
76
+ name: 'Sequence',
77
+ element: {
78
+ client_side_validation: true,
79
+ required: false,
80
+ serialized_name: 'FileShareItemElementType',
81
+ type: {
82
+ name: 'Composite',
83
+ class_name: 'FileShareItem'
84
+ }
85
+ }
86
+ }
87
+ },
88
+ next_link: {
89
+ client_side_validation: true,
90
+ required: false,
91
+ read_only: true,
92
+ serialized_name: 'nextLink',
93
+ type: {
94
+ name: 'String'
95
+ }
96
+ }
97
+ }
98
+ }
99
+ }
100
+ end
101
+ end
102
+ end
103
+ end
@@ -6,15 +6,53 @@
6
6
  module Azure::Storage::Mgmt::V2019_04_01
7
7
  module Models
8
8
  #
9
- # The list of blob containers.
9
+ # Response schema. Contains list of blobs returned, and if paging is
10
+ # requested or required, a URL to next page of containers.
10
11
  #
11
12
  class ListContainerItems
12
13
 
13
14
  include MsRestAzure
14
15
 
15
- # @return [Array<ListContainerItem>] The list of blob containers.
16
+ include MsRest::JSONable
17
+ # @return [Array<ListContainerItem>] List of blobs containers returned.
16
18
  attr_accessor :value
17
19
 
20
+ # @return [String] Request URL that can be used to query next page of
21
+ # containers. Returned when total number of requested containers exceed
22
+ # maximum page size.
23
+ attr_accessor :next_link
24
+
25
+ # return [Proc] with next page method call.
26
+ attr_accessor :next_method
27
+
28
+ #
29
+ # Gets the rest of the items for the request, enabling auto-pagination.
30
+ #
31
+ # @return [Array<ListContainerItem>] operation results.
32
+ #
33
+ def get_all_items
34
+ items = @value
35
+ page = self
36
+ while page.next_link != nil && !page.next_link.strip.empty? do
37
+ page = page.get_next_page
38
+ items.concat(page.value)
39
+ end
40
+ items
41
+ end
42
+
43
+ #
44
+ # Gets the next page of results.
45
+ #
46
+ # @return [ListContainerItems] with next page content.
47
+ #
48
+ def get_next_page
49
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
50
+ unless response.nil?
51
+ @next_link = response.body.next_link
52
+ @value = response.body.value
53
+ self
54
+ end
55
+ end
18
56
 
19
57
  #
20
58
  # Mapper for ListContainerItems class as Ruby Hash.
@@ -32,6 +70,7 @@ module Azure::Storage::Mgmt::V2019_04_01
32
70
  value: {
33
71
  client_side_validation: true,
34
72
  required: false,
73
+ read_only: true,
35
74
  serialized_name: 'value',
36
75
  type: {
37
76
  name: 'Sequence',
@@ -45,6 +84,15 @@ module Azure::Storage::Mgmt::V2019_04_01
45
84
  }
46
85
  }
47
86
  }
87
+ },
88
+ next_link: {
89
+ client_side_validation: true,
90
+ required: false,
91
+ read_only: true,
92
+ serialized_name: 'nextLink',
93
+ type: {
94
+ name: 'String'
95
+ }
48
96
  }
49
97
  }
50
98
  }
@@ -81,9 +81,9 @@ module Azure::Storage::Mgmt::V2019_04_01
81
81
  # 'Hot', 'Cool'
82
82
  attr_accessor :access_tier
83
83
 
84
- # @return [Boolean] Enables Azure Files AAD Integration for SMB if sets
85
- # to true.
86
- attr_accessor :enable_azure_files_aad_integration
84
+ # @return [AzureFilesIdentityBasedAuthentication] Provides the identity
85
+ # based authentication settings for Azure Files.
86
+ attr_accessor :azure_files_identity_based_authentication
87
87
 
88
88
  # @return [Boolean] Allows https traffic only to storage service if sets
89
89
  # to true.
@@ -312,12 +312,13 @@ module Azure::Storage::Mgmt::V2019_04_01
312
312
  module: 'AccessTier'
313
313
  }
314
314
  },
315
- enable_azure_files_aad_integration: {
315
+ azure_files_identity_based_authentication: {
316
316
  client_side_validation: true,
317
317
  required: false,
318
- serialized_name: 'properties.azureFilesAadIntegration',
318
+ serialized_name: 'properties.azureFilesIdentityBasedAuthentication',
319
319
  type: {
320
- name: 'Boolean'
320
+ name: 'Composite',
321
+ class_name: 'AzureFilesIdentityBasedAuthentication'
321
322
  }
322
323
  },
323
324
  enable_https_traffic_only: {
@@ -44,9 +44,8 @@ module Azure::Storage::Mgmt::V2019_04_01
44
44
  # an empty string for the custom domain name property.
45
45
  attr_accessor :custom_domain
46
46
 
47
- # @return [Encryption] Provides the encryption settings on the account.
48
- # If left unspecified the account encryption settings will remain the
49
- # same. The default setting is unencrypted.
47
+ # @return [Encryption] Not applicable. Azure Storage encryption is
48
+ # enabled for all storage accounts and cannot be disabled.
50
49
  attr_accessor :encryption
51
50
 
52
51
  # @return [NetworkRuleSet] Network rule set
@@ -57,12 +56,12 @@ module Azure::Storage::Mgmt::V2019_04_01
57
56
  # 'Hot', 'Cool'
58
57
  attr_accessor :access_tier
59
58
 
60
- # @return [Boolean] Enables Azure Files AAD Integration for SMB if sets
61
- # to true.
62
- attr_accessor :enable_azure_files_aad_integration
59
+ # @return [AzureFilesIdentityBasedAuthentication] Provides the identity
60
+ # based authentication settings for Azure Files.
61
+ attr_accessor :azure_files_identity_based_authentication
63
62
 
64
63
  # @return [Boolean] Allows https traffic only to storage service if sets
65
- # to true.
64
+ # to true. The default value is true since API version 2019-04-01.
66
65
  attr_accessor :enable_https_traffic_only
67
66
 
68
67
  # @return [Boolean] Account HierarchicalNamespace enabled if sets to
@@ -169,12 +168,13 @@ module Azure::Storage::Mgmt::V2019_04_01
169
168
  module: 'AccessTier'
170
169
  }
171
170
  },
172
- enable_azure_files_aad_integration: {
171
+ azure_files_identity_based_authentication: {
173
172
  client_side_validation: true,
174
173
  required: false,
175
- serialized_name: 'properties.azureFilesAadIntegration',
174
+ serialized_name: 'properties.azureFilesIdentityBasedAuthentication',
176
175
  type: {
177
- name: 'Boolean'
176
+ name: 'Composite',
177
+ class_name: 'AzureFilesIdentityBasedAuthentication'
178
178
  }
179
179
  },
180
180
  enable_https_traffic_only: {
@@ -44,9 +44,9 @@ module Azure::Storage::Mgmt::V2019_04_01
44
44
  # 'Hot', 'Cool'
45
45
  attr_accessor :access_tier
46
46
 
47
- # @return [Boolean] Enables Azure Files AAD Integration for SMB if sets
48
- # to true.
49
- attr_accessor :enable_azure_files_aad_integration
47
+ # @return [AzureFilesIdentityBasedAuthentication] Provides the identity
48
+ # based authentication settings for Azure Files.
49
+ attr_accessor :azure_files_identity_based_authentication
50
50
 
51
51
  # @return [Boolean] Allows https traffic only to storage service if sets
52
52
  # to true.
@@ -136,12 +136,13 @@ module Azure::Storage::Mgmt::V2019_04_01
136
136
  module: 'AccessTier'
137
137
  }
138
138
  },
139
- enable_azure_files_aad_integration: {
139
+ azure_files_identity_based_authentication: {
140
140
  client_side_validation: true,
141
141
  required: false,
142
- serialized_name: 'properties.azureFilesAadIntegration',
142
+ serialized_name: 'properties.azureFilesIdentityBasedAuthentication',
143
143
  type: {
144
- name: 'Boolean'
144
+ name: 'Composite',
145
+ class_name: 'AzureFilesIdentityBasedAuthentication'
145
146
  }
146
147
  },
147
148
  enable_https_traffic_only: {
@@ -56,6 +56,12 @@ module Azure::Storage::Mgmt::V2019_04_01
56
56
  # @return [BlobContainers] blob_containers
57
57
  attr_reader :blob_containers
58
58
 
59
+ # @return [FileServices] file_services
60
+ attr_reader :file_services
61
+
62
+ # @return [FileShares] file_shares
63
+ attr_reader :file_shares
64
+
59
65
  #
60
66
  # Creates initializes a new instance of the StorageManagementClient class.
61
67
  # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
@@ -76,6 +82,8 @@ module Azure::Storage::Mgmt::V2019_04_01
76
82
  @management_policies = ManagementPolicies.new(self)
77
83
  @blob_services = BlobServices.new(self)
78
84
  @blob_containers = BlobContainers.new(self)
85
+ @file_services = FileServices.new(self)
86
+ @file_shares = FileShares.new(self)
79
87
  @api_version = '2019-04-01'
80
88
  @accept_language = 'en-US'
81
89
  @long_running_operation_retry_timeout = 30
@@ -148,7 +156,7 @@ module Azure::Storage::Mgmt::V2019_04_01
148
156
  #
149
157
  def add_telemetry
150
158
  sdk_information = 'azure_mgmt_storage'
151
- sdk_information = "#{sdk_information}/0.17.10"
159
+ sdk_information = "#{sdk_information}/0.18.0"
152
160
  add_user_agent_information(sdk_information)
153
161
  end
154
162
  end
@@ -2,18 +2,18 @@
2
2
  # Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  # Licensed under the MIT License. See License.txt in the project root for license information.
4
4
 
5
+ require '2018-07-01/generated/azure_mgmt_storage'
5
6
  require '2018-03-01-preview/generated/azure_mgmt_storage'
6
- require '2017-10-01/generated/azure_mgmt_storage'
7
7
  require '2018-02-01/generated/azure_mgmt_storage'
8
- require '2016-01-01/generated/azure_mgmt_storage'
9
- require '2018-07-01/generated/azure_mgmt_storage'
10
- require '2015-06-15/generated/azure_mgmt_storage'
11
- require '2015-05-01-preview/generated/azure_mgmt_storage'
12
- require '2018-11-01/generated/azure_mgmt_storage'
13
8
  require '2016-12-01/generated/azure_mgmt_storage'
9
+ require '2018-11-01/generated/azure_mgmt_storage'
10
+ require '2015-05-01-preview/generated/azure_mgmt_storage'
11
+ require '2015-06-15/generated/azure_mgmt_storage'
14
12
  require '2019-04-01/generated/azure_mgmt_storage'
13
+ require '2017-10-01/generated/azure_mgmt_storage'
14
+ require '2016-01-01/generated/azure_mgmt_storage'
15
15
  require '2017-06-01/generated/azure_mgmt_storage'
16
- require 'profiles/v2017_03_09/storage_v2017_03_09_profile_client'
17
16
  require 'profiles/latest/storage_latest_profile_client'
18
- require 'profiles/v2019_03_01_hybrid/storage_v2019_03_01_hybrid_profile_client'
17
+ require 'profiles/v2017_03_09/storage_v2017_03_09_profile_client'
19
18
  require 'profiles/v2018_03_01/storage_v2018_03_01_profile_client'
19
+ require 'profiles/v2019_03_01_hybrid/storage_v2019_03_01_hybrid_profile_client'