azure_mgmt_storage 0.18.0 → 0.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (22) 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.rb +1 -0
  13. data/lib/2019-04-01/generated/azure_mgmt_storage/models/large_file_shares_state.rb +16 -0
  14. data/lib/2019-04-01/generated/azure_mgmt_storage/models/storage_account.rb +13 -0
  15. data/lib/2019-04-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb +13 -0
  16. data/lib/2019-04-01/generated/azure_mgmt_storage/models/storage_account_list_result.rb +46 -0
  17. data/lib/2019-04-01/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb +13 -0
  18. data/lib/2019-04-01/generated/azure_mgmt_storage/storage_accounts.rb +117 -3
  19. data/lib/2019-04-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
  20. data/lib/profiles/latest/modules/storage_profile_module.rb +4 -0
  21. data/lib/version.rb +1 -1
  22. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 69102e2b80f6e0f0107dd51fb8e1aaa06df18a49dc8eb4d96a3b7e0bdd172e29
4
- data.tar.gz: 489fcb64a7ebef04639220c1a477721ab00a4a51f6a7f753598cd18dcdea9eaa
3
+ metadata.gz: 2f4cae4723fca89119ffc8861cb7602911f6f344afb410b5770c57b1e2015e23
4
+ data.tar.gz: 7bd02a19c4afd648cbf9d539fe1c46aa8e5d74a775e4593ca7dc88ac38db4e08
5
5
  SHA512:
6
- metadata.gz: 66a21cad7349b516dff80e9d975ff1229b57c84266ce03051201ae8ce3f0cc4e2ad11971f808090c882466a91d06dac128d793c86a9abfda2ebd51d2db908aec
7
- data.tar.gz: 334d59ac210279629f2302be625a43ba2534d21cdff34f6e1b41654ae0fcfb9dc1344aa9e3026a2c482547172a0c286e0aca7aea642b0e82064e4bae417a2690
6
+ metadata.gz: 2f31bf97ff21fb0c1942dbaa2d823419fc6a849ceccdcabb1d4cf29cfd1bcfb7655cb4b5a096fee6e9b66b179749383355b72e21813e61f3902a6141d161c0a7
7
+ data.tar.gz: ef36929f799f744417c81082c07f5eedcde832ddb60a3b5d1009adbc7badf36a4c34d9828e09eb95ed95c5c89e4a6331919c9a856b6d94db2e85f1010fdfd60d
@@ -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.18.0"
133
+ sdk_information = "#{sdk_information}/0.18.1"
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.18.0"
133
+ sdk_information = "#{sdk_information}/0.18.1"
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.18.0"
133
+ sdk_information = "#{sdk_information}/0.18.1"
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.18.0"
133
+ sdk_information = "#{sdk_information}/0.18.1"
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.18.0"
141
+ sdk_information = "#{sdk_information}/0.18.1"
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.18.0"
141
+ sdk_information = "#{sdk_information}/0.18.1"
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.18.0"
143
+ sdk_information = "#{sdk_information}/0.18.1"
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.18.0"
143
+ sdk_information = "#{sdk_information}/0.18.1"
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.18.0"
147
+ sdk_information = "#{sdk_information}/0.18.1"
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.18.0"
151
+ sdk_information = "#{sdk_information}/0.18.1"
152
152
  add_user_agent_information(sdk_information)
153
153
  end
154
154
  end
@@ -118,6 +118,7 @@ module Azure::Storage::Mgmt::V2019_04_01
118
118
  autoload :DefaultAction, '2019-04-01/generated/azure_mgmt_storage/models/default_action.rb'
119
119
  autoload :DirectoryServiceOptions, '2019-04-01/generated/azure_mgmt_storage/models/directory_service_options.rb'
120
120
  autoload :AccessTier, '2019-04-01/generated/azure_mgmt_storage/models/access_tier.rb'
121
+ autoload :LargeFileSharesState, '2019-04-01/generated/azure_mgmt_storage/models/large_file_shares_state.rb'
121
122
  autoload :GeoReplicationStatus, '2019-04-01/generated/azure_mgmt_storage/models/geo_replication_status.rb'
122
123
  autoload :ProvisioningState, '2019-04-01/generated/azure_mgmt_storage/models/provisioning_state.rb'
123
124
  autoload :AccountStatus, '2019-04-01/generated/azure_mgmt_storage/models/account_status.rb'
@@ -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_04_01
7
+ module Models
8
+ #
9
+ # Defines values for LargeFileSharesState
10
+ #
11
+ module LargeFileSharesState
12
+ Disabled = "Disabled"
13
+ Enabled = "Enabled"
14
+ end
15
+ end
16
+ end
@@ -103,6 +103,11 @@ module Azure::Storage::Mgmt::V2019_04_01
103
103
  # true, otherwise, it will be null.
104
104
  attr_accessor :failover_in_progress
105
105
 
106
+ # @return [LargeFileSharesState] Allow large file shares if sets to
107
+ # Enabled. It cannot be disabled once it is enabled. Possible values
108
+ # include: 'Disabled', 'Enabled'
109
+ attr_accessor :large_file_shares_state
110
+
106
111
 
107
112
  #
108
113
  # Mapper for StorageAccount class as Ruby Hash.
@@ -365,6 +370,14 @@ module Azure::Storage::Mgmt::V2019_04_01
365
370
  type: {
366
371
  name: 'Boolean'
367
372
  }
373
+ },
374
+ large_file_shares_state: {
375
+ client_side_validation: true,
376
+ required: false,
377
+ serialized_name: 'properties.largeFileSharesState',
378
+ type: {
379
+ name: 'String'
380
+ }
368
381
  }
369
382
  }
370
383
  }
@@ -68,6 +68,11 @@ module Azure::Storage::Mgmt::V2019_04_01
68
68
  # true.
69
69
  attr_accessor :is_hns_enabled
70
70
 
71
+ # @return [LargeFileSharesState] Allow large file shares if sets to
72
+ # Enabled. It cannot be disabled once it is enabled. Possible values
73
+ # include: 'Disabled', 'Enabled'
74
+ attr_accessor :large_file_shares_state
75
+
71
76
 
72
77
  #
73
78
  # Mapper for StorageAccountCreateParameters class as Ruby Hash.
@@ -192,6 +197,14 @@ module Azure::Storage::Mgmt::V2019_04_01
192
197
  type: {
193
198
  name: 'Boolean'
194
199
  }
200
+ },
201
+ large_file_shares_state: {
202
+ client_side_validation: true,
203
+ required: false,
204
+ serialized_name: 'properties.largeFileSharesState',
205
+ type: {
206
+ name: 'String'
207
+ }
195
208
  }
196
209
  }
197
210
  }
@@ -12,10 +12,47 @@ module Azure::Storage::Mgmt::V2019_04_01
12
12
 
13
13
  include MsRestAzure
14
14
 
15
+ include MsRest::JSONable
15
16
  # @return [Array<StorageAccount>] Gets the list of storage accounts and
16
17
  # their properties.
17
18
  attr_accessor :value
18
19
 
20
+ # @return [String] Request URL that can be used to query next page of
21
+ # storage accounts. Returned when total number of requested storage
22
+ # accounts exceed 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<StorageAccount>] 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 [StorageAccountListResult] 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
19
56
 
20
57
  #
21
58
  # Mapper for StorageAccountListResult class as Ruby Hash.
@@ -47,6 +84,15 @@ module Azure::Storage::Mgmt::V2019_04_01
47
84
  }
48
85
  }
49
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
+ }
50
96
  }
51
97
  }
52
98
  }
@@ -55,6 +55,11 @@ module Azure::Storage::Mgmt::V2019_04_01
55
55
  # @return [NetworkRuleSet] Network rule set
56
56
  attr_accessor :network_rule_set
57
57
 
58
+ # @return [LargeFileSharesState] Allow large file shares if sets to
59
+ # Enabled. It cannot be disabled once it is enabled. Possible values
60
+ # include: 'Disabled', 'Enabled'
61
+ attr_accessor :large_file_shares_state
62
+
58
63
  # @return [Kind] Optional. Indicates the type of storage account.
59
64
  # Currently only StorageV2 value supported by server. Possible values
60
65
  # include: 'Storage', 'StorageV2', 'BlobStorage', 'FileStorage',
@@ -162,6 +167,14 @@ module Azure::Storage::Mgmt::V2019_04_01
162
167
  class_name: 'NetworkRuleSet'
163
168
  }
164
169
  },
170
+ large_file_shares_state: {
171
+ client_side_validation: true,
172
+ required: false,
173
+ serialized_name: 'properties.largeFileSharesState',
174
+ type: {
175
+ name: 'String'
176
+ }
177
+ },
165
178
  kind: {
166
179
  client_side_validation: true,
167
180
  required: false,
@@ -567,11 +567,11 @@ module Azure::Storage::Mgmt::V2019_04_01
567
567
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
568
568
  # will be added to the HTTP request.
569
569
  #
570
- # @return [StorageAccountListResult] operation results.
570
+ # @return [Array<StorageAccount>] operation results.
571
571
  #
572
572
  def list(custom_headers:nil)
573
- response = list_async(custom_headers:custom_headers).value!
574
- response.body unless response.nil?
573
+ first_page = list_as_lazy(custom_headers:custom_headers)
574
+ first_page.get_all_items
575
575
  end
576
576
 
577
577
  #
@@ -1624,5 +1624,119 @@ module Azure::Storage::Mgmt::V2019_04_01
1624
1624
  promise.execute
1625
1625
  end
1626
1626
 
1627
+ #
1628
+ # Lists all the storage accounts available under the subscription. Note that
1629
+ # storage keys are not returned; use the ListKeys operation for this.
1630
+ #
1631
+ # @param next_page_link [String] The NextLink from the previous successful call
1632
+ # to List operation.
1633
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1634
+ # will be added to the HTTP request.
1635
+ #
1636
+ # @return [StorageAccountListResult] operation results.
1637
+ #
1638
+ def list_next(next_page_link, custom_headers:nil)
1639
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
1640
+ response.body unless response.nil?
1641
+ end
1642
+
1643
+ #
1644
+ # Lists all the storage accounts available under the subscription. Note that
1645
+ # storage keys are not returned; use the ListKeys operation for this.
1646
+ #
1647
+ # @param next_page_link [String] The NextLink from the previous successful call
1648
+ # to List operation.
1649
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1650
+ # will be added to the HTTP request.
1651
+ #
1652
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1653
+ #
1654
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
1655
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
1656
+ end
1657
+
1658
+ #
1659
+ # Lists all the storage accounts available under the subscription. Note that
1660
+ # storage keys are not returned; use the ListKeys operation for this.
1661
+ #
1662
+ # @param next_page_link [String] The NextLink from the previous successful call
1663
+ # to List operation.
1664
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1665
+ # to the HTTP request.
1666
+ #
1667
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1668
+ #
1669
+ def list_next_async(next_page_link, custom_headers:nil)
1670
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1671
+
1672
+
1673
+ request_headers = {}
1674
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1675
+
1676
+ # Set Headers
1677
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1678
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1679
+ path_template = '{nextLink}'
1680
+
1681
+ request_url = @base_url || @client.base_url
1682
+
1683
+ options = {
1684
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1685
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1686
+ headers: request_headers.merge(custom_headers || {}),
1687
+ base_url: request_url
1688
+ }
1689
+ promise = @client.make_request_async(:get, path_template, options)
1690
+
1691
+ promise = promise.then do |result|
1692
+ http_response = result.response
1693
+ status_code = http_response.status
1694
+ response_content = http_response.body
1695
+ unless status_code == 200
1696
+ error_model = JSON.load(response_content)
1697
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1698
+ end
1699
+
1700
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1701
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1702
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1703
+ # Deserialize Response
1704
+ if status_code == 200
1705
+ begin
1706
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1707
+ result_mapper = Azure::Storage::Mgmt::V2019_04_01::Models::StorageAccountListResult.mapper()
1708
+ result.body = @client.deserialize(result_mapper, parsed_response)
1709
+ rescue Exception => e
1710
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1711
+ end
1712
+ end
1713
+
1714
+ result
1715
+ end
1716
+
1717
+ promise.execute
1718
+ end
1719
+
1720
+ #
1721
+ # Lists all the storage accounts available under the subscription. Note that
1722
+ # storage keys are not returned; use the ListKeys operation for this.
1723
+ #
1724
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1725
+ # will be added to the HTTP request.
1726
+ #
1727
+ # @return [StorageAccountListResult] which provide lazy access to pages of the
1728
+ # response.
1729
+ #
1730
+ def list_as_lazy(custom_headers:nil)
1731
+ response = list_async(custom_headers:custom_headers).value!
1732
+ unless response.nil?
1733
+ page = response.body
1734
+ page.next_method = Proc.new do |next_page_link|
1735
+ list_next_async(next_page_link, custom_headers:custom_headers)
1736
+ end
1737
+ page
1738
+ end
1739
+ end
1740
+
1627
1741
  end
1628
1742
  end
@@ -156,7 +156,7 @@ module Azure::Storage::Mgmt::V2019_04_01
156
156
  #
157
157
  def add_telemetry
158
158
  sdk_information = 'azure_mgmt_storage'
159
- sdk_information = "#{sdk_information}/0.18.0"
159
+ sdk_information = "#{sdk_information}/0.18.1"
160
160
  add_user_agent_information(sdk_information)
161
161
  end
162
162
  end
@@ -103,6 +103,7 @@ module Azure::Storage::Profiles::Latest
103
103
  DefaultAction = Azure::Storage::Mgmt::V2019_04_01::Models::DefaultAction
104
104
  DirectoryServiceOptions = Azure::Storage::Mgmt::V2019_04_01::Models::DirectoryServiceOptions
105
105
  AccessTier = Azure::Storage::Mgmt::V2019_04_01::Models::AccessTier
106
+ LargeFileSharesState = Azure::Storage::Mgmt::V2019_04_01::Models::LargeFileSharesState
106
107
  GeoReplicationStatus = Azure::Storage::Mgmt::V2019_04_01::Models::GeoReplicationStatus
107
108
  ProvisioningState = Azure::Storage::Mgmt::V2019_04_01::Models::ProvisioningState
108
109
  AccountStatus = Azure::Storage::Mgmt::V2019_04_01::Models::AccountStatus
@@ -433,6 +434,9 @@ module Azure::Storage::Profiles::Latest
433
434
  def access_tier
434
435
  Azure::Storage::Mgmt::V2019_04_01::Models::AccessTier
435
436
  end
437
+ def large_file_shares_state
438
+ Azure::Storage::Mgmt::V2019_04_01::Models::LargeFileSharesState
439
+ end
436
440
  def geo_replication_status
437
441
  Azure::Storage::Mgmt::V2019_04_01::Models::GeoReplicationStatus
438
442
  end
@@ -3,5 +3,5 @@
3
3
  # Licensed under the MIT License. See License.txt in the project root for license information.
4
4
 
5
5
  module Azure::Storage::Mgmt
6
- VERSION = '0.18.0'
6
+ VERSION = '0.18.1'
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure_mgmt_storage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.0
4
+ version: 0.18.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-23 00:00:00.000000000 Z
11
+ date: 2019-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -755,6 +755,7 @@ files:
755
755
  - lib/2019-04-01/generated/azure_mgmt_storage/models/key_source.rb
756
756
  - lib/2019-04-01/generated/azure_mgmt_storage/models/key_vault_properties.rb
757
757
  - lib/2019-04-01/generated/azure_mgmt_storage/models/kind.rb
758
+ - lib/2019-04-01/generated/azure_mgmt_storage/models/large_file_shares_state.rb
758
759
  - lib/2019-04-01/generated/azure_mgmt_storage/models/lease_container_request.rb
759
760
  - lib/2019-04-01/generated/azure_mgmt_storage/models/lease_container_response.rb
760
761
  - lib/2019-04-01/generated/azure_mgmt_storage/models/lease_duration.rb