azure_mgmt_subscriptions 0.17.3 → 0.18.0
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.
- checksums.yaml +4 -4
- data/lib/2016-06-01/generated/azure_mgmt_subscriptions/operations.rb +4 -0
- data/lib/2016-06-01/generated/azure_mgmt_subscriptions/subscription_client.rb +1 -1
- data/lib/2016-06-01/generated/azure_mgmt_subscriptions/subscriptions.rb +8 -0
- data/lib/2016-06-01/generated/azure_mgmt_subscriptions/tenants.rb +4 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_subscriptions/subscription_definitions.rb +10 -0
- data/lib/2017-11-01-preview/generated/azure_mgmt_subscriptions/subscription_definitions_client.rb +1 -1
- data/lib/2017-11-01-preview/generated/azure_mgmt_subscriptions/subscription_definitions_operation_metadata.rb +4 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_subscriptions.rb +3 -7
- data/lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/models/ad_principal.rb +2 -1
- data/lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/models/subscription_creation_result.rb +2 -1
- data/lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/subscription_client.rb +1 -5
- data/lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/subscription_factory.rb +2 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_subscriptions/subscription_operations.rb +2 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_subscriptions.rb +38 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_subscriptions/models/ad_principal.rb +47 -0
- data/lib/{2015-11-01/generated/azure_mgmt_subscriptions/models/tenant_id_description.rb → 2018-11-01-preview/generated/azure_mgmt_subscriptions/models/error_response.rb} +14 -14
- data/lib/2018-11-01-preview/generated/azure_mgmt_subscriptions/models/modern_subscription_creation_parameters.rb +129 -0
- data/lib/{2018-03-01-preview → 2018-11-01-preview}/generated/azure_mgmt_subscriptions/models/operation.rb +1 -1
- data/lib/{2018-03-01-preview → 2018-11-01-preview}/generated/azure_mgmt_subscriptions/models/operation_display.rb +1 -1
- data/lib/{2018-03-01-preview → 2018-11-01-preview}/generated/azure_mgmt_subscriptions/models/operation_list_result.rb +1 -1
- data/lib/2018-11-01-preview/generated/azure_mgmt_subscriptions/models/subscription_creation_result.rb +47 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_subscriptions/models/subscription_operation.rb +69 -0
- data/lib/{2015-11-01/generated/azure_mgmt_subscriptions/models/location_list_result.rb → 2018-11-01-preview/generated/azure_mgmt_subscriptions/models/subscription_operation_list_result.rb} +10 -9
- data/lib/{2015-11-01 → 2018-11-01-preview}/generated/azure_mgmt_subscriptions/module_definition.rb +1 -1
- data/lib/2018-11-01-preview/generated/azure_mgmt_subscriptions/subscription_client.rb +134 -0
- data/lib/2018-11-01-preview/generated/azure_mgmt_subscriptions/subscription_factory.rb +189 -0
- data/lib/{2018-03-01-preview/generated/azure_mgmt_subscriptions/operations.rb → 2018-11-01-preview/generated/azure_mgmt_subscriptions/subscription_operation_operations.rb} +26 -16
- data/lib/2019-03-01-preview/generated/azure_mgmt_subscriptions.rb +35 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_subscriptions/models/canceled_subscription_id.rb +47 -0
- data/lib/{2015-11-01/generated/azure_mgmt_subscriptions/models/subscription_policies.rb → 2019-03-01-preview/generated/azure_mgmt_subscriptions/models/error_response.rb} +14 -14
- data/lib/2019-03-01-preview/generated/azure_mgmt_subscriptions/models/operation.rb +58 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_subscriptions/models/operation_display.rb +69 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_subscriptions/models/operation_list_result.rb +68 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_subscriptions/models/renamed_subscription_id.rb +47 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_subscriptions/models/subscription_name.rb +46 -0
- data/lib/2019-03-01-preview/generated/azure_mgmt_subscriptions/module_definition.rb +9 -0
- data/lib/{2015-11-01 → 2019-03-01-preview}/generated/azure_mgmt_subscriptions/subscription_client.rb +5 -8
- data/lib/{2015-11-01/generated/azure_mgmt_subscriptions/tenants.rb → 2019-03-01-preview/generated/azure_mgmt_subscriptions/subscriptions.rb} +59 -59
- data/lib/azure_mgmt_subscriptions.rb +4 -3
- data/lib/profiles/latest/modules/subscriptions_profile_module.rb +110 -16
- data/lib/version.rb +1 -1
- metadata +30 -21
- data/lib/2015-11-01/generated/azure_mgmt_subscriptions.rb +0 -36
- data/lib/2015-11-01/generated/azure_mgmt_subscriptions/models/location.rb +0 -102
- data/lib/2015-11-01/generated/azure_mgmt_subscriptions/models/subscription.rb +0 -92
- data/lib/2015-11-01/generated/azure_mgmt_subscriptions/models/subscription_list_result.rb +0 -98
- data/lib/2015-11-01/generated/azure_mgmt_subscriptions/models/tenant_list_result.rb +0 -98
- data/lib/2015-11-01/generated/azure_mgmt_subscriptions/subscriptions.rb +0 -389
@@ -1,389 +0,0 @@
|
|
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::Subscriptions::Mgmt::V2015_11_01
|
7
|
-
#
|
8
|
-
# Subscriptions
|
9
|
-
#
|
10
|
-
class Subscriptions
|
11
|
-
include MsRestAzure
|
12
|
-
|
13
|
-
#
|
14
|
-
# Creates and initializes a new instance of the Subscriptions class.
|
15
|
-
# @param client service class for accessing basic functionality.
|
16
|
-
#
|
17
|
-
def initialize(client)
|
18
|
-
@client = client
|
19
|
-
end
|
20
|
-
|
21
|
-
# @return [SubscriptionClient] reference to the SubscriptionClient
|
22
|
-
attr_reader :client
|
23
|
-
|
24
|
-
#
|
25
|
-
# Gets a list of the subscription locations.
|
26
|
-
#
|
27
|
-
# @param subscription_id [String] Id of the subscription
|
28
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
29
|
-
# will be added to the HTTP request.
|
30
|
-
#
|
31
|
-
# @return [LocationListResult] operation results.
|
32
|
-
#
|
33
|
-
def list_locations(subscription_id, custom_headers:nil)
|
34
|
-
response = list_locations_async(subscription_id, custom_headers:custom_headers).value!
|
35
|
-
response.body unless response.nil?
|
36
|
-
end
|
37
|
-
|
38
|
-
#
|
39
|
-
# Gets a list of the subscription locations.
|
40
|
-
#
|
41
|
-
# @param subscription_id [String] Id of the subscription
|
42
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
43
|
-
# will be added to the HTTP request.
|
44
|
-
#
|
45
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
46
|
-
#
|
47
|
-
def list_locations_with_http_info(subscription_id, custom_headers:nil)
|
48
|
-
list_locations_async(subscription_id, custom_headers:custom_headers).value!
|
49
|
-
end
|
50
|
-
|
51
|
-
#
|
52
|
-
# Gets a list of the subscription locations.
|
53
|
-
#
|
54
|
-
# @param subscription_id [String] Id of the subscription
|
55
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
56
|
-
# to the HTTP request.
|
57
|
-
#
|
58
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
59
|
-
#
|
60
|
-
def list_locations_async(subscription_id, custom_headers:nil)
|
61
|
-
fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
|
62
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
63
|
-
|
64
|
-
|
65
|
-
request_headers = {}
|
66
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
67
|
-
|
68
|
-
# Set Headers
|
69
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
70
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
71
|
-
path_template = 'subscriptions/{subscriptionId}/locations'
|
72
|
-
|
73
|
-
request_url = @base_url || @client.base_url
|
74
|
-
|
75
|
-
options = {
|
76
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
77
|
-
path_params: {'subscriptionId' => subscription_id},
|
78
|
-
query_params: {'api-version' => @client.api_version},
|
79
|
-
headers: request_headers.merge(custom_headers || {}),
|
80
|
-
base_url: request_url
|
81
|
-
}
|
82
|
-
promise = @client.make_request_async(:get, path_template, options)
|
83
|
-
|
84
|
-
promise = promise.then do |result|
|
85
|
-
http_response = result.response
|
86
|
-
status_code = http_response.status
|
87
|
-
response_content = http_response.body
|
88
|
-
unless status_code == 200
|
89
|
-
error_model = JSON.load(response_content)
|
90
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
91
|
-
end
|
92
|
-
|
93
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
94
|
-
# Deserialize Response
|
95
|
-
if status_code == 200
|
96
|
-
begin
|
97
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
98
|
-
result_mapper = Azure::Subscriptions::Mgmt::V2015_11_01::Models::LocationListResult.mapper()
|
99
|
-
result.body = @client.deserialize(result_mapper, parsed_response)
|
100
|
-
rescue Exception => e
|
101
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
102
|
-
end
|
103
|
-
end
|
104
|
-
|
105
|
-
result
|
106
|
-
end
|
107
|
-
|
108
|
-
promise.execute
|
109
|
-
end
|
110
|
-
|
111
|
-
#
|
112
|
-
# Gets details about particular subscription.
|
113
|
-
#
|
114
|
-
# @param subscription_id [String] Id of the subscription.
|
115
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
116
|
-
# will be added to the HTTP request.
|
117
|
-
#
|
118
|
-
# @return [Subscription] operation results.
|
119
|
-
#
|
120
|
-
def get(subscription_id, custom_headers:nil)
|
121
|
-
response = get_async(subscription_id, custom_headers:custom_headers).value!
|
122
|
-
response.body unless response.nil?
|
123
|
-
end
|
124
|
-
|
125
|
-
#
|
126
|
-
# Gets details about particular subscription.
|
127
|
-
#
|
128
|
-
# @param subscription_id [String] Id of the subscription.
|
129
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
130
|
-
# will be added to the HTTP request.
|
131
|
-
#
|
132
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
133
|
-
#
|
134
|
-
def get_with_http_info(subscription_id, custom_headers:nil)
|
135
|
-
get_async(subscription_id, custom_headers:custom_headers).value!
|
136
|
-
end
|
137
|
-
|
138
|
-
#
|
139
|
-
# Gets details about particular subscription.
|
140
|
-
#
|
141
|
-
# @param subscription_id [String] Id of the subscription.
|
142
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
143
|
-
# to the HTTP request.
|
144
|
-
#
|
145
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
146
|
-
#
|
147
|
-
def get_async(subscription_id, custom_headers:nil)
|
148
|
-
fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
|
149
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
150
|
-
|
151
|
-
|
152
|
-
request_headers = {}
|
153
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
154
|
-
|
155
|
-
# Set Headers
|
156
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
157
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
158
|
-
path_template = 'subscriptions/{subscriptionId}'
|
159
|
-
|
160
|
-
request_url = @base_url || @client.base_url
|
161
|
-
|
162
|
-
options = {
|
163
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
164
|
-
path_params: {'subscriptionId' => subscription_id},
|
165
|
-
query_params: {'api-version' => @client.api_version},
|
166
|
-
headers: request_headers.merge(custom_headers || {}),
|
167
|
-
base_url: request_url
|
168
|
-
}
|
169
|
-
promise = @client.make_request_async(:get, path_template, options)
|
170
|
-
|
171
|
-
promise = promise.then do |result|
|
172
|
-
http_response = result.response
|
173
|
-
status_code = http_response.status
|
174
|
-
response_content = http_response.body
|
175
|
-
unless status_code == 200
|
176
|
-
error_model = JSON.load(response_content)
|
177
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
178
|
-
end
|
179
|
-
|
180
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
181
|
-
# Deserialize Response
|
182
|
-
if status_code == 200
|
183
|
-
begin
|
184
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
185
|
-
result_mapper = Azure::Subscriptions::Mgmt::V2015_11_01::Models::Subscription.mapper()
|
186
|
-
result.body = @client.deserialize(result_mapper, parsed_response)
|
187
|
-
rescue Exception => e
|
188
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
189
|
-
end
|
190
|
-
end
|
191
|
-
|
192
|
-
result
|
193
|
-
end
|
194
|
-
|
195
|
-
promise.execute
|
196
|
-
end
|
197
|
-
|
198
|
-
#
|
199
|
-
# Gets a list of the subscriptionIds.
|
200
|
-
#
|
201
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
202
|
-
# will be added to the HTTP request.
|
203
|
-
#
|
204
|
-
# @return [Array<Subscription>] operation results.
|
205
|
-
#
|
206
|
-
def list(custom_headers:nil)
|
207
|
-
first_page = list_as_lazy(custom_headers:custom_headers)
|
208
|
-
first_page.get_all_items
|
209
|
-
end
|
210
|
-
|
211
|
-
#
|
212
|
-
# Gets a list of the subscriptionIds.
|
213
|
-
#
|
214
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
215
|
-
# will be added to the HTTP request.
|
216
|
-
#
|
217
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
218
|
-
#
|
219
|
-
def list_with_http_info(custom_headers:nil)
|
220
|
-
list_async(custom_headers:custom_headers).value!
|
221
|
-
end
|
222
|
-
|
223
|
-
#
|
224
|
-
# Gets a list of the subscriptionIds.
|
225
|
-
#
|
226
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
227
|
-
# to the HTTP request.
|
228
|
-
#
|
229
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
230
|
-
#
|
231
|
-
def list_async(custom_headers:nil)
|
232
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
233
|
-
|
234
|
-
|
235
|
-
request_headers = {}
|
236
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
237
|
-
|
238
|
-
# Set Headers
|
239
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
240
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
241
|
-
path_template = 'subscriptions'
|
242
|
-
|
243
|
-
request_url = @base_url || @client.base_url
|
244
|
-
|
245
|
-
options = {
|
246
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
247
|
-
query_params: {'api-version' => @client.api_version},
|
248
|
-
headers: request_headers.merge(custom_headers || {}),
|
249
|
-
base_url: request_url
|
250
|
-
}
|
251
|
-
promise = @client.make_request_async(:get, path_template, options)
|
252
|
-
|
253
|
-
promise = promise.then do |result|
|
254
|
-
http_response = result.response
|
255
|
-
status_code = http_response.status
|
256
|
-
response_content = http_response.body
|
257
|
-
unless status_code == 200
|
258
|
-
error_model = JSON.load(response_content)
|
259
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
260
|
-
end
|
261
|
-
|
262
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
263
|
-
# Deserialize Response
|
264
|
-
if status_code == 200
|
265
|
-
begin
|
266
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
267
|
-
result_mapper = Azure::Subscriptions::Mgmt::V2015_11_01::Models::SubscriptionListResult.mapper()
|
268
|
-
result.body = @client.deserialize(result_mapper, parsed_response)
|
269
|
-
rescue Exception => e
|
270
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
271
|
-
end
|
272
|
-
end
|
273
|
-
|
274
|
-
result
|
275
|
-
end
|
276
|
-
|
277
|
-
promise.execute
|
278
|
-
end
|
279
|
-
|
280
|
-
#
|
281
|
-
# Gets a list of the subscriptionIds.
|
282
|
-
#
|
283
|
-
# @param next_page_link [String] The NextLink from the previous successful call
|
284
|
-
# to List operation.
|
285
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
286
|
-
# will be added to the HTTP request.
|
287
|
-
#
|
288
|
-
# @return [SubscriptionListResult] operation results.
|
289
|
-
#
|
290
|
-
def list_next(next_page_link, custom_headers:nil)
|
291
|
-
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
292
|
-
response.body unless response.nil?
|
293
|
-
end
|
294
|
-
|
295
|
-
#
|
296
|
-
# Gets a list of the subscriptionIds.
|
297
|
-
#
|
298
|
-
# @param next_page_link [String] The NextLink from the previous successful call
|
299
|
-
# to List operation.
|
300
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
301
|
-
# will be added to the HTTP request.
|
302
|
-
#
|
303
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
304
|
-
#
|
305
|
-
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
306
|
-
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
307
|
-
end
|
308
|
-
|
309
|
-
#
|
310
|
-
# Gets a list of the subscriptionIds.
|
311
|
-
#
|
312
|
-
# @param next_page_link [String] The NextLink from the previous successful call
|
313
|
-
# to List operation.
|
314
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
315
|
-
# to the HTTP request.
|
316
|
-
#
|
317
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
318
|
-
#
|
319
|
-
def list_next_async(next_page_link, custom_headers:nil)
|
320
|
-
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
321
|
-
|
322
|
-
|
323
|
-
request_headers = {}
|
324
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
325
|
-
|
326
|
-
# Set Headers
|
327
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
328
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
329
|
-
path_template = '{nextLink}'
|
330
|
-
|
331
|
-
request_url = @base_url || @client.base_url
|
332
|
-
|
333
|
-
options = {
|
334
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
335
|
-
skip_encoding_path_params: {'nextLink' => next_page_link},
|
336
|
-
headers: request_headers.merge(custom_headers || {}),
|
337
|
-
base_url: request_url
|
338
|
-
}
|
339
|
-
promise = @client.make_request_async(:get, path_template, options)
|
340
|
-
|
341
|
-
promise = promise.then do |result|
|
342
|
-
http_response = result.response
|
343
|
-
status_code = http_response.status
|
344
|
-
response_content = http_response.body
|
345
|
-
unless status_code == 200
|
346
|
-
error_model = JSON.load(response_content)
|
347
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
348
|
-
end
|
349
|
-
|
350
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
351
|
-
# Deserialize Response
|
352
|
-
if status_code == 200
|
353
|
-
begin
|
354
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
355
|
-
result_mapper = Azure::Subscriptions::Mgmt::V2015_11_01::Models::SubscriptionListResult.mapper()
|
356
|
-
result.body = @client.deserialize(result_mapper, parsed_response)
|
357
|
-
rescue Exception => e
|
358
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
359
|
-
end
|
360
|
-
end
|
361
|
-
|
362
|
-
result
|
363
|
-
end
|
364
|
-
|
365
|
-
promise.execute
|
366
|
-
end
|
367
|
-
|
368
|
-
#
|
369
|
-
# Gets a list of the subscriptionIds.
|
370
|
-
#
|
371
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
372
|
-
# will be added to the HTTP request.
|
373
|
-
#
|
374
|
-
# @return [SubscriptionListResult] which provide lazy access to pages of the
|
375
|
-
# response.
|
376
|
-
#
|
377
|
-
def list_as_lazy(custom_headers:nil)
|
378
|
-
response = list_async(custom_headers:custom_headers).value!
|
379
|
-
unless response.nil?
|
380
|
-
page = response.body
|
381
|
-
page.next_method = Proc.new do |next_page_link|
|
382
|
-
list_next_async(next_page_link, custom_headers:custom_headers)
|
383
|
-
end
|
384
|
-
page
|
385
|
-
end
|
386
|
-
end
|
387
|
-
|
388
|
-
end
|
389
|
-
end
|