azure_mgmt_batch 0.10.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_batch.rb +15 -11
  3. data/lib/generated/azure_mgmt_batch/application_operations.rb +27 -25
  4. data/lib/generated/azure_mgmt_batch/application_package_operations.rb +11 -12
  5. data/lib/generated/azure_mgmt_batch/batch_account_operations.rb +82 -83
  6. data/lib/generated/azure_mgmt_batch/batch_management_client.rb +8 -4
  7. data/lib/generated/azure_mgmt_batch/location.rb +10 -8
  8. data/lib/generated/azure_mgmt_batch/models/account_key_type.rb +1 -1
  9. data/lib/generated/azure_mgmt_batch/models/activate_application_package_parameters.rb +3 -3
  10. data/lib/generated/azure_mgmt_batch/models/application.rb +2 -1
  11. data/lib/generated/azure_mgmt_batch/models/{add_application_parameters.rb → application_create_parameters.rb} +7 -6
  12. data/lib/generated/azure_mgmt_batch/models/application_package.rb +5 -4
  13. data/lib/generated/azure_mgmt_batch/models/{update_application_parameters.rb → application_update_parameters.rb} +7 -6
  14. data/lib/generated/azure_mgmt_batch/models/auto_storage_base_properties.rb +4 -3
  15. data/lib/generated/azure_mgmt_batch/models/auto_storage_properties.rb +4 -7
  16. data/lib/generated/azure_mgmt_batch/models/batch_account.rb +21 -9
  17. data/lib/generated/azure_mgmt_batch/models/batch_account_create_parameters.rb +5 -4
  18. data/lib/generated/azure_mgmt_batch/models/batch_account_keys.rb +13 -1
  19. data/lib/generated/azure_mgmt_batch/models/batch_account_list_result.rb +4 -3
  20. data/lib/generated/azure_mgmt_batch/models/batch_account_regenerate_key_parameters.rb +2 -1
  21. data/lib/generated/azure_mgmt_batch/models/batch_account_update_parameters.rb +6 -34
  22. data/lib/generated/azure_mgmt_batch/models/batch_location_quota.rb +2 -1
  23. data/lib/generated/azure_mgmt_batch/models/key_vault_reference.rb +3 -2
  24. data/lib/generated/azure_mgmt_batch/models/list_applications_result.rb +3 -2
  25. data/lib/generated/azure_mgmt_batch/models/operation.rb +78 -0
  26. data/lib/generated/azure_mgmt_batch/models/operation_display.rb +77 -0
  27. data/lib/generated/azure_mgmt_batch/models/operation_list_result.rb +94 -0
  28. data/lib/generated/azure_mgmt_batch/models/package_state.rb +1 -1
  29. data/lib/generated/azure_mgmt_batch/models/pool_allocation_mode.rb +1 -1
  30. data/lib/generated/azure_mgmt_batch/models/provisioning_state.rb +1 -1
  31. data/lib/generated/azure_mgmt_batch/module_definition.rb +1 -1
  32. data/lib/generated/azure_mgmt_batch/operations.rb +213 -0
  33. data/lib/generated/azure_mgmt_batch/version.rb +2 -2
  34. metadata +10 -6
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -12,6 +12,7 @@ module Azure::ARM::Batch
12
12
 
13
13
  include MsRestAzure
14
14
 
15
+ include MsRest::JSONable
15
16
  # @return [AccountKeyType] The type of account key to regenerate.
16
17
  # Possible values include: 'Primary', 'Secondary'
17
18
  attr_accessor :key_name
@@ -1,38 +1,26 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
6
  module Azure::ARM::Batch
7
7
  module Models
8
8
  #
9
- # Parameters supplied to the Update operation.
9
+ # Parameters for updating an Azure Batch account.
10
10
  #
11
11
  class BatchAccountUpdateParameters
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [Hash{String => String}] The user specified tags associated
15
+ include MsRest::JSONable
16
+ # @return [Hash{String => String}] The user-specified tags associated
16
17
  # with the account.
17
18
  attr_accessor :tags
18
19
 
19
- # @return [AutoStorageBaseProperties] The properties related to auto
20
- # storage account.
20
+ # @return [AutoStorageBaseProperties] The properties related to the
21
+ # auto-storage account.
21
22
  attr_accessor :auto_storage
22
23
 
23
- # @return [PoolAllocationMode] The allocation mode to use for creating
24
- # pools in the Batch account. The pool allocation mode also affects how
25
- # clients may authenticate to the Batch Service API. If the mode is
26
- # BatchService, clients may authenticate using access keys or Azure
27
- # Active Directory. If the mode is UserSubscription, clients must use
28
- # Azure Active Directory. The default is BatchService. Possible values
29
- # include: 'BatchService', 'UserSubscription'
30
- attr_accessor :pool_allocation_mode
31
-
32
- # @return [KeyVaultReference] A reference to the Azure key vault
33
- # associated with the Batch account.
34
- attr_accessor :key_vault_reference
35
-
36
24
 
37
25
  #
38
26
  # Mapper for BatchAccountUpdateParameters class as Ruby Hash.
@@ -67,22 +55,6 @@ module Azure::ARM::Batch
67
55
  name: 'Composite',
68
56
  class_name: 'AutoStorageBaseProperties'
69
57
  }
70
- },
71
- pool_allocation_mode: {
72
- required: false,
73
- serialized_name: 'properties.poolAllocationMode',
74
- type: {
75
- name: 'Enum',
76
- module: 'PoolAllocationMode'
77
- }
78
- },
79
- key_vault_reference: {
80
- required: false,
81
- serialized_name: 'properties.keyVaultReference',
82
- type: {
83
- name: 'Composite',
84
- class_name: 'KeyVaultReference'
85
- }
86
58
  }
87
59
  }
88
60
  }
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -12,6 +12,7 @@ module Azure::ARM::Batch
12
12
 
13
13
  include MsRestAzure
14
14
 
15
+ include MsRest::JSONable
15
16
  # @return [Integer] The number of Batch accounts that may be created
16
17
  # under the subscription in the specified region.
17
18
  attr_accessor :account_quota
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -12,11 +12,12 @@ module Azure::ARM::Batch
12
12
 
13
13
  include MsRestAzure
14
14
 
15
+ include MsRest::JSONable
15
16
  # @return [String] The resource ID of the Azure key vault associated with
16
17
  # the Batch account.
17
18
  attr_accessor :id
18
19
 
19
- # @return [String] The Url of the Azure key vault associated with the
20
+ # @return [String] The URL of the Azure key vault associated with the
20
21
  # Batch account.
21
22
  attr_accessor :url
22
23
 
@@ -1,17 +1,18 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
6
  module Azure::ARM::Batch
7
7
  module Models
8
8
  #
9
- # Response to an ApplicationOperations.ListApplications request.
9
+ # The result of performing list applications.
10
10
  #
11
11
  class ListApplicationsResult
12
12
 
13
13
  include MsRestAzure
14
14
 
15
+ include MsRest::JSONable
15
16
  # @return [Array<Application>] The list of applications.
16
17
  attr_accessor :value
17
18
 
@@ -0,0 +1,78 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Batch
7
+ module Models
8
+ #
9
+ # A REST API operation
10
+ #
11
+ #
12
+ class Operation
13
+
14
+ include MsRestAzure
15
+
16
+ include MsRest::JSONable
17
+ # @return [String] The operation name. This is of the format
18
+ # {provider}/{resource}/{operation}
19
+ attr_accessor :name
20
+
21
+ # @return [OperationDisplay] The object that describes the operation.
22
+ attr_accessor :display
23
+
24
+ # @return [String] The intended executor of the operation.
25
+ attr_accessor :origin
26
+
27
+ # @return Properties of the operation.
28
+ attr_accessor :properties
29
+
30
+
31
+ #
32
+ # Mapper for Operation class as Ruby Hash.
33
+ # This will be used for serialization/deserialization.
34
+ #
35
+ def self.mapper()
36
+ {
37
+ required: false,
38
+ serialized_name: 'Operation',
39
+ type: {
40
+ name: 'Composite',
41
+ class_name: 'Operation',
42
+ model_properties: {
43
+ name: {
44
+ required: false,
45
+ serialized_name: 'name',
46
+ type: {
47
+ name: 'String'
48
+ }
49
+ },
50
+ display: {
51
+ required: false,
52
+ serialized_name: 'display',
53
+ type: {
54
+ name: 'Composite',
55
+ class_name: 'OperationDisplay'
56
+ }
57
+ },
58
+ origin: {
59
+ required: false,
60
+ serialized_name: 'origin',
61
+ type: {
62
+ name: 'String'
63
+ }
64
+ },
65
+ properties: {
66
+ required: false,
67
+ serialized_name: 'properties',
68
+ type: {
69
+ name: 'Object'
70
+ }
71
+ }
72
+ }
73
+ }
74
+ }
75
+ end
76
+ end
77
+ end
78
+ end
@@ -0,0 +1,77 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Batch
7
+ module Models
8
+ #
9
+ # The object that describes the operation.
10
+ #
11
+ #
12
+ class OperationDisplay
13
+
14
+ include MsRestAzure
15
+
16
+ include MsRest::JSONable
17
+ # @return [String] Friendly name of the resource provider.
18
+ attr_accessor :provider
19
+
20
+ # @return [String] The operation type. For example: read, write, delete,
21
+ # or listKeys/action
22
+ attr_accessor :operation
23
+
24
+ # @return [String] The resource type on which the operation is performed.
25
+ attr_accessor :resource
26
+
27
+ # @return [String] The friendly name of the operation.
28
+ attr_accessor :description
29
+
30
+
31
+ #
32
+ # Mapper for OperationDisplay class as Ruby Hash.
33
+ # This will be used for serialization/deserialization.
34
+ #
35
+ def self.mapper()
36
+ {
37
+ required: false,
38
+ serialized_name: 'Operation_display',
39
+ type: {
40
+ name: 'Composite',
41
+ class_name: 'OperationDisplay',
42
+ model_properties: {
43
+ provider: {
44
+ required: false,
45
+ serialized_name: 'provider',
46
+ type: {
47
+ name: 'String'
48
+ }
49
+ },
50
+ operation: {
51
+ required: false,
52
+ serialized_name: 'operation',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ resource: {
58
+ required: false,
59
+ serialized_name: 'resource',
60
+ type: {
61
+ name: 'String'
62
+ }
63
+ },
64
+ description: {
65
+ required: false,
66
+ serialized_name: 'description',
67
+ type: {
68
+ name: 'String'
69
+ }
70
+ }
71
+ }
72
+ }
73
+ }
74
+ end
75
+ end
76
+ end
77
+ end
@@ -0,0 +1,94 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Batch
7
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ class OperationListResult
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<Operation>]
17
+ attr_accessor :value
18
+
19
+ # @return [String]
20
+ attr_accessor :next_link
21
+
22
+ # return [Proc] with next page method call.
23
+ attr_accessor :next_method
24
+
25
+ #
26
+ # Gets the rest of the items for the request, enabling auto-pagination.
27
+ #
28
+ # @return [Array<Operation>] operation results.
29
+ #
30
+ def get_all_items
31
+ items = @value
32
+ page = self
33
+ while page.next_link != nil do
34
+ page = page.get_next_page
35
+ items.concat(page.value)
36
+ end
37
+ items
38
+ end
39
+
40
+ #
41
+ # Gets the next page of results.
42
+ #
43
+ # @return [OperationListResult] with next page content.
44
+ #
45
+ def get_next_page
46
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
47
+ unless response.nil?
48
+ @next_link = response.body.next_link
49
+ @value = response.body.value
50
+ self
51
+ end
52
+ end
53
+
54
+ #
55
+ # Mapper for OperationListResult class as Ruby Hash.
56
+ # This will be used for serialization/deserialization.
57
+ #
58
+ def self.mapper()
59
+ {
60
+ required: false,
61
+ serialized_name: 'OperationListResult',
62
+ type: {
63
+ name: 'Composite',
64
+ class_name: 'OperationListResult',
65
+ model_properties: {
66
+ value: {
67
+ required: false,
68
+ serialized_name: 'value',
69
+ type: {
70
+ name: 'Sequence',
71
+ element: {
72
+ required: false,
73
+ serialized_name: 'OperationElementType',
74
+ type: {
75
+ name: 'Composite',
76
+ class_name: 'Operation'
77
+ }
78
+ }
79
+ }
80
+ },
81
+ next_link: {
82
+ required: false,
83
+ serialized_name: 'nextLink',
84
+ type: {
85
+ name: 'String'
86
+ }
87
+ }
88
+ }
89
+ }
90
+ }
91
+ end
92
+ end
93
+ end
94
+ end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -0,0 +1,213 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Batch
7
+ #
8
+ # Operations
9
+ #
10
+ class Operations
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the Operations class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [BatchManagementClient] reference to the BatchManagementClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Lists available operations for the Microsoft.Batch provider
26
+ #
27
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
28
+ # will be added to the HTTP request.
29
+ #
30
+ # @return [Array<Operation>] operation results.
31
+ #
32
+ def list(custom_headers = nil)
33
+ first_page = list_as_lazy(custom_headers)
34
+ first_page.get_all_items
35
+ end
36
+
37
+ #
38
+ # Lists available operations for the Microsoft.Batch provider
39
+ #
40
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
41
+ # will be added to the HTTP request.
42
+ #
43
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
44
+ #
45
+ def list_with_http_info(custom_headers = nil)
46
+ list_async(custom_headers).value!
47
+ end
48
+
49
+ #
50
+ # Lists available operations for the Microsoft.Batch provider
51
+ #
52
+ # @param [Hash{String => String}] A hash of custom headers that will be added
53
+ # to the HTTP request.
54
+ #
55
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
56
+ #
57
+ def list_async(custom_headers = nil)
58
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
59
+
60
+
61
+ request_headers = {}
62
+
63
+ # Set Headers
64
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
65
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
66
+ path_template = 'providers/Microsoft.Batch/operations'
67
+
68
+ request_url = @base_url || @client.base_url
69
+
70
+ options = {
71
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
72
+ query_params: {'api-version' => @client.api_version},
73
+ headers: request_headers.merge(custom_headers || {}),
74
+ base_url: request_url
75
+ }
76
+ promise = @client.make_request_async(:get, path_template, options)
77
+
78
+ promise = promise.then do |result|
79
+ http_response = result.response
80
+ status_code = http_response.status
81
+ response_content = http_response.body
82
+ unless status_code == 200
83
+ error_model = JSON.load(response_content)
84
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
85
+ end
86
+
87
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
88
+ # Deserialize Response
89
+ if status_code == 200
90
+ begin
91
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
92
+ result_mapper = Azure::ARM::Batch::Models::OperationListResult.mapper()
93
+ result.body = @client.deserialize(result_mapper, parsed_response)
94
+ rescue Exception => e
95
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
96
+ end
97
+ end
98
+
99
+ result
100
+ end
101
+
102
+ promise.execute
103
+ end
104
+
105
+ #
106
+ # Lists available operations for the Microsoft.Batch provider
107
+ #
108
+ # @param next_page_link [String] The NextLink from the previous successful call
109
+ # to List operation.
110
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
111
+ # will be added to the HTTP request.
112
+ #
113
+ # @return [OperationListResult] operation results.
114
+ #
115
+ def list_next(next_page_link, custom_headers = nil)
116
+ response = list_next_async(next_page_link, custom_headers).value!
117
+ response.body unless response.nil?
118
+ end
119
+
120
+ #
121
+ # Lists available operations for the Microsoft.Batch provider
122
+ #
123
+ # @param next_page_link [String] The NextLink from the previous successful call
124
+ # to List operation.
125
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
126
+ # will be added to the HTTP request.
127
+ #
128
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
129
+ #
130
+ def list_next_with_http_info(next_page_link, custom_headers = nil)
131
+ list_next_async(next_page_link, custom_headers).value!
132
+ end
133
+
134
+ #
135
+ # Lists available operations for the Microsoft.Batch provider
136
+ #
137
+ # @param next_page_link [String] The NextLink from the previous successful call
138
+ # to List operation.
139
+ # @param [Hash{String => String}] A hash of custom headers that will be added
140
+ # to the HTTP request.
141
+ #
142
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
143
+ #
144
+ def list_next_async(next_page_link, custom_headers = nil)
145
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
146
+
147
+
148
+ request_headers = {}
149
+
150
+ # Set Headers
151
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
152
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
153
+ path_template = '{nextLink}'
154
+
155
+ request_url = @base_url || @client.base_url
156
+
157
+ options = {
158
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
159
+ skip_encoding_path_params: {'nextLink' => next_page_link},
160
+ headers: request_headers.merge(custom_headers || {}),
161
+ base_url: request_url
162
+ }
163
+ promise = @client.make_request_async(:get, path_template, options)
164
+
165
+ promise = promise.then do |result|
166
+ http_response = result.response
167
+ status_code = http_response.status
168
+ response_content = http_response.body
169
+ unless status_code == 200
170
+ error_model = JSON.load(response_content)
171
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
172
+ end
173
+
174
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
175
+ # Deserialize Response
176
+ if status_code == 200
177
+ begin
178
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
179
+ result_mapper = Azure::ARM::Batch::Models::OperationListResult.mapper()
180
+ result.body = @client.deserialize(result_mapper, parsed_response)
181
+ rescue Exception => e
182
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
183
+ end
184
+ end
185
+
186
+ result
187
+ end
188
+
189
+ promise.execute
190
+ end
191
+
192
+ #
193
+ # Lists available operations for the Microsoft.Batch provider
194
+ #
195
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
196
+ # will be added to the HTTP request.
197
+ #
198
+ # @return [OperationListResult] which provide lazy access to pages of the
199
+ # response.
200
+ #
201
+ def list_as_lazy(custom_headers = nil)
202
+ response = list_async(custom_headers).value!
203
+ unless response.nil?
204
+ page = response.body
205
+ page.next_method = Proc.new do |next_page_link|
206
+ list_next_async(next_page_link, custom_headers)
207
+ end
208
+ page
209
+ end
210
+ end
211
+
212
+ end
213
+ end