azure_mgmt_batch 0.15.2 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2015-12-01/generated/azure_mgmt_batch/application_operations.rb +39 -37
- data/lib/2015-12-01/generated/azure_mgmt_batch/application_package_operations.rb +24 -22
- data/lib/2015-12-01/generated/azure_mgmt_batch/batch_account_operations.rb +80 -75
- data/lib/2015-12-01/generated/azure_mgmt_batch/batch_management_client.rb +4 -1
- data/lib/2015-12-01/generated/azure_mgmt_batch/location.rb +6 -5
- data/lib/2017-01-01/generated/azure_mgmt_batch.rb +52 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/application_operations.rb +657 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/application_package_operations.rb +445 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/batch_account_operations.rb +1281 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/batch_management_client.rb +143 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/location.rb +116 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/account_key_type.rb +16 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/activate_application_package_parameters.rb +47 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/add_application_parameters.rb +58 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/application.rb +103 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/application_package.rb +125 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/auto_storage_base_properties.rb +47 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/auto_storage_properties.rb +60 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/batch_account.rb +196 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/batch_account_create_parameters.rb +110 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/batch_account_keys.rb +59 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/batch_account_list_result.rb +99 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/batch_account_regenerate_key_parameters.rb +48 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/batch_account_update_parameters.rb +68 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/batch_location_quota.rb +48 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/key_vault_reference.rb +59 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/list_applications_result.rb +98 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/package_state.rb +17 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/pool_allocation_mode.rb +16 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/provisioning_state.rb +20 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/resource.rb +103 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/models/update_application_parameters.rb +70 -0
- data/lib/2017-01-01/generated/azure_mgmt_batch/module_definition.rb +9 -0
- data/lib/2017-05-01/generated/azure_mgmt_batch/application_operations.rb +39 -37
- data/lib/2017-05-01/generated/azure_mgmt_batch/application_package_operations.rb +24 -22
- data/lib/2017-05-01/generated/azure_mgmt_batch/batch_account_operations.rb +80 -75
- data/lib/2017-05-01/generated/azure_mgmt_batch/batch_management_client.rb +4 -1
- data/lib/2017-05-01/generated/azure_mgmt_batch/location.rb +12 -12
- data/lib/2017-05-01/generated/azure_mgmt_batch/operations.rb +15 -13
- data/lib/2017-09-01/generated/azure_mgmt_batch.rb +113 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/application_operations.rb +655 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/application_package_operations.rb +441 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/batch_account_operations.rb +1273 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/batch_management_client.rb +155 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/certificate_operations.rb +1009 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/location.rb +221 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/account_key_type.rb +16 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/activate_application_package_parameters.rb +46 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/allocation_state.rb +17 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/application.rb +103 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/application_create_parameters.rb +58 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/application_package.rb +125 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/application_package_reference.rb +64 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/application_update_parameters.rb +70 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/auto_scale_run.rb +74 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/auto_scale_run_error.rb +80 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/auto_scale_settings.rb +61 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/auto_storage_base_properties.rb +47 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/auto_storage_properties.rb +56 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/auto_user_scope.rb +16 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/auto_user_specification.rb +69 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/batch_account.rb +208 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/batch_account_create_parameters.rb +110 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/batch_account_keys.rb +71 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/batch_account_list_result.rb +99 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/batch_account_regenerate_key_parameters.rb +48 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/batch_account_update_parameters.rb +68 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/batch_location_quota.rb +48 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/caching_type.rb +17 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate.rb +205 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate_base_properties.rb +75 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate_create_or_update_parameters.rb +135 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate_format.rb +16 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate_provisioning_state.rb +17 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate_reference.rb +120 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate_store_location.rb +16 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/certificate_visibility.rb +17 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/check_name_availability_parameters.rb +61 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/check_name_availability_result.rb +78 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/cloud_service_configuration.rb +83 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/compute_node_deallocation_option.rb +18 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/compute_node_fill_type.rb +16 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/data_disk.rb +101 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/delete_certificate_error.rb +92 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/deployment_configuration.rb +66 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/elevation_level.rb +16 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/environment_setting.rb +58 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/fixed_scale_settings.rb +93 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/image_reference.rb +108 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/inbound_endpoint_protocol.rb +16 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/inbound_nat_pool.rb +141 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/inter_node_communication_state.rb +16 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/key_vault_reference.rb +59 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/linux_user_configuration.rb +81 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/list_applications_result.rb +98 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/list_certificates_result.rb +98 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/list_pools_result.rb +98 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/metadata_item.rb +60 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/name_availability_reason.rb +16 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/network_configuration.rb +86 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/network_security_group_rule.rb +82 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/network_security_group_rule_access.rb +16 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/operation.rb +82 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/operation_display.rb +81 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/operation_list_result.rb +98 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/osdisk.rb +52 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/package_state.rb +17 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/pool.rb +474 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/pool_allocation_mode.rb +16 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/pool_endpoint_configuration.rb +60 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/pool_provisioning_state.rb +16 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/provisioning_state.rb +20 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/proxy_resource.rb +84 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/resize_error.rb +80 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/resize_operation_status.rb +127 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/resource.rb +103 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/resource_file.rb +79 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/scale_settings.rb +69 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/start_task.rb +151 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/storage_account_type.rb +16 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/task_scheduling_policy.rb +49 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/user_account.rb +89 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/user_identity.rb +64 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/virtual_machine_configuration.rb +138 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/models/windows_configuration.rb +48 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/module_definition.rb +9 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/operations.rb +215 -0
- data/lib/2017-09-01/generated/azure_mgmt_batch/pool_operations.rb +1132 -0
- data/lib/azure_mgmt_batch.rb +2 -0
- data/lib/profiles/latest/batch_latest_profile_client.rb +28 -9
- data/lib/profiles/latest/batch_module_definition.rb +0 -1
- data/lib/profiles/latest/modules/batch_profile_module.rb +357 -126
- data/lib/version.rb +1 -1
- metadata +119 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 266678ebe3219eee4c060a4e8d73938c9f7ff5ba
|
4
|
+
data.tar.gz: 9f48bd72e32c8a72c71db4a2e7dc24357578a2d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e97ab379dd7328b08c719c87d03e50af678e95884201d59b401aed445e4194410960aa8d31803c235dca9e5de0f7538f876795ef53a02173030a1d119564b42
|
7
|
+
data.tar.gz: 8c79b066b5249290692e0d8a7e84ecf5dd7f2fc9a79c4640ab40fda0fd7f8fa637ab3f18a83b61837bed7a0ace06e641676800d76e7fe51546894f284a8ce4e3
|
@@ -34,8 +34,8 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
34
34
|
#
|
35
35
|
# @return [Application] operation results.
|
36
36
|
#
|
37
|
-
def create(resource_group_name, account_name, application_id, parameters
|
38
|
-
response = create_async(resource_group_name, account_name, application_id, parameters, custom_headers).value!
|
37
|
+
def create(resource_group_name, account_name, application_id, parameters:nil, custom_headers:nil)
|
38
|
+
response = create_async(resource_group_name, account_name, application_id, parameters:parameters, custom_headers:custom_headers).value!
|
39
39
|
response.body unless response.nil?
|
40
40
|
end
|
41
41
|
|
@@ -52,8 +52,8 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
52
52
|
#
|
53
53
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
54
54
|
#
|
55
|
-
def create_with_http_info(resource_group_name, account_name, application_id, parameters
|
56
|
-
create_async(resource_group_name, account_name, application_id, parameters, custom_headers).value!
|
55
|
+
def create_with_http_info(resource_group_name, account_name, application_id, parameters:nil, custom_headers:nil)
|
56
|
+
create_async(resource_group_name, account_name, application_id, parameters:parameters, custom_headers:custom_headers).value!
|
57
57
|
end
|
58
58
|
|
59
59
|
#
|
@@ -69,7 +69,7 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
69
69
|
#
|
70
70
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
71
71
|
#
|
72
|
-
def create_async(resource_group_name, account_name, application_id, parameters
|
72
|
+
def create_async(resource_group_name, account_name, application_id, parameters:nil, custom_headers:nil)
|
73
73
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
74
74
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
75
75
|
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
@@ -82,13 +82,12 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
82
82
|
|
83
83
|
|
84
84
|
request_headers = {}
|
85
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
85
86
|
|
86
87
|
# Set Headers
|
87
88
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
88
89
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
89
90
|
|
90
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
91
|
-
|
92
91
|
# Serialize Request
|
93
92
|
request_mapper = Azure::Batch::Mgmt::V2015_12_01::Models::AddApplicationParameters.mapper()
|
94
93
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -146,8 +145,8 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
146
145
|
# will be added to the HTTP request.
|
147
146
|
#
|
148
147
|
#
|
149
|
-
def delete(resource_group_name, account_name, application_id, custom_headers
|
150
|
-
response = delete_async(resource_group_name, account_name, application_id, custom_headers).value!
|
148
|
+
def delete(resource_group_name, account_name, application_id, custom_headers:nil)
|
149
|
+
response = delete_async(resource_group_name, account_name, application_id, custom_headers:custom_headers).value!
|
151
150
|
nil
|
152
151
|
end
|
153
152
|
|
@@ -163,8 +162,8 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
163
162
|
#
|
164
163
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
165
164
|
#
|
166
|
-
def delete_with_http_info(resource_group_name, account_name, application_id, custom_headers
|
167
|
-
delete_async(resource_group_name, account_name, application_id, custom_headers).value!
|
165
|
+
def delete_with_http_info(resource_group_name, account_name, application_id, custom_headers:nil)
|
166
|
+
delete_async(resource_group_name, account_name, application_id, custom_headers:custom_headers).value!
|
168
167
|
end
|
169
168
|
|
170
169
|
#
|
@@ -179,7 +178,7 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
179
178
|
#
|
180
179
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
181
180
|
#
|
182
|
-
def delete_async(resource_group_name, account_name, application_id, custom_headers
|
181
|
+
def delete_async(resource_group_name, account_name, application_id, custom_headers:nil)
|
183
182
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
184
183
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
185
184
|
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
@@ -192,6 +191,7 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
192
191
|
|
193
192
|
|
194
193
|
request_headers = {}
|
194
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
195
195
|
|
196
196
|
# Set Headers
|
197
197
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -238,8 +238,8 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
238
238
|
#
|
239
239
|
# @return [Application] operation results.
|
240
240
|
#
|
241
|
-
def get(resource_group_name, account_name, application_id, custom_headers
|
242
|
-
response = get_async(resource_group_name, account_name, application_id, custom_headers).value!
|
241
|
+
def get(resource_group_name, account_name, application_id, custom_headers:nil)
|
242
|
+
response = get_async(resource_group_name, account_name, application_id, custom_headers:custom_headers).value!
|
243
243
|
response.body unless response.nil?
|
244
244
|
end
|
245
245
|
|
@@ -255,8 +255,8 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
255
255
|
#
|
256
256
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
257
257
|
#
|
258
|
-
def get_with_http_info(resource_group_name, account_name, application_id, custom_headers
|
259
|
-
get_async(resource_group_name, account_name, application_id, custom_headers).value!
|
258
|
+
def get_with_http_info(resource_group_name, account_name, application_id, custom_headers:nil)
|
259
|
+
get_async(resource_group_name, account_name, application_id, custom_headers:custom_headers).value!
|
260
260
|
end
|
261
261
|
|
262
262
|
#
|
@@ -271,7 +271,7 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
271
271
|
#
|
272
272
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
273
273
|
#
|
274
|
-
def get_async(resource_group_name, account_name, application_id, custom_headers
|
274
|
+
def get_async(resource_group_name, account_name, application_id, custom_headers:nil)
|
275
275
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
276
276
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
277
277
|
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
@@ -284,6 +284,7 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
284
284
|
|
285
285
|
|
286
286
|
request_headers = {}
|
287
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
287
288
|
|
288
289
|
# Set Headers
|
289
290
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -341,8 +342,8 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
341
342
|
# will be added to the HTTP request.
|
342
343
|
#
|
343
344
|
#
|
344
|
-
def update(resource_group_name, account_name, application_id, parameters, custom_headers
|
345
|
-
response = update_async(resource_group_name, account_name, application_id, parameters, custom_headers).value!
|
345
|
+
def update(resource_group_name, account_name, application_id, parameters, custom_headers:nil)
|
346
|
+
response = update_async(resource_group_name, account_name, application_id, parameters, custom_headers:custom_headers).value!
|
346
347
|
nil
|
347
348
|
end
|
348
349
|
|
@@ -360,8 +361,8 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
360
361
|
#
|
361
362
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
362
363
|
#
|
363
|
-
def update_with_http_info(resource_group_name, account_name, application_id, parameters, custom_headers
|
364
|
-
update_async(resource_group_name, account_name, application_id, parameters, custom_headers).value!
|
364
|
+
def update_with_http_info(resource_group_name, account_name, application_id, parameters, custom_headers:nil)
|
365
|
+
update_async(resource_group_name, account_name, application_id, parameters, custom_headers:custom_headers).value!
|
365
366
|
end
|
366
367
|
|
367
368
|
#
|
@@ -378,7 +379,7 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
378
379
|
#
|
379
380
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
380
381
|
#
|
381
|
-
def update_async(resource_group_name, account_name, application_id, parameters, custom_headers
|
382
|
+
def update_async(resource_group_name, account_name, application_id, parameters, custom_headers:nil)
|
382
383
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
383
384
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
384
385
|
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
@@ -392,13 +393,12 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
392
393
|
|
393
394
|
|
394
395
|
request_headers = {}
|
396
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
395
397
|
|
396
398
|
# Set Headers
|
397
399
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
398
400
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
399
401
|
|
400
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
401
|
-
|
402
402
|
# Serialize Request
|
403
403
|
request_mapper = Azure::Batch::Mgmt::V2015_12_01::Models::UpdateApplicationParameters.mapper()
|
404
404
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -448,8 +448,8 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
448
448
|
#
|
449
449
|
# @return [Array<Application>] operation results.
|
450
450
|
#
|
451
|
-
def list(resource_group_name, account_name, maxresults
|
452
|
-
first_page = list_as_lazy(resource_group_name, account_name, maxresults, custom_headers)
|
451
|
+
def list(resource_group_name, account_name, maxresults:nil, custom_headers:nil)
|
452
|
+
first_page = list_as_lazy(resource_group_name, account_name, maxresults:maxresults, custom_headers:custom_headers)
|
453
453
|
first_page.get_all_items
|
454
454
|
end
|
455
455
|
|
@@ -466,8 +466,8 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
466
466
|
#
|
467
467
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
468
468
|
#
|
469
|
-
def list_with_http_info(resource_group_name, account_name, maxresults
|
470
|
-
list_async(resource_group_name, account_name, maxresults, custom_headers).value!
|
469
|
+
def list_with_http_info(resource_group_name, account_name, maxresults:nil, custom_headers:nil)
|
470
|
+
list_async(resource_group_name, account_name, maxresults:maxresults, custom_headers:custom_headers).value!
|
471
471
|
end
|
472
472
|
|
473
473
|
#
|
@@ -483,7 +483,7 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
483
483
|
#
|
484
484
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
485
485
|
#
|
486
|
-
def list_async(resource_group_name, account_name, maxresults
|
486
|
+
def list_async(resource_group_name, account_name, maxresults:nil, custom_headers:nil)
|
487
487
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
488
488
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
489
489
|
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
@@ -495,6 +495,7 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
495
495
|
|
496
496
|
|
497
497
|
request_headers = {}
|
498
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
498
499
|
|
499
500
|
# Set Headers
|
500
501
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -549,8 +550,8 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
549
550
|
#
|
550
551
|
# @return [ListApplicationsResult] operation results.
|
551
552
|
#
|
552
|
-
def list_next(next_page_link, custom_headers
|
553
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
553
|
+
def list_next(next_page_link, custom_headers:nil)
|
554
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
554
555
|
response.body unless response.nil?
|
555
556
|
end
|
556
557
|
|
@@ -564,8 +565,8 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
564
565
|
#
|
565
566
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
566
567
|
#
|
567
|
-
def list_next_with_http_info(next_page_link, custom_headers
|
568
|
-
list_next_async(next_page_link, custom_headers).value!
|
568
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
569
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
569
570
|
end
|
570
571
|
|
571
572
|
#
|
@@ -578,11 +579,12 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
578
579
|
#
|
579
580
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
580
581
|
#
|
581
|
-
def list_next_async(next_page_link, custom_headers
|
582
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
582
583
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
583
584
|
|
584
585
|
|
585
586
|
request_headers = {}
|
587
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
586
588
|
|
587
589
|
# Set Headers
|
588
590
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -640,12 +642,12 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
640
642
|
# @return [ListApplicationsResult] which provide lazy access to pages of the
|
641
643
|
# response.
|
642
644
|
#
|
643
|
-
def list_as_lazy(resource_group_name, account_name, maxresults
|
644
|
-
response = list_async(resource_group_name, account_name, maxresults, custom_headers).value!
|
645
|
+
def list_as_lazy(resource_group_name, account_name, maxresults:nil, custom_headers:nil)
|
646
|
+
response = list_async(resource_group_name, account_name, maxresults:maxresults, custom_headers:custom_headers).value!
|
645
647
|
unless response.nil?
|
646
648
|
page = response.body
|
647
649
|
page.next_method = Proc.new do |next_page_link|
|
648
|
-
list_next_async(next_page_link, custom_headers)
|
650
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
649
651
|
end
|
650
652
|
page
|
651
653
|
end
|
@@ -35,8 +35,8 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
35
35
|
# will be added to the HTTP request.
|
36
36
|
#
|
37
37
|
#
|
38
|
-
def activate(resource_group_name, account_name, application_id, version, parameters, custom_headers
|
39
|
-
response = activate_async(resource_group_name, account_name, application_id, version, parameters, custom_headers).value!
|
38
|
+
def activate(resource_group_name, account_name, application_id, version, parameters, custom_headers:nil)
|
39
|
+
response = activate_async(resource_group_name, account_name, application_id, version, parameters, custom_headers:custom_headers).value!
|
40
40
|
nil
|
41
41
|
end
|
42
42
|
|
@@ -55,8 +55,8 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
55
55
|
#
|
56
56
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
57
57
|
#
|
58
|
-
def activate_with_http_info(resource_group_name, account_name, application_id, version, parameters, custom_headers
|
59
|
-
activate_async(resource_group_name, account_name, application_id, version, parameters, custom_headers).value!
|
58
|
+
def activate_with_http_info(resource_group_name, account_name, application_id, version, parameters, custom_headers:nil)
|
59
|
+
activate_async(resource_group_name, account_name, application_id, version, parameters, custom_headers:custom_headers).value!
|
60
60
|
end
|
61
61
|
|
62
62
|
#
|
@@ -74,7 +74,7 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
74
74
|
#
|
75
75
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
76
76
|
#
|
77
|
-
def activate_async(resource_group_name, account_name, application_id, version, parameters, custom_headers
|
77
|
+
def activate_async(resource_group_name, account_name, application_id, version, parameters, custom_headers:nil)
|
78
78
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
79
79
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
80
80
|
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
@@ -89,13 +89,12 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
89
89
|
|
90
90
|
|
91
91
|
request_headers = {}
|
92
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
92
93
|
|
93
94
|
# Set Headers
|
94
95
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
95
96
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
96
97
|
|
97
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
98
|
-
|
99
98
|
# Serialize Request
|
100
99
|
request_mapper = Azure::Batch::Mgmt::V2015_12_01::Models::ActivateApplicationPackageParameters.mapper()
|
101
100
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -145,8 +144,8 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
145
144
|
#
|
146
145
|
# @return [ApplicationPackage] operation results.
|
147
146
|
#
|
148
|
-
def create(resource_group_name, account_name, application_id, version, custom_headers
|
149
|
-
response = create_async(resource_group_name, account_name, application_id, version, custom_headers).value!
|
147
|
+
def create(resource_group_name, account_name, application_id, version, custom_headers:nil)
|
148
|
+
response = create_async(resource_group_name, account_name, application_id, version, custom_headers:custom_headers).value!
|
150
149
|
response.body unless response.nil?
|
151
150
|
end
|
152
151
|
|
@@ -163,8 +162,8 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
163
162
|
#
|
164
163
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
165
164
|
#
|
166
|
-
def create_with_http_info(resource_group_name, account_name, application_id, version, custom_headers
|
167
|
-
create_async(resource_group_name, account_name, application_id, version, custom_headers).value!
|
165
|
+
def create_with_http_info(resource_group_name, account_name, application_id, version, custom_headers:nil)
|
166
|
+
create_async(resource_group_name, account_name, application_id, version, custom_headers:custom_headers).value!
|
168
167
|
end
|
169
168
|
|
170
169
|
#
|
@@ -180,7 +179,7 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
180
179
|
#
|
181
180
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
182
181
|
#
|
183
|
-
def create_async(resource_group_name, account_name, application_id, version, custom_headers
|
182
|
+
def create_async(resource_group_name, account_name, application_id, version, custom_headers:nil)
|
184
183
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
185
184
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
186
185
|
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
@@ -194,6 +193,7 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
194
193
|
|
195
194
|
|
196
195
|
request_headers = {}
|
196
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
197
197
|
|
198
198
|
# Set Headers
|
199
199
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -250,8 +250,8 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
250
250
|
# will be added to the HTTP request.
|
251
251
|
#
|
252
252
|
#
|
253
|
-
def delete(resource_group_name, account_name, application_id, version, custom_headers
|
254
|
-
response = delete_async(resource_group_name, account_name, application_id, version, custom_headers).value!
|
253
|
+
def delete(resource_group_name, account_name, application_id, version, custom_headers:nil)
|
254
|
+
response = delete_async(resource_group_name, account_name, application_id, version, custom_headers:custom_headers).value!
|
255
255
|
nil
|
256
256
|
end
|
257
257
|
|
@@ -268,8 +268,8 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
268
268
|
#
|
269
269
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
270
270
|
#
|
271
|
-
def delete_with_http_info(resource_group_name, account_name, application_id, version, custom_headers
|
272
|
-
delete_async(resource_group_name, account_name, application_id, version, custom_headers).value!
|
271
|
+
def delete_with_http_info(resource_group_name, account_name, application_id, version, custom_headers:nil)
|
272
|
+
delete_async(resource_group_name, account_name, application_id, version, custom_headers:custom_headers).value!
|
273
273
|
end
|
274
274
|
|
275
275
|
#
|
@@ -285,7 +285,7 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
285
285
|
#
|
286
286
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
287
287
|
#
|
288
|
-
def delete_async(resource_group_name, account_name, application_id, version, custom_headers
|
288
|
+
def delete_async(resource_group_name, account_name, application_id, version, custom_headers:nil)
|
289
289
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
290
290
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
291
291
|
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
@@ -299,6 +299,7 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
299
299
|
|
300
300
|
|
301
301
|
request_headers = {}
|
302
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
302
303
|
|
303
304
|
# Set Headers
|
304
305
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -346,8 +347,8 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
346
347
|
#
|
347
348
|
# @return [ApplicationPackage] operation results.
|
348
349
|
#
|
349
|
-
def get(resource_group_name, account_name, application_id, version, custom_headers
|
350
|
-
response = get_async(resource_group_name, account_name, application_id, version, custom_headers).value!
|
350
|
+
def get(resource_group_name, account_name, application_id, version, custom_headers:nil)
|
351
|
+
response = get_async(resource_group_name, account_name, application_id, version, custom_headers:custom_headers).value!
|
351
352
|
response.body unless response.nil?
|
352
353
|
end
|
353
354
|
|
@@ -364,8 +365,8 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
364
365
|
#
|
365
366
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
366
367
|
#
|
367
|
-
def get_with_http_info(resource_group_name, account_name, application_id, version, custom_headers
|
368
|
-
get_async(resource_group_name, account_name, application_id, version, custom_headers).value!
|
368
|
+
def get_with_http_info(resource_group_name, account_name, application_id, version, custom_headers:nil)
|
369
|
+
get_async(resource_group_name, account_name, application_id, version, custom_headers:custom_headers).value!
|
369
370
|
end
|
370
371
|
|
371
372
|
#
|
@@ -381,7 +382,7 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
381
382
|
#
|
382
383
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
383
384
|
#
|
384
|
-
def get_async(resource_group_name, account_name, application_id, version, custom_headers
|
385
|
+
def get_async(resource_group_name, account_name, application_id, version, custom_headers:nil)
|
385
386
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
386
387
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
387
388
|
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
@@ -395,6 +396,7 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
395
396
|
|
396
397
|
|
397
398
|
request_headers = {}
|
399
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
398
400
|
|
399
401
|
# Set Headers
|
400
402
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -41,8 +41,8 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
41
41
|
#
|
42
42
|
# @return [BatchAccount] operation results.
|
43
43
|
#
|
44
|
-
def create(resource_group_name, account_name, parameters, custom_headers
|
45
|
-
response = create_async(resource_group_name, account_name, parameters, custom_headers).value!
|
44
|
+
def create(resource_group_name, account_name, parameters, custom_headers:nil)
|
45
|
+
response = create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value!
|
46
46
|
response.body unless response.nil?
|
47
47
|
end
|
48
48
|
|
@@ -63,9 +63,9 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
63
63
|
# @return [Concurrent::Promise] promise which provides async access to http
|
64
64
|
# response.
|
65
65
|
#
|
66
|
-
def create_async(resource_group_name, account_name, parameters, custom_headers
|
66
|
+
def create_async(resource_group_name, account_name, parameters, custom_headers:nil)
|
67
67
|
# Send request
|
68
|
-
promise = begin_create_async(resource_group_name, account_name, parameters, custom_headers)
|
68
|
+
promise = begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers)
|
69
69
|
|
70
70
|
promise = promise.then do |response|
|
71
71
|
# Defining deserialization method.
|
@@ -94,8 +94,8 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
94
94
|
#
|
95
95
|
# @return [BatchAccount] operation results.
|
96
96
|
#
|
97
|
-
def update(resource_group_name, account_name, parameters, custom_headers
|
98
|
-
response = update_async(resource_group_name, account_name, parameters, custom_headers).value!
|
97
|
+
def update(resource_group_name, account_name, parameters, custom_headers:nil)
|
98
|
+
response = update_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value!
|
99
99
|
response.body unless response.nil?
|
100
100
|
end
|
101
101
|
|
@@ -112,8 +112,8 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
112
112
|
#
|
113
113
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
114
114
|
#
|
115
|
-
def update_with_http_info(resource_group_name, account_name, parameters, custom_headers
|
116
|
-
update_async(resource_group_name, account_name, parameters, custom_headers).value!
|
115
|
+
def update_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil)
|
116
|
+
update_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value!
|
117
117
|
end
|
118
118
|
|
119
119
|
#
|
@@ -129,7 +129,7 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
129
129
|
#
|
130
130
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
131
131
|
#
|
132
|
-
def update_async(resource_group_name, account_name, parameters, custom_headers
|
132
|
+
def update_async(resource_group_name, account_name, parameters, custom_headers:nil)
|
133
133
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
134
134
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
135
135
|
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
@@ -142,13 +142,12 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
142
142
|
|
143
143
|
|
144
144
|
request_headers = {}
|
145
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
145
146
|
|
146
147
|
# Set Headers
|
147
148
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
148
149
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
149
150
|
|
150
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
151
|
-
|
152
151
|
# Serialize Request
|
153
152
|
request_mapper = Azure::Batch::Mgmt::V2015_12_01::Models::BatchAccountUpdateParameters.mapper()
|
154
153
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -204,8 +203,8 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
204
203
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
205
204
|
# will be added to the HTTP request.
|
206
205
|
#
|
207
|
-
def delete(resource_group_name, account_name, custom_headers
|
208
|
-
response = delete_async(resource_group_name, account_name, custom_headers).value!
|
206
|
+
def delete(resource_group_name, account_name, custom_headers:nil)
|
207
|
+
response = delete_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
209
208
|
nil
|
210
209
|
end
|
211
210
|
|
@@ -219,9 +218,9 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
219
218
|
# @return [Concurrent::Promise] promise which provides async access to http
|
220
219
|
# response.
|
221
220
|
#
|
222
|
-
def delete_async(resource_group_name, account_name, custom_headers
|
221
|
+
def delete_async(resource_group_name, account_name, custom_headers:nil)
|
223
222
|
# Send request
|
224
|
-
promise = begin_delete_async(resource_group_name, account_name, custom_headers)
|
223
|
+
promise = begin_delete_async(resource_group_name, account_name, custom_headers:custom_headers)
|
225
224
|
|
226
225
|
promise = promise.then do |response|
|
227
226
|
# Defining deserialization method.
|
@@ -246,8 +245,8 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
246
245
|
#
|
247
246
|
# @return [BatchAccount] operation results.
|
248
247
|
#
|
249
|
-
def get(resource_group_name, account_name, custom_headers
|
250
|
-
response = get_async(resource_group_name, account_name, custom_headers).value!
|
248
|
+
def get(resource_group_name, account_name, custom_headers:nil)
|
249
|
+
response = get_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
251
250
|
response.body unless response.nil?
|
252
251
|
end
|
253
252
|
|
@@ -262,8 +261,8 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
262
261
|
#
|
263
262
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
264
263
|
#
|
265
|
-
def get_with_http_info(resource_group_name, account_name, custom_headers
|
266
|
-
get_async(resource_group_name, account_name, custom_headers).value!
|
264
|
+
def get_with_http_info(resource_group_name, account_name, custom_headers:nil)
|
265
|
+
get_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
267
266
|
end
|
268
267
|
|
269
268
|
#
|
@@ -277,7 +276,7 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
277
276
|
#
|
278
277
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
279
278
|
#
|
280
|
-
def get_async(resource_group_name, account_name, custom_headers
|
279
|
+
def get_async(resource_group_name, account_name, custom_headers:nil)
|
281
280
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
282
281
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
283
282
|
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
@@ -289,6 +288,7 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
289
288
|
|
290
289
|
|
291
290
|
request_headers = {}
|
291
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
292
292
|
|
293
293
|
# Set Headers
|
294
294
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -341,8 +341,8 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
341
341
|
#
|
342
342
|
# @return [Array<BatchAccount>] operation results.
|
343
343
|
#
|
344
|
-
def list(custom_headers
|
345
|
-
first_page = list_as_lazy(custom_headers)
|
344
|
+
def list(custom_headers:nil)
|
345
|
+
first_page = list_as_lazy(custom_headers:custom_headers)
|
346
346
|
first_page.get_all_items
|
347
347
|
end
|
348
348
|
|
@@ -354,8 +354,8 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
354
354
|
#
|
355
355
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
356
356
|
#
|
357
|
-
def list_with_http_info(custom_headers
|
358
|
-
list_async(custom_headers).value!
|
357
|
+
def list_with_http_info(custom_headers:nil)
|
358
|
+
list_async(custom_headers:custom_headers).value!
|
359
359
|
end
|
360
360
|
|
361
361
|
#
|
@@ -366,12 +366,13 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
366
366
|
#
|
367
367
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
368
368
|
#
|
369
|
-
def list_async(custom_headers
|
369
|
+
def list_async(custom_headers:nil)
|
370
370
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
371
371
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
372
372
|
|
373
373
|
|
374
374
|
request_headers = {}
|
375
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
375
376
|
|
376
377
|
# Set Headers
|
377
378
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -427,8 +428,8 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
427
428
|
#
|
428
429
|
# @return [Array<BatchAccount>] operation results.
|
429
430
|
#
|
430
|
-
def list_by_resource_group(resource_group_name, custom_headers
|
431
|
-
first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers)
|
431
|
+
def list_by_resource_group(resource_group_name, custom_headers:nil)
|
432
|
+
first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers)
|
432
433
|
first_page.get_all_items
|
433
434
|
end
|
434
435
|
|
@@ -443,8 +444,8 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
443
444
|
#
|
444
445
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
445
446
|
#
|
446
|
-
def list_by_resource_group_with_http_info(resource_group_name, custom_headers
|
447
|
-
list_by_resource_group_async(resource_group_name, custom_headers).value!
|
447
|
+
def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
|
448
|
+
list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
|
448
449
|
end
|
449
450
|
|
450
451
|
#
|
@@ -458,7 +459,7 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
458
459
|
#
|
459
460
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
460
461
|
#
|
461
|
-
def list_by_resource_group_async(resource_group_name, custom_headers
|
462
|
+
def list_by_resource_group_async(resource_group_name, custom_headers:nil)
|
462
463
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
463
464
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
464
465
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -466,6 +467,7 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
466
467
|
|
467
468
|
|
468
469
|
request_headers = {}
|
470
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
469
471
|
|
470
472
|
# Set Headers
|
471
473
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -521,8 +523,8 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
521
523
|
# will be added to the HTTP request.
|
522
524
|
#
|
523
525
|
#
|
524
|
-
def synchronize_auto_storage_keys(resource_group_name, account_name, custom_headers
|
525
|
-
response = synchronize_auto_storage_keys_async(resource_group_name, account_name, custom_headers).value!
|
526
|
+
def synchronize_auto_storage_keys(resource_group_name, account_name, custom_headers:nil)
|
527
|
+
response = synchronize_auto_storage_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
526
528
|
nil
|
527
529
|
end
|
528
530
|
|
@@ -538,8 +540,8 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
538
540
|
#
|
539
541
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
540
542
|
#
|
541
|
-
def synchronize_auto_storage_keys_with_http_info(resource_group_name, account_name, custom_headers
|
542
|
-
synchronize_auto_storage_keys_async(resource_group_name, account_name, custom_headers).value!
|
543
|
+
def synchronize_auto_storage_keys_with_http_info(resource_group_name, account_name, custom_headers:nil)
|
544
|
+
synchronize_auto_storage_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
543
545
|
end
|
544
546
|
|
545
547
|
#
|
@@ -554,7 +556,7 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
554
556
|
#
|
555
557
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
556
558
|
#
|
557
|
-
def synchronize_auto_storage_keys_async(resource_group_name, account_name, custom_headers
|
559
|
+
def synchronize_auto_storage_keys_async(resource_group_name, account_name, custom_headers:nil)
|
558
560
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
559
561
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
560
562
|
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
@@ -566,6 +568,7 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
566
568
|
|
567
569
|
|
568
570
|
request_headers = {}
|
571
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
569
572
|
|
570
573
|
# Set Headers
|
571
574
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -613,8 +616,8 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
613
616
|
#
|
614
617
|
# @return [BatchAccountKeys] operation results.
|
615
618
|
#
|
616
|
-
def regenerate_key(resource_group_name, account_name, parameters, custom_headers
|
617
|
-
response = regenerate_key_async(resource_group_name, account_name, parameters, custom_headers).value!
|
619
|
+
def regenerate_key(resource_group_name, account_name, parameters, custom_headers:nil)
|
620
|
+
response = regenerate_key_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value!
|
618
621
|
response.body unless response.nil?
|
619
622
|
end
|
620
623
|
|
@@ -631,8 +634,8 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
631
634
|
#
|
632
635
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
633
636
|
#
|
634
|
-
def regenerate_key_with_http_info(resource_group_name, account_name, parameters, custom_headers
|
635
|
-
regenerate_key_async(resource_group_name, account_name, parameters, custom_headers).value!
|
637
|
+
def regenerate_key_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil)
|
638
|
+
regenerate_key_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value!
|
636
639
|
end
|
637
640
|
|
638
641
|
#
|
@@ -648,7 +651,7 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
648
651
|
#
|
649
652
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
650
653
|
#
|
651
|
-
def regenerate_key_async(resource_group_name, account_name, parameters, custom_headers
|
654
|
+
def regenerate_key_async(resource_group_name, account_name, parameters, custom_headers:nil)
|
652
655
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
653
656
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
654
657
|
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
@@ -661,13 +664,12 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
661
664
|
|
662
665
|
|
663
666
|
request_headers = {}
|
667
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
664
668
|
|
665
669
|
# Set Headers
|
666
670
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
667
671
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
668
672
|
|
669
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
670
|
-
|
671
673
|
# Serialize Request
|
672
674
|
request_mapper = Azure::Batch::Mgmt::V2015_12_01::Models::BatchAccountRegenerateKeyParameters.mapper()
|
673
675
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -725,8 +727,8 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
725
727
|
#
|
726
728
|
# @return [BatchAccountKeys] operation results.
|
727
729
|
#
|
728
|
-
def get_keys(resource_group_name, account_name, custom_headers
|
729
|
-
response = get_keys_async(resource_group_name, account_name, custom_headers).value!
|
730
|
+
def get_keys(resource_group_name, account_name, custom_headers:nil)
|
731
|
+
response = get_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
730
732
|
response.body unless response.nil?
|
731
733
|
end
|
732
734
|
|
@@ -741,8 +743,8 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
741
743
|
#
|
742
744
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
743
745
|
#
|
744
|
-
def get_keys_with_http_info(resource_group_name, account_name, custom_headers
|
745
|
-
get_keys_async(resource_group_name, account_name, custom_headers).value!
|
746
|
+
def get_keys_with_http_info(resource_group_name, account_name, custom_headers:nil)
|
747
|
+
get_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
746
748
|
end
|
747
749
|
|
748
750
|
#
|
@@ -756,7 +758,7 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
756
758
|
#
|
757
759
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
758
760
|
#
|
759
|
-
def get_keys_async(resource_group_name, account_name, custom_headers
|
761
|
+
def get_keys_async(resource_group_name, account_name, custom_headers:nil)
|
760
762
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
761
763
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
762
764
|
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
@@ -768,6 +770,7 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
768
770
|
|
769
771
|
|
770
772
|
request_headers = {}
|
773
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
771
774
|
|
772
775
|
# Set Headers
|
773
776
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -832,8 +835,8 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
832
835
|
#
|
833
836
|
# @return [BatchAccount] operation results.
|
834
837
|
#
|
835
|
-
def begin_create(resource_group_name, account_name, parameters, custom_headers
|
836
|
-
response = begin_create_async(resource_group_name, account_name, parameters, custom_headers).value!
|
838
|
+
def begin_create(resource_group_name, account_name, parameters, custom_headers:nil)
|
839
|
+
response = begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value!
|
837
840
|
response.body unless response.nil?
|
838
841
|
end
|
839
842
|
|
@@ -857,8 +860,8 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
857
860
|
#
|
858
861
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
859
862
|
#
|
860
|
-
def begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers
|
861
|
-
begin_create_async(resource_group_name, account_name, parameters, custom_headers).value!
|
863
|
+
def begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil)
|
864
|
+
begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value!
|
862
865
|
end
|
863
866
|
|
864
867
|
#
|
@@ -881,7 +884,7 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
881
884
|
#
|
882
885
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
883
886
|
#
|
884
|
-
def begin_create_async(resource_group_name, account_name, parameters, custom_headers
|
887
|
+
def begin_create_async(resource_group_name, account_name, parameters, custom_headers:nil)
|
885
888
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
886
889
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
887
890
|
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
@@ -894,13 +897,12 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
894
897
|
|
895
898
|
|
896
899
|
request_headers = {}
|
900
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
897
901
|
|
898
902
|
# Set Headers
|
899
903
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
900
904
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
901
905
|
|
902
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
903
|
-
|
904
906
|
# Serialize Request
|
905
907
|
request_mapper = Azure::Batch::Mgmt::V2015_12_01::Models::BatchAccountCreateParameters.mapper()
|
906
908
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -957,8 +959,8 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
957
959
|
# will be added to the HTTP request.
|
958
960
|
#
|
959
961
|
#
|
960
|
-
def begin_delete(resource_group_name, account_name, custom_headers
|
961
|
-
response = begin_delete_async(resource_group_name, account_name, custom_headers).value!
|
962
|
+
def begin_delete(resource_group_name, account_name, custom_headers:nil)
|
963
|
+
response = begin_delete_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
962
964
|
nil
|
963
965
|
end
|
964
966
|
|
@@ -973,8 +975,8 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
973
975
|
#
|
974
976
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
975
977
|
#
|
976
|
-
def begin_delete_with_http_info(resource_group_name, account_name, custom_headers
|
977
|
-
begin_delete_async(resource_group_name, account_name, custom_headers).value!
|
978
|
+
def begin_delete_with_http_info(resource_group_name, account_name, custom_headers:nil)
|
979
|
+
begin_delete_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
978
980
|
end
|
979
981
|
|
980
982
|
#
|
@@ -988,7 +990,7 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
988
990
|
#
|
989
991
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
990
992
|
#
|
991
|
-
def begin_delete_async(resource_group_name, account_name, custom_headers
|
993
|
+
def begin_delete_async(resource_group_name, account_name, custom_headers:nil)
|
992
994
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
993
995
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
994
996
|
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
@@ -1000,6 +1002,7 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
1000
1002
|
|
1001
1003
|
|
1002
1004
|
request_headers = {}
|
1005
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1003
1006
|
|
1004
1007
|
# Set Headers
|
1005
1008
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1044,8 +1047,8 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
1044
1047
|
#
|
1045
1048
|
# @return [BatchAccountListResult] operation results.
|
1046
1049
|
#
|
1047
|
-
def list_next(next_page_link, custom_headers
|
1048
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
1050
|
+
def list_next(next_page_link, custom_headers:nil)
|
1051
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
1049
1052
|
response.body unless response.nil?
|
1050
1053
|
end
|
1051
1054
|
|
@@ -1059,8 +1062,8 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
1059
1062
|
#
|
1060
1063
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1061
1064
|
#
|
1062
|
-
def list_next_with_http_info(next_page_link, custom_headers
|
1063
|
-
list_next_async(next_page_link, custom_headers).value!
|
1065
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
1066
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
1064
1067
|
end
|
1065
1068
|
|
1066
1069
|
#
|
@@ -1073,11 +1076,12 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
1073
1076
|
#
|
1074
1077
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1075
1078
|
#
|
1076
|
-
def list_next_async(next_page_link, custom_headers
|
1079
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
1077
1080
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1078
1081
|
|
1079
1082
|
|
1080
1083
|
request_headers = {}
|
1084
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1081
1085
|
|
1082
1086
|
# Set Headers
|
1083
1087
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1132,8 +1136,8 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
1132
1136
|
#
|
1133
1137
|
# @return [BatchAccountListResult] operation results.
|
1134
1138
|
#
|
1135
|
-
def list_by_resource_group_next(next_page_link, custom_headers
|
1136
|
-
response = list_by_resource_group_next_async(next_page_link, custom_headers).value!
|
1139
|
+
def list_by_resource_group_next(next_page_link, custom_headers:nil)
|
1140
|
+
response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
|
1137
1141
|
response.body unless response.nil?
|
1138
1142
|
end
|
1139
1143
|
|
@@ -1148,8 +1152,8 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
1148
1152
|
#
|
1149
1153
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1150
1154
|
#
|
1151
|
-
def list_by_resource_group_next_with_http_info(next_page_link, custom_headers
|
1152
|
-
list_by_resource_group_next_async(next_page_link, custom_headers).value!
|
1155
|
+
def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
|
1156
|
+
list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
|
1153
1157
|
end
|
1154
1158
|
|
1155
1159
|
#
|
@@ -1163,11 +1167,12 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
1163
1167
|
#
|
1164
1168
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1165
1169
|
#
|
1166
|
-
def list_by_resource_group_next_async(next_page_link, custom_headers
|
1170
|
+
def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
|
1167
1171
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1168
1172
|
|
1169
1173
|
|
1170
1174
|
request_headers = {}
|
1175
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1171
1176
|
|
1172
1177
|
# Set Headers
|
1173
1178
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1220,12 +1225,12 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
1220
1225
|
# @return [BatchAccountListResult] which provide lazy access to pages of the
|
1221
1226
|
# response.
|
1222
1227
|
#
|
1223
|
-
def list_as_lazy(custom_headers
|
1224
|
-
response = list_async(custom_headers).value!
|
1228
|
+
def list_as_lazy(custom_headers:nil)
|
1229
|
+
response = list_async(custom_headers:custom_headers).value!
|
1225
1230
|
unless response.nil?
|
1226
1231
|
page = response.body
|
1227
1232
|
page.next_method = Proc.new do |next_page_link|
|
1228
|
-
list_next_async(next_page_link, custom_headers)
|
1233
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
1229
1234
|
end
|
1230
1235
|
page
|
1231
1236
|
end
|
@@ -1243,12 +1248,12 @@ module Azure::Batch::Mgmt::V2015_12_01
|
|
1243
1248
|
# @return [BatchAccountListResult] which provide lazy access to pages of the
|
1244
1249
|
# response.
|
1245
1250
|
#
|
1246
|
-
def list_by_resource_group_as_lazy(resource_group_name, custom_headers
|
1247
|
-
response = list_by_resource_group_async(resource_group_name, custom_headers).value!
|
1251
|
+
def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil)
|
1252
|
+
response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
|
1248
1253
|
unless response.nil?
|
1249
1254
|
page = response.body
|
1250
1255
|
page.next_method = Proc.new do |next_page_link|
|
1251
|
-
list_by_resource_group_next_async(next_page_link, custom_headers)
|
1256
|
+
list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
|
1252
1257
|
end
|
1253
1258
|
page
|
1254
1259
|
end
|