azure_mgmt_batch 0.10.0 → 0.11.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/generated/azure_mgmt_batch.rb +15 -11
- data/lib/generated/azure_mgmt_batch/application_operations.rb +27 -25
- data/lib/generated/azure_mgmt_batch/application_package_operations.rb +11 -12
- data/lib/generated/azure_mgmt_batch/batch_account_operations.rb +82 -83
- data/lib/generated/azure_mgmt_batch/batch_management_client.rb +8 -4
- data/lib/generated/azure_mgmt_batch/location.rb +10 -8
- data/lib/generated/azure_mgmt_batch/models/account_key_type.rb +1 -1
- data/lib/generated/azure_mgmt_batch/models/activate_application_package_parameters.rb +3 -3
- data/lib/generated/azure_mgmt_batch/models/application.rb +2 -1
- data/lib/generated/azure_mgmt_batch/models/{add_application_parameters.rb → application_create_parameters.rb} +7 -6
- data/lib/generated/azure_mgmt_batch/models/application_package.rb +5 -4
- data/lib/generated/azure_mgmt_batch/models/{update_application_parameters.rb → application_update_parameters.rb} +7 -6
- data/lib/generated/azure_mgmt_batch/models/auto_storage_base_properties.rb +4 -3
- data/lib/generated/azure_mgmt_batch/models/auto_storage_properties.rb +4 -7
- data/lib/generated/azure_mgmt_batch/models/batch_account.rb +21 -9
- data/lib/generated/azure_mgmt_batch/models/batch_account_create_parameters.rb +5 -4
- data/lib/generated/azure_mgmt_batch/models/batch_account_keys.rb +13 -1
- data/lib/generated/azure_mgmt_batch/models/batch_account_list_result.rb +4 -3
- data/lib/generated/azure_mgmt_batch/models/batch_account_regenerate_key_parameters.rb +2 -1
- data/lib/generated/azure_mgmt_batch/models/batch_account_update_parameters.rb +6 -34
- data/lib/generated/azure_mgmt_batch/models/batch_location_quota.rb +2 -1
- data/lib/generated/azure_mgmt_batch/models/key_vault_reference.rb +3 -2
- data/lib/generated/azure_mgmt_batch/models/list_applications_result.rb +3 -2
- data/lib/generated/azure_mgmt_batch/models/operation.rb +78 -0
- data/lib/generated/azure_mgmt_batch/models/operation_display.rb +77 -0
- data/lib/generated/azure_mgmt_batch/models/operation_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_batch/models/package_state.rb +1 -1
- data/lib/generated/azure_mgmt_batch/models/pool_allocation_mode.rb +1 -1
- data/lib/generated/azure_mgmt_batch/models/provisioning_state.rb +1 -1
- data/lib/generated/azure_mgmt_batch/module_definition.rb +1 -1
- data/lib/generated/azure_mgmt_batch/operations.rb +213 -0
- data/lib/generated/azure_mgmt_batch/version.rb +2 -2
- metadata +10 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63feeef35bc8a241871399feff9b9df64a31a2be
|
4
|
+
data.tar.gz: ab40e89e4c93ba44494074f27af7f7999291d29b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3940fec35430a94abde6a4941602d2b502695d4707144d6d48ea0c219da5e0e75e2f81b10044b6915e6fd826395aba0cda2bbffa23040001e90d22e866ab44f3
|
7
|
+
data.tar.gz: eab21386ccc1b2f6edc7332e7430bee6391516764591627c4d1eca50de45246f943d49016aa47b97c05eb439a6be8021b58f49adf152fa1d21d7f5757112f843
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
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
|
|
@@ -24,24 +24,28 @@ module Azure::ARM::Batch
|
|
24
24
|
autoload :ApplicationPackageOperations, 'generated/azure_mgmt_batch/application_package_operations.rb'
|
25
25
|
autoload :ApplicationOperations, 'generated/azure_mgmt_batch/application_operations.rb'
|
26
26
|
autoload :Location, 'generated/azure_mgmt_batch/location.rb'
|
27
|
+
autoload :Operations, 'generated/azure_mgmt_batch/operations.rb'
|
27
28
|
autoload :BatchManagementClient, 'generated/azure_mgmt_batch/batch_management_client.rb'
|
28
29
|
|
29
30
|
module Models
|
30
|
-
autoload :
|
31
|
-
autoload :ActivateApplicationPackageParameters, 'generated/azure_mgmt_batch/models/activate_application_package_parameters.rb'
|
32
|
-
autoload :KeyVaultReference, 'generated/azure_mgmt_batch/models/key_vault_reference.rb'
|
33
|
-
autoload :AddApplicationParameters, 'generated/azure_mgmt_batch/models/add_application_parameters.rb'
|
34
|
-
autoload :AutoStorageProperties, 'generated/azure_mgmt_batch/models/auto_storage_properties.rb'
|
31
|
+
autoload :ApplicationCreateParameters, 'generated/azure_mgmt_batch/models/application_create_parameters.rb'
|
35
32
|
autoload :ApplicationPackage, 'generated/azure_mgmt_batch/models/application_package.rb'
|
36
|
-
autoload :
|
33
|
+
autoload :KeyVaultReference, 'generated/azure_mgmt_batch/models/key_vault_reference.rb'
|
37
34
|
autoload :Application, 'generated/azure_mgmt_batch/models/application.rb'
|
38
|
-
autoload :BatchAccountRegenerateKeyParameters, 'generated/azure_mgmt_batch/models/batch_account_regenerate_key_parameters.rb'
|
39
|
-
autoload :ListApplicationsResult, 'generated/azure_mgmt_batch/models/list_applications_result.rb'
|
40
35
|
autoload :BatchAccountCreateParameters, 'generated/azure_mgmt_batch/models/batch_account_create_parameters.rb'
|
41
|
-
autoload :
|
42
|
-
autoload :
|
36
|
+
autoload :Operation, 'generated/azure_mgmt_batch/models/operation.rb'
|
37
|
+
autoload :BatchAccountUpdateParameters, 'generated/azure_mgmt_batch/models/batch_account_update_parameters.rb'
|
38
|
+
autoload :ListApplicationsResult, 'generated/azure_mgmt_batch/models/list_applications_result.rb'
|
39
|
+
autoload :BatchAccountRegenerateKeyParameters, 'generated/azure_mgmt_batch/models/batch_account_regenerate_key_parameters.rb'
|
40
|
+
autoload :ApplicationUpdateParameters, 'generated/azure_mgmt_batch/models/application_update_parameters.rb'
|
41
|
+
autoload :ActivateApplicationPackageParameters, 'generated/azure_mgmt_batch/models/activate_application_package_parameters.rb'
|
43
42
|
autoload :BatchLocationQuota, 'generated/azure_mgmt_batch/models/batch_location_quota.rb'
|
43
|
+
autoload :OperationListResult, 'generated/azure_mgmt_batch/models/operation_list_result.rb'
|
44
|
+
autoload :BatchAccountKeys, 'generated/azure_mgmt_batch/models/batch_account_keys.rb'
|
45
|
+
autoload :BatchAccountListResult, 'generated/azure_mgmt_batch/models/batch_account_list_result.rb'
|
44
46
|
autoload :AutoStorageBaseProperties, 'generated/azure_mgmt_batch/models/auto_storage_base_properties.rb'
|
47
|
+
autoload :OperationDisplay, 'generated/azure_mgmt_batch/models/operation_display.rb'
|
48
|
+
autoload :AutoStorageProperties, 'generated/azure_mgmt_batch/models/auto_storage_properties.rb'
|
45
49
|
autoload :BatchAccount, 'generated/azure_mgmt_batch/models/batch_account.rb'
|
46
50
|
autoload :PoolAllocationMode, 'generated/azure_mgmt_batch/models/pool_allocation_mode.rb'
|
47
51
|
autoload :ProvisioningState, 'generated/azure_mgmt_batch/models/provisioning_state.rb'
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
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
|
|
@@ -8,7 +8,6 @@ module Azure::ARM::Batch
|
|
8
8
|
# ApplicationOperations
|
9
9
|
#
|
10
10
|
class ApplicationOperations
|
11
|
-
include Azure::ARM::Batch::Models
|
12
11
|
include MsRestAzure
|
13
12
|
|
14
13
|
#
|
@@ -29,7 +28,8 @@ module Azure::ARM::Batch
|
|
29
28
|
# contains the Batch account.
|
30
29
|
# @param account_name [String] The name of the Batch account.
|
31
30
|
# @param application_id [String] The ID of the application.
|
32
|
-
# @param parameters [
|
31
|
+
# @param parameters [ApplicationCreateParameters] The parameters for the
|
32
|
+
# request.
|
33
33
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
34
34
|
# will be added to the HTTP request.
|
35
35
|
#
|
@@ -47,7 +47,8 @@ module Azure::ARM::Batch
|
|
47
47
|
# contains the Batch account.
|
48
48
|
# @param account_name [String] The name of the Batch account.
|
49
49
|
# @param application_id [String] The ID of the application.
|
50
|
-
# @param parameters [
|
50
|
+
# @param parameters [ApplicationCreateParameters] The parameters for the
|
51
|
+
# request.
|
51
52
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
52
53
|
# will be added to the HTTP request.
|
53
54
|
#
|
@@ -64,7 +65,8 @@ module Azure::ARM::Batch
|
|
64
65
|
# contains the Batch account.
|
65
66
|
# @param account_name [String] The name of the Batch account.
|
66
67
|
# @param application_id [String] The ID of the application.
|
67
|
-
# @param parameters [
|
68
|
+
# @param parameters [ApplicationCreateParameters] The parameters for the
|
69
|
+
# request.
|
68
70
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
69
71
|
# to the HTTP request.
|
70
72
|
#
|
@@ -87,11 +89,11 @@ module Azure::ARM::Batch
|
|
87
89
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
88
90
|
|
89
91
|
# Serialize Request
|
90
|
-
request_mapper =
|
91
|
-
request_content = @client.serialize(request_mapper, parameters
|
92
|
+
request_mapper = Azure::ARM::Batch::Models::ApplicationCreateParameters.mapper()
|
93
|
+
request_content = @client.serialize(request_mapper, parameters)
|
92
94
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
93
95
|
|
94
|
-
path_template = '
|
96
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationId}'
|
95
97
|
|
96
98
|
request_url = @base_url || @client.base_url
|
97
99
|
|
@@ -119,8 +121,8 @@ module Azure::ARM::Batch
|
|
119
121
|
if status_code == 201
|
120
122
|
begin
|
121
123
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
122
|
-
result_mapper = Application.mapper()
|
123
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
124
|
+
result_mapper = Azure::ARM::Batch::Models::Application.mapper()
|
125
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
124
126
|
rescue Exception => e
|
125
127
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
126
128
|
end
|
@@ -189,7 +191,7 @@ module Azure::ARM::Batch
|
|
189
191
|
# Set Headers
|
190
192
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
191
193
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
192
|
-
path_template = '
|
194
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationId}'
|
193
195
|
|
194
196
|
request_url = @base_url || @client.base_url
|
195
197
|
|
@@ -277,7 +279,7 @@ module Azure::ARM::Batch
|
|
277
279
|
# Set Headers
|
278
280
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
279
281
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
280
|
-
path_template = '
|
282
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationId}'
|
281
283
|
|
282
284
|
request_url = @base_url || @client.base_url
|
283
285
|
|
@@ -304,8 +306,8 @@ module Azure::ARM::Batch
|
|
304
306
|
if status_code == 200
|
305
307
|
begin
|
306
308
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
307
|
-
result_mapper = Application.mapper()
|
308
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
309
|
+
result_mapper = Azure::ARM::Batch::Models::Application.mapper()
|
310
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
309
311
|
rescue Exception => e
|
310
312
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
311
313
|
end
|
@@ -324,7 +326,7 @@ module Azure::ARM::Batch
|
|
324
326
|
# contains the Batch account.
|
325
327
|
# @param account_name [String] The name of the Batch account.
|
326
328
|
# @param application_id [String] The ID of the application.
|
327
|
-
# @param parameters [
|
329
|
+
# @param parameters [ApplicationUpdateParameters] The parameters for the
|
328
330
|
# request.
|
329
331
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
330
332
|
# will be added to the HTTP request.
|
@@ -342,7 +344,7 @@ module Azure::ARM::Batch
|
|
342
344
|
# contains the Batch account.
|
343
345
|
# @param account_name [String] The name of the Batch account.
|
344
346
|
# @param application_id [String] The ID of the application.
|
345
|
-
# @param parameters [
|
347
|
+
# @param parameters [ApplicationUpdateParameters] The parameters for the
|
346
348
|
# request.
|
347
349
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
348
350
|
# will be added to the HTTP request.
|
@@ -360,7 +362,7 @@ module Azure::ARM::Batch
|
|
360
362
|
# contains the Batch account.
|
361
363
|
# @param account_name [String] The name of the Batch account.
|
362
364
|
# @param application_id [String] The ID of the application.
|
363
|
-
# @param parameters [
|
365
|
+
# @param parameters [ApplicationUpdateParameters] The parameters for the
|
364
366
|
# request.
|
365
367
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
366
368
|
# to the HTTP request.
|
@@ -385,11 +387,11 @@ module Azure::ARM::Batch
|
|
385
387
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
386
388
|
|
387
389
|
# Serialize Request
|
388
|
-
request_mapper =
|
389
|
-
request_content = @client.serialize(request_mapper, parameters
|
390
|
+
request_mapper = Azure::ARM::Batch::Models::ApplicationUpdateParameters.mapper()
|
391
|
+
request_content = @client.serialize(request_mapper, parameters)
|
390
392
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
391
393
|
|
392
|
-
path_template = '
|
394
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationId}'
|
393
395
|
|
394
396
|
request_url = @base_url || @client.base_url
|
395
397
|
|
@@ -480,7 +482,7 @@ module Azure::ARM::Batch
|
|
480
482
|
# Set Headers
|
481
483
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
482
484
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
483
|
-
path_template = '
|
485
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications'
|
484
486
|
|
485
487
|
request_url = @base_url || @client.base_url
|
486
488
|
|
@@ -507,8 +509,8 @@ module Azure::ARM::Batch
|
|
507
509
|
if status_code == 200
|
508
510
|
begin
|
509
511
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
510
|
-
result_mapper = ListApplicationsResult.mapper()
|
511
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
512
|
+
result_mapper = Azure::ARM::Batch::Models::ListApplicationsResult.mapper()
|
513
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
512
514
|
rescue Exception => e
|
513
515
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
514
516
|
end
|
@@ -594,8 +596,8 @@ module Azure::ARM::Batch
|
|
594
596
|
if status_code == 200
|
595
597
|
begin
|
596
598
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
597
|
-
result_mapper = ListApplicationsResult.mapper()
|
598
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
599
|
+
result_mapper = Azure::ARM::Batch::Models::ListApplicationsResult.mapper()
|
600
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
599
601
|
rescue Exception => e
|
600
602
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
601
603
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
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
|
|
@@ -8,7 +8,6 @@ module Azure::ARM::Batch
|
|
8
8
|
# ApplicationPackageOperations
|
9
9
|
#
|
10
10
|
class ApplicationPackageOperations
|
11
|
-
include Azure::ARM::Batch::Models
|
12
11
|
include MsRestAzure
|
13
12
|
|
14
13
|
#
|
@@ -94,11 +93,11 @@ module Azure::ARM::Batch
|
|
94
93
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
95
94
|
|
96
95
|
# Serialize Request
|
97
|
-
request_mapper = ActivateApplicationPackageParameters.mapper()
|
98
|
-
request_content = @client.serialize(request_mapper, parameters
|
96
|
+
request_mapper = Azure::ARM::Batch::Models::ActivateApplicationPackageParameters.mapper()
|
97
|
+
request_content = @client.serialize(request_mapper, parameters)
|
99
98
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
100
99
|
|
101
|
-
path_template = '
|
100
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationId}/versions/{version}/activate'
|
102
101
|
|
103
102
|
request_url = @base_url || @client.base_url
|
104
103
|
|
@@ -191,7 +190,7 @@ module Azure::ARM::Batch
|
|
191
190
|
# Set Headers
|
192
191
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
193
192
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
194
|
-
path_template = '
|
193
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationId}/versions/{version}'
|
195
194
|
|
196
195
|
request_url = @base_url || @client.base_url
|
197
196
|
|
@@ -218,8 +217,8 @@ module Azure::ARM::Batch
|
|
218
217
|
if status_code == 201
|
219
218
|
begin
|
220
219
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
221
|
-
result_mapper = ApplicationPackage.mapper()
|
222
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
220
|
+
result_mapper = Azure::ARM::Batch::Models::ApplicationPackage.mapper()
|
221
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
223
222
|
rescue Exception => e
|
224
223
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
225
224
|
end
|
@@ -292,7 +291,7 @@ module Azure::ARM::Batch
|
|
292
291
|
# Set Headers
|
293
292
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
294
293
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
295
|
-
path_template = '
|
294
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationId}/versions/{version}'
|
296
295
|
|
297
296
|
request_url = @base_url || @client.base_url
|
298
297
|
|
@@ -384,7 +383,7 @@ module Azure::ARM::Batch
|
|
384
383
|
# Set Headers
|
385
384
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
386
385
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
387
|
-
path_template = '
|
386
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationId}/versions/{version}'
|
388
387
|
|
389
388
|
request_url = @base_url || @client.base_url
|
390
389
|
|
@@ -411,8 +410,8 @@ module Azure::ARM::Batch
|
|
411
410
|
if status_code == 200
|
412
411
|
begin
|
413
412
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
414
|
-
result_mapper = ApplicationPackage.mapper()
|
415
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
413
|
+
result_mapper = Azure::ARM::Batch::Models::ApplicationPackage.mapper()
|
414
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
416
415
|
rescue Exception => e
|
417
416
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
418
417
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
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
|
|
@@ -8,7 +8,6 @@ module Azure::ARM::Batch
|
|
8
8
|
# BatchAccountOperations
|
9
9
|
#
|
10
10
|
class BatchAccountOperations
|
11
|
-
include Azure::ARM::Batch::Models
|
12
11
|
include MsRestAzure
|
13
12
|
|
14
13
|
#
|
@@ -28,7 +27,7 @@ module Azure::ARM::Batch
|
|
28
27
|
# Batch Account API.
|
29
28
|
#
|
30
29
|
# @param resource_group_name [String] The name of the resource group that
|
31
|
-
# contains the
|
30
|
+
# contains the Batch account.
|
32
31
|
# @param account_name [String] A name for the Batch account which must be
|
33
32
|
# unique within the region. Batch account names must be between 3 and 24
|
34
33
|
# characters in length and must use only numbers and lowercase letters. This
|
@@ -49,7 +48,7 @@ module Azure::ARM::Batch
|
|
49
48
|
|
50
49
|
#
|
51
50
|
# @param resource_group_name [String] The name of the resource group that
|
52
|
-
# contains the
|
51
|
+
# contains the Batch account.
|
53
52
|
# @param account_name [String] A name for the Batch account which must be
|
54
53
|
# unique within the region. Batch account names must be between 3 and 24
|
55
54
|
# characters in length and must use only numbers and lowercase letters. This
|
@@ -71,8 +70,8 @@ module Azure::ARM::Batch
|
|
71
70
|
promise = promise.then do |response|
|
72
71
|
# Defining deserialization method.
|
73
72
|
deserialize_method = lambda do |parsed_response|
|
74
|
-
result_mapper = BatchAccount.mapper()
|
75
|
-
parsed_response = @client.deserialize(result_mapper, parsed_response
|
73
|
+
result_mapper = Azure::ARM::Batch::Models::BatchAccount.mapper()
|
74
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
76
75
|
end
|
77
76
|
|
78
77
|
# Waiting for response.
|
@@ -87,7 +86,7 @@ module Azure::ARM::Batch
|
|
87
86
|
#
|
88
87
|
# @param resource_group_name [String] The name of the resource group that
|
89
88
|
# contains the Batch account.
|
90
|
-
# @param account_name [String] The name of the account.
|
89
|
+
# @param account_name [String] The name of the Batch account.
|
91
90
|
# @param parameters [BatchAccountUpdateParameters] Additional parameters for
|
92
91
|
# account update.
|
93
92
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -105,7 +104,7 @@ module Azure::ARM::Batch
|
|
105
104
|
#
|
106
105
|
# @param resource_group_name [String] The name of the resource group that
|
107
106
|
# contains the Batch account.
|
108
|
-
# @param account_name [String] The name of the account.
|
107
|
+
# @param account_name [String] The name of the Batch account.
|
109
108
|
# @param parameters [BatchAccountUpdateParameters] Additional parameters for
|
110
109
|
# account update.
|
111
110
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -122,7 +121,7 @@ module Azure::ARM::Batch
|
|
122
121
|
#
|
123
122
|
# @param resource_group_name [String] The name of the resource group that
|
124
123
|
# contains the Batch account.
|
125
|
-
# @param account_name [String] The name of the account.
|
124
|
+
# @param account_name [String] The name of the Batch account.
|
126
125
|
# @param parameters [BatchAccountUpdateParameters] Additional parameters for
|
127
126
|
# account update.
|
128
127
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
@@ -147,11 +146,11 @@ module Azure::ARM::Batch
|
|
147
146
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
148
147
|
|
149
148
|
# Serialize Request
|
150
|
-
request_mapper = BatchAccountUpdateParameters.mapper()
|
151
|
-
request_content = @client.serialize(request_mapper, parameters
|
149
|
+
request_mapper = Azure::ARM::Batch::Models::BatchAccountUpdateParameters.mapper()
|
150
|
+
request_content = @client.serialize(request_mapper, parameters)
|
152
151
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
153
152
|
|
154
|
-
path_template = '
|
153
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}'
|
155
154
|
|
156
155
|
request_url = @base_url || @client.base_url
|
157
156
|
|
@@ -179,8 +178,8 @@ module Azure::ARM::Batch
|
|
179
178
|
if status_code == 200
|
180
179
|
begin
|
181
180
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
182
|
-
result_mapper = BatchAccount.mapper()
|
183
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
181
|
+
result_mapper = Azure::ARM::Batch::Models::BatchAccount.mapper()
|
182
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
184
183
|
rescue Exception => e
|
185
184
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
186
185
|
end
|
@@ -196,8 +195,8 @@ module Azure::ARM::Batch
|
|
196
195
|
# Deletes the specified Batch account.
|
197
196
|
#
|
198
197
|
# @param resource_group_name [String] The name of the resource group that
|
199
|
-
# contains the Batch account
|
200
|
-
# @param account_name [String] The name of the account
|
198
|
+
# contains the Batch account.
|
199
|
+
# @param account_name [String] The name of the Batch account.
|
201
200
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
202
201
|
# will be added to the HTTP request.
|
203
202
|
#
|
@@ -208,8 +207,8 @@ module Azure::ARM::Batch
|
|
208
207
|
|
209
208
|
#
|
210
209
|
# @param resource_group_name [String] The name of the resource group that
|
211
|
-
# contains the Batch account
|
212
|
-
# @param account_name [String] The name of the account
|
210
|
+
# contains the Batch account.
|
211
|
+
# @param account_name [String] The name of the Batch account.
|
213
212
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
214
213
|
# will be added to the HTTP request.
|
215
214
|
#
|
@@ -237,7 +236,7 @@ module Azure::ARM::Batch
|
|
237
236
|
#
|
238
237
|
# @param resource_group_name [String] The name of the resource group that
|
239
238
|
# contains the Batch account.
|
240
|
-
# @param account_name [String] The name of the account.
|
239
|
+
# @param account_name [String] The name of the Batch account.
|
241
240
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
242
241
|
# will be added to the HTTP request.
|
243
242
|
#
|
@@ -253,7 +252,7 @@ module Azure::ARM::Batch
|
|
253
252
|
#
|
254
253
|
# @param resource_group_name [String] The name of the resource group that
|
255
254
|
# contains the Batch account.
|
256
|
-
# @param account_name [String] The name of the account.
|
255
|
+
# @param account_name [String] The name of the Batch account.
|
257
256
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
258
257
|
# will be added to the HTTP request.
|
259
258
|
#
|
@@ -268,7 +267,7 @@ module Azure::ARM::Batch
|
|
268
267
|
#
|
269
268
|
# @param resource_group_name [String] The name of the resource group that
|
270
269
|
# contains the Batch account.
|
271
|
-
# @param account_name [String] The name of the account.
|
270
|
+
# @param account_name [String] The name of the Batch account.
|
272
271
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
273
272
|
# to the HTTP request.
|
274
273
|
#
|
@@ -286,7 +285,7 @@ module Azure::ARM::Batch
|
|
286
285
|
# Set Headers
|
287
286
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
288
287
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
289
|
-
path_template = '
|
288
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}'
|
290
289
|
|
291
290
|
request_url = @base_url || @client.base_url
|
292
291
|
|
@@ -313,8 +312,8 @@ module Azure::ARM::Batch
|
|
313
312
|
if status_code == 200
|
314
313
|
begin
|
315
314
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
316
|
-
result_mapper = BatchAccount.mapper()
|
317
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
315
|
+
result_mapper = Azure::ARM::Batch::Models::BatchAccount.mapper()
|
316
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
318
317
|
rescue Exception => e
|
319
318
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
320
319
|
end
|
@@ -369,7 +368,7 @@ module Azure::ARM::Batch
|
|
369
368
|
# Set Headers
|
370
369
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
371
370
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
372
|
-
path_template = '
|
371
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Batch/batchAccounts'
|
373
372
|
|
374
373
|
request_url = @base_url || @client.base_url
|
375
374
|
|
@@ -396,8 +395,8 @@ module Azure::ARM::Batch
|
|
396
395
|
if status_code == 200
|
397
396
|
begin
|
398
397
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
399
|
-
result_mapper = BatchAccountListResult.mapper()
|
400
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
398
|
+
result_mapper = Azure::ARM::Batch::Models::BatchAccountListResult.mapper()
|
399
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
401
400
|
rescue Exception => e
|
402
401
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
403
402
|
end
|
@@ -410,11 +409,11 @@ module Azure::ARM::Batch
|
|
410
409
|
end
|
411
410
|
|
412
411
|
#
|
413
|
-
# Gets information about the Batch accounts associated
|
412
|
+
# Gets information about the Batch accounts associated with the specified
|
414
413
|
# resource group.
|
415
414
|
#
|
416
|
-
# @param resource_group_name [String] The name of the resource group
|
417
|
-
#
|
415
|
+
# @param resource_group_name [String] The name of the resource group that
|
416
|
+
# contains the Batch account.
|
418
417
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
419
418
|
# will be added to the HTTP request.
|
420
419
|
#
|
@@ -426,11 +425,11 @@ module Azure::ARM::Batch
|
|
426
425
|
end
|
427
426
|
|
428
427
|
#
|
429
|
-
# Gets information about the Batch accounts associated
|
428
|
+
# Gets information about the Batch accounts associated with the specified
|
430
429
|
# resource group.
|
431
430
|
#
|
432
|
-
# @param resource_group_name [String] The name of the resource group
|
433
|
-
#
|
431
|
+
# @param resource_group_name [String] The name of the resource group that
|
432
|
+
# contains the Batch account.
|
434
433
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
435
434
|
# will be added to the HTTP request.
|
436
435
|
#
|
@@ -441,11 +440,11 @@ module Azure::ARM::Batch
|
|
441
440
|
end
|
442
441
|
|
443
442
|
#
|
444
|
-
# Gets information about the Batch accounts associated
|
443
|
+
# Gets information about the Batch accounts associated with the specified
|
445
444
|
# resource group.
|
446
445
|
#
|
447
|
-
# @param resource_group_name [String] The name of the resource group
|
448
|
-
#
|
446
|
+
# @param resource_group_name [String] The name of the resource group that
|
447
|
+
# contains the Batch account.
|
449
448
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
450
449
|
# to the HTTP request.
|
451
450
|
#
|
@@ -462,7 +461,7 @@ module Azure::ARM::Batch
|
|
462
461
|
# Set Headers
|
463
462
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
464
463
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
465
|
-
path_template = '
|
464
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts'
|
466
465
|
|
467
466
|
request_url = @base_url || @client.base_url
|
468
467
|
|
@@ -489,8 +488,8 @@ module Azure::ARM::Batch
|
|
489
488
|
if status_code == 200
|
490
489
|
begin
|
491
490
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
492
|
-
result_mapper = BatchAccountListResult.mapper()
|
493
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
491
|
+
result_mapper = Azure::ARM::Batch::Models::BatchAccountListResult.mapper()
|
492
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
494
493
|
rescue Exception => e
|
495
494
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
496
495
|
end
|
@@ -503,7 +502,7 @@ module Azure::ARM::Batch
|
|
503
502
|
end
|
504
503
|
|
505
504
|
#
|
506
|
-
# Synchronizes access keys for the auto
|
505
|
+
# Synchronizes access keys for the auto-storage account configured for the
|
507
506
|
# specified Batch account.
|
508
507
|
#
|
509
508
|
# @param resource_group_name [String] The name of the resource group that
|
@@ -519,7 +518,7 @@ module Azure::ARM::Batch
|
|
519
518
|
end
|
520
519
|
|
521
520
|
#
|
522
|
-
# Synchronizes access keys for the auto
|
521
|
+
# Synchronizes access keys for the auto-storage account configured for the
|
523
522
|
# specified Batch account.
|
524
523
|
#
|
525
524
|
# @param resource_group_name [String] The name of the resource group that
|
@@ -535,7 +534,7 @@ module Azure::ARM::Batch
|
|
535
534
|
end
|
536
535
|
|
537
536
|
#
|
538
|
-
# Synchronizes access keys for the auto
|
537
|
+
# Synchronizes access keys for the auto-storage account configured for the
|
539
538
|
# specified Batch account.
|
540
539
|
#
|
541
540
|
# @param resource_group_name [String] The name of the resource group that
|
@@ -558,7 +557,7 @@ module Azure::ARM::Batch
|
|
558
557
|
# Set Headers
|
559
558
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
560
559
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
561
|
-
path_template = '
|
560
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/syncAutoStorageKeys'
|
562
561
|
|
563
562
|
request_url = @base_url || @client.base_url
|
564
563
|
|
@@ -593,7 +592,7 @@ module Azure::ARM::Batch
|
|
593
592
|
#
|
594
593
|
# @param resource_group_name [String] The name of the resource group that
|
595
594
|
# contains the Batch account.
|
596
|
-
# @param account_name [String] The name of the account.
|
595
|
+
# @param account_name [String] The name of the Batch account.
|
597
596
|
# @param parameters [BatchAccountRegenerateKeyParameters] The type of key to
|
598
597
|
# regenerate.
|
599
598
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -611,7 +610,7 @@ module Azure::ARM::Batch
|
|
611
610
|
#
|
612
611
|
# @param resource_group_name [String] The name of the resource group that
|
613
612
|
# contains the Batch account.
|
614
|
-
# @param account_name [String] The name of the account.
|
613
|
+
# @param account_name [String] The name of the Batch account.
|
615
614
|
# @param parameters [BatchAccountRegenerateKeyParameters] The type of key to
|
616
615
|
# regenerate.
|
617
616
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -628,7 +627,7 @@ module Azure::ARM::Batch
|
|
628
627
|
#
|
629
628
|
# @param resource_group_name [String] The name of the resource group that
|
630
629
|
# contains the Batch account.
|
631
|
-
# @param account_name [String] The name of the account.
|
630
|
+
# @param account_name [String] The name of the Batch account.
|
632
631
|
# @param parameters [BatchAccountRegenerateKeyParameters] The type of key to
|
633
632
|
# regenerate.
|
634
633
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
@@ -653,11 +652,11 @@ module Azure::ARM::Batch
|
|
653
652
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
654
653
|
|
655
654
|
# Serialize Request
|
656
|
-
request_mapper = BatchAccountRegenerateKeyParameters.mapper()
|
657
|
-
request_content = @client.serialize(request_mapper, parameters
|
655
|
+
request_mapper = Azure::ARM::Batch::Models::BatchAccountRegenerateKeyParameters.mapper()
|
656
|
+
request_content = @client.serialize(request_mapper, parameters)
|
658
657
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
659
658
|
|
660
|
-
path_template = '
|
659
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/regenerateKeys'
|
661
660
|
|
662
661
|
request_url = @base_url || @client.base_url
|
663
662
|
|
@@ -685,8 +684,8 @@ module Azure::ARM::Batch
|
|
685
684
|
if status_code == 200
|
686
685
|
begin
|
687
686
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
688
|
-
result_mapper = BatchAccountKeys.mapper()
|
689
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
687
|
+
result_mapper = Azure::ARM::Batch::Models::BatchAccountKeys.mapper()
|
688
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
690
689
|
rescue Exception => e
|
691
690
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
692
691
|
end
|
@@ -709,7 +708,7 @@ module Azure::ARM::Batch
|
|
709
708
|
#
|
710
709
|
# @param resource_group_name [String] The name of the resource group that
|
711
710
|
# contains the Batch account.
|
712
|
-
# @param account_name [String] The name of the account.
|
711
|
+
# @param account_name [String] The name of the Batch account.
|
713
712
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
714
713
|
# will be added to the HTTP request.
|
715
714
|
#
|
@@ -731,7 +730,7 @@ module Azure::ARM::Batch
|
|
731
730
|
#
|
732
731
|
# @param resource_group_name [String] The name of the resource group that
|
733
732
|
# contains the Batch account.
|
734
|
-
# @param account_name [String] The name of the account.
|
733
|
+
# @param account_name [String] The name of the Batch account.
|
735
734
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
736
735
|
# will be added to the HTTP request.
|
737
736
|
#
|
@@ -752,7 +751,7 @@ module Azure::ARM::Batch
|
|
752
751
|
#
|
753
752
|
# @param resource_group_name [String] The name of the resource group that
|
754
753
|
# contains the Batch account.
|
755
|
-
# @param account_name [String] The name of the account.
|
754
|
+
# @param account_name [String] The name of the Batch account.
|
756
755
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
757
756
|
# to the HTTP request.
|
758
757
|
#
|
@@ -770,7 +769,7 @@ module Azure::ARM::Batch
|
|
770
769
|
# Set Headers
|
771
770
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
772
771
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
773
|
-
path_template = '
|
772
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/listKeys'
|
774
773
|
|
775
774
|
request_url = @base_url || @client.base_url
|
776
775
|
|
@@ -797,8 +796,8 @@ module Azure::ARM::Batch
|
|
797
796
|
if status_code == 200
|
798
797
|
begin
|
799
798
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
800
|
-
result_mapper = BatchAccountKeys.mapper()
|
801
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
799
|
+
result_mapper = Azure::ARM::Batch::Models::BatchAccountKeys.mapper()
|
800
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
802
801
|
rescue Exception => e
|
803
802
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
804
803
|
end
|
@@ -816,7 +815,7 @@ module Azure::ARM::Batch
|
|
816
815
|
# Batch Account API.
|
817
816
|
#
|
818
817
|
# @param resource_group_name [String] The name of the resource group that
|
819
|
-
# contains the
|
818
|
+
# contains the Batch account.
|
820
819
|
# @param account_name [String] A name for the Batch account which must be
|
821
820
|
# unique within the region. Batch account names must be between 3 and 24
|
822
821
|
# characters in length and must use only numbers and lowercase letters. This
|
@@ -841,7 +840,7 @@ module Azure::ARM::Batch
|
|
841
840
|
# Batch Account API.
|
842
841
|
#
|
843
842
|
# @param resource_group_name [String] The name of the resource group that
|
844
|
-
# contains the
|
843
|
+
# contains the Batch account.
|
845
844
|
# @param account_name [String] A name for the Batch account which must be
|
846
845
|
# unique within the region. Batch account names must be between 3 and 24
|
847
846
|
# characters in length and must use only numbers and lowercase letters. This
|
@@ -865,7 +864,7 @@ module Azure::ARM::Batch
|
|
865
864
|
# Batch Account API.
|
866
865
|
#
|
867
866
|
# @param resource_group_name [String] The name of the resource group that
|
868
|
-
# contains the
|
867
|
+
# contains the Batch account.
|
869
868
|
# @param account_name [String] A name for the Batch account which must be
|
870
869
|
# unique within the region. Batch account names must be between 3 and 24
|
871
870
|
# characters in length and must use only numbers and lowercase letters. This
|
@@ -896,11 +895,11 @@ module Azure::ARM::Batch
|
|
896
895
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
897
896
|
|
898
897
|
# Serialize Request
|
899
|
-
request_mapper = BatchAccountCreateParameters.mapper()
|
900
|
-
request_content = @client.serialize(request_mapper, parameters
|
898
|
+
request_mapper = Azure::ARM::Batch::Models::BatchAccountCreateParameters.mapper()
|
899
|
+
request_content = @client.serialize(request_mapper, parameters)
|
901
900
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
902
901
|
|
903
|
-
path_template = '
|
902
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}'
|
904
903
|
|
905
904
|
request_url = @base_url || @client.base_url
|
906
905
|
|
@@ -928,8 +927,8 @@ module Azure::ARM::Batch
|
|
928
927
|
if status_code == 200
|
929
928
|
begin
|
930
929
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
931
|
-
result_mapper = BatchAccount.mapper()
|
932
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
930
|
+
result_mapper = Azure::ARM::Batch::Models::BatchAccount.mapper()
|
931
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
933
932
|
rescue Exception => e
|
934
933
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
935
934
|
end
|
@@ -945,8 +944,8 @@ module Azure::ARM::Batch
|
|
945
944
|
# Deletes the specified Batch account.
|
946
945
|
#
|
947
946
|
# @param resource_group_name [String] The name of the resource group that
|
948
|
-
# contains the Batch account
|
949
|
-
# @param account_name [String] The name of the account
|
947
|
+
# contains the Batch account.
|
948
|
+
# @param account_name [String] The name of the Batch account.
|
950
949
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
951
950
|
# will be added to the HTTP request.
|
952
951
|
#
|
@@ -960,8 +959,8 @@ module Azure::ARM::Batch
|
|
960
959
|
# Deletes the specified Batch account.
|
961
960
|
#
|
962
961
|
# @param resource_group_name [String] The name of the resource group that
|
963
|
-
# contains the Batch account
|
964
|
-
# @param account_name [String] The name of the account
|
962
|
+
# contains the Batch account.
|
963
|
+
# @param account_name [String] The name of the Batch account.
|
965
964
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
966
965
|
# will be added to the HTTP request.
|
967
966
|
#
|
@@ -975,8 +974,8 @@ module Azure::ARM::Batch
|
|
975
974
|
# Deletes the specified Batch account.
|
976
975
|
#
|
977
976
|
# @param resource_group_name [String] The name of the resource group that
|
978
|
-
# contains the Batch account
|
979
|
-
# @param account_name [String] The name of the account
|
977
|
+
# contains the Batch account.
|
978
|
+
# @param account_name [String] The name of the Batch account.
|
980
979
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
981
980
|
# to the HTTP request.
|
982
981
|
#
|
@@ -994,7 +993,7 @@ module Azure::ARM::Batch
|
|
994
993
|
# Set Headers
|
995
994
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
996
995
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
997
|
-
path_template = '
|
996
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}'
|
998
997
|
|
999
998
|
request_url = @base_url || @client.base_url
|
1000
999
|
|
@@ -1011,7 +1010,7 @@ module Azure::ARM::Batch
|
|
1011
1010
|
http_response = result.response
|
1012
1011
|
status_code = http_response.status
|
1013
1012
|
response_content = http_response.body
|
1014
|
-
unless status_code == 200 || status_code == 202
|
1013
|
+
unless status_code == 200 || status_code == 202 || status_code == 204
|
1015
1014
|
error_model = JSON.load(response_content)
|
1016
1015
|
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1017
1016
|
end
|
@@ -1098,8 +1097,8 @@ module Azure::ARM::Batch
|
|
1098
1097
|
if status_code == 200
|
1099
1098
|
begin
|
1100
1099
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1101
|
-
result_mapper = BatchAccountListResult.mapper()
|
1102
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
1100
|
+
result_mapper = Azure::ARM::Batch::Models::BatchAccountListResult.mapper()
|
1101
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1103
1102
|
rescue Exception => e
|
1104
1103
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1105
1104
|
end
|
@@ -1112,7 +1111,7 @@ module Azure::ARM::Batch
|
|
1112
1111
|
end
|
1113
1112
|
|
1114
1113
|
#
|
1115
|
-
# Gets information about the Batch accounts associated
|
1114
|
+
# Gets information about the Batch accounts associated with the specified
|
1116
1115
|
# resource group.
|
1117
1116
|
#
|
1118
1117
|
# @param next_page_link [String] The NextLink from the previous successful call
|
@@ -1128,7 +1127,7 @@ module Azure::ARM::Batch
|
|
1128
1127
|
end
|
1129
1128
|
|
1130
1129
|
#
|
1131
|
-
# Gets information about the Batch accounts associated
|
1130
|
+
# Gets information about the Batch accounts associated with the specified
|
1132
1131
|
# resource group.
|
1133
1132
|
#
|
1134
1133
|
# @param next_page_link [String] The NextLink from the previous successful call
|
@@ -1143,7 +1142,7 @@ module Azure::ARM::Batch
|
|
1143
1142
|
end
|
1144
1143
|
|
1145
1144
|
#
|
1146
|
-
# Gets information about the Batch accounts associated
|
1145
|
+
# Gets information about the Batch accounts associated with the specified
|
1147
1146
|
# resource group.
|
1148
1147
|
#
|
1149
1148
|
# @param next_page_link [String] The NextLink from the previous successful call
|
@@ -1188,8 +1187,8 @@ module Azure::ARM::Batch
|
|
1188
1187
|
if status_code == 200
|
1189
1188
|
begin
|
1190
1189
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1191
|
-
result_mapper = BatchAccountListResult.mapper()
|
1192
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
1190
|
+
result_mapper = Azure::ARM::Batch::Models::BatchAccountListResult.mapper()
|
1191
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1193
1192
|
rescue Exception => e
|
1194
1193
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1195
1194
|
end
|
@@ -1222,11 +1221,11 @@ module Azure::ARM::Batch
|
|
1222
1221
|
end
|
1223
1222
|
|
1224
1223
|
#
|
1225
|
-
# Gets information about the Batch accounts associated
|
1224
|
+
# Gets information about the Batch accounts associated with the specified
|
1226
1225
|
# resource group.
|
1227
1226
|
#
|
1228
|
-
# @param resource_group_name [String] The name of the resource group
|
1229
|
-
#
|
1227
|
+
# @param resource_group_name [String] The name of the resource group that
|
1228
|
+
# contains the Batch account.
|
1230
1229
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1231
1230
|
# will be added to the HTTP request.
|
1232
1231
|
#
|