azure_mgmt_batch 0.15.1 → 0.15.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-12-01/generated/azure_mgmt_batch/application_operations.rb +20 -0
  3. data/lib/2015-12-01/generated/azure_mgmt_batch/application_package_operations.rb +16 -0
  4. data/lib/2015-12-01/generated/azure_mgmt_batch/batch_account_operations.rb +29 -0
  5. data/lib/2015-12-01/generated/azure_mgmt_batch/batch_management_client.rb +1 -3
  6. data/lib/2015-12-01/generated/azure_mgmt_batch/models/activate_application_package_parameters.rb +2 -0
  7. data/lib/2015-12-01/generated/azure_mgmt_batch/models/add_application_parameters.rb +3 -0
  8. data/lib/2015-12-01/generated/azure_mgmt_batch/models/application.rb +7 -0
  9. data/lib/2015-12-01/generated/azure_mgmt_batch/models/application_package.rb +8 -0
  10. data/lib/2015-12-01/generated/azure_mgmt_batch/models/auto_storage_base_properties.rb +2 -0
  11. data/lib/2015-12-01/generated/azure_mgmt_batch/models/auto_storage_properties.rb +3 -0
  12. data/lib/2015-12-01/generated/azure_mgmt_batch/models/batch_account.rb +13 -0
  13. data/lib/2015-12-01/generated/azure_mgmt_batch/models/batch_account_create_parameters.rb +5 -0
  14. data/lib/2015-12-01/generated/azure_mgmt_batch/models/batch_account_keys.rb +3 -0
  15. data/lib/2015-12-01/generated/azure_mgmt_batch/models/batch_account_list_result.rb +4 -0
  16. data/lib/2015-12-01/generated/azure_mgmt_batch/models/batch_account_regenerate_key_parameters.rb +2 -0
  17. data/lib/2015-12-01/generated/azure_mgmt_batch/models/batch_account_update_parameters.rb +4 -0
  18. data/lib/2015-12-01/generated/azure_mgmt_batch/models/batch_location_quota.rb +2 -0
  19. data/lib/2015-12-01/generated/azure_mgmt_batch/models/list_applications_result.rb +4 -0
  20. data/lib/2015-12-01/generated/azure_mgmt_batch/models/resource.rb +7 -0
  21. data/lib/2015-12-01/generated/azure_mgmt_batch/models/update_application_parameters.rb +4 -0
  22. data/lib/2017-05-01/generated/azure_mgmt_batch/application_operations.rb +20 -0
  23. data/lib/2017-05-01/generated/azure_mgmt_batch/application_package_operations.rb +16 -0
  24. data/lib/2017-05-01/generated/azure_mgmt_batch/batch_account_operations.rb +29 -0
  25. data/lib/2017-05-01/generated/azure_mgmt_batch/batch_management_client.rb +1 -3
  26. data/lib/2017-05-01/generated/azure_mgmt_batch/models/activate_application_package_parameters.rb +2 -0
  27. data/lib/2017-05-01/generated/azure_mgmt_batch/models/application.rb +7 -0
  28. data/lib/2017-05-01/generated/azure_mgmt_batch/models/application_create_parameters.rb +3 -0
  29. data/lib/2017-05-01/generated/azure_mgmt_batch/models/application_package.rb +8 -0
  30. data/lib/2017-05-01/generated/azure_mgmt_batch/models/application_update_parameters.rb +4 -0
  31. data/lib/2017-05-01/generated/azure_mgmt_batch/models/auto_storage_base_properties.rb +2 -0
  32. data/lib/2017-05-01/generated/azure_mgmt_batch/models/auto_storage_properties.rb +3 -0
  33. data/lib/2017-05-01/generated/azure_mgmt_batch/models/batch_account.rb +16 -0
  34. data/lib/2017-05-01/generated/azure_mgmt_batch/models/batch_account_create_parameters.rb +7 -0
  35. data/lib/2017-05-01/generated/azure_mgmt_batch/models/batch_account_keys.rb +4 -0
  36. data/lib/2017-05-01/generated/azure_mgmt_batch/models/batch_account_list_result.rb +4 -0
  37. data/lib/2017-05-01/generated/azure_mgmt_batch/models/batch_account_regenerate_key_parameters.rb +2 -0
  38. data/lib/2017-05-01/generated/azure_mgmt_batch/models/batch_account_update_parameters.rb +4 -0
  39. data/lib/2017-05-01/generated/azure_mgmt_batch/models/batch_location_quota.rb +2 -0
  40. data/lib/2017-05-01/generated/azure_mgmt_batch/models/check_name_availability_parameters.rb +3 -0
  41. data/lib/2017-05-01/generated/azure_mgmt_batch/models/check_name_availability_result.rb +4 -0
  42. data/lib/2017-05-01/generated/azure_mgmt_batch/models/key_vault_reference.rb +3 -0
  43. data/lib/2017-05-01/generated/azure_mgmt_batch/models/list_applications_result.rb +4 -0
  44. data/lib/2017-05-01/generated/azure_mgmt_batch/models/operation.rb +5 -0
  45. data/lib/2017-05-01/generated/azure_mgmt_batch/models/operation_display.rb +5 -0
  46. data/lib/2017-05-01/generated/azure_mgmt_batch/models/operation_list_result.rb +4 -0
  47. data/lib/2017-05-01/generated/azure_mgmt_batch/models/resource.rb +7 -0
  48. data/lib/profiles/latest/batch_latest_profile_client.rb +1 -3
  49. data/lib/version.rb +1 -1
  50. metadata +10 -9
  51. data/lib/2015-12-01/generated/azure_mgmt_batch/version.rb +0 -8
  52. data/lib/2017-05-01/generated/azure_mgmt_batch/version.rb +0 -8
  53. data/lib/profiles/common/configurable.rb +0 -86
  54. data/lib/profiles/common/default.rb +0 -57
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3a46352003782c238dd85cc238a9ce836a011be1
4
- data.tar.gz: 23a501f750a0d12f72b79af23a77cd8f5e96f239
3
+ metadata.gz: 16def2f6c07a09de7fdcdd0940314531b1eb5fac
4
+ data.tar.gz: 3b2a17b1fbaa5dac7b74260e27f3d0b4ceff8c5d
5
5
  SHA512:
6
- metadata.gz: ba9ad23b44d11401a3a978a38f8422cbdc37b0930f2b4b82ba763896713025a5420768d5ddf952e82c9a668846d251f6872a0174350ad841853c6b68b3a9ebd5
7
- data.tar.gz: f768ce3e44b20fae7963c051b39c951365ec9150e9a3b8d5e2095f9b4183870cca2c99934859641a35704df46f10cf5a6b63c368a0e1179be3c5d56825151520
6
+ metadata.gz: fdccb38ce12243f5db3c106825338a39885ac4cd75296245ae85dcc62af0e8f4b94b433eff355a74352056dbf1b5f97e941a574732d060890fee6aaa37364363
7
+ data.tar.gz: df8c70d13a58be404e79e627ef7282bb2908fed28c93e32e94cce7ff439e2820900b20489488342dcb591f844217cdba88379e992e619d3a1f637930060cbfb1
@@ -71,7 +71,11 @@ module Azure::Batch::Mgmt::V2015_12_01
71
71
  #
72
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
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
74
75
  fail ArgumentError, 'account_name is nil' if account_name.nil?
76
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
77
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
78
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !account_name.nil? && account_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
75
79
  fail ArgumentError, 'application_id is nil' if application_id.nil?
76
80
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
77
81
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -177,7 +181,11 @@ module Azure::Batch::Mgmt::V2015_12_01
177
181
  #
178
182
  def delete_async(resource_group_name, account_name, application_id, custom_headers = nil)
179
183
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
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?
180
185
  fail ArgumentError, 'account_name is nil' if account_name.nil?
186
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
187
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
188
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !account_name.nil? && account_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
181
189
  fail ArgumentError, 'application_id is nil' if application_id.nil?
182
190
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
183
191
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -265,7 +273,11 @@ module Azure::Batch::Mgmt::V2015_12_01
265
273
  #
266
274
  def get_async(resource_group_name, account_name, application_id, custom_headers = nil)
267
275
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
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?
268
277
  fail ArgumentError, 'account_name is nil' if account_name.nil?
278
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
279
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
280
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !account_name.nil? && account_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
269
281
  fail ArgumentError, 'application_id is nil' if application_id.nil?
270
282
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
271
283
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -368,7 +380,11 @@ module Azure::Batch::Mgmt::V2015_12_01
368
380
  #
369
381
  def update_async(resource_group_name, account_name, application_id, parameters, custom_headers = nil)
370
382
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
383
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
371
384
  fail ArgumentError, 'account_name is nil' if account_name.nil?
385
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
386
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
387
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !account_name.nil? && account_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
372
388
  fail ArgumentError, 'application_id is nil' if application_id.nil?
373
389
  fail ArgumentError, 'parameters is nil' if parameters.nil?
374
390
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -469,7 +485,11 @@ module Azure::Batch::Mgmt::V2015_12_01
469
485
  #
470
486
  def list_async(resource_group_name, account_name, maxresults = nil, custom_headers = nil)
471
487
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
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?
472
489
  fail ArgumentError, 'account_name is nil' if account_name.nil?
490
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
491
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
492
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !account_name.nil? && account_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
473
493
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
474
494
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
475
495
 
@@ -76,7 +76,11 @@ module Azure::Batch::Mgmt::V2015_12_01
76
76
  #
77
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
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
79
80
  fail ArgumentError, 'account_name is nil' if account_name.nil?
81
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
82
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
83
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !account_name.nil? && account_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
80
84
  fail ArgumentError, 'application_id is nil' if application_id.nil?
81
85
  fail ArgumentError, 'version is nil' if version.nil?
82
86
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -178,7 +182,11 @@ module Azure::Batch::Mgmt::V2015_12_01
178
182
  #
179
183
  def create_async(resource_group_name, account_name, application_id, version, custom_headers = nil)
180
184
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
185
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
181
186
  fail ArgumentError, 'account_name is nil' if account_name.nil?
187
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
188
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
189
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !account_name.nil? && account_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
182
190
  fail ArgumentError, 'application_id is nil' if application_id.nil?
183
191
  fail ArgumentError, 'version is nil' if version.nil?
184
192
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -279,7 +287,11 @@ module Azure::Batch::Mgmt::V2015_12_01
279
287
  #
280
288
  def delete_async(resource_group_name, account_name, application_id, version, custom_headers = nil)
281
289
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
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?
282
291
  fail ArgumentError, 'account_name is nil' if account_name.nil?
292
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
293
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
294
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !account_name.nil? && account_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
283
295
  fail ArgumentError, 'application_id is nil' if application_id.nil?
284
296
  fail ArgumentError, 'version is nil' if version.nil?
285
297
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -371,7 +383,11 @@ module Azure::Batch::Mgmt::V2015_12_01
371
383
  #
372
384
  def get_async(resource_group_name, account_name, application_id, version, custom_headers = nil)
373
385
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
386
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
374
387
  fail ArgumentError, 'account_name is nil' if account_name.nil?
388
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
389
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
390
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !account_name.nil? && account_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
375
391
  fail ArgumentError, 'application_id is nil' if application_id.nil?
376
392
  fail ArgumentError, 'version is nil' if version.nil?
377
393
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -131,7 +131,11 @@ module Azure::Batch::Mgmt::V2015_12_01
131
131
  #
132
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
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
134
135
  fail ArgumentError, 'account_name is nil' if account_name.nil?
136
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
137
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
138
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !account_name.nil? && account_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
135
139
  fail ArgumentError, 'parameters is nil' if parameters.nil?
136
140
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
137
141
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -275,7 +279,11 @@ module Azure::Batch::Mgmt::V2015_12_01
275
279
  #
276
280
  def get_async(resource_group_name, account_name, custom_headers = nil)
277
281
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
282
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
278
283
  fail ArgumentError, 'account_name is nil' if account_name.nil?
284
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
285
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
286
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !account_name.nil? && account_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
279
287
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
280
288
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
281
289
 
@@ -452,6 +460,7 @@ module Azure::Batch::Mgmt::V2015_12_01
452
460
  #
453
461
  def list_by_resource_group_async(resource_group_name, custom_headers = nil)
454
462
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
463
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
455
464
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
456
465
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
457
466
 
@@ -547,7 +556,11 @@ module Azure::Batch::Mgmt::V2015_12_01
547
556
  #
548
557
  def synchronize_auto_storage_keys_async(resource_group_name, account_name, custom_headers = nil)
549
558
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
559
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
550
560
  fail ArgumentError, 'account_name is nil' if account_name.nil?
561
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
562
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
563
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !account_name.nil? && account_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
551
564
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
552
565
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
553
566
 
@@ -637,7 +650,11 @@ module Azure::Batch::Mgmt::V2015_12_01
637
650
  #
638
651
  def regenerate_key_async(resource_group_name, account_name, parameters, custom_headers = nil)
639
652
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
653
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
640
654
  fail ArgumentError, 'account_name is nil' if account_name.nil?
655
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
656
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
657
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !account_name.nil? && account_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
641
658
  fail ArgumentError, 'parameters is nil' if parameters.nil?
642
659
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
643
660
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -741,7 +758,11 @@ module Azure::Batch::Mgmt::V2015_12_01
741
758
  #
742
759
  def get_keys_async(resource_group_name, account_name, custom_headers = nil)
743
760
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
761
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
744
762
  fail ArgumentError, 'account_name is nil' if account_name.nil?
763
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
764
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
765
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !account_name.nil? && account_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
745
766
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
746
767
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
747
768
 
@@ -862,7 +883,11 @@ module Azure::Batch::Mgmt::V2015_12_01
862
883
  #
863
884
  def begin_create_async(resource_group_name, account_name, parameters, custom_headers = nil)
864
885
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
886
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
865
887
  fail ArgumentError, 'account_name is nil' if account_name.nil?
888
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
889
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
890
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !account_name.nil? && account_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
866
891
  fail ArgumentError, 'parameters is nil' if parameters.nil?
867
892
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
868
893
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -965,7 +990,11 @@ module Azure::Batch::Mgmt::V2015_12_01
965
990
  #
966
991
  def begin_delete_async(resource_group_name, account_name, custom_headers = nil)
967
992
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
993
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
968
994
  fail ArgumentError, 'account_name is nil' if account_name.nil?
995
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
996
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
997
+ fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !account_name.nil? && account_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
969
998
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
970
999
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
971
1000
 
@@ -133,9 +133,7 @@ module Azure::Batch::Mgmt::V2015_12_01
133
133
  #
134
134
  def add_telemetry
135
135
  sdk_information = 'azure_mgmt_batch'
136
- if defined? Azure::Batch::Mgmt::V2015_12_01::VERSION
137
- sdk_information = "#{sdk_information}/#{Azure::Batch::Mgmt::V2015_12_01::VERSION}"
138
- end
136
+ sdk_information = "#{sdk_information}/0.15.2"
139
137
  add_user_agent_information(sdk_information)
140
138
  end
141
139
  end
@@ -23,6 +23,7 @@ module Azure::Batch::Mgmt::V2015_12_01
23
23
  #
24
24
  def self.mapper()
25
25
  {
26
+ client_side_validation: true,
26
27
  required: false,
27
28
  serialized_name: 'ActivateApplicationPackageParameters',
28
29
  type: {
@@ -30,6 +31,7 @@ module Azure::Batch::Mgmt::V2015_12_01
30
31
  class_name: 'ActivateApplicationPackageParameters',
31
32
  model_properties: {
32
33
  format: {
34
+ client_side_validation: true,
33
35
  required: true,
34
36
  serialized_name: 'format',
35
37
  type: {
@@ -26,6 +26,7 @@ module Azure::Batch::Mgmt::V2015_12_01
26
26
  #
27
27
  def self.mapper()
28
28
  {
29
+ client_side_validation: true,
29
30
  required: false,
30
31
  serialized_name: 'AddApplicationParameters',
31
32
  type: {
@@ -33,6 +34,7 @@ module Azure::Batch::Mgmt::V2015_12_01
33
34
  class_name: 'AddApplicationParameters',
34
35
  model_properties: {
35
36
  allow_updates: {
37
+ client_side_validation: true,
36
38
  required: false,
37
39
  serialized_name: 'allowUpdates',
38
40
  type: {
@@ -40,6 +42,7 @@ module Azure::Batch::Mgmt::V2015_12_01
40
42
  }
41
43
  },
42
44
  display_name: {
45
+ client_side_validation: true,
43
46
  required: false,
44
47
  serialized_name: 'displayName',
45
48
  type: {
@@ -38,6 +38,7 @@ module Azure::Batch::Mgmt::V2015_12_01
38
38
  #
39
39
  def self.mapper()
40
40
  {
41
+ client_side_validation: true,
41
42
  required: false,
42
43
  serialized_name: 'Application',
43
44
  type: {
@@ -45,6 +46,7 @@ module Azure::Batch::Mgmt::V2015_12_01
45
46
  class_name: 'Application',
46
47
  model_properties: {
47
48
  id: {
49
+ client_side_validation: true,
48
50
  required: false,
49
51
  serialized_name: 'id',
50
52
  type: {
@@ -52,6 +54,7 @@ module Azure::Batch::Mgmt::V2015_12_01
52
54
  }
53
55
  },
54
56
  display_name: {
57
+ client_side_validation: true,
55
58
  required: false,
56
59
  serialized_name: 'displayName',
57
60
  type: {
@@ -59,11 +62,13 @@ module Azure::Batch::Mgmt::V2015_12_01
59
62
  }
60
63
  },
61
64
  packages: {
65
+ client_side_validation: true,
62
66
  required: false,
63
67
  serialized_name: 'packages',
64
68
  type: {
65
69
  name: 'Sequence',
66
70
  element: {
71
+ client_side_validation: true,
67
72
  required: false,
68
73
  serialized_name: 'ApplicationPackageElementType',
69
74
  type: {
@@ -74,6 +79,7 @@ module Azure::Batch::Mgmt::V2015_12_01
74
79
  }
75
80
  },
76
81
  allow_updates: {
82
+ client_side_validation: true,
77
83
  required: false,
78
84
  serialized_name: 'allowUpdates',
79
85
  type: {
@@ -81,6 +87,7 @@ module Azure::Batch::Mgmt::V2015_12_01
81
87
  }
82
88
  },
83
89
  default_version: {
90
+ client_side_validation: true,
84
91
  required: false,
85
92
  serialized_name: 'defaultVersion',
86
93
  type: {
@@ -45,6 +45,7 @@ module Azure::Batch::Mgmt::V2015_12_01
45
45
  #
46
46
  def self.mapper()
47
47
  {
48
+ client_side_validation: true,
48
49
  required: false,
49
50
  serialized_name: 'ApplicationPackage',
50
51
  type: {
@@ -52,6 +53,7 @@ module Azure::Batch::Mgmt::V2015_12_01
52
53
  class_name: 'ApplicationPackage',
53
54
  model_properties: {
54
55
  id: {
56
+ client_side_validation: true,
55
57
  required: false,
56
58
  serialized_name: 'id',
57
59
  type: {
@@ -59,6 +61,7 @@ module Azure::Batch::Mgmt::V2015_12_01
59
61
  }
60
62
  },
61
63
  version: {
64
+ client_side_validation: true,
62
65
  required: false,
63
66
  serialized_name: 'version',
64
67
  type: {
@@ -66,6 +69,7 @@ module Azure::Batch::Mgmt::V2015_12_01
66
69
  }
67
70
  },
68
71
  state: {
72
+ client_side_validation: true,
69
73
  required: false,
70
74
  serialized_name: 'state',
71
75
  type: {
@@ -74,6 +78,7 @@ module Azure::Batch::Mgmt::V2015_12_01
74
78
  }
75
79
  },
76
80
  format: {
81
+ client_side_validation: true,
77
82
  required: false,
78
83
  serialized_name: 'format',
79
84
  type: {
@@ -81,6 +86,7 @@ module Azure::Batch::Mgmt::V2015_12_01
81
86
  }
82
87
  },
83
88
  storage_url: {
89
+ client_side_validation: true,
84
90
  required: false,
85
91
  serialized_name: 'storageUrl',
86
92
  type: {
@@ -88,6 +94,7 @@ module Azure::Batch::Mgmt::V2015_12_01
88
94
  }
89
95
  },
90
96
  storage_url_expiry: {
97
+ client_side_validation: true,
91
98
  required: false,
92
99
  serialized_name: 'storageUrlExpiry',
93
100
  type: {
@@ -95,6 +102,7 @@ module Azure::Batch::Mgmt::V2015_12_01
95
102
  }
96
103
  },
97
104
  last_activation_time: {
105
+ client_side_validation: true,
98
106
  required: false,
99
107
  serialized_name: 'lastActivationTime',
100
108
  type: {
@@ -23,6 +23,7 @@ module Azure::Batch::Mgmt::V2015_12_01
23
23
  #
24
24
  def self.mapper()
25
25
  {
26
+ client_side_validation: true,
26
27
  required: false,
27
28
  serialized_name: 'AutoStorageBaseProperties',
28
29
  type: {
@@ -30,6 +31,7 @@ module Azure::Batch::Mgmt::V2015_12_01
30
31
  class_name: 'AutoStorageBaseProperties',
31
32
  model_properties: {
32
33
  storage_account_id: {
34
+ client_side_validation: true,
33
35
  required: true,
34
36
  serialized_name: 'storageAccountId',
35
37
  type: {
@@ -28,6 +28,7 @@ module Azure::Batch::Mgmt::V2015_12_01
28
28
  #
29
29
  def self.mapper()
30
30
  {
31
+ client_side_validation: true,
31
32
  required: false,
32
33
  serialized_name: 'AutoStorageProperties',
33
34
  type: {
@@ -35,6 +36,7 @@ module Azure::Batch::Mgmt::V2015_12_01
35
36
  class_name: 'AutoStorageProperties',
36
37
  model_properties: {
37
38
  storage_account_id: {
39
+ client_side_validation: true,
38
40
  required: true,
39
41
  serialized_name: 'storageAccountId',
40
42
  type: {
@@ -42,6 +44,7 @@ module Azure::Batch::Mgmt::V2015_12_01
42
44
  }
43
45
  },
44
46
  last_key_sync: {
47
+ client_side_validation: true,
45
48
  required: true,
46
49
  serialized_name: 'lastKeySync',
47
50
  type: {
@@ -42,6 +42,7 @@ module Azure::Batch::Mgmt::V2015_12_01
42
42
  #
43
43
  def self.mapper()
44
44
  {
45
+ client_side_validation: true,
45
46
  required: false,
46
47
  serialized_name: 'BatchAccount',
47
48
  type: {
@@ -49,6 +50,7 @@ module Azure::Batch::Mgmt::V2015_12_01
49
50
  class_name: 'BatchAccount',
50
51
  model_properties: {
51
52
  id: {
53
+ client_side_validation: true,
52
54
  required: false,
53
55
  read_only: true,
54
56
  serialized_name: 'id',
@@ -57,6 +59,7 @@ module Azure::Batch::Mgmt::V2015_12_01
57
59
  }
58
60
  },
59
61
  name: {
62
+ client_side_validation: true,
60
63
  required: false,
61
64
  read_only: true,
62
65
  serialized_name: 'name',
@@ -65,6 +68,7 @@ module Azure::Batch::Mgmt::V2015_12_01
65
68
  }
66
69
  },
67
70
  type: {
71
+ client_side_validation: true,
68
72
  required: false,
69
73
  read_only: true,
70
74
  serialized_name: 'type',
@@ -73,6 +77,7 @@ module Azure::Batch::Mgmt::V2015_12_01
73
77
  }
74
78
  },
75
79
  location: {
80
+ client_side_validation: true,
76
81
  required: false,
77
82
  serialized_name: 'location',
78
83
  type: {
@@ -80,11 +85,13 @@ module Azure::Batch::Mgmt::V2015_12_01
80
85
  }
81
86
  },
82
87
  tags: {
88
+ client_side_validation: true,
83
89
  required: false,
84
90
  serialized_name: 'tags',
85
91
  type: {
86
92
  name: 'Dictionary',
87
93
  value: {
94
+ client_side_validation: true,
88
95
  required: false,
89
96
  serialized_name: 'StringElementType',
90
97
  type: {
@@ -94,6 +101,7 @@ module Azure::Batch::Mgmt::V2015_12_01
94
101
  }
95
102
  },
96
103
  account_endpoint: {
104
+ client_side_validation: true,
97
105
  required: false,
98
106
  read_only: true,
99
107
  serialized_name: 'properties.accountEndpoint',
@@ -102,6 +110,7 @@ module Azure::Batch::Mgmt::V2015_12_01
102
110
  }
103
111
  },
104
112
  provisioning_state: {
113
+ client_side_validation: true,
105
114
  required: false,
106
115
  serialized_name: 'properties.provisioningState',
107
116
  type: {
@@ -110,6 +119,7 @@ module Azure::Batch::Mgmt::V2015_12_01
110
119
  }
111
120
  },
112
121
  auto_storage: {
122
+ client_side_validation: true,
113
123
  required: false,
114
124
  serialized_name: 'properties.autoStorage',
115
125
  type: {
@@ -118,6 +128,7 @@ module Azure::Batch::Mgmt::V2015_12_01
118
128
  }
119
129
  },
120
130
  core_quota: {
131
+ client_side_validation: true,
121
132
  required: true,
122
133
  serialized_name: 'properties.coreQuota',
123
134
  type: {
@@ -125,6 +136,7 @@ module Azure::Batch::Mgmt::V2015_12_01
125
136
  }
126
137
  },
127
138
  pool_quota: {
139
+ client_side_validation: true,
128
140
  required: true,
129
141
  serialized_name: 'properties.poolQuota',
130
142
  type: {
@@ -132,6 +144,7 @@ module Azure::Batch::Mgmt::V2015_12_01
132
144
  }
133
145
  },
134
146
  active_job_and_job_schedule_quota: {
147
+ client_side_validation: true,
135
148
  required: true,
136
149
  serialized_name: 'properties.activeJobAndJobScheduleQuota',
137
150
  type: {