azure_mgmt_hdinsight 0.17.3 → 0.17.4

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.
Files changed (51) hide show
  1. checksums.yaml +5 -5
  2. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/applications.rb +10 -0
  3. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/clusters.rb +26 -0
  4. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/configurations.rb +6 -0
  5. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/extension_operations.rb +12 -0
  6. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/hdinsight_management_client.rb +1 -1
  7. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/locations.rb +109 -6
  8. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/autoscale.rb +59 -0
  9. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_capacity.rb +57 -0
  10. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_recurrence.rb +67 -0
  11. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_schedule.rb +70 -0
  12. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_time_and_capacity.rb +68 -0
  13. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/billing_meters.rb +68 -0
  14. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/billing_resources.rb +87 -0
  15. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/billing_response_list_result.rb +99 -0
  16. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/days_of_week.rb +21 -0
  17. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/disk_billing_meters.rb +70 -0
  18. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/filter_mode.rb +16 -0
  19. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/role.rb +12 -0
  20. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/vm_size_compatibility_filter_v2.rb +172 -0
  21. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/operations.rb +4 -0
  22. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/script_actions.rb +8 -0
  23. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/script_execution_history.rb +6 -0
  24. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight.rb +42 -30
  25. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/applications.rb +10 -0
  26. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/clusters.rb +26 -0
  27. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/configurations.rb +6 -0
  28. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/extensions.rb +12 -0
  29. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/hdinsight_management_client.rb +1 -1
  30. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/locations.rb +101 -3
  31. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/application_get_https_endpoint.rb +22 -0
  32. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/autoscale.rb +59 -0
  33. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_capacity.rb +57 -0
  34. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_recurrence.rb +67 -0
  35. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_schedule.rb +70 -0
  36. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_time_and_capacity.rb +68 -0
  37. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/billing_meters.rb +68 -0
  38. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/billing_resources.rb +87 -0
  39. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/billing_response_list_result.rb +99 -0
  40. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/days_of_week.rb +21 -0
  41. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/disk_billing_meters.rb +70 -0
  42. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/filter_mode.rb +16 -0
  43. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/role.rb +12 -0
  44. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/vm_size_compatibility_filter_v2.rb +172 -0
  45. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/operations.rb +4 -0
  46. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/script_actions.rb +8 -0
  47. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/script_execution_history.rb +6 -0
  48. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight.rb +38 -26
  49. data/lib/profiles/latest/modules/hdinsight_profile_module.rb +127 -79
  50. data/lib/version.rb +1 -1
  51. metadata +29 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: f20c7bb3ea07db195fd2ebf32ffa4e178ce0e4be
4
- data.tar.gz: e409959f2c0dc22ec51efd10eceba69ba544a50b
2
+ SHA256:
3
+ metadata.gz: fdb04140df4036830b28ce0a5277c2fc91ca2f8f9c13c224f99bd76abe4224f8
4
+ data.tar.gz: 094ee983d9c36c54a3c5b45c18354a906a2cdebe3f1c6a77b534c0dadf4ff342
5
5
  SHA512:
6
- metadata.gz: a834d19b42b7380cb8dd87622afa0e388a0d999f212f476031b5f69af38ea6989f7984aa530a6ad8b3e2fd24578040f1d4d566852311b691c1bf19dd024c41ea
7
- data.tar.gz: e006f1db7d8fafbd78e00656393d0f7e758ba60bb2bb4c1773afe459ee03f678b7edcc938a9686805f68fad2b00003ddf81921537c2bc2b7c5b46b5b325b7302
6
+ metadata.gz: 3890207659c1775ecff7abf91b264461a0b7b70c6365713e30232fa8309cc5318e1059f1b256550b28f2c376d44703548e77d74fbd8e83e3c19e2bb55d82a3e1
7
+ data.tar.gz: 461dd0896f863725b83d8896acf4900cc921874afae3323d04befe73ff643c673c00e17b83b4fe5aa8f2c02edfa6359171f8d52439e004f85afe6e0db2b55734
@@ -96,6 +96,8 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
96
96
  end
97
97
 
98
98
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
99
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
100
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
99
101
  # Deserialize Response
100
102
  if status_code == 200
101
103
  begin
@@ -192,6 +194,8 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
192
194
  end
193
195
 
194
196
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
197
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
198
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
195
199
  # Deserialize Response
196
200
  if status_code == 200
197
201
  begin
@@ -385,6 +389,8 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
385
389
  end
386
390
 
387
391
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
392
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
393
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
388
394
  # Deserialize Response
389
395
  if status_code == 200
390
396
  begin
@@ -480,6 +486,8 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
480
486
  end
481
487
 
482
488
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
489
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
490
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
483
491
 
484
492
  result
485
493
  end
@@ -558,6 +566,8 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
558
566
  end
559
567
 
560
568
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
569
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
570
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
561
571
  # Deserialize Response
562
572
  if status_code == 200
563
573
  begin
@@ -153,6 +153,8 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
153
153
  end
154
154
 
155
155
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
156
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
157
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
156
158
  # Deserialize Response
157
159
  if status_code == 200
158
160
  begin
@@ -283,6 +285,8 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
283
285
  end
284
286
 
285
287
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
288
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
289
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
286
290
  # Deserialize Response
287
291
  if status_code == 200
288
292
  begin
@@ -371,6 +375,8 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
371
375
  end
372
376
 
373
377
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
378
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
379
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
374
380
  # Deserialize Response
375
381
  if status_code == 200
376
382
  begin
@@ -497,6 +503,8 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
497
503
  end
498
504
 
499
505
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
506
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
507
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
500
508
  # Deserialize Response
501
509
  if status_code == 200
502
510
  begin
@@ -631,6 +639,8 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
631
639
  end
632
640
 
633
641
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
642
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
643
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
634
644
  # Deserialize Response
635
645
  if status_code == 200
636
646
  begin
@@ -821,6 +831,8 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
821
831
  end
822
832
 
823
833
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
834
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
835
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
824
836
  # Deserialize Response
825
837
  if status_code == 200
826
838
  begin
@@ -912,6 +924,8 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
912
924
  end
913
925
 
914
926
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
927
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
928
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
915
929
 
916
930
  result
917
931
  end
@@ -1008,6 +1022,8 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
1008
1022
  end
1009
1023
 
1010
1024
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1025
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1026
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1011
1027
 
1012
1028
  result
1013
1029
  end
@@ -1103,6 +1119,8 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
1103
1119
  end
1104
1120
 
1105
1121
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1122
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1123
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1106
1124
 
1107
1125
  result
1108
1126
  end
@@ -1198,6 +1216,8 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
1198
1216
  end
1199
1217
 
1200
1218
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1219
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1220
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1201
1221
 
1202
1222
  result
1203
1223
  end
@@ -1293,6 +1313,8 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
1293
1313
  end
1294
1314
 
1295
1315
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1316
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1317
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1296
1318
 
1297
1319
  result
1298
1320
  end
@@ -1371,6 +1393,8 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
1371
1393
  end
1372
1394
 
1373
1395
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1396
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1397
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1374
1398
  # Deserialize Response
1375
1399
  if status_code == 200
1376
1400
  begin
@@ -1459,6 +1483,8 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
1459
1483
  end
1460
1484
 
1461
1485
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1486
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1487
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1462
1488
  # Deserialize Response
1463
1489
  if status_code == 200
1464
1490
  begin
@@ -96,6 +96,8 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
96
96
  end
97
97
 
98
98
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
99
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
100
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
99
101
  # Deserialize Response
100
102
  if status_code == 200
101
103
  begin
@@ -241,6 +243,8 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
241
243
  end
242
244
 
243
245
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
246
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
247
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
244
248
  # Deserialize Response
245
249
  if status_code == 200
246
250
  begin
@@ -380,6 +384,8 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
380
384
  end
381
385
 
382
386
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
387
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
388
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
383
389
 
384
390
  result
385
391
  end
@@ -141,6 +141,8 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
141
141
  end
142
142
 
143
143
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
144
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
145
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
144
146
  # Deserialize Response
145
147
  if status_code == 200
146
148
  begin
@@ -285,6 +287,8 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
285
287
  end
286
288
 
287
289
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
290
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
291
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
288
292
 
289
293
  result
290
294
  end
@@ -371,6 +375,8 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
371
375
  end
372
376
 
373
377
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
378
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
379
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
374
380
  # Deserialize Response
375
381
  if status_code == 200
376
382
  begin
@@ -466,6 +472,8 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
466
472
  end
467
473
 
468
474
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
475
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
476
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
469
477
 
470
478
  result
471
479
  end
@@ -561,6 +569,8 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
561
569
  end
562
570
 
563
571
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
572
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
573
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
564
574
 
565
575
  result
566
576
  end
@@ -642,6 +652,8 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
642
652
  end
643
653
 
644
654
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
655
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
656
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
645
657
 
646
658
  result
647
659
  end
@@ -154,7 +154,7 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
154
154
  #
155
155
  def add_telemetry
156
156
  sdk_information = 'azure_mgmt_hdinsight'
157
- sdk_information = "#{sdk_information}/0.17.3"
157
+ sdk_information = "#{sdk_information}/0.17.4"
158
158
  add_user_agent_information(sdk_information)
159
159
  end
160
160
  end
@@ -24,7 +24,8 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
24
24
  #
25
25
  # Gets the capabilities for the specified location.
26
26
  #
27
- # @param location [String] The location.
27
+ # @param location [String] The Azure location (region) for which to make the
28
+ # request.
28
29
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
29
30
  # will be added to the HTTP request.
30
31
  #
@@ -38,7 +39,8 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
38
39
  #
39
40
  # Gets the capabilities for the specified location.
40
41
  #
41
- # @param location [String] The location.
42
+ # @param location [String] The Azure location (region) for which to make the
43
+ # request.
42
44
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
43
45
  # will be added to the HTTP request.
44
46
  #
@@ -51,7 +53,8 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
51
53
  #
52
54
  # Gets the capabilities for the specified location.
53
55
  #
54
- # @param location [String] The location.
56
+ # @param location [String] The Azure location (region) for which to make the
57
+ # request.
55
58
  # @param [Hash{String => String}] A hash of custom headers that will be added
56
59
  # to the HTTP request.
57
60
  #
@@ -92,6 +95,8 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
92
95
  end
93
96
 
94
97
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
98
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
99
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
95
100
  # Deserialize Response
96
101
  if status_code == 200
97
102
  begin
@@ -112,7 +117,8 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
112
117
  #
113
118
  # Lists the usages for the specified location.
114
119
  #
115
- # @param location [String] The location.
120
+ # @param location [String] The Azure location (region) for which to make the
121
+ # request.
116
122
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
117
123
  # will be added to the HTTP request.
118
124
  #
@@ -126,7 +132,8 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
126
132
  #
127
133
  # Lists the usages for the specified location.
128
134
  #
129
- # @param location [String] The location.
135
+ # @param location [String] The Azure location (region) for which to make the
136
+ # request.
130
137
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
131
138
  # will be added to the HTTP request.
132
139
  #
@@ -139,7 +146,8 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
139
146
  #
140
147
  # Lists the usages for the specified location.
141
148
  #
142
- # @param location [String] The location.
149
+ # @param location [String] The Azure location (region) for which to make the
150
+ # request.
143
151
  # @param [Hash{String => String}] A hash of custom headers that will be added
144
152
  # to the HTTP request.
145
153
  #
@@ -180,6 +188,8 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
180
188
  end
181
189
 
182
190
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
191
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
192
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
183
193
  # Deserialize Response
184
194
  if status_code == 200
185
195
  begin
@@ -197,5 +207,98 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
197
207
  promise.execute
198
208
  end
199
209
 
210
+ #
211
+ # Lists the billingSpecs for the specified subscription and location.
212
+ #
213
+ # @param location [String] The Azure location (region) for which to make the
214
+ # request.
215
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
216
+ # will be added to the HTTP request.
217
+ #
218
+ # @return [BillingResponseListResult] operation results.
219
+ #
220
+ def list_billing_specs(location, custom_headers:nil)
221
+ response = list_billing_specs_async(location, custom_headers:custom_headers).value!
222
+ response.body unless response.nil?
223
+ end
224
+
225
+ #
226
+ # Lists the billingSpecs for the specified subscription and location.
227
+ #
228
+ # @param location [String] The Azure location (region) for which to make the
229
+ # request.
230
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
231
+ # will be added to the HTTP request.
232
+ #
233
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
234
+ #
235
+ def list_billing_specs_with_http_info(location, custom_headers:nil)
236
+ list_billing_specs_async(location, custom_headers:custom_headers).value!
237
+ end
238
+
239
+ #
240
+ # Lists the billingSpecs for the specified subscription and location.
241
+ #
242
+ # @param location [String] The Azure location (region) for which to make the
243
+ # request.
244
+ # @param [Hash{String => String}] A hash of custom headers that will be added
245
+ # to the HTTP request.
246
+ #
247
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
248
+ #
249
+ def list_billing_specs_async(location, custom_headers:nil)
250
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
251
+ fail ArgumentError, 'location is nil' if location.nil?
252
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
253
+
254
+
255
+ request_headers = {}
256
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
257
+
258
+ # Set Headers
259
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
260
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
261
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/billingSpecs'
262
+
263
+ request_url = @base_url || @client.base_url
264
+
265
+ options = {
266
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
267
+ path_params: {'subscriptionId' => @client.subscription_id,'location' => location},
268
+ query_params: {'api-version' => @client.api_version},
269
+ headers: request_headers.merge(custom_headers || {}),
270
+ base_url: request_url
271
+ }
272
+ promise = @client.make_request_async(:get, path_template, options)
273
+
274
+ promise = promise.then do |result|
275
+ http_response = result.response
276
+ status_code = http_response.status
277
+ response_content = http_response.body
278
+ unless status_code == 200
279
+ error_model = JSON.load(response_content)
280
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
281
+ end
282
+
283
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
284
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
285
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
286
+ # Deserialize Response
287
+ if status_code == 200
288
+ begin
289
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
290
+ result_mapper = Azure::Hdinsight::Mgmt::V2015_03_01_preview::Models::BillingResponseListResult.mapper()
291
+ result.body = @client.deserialize(result_mapper, parsed_response)
292
+ rescue Exception => e
293
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
294
+ end
295
+ end
296
+
297
+ result
298
+ end
299
+
300
+ promise.execute
301
+ end
302
+
200
303
  end
201
304
  end
@@ -0,0 +1,59 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
7
+ module Models
8
+ #
9
+ # The autoscale request parameters
10
+ #
11
+ class Autoscale
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [AutoscaleCapacity] Parameters for load-based autoscale
16
+ attr_accessor :capacity
17
+
18
+ # @return [AutoscaleRecurrence] Parameters for schedule-based autoscale
19
+ attr_accessor :recurrence
20
+
21
+
22
+ #
23
+ # Mapper for Autoscale class as Ruby Hash.
24
+ # This will be used for serialization/deserialization.
25
+ #
26
+ def self.mapper()
27
+ {
28
+ client_side_validation: true,
29
+ required: false,
30
+ serialized_name: 'Autoscale',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'Autoscale',
34
+ model_properties: {
35
+ capacity: {
36
+ client_side_validation: true,
37
+ required: false,
38
+ serialized_name: 'capacity',
39
+ type: {
40
+ name: 'Composite',
41
+ class_name: 'AutoscaleCapacity'
42
+ }
43
+ },
44
+ recurrence: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ serialized_name: 'recurrence',
48
+ type: {
49
+ name: 'Composite',
50
+ class_name: 'AutoscaleRecurrence'
51
+ }
52
+ }
53
+ }
54
+ }
55
+ }
56
+ end
57
+ end
58
+ end
59
+ end
@@ -0,0 +1,57 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
7
+ module Models
8
+ #
9
+ # The load-based autoscale request parameters
10
+ #
11
+ class AutoscaleCapacity
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Integer] The minimum instance count of the cluster
16
+ attr_accessor :min_instance_count
17
+
18
+ # @return [Integer] The maximum instance count of the cluster
19
+ attr_accessor :max_instance_count
20
+
21
+
22
+ #
23
+ # Mapper for AutoscaleCapacity class as Ruby Hash.
24
+ # This will be used for serialization/deserialization.
25
+ #
26
+ def self.mapper()
27
+ {
28
+ client_side_validation: true,
29
+ required: false,
30
+ serialized_name: 'AutoscaleCapacity',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'AutoscaleCapacity',
34
+ model_properties: {
35
+ min_instance_count: {
36
+ client_side_validation: true,
37
+ required: false,
38
+ serialized_name: 'minInstanceCount',
39
+ type: {
40
+ name: 'Number'
41
+ }
42
+ },
43
+ max_instance_count: {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'maxInstanceCount',
47
+ type: {
48
+ name: 'Number'
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ end
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,67 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
7
+ module Models
8
+ #
9
+ # Schedule-based autoscale request parameters
10
+ #
11
+ class AutoscaleRecurrence
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The time zone for the autoscale schedule times
16
+ attr_accessor :time_zone
17
+
18
+ # @return [Array<AutoscaleSchedule>] Array of schedule-based autoscale
19
+ # rules
20
+ attr_accessor :schedule
21
+
22
+
23
+ #
24
+ # Mapper for AutoscaleRecurrence class as Ruby Hash.
25
+ # This will be used for serialization/deserialization.
26
+ #
27
+ def self.mapper()
28
+ {
29
+ client_side_validation: true,
30
+ required: false,
31
+ serialized_name: 'AutoscaleRecurrence',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'AutoscaleRecurrence',
35
+ model_properties: {
36
+ time_zone: {
37
+ client_side_validation: true,
38
+ required: false,
39
+ serialized_name: 'timeZone',
40
+ type: {
41
+ name: 'String'
42
+ }
43
+ },
44
+ schedule: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ serialized_name: 'schedule',
48
+ type: {
49
+ name: 'Sequence',
50
+ element: {
51
+ client_side_validation: true,
52
+ required: false,
53
+ serialized_name: 'AutoscaleScheduleElementType',
54
+ type: {
55
+ name: 'Composite',
56
+ class_name: 'AutoscaleSchedule'
57
+ }
58
+ }
59
+ }
60
+ }
61
+ }
62
+ }
63
+ }
64
+ end
65
+ end
66
+ end
67
+ end