azure_mgmt_hdinsight 0.17.3 → 0.17.4

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -86,6 +86,8 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
86
86
  end
87
87
 
88
88
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
89
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
90
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
89
91
  # Deserialize Response
90
92
  if status_code == 200
91
93
  begin
@@ -174,6 +176,8 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
174
176
  end
175
177
 
176
178
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
179
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
180
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
177
181
  # Deserialize Response
178
182
  if status_code == 200
179
183
  begin
@@ -99,6 +99,8 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
99
99
  end
100
100
 
101
101
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
102
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
103
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
102
104
 
103
105
  result
104
106
  end
@@ -181,6 +183,8 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
181
183
  end
182
184
 
183
185
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
186
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
187
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
184
188
  # Deserialize Response
185
189
  if status_code == 200
186
190
  begin
@@ -277,6 +281,8 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
277
281
  end
278
282
 
279
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?
280
286
  # Deserialize Response
281
287
  if status_code == 200
282
288
  begin
@@ -365,6 +371,8 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
365
371
  end
366
372
 
367
373
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
374
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
375
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
368
376
  # Deserialize Response
369
377
  if status_code == 200
370
378
  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
@@ -191,6 +193,8 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
191
193
  end
192
194
 
193
195
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
196
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
197
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
194
198
 
195
199
  result
196
200
  end
@@ -269,6 +273,8 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
269
273
  end
270
274
 
271
275
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
276
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
277
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
272
278
  # Deserialize Response
273
279
  if status_code == 200
274
280
  begin
@@ -35,63 +35,73 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
35
35
  autoload :UpdateGatewaySettingsParameters, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/update_gateway_settings_parameters.rb'
36
36
  autoload :SecurityProfile, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/security_profile.rb'
37
37
  autoload :GatewaySettings, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/gateway_settings.rb'
38
- autoload :VirtualNetworkProfile, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/virtual_network_profile.rb'
38
+ autoload :AutoscaleSchedule, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_schedule.rb'
39
39
  autoload :OperationResource, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/operation_resource.rb'
40
- autoload :SshPublicKey, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/ssh_public_key.rb'
40
+ autoload :AutoscaleRecurrence, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_recurrence.rb'
41
41
  autoload :Resource, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/resource.rb'
42
- autoload :LinuxOperatingSystemProfile, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/linux_operating_system_profile.rb'
42
+ autoload :HardwareProfile, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/hardware_profile.rb'
43
+ autoload :Autoscale, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/autoscale.rb'
44
+ autoload :DataDisksGroups, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/data_disks_groups.rb'
45
+ autoload :VirtualNetworkProfile, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/virtual_network_profile.rb'
43
46
  autoload :SshProfile, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/ssh_profile.rb'
44
- autoload :ScriptAction, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/script_action.rb'
45
- autoload :OsProfile, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/os_profile.rb'
46
- autoload :ComputeProfile, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/compute_profile.rb'
47
47
  autoload :OperationListResult, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/operation_list_result.rb'
48
- autoload :StorageProfile, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/storage_profile.rb'
48
+ autoload :OsProfile, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/os_profile.rb'
49
49
  autoload :Operation, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/operation.rb'
50
- autoload :ClusterCreateProperties, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_create_properties.rb'
50
+ autoload :Role, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/role.rb'
51
51
  autoload :ErrorResponse, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/error_response.rb'
52
- autoload :ClusterIdentity, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_identity.rb'
52
+ autoload :StorageAccount, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/storage_account.rb'
53
53
  autoload :ApplicationGetHttpsEndpoint, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/application_get_https_endpoint.rb'
54
- autoload :ClusterPatchParameters, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_patch_parameters.rb'
54
+ autoload :DiskEncryptionProperties, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/disk_encryption_properties.rb'
55
55
  autoload :ApplicationGetEndpoint, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/application_get_endpoint.rb'
56
- autoload :Errors, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/errors.rb'
56
+ autoload :ClusterIdentityUserAssignedIdentitiesValue, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_identity_user_assigned_identities_value.rb'
57
57
  autoload :ApplicationProperties, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/application_properties.rb'
58
- autoload :ClusterGetProperties, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_get_properties.rb'
58
+ autoload :ClusterCreateParametersExtended, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_create_parameters_extended.rb'
59
59
  autoload :OperationDisplay, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/operation_display.rb'
60
- autoload :RuntimeScriptAction, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/runtime_script_action.rb'
60
+ autoload :QuotaInfo, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/quota_info.rb'
61
61
  autoload :ApplicationListResult, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/application_list_result.rb'
62
- autoload :ClusterListPersistedScriptActionsResult, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_list_persisted_script_actions_result.rb'
62
+ autoload :ConnectivityEndpoint, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/connectivity_endpoint.rb'
63
63
  autoload :VersionSpec, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/version_spec.rb'
64
- autoload :ScriptActionsList, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/script_actions_list.rb'
65
- autoload :ClusterListRuntimeScriptActionDetailResult, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_list_runtime_script_action_detail_result.rb'
66
64
  autoload :VersionsCapability, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/versions_capability.rb'
67
- autoload :ClusterResizeParameters, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_resize_parameters.rb'
65
+ autoload :ExecuteScriptActionParameters, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/execute_script_action_parameters.rb'
68
66
  autoload :RegionsCapability, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/regions_capability.rb'
69
- autoload :HardwareProfile, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/hardware_profile.rb'
67
+ autoload :ScriptActionExecutionSummary, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/script_action_execution_summary.rb'
70
68
  autoload :VmSizesCapability, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/vm_sizes_capability.rb'
71
- autoload :Role, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/role.rb'
69
+ autoload :ClusterListRuntimeScriptActionDetailResult, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_list_runtime_script_action_detail_result.rb'
72
70
  autoload :VmSizeCompatibilityFilter, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/vm_size_compatibility_filter.rb'
73
- autoload :DiskEncryptionProperties, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/disk_encryption_properties.rb'
71
+ autoload :ClusterResizeParameters, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_resize_parameters.rb'
74
72
  autoload :RegionalQuotaCapability, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/regional_quota_capability.rb'
75
- autoload :ClusterCreateParametersExtended, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_create_parameters_extended.rb'
73
+ autoload :AutoscaleTimeAndCapacity, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_time_and_capacity.rb'
76
74
  autoload :QuotaCapability, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/quota_capability.rb'
77
- autoload :ConnectivityEndpoint, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/connectivity_endpoint.rb'
75
+ autoload :SshPublicKey, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/ssh_public_key.rb'
78
76
  autoload :CapabilitiesResult, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/capabilities_result.rb'
79
- autoload :ExecuteScriptActionParameters, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/execute_script_action_parameters.rb'
77
+ autoload :ScriptAction, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/script_action.rb'
80
78
  autoload :LocalizedName, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/localized_name.rb'
81
- autoload :ClusterListResult, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_list_result.rb'
79
+ autoload :StorageProfile, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/storage_profile.rb'
82
80
  autoload :Usage, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/usage.rb'
83
- autoload :DataDisksGroups, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/data_disks_groups.rb'
81
+ autoload :ClusterIdentity, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_identity.rb'
84
82
  autoload :UsagesListResult, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/usages_list_result.rb'
85
- autoload :ClusterIdentityUserAssignedIdentitiesValue, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_identity_user_assigned_identities_value.rb'
83
+ autoload :Errors, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/errors.rb'
84
+ autoload :VmSizeCompatibilityFilterV2, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/vm_size_compatibility_filter_v2.rb'
85
+ autoload :RuntimeScriptAction, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/runtime_script_action.rb'
86
+ autoload :BillingMeters, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/billing_meters.rb'
87
+ autoload :ScriptActionsList, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/script_actions_list.rb'
88
+ autoload :ClusterListResult, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_list_result.rb'
89
+ autoload :DiskBillingMeters, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/disk_billing_meters.rb'
90
+ autoload :AutoscaleCapacity, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_capacity.rb'
91
+ autoload :BillingResources, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/billing_resources.rb'
92
+ autoload :ComputeProfile, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/compute_profile.rb'
93
+ autoload :BillingResponseListResult, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/billing_response_list_result.rb'
94
+ autoload :ClusterPatchParameters, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_patch_parameters.rb'
86
95
  autoload :ClusterConfigurations, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_configurations.rb'
96
+ autoload :ClusterListPersistedScriptActionsResult, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_list_persisted_script_actions_result.rb'
87
97
  autoload :Extension, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/extension.rb'
88
- autoload :ClusterDefinition, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_definition.rb'
98
+ autoload :LinuxOperatingSystemProfile, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/linux_operating_system_profile.rb'
89
99
  autoload :ClusterMonitoringResponse, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_monitoring_response.rb'
90
- autoload :QuotaInfo, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/quota_info.rb'
100
+ autoload :ClusterGetProperties, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_get_properties.rb'
91
101
  autoload :ClusterMonitoringRequest, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_monitoring_request.rb'
92
- autoload :StorageAccount, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/storage_account.rb'
102
+ autoload :ClusterCreateProperties, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_create_properties.rb'
93
103
  autoload :ScriptActionExecutionHistoryList, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/script_action_execution_history_list.rb'
94
- autoload :ScriptActionExecutionSummary, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/script_action_execution_summary.rb'
104
+ autoload :ClusterDefinition, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_definition.rb'
95
105
  autoload :ScriptActionPersistedGetResponseSpec, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/script_action_persisted_get_response_spec.rb'
96
106
  autoload :RuntimeScriptActionDetail, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/runtime_script_action_detail.rb'
97
107
  autoload :TrackedResource, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/tracked_resource.rb'
@@ -99,11 +109,13 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
99
109
  autoload :ProxyResource, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/proxy_resource.rb'
100
110
  autoload :Application, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/application.rb'
101
111
  autoload :DirectoryType, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/directory_type.rb'
112
+ autoload :DaysOfWeek, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/days_of_week.rb'
102
113
  autoload :OSType, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/ostype.rb'
103
114
  autoload :Tier, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/tier.rb'
104
115
  autoload :JsonWebKeyEncryptionAlgorithm, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/json_web_key_encryption_algorithm.rb'
105
116
  autoload :ResourceIdentityType, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/resource_identity_type.rb'
106
117
  autoload :HDInsightClusterProvisioningState, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/hdinsight_cluster_provisioning_state.rb'
107
118
  autoload :AsyncOperationState, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/async_operation_state.rb'
119
+ autoload :FilterMode, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/filter_mode.rb'
108
120
  end
109
121
  end
@@ -96,6 +96,8 @@ module Azure::Hdinsight::Mgmt::V2018_06_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::V2018_06_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::V2018_06_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::V2018_06_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::V2018_06_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::V2018_06_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::V2018_06_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::V2018_06_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::V2018_06_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::V2018_06_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::V2018_06_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::V2018_06_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::V2018_06_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::V2018_06_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::V2018_06_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::V2018_06_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::V2018_06_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::V2018_06_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::V2018_06_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::V2018_06_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::V2018_06_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::V2018_06_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
@@ -317,6 +319,8 @@ module Azure::Hdinsight::Mgmt::V2018_06_01_preview
317
319
  end
318
320
 
319
321
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
322
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
323
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
320
324
  # Deserialize Response
321
325
  if status_code == 200
322
326
  begin
@@ -462,6 +466,8 @@ module Azure::Hdinsight::Mgmt::V2018_06_01_preview
462
466
  end
463
467
 
464
468
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
469
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
470
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
465
471
 
466
472
  result
467
473
  end
@@ -543,6 +549,8 @@ module Azure::Hdinsight::Mgmt::V2018_06_01_preview
543
549
  end
544
550
 
545
551
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
552
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
553
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
546
554
 
547
555
  result
548
556
  end
@@ -639,6 +647,8 @@ module Azure::Hdinsight::Mgmt::V2018_06_01_preview
639
647
  end
640
648
 
641
649
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
650
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
651
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
642
652
 
643
653
  result
644
654
  end
@@ -724,6 +734,8 @@ module Azure::Hdinsight::Mgmt::V2018_06_01_preview
724
734
  end
725
735
 
726
736
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
737
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
738
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
727
739
 
728
740
  result
729
741
  end
@@ -154,7 +154,7 @@ module Azure::Hdinsight::Mgmt::V2018_06_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::V2018_06_01_preview
24
24
  #
25
25
  # Lists the usages for the specified location.
26
26
  #
27
- # @param location [String] The location to get capabilities for.
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::V2018_06_01_preview
38
39
  #
39
40
  # Lists the usages for the specified location.
40
41
  #
41
- # @param location [String] The location to get capabilities for.
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::V2018_06_01_preview
51
53
  #
52
54
  # Lists the usages for the specified location.
53
55
  #
54
- # @param location [String] The location to get capabilities for.
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::V2018_06_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
@@ -109,5 +114,98 @@ module Azure::Hdinsight::Mgmt::V2018_06_01_preview
109
114
  promise.execute
110
115
  end
111
116
 
117
+ #
118
+ # Lists the billingSpecs for the specified subscription and location.
119
+ #
120
+ # @param location [String] The Azure location (region) for which to make the
121
+ # request.
122
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
123
+ # will be added to the HTTP request.
124
+ #
125
+ # @return [BillingResponseListResult] operation results.
126
+ #
127
+ def list_billing_specs(location, custom_headers:nil)
128
+ response = list_billing_specs_async(location, custom_headers:custom_headers).value!
129
+ response.body unless response.nil?
130
+ end
131
+
132
+ #
133
+ # Lists the billingSpecs for the specified subscription and location.
134
+ #
135
+ # @param location [String] The Azure location (region) for which to make the
136
+ # request.
137
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
138
+ # will be added to the HTTP request.
139
+ #
140
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
141
+ #
142
+ def list_billing_specs_with_http_info(location, custom_headers:nil)
143
+ list_billing_specs_async(location, custom_headers:custom_headers).value!
144
+ end
145
+
146
+ #
147
+ # Lists the billingSpecs for the specified subscription and location.
148
+ #
149
+ # @param location [String] The Azure location (region) for which to make the
150
+ # request.
151
+ # @param [Hash{String => String}] A hash of custom headers that will be added
152
+ # to the HTTP request.
153
+ #
154
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
155
+ #
156
+ def list_billing_specs_async(location, custom_headers:nil)
157
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
158
+ fail ArgumentError, 'location is nil' if location.nil?
159
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
160
+
161
+
162
+ request_headers = {}
163
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
164
+
165
+ # Set Headers
166
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
167
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
168
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/billingSpecs'
169
+
170
+ request_url = @base_url || @client.base_url
171
+
172
+ options = {
173
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
174
+ path_params: {'subscriptionId' => @client.subscription_id,'location' => location},
175
+ query_params: {'api-version' => @client.api_version},
176
+ headers: request_headers.merge(custom_headers || {}),
177
+ base_url: request_url
178
+ }
179
+ promise = @client.make_request_async(:get, path_template, options)
180
+
181
+ promise = promise.then do |result|
182
+ http_response = result.response
183
+ status_code = http_response.status
184
+ response_content = http_response.body
185
+ unless status_code == 200
186
+ error_model = JSON.load(response_content)
187
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
188
+ end
189
+
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?
193
+ # Deserialize Response
194
+ if status_code == 200
195
+ begin
196
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
197
+ result_mapper = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::BillingResponseListResult.mapper()
198
+ result.body = @client.deserialize(result_mapper, parsed_response)
199
+ rescue Exception => e
200
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
201
+ end
202
+ end
203
+
204
+ result
205
+ end
206
+
207
+ promise.execute
208
+ end
209
+
112
210
  end
113
211
  end