azure_mgmt_hdinsight 0.18.1

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 (219) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight.rb +128 -0
  4. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/applications.rb +611 -0
  5. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/clusters.rb +1687 -0
  6. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/configurations.rb +397 -0
  7. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/extension_operations.rb +665 -0
  8. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/hdinsight_management_client.rb +161 -0
  9. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/locations.rb +304 -0
  10. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/application.rb +104 -0
  11. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/application_get_endpoint.rb +68 -0
  12. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/application_get_https_endpoint.rb +109 -0
  13. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/application_list_result.rb +102 -0
  14. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/application_properties.rb +210 -0
  15. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/async_operation_state.rb +17 -0
  16. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/autoscale.rb +59 -0
  17. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_capacity.rb +57 -0
  18. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_configuration_update_parameter.rb +47 -0
  19. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_recurrence.rb +67 -0
  20. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_schedule.rb +70 -0
  21. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_time_and_capacity.rb +68 -0
  22. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/billing_meters.rb +68 -0
  23. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/billing_resources.rb +87 -0
  24. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/billing_response_list_result.rb +99 -0
  25. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/capabilities_result.rb +148 -0
  26. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/client_group_info.rb +57 -0
  27. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster.rb +121 -0
  28. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_configurations.rb +63 -0
  29. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_create_parameters_extended.rb +89 -0
  30. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_create_properties.rb +181 -0
  31. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_definition.rb +88 -0
  32. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_disk_encryption_parameters.rb +70 -0
  33. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_get_properties.rb +258 -0
  34. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_identity.rb +101 -0
  35. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_identity_user_assigned_identities_value.rb +61 -0
  36. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_list_persisted_script_actions_result.rb +68 -0
  37. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_list_result.rb +99 -0
  38. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_list_runtime_script_action_detail_result.rb +70 -0
  39. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_monitoring_request.rb +57 -0
  40. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_monitoring_response.rb +59 -0
  41. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_patch_parameters.rb +54 -0
  42. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_resize_parameters.rb +46 -0
  43. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/compute_profile.rb +55 -0
  44. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/connectivity_endpoint.rb +79 -0
  45. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/data_disks_groups.rb +71 -0
  46. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/days_of_week.rb +21 -0
  47. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/directory_type.rb +15 -0
  48. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/disk_billing_meters.rb +70 -0
  49. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/disk_encryption_properties.rb +108 -0
  50. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/encryption_in_transit_properties.rb +48 -0
  51. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/error_response.rb +57 -0
  52. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/errors.rb +57 -0
  53. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/execute_script_action_parameters.rb +67 -0
  54. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/extension.rb +57 -0
  55. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/filter_mode.rb +16 -0
  56. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/gateway_settings.rb +72 -0
  57. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/hardware_profile.rb +46 -0
  58. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/hdinsight_cluster_provisioning_state.rb +19 -0
  59. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/json_web_key_encryption_algorithm.rb +17 -0
  60. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/kafka_rest_properties.rb +48 -0
  61. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/linux_operating_system_profile.rb +69 -0
  62. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/localized_name.rb +57 -0
  63. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/network_settings.rb +61 -0
  64. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/operation.rb +58 -0
  65. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/operation_display.rb +69 -0
  66. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/operation_list_result.rb +101 -0
  67. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/operation_resource.rb +60 -0
  68. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/os_profile.rb +47 -0
  69. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/ostype.rb +16 -0
  70. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/outbound_only_public_network_access_type.rb +16 -0
  71. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/proxy_resource.rb +63 -0
  72. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/public_network_access.rb +16 -0
  73. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/quota_capability.rb +78 -0
  74. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/quota_info.rb +46 -0
  75. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/regional_quota_capability.rb +68 -0
  76. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/regions_capability.rb +54 -0
  77. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/resource.rb +80 -0
  78. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/resource_identity_type.rb +18 -0
  79. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/role.rb +156 -0
  80. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/runtime_script_action.rb +100 -0
  81. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/runtime_script_action_detail.rb +178 -0
  82. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/script_action.rb +68 -0
  83. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/script_action_execution_history_list.rb +101 -0
  84. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/script_action_execution_summary.rb +60 -0
  85. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/script_action_persisted_get_response_spec.rb +99 -0
  86. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/script_actions_list.rb +100 -0
  87. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/security_profile.rb +159 -0
  88. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/ssh_profile.rb +55 -0
  89. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/ssh_public_key.rb +46 -0
  90. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/storage_account.rb +118 -0
  91. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/storage_profile.rb +56 -0
  92. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/tier.rb +16 -0
  93. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/tracked_resource.rb +92 -0
  94. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/update_gateway_settings_parameters.rb +70 -0
  95. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/usage.rb +81 -0
  96. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/usages_list_result.rb +55 -0
  97. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/version_spec.rb +87 -0
  98. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/versions_capability.rb +55 -0
  99. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/virtual_network_profile.rb +57 -0
  100. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/vm_size_compatibility_filter.rb +141 -0
  101. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/vm_size_compatibility_filter_v2.rb +172 -0
  102. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/vm_sizes_capability.rb +54 -0
  103. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/module_definition.rb +9 -0
  104. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/operations.rb +219 -0
  105. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/script_actions.rb +416 -0
  106. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/script_execution_history.rb +318 -0
  107. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight.rb +130 -0
  108. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/applications.rb +611 -0
  109. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/clusters.rb +1687 -0
  110. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/configurations.rb +397 -0
  111. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/extensions.rb +747 -0
  112. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/hdinsight_management_client.rb +165 -0
  113. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/locations.rb +304 -0
  114. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/application.rb +104 -0
  115. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/application_get_endpoint.rb +68 -0
  116. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/application_get_https_endpoint.rb +109 -0
  117. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/application_list_result.rb +102 -0
  118. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/application_properties.rb +210 -0
  119. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/async_operation_state.rb +17 -0
  120. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/autoscale.rb +59 -0
  121. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_capacity.rb +57 -0
  122. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_configuration_update_parameter.rb +47 -0
  123. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_recurrence.rb +67 -0
  124. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_schedule.rb +70 -0
  125. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_time_and_capacity.rb +68 -0
  126. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/billing_meters.rb +68 -0
  127. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/billing_resources.rb +87 -0
  128. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/billing_response_list_result.rb +99 -0
  129. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/capabilities_result.rb +148 -0
  130. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/client_group_info.rb +57 -0
  131. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster.rb +121 -0
  132. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_configurations.rb +63 -0
  133. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_create_parameters_extended.rb +89 -0
  134. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_create_properties.rb +181 -0
  135. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_definition.rb +88 -0
  136. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_disk_encryption_parameters.rb +70 -0
  137. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_get_properties.rb +258 -0
  138. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_identity.rb +101 -0
  139. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_identity_user_assigned_identities_value.rb +61 -0
  140. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_list_persisted_script_actions_result.rb +68 -0
  141. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_list_result.rb +99 -0
  142. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_list_runtime_script_action_detail_result.rb +70 -0
  143. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_monitoring_request.rb +57 -0
  144. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_monitoring_response.rb +59 -0
  145. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_patch_parameters.rb +54 -0
  146. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_resize_parameters.rb +46 -0
  147. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/compute_profile.rb +55 -0
  148. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/connectivity_endpoint.rb +79 -0
  149. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/data_disks_groups.rb +71 -0
  150. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/days_of_week.rb +21 -0
  151. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/directory_type.rb +15 -0
  152. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/disk_billing_meters.rb +70 -0
  153. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/disk_encryption_properties.rb +95 -0
  154. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/encryption_in_transit_properties.rb +48 -0
  155. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/error_response.rb +57 -0
  156. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/errors.rb +57 -0
  157. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/execute_script_action_parameters.rb +67 -0
  158. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/extension.rb +57 -0
  159. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/filter_mode.rb +16 -0
  160. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/gateway_settings.rb +72 -0
  161. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/hardware_profile.rb +46 -0
  162. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/hdinsight_cluster_provisioning_state.rb +19 -0
  163. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/host_info.rb +46 -0
  164. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/json_web_key_encryption_algorithm.rb +17 -0
  165. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/kafka_rest_properties.rb +48 -0
  166. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/linux_operating_system_profile.rb +69 -0
  167. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/localized_name.rb +57 -0
  168. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/network_settings.rb +61 -0
  169. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/operation.rb +58 -0
  170. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/operation_display.rb +69 -0
  171. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/operation_list_result.rb +101 -0
  172. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/operation_resource.rb +60 -0
  173. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/os_profile.rb +47 -0
  174. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/ostype.rb +16 -0
  175. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/outbound_only_public_network_access_type.rb +16 -0
  176. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/proxy_resource.rb +63 -0
  177. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/public_network_access.rb +16 -0
  178. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/quota_capability.rb +78 -0
  179. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/quota_info.rb +46 -0
  180. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/regional_quota_capability.rb +68 -0
  181. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/regions_capability.rb +54 -0
  182. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/resource.rb +80 -0
  183. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/resource_identity_type.rb +18 -0
  184. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/role.rb +156 -0
  185. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/runtime_script_action.rb +100 -0
  186. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/runtime_script_action_detail.rb +178 -0
  187. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/script_action.rb +68 -0
  188. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/script_action_execution_history_list.rb +101 -0
  189. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/script_action_execution_summary.rb +60 -0
  190. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/script_action_persisted_get_response_spec.rb +99 -0
  191. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/script_actions_list.rb +100 -0
  192. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/security_profile.rb +159 -0
  193. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/ssh_profile.rb +55 -0
  194. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/ssh_public_key.rb +46 -0
  195. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/storage_account.rb +118 -0
  196. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/storage_profile.rb +56 -0
  197. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/tier.rb +16 -0
  198. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/tracked_resource.rb +92 -0
  199. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/update_gateway_settings_parameters.rb +70 -0
  200. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/usage.rb +81 -0
  201. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/usages_list_result.rb +55 -0
  202. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/version_spec.rb +87 -0
  203. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/versions_capability.rb +55 -0
  204. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/virtual_network_profile.rb +57 -0
  205. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/vm_size_compatibility_filter.rb +141 -0
  206. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/vm_size_compatibility_filter_v2.rb +172 -0
  207. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/vm_sizes_capability.rb +54 -0
  208. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/module_definition.rb +9 -0
  209. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/operations.rb +219 -0
  210. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/script_actions.rb +416 -0
  211. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/script_execution_history.rb +318 -0
  212. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/virtual_machines.rb +284 -0
  213. data/lib/azure_mgmt_hdinsight.rb +7 -0
  214. data/lib/module_definition.rb +8 -0
  215. data/lib/profiles/latest/hdinsight_latest_profile_client.rb +40 -0
  216. data/lib/profiles/latest/hdinsight_module_definition.rb +8 -0
  217. data/lib/profiles/latest/modules/hdinsight_profile_module.rb +453 -0
  218. data/lib/version.rb +7 -0
  219. metadata +336 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: c313cafa597d3b4352c2703620a4e829d463cf5cce54dcb4727cc7f913e1d620
4
+ data.tar.gz: 8ec3f166bdaadb1e31cb3c78599f75e3ecc04a9753762e39448befafa7a32d23
5
+ SHA512:
6
+ metadata.gz: cc50de717f8b74defd142408cc85e6061d53e66968be46ff4d55f1d1976e2251ff910540f9ebbb9290025eb9ddcca4ffb074d51d2810d47324470dcce23b4b7f
7
+ data.tar.gz: 19b4bc5598ca224436a44e273e0c51fcc4435c14881e0a058ec10fd40cbce1e012bd27fc7302c6f100062a3345f1133d319b1406fa5ad11dd4571fafa8ee10e6
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Microsoft Corporation
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,128 @@
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
+ require 'uri'
7
+ require 'cgi'
8
+ require 'date'
9
+ require 'json'
10
+ require 'base64'
11
+ require 'erb'
12
+ require 'securerandom'
13
+ require 'time'
14
+ require 'timeliness'
15
+ require 'faraday'
16
+ require 'faraday-cookie_jar'
17
+ require 'concurrent'
18
+ require 'ms_rest'
19
+ require '2015-03-01-preview/generated/azure_mgmt_hdinsight/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
23
+ autoload :Clusters, '2015-03-01-preview/generated/azure_mgmt_hdinsight/clusters.rb'
24
+ autoload :Applications, '2015-03-01-preview/generated/azure_mgmt_hdinsight/applications.rb'
25
+ autoload :Locations, '2015-03-01-preview/generated/azure_mgmt_hdinsight/locations.rb'
26
+ autoload :Configurations, '2015-03-01-preview/generated/azure_mgmt_hdinsight/configurations.rb'
27
+ autoload :ExtensionOperations, '2015-03-01-preview/generated/azure_mgmt_hdinsight/extension_operations.rb'
28
+ autoload :ScriptActions, '2015-03-01-preview/generated/azure_mgmt_hdinsight/script_actions.rb'
29
+ autoload :ScriptExecutionHistory, '2015-03-01-preview/generated/azure_mgmt_hdinsight/script_execution_history.rb'
30
+ autoload :Operations, '2015-03-01-preview/generated/azure_mgmt_hdinsight/operations.rb'
31
+ autoload :HDInsightManagementClient, '2015-03-01-preview/generated/azure_mgmt_hdinsight/hdinsight_management_client.rb'
32
+
33
+ module Models
34
+ autoload :ClusterListResult, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_list_result.rb'
35
+ autoload :ClusterDefinition, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_definition.rb'
36
+ autoload :ClusterResizeParameters, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_resize_parameters.rb'
37
+ autoload :KafkaRestProperties, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/kafka_rest_properties.rb'
38
+ autoload :ClusterDiskEncryptionParameters, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_disk_encryption_parameters.rb'
39
+ autoload :AutoscaleTimeAndCapacity, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_time_and_capacity.rb'
40
+ autoload :UpdateGatewaySettingsParameters, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/update_gateway_settings_parameters.rb'
41
+ autoload :AutoscaleCapacity, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_capacity.rb'
42
+ autoload :GatewaySettings, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/gateway_settings.rb'
43
+ autoload :Autoscale, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/autoscale.rb'
44
+ autoload :OperationResource, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/operation_resource.rb'
45
+ autoload :HardwareProfile, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/hardware_profile.rb'
46
+ autoload :Resource, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/resource.rb'
47
+ autoload :DataDisksGroups, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/data_disks_groups.rb'
48
+ autoload :VirtualNetworkProfile, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/virtual_network_profile.rb'
49
+ autoload :SshProfile, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/ssh_profile.rb'
50
+ autoload :SshPublicKey, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/ssh_public_key.rb'
51
+ autoload :OsProfile, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/os_profile.rb'
52
+ autoload :OperationListResult, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/operation_list_result.rb'
53
+ autoload :Role, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/role.rb'
54
+ autoload :Operation, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/operation.rb'
55
+ autoload :StorageAccount, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/storage_account.rb'
56
+ autoload :ErrorResponse, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/error_response.rb'
57
+ autoload :NetworkSettings, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/network_settings.rb'
58
+ autoload :ApplicationGetHttpsEndpoint, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/application_get_https_endpoint.rb'
59
+ autoload :EncryptionInTransitProperties, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/encryption_in_transit_properties.rb'
60
+ autoload :ApplicationGetEndpoint, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/application_get_endpoint.rb'
61
+ autoload :ClusterIdentityUserAssignedIdentitiesValue, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_identity_user_assigned_identities_value.rb'
62
+ autoload :ApplicationProperties, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/application_properties.rb'
63
+ autoload :ClusterCreateParametersExtended, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_create_parameters_extended.rb'
64
+ autoload :OperationDisplay, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/operation_display.rb'
65
+ autoload :QuotaInfo, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/quota_info.rb'
66
+ autoload :ApplicationListResult, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/application_list_result.rb'
67
+ autoload :ConnectivityEndpoint, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/connectivity_endpoint.rb'
68
+ autoload :VersionSpec, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/version_spec.rb'
69
+ autoload :VersionsCapability, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/versions_capability.rb'
70
+ autoload :ExecuteScriptActionParameters, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/execute_script_action_parameters.rb'
71
+ autoload :RegionsCapability, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/regions_capability.rb'
72
+ autoload :ScriptActionExecutionSummary, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/script_action_execution_summary.rb'
73
+ autoload :VmSizesCapability, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/vm_sizes_capability.rb'
74
+ autoload :ClusterListRuntimeScriptActionDetailResult, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_list_runtime_script_action_detail_result.rb'
75
+ autoload :VmSizeCompatibilityFilter, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/vm_size_compatibility_filter.rb'
76
+ autoload :SecurityProfile, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/security_profile.rb'
77
+ autoload :RegionalQuotaCapability, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/regional_quota_capability.rb'
78
+ autoload :AutoscaleRecurrence, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_recurrence.rb'
79
+ autoload :QuotaCapability, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/quota_capability.rb'
80
+ autoload :LinuxOperatingSystemProfile, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/linux_operating_system_profile.rb'
81
+ autoload :CapabilitiesResult, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/capabilities_result.rb'
82
+ autoload :ComputeProfile, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/compute_profile.rb'
83
+ autoload :LocalizedName, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/localized_name.rb'
84
+ autoload :DiskEncryptionProperties, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/disk_encryption_properties.rb'
85
+ autoload :Usage, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/usage.rb'
86
+ autoload :ClusterIdentity, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_identity.rb'
87
+ autoload :UsagesListResult, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/usages_list_result.rb'
88
+ autoload :Errors, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/errors.rb'
89
+ autoload :VmSizeCompatibilityFilterV2, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/vm_size_compatibility_filter_v2.rb'
90
+ autoload :RuntimeScriptAction, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/runtime_script_action.rb'
91
+ autoload :BillingMeters, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/billing_meters.rb'
92
+ autoload :ScriptActionsList, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/script_actions_list.rb'
93
+ autoload :ClientGroupInfo, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/client_group_info.rb'
94
+ autoload :DiskBillingMeters, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/disk_billing_meters.rb'
95
+ autoload :AutoscaleConfigurationUpdateParameter, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_configuration_update_parameter.rb'
96
+ autoload :BillingResources, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/billing_resources.rb'
97
+ autoload :StorageProfile, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/storage_profile.rb'
98
+ autoload :BillingResponseListResult, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/billing_response_list_result.rb'
99
+ autoload :ClusterPatchParameters, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_patch_parameters.rb'
100
+ autoload :ClusterConfigurations, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_configurations.rb'
101
+ autoload :ClusterListPersistedScriptActionsResult, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_list_persisted_script_actions_result.rb'
102
+ autoload :Extension, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/extension.rb'
103
+ autoload :ScriptAction, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/script_action.rb'
104
+ autoload :ClusterMonitoringResponse, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_monitoring_response.rb'
105
+ autoload :ClusterGetProperties, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_get_properties.rb'
106
+ autoload :ClusterMonitoringRequest, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_monitoring_request.rb'
107
+ autoload :ClusterCreateProperties, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_create_properties.rb'
108
+ autoload :ScriptActionExecutionHistoryList, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/script_action_execution_history_list.rb'
109
+ autoload :AutoscaleSchedule, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_schedule.rb'
110
+ autoload :ScriptActionPersistedGetResponseSpec, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/script_action_persisted_get_response_spec.rb'
111
+ autoload :RuntimeScriptActionDetail, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/runtime_script_action_detail.rb'
112
+ autoload :TrackedResource, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/tracked_resource.rb'
113
+ autoload :Cluster, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster.rb'
114
+ autoload :ProxyResource, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/proxy_resource.rb'
115
+ autoload :Application, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/application.rb'
116
+ autoload :DirectoryType, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/directory_type.rb'
117
+ autoload :DaysOfWeek, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/days_of_week.rb'
118
+ autoload :PublicNetworkAccess, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/public_network_access.rb'
119
+ autoload :OutboundOnlyPublicNetworkAccessType, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/outbound_only_public_network_access_type.rb'
120
+ autoload :OSType, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/ostype.rb'
121
+ autoload :Tier, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/tier.rb'
122
+ autoload :JsonWebKeyEncryptionAlgorithm, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/json_web_key_encryption_algorithm.rb'
123
+ autoload :ResourceIdentityType, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/resource_identity_type.rb'
124
+ autoload :HDInsightClusterProvisioningState, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/hdinsight_cluster_provisioning_state.rb'
125
+ autoload :AsyncOperationState, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/async_operation_state.rb'
126
+ autoload :FilterMode, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/filter_mode.rb'
127
+ end
128
+ end
@@ -0,0 +1,611 @@
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
+ #
8
+ # HDInsight Management Client
9
+ #
10
+ class Applications
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the Applications class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [HDInsightManagementClient] reference to the HDInsightManagementClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Lists all of the applications for the HDInsight cluster.
26
+ #
27
+ # @param resource_group_name [String] The name of the resource group.
28
+ # @param cluster_name [String] The name of the cluster.
29
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
30
+ # will be added to the HTTP request.
31
+ #
32
+ # @return [Array<Application>] operation results.
33
+ #
34
+ def list(resource_group_name, cluster_name, custom_headers:nil)
35
+ first_page = list_as_lazy(resource_group_name, cluster_name, custom_headers:custom_headers)
36
+ first_page.get_all_items
37
+ end
38
+
39
+ #
40
+ # Lists all of the applications for the HDInsight cluster.
41
+ #
42
+ # @param resource_group_name [String] The name of the resource group.
43
+ # @param cluster_name [String] The name of the cluster.
44
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
45
+ # will be added to the HTTP request.
46
+ #
47
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
48
+ #
49
+ def list_with_http_info(resource_group_name, cluster_name, custom_headers:nil)
50
+ list_async(resource_group_name, cluster_name, custom_headers:custom_headers).value!
51
+ end
52
+
53
+ #
54
+ # Lists all of the applications for the HDInsight cluster.
55
+ #
56
+ # @param resource_group_name [String] The name of the resource group.
57
+ # @param cluster_name [String] The name of the cluster.
58
+ # @param [Hash{String => String}] A hash of custom headers that will be added
59
+ # to the HTTP request.
60
+ #
61
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
62
+ #
63
+ def list_async(resource_group_name, cluster_name, custom_headers:nil)
64
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
65
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
66
+ fail ArgumentError, 'cluster_name is nil' if cluster_name.nil?
67
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
68
+
69
+
70
+ request_headers = {}
71
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
72
+
73
+ # Set Headers
74
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
75
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
76
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications'
77
+
78
+ request_url = @base_url || @client.base_url
79
+
80
+ options = {
81
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
82
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'clusterName' => cluster_name},
83
+ query_params: {'api-version' => @client.api_version},
84
+ headers: request_headers.merge(custom_headers || {}),
85
+ base_url: request_url
86
+ }
87
+ promise = @client.make_request_async(:get, path_template, options)
88
+
89
+ promise = promise.then do |result|
90
+ http_response = result.response
91
+ status_code = http_response.status
92
+ response_content = http_response.body
93
+ unless status_code == 200
94
+ error_model = JSON.load(response_content)
95
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
96
+ end
97
+
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?
101
+ # Deserialize Response
102
+ if status_code == 200
103
+ begin
104
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
105
+ result_mapper = Azure::Hdinsight::Mgmt::V2015_03_01_preview::Models::ApplicationListResult.mapper()
106
+ result.body = @client.deserialize(result_mapper, parsed_response)
107
+ rescue Exception => e
108
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
109
+ end
110
+ end
111
+
112
+ result
113
+ end
114
+
115
+ promise.execute
116
+ end
117
+
118
+ #
119
+ # Lists properties of the specified application.
120
+ #
121
+ # @param resource_group_name [String] The name of the resource group.
122
+ # @param cluster_name [String] The name of the cluster.
123
+ # @param application_name [String] The constant value for the application name.
124
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
125
+ # will be added to the HTTP request.
126
+ #
127
+ # @return [Application] operation results.
128
+ #
129
+ def get(resource_group_name, cluster_name, application_name, custom_headers:nil)
130
+ response = get_async(resource_group_name, cluster_name, application_name, custom_headers:custom_headers).value!
131
+ response.body unless response.nil?
132
+ end
133
+
134
+ #
135
+ # Lists properties of the specified application.
136
+ #
137
+ # @param resource_group_name [String] The name of the resource group.
138
+ # @param cluster_name [String] The name of the cluster.
139
+ # @param application_name [String] The constant value for the application name.
140
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
141
+ # will be added to the HTTP request.
142
+ #
143
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
144
+ #
145
+ def get_with_http_info(resource_group_name, cluster_name, application_name, custom_headers:nil)
146
+ get_async(resource_group_name, cluster_name, application_name, custom_headers:custom_headers).value!
147
+ end
148
+
149
+ #
150
+ # Lists properties of the specified application.
151
+ #
152
+ # @param resource_group_name [String] The name of the resource group.
153
+ # @param cluster_name [String] The name of the cluster.
154
+ # @param application_name [String] The constant value for the application name.
155
+ # @param [Hash{String => String}] A hash of custom headers that will be added
156
+ # to the HTTP request.
157
+ #
158
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
159
+ #
160
+ def get_async(resource_group_name, cluster_name, application_name, custom_headers:nil)
161
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
162
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
163
+ fail ArgumentError, 'cluster_name is nil' if cluster_name.nil?
164
+ fail ArgumentError, 'application_name is nil' if application_name.nil?
165
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
166
+
167
+
168
+ request_headers = {}
169
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
170
+
171
+ # Set Headers
172
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
173
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
174
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}'
175
+
176
+ request_url = @base_url || @client.base_url
177
+
178
+ options = {
179
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
180
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'clusterName' => cluster_name,'applicationName' => application_name},
181
+ query_params: {'api-version' => @client.api_version},
182
+ headers: request_headers.merge(custom_headers || {}),
183
+ base_url: request_url
184
+ }
185
+ promise = @client.make_request_async(:get, path_template, options)
186
+
187
+ promise = promise.then do |result|
188
+ http_response = result.response
189
+ status_code = http_response.status
190
+ response_content = http_response.body
191
+ unless status_code == 200
192
+ error_model = JSON.load(response_content)
193
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
194
+ end
195
+
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?
199
+ # Deserialize Response
200
+ if status_code == 200
201
+ begin
202
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
203
+ result_mapper = Azure::Hdinsight::Mgmt::V2015_03_01_preview::Models::Application.mapper()
204
+ result.body = @client.deserialize(result_mapper, parsed_response)
205
+ rescue Exception => e
206
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
207
+ end
208
+ end
209
+
210
+ result
211
+ end
212
+
213
+ promise.execute
214
+ end
215
+
216
+ #
217
+ # Creates applications for the HDInsight cluster.
218
+ #
219
+ # @param resource_group_name [String] The name of the resource group.
220
+ # @param cluster_name [String] The name of the cluster.
221
+ # @param application_name [String] The constant value for the application name.
222
+ # @param parameters [Application] The application create request.
223
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
224
+ # will be added to the HTTP request.
225
+ #
226
+ # @return [Application] operation results.
227
+ #
228
+ def create(resource_group_name, cluster_name, application_name, parameters, custom_headers:nil)
229
+ response = create_async(resource_group_name, cluster_name, application_name, parameters, custom_headers:custom_headers).value!
230
+ response.body unless response.nil?
231
+ end
232
+
233
+ #
234
+ # @param resource_group_name [String] The name of the resource group.
235
+ # @param cluster_name [String] The name of the cluster.
236
+ # @param application_name [String] The constant value for the application name.
237
+ # @param parameters [Application] The application create request.
238
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
239
+ # will be added to the HTTP request.
240
+ #
241
+ # @return [Concurrent::Promise] promise which provides async access to http
242
+ # response.
243
+ #
244
+ def create_async(resource_group_name, cluster_name, application_name, parameters, custom_headers:nil)
245
+ # Send request
246
+ promise = begin_create_async(resource_group_name, cluster_name, application_name, parameters, custom_headers:custom_headers)
247
+
248
+ promise = promise.then do |response|
249
+ # Defining deserialization method.
250
+ deserialize_method = lambda do |parsed_response|
251
+ result_mapper = Azure::Hdinsight::Mgmt::V2015_03_01_preview::Models::Application.mapper()
252
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
253
+ end
254
+
255
+ # Waiting for response.
256
+ @client.get_long_running_operation_result(response, deserialize_method)
257
+ end
258
+
259
+ promise
260
+ end
261
+
262
+ #
263
+ # Deletes the specified application on the HDInsight cluster.
264
+ #
265
+ # @param resource_group_name [String] The name of the resource group.
266
+ # @param cluster_name [String] The name of the cluster.
267
+ # @param application_name [String] The constant value for the application name.
268
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
269
+ # will be added to the HTTP request.
270
+ #
271
+ def delete(resource_group_name, cluster_name, application_name, custom_headers:nil)
272
+ response = delete_async(resource_group_name, cluster_name, application_name, custom_headers:custom_headers).value!
273
+ nil
274
+ end
275
+
276
+ #
277
+ # @param resource_group_name [String] The name of the resource group.
278
+ # @param cluster_name [String] The name of the cluster.
279
+ # @param application_name [String] The constant value for the application name.
280
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
281
+ # will be added to the HTTP request.
282
+ #
283
+ # @return [Concurrent::Promise] promise which provides async access to http
284
+ # response.
285
+ #
286
+ def delete_async(resource_group_name, cluster_name, application_name, custom_headers:nil)
287
+ # Send request
288
+ promise = begin_delete_async(resource_group_name, cluster_name, application_name, custom_headers:custom_headers)
289
+
290
+ promise = promise.then do |response|
291
+ # Defining deserialization method.
292
+ deserialize_method = lambda do |parsed_response|
293
+ end
294
+
295
+ # Waiting for response.
296
+ @client.get_long_running_operation_result(response, deserialize_method)
297
+ end
298
+
299
+ promise
300
+ end
301
+
302
+ #
303
+ # Creates applications for the HDInsight cluster.
304
+ #
305
+ # @param resource_group_name [String] The name of the resource group.
306
+ # @param cluster_name [String] The name of the cluster.
307
+ # @param application_name [String] The constant value for the application name.
308
+ # @param parameters [Application] The application create request.
309
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
310
+ # will be added to the HTTP request.
311
+ #
312
+ # @return [Application] operation results.
313
+ #
314
+ def begin_create(resource_group_name, cluster_name, application_name, parameters, custom_headers:nil)
315
+ response = begin_create_async(resource_group_name, cluster_name, application_name, parameters, custom_headers:custom_headers).value!
316
+ response.body unless response.nil?
317
+ end
318
+
319
+ #
320
+ # Creates applications for the HDInsight cluster.
321
+ #
322
+ # @param resource_group_name [String] The name of the resource group.
323
+ # @param cluster_name [String] The name of the cluster.
324
+ # @param application_name [String] The constant value for the application name.
325
+ # @param parameters [Application] The application create request.
326
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
327
+ # will be added to the HTTP request.
328
+ #
329
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
330
+ #
331
+ def begin_create_with_http_info(resource_group_name, cluster_name, application_name, parameters, custom_headers:nil)
332
+ begin_create_async(resource_group_name, cluster_name, application_name, parameters, custom_headers:custom_headers).value!
333
+ end
334
+
335
+ #
336
+ # Creates applications for the HDInsight cluster.
337
+ #
338
+ # @param resource_group_name [String] The name of the resource group.
339
+ # @param cluster_name [String] The name of the cluster.
340
+ # @param application_name [String] The constant value for the application name.
341
+ # @param parameters [Application] The application create request.
342
+ # @param [Hash{String => String}] A hash of custom headers that will be added
343
+ # to the HTTP request.
344
+ #
345
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
346
+ #
347
+ def begin_create_async(resource_group_name, cluster_name, application_name, parameters, custom_headers:nil)
348
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
349
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
350
+ fail ArgumentError, 'cluster_name is nil' if cluster_name.nil?
351
+ fail ArgumentError, 'application_name is nil' if application_name.nil?
352
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
353
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
354
+
355
+
356
+ request_headers = {}
357
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
358
+
359
+ # Set Headers
360
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
361
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
362
+
363
+ # Serialize Request
364
+ request_mapper = Azure::Hdinsight::Mgmt::V2015_03_01_preview::Models::Application.mapper()
365
+ request_content = @client.serialize(request_mapper, parameters)
366
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
367
+
368
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}'
369
+
370
+ request_url = @base_url || @client.base_url
371
+
372
+ options = {
373
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
374
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'clusterName' => cluster_name,'applicationName' => application_name},
375
+ query_params: {'api-version' => @client.api_version},
376
+ body: request_content,
377
+ headers: request_headers.merge(custom_headers || {}),
378
+ base_url: request_url
379
+ }
380
+ promise = @client.make_request_async(:put, path_template, options)
381
+
382
+ promise = promise.then do |result|
383
+ http_response = result.response
384
+ status_code = http_response.status
385
+ response_content = http_response.body
386
+ unless status_code == 200
387
+ error_model = JSON.load(response_content)
388
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
389
+ end
390
+
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?
394
+ # Deserialize Response
395
+ if status_code == 200
396
+ begin
397
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
398
+ result_mapper = Azure::Hdinsight::Mgmt::V2015_03_01_preview::Models::Application.mapper()
399
+ result.body = @client.deserialize(result_mapper, parsed_response)
400
+ rescue Exception => e
401
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
402
+ end
403
+ end
404
+
405
+ result
406
+ end
407
+
408
+ promise.execute
409
+ end
410
+
411
+ #
412
+ # Deletes the specified application on the HDInsight cluster.
413
+ #
414
+ # @param resource_group_name [String] The name of the resource group.
415
+ # @param cluster_name [String] The name of the cluster.
416
+ # @param application_name [String] The constant value for the application name.
417
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
418
+ # will be added to the HTTP request.
419
+ #
420
+ #
421
+ def begin_delete(resource_group_name, cluster_name, application_name, custom_headers:nil)
422
+ response = begin_delete_async(resource_group_name, cluster_name, application_name, custom_headers:custom_headers).value!
423
+ nil
424
+ end
425
+
426
+ #
427
+ # Deletes the specified application on the HDInsight cluster.
428
+ #
429
+ # @param resource_group_name [String] The name of the resource group.
430
+ # @param cluster_name [String] The name of the cluster.
431
+ # @param application_name [String] The constant value for the application name.
432
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
433
+ # will be added to the HTTP request.
434
+ #
435
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
436
+ #
437
+ def begin_delete_with_http_info(resource_group_name, cluster_name, application_name, custom_headers:nil)
438
+ begin_delete_async(resource_group_name, cluster_name, application_name, custom_headers:custom_headers).value!
439
+ end
440
+
441
+ #
442
+ # Deletes the specified application on the HDInsight cluster.
443
+ #
444
+ # @param resource_group_name [String] The name of the resource group.
445
+ # @param cluster_name [String] The name of the cluster.
446
+ # @param application_name [String] The constant value for the application name.
447
+ # @param [Hash{String => String}] A hash of custom headers that will be added
448
+ # to the HTTP request.
449
+ #
450
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
451
+ #
452
+ def begin_delete_async(resource_group_name, cluster_name, application_name, custom_headers:nil)
453
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
454
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
455
+ fail ArgumentError, 'cluster_name is nil' if cluster_name.nil?
456
+ fail ArgumentError, 'application_name is nil' if application_name.nil?
457
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
458
+
459
+
460
+ request_headers = {}
461
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
462
+
463
+ # Set Headers
464
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
465
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
466
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}'
467
+
468
+ request_url = @base_url || @client.base_url
469
+
470
+ options = {
471
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
472
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'clusterName' => cluster_name,'applicationName' => application_name},
473
+ query_params: {'api-version' => @client.api_version},
474
+ headers: request_headers.merge(custom_headers || {}),
475
+ base_url: request_url
476
+ }
477
+ promise = @client.make_request_async(:delete, path_template, options)
478
+
479
+ promise = promise.then do |result|
480
+ http_response = result.response
481
+ status_code = http_response.status
482
+ response_content = http_response.body
483
+ unless status_code == 200 || status_code == 202
484
+ error_model = JSON.load(response_content)
485
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
486
+ end
487
+
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?
491
+
492
+ result
493
+ end
494
+
495
+ promise.execute
496
+ end
497
+
498
+ #
499
+ # Lists all of the applications for the HDInsight cluster.
500
+ #
501
+ # @param next_page_link [String] The NextLink from the previous successful call
502
+ # to List operation.
503
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
504
+ # will be added to the HTTP request.
505
+ #
506
+ # @return [ApplicationListResult] operation results.
507
+ #
508
+ def list_next(next_page_link, custom_headers:nil)
509
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
510
+ response.body unless response.nil?
511
+ end
512
+
513
+ #
514
+ # Lists all of the applications for the HDInsight cluster.
515
+ #
516
+ # @param next_page_link [String] The NextLink from the previous successful call
517
+ # to List operation.
518
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
519
+ # will be added to the HTTP request.
520
+ #
521
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
522
+ #
523
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
524
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
525
+ end
526
+
527
+ #
528
+ # Lists all of the applications for the HDInsight cluster.
529
+ #
530
+ # @param next_page_link [String] The NextLink from the previous successful call
531
+ # to List operation.
532
+ # @param [Hash{String => String}] A hash of custom headers that will be added
533
+ # to the HTTP request.
534
+ #
535
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
536
+ #
537
+ def list_next_async(next_page_link, custom_headers:nil)
538
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
539
+
540
+
541
+ request_headers = {}
542
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
543
+
544
+ # Set Headers
545
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
546
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
547
+ path_template = '{nextLink}'
548
+
549
+ request_url = @base_url || @client.base_url
550
+
551
+ options = {
552
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
553
+ skip_encoding_path_params: {'nextLink' => next_page_link},
554
+ headers: request_headers.merge(custom_headers || {}),
555
+ base_url: request_url
556
+ }
557
+ promise = @client.make_request_async(:get, path_template, options)
558
+
559
+ promise = promise.then do |result|
560
+ http_response = result.response
561
+ status_code = http_response.status
562
+ response_content = http_response.body
563
+ unless status_code == 200
564
+ error_model = JSON.load(response_content)
565
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
566
+ end
567
+
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?
571
+ # Deserialize Response
572
+ if status_code == 200
573
+ begin
574
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
575
+ result_mapper = Azure::Hdinsight::Mgmt::V2015_03_01_preview::Models::ApplicationListResult.mapper()
576
+ result.body = @client.deserialize(result_mapper, parsed_response)
577
+ rescue Exception => e
578
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
579
+ end
580
+ end
581
+
582
+ result
583
+ end
584
+
585
+ promise.execute
586
+ end
587
+
588
+ #
589
+ # Lists all of the applications for the HDInsight cluster.
590
+ #
591
+ # @param resource_group_name [String] The name of the resource group.
592
+ # @param cluster_name [String] The name of the cluster.
593
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
594
+ # will be added to the HTTP request.
595
+ #
596
+ # @return [ApplicationListResult] which provide lazy access to pages of the
597
+ # response.
598
+ #
599
+ def list_as_lazy(resource_group_name, cluster_name, custom_headers:nil)
600
+ response = list_async(resource_group_name, cluster_name, custom_headers:custom_headers).value!
601
+ unless response.nil?
602
+ page = response.body
603
+ page.next_method = Proc.new do |next_page_link|
604
+ list_next_async(next_page_link, custom_headers:custom_headers)
605
+ end
606
+ page
607
+ end
608
+ end
609
+
610
+ end
611
+ end