azure_mgmt_hdinsight 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight.rb +106 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/applications.rb +601 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/clusters.rb +1292 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/configurations.rb +289 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/extension_operations.rb +653 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/hdinsight_management_client.rb +161 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/locations.rb +201 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/application.rb +104 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/application_get_endpoint.rb +68 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/application_get_https_endpoint.rb +87 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/application_list_result.rb +102 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/application_properties.rb +210 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/async_operation_state.rb +17 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/capabilities_result.rb +148 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster.rb +121 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_create_parameters_extended.rb +89 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_create_properties.rb +132 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_definition.rb +88 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_disk_encryption_parameters.rb +70 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_get_properties.rb +209 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_identity.rb +101 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_identity_user_assigned_identities_value.rb +61 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_list_persisted_script_actions_result.rb +68 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_list_result.rb +99 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_list_runtime_script_action_detail_result.rb +70 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_monitoring_request.rb +57 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_monitoring_response.rb +59 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_patch_parameters.rb +54 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_resize_parameters.rb +46 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/compute_profile.rb +55 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/connectivity_endpoint.rb +79 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/data_disks_groups.rb +71 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/directory_type.rb +15 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/disk_encryption_properties.rb +95 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/error_response.rb +57 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/errors.rb +57 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/execute_script_action_parameters.rb +67 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/extension.rb +57 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/hardware_profile.rb +46 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/hdinsight_cluster_provisioning_state.rb +19 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/json_web_key_encryption_algorithm.rb +17 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/linux_operating_system_profile.rb +69 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/localized_name.rb +57 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/operation.rb +58 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/operation_display.rb +69 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/operation_list_result.rb +101 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/operation_resource.rb +60 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/os_profile.rb +47 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/ostype.rb +16 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/proxy_resource.rb +63 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/quota_capability.rb +56 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/quota_info.rb +46 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/regional_quota_capability.rb +68 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/regions_capability.rb +54 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/resource.rb +80 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/resource_identity_type.rb +18 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/role.rb +144 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/runtime_script_action.rb +100 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/runtime_script_action_detail.rb +178 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/script_action.rb +68 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/script_action_execution_history_list.rb +101 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/script_action_execution_summary.rb +60 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/script_action_persisted_get_response_spec.rb +99 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/script_actions_list.rb +100 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/security_profile.rb +159 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/ssh_profile.rb +55 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/ssh_public_key.rb +46 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/storage_account.rb +93 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/storage_profile.rb +56 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/tier.rb +16 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/tracked_resource.rb +92 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/usage.rb +81 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/usages_list_result.rb +55 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/version_spec.rb +87 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/versions_capability.rb +55 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/virtual_network_profile.rb +57 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/vm_size_compatibility_filter.rb +141 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/vm_sizes_capability.rb +54 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/module_definition.rb +9 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/operations.rb +215 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/script_actions.rb +408 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/script_execution_history.rb +312 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight.rb +98 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/applications.rb +601 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/clusters.rb +1292 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/configurations.rb +289 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/extensions.rb +735 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/hdinsight_management_client.rb +161 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/locations.rb +113 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/application.rb +104 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/application_get_endpoint.rb +68 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/application_get_https_endpoint.rb +87 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/application_list_result.rb +102 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/application_properties.rb +210 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/async_operation_state.rb +17 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster.rb +121 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_create_parameters_extended.rb +89 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_create_properties.rb +132 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_definition.rb +88 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_disk_encryption_parameters.rb +70 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_get_properties.rb +209 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_identity.rb +101 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_identity_user_assigned_identities_value.rb +61 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_list_persisted_script_actions_result.rb +68 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_list_result.rb +99 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_list_runtime_script_action_detail_result.rb +70 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_monitoring_request.rb +57 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_monitoring_response.rb +59 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_patch_parameters.rb +54 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_resize_parameters.rb +46 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/compute_profile.rb +55 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/connectivity_endpoint.rb +79 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/data_disks_groups.rb +71 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/directory_type.rb +15 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/disk_encryption_properties.rb +95 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/error_response.rb +57 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/errors.rb +57 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/execute_script_action_parameters.rb +67 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/extension.rb +57 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/hardware_profile.rb +46 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/hdinsight_cluster_provisioning_state.rb +19 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/json_web_key_encryption_algorithm.rb +17 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/linux_operating_system_profile.rb +69 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/localized_name.rb +57 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/operation.rb +58 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/operation_display.rb +69 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/operation_list_result.rb +101 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/operation_resource.rb +60 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/os_profile.rb +47 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/ostype.rb +16 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/proxy_resource.rb +63 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/quota_info.rb +46 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/resource.rb +80 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/resource_identity_type.rb +18 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/role.rb +144 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/runtime_script_action.rb +100 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/runtime_script_action_detail.rb +178 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/script_action.rb +68 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/script_action_execution_history_list.rb +101 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/script_action_execution_summary.rb +60 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/script_action_persisted_get_response_spec.rb +99 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/script_actions_list.rb +100 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/security_profile.rb +159 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/ssh_profile.rb +55 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/ssh_public_key.rb +46 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/storage_account.rb +93 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/storage_profile.rb +56 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/tier.rb +16 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/tracked_resource.rb +92 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/usage.rb +81 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/usages_list_result.rb +55 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/virtual_network_profile.rb +57 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/module_definition.rb +9 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/operations.rb +215 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/script_actions.rb +408 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/script_execution_history.rb +312 -0
- data/lib/azure_mgmt_hdinsight.rb +7 -0
- data/lib/module_definition.rb +8 -0
- data/lib/profiles/latest/hdinsight_latest_profile_client.rb +40 -0
- data/lib/profiles/latest/hdinsight_module_definition.rb +8 -0
- data/lib/profiles/latest/modules/hdinsight_profile_module.rb +327 -0
- data/lib/version.rb +7 -0
- metadata +282 -0
|
@@ -0,0 +1,161 @@
|
|
|
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
|
+
# A service client - single point of access to the REST API.
|
|
9
|
+
#
|
|
10
|
+
class HDInsightManagementClient < MsRestAzure::AzureServiceClient
|
|
11
|
+
include MsRestAzure
|
|
12
|
+
include MsRestAzure::Serialization
|
|
13
|
+
|
|
14
|
+
# @return [String] the base URI of the service.
|
|
15
|
+
attr_accessor :base_url
|
|
16
|
+
|
|
17
|
+
# @return Credentials needed for the client to connect to Azure.
|
|
18
|
+
attr_reader :credentials
|
|
19
|
+
|
|
20
|
+
# @return [String] The subscription credentials which uniquely identify
|
|
21
|
+
# Microsoft Azure subscription. The subscription ID forms part of the URI
|
|
22
|
+
# for every service call.
|
|
23
|
+
attr_accessor :subscription_id
|
|
24
|
+
|
|
25
|
+
# @return [String] The HDInsight client API Version.
|
|
26
|
+
attr_reader :api_version
|
|
27
|
+
|
|
28
|
+
# @return [String] The preferred language for the response.
|
|
29
|
+
attr_accessor :accept_language
|
|
30
|
+
|
|
31
|
+
# @return [Integer] The retry timeout in seconds for Long Running
|
|
32
|
+
# Operations. Default value is 30.
|
|
33
|
+
attr_accessor :long_running_operation_retry_timeout
|
|
34
|
+
|
|
35
|
+
# @return [Boolean] Whether a unique x-ms-client-request-id should be
|
|
36
|
+
# generated. When set to true a unique x-ms-client-request-id value is
|
|
37
|
+
# generated and included in each request. Default is true.
|
|
38
|
+
attr_accessor :generate_client_request_id
|
|
39
|
+
|
|
40
|
+
# @return [Clusters] clusters
|
|
41
|
+
attr_reader :clusters
|
|
42
|
+
|
|
43
|
+
# @return [Applications] applications
|
|
44
|
+
attr_reader :applications
|
|
45
|
+
|
|
46
|
+
# @return [Locations] locations
|
|
47
|
+
attr_reader :locations
|
|
48
|
+
|
|
49
|
+
# @return [Configurations] configurations
|
|
50
|
+
attr_reader :configurations
|
|
51
|
+
|
|
52
|
+
# @return [ExtensionOperations] extension_operations
|
|
53
|
+
attr_reader :extension_operations
|
|
54
|
+
|
|
55
|
+
# @return [ScriptActions] script_actions
|
|
56
|
+
attr_reader :script_actions
|
|
57
|
+
|
|
58
|
+
# @return [ScriptExecutionHistory] script_execution_history
|
|
59
|
+
attr_reader :script_execution_history
|
|
60
|
+
|
|
61
|
+
# @return [Operations] operations
|
|
62
|
+
attr_reader :operations
|
|
63
|
+
|
|
64
|
+
#
|
|
65
|
+
# Creates initializes a new instance of the HDInsightManagementClient class.
|
|
66
|
+
# @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
|
|
67
|
+
# @param base_url [String] the base URI of the service.
|
|
68
|
+
# @param options [Array] filters to be applied to the HTTP requests.
|
|
69
|
+
#
|
|
70
|
+
def initialize(credentials = nil, base_url = nil, options = nil)
|
|
71
|
+
super(credentials, options)
|
|
72
|
+
@base_url = base_url || 'https://management.azure.com'
|
|
73
|
+
|
|
74
|
+
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
|
|
75
|
+
@credentials = credentials
|
|
76
|
+
|
|
77
|
+
@clusters = Clusters.new(self)
|
|
78
|
+
@applications = Applications.new(self)
|
|
79
|
+
@locations = Locations.new(self)
|
|
80
|
+
@configurations = Configurations.new(self)
|
|
81
|
+
@extension_operations = ExtensionOperations.new(self)
|
|
82
|
+
@script_actions = ScriptActions.new(self)
|
|
83
|
+
@script_execution_history = ScriptExecutionHistory.new(self)
|
|
84
|
+
@operations = Operations.new(self)
|
|
85
|
+
@api_version = '2015-03-01-preview'
|
|
86
|
+
@accept_language = 'en-US'
|
|
87
|
+
@long_running_operation_retry_timeout = 30
|
|
88
|
+
@generate_client_request_id = true
|
|
89
|
+
add_telemetry
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
#
|
|
93
|
+
# Makes a request and returns the body of the response.
|
|
94
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
|
95
|
+
# @param path [String] the path, relative to {base_url}.
|
|
96
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
|
97
|
+
# @return [Hash{String=>String}] containing the body of the response.
|
|
98
|
+
# Example:
|
|
99
|
+
#
|
|
100
|
+
# request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
|
|
101
|
+
# path = "/path"
|
|
102
|
+
# options = {
|
|
103
|
+
# body: request_content,
|
|
104
|
+
# query_params: {'api-version' => '2016-02-01'}
|
|
105
|
+
# }
|
|
106
|
+
# result = @client.make_request(:put, path, options)
|
|
107
|
+
#
|
|
108
|
+
def make_request(method, path, options = {})
|
|
109
|
+
result = make_request_with_http_info(method, path, options)
|
|
110
|
+
result.body unless result.nil?
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
#
|
|
114
|
+
# Makes a request and returns the operation response.
|
|
115
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
|
116
|
+
# @param path [String] the path, relative to {base_url}.
|
|
117
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
|
118
|
+
# @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
|
|
119
|
+
#
|
|
120
|
+
def make_request_with_http_info(method, path, options = {})
|
|
121
|
+
result = make_request_async(method, path, options).value!
|
|
122
|
+
result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
|
|
123
|
+
result
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
#
|
|
127
|
+
# Makes a request asynchronously.
|
|
128
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
|
129
|
+
# @param path [String] the path, relative to {base_url}.
|
|
130
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
|
131
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
132
|
+
#
|
|
133
|
+
def make_request_async(method, path, options = {})
|
|
134
|
+
fail ArgumentError, 'method is nil' if method.nil?
|
|
135
|
+
fail ArgumentError, 'path is nil' if path.nil?
|
|
136
|
+
|
|
137
|
+
request_url = options[:base_url] || @base_url
|
|
138
|
+
if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
|
|
139
|
+
@request_headers['Content-Type'] = options[:headers]['Content-Type']
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
request_headers = @request_headers
|
|
143
|
+
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
|
144
|
+
options.merge!({headers: request_headers.merge(options[:headers] || {})})
|
|
145
|
+
options.merge!({credentials: @credentials}) unless @credentials.nil?
|
|
146
|
+
|
|
147
|
+
super(request_url, method, path, options)
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
private
|
|
152
|
+
#
|
|
153
|
+
# Adds telemetry information.
|
|
154
|
+
#
|
|
155
|
+
def add_telemetry
|
|
156
|
+
sdk_information = 'azure_mgmt_hdinsight'
|
|
157
|
+
sdk_information = "#{sdk_information}/0.17.0"
|
|
158
|
+
add_user_agent_information(sdk_information)
|
|
159
|
+
end
|
|
160
|
+
end
|
|
161
|
+
end
|
|
@@ -0,0 +1,201 @@
|
|
|
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 Locations
|
|
11
|
+
include MsRestAzure
|
|
12
|
+
|
|
13
|
+
#
|
|
14
|
+
# Creates and initializes a new instance of the Locations 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
|
+
# Gets the capabilities for the specified location.
|
|
26
|
+
#
|
|
27
|
+
# @param location [String] The location.
|
|
28
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
29
|
+
# will be added to the HTTP request.
|
|
30
|
+
#
|
|
31
|
+
# @return [CapabilitiesResult] operation results.
|
|
32
|
+
#
|
|
33
|
+
def get_capabilities(location, custom_headers:nil)
|
|
34
|
+
response = get_capabilities_async(location, custom_headers:custom_headers).value!
|
|
35
|
+
response.body unless response.nil?
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
#
|
|
39
|
+
# Gets the capabilities for the specified location.
|
|
40
|
+
#
|
|
41
|
+
# @param location [String] The location.
|
|
42
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
43
|
+
# will be added to the HTTP request.
|
|
44
|
+
#
|
|
45
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
46
|
+
#
|
|
47
|
+
def get_capabilities_with_http_info(location, custom_headers:nil)
|
|
48
|
+
get_capabilities_async(location, custom_headers:custom_headers).value!
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
#
|
|
52
|
+
# Gets the capabilities for the specified location.
|
|
53
|
+
#
|
|
54
|
+
# @param location [String] The location.
|
|
55
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
56
|
+
# to the HTTP request.
|
|
57
|
+
#
|
|
58
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
59
|
+
#
|
|
60
|
+
def get_capabilities_async(location, custom_headers:nil)
|
|
61
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
62
|
+
fail ArgumentError, 'location is nil' if location.nil?
|
|
63
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
request_headers = {}
|
|
67
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
68
|
+
|
|
69
|
+
# Set Headers
|
|
70
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
71
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
72
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/capabilities'
|
|
73
|
+
|
|
74
|
+
request_url = @base_url || @client.base_url
|
|
75
|
+
|
|
76
|
+
options = {
|
|
77
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
78
|
+
path_params: {'subscriptionId' => @client.subscription_id,'location' => location},
|
|
79
|
+
query_params: {'api-version' => @client.api_version},
|
|
80
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
81
|
+
base_url: request_url
|
|
82
|
+
}
|
|
83
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
84
|
+
|
|
85
|
+
promise = promise.then do |result|
|
|
86
|
+
http_response = result.response
|
|
87
|
+
status_code = http_response.status
|
|
88
|
+
response_content = http_response.body
|
|
89
|
+
unless status_code == 200
|
|
90
|
+
error_model = JSON.load(response_content)
|
|
91
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
95
|
+
# Deserialize Response
|
|
96
|
+
if status_code == 200
|
|
97
|
+
begin
|
|
98
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
99
|
+
result_mapper = Azure::Hdinsight::Mgmt::V2015_03_01_preview::Models::CapabilitiesResult.mapper()
|
|
100
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
101
|
+
rescue Exception => e
|
|
102
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
result
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
promise.execute
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
#
|
|
113
|
+
# Lists the usages for the specified location.
|
|
114
|
+
#
|
|
115
|
+
# @param location [String] The location.
|
|
116
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
117
|
+
# will be added to the HTTP request.
|
|
118
|
+
#
|
|
119
|
+
# @return [UsagesListResult] operation results.
|
|
120
|
+
#
|
|
121
|
+
def list_usages(location, custom_headers:nil)
|
|
122
|
+
response = list_usages_async(location, custom_headers:custom_headers).value!
|
|
123
|
+
response.body unless response.nil?
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
#
|
|
127
|
+
# Lists the usages for the specified location.
|
|
128
|
+
#
|
|
129
|
+
# @param location [String] The location.
|
|
130
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
131
|
+
# will be added to the HTTP request.
|
|
132
|
+
#
|
|
133
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
134
|
+
#
|
|
135
|
+
def list_usages_with_http_info(location, custom_headers:nil)
|
|
136
|
+
list_usages_async(location, custom_headers:custom_headers).value!
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
#
|
|
140
|
+
# Lists the usages for the specified location.
|
|
141
|
+
#
|
|
142
|
+
# @param location [String] The location.
|
|
143
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
144
|
+
# to the HTTP request.
|
|
145
|
+
#
|
|
146
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
147
|
+
#
|
|
148
|
+
def list_usages_async(location, custom_headers:nil)
|
|
149
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
150
|
+
fail ArgumentError, 'location is nil' if location.nil?
|
|
151
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
request_headers = {}
|
|
155
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
156
|
+
|
|
157
|
+
# Set Headers
|
|
158
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
159
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
160
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/usages'
|
|
161
|
+
|
|
162
|
+
request_url = @base_url || @client.base_url
|
|
163
|
+
|
|
164
|
+
options = {
|
|
165
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
166
|
+
path_params: {'subscriptionId' => @client.subscription_id,'location' => location},
|
|
167
|
+
query_params: {'api-version' => @client.api_version},
|
|
168
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
169
|
+
base_url: request_url
|
|
170
|
+
}
|
|
171
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
172
|
+
|
|
173
|
+
promise = promise.then do |result|
|
|
174
|
+
http_response = result.response
|
|
175
|
+
status_code = http_response.status
|
|
176
|
+
response_content = http_response.body
|
|
177
|
+
unless status_code == 200
|
|
178
|
+
error_model = JSON.load(response_content)
|
|
179
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
183
|
+
# Deserialize Response
|
|
184
|
+
if status_code == 200
|
|
185
|
+
begin
|
|
186
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
187
|
+
result_mapper = Azure::Hdinsight::Mgmt::V2015_03_01_preview::Models::UsagesListResult.mapper()
|
|
188
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
189
|
+
rescue Exception => e
|
|
190
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
191
|
+
end
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
result
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
promise.execute
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
end
|
|
201
|
+
end
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
|
+
# regenerated.
|
|
5
|
+
|
|
6
|
+
module Azure::Hdinsight::Mgmt::V2015_03_01_preview
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# The HDInsight cluster application
|
|
10
|
+
#
|
|
11
|
+
class Application < ProxyResource
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [String] The ETag for the application
|
|
16
|
+
attr_accessor :etag
|
|
17
|
+
|
|
18
|
+
# @return [Hash{String => String}] The tags for the application.
|
|
19
|
+
attr_accessor :tags
|
|
20
|
+
|
|
21
|
+
# @return [ApplicationProperties] The properties of the application.
|
|
22
|
+
attr_accessor :properties
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
#
|
|
26
|
+
# Mapper for Application class as Ruby Hash.
|
|
27
|
+
# This will be used for serialization/deserialization.
|
|
28
|
+
#
|
|
29
|
+
def self.mapper()
|
|
30
|
+
{
|
|
31
|
+
client_side_validation: true,
|
|
32
|
+
required: false,
|
|
33
|
+
serialized_name: 'Application',
|
|
34
|
+
type: {
|
|
35
|
+
name: 'Composite',
|
|
36
|
+
class_name: 'Application',
|
|
37
|
+
model_properties: {
|
|
38
|
+
id: {
|
|
39
|
+
client_side_validation: true,
|
|
40
|
+
required: false,
|
|
41
|
+
read_only: true,
|
|
42
|
+
serialized_name: 'id',
|
|
43
|
+
type: {
|
|
44
|
+
name: 'String'
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
name: {
|
|
48
|
+
client_side_validation: true,
|
|
49
|
+
required: false,
|
|
50
|
+
read_only: true,
|
|
51
|
+
serialized_name: 'name',
|
|
52
|
+
type: {
|
|
53
|
+
name: 'String'
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
type: {
|
|
57
|
+
client_side_validation: true,
|
|
58
|
+
required: false,
|
|
59
|
+
read_only: true,
|
|
60
|
+
serialized_name: 'type',
|
|
61
|
+
type: {
|
|
62
|
+
name: 'String'
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
etag: {
|
|
66
|
+
client_side_validation: true,
|
|
67
|
+
required: false,
|
|
68
|
+
serialized_name: 'etag',
|
|
69
|
+
type: {
|
|
70
|
+
name: 'String'
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
tags: {
|
|
74
|
+
client_side_validation: true,
|
|
75
|
+
required: false,
|
|
76
|
+
serialized_name: 'tags',
|
|
77
|
+
type: {
|
|
78
|
+
name: 'Dictionary',
|
|
79
|
+
value: {
|
|
80
|
+
client_side_validation: true,
|
|
81
|
+
required: false,
|
|
82
|
+
serialized_name: 'StringElementType',
|
|
83
|
+
type: {
|
|
84
|
+
name: 'String'
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
properties: {
|
|
90
|
+
client_side_validation: true,
|
|
91
|
+
required: false,
|
|
92
|
+
serialized_name: 'properties',
|
|
93
|
+
type: {
|
|
94
|
+
name: 'Composite',
|
|
95
|
+
class_name: 'ApplicationProperties'
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
end
|