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,312 @@
|
|
|
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::V2018_06_01_preview
|
|
7
|
+
#
|
|
8
|
+
# HDInsight Management Client
|
|
9
|
+
#
|
|
10
|
+
class ScriptExecutionHistory
|
|
11
|
+
include MsRestAzure
|
|
12
|
+
|
|
13
|
+
#
|
|
14
|
+
# Creates and initializes a new instance of the ScriptExecutionHistory 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 scripts' execution history for the specified 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<RuntimeScriptActionDetail>] operation results.
|
|
33
|
+
#
|
|
34
|
+
def list_by_cluster(resource_group_name, cluster_name, custom_headers:nil)
|
|
35
|
+
first_page = list_by_cluster_as_lazy(resource_group_name, cluster_name, custom_headers:custom_headers)
|
|
36
|
+
first_page.get_all_items
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
#
|
|
40
|
+
# Lists all scripts' execution history for the specified 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_by_cluster_with_http_info(resource_group_name, cluster_name, custom_headers:nil)
|
|
50
|
+
list_by_cluster_async(resource_group_name, cluster_name, custom_headers:custom_headers).value!
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
#
|
|
54
|
+
# Lists all scripts' execution history for the specified 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_by_cluster_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}/scriptExecutionHistory'
|
|
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
|
+
# Deserialize Response
|
|
100
|
+
if status_code == 200
|
|
101
|
+
begin
|
|
102
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
103
|
+
result_mapper = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ScriptActionExecutionHistoryList.mapper()
|
|
104
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
105
|
+
rescue Exception => e
|
|
106
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
result
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
promise.execute
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
#
|
|
117
|
+
# Promotes the specified ad-hoc script execution to a persisted script.
|
|
118
|
+
#
|
|
119
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
120
|
+
# @param cluster_name [String] The name of the cluster.
|
|
121
|
+
# @param script_execution_id [String] The script execution Id
|
|
122
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
123
|
+
# will be added to the HTTP request.
|
|
124
|
+
#
|
|
125
|
+
#
|
|
126
|
+
def promote(resource_group_name, cluster_name, script_execution_id, custom_headers:nil)
|
|
127
|
+
response = promote_async(resource_group_name, cluster_name, script_execution_id, custom_headers:custom_headers).value!
|
|
128
|
+
nil
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
#
|
|
132
|
+
# Promotes the specified ad-hoc script execution to a persisted script.
|
|
133
|
+
#
|
|
134
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
135
|
+
# @param cluster_name [String] The name of the cluster.
|
|
136
|
+
# @param script_execution_id [String] The script execution Id
|
|
137
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
138
|
+
# will be added to the HTTP request.
|
|
139
|
+
#
|
|
140
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
141
|
+
#
|
|
142
|
+
def promote_with_http_info(resource_group_name, cluster_name, script_execution_id, custom_headers:nil)
|
|
143
|
+
promote_async(resource_group_name, cluster_name, script_execution_id, custom_headers:custom_headers).value!
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
#
|
|
147
|
+
# Promotes the specified ad-hoc script execution to a persisted script.
|
|
148
|
+
#
|
|
149
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
150
|
+
# @param cluster_name [String] The name of the cluster.
|
|
151
|
+
# @param script_execution_id [String] The script execution Id
|
|
152
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
153
|
+
# to the HTTP request.
|
|
154
|
+
#
|
|
155
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
156
|
+
#
|
|
157
|
+
def promote_async(resource_group_name, cluster_name, script_execution_id, custom_headers:nil)
|
|
158
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
159
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
160
|
+
fail ArgumentError, 'cluster_name is nil' if cluster_name.nil?
|
|
161
|
+
fail ArgumentError, 'script_execution_id is nil' if script_execution_id.nil?
|
|
162
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
request_headers = {}
|
|
166
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
167
|
+
|
|
168
|
+
# Set Headers
|
|
169
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
170
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
171
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/scriptExecutionHistory/{scriptExecutionId}/promote'
|
|
172
|
+
|
|
173
|
+
request_url = @base_url || @client.base_url
|
|
174
|
+
|
|
175
|
+
options = {
|
|
176
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
177
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'clusterName' => cluster_name,'scriptExecutionId' => script_execution_id},
|
|
178
|
+
query_params: {'api-version' => @client.api_version},
|
|
179
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
180
|
+
base_url: request_url
|
|
181
|
+
}
|
|
182
|
+
promise = @client.make_request_async(:post, path_template, options)
|
|
183
|
+
|
|
184
|
+
promise = promise.then do |result|
|
|
185
|
+
http_response = result.response
|
|
186
|
+
status_code = http_response.status
|
|
187
|
+
response_content = http_response.body
|
|
188
|
+
unless status_code == 200
|
|
189
|
+
error_model = JSON.load(response_content)
|
|
190
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
194
|
+
|
|
195
|
+
result
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
promise.execute
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
#
|
|
202
|
+
# Lists all scripts' execution history for the specified cluster.
|
|
203
|
+
#
|
|
204
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
205
|
+
# to List operation.
|
|
206
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
207
|
+
# will be added to the HTTP request.
|
|
208
|
+
#
|
|
209
|
+
# @return [ScriptActionExecutionHistoryList] operation results.
|
|
210
|
+
#
|
|
211
|
+
def list_by_cluster_next(next_page_link, custom_headers:nil)
|
|
212
|
+
response = list_by_cluster_next_async(next_page_link, custom_headers:custom_headers).value!
|
|
213
|
+
response.body unless response.nil?
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
#
|
|
217
|
+
# Lists all scripts' execution history for the specified cluster.
|
|
218
|
+
#
|
|
219
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
220
|
+
# to List operation.
|
|
221
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
222
|
+
# will be added to the HTTP request.
|
|
223
|
+
#
|
|
224
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
225
|
+
#
|
|
226
|
+
def list_by_cluster_next_with_http_info(next_page_link, custom_headers:nil)
|
|
227
|
+
list_by_cluster_next_async(next_page_link, custom_headers:custom_headers).value!
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
#
|
|
231
|
+
# Lists all scripts' execution history for the specified cluster.
|
|
232
|
+
#
|
|
233
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
234
|
+
# to List operation.
|
|
235
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
236
|
+
# to the HTTP request.
|
|
237
|
+
#
|
|
238
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
239
|
+
#
|
|
240
|
+
def list_by_cluster_next_async(next_page_link, custom_headers:nil)
|
|
241
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
request_headers = {}
|
|
245
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
246
|
+
|
|
247
|
+
# Set Headers
|
|
248
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
249
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
250
|
+
path_template = '{nextLink}'
|
|
251
|
+
|
|
252
|
+
request_url = @base_url || @client.base_url
|
|
253
|
+
|
|
254
|
+
options = {
|
|
255
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
256
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
|
257
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
258
|
+
base_url: request_url
|
|
259
|
+
}
|
|
260
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
261
|
+
|
|
262
|
+
promise = promise.then do |result|
|
|
263
|
+
http_response = result.response
|
|
264
|
+
status_code = http_response.status
|
|
265
|
+
response_content = http_response.body
|
|
266
|
+
unless status_code == 200
|
|
267
|
+
error_model = JSON.load(response_content)
|
|
268
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
272
|
+
# Deserialize Response
|
|
273
|
+
if status_code == 200
|
|
274
|
+
begin
|
|
275
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
276
|
+
result_mapper = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ScriptActionExecutionHistoryList.mapper()
|
|
277
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
278
|
+
rescue Exception => e
|
|
279
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
280
|
+
end
|
|
281
|
+
end
|
|
282
|
+
|
|
283
|
+
result
|
|
284
|
+
end
|
|
285
|
+
|
|
286
|
+
promise.execute
|
|
287
|
+
end
|
|
288
|
+
|
|
289
|
+
#
|
|
290
|
+
# Lists all scripts' execution history for the specified cluster.
|
|
291
|
+
#
|
|
292
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
293
|
+
# @param cluster_name [String] The name of the cluster.
|
|
294
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
295
|
+
# will be added to the HTTP request.
|
|
296
|
+
#
|
|
297
|
+
# @return [ScriptActionExecutionHistoryList] which provide lazy access to pages
|
|
298
|
+
# of the response.
|
|
299
|
+
#
|
|
300
|
+
def list_by_cluster_as_lazy(resource_group_name, cluster_name, custom_headers:nil)
|
|
301
|
+
response = list_by_cluster_async(resource_group_name, cluster_name, custom_headers:custom_headers).value!
|
|
302
|
+
unless response.nil?
|
|
303
|
+
page = response.body
|
|
304
|
+
page.next_method = Proc.new do |next_page_link|
|
|
305
|
+
list_by_cluster_next_async(next_page_link, custom_headers:custom_headers)
|
|
306
|
+
end
|
|
307
|
+
page
|
|
308
|
+
end
|
|
309
|
+
end
|
|
310
|
+
|
|
311
|
+
end
|
|
312
|
+
end
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
+
|
|
5
|
+
require '2018-06-01-preview/generated/azure_mgmt_hdinsight'
|
|
6
|
+
require '2015-03-01-preview/generated/azure_mgmt_hdinsight'
|
|
7
|
+
require 'profiles/latest/hdinsight_latest_profile_client'
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
+
|
|
5
|
+
require 'profiles/latest/hdinsight_module_definition'
|
|
6
|
+
require 'profiles/latest/modules/hdinsight_profile_module'
|
|
7
|
+
|
|
8
|
+
module Azure::Hdinsight::Profiles::Latest
|
|
9
|
+
module Mgmt
|
|
10
|
+
#
|
|
11
|
+
# Client class for the Latest profile SDK.
|
|
12
|
+
#
|
|
13
|
+
class Client < HdinsightManagementClass
|
|
14
|
+
include MsRestAzure::Common::Configurable
|
|
15
|
+
|
|
16
|
+
#
|
|
17
|
+
# Initializes a new instance of the Client class.
|
|
18
|
+
# @param options [Hash] hash of client options.
|
|
19
|
+
# options = {
|
|
20
|
+
# tenant_id: 'YOUR TENANT ID',
|
|
21
|
+
# client_id: 'YOUR CLIENT ID',
|
|
22
|
+
# client_secret: 'YOUR CLIENT SECRET',
|
|
23
|
+
# subscription_id: 'YOUR SUBSCRIPTION ID',
|
|
24
|
+
# credentials: credentials,
|
|
25
|
+
# active_directory_settings: active_directory_settings,
|
|
26
|
+
# base_url: 'YOUR BASE URL',
|
|
27
|
+
# options: options
|
|
28
|
+
# }
|
|
29
|
+
# 'credentials' are optional and if not passed in the hash, will be obtained
|
|
30
|
+
# from MsRest::TokenCredentials using MsRestAzure::ApplicationTokenProvider.
|
|
31
|
+
#
|
|
32
|
+
# Also, base_url, active_directory_settings & options are optional.
|
|
33
|
+
#
|
|
34
|
+
def initialize(options = {})
|
|
35
|
+
super(options)
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
+
|
|
5
|
+
module Azure end
|
|
6
|
+
module Azure::Hdinsight end
|
|
7
|
+
module Azure::Hdinsight::Profiles end
|
|
8
|
+
module Azure::Hdinsight::Profiles::Latest end
|
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
+
|
|
5
|
+
require 'azure_mgmt_hdinsight'
|
|
6
|
+
|
|
7
|
+
module Azure::Hdinsight::Profiles::Latest
|
|
8
|
+
module Mgmt
|
|
9
|
+
Clusters = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Clusters
|
|
10
|
+
Applications = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Applications
|
|
11
|
+
Locations = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Locations
|
|
12
|
+
Configurations = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Configurations
|
|
13
|
+
Extensions = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Extensions
|
|
14
|
+
ScriptActions = Azure::Hdinsight::Mgmt::V2018_06_01_preview::ScriptActions
|
|
15
|
+
ScriptExecutionHistory = Azure::Hdinsight::Mgmt::V2018_06_01_preview::ScriptExecutionHistory
|
|
16
|
+
Operations = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Operations
|
|
17
|
+
|
|
18
|
+
module Models
|
|
19
|
+
ScriptActionExecutionSummary = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ScriptActionExecutionSummary
|
|
20
|
+
ClusterDefinition = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ClusterDefinition
|
|
21
|
+
ClusterListPersistedScriptActionsResult = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ClusterListPersistedScriptActionsResult
|
|
22
|
+
HardwareProfile = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::HardwareProfile
|
|
23
|
+
SecurityProfile = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::SecurityProfile
|
|
24
|
+
DataDisksGroups = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::DataDisksGroups
|
|
25
|
+
SshProfile = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::SshProfile
|
|
26
|
+
ClusterListRuntimeScriptActionDetailResult = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ClusterListRuntimeScriptActionDetailResult
|
|
27
|
+
OsProfile = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::OsProfile
|
|
28
|
+
ClusterListResult = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ClusterListResult
|
|
29
|
+
Role = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::Role
|
|
30
|
+
ClusterResizeParameters = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ClusterResizeParameters
|
|
31
|
+
StorageAccount = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::StorageAccount
|
|
32
|
+
ClusterDiskEncryptionParameters = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ClusterDiskEncryptionParameters
|
|
33
|
+
DiskEncryptionProperties = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::DiskEncryptionProperties
|
|
34
|
+
OperationResource = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::OperationResource
|
|
35
|
+
ClusterIdentityUserAssignedIdentitiesValue = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ClusterIdentityUserAssignedIdentitiesValue
|
|
36
|
+
Resource = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::Resource
|
|
37
|
+
ClusterCreateParametersExtended = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ClusterCreateParametersExtended
|
|
38
|
+
OperationListResult = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::OperationListResult
|
|
39
|
+
QuotaInfo = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::QuotaInfo
|
|
40
|
+
Operation = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::Operation
|
|
41
|
+
ConnectivityEndpoint = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ConnectivityEndpoint
|
|
42
|
+
ErrorResponse = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ErrorResponse
|
|
43
|
+
ScriptActionsList = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ScriptActionsList
|
|
44
|
+
RuntimeScriptAction = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::RuntimeScriptAction
|
|
45
|
+
ApplicationGetHttpsEndpoint = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ApplicationGetHttpsEndpoint
|
|
46
|
+
VirtualNetworkProfile = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::VirtualNetworkProfile
|
|
47
|
+
ApplicationGetEndpoint = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ApplicationGetEndpoint
|
|
48
|
+
LinuxOperatingSystemProfile = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::LinuxOperatingSystemProfile
|
|
49
|
+
ApplicationProperties = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ApplicationProperties
|
|
50
|
+
ComputeProfile = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ComputeProfile
|
|
51
|
+
OperationDisplay = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::OperationDisplay
|
|
52
|
+
ClusterCreateProperties = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ClusterCreateProperties
|
|
53
|
+
ApplicationListResult = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ApplicationListResult
|
|
54
|
+
ClusterPatchParameters = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ClusterPatchParameters
|
|
55
|
+
LocalizedName = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::LocalizedName
|
|
56
|
+
ClusterGetProperties = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ClusterGetProperties
|
|
57
|
+
Usage = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::Usage
|
|
58
|
+
SshPublicKey = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::SshPublicKey
|
|
59
|
+
UsagesListResult = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::UsagesListResult
|
|
60
|
+
StorageProfile = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::StorageProfile
|
|
61
|
+
Extension = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::Extension
|
|
62
|
+
Errors = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::Errors
|
|
63
|
+
ClusterMonitoringResponse = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ClusterMonitoringResponse
|
|
64
|
+
ScriptAction = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ScriptAction
|
|
65
|
+
ClusterMonitoringRequest = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ClusterMonitoringRequest
|
|
66
|
+
ExecuteScriptActionParameters = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ExecuteScriptActionParameters
|
|
67
|
+
ScriptActionExecutionHistoryList = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ScriptActionExecutionHistoryList
|
|
68
|
+
ClusterIdentity = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ClusterIdentity
|
|
69
|
+
ScriptActionPersistedGetResponseSpec = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ScriptActionPersistedGetResponseSpec
|
|
70
|
+
Cluster = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::Cluster
|
|
71
|
+
RuntimeScriptActionDetail = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::RuntimeScriptActionDetail
|
|
72
|
+
TrackedResource = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::TrackedResource
|
|
73
|
+
ProxyResource = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ProxyResource
|
|
74
|
+
Application = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::Application
|
|
75
|
+
DirectoryType = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::DirectoryType
|
|
76
|
+
OSType = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::OSType
|
|
77
|
+
Tier = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::Tier
|
|
78
|
+
JsonWebKeyEncryptionAlgorithm = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::JsonWebKeyEncryptionAlgorithm
|
|
79
|
+
ResourceIdentityType = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ResourceIdentityType
|
|
80
|
+
HDInsightClusterProvisioningState = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::HDInsightClusterProvisioningState
|
|
81
|
+
AsyncOperationState = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::AsyncOperationState
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
#
|
|
85
|
+
# HdinsightManagementClass
|
|
86
|
+
#
|
|
87
|
+
class HdinsightManagementClass
|
|
88
|
+
attr_reader :clusters, :applications, :locations, :configurations, :extensions, :script_actions, :script_execution_history, :operations, :configurable, :base_url, :options, :model_classes
|
|
89
|
+
|
|
90
|
+
def initialize(options = {})
|
|
91
|
+
if options.is_a?(Hash) && options.length == 0
|
|
92
|
+
@options = setup_default_options
|
|
93
|
+
else
|
|
94
|
+
@options = options
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
reset!(options)
|
|
98
|
+
|
|
99
|
+
@configurable = self
|
|
100
|
+
@base_url = options[:base_url].nil? ? nil:options[:base_url]
|
|
101
|
+
@options = options[:options].nil? ? nil:options[:options]
|
|
102
|
+
|
|
103
|
+
@client_0 = Azure::Hdinsight::Mgmt::V2018_06_01_preview::HDInsightManagementClient.new(configurable.credentials, base_url, options)
|
|
104
|
+
if(@client_0.respond_to?(:subscription_id))
|
|
105
|
+
@client_0.subscription_id = configurable.subscription_id
|
|
106
|
+
end
|
|
107
|
+
add_telemetry(@client_0)
|
|
108
|
+
@clusters = @client_0.clusters
|
|
109
|
+
@applications = @client_0.applications
|
|
110
|
+
@locations = @client_0.locations
|
|
111
|
+
@configurations = @client_0.configurations
|
|
112
|
+
@extensions = @client_0.extensions
|
|
113
|
+
@script_actions = @client_0.script_actions
|
|
114
|
+
@script_execution_history = @client_0.script_execution_history
|
|
115
|
+
@operations = @client_0.operations
|
|
116
|
+
|
|
117
|
+
@model_classes = ModelClasses.new
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
def add_telemetry(client)
|
|
121
|
+
profile_information = 'Profiles/Latest/Hdinsight/Mgmt'
|
|
122
|
+
client.add_user_agent_information(profile_information)
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
def method_missing(method, *args)
|
|
126
|
+
if @client_0.respond_to?method
|
|
127
|
+
@client_0.send(method, *args)
|
|
128
|
+
else
|
|
129
|
+
super
|
|
130
|
+
end
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
class ModelClasses
|
|
136
|
+
def script_action_execution_summary
|
|
137
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ScriptActionExecutionSummary
|
|
138
|
+
end
|
|
139
|
+
def cluster_definition
|
|
140
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ClusterDefinition
|
|
141
|
+
end
|
|
142
|
+
def cluster_list_persisted_script_actions_result
|
|
143
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ClusterListPersistedScriptActionsResult
|
|
144
|
+
end
|
|
145
|
+
def hardware_profile
|
|
146
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::HardwareProfile
|
|
147
|
+
end
|
|
148
|
+
def security_profile
|
|
149
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::SecurityProfile
|
|
150
|
+
end
|
|
151
|
+
def data_disks_groups
|
|
152
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::DataDisksGroups
|
|
153
|
+
end
|
|
154
|
+
def ssh_profile
|
|
155
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::SshProfile
|
|
156
|
+
end
|
|
157
|
+
def cluster_list_runtime_script_action_detail_result
|
|
158
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ClusterListRuntimeScriptActionDetailResult
|
|
159
|
+
end
|
|
160
|
+
def os_profile
|
|
161
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::OsProfile
|
|
162
|
+
end
|
|
163
|
+
def cluster_list_result
|
|
164
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ClusterListResult
|
|
165
|
+
end
|
|
166
|
+
def role
|
|
167
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::Role
|
|
168
|
+
end
|
|
169
|
+
def cluster_resize_parameters
|
|
170
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ClusterResizeParameters
|
|
171
|
+
end
|
|
172
|
+
def storage_account
|
|
173
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::StorageAccount
|
|
174
|
+
end
|
|
175
|
+
def cluster_disk_encryption_parameters
|
|
176
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ClusterDiskEncryptionParameters
|
|
177
|
+
end
|
|
178
|
+
def disk_encryption_properties
|
|
179
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::DiskEncryptionProperties
|
|
180
|
+
end
|
|
181
|
+
def operation_resource
|
|
182
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::OperationResource
|
|
183
|
+
end
|
|
184
|
+
def cluster_identity_user_assigned_identities_value
|
|
185
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ClusterIdentityUserAssignedIdentitiesValue
|
|
186
|
+
end
|
|
187
|
+
def resource
|
|
188
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::Resource
|
|
189
|
+
end
|
|
190
|
+
def cluster_create_parameters_extended
|
|
191
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ClusterCreateParametersExtended
|
|
192
|
+
end
|
|
193
|
+
def operation_list_result
|
|
194
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::OperationListResult
|
|
195
|
+
end
|
|
196
|
+
def quota_info
|
|
197
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::QuotaInfo
|
|
198
|
+
end
|
|
199
|
+
def operation
|
|
200
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::Operation
|
|
201
|
+
end
|
|
202
|
+
def connectivity_endpoint
|
|
203
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ConnectivityEndpoint
|
|
204
|
+
end
|
|
205
|
+
def error_response
|
|
206
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ErrorResponse
|
|
207
|
+
end
|
|
208
|
+
def script_actions_list
|
|
209
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ScriptActionsList
|
|
210
|
+
end
|
|
211
|
+
def runtime_script_action
|
|
212
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::RuntimeScriptAction
|
|
213
|
+
end
|
|
214
|
+
def application_get_https_endpoint
|
|
215
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ApplicationGetHttpsEndpoint
|
|
216
|
+
end
|
|
217
|
+
def virtual_network_profile
|
|
218
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::VirtualNetworkProfile
|
|
219
|
+
end
|
|
220
|
+
def application_get_endpoint
|
|
221
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ApplicationGetEndpoint
|
|
222
|
+
end
|
|
223
|
+
def linux_operating_system_profile
|
|
224
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::LinuxOperatingSystemProfile
|
|
225
|
+
end
|
|
226
|
+
def application_properties
|
|
227
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ApplicationProperties
|
|
228
|
+
end
|
|
229
|
+
def compute_profile
|
|
230
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ComputeProfile
|
|
231
|
+
end
|
|
232
|
+
def operation_display
|
|
233
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::OperationDisplay
|
|
234
|
+
end
|
|
235
|
+
def cluster_create_properties
|
|
236
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ClusterCreateProperties
|
|
237
|
+
end
|
|
238
|
+
def application_list_result
|
|
239
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ApplicationListResult
|
|
240
|
+
end
|
|
241
|
+
def cluster_patch_parameters
|
|
242
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ClusterPatchParameters
|
|
243
|
+
end
|
|
244
|
+
def localized_name
|
|
245
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::LocalizedName
|
|
246
|
+
end
|
|
247
|
+
def cluster_get_properties
|
|
248
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ClusterGetProperties
|
|
249
|
+
end
|
|
250
|
+
def usage
|
|
251
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::Usage
|
|
252
|
+
end
|
|
253
|
+
def ssh_public_key
|
|
254
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::SshPublicKey
|
|
255
|
+
end
|
|
256
|
+
def usages_list_result
|
|
257
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::UsagesListResult
|
|
258
|
+
end
|
|
259
|
+
def storage_profile
|
|
260
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::StorageProfile
|
|
261
|
+
end
|
|
262
|
+
def extension
|
|
263
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::Extension
|
|
264
|
+
end
|
|
265
|
+
def errors
|
|
266
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::Errors
|
|
267
|
+
end
|
|
268
|
+
def cluster_monitoring_response
|
|
269
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ClusterMonitoringResponse
|
|
270
|
+
end
|
|
271
|
+
def script_action
|
|
272
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ScriptAction
|
|
273
|
+
end
|
|
274
|
+
def cluster_monitoring_request
|
|
275
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ClusterMonitoringRequest
|
|
276
|
+
end
|
|
277
|
+
def execute_script_action_parameters
|
|
278
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ExecuteScriptActionParameters
|
|
279
|
+
end
|
|
280
|
+
def script_action_execution_history_list
|
|
281
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ScriptActionExecutionHistoryList
|
|
282
|
+
end
|
|
283
|
+
def cluster_identity
|
|
284
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ClusterIdentity
|
|
285
|
+
end
|
|
286
|
+
def script_action_persisted_get_response_spec
|
|
287
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ScriptActionPersistedGetResponseSpec
|
|
288
|
+
end
|
|
289
|
+
def cluster
|
|
290
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::Cluster
|
|
291
|
+
end
|
|
292
|
+
def runtime_script_action_detail
|
|
293
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::RuntimeScriptActionDetail
|
|
294
|
+
end
|
|
295
|
+
def tracked_resource
|
|
296
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::TrackedResource
|
|
297
|
+
end
|
|
298
|
+
def proxy_resource
|
|
299
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ProxyResource
|
|
300
|
+
end
|
|
301
|
+
def application
|
|
302
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::Application
|
|
303
|
+
end
|
|
304
|
+
def directory_type
|
|
305
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::DirectoryType
|
|
306
|
+
end
|
|
307
|
+
def ostype
|
|
308
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::OSType
|
|
309
|
+
end
|
|
310
|
+
def tier
|
|
311
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::Tier
|
|
312
|
+
end
|
|
313
|
+
def json_web_key_encryption_algorithm
|
|
314
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::JsonWebKeyEncryptionAlgorithm
|
|
315
|
+
end
|
|
316
|
+
def resource_identity_type
|
|
317
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::ResourceIdentityType
|
|
318
|
+
end
|
|
319
|
+
def hdinsight_cluster_provisioning_state
|
|
320
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::HDInsightClusterProvisioningState
|
|
321
|
+
end
|
|
322
|
+
def async_operation_state
|
|
323
|
+
Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::AsyncOperationState
|
|
324
|
+
end
|
|
325
|
+
end
|
|
326
|
+
end
|
|
327
|
+
end
|