azure_mgmt_hdinsight 0.18.0 → 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.
- checksums.yaml +4 -4
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight.rb +25 -20
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/clusters.rb +140 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/hdinsight_management_client.rb +1 -1
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_configuration_update_parameter.rb +47 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_create_properties.rb +25 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_get_properties.rb +25 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/disk_encryption_properties.rb +13 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/encryption_in_transit_properties.rb +48 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/network_settings.rb +61 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/outbound_only_public_network_access_type.rb +16 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/public_network_access.rb +16 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight.rb +26 -21
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/clusters.rb +140 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/hdinsight_management_client.rb +1 -1
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_configuration_update_parameter.rb +47 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_create_properties.rb +25 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_get_properties.rb +25 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/encryption_in_transit_properties.rb +48 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/network_settings.rb +61 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/outbound_only_public_network_access_type.rb +16 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/public_network_access.rb +16 -0
- data/lib/profiles/latest/modules/hdinsight_profile_module.rb +85 -65
- data/lib/version.rb +1 -1
- metadata +12 -2
@@ -0,0 +1,48 @@
|
|
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 encryption-in-transit properties.
|
10
|
+
#
|
11
|
+
class EncryptionInTransitProperties
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Boolean] Indicates whether or not inter cluster node
|
16
|
+
# communication is encrypted in transit. Default value: false .
|
17
|
+
attr_accessor :is_encryption_in_transit_enabled
|
18
|
+
|
19
|
+
|
20
|
+
#
|
21
|
+
# Mapper for EncryptionInTransitProperties class as Ruby Hash.
|
22
|
+
# This will be used for serialization/deserialization.
|
23
|
+
#
|
24
|
+
def self.mapper()
|
25
|
+
{
|
26
|
+
client_side_validation: true,
|
27
|
+
required: false,
|
28
|
+
serialized_name: 'EncryptionInTransitProperties',
|
29
|
+
type: {
|
30
|
+
name: 'Composite',
|
31
|
+
class_name: 'EncryptionInTransitProperties',
|
32
|
+
model_properties: {
|
33
|
+
is_encryption_in_transit_enabled: {
|
34
|
+
client_side_validation: true,
|
35
|
+
required: false,
|
36
|
+
serialized_name: 'isEncryptionInTransitEnabled',
|
37
|
+
default_value: false,
|
38
|
+
type: {
|
39
|
+
name: 'Boolean'
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,61 @@
|
|
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 network settings.
|
10
|
+
#
|
11
|
+
class NetworkSettings
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [PublicNetworkAccess] Specifies whether public network access
|
16
|
+
# is enabled for inbound and outbound, or outbound only. Possible values
|
17
|
+
# include: 'InboundAndOutbound', 'OutboundOnly'
|
18
|
+
attr_accessor :public_network_access
|
19
|
+
|
20
|
+
# @return [OutboundOnlyPublicNetworkAccessType] The mechanism through
|
21
|
+
# which the cluster will have outbound access to the public network.
|
22
|
+
# Possible values include: 'PublicLoadBalancer', 'UDR'
|
23
|
+
attr_accessor :outbound_only_public_network_access_type
|
24
|
+
|
25
|
+
|
26
|
+
#
|
27
|
+
# Mapper for NetworkSettings class as Ruby Hash.
|
28
|
+
# This will be used for serialization/deserialization.
|
29
|
+
#
|
30
|
+
def self.mapper()
|
31
|
+
{
|
32
|
+
client_side_validation: true,
|
33
|
+
required: false,
|
34
|
+
serialized_name: 'NetworkSettings',
|
35
|
+
type: {
|
36
|
+
name: 'Composite',
|
37
|
+
class_name: 'NetworkSettings',
|
38
|
+
model_properties: {
|
39
|
+
public_network_access: {
|
40
|
+
client_side_validation: true,
|
41
|
+
required: false,
|
42
|
+
serialized_name: 'publicNetworkAccess',
|
43
|
+
type: {
|
44
|
+
name: 'String'
|
45
|
+
}
|
46
|
+
},
|
47
|
+
outbound_only_public_network_access_type: {
|
48
|
+
client_side_validation: true,
|
49
|
+
required: false,
|
50
|
+
serialized_name: 'outboundOnlyPublicNetworkAccessType',
|
51
|
+
type: {
|
52
|
+
name: 'String'
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
@@ -0,0 +1,16 @@
|
|
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
|
+
# Defines values for OutboundOnlyPublicNetworkAccessType
|
10
|
+
#
|
11
|
+
module OutboundOnlyPublicNetworkAccessType
|
12
|
+
PublicLoadBalancer = "PublicLoadBalancer"
|
13
|
+
UDR = "UDR"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,16 @@
|
|
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
|
+
# Defines values for PublicNetworkAccess
|
10
|
+
#
|
11
|
+
module PublicNetworkAccess
|
12
|
+
InboundAndOutbound = "InboundAndOutbound"
|
13
|
+
OutboundOnly = "OutboundOnly"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -32,28 +32,31 @@ module Azure::Hdinsight::Mgmt::V2018_06_01_preview
|
|
32
32
|
autoload :HDInsightManagementClient, '2018-06-01-preview/generated/azure_mgmt_hdinsight/hdinsight_management_client.rb'
|
33
33
|
|
34
34
|
module Models
|
35
|
+
autoload :ClusterListResult, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_list_result.rb'
|
36
|
+
autoload :ClusterResizeParameters, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_resize_parameters.rb'
|
37
|
+
autoload :ClientGroupInfo, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/client_group_info.rb'
|
35
38
|
autoload :ClusterDiskEncryptionParameters, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_disk_encryption_parameters.rb'
|
36
|
-
autoload :
|
39
|
+
autoload :SecurityProfile, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/security_profile.rb'
|
37
40
|
autoload :UpdateGatewaySettingsParameters, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/update_gateway_settings_parameters.rb'
|
38
|
-
autoload :
|
41
|
+
autoload :AutoscaleSchedule, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_schedule.rb'
|
39
42
|
autoload :GatewaySettings, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/gateway_settings.rb'
|
40
|
-
autoload :
|
43
|
+
autoload :AutoscaleRecurrence, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_recurrence.rb'
|
41
44
|
autoload :OperationResource, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/operation_resource.rb'
|
42
|
-
autoload :
|
45
|
+
autoload :AutoscaleConfigurationUpdateParameter, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_configuration_update_parameter.rb'
|
43
46
|
autoload :Resource, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/resource.rb'
|
44
|
-
autoload :Autoscale, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/autoscale.rb'
|
45
|
-
autoload :AutoscaleRecurrence, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_recurrence.rb'
|
46
47
|
autoload :VirtualNetworkProfile, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/virtual_network_profile.rb'
|
47
48
|
autoload :HardwareProfile, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/hardware_profile.rb'
|
48
49
|
autoload :SshPublicKey, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/ssh_public_key.rb'
|
49
|
-
autoload :
|
50
|
+
autoload :DataDisksGroups, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/data_disks_groups.rb'
|
50
51
|
autoload :LinuxOperatingSystemProfile, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/linux_operating_system_profile.rb'
|
51
|
-
autoload :
|
52
|
+
autoload :HostInfo, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/host_info.rb'
|
52
53
|
autoload :ScriptAction, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/script_action.rb'
|
53
|
-
autoload :
|
54
|
+
autoload :OperationListResult, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/operation_list_result.rb'
|
54
55
|
autoload :ComputeProfile, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/compute_profile.rb'
|
55
|
-
autoload :
|
56
|
+
autoload :ErrorResponse, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/error_response.rb'
|
56
57
|
autoload :StorageProfile, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/storage_profile.rb'
|
58
|
+
autoload :ApplicationGetHttpsEndpoint, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/application_get_https_endpoint.rb'
|
59
|
+
autoload :DiskEncryptionProperties, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/disk_encryption_properties.rb'
|
57
60
|
autoload :ApplicationGetEndpoint, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/application_get_endpoint.rb'
|
58
61
|
autoload :ClusterCreateProperties, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_create_properties.rb'
|
59
62
|
autoload :ApplicationProperties, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/application_properties.rb'
|
@@ -72,15 +75,15 @@ module Azure::Hdinsight::Mgmt::V2018_06_01_preview
|
|
72
75
|
autoload :OperationDisplay, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/operation_display.rb'
|
73
76
|
autoload :ClusterListRuntimeScriptActionDetailResult, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_list_runtime_script_action_detail_result.rb'
|
74
77
|
autoload :VmSizeCompatibilityFilter, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/vm_size_compatibility_filter.rb'
|
75
|
-
autoload :
|
78
|
+
autoload :KafkaRestProperties, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/kafka_rest_properties.rb'
|
76
79
|
autoload :RegionalQuotaCapability, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/regional_quota_capability.rb'
|
77
|
-
autoload :
|
80
|
+
autoload :AutoscaleCapacity, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_capacity.rb'
|
78
81
|
autoload :QuotaCapability, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/quota_capability.rb'
|
79
|
-
autoload :
|
82
|
+
autoload :SshProfile, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/ssh_profile.rb'
|
80
83
|
autoload :CapabilitiesResult, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/capabilities_result.rb'
|
81
|
-
autoload :
|
84
|
+
autoload :Role, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/role.rb'
|
82
85
|
autoload :LocalizedName, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/localized_name.rb'
|
83
|
-
autoload :
|
86
|
+
autoload :NetworkSettings, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/network_settings.rb'
|
84
87
|
autoload :Usage, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/usage.rb'
|
85
88
|
autoload :ClusterIdentityUserAssignedIdentitiesValue, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_identity_user_assigned_identities_value.rb'
|
86
89
|
autoload :UsagesListResult, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/usages_list_result.rb'
|
@@ -89,23 +92,23 @@ module Azure::Hdinsight::Mgmt::V2018_06_01_preview
|
|
89
92
|
autoload :BillingMeters, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/billing_meters.rb'
|
90
93
|
autoload :ScriptActionExecutionSummary, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/script_action_execution_summary.rb'
|
91
94
|
autoload :DiskBillingMeters, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/disk_billing_meters.rb'
|
92
|
-
autoload :
|
95
|
+
autoload :AutoscaleTimeAndCapacity, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_time_and_capacity.rb'
|
93
96
|
autoload :BillingResources, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/billing_resources.rb'
|
94
|
-
autoload :
|
97
|
+
autoload :OsProfile, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/os_profile.rb'
|
95
98
|
autoload :BillingResponseListResult, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/billing_response_list_result.rb'
|
96
|
-
autoload :
|
99
|
+
autoload :EncryptionInTransitProperties, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/encryption_in_transit_properties.rb'
|
97
100
|
autoload :ClusterConfigurations, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_configurations.rb'
|
98
101
|
autoload :ConnectivityEndpoint, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/connectivity_endpoint.rb'
|
99
102
|
autoload :Extension, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/extension.rb'
|
100
|
-
autoload :
|
103
|
+
autoload :ClusterDefinition, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_definition.rb'
|
101
104
|
autoload :ClusterMonitoringResponse, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_monitoring_response.rb'
|
102
|
-
autoload :
|
105
|
+
autoload :StorageAccount, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/storage_account.rb'
|
103
106
|
autoload :ClusterMonitoringRequest, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_monitoring_request.rb'
|
104
107
|
autoload :ExecuteScriptActionParameters, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/execute_script_action_parameters.rb'
|
105
108
|
autoload :ScriptActionExecutionHistoryList, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/script_action_execution_history_list.rb'
|
106
109
|
autoload :ClusterCreateParametersExtended, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_create_parameters_extended.rb'
|
107
110
|
autoload :ScriptActionPersistedGetResponseSpec, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/script_action_persisted_get_response_spec.rb'
|
108
|
-
autoload :
|
111
|
+
autoload :Autoscale, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/autoscale.rb'
|
109
112
|
autoload :ScriptActionsList, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/script_actions_list.rb'
|
110
113
|
autoload :RuntimeScriptActionDetail, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/runtime_script_action_detail.rb'
|
111
114
|
autoload :TrackedResource, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/tracked_resource.rb'
|
@@ -114,6 +117,8 @@ module Azure::Hdinsight::Mgmt::V2018_06_01_preview
|
|
114
117
|
autoload :Application, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/application.rb'
|
115
118
|
autoload :DirectoryType, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/directory_type.rb'
|
116
119
|
autoload :DaysOfWeek, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/days_of_week.rb'
|
120
|
+
autoload :PublicNetworkAccess, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/public_network_access.rb'
|
121
|
+
autoload :OutboundOnlyPublicNetworkAccessType, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/outbound_only_public_network_access_type.rb'
|
117
122
|
autoload :OSType, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/ostype.rb'
|
118
123
|
autoload :Tier, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/tier.rb'
|
119
124
|
autoload :JsonWebKeyEncryptionAlgorithm, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/json_web_key_encryption_algorithm.rb'
|
@@ -436,6 +436,48 @@ module Azure::Hdinsight::Mgmt::V2018_06_01_preview
|
|
436
436
|
promise
|
437
437
|
end
|
438
438
|
|
439
|
+
#
|
440
|
+
# Updates the Autoscale Configuration for HDInsight cluster.
|
441
|
+
#
|
442
|
+
# @param resource_group_name [String] The name of the resource group.
|
443
|
+
# @param cluster_name [String] The name of the cluster.
|
444
|
+
# @param parameters [AutoscaleConfigurationUpdateParameter] The parameters for
|
445
|
+
# the update autoscale configuration operation.
|
446
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
447
|
+
# will be added to the HTTP request.
|
448
|
+
#
|
449
|
+
def update_auto_scale_configuration(resource_group_name, cluster_name, parameters, custom_headers:nil)
|
450
|
+
response = update_auto_scale_configuration_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers).value!
|
451
|
+
nil
|
452
|
+
end
|
453
|
+
|
454
|
+
#
|
455
|
+
# @param resource_group_name [String] The name of the resource group.
|
456
|
+
# @param cluster_name [String] The name of the cluster.
|
457
|
+
# @param parameters [AutoscaleConfigurationUpdateParameter] The parameters for
|
458
|
+
# the update autoscale configuration operation.
|
459
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
460
|
+
# will be added to the HTTP request.
|
461
|
+
#
|
462
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
463
|
+
# response.
|
464
|
+
#
|
465
|
+
def update_auto_scale_configuration_async(resource_group_name, cluster_name, parameters, custom_headers:nil)
|
466
|
+
# Send request
|
467
|
+
promise = begin_update_auto_scale_configuration_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers)
|
468
|
+
|
469
|
+
promise = promise.then do |response|
|
470
|
+
# Defining deserialization method.
|
471
|
+
deserialize_method = lambda do |parsed_response|
|
472
|
+
end
|
473
|
+
|
474
|
+
# Waiting for response.
|
475
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
476
|
+
end
|
477
|
+
|
478
|
+
promise
|
479
|
+
end
|
480
|
+
|
439
481
|
#
|
440
482
|
# Lists all the HDInsight clusters under the subscription.
|
441
483
|
#
|
@@ -1031,6 +1073,104 @@ module Azure::Hdinsight::Mgmt::V2018_06_01_preview
|
|
1031
1073
|
promise.execute
|
1032
1074
|
end
|
1033
1075
|
|
1076
|
+
#
|
1077
|
+
# Updates the Autoscale Configuration for HDInsight cluster.
|
1078
|
+
#
|
1079
|
+
# @param resource_group_name [String] The name of the resource group.
|
1080
|
+
# @param cluster_name [String] The name of the cluster.
|
1081
|
+
# @param parameters [AutoscaleConfigurationUpdateParameter] The parameters for
|
1082
|
+
# the update autoscale configuration operation.
|
1083
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1084
|
+
# will be added to the HTTP request.
|
1085
|
+
#
|
1086
|
+
#
|
1087
|
+
def begin_update_auto_scale_configuration(resource_group_name, cluster_name, parameters, custom_headers:nil)
|
1088
|
+
response = begin_update_auto_scale_configuration_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers).value!
|
1089
|
+
nil
|
1090
|
+
end
|
1091
|
+
|
1092
|
+
#
|
1093
|
+
# Updates the Autoscale Configuration for HDInsight cluster.
|
1094
|
+
#
|
1095
|
+
# @param resource_group_name [String] The name of the resource group.
|
1096
|
+
# @param cluster_name [String] The name of the cluster.
|
1097
|
+
# @param parameters [AutoscaleConfigurationUpdateParameter] The parameters for
|
1098
|
+
# the update autoscale configuration operation.
|
1099
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1100
|
+
# will be added to the HTTP request.
|
1101
|
+
#
|
1102
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1103
|
+
#
|
1104
|
+
def begin_update_auto_scale_configuration_with_http_info(resource_group_name, cluster_name, parameters, custom_headers:nil)
|
1105
|
+
begin_update_auto_scale_configuration_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers).value!
|
1106
|
+
end
|
1107
|
+
|
1108
|
+
#
|
1109
|
+
# Updates the Autoscale Configuration for HDInsight cluster.
|
1110
|
+
#
|
1111
|
+
# @param resource_group_name [String] The name of the resource group.
|
1112
|
+
# @param cluster_name [String] The name of the cluster.
|
1113
|
+
# @param parameters [AutoscaleConfigurationUpdateParameter] The parameters for
|
1114
|
+
# the update autoscale configuration operation.
|
1115
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1116
|
+
# to the HTTP request.
|
1117
|
+
#
|
1118
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1119
|
+
#
|
1120
|
+
def begin_update_auto_scale_configuration_async(resource_group_name, cluster_name, parameters, custom_headers:nil)
|
1121
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1122
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1123
|
+
fail ArgumentError, 'cluster_name is nil' if cluster_name.nil?
|
1124
|
+
role_name = 'workernode'
|
1125
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1126
|
+
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
1127
|
+
|
1128
|
+
|
1129
|
+
request_headers = {}
|
1130
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1131
|
+
|
1132
|
+
# Set Headers
|
1133
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1134
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1135
|
+
|
1136
|
+
# Serialize Request
|
1137
|
+
request_mapper = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::AutoscaleConfigurationUpdateParameter.mapper()
|
1138
|
+
request_content = @client.serialize(request_mapper, parameters)
|
1139
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
1140
|
+
|
1141
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/roles/{roleName}/autoscale'
|
1142
|
+
|
1143
|
+
request_url = @base_url || @client.base_url
|
1144
|
+
|
1145
|
+
options = {
|
1146
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1147
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'clusterName' => cluster_name,'roleName' => role_name},
|
1148
|
+
query_params: {'api-version' => @client.api_version},
|
1149
|
+
body: request_content,
|
1150
|
+
headers: request_headers.merge(custom_headers || {}),
|
1151
|
+
base_url: request_url
|
1152
|
+
}
|
1153
|
+
promise = @client.make_request_async(:post, path_template, options)
|
1154
|
+
|
1155
|
+
promise = promise.then do |result|
|
1156
|
+
http_response = result.response
|
1157
|
+
status_code = http_response.status
|
1158
|
+
response_content = http_response.body
|
1159
|
+
unless status_code == 200 || status_code == 202
|
1160
|
+
error_model = JSON.load(response_content)
|
1161
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
1162
|
+
end
|
1163
|
+
|
1164
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1165
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
1166
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
1167
|
+
|
1168
|
+
result
|
1169
|
+
end
|
1170
|
+
|
1171
|
+
promise.execute
|
1172
|
+
end
|
1173
|
+
|
1034
1174
|
#
|
1035
1175
|
# Rotate disk encryption key of the specified HDInsight cluster.
|
1036
1176
|
#
|
@@ -158,7 +158,7 @@ module Azure::Hdinsight::Mgmt::V2018_06_01_preview
|
|
158
158
|
#
|
159
159
|
def add_telemetry
|
160
160
|
sdk_information = 'azure_mgmt_hdinsight'
|
161
|
-
sdk_information = "#{sdk_information}/0.18.
|
161
|
+
sdk_information = "#{sdk_information}/0.18.1"
|
162
162
|
add_user_agent_information(sdk_information)
|
163
163
|
end
|
164
164
|
end
|
@@ -0,0 +1,47 @@
|
|
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
|
+
module Models
|
8
|
+
#
|
9
|
+
# The autoscale configuration update parameter.
|
10
|
+
#
|
11
|
+
class AutoscaleConfigurationUpdateParameter
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Autoscale] The autoscale configuration.
|
16
|
+
attr_accessor :autoscale
|
17
|
+
|
18
|
+
|
19
|
+
#
|
20
|
+
# Mapper for AutoscaleConfigurationUpdateParameter class as Ruby Hash.
|
21
|
+
# This will be used for serialization/deserialization.
|
22
|
+
#
|
23
|
+
def self.mapper()
|
24
|
+
{
|
25
|
+
client_side_validation: true,
|
26
|
+
required: false,
|
27
|
+
serialized_name: 'AutoscaleConfigurationUpdateParameter',
|
28
|
+
type: {
|
29
|
+
name: 'Composite',
|
30
|
+
class_name: 'AutoscaleConfigurationUpdateParameter',
|
31
|
+
model_properties: {
|
32
|
+
autoscale: {
|
33
|
+
client_side_validation: true,
|
34
|
+
required: false,
|
35
|
+
serialized_name: 'autoscale',
|
36
|
+
type: {
|
37
|
+
name: 'Composite',
|
38
|
+
class_name: 'Autoscale'
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|