azure_mgmt_hdinsight 0.17.5 → 0.18.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight.rb +26 -19
  3. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/clusters.rb +140 -0
  4. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/hdinsight_management_client.rb +1 -1
  5. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_configuration_update_parameter.rb +47 -0
  6. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/client_group_info.rb +57 -0
  7. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_create_properties.rb +49 -0
  8. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_get_properties.rb +49 -0
  9. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/disk_encryption_properties.rb +13 -0
  10. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/encryption_in_transit_properties.rb +48 -0
  11. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/kafka_rest_properties.rb +48 -0
  12. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/network_settings.rb +61 -0
  13. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/outbound_only_public_network_access_type.rb +16 -0
  14. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/public_network_access.rb +16 -0
  15. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight.rb +44 -35
  16. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/clusters.rb +140 -0
  17. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/hdinsight_management_client.rb +5 -1
  18. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_configuration_update_parameter.rb +47 -0
  19. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/client_group_info.rb +57 -0
  20. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_create_properties.rb +49 -0
  21. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_get_properties.rb +49 -0
  22. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/encryption_in_transit_properties.rb +48 -0
  23. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/host_info.rb +46 -0
  24. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/kafka_rest_properties.rb +48 -0
  25. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/network_settings.rb +61 -0
  26. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/outbound_only_public_network_access_type.rb +16 -0
  27. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/public_network_access.rb +16 -0
  28. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/storage_account.rb +1 -1
  29. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/virtual_machines.rb +284 -0
  30. data/lib/profiles/latest/modules/hdinsight_profile_module.rb +144 -110
  31. data/lib/version.rb +1 -1
  32. metadata +20 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c7f2d82a154e9939a50b2cd7ce3e6ca816766c0a0421580dccff546fc81aad39
4
- data.tar.gz: 3385ea3b9899a33b01db735abbfcc483bbdf12e21366dbe00117467f1118ed20
3
+ metadata.gz: c313cafa597d3b4352c2703620a4e829d463cf5cce54dcb4727cc7f913e1d620
4
+ data.tar.gz: 8ec3f166bdaadb1e31cb3c78599f75e3ecc04a9753762e39448befafa7a32d23
5
5
  SHA512:
6
- metadata.gz: fff7c3e9e37ad63c027a8a5100a2f714fdf004792281727934e03585c9de8e6c1203c4f52fd54178589627d0e1021a59db52c708478c04d795e7df8a3de53b47
7
- data.tar.gz: ab9e8a0904e8acda36f69ef25752cdb94ea8ef98d65a37b10c9cb1b5c62d091d17299d30261aa86c460875c630f21ba227305b295cb845d3cdf0bd6b287a5529
6
+ metadata.gz: cc50de717f8b74defd142408cc85e6061d53e66968be46ff4d55f1d1976e2251ff910540f9ebbb9290025eb9ddcca4ffb074d51d2810d47324470dcce23b4b7f
7
+ data.tar.gz: 19b4bc5598ca224436a44e273e0c51fcc4435c14881e0a058ec10fd40cbce1e012bd27fc7302c6f100062a3345f1133d319b1406fa5ad11dd4571fafa8ee10e6
@@ -31,27 +31,32 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
31
31
  autoload :HDInsightManagementClient, '2015-03-01-preview/generated/azure_mgmt_hdinsight/hdinsight_management_client.rb'
32
32
 
33
33
  module Models
34
+ autoload :ClusterListResult, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_list_result.rb'
35
+ autoload :ClusterDefinition, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_definition.rb'
36
+ autoload :ClusterResizeParameters, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_resize_parameters.rb'
37
+ autoload :KafkaRestProperties, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/kafka_rest_properties.rb'
34
38
  autoload :ClusterDiskEncryptionParameters, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_disk_encryption_parameters.rb'
39
+ autoload :AutoscaleTimeAndCapacity, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_time_and_capacity.rb'
35
40
  autoload :UpdateGatewaySettingsParameters, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/update_gateway_settings_parameters.rb'
36
- autoload :SecurityProfile, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/security_profile.rb'
41
+ autoload :AutoscaleCapacity, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_capacity.rb'
37
42
  autoload :GatewaySettings, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/gateway_settings.rb'
38
- autoload :AutoscaleSchedule, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_schedule.rb'
43
+ autoload :Autoscale, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/autoscale.rb'
39
44
  autoload :OperationResource, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/operation_resource.rb'
40
- autoload :AutoscaleRecurrence, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_recurrence.rb'
41
- autoload :Resource, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/resource.rb'
42
45
  autoload :HardwareProfile, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/hardware_profile.rb'
43
- autoload :Autoscale, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/autoscale.rb'
46
+ autoload :Resource, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/resource.rb'
44
47
  autoload :DataDisksGroups, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/data_disks_groups.rb'
45
48
  autoload :VirtualNetworkProfile, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/virtual_network_profile.rb'
46
49
  autoload :SshProfile, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/ssh_profile.rb'
47
- autoload :OperationListResult, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/operation_list_result.rb'
50
+ autoload :SshPublicKey, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/ssh_public_key.rb'
48
51
  autoload :OsProfile, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/os_profile.rb'
49
- autoload :Operation, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/operation.rb'
52
+ autoload :OperationListResult, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/operation_list_result.rb'
50
53
  autoload :Role, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/role.rb'
51
- autoload :ErrorResponse, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/error_response.rb'
54
+ autoload :Operation, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/operation.rb'
52
55
  autoload :StorageAccount, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/storage_account.rb'
56
+ autoload :ErrorResponse, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/error_response.rb'
57
+ autoload :NetworkSettings, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/network_settings.rb'
53
58
  autoload :ApplicationGetHttpsEndpoint, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/application_get_https_endpoint.rb'
54
- autoload :DiskEncryptionProperties, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/disk_encryption_properties.rb'
59
+ autoload :EncryptionInTransitProperties, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/encryption_in_transit_properties.rb'
55
60
  autoload :ApplicationGetEndpoint, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/application_get_endpoint.rb'
56
61
  autoload :ClusterIdentityUserAssignedIdentitiesValue, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_identity_user_assigned_identities_value.rb'
57
62
  autoload :ApplicationProperties, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/application_properties.rb'
@@ -68,15 +73,15 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
68
73
  autoload :VmSizesCapability, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/vm_sizes_capability.rb'
69
74
  autoload :ClusterListRuntimeScriptActionDetailResult, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_list_runtime_script_action_detail_result.rb'
70
75
  autoload :VmSizeCompatibilityFilter, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/vm_size_compatibility_filter.rb'
71
- autoload :ClusterResizeParameters, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_resize_parameters.rb'
76
+ autoload :SecurityProfile, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/security_profile.rb'
72
77
  autoload :RegionalQuotaCapability, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/regional_quota_capability.rb'
73
- autoload :AutoscaleTimeAndCapacity, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_time_and_capacity.rb'
78
+ autoload :AutoscaleRecurrence, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_recurrence.rb'
74
79
  autoload :QuotaCapability, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/quota_capability.rb'
75
- autoload :SshPublicKey, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/ssh_public_key.rb'
80
+ autoload :LinuxOperatingSystemProfile, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/linux_operating_system_profile.rb'
76
81
  autoload :CapabilitiesResult, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/capabilities_result.rb'
77
- autoload :ScriptAction, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/script_action.rb'
82
+ autoload :ComputeProfile, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/compute_profile.rb'
78
83
  autoload :LocalizedName, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/localized_name.rb'
79
- autoload :StorageProfile, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/storage_profile.rb'
84
+ autoload :DiskEncryptionProperties, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/disk_encryption_properties.rb'
80
85
  autoload :Usage, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/usage.rb'
81
86
  autoload :ClusterIdentity, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_identity.rb'
82
87
  autoload :UsagesListResult, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/usages_list_result.rb'
@@ -85,23 +90,23 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
85
90
  autoload :RuntimeScriptAction, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/runtime_script_action.rb'
86
91
  autoload :BillingMeters, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/billing_meters.rb'
87
92
  autoload :ScriptActionsList, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/script_actions_list.rb'
88
- autoload :ClusterListResult, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_list_result.rb'
93
+ autoload :ClientGroupInfo, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/client_group_info.rb'
89
94
  autoload :DiskBillingMeters, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/disk_billing_meters.rb'
90
- autoload :AutoscaleCapacity, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_capacity.rb'
95
+ autoload :AutoscaleConfigurationUpdateParameter, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_configuration_update_parameter.rb'
91
96
  autoload :BillingResources, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/billing_resources.rb'
92
- autoload :ComputeProfile, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/compute_profile.rb'
97
+ autoload :StorageProfile, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/storage_profile.rb'
93
98
  autoload :BillingResponseListResult, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/billing_response_list_result.rb'
94
99
  autoload :ClusterPatchParameters, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_patch_parameters.rb'
95
100
  autoload :ClusterConfigurations, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_configurations.rb'
96
101
  autoload :ClusterListPersistedScriptActionsResult, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_list_persisted_script_actions_result.rb'
97
102
  autoload :Extension, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/extension.rb'
98
- autoload :LinuxOperatingSystemProfile, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/linux_operating_system_profile.rb'
103
+ autoload :ScriptAction, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/script_action.rb'
99
104
  autoload :ClusterMonitoringResponse, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_monitoring_response.rb'
100
105
  autoload :ClusterGetProperties, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_get_properties.rb'
101
106
  autoload :ClusterMonitoringRequest, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_monitoring_request.rb'
102
107
  autoload :ClusterCreateProperties, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_create_properties.rb'
103
108
  autoload :ScriptActionExecutionHistoryList, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/script_action_execution_history_list.rb'
104
- autoload :ClusterDefinition, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_definition.rb'
109
+ autoload :AutoscaleSchedule, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_schedule.rb'
105
110
  autoload :ScriptActionPersistedGetResponseSpec, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/script_action_persisted_get_response_spec.rb'
106
111
  autoload :RuntimeScriptActionDetail, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/runtime_script_action_detail.rb'
107
112
  autoload :TrackedResource, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/tracked_resource.rb'
@@ -110,6 +115,8 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
110
115
  autoload :Application, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/application.rb'
111
116
  autoload :DirectoryType, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/directory_type.rb'
112
117
  autoload :DaysOfWeek, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/days_of_week.rb'
118
+ autoload :PublicNetworkAccess, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/public_network_access.rb'
119
+ autoload :OutboundOnlyPublicNetworkAccessType, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/outbound_only_public_network_access_type.rb'
113
120
  autoload :OSType, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/ostype.rb'
114
121
  autoload :Tier, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/tier.rb'
115
122
  autoload :JsonWebKeyEncryptionAlgorithm, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/json_web_key_encryption_algorithm.rb'
@@ -436,6 +436,48 @@ module Azure::Hdinsight::Mgmt::V2015_03_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::V2015_03_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::V2015_03_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
  #
@@ -154,7 +154,7 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
154
154
  #
155
155
  def add_telemetry
156
156
  sdk_information = 'azure_mgmt_hdinsight'
157
- sdk_information = "#{sdk_information}/0.17.5"
157
+ sdk_information = "#{sdk_information}/0.18.1"
158
158
  add_user_agent_information(sdk_information)
159
159
  end
160
160
  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::V2015_03_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
@@ -0,0 +1,57 @@
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 information of AAD security group.
10
+ #
11
+ class ClientGroupInfo
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The AAD security group name.
16
+ attr_accessor :group_name
17
+
18
+ # @return [String] The AAD security group id.
19
+ attr_accessor :group_id
20
+
21
+
22
+ #
23
+ # Mapper for ClientGroupInfo class as Ruby Hash.
24
+ # This will be used for serialization/deserialization.
25
+ #
26
+ def self.mapper()
27
+ {
28
+ client_side_validation: true,
29
+ required: false,
30
+ serialized_name: 'ClientGroupInfo',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'ClientGroupInfo',
34
+ model_properties: {
35
+ group_name: {
36
+ client_side_validation: true,
37
+ required: false,
38
+ serialized_name: 'groupName',
39
+ type: {
40
+ name: 'String'
41
+ }
42
+ },
43
+ group_id: {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'groupId',
47
+ type: {
48
+ name: 'String'
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ end
55
+ end
56
+ end
57
+ end
@@ -26,6 +26,10 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
26
26
  # @return [ClusterDefinition] The cluster definition.
27
27
  attr_accessor :cluster_definition
28
28
 
29
+ # @return [KafkaRestProperties] The cluster kafka rest proxy
30
+ # configuration.
31
+ attr_accessor :kafka_rest_properties
32
+
29
33
  # @return [SecurityProfile] The security profile.
30
34
  attr_accessor :security_profile
31
35
 
@@ -38,6 +42,16 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
38
42
  # @return [DiskEncryptionProperties] The disk encryption properties.
39
43
  attr_accessor :disk_encryption_properties
40
44
 
45
+ # @return [EncryptionInTransitProperties] The encryption-in-transit
46
+ # properties.
47
+ attr_accessor :encryption_in_transit_properties
48
+
49
+ # @return [String] The minimal supported tls version.
50
+ attr_accessor :min_supported_tls_version
51
+
52
+ # @return [NetworkSettings] The network settings.
53
+ attr_accessor :network_settings
54
+
41
55
 
42
56
  #
43
57
  # Mapper for ClusterCreateProperties class as Ruby Hash.
@@ -87,6 +101,15 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
87
101
  class_name: 'ClusterDefinition'
88
102
  }
89
103
  },
104
+ kafka_rest_properties: {
105
+ client_side_validation: true,
106
+ required: false,
107
+ serialized_name: 'kafkaRestProperties',
108
+ type: {
109
+ name: 'Composite',
110
+ class_name: 'KafkaRestProperties'
111
+ }
112
+ },
90
113
  security_profile: {
91
114
  client_side_validation: true,
92
115
  required: false,
@@ -122,6 +145,32 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
122
145
  name: 'Composite',
123
146
  class_name: 'DiskEncryptionProperties'
124
147
  }
148
+ },
149
+ encryption_in_transit_properties: {
150
+ client_side_validation: true,
151
+ required: false,
152
+ serialized_name: 'encryptionInTransitProperties',
153
+ type: {
154
+ name: 'Composite',
155
+ class_name: 'EncryptionInTransitProperties'
156
+ }
157
+ },
158
+ min_supported_tls_version: {
159
+ client_side_validation: true,
160
+ required: false,
161
+ serialized_name: 'minSupportedTlsVersion',
162
+ type: {
163
+ name: 'String'
164
+ }
165
+ },
166
+ network_settings: {
167
+ client_side_validation: true,
168
+ required: false,
169
+ serialized_name: 'networkSettings',
170
+ type: {
171
+ name: 'Composite',
172
+ class_name: 'NetworkSettings'
173
+ }
125
174
  }
126
175
  }
127
176
  }