azure_mgmt_hdinsight 0.18.0 → 0.18.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (25) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight.rb +25 -20
  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/cluster_create_properties.rb +25 -0
  7. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_get_properties.rb +25 -0
  8. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/disk_encryption_properties.rb +13 -0
  9. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/encryption_in_transit_properties.rb +48 -0
  10. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/network_settings.rb +61 -0
  11. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/outbound_only_public_network_access_type.rb +16 -0
  12. data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/public_network_access.rb +16 -0
  13. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight.rb +26 -21
  14. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/clusters.rb +140 -0
  15. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/hdinsight_management_client.rb +1 -1
  16. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_configuration_update_parameter.rb +47 -0
  17. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_create_properties.rb +25 -0
  18. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_get_properties.rb +25 -0
  19. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/encryption_in_transit_properties.rb +48 -0
  20. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/network_settings.rb +61 -0
  21. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/outbound_only_public_network_access_type.rb +16 -0
  22. data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/public_network_access.rb +16 -0
  23. data/lib/profiles/latest/modules/hdinsight_profile_module.rb +85 -65
  24. data/lib/version.rb +1 -1
  25. metadata +12 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1fdd49cb791b19f36a1d008249ea484ec888dc1cc6e92b459d1a6429cf49cf17
4
- data.tar.gz: 6b441136b0fcdcdb15e28c44f1eb73d221c9f2b63448c1fe230967482d031011
3
+ metadata.gz: c313cafa597d3b4352c2703620a4e829d463cf5cce54dcb4727cc7f913e1d620
4
+ data.tar.gz: 8ec3f166bdaadb1e31cb3c78599f75e3ecc04a9753762e39448befafa7a32d23
5
5
  SHA512:
6
- metadata.gz: 5d43e30d94f37cbfeab5dd590e8a7a61c26f331380abbe2dce913c9c1f927393f7baaa425f560e0e74cc366d364ab972d596bb3663df4a96e272c776854ff710
7
- data.tar.gz: 58aa48193847b7f4d757e4ec12a3013ac2dfc7af3dca1876721d5df50ba25668d99f22190ab45cbd16951b7e4c70b930fb80352eb05f8567942002a39dfa9026
6
+ metadata.gz: cc50de717f8b74defd142408cc85e6061d53e66968be46ff4d55f1d1976e2251ff910540f9ebbb9290025eb9ddcca4ffb074d51d2810d47324470dcce23b4b7f
7
+ data.tar.gz: 19b4bc5598ca224436a44e273e0c51fcc4435c14881e0a058ec10fd40cbce1e012bd27fc7302c6f100062a3345f1133d319b1406fa5ad11dd4571fafa8ee10e6
@@ -31,29 +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'
34
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'
35
38
  autoload :ClusterDiskEncryptionParameters, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_disk_encryption_parameters.rb'
36
- autoload :ClientGroupInfo, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/client_group_info.rb'
39
+ autoload :AutoscaleTimeAndCapacity, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_time_and_capacity.rb'
37
40
  autoload :UpdateGatewaySettingsParameters, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/update_gateway_settings_parameters.rb'
38
- 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'
39
42
  autoload :GatewaySettings, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/gateway_settings.rb'
40
- 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'
41
44
  autoload :OperationResource, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/operation_resource.rb'
42
- autoload :AutoscaleRecurrence, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_recurrence.rb'
43
- autoload :Resource, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/resource.rb'
44
45
  autoload :HardwareProfile, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/hardware_profile.rb'
45
- 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'
46
47
  autoload :DataDisksGroups, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/data_disks_groups.rb'
47
48
  autoload :VirtualNetworkProfile, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/virtual_network_profile.rb'
48
49
  autoload :SshProfile, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/ssh_profile.rb'
49
- 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'
50
51
  autoload :OsProfile, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/os_profile.rb'
51
- 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'
52
53
  autoload :Role, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/role.rb'
53
- 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'
54
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'
55
58
  autoload :ApplicationGetHttpsEndpoint, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/application_get_https_endpoint.rb'
56
- 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'
57
60
  autoload :ApplicationGetEndpoint, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/application_get_endpoint.rb'
58
61
  autoload :ClusterIdentityUserAssignedIdentitiesValue, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_identity_user_assigned_identities_value.rb'
59
62
  autoload :ApplicationProperties, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/application_properties.rb'
@@ -70,15 +73,15 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
70
73
  autoload :VmSizesCapability, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/vm_sizes_capability.rb'
71
74
  autoload :ClusterListRuntimeScriptActionDetailResult, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_list_runtime_script_action_detail_result.rb'
72
75
  autoload :VmSizeCompatibilityFilter, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/vm_size_compatibility_filter.rb'
73
- autoload :ClusterDefinition, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_definition.rb'
76
+ autoload :SecurityProfile, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/security_profile.rb'
74
77
  autoload :RegionalQuotaCapability, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/regional_quota_capability.rb'
75
- 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'
76
79
  autoload :QuotaCapability, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/quota_capability.rb'
77
- 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'
78
81
  autoload :CapabilitiesResult, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/capabilities_result.rb'
79
- 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'
80
83
  autoload :LocalizedName, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/localized_name.rb'
81
- 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'
82
85
  autoload :Usage, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/usage.rb'
83
86
  autoload :ClusterIdentity, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_identity.rb'
84
87
  autoload :UsagesListResult, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/usages_list_result.rb'
@@ -87,23 +90,23 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
87
90
  autoload :RuntimeScriptAction, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/runtime_script_action.rb'
88
91
  autoload :BillingMeters, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/billing_meters.rb'
89
92
  autoload :ScriptActionsList, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/script_actions_list.rb'
90
- 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'
91
94
  autoload :DiskBillingMeters, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/disk_billing_meters.rb'
92
- 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'
93
96
  autoload :BillingResources, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/billing_resources.rb'
94
- 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'
95
98
  autoload :BillingResponseListResult, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/billing_response_list_result.rb'
96
99
  autoload :ClusterPatchParameters, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_patch_parameters.rb'
97
100
  autoload :ClusterConfigurations, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_configurations.rb'
98
101
  autoload :ClusterListPersistedScriptActionsResult, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_list_persisted_script_actions_result.rb'
99
102
  autoload :Extension, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/extension.rb'
100
- 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'
101
104
  autoload :ClusterMonitoringResponse, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_monitoring_response.rb'
102
105
  autoload :ClusterGetProperties, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_get_properties.rb'
103
106
  autoload :ClusterMonitoringRequest, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_monitoring_request.rb'
104
107
  autoload :ClusterCreateProperties, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_create_properties.rb'
105
108
  autoload :ScriptActionExecutionHistoryList, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/script_action_execution_history_list.rb'
106
- autoload :KafkaRestProperties, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/kafka_rest_properties.rb'
109
+ autoload :AutoscaleSchedule, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_schedule.rb'
107
110
  autoload :ScriptActionPersistedGetResponseSpec, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/script_action_persisted_get_response_spec.rb'
108
111
  autoload :RuntimeScriptActionDetail, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/runtime_script_action_detail.rb'
109
112
  autoload :TrackedResource, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/tracked_resource.rb'
@@ -112,6 +115,8 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
112
115
  autoload :Application, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/application.rb'
113
116
  autoload :DirectoryType, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/directory_type.rb'
114
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'
115
120
  autoload :OSType, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/ostype.rb'
116
121
  autoload :Tier, '2015-03-01-preview/generated/azure_mgmt_hdinsight/models/tier.rb'
117
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.18.0"
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
@@ -42,9 +42,16 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
42
42
  # @return [DiskEncryptionProperties] The disk encryption properties.
43
43
  attr_accessor :disk_encryption_properties
44
44
 
45
+ # @return [EncryptionInTransitProperties] The encryption-in-transit
46
+ # properties.
47
+ attr_accessor :encryption_in_transit_properties
48
+
45
49
  # @return [String] The minimal supported tls version.
46
50
  attr_accessor :min_supported_tls_version
47
51
 
52
+ # @return [NetworkSettings] The network settings.
53
+ attr_accessor :network_settings
54
+
48
55
 
49
56
  #
50
57
  # Mapper for ClusterCreateProperties class as Ruby Hash.
@@ -139,6 +146,15 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
139
146
  class_name: 'DiskEncryptionProperties'
140
147
  }
141
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
+ },
142
158
  min_supported_tls_version: {
143
159
  client_side_validation: true,
144
160
  required: false,
@@ -146,6 +162,15 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
146
162
  type: {
147
163
  name: 'String'
148
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
+ }
149
174
  }
150
175
  }
151
176
  }
@@ -60,9 +60,16 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
60
60
  # @return [DiskEncryptionProperties] The disk encryption properties.
61
61
  attr_accessor :disk_encryption_properties
62
62
 
63
+ # @return [EncryptionInTransitProperties] The encryption-in-transit
64
+ # properties.
65
+ attr_accessor :encryption_in_transit_properties
66
+
63
67
  # @return [String] The minimal supported tls version.
64
68
  attr_accessor :min_supported_tls_version
65
69
 
70
+ # @return [NetworkSettings] The network settings.
71
+ attr_accessor :network_settings
72
+
66
73
 
67
74
  #
68
75
  # Mapper for ClusterGetProperties class as Ruby Hash.
@@ -216,6 +223,15 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
216
223
  class_name: 'DiskEncryptionProperties'
217
224
  }
218
225
  },
226
+ encryption_in_transit_properties: {
227
+ client_side_validation: true,
228
+ required: false,
229
+ serialized_name: 'encryptionInTransitProperties',
230
+ type: {
231
+ name: 'Composite',
232
+ class_name: 'EncryptionInTransitProperties'
233
+ }
234
+ },
219
235
  min_supported_tls_version: {
220
236
  client_side_validation: true,
221
237
  required: false,
@@ -223,6 +239,15 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
223
239
  type: {
224
240
  name: 'String'
225
241
  }
242
+ },
243
+ network_settings: {
244
+ client_side_validation: true,
245
+ required: false,
246
+ serialized_name: 'networkSettings',
247
+ type: {
248
+ name: 'Composite',
249
+ class_name: 'NetworkSettings'
250
+ }
226
251
  }
227
252
  }
228
253
  }
@@ -32,6 +32,10 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
32
32
  # the key vault.
33
33
  attr_accessor :msi_resource_id
34
34
 
35
+ # @return [Boolean] Indicates whether or not resource disk encryption is
36
+ # enabled. Default value: false .
37
+ attr_accessor :encryption_at_host
38
+
35
39
 
36
40
  #
37
41
  # Mapper for DiskEncryptionProperties class as Ruby Hash.
@@ -85,6 +89,15 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
85
89
  type: {
86
90
  name: 'String'
87
91
  }
92
+ },
93
+ encryption_at_host: {
94
+ client_side_validation: true,
95
+ required: false,
96
+ serialized_name: 'encryptionAtHost',
97
+ default_value: false,
98
+ type: {
99
+ name: 'Boolean'
100
+ }
88
101
  }
89
102
  }
90
103
  }