azure_mgmt_hdinsight 0.17.4 → 0.17.5
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/hdinsight_management_client.rb +1 -1
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/application_get_https_endpoint.rb +22 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/quota_capability.rb +22 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/regional_quota_capability.rb +1 -1
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight.rb +45 -37
- 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/locations.rb +93 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/application_get_https_endpoint.rb +1 -1
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/capabilities_result.rb +148 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/quota_capability.rb +78 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/regional_quota_capability.rb +68 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/regions_capability.rb +54 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/version_spec.rb +87 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/versions_capability.rb +55 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/vm_size_compatibility_filter.rb +141 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/vm_sizes_capability.rb +54 -0
- data/lib/azure_mgmt_hdinsight.rb +1 -1
- data/lib/profiles/latest/modules/hdinsight_profile_module.rb +144 -112
- data/lib/version.rb +1 -1
- metadata +11 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c7f2d82a154e9939a50b2cd7ce3e6ca816766c0a0421580dccff546fc81aad39
|
|
4
|
+
data.tar.gz: 3385ea3b9899a33b01db735abbfcc483bbdf12e21366dbe00117467f1118ed20
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fff7c3e9e37ad63c027a8a5100a2f714fdf004792281727934e03585c9de8e6c1203c4f52fd54178589627d0e1021a59db52c708478c04d795e7df8a3de53b47
|
|
7
|
+
data.tar.gz: ab9e8a0904e8acda36f69ef25752cdb94ea8ef98d65a37b10c9cb1b5c62d091d17299d30261aa86c460875c630f21ba227305b295cb845d3cdf0bd6b287a5529
|
|
@@ -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.
|
|
157
|
+
sdk_information = "#{sdk_information}/0.17.5"
|
|
158
158
|
add_user_agent_information(sdk_information)
|
|
159
159
|
end
|
|
160
160
|
end
|
data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/application_get_https_endpoint.rb
CHANGED
|
@@ -24,6 +24,12 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
|
|
|
24
24
|
# @return [Integer] The public port to connect to.
|
|
25
25
|
attr_accessor :public_port
|
|
26
26
|
|
|
27
|
+
# @return [String] The subdomain suffix of the application.
|
|
28
|
+
attr_accessor :sub_domain_suffix
|
|
29
|
+
|
|
30
|
+
# @return [Boolean] Disable gateway authentication.
|
|
31
|
+
attr_accessor :disable_gateway_auth
|
|
32
|
+
|
|
27
33
|
|
|
28
34
|
#
|
|
29
35
|
# Mapper for ApplicationGetHttpsEndpoint class as Ruby Hash.
|
|
@@ -77,6 +83,22 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
|
|
|
77
83
|
type: {
|
|
78
84
|
name: 'Number'
|
|
79
85
|
}
|
|
86
|
+
},
|
|
87
|
+
sub_domain_suffix: {
|
|
88
|
+
client_side_validation: true,
|
|
89
|
+
required: false,
|
|
90
|
+
serialized_name: 'subDomainSuffix',
|
|
91
|
+
type: {
|
|
92
|
+
name: 'String'
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
disable_gateway_auth: {
|
|
96
|
+
client_side_validation: true,
|
|
97
|
+
required: false,
|
|
98
|
+
serialized_name: 'disableGatewayAuth',
|
|
99
|
+
type: {
|
|
100
|
+
name: 'Boolean'
|
|
101
|
+
}
|
|
80
102
|
}
|
|
81
103
|
}
|
|
82
104
|
}
|
|
@@ -12,6 +12,12 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
|
|
|
12
12
|
|
|
13
13
|
include MsRestAzure
|
|
14
14
|
|
|
15
|
+
# @return [Integer] The number of cores used in the subscription.
|
|
16
|
+
attr_accessor :cores_used
|
|
17
|
+
|
|
18
|
+
# @return [Integer] The number of cores that the subscription allowed.
|
|
19
|
+
attr_accessor :max_cores_allowed
|
|
20
|
+
|
|
15
21
|
# @return [Array<RegionalQuotaCapability>] The list of region quota
|
|
16
22
|
# capabilities.
|
|
17
23
|
attr_accessor :regional_quotas
|
|
@@ -30,6 +36,22 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
|
|
|
30
36
|
name: 'Composite',
|
|
31
37
|
class_name: 'QuotaCapability',
|
|
32
38
|
model_properties: {
|
|
39
|
+
cores_used: {
|
|
40
|
+
client_side_validation: true,
|
|
41
|
+
required: false,
|
|
42
|
+
serialized_name: 'cores_used',
|
|
43
|
+
type: {
|
|
44
|
+
name: 'Number'
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
max_cores_allowed: {
|
|
48
|
+
client_side_validation: true,
|
|
49
|
+
required: false,
|
|
50
|
+
serialized_name: 'max_cores_allowed',
|
|
51
|
+
type: {
|
|
52
|
+
name: 'Number'
|
|
53
|
+
}
|
|
54
|
+
},
|
|
33
55
|
regional_quotas: {
|
|
34
56
|
client_side_validation: true,
|
|
35
57
|
required: false,
|
data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/regional_quota_capability.rb
CHANGED
|
@@ -18,7 +18,7 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
|
|
|
18
18
|
# @return [Integer] The number of cores used in the region.
|
|
19
19
|
attr_accessor :cores_used
|
|
20
20
|
|
|
21
|
-
# @return [Integer] The number of
|
|
21
|
+
# @return [Integer] The number of cores available in the region.
|
|
22
22
|
attr_accessor :cores_available
|
|
23
23
|
|
|
24
24
|
|
|
@@ -31,73 +31,81 @@ module Azure::Hdinsight::Mgmt::V2018_06_01_preview
|
|
|
31
31
|
autoload :HDInsightManagementClient, '2018-06-01-preview/generated/azure_mgmt_hdinsight/hdinsight_management_client.rb'
|
|
32
32
|
|
|
33
33
|
module Models
|
|
34
|
-
autoload :
|
|
35
|
-
autoload :
|
|
34
|
+
autoload :ClusterDiskEncryptionParameters, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_disk_encryption_parameters.rb'
|
|
35
|
+
autoload :UpdateGatewaySettingsParameters, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/update_gateway_settings_parameters.rb'
|
|
36
36
|
autoload :SecurityProfile, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/security_profile.rb'
|
|
37
|
+
autoload :GatewaySettings, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/gateway_settings.rb'
|
|
37
38
|
autoload :AutoscaleSchedule, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_schedule.rb'
|
|
38
|
-
autoload :
|
|
39
|
+
autoload :OperationResource, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/operation_resource.rb'
|
|
39
40
|
autoload :AutoscaleRecurrence, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_recurrence.rb'
|
|
40
|
-
autoload :
|
|
41
|
+
autoload :Resource, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/resource.rb'
|
|
41
42
|
autoload :HardwareProfile, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/hardware_profile.rb'
|
|
42
|
-
autoload :
|
|
43
|
+
autoload :Autoscale, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/autoscale.rb'
|
|
43
44
|
autoload :DataDisksGroups, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/data_disks_groups.rb'
|
|
44
|
-
autoload :
|
|
45
|
+
autoload :VirtualNetworkProfile, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/virtual_network_profile.rb'
|
|
45
46
|
autoload :SshProfile, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/ssh_profile.rb'
|
|
46
|
-
autoload :UpdateGatewaySettingsParameters, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/update_gateway_settings_parameters.rb'
|
|
47
|
-
autoload :OsProfile, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/os_profile.rb'
|
|
48
|
-
autoload :GatewaySettings, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/gateway_settings.rb'
|
|
49
|
-
autoload :Role, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/role.rb'
|
|
50
|
-
autoload :OperationResource, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/operation_resource.rb'
|
|
51
|
-
autoload :StorageAccount, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/storage_account.rb'
|
|
52
|
-
autoload :Resource, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/resource.rb'
|
|
53
|
-
autoload :DiskEncryptionProperties, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/disk_encryption_properties.rb'
|
|
54
47
|
autoload :OperationListResult, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/operation_list_result.rb'
|
|
55
|
-
autoload :
|
|
48
|
+
autoload :OsProfile, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/os_profile.rb'
|
|
56
49
|
autoload :Operation, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/operation.rb'
|
|
57
|
-
autoload :
|
|
50
|
+
autoload :Role, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/role.rb'
|
|
58
51
|
autoload :ErrorResponse, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/error_response.rb'
|
|
59
|
-
autoload :
|
|
52
|
+
autoload :StorageAccount, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/storage_account.rb'
|
|
60
53
|
autoload :ApplicationGetHttpsEndpoint, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/application_get_https_endpoint.rb'
|
|
61
|
-
autoload :
|
|
54
|
+
autoload :DiskEncryptionProperties, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/disk_encryption_properties.rb'
|
|
62
55
|
autoload :ApplicationGetEndpoint, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/application_get_endpoint.rb'
|
|
63
|
-
autoload :
|
|
64
|
-
autoload :RuntimeScriptAction, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/runtime_script_action.rb'
|
|
56
|
+
autoload :ClusterIdentityUserAssignedIdentitiesValue, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_identity_user_assigned_identities_value.rb'
|
|
65
57
|
autoload :ApplicationProperties, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/application_properties.rb'
|
|
66
|
-
autoload :
|
|
58
|
+
autoload :ClusterCreateParametersExtended, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_create_parameters_extended.rb'
|
|
67
59
|
autoload :OperationDisplay, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/operation_display.rb'
|
|
68
|
-
autoload :
|
|
60
|
+
autoload :QuotaInfo, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/quota_info.rb'
|
|
69
61
|
autoload :ApplicationListResult, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/application_list_result.rb'
|
|
70
|
-
autoload :
|
|
62
|
+
autoload :ConnectivityEndpoint, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/connectivity_endpoint.rb'
|
|
63
|
+
autoload :VersionSpec, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/version_spec.rb'
|
|
64
|
+
autoload :VersionsCapability, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/versions_capability.rb'
|
|
65
|
+
autoload :ExecuteScriptActionParameters, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/execute_script_action_parameters.rb'
|
|
66
|
+
autoload :RegionsCapability, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/regions_capability.rb'
|
|
67
|
+
autoload :ScriptActionExecutionSummary, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/script_action_execution_summary.rb'
|
|
68
|
+
autoload :VmSizesCapability, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/vm_sizes_capability.rb'
|
|
69
|
+
autoload :ClusterListRuntimeScriptActionDetailResult, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_list_runtime_script_action_detail_result.rb'
|
|
70
|
+
autoload :VmSizeCompatibilityFilter, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/vm_size_compatibility_filter.rb'
|
|
71
|
+
autoload :ClusterResizeParameters, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_resize_parameters.rb'
|
|
72
|
+
autoload :RegionalQuotaCapability, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/regional_quota_capability.rb'
|
|
73
|
+
autoload :AutoscaleTimeAndCapacity, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_time_and_capacity.rb'
|
|
74
|
+
autoload :QuotaCapability, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/quota_capability.rb'
|
|
75
|
+
autoload :SshPublicKey, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/ssh_public_key.rb'
|
|
76
|
+
autoload :CapabilitiesResult, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/capabilities_result.rb'
|
|
77
|
+
autoload :ScriptAction, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/script_action.rb'
|
|
71
78
|
autoload :LocalizedName, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/localized_name.rb'
|
|
72
|
-
autoload :
|
|
79
|
+
autoload :StorageProfile, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/storage_profile.rb'
|
|
73
80
|
autoload :Usage, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/usage.rb'
|
|
74
|
-
autoload :
|
|
81
|
+
autoload :ClusterIdentity, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_identity.rb'
|
|
75
82
|
autoload :UsagesListResult, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/usages_list_result.rb'
|
|
76
|
-
autoload :
|
|
83
|
+
autoload :Errors, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/errors.rb'
|
|
77
84
|
autoload :VmSizeCompatibilityFilterV2, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/vm_size_compatibility_filter_v2.rb'
|
|
78
|
-
autoload :
|
|
85
|
+
autoload :RuntimeScriptAction, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/runtime_script_action.rb'
|
|
79
86
|
autoload :BillingMeters, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/billing_meters.rb'
|
|
80
|
-
autoload :
|
|
87
|
+
autoload :ScriptActionsList, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/script_actions_list.rb'
|
|
88
|
+
autoload :ClusterListResult, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_list_result.rb'
|
|
81
89
|
autoload :DiskBillingMeters, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/disk_billing_meters.rb'
|
|
82
|
-
autoload :
|
|
90
|
+
autoload :AutoscaleCapacity, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_capacity.rb'
|
|
83
91
|
autoload :BillingResources, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/billing_resources.rb'
|
|
84
|
-
autoload :
|
|
92
|
+
autoload :ComputeProfile, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/compute_profile.rb'
|
|
85
93
|
autoload :BillingResponseListResult, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/billing_response_list_result.rb'
|
|
86
|
-
autoload :
|
|
94
|
+
autoload :ClusterPatchParameters, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_patch_parameters.rb'
|
|
87
95
|
autoload :ClusterConfigurations, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_configurations.rb'
|
|
88
|
-
autoload :
|
|
96
|
+
autoload :ClusterListPersistedScriptActionsResult, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_list_persisted_script_actions_result.rb'
|
|
89
97
|
autoload :Extension, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/extension.rb'
|
|
90
|
-
autoload :
|
|
98
|
+
autoload :LinuxOperatingSystemProfile, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/linux_operating_system_profile.rb'
|
|
91
99
|
autoload :ClusterMonitoringResponse, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_monitoring_response.rb'
|
|
92
|
-
autoload :
|
|
100
|
+
autoload :ClusterGetProperties, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_get_properties.rb'
|
|
93
101
|
autoload :ClusterMonitoringRequest, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_monitoring_request.rb'
|
|
94
|
-
autoload :
|
|
102
|
+
autoload :ClusterCreateProperties, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_create_properties.rb'
|
|
95
103
|
autoload :ScriptActionExecutionHistoryList, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/script_action_execution_history_list.rb'
|
|
96
|
-
autoload :
|
|
104
|
+
autoload :ClusterDefinition, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_definition.rb'
|
|
97
105
|
autoload :ScriptActionPersistedGetResponseSpec, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/script_action_persisted_get_response_spec.rb'
|
|
98
|
-
autoload :Cluster, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster.rb'
|
|
99
106
|
autoload :RuntimeScriptActionDetail, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/runtime_script_action_detail.rb'
|
|
100
107
|
autoload :TrackedResource, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/tracked_resource.rb'
|
|
108
|
+
autoload :Cluster, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster.rb'
|
|
101
109
|
autoload :ProxyResource, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/proxy_resource.rb'
|
|
102
110
|
autoload :Application, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/application.rb'
|
|
103
111
|
autoload :DirectoryType, '2018-06-01-preview/generated/azure_mgmt_hdinsight/models/directory_type.rb'
|
|
@@ -154,7 +154,7 @@ module Azure::Hdinsight::Mgmt::V2018_06_01_preview
|
|
|
154
154
|
#
|
|
155
155
|
def add_telemetry
|
|
156
156
|
sdk_information = 'azure_mgmt_hdinsight'
|
|
157
|
-
sdk_information = "#{sdk_information}/0.17.
|
|
157
|
+
sdk_information = "#{sdk_information}/0.17.5"
|
|
158
158
|
add_user_agent_information(sdk_information)
|
|
159
159
|
end
|
|
160
160
|
end
|
|
@@ -21,6 +21,99 @@ module Azure::Hdinsight::Mgmt::V2018_06_01_preview
|
|
|
21
21
|
# @return [HDInsightManagementClient] reference to the HDInsightManagementClient
|
|
22
22
|
attr_reader :client
|
|
23
23
|
|
|
24
|
+
#
|
|
25
|
+
# Gets the capabilities for the specified location.
|
|
26
|
+
#
|
|
27
|
+
# @param location [String] The Azure location (region) for which to make the
|
|
28
|
+
# request.
|
|
29
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
30
|
+
# will be added to the HTTP request.
|
|
31
|
+
#
|
|
32
|
+
# @return [CapabilitiesResult] operation results.
|
|
33
|
+
#
|
|
34
|
+
def get_capabilities(location, custom_headers:nil)
|
|
35
|
+
response = get_capabilities_async(location, custom_headers:custom_headers).value!
|
|
36
|
+
response.body unless response.nil?
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
#
|
|
40
|
+
# Gets the capabilities for the specified location.
|
|
41
|
+
#
|
|
42
|
+
# @param location [String] The Azure location (region) for which to make the
|
|
43
|
+
# request.
|
|
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 get_capabilities_with_http_info(location, custom_headers:nil)
|
|
50
|
+
get_capabilities_async(location, custom_headers:custom_headers).value!
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
#
|
|
54
|
+
# Gets the capabilities for the specified location.
|
|
55
|
+
#
|
|
56
|
+
# @param location [String] The Azure location (region) for which to make the
|
|
57
|
+
# request.
|
|
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 get_capabilities_async(location, custom_headers:nil)
|
|
64
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
65
|
+
fail ArgumentError, 'location is nil' if location.nil?
|
|
66
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
request_headers = {}
|
|
70
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
71
|
+
|
|
72
|
+
# Set Headers
|
|
73
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
74
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
75
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/capabilities'
|
|
76
|
+
|
|
77
|
+
request_url = @base_url || @client.base_url
|
|
78
|
+
|
|
79
|
+
options = {
|
|
80
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
81
|
+
path_params: {'subscriptionId' => @client.subscription_id,'location' => location},
|
|
82
|
+
query_params: {'api-version' => @client.api_version},
|
|
83
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
84
|
+
base_url: request_url
|
|
85
|
+
}
|
|
86
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
87
|
+
|
|
88
|
+
promise = promise.then do |result|
|
|
89
|
+
http_response = result.response
|
|
90
|
+
status_code = http_response.status
|
|
91
|
+
response_content = http_response.body
|
|
92
|
+
unless status_code == 200
|
|
93
|
+
error_model = JSON.load(response_content)
|
|
94
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
98
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
|
99
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
|
100
|
+
# Deserialize Response
|
|
101
|
+
if status_code == 200
|
|
102
|
+
begin
|
|
103
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
104
|
+
result_mapper = Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::CapabilitiesResult.mapper()
|
|
105
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
106
|
+
rescue Exception => e
|
|
107
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
108
|
+
end
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
result
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
promise.execute
|
|
115
|
+
end
|
|
116
|
+
|
|
24
117
|
#
|
|
25
118
|
# Lists the usages for the specified location.
|
|
26
119
|
#
|
data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/application_get_https_endpoint.rb
CHANGED
|
@@ -24,7 +24,7 @@ module Azure::Hdinsight::Mgmt::V2018_06_01_preview
|
|
|
24
24
|
# @return [Integer] The public port to connect to.
|
|
25
25
|
attr_accessor :public_port
|
|
26
26
|
|
|
27
|
-
# @return [String] The
|
|
27
|
+
# @return [String] The subdomain suffix of the application.
|
|
28
28
|
attr_accessor :sub_domain_suffix
|
|
29
29
|
|
|
30
30
|
# @return [Boolean] The value indicates whether to disable GatewayAuth.
|
|
@@ -0,0 +1,148 @@
|
|
|
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 Get Capabilities operation response.
|
|
10
|
+
#
|
|
11
|
+
class CapabilitiesResult
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [Hash{String => VersionsCapability}] The version capability.
|
|
16
|
+
attr_accessor :versions
|
|
17
|
+
|
|
18
|
+
# @return [Hash{String => RegionsCapability}] The virtual machine size
|
|
19
|
+
# compatibility features.
|
|
20
|
+
attr_accessor :regions
|
|
21
|
+
|
|
22
|
+
# @return [Hash{String => VmSizesCapability}] The virtual machine sizes.
|
|
23
|
+
attr_accessor :vm_sizes
|
|
24
|
+
|
|
25
|
+
# @return [Array<VmSizeCompatibilityFilter>] The virtual machine size
|
|
26
|
+
# compatibility filters.
|
|
27
|
+
attr_accessor :vm_size_filters
|
|
28
|
+
|
|
29
|
+
# @return [Array<String>] The capability features.
|
|
30
|
+
attr_accessor :features
|
|
31
|
+
|
|
32
|
+
# @return [QuotaCapability] The quota capability.
|
|
33
|
+
attr_accessor :quota
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
#
|
|
37
|
+
# Mapper for CapabilitiesResult class as Ruby Hash.
|
|
38
|
+
# This will be used for serialization/deserialization.
|
|
39
|
+
#
|
|
40
|
+
def self.mapper()
|
|
41
|
+
{
|
|
42
|
+
client_side_validation: true,
|
|
43
|
+
required: false,
|
|
44
|
+
serialized_name: 'CapabilitiesResult',
|
|
45
|
+
type: {
|
|
46
|
+
name: 'Composite',
|
|
47
|
+
class_name: 'CapabilitiesResult',
|
|
48
|
+
model_properties: {
|
|
49
|
+
versions: {
|
|
50
|
+
client_side_validation: true,
|
|
51
|
+
required: false,
|
|
52
|
+
serialized_name: 'versions',
|
|
53
|
+
type: {
|
|
54
|
+
name: 'Dictionary',
|
|
55
|
+
value: {
|
|
56
|
+
client_side_validation: true,
|
|
57
|
+
required: false,
|
|
58
|
+
serialized_name: 'VersionsCapabilityElementType',
|
|
59
|
+
type: {
|
|
60
|
+
name: 'Composite',
|
|
61
|
+
class_name: 'VersionsCapability'
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
regions: {
|
|
67
|
+
client_side_validation: true,
|
|
68
|
+
required: false,
|
|
69
|
+
serialized_name: 'regions',
|
|
70
|
+
type: {
|
|
71
|
+
name: 'Dictionary',
|
|
72
|
+
value: {
|
|
73
|
+
client_side_validation: true,
|
|
74
|
+
required: false,
|
|
75
|
+
serialized_name: 'RegionsCapabilityElementType',
|
|
76
|
+
type: {
|
|
77
|
+
name: 'Composite',
|
|
78
|
+
class_name: 'RegionsCapability'
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
vm_sizes: {
|
|
84
|
+
client_side_validation: true,
|
|
85
|
+
required: false,
|
|
86
|
+
serialized_name: 'vmSizes',
|
|
87
|
+
type: {
|
|
88
|
+
name: 'Dictionary',
|
|
89
|
+
value: {
|
|
90
|
+
client_side_validation: true,
|
|
91
|
+
required: false,
|
|
92
|
+
serialized_name: 'VmSizesCapabilityElementType',
|
|
93
|
+
type: {
|
|
94
|
+
name: 'Composite',
|
|
95
|
+
class_name: 'VmSizesCapability'
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
vm_size_filters: {
|
|
101
|
+
client_side_validation: true,
|
|
102
|
+
required: false,
|
|
103
|
+
serialized_name: 'vmSize_filters',
|
|
104
|
+
type: {
|
|
105
|
+
name: 'Sequence',
|
|
106
|
+
element: {
|
|
107
|
+
client_side_validation: true,
|
|
108
|
+
required: false,
|
|
109
|
+
serialized_name: 'VmSizeCompatibilityFilterElementType',
|
|
110
|
+
type: {
|
|
111
|
+
name: 'Composite',
|
|
112
|
+
class_name: 'VmSizeCompatibilityFilter'
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
features: {
|
|
118
|
+
client_side_validation: true,
|
|
119
|
+
required: false,
|
|
120
|
+
serialized_name: 'features',
|
|
121
|
+
type: {
|
|
122
|
+
name: 'Sequence',
|
|
123
|
+
element: {
|
|
124
|
+
client_side_validation: true,
|
|
125
|
+
required: false,
|
|
126
|
+
serialized_name: 'StringElementType',
|
|
127
|
+
type: {
|
|
128
|
+
name: 'String'
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
quota: {
|
|
134
|
+
client_side_validation: true,
|
|
135
|
+
required: false,
|
|
136
|
+
serialized_name: 'quota',
|
|
137
|
+
type: {
|
|
138
|
+
name: 'Composite',
|
|
139
|
+
class_name: 'QuotaCapability'
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
end
|
|
146
|
+
end
|
|
147
|
+
end
|
|
148
|
+
end
|