vsphere-automation-vcenter 0.2.2 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +6 -6
- data/README.md +26 -26
- data/docs/CertificateManagementVcenterTlsApi.md +3 -5
- data/docs/DeploymentApi.md +4 -8
- data/docs/DeploymentImportHistoryApi.md +4 -8
- data/docs/DeploymentInstallApi.md +4 -8
- data/docs/DeploymentInstallPscReplicatedApi.md +3 -5
- data/docs/DeploymentInstallPscStandaloneApi.md +3 -5
- data/docs/DeploymentInstallRemotePscApi.md +3 -5
- data/docs/DeploymentQuestionApi.md +3 -5
- data/docs/DeploymentUpgradeApi.md +4 -8
- data/docs/InventoryDatastoreApi.md +3 -5
- data/docs/InventoryNetworkApi.md +3 -5
- data/docs/IsoImageApi.md +6 -10
- data/docs/OvfLibraryItemApi.md +3 -5
- data/docs/StoragePoliciesApi.md +3 -5
- data/docs/TopologyPscsApi.md +3 -5
- data/docs/VcenterDeploymentInfo.md +1 -1
- data/docs/VcenterInventoryDatastoreFindResult.md +1 -1
- data/docs/VcenterInventoryNetworkFindResult.md +1 -1
- data/docs/VcenterOvfLibraryItemResourcePoolDeploymentSpec.md +2 -2
- data/docs/VcenterServicesServiceListDetailsResult.md +1 -1
- data/docs/VcenterStoragePoliciesComplianceSummary.md +1 -1
- data/docs/VcenterStoragePoliciesComplianceVMInfo.md +1 -1
- data/docs/VcenterStoragePoliciesComplianceVMListResult.md +1 -1
- data/docs/VcenterStoragePoliciesVMListResult.md +1 -1
- data/docs/VcenterVMInfo.md +8 -8
- data/docs/VcenterVmGuestLocalFilesystemResult.md +1 -1
- data/docs/VcenterVmStoragePolicyComplianceInfo.md +1 -1
- data/docs/VcenterVmStoragePolicyInfo.md +1 -1
- data/docs/VcenterVmStoragePolicyUpdateSpec.md +1 -1
- data/docs/VcenterVmTemplateLibraryItemsCreateSpec.md +1 -1
- data/docs/VcenterVmTemplateLibraryItemsDeploySpec.md +1 -1
- data/docs/VcenterVmTemplateLibraryItemsHardwareCustomizationSpec.md +2 -2
- data/docs/VcenterVmTemplateLibraryItemsInfo.md +2 -2
- data/docs/VchaClusterActiveApi.md +3 -5
- data/docs/VchaClusterApi.md +3 -5
- data/docs/VchaClusterModeApi.md +3 -5
- data/docs/VchaClusterPassiveApi.md +3 -5
- data/docs/VchaClusterWitnessApi.md +3 -5
- data/docs/VchaVcCredentialsApi.md +3 -5
- data/docs/VmGuestPowerApi.md +3 -5
- data/docs/VmStoragePolicyComplianceApi.md +3 -5
- data/docs/VmTemplateLibraryItemsApi.md +3 -5
- data/lib/vsphere-automation-vcenter/api/certificate_management_vcenter_tls_api.rb +4 -15
- data/lib/vsphere-automation-vcenter/api/deployment_api.rb +4 -15
- data/lib/vsphere-automation-vcenter/api/deployment_import_history_api.rb +4 -15
- data/lib/vsphere-automation-vcenter/api/deployment_install_api.rb +4 -15
- data/lib/vsphere-automation-vcenter/api/deployment_install_psc_replicated_api.rb +4 -15
- data/lib/vsphere-automation-vcenter/api/deployment_install_psc_standalone_api.rb +4 -15
- data/lib/vsphere-automation-vcenter/api/deployment_install_remote_psc_api.rb +4 -15
- data/lib/vsphere-automation-vcenter/api/deployment_question_api.rb +4 -15
- data/lib/vsphere-automation-vcenter/api/deployment_upgrade_api.rb +4 -15
- data/lib/vsphere-automation-vcenter/api/inventory_datastore_api.rb +4 -15
- data/lib/vsphere-automation-vcenter/api/inventory_network_api.rb +4 -15
- data/lib/vsphere-automation-vcenter/api/iso_image_api.rb +8 -30
- data/lib/vsphere-automation-vcenter/api/ovf_library_item_api.rb +4 -15
- data/lib/vsphere-automation-vcenter/api/storage_policies_api.rb +4 -15
- data/lib/vsphere-automation-vcenter/api/topology_pscs_api.rb +4 -15
- data/lib/vsphere-automation-vcenter/api/vcha_cluster_active_api.rb +4 -15
- data/lib/vsphere-automation-vcenter/api/vcha_cluster_api.rb +4 -15
- data/lib/vsphere-automation-vcenter/api/vcha_cluster_mode_api.rb +4 -15
- data/lib/vsphere-automation-vcenter/api/vcha_cluster_passive_api.rb +4 -15
- data/lib/vsphere-automation-vcenter/api/vcha_cluster_witness_api.rb +4 -15
- data/lib/vsphere-automation-vcenter/api/vcha_vc_credentials_api.rb +4 -15
- data/lib/vsphere-automation-vcenter/api/vm_guest_power_api.rb +4 -15
- data/lib/vsphere-automation-vcenter/api/vm_storage_policy_compliance_api.rb +4 -15
- data/lib/vsphere-automation-vcenter/api/vm_template_library_items_api.rb +4 -15
- data/lib/vsphere-automation-vcenter/api_client.rb +1 -1
- data/lib/vsphere-automation-vcenter/models/vcenter_deployment_info.rb +1 -1
- data/lib/vsphere-automation-vcenter/models/vcenter_inventory_datastore_find_result.rb +1 -1
- data/lib/vsphere-automation-vcenter/models/vcenter_inventory_network_find_result.rb +1 -1
- data/lib/vsphere-automation-vcenter/models/vcenter_ovf_library_item_resource_pool_deployment_spec.rb +2 -2
- data/lib/vsphere-automation-vcenter/models/vcenter_services_service_list_details_result.rb +1 -1
- data/lib/vsphere-automation-vcenter/models/vcenter_storage_policies_compliance_summary.rb +1 -1
- data/lib/vsphere-automation-vcenter/models/vcenter_storage_policies_compliance_vm_info.rb +1 -1
- data/lib/vsphere-automation-vcenter/models/vcenter_storage_policies_compliance_vm_list_result.rb +1 -1
- data/lib/vsphere-automation-vcenter/models/vcenter_storage_policies_vm_list_result.rb +1 -1
- data/lib/vsphere-automation-vcenter/models/vcenter_vm_guest_local_filesystem_result.rb +1 -1
- data/lib/vsphere-automation-vcenter/models/vcenter_vm_info.rb +8 -8
- data/lib/vsphere-automation-vcenter/models/vcenter_vm_storage_policy_compliance_info.rb +1 -1
- data/lib/vsphere-automation-vcenter/models/vcenter_vm_storage_policy_info.rb +1 -1
- data/lib/vsphere-automation-vcenter/models/vcenter_vm_storage_policy_update_spec.rb +1 -1
- data/lib/vsphere-automation-vcenter/models/vcenter_vm_template_library_items_create_spec.rb +1 -1
- data/lib/vsphere-automation-vcenter/models/vcenter_vm_template_library_items_deploy_spec.rb +1 -1
- data/lib/vsphere-automation-vcenter/models/vcenter_vm_template_library_items_hardware_customization_spec.rb +2 -2
- data/lib/vsphere-automation-vcenter/models/vcenter_vm_template_library_items_info.rb +2 -2
- data/lib/vsphere-automation-vcenter/version.rb +1 -1
- data/pkg/vsphere-automation-vcenter-0.2.2.gem +0 -0
- data/vsphere-automation-vcenter.gemspec +2 -2
- metadata +7 -6
@@ -75,23 +75,21 @@ module VSphereAutomation
|
|
75
75
|
end
|
76
76
|
# Deploys an OVF package stored in content library to a newly created virtual machine or virtual appliance. <p> This {@term operation} deploys an OVF package which is stored in the library item specified by {@param.name ovfLibraryItemId}. It uses the deployment specification in {@param.name deploymentSpec} to deploy the OVF package to the location specified by {@param.name target}. </p>
|
77
77
|
# @param ovf_library_item_id Identifier of the content library item containing the OVF package to be deployed.
|
78
|
-
# @param action ~action=deploy
|
79
78
|
# @param request_body
|
80
79
|
# @param [Hash] opts the optional parameters
|
81
80
|
# @return [VcenterOvfLibraryItemDeployResult|VapiStdErrorsResourceInaccessibleError|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|]
|
82
|
-
def deploy(ovf_library_item_id,
|
83
|
-
data, _status_code, _headers = deploy_with_http_info(ovf_library_item_id,
|
81
|
+
def deploy(ovf_library_item_id, request_body, opts = {})
|
82
|
+
data, _status_code, _headers = deploy_with_http_info(ovf_library_item_id, request_body, opts)
|
84
83
|
data
|
85
84
|
end
|
86
85
|
|
87
86
|
# Deploys an OVF package stored in content library to a newly created virtual machine or virtual appliance. <p> This {@term operation} deploys an OVF package which is stored in the library item specified by {@param.name ovfLibraryItemId}. It uses the deployment specification in {@param.name deploymentSpec} to deploy the OVF package to the location specified by {@param.name target}. </p>
|
88
87
|
# @api private
|
89
88
|
# @param ovf_library_item_id Identifier of the content library item containing the OVF package to be deployed.
|
90
|
-
# @param action ~action=deploy
|
91
89
|
# @param request_body
|
92
90
|
# @param [Hash] opts the optional parameters
|
93
91
|
# @return [Array<(VcenterOvfLibraryItemDeployResult|VapiStdErrorsResourceInaccessibleError|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|, Fixnum, Hash)>] data, response status code and response headers
|
94
|
-
def deploy_with_http_info(ovf_library_item_id,
|
92
|
+
def deploy_with_http_info(ovf_library_item_id, request_body, opts = {})
|
95
93
|
if @api_client.config.debugging
|
96
94
|
@api_client.config.logger.debug 'Calling API: OvfLibraryItemApi.deploy ...'
|
97
95
|
end
|
@@ -99,24 +97,15 @@ module VSphereAutomation
|
|
99
97
|
if @api_client.config.client_side_validation && ovf_library_item_id.nil?
|
100
98
|
fail ArgumentError, "Missing the required parameter 'ovf_library_item_id' when calling OvfLibraryItemApi.deploy"
|
101
99
|
end
|
102
|
-
# verify the required parameter 'action' is set
|
103
|
-
if @api_client.config.client_side_validation && action.nil?
|
104
|
-
fail ArgumentError, "Missing the required parameter 'action' when calling OvfLibraryItemApi.deploy"
|
105
|
-
end
|
106
|
-
# verify enum value
|
107
|
-
if @api_client.config.client_side_validation && !['deploy'].include?(action)
|
108
|
-
fail ArgumentError, "invalid value for 'action', must be one of deploy"
|
109
|
-
end
|
110
100
|
# verify the required parameter 'request_body' is set
|
111
101
|
if @api_client.config.client_side_validation && request_body.nil?
|
112
102
|
fail ArgumentError, "Missing the required parameter 'request_body' when calling OvfLibraryItemApi.deploy"
|
113
103
|
end
|
114
104
|
# resource path
|
115
|
-
local_var_path = '/com/vmware/vcenter/ovf/library-item/id:{ovf_library_item_id}'.sub('{' + 'ovf_library_item_id' + '}', ovf_library_item_id.to_s)
|
105
|
+
local_var_path = '/com/vmware/vcenter/ovf/library-item/id:{ovf_library_item_id}?~action=deploy'.sub('{' + 'ovf_library_item_id' + '}', ovf_library_item_id.to_s)
|
116
106
|
|
117
107
|
# query parameters
|
118
108
|
query_params = {}
|
119
|
-
query_params[:'~action'] = action
|
120
109
|
|
121
110
|
# header parameters
|
122
111
|
header_params = {}
|
@@ -18,23 +18,21 @@ module VSphereAutomation
|
|
18
18
|
end
|
19
19
|
# Returns datastore compatibility summary about a specific storage policy.
|
20
20
|
# @param policy The storage policy identifier The parameter must be an identifier for the resource type: vcenter.StoragePolicy.
|
21
|
-
# @param action action=check-compatibility
|
22
21
|
# @param request_body
|
23
22
|
# @param [Hash] opts the optional parameters
|
24
23
|
# @return [VcenterStoragePoliciesCheckCompatibilityResult|VapiStdErrorsUnableToAllocateResourceError|VapiStdErrorsUnauthenticatedError|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|VapiStdErrorsServiceUnavailableError|]
|
25
|
-
def check_compatibility(policy,
|
26
|
-
data, _status_code, _headers = check_compatibility_with_http_info(policy,
|
24
|
+
def check_compatibility(policy, request_body, opts = {})
|
25
|
+
data, _status_code, _headers = check_compatibility_with_http_info(policy, request_body, opts)
|
27
26
|
data
|
28
27
|
end
|
29
28
|
|
30
29
|
# Returns datastore compatibility summary about a specific storage policy.
|
31
30
|
# @api private
|
32
31
|
# @param policy The storage policy identifier The parameter must be an identifier for the resource type: vcenter.StoragePolicy.
|
33
|
-
# @param action action=check-compatibility
|
34
32
|
# @param request_body
|
35
33
|
# @param [Hash] opts the optional parameters
|
36
34
|
# @return [Array<(VcenterStoragePoliciesCheckCompatibilityResult|VapiStdErrorsUnableToAllocateResourceError|VapiStdErrorsUnauthenticatedError|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|VapiStdErrorsServiceUnavailableError|, Fixnum, Hash)>] data, response status code and response headers
|
37
|
-
def check_compatibility_with_http_info(policy,
|
35
|
+
def check_compatibility_with_http_info(policy, request_body, opts = {})
|
38
36
|
if @api_client.config.debugging
|
39
37
|
@api_client.config.logger.debug 'Calling API: StoragePoliciesApi.check_compatibility ...'
|
40
38
|
end
|
@@ -42,24 +40,15 @@ module VSphereAutomation
|
|
42
40
|
if @api_client.config.client_side_validation && policy.nil?
|
43
41
|
fail ArgumentError, "Missing the required parameter 'policy' when calling StoragePoliciesApi.check_compatibility"
|
44
42
|
end
|
45
|
-
# verify the required parameter 'action' is set
|
46
|
-
if @api_client.config.client_side_validation && action.nil?
|
47
|
-
fail ArgumentError, "Missing the required parameter 'action' when calling StoragePoliciesApi.check_compatibility"
|
48
|
-
end
|
49
|
-
# verify enum value
|
50
|
-
if @api_client.config.client_side_validation && !['check-compatibility'].include?(action)
|
51
|
-
fail ArgumentError, "invalid value for 'action', must be one of check-compatibility"
|
52
|
-
end
|
53
43
|
# verify the required parameter 'request_body' is set
|
54
44
|
if @api_client.config.client_side_validation && request_body.nil?
|
55
45
|
fail ArgumentError, "Missing the required parameter 'request_body' when calling StoragePoliciesApi.check_compatibility"
|
56
46
|
end
|
57
47
|
# resource path
|
58
|
-
local_var_path = '/vcenter/storage/policies/{policy}'.sub('{' + 'policy' + '}', policy.to_s)
|
48
|
+
local_var_path = '/vcenter/storage/policies/{policy}?action=check-compatibility'.sub('{' + 'policy' + '}', policy.to_s)
|
59
49
|
|
60
50
|
# query parameters
|
61
51
|
query_params = {}
|
62
|
-
query_params[:'action'] = action
|
63
52
|
|
64
53
|
# header parameters
|
65
54
|
header_params = {}
|
@@ -18,23 +18,21 @@ module VSphereAutomation
|
|
18
18
|
end
|
19
19
|
# Decommission the external Platform Services Controller node.
|
20
20
|
# @param hostname FQDN or IP address of external Platform Services Controller node to be decommissioned.
|
21
|
-
# @param action action=decommission&vmw-task
|
22
21
|
# @param request_body
|
23
22
|
# @param [Hash] opts the optional parameters
|
24
23
|
# @return [VcenterTopologyPscsDecommissionTaskResult|VapiStdErrorsNotAllowedInCurrentStateError|VapiStdErrorsUnauthenticatedError|]
|
25
|
-
def decommissiontask(hostname,
|
26
|
-
data, _status_code, _headers = decommissiontask_with_http_info(hostname,
|
24
|
+
def decommissiontask(hostname, request_body, opts = {})
|
25
|
+
data, _status_code, _headers = decommissiontask_with_http_info(hostname, request_body, opts)
|
27
26
|
data
|
28
27
|
end
|
29
28
|
|
30
29
|
# Decommission the external Platform Services Controller node.
|
31
30
|
# @api private
|
32
31
|
# @param hostname FQDN or IP address of external Platform Services Controller node to be decommissioned.
|
33
|
-
# @param action action=decommission&vmw-task
|
34
32
|
# @param request_body
|
35
33
|
# @param [Hash] opts the optional parameters
|
36
34
|
# @return [Array<(VcenterTopologyPscsDecommissionTaskResult|VapiStdErrorsNotAllowedInCurrentStateError|VapiStdErrorsUnauthenticatedError|, Fixnum, Hash)>] data, response status code and response headers
|
37
|
-
def decommissiontask_with_http_info(hostname,
|
35
|
+
def decommissiontask_with_http_info(hostname, request_body, opts = {})
|
38
36
|
if @api_client.config.debugging
|
39
37
|
@api_client.config.logger.debug 'Calling API: TopologyPscsApi.decommissiontask ...'
|
40
38
|
end
|
@@ -42,24 +40,15 @@ module VSphereAutomation
|
|
42
40
|
if @api_client.config.client_side_validation && hostname.nil?
|
43
41
|
fail ArgumentError, "Missing the required parameter 'hostname' when calling TopologyPscsApi.decommissiontask"
|
44
42
|
end
|
45
|
-
# verify the required parameter 'action' is set
|
46
|
-
if @api_client.config.client_side_validation && action.nil?
|
47
|
-
fail ArgumentError, "Missing the required parameter 'action' when calling TopologyPscsApi.decommissiontask"
|
48
|
-
end
|
49
|
-
# verify enum value
|
50
|
-
if @api_client.config.client_side_validation && !['decommission&vmw-task'].include?(action)
|
51
|
-
fail ArgumentError, "invalid value for 'action', must be one of decommission&vmw-task"
|
52
|
-
end
|
53
43
|
# verify the required parameter 'request_body' is set
|
54
44
|
if @api_client.config.client_side_validation && request_body.nil?
|
55
45
|
fail ArgumentError, "Missing the required parameter 'request_body' when calling TopologyPscsApi.decommissiontask"
|
56
46
|
end
|
57
47
|
# resource path
|
58
|
-
local_var_path = '/vcenter/topology/pscs/{hostname}'.sub('{' + 'hostname' + '}', hostname.to_s)
|
48
|
+
local_var_path = '/vcenter/topology/pscs/{hostname}?action=decommission&vmw-task=true'.sub('{' + 'hostname' + '}', hostname.to_s)
|
59
49
|
|
60
50
|
# query parameters
|
61
51
|
query_params = {}
|
62
|
-
query_params[:'action'] = action
|
63
52
|
|
64
53
|
# header parameters
|
65
54
|
header_params = {}
|
@@ -17,39 +17,28 @@ module VSphereAutomation
|
|
17
17
|
@api_client = api_client
|
18
18
|
end
|
19
19
|
# Retrieves information about the active node of a VCHA cluster.
|
20
|
-
# @param action action=get
|
21
20
|
# @param [Hash] opts the optional parameters
|
22
21
|
# @option opts [VcenterVchaClusterActiveGet] :request_body
|
23
22
|
# @return [VcenterVchaClusterActiveResult|VapiStdErrorsErrorError|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|]
|
24
|
-
def get(
|
25
|
-
data, _status_code, _headers = get_with_http_info(
|
23
|
+
def get(opts = {})
|
24
|
+
data, _status_code, _headers = get_with_http_info(opts)
|
26
25
|
data
|
27
26
|
end
|
28
27
|
|
29
28
|
# Retrieves information about the active node of a VCHA cluster.
|
30
29
|
# @api private
|
31
|
-
# @param action action=get
|
32
30
|
# @param [Hash] opts the optional parameters
|
33
31
|
# @option opts [VcenterVchaClusterActiveGet] :request_body
|
34
32
|
# @return [Array<(VcenterVchaClusterActiveResult|VapiStdErrorsErrorError|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|, Fixnum, Hash)>] data, response status code and response headers
|
35
|
-
def get_with_http_info(
|
33
|
+
def get_with_http_info(opts = {})
|
36
34
|
if @api_client.config.debugging
|
37
35
|
@api_client.config.logger.debug 'Calling API: VchaClusterActiveApi.get ...'
|
38
36
|
end
|
39
|
-
# verify the required parameter 'action' is set
|
40
|
-
if @api_client.config.client_side_validation && action.nil?
|
41
|
-
fail ArgumentError, "Missing the required parameter 'action' when calling VchaClusterActiveApi.get"
|
42
|
-
end
|
43
|
-
# verify enum value
|
44
|
-
if @api_client.config.client_side_validation && !['get'].include?(action)
|
45
|
-
fail ArgumentError, "invalid value for 'action', must be one of get"
|
46
|
-
end
|
47
37
|
# resource path
|
48
|
-
local_var_path = '/vcenter/vcha/cluster/active'
|
38
|
+
local_var_path = '/vcenter/vcha/cluster/active?action=get'
|
49
39
|
|
50
40
|
# query parameters
|
51
41
|
query_params = {}
|
52
|
-
query_params[:'action'] = action
|
53
42
|
|
54
43
|
# header parameters
|
55
44
|
header_params = {}
|
@@ -74,43 +74,32 @@ module VSphereAutomation
|
|
74
74
|
return data, status_code, headers
|
75
75
|
end
|
76
76
|
# Initiates failover from the active vCenter node to the passive node. For forced failover, Active node immediately initiates a failover. This may result into a data loss after failover. For planned failover, Active node flushes all the state to the Passive node, waits for the flush to complete before causing a failover. After the failover, Passive node starts without any data loss. A failover is allowed only in the following cases: 1. Cluster's mode is enabled and all cluster members are present. 2. Cluster's mode is maintenance and all cluster members are present.
|
77
|
-
# @param action action=failover&vmw-task
|
78
77
|
# @param request_body
|
79
78
|
# @param [Hash] opts the optional parameters
|
80
79
|
# @return [VcenterVchaClusterFailoverTaskResult|VapiStdErrorsErrorError|VapiStdErrorsUnauthorizedError|]
|
81
|
-
def failovertask(
|
82
|
-
data, _status_code, _headers = failovertask_with_http_info(
|
80
|
+
def failovertask(request_body, opts = {})
|
81
|
+
data, _status_code, _headers = failovertask_with_http_info(request_body, opts)
|
83
82
|
data
|
84
83
|
end
|
85
84
|
|
86
85
|
# Initiates failover from the active vCenter node to the passive node. For forced failover, Active node immediately initiates a failover. This may result into a data loss after failover. For planned failover, Active node flushes all the state to the Passive node, waits for the flush to complete before causing a failover. After the failover, Passive node starts without any data loss. A failover is allowed only in the following cases: 1. Cluster's mode is enabled and all cluster members are present. 2. Cluster's mode is maintenance and all cluster members are present.
|
87
86
|
# @api private
|
88
|
-
# @param action action=failover&vmw-task
|
89
87
|
# @param request_body
|
90
88
|
# @param [Hash] opts the optional parameters
|
91
89
|
# @return [Array<(VcenterVchaClusterFailoverTaskResult|VapiStdErrorsErrorError|VapiStdErrorsUnauthorizedError|, Fixnum, Hash)>] data, response status code and response headers
|
92
|
-
def failovertask_with_http_info(
|
90
|
+
def failovertask_with_http_info(request_body, opts = {})
|
93
91
|
if @api_client.config.debugging
|
94
92
|
@api_client.config.logger.debug 'Calling API: VchaClusterApi.failovertask ...'
|
95
93
|
end
|
96
|
-
# verify the required parameter 'action' is set
|
97
|
-
if @api_client.config.client_side_validation && action.nil?
|
98
|
-
fail ArgumentError, "Missing the required parameter 'action' when calling VchaClusterApi.failovertask"
|
99
|
-
end
|
100
|
-
# verify enum value
|
101
|
-
if @api_client.config.client_side_validation && !['failover&vmw-task'].include?(action)
|
102
|
-
fail ArgumentError, "invalid value for 'action', must be one of failover&vmw-task"
|
103
|
-
end
|
104
94
|
# verify the required parameter 'request_body' is set
|
105
95
|
if @api_client.config.client_side_validation && request_body.nil?
|
106
96
|
fail ArgumentError, "Missing the required parameter 'request_body' when calling VchaClusterApi.failovertask"
|
107
97
|
end
|
108
98
|
# resource path
|
109
|
-
local_var_path = '/vcenter/vcha/cluster'
|
99
|
+
local_var_path = '/vcenter/vcha/cluster?action=failover&vmw-task=true'
|
110
100
|
|
111
101
|
# query parameters
|
112
102
|
query_params = {}
|
113
|
-
query_params[:'action'] = action
|
114
103
|
|
115
104
|
# header parameters
|
116
105
|
header_params = {}
|
@@ -66,43 +66,32 @@ module VSphereAutomation
|
|
66
66
|
return data, status_code, headers
|
67
67
|
end
|
68
68
|
# Manipulates the mode of a VCHA Cluster. Following mode transitions are allowed: enabled -> disabled - Allowed only in healthy and degraded states. enabled -> maintenance - Allowed only in healthy state. disabled -> enabled - Allowed only in healthy state. maintenance -> enabled - Allowed only in healthy state with all nodes are running the same version. maintenance -> disabled - Allowed only in healthy state with all nodes are running the same version. All other transitions are not allowed. VCHA Cluster configuration remains intact in any of the cluster modes.
|
69
|
-
# @param vmw_task vmw-task=true
|
70
69
|
# @param request_body
|
71
70
|
# @param [Hash] opts the optional parameters
|
72
71
|
# @return [VcenterVchaClusterModeSetTaskResult|VapiStdErrorsErrorError|VapiStdErrorsUnauthorizedError|]
|
73
|
-
def settask(
|
74
|
-
data, _status_code, _headers = settask_with_http_info(
|
72
|
+
def settask(request_body, opts = {})
|
73
|
+
data, _status_code, _headers = settask_with_http_info(request_body, opts)
|
75
74
|
data
|
76
75
|
end
|
77
76
|
|
78
77
|
# Manipulates the mode of a VCHA Cluster. Following mode transitions are allowed: enabled -> disabled - Allowed only in healthy and degraded states. enabled -> maintenance - Allowed only in healthy state. disabled -> enabled - Allowed only in healthy state. maintenance -> enabled - Allowed only in healthy state with all nodes are running the same version. maintenance -> disabled - Allowed only in healthy state with all nodes are running the same version. All other transitions are not allowed. VCHA Cluster configuration remains intact in any of the cluster modes.
|
79
78
|
# @api private
|
80
|
-
# @param vmw_task vmw-task=true
|
81
79
|
# @param request_body
|
82
80
|
# @param [Hash] opts the optional parameters
|
83
81
|
# @return [Array<(VcenterVchaClusterModeSetTaskResult|VapiStdErrorsErrorError|VapiStdErrorsUnauthorizedError|, Fixnum, Hash)>] data, response status code and response headers
|
84
|
-
def settask_with_http_info(
|
82
|
+
def settask_with_http_info(request_body, opts = {})
|
85
83
|
if @api_client.config.debugging
|
86
84
|
@api_client.config.logger.debug 'Calling API: VchaClusterModeApi.settask ...'
|
87
85
|
end
|
88
|
-
# verify the required parameter 'vmw_task' is set
|
89
|
-
if @api_client.config.client_side_validation && vmw_task.nil?
|
90
|
-
fail ArgumentError, "Missing the required parameter 'vmw_task' when calling VchaClusterModeApi.settask"
|
91
|
-
end
|
92
|
-
# verify enum value
|
93
|
-
if @api_client.config.client_side_validation && !['true'].include?(vmw_task)
|
94
|
-
fail ArgumentError, "invalid value for 'vmw_task', must be one of true"
|
95
|
-
end
|
96
86
|
# verify the required parameter 'request_body' is set
|
97
87
|
if @api_client.config.client_side_validation && request_body.nil?
|
98
88
|
fail ArgumentError, "Missing the required parameter 'request_body' when calling VchaClusterModeApi.settask"
|
99
89
|
end
|
100
90
|
# resource path
|
101
|
-
local_var_path = '/vcenter/vcha/cluster/mode'
|
91
|
+
local_var_path = '/vcenter/vcha/cluster/mode?vmw-task=true'
|
102
92
|
|
103
93
|
# query parameters
|
104
94
|
query_params = {}
|
105
|
-
query_params[:'vmw-task'] = vmw_task
|
106
95
|
|
107
96
|
# header parameters
|
108
97
|
header_params = {}
|
@@ -75,43 +75,32 @@ module VSphereAutomation
|
|
75
75
|
return data, status_code, headers
|
76
76
|
end
|
77
77
|
# Creates the passive node in a degraded cluster with node location information and pre-existing VCHA cluster configuration from the active node.
|
78
|
-
# @param action action=redeploy&vmw-task
|
79
78
|
# @param request_body
|
80
79
|
# @param [Hash] opts the optional parameters
|
81
80
|
# @return [VcenterVchaClusterPassiveRedeployTaskResult|VapiStdErrorsErrorError|VapiStdErrorsUnauthorizedError|]
|
82
|
-
def redeploytask(
|
83
|
-
data, _status_code, _headers = redeploytask_with_http_info(
|
81
|
+
def redeploytask(request_body, opts = {})
|
82
|
+
data, _status_code, _headers = redeploytask_with_http_info(request_body, opts)
|
84
83
|
data
|
85
84
|
end
|
86
85
|
|
87
86
|
# Creates the passive node in a degraded cluster with node location information and pre-existing VCHA cluster configuration from the active node.
|
88
87
|
# @api private
|
89
|
-
# @param action action=redeploy&vmw-task
|
90
88
|
# @param request_body
|
91
89
|
# @param [Hash] opts the optional parameters
|
92
90
|
# @return [Array<(VcenterVchaClusterPassiveRedeployTaskResult|VapiStdErrorsErrorError|VapiStdErrorsUnauthorizedError|, Fixnum, Hash)>] data, response status code and response headers
|
93
|
-
def redeploytask_with_http_info(
|
91
|
+
def redeploytask_with_http_info(request_body, opts = {})
|
94
92
|
if @api_client.config.debugging
|
95
93
|
@api_client.config.logger.debug 'Calling API: VchaClusterPassiveApi.redeploytask ...'
|
96
94
|
end
|
97
|
-
# verify the required parameter 'action' is set
|
98
|
-
if @api_client.config.client_side_validation && action.nil?
|
99
|
-
fail ArgumentError, "Missing the required parameter 'action' when calling VchaClusterPassiveApi.redeploytask"
|
100
|
-
end
|
101
|
-
# verify enum value
|
102
|
-
if @api_client.config.client_side_validation && !['redeploy&vmw-task'].include?(action)
|
103
|
-
fail ArgumentError, "invalid value for 'action', must be one of redeploy&vmw-task"
|
104
|
-
end
|
105
95
|
# verify the required parameter 'request_body' is set
|
106
96
|
if @api_client.config.client_side_validation && request_body.nil?
|
107
97
|
fail ArgumentError, "Missing the required parameter 'request_body' when calling VchaClusterPassiveApi.redeploytask"
|
108
98
|
end
|
109
99
|
# resource path
|
110
|
-
local_var_path = '/vcenter/vcha/cluster/passive'
|
100
|
+
local_var_path = '/vcenter/vcha/cluster/passive?action=redeploy&vmw-task=true'
|
111
101
|
|
112
102
|
# query parameters
|
113
103
|
query_params = {}
|
114
|
-
query_params[:'action'] = action
|
115
104
|
|
116
105
|
# header parameters
|
117
106
|
header_params = {}
|
@@ -75,43 +75,32 @@ module VSphereAutomation
|
|
75
75
|
return data, status_code, headers
|
76
76
|
end
|
77
77
|
# Creates the witness node in a degraded cluster with node location information and pre-existing VCHA cluster configuration from the active node.
|
78
|
-
# @param action action=redeploy&vmw-task
|
79
78
|
# @param request_body
|
80
79
|
# @param [Hash] opts the optional parameters
|
81
80
|
# @return [VcenterVchaClusterWitnessRedeployTaskResult|VapiStdErrorsErrorError|VapiStdErrorsUnauthorizedError|]
|
82
|
-
def redeploytask(
|
83
|
-
data, _status_code, _headers = redeploytask_with_http_info(
|
81
|
+
def redeploytask(request_body, opts = {})
|
82
|
+
data, _status_code, _headers = redeploytask_with_http_info(request_body, opts)
|
84
83
|
data
|
85
84
|
end
|
86
85
|
|
87
86
|
# Creates the witness node in a degraded cluster with node location information and pre-existing VCHA cluster configuration from the active node.
|
88
87
|
# @api private
|
89
|
-
# @param action action=redeploy&vmw-task
|
90
88
|
# @param request_body
|
91
89
|
# @param [Hash] opts the optional parameters
|
92
90
|
# @return [Array<(VcenterVchaClusterWitnessRedeployTaskResult|VapiStdErrorsErrorError|VapiStdErrorsUnauthorizedError|, Fixnum, Hash)>] data, response status code and response headers
|
93
|
-
def redeploytask_with_http_info(
|
91
|
+
def redeploytask_with_http_info(request_body, opts = {})
|
94
92
|
if @api_client.config.debugging
|
95
93
|
@api_client.config.logger.debug 'Calling API: VchaClusterWitnessApi.redeploytask ...'
|
96
94
|
end
|
97
|
-
# verify the required parameter 'action' is set
|
98
|
-
if @api_client.config.client_side_validation && action.nil?
|
99
|
-
fail ArgumentError, "Missing the required parameter 'action' when calling VchaClusterWitnessApi.redeploytask"
|
100
|
-
end
|
101
|
-
# verify enum value
|
102
|
-
if @api_client.config.client_side_validation && !['redeploy&vmw-task'].include?(action)
|
103
|
-
fail ArgumentError, "invalid value for 'action', must be one of redeploy&vmw-task"
|
104
|
-
end
|
105
95
|
# verify the required parameter 'request_body' is set
|
106
96
|
if @api_client.config.client_side_validation && request_body.nil?
|
107
97
|
fail ArgumentError, "Missing the required parameter 'request_body' when calling VchaClusterWitnessApi.redeploytask"
|
108
98
|
end
|
109
99
|
# resource path
|
110
|
-
local_var_path = '/vcenter/vcha/cluster/witness'
|
100
|
+
local_var_path = '/vcenter/vcha/cluster/witness?action=redeploy&vmw-task=true'
|
111
101
|
|
112
102
|
# query parameters
|
113
103
|
query_params = {}
|
114
|
-
query_params[:'action'] = action
|
115
104
|
|
116
105
|
# header parameters
|
117
106
|
header_params = {}
|
@@ -17,43 +17,32 @@ module VSphereAutomation
|
|
17
17
|
@api_client = api_client
|
18
18
|
end
|
19
19
|
# Validates the credentials of the management vCenter server of the active node of a VCHA cluster.
|
20
|
-
# @param action action=validate
|
21
20
|
# @param request_body
|
22
21
|
# @param [Hash] opts the optional parameters
|
23
22
|
# @return [|VapiStdErrorsErrorError|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|nil]
|
24
|
-
def validate(
|
25
|
-
validate_with_http_info(
|
23
|
+
def validate(request_body, opts = {})
|
24
|
+
validate_with_http_info(request_body, opts)
|
26
25
|
nil
|
27
26
|
end
|
28
27
|
|
29
28
|
# Validates the credentials of the management vCenter server of the active node of a VCHA cluster.
|
30
29
|
# @api private
|
31
|
-
# @param action action=validate
|
32
30
|
# @param request_body
|
33
31
|
# @param [Hash] opts the optional parameters
|
34
32
|
# @return [Array<(|VapiStdErrorsErrorError|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|nil, Fixnum, Hash)>] nil, response status code and response headers
|
35
|
-
def validate_with_http_info(
|
33
|
+
def validate_with_http_info(request_body, opts = {})
|
36
34
|
if @api_client.config.debugging
|
37
35
|
@api_client.config.logger.debug 'Calling API: VchaVcCredentialsApi.validate ...'
|
38
36
|
end
|
39
|
-
# verify the required parameter 'action' is set
|
40
|
-
if @api_client.config.client_side_validation && action.nil?
|
41
|
-
fail ArgumentError, "Missing the required parameter 'action' when calling VchaVcCredentialsApi.validate"
|
42
|
-
end
|
43
|
-
# verify enum value
|
44
|
-
if @api_client.config.client_side_validation && !['validate'].include?(action)
|
45
|
-
fail ArgumentError, "invalid value for 'action', must be one of validate"
|
46
|
-
end
|
47
37
|
# verify the required parameter 'request_body' is set
|
48
38
|
if @api_client.config.client_side_validation && request_body.nil?
|
49
39
|
fail ArgumentError, "Missing the required parameter 'request_body' when calling VchaVcCredentialsApi.validate"
|
50
40
|
end
|
51
41
|
# resource path
|
52
|
-
local_var_path = '/vcenter/vcha/vc-credentials'
|
42
|
+
local_var_path = '/vcenter/vcha/vc-credentials?action=validate'
|
53
43
|
|
54
44
|
# query parameters
|
55
45
|
query_params = {}
|
56
|
-
query_params[:'action'] = action
|
57
46
|
|
58
47
|
# header parameters
|
59
48
|
header_params = {}
|