vsphere-automation-vapi 0.2.2 → 0.3.0
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/Gemfile.lock +6 -6
- data/README.md +11 -12
- data/docs/MetadataAuthenticationComponentApi.md +3 -5
- data/docs/MetadataAuthenticationServiceOperationApi.md +3 -5
- data/docs/MetadataCliCommandApi.md +3 -5
- data/docs/MetadataCliNamespaceApi.md +4 -8
- data/docs/MetadataMetamodelComponentApi.md +3 -5
- data/docs/MetadataPrivilegeComponentApi.md +3 -5
- data/docs/MetadataPrivilegeServiceOperationApi.md +3 -5
- data/docs/RestNavigationOptionsApi.md +3 -5
- data/docs/VapiMetadataAuthenticationComponentInfo.md +1 -1
- data/docs/VapiMetadataAuthenticationPackageInfo.md +1 -1
- data/docs/VapiMetadataAuthenticationServiceInfo.md +1 -1
- data/docs/VapiMetadataMetamodelComponentInfo.md +2 -2
- data/docs/VapiMetadataMetamodelElementMap.md +1 -1
- data/docs/VapiMetadataMetamodelEnumerationInfo.md +1 -1
- data/docs/VapiMetadataMetamodelEnumerationValueInfo.md +1 -1
- data/docs/VapiMetadataMetamodelFieldInfo.md +1 -1
- data/docs/VapiMetadataMetamodelOperationInfo.md +1 -1
- data/docs/VapiMetadataMetamodelOperationResultInfo.md +1 -1
- data/docs/VapiMetadataMetamodelPackageInfo.md +4 -4
- data/docs/VapiMetadataMetamodelServiceInfo.md +5 -5
- data/docs/VapiMetadataMetamodelStructureInfo.md +3 -3
- data/docs/VapiMetadataPrivilegeComponentInfo.md +1 -1
- data/docs/VapiMetadataPrivilegePackageInfo.md +1 -1
- data/docs/VapiMetadataPrivilegeServiceInfo.md +1 -1
- data/docs/VcenterActivationApi.md +3 -5
- data/lib/vsphere-automation-vapi/api/metadata_authentication_component_api.rb +4 -15
- data/lib/vsphere-automation-vapi/api/metadata_authentication_service_operation_api.rb +4 -15
- data/lib/vsphere-automation-vapi/api/metadata_cli_command_api.rb +4 -15
- data/lib/vsphere-automation-vapi/api/metadata_cli_namespace_api.rb +4 -15
- data/lib/vsphere-automation-vapi/api/metadata_metamodel_component_api.rb +4 -15
- data/lib/vsphere-automation-vapi/api/metadata_privilege_component_api.rb +4 -15
- data/lib/vsphere-automation-vapi/api/metadata_privilege_service_operation_api.rb +4 -15
- data/lib/vsphere-automation-vapi/api/rest_navigation_options_api.rb +4 -15
- data/lib/vsphere-automation-vapi/api/vcenter_activation_api.rb +4 -15
- data/lib/vsphere-automation-vapi/api_client.rb +1 -1
- data/lib/vsphere-automation-vapi/models/vapi_metadata_authentication_component_info.rb +1 -1
- data/lib/vsphere-automation-vapi/models/vapi_metadata_authentication_package_info.rb +1 -1
- data/lib/vsphere-automation-vapi/models/vapi_metadata_authentication_service_info.rb +1 -1
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_component_info.rb +2 -2
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_element_map.rb +1 -1
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_enumeration_info.rb +1 -1
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_enumeration_value_info.rb +1 -1
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_field_info.rb +1 -1
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_operation_info.rb +1 -1
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_operation_result_info.rb +1 -1
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_package_info.rb +4 -4
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_service_info.rb +5 -5
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_structure_info.rb +3 -3
- data/lib/vsphere-automation-vapi/models/vapi_metadata_privilege_component_info.rb +1 -1
- data/lib/vsphere-automation-vapi/models/vapi_metadata_privilege_package_info.rb +1 -1
- data/lib/vsphere-automation-vapi/models/vapi_metadata_privilege_service_info.rb +1 -1
- data/lib/vsphere-automation-vapi/version.rb +1 -1
- data/pkg/vsphere-automation-vapi-0.2.2.gem +0 -0
- data/vsphere-automation-vapi.gemspec +2 -2
- metadata +7 -6
@@ -18,23 +18,21 @@ module VSphereAutomation
|
|
18
18
|
end
|
19
19
|
# Retrieves the privilege information about an operation element corresponding to {@param.name operationId} contained in the service element corresponding to {@param.name serviceId}.
|
20
20
|
# @param service_id Identifier of the service element.
|
21
|
-
# @param action ~action=get
|
22
21
|
# @param request_body
|
23
22
|
# @param [Hash] opts the optional parameters
|
24
23
|
# @return [VapiMetadataPrivilegeServiceOperationResult|VapiStdErrorsNotFoundError|]
|
25
|
-
def get(service_id,
|
26
|
-
data, _status_code, _headers = get_with_http_info(service_id,
|
24
|
+
def get(service_id, request_body, opts = {})
|
25
|
+
data, _status_code, _headers = get_with_http_info(service_id, request_body, opts)
|
27
26
|
data
|
28
27
|
end
|
29
28
|
|
30
29
|
# Retrieves the privilege information about an operation element corresponding to {@param.name operationId} contained in the service element corresponding to {@param.name serviceId}.
|
31
30
|
# @api private
|
32
31
|
# @param service_id Identifier of the service element.
|
33
|
-
# @param action ~action=get
|
34
32
|
# @param request_body
|
35
33
|
# @param [Hash] opts the optional parameters
|
36
34
|
# @return [Array<(VapiMetadataPrivilegeServiceOperationResult|VapiStdErrorsNotFoundError|, Fixnum, Hash)>] data, response status code and response headers
|
37
|
-
def get_with_http_info(service_id,
|
35
|
+
def get_with_http_info(service_id, request_body, opts = {})
|
38
36
|
if @api_client.config.debugging
|
39
37
|
@api_client.config.logger.debug 'Calling API: MetadataPrivilegeServiceOperationApi.get ...'
|
40
38
|
end
|
@@ -42,24 +40,15 @@ module VSphereAutomation
|
|
42
40
|
if @api_client.config.client_side_validation && service_id.nil?
|
43
41
|
fail ArgumentError, "Missing the required parameter 'service_id' when calling MetadataPrivilegeServiceOperationApi.get"
|
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 MetadataPrivilegeServiceOperationApi.get"
|
48
|
-
end
|
49
|
-
# verify enum value
|
50
|
-
if @api_client.config.client_side_validation && !['get'].include?(action)
|
51
|
-
fail ArgumentError, "invalid value for 'action', must be one of get"
|
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 MetadataPrivilegeServiceOperationApi.get"
|
56
46
|
end
|
57
47
|
# resource path
|
58
|
-
local_var_path = '/com/vmware/vapi/metadata/privilege/service/operation/id:{service_id}'.sub('{' + 'service_id' + '}', service_id.to_s)
|
48
|
+
local_var_path = '/com/vmware/vapi/metadata/privilege/service/operation/id:{service_id}?~action=get'.sub('{' + 'service_id' + '}', service_id.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,43 +17,32 @@ module VSphereAutomation
|
|
17
17
|
@api_client = api_client
|
18
18
|
end
|
19
19
|
# Retrieves operations for specific URL.
|
20
|
-
# @param action ~action=get
|
21
20
|
# @param request_body
|
22
21
|
# @param [Hash] opts the optional parameters
|
23
22
|
# @return [VapiRestNavigationOptionsResult|VapiStdErrorsNotFoundError|]
|
24
|
-
def get(
|
25
|
-
data, _status_code, _headers = get_with_http_info(
|
23
|
+
def get(request_body, opts = {})
|
24
|
+
data, _status_code, _headers = get_with_http_info(request_body, opts)
|
26
25
|
data
|
27
26
|
end
|
28
27
|
|
29
28
|
# Retrieves operations for specific URL.
|
30
29
|
# @api private
|
31
|
-
# @param action ~action=get
|
32
30
|
# @param request_body
|
33
31
|
# @param [Hash] opts the optional parameters
|
34
32
|
# @return [Array<(VapiRestNavigationOptionsResult|VapiStdErrorsNotFoundError|, Fixnum, Hash)>] data, response status code and response headers
|
35
|
-
def get_with_http_info(
|
33
|
+
def get_with_http_info(request_body, opts = {})
|
36
34
|
if @api_client.config.debugging
|
37
35
|
@api_client.config.logger.debug 'Calling API: RestNavigationOptionsApi.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 RestNavigationOptionsApi.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
|
# 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 RestNavigationOptionsApi.get"
|
50
40
|
end
|
51
41
|
# resource path
|
52
|
-
local_var_path = '/com/vmware/vapi/rest/navigation/options'
|
42
|
+
local_var_path = '/com/vmware/vapi/rest/navigation/options?~action=get'
|
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 = {}
|
@@ -18,21 +18,19 @@ module VSphereAutomation
|
|
18
18
|
end
|
19
19
|
# Sends a request to cancel the task associated with the provided {@param.name activationId}.
|
20
20
|
# @param activation_id the {@param.name activationId} associated with a vCenter Server task to be canceled.
|
21
|
-
# @param action ~action=cancel
|
22
21
|
# @param [Hash] opts the optional parameters
|
23
22
|
# @return [|VapiStdErrorsNotAllowedInCurrentStateError|VapiStdErrorsUnauthenticatedError|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|VapiStdErrorsServiceUnavailableError|nil]
|
24
|
-
def cancel(activation_id,
|
25
|
-
cancel_with_http_info(activation_id,
|
23
|
+
def cancel(activation_id, opts = {})
|
24
|
+
cancel_with_http_info(activation_id, opts)
|
26
25
|
nil
|
27
26
|
end
|
28
27
|
|
29
28
|
# Sends a request to cancel the task associated with the provided {@param.name activationId}.
|
30
29
|
# @api private
|
31
30
|
# @param activation_id the {@param.name activationId} associated with a vCenter Server task to be canceled.
|
32
|
-
# @param action ~action=cancel
|
33
31
|
# @param [Hash] opts the optional parameters
|
34
32
|
# @return [Array<(|VapiStdErrorsNotAllowedInCurrentStateError|VapiStdErrorsUnauthenticatedError|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|VapiStdErrorsServiceUnavailableError|nil, Fixnum, Hash)>] nil, response status code and response headers
|
35
|
-
def cancel_with_http_info(activation_id,
|
33
|
+
def cancel_with_http_info(activation_id, opts = {})
|
36
34
|
if @api_client.config.debugging
|
37
35
|
@api_client.config.logger.debug 'Calling API: VcenterActivationApi.cancel ...'
|
38
36
|
end
|
@@ -40,20 +38,11 @@ module VSphereAutomation
|
|
40
38
|
if @api_client.config.client_side_validation && activation_id.nil?
|
41
39
|
fail ArgumentError, "Missing the required parameter 'activation_id' when calling VcenterActivationApi.cancel"
|
42
40
|
end
|
43
|
-
# verify the required parameter 'action' is set
|
44
|
-
if @api_client.config.client_side_validation && action.nil?
|
45
|
-
fail ArgumentError, "Missing the required parameter 'action' when calling VcenterActivationApi.cancel"
|
46
|
-
end
|
47
|
-
# verify enum value
|
48
|
-
if @api_client.config.client_side_validation && !['cancel'].include?(action)
|
49
|
-
fail ArgumentError, "invalid value for 'action', must be one of cancel"
|
50
|
-
end
|
51
41
|
# resource path
|
52
|
-
local_var_path = '/com/vmware/vapi/vcenter/activation/id:{activation_id}'.sub('{' + 'activation_id' + '}', activation_id.to_s)
|
42
|
+
local_var_path = '/com/vmware/vapi/vcenter/activation/id:{activation_id}?~action=cancel'.sub('{' + 'activation_id' + '}', activation_id.to_s)
|
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 = {}
|
@@ -29,7 +29,7 @@ module VSphereAutomation
|
|
29
29
|
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
|
30
30
|
def initialize(config = Configuration.default)
|
31
31
|
@config = config
|
32
|
-
@user_agent = "SDK/0.
|
32
|
+
@user_agent = "SDK/0.3.0 Ruby/#{RUBY_VERSION} (#{Gem::Platform.local.os}; #{Gem::Platform.local.version}; #{Gem::Platform.local.cpu})"
|
33
33
|
@default_headers = {
|
34
34
|
'Content-Type' => 'application/json',
|
35
35
|
'User-Agent' => @user_agent
|
@@ -37,8 +37,8 @@ module VSphereAutomation
|
|
37
37
|
def self.openapi_types
|
38
38
|
{
|
39
39
|
:'name' => :'String',
|
40
|
-
:'packages' => :'Array<
|
41
|
-
:'metadata' => :'Array<
|
40
|
+
:'packages' => :'Array<VapiMetadataMetamodelComponentInfoPackages>',
|
41
|
+
:'metadata' => :'Array<VapiMetadataMetamodelComponentInfoMetadata>',
|
42
42
|
:'documentation' => :'String'
|
43
43
|
}
|
44
44
|
end
|
@@ -38,7 +38,7 @@ module VSphereAutomation
|
|
38
38
|
{
|
39
39
|
:'name' => :'String',
|
40
40
|
:'values' => :'Array<VapiMetadataMetamodelEnumerationValueInfo>',
|
41
|
-
:'metadata' => :'Array<
|
41
|
+
:'metadata' => :'Array<VapiMetadataMetamodelComponentInfoMetadata>',
|
42
42
|
:'documentation' => :'String'
|
43
43
|
}
|
44
44
|
end
|
@@ -47,7 +47,7 @@ module VSphereAutomation
|
|
47
47
|
:'params' => :'Array<VapiMetadataMetamodelFieldInfo>',
|
48
48
|
:'output' => :'VapiMetadataMetamodelOperationResultInfo',
|
49
49
|
:'errors' => :'Array<VapiMetadataMetamodelErrorInfo>',
|
50
|
-
:'metadata' => :'Array<
|
50
|
+
:'metadata' => :'Array<VapiMetadataMetamodelComponentInfoMetadata>',
|
51
51
|
:'documentation' => :'String'
|
52
52
|
}
|
53
53
|
end
|
@@ -45,10 +45,10 @@ module VSphereAutomation
|
|
45
45
|
def self.openapi_types
|
46
46
|
{
|
47
47
|
:'name' => :'String',
|
48
|
-
:'structures' => :'Array<
|
49
|
-
:'enumerations' => :'Array<
|
50
|
-
:'services' => :'Array<
|
51
|
-
:'metadata' => :'Array<
|
48
|
+
:'structures' => :'Array<VapiMetadataMetamodelPackageInfoStructures>',
|
49
|
+
:'enumerations' => :'Array<VapiMetadataMetamodelPackageInfoEnumerations>',
|
50
|
+
:'services' => :'Array<VapiMetadataMetamodelPackageInfoServices>',
|
51
|
+
:'metadata' => :'Array<VapiMetadataMetamodelComponentInfoMetadata>',
|
52
52
|
:'documentation' => :'String'
|
53
53
|
}
|
54
54
|
end
|
@@ -49,11 +49,11 @@ module VSphereAutomation
|
|
49
49
|
def self.openapi_types
|
50
50
|
{
|
51
51
|
:'name' => :'String',
|
52
|
-
:'operations' => :'Array<
|
53
|
-
:'structures' => :'Array<
|
54
|
-
:'enumerations' => :'Array<
|
55
|
-
:'constants' => :'Array<
|
56
|
-
:'metadata' => :'Array<
|
52
|
+
:'operations' => :'Array<VapiMetadataMetamodelServiceInfoOperations>',
|
53
|
+
:'structures' => :'Array<VapiMetadataMetamodelPackageInfoStructures>',
|
54
|
+
:'enumerations' => :'Array<VapiMetadataMetamodelPackageInfoEnumerations>',
|
55
|
+
:'constants' => :'Array<VapiMetadataMetamodelServiceInfoConstants>',
|
56
|
+
:'metadata' => :'Array<VapiMetadataMetamodelComponentInfoMetadata>',
|
57
57
|
:'documentation' => :'String'
|
58
58
|
}
|
59
59
|
end
|
@@ -49,10 +49,10 @@ module VSphereAutomation
|
|
49
49
|
{
|
50
50
|
:'name' => :'String',
|
51
51
|
:'type' => :'VapiMetadataMetamodelStructureInfoType',
|
52
|
-
:'enumerations' => :'Array<
|
53
|
-
:'constants' => :'Array<
|
52
|
+
:'enumerations' => :'Array<VapiMetadataMetamodelPackageInfoEnumerations>',
|
53
|
+
:'constants' => :'Array<VapiMetadataMetamodelServiceInfoConstants>',
|
54
54
|
:'fields' => :'Array<VapiMetadataMetamodelFieldInfo>',
|
55
|
-
:'metadata' => :'Array<
|
55
|
+
:'metadata' => :'Array<VapiMetadataMetamodelComponentInfoMetadata>',
|
56
56
|
:'documentation' => :'String'
|
57
57
|
}
|
58
58
|
end
|
Binary file
|
@@ -23,8 +23,8 @@ Gem::Specification.new do |s|
|
|
23
23
|
s.license = 'MIT'
|
24
24
|
s.required_ruby_version = ">= 2.3"
|
25
25
|
|
26
|
-
s.add_runtime_dependency 'vsphere-automation-runtime', '~> 0.
|
27
|
-
s.add_runtime_dependency 'vsphere-automation-cis', '~> 0.
|
26
|
+
s.add_runtime_dependency 'vsphere-automation-runtime', '~> 0.3.0'
|
27
|
+
s.add_runtime_dependency 'vsphere-automation-cis', '~> 0.3.0'
|
28
28
|
|
29
29
|
s.add_development_dependency 'bundler', '~> 2.0'
|
30
30
|
s.add_development_dependency 'pry', '~> 0.12.2'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vsphere-automation-vapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- J.R. Garcia
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-08-
|
11
|
+
date: 2019-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: vsphere-automation-runtime
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.3.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.3.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: vsphere-automation-cis
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.3.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 0.3.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -464,6 +464,7 @@ files:
|
|
464
464
|
- lib/vsphere-automation-vapi/models/vapi_std_localizable_message.rb
|
465
465
|
- lib/vsphere-automation-vapi/version.rb
|
466
466
|
- pkg/vsphere-automation-vapi-0.2.1.gem
|
467
|
+
- pkg/vsphere-automation-vapi-0.2.2.gem
|
467
468
|
- spec/api/metadata_authentication_component_api_spec.rb
|
468
469
|
- spec/api/metadata_authentication_package_api_spec.rb
|
469
470
|
- spec/api/metadata_authentication_service_api_spec.rb
|