vsphere-automation-vapi 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +12 -1
- data/Gemfile.lock +57 -44
- data/README.md +22 -13
- data/Rakefile +8 -0
- data/docs/MetadataAuthenticationComponentApi.md +32 -9
- data/docs/MetadataAuthenticationPackageApi.md +18 -4
- data/docs/MetadataAuthenticationServiceApi.md +18 -4
- data/docs/MetadataAuthenticationServiceOperationApi.md +25 -9
- data/docs/MetadataCliCommandApi.md +34 -11
- data/docs/MetadataCliNamespaceApi.md +39 -14
- data/docs/MetadataMetamodelComponentApi.md +32 -9
- data/docs/MetadataMetamodelEnumerationApi.md +18 -4
- data/docs/MetadataMetamodelPackageApi.md +18 -4
- data/docs/MetadataMetamodelResourceApi.md +9 -2
- data/docs/MetadataMetamodelResourceModelApi.md +9 -2
- data/docs/MetadataMetamodelServiceApi.md +18 -4
- data/docs/MetadataMetamodelServiceOperationApi.md +18 -4
- data/docs/MetadataMetamodelStructureApi.md +18 -4
- data/docs/MetadataPrivilegeComponentApi.md +32 -9
- data/docs/MetadataPrivilegePackageApi.md +18 -4
- data/docs/MetadataPrivilegeServiceApi.md +18 -4
- data/docs/MetadataPrivilegeServiceOperationApi.md +25 -9
- data/docs/RestNavigationComponentApi.md +9 -2
- data/docs/RestNavigationOptionsApi.md +16 -7
- data/docs/RestNavigationResourceApi.md +18 -4
- data/docs/RestNavigationRootApi.md +9 -2
- data/docs/RestNavigationServiceApi.md +9 -2
- data/docs/VapiMetadataAuthenticationComponentInfoPackages.md +1 -1
- data/docs/VapiMetadataAuthenticationPackageInfoServices.md +1 -1
- data/docs/VapiMetadataAuthenticationServiceInfoOperations.md +1 -1
- data/docs/{VapiMetadataMetamodelEnumerationValueInfoMetadata.md → VapiMetadataMetamodelComponentInfoMetadata.md} +2 -2
- data/docs/VapiMetadataMetamodelComponentInfoPackages.md +1 -1
- data/docs/VapiMetadataMetamodelElementMapElements.md +1 -1
- data/docs/VapiMetadataMetamodelPackageInfoEnumerations.md +1 -1
- data/docs/VapiMetadataMetamodelPackageInfoServices.md +1 -1
- data/docs/VapiMetadataMetamodelPackageInfoStructures.md +1 -1
- data/docs/VapiMetadataMetamodelPrimitiveValue.md +1 -1
- data/docs/{VapiMetadataMetamodelStructureInfoConstants.md → VapiMetadataMetamodelServiceInfoConstants.md} +2 -2
- data/docs/VapiMetadataMetamodelServiceInfoOperations.md +1 -1
- data/docs/VapiMetadataPrivilegeComponentInfoPackages.md +1 -1
- data/docs/VapiMetadataPrivilegePackageInfoServices.md +1 -1
- data/docs/VapiMetadataPrivilegeServiceInfoOperations.md +1 -1
- data/docs/VcenterActivationApi.md +14 -5
- data/lib/vsphere-automation-vapi.rb +9 -11
- data/lib/vsphere-automation-vapi/api/metadata_authentication_component_api.rb +25 -16
- data/lib/vsphere-automation-vapi/api/metadata_authentication_package_api.rb +8 -10
- data/lib/vsphere-automation-vapi/api/metadata_authentication_service_api.rb +8 -10
- data/lib/vsphere-automation-vapi/api/metadata_authentication_service_operation_api.rb +29 -20
- data/lib/vsphere-automation-vapi/api/metadata_cli_command_api.rb +31 -22
- data/lib/vsphere-automation-vapi/api/metadata_cli_namespace_api.rb +34 -25
- data/lib/vsphere-automation-vapi/api/metadata_metamodel_component_api.rb +25 -16
- data/lib/vsphere-automation-vapi/api/metadata_metamodel_enumeration_api.rb +8 -10
- data/lib/vsphere-automation-vapi/api/metadata_metamodel_package_api.rb +8 -10
- data/lib/vsphere-automation-vapi/api/metadata_metamodel_resource_api.rb +6 -8
- data/lib/vsphere-automation-vapi/api/metadata_metamodel_resource_model_api.rb +6 -8
- data/lib/vsphere-automation-vapi/api/metadata_metamodel_service_api.rb +8 -10
- data/lib/vsphere-automation-vapi/api/metadata_metamodel_service_operation_api.rb +8 -10
- data/lib/vsphere-automation-vapi/api/metadata_metamodel_structure_api.rb +8 -10
- data/lib/vsphere-automation-vapi/api/metadata_privilege_component_api.rb +25 -16
- data/lib/vsphere-automation-vapi/api/metadata_privilege_package_api.rb +8 -10
- data/lib/vsphere-automation-vapi/api/metadata_privilege_service_api.rb +8 -10
- data/lib/vsphere-automation-vapi/api/metadata_privilege_service_operation_api.rb +29 -20
- data/lib/vsphere-automation-vapi/api/rest_navigation_component_api.rb +6 -8
- data/lib/vsphere-automation-vapi/api/rest_navigation_options_api.rb +27 -18
- data/lib/vsphere-automation-vapi/api/rest_navigation_resource_api.rb +8 -10
- data/lib/vsphere-automation-vapi/api/rest_navigation_root_api.rb +6 -8
- data/lib/vsphere-automation-vapi/api/rest_navigation_service_api.rb +6 -8
- data/lib/vsphere-automation-vapi/api/vcenter_activation_api.rb +21 -12
- data/lib/vsphere-automation-vapi/api_client.rb +9 -5
- data/lib/vsphere-automation-vapi/api_error.rb +4 -6
- data/lib/vsphere-automation-vapi/configuration.rb +18 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_authentication_authentication_info.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_authentication_authentication_info_scheme_type.rb +6 -8
- data/lib/vsphere-automation-vapi/models/vapi_metadata_authentication_component_data.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_authentication_component_fingerprint_result.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_authentication_component_info.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_authentication_component_info_packages.rb +17 -19
- data/lib/vsphere-automation-vapi/models/vapi_metadata_authentication_component_list_result.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_authentication_component_result.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_authentication_operation_info.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_authentication_package_info.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_authentication_package_info_services.rb +17 -19
- data/lib/vsphere-automation-vapi/models/vapi_metadata_authentication_package_list_result.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_authentication_package_result.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_authentication_service_info.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_authentication_service_info_operations.rb +17 -19
- data/lib/vsphere-automation-vapi/models/vapi_metadata_authentication_service_list_result.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_authentication_service_operation_get.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_authentication_service_operation_list_result.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_authentication_service_operation_result.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_authentication_service_result.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_cli_command_fingerprint_result.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_cli_command_formatter_type.rb +10 -12
- data/lib/vsphere-automation-vapi/models/vapi_metadata_cli_command_generic_type.rb +9 -11
- data/lib/vsphere-automation-vapi/models/vapi_metadata_cli_command_get.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_cli_command_identity.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_cli_command_info.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_cli_command_list_result.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_cli_command_option_info.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_cli_command_output_field_info.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_cli_command_output_info.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_cli_command_result.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_cli_namespace_fingerprint_result.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_cli_namespace_get.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_cli_namespace_identity.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_cli_namespace_info.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_cli_namespace_list_result.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_cli_namespace_result.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_component_data.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_component_fingerprint_result.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_component_info.rb +4 -6
- data/lib/vsphere-automation-vapi/models/{vapi_metadata_metamodel_enumeration_value_info_metadata.rb → vapi_metadata_metamodel_component_info_metadata.rb} +18 -20
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_component_info_packages.rb +17 -19
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_component_list_result.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_component_result.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_constant_info.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_constant_value.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_constant_value_category.rb +6 -8
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_element_map.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_element_map_elements.rb +17 -19
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_element_value.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_element_value_type.rb +9 -11
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_enumeration_info.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_enumeration_list_result.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_enumeration_result.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_enumeration_value_info.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_error_info.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_field_info.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_generic_instantiation.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_generic_instantiation_generic_type.rb +8 -10
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_operation_info.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_operation_result_info.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_package_info.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_package_info_enumerations.rb +17 -19
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_package_info_services.rb +17 -19
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_package_info_structures.rb +17 -19
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_package_list_result.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_package_result.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_primitive_value.rb +5 -7
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_primitive_value_type.rb +8 -10
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_resource_list_result.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_resource_model_list_result.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_service_info.rb +4 -6
- data/lib/vsphere-automation-vapi/models/{vapi_metadata_metamodel_structure_info_constants.rb → vapi_metadata_metamodel_service_info_constants.rb} +18 -20
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_service_info_operations.rb +17 -19
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_service_list_result.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_service_operation_list_result.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_service_operation_result.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_service_result.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_structure_info.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_structure_info_type.rb +6 -8
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_structure_list_result.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_structure_result.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_type.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_type_builtin_type.rb +17 -19
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_type_category.rb +7 -9
- data/lib/vsphere-automation-vapi/models/vapi_metadata_metamodel_user_defined_type.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_privilege_component_data.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_privilege_component_fingerprint_result.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_privilege_component_info.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_privilege_component_info_packages.rb +17 -19
- data/lib/vsphere-automation-vapi/models/vapi_metadata_privilege_component_list_result.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_privilege_component_result.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_privilege_operation_info.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_privilege_package_info.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_privilege_package_info_services.rb +17 -19
- data/lib/vsphere-automation-vapi/models/vapi_metadata_privilege_package_list_result.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_privilege_package_result.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_privilege_privilege_info.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_privilege_service_info.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_privilege_service_info_operations.rb +17 -19
- data/lib/vsphere-automation-vapi/models/vapi_metadata_privilege_service_list_result.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_privilege_service_operation_get.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_privilege_service_operation_list_result.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_privilege_service_operation_result.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_metadata_privilege_service_result.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_rest_navigation_component_info.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_rest_navigation_component_list_result.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_rest_navigation_http_method.rb +13 -15
- data/lib/vsphere-automation-vapi/models/vapi_rest_navigation_link.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_rest_navigation_operation.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_rest_navigation_options_get.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_rest_navigation_options_result.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_rest_navigation_reference.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_rest_navigation_resource_info.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_rest_navigation_resource_list_result.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_rest_navigation_resource_result.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_rest_navigation_root_info.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_rest_navigation_root_result.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_rest_navigation_service_info.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_rest_navigation_service_list_result.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_std_errors_not_allowed_in_current_state.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_std_errors_not_allowed_in_current_state_error.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_std_errors_not_found.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_std_errors_not_found_error.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_std_errors_service_unavailable.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_std_errors_service_unavailable_error.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_std_errors_unauthenticated.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_std_errors_unauthenticated_error.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_std_errors_unauthorized.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_std_errors_unauthorized_error.rb +4 -6
- data/lib/vsphere-automation-vapi/models/vapi_std_localizable_message.rb +4 -6
- data/lib/vsphere-automation-vapi/version.rb +5 -7
- data/spec/api/metadata_authentication_component_api_spec.rb +5 -6
- data/spec/api/metadata_authentication_package_api_spec.rb +4 -6
- data/spec/api/metadata_authentication_service_api_spec.rb +4 -6
- data/spec/api/metadata_authentication_service_operation_api_spec.rb +6 -7
- data/spec/api/metadata_cli_command_api_spec.rb +6 -7
- data/spec/api/metadata_cli_namespace_api_spec.rb +6 -7
- data/spec/api/metadata_metamodel_component_api_spec.rb +5 -6
- data/spec/api/metadata_metamodel_enumeration_api_spec.rb +4 -6
- data/spec/api/metadata_metamodel_package_api_spec.rb +4 -6
- data/spec/api/metadata_metamodel_resource_api_spec.rb +4 -6
- data/spec/api/metadata_metamodel_resource_model_api_spec.rb +4 -6
- data/spec/api/metadata_metamodel_service_api_spec.rb +4 -6
- data/spec/api/metadata_metamodel_service_operation_api_spec.rb +4 -6
- data/spec/api/metadata_metamodel_structure_api_spec.rb +4 -6
- data/spec/api/metadata_privilege_component_api_spec.rb +5 -6
- data/spec/api/metadata_privilege_package_api_spec.rb +4 -6
- data/spec/api/metadata_privilege_service_api_spec.rb +4 -6
- data/spec/api/metadata_privilege_service_operation_api_spec.rb +6 -7
- data/spec/api/rest_navigation_component_api_spec.rb +4 -6
- data/spec/api/rest_navigation_options_api_spec.rb +6 -7
- data/spec/api/rest_navigation_resource_api_spec.rb +4 -6
- data/spec/api/rest_navigation_root_api_spec.rb +4 -6
- data/spec/api/rest_navigation_service_api_spec.rb +4 -6
- data/spec/api/vcenter_activation_api_spec.rb +5 -6
- data/spec/api_client_spec.rb +4 -6
- data/spec/configuration_spec.rb +4 -6
- data/spec/models/vapi_metadata_authentication_authentication_info_scheme_type_spec.rb +4 -6
- data/spec/models/vapi_metadata_authentication_authentication_info_spec.rb +4 -6
- data/spec/models/vapi_metadata_authentication_component_data_spec.rb +4 -6
- data/spec/models/vapi_metadata_authentication_component_fingerprint_result_spec.rb +4 -6
- data/spec/models/vapi_metadata_authentication_component_info_packages_spec.rb +6 -8
- data/spec/models/vapi_metadata_authentication_component_info_spec.rb +4 -6
- data/spec/models/vapi_metadata_authentication_component_list_result_spec.rb +4 -6
- data/spec/models/vapi_metadata_authentication_component_result_spec.rb +4 -6
- data/spec/models/vapi_metadata_authentication_operation_info_spec.rb +4 -6
- data/spec/models/vapi_metadata_authentication_package_info_services_spec.rb +6 -8
- data/spec/models/vapi_metadata_authentication_package_info_spec.rb +4 -6
- data/spec/models/vapi_metadata_authentication_package_list_result_spec.rb +4 -6
- data/spec/models/vapi_metadata_authentication_package_result_spec.rb +4 -6
- data/spec/models/vapi_metadata_authentication_service_info_operations_spec.rb +6 -8
- data/spec/models/vapi_metadata_authentication_service_info_spec.rb +4 -6
- data/spec/models/vapi_metadata_authentication_service_list_result_spec.rb +4 -6
- data/spec/models/vapi_metadata_authentication_service_operation_get_spec.rb +4 -6
- data/spec/models/vapi_metadata_authentication_service_operation_list_result_spec.rb +4 -6
- data/spec/models/vapi_metadata_authentication_service_operation_result_spec.rb +4 -6
- data/spec/models/vapi_metadata_authentication_service_result_spec.rb +4 -6
- data/spec/models/vapi_metadata_cli_command_fingerprint_result_spec.rb +4 -6
- data/spec/models/vapi_metadata_cli_command_formatter_type_spec.rb +4 -6
- data/spec/models/vapi_metadata_cli_command_generic_type_spec.rb +4 -6
- data/spec/models/vapi_metadata_cli_command_get_spec.rb +4 -6
- data/spec/models/vapi_metadata_cli_command_identity_spec.rb +4 -6
- data/spec/models/vapi_metadata_cli_command_info_spec.rb +4 -6
- data/spec/models/vapi_metadata_cli_command_list_result_spec.rb +4 -6
- data/spec/models/vapi_metadata_cli_command_option_info_spec.rb +4 -6
- data/spec/models/vapi_metadata_cli_command_output_field_info_spec.rb +4 -6
- data/spec/models/vapi_metadata_cli_command_output_info_spec.rb +4 -6
- data/spec/models/vapi_metadata_cli_command_result_spec.rb +4 -6
- data/spec/models/vapi_metadata_cli_namespace_fingerprint_result_spec.rb +4 -6
- data/spec/models/vapi_metadata_cli_namespace_get_spec.rb +4 -6
- data/spec/models/vapi_metadata_cli_namespace_identity_spec.rb +4 -6
- data/spec/models/vapi_metadata_cli_namespace_info_spec.rb +4 -6
- data/spec/models/vapi_metadata_cli_namespace_list_result_spec.rb +4 -6
- data/spec/models/vapi_metadata_cli_namespace_result_spec.rb +4 -6
- data/spec/models/vapi_metadata_metamodel_component_data_spec.rb +4 -6
- data/spec/models/vapi_metadata_metamodel_component_fingerprint_result_spec.rb +4 -6
- data/spec/models/{vapi_metadata_metamodel_enumeration_value_info_metadata_spec.rb → vapi_metadata_metamodel_component_info_metadata_spec.rb} +12 -14
- data/spec/models/vapi_metadata_metamodel_component_info_packages_spec.rb +6 -8
- data/spec/models/vapi_metadata_metamodel_component_info_spec.rb +4 -6
- data/spec/models/vapi_metadata_metamodel_component_list_result_spec.rb +4 -6
- data/spec/models/vapi_metadata_metamodel_component_result_spec.rb +4 -6
- data/spec/models/vapi_metadata_metamodel_constant_info_spec.rb +4 -6
- data/spec/models/vapi_metadata_metamodel_constant_value_category_spec.rb +4 -6
- data/spec/models/vapi_metadata_metamodel_constant_value_spec.rb +4 -6
- data/spec/models/vapi_metadata_metamodel_element_map_elements_spec.rb +6 -8
- data/spec/models/vapi_metadata_metamodel_element_map_spec.rb +4 -6
- data/spec/models/vapi_metadata_metamodel_element_value_spec.rb +4 -6
- data/spec/models/vapi_metadata_metamodel_element_value_type_spec.rb +4 -6
- data/spec/models/vapi_metadata_metamodel_enumeration_info_spec.rb +4 -6
- data/spec/models/vapi_metadata_metamodel_enumeration_list_result_spec.rb +4 -6
- data/spec/models/vapi_metadata_metamodel_enumeration_result_spec.rb +4 -6
- data/spec/models/vapi_metadata_metamodel_enumeration_value_info_spec.rb +4 -6
- data/spec/models/vapi_metadata_metamodel_error_info_spec.rb +4 -6
- data/spec/models/vapi_metadata_metamodel_field_info_spec.rb +4 -6
- data/spec/models/vapi_metadata_metamodel_generic_instantiation_generic_type_spec.rb +4 -6
- data/spec/models/vapi_metadata_metamodel_generic_instantiation_spec.rb +4 -6
- data/spec/models/vapi_metadata_metamodel_operation_info_spec.rb +4 -6
- data/spec/models/vapi_metadata_metamodel_operation_result_info_spec.rb +4 -6
- data/spec/models/vapi_metadata_metamodel_package_info_enumerations_spec.rb +6 -8
- data/spec/models/vapi_metadata_metamodel_package_info_services_spec.rb +6 -8
- data/spec/models/vapi_metadata_metamodel_package_info_spec.rb +4 -6
- data/spec/models/vapi_metadata_metamodel_package_info_structures_spec.rb +6 -8
- data/spec/models/vapi_metadata_metamodel_package_list_result_spec.rb +4 -6
- data/spec/models/vapi_metadata_metamodel_package_result_spec.rb +4 -6
- data/spec/models/vapi_metadata_metamodel_primitive_value_spec.rb +4 -6
- data/spec/models/vapi_metadata_metamodel_primitive_value_type_spec.rb +4 -6
- data/spec/models/vapi_metadata_metamodel_resource_list_result_spec.rb +4 -6
- data/spec/models/vapi_metadata_metamodel_resource_model_list_result_spec.rb +4 -6
- data/spec/models/{vapi_metadata_metamodel_structure_info_constants_spec.rb → vapi_metadata_metamodel_service_info_constants_spec.rb} +12 -14
- data/spec/models/vapi_metadata_metamodel_service_info_operations_spec.rb +6 -8
- data/spec/models/vapi_metadata_metamodel_service_info_spec.rb +4 -6
- data/spec/models/vapi_metadata_metamodel_service_list_result_spec.rb +4 -6
- data/spec/models/vapi_metadata_metamodel_service_operation_list_result_spec.rb +4 -6
- data/spec/models/vapi_metadata_metamodel_service_operation_result_spec.rb +4 -6
- data/spec/models/vapi_metadata_metamodel_service_result_spec.rb +4 -6
- data/spec/models/vapi_metadata_metamodel_structure_info_spec.rb +4 -6
- data/spec/models/vapi_metadata_metamodel_structure_info_type_spec.rb +4 -6
- data/spec/models/vapi_metadata_metamodel_structure_list_result_spec.rb +4 -6
- data/spec/models/vapi_metadata_metamodel_structure_result_spec.rb +4 -6
- data/spec/models/vapi_metadata_metamodel_type_builtin_type_spec.rb +4 -6
- data/spec/models/vapi_metadata_metamodel_type_category_spec.rb +4 -6
- data/spec/models/vapi_metadata_metamodel_type_spec.rb +4 -6
- data/spec/models/vapi_metadata_metamodel_user_defined_type_spec.rb +4 -6
- data/spec/models/vapi_metadata_privilege_component_data_spec.rb +4 -6
- data/spec/models/vapi_metadata_privilege_component_fingerprint_result_spec.rb +4 -6
- data/spec/models/vapi_metadata_privilege_component_info_packages_spec.rb +6 -8
- data/spec/models/vapi_metadata_privilege_component_info_spec.rb +4 -6
- data/spec/models/vapi_metadata_privilege_component_list_result_spec.rb +4 -6
- data/spec/models/vapi_metadata_privilege_component_result_spec.rb +4 -6
- data/spec/models/vapi_metadata_privilege_operation_info_spec.rb +4 -6
- data/spec/models/vapi_metadata_privilege_package_info_services_spec.rb +6 -8
- data/spec/models/vapi_metadata_privilege_package_info_spec.rb +4 -6
- data/spec/models/vapi_metadata_privilege_package_list_result_spec.rb +4 -6
- data/spec/models/vapi_metadata_privilege_package_result_spec.rb +4 -6
- data/spec/models/vapi_metadata_privilege_privilege_info_spec.rb +4 -6
- data/spec/models/vapi_metadata_privilege_service_info_operations_spec.rb +6 -8
- data/spec/models/vapi_metadata_privilege_service_info_spec.rb +4 -6
- data/spec/models/vapi_metadata_privilege_service_list_result_spec.rb +4 -6
- data/spec/models/vapi_metadata_privilege_service_operation_get_spec.rb +4 -6
- data/spec/models/vapi_metadata_privilege_service_operation_list_result_spec.rb +4 -6
- data/spec/models/vapi_metadata_privilege_service_operation_result_spec.rb +4 -6
- data/spec/models/vapi_metadata_privilege_service_result_spec.rb +4 -6
- data/spec/models/vapi_rest_navigation_component_info_spec.rb +4 -6
- data/spec/models/vapi_rest_navigation_component_list_result_spec.rb +4 -6
- data/spec/models/vapi_rest_navigation_http_method_spec.rb +4 -6
- data/spec/models/vapi_rest_navigation_link_spec.rb +4 -6
- data/spec/models/vapi_rest_navigation_operation_spec.rb +4 -6
- data/spec/models/vapi_rest_navigation_options_get_spec.rb +4 -6
- data/spec/models/vapi_rest_navigation_options_result_spec.rb +4 -6
- data/spec/models/vapi_rest_navigation_reference_spec.rb +4 -6
- data/spec/models/vapi_rest_navigation_resource_info_spec.rb +4 -6
- data/spec/models/vapi_rest_navigation_resource_list_result_spec.rb +4 -6
- data/spec/models/vapi_rest_navigation_resource_result_spec.rb +4 -6
- data/spec/models/vapi_rest_navigation_root_info_spec.rb +4 -6
- data/spec/models/vapi_rest_navigation_root_result_spec.rb +4 -6
- data/spec/models/vapi_rest_navigation_service_info_spec.rb +4 -6
- data/spec/models/vapi_rest_navigation_service_list_result_spec.rb +4 -6
- data/spec/models/vapi_std_errors_not_allowed_in_current_state_error_spec.rb +4 -6
- data/spec/models/vapi_std_errors_not_allowed_in_current_state_spec.rb +4 -6
- data/spec/models/vapi_std_errors_not_found_error_spec.rb +4 -6
- data/spec/models/vapi_std_errors_not_found_spec.rb +4 -6
- data/spec/models/vapi_std_errors_service_unavailable_error_spec.rb +4 -6
- data/spec/models/vapi_std_errors_service_unavailable_spec.rb +4 -6
- data/spec/models/vapi_std_errors_unauthenticated_error_spec.rb +4 -6
- data/spec/models/vapi_std_errors_unauthenticated_spec.rb +4 -6
- data/spec/models/vapi_std_errors_unauthorized_error_spec.rb +4 -6
- data/spec/models/vapi_std_errors_unauthorized_spec.rb +4 -6
- data/spec/models/vapi_std_localizable_message_spec.rb +4 -6
- data/spec/spec_helper.rb +4 -6
- data/vsphere-automation-vapi.gemspec +11 -14
- metadata +26 -41
@@ -1,12 +1,10 @@
|
|
1
|
-
|
2
|
-
#
|
3
|
-
|
4
|
-
# vapi
|
1
|
+
# Copyright (c) 2018-2019 VMware, Inc. All Rights Reserved.
|
2
|
+
# SPDX-License-Identifier: MIT
|
5
3
|
|
6
|
-
#
|
4
|
+
# DO NOT MODIFY. THIS CODE IS GENERATED. CHANGES WILL BE OVERWRITTEN.
|
7
5
|
|
6
|
+
# vapi - vAPI is an extensible API Platform for modelling and delivering APIs/SDKs/CLIs.
|
8
7
|
|
9
|
-
=end
|
10
8
|
|
11
9
|
require 'uri'
|
12
10
|
|
@@ -46,14 +44,14 @@ module VSphereAutomation
|
|
46
44
|
# header parameters
|
47
45
|
header_params = {}
|
48
46
|
# HTTP header 'Accept' (if needed)
|
49
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
47
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
50
48
|
|
51
49
|
# form parameters
|
52
50
|
form_params = {}
|
53
51
|
|
54
52
|
# http body (model)
|
55
53
|
post_body = nil
|
56
|
-
auth_names = []
|
54
|
+
auth_names = ['api_key']
|
57
55
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
58
56
|
:header_params => header_params,
|
59
57
|
:query_params => query_params,
|
@@ -1,12 +1,10 @@
|
|
1
|
-
|
2
|
-
#
|
3
|
-
|
4
|
-
# vapi
|
1
|
+
# Copyright (c) 2018-2019 VMware, Inc. All Rights Reserved.
|
2
|
+
# SPDX-License-Identifier: MIT
|
5
3
|
|
6
|
-
#
|
4
|
+
# DO NOT MODIFY. THIS CODE IS GENERATED. CHANGES WILL BE OVERWRITTEN.
|
7
5
|
|
6
|
+
# vapi - vAPI is an extensible API Platform for modelling and delivering APIs/SDKs/CLIs.
|
8
7
|
|
9
|
-
=end
|
10
8
|
|
11
9
|
require 'uri'
|
12
10
|
|
@@ -19,37 +17,48 @@ module VSphereAutomation
|
|
19
17
|
@api_client = api_client
|
20
18
|
end
|
21
19
|
# Retrieves operations for specific URL.
|
22
|
-
# @param
|
20
|
+
# @param action ~action=get
|
21
|
+
# @param request_body
|
23
22
|
# @param [Hash] opts the optional parameters
|
24
23
|
# @return [VapiRestNavigationOptionsResult|VapiStdErrorsNotFoundError|]
|
25
|
-
def get(
|
26
|
-
data, _status_code, _headers = get_with_http_info(
|
24
|
+
def get(action, request_body, opts = {})
|
25
|
+
data, _status_code, _headers = get_with_http_info(action, request_body, opts)
|
27
26
|
data
|
28
27
|
end
|
29
28
|
|
30
29
|
# Retrieves operations for specific URL.
|
31
30
|
# @api private
|
32
|
-
# @param
|
31
|
+
# @param action ~action=get
|
32
|
+
# @param request_body
|
33
33
|
# @param [Hash] opts the optional parameters
|
34
34
|
# @return [Array<(VapiRestNavigationOptionsResult|VapiStdErrorsNotFoundError|, Fixnum, Hash)>] data, response status code and response headers
|
35
|
-
def get_with_http_info(
|
35
|
+
def get_with_http_info(action, request_body, opts = {})
|
36
36
|
if @api_client.config.debugging
|
37
37
|
@api_client.config.logger.debug 'Calling API: RestNavigationOptionsApi.get ...'
|
38
38
|
end
|
39
|
-
# verify the required parameter '
|
40
|
-
if @api_client.config.client_side_validation &&
|
41
|
-
fail ArgumentError, "Missing the required parameter '
|
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
|
+
# verify the required parameter 'request_body' is set
|
48
|
+
if @api_client.config.client_side_validation && request_body.nil?
|
49
|
+
fail ArgumentError, "Missing the required parameter 'request_body' when calling RestNavigationOptionsApi.get"
|
42
50
|
end
|
43
51
|
# resource path
|
44
|
-
local_var_path = '/com/vmware/vapi/rest/navigation/options
|
52
|
+
local_var_path = '/com/vmware/vapi/rest/navigation/options'
|
45
53
|
|
46
54
|
# query parameters
|
47
55
|
query_params = {}
|
56
|
+
query_params[:'~action'] = action
|
48
57
|
|
49
58
|
# header parameters
|
50
59
|
header_params = {}
|
51
60
|
# HTTP header 'Accept' (if needed)
|
52
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
61
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
53
62
|
# HTTP header 'Content-Type'
|
54
63
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
55
64
|
|
@@ -57,8 +66,8 @@ module VSphereAutomation
|
|
57
66
|
form_params = {}
|
58
67
|
|
59
68
|
# http body (model)
|
60
|
-
post_body = @api_client.object_to_http_body(
|
61
|
-
auth_names = []
|
69
|
+
post_body = @api_client.object_to_http_body(request_body)
|
70
|
+
auth_names = ['api_key']
|
62
71
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
63
72
|
:header_params => header_params,
|
64
73
|
:query_params => query_params,
|
@@ -1,12 +1,10 @@
|
|
1
|
-
|
2
|
-
#
|
3
|
-
|
4
|
-
# vapi
|
1
|
+
# Copyright (c) 2018-2019 VMware, Inc. All Rights Reserved.
|
2
|
+
# SPDX-License-Identifier: MIT
|
5
3
|
|
6
|
-
#
|
4
|
+
# DO NOT MODIFY. THIS CODE IS GENERATED. CHANGES WILL BE OVERWRITTEN.
|
7
5
|
|
6
|
+
# vapi - vAPI is an extensible API Platform for modelling and delivering APIs/SDKs/CLIs.
|
8
7
|
|
9
|
-
=end
|
10
8
|
|
11
9
|
require 'uri'
|
12
10
|
|
@@ -58,14 +56,14 @@ module VSphereAutomation
|
|
58
56
|
# header parameters
|
59
57
|
header_params = {}
|
60
58
|
# HTTP header 'Accept' (if needed)
|
61
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
59
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
62
60
|
|
63
61
|
# form parameters
|
64
62
|
form_params = {}
|
65
63
|
|
66
64
|
# http body (model)
|
67
65
|
post_body = nil
|
68
|
-
auth_names = []
|
66
|
+
auth_names = ['api_key']
|
69
67
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
70
68
|
:header_params => header_params,
|
71
69
|
:query_params => query_params,
|
@@ -108,14 +106,14 @@ module VSphereAutomation
|
|
108
106
|
# header parameters
|
109
107
|
header_params = {}
|
110
108
|
# HTTP header 'Accept' (if needed)
|
111
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
109
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
112
110
|
|
113
111
|
# form parameters
|
114
112
|
form_params = {}
|
115
113
|
|
116
114
|
# http body (model)
|
117
115
|
post_body = nil
|
118
|
-
auth_names = []
|
116
|
+
auth_names = ['api_key']
|
119
117
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
120
118
|
:header_params => header_params,
|
121
119
|
:query_params => query_params,
|
@@ -1,12 +1,10 @@
|
|
1
|
-
|
2
|
-
#
|
3
|
-
|
4
|
-
# vapi
|
1
|
+
# Copyright (c) 2018-2019 VMware, Inc. All Rights Reserved.
|
2
|
+
# SPDX-License-Identifier: MIT
|
5
3
|
|
6
|
-
#
|
4
|
+
# DO NOT MODIFY. THIS CODE IS GENERATED. CHANGES WILL BE OVERWRITTEN.
|
7
5
|
|
6
|
+
# vapi - vAPI is an extensible API Platform for modelling and delivering APIs/SDKs/CLIs.
|
8
7
|
|
9
|
-
=end
|
10
8
|
|
11
9
|
require 'uri'
|
12
10
|
|
@@ -46,14 +44,14 @@ module VSphereAutomation
|
|
46
44
|
# header parameters
|
47
45
|
header_params = {}
|
48
46
|
# HTTP header 'Accept' (if needed)
|
49
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
47
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
50
48
|
|
51
49
|
# form parameters
|
52
50
|
form_params = {}
|
53
51
|
|
54
52
|
# http body (model)
|
55
53
|
post_body = nil
|
56
|
-
auth_names = []
|
54
|
+
auth_names = ['api_key']
|
57
55
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
58
56
|
:header_params => header_params,
|
59
57
|
:query_params => query_params,
|
@@ -1,12 +1,10 @@
|
|
1
|
-
|
2
|
-
#
|
3
|
-
|
4
|
-
# vapi
|
1
|
+
# Copyright (c) 2018-2019 VMware, Inc. All Rights Reserved.
|
2
|
+
# SPDX-License-Identifier: MIT
|
5
3
|
|
6
|
-
#
|
4
|
+
# DO NOT MODIFY. THIS CODE IS GENERATED. CHANGES WILL BE OVERWRITTEN.
|
7
5
|
|
6
|
+
# vapi - vAPI is an extensible API Platform for modelling and delivering APIs/SDKs/CLIs.
|
8
7
|
|
9
|
-
=end
|
10
8
|
|
11
9
|
require 'uri'
|
12
10
|
|
@@ -53,14 +51,14 @@ module VSphereAutomation
|
|
53
51
|
# header parameters
|
54
52
|
header_params = {}
|
55
53
|
# HTTP header 'Accept' (if needed)
|
56
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
57
55
|
|
58
56
|
# form parameters
|
59
57
|
form_params = {}
|
60
58
|
|
61
59
|
# http body (model)
|
62
60
|
post_body = nil
|
63
|
-
auth_names = []
|
61
|
+
auth_names = ['api_key']
|
64
62
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
65
63
|
:header_params => header_params,
|
66
64
|
:query_params => query_params,
|
@@ -1,12 +1,10 @@
|
|
1
|
-
|
2
|
-
#
|
3
|
-
|
4
|
-
# vapi
|
1
|
+
# Copyright (c) 2018-2019 VMware, Inc. All Rights Reserved.
|
2
|
+
# SPDX-License-Identifier: MIT
|
5
3
|
|
6
|
-
#
|
4
|
+
# DO NOT MODIFY. THIS CODE IS GENERATED. CHANGES WILL BE OVERWRITTEN.
|
7
5
|
|
6
|
+
# vapi - vAPI is an extensible API Platform for modelling and delivering APIs/SDKs/CLIs.
|
8
7
|
|
9
|
-
=end
|
10
8
|
|
11
9
|
require 'uri'
|
12
10
|
|
@@ -20,19 +18,21 @@ module VSphereAutomation
|
|
20
18
|
end
|
21
19
|
# Sends a request to cancel the task associated with the provided {@param.name activationId}.
|
22
20
|
# @param activation_id the {@param.name activationId} associated with a vCenter Server task to be canceled.
|
21
|
+
# @param action ~action=cancel
|
23
22
|
# @param [Hash] opts the optional parameters
|
24
23
|
# @return [|VapiStdErrorsNotAllowedInCurrentStateError|VapiStdErrorsUnauthenticatedError|VapiStdErrorsUnauthorizedError|VapiStdErrorsNotFoundError|VapiStdErrorsServiceUnavailableError|nil]
|
25
|
-
def cancel(activation_id, opts = {})
|
26
|
-
cancel_with_http_info(activation_id, opts)
|
24
|
+
def cancel(activation_id, action, opts = {})
|
25
|
+
cancel_with_http_info(activation_id, action, opts)
|
27
26
|
nil
|
28
27
|
end
|
29
28
|
|
30
29
|
# Sends a request to cancel the task associated with the provided {@param.name activationId}.
|
31
30
|
# @api private
|
32
31
|
# @param activation_id the {@param.name activationId} associated with a vCenter Server task to be canceled.
|
32
|
+
# @param action ~action=cancel
|
33
33
|
# @param [Hash] opts the optional parameters
|
34
34
|
# @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, opts = {})
|
35
|
+
def cancel_with_http_info(activation_id, action, opts = {})
|
36
36
|
if @api_client.config.debugging
|
37
37
|
@api_client.config.logger.debug 'Calling API: VcenterActivationApi.cancel ...'
|
38
38
|
end
|
@@ -40,23 +40,32 @@ module VSphereAutomation
|
|
40
40
|
if @api_client.config.client_side_validation && activation_id.nil?
|
41
41
|
fail ArgumentError, "Missing the required parameter 'activation_id' when calling VcenterActivationApi.cancel"
|
42
42
|
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
|
43
51
|
# resource path
|
44
|
-
local_var_path = '/com/vmware/vapi/vcenter/activation/id:{activation_id}
|
52
|
+
local_var_path = '/com/vmware/vapi/vcenter/activation/id:{activation_id}'.sub('{' + 'activation_id' + '}', activation_id.to_s)
|
45
53
|
|
46
54
|
# query parameters
|
47
55
|
query_params = {}
|
56
|
+
query_params[:'~action'] = action
|
48
57
|
|
49
58
|
# header parameters
|
50
59
|
header_params = {}
|
51
60
|
# HTTP header 'Accept' (if needed)
|
52
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
61
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
53
62
|
|
54
63
|
# form parameters
|
55
64
|
form_params = {}
|
56
65
|
|
57
66
|
# http body (model)
|
58
67
|
post_body = nil
|
59
|
-
auth_names = []
|
68
|
+
auth_names = ['api_key']
|
60
69
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
61
70
|
:header_params => header_params,
|
62
71
|
:query_params => query_params,
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
|
-
#
|
3
|
-
|
4
|
-
# vapi
|
2
|
+
# Copyright (c) 2018-2019 VMware, Inc. All Rights Reserved.
|
3
|
+
# SPDX-License-Identifier: MIT
|
5
4
|
|
6
|
-
#
|
5
|
+
# DO NOT MODIFY. THIS CODE IS GENERATED. CHANGES WILL BE OVERWRITTEN.
|
7
6
|
|
7
|
+
# vapi - vAPI is an extensible API Platform for modelling and delivering APIs/SDKs/CLIs.
|
8
8
|
|
9
9
|
=end
|
10
10
|
|
@@ -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 = "
|
32
|
+
@user_agent = "SDK/0.2.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
|
@@ -69,6 +69,9 @@ module VSphereAutomation
|
|
69
69
|
|
70
70
|
if opts[:return_type]
|
71
71
|
data = deserialize(response, opts[:return_type][response.code.to_s])
|
72
|
+
if path == '/com/vmware/cis/session'
|
73
|
+
@config.api_key['vmware-api-session-id'] = data.value
|
74
|
+
end
|
72
75
|
else
|
73
76
|
data = nil
|
74
77
|
end
|
@@ -92,6 +95,7 @@ module VSphereAutomation
|
|
92
95
|
query_params = opts[:query_params] || {}
|
93
96
|
form_params = opts[:form_params] || {}
|
94
97
|
|
98
|
+
update_params_for_auth! header_params, query_params, opts[:auth_names]
|
95
99
|
|
96
100
|
# set ssl_verifyhosts option based on @config.verify_ssl_host (true/false)
|
97
101
|
_verify_ssl_host = @config.verify_ssl_host ? 2 : 0
|
@@ -1,12 +1,10 @@
|
|
1
|
-
|
2
|
-
#
|
3
|
-
|
4
|
-
# vapi
|
1
|
+
# Copyright (c) 2018-2019 VMware, Inc. All Rights Reserved.
|
2
|
+
# SPDX-License-Identifier: MIT
|
5
3
|
|
6
|
-
#
|
4
|
+
# DO NOT MODIFY. THIS CODE IS GENERATED. CHANGES WILL BE OVERWRITTEN.
|
7
5
|
|
6
|
+
# vapi - vAPI is an extensible API Platform for modelling and delivering APIs/SDKs/CLIs.
|
8
7
|
|
9
|
-
=end
|
10
8
|
|
11
9
|
module VSphereAutomation
|
12
10
|
class ApiError < StandardError
|
@@ -1,12 +1,10 @@
|
|
1
|
-
|
2
|
-
#
|
3
|
-
|
4
|
-
# vapi
|
1
|
+
# Copyright (c) 2018-2019 VMware, Inc. All Rights Reserved.
|
2
|
+
# SPDX-License-Identifier: MIT
|
5
3
|
|
6
|
-
#
|
4
|
+
# DO NOT MODIFY. THIS CODE IS GENERATED. CHANGES WILL BE OVERWRITTEN.
|
7
5
|
|
6
|
+
# vapi - vAPI is an extensible API Platform for modelling and delivering APIs/SDKs/CLIs.
|
8
7
|
|
9
|
-
=end
|
10
8
|
|
11
9
|
require 'uri'
|
12
10
|
|
@@ -194,6 +192,20 @@ module VSphereAutomation
|
|
194
192
|
# Returns Auth Settings hash for api client.
|
195
193
|
def auth_settings
|
196
194
|
{
|
195
|
+
'api_key' =>
|
196
|
+
{
|
197
|
+
type: 'api_key',
|
198
|
+
in: 'header',
|
199
|
+
key: 'vmware-api-session-id',
|
200
|
+
value: api_key_with_prefix('vmware-api-session-id')
|
201
|
+
},
|
202
|
+
'basic_auth' =>
|
203
|
+
{
|
204
|
+
type: 'basic',
|
205
|
+
in: 'header',
|
206
|
+
key: 'Authorization',
|
207
|
+
value: basic_auth_token
|
208
|
+
},
|
197
209
|
}
|
198
210
|
end
|
199
211
|
end
|
@@ -1,12 +1,10 @@
|
|
1
|
-
|
2
|
-
#
|
3
|
-
|
4
|
-
# vapi
|
1
|
+
# Copyright (c) 2018-2019 VMware, Inc. All Rights Reserved.
|
2
|
+
# SPDX-License-Identifier: MIT
|
5
3
|
|
6
|
-
#
|
4
|
+
# DO NOT MODIFY. THIS CODE IS GENERATED. CHANGES WILL BE OVERWRITTEN.
|
7
5
|
|
6
|
+
# vapi - vAPI is an extensible API Platform for modelling and delivering APIs/SDKs/CLIs.
|
8
7
|
|
9
|
-
=end
|
10
8
|
|
11
9
|
require 'date'
|
12
10
|
|
@@ -1,12 +1,10 @@
|
|
1
|
-
|
2
|
-
#
|
3
|
-
|
4
|
-
# vapi
|
1
|
+
# Copyright (c) 2018-2019 VMware, Inc. All Rights Reserved.
|
2
|
+
# SPDX-License-Identifier: MIT
|
5
3
|
|
6
|
-
#
|
4
|
+
# DO NOT MODIFY. THIS CODE IS GENERATED. CHANGES WILL BE OVERWRITTEN.
|
7
5
|
|
6
|
+
# vapi - vAPI is an extensible API Platform for modelling and delivering APIs/SDKs/CLIs.
|
8
7
|
|
9
|
-
=end
|
10
8
|
|
11
9
|
require 'date'
|
12
10
|
|
@@ -14,8 +12,8 @@ module VSphereAutomation
|
|
14
12
|
module VAPI
|
15
13
|
class VapiMetadataAuthenticationAuthenticationInfoSchemeType
|
16
14
|
|
17
|
-
SESSIONLESS =
|
18
|
-
SESSION_AWARE =
|
15
|
+
SESSIONLESS = "SESSIONLESS".freeze
|
16
|
+
SESSION_AWARE = "SESSION_AWARE".freeze
|
19
17
|
|
20
18
|
# Builds the enum from string
|
21
19
|
# @param [String] The enum value in the form of the string
|