lib/oci/mysql/mysqlaas_client.rb
def list_versions(compartment_id, opts = {})
      logger.debug 'Calling operation MysqlaasClient#list_versions.' if logger

      raise "Missing the required parameter 'compartment_id' when calling list_versions." if compartment_id.nil?

      path = '/versions'
      operation_signing_strategy = :standard

      # rubocop:disable Style/NegatedIf
      # Query Params
      query_params = {}
      query_params[:compartmentId] = compartment_id

      # Header Params
      header_params = {}
      header_params[:accept] = 'application/json'
      header_params[:'content-type'] = 'application/json'
      header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
      # rubocop:enable Style/NegatedIf

      post_body = nil

      # rubocop:disable Metrics/BlockLength
      OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'MysqlaasClient#list_versions') do
        @api_client.call_api(
          :GET,
          path,
          endpoint,
          header_params: header_params,
          query_params: query_params,
          operation_signing_strategy: operation_signing_strategy,
          body: post_body,
          return_type: 'Array<OCI::Mysql::Models::VersionSummary>'
        )
      end
      # rubocop:enable Metrics/BlockLength
    end
# Get a list of supported and available MySQL database major versions.
#
# The list is sorted by version family.
#
# @param [String] compartment_id The compartment [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
# @param [Hash] opts the optional parameters
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
#   retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
# @option opts [String] :opc_request_id Customer-defined unique identifier for the request. If you need to
#   contact Oracle about a specific request, please provide the request
#   ID that you supplied in this header with the request.
#
# @return [Response] A Response object with data of type Array<{OCI::Mysql::Models::VersionSummary VersionSummary}>
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/mysql/list_versions.rb.html) to see an example of how to use list_versions API.
Get a list of supported and available MySQL database major versions.
The list is sorted by version family.
Get a list of supported and available MySQL database major versions . The list is sorted by version family .
def list_versions(compartment_id, opts = {})
      logger.debug 'Calling operation MysqlaasClient#list_versions.' if logger
      raise "Missing the required parameter 'compartment_id' when calling list_versions." if compartment_id.nil?
      path = '/versions'
      operation_signing_strategy = :standard
      query_params = {}
      query_params[:compartmentId] = compartment_id
      header_params = {}
      header_params[:accept] = 'application/json'
      header_params[:'content-type'] = 'application/json'
      header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
      post_body = nil
      OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'MysqlaasClient#list_versions') do
        @api_client.call_api(
          :GET,
          path,
          endpoint,
          header_params: header_params,
          query_params: query_params,
          operation_signing_strategy: operation_signing_strategy,
          body: post_body,
          return_type: 'Array<OCI::Mysql::Models::VersionSummary>'
        )
      end
    end
def list_versions ( compartment_id , opts = { } ) logger . debug 'Calling operation MysqlaasClient#list_versions.' if logger raise "Missing the required parameter 'compartment_id' when calling list_versions." if compartment_id . nil? path = '/versions' operation_signing_strategy = :standard query_params = { } query_params [ :compartmentId ] = compartment_id header_params = { } header_params [ :accept ] = 'application/json' header_params [ :' content-type ' ] = 'application/json' header_params [ :' opc-request-id ' ] = opts [ :opc_request_id ] if opts [ :opc_request_id ] post_body = nil OCI :: Retry . make_retrying_call ( applicable_retry_config ( opts ) , call_name : 'MysqlaasClient#list_versions' ) do @api_client . call_api ( :GET , path , endpoint , header_params : header_params , query_params : query_params , operation_signing_strategy : operation_signing_strategy , body : post_body , return_type : 'Array<OCI::Mysql::Models::VersionSummary>' ) end end
Get a list of supported and available MySQL database major versions.
Get a list of supported and available MySQL database major versions .
# rubocop:disable Style/NegatedIf # Query Params # Header Params # rubocop:enable Style/NegatedIf # rubocop:disable Metrics/BlockLength # rubocop:enable Metrics/BlockLength
A Response object with data of type Array<{OCI::Mysql::Models::VersionSummary VersionSummary}>
A Response object with data of type Array< { OCI :: Mysql :: Models :: VersionSummary VersionSummary } >
Response
compartment_id
opts
:opc_request_id Customer-defined unique identifier for the request. If you need to contact Oracle about a specific request, please provide the request ID that you supplied in this header with the request.
: opc_request_id Customer - defined unique identifier for the request . If you need to contact Oracle about a specific request please provide the request ID that you supplied in this header with the request .
opts the optional parameters
opts the optional parameters
note
Click [here] to see an example of how to use list_versions API.
Click [ here ] to see an example of how to use list_versions API .