lib/oci/mysql/db_system_client.rb
# Update the configuration of a DB System.
#
# Updating different fields in the DB System will have different results
# on the uptime of the DB System. For example, changing the displayName of
# a DB System will take effect immediately, but changing the shape of a
# DB System is an asynchronous operation that involves provisioning new
# Compute resources, pausing the DB System and migrating storage
# before making the DB System available again.
#
# @param [String] db_system_id The DB System [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
# @param [OCI::Mysql::Models::UpdateDbSystemDetails] update_db_system_details Request to update a DB System.
# @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] :if_match For optimistic concurrency control. In the PUT or DELETE call for a
#   resource, set the `If-Match` header to the value of the etag from a
#   previous GET or POST response for that resource. The resource will be
#   updated or deleted only if the etag you provide matches the resource's
#   current etag value.
#
# @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 nil
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/mysql/update_db_system.rb.html) to see an example of how to use update_db_system API.
Update the configuration of a DB System.
Updating different fields in the DB System will have different results
on the uptime of the DB System. For example, changing the displayName of
a DB System will take effect immediately, but changing the shape of a
DB System is an asynchronous operation that involves provisioning new
Compute resources, pausing the DB System and migrating storage
before making the DB System available again.
Update the configuration of a DB System . Updating different fields in the DB System will have different results on the uptime of the DB System . For example changing the displayName of a DB System will take effect immediately but changing the shape of a DB System is an asynchronous operation that involves provisioning new Compute resources pausing the DB System and migrating storage before making the DB System available again .
def update_db_system(db_system_id, update_db_system_details, opts = {})
      logger.debug 'Calling operation DbSystemClient#update_db_system.' if logger
      raise "Missing the required parameter 'db_system_id' when calling update_db_system." if db_system_id.nil?
      raise "Missing the required parameter 'update_db_system_details' when calling update_db_system." if update_db_system_details.nil?
      raise "Parameter value for 'db_system_id' must not be blank" if OCI::Internal::Util.blank_string?(db_system_id)
      path = '/dbSystems/{dbSystemId}'.sub('{dbSystemId}', db_system_id.to_s)
      operation_signing_strategy = :standard
      query_params = {}
      header_params = {}
      header_params[:accept] = 'application/json'
      header_params[:'content-type'] = 'application/json'
      header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
      header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
      post_body = @api_client.object_to_http_body(update_db_system_details)
      OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DbSystemClient#update_db_system') do
        @api_client.call_api(
          :PUT,
          path,
          endpoint,
          header_params: header_params,
          query_params: query_params,
          operation_signing_strategy: operation_signing_strategy,
          body: post_body
        )
      end
    end
def update_db_system ( db_system_id , update_db_system_details , opts = { } ) logger . debug 'Calling operation DbSystemClient#update_db_system.' if logger raise "Missing the required parameter 'db_system_id' when calling update_db_system." if db_system_id . nil? raise "Missing the required parameter 'update_db_system_details' when calling update_db_system." if update_db_system_details . nil? raise "Parameter value for 'db_system_id' must not be blank" if OCI :: Internal :: Util . blank_string? ( db_system_id ) path = '/dbSystems/{dbSystemId}' . sub ( '{dbSystemId}' , db_system_id . to_s ) operation_signing_strategy = :standard query_params = { } header_params = { } header_params [ :accept ] = 'application/json' header_params [ :' content-type ' ] = 'application/json' header_params [ :' if-match ' ] = opts [ :if_match ] if opts [ :if_match ] header_params [ :' opc-request-id ' ] = opts [ :opc_request_id ] if opts [ :opc_request_id ] post_body = @api_client . object_to_http_body ( update_db_system_details ) OCI :: Retry . make_retrying_call ( applicable_retry_config ( opts ) , call_name : 'DbSystemClient#update_db_system' ) do @api_client . call_api ( :PUT , path , endpoint , header_params : header_params , query_params : query_params , operation_signing_strategy : operation_signing_strategy , body : post_body ) end end
Update the configuration of a DB System.
Update the configuration of a DB System .
# 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 nil
A Response object with data of type nil
Response
db_system_id
update_db_system_details
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 update_db_system API.
Click [ here ] to see an example of how to use update_db_system API .