Class: OCI::Mysql::DbSystemClient
- Inherits:
-
Object
- Object
- OCI::Mysql::DbSystemClient
- Defined in:
- lib/oci/mysql/db_system_client.rb
Overview
The API for the MySQL Database Service
Instance Attribute Summary collapse
-
#api_client ⇒ OCI::ApiClient
readonly
Client used to make HTTP requests.
-
#endpoint ⇒ String
readonly
Fully qualified endpoint URL.
-
#region ⇒ String
The region, which will usually correspond to a value in Regions::REGION_ENUM.
-
#retry_config ⇒ OCI::Retry::RetryConfig
readonly
The default retry configuration to apply to all operations in this service client.
Instance Method Summary collapse
-
#add_heat_wave_cluster(db_system_id, add_heat_wave_cluster_details, opts = {}) ⇒ Response
Adds a HeatWave cluster to the DB System.
-
#controlled_update_db_system(db_system_id, controlled_update_db_system_details, opts = {}) ⇒ Response
Update the chosen subset of MySQL instances based on their role.
-
#create_db_system(create_db_system_details, opts = {}) ⇒ Response
Creates and launches a DB System.
-
#delete_db_system(db_system_id, opts = {}) ⇒ Response
Delete a DB System, including terminating, detaching, removing, finalizing and otherwise deleting all related resources.
-
#delete_heat_wave_cluster(db_system_id, opts = {}) ⇒ Response
Deletes the HeatWave cluster including terminating, detaching, removing, finalizing and otherwise deleting all related resources.
-
#generate_db_system_status(db_system_id, generate_db_system_status_details, opts = {}) ⇒ Response
Initiates an asynchronous request to collect the current status of the specified DB System, including the status of any attached Channels (if requested).
-
#generate_heat_wave_cluster_memory_estimate(db_system_id, opts = {}) ⇒ Response
Sends a request to estimate the memory footprints of user tables when loaded to HeatWave cluster memory.
-
#get_db_system(db_system_id, opts = {}) ⇒ Response
Get information about the specified DB System.
-
#get_db_system_status(db_system_id, opts = {}) ⇒ Response
Returns the most up-to-date status of the specified DB System, including the status of any requested Channels.
-
#get_heat_wave_cluster(db_system_id, opts = {}) ⇒ Response
Gets information about the HeatWave cluster.
-
#get_heat_wave_cluster_memory_estimate(db_system_id, opts = {}) ⇒ Response
Gets the most recent HeatWave cluster memory estimate that can be used to determine a suitable HeatWave cluster size.
-
#initialize(config: nil, region: nil, endpoint: nil, signer: nil, proxy_settings: nil, retry_config: nil) ⇒ DbSystemClient
constructor
Creates a new DbSystemClient.
-
#list_db_systems(compartment_id, opts = {}) ⇒ Response
Get a list of DB Systems in the specified compartment.
-
#list_maintenance_events(db_system_id, opts = {}) ⇒ Response
List all the maintenance events.
-
#logger ⇒ Logger
The logger for this client.
-
#restart_db_system(db_system_id, restart_db_system_details, opts = {}) ⇒ Response
Restarts the specified DB System.
-
#restart_heat_wave_cluster(db_system_id, opts = {}) ⇒ Response
Restarts the HeatWave cluster.
-
#start_db_system(db_system_id, opts = {}) ⇒ Response
Start the specified DB System.
-
#start_heat_wave_cluster(db_system_id, opts = {}) ⇒ Response
Starts the HeatWave cluster.
-
#stop_db_system(db_system_id, stop_db_system_details, opts = {}) ⇒ Response
Stops the specified DB System.
-
#stop_heat_wave_cluster(db_system_id, opts = {}) ⇒ Response
Stops the HeatWave cluster.
-
#update_db_system(db_system_id, update_db_system_details, opts = {}) ⇒ Response
Update the configuration of a DB System.
-
#update_heat_wave_cluster(db_system_id, update_heat_wave_cluster_details, opts = {}) ⇒ Response
Updates the HeatWave cluster.
Constructor Details
#initialize(config: nil, region: nil, endpoint: nil, signer: nil, proxy_settings: nil, retry_config: nil) ⇒ DbSystemClient
Creates a new DbSystemClient. Notes: If a config is not specified, then the global OCI.config will be used.
This client is not thread-safe
Either a region or an endpoint must be specified. If an endpoint is specified, it will be used instead of the region. A region may be specified in the config or via or the region parameter. If specified in both, then the region parameter will be used.
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/oci/mysql/db_system_client.rb', line 55 def initialize(config: nil, region: nil, endpoint: nil, signer: nil, proxy_settings: nil, retry_config: nil) # If the signer is an InstancePrincipalsSecurityTokenSigner or SecurityTokenSigner and no config was supplied (they are self-sufficient signers) # then create a dummy config to pass to the ApiClient constructor. If customers wish to create a client which uses instance principals # and has config (either populated programmatically or loaded from a file), they must construct that config themselves and then # pass it to this constructor. # # If there is no signer (or the signer is not an instance principals signer) and no config was supplied, this is not valid # so try and load the config from the default file. config = OCI::Config.validate_and_build_config_with_signer(config, signer) signer = OCI::Signer.config_file_auth_builder(config) if signer.nil? @api_client = OCI::ApiClient.new(config, signer, proxy_settings: proxy_settings) @retry_config = retry_config if endpoint @endpoint = endpoint + '/20190415' else region ||= config.region region ||= signer.region if signer.respond_to?(:region) self.region = region end logger.info "DbSystemClient endpoint set to '#{@endpoint}'." if logger end |
Instance Attribute Details
#api_client ⇒ OCI::ApiClient (readonly)
Client used to make HTTP requests.
15 16 17 |
# File 'lib/oci/mysql/db_system_client.rb', line 15 def api_client @api_client end |
#endpoint ⇒ String (readonly)
Fully qualified endpoint URL
19 20 21 |
# File 'lib/oci/mysql/db_system_client.rb', line 19 def endpoint @endpoint end |
#region ⇒ String
The region, which will usually correspond to a value in Regions::REGION_ENUM.
29 30 31 |
# File 'lib/oci/mysql/db_system_client.rb', line 29 def region @region end |
#retry_config ⇒ OCI::Retry::RetryConfig (readonly)
The default retry configuration to apply to all operations in this service client. This can be overridden on a per-operation basis. The default retry configuration value is nil, which means that an operation will not perform any retries
25 26 27 |
# File 'lib/oci/mysql/db_system_client.rb', line 25 def retry_config @retry_config end |
Instance Method Details
#add_heat_wave_cluster(db_system_id, add_heat_wave_cluster_details, opts = {}) ⇒ Response
Click here to see an example of how to use add_heat_wave_cluster API.
Adds a HeatWave cluster to the DB System.
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 |
# File 'lib/oci/mysql/db_system_client.rb', line 129 def add_heat_wave_cluster(db_system_id, add_heat_wave_cluster_details, opts = {}) logger.debug 'Calling operation DbSystemClient#add_heat_wave_cluster.' if logger raise "Missing the required parameter 'db_system_id' when calling add_heat_wave_cluster." if db_system_id.nil? raise "Missing the required parameter 'add_heat_wave_cluster_details' when calling add_heat_wave_cluster." if add_heat_wave_cluster_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}/heatWaveCluster/actions/add'.sub('{dbSystemId}', db_system_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header 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] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(add_heat_wave_cluster_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbSystemClient#add_heat_wave_cluster') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Mysql::Models::HeatWaveCluster' ) end # rubocop:enable Metrics/BlockLength end |
#controlled_update_db_system(db_system_id, controlled_update_db_system_details, opts = {}) ⇒ Response
Click here to see an example of how to use controlled_update_db_system API.
Update the chosen subset of MySQL instances based on their role.
205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 |
# File 'lib/oci/mysql/db_system_client.rb', line 205 def controlled_update_db_system(db_system_id, controlled_update_db_system_details, opts = {}) logger.debug 'Calling operation DbSystemClient#controlled_update_db_system.' if logger raise "Missing the required parameter 'db_system_id' when calling controlled_update_db_system." if db_system_id.nil? raise "Missing the required parameter 'controlled_update_db_system_details' when calling controlled_update_db_system." if controlled_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}/actions/controlledUpdate'.sub('{dbSystemId}', db_system_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header 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] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(controlled_update_db_system_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbSystemClient#controlled_update_db_system') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#create_db_system(create_db_system_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_db_system API.
Creates and launches a DB System.
273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 |
# File 'lib/oci/mysql/db_system_client.rb', line 273 def create_db_system(create_db_system_details, opts = {}) logger.debug 'Calling operation DbSystemClient#create_db_system.' if logger raise "Missing the required parameter 'create_db_system_details' when calling create_db_system." if create_db_system_details.nil? path = '/dbSystems' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # 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] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_db_system_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbSystemClient#create_db_system') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Mysql::Models::DbSystem' ) end # rubocop:enable Metrics/BlockLength end |
#delete_db_system(db_system_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_db_system API.
Delete a DB System, including terminating, detaching, removing, finalizing and otherwise deleting all related resources.
339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 |
# File 'lib/oci/mysql/db_system_client.rb', line 339 def delete_db_system(db_system_id, opts = {}) logger.debug 'Calling operation DbSystemClient#delete_db_system.' if logger raise "Missing the required parameter 'db_system_id' when calling delete_db_system." if db_system_id.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 # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header 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] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbSystemClient#delete_db_system') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#delete_heat_wave_cluster(db_system_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_heat_wave_cluster API.
Deletes the HeatWave cluster including terminating, detaching, removing, finalizing and otherwise deleting all related resources.
404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 |
# File 'lib/oci/mysql/db_system_client.rb', line 404 def delete_heat_wave_cluster(db_system_id, opts = {}) logger.debug 'Calling operation DbSystemClient#delete_heat_wave_cluster.' if logger raise "Missing the required parameter 'db_system_id' when calling delete_heat_wave_cluster." if db_system_id.nil? raise "Parameter value for 'db_system_id' must not be blank" if OCI::Internal::Util.blank_string?(db_system_id) path = '/dbSystems/{dbSystemId}/heatWaveCluster'.sub('{dbSystemId}', db_system_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header 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] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbSystemClient#delete_heat_wave_cluster') do @api_client.call_api( :DELETE, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#generate_db_system_status(db_system_id, generate_db_system_status_details, opts = {}) ⇒ Response
Click here to see an example of how to use generate_db_system_status API.
Initiates an asynchronous request to collect the current status of the specified DB System, including the status of any attached Channels (if requested).
471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 |
# File 'lib/oci/mysql/db_system_client.rb', line 471 def generate_db_system_status(db_system_id, generate_db_system_status_details, opts = {}) logger.debug 'Calling operation DbSystemClient#generate_db_system_status.' if logger raise "Missing the required parameter 'db_system_id' when calling generate_db_system_status." if db_system_id.nil? raise "Missing the required parameter 'generate_db_system_status_details' when calling generate_db_system_status." if generate_db_system_status_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}/actions/generateDbSystemStatus'.sub('{dbSystemId}', db_system_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # 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] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(generate_db_system_status_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbSystemClient#generate_db_system_status') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Mysql::Models::DbSystemStatus' ) end # rubocop:enable Metrics/BlockLength end |
#generate_heat_wave_cluster_memory_estimate(db_system_id, opts = {}) ⇒ Response
Click here to see an example of how to use generate_heat_wave_cluster_memory_estimate API.
Sends a request to estimate the memory footprints of user tables when loaded to HeatWave cluster memory.
539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 |
# File 'lib/oci/mysql/db_system_client.rb', line 539 def generate_heat_wave_cluster_memory_estimate(db_system_id, opts = {}) logger.debug 'Calling operation DbSystemClient#generate_heat_wave_cluster_memory_estimate.' if logger raise "Missing the required parameter 'db_system_id' when calling generate_heat_wave_cluster_memory_estimate." if db_system_id.nil? raise "Parameter value for 'db_system_id' must not be blank" if OCI::Internal::Util.blank_string?(db_system_id) path = '/dbSystems/{dbSystemId}/heatWaveClusterMemoryEstimate/actions/generate'.sub('{dbSystemId}', db_system_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # 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] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbSystemClient#generate_heat_wave_cluster_memory_estimate') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body, return_type: 'OCI::Mysql::Models::HeatWaveClusterMemoryEstimate' ) end # rubocop:enable Metrics/BlockLength end |
#get_db_system(db_system_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_db_system API.
Get information about the specified DB System.
604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 |
# File 'lib/oci/mysql/db_system_client.rb', line 604 def get_db_system(db_system_id, opts = {}) logger.debug 'Calling operation DbSystemClient#get_db_system.' if logger raise "Missing the required parameter 'db_system_id' when calling get_db_system." if db_system_id.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 # rubocop:disable Style/NegatedIf # Query Params query_params = {} # 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] header_params[:'if-none-match'] = opts[:if_none_match] if opts[:if_none_match] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbSystemClient#get_db_system') 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: 'OCI::Mysql::Models::DbSystem' ) end # rubocop:enable Metrics/BlockLength end |
#get_db_system_status(db_system_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_db_system_status API.
Returns the most up-to-date status of the specified DB System, including the status of any requested Channels.
664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 |
# File 'lib/oci/mysql/db_system_client.rb', line 664 def get_db_system_status(db_system_id, opts = {}) logger.debug 'Calling operation DbSystemClient#get_db_system_status.' if logger raise "Missing the required parameter 'db_system_id' when calling get_db_system_status." if db_system_id.nil? raise "Parameter value for 'db_system_id' must not be blank" if OCI::Internal::Util.blank_string?(db_system_id) path = '/dbSystems/{dbSystemId}/dbSystemStatus'.sub('{dbSystemId}', db_system_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # 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.(applicable_retry_config(opts), call_name: 'DbSystemClient#get_db_system_status') 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: 'OCI::Mysql::Models::DbSystemStatus' ) end # rubocop:enable Metrics/BlockLength end |
#get_heat_wave_cluster(db_system_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_heat_wave_cluster API.
Gets information about the HeatWave cluster.
727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 |
# File 'lib/oci/mysql/db_system_client.rb', line 727 def get_heat_wave_cluster(db_system_id, opts = {}) logger.debug 'Calling operation DbSystemClient#get_heat_wave_cluster.' if logger raise "Missing the required parameter 'db_system_id' when calling get_heat_wave_cluster." if db_system_id.nil? raise "Parameter value for 'db_system_id' must not be blank" if OCI::Internal::Util.blank_string?(db_system_id) path = '/dbSystems/{dbSystemId}/heatWaveCluster'.sub('{dbSystemId}', db_system_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # 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] header_params[:'if-none-match'] = opts[:if_none_match] if opts[:if_none_match] # rubocop:enable Style/NegatedIf post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbSystemClient#get_heat_wave_cluster') 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: 'OCI::Mysql::Models::HeatWaveCluster' ) end # rubocop:enable Metrics/BlockLength end |
#get_heat_wave_cluster_memory_estimate(db_system_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_heat_wave_cluster_memory_estimate API.
Gets the most recent HeatWave cluster memory estimate that can be used to determine a suitable HeatWave cluster size.
787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 |
# File 'lib/oci/mysql/db_system_client.rb', line 787 def get_heat_wave_cluster_memory_estimate(db_system_id, opts = {}) logger.debug 'Calling operation DbSystemClient#get_heat_wave_cluster_memory_estimate.' if logger raise "Missing the required parameter 'db_system_id' when calling get_heat_wave_cluster_memory_estimate." if db_system_id.nil? raise "Parameter value for 'db_system_id' must not be blank" if OCI::Internal::Util.blank_string?(db_system_id) path = '/dbSystems/{dbSystemId}/heatWaveClusterMemoryEstimate'.sub('{dbSystemId}', db_system_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # 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.(applicable_retry_config(opts), call_name: 'DbSystemClient#get_heat_wave_cluster_memory_estimate') 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: 'OCI::Mysql::Models::HeatWaveClusterMemoryEstimate' ) end # rubocop:enable Metrics/BlockLength end |
#list_db_systems(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_db_systems API.
Get a list of DB Systems in the specified compartment. The default sort order is by timeUpdated, descending.
Allowed values are: displayName, timeCreated
872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 |
# File 'lib/oci/mysql/db_system_client.rb', line 872 def list_db_systems(compartment_id, opts = {}) logger.debug 'Calling operation DbSystemClient#list_db_systems.' if logger raise "Missing the required parameter 'compartment_id' when calling list_db_systems." if compartment_id.nil? if opts[:lifecycle_state] && !OCI::Mysql::Models::DbSystem::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Mysql::Models::DbSystem::LIFECYCLE_STATE_ENUM.' end database_management_allowable_values = %w[ENABLED DISABLED] if opts[:database_management] && !opts[:database_management].empty? opts[:database_management].each do |val_to_check| unless database_management_allowable_values.include?(val_to_check) raise 'Invalid value for "database_management", must be one of ENABLED, DISABLED.' end end end if opts[:sort_by] && !%w[displayName timeCreated].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of displayName, timeCreated.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end path = '/dbSystems' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:isHeatWaveClusterAttached] = opts[:is_heat_wave_cluster_attached] if !opts[:is_heat_wave_cluster_attached].nil? query_params[:dbSystemId] = opts[:db_system_id] if opts[:db_system_id] query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:configurationId] = opts[:configuration_id] if opts[:configuration_id] query_params[:isUpToDate] = opts[:is_up_to_date] if !opts[:is_up_to_date].nil? query_params[:databaseManagement] = OCI::ApiClient.build_collection_params(opts[:database_management], :multi) if opts[:database_management] && !opts[:database_management].empty? query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] # 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.(applicable_retry_config(opts), call_name: 'DbSystemClient#list_db_systems') 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::DbSystemSummary>' ) end # rubocop:enable Metrics/BlockLength end |
#list_maintenance_events(db_system_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_maintenance_events API.
List all the maintenance events.
980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 |
# File 'lib/oci/mysql/db_system_client.rb', line 980 def list_maintenance_events(db_system_id, opts = {}) logger.debug 'Calling operation DbSystemClient#list_maintenance_events.' if logger raise "Missing the required parameter 'db_system_id' when calling list_maintenance_events." if db_system_id.nil? if opts[:maintenance_type] && !OCI::Mysql::Models::MAINTENANCE_TYPE_ENUM.include?(opts[:maintenance_type]) raise 'Invalid value for "maintenance_type", must be one of the values in OCI::Mysql::Models::MAINTENANCE_TYPE_ENUM.' end if opts[:maintenance_action] && !OCI::Mysql::Models::MAINTENANCE_ACTION_ENUM.include?(opts[:maintenance_action]) raise 'Invalid value for "maintenance_action", must be one of the values in OCI::Mysql::Models::MAINTENANCE_ACTION_ENUM.' end if opts[:maintenance_status] && !OCI::Mysql::Models::MaintenanceEvent::MAINTENANCE_STATUS_ENUM.include?(opts[:maintenance_status]) raise 'Invalid value for "maintenance_status", must be one of the values in OCI::Mysql::Models::MaintenanceEvent::MAINTENANCE_STATUS_ENUM.' end if opts[:sort_by] && !%w[timeCreated timeScheduled timeStarted timeEnded].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of timeCreated, timeScheduled, timeStarted, timeEnded.' end if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of ASC, DESC.' end raise "Parameter value for 'db_system_id' must not be blank" if OCI::Internal::Util.blank_string?(db_system_id) path = '/dbSystems/{dbSystemId}/maintenanceEvents'.sub('{dbSystemId}', db_system_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:mysqlVersionBeforeMaintenance] = opts[:mysql_version_before_maintenance] if opts[:mysql_version_before_maintenance] query_params[:mysqlVersionAfterMaintenance] = opts[:mysql_version_after_maintenance] if opts[:mysql_version_after_maintenance] query_params[:maintenanceType] = opts[:maintenance_type] if opts[:maintenance_type] query_params[:maintenanceAction] = opts[:maintenance_action] if opts[:maintenance_action] query_params[:maintenanceStatus] = opts[:maintenance_status] if opts[:maintenance_status] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] # 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.(applicable_retry_config(opts), call_name: 'DbSystemClient#list_maintenance_events') 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::MaintenanceEvent>' ) end # rubocop:enable Metrics/BlockLength end |
#logger ⇒ Logger
Returns The logger for this client. May be nil.
94 95 96 |
# File 'lib/oci/mysql/db_system_client.rb', line 94 def logger @api_client.config.logger end |
#restart_db_system(db_system_id, restart_db_system_details, opts = {}) ⇒ Response
Click here to see an example of how to use restart_db_system API.
Restarts the specified DB System.
1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 |
# File 'lib/oci/mysql/db_system_client.rb', line 1080 def restart_db_system(db_system_id, restart_db_system_details, opts = {}) logger.debug 'Calling operation DbSystemClient#restart_db_system.' if logger raise "Missing the required parameter 'db_system_id' when calling restart_db_system." if db_system_id.nil? raise "Missing the required parameter 'restart_db_system_details' when calling restart_db_system." if restart_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}/actions/restart'.sub('{dbSystemId}', db_system_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header 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] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(restart_db_system_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbSystemClient#restart_db_system') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#restart_heat_wave_cluster(db_system_id, opts = {}) ⇒ Response
Click here to see an example of how to use restart_heat_wave_cluster API.
Restarts the HeatWave cluster.
1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 |
# File 'lib/oci/mysql/db_system_client.rb', line 1153 def restart_heat_wave_cluster(db_system_id, opts = {}) logger.debug 'Calling operation DbSystemClient#restart_heat_wave_cluster.' if logger raise "Missing the required parameter 'db_system_id' when calling restart_heat_wave_cluster." if db_system_id.nil? raise "Parameter value for 'db_system_id' must not be blank" if OCI::Internal::Util.blank_string?(db_system_id) path = '/dbSystems/{dbSystemId}/heatWaveCluster/actions/restart'.sub('{dbSystemId}', db_system_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header 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] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbSystemClient#restart_heat_wave_cluster') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#start_db_system(db_system_id, opts = {}) ⇒ Response
Click here to see an example of how to use start_db_system API.
Start the specified DB System.
1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 |
# File 'lib/oci/mysql/db_system_client.rb', line 1225 def start_db_system(db_system_id, opts = {}) logger.debug 'Calling operation DbSystemClient#start_db_system.' if logger raise "Missing the required parameter 'db_system_id' when calling start_db_system." if db_system_id.nil? raise "Parameter value for 'db_system_id' must not be blank" if OCI::Internal::Util.blank_string?(db_system_id) path = '/dbSystems/{dbSystemId}/actions/start'.sub('{dbSystemId}', db_system_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header 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] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbSystemClient#start_db_system') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#start_heat_wave_cluster(db_system_id, opts = {}) ⇒ Response
Click here to see an example of how to use start_heat_wave_cluster API.
Starts the HeatWave cluster.
1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 |
# File 'lib/oci/mysql/db_system_client.rb', line 1297 def start_heat_wave_cluster(db_system_id, opts = {}) logger.debug 'Calling operation DbSystemClient#start_heat_wave_cluster.' if logger raise "Missing the required parameter 'db_system_id' when calling start_heat_wave_cluster." if db_system_id.nil? raise "Parameter value for 'db_system_id' must not be blank" if OCI::Internal::Util.blank_string?(db_system_id) path = '/dbSystems/{dbSystemId}/heatWaveCluster/actions/start'.sub('{dbSystemId}', db_system_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header 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] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbSystemClient#start_heat_wave_cluster') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#stop_db_system(db_system_id, stop_db_system_details, opts = {}) ⇒ Response
Click here to see an example of how to use stop_db_system API.
Stops the specified DB System.
A stopped DB System is not billed.
1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 |
# File 'lib/oci/mysql/db_system_client.rb', line 1373 def stop_db_system(db_system_id, stop_db_system_details, opts = {}) logger.debug 'Calling operation DbSystemClient#stop_db_system.' if logger raise "Missing the required parameter 'db_system_id' when calling stop_db_system." if db_system_id.nil? raise "Missing the required parameter 'stop_db_system_details' when calling stop_db_system." if stop_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}/actions/stop'.sub('{dbSystemId}', db_system_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header 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] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(stop_db_system_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbSystemClient#stop_db_system') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#stop_heat_wave_cluster(db_system_id, opts = {}) ⇒ Response
Click here to see an example of how to use stop_heat_wave_cluster API.
Stops the HeatWave cluster.
1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 |
# File 'lib/oci/mysql/db_system_client.rb', line 1446 def stop_heat_wave_cluster(db_system_id, opts = {}) logger.debug 'Calling operation DbSystemClient#stop_heat_wave_cluster.' if logger raise "Missing the required parameter 'db_system_id' when calling stop_heat_wave_cluster." if db_system_id.nil? raise "Parameter value for 'db_system_id' must not be blank" if OCI::Internal::Util.blank_string?(db_system_id) path = '/dbSystems/{dbSystemId}/heatWaveCluster/actions/stop'.sub('{dbSystemId}', db_system_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header 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] header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = nil # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbSystemClient#stop_heat_wave_cluster') do @api_client.call_api( :POST, path, endpoint, header_params: header_params, query_params: query_params, operation_signing_strategy: operation_signing_strategy, body: post_body ) end # rubocop:enable Metrics/BlockLength end |
#update_db_system(db_system_id, update_db_system_details, opts = {}) ⇒ Response
Click here 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.
1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 |
# File 'lib/oci/mysql/db_system_client.rb', line 1520 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 # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header 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] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_db_system_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(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 # rubocop:enable Metrics/BlockLength end |
#update_heat_wave_cluster(db_system_id, update_heat_wave_cluster_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_heat_wave_cluster API.
Updates the HeatWave cluster.
1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 |
# File 'lib/oci/mysql/db_system_client.rb', line 1586 def update_heat_wave_cluster(db_system_id, update_heat_wave_cluster_details, opts = {}) logger.debug 'Calling operation DbSystemClient#update_heat_wave_cluster.' if logger raise "Missing the required parameter 'db_system_id' when calling update_heat_wave_cluster." if db_system_id.nil? raise "Missing the required parameter 'update_heat_wave_cluster_details' when calling update_heat_wave_cluster." if update_heat_wave_cluster_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}/heatWaveCluster'.sub('{dbSystemId}', db_system_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} # Header 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] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(update_heat_wave_cluster_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DbSystemClient#update_heat_wave_cluster') 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 # rubocop:enable Metrics/BlockLength end |