Class: OCI::DatabaseTools::DatabaseToolsClient
- Inherits:
-
Object
- Object
- OCI::DatabaseTools::DatabaseToolsClient
- Defined in:
- lib/oci/database_tools/database_tools_client.rb
Overview
Use the Database Tools API to manage connections, private endpoints, and work requests in the Database Tools 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_database_tools_connection_lock(database_tools_connection_id, add_resource_lock_details, opts = {}) ⇒ Response
Adds a lock to a DatabaseToolsConnection resource.
-
#add_database_tools_private_endpoint_lock(database_tools_private_endpoint_id, add_resource_lock_details, opts = {}) ⇒ Response
Adds a lock to a DatabaseToolsPrivateEndpoint resource.
-
#change_database_tools_connection_compartment(database_tools_connection_id, change_database_tools_connection_compartment_details, opts = {}) ⇒ Response
Moves the specified Database Tools connection to a different compartment in the same tenancy.
-
#change_database_tools_private_endpoint_compartment(database_tools_private_endpoint_id, change_database_tools_private_endpoint_compartment_details, opts = {}) ⇒ Response
Moves a Database Tools private endpoint into a different compartment in the same tenancy.
-
#create_database_tools_connection(create_database_tools_connection_details, opts = {}) ⇒ Response
Creates a new Database Tools connection.
-
#create_database_tools_private_endpoint(create_database_tools_private_endpoint_details, opts = {}) ⇒ Response
Creates a new Database Tools private endpoint.
-
#delete_database_tools_connection(database_tools_connection_id, opts = {}) ⇒ Response
Deletes the specified Database Tools connection resource.
-
#delete_database_tools_private_endpoint(database_tools_private_endpoint_id, opts = {}) ⇒ Response
Deletes the specified Database Tools private endpoint.
-
#get_database_tools_connection(database_tools_connection_id, opts = {}) ⇒ Response
Gets details of the specified Database Tools connection.
-
#get_database_tools_endpoint_service(database_tools_endpoint_service_id, opts = {}) ⇒ Response
Gets details for the specified Database Tools endpoint service.
-
#get_database_tools_private_endpoint(database_tools_private_endpoint_id, opts = {}) ⇒ Response
Gets details of a specified Database Tools private endpoint.
-
#get_work_request(work_request_id, opts = {}) ⇒ Response
Gets the status of the specified work request.
-
#initialize(config: nil, region: nil, endpoint: nil, signer: nil, proxy_settings: nil, retry_config: nil) ⇒ DatabaseToolsClient
constructor
Creates a new DatabaseToolsClient.
-
#list_database_tools_connections(compartment_id, opts = {}) ⇒ Response
Returns a list of Database Tools connections.
-
#list_database_tools_endpoint_services(compartment_id, opts = {}) ⇒ Response
Returns a list of Database Tools endpoint services.
-
#list_database_tools_private_endpoints(compartment_id, opts = {}) ⇒ Response
Returns a list of Database Tools private endpoints.
-
#list_work_request_errors(work_request_id, opts = {}) ⇒ Response
Returns a paginated list of errors for the specified work request.
-
#list_work_request_logs(work_request_id, opts = {}) ⇒ Response
Returns a paginated list of logs for the specified work request.
-
#list_work_requests(compartment_id, opts = {}) ⇒ Response
Lists the work requests in a compartment.
-
#logger ⇒ Logger
The logger for this client.
-
#remove_database_tools_connection_lock(database_tools_connection_id, remove_resource_lock_details, opts = {}) ⇒ Response
Removes a lock from a DatabaseToolsConnection resource.
-
#remove_database_tools_private_endpoint_lock(database_tools_private_endpoint_id, remove_resource_lock_details, opts = {}) ⇒ Response
Removes a lock from a DatabaseToolsPrivateEndpoint resource.
-
#update_database_tools_connection(database_tools_connection_id, update_database_tools_connection_details, opts = {}) ⇒ Response
Updates the specified Database Tools connection.
-
#update_database_tools_private_endpoint(database_tools_private_endpoint_id, update_database_tools_private_endpoint_details, opts = {}) ⇒ Response
Updates the specified Database Tools private endpoint.
-
#validate_database_tools_connection(database_tools_connection_id, validate_database_tools_connection_details, opts = {}) ⇒ Response
Validates the Database Tools connection details by establishing a connection to the database.
Constructor Details
#initialize(config: nil, region: nil, endpoint: nil, signer: nil, proxy_settings: nil, retry_config: nil) ⇒ DatabaseToolsClient
Creates a new DatabaseToolsClient. 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/database_tools/database_tools_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 + '/20201005' else region ||= config.region region ||= signer.region if signer.respond_to?(:region) self.region = region end logger.info "DatabaseToolsClient 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/database_tools/database_tools_client.rb', line 15 def api_client @api_client end |
#endpoint ⇒ String (readonly)
Fully qualified endpoint URL
19 20 21 |
# File 'lib/oci/database_tools/database_tools_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/database_tools/database_tools_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/database_tools/database_tools_client.rb', line 25 def retry_config @retry_config end |
Instance Method Details
#add_database_tools_connection_lock(database_tools_connection_id, add_resource_lock_details, opts = {}) ⇒ Response
Click here to see an example of how to use add_database_tools_connection_lock API.
Adds a lock to a DatabaseToolsConnection resource.
118 119 120 121 122 123 124 125 126 127 128 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 |
# File 'lib/oci/database_tools/database_tools_client.rb', line 118 def add_database_tools_connection_lock(database_tools_connection_id, add_resource_lock_details, opts = {}) logger.debug 'Calling operation DatabaseToolsClient#add_database_tools_connection_lock.' if logger raise "Missing the required parameter 'database_tools_connection_id' when calling add_database_tools_connection_lock." if database_tools_connection_id.nil? raise "Missing the required parameter 'add_resource_lock_details' when calling add_database_tools_connection_lock." if add_resource_lock_details.nil? raise "Parameter value for 'database_tools_connection_id' must not be blank" if OCI::Internal::Util.blank_string?(database_tools_connection_id) path = '/databaseToolsConnections/{databaseToolsConnectionId}/actions/addLock'.sub('{databaseToolsConnectionId}', database_tools_connection_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-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(add_resource_lock_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DatabaseToolsClient#add_database_tools_connection_lock') 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::DatabaseTools::Models::DatabaseToolsConnection' ) end # rubocop:enable Metrics/BlockLength end |
#add_database_tools_private_endpoint_lock(database_tools_private_endpoint_id, add_resource_lock_details, opts = {}) ⇒ Response
Click here to see an example of how to use add_database_tools_private_endpoint_lock API.
Adds a lock to a DatabaseToolsPrivateEndpoint resource.
181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 |
# File 'lib/oci/database_tools/database_tools_client.rb', line 181 def add_database_tools_private_endpoint_lock(database_tools_private_endpoint_id, add_resource_lock_details, opts = {}) logger.debug 'Calling operation DatabaseToolsClient#add_database_tools_private_endpoint_lock.' if logger raise "Missing the required parameter 'database_tools_private_endpoint_id' when calling add_database_tools_private_endpoint_lock." if database_tools_private_endpoint_id.nil? raise "Missing the required parameter 'add_resource_lock_details' when calling add_database_tools_private_endpoint_lock." if add_resource_lock_details.nil? raise "Parameter value for 'database_tools_private_endpoint_id' must not be blank" if OCI::Internal::Util.blank_string?(database_tools_private_endpoint_id) path = '/databaseToolsPrivateEndpoints/{databaseToolsPrivateEndpointId}/actions/addLock'.sub('{databaseToolsPrivateEndpointId}', database_tools_private_endpoint_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-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(add_resource_lock_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DatabaseToolsClient#add_database_tools_private_endpoint_lock') 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::DatabaseTools::Models::DatabaseToolsPrivateEndpoint' ) end # rubocop:enable Metrics/BlockLength end |
#change_database_tools_connection_compartment(database_tools_connection_id, change_database_tools_connection_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_database_tools_connection_compartment API.
Moves the specified Database Tools connection to a different compartment in the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 |
# File 'lib/oci/database_tools/database_tools_client.rb', line 248 def change_database_tools_connection_compartment(database_tools_connection_id, change_database_tools_connection_compartment_details, opts = {}) logger.debug 'Calling operation DatabaseToolsClient#change_database_tools_connection_compartment.' if logger raise "Missing the required parameter 'database_tools_connection_id' when calling change_database_tools_connection_compartment." if database_tools_connection_id.nil? raise "Missing the required parameter 'change_database_tools_connection_compartment_details' when calling change_database_tools_connection_compartment." if change_database_tools_connection_compartment_details.nil? raise "Parameter value for 'database_tools_connection_id' must not be blank" if OCI::Internal::Util.blank_string?(database_tools_connection_id) path = '/databaseToolsConnections/{databaseToolsConnectionId}/actions/changeCompartment'.sub('{databaseToolsConnectionId}', database_tools_connection_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:isLockOverride] = opts[:is_lock_override] if !opts[:is_lock_override].nil? # 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(change_database_tools_connection_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DatabaseToolsClient#change_database_tools_connection_compartment') 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 |
#change_database_tools_private_endpoint_compartment(database_tools_private_endpoint_id, change_database_tools_private_endpoint_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_database_tools_private_endpoint_compartment API.
Moves a Database Tools private endpoint into a different compartment in the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 |
# File 'lib/oci/database_tools/database_tools_client.rb', line 315 def change_database_tools_private_endpoint_compartment(database_tools_private_endpoint_id, change_database_tools_private_endpoint_compartment_details, opts = {}) logger.debug 'Calling operation DatabaseToolsClient#change_database_tools_private_endpoint_compartment.' if logger raise "Missing the required parameter 'database_tools_private_endpoint_id' when calling change_database_tools_private_endpoint_compartment." if database_tools_private_endpoint_id.nil? raise "Missing the required parameter 'change_database_tools_private_endpoint_compartment_details' when calling change_database_tools_private_endpoint_compartment." if change_database_tools_private_endpoint_compartment_details.nil? raise "Parameter value for 'database_tools_private_endpoint_id' must not be blank" if OCI::Internal::Util.blank_string?(database_tools_private_endpoint_id) path = '/databaseToolsPrivateEndpoints/{databaseToolsPrivateEndpointId}/actions/changeCompartment'.sub('{databaseToolsPrivateEndpointId}', database_tools_private_endpoint_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:isLockOverride] = opts[:is_lock_override] if !opts[:is_lock_override].nil? # 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(change_database_tools_private_endpoint_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DatabaseToolsClient#change_database_tools_private_endpoint_compartment') 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_database_tools_connection(create_database_tools_connection_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_database_tools_connection API.
Creates a new Database Tools connection.
380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 |
# File 'lib/oci/database_tools/database_tools_client.rb', line 380 def create_database_tools_connection(create_database_tools_connection_details, opts = {}) logger.debug 'Calling operation DatabaseToolsClient#create_database_tools_connection.' if logger raise "Missing the required parameter 'create_database_tools_connection_details' when calling create_database_tools_connection." if create_database_tools_connection_details.nil? path = '/databaseToolsConnections' 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-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_database_tools_connection_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DatabaseToolsClient#create_database_tools_connection') 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::DatabaseTools::Models::DatabaseToolsConnection' ) end # rubocop:enable Metrics/BlockLength end |
#create_database_tools_private_endpoint(create_database_tools_private_endpoint_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_database_tools_private_endpoint API.
Creates a new Database Tools private endpoint.
444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 |
# File 'lib/oci/database_tools/database_tools_client.rb', line 444 def create_database_tools_private_endpoint(create_database_tools_private_endpoint_details, opts = {}) logger.debug 'Calling operation DatabaseToolsClient#create_database_tools_private_endpoint.' if logger raise "Missing the required parameter 'create_database_tools_private_endpoint_details' when calling create_database_tools_private_endpoint." if create_database_tools_private_endpoint_details.nil? path = '/databaseToolsPrivateEndpoints' 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-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token] header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id] # rubocop:enable Style/NegatedIf header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token post_body = @api_client.object_to_http_body(create_database_tools_private_endpoint_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DatabaseToolsClient#create_database_tools_private_endpoint') 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::DatabaseTools::Models::DatabaseToolsPrivateEndpoint' ) end # rubocop:enable Metrics/BlockLength end |
#delete_database_tools_connection(database_tools_connection_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_database_tools_connection API.
Deletes the specified Database Tools connection resource.
506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 |
# File 'lib/oci/database_tools/database_tools_client.rb', line 506 def delete_database_tools_connection(database_tools_connection_id, opts = {}) logger.debug 'Calling operation DatabaseToolsClient#delete_database_tools_connection.' if logger raise "Missing the required parameter 'database_tools_connection_id' when calling delete_database_tools_connection." if database_tools_connection_id.nil? raise "Parameter value for 'database_tools_connection_id' must not be blank" if OCI::Internal::Util.blank_string?(database_tools_connection_id) path = '/databaseToolsConnections/{databaseToolsConnectionId}'.sub('{databaseToolsConnectionId}', database_tools_connection_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:isLockOverride] = opts[:is_lock_override] if !opts[:is_lock_override].nil? # 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: 'DatabaseToolsClient#delete_database_tools_connection') 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_database_tools_private_endpoint(database_tools_private_endpoint_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_database_tools_private_endpoint API.
Deletes the specified Database Tools private endpoint.
568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 |
# File 'lib/oci/database_tools/database_tools_client.rb', line 568 def delete_database_tools_private_endpoint(database_tools_private_endpoint_id, opts = {}) logger.debug 'Calling operation DatabaseToolsClient#delete_database_tools_private_endpoint.' if logger raise "Missing the required parameter 'database_tools_private_endpoint_id' when calling delete_database_tools_private_endpoint." if database_tools_private_endpoint_id.nil? raise "Parameter value for 'database_tools_private_endpoint_id' must not be blank" if OCI::Internal::Util.blank_string?(database_tools_private_endpoint_id) path = '/databaseToolsPrivateEndpoints/{databaseToolsPrivateEndpointId}'.sub('{databaseToolsPrivateEndpointId}', database_tools_private_endpoint_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:isLockOverride] = opts[:is_lock_override] if !opts[:is_lock_override].nil? # 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: 'DatabaseToolsClient#delete_database_tools_private_endpoint') 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 |
#get_database_tools_connection(database_tools_connection_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_database_tools_connection API.
Gets details of the specified Database Tools connection.
623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 |
# File 'lib/oci/database_tools/database_tools_client.rb', line 623 def get_database_tools_connection(database_tools_connection_id, opts = {}) logger.debug 'Calling operation DatabaseToolsClient#get_database_tools_connection.' if logger raise "Missing the required parameter 'database_tools_connection_id' when calling get_database_tools_connection." if database_tools_connection_id.nil? raise "Parameter value for 'database_tools_connection_id' must not be blank" if OCI::Internal::Util.blank_string?(database_tools_connection_id) path = '/databaseToolsConnections/{databaseToolsConnectionId}'.sub('{databaseToolsConnectionId}', database_tools_connection_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: 'DatabaseToolsClient#get_database_tools_connection') 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::DatabaseTools::Models::DatabaseToolsConnection' ) end # rubocop:enable Metrics/BlockLength end |
#get_database_tools_endpoint_service(database_tools_endpoint_service_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_database_tools_endpoint_service API.
Gets details for the specified Database Tools endpoint service.
677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 |
# File 'lib/oci/database_tools/database_tools_client.rb', line 677 def get_database_tools_endpoint_service(database_tools_endpoint_service_id, opts = {}) logger.debug 'Calling operation DatabaseToolsClient#get_database_tools_endpoint_service.' if logger raise "Missing the required parameter 'database_tools_endpoint_service_id' when calling get_database_tools_endpoint_service." if database_tools_endpoint_service_id.nil? raise "Parameter value for 'database_tools_endpoint_service_id' must not be blank" if OCI::Internal::Util.blank_string?(database_tools_endpoint_service_id) path = '/databaseToolsEndpointServices/{databaseToolsEndpointServiceId}'.sub('{databaseToolsEndpointServiceId}', database_tools_endpoint_service_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: 'DatabaseToolsClient#get_database_tools_endpoint_service') 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::DatabaseTools::Models::DatabaseToolsEndpointService' ) end # rubocop:enable Metrics/BlockLength end |
#get_database_tools_private_endpoint(database_tools_private_endpoint_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_database_tools_private_endpoint API.
Gets details of a specified Database Tools private endpoint.
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 765 766 767 |
# File 'lib/oci/database_tools/database_tools_client.rb', line 731 def get_database_tools_private_endpoint(database_tools_private_endpoint_id, opts = {}) logger.debug 'Calling operation DatabaseToolsClient#get_database_tools_private_endpoint.' if logger raise "Missing the required parameter 'database_tools_private_endpoint_id' when calling get_database_tools_private_endpoint." if database_tools_private_endpoint_id.nil? raise "Parameter value for 'database_tools_private_endpoint_id' must not be blank" if OCI::Internal::Util.blank_string?(database_tools_private_endpoint_id) path = '/databaseToolsPrivateEndpoints/{databaseToolsPrivateEndpointId}'.sub('{databaseToolsPrivateEndpointId}', database_tools_private_endpoint_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: 'DatabaseToolsClient#get_database_tools_private_endpoint') 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::DatabaseTools::Models::DatabaseToolsPrivateEndpoint' ) end # rubocop:enable Metrics/BlockLength end |
#get_work_request(work_request_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_work_request API.
Gets the status of the specified work request.
785 786 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 |
# File 'lib/oci/database_tools/database_tools_client.rb', line 785 def get_work_request(work_request_id, opts = {}) logger.debug 'Calling operation DatabaseToolsClient#get_work_request.' if logger raise "Missing the required parameter 'work_request_id' when calling get_work_request." if work_request_id.nil? raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id) path = '/workRequests/{workRequestId}'.sub('{workRequestId}', work_request_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: 'DatabaseToolsClient#get_work_request') 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::DatabaseTools::Models::WorkRequest' ) end # rubocop:enable Metrics/BlockLength end |
#list_database_tools_connections(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_database_tools_connections API.
Returns a list of Database Tools connections.
Allowed values are: timeCreated, displayName
853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 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 |
# File 'lib/oci/database_tools/database_tools_client.rb', line 853 def list_database_tools_connections(compartment_id, opts = {}) logger.debug 'Calling operation DatabaseToolsClient#list_database_tools_connections.' if logger raise "Missing the required parameter 'compartment_id' when calling list_database_tools_connections." if compartment_id.nil? if opts[:lifecycle_state] && !OCI::DatabaseTools::Models::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::DatabaseTools::Models::LIFECYCLE_STATE_ENUM.' end type_allowable_values = %w[ORACLE_DATABASE MYSQL POSTGRESQL GENERIC_JDBC] if opts[:type] && !opts[:type].empty? opts[:type].each do |val_to_check| unless type_allowable_values.include?(val_to_check) raise 'Invalid value for "type", must be one of ORACLE_DATABASE, MYSQL, POSTGRESQL, GENERIC_JDBC.' end end end runtime_support_allowable_values = %w[SUPPORTED UNSUPPORTED] if opts[:runtime_support] && !opts[:runtime_support].empty? opts[:runtime_support].each do |val_to_check| unless runtime_support_allowable_values.include?(val_to_check) raise 'Invalid value for "runtime_support", must be one of SUPPORTED, UNSUPPORTED.' end end end if opts[:sort_order] && !OCI::DatabaseTools::Models::SORT_ORDER_ENUM.include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of the values in OCI::DatabaseTools::Models::SORT_ORDER_ENUM.' end if opts[:sort_by] && !%w[timeCreated displayName].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of timeCreated, displayName.' end path = '/databaseToolsConnections' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:type] = OCI::ApiClient.build_collection_params(opts[:type], :multi) if opts[:type] && !opts[:type].empty? query_params[:runtimeSupport] = OCI::ApiClient.build_collection_params(opts[:runtime_support], :multi) if opts[:runtime_support] && !opts[:runtime_support].empty? query_params[:relatedResourceIdentifier] = opts[:related_resource_identifier] if opts[:related_resource_identifier] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] # 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: 'DatabaseToolsClient#list_database_tools_connections') 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::DatabaseTools::Models::DatabaseToolsConnectionCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_database_tools_endpoint_services(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_database_tools_endpoint_services API.
Returns a list of Database Tools endpoint services.
Allowed values are: timeCreated, displayName
958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 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 |
# File 'lib/oci/database_tools/database_tools_client.rb', line 958 def list_database_tools_endpoint_services(compartment_id, opts = {}) logger.debug 'Calling operation DatabaseToolsClient#list_database_tools_endpoint_services.' if logger raise "Missing the required parameter 'compartment_id' when calling list_database_tools_endpoint_services." if compartment_id.nil? if opts[:sort_order] && !OCI::DatabaseTools::Models::SORT_ORDER_ENUM.include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of the values in OCI::DatabaseTools::Models::SORT_ORDER_ENUM.' end if opts[:sort_by] && !%w[timeCreated displayName].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of timeCreated, displayName.' end if opts[:lifecycle_state] && !OCI::DatabaseTools::Models::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::DatabaseTools::Models::LIFECYCLE_STATE_ENUM.' end path = '/databaseToolsEndpointServices' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:name] = opts[:name] if opts[:name] # 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: 'DatabaseToolsClient#list_database_tools_endpoint_services') 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::DatabaseTools::Models::DatabaseToolsEndpointServiceCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_database_tools_private_endpoints(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_database_tools_private_endpoints API.
Returns a list of Database Tools private endpoints.
Allowed values are: timeCreated, displayName
1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 |
# File 'lib/oci/database_tools/database_tools_client.rb', line 1042 def list_database_tools_private_endpoints(compartment_id, opts = {}) logger.debug 'Calling operation DatabaseToolsClient#list_database_tools_private_endpoints.' if logger raise "Missing the required parameter 'compartment_id' when calling list_database_tools_private_endpoints." if compartment_id.nil? if opts[:sort_order] && !OCI::DatabaseTools::Models::SORT_ORDER_ENUM.include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of the values in OCI::DatabaseTools::Models::SORT_ORDER_ENUM.' end if opts[:sort_by] && !%w[timeCreated displayName].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of timeCreated, displayName.' end if opts[:lifecycle_state] && !OCI::DatabaseTools::Models::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::DatabaseTools::Models::LIFECYCLE_STATE_ENUM.' end path = '/databaseToolsPrivateEndpoints' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:subnetId] = opts[:subnet_id] if opts[:subnet_id] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:endpointServiceId] = opts[:endpoint_service_id] if opts[:endpoint_service_id] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:displayName] = opts[:display_name] if opts[:display_name] # 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: 'DatabaseToolsClient#list_database_tools_private_endpoints') 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::DatabaseTools::Models::DatabaseToolsPrivateEndpointCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_work_request_errors(work_request_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_work_request_errors API.
Returns a paginated list of errors for the specified work request.
Allowed values are: timeCreated, displayName
1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 |
# File 'lib/oci/database_tools/database_tools_client.rb', line 1123 def list_work_request_errors(work_request_id, opts = {}) logger.debug 'Calling operation DatabaseToolsClient#list_work_request_errors.' if logger raise "Missing the required parameter 'work_request_id' when calling list_work_request_errors." if work_request_id.nil? if opts[:sort_order] && !OCI::DatabaseTools::Models::SORT_ORDER_ENUM.include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of the values in OCI::DatabaseTools::Models::SORT_ORDER_ENUM.' end if opts[:sort_by] && !%w[timeCreated displayName].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of timeCreated, displayName.' end raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id) path = '/workRequests/{workRequestId}/errors'.sub('{workRequestId}', work_request_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:page] = opts[:page] if opts[:page] query_params[:limit] = opts[:limit] if opts[:limit] # 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: 'DatabaseToolsClient#list_work_request_errors') 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::DatabaseTools::Models::WorkRequestErrorCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_work_request_logs(work_request_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_work_request_logs API.
Returns a paginated list of logs for the specified work request.
Allowed values are: timeCreated, displayName
1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 |
# File 'lib/oci/database_tools/database_tools_client.rb', line 1196 def list_work_request_logs(work_request_id, opts = {}) logger.debug 'Calling operation DatabaseToolsClient#list_work_request_logs.' if logger raise "Missing the required parameter 'work_request_id' when calling list_work_request_logs." if work_request_id.nil? if opts[:sort_order] && !OCI::DatabaseTools::Models::SORT_ORDER_ENUM.include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of the values in OCI::DatabaseTools::Models::SORT_ORDER_ENUM.' end if opts[:sort_by] && !%w[timeCreated displayName].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of timeCreated, displayName.' end raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id) path = '/workRequests/{workRequestId}/logs'.sub('{workRequestId}', work_request_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:page] = opts[:page] if opts[:page] query_params[:limit] = opts[:limit] if opts[:limit] # 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: 'DatabaseToolsClient#list_work_request_logs') 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::DatabaseTools::Models::WorkRequestLogEntryCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_work_requests(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_work_requests API.
Lists the work requests in a compartment.
Allowed values are: timeAccepted
1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 |
# File 'lib/oci/database_tools/database_tools_client.rb', line 1270 def list_work_requests(compartment_id, opts = {}) logger.debug 'Calling operation DatabaseToolsClient#list_work_requests.' if logger raise "Missing the required parameter 'compartment_id' when calling list_work_requests." if compartment_id.nil? if opts[:sort_order] && !OCI::DatabaseTools::Models::SORT_ORDER_ENUM.include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of the values in OCI::DatabaseTools::Models::SORT_ORDER_ENUM.' end if opts[:sort_by] && !%w[timeAccepted].include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of timeAccepted.' end path = '/workRequests' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:resourceIdentifier] = opts[:resource_identifier] if opts[:resource_identifier] query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order] query_params[:sortBy] = opts[:sort_by] if opts[:sort_by] query_params[:page] = opts[:page] if opts[:page] query_params[:limit] = opts[:limit] if opts[:limit] # 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: 'DatabaseToolsClient#list_work_requests') 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::DatabaseTools::Models::WorkRequestCollection' ) end # rubocop:enable Metrics/BlockLength end |
#logger ⇒ Logger
Returns The logger for this client. May be nil.
94 95 96 |
# File 'lib/oci/database_tools/database_tools_client.rb', line 94 def logger @api_client.config.logger end |
#remove_database_tools_connection_lock(database_tools_connection_id, remove_resource_lock_details, opts = {}) ⇒ Response
Click here to see an example of how to use remove_database_tools_connection_lock API.
Removes a lock from a DatabaseToolsConnection resource.
1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 |
# File 'lib/oci/database_tools/database_tools_client.rb', line 1344 def remove_database_tools_connection_lock(database_tools_connection_id, remove_resource_lock_details, opts = {}) logger.debug 'Calling operation DatabaseToolsClient#remove_database_tools_connection_lock.' if logger raise "Missing the required parameter 'database_tools_connection_id' when calling remove_database_tools_connection_lock." if database_tools_connection_id.nil? raise "Missing the required parameter 'remove_resource_lock_details' when calling remove_database_tools_connection_lock." if remove_resource_lock_details.nil? raise "Parameter value for 'database_tools_connection_id' must not be blank" if OCI::Internal::Util.blank_string?(database_tools_connection_id) path = '/databaseToolsConnections/{databaseToolsConnectionId}/actions/removeLock'.sub('{databaseToolsConnectionId}', database_tools_connection_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-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(remove_resource_lock_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DatabaseToolsClient#remove_database_tools_connection_lock') 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::DatabaseTools::Models::DatabaseToolsConnection' ) end # rubocop:enable Metrics/BlockLength end |
#remove_database_tools_private_endpoint_lock(database_tools_private_endpoint_id, remove_resource_lock_details, opts = {}) ⇒ Response
Click here to see an example of how to use remove_database_tools_private_endpoint_lock API.
Removes a lock from a DatabaseToolsPrivateEndpoint resource.
1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 |
# File 'lib/oci/database_tools/database_tools_client.rb', line 1407 def remove_database_tools_private_endpoint_lock(database_tools_private_endpoint_id, remove_resource_lock_details, opts = {}) logger.debug 'Calling operation DatabaseToolsClient#remove_database_tools_private_endpoint_lock.' if logger raise "Missing the required parameter 'database_tools_private_endpoint_id' when calling remove_database_tools_private_endpoint_lock." if database_tools_private_endpoint_id.nil? raise "Missing the required parameter 'remove_resource_lock_details' when calling remove_database_tools_private_endpoint_lock." if remove_resource_lock_details.nil? raise "Parameter value for 'database_tools_private_endpoint_id' must not be blank" if OCI::Internal::Util.blank_string?(database_tools_private_endpoint_id) path = '/databaseToolsPrivateEndpoints/{databaseToolsPrivateEndpointId}/actions/removeLock'.sub('{databaseToolsPrivateEndpointId}', database_tools_private_endpoint_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-match'] = opts[:if_match] if opts[:if_match] # rubocop:enable Style/NegatedIf post_body = @api_client.object_to_http_body(remove_resource_lock_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DatabaseToolsClient#remove_database_tools_private_endpoint_lock') 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::DatabaseTools::Models::DatabaseToolsPrivateEndpoint' ) end # rubocop:enable Metrics/BlockLength end |
#update_database_tools_connection(database_tools_connection_id, update_database_tools_connection_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_database_tools_connection API.
Updates the specified Database Tools connection.
1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 |
# File 'lib/oci/database_tools/database_tools_client.rb', line 1471 def update_database_tools_connection(database_tools_connection_id, update_database_tools_connection_details, opts = {}) logger.debug 'Calling operation DatabaseToolsClient#update_database_tools_connection.' if logger raise "Missing the required parameter 'database_tools_connection_id' when calling update_database_tools_connection." if database_tools_connection_id.nil? raise "Missing the required parameter 'update_database_tools_connection_details' when calling update_database_tools_connection." if update_database_tools_connection_details.nil? raise "Parameter value for 'database_tools_connection_id' must not be blank" if OCI::Internal::Util.blank_string?(database_tools_connection_id) path = '/databaseToolsConnections/{databaseToolsConnectionId}'.sub('{databaseToolsConnectionId}', database_tools_connection_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:isLockOverride] = opts[:is_lock_override] if !opts[:is_lock_override].nil? # 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_database_tools_connection_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DatabaseToolsClient#update_database_tools_connection') 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_database_tools_private_endpoint(database_tools_private_endpoint_id, update_database_tools_private_endpoint_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_database_tools_private_endpoint API.
Updates the specified Database Tools private endpoint.
1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 |
# File 'lib/oci/database_tools/database_tools_client.rb', line 1535 def update_database_tools_private_endpoint(database_tools_private_endpoint_id, update_database_tools_private_endpoint_details, opts = {}) logger.debug 'Calling operation DatabaseToolsClient#update_database_tools_private_endpoint.' if logger raise "Missing the required parameter 'database_tools_private_endpoint_id' when calling update_database_tools_private_endpoint." if database_tools_private_endpoint_id.nil? raise "Missing the required parameter 'update_database_tools_private_endpoint_details' when calling update_database_tools_private_endpoint." if update_database_tools_private_endpoint_details.nil? raise "Parameter value for 'database_tools_private_endpoint_id' must not be blank" if OCI::Internal::Util.blank_string?(database_tools_private_endpoint_id) path = '/databaseToolsPrivateEndpoints/{databaseToolsPrivateEndpointId}'.sub('{databaseToolsPrivateEndpointId}', database_tools_private_endpoint_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:isLockOverride] = opts[:is_lock_override] if !opts[:is_lock_override].nil? # 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_database_tools_private_endpoint_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DatabaseToolsClient#update_database_tools_private_endpoint') 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 |
#validate_database_tools_connection(database_tools_connection_id, validate_database_tools_connection_details, opts = {}) ⇒ Response
Click here to see an example of how to use validate_database_tools_connection API.
Validates the Database Tools connection details by establishing a connection to the database.
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 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 |
# File 'lib/oci/database_tools/database_tools_client.rb', line 1599 def validate_database_tools_connection(database_tools_connection_id, validate_database_tools_connection_details, opts = {}) logger.debug 'Calling operation DatabaseToolsClient#validate_database_tools_connection.' if logger raise "Missing the required parameter 'database_tools_connection_id' when calling validate_database_tools_connection." if database_tools_connection_id.nil? raise "Missing the required parameter 'validate_database_tools_connection_details' when calling validate_database_tools_connection." if validate_database_tools_connection_details.nil? raise "Parameter value for 'database_tools_connection_id' must not be blank" if OCI::Internal::Util.blank_string?(database_tools_connection_id) path = '/databaseToolsConnections/{databaseToolsConnectionId}/actions/validateConnection'.sub('{databaseToolsConnectionId}', database_tools_connection_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(validate_database_tools_connection_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'DatabaseToolsClient#validate_database_tools_connection') 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::DatabaseTools::Models::ValidateDatabaseToolsConnectionResult' ) end # rubocop:enable Metrics/BlockLength end |