Class: OCI::Batch::BatchComputingClient
- Inherits:
-
Object
- Object
- OCI::Batch::BatchComputingClient
- Defined in:
- lib/oci/batch/batch_computing_client.rb
Overview
Use the Batch Control Plane API to encapsulate and manage all aspects of computationally intensive jobs.
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
-
#cancel_batch_job(batch_job_id, opts = {}) ⇒ Response
Cancels a batch job.
-
#change_batch_context_compartment(batch_context_id, change_batch_context_compartment_details, opts = {}) ⇒ Response
Moves a batch context into a different compartment within the same tenancy.
-
#change_batch_job_compartment(batch_job_id, change_batch_job_compartment_details, opts = {}) ⇒ Response
Moves a batch job into a different compartment within the same tenancy.
-
#change_batch_job_pool_compartment(batch_job_pool_id, change_batch_job_pool_compartment_details, opts = {}) ⇒ Response
Moves a batch job pool into a different compartment within the same tenancy.
-
#change_batch_task_environment_compartment(batch_task_environment_id, change_batch_task_environment_compartment_details, opts = {}) ⇒ Response
Moves a batch task environment into a different compartment within the same tenancy.
-
#change_batch_task_profile_compartment(batch_task_profile_id, change_batch_task_profile_compartment_details, opts = {}) ⇒ Response
Moves a batch task profile into a different compartment within the same tenancy.
-
#create_batch_context(create_batch_context_details, opts = {}) ⇒ Response
Creates a batch context.
-
#create_batch_job(create_batch_job_details, opts = {}) ⇒ Response
Creates a batch job.
-
#create_batch_job_pool(create_batch_job_pool_details, opts = {}) ⇒ Response
Creates a batch job pool.
-
#create_batch_task_environment(create_batch_task_environment_details, opts = {}) ⇒ Response
Creates a batch task environment.
-
#create_batch_task_profile(create_batch_task_profile_details, opts = {}) ⇒ Response
Creates a batch task profile.
-
#delete_batch_context(batch_context_id, opts = {}) ⇒ Response
Deletes a batch context.
-
#delete_batch_job_pool(batch_job_pool_id, opts = {}) ⇒ Response
Deletes a batch job pool.
-
#delete_batch_task_environment(batch_task_environment_id, opts = {}) ⇒ Response
Deletes a batch task environment.
-
#delete_batch_task_profile(batch_task_profile_id, opts = {}) ⇒ Response
Deletes a batch task profile.
-
#get_batch_context(batch_context_id, opts = {}) ⇒ Response
Gets information about a batch context.
-
#get_batch_job(batch_job_id, opts = {}) ⇒ Response
Gets information about a batch job.
-
#get_batch_job_pool(batch_job_pool_id, opts = {}) ⇒ Response
Gets information about a batch job pool.
-
#get_batch_task(batch_job_id, task_name, opts = {}) ⇒ Response
Gets a specific batch task associated with a batch job by its name.
-
#get_batch_task_environment(batch_task_environment_id, opts = {}) ⇒ Response
Gets information about a batch task environment.
-
#get_batch_task_profile(batch_task_profile_id, opts = {}) ⇒ Response
Gets information about a batch task profile.
-
#get_work_request(work_request_id, opts = {}) ⇒ Response
Gets the details of a work request.
-
#initialize(config: nil, region: nil, endpoint: nil, signer: nil, proxy_settings: nil, retry_config: nil) ⇒ BatchComputingClient
constructor
Creates a new BatchComputingClient.
-
#list_batch_context_shapes(compartment_id, opts = {}) ⇒ Response
Lists the shapes allowed to be specified during batch context creation.
-
#list_batch_contexts(opts = {}) ⇒ Response
Lists the batch contexts by compartment or context OCID.
-
#list_batch_job_pools(opts = {}) ⇒ Response
Lists the batch job pools by compartment or job pool OCID.
-
#list_batch_job_tasks(batch_job_id, opts = {}) ⇒ Response
Lists the batch tasks by batch job OCID.
-
#list_batch_jobs(opts = {}) ⇒ Response
Lists the batch jobs by compartment or job OCID.
-
#list_batch_task_environments(opts = {}) ⇒ Response
Lists the task environments by compartment or environment OCID.
-
#list_batch_task_profiles(opts = {}) ⇒ Response
Lists the task profiles by compartment or profile OCID.
-
#list_batch_tasks(opts = {}) ⇒ Response
Lists the batch tasks associated with batch jobs.
-
#list_work_request_errors(work_request_id, opts = {}) ⇒ Response
Lists the errors for a work request.
-
#list_work_request_logs(work_request_id, opts = {}) ⇒ Response
Lists the logs for a work request.
-
#list_work_requests(opts = {}) ⇒ Response
Lists the work requests in a compartment.
-
#logger ⇒ Logger
The logger for this client.
-
#pause_batch_job(batch_job_id, pause_batch_job_details, opts = {}) ⇒ Response
Pauses the batch job and all its tasks.
-
#start_batch_context(batch_context_id, start_batch_context_details, opts = {}) ⇒ Response
Activates a batch context to accept new jobs.
-
#start_batch_job_pool(batch_job_pool_id, start_batch_job_pool_details, opts = {}) ⇒ Response
Activates the batch job pool.
-
#stop_batch_context(batch_context_id, stop_batch_context_details, opts = {}) ⇒ Response
Stops a batch context from accepting new jobs.
-
#stop_batch_job_pool(batch_job_pool_id, stop_batch_job_pool_details, opts = {}) ⇒ Response
Deactivates the batch job pool.
-
#unpause_batch_job(batch_job_id, unpause_batch_job_details, opts = {}) ⇒ Response
Resumes the batch job and all its tasks.
-
#update_batch_context(batch_context_id, update_batch_context_details, opts = {}) ⇒ Response
Updates a batch context.
-
#update_batch_job(batch_job_id, update_batch_job_details, opts = {}) ⇒ Response
Updates a batch job.
-
#update_batch_job_pool(batch_job_pool_id, update_batch_job_pool_details, opts = {}) ⇒ Response
Updates a batch job pool.
-
#update_batch_task_environment(batch_task_environment_id, update_batch_task_environment_details, opts = {}) ⇒ Response
Updates a batch task environment.
-
#update_batch_task_profile(batch_task_profile_id, update_batch_task_profile_details, opts = {}) ⇒ Response
Updates a batch task profile.
Constructor Details
#initialize(config: nil, region: nil, endpoint: nil, signer: nil, proxy_settings: nil, retry_config: nil) ⇒ BatchComputingClient
Creates a new BatchComputingClient. 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/batch/batch_computing_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 + '/20251031' else region ||= config.region region ||= signer.region if signer.respond_to?(:region) self.region = region end logger.info "BatchComputingClient 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/batch/batch_computing_client.rb', line 15 def api_client @api_client end |
#endpoint ⇒ String (readonly)
Fully qualified endpoint URL
19 20 21 |
# File 'lib/oci/batch/batch_computing_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/batch/batch_computing_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/batch/batch_computing_client.rb', line 25 def retry_config @retry_config end |
Instance Method Details
#cancel_batch_job(batch_job_id, opts = {}) ⇒ Response
Click here to see an example of how to use cancel_batch_job API.
Cancels a batch job.
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/batch/batch_computing_client.rb', line 120 def cancel_batch_job(batch_job_id, opts = {}) logger.debug 'Calling operation BatchComputingClient#cancel_batch_job.' if logger raise "Missing the required parameter 'batch_job_id' when calling cancel_batch_job." if batch_job_id.nil? raise "Parameter value for 'batch_job_id' must not be blank" if OCI::Internal::Util.blank_string?(batch_job_id) path = '/batchJobs/{batchJobId}'.sub('{batchJobId}', batch_job_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: 'BatchComputingClient#cancel_batch_job') 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 |
#change_batch_context_compartment(batch_context_id, change_batch_context_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_batch_context_compartment API.
Moves a batch context into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
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 220 221 |
# File 'lib/oci/batch/batch_computing_client.rb', line 184 def change_batch_context_compartment(batch_context_id, change_batch_context_compartment_details, opts = {}) logger.debug 'Calling operation BatchComputingClient#change_batch_context_compartment.' if logger raise "Missing the required parameter 'batch_context_id' when calling change_batch_context_compartment." if batch_context_id.nil? raise "Missing the required parameter 'change_batch_context_compartment_details' when calling change_batch_context_compartment." if change_batch_context_compartment_details.nil? raise "Parameter value for 'batch_context_id' must not be blank" if OCI::Internal::Util.blank_string?(batch_context_id) path = '/batchContexts/{batchContextId}/actions/changeCompartment'.sub('{batchContextId}', batch_context_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(change_batch_context_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'BatchComputingClient#change_batch_context_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_batch_job_compartment(batch_job_id, change_batch_job_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_batch_job_compartment API.
Moves a batch job into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
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/batch/batch_computing_client.rb', line 249 def change_batch_job_compartment(batch_job_id, change_batch_job_compartment_details, opts = {}) logger.debug 'Calling operation BatchComputingClient#change_batch_job_compartment.' if logger raise "Missing the required parameter 'batch_job_id' when calling change_batch_job_compartment." if batch_job_id.nil? raise "Missing the required parameter 'change_batch_job_compartment_details' when calling change_batch_job_compartment." if change_batch_job_compartment_details.nil? raise "Parameter value for 'batch_job_id' must not be blank" if OCI::Internal::Util.blank_string?(batch_job_id) path = '/batchJobs/{batchJobId}/actions/changeCompartment'.sub('{batchJobId}', batch_job_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(change_batch_job_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'BatchComputingClient#change_batch_job_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_batch_job_pool_compartment(batch_job_pool_id, change_batch_job_pool_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_batch_job_pool_compartment API.
Moves a batch job pool into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
314 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 |
# File 'lib/oci/batch/batch_computing_client.rb', line 314 def change_batch_job_pool_compartment(batch_job_pool_id, change_batch_job_pool_compartment_details, opts = {}) logger.debug 'Calling operation BatchComputingClient#change_batch_job_pool_compartment.' if logger raise "Missing the required parameter 'batch_job_pool_id' when calling change_batch_job_pool_compartment." if batch_job_pool_id.nil? raise "Missing the required parameter 'change_batch_job_pool_compartment_details' when calling change_batch_job_pool_compartment." if change_batch_job_pool_compartment_details.nil? raise "Parameter value for 'batch_job_pool_id' must not be blank" if OCI::Internal::Util.blank_string?(batch_job_pool_id) path = '/batchJobPools/{batchJobPoolId}/actions/changeCompartment'.sub('{batchJobPoolId}', batch_job_pool_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(change_batch_job_pool_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'BatchComputingClient#change_batch_job_pool_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_batch_task_environment_compartment(batch_task_environment_id, change_batch_task_environment_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_batch_task_environment_compartment API.
Moves a batch task environment into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
379 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 |
# File 'lib/oci/batch/batch_computing_client.rb', line 379 def change_batch_task_environment_compartment(batch_task_environment_id, change_batch_task_environment_compartment_details, opts = {}) logger.debug 'Calling operation BatchComputingClient#change_batch_task_environment_compartment.' if logger raise "Missing the required parameter 'batch_task_environment_id' when calling change_batch_task_environment_compartment." if batch_task_environment_id.nil? raise "Missing the required parameter 'change_batch_task_environment_compartment_details' when calling change_batch_task_environment_compartment." if change_batch_task_environment_compartment_details.nil? raise "Parameter value for 'batch_task_environment_id' must not be blank" if OCI::Internal::Util.blank_string?(batch_task_environment_id) path = '/batchTaskEnvironments/{batchTaskEnvironmentId}/actions/changeCompartment'.sub('{batchTaskEnvironmentId}', batch_task_environment_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(change_batch_task_environment_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'BatchComputingClient#change_batch_task_environment_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_batch_task_profile_compartment(batch_task_profile_id, change_batch_task_profile_compartment_details, opts = {}) ⇒ Response
Click here to see an example of how to use change_batch_task_profile_compartment API.
Moves a batch task profile into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
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/batch/batch_computing_client.rb', line 444 def change_batch_task_profile_compartment(batch_task_profile_id, change_batch_task_profile_compartment_details, opts = {}) logger.debug 'Calling operation BatchComputingClient#change_batch_task_profile_compartment.' if logger raise "Missing the required parameter 'batch_task_profile_id' when calling change_batch_task_profile_compartment." if batch_task_profile_id.nil? raise "Missing the required parameter 'change_batch_task_profile_compartment_details' when calling change_batch_task_profile_compartment." if change_batch_task_profile_compartment_details.nil? raise "Parameter value for 'batch_task_profile_id' must not be blank" if OCI::Internal::Util.blank_string?(batch_task_profile_id) path = '/batchTaskProfiles/{batchTaskProfileId}/actions/changeCompartment'.sub('{batchTaskProfileId}', batch_task_profile_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(change_batch_task_profile_compartment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'BatchComputingClient#change_batch_task_profile_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_batch_context(create_batch_context_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_batch_context API.
Creates a batch context.
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 544 545 546 |
# File 'lib/oci/batch/batch_computing_client.rb', line 509 def create_batch_context(create_batch_context_details, opts = {}) logger.debug 'Calling operation BatchComputingClient#create_batch_context.' if logger raise "Missing the required parameter 'create_batch_context_details' when calling create_batch_context." if create_batch_context_details.nil? path = '/batchContexts' 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_batch_context_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'BatchComputingClient#create_batch_context') 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::Batch::Models::BatchContext' ) end # rubocop:enable Metrics/BlockLength end |
#create_batch_job(create_batch_job_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_batch_job API.
Creates a batch job.
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 606 607 608 609 610 611 |
# File 'lib/oci/batch/batch_computing_client.rb', line 574 def create_batch_job(create_batch_job_details, opts = {}) logger.debug 'Calling operation BatchComputingClient#create_batch_job.' if logger raise "Missing the required parameter 'create_batch_job_details' when calling create_batch_job." if create_batch_job_details.nil? path = '/batchJobs' 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_batch_job_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'BatchComputingClient#create_batch_job') 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::Batch::Models::BatchJob' ) end # rubocop:enable Metrics/BlockLength end |
#create_batch_job_pool(create_batch_job_pool_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_batch_job_pool API.
Creates a batch job pool.
639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 |
# File 'lib/oci/batch/batch_computing_client.rb', line 639 def create_batch_job_pool(create_batch_job_pool_details, opts = {}) logger.debug 'Calling operation BatchComputingClient#create_batch_job_pool.' if logger raise "Missing the required parameter 'create_batch_job_pool_details' when calling create_batch_job_pool." if create_batch_job_pool_details.nil? path = '/batchJobPools' 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_batch_job_pool_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'BatchComputingClient#create_batch_job_pool') 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::Batch::Models::BatchJobPool' ) end # rubocop:enable Metrics/BlockLength end |
#create_batch_task_environment(create_batch_task_environment_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_batch_task_environment API.
Creates a batch task environment.
704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 |
# File 'lib/oci/batch/batch_computing_client.rb', line 704 def create_batch_task_environment(create_batch_task_environment_details, opts = {}) logger.debug 'Calling operation BatchComputingClient#create_batch_task_environment.' if logger raise "Missing the required parameter 'create_batch_task_environment_details' when calling create_batch_task_environment." if create_batch_task_environment_details.nil? path = '/batchTaskEnvironments' 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_batch_task_environment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'BatchComputingClient#create_batch_task_environment') 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::Batch::Models::BatchTaskEnvironment' ) end # rubocop:enable Metrics/BlockLength end |
#create_batch_task_profile(create_batch_task_profile_details, opts = {}) ⇒ Response
Click here to see an example of how to use create_batch_task_profile API.
Creates a batch task profile.
769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 |
# File 'lib/oci/batch/batch_computing_client.rb', line 769 def create_batch_task_profile(create_batch_task_profile_details, opts = {}) logger.debug 'Calling operation BatchComputingClient#create_batch_task_profile.' if logger raise "Missing the required parameter 'create_batch_task_profile_details' when calling create_batch_task_profile." if create_batch_task_profile_details.nil? path = '/batchTaskProfiles' 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_batch_task_profile_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'BatchComputingClient#create_batch_task_profile') 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::Batch::Models::BatchTaskProfile' ) end # rubocop:enable Metrics/BlockLength end |
#delete_batch_context(batch_context_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_batch_context API.
Deletes a batch context. All batch job pools associated with the batch context must be deleted beforehand.
833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 |
# File 'lib/oci/batch/batch_computing_client.rb', line 833 def delete_batch_context(batch_context_id, opts = {}) logger.debug 'Calling operation BatchComputingClient#delete_batch_context.' if logger raise "Missing the required parameter 'batch_context_id' when calling delete_batch_context." if batch_context_id.nil? raise "Parameter value for 'batch_context_id' must not be blank" if OCI::Internal::Util.blank_string?(batch_context_id) path = '/batchContexts/{batchContextId}'.sub('{batchContextId}', batch_context_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: 'BatchComputingClient#delete_batch_context') 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_batch_job_pool(batch_job_pool_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_batch_job_pool API.
Deletes a batch job pool. All batch jobs associated with the batch job pool must be canceled beforehand.
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 |
# File 'lib/oci/batch/batch_computing_client.rb', line 896 def delete_batch_job_pool(batch_job_pool_id, opts = {}) logger.debug 'Calling operation BatchComputingClient#delete_batch_job_pool.' if logger raise "Missing the required parameter 'batch_job_pool_id' when calling delete_batch_job_pool." if batch_job_pool_id.nil? raise "Parameter value for 'batch_job_pool_id' must not be blank" if OCI::Internal::Util.blank_string?(batch_job_pool_id) path = '/batchJobPools/{batchJobPoolId}'.sub('{batchJobPoolId}', batch_job_pool_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: 'BatchComputingClient#delete_batch_job_pool') 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_batch_task_environment(batch_task_environment_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_batch_task_environment API.
Deletes a batch task environment. All batch tasks associated with the batch task environment must be canceled beforehand.
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 |
# File 'lib/oci/batch/batch_computing_client.rb', line 959 def delete_batch_task_environment(batch_task_environment_id, opts = {}) logger.debug 'Calling operation BatchComputingClient#delete_batch_task_environment.' if logger raise "Missing the required parameter 'batch_task_environment_id' when calling delete_batch_task_environment." if batch_task_environment_id.nil? raise "Parameter value for 'batch_task_environment_id' must not be blank" if OCI::Internal::Util.blank_string?(batch_task_environment_id) path = '/batchTaskEnvironments/{batchTaskEnvironmentId}'.sub('{batchTaskEnvironmentId}', batch_task_environment_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: 'BatchComputingClient#delete_batch_task_environment') 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_batch_task_profile(batch_task_profile_id, opts = {}) ⇒ Response
Click here to see an example of how to use delete_batch_task_profile API.
Deletes a batch task profile. All batch tasks associated with the batch task profile must be canceled beforehand.
1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 |
# File 'lib/oci/batch/batch_computing_client.rb', line 1022 def delete_batch_task_profile(batch_task_profile_id, opts = {}) logger.debug 'Calling operation BatchComputingClient#delete_batch_task_profile.' if logger raise "Missing the required parameter 'batch_task_profile_id' when calling delete_batch_task_profile." if batch_task_profile_id.nil? raise "Parameter value for 'batch_task_profile_id' must not be blank" if OCI::Internal::Util.blank_string?(batch_task_profile_id) path = '/batchTaskProfiles/{batchTaskProfileId}'.sub('{batchTaskProfileId}', batch_task_profile_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: 'BatchComputingClient#delete_batch_task_profile') 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_batch_context(batch_context_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_batch_context API.
Gets information about a batch context.
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 |
# File 'lib/oci/batch/batch_computing_client.rb', line 1080 def get_batch_context(batch_context_id, opts = {}) logger.debug 'Calling operation BatchComputingClient#get_batch_context.' if logger raise "Missing the required parameter 'batch_context_id' when calling get_batch_context." if batch_context_id.nil? raise "Parameter value for 'batch_context_id' must not be blank" if OCI::Internal::Util.blank_string?(batch_context_id) path = '/batchContexts/{batchContextId}'.sub('{batchContextId}', batch_context_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: 'BatchComputingClient#get_batch_context') 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::Batch::Models::BatchContext' ) end # rubocop:enable Metrics/BlockLength end |
#get_batch_job(batch_job_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_batch_job API.
Gets information about a batch job.
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 1172 1173 1174 |
# File 'lib/oci/batch/batch_computing_client.rb', line 1138 def get_batch_job(batch_job_id, opts = {}) logger.debug 'Calling operation BatchComputingClient#get_batch_job.' if logger raise "Missing the required parameter 'batch_job_id' when calling get_batch_job." if batch_job_id.nil? raise "Parameter value for 'batch_job_id' must not be blank" if OCI::Internal::Util.blank_string?(batch_job_id) path = '/batchJobs/{batchJobId}'.sub('{batchJobId}', batch_job_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: 'BatchComputingClient#get_batch_job') 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::Batch::Models::BatchJob' ) end # rubocop:enable Metrics/BlockLength end |
#get_batch_job_pool(batch_job_pool_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_batch_job_pool API.
Gets information about a batch job pool.
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 |
# File 'lib/oci/batch/batch_computing_client.rb', line 1196 def get_batch_job_pool(batch_job_pool_id, opts = {}) logger.debug 'Calling operation BatchComputingClient#get_batch_job_pool.' if logger raise "Missing the required parameter 'batch_job_pool_id' when calling get_batch_job_pool." if batch_job_pool_id.nil? raise "Parameter value for 'batch_job_pool_id' must not be blank" if OCI::Internal::Util.blank_string?(batch_job_pool_id) path = '/batchJobPools/{batchJobPoolId}'.sub('{batchJobPoolId}', batch_job_pool_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: 'BatchComputingClient#get_batch_job_pool') 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::Batch::Models::BatchJobPool' ) end # rubocop:enable Metrics/BlockLength end |
#get_batch_task(batch_job_id, task_name, opts = {}) ⇒ Response
Click here to see an example of how to use get_batch_task API.
Gets a specific batch task associated with a batch job by its name.
1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 |
# File 'lib/oci/batch/batch_computing_client.rb', line 1255 def get_batch_task(batch_job_id, task_name, opts = {}) logger.debug 'Calling operation BatchComputingClient#get_batch_task.' if logger raise "Missing the required parameter 'batch_job_id' when calling get_batch_task." if batch_job_id.nil? raise "Missing the required parameter 'task_name' when calling get_batch_task." if task_name.nil? raise "Parameter value for 'batch_job_id' must not be blank" if OCI::Internal::Util.blank_string?(batch_job_id) raise "Parameter value for 'task_name' must not be blank" if OCI::Internal::Util.blank_string?(task_name) path = '/batchJobs/{batchJobId}/tasks/{taskName}'.sub('{batchJobId}', batch_job_id.to_s).sub('{taskName}', task_name.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: 'BatchComputingClient#get_batch_task') 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::Batch::Models::BatchTask' ) end # rubocop:enable Metrics/BlockLength end |
#get_batch_task_environment(batch_task_environment_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_batch_task_environment API.
Gets information about a batch task environment.
1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 |
# File 'lib/oci/batch/batch_computing_client.rb', line 1315 def get_batch_task_environment(batch_task_environment_id, opts = {}) logger.debug 'Calling operation BatchComputingClient#get_batch_task_environment.' if logger raise "Missing the required parameter 'batch_task_environment_id' when calling get_batch_task_environment." if batch_task_environment_id.nil? raise "Parameter value for 'batch_task_environment_id' must not be blank" if OCI::Internal::Util.blank_string?(batch_task_environment_id) path = '/batchTaskEnvironments/{batchTaskEnvironmentId}'.sub('{batchTaskEnvironmentId}', batch_task_environment_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: 'BatchComputingClient#get_batch_task_environment') 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::Batch::Models::BatchTaskEnvironment' ) end # rubocop:enable Metrics/BlockLength end |
#get_batch_task_profile(batch_task_profile_id, opts = {}) ⇒ Response
Click here to see an example of how to use get_batch_task_profile API.
Gets information about a batch task profile.
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 |
# File 'lib/oci/batch/batch_computing_client.rb', line 1373 def get_batch_task_profile(batch_task_profile_id, opts = {}) logger.debug 'Calling operation BatchComputingClient#get_batch_task_profile.' if logger raise "Missing the required parameter 'batch_task_profile_id' when calling get_batch_task_profile." if batch_task_profile_id.nil? raise "Parameter value for 'batch_task_profile_id' must not be blank" if OCI::Internal::Util.blank_string?(batch_task_profile_id) path = '/batchTaskProfiles/{batchTaskProfileId}'.sub('{batchTaskProfileId}', batch_task_profile_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: 'BatchComputingClient#get_batch_task_profile') 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::Batch::Models::BatchTaskProfile' ) 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 details of a work request.
1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 |
# File 'lib/oci/batch/batch_computing_client.rb', line 1431 def get_work_request(work_request_id, opts = {}) logger.debug 'Calling operation BatchComputingClient#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: 'BatchComputingClient#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::Batch::Models::WorkRequest' ) end # rubocop:enable Metrics/BlockLength end |
#list_batch_context_shapes(compartment_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_batch_context_shapes API.
Lists the shapes allowed to be specified during batch context creation. Ordered by the shape name.
1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 |
# File 'lib/oci/batch/batch_computing_client.rb', line 1499 def list_batch_context_shapes(compartment_id, opts = {}) logger.debug 'Calling operation BatchComputingClient#list_batch_context_shapes.' if logger raise "Missing the required parameter 'compartment_id' when calling list_batch_context_shapes." if compartment_id.nil? if opts[:shape_type] && !OCI::Batch::Models::SHAPE_TYPE_ENUM.include?(opts[:shape_type]) raise 'Invalid value for "shape_type", must be one of the values in OCI::Batch::Models::SHAPE_TYPE_ENUM.' end path = '/batchContextShapes' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = compartment_id query_params[:availabilityDomain] = opts[:availability_domain] if opts[:availability_domain] query_params[:limit] = opts[:limit] if opts[:limit] query_params[:page] = opts[:page] if opts[:page] query_params[:shapeType] = opts[:shape_type] if opts[:shape_type] # 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: 'BatchComputingClient#list_batch_context_shapes') 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::Batch::Models::BatchContextShapeCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_batch_contexts(opts = {}) ⇒ Response
Click here to see an example of how to use list_batch_contexts API.
Lists the batch contexts by compartment or context OCID. You can filter and sort them by various properties like lifecycle state, name and also ocid. All properties require an exact match. List operation only provides a summary information, use GetBatchContext to get the full details on a specific context
1582 1583 1584 1585 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 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 |
# File 'lib/oci/batch/batch_computing_client.rb', line 1582 def list_batch_contexts(opts = {}) logger.debug 'Calling operation BatchComputingClient#list_batch_contexts.' if logger if opts[:lifecycle_state] && !OCI::Batch::Models::BatchContext::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Batch::Models::BatchContext::LIFECYCLE_STATE_ENUM.' end if opts[:sort_order] && !OCI::Batch::Models::SORT_ORDER_ENUM.include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of the values in OCI::Batch::Models::SORT_ORDER_ENUM.' end if opts[:sort_by] && !OCI::Batch::Models::SORT_BY_ENUM.include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of the values in OCI::Batch::Models::SORT_BY_ENUM.' end path = '/batchContexts' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:id] = opts[:id] if opts[: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] # 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: 'BatchComputingClient#list_batch_contexts') 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::Batch::Models::BatchContextCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_batch_job_pools(opts = {}) ⇒ Response
Click here to see an example of how to use list_batch_job_pools API.
Lists the batch job pools by compartment or job pool OCID. You can filter and sort them by various properties like lifecycle state, display name and also ocid. All properties require an exact match. List operation only provides a summary information, use GetBatchJobPool to get the full details on a specific context
1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 |
# File 'lib/oci/batch/batch_computing_client.rb', line 1676 def list_batch_job_pools(opts = {}) logger.debug 'Calling operation BatchComputingClient#list_batch_job_pools.' if logger if opts[:lifecycle_state] && !OCI::Batch::Models::BatchJobPool::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Batch::Models::BatchJobPool::LIFECYCLE_STATE_ENUM.' end if opts[:sort_order] && !OCI::Batch::Models::SORT_ORDER_ENUM.include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of the values in OCI::Batch::Models::SORT_ORDER_ENUM.' end if opts[:sort_by] && !OCI::Batch::Models::SORT_BY_ENUM.include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of the values in OCI::Batch::Models::SORT_BY_ENUM.' end path = '/batchJobPools' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:id] = opts[:id] if opts[:id] query_params[:batchContextId] = opts[:batch_context_id] if opts[:batch_context_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] # 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: 'BatchComputingClient#list_batch_job_pools') 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::Batch::Models::BatchJobPoolCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_batch_job_tasks(batch_job_id, opts = {}) ⇒ Response
Click here to see an example of how to use list_batch_job_tasks API.
Lists the batch tasks by batch job OCID. You can filter and sort them by various properties like lifecycle state, name and also ocid. All properties require an exact match. List operation only provides a summary information, use GetBatchTask to get the full details on a specific context List is incomplete until jobs lifecycle is in_progress
1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 |
# File 'lib/oci/batch/batch_computing_client.rb', line 1773 def list_batch_job_tasks(batch_job_id, opts = {}) logger.debug 'Calling operation BatchComputingClient#list_batch_job_tasks.' if logger raise "Missing the required parameter 'batch_job_id' when calling list_batch_job_tasks." if batch_job_id.nil? if opts[:lifecycle_state] && !OCI::Batch::Models::BatchTask::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Batch::Models::BatchTask::LIFECYCLE_STATE_ENUM.' end if opts[:type] && !OCI::Batch::Models::BatchTask::TYPE_ENUM.include?(opts[:type]) raise 'Invalid value for "type", must be one of the values in OCI::Batch::Models::BatchTask::TYPE_ENUM.' end if opts[:hierarchy_view] && !OCI::Batch::Models::BATCH_TASK_HIERARCHY_VIEW_ENUM.include?(opts[:hierarchy_view]) raise 'Invalid value for "hierarchy_view", must be one of the values in OCI::Batch::Models::BATCH_TASK_HIERARCHY_VIEW_ENUM.' end if opts[:sort_order] && !OCI::Batch::Models::SORT_ORDER_ENUM.include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of the values in OCI::Batch::Models::SORT_ORDER_ENUM.' end if opts[:sort_by] && !OCI::Batch::Models::BATCH_TASK_SORT_BY_ENUM.include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of the values in OCI::Batch::Models::BATCH_TASK_SORT_BY_ENUM.' end raise "Parameter value for 'batch_job_id' must not be blank" if OCI::Internal::Util.blank_string?(batch_job_id) path = '/batchJobs/{batchJobId}/tasks'.sub('{batchJobId}', batch_job_id.to_s) operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:name] = opts[:name] if opts[:name] query_params[:taskId] = opts[:task_id] if opts[:task_id] query_params[:groupTaskName] = opts[:group_task_name] if opts[:group_task_name] query_params[:type] = opts[:type] if opts[:type] query_params[:hierarchyView] = opts[:hierarchy_view] if opts[:hierarchy_view] 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: 'BatchComputingClient#list_batch_job_tasks') 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::Batch::Models::BatchTaskCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_batch_jobs(opts = {}) ⇒ Response
Click here to see an example of how to use list_batch_jobs API.
Lists the batch jobs by compartment or job OCID. You can filter and sort them by various properties like lifecycle state, display name and also ocid. All properties require an exact match. List operation only provides a summary information, use GetBatchJob to get the full details on a specific context
1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 |
# File 'lib/oci/batch/batch_computing_client.rb', line 1879 def list_batch_jobs(opts = {}) logger.debug 'Calling operation BatchComputingClient#list_batch_jobs.' if logger if opts[:lifecycle_state] && !OCI::Batch::Models::BatchJob::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Batch::Models::BatchJob::LIFECYCLE_STATE_ENUM.' end if opts[:sort_order] && !OCI::Batch::Models::SORT_ORDER_ENUM.include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of the values in OCI::Batch::Models::SORT_ORDER_ENUM.' end if opts[:sort_by] && !OCI::Batch::Models::SORT_BY_ENUM.include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of the values in OCI::Batch::Models::SORT_BY_ENUM.' end path = '/batchJobs' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:id] = opts[:id] if opts[:id] query_params[:batchJobPoolId] = opts[:batch_job_pool_id] if opts[:batch_job_pool_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] # 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: 'BatchComputingClient#list_batch_jobs') 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::Batch::Models::BatchJobCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_batch_task_environments(opts = {}) ⇒ Response
Click here to see an example of how to use list_batch_task_environments API.
Lists the task environments by compartment or environment OCID. You can filter and sort them by various properties like lifecycle state, display name and also ocid. All properties require an exact match. List operation only provides a summary information, use GetBatchTaskEnvironment to get the full details on a specific context
1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 |
# File 'lib/oci/batch/batch_computing_client.rb', line 1973 def list_batch_task_environments(opts = {}) logger.debug 'Calling operation BatchComputingClient#list_batch_task_environments.' if logger if opts[:lifecycle_state] && !OCI::Batch::Models::BatchTaskEnvironment::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Batch::Models::BatchTaskEnvironment::LIFECYCLE_STATE_ENUM.' end if opts[:sort_order] && !OCI::Batch::Models::SORT_ORDER_ENUM.include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of the values in OCI::Batch::Models::SORT_ORDER_ENUM.' end if opts[:sort_by] && !OCI::Batch::Models::SORT_BY_ENUM.include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of the values in OCI::Batch::Models::SORT_BY_ENUM.' end path = '/batchTaskEnvironments' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:id] = opts[:id] if opts[: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] # 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: 'BatchComputingClient#list_batch_task_environments') 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::Batch::Models::BatchTaskEnvironmentCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_batch_task_profiles(opts = {}) ⇒ Response
Click here to see an example of how to use list_batch_task_profiles API.
Lists the task profiles by compartment or profile OCID. You can filter and sort them by various properties like lifecycle state, name and also ocid. All properties require an exact match. List operation only provides a summary information, use GetBatchTaskProfile to get the full details on a specific context
2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 |
# File 'lib/oci/batch/batch_computing_client.rb', line 2066 def list_batch_task_profiles(opts = {}) logger.debug 'Calling operation BatchComputingClient#list_batch_task_profiles.' if logger if opts[:lifecycle_state] && !OCI::Batch::Models::BatchTaskProfile::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Batch::Models::BatchTaskProfile::LIFECYCLE_STATE_ENUM.' end if opts[:sort_order] && !OCI::Batch::Models::SORT_ORDER_ENUM.include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of the values in OCI::Batch::Models::SORT_ORDER_ENUM.' end if opts[:sort_by] && !OCI::Batch::Models::SORT_BY_ENUM.include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of the values in OCI::Batch::Models::SORT_BY_ENUM.' end path = '/batchTaskProfiles' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:displayName] = opts[:display_name] if opts[:display_name] query_params[:id] = opts[:id] if opts[: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] # 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: 'BatchComputingClient#list_batch_task_profiles') 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::Batch::Models::BatchTaskProfileCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_batch_tasks(opts = {}) ⇒ Response
Click here to see an example of how to use list_batch_tasks API.
Lists the batch tasks associated with batch jobs.
2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 |
# File 'lib/oci/batch/batch_computing_client.rb', line 2159 def list_batch_tasks(opts = {}) logger.debug 'Calling operation BatchComputingClient#list_batch_tasks.' if logger if opts[:lifecycle_state] && !OCI::Batch::Models::BatchTask::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state]) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Batch::Models::BatchTask::LIFECYCLE_STATE_ENUM.' end if opts[:sort_order] && !OCI::Batch::Models::SORT_ORDER_ENUM.include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of the values in OCI::Batch::Models::SORT_ORDER_ENUM.' end if opts[:sort_by] && !OCI::Batch::Models::BATCH_TASK_SORT_BY_ENUM.include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of the values in OCI::Batch::Models::BATCH_TASK_SORT_BY_ENUM.' end path = '/batchJobs/tasks' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id] query_params[:batchJobId] = opts[:batch_job_id] if opts[:batch_job_id] query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state] query_params[:name] = opts[:name] if opts[:name] query_params[:taskId] = opts[:task_id] if opts[:task_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] # 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: 'BatchComputingClient#list_batch_tasks') 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::Batch::Models::BatchTaskCollection' ) 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.
Lists the errors for a work request.
2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 |
# File 'lib/oci/batch/batch_computing_client.rb', line 2247 def list_work_request_errors(work_request_id, opts = {}) logger.debug 'Calling operation BatchComputingClient#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_by] && !OCI::Batch::Models::WORK_REQUEST_LOG_AND_ERROR_SORT_BY_ENUM.include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of the values in OCI::Batch::Models::WORK_REQUEST_LOG_AND_ERROR_SORT_BY_ENUM.' end if opts[:sort_order] && !OCI::Batch::Models::SORT_ORDER_ENUM.include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of the values in OCI::Batch::Models::SORT_ORDER_ENUM.' 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[:page] = opts[:page] if opts[:page] query_params[:limit] = opts[:limit] if opts[:limit] 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: 'BatchComputingClient#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::Batch::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.
Lists the logs for a work request.
2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 |
# File 'lib/oci/batch/batch_computing_client.rb', line 2328 def list_work_request_logs(work_request_id, opts = {}) logger.debug 'Calling operation BatchComputingClient#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_by] && !OCI::Batch::Models::WORK_REQUEST_LOG_AND_ERROR_SORT_BY_ENUM.include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of the values in OCI::Batch::Models::WORK_REQUEST_LOG_AND_ERROR_SORT_BY_ENUM.' end if opts[:sort_order] && !OCI::Batch::Models::SORT_ORDER_ENUM.include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of the values in OCI::Batch::Models::SORT_ORDER_ENUM.' 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[:page] = opts[:page] if opts[:page] query_params[:limit] = opts[:limit] if opts[:limit] 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: 'BatchComputingClient#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::Batch::Models::WorkRequestLogEntryCollection' ) end # rubocop:enable Metrics/BlockLength end |
#list_work_requests(opts = {}) ⇒ Response
Click here to see an example of how to use list_work_requests API.
Lists the work requests in a compartment.
2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 |
# File 'lib/oci/batch/batch_computing_client.rb', line 2412 def list_work_requests(opts = {}) logger.debug 'Calling operation BatchComputingClient#list_work_requests.' if logger if opts[:status] && !OCI::Batch::Models::OPERATION_STATUS_ENUM.include?(opts[:status]) raise 'Invalid value for "status", must be one of the values in OCI::Batch::Models::OPERATION_STATUS_ENUM.' end if opts[:sort_order] && !OCI::Batch::Models::SORT_ORDER_ENUM.include?(opts[:sort_order]) raise 'Invalid value for "sort_order", must be one of the values in OCI::Batch::Models::SORT_ORDER_ENUM.' end if opts[:sort_by] && !OCI::Batch::Models::WORK_REQUEST_SORT_BY_ENUM.include?(opts[:sort_by]) raise 'Invalid value for "sort_by", must be one of the values in OCI::Batch::Models::WORK_REQUEST_SORT_BY_ENUM.' end path = '/workRequests' operation_signing_strategy = :standard # rubocop:disable Style/NegatedIf # Query Params query_params = {} query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id] query_params[:workRequestId] = opts[:work_request_id] if opts[:work_request_id] query_params[:status] = opts[:status] if opts[:status] query_params[:resourceId] = opts[:resource_id] if opts[:resource_id] query_params[:page] = opts[:page] if opts[:page] query_params[:limit] = opts[:limit] if opts[:limit] 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: 'BatchComputingClient#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::Batch::Models::WorkRequestSummaryCollection' ) end # rubocop:enable Metrics/BlockLength end |
#logger ⇒ Logger
Returns The logger for this client. May be nil.
94 95 96 |
# File 'lib/oci/batch/batch_computing_client.rb', line 94 def logger @api_client.config.logger end |
#pause_batch_job(batch_job_id, pause_batch_job_details, opts = {}) ⇒ Response
Click here to see an example of how to use pause_batch_job API.
Pauses the batch job and all its tasks.
2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 |
# File 'lib/oci/batch/batch_computing_client.rb', line 2494 def pause_batch_job(batch_job_id, pause_batch_job_details, opts = {}) logger.debug 'Calling operation BatchComputingClient#pause_batch_job.' if logger raise "Missing the required parameter 'batch_job_id' when calling pause_batch_job." if batch_job_id.nil? raise "Missing the required parameter 'pause_batch_job_details' when calling pause_batch_job." if pause_batch_job_details.nil? raise "Parameter value for 'batch_job_id' must not be blank" if OCI::Internal::Util.blank_string?(batch_job_id) path = '/batchJobs/{batchJobId}/actions/pause'.sub('{batchJobId}', batch_job_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(pause_batch_job_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'BatchComputingClient#pause_batch_job') 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_batch_context(batch_context_id, start_batch_context_details, opts = {}) ⇒ Response
Click here to see an example of how to use start_batch_context API.
Activates a batch context to accept new jobs.
2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 |
# File 'lib/oci/batch/batch_computing_client.rb', line 2559 def start_batch_context(batch_context_id, start_batch_context_details, opts = {}) logger.debug 'Calling operation BatchComputingClient#start_batch_context.' if logger raise "Missing the required parameter 'batch_context_id' when calling start_batch_context." if batch_context_id.nil? raise "Missing the required parameter 'start_batch_context_details' when calling start_batch_context." if start_batch_context_details.nil? raise "Parameter value for 'batch_context_id' must not be blank" if OCI::Internal::Util.blank_string?(batch_context_id) path = '/batchContexts/{batchContextId}/actions/start'.sub('{batchContextId}', batch_context_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(start_batch_context_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'BatchComputingClient#start_batch_context') 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_batch_job_pool(batch_job_pool_id, start_batch_job_pool_details, opts = {}) ⇒ Response
Click here to see an example of how to use start_batch_job_pool API.
Activates the batch job pool.
2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 |
# File 'lib/oci/batch/batch_computing_client.rb', line 2624 def start_batch_job_pool(batch_job_pool_id, start_batch_job_pool_details, opts = {}) logger.debug 'Calling operation BatchComputingClient#start_batch_job_pool.' if logger raise "Missing the required parameter 'batch_job_pool_id' when calling start_batch_job_pool." if batch_job_pool_id.nil? raise "Missing the required parameter 'start_batch_job_pool_details' when calling start_batch_job_pool." if start_batch_job_pool_details.nil? raise "Parameter value for 'batch_job_pool_id' must not be blank" if OCI::Internal::Util.blank_string?(batch_job_pool_id) path = '/batchJobPools/{batchJobPoolId}/actions/start'.sub('{batchJobPoolId}', batch_job_pool_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(start_batch_job_pool_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'BatchComputingClient#start_batch_job_pool') 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_batch_context(batch_context_id, stop_batch_context_details, opts = {}) ⇒ Response
Click here to see an example of how to use stop_batch_context API.
Stops a batch context from accepting new jobs.
2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 |
# File 'lib/oci/batch/batch_computing_client.rb', line 2689 def stop_batch_context(batch_context_id, stop_batch_context_details, opts = {}) logger.debug 'Calling operation BatchComputingClient#stop_batch_context.' if logger raise "Missing the required parameter 'batch_context_id' when calling stop_batch_context." if batch_context_id.nil? raise "Missing the required parameter 'stop_batch_context_details' when calling stop_batch_context." if stop_batch_context_details.nil? raise "Parameter value for 'batch_context_id' must not be blank" if OCI::Internal::Util.blank_string?(batch_context_id) path = '/batchContexts/{batchContextId}/actions/stop'.sub('{batchContextId}', batch_context_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(stop_batch_context_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'BatchComputingClient#stop_batch_context') 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_batch_job_pool(batch_job_pool_id, stop_batch_job_pool_details, opts = {}) ⇒ Response
Click here to see an example of how to use stop_batch_job_pool API.
Deactivates the batch job pool.
2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 |
# File 'lib/oci/batch/batch_computing_client.rb', line 2754 def stop_batch_job_pool(batch_job_pool_id, stop_batch_job_pool_details, opts = {}) logger.debug 'Calling operation BatchComputingClient#stop_batch_job_pool.' if logger raise "Missing the required parameter 'batch_job_pool_id' when calling stop_batch_job_pool." if batch_job_pool_id.nil? raise "Missing the required parameter 'stop_batch_job_pool_details' when calling stop_batch_job_pool." if stop_batch_job_pool_details.nil? raise "Parameter value for 'batch_job_pool_id' must not be blank" if OCI::Internal::Util.blank_string?(batch_job_pool_id) path = '/batchJobPools/{batchJobPoolId}/actions/stop'.sub('{batchJobPoolId}', batch_job_pool_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(stop_batch_job_pool_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'BatchComputingClient#stop_batch_job_pool') 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 |
#unpause_batch_job(batch_job_id, unpause_batch_job_details, opts = {}) ⇒ Response
Click here to see an example of how to use unpause_batch_job API.
Resumes the batch job and all its tasks.
2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 |
# File 'lib/oci/batch/batch_computing_client.rb', line 2819 def unpause_batch_job(batch_job_id, unpause_batch_job_details, opts = {}) logger.debug 'Calling operation BatchComputingClient#unpause_batch_job.' if logger raise "Missing the required parameter 'batch_job_id' when calling unpause_batch_job." if batch_job_id.nil? raise "Missing the required parameter 'unpause_batch_job_details' when calling unpause_batch_job." if unpause_batch_job_details.nil? raise "Parameter value for 'batch_job_id' must not be blank" if OCI::Internal::Util.blank_string?(batch_job_id) path = '/batchJobs/{batchJobId}/actions/unpause'.sub('{batchJobId}', batch_job_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(unpause_batch_job_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'BatchComputingClient#unpause_batch_job') 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_batch_context(batch_context_id, update_batch_context_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_batch_context API.
Updates a batch context.
2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 |
# File 'lib/oci/batch/batch_computing_client.rb', line 2884 def update_batch_context(batch_context_id, update_batch_context_details, opts = {}) logger.debug 'Calling operation BatchComputingClient#update_batch_context.' if logger raise "Missing the required parameter 'batch_context_id' when calling update_batch_context." if batch_context_id.nil? raise "Missing the required parameter 'update_batch_context_details' when calling update_batch_context." if update_batch_context_details.nil? raise "Parameter value for 'batch_context_id' must not be blank" if OCI::Internal::Util.blank_string?(batch_context_id) path = '/batchContexts/{batchContextId}'.sub('{batchContextId}', batch_context_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_batch_context_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'BatchComputingClient#update_batch_context') 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_batch_job(batch_job_id, update_batch_job_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_batch_job API.
Updates a batch job.
2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 |
# File 'lib/oci/batch/batch_computing_client.rb', line 2949 def update_batch_job(batch_job_id, update_batch_job_details, opts = {}) logger.debug 'Calling operation BatchComputingClient#update_batch_job.' if logger raise "Missing the required parameter 'batch_job_id' when calling update_batch_job." if batch_job_id.nil? raise "Missing the required parameter 'update_batch_job_details' when calling update_batch_job." if update_batch_job_details.nil? raise "Parameter value for 'batch_job_id' must not be blank" if OCI::Internal::Util.blank_string?(batch_job_id) path = '/batchJobs/{batchJobId}'.sub('{batchJobId}', batch_job_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_batch_job_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'BatchComputingClient#update_batch_job') 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_batch_job_pool(batch_job_pool_id, update_batch_job_pool_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_batch_job_pool API.
Updates a batch job pool.
3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 |
# File 'lib/oci/batch/batch_computing_client.rb', line 3014 def update_batch_job_pool(batch_job_pool_id, update_batch_job_pool_details, opts = {}) logger.debug 'Calling operation BatchComputingClient#update_batch_job_pool.' if logger raise "Missing the required parameter 'batch_job_pool_id' when calling update_batch_job_pool." if batch_job_pool_id.nil? raise "Missing the required parameter 'update_batch_job_pool_details' when calling update_batch_job_pool." if update_batch_job_pool_details.nil? raise "Parameter value for 'batch_job_pool_id' must not be blank" if OCI::Internal::Util.blank_string?(batch_job_pool_id) path = '/batchJobPools/{batchJobPoolId}'.sub('{batchJobPoolId}', batch_job_pool_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_batch_job_pool_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'BatchComputingClient#update_batch_job_pool') 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_batch_task_environment(batch_task_environment_id, update_batch_task_environment_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_batch_task_environment API.
Updates a batch task environment.
3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 |
# File 'lib/oci/batch/batch_computing_client.rb', line 3079 def update_batch_task_environment(batch_task_environment_id, update_batch_task_environment_details, opts = {}) logger.debug 'Calling operation BatchComputingClient#update_batch_task_environment.' if logger raise "Missing the required parameter 'batch_task_environment_id' when calling update_batch_task_environment." if batch_task_environment_id.nil? raise "Missing the required parameter 'update_batch_task_environment_details' when calling update_batch_task_environment." if update_batch_task_environment_details.nil? raise "Parameter value for 'batch_task_environment_id' must not be blank" if OCI::Internal::Util.blank_string?(batch_task_environment_id) path = '/batchTaskEnvironments/{batchTaskEnvironmentId}'.sub('{batchTaskEnvironmentId}', batch_task_environment_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_batch_task_environment_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'BatchComputingClient#update_batch_task_environment') 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, return_type: 'OCI::Batch::Models::BatchTaskEnvironment' ) end # rubocop:enable Metrics/BlockLength end |
#update_batch_task_profile(batch_task_profile_id, update_batch_task_profile_details, opts = {}) ⇒ Response
Click here to see an example of how to use update_batch_task_profile API.
Updates a batch task profile.
3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 |
# File 'lib/oci/batch/batch_computing_client.rb', line 3145 def update_batch_task_profile(batch_task_profile_id, update_batch_task_profile_details, opts = {}) logger.debug 'Calling operation BatchComputingClient#update_batch_task_profile.' if logger raise "Missing the required parameter 'batch_task_profile_id' when calling update_batch_task_profile." if batch_task_profile_id.nil? raise "Missing the required parameter 'update_batch_task_profile_details' when calling update_batch_task_profile." if update_batch_task_profile_details.nil? raise "Parameter value for 'batch_task_profile_id' must not be blank" if OCI::Internal::Util.blank_string?(batch_task_profile_id) path = '/batchTaskProfiles/{batchTaskProfileId}'.sub('{batchTaskProfileId}', batch_task_profile_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_batch_task_profile_details) # rubocop:disable Metrics/BlockLength OCI::Retry.(applicable_retry_config(opts), call_name: 'BatchComputingClient#update_batch_task_profile') 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, return_type: 'OCI::Batch::Models::BatchTaskProfile' ) end # rubocop:enable Metrics/BlockLength end |