google-apis-run_v1 0.19.0 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/lib/google/apis/run_v1/classes.rb +820 -48
- data/lib/google/apis/run_v1/gem_version.rb +2 -2
- data/lib/google/apis/run_v1/representations.rb +329 -0
- data/lib/google/apis/run_v1/service.rb +570 -2
- data/lib/google/apis/run_v1.rb +3 -2
- metadata +3 -3
@@ -23,8 +23,9 @@ module Google
|
|
23
23
|
# Cloud Run Admin API
|
24
24
|
#
|
25
25
|
# Deploy and manage user provided container images that scale automatically
|
26
|
-
# based on incoming requests. The Cloud Run Admin API follows the Knative
|
27
|
-
# Serving API specification
|
26
|
+
# based on incoming requests. The Cloud Run Admin API v1 follows the Knative
|
27
|
+
# Serving API specification, while v2 is aligned with Google Cloud AIP-based API
|
28
|
+
# standards, as described in https://google.aip.dev/.
|
28
29
|
#
|
29
30
|
# @example
|
30
31
|
# require 'google/apis/run_v1'
|
@@ -347,6 +348,371 @@ module Google
|
|
347
348
|
execute_or_queue_command(command, &block)
|
348
349
|
end
|
349
350
|
|
351
|
+
# Delete an execution.
|
352
|
+
# @param [String] name
|
353
|
+
# Required. The name of the execution to delete. Replace `namespace_id` with the
|
354
|
+
# project ID or number.
|
355
|
+
# @param [String] api_version
|
356
|
+
# Optional. Cloud Run currently ignores this parameter.
|
357
|
+
# @param [String] kind
|
358
|
+
# Optional. Cloud Run currently ignores this parameter.
|
359
|
+
# @param [String] propagation_policy
|
360
|
+
# Optional. Specifies the propagation policy of delete. Cloud Run currently
|
361
|
+
# ignores this setting, and deletes in the background. Please see kubernetes.io/
|
362
|
+
# docs/concepts/workloads/controllers/garbage-collection/ for more information.
|
363
|
+
# @param [String] fields
|
364
|
+
# Selector specifying which fields to include in a partial response.
|
365
|
+
# @param [String] quota_user
|
366
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
367
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
368
|
+
# @param [Google::Apis::RequestOptions] options
|
369
|
+
# Request-specific options
|
370
|
+
#
|
371
|
+
# @yield [result, err] Result & error if block supplied
|
372
|
+
# @yieldparam result [Google::Apis::RunV1::Status] parsed result object
|
373
|
+
# @yieldparam err [StandardError] error object if request failed
|
374
|
+
#
|
375
|
+
# @return [Google::Apis::RunV1::Status]
|
376
|
+
#
|
377
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
378
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
379
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
380
|
+
def delete_namespace_execution(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block)
|
381
|
+
command = make_simple_command(:delete, 'apis/run.googleapis.com/v1/{+name}', options)
|
382
|
+
command.response_representation = Google::Apis::RunV1::Status::Representation
|
383
|
+
command.response_class = Google::Apis::RunV1::Status
|
384
|
+
command.params['name'] = name unless name.nil?
|
385
|
+
command.query['apiVersion'] = api_version unless api_version.nil?
|
386
|
+
command.query['kind'] = kind unless kind.nil?
|
387
|
+
command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil?
|
388
|
+
command.query['fields'] = fields unless fields.nil?
|
389
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
390
|
+
execute_or_queue_command(command, &block)
|
391
|
+
end
|
392
|
+
|
393
|
+
# Get information about an execution.
|
394
|
+
# @param [String] name
|
395
|
+
# Required. The name of the execution to retrieve. Replace `namespace_id` with
|
396
|
+
# the project ID or number.
|
397
|
+
# @param [String] fields
|
398
|
+
# Selector specifying which fields to include in a partial response.
|
399
|
+
# @param [String] quota_user
|
400
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
401
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
402
|
+
# @param [Google::Apis::RequestOptions] options
|
403
|
+
# Request-specific options
|
404
|
+
#
|
405
|
+
# @yield [result, err] Result & error if block supplied
|
406
|
+
# @yieldparam result [Google::Apis::RunV1::Execution] parsed result object
|
407
|
+
# @yieldparam err [StandardError] error object if request failed
|
408
|
+
#
|
409
|
+
# @return [Google::Apis::RunV1::Execution]
|
410
|
+
#
|
411
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
412
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
413
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
414
|
+
def get_namespace_execution(name, fields: nil, quota_user: nil, options: nil, &block)
|
415
|
+
command = make_simple_command(:get, 'apis/run.googleapis.com/v1/{+name}', options)
|
416
|
+
command.response_representation = Google::Apis::RunV1::Execution::Representation
|
417
|
+
command.response_class = Google::Apis::RunV1::Execution
|
418
|
+
command.params['name'] = name unless name.nil?
|
419
|
+
command.query['fields'] = fields unless fields.nil?
|
420
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
421
|
+
execute_or_queue_command(command, &block)
|
422
|
+
end
|
423
|
+
|
424
|
+
# List executions.
|
425
|
+
# @param [String] parent
|
426
|
+
# Required. The namespace from which the executions should be listed. Replace `
|
427
|
+
# namespace_id` with the project ID or number.
|
428
|
+
# @param [String] continue
|
429
|
+
# Optional. Optional encoded string to continue paging.
|
430
|
+
# @param [String] field_selector
|
431
|
+
# Optional. Allows to filter resources based on a specific value for a field
|
432
|
+
# name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not
|
433
|
+
# currently used by Cloud Run.
|
434
|
+
# @param [Boolean] include_uninitialized
|
435
|
+
# Optional. Not currently used by Cloud Run.
|
436
|
+
# @param [String] label_selector
|
437
|
+
# Optional. Allows to filter resources based on a label. Supported operations
|
438
|
+
# are =, !=, exists, in, and notIn.
|
439
|
+
# @param [Fixnum] limit
|
440
|
+
# Optional. The maximum number of records that should be returned.
|
441
|
+
# @param [String] resource_version
|
442
|
+
# Optional. The baseline resource version from which the list or watch operation
|
443
|
+
# should start. Not currently used by Cloud Run.
|
444
|
+
# @param [Boolean] watch
|
445
|
+
# Optional. Flag that indicates that the client expects to watch this resource
|
446
|
+
# as well. Not currently used by Cloud Run.
|
447
|
+
# @param [String] fields
|
448
|
+
# Selector specifying which fields to include in a partial response.
|
449
|
+
# @param [String] quota_user
|
450
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
451
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
452
|
+
# @param [Google::Apis::RequestOptions] options
|
453
|
+
# Request-specific options
|
454
|
+
#
|
455
|
+
# @yield [result, err] Result & error if block supplied
|
456
|
+
# @yieldparam result [Google::Apis::RunV1::ListExecutionsResponse] parsed result object
|
457
|
+
# @yieldparam err [StandardError] error object if request failed
|
458
|
+
#
|
459
|
+
# @return [Google::Apis::RunV1::ListExecutionsResponse]
|
460
|
+
#
|
461
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
462
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
463
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
464
|
+
def list_namespace_executions(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block)
|
465
|
+
command = make_simple_command(:get, 'apis/run.googleapis.com/v1/{+parent}/executions', options)
|
466
|
+
command.response_representation = Google::Apis::RunV1::ListExecutionsResponse::Representation
|
467
|
+
command.response_class = Google::Apis::RunV1::ListExecutionsResponse
|
468
|
+
command.params['parent'] = parent unless parent.nil?
|
469
|
+
command.query['continue'] = continue unless continue.nil?
|
470
|
+
command.query['fieldSelector'] = field_selector unless field_selector.nil?
|
471
|
+
command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
|
472
|
+
command.query['labelSelector'] = label_selector unless label_selector.nil?
|
473
|
+
command.query['limit'] = limit unless limit.nil?
|
474
|
+
command.query['resourceVersion'] = resource_version unless resource_version.nil?
|
475
|
+
command.query['watch'] = watch unless watch.nil?
|
476
|
+
command.query['fields'] = fields unless fields.nil?
|
477
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
478
|
+
execute_or_queue_command(command, &block)
|
479
|
+
end
|
480
|
+
|
481
|
+
# Create a job.
|
482
|
+
# @param [String] parent
|
483
|
+
# Required. The namespace in which the job should be created. Replace `
|
484
|
+
# namespace_id` with the project ID or number.
|
485
|
+
# @param [Google::Apis::RunV1::Job] job_object
|
486
|
+
# @param [String] fields
|
487
|
+
# Selector specifying which fields to include in a partial response.
|
488
|
+
# @param [String] quota_user
|
489
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
490
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
491
|
+
# @param [Google::Apis::RequestOptions] options
|
492
|
+
# Request-specific options
|
493
|
+
#
|
494
|
+
# @yield [result, err] Result & error if block supplied
|
495
|
+
# @yieldparam result [Google::Apis::RunV1::Job] parsed result object
|
496
|
+
# @yieldparam err [StandardError] error object if request failed
|
497
|
+
#
|
498
|
+
# @return [Google::Apis::RunV1::Job]
|
499
|
+
#
|
500
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
501
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
502
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
503
|
+
def create_namespace_job(parent, job_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
504
|
+
command = make_simple_command(:post, 'apis/run.googleapis.com/v1/{+parent}/jobs', options)
|
505
|
+
command.request_representation = Google::Apis::RunV1::Job::Representation
|
506
|
+
command.request_object = job_object
|
507
|
+
command.response_representation = Google::Apis::RunV1::Job::Representation
|
508
|
+
command.response_class = Google::Apis::RunV1::Job
|
509
|
+
command.params['parent'] = parent unless parent.nil?
|
510
|
+
command.query['fields'] = fields unless fields.nil?
|
511
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
512
|
+
execute_or_queue_command(command, &block)
|
513
|
+
end
|
514
|
+
|
515
|
+
# Delete a job.
|
516
|
+
# @param [String] name
|
517
|
+
# Required. The name of the job to delete. Replace `namespace_id` with the
|
518
|
+
# project ID or number.
|
519
|
+
# @param [String] api_version
|
520
|
+
# Optional. Cloud Run currently ignores this parameter.
|
521
|
+
# @param [String] kind
|
522
|
+
# Optional. Cloud Run currently ignores this parameter.
|
523
|
+
# @param [String] propagation_policy
|
524
|
+
# Optional. Specifies the propagation policy of delete. Cloud Run currently
|
525
|
+
# ignores this setting, and deletes in the background. Please see kubernetes.io/
|
526
|
+
# docs/concepts/workloads/controllers/garbage-collection/ for more information.
|
527
|
+
# @param [String] fields
|
528
|
+
# Selector specifying which fields to include in a partial response.
|
529
|
+
# @param [String] quota_user
|
530
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
531
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
532
|
+
# @param [Google::Apis::RequestOptions] options
|
533
|
+
# Request-specific options
|
534
|
+
#
|
535
|
+
# @yield [result, err] Result & error if block supplied
|
536
|
+
# @yieldparam result [Google::Apis::RunV1::Status] parsed result object
|
537
|
+
# @yieldparam err [StandardError] error object if request failed
|
538
|
+
#
|
539
|
+
# @return [Google::Apis::RunV1::Status]
|
540
|
+
#
|
541
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
542
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
543
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
544
|
+
def delete_namespace_job(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block)
|
545
|
+
command = make_simple_command(:delete, 'apis/run.googleapis.com/v1/{+name}', options)
|
546
|
+
command.response_representation = Google::Apis::RunV1::Status::Representation
|
547
|
+
command.response_class = Google::Apis::RunV1::Status
|
548
|
+
command.params['name'] = name unless name.nil?
|
549
|
+
command.query['apiVersion'] = api_version unless api_version.nil?
|
550
|
+
command.query['kind'] = kind unless kind.nil?
|
551
|
+
command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil?
|
552
|
+
command.query['fields'] = fields unless fields.nil?
|
553
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
554
|
+
execute_or_queue_command(command, &block)
|
555
|
+
end
|
556
|
+
|
557
|
+
# Get information about a job.
|
558
|
+
# @param [String] name
|
559
|
+
# Required. The name of the job to retrieve. Replace `namespace_id` with the
|
560
|
+
# project ID or number.
|
561
|
+
# @param [String] fields
|
562
|
+
# Selector specifying which fields to include in a partial response.
|
563
|
+
# @param [String] quota_user
|
564
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
565
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
566
|
+
# @param [Google::Apis::RequestOptions] options
|
567
|
+
# Request-specific options
|
568
|
+
#
|
569
|
+
# @yield [result, err] Result & error if block supplied
|
570
|
+
# @yieldparam result [Google::Apis::RunV1::Job] parsed result object
|
571
|
+
# @yieldparam err [StandardError] error object if request failed
|
572
|
+
#
|
573
|
+
# @return [Google::Apis::RunV1::Job]
|
574
|
+
#
|
575
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
576
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
577
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
578
|
+
def get_namespace_job(name, fields: nil, quota_user: nil, options: nil, &block)
|
579
|
+
command = make_simple_command(:get, 'apis/run.googleapis.com/v1/{+name}', options)
|
580
|
+
command.response_representation = Google::Apis::RunV1::Job::Representation
|
581
|
+
command.response_class = Google::Apis::RunV1::Job
|
582
|
+
command.params['name'] = name unless name.nil?
|
583
|
+
command.query['fields'] = fields unless fields.nil?
|
584
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
585
|
+
execute_or_queue_command(command, &block)
|
586
|
+
end
|
587
|
+
|
588
|
+
# List jobs.
|
589
|
+
# @param [String] parent
|
590
|
+
# Required. The namespace from which the jobs should be listed. Replace `
|
591
|
+
# namespace_id` with the project ID or number.
|
592
|
+
# @param [String] continue
|
593
|
+
# Optional. Optional encoded string to continue paging.
|
594
|
+
# @param [String] field_selector
|
595
|
+
# Optional. Allows to filter resources based on a specific value for a field
|
596
|
+
# name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not
|
597
|
+
# currently used by Cloud Run.
|
598
|
+
# @param [Boolean] include_uninitialized
|
599
|
+
# Optional. Not currently used by Cloud Run.
|
600
|
+
# @param [String] label_selector
|
601
|
+
# Optional. Allows to filter resources based on a label. Supported operations
|
602
|
+
# are =, !=, exists, in, and notIn.
|
603
|
+
# @param [Fixnum] limit
|
604
|
+
# Optional. The maximum number of records that should be returned.
|
605
|
+
# @param [String] resource_version
|
606
|
+
# Optional. The baseline resource version from which the list or watch operation
|
607
|
+
# should start. Not currently used by Cloud Run.
|
608
|
+
# @param [Boolean] watch
|
609
|
+
# Optional. Flag that indicates that the client expects to watch this resource
|
610
|
+
# as well. Not currently used by Cloud Run.
|
611
|
+
# @param [String] fields
|
612
|
+
# Selector specifying which fields to include in a partial response.
|
613
|
+
# @param [String] quota_user
|
614
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
615
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
616
|
+
# @param [Google::Apis::RequestOptions] options
|
617
|
+
# Request-specific options
|
618
|
+
#
|
619
|
+
# @yield [result, err] Result & error if block supplied
|
620
|
+
# @yieldparam result [Google::Apis::RunV1::ListJobsResponse] parsed result object
|
621
|
+
# @yieldparam err [StandardError] error object if request failed
|
622
|
+
#
|
623
|
+
# @return [Google::Apis::RunV1::ListJobsResponse]
|
624
|
+
#
|
625
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
626
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
627
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
628
|
+
def list_namespace_jobs(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block)
|
629
|
+
command = make_simple_command(:get, 'apis/run.googleapis.com/v1/{+parent}/jobs', options)
|
630
|
+
command.response_representation = Google::Apis::RunV1::ListJobsResponse::Representation
|
631
|
+
command.response_class = Google::Apis::RunV1::ListJobsResponse
|
632
|
+
command.params['parent'] = parent unless parent.nil?
|
633
|
+
command.query['continue'] = continue unless continue.nil?
|
634
|
+
command.query['fieldSelector'] = field_selector unless field_selector.nil?
|
635
|
+
command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
|
636
|
+
command.query['labelSelector'] = label_selector unless label_selector.nil?
|
637
|
+
command.query['limit'] = limit unless limit.nil?
|
638
|
+
command.query['resourceVersion'] = resource_version unless resource_version.nil?
|
639
|
+
command.query['watch'] = watch unless watch.nil?
|
640
|
+
command.query['fields'] = fields unless fields.nil?
|
641
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
642
|
+
execute_or_queue_command(command, &block)
|
643
|
+
end
|
644
|
+
|
645
|
+
# Replace a job. Only the spec and metadata labels and annotations are
|
646
|
+
# modifiable. After the Replace request, Cloud Run will work to make the 'status'
|
647
|
+
# match the requested 'spec'. May provide metadata.resourceVersion to enforce
|
648
|
+
# update from last read for optimistic concurrency control.
|
649
|
+
# @param [String] name
|
650
|
+
# Required. The name of the service being replaced. Replace `namespace_id` with
|
651
|
+
# the project ID or number.
|
652
|
+
# @param [Google::Apis::RunV1::Job] job_object
|
653
|
+
# @param [String] fields
|
654
|
+
# Selector specifying which fields to include in a partial response.
|
655
|
+
# @param [String] quota_user
|
656
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
657
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
658
|
+
# @param [Google::Apis::RequestOptions] options
|
659
|
+
# Request-specific options
|
660
|
+
#
|
661
|
+
# @yield [result, err] Result & error if block supplied
|
662
|
+
# @yieldparam result [Google::Apis::RunV1::Job] parsed result object
|
663
|
+
# @yieldparam err [StandardError] error object if request failed
|
664
|
+
#
|
665
|
+
# @return [Google::Apis::RunV1::Job]
|
666
|
+
#
|
667
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
668
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
669
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
670
|
+
def replace_namespace_job_job(name, job_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
671
|
+
command = make_simple_command(:put, 'apis/run.googleapis.com/v1/{+name}', options)
|
672
|
+
command.request_representation = Google::Apis::RunV1::Job::Representation
|
673
|
+
command.request_object = job_object
|
674
|
+
command.response_representation = Google::Apis::RunV1::Job::Representation
|
675
|
+
command.response_class = Google::Apis::RunV1::Job
|
676
|
+
command.params['name'] = name unless name.nil?
|
677
|
+
command.query['fields'] = fields unless fields.nil?
|
678
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
679
|
+
execute_or_queue_command(command, &block)
|
680
|
+
end
|
681
|
+
|
682
|
+
# Trigger creation of a new execution of this job.
|
683
|
+
# @param [String] name
|
684
|
+
# Required. The name of the job to run. Replace `namespace_id` with the project
|
685
|
+
# ID or number.
|
686
|
+
# @param [Google::Apis::RunV1::RunJobRequest] run_job_request_object
|
687
|
+
# @param [String] fields
|
688
|
+
# Selector specifying which fields to include in a partial response.
|
689
|
+
# @param [String] quota_user
|
690
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
691
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
692
|
+
# @param [Google::Apis::RequestOptions] options
|
693
|
+
# Request-specific options
|
694
|
+
#
|
695
|
+
# @yield [result, err] Result & error if block supplied
|
696
|
+
# @yieldparam result [Google::Apis::RunV1::Execution] parsed result object
|
697
|
+
# @yieldparam err [StandardError] error object if request failed
|
698
|
+
#
|
699
|
+
# @return [Google::Apis::RunV1::Execution]
|
700
|
+
#
|
701
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
702
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
703
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
704
|
+
def run_job(name, run_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
705
|
+
command = make_simple_command(:post, 'apis/run.googleapis.com/v1/{+name}:run', options)
|
706
|
+
command.request_representation = Google::Apis::RunV1::RunJobRequest::Representation
|
707
|
+
command.request_object = run_job_request_object
|
708
|
+
command.response_representation = Google::Apis::RunV1::Execution::Representation
|
709
|
+
command.response_class = Google::Apis::RunV1::Execution
|
710
|
+
command.params['name'] = name unless name.nil?
|
711
|
+
command.query['fields'] = fields unless fields.nil?
|
712
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
713
|
+
execute_or_queue_command(command, &block)
|
714
|
+
end
|
715
|
+
|
350
716
|
# Delete a revision.
|
351
717
|
# @param [String] name
|
352
718
|
# The name of the revision to delete. For Cloud Run (fully managed), replace `
|
@@ -783,6 +1149,94 @@ module Google
|
|
783
1149
|
execute_or_queue_command(command, &block)
|
784
1150
|
end
|
785
1151
|
|
1152
|
+
# Get information about a task.
|
1153
|
+
# @param [String] name
|
1154
|
+
# Required. The name of the task to retrieve. Replace `namespace_id` with the
|
1155
|
+
# project ID or number.
|
1156
|
+
# @param [String] fields
|
1157
|
+
# Selector specifying which fields to include in a partial response.
|
1158
|
+
# @param [String] quota_user
|
1159
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1160
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1161
|
+
# @param [Google::Apis::RequestOptions] options
|
1162
|
+
# Request-specific options
|
1163
|
+
#
|
1164
|
+
# @yield [result, err] Result & error if block supplied
|
1165
|
+
# @yieldparam result [Google::Apis::RunV1::Task] parsed result object
|
1166
|
+
# @yieldparam err [StandardError] error object if request failed
|
1167
|
+
#
|
1168
|
+
# @return [Google::Apis::RunV1::Task]
|
1169
|
+
#
|
1170
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1171
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1172
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1173
|
+
def get_namespace_task(name, fields: nil, quota_user: nil, options: nil, &block)
|
1174
|
+
command = make_simple_command(:get, 'apis/run.googleapis.com/v1/{+name}', options)
|
1175
|
+
command.response_representation = Google::Apis::RunV1::Task::Representation
|
1176
|
+
command.response_class = Google::Apis::RunV1::Task
|
1177
|
+
command.params['name'] = name unless name.nil?
|
1178
|
+
command.query['fields'] = fields unless fields.nil?
|
1179
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1180
|
+
execute_or_queue_command(command, &block)
|
1181
|
+
end
|
1182
|
+
|
1183
|
+
# List tasks.
|
1184
|
+
# @param [String] parent
|
1185
|
+
# Required. The namespace from which the tasks should be listed. Replace `
|
1186
|
+
# namespace_id` with the project ID or number.
|
1187
|
+
# @param [String] continue
|
1188
|
+
# Optional. Optional encoded string to continue paging.
|
1189
|
+
# @param [String] field_selector
|
1190
|
+
# Optional. Allows to filter resources based on a specific value for a field
|
1191
|
+
# name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not
|
1192
|
+
# currently used by Cloud Run.
|
1193
|
+
# @param [Boolean] include_uninitialized
|
1194
|
+
# Optional. Not currently used by Cloud Run.
|
1195
|
+
# @param [String] label_selector
|
1196
|
+
# Optional. Allows to filter resources based on a label. Supported operations
|
1197
|
+
# are =, !=, exists, in, and notIn.
|
1198
|
+
# @param [Fixnum] limit
|
1199
|
+
# Optional. The maximum number of records that should be returned.
|
1200
|
+
# @param [String] resource_version
|
1201
|
+
# Optional. The baseline resource version from which the list or watch operation
|
1202
|
+
# should start. Not currently used by Cloud Run.
|
1203
|
+
# @param [Boolean] watch
|
1204
|
+
# Optional. Flag that indicates that the client expects to watch this resource
|
1205
|
+
# as well. Not currently used by Cloud Run.
|
1206
|
+
# @param [String] fields
|
1207
|
+
# Selector specifying which fields to include in a partial response.
|
1208
|
+
# @param [String] quota_user
|
1209
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1210
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1211
|
+
# @param [Google::Apis::RequestOptions] options
|
1212
|
+
# Request-specific options
|
1213
|
+
#
|
1214
|
+
# @yield [result, err] Result & error if block supplied
|
1215
|
+
# @yieldparam result [Google::Apis::RunV1::ListTasksResponse] parsed result object
|
1216
|
+
# @yieldparam err [StandardError] error object if request failed
|
1217
|
+
#
|
1218
|
+
# @return [Google::Apis::RunV1::ListTasksResponse]
|
1219
|
+
#
|
1220
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1221
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1222
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1223
|
+
def list_namespace_tasks(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1224
|
+
command = make_simple_command(:get, 'apis/run.googleapis.com/v1/{+parent}/tasks', options)
|
1225
|
+
command.response_representation = Google::Apis::RunV1::ListTasksResponse::Representation
|
1226
|
+
command.response_class = Google::Apis::RunV1::ListTasksResponse
|
1227
|
+
command.params['parent'] = parent unless parent.nil?
|
1228
|
+
command.query['continue'] = continue unless continue.nil?
|
1229
|
+
command.query['fieldSelector'] = field_selector unless field_selector.nil?
|
1230
|
+
command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
|
1231
|
+
command.query['labelSelector'] = label_selector unless label_selector.nil?
|
1232
|
+
command.query['limit'] = limit unless limit.nil?
|
1233
|
+
command.query['resourceVersion'] = resource_version unless resource_version.nil?
|
1234
|
+
command.query['watch'] = watch unless watch.nil?
|
1235
|
+
command.query['fields'] = fields unless fields.nil?
|
1236
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1237
|
+
execute_or_queue_command(command, &block)
|
1238
|
+
end
|
1239
|
+
|
786
1240
|
# List authorized domains.
|
787
1241
|
# @param [String] parent
|
788
1242
|
# Name of the parent Project resource. Example: `projects/myproject`.
|
@@ -1158,6 +1612,120 @@ module Google
|
|
1158
1612
|
execute_or_queue_command(command, &block)
|
1159
1613
|
end
|
1160
1614
|
|
1615
|
+
# Get the IAM Access Control policy currently in effect for the given job. This
|
1616
|
+
# result does not include any inherited policies.
|
1617
|
+
# @param [String] resource
|
1618
|
+
# REQUIRED: The resource for which the policy is being requested. See the
|
1619
|
+
# operation documentation for the appropriate value for this field.
|
1620
|
+
# @param [Fixnum] options_requested_policy_version
|
1621
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
1622
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
1623
|
+
# rejected. Requests for policies with any conditional role bindings must
|
1624
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
1625
|
+
# valid value or leave the field unset. The policy in the response might use the
|
1626
|
+
# policy version that you specified, or it might use a lower policy version. For
|
1627
|
+
# example, if you specify version 3, but the policy has no conditional role
|
1628
|
+
# bindings, the response uses version 1. To learn which resources support
|
1629
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
1630
|
+
# google.com/iam/help/conditions/resource-policies).
|
1631
|
+
# @param [String] fields
|
1632
|
+
# Selector specifying which fields to include in a partial response.
|
1633
|
+
# @param [String] quota_user
|
1634
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1635
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1636
|
+
# @param [Google::Apis::RequestOptions] options
|
1637
|
+
# Request-specific options
|
1638
|
+
#
|
1639
|
+
# @yield [result, err] Result & error if block supplied
|
1640
|
+
# @yieldparam result [Google::Apis::RunV1::Policy] parsed result object
|
1641
|
+
# @yieldparam err [StandardError] error object if request failed
|
1642
|
+
#
|
1643
|
+
# @return [Google::Apis::RunV1::Policy]
|
1644
|
+
#
|
1645
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1646
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1647
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1648
|
+
def get_project_location_job_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1649
|
+
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
1650
|
+
command.response_representation = Google::Apis::RunV1::Policy::Representation
|
1651
|
+
command.response_class = Google::Apis::RunV1::Policy
|
1652
|
+
command.params['resource'] = resource unless resource.nil?
|
1653
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
1654
|
+
command.query['fields'] = fields unless fields.nil?
|
1655
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1656
|
+
execute_or_queue_command(command, &block)
|
1657
|
+
end
|
1658
|
+
|
1659
|
+
# Sets the IAM Access control policy for the specified job. Overwrites any
|
1660
|
+
# existing policy.
|
1661
|
+
# @param [String] resource
|
1662
|
+
# REQUIRED: The resource for which the policy is being specified. See the
|
1663
|
+
# operation documentation for the appropriate value for this field.
|
1664
|
+
# @param [Google::Apis::RunV1::SetIamPolicyRequest] set_iam_policy_request_object
|
1665
|
+
# @param [String] fields
|
1666
|
+
# Selector specifying which fields to include in a partial response.
|
1667
|
+
# @param [String] quota_user
|
1668
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1669
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1670
|
+
# @param [Google::Apis::RequestOptions] options
|
1671
|
+
# Request-specific options
|
1672
|
+
#
|
1673
|
+
# @yield [result, err] Result & error if block supplied
|
1674
|
+
# @yieldparam result [Google::Apis::RunV1::Policy] parsed result object
|
1675
|
+
# @yieldparam err [StandardError] error object if request failed
|
1676
|
+
#
|
1677
|
+
# @return [Google::Apis::RunV1::Policy]
|
1678
|
+
#
|
1679
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1680
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1681
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1682
|
+
def set_job_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1683
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
1684
|
+
command.request_representation = Google::Apis::RunV1::SetIamPolicyRequest::Representation
|
1685
|
+
command.request_object = set_iam_policy_request_object
|
1686
|
+
command.response_representation = Google::Apis::RunV1::Policy::Representation
|
1687
|
+
command.response_class = Google::Apis::RunV1::Policy
|
1688
|
+
command.params['resource'] = resource unless resource.nil?
|
1689
|
+
command.query['fields'] = fields unless fields.nil?
|
1690
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1691
|
+
execute_or_queue_command(command, &block)
|
1692
|
+
end
|
1693
|
+
|
1694
|
+
# Returns permissions that a caller has on the specified job. There are no
|
1695
|
+
# permissions required for making this API call.
|
1696
|
+
# @param [String] resource
|
1697
|
+
# REQUIRED: The resource for which the policy detail is being requested. See the
|
1698
|
+
# operation documentation for the appropriate value for this field.
|
1699
|
+
# @param [Google::Apis::RunV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
1700
|
+
# @param [String] fields
|
1701
|
+
# Selector specifying which fields to include in a partial response.
|
1702
|
+
# @param [String] quota_user
|
1703
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1704
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1705
|
+
# @param [Google::Apis::RequestOptions] options
|
1706
|
+
# Request-specific options
|
1707
|
+
#
|
1708
|
+
# @yield [result, err] Result & error if block supplied
|
1709
|
+
# @yieldparam result [Google::Apis::RunV1::TestIamPermissionsResponse] parsed result object
|
1710
|
+
# @yieldparam err [StandardError] error object if request failed
|
1711
|
+
#
|
1712
|
+
# @return [Google::Apis::RunV1::TestIamPermissionsResponse]
|
1713
|
+
#
|
1714
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1715
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1716
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1717
|
+
def test_job_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1718
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
1719
|
+
command.request_representation = Google::Apis::RunV1::TestIamPermissionsRequest::Representation
|
1720
|
+
command.request_object = test_iam_permissions_request_object
|
1721
|
+
command.response_representation = Google::Apis::RunV1::TestIamPermissionsResponse::Representation
|
1722
|
+
command.response_class = Google::Apis::RunV1::TestIamPermissionsResponse
|
1723
|
+
command.params['resource'] = resource unless resource.nil?
|
1724
|
+
command.query['fields'] = fields unless fields.nil?
|
1725
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1726
|
+
execute_or_queue_command(command, &block)
|
1727
|
+
end
|
1728
|
+
|
1161
1729
|
# Delete a revision.
|
1162
1730
|
# @param [String] name
|
1163
1731
|
# The name of the revision to delete. For Cloud Run (fully managed), replace `
|
data/lib/google/apis/run_v1.rb
CHANGED
@@ -22,8 +22,9 @@ module Google
|
|
22
22
|
# Cloud Run Admin API
|
23
23
|
#
|
24
24
|
# Deploy and manage user provided container images that scale automatically
|
25
|
-
# based on incoming requests. The Cloud Run Admin API follows the Knative
|
26
|
-
# Serving API specification
|
25
|
+
# based on incoming requests. The Cloud Run Admin API v1 follows the Knative
|
26
|
+
# Serving API specification, while v2 is aligned with Google Cloud AIP-based API
|
27
|
+
# standards, as described in https://google.aip.dev/.
|
27
28
|
#
|
28
29
|
# @see https://cloud.google.com/run/
|
29
30
|
module RunV1
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-run_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.22.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-run_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-run_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-run_v1/v0.22.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-run_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|