google-apis-run_v1 0.19.0 → 0.20.0

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