Class: Google::Apis::RunV2::CloudRunService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::RunV2::CloudRunService
- Defined in:
- lib/google/apis/run_v2/service.rb
Overview
Cloud Run Admin API
Deploy and manage user provided container images that scale automatically based on incoming requests. The Cloud Run Admin API v1 follows the Knative Serving API specification, while v2 is aligned with Google Cloud AIP-based API standards, as described in https://google.aip.dev/.
Constant Summary collapse
- DEFAULT_ENDPOINT_TEMPLATE =
"https://run.$UNIVERSE_DOMAIN$/"
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
Instance Method Summary collapse
-
#cancel_project_location_job_execution(name, google_cloud_run_v2_cancel_execution_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleLongrunningOperation
Cancels an Execution.
-
#create_project_location_job(parent, google_cloud_run_v2_job_object = nil, job_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleLongrunningOperation
Creates a Job.
-
#create_project_location_service(parent, google_cloud_run_v2_service_object = nil, service_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleLongrunningOperation
Creates a new Service in a given project and location.
-
#create_project_location_worker_pool(parent, google_cloud_run_v2_worker_pool_object = nil, validate_only: nil, worker_pool_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleLongrunningOperation
Creates a new WorkerPool in a given project and location.
-
#delete_project_location_job(name, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleLongrunningOperation
Deletes a Job.
-
#delete_project_location_job_execution(name, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleLongrunningOperation
Deletes an Execution.
-
#delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleProtobufEmpty
Deletes a long-running operation.
-
#delete_project_location_service(name, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleLongrunningOperation
Deletes a Service.
-
#delete_project_location_service_revision(name, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleLongrunningOperation
Deletes a Revision.
-
#delete_project_location_worker_pool(name, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleLongrunningOperation
Deletes a WorkerPool.
-
#delete_project_location_worker_pool_revision(name, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleLongrunningOperation
Deletes a Revision.
-
#export_project_location_image(name, google_cloud_run_v2_export_image_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleCloudRunV2ExportImageResponse
Export image for a given resource.
-
#export_project_location_image_metadata(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleCloudRunV2Metadata
Export image metadata for a given resource.
-
#export_project_location_job_execution_status(name, operation_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleCloudRunV2ExportStatusResponse
Read the status of an image export operation.
-
#export_project_location_metadata(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleCloudRunV2Metadata
Export generated customer metadata for a given resource.
-
#export_project_location_project_metadata(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleCloudRunV2Metadata
Export generated customer metadata for a given project.
-
#export_project_location_service_revision_status(name, operation_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleCloudRunV2ExportStatusResponse
Read the status of an image export operation.
-
#get_project_location_job(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleCloudRunV2Job
Gets information about a Job.
-
#get_project_location_job_execution(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleCloudRunV2Execution
Gets information about an Execution.
-
#get_project_location_job_execution_task(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleCloudRunV2Task
Gets information about a Task.
-
#get_project_location_job_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleIamV1Policy
Gets the IAM Access Control policy currently in effect for the given Job.
-
#get_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleLongrunningOperation
Gets the latest state of a long-running operation.
-
#get_project_location_service(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleCloudRunV2Service
Gets information about a Service.
-
#get_project_location_service_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleIamV1Policy
Gets the IAM Access Control policy currently in effect for the given Cloud Run Service.
-
#get_project_location_service_revision(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleCloudRunV2Revision
Gets information about a Revision.
-
#get_project_location_worker_pool(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleCloudRunV2WorkerPool
Gets information about a WorkerPool.
-
#get_project_location_worker_pool_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleIamV1Policy
Gets the IAM Access Control policy currently in effect for the given Cloud Run WorkerPool.
-
#get_project_location_worker_pool_revision(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleCloudRunV2Revision
Gets information about a Revision.
-
#initialize ⇒ CloudRunService
constructor
A new instance of CloudRunService.
-
#list_project_location_job_execution_tasks(parent, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleCloudRunV2ListTasksResponse
Lists Tasks from an Execution of a Job.
-
#list_project_location_job_executions(parent, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleCloudRunV2ListExecutionsResponse
Lists Executions from a Job.
-
#list_project_location_jobs(parent, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleCloudRunV2ListJobsResponse
Lists Jobs.
-
#list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleLongrunningListOperationsResponse
Lists operations that match the specified filter in the request.
-
#list_project_location_service_revisions(parent, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleCloudRunV2ListRevisionsResponse
Lists Revisions from a given Service, or from a given location.
-
#list_project_location_services(parent, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleCloudRunV2ListServicesResponse
Lists Services.
-
#list_project_location_worker_pool_revisions(parent, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleCloudRunV2ListRevisionsResponse
Lists Revisions from a given Service, or from a given location.
-
#list_project_location_worker_pools(parent, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleCloudRunV2ListWorkerPoolsResponse
Lists WorkerPools.
-
#patch_project_location_job(name, google_cloud_run_v2_job_object = nil, allow_missing: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleLongrunningOperation
Updates a Job.
-
#patch_project_location_service(name, google_cloud_run_v2_service_object = nil, allow_missing: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleLongrunningOperation
Updates a Service.
-
#patch_project_location_worker_pool(name, google_cloud_run_v2_worker_pool_object = nil, allow_missing: nil, force_new_revision: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleLongrunningOperation
Updates a WorkerPool.
-
#run_project_location_job(name, google_cloud_run_v2_run_job_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleLongrunningOperation
Triggers creation of a new Execution of this Job.
-
#set_project_location_job_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleIamV1Policy
Sets the IAM Access control policy for the specified Job.
-
#set_project_location_service_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleIamV1Policy
Sets the IAM Access control policy for the specified Service.
-
#set_project_location_worker_pool_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleIamV1Policy
Sets the IAM Access control policy for the specified WorkerPool.
-
#submit_project_location_build(parent, google_cloud_run_v2_submit_build_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleCloudRunV2SubmitBuildResponse
Submits a build in a given project.
-
#test_project_location_job_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleIamV1TestIamPermissionsResponse
Returns permissions that a caller has on the specified Project.
-
#test_project_location_service_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleIamV1TestIamPermissionsResponse
Returns permissions that a caller has on the specified Project.
-
#test_project_location_worker_pool_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleIamV1TestIamPermissionsResponse
Returns permissions that a caller has on the specified Project.
-
#wait_project_location_operation(name, google_longrunning_wait_operation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleLongrunningOperation
Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state.
Constructor Details
#initialize ⇒ CloudRunService
Returns a new instance of CloudRunService.
50 51 52 53 54 55 |
# File 'lib/google/apis/run_v2/service.rb', line 50 def initialize super(DEFAULT_ENDPOINT_TEMPLATE, '', client_name: 'google-apis-run_v2', client_version: Google::Apis::RunV2::GEM_VERSION) @batch_path = 'batch' end |
Instance Attribute Details
#key ⇒ String
Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
43 44 45 |
# File 'lib/google/apis/run_v2/service.rb', line 43 def key @key end |
#quota_user ⇒ String
Returns Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
48 49 50 |
# File 'lib/google/apis/run_v2/service.rb', line 48 def quota_user @quota_user end |
Instance Method Details
#cancel_project_location_job_execution(name, google_cloud_run_v2_cancel_execution_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleLongrunningOperation
Cancels an Execution.
599 600 601 602 603 604 605 606 607 608 609 |
# File 'lib/google/apis/run_v2/service.rb', line 599 def cancel_project_location_job_execution(name, google_cloud_run_v2_cancel_execution_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+name}:cancel', ) command.request_representation = Google::Apis::RunV2::GoogleCloudRunV2CancelExecutionRequest::Representation command.request_object = google_cloud_run_v2_cancel_execution_request_object command.response_representation = Google::Apis::RunV2::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::RunV2::GoogleLongrunningOperation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_job(parent, google_cloud_run_v2_job_object = nil, job_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleLongrunningOperation
Creates a Job.
257 258 259 260 261 262 263 264 265 266 267 268 269 |
# File 'lib/google/apis/run_v2/service.rb', line 257 def create_project_location_job(parent, google_cloud_run_v2_job_object = nil, job_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+parent}/jobs', ) command.request_representation = Google::Apis::RunV2::GoogleCloudRunV2Job::Representation command.request_object = google_cloud_run_v2_job_object command.response_representation = Google::Apis::RunV2::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::RunV2::GoogleLongrunningOperation command.params['parent'] = parent unless parent.nil? command.query['jobId'] = job_id unless job_id.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_service(parent, google_cloud_run_v2_service_object = nil, service_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleLongrunningOperation
Creates a new Service in a given project and location.
1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 |
# File 'lib/google/apis/run_v2/service.rb', line 1026 def create_project_location_service(parent, google_cloud_run_v2_service_object = nil, service_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+parent}/services', ) command.request_representation = Google::Apis::RunV2::GoogleCloudRunV2Service::Representation command.request_object = google_cloud_run_v2_service_object command.response_representation = Google::Apis::RunV2::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::RunV2::GoogleLongrunningOperation command.params['parent'] = parent unless parent.nil? command.query['serviceId'] = service_id unless service_id.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_worker_pool(parent, google_cloud_run_v2_worker_pool_object = nil, validate_only: nil, worker_pool_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleLongrunningOperation
Creates a new WorkerPool in a given project and location.
1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 |
# File 'lib/google/apis/run_v2/service.rb', line 1498 def create_project_location_worker_pool(parent, google_cloud_run_v2_worker_pool_object = nil, validate_only: nil, worker_pool_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+parent}/workerPools', ) command.request_representation = Google::Apis::RunV2::GoogleCloudRunV2WorkerPool::Representation command.request_object = google_cloud_run_v2_worker_pool_object command.response_representation = Google::Apis::RunV2::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::RunV2::GoogleLongrunningOperation command.params['parent'] = parent unless parent.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['workerPoolId'] = worker_pool_id unless worker_pool_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_job(name, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleLongrunningOperation
Deletes a Job.
298 299 300 301 302 303 304 305 306 307 308 |
# File 'lib/google/apis/run_v2/service.rb', line 298 def delete_project_location_job(name, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v2/{+name}', ) command.response_representation = Google::Apis::RunV2::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::RunV2::GoogleLongrunningOperation command.params['name'] = name unless name.nil? command.query['etag'] = etag unless etag.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_job_execution(name, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleLongrunningOperation
Deletes an Execution.
639 640 641 642 643 644 645 646 647 648 649 |
# File 'lib/google/apis/run_v2/service.rb', line 639 def delete_project_location_job_execution(name, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v2/{+name}', ) command.response_representation = Google::Apis::RunV2::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::RunV2::GoogleLongrunningOperation command.params['name'] = name unless name.nil? command.query['etag'] = etag unless etag.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleProtobufEmpty
Deletes a long-running operation. This method indicates that the client is no
longer interested in the operation result. It does not cancel the operation.
If the server doesn't support this method, it returns google.rpc.Code.
UNIMPLEMENTED.
860 861 862 863 864 865 866 867 868 |
# File 'lib/google/apis/run_v2/service.rb', line 860 def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v2/{+name}', ) command.response_representation = Google::Apis::RunV2::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::RunV2::GoogleProtobufEmpty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_service(name, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleLongrunningOperation
Deletes a Service. This will cause the Service to stop serving traffic and will delete all revisions.
1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 |
# File 'lib/google/apis/run_v2/service.rb', line 1068 def delete_project_location_service(name, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v2/{+name}', ) command.response_representation = Google::Apis::RunV2::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::RunV2::GoogleLongrunningOperation command.params['name'] = name unless name.nil? command.query['etag'] = etag unless etag.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_service_revision(name, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleLongrunningOperation
Deletes a Revision.
1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 |
# File 'lib/google/apis/run_v2/service.rb', line 1345 def delete_project_location_service_revision(name, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v2/{+name}', ) command.response_representation = Google::Apis::RunV2::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::RunV2::GoogleLongrunningOperation command.params['name'] = name unless name.nil? command.query['etag'] = etag unless etag.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_worker_pool(name, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleLongrunningOperation
Deletes a WorkerPool.
1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 |
# File 'lib/google/apis/run_v2/service.rb', line 1540 def delete_project_location_worker_pool(name, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v2/{+name}', ) command.response_representation = Google::Apis::RunV2::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::RunV2::GoogleLongrunningOperation command.params['name'] = name unless name.nil? command.query['etag'] = etag unless etag.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_worker_pool_revision(name, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleLongrunningOperation
Deletes a Revision.
1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 |
# File 'lib/google/apis/run_v2/service.rb', line 1826 def delete_project_location_worker_pool_revision(name, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v2/{+name}', ) command.response_representation = Google::Apis::RunV2::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::RunV2::GoogleLongrunningOperation command.params['name'] = name unless name.nil? command.query['etag'] = etag unless etag.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#export_project_location_image(name, google_cloud_run_v2_export_image_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleCloudRunV2ExportImageResponse
Export image for a given resource.
81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/google/apis/run_v2/service.rb', line 81 def export_project_location_image(name, google_cloud_run_v2_export_image_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+name}:exportImage', ) command.request_representation = Google::Apis::RunV2::GoogleCloudRunV2ExportImageRequest::Representation command.request_object = google_cloud_run_v2_export_image_request_object command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2ExportImageResponse::Representation command.response_class = Google::Apis::RunV2::GoogleCloudRunV2ExportImageResponse command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#export_project_location_image_metadata(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleCloudRunV2Metadata
Export image metadata for a given resource.
116 117 118 119 120 121 122 123 124 |
# File 'lib/google/apis/run_v2/service.rb', line 116 def (name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+name}:exportImageMetadata', ) command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2Metadata::Representation command.response_class = Google::Apis::RunV2::GoogleCloudRunV2Metadata command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#export_project_location_job_execution_status(name, operation_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleCloudRunV2ExportStatusResponse
Read the status of an image export operation.
677 678 679 680 681 682 683 684 685 686 |
# File 'lib/google/apis/run_v2/service.rb', line 677 def export_project_location_job_execution_status(name, operation_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+name}/{+operationId}:exportStatus', ) command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2ExportStatusResponse::Representation command.response_class = Google::Apis::RunV2::GoogleCloudRunV2ExportStatusResponse command.params['name'] = name unless name.nil? command.params['operationId'] = operation_id unless operation_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#export_project_location_metadata(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleCloudRunV2Metadata
Export generated customer metadata for a given resource.
151 152 153 154 155 156 157 158 159 |
# File 'lib/google/apis/run_v2/service.rb', line 151 def (name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+name}:exportMetadata', ) command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2Metadata::Representation command.response_class = Google::Apis::RunV2::GoogleCloudRunV2Metadata command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#export_project_location_project_metadata(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleCloudRunV2Metadata
Export generated customer metadata for a given project.
183 184 185 186 187 188 189 190 191 |
# File 'lib/google/apis/run_v2/service.rb', line 183 def (name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+name}:exportProjectMetadata', ) command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2Metadata::Representation command.response_class = Google::Apis::RunV2::GoogleCloudRunV2Metadata command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#export_project_location_service_revision_status(name, operation_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleCloudRunV2ExportStatusResponse
Read the status of an image export operation.
1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 |
# File 'lib/google/apis/run_v2/service.rb', line 1383 def export_project_location_service_revision_status(name, operation_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+name}/{+operationId}:exportStatus', ) command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2ExportStatusResponse::Representation command.response_class = Google::Apis::RunV2::GoogleCloudRunV2ExportStatusResponse command.params['name'] = name unless name.nil? command.params['operationId'] = operation_id unless operation_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_job(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleCloudRunV2Job
Gets information about a Job.
331 332 333 334 335 336 337 338 339 |
# File 'lib/google/apis/run_v2/service.rb', line 331 def get_project_location_job(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+name}', ) command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2Job::Representation command.response_class = Google::Apis::RunV2::GoogleCloudRunV2Job command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_job_execution(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleCloudRunV2Execution
Gets information about an Execution.
710 711 712 713 714 715 716 717 718 |
# File 'lib/google/apis/run_v2/service.rb', line 710 def get_project_location_job_execution(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+name}', ) command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2Execution::Representation command.response_class = Google::Apis::RunV2::GoogleCloudRunV2Execution command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_job_execution_task(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleCloudRunV2Task
Gets information about a Task.
784 785 786 787 788 789 790 791 792 |
# File 'lib/google/apis/run_v2/service.rb', line 784 def get_project_location_job_execution_task(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+name}', ) command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2Task::Representation command.response_class = Google::Apis::RunV2::GoogleCloudRunV2Task command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_job_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleIamV1Policy
Gets the IAM Access Control policy currently in effect for the given Job. This result does not include any inherited policies.
375 376 377 378 379 380 381 382 383 384 |
# File 'lib/google/apis/run_v2/service.rb', line 375 def get_project_location_job_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+resource}:getIamPolicy', ) command.response_representation = Google::Apis::RunV2::GoogleIamV1Policy::Representation command.response_class = Google::Apis::RunV2::GoogleIamV1Policy command.params['resource'] = resource unless resource.nil? command.query['options.requestedPolicyVersion'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleLongrunningOperation
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
891 892 893 894 895 896 897 898 899 |
# File 'lib/google/apis/run_v2/service.rb', line 891 def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+name}', ) command.response_representation = Google::Apis::RunV2::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::RunV2::GoogleLongrunningOperation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_service(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleCloudRunV2Service
Gets information about a Service.
1101 1102 1103 1104 1105 1106 1107 1108 1109 |
# File 'lib/google/apis/run_v2/service.rb', line 1101 def get_project_location_service(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+name}', ) command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2Service::Representation command.response_class = Google::Apis::RunV2::GoogleCloudRunV2Service command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_service_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleIamV1Policy
Gets the IAM Access Control policy currently in effect for the given Cloud Run Service. This result does not include any inherited policies.
1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 |
# File 'lib/google/apis/run_v2/service.rb', line 1145 def get_project_location_service_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+resource}:getIamPolicy', ) command.response_representation = Google::Apis::RunV2::GoogleIamV1Policy::Representation command.response_class = Google::Apis::RunV2::GoogleIamV1Policy command.params['resource'] = resource unless resource.nil? command.query['options.requestedPolicyVersion'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_service_revision(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleCloudRunV2Revision
Gets information about a Revision.
1415 1416 1417 1418 1419 1420 1421 1422 1423 |
# File 'lib/google/apis/run_v2/service.rb', line 1415 def get_project_location_service_revision(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+name}', ) command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2Revision::Representation command.response_class = Google::Apis::RunV2::GoogleCloudRunV2Revision command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_worker_pool(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleCloudRunV2WorkerPool
Gets information about a WorkerPool.
1574 1575 1576 1577 1578 1579 1580 1581 1582 |
# File 'lib/google/apis/run_v2/service.rb', line 1574 def get_project_location_worker_pool(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+name}', ) command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2WorkerPool::Representation command.response_class = Google::Apis::RunV2::GoogleCloudRunV2WorkerPool command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_worker_pool_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleIamV1Policy
Gets the IAM Access Control policy currently in effect for the given Cloud Run WorkerPool. This result does not include any inherited policies.
1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 |
# File 'lib/google/apis/run_v2/service.rb', line 1618 def get_project_location_worker_pool_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+resource}:getIamPolicy', ) command.response_representation = Google::Apis::RunV2::GoogleIamV1Policy::Representation command.response_class = Google::Apis::RunV2::GoogleIamV1Policy command.params['resource'] = resource unless resource.nil? command.query['options.requestedPolicyVersion'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_worker_pool_revision(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleCloudRunV2Revision
Gets information about a Revision.
1859 1860 1861 1862 1863 1864 1865 1866 1867 |
# File 'lib/google/apis/run_v2/service.rb', line 1859 def get_project_location_worker_pool_revision(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+name}', ) command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2Revision::Representation command.response_class = Google::Apis::RunV2::GoogleCloudRunV2Revision command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_job_execution_tasks(parent, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleCloudRunV2ListTasksResponse
Lists Tasks from an Execution of a Job.
824 825 826 827 828 829 830 831 832 833 834 835 |
# File 'lib/google/apis/run_v2/service.rb', line 824 def list_project_location_job_execution_tasks(parent, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+parent}/tasks', ) command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2ListTasksResponse::Representation command.response_class = Google::Apis::RunV2::GoogleCloudRunV2ListTasksResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['showDeleted'] = show_deleted unless show_deleted.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_job_executions(parent, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleCloudRunV2ListExecutionsResponse
Lists Executions from a Job. Results are sorted by creation time, descending.
750 751 752 753 754 755 756 757 758 759 760 761 |
# File 'lib/google/apis/run_v2/service.rb', line 750 def list_project_location_job_executions(parent, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+parent}/executions', ) command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2ListExecutionsResponse::Representation command.response_class = Google::Apis::RunV2::GoogleCloudRunV2ListExecutionsResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['showDeleted'] = show_deleted unless show_deleted.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_jobs(parent, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleCloudRunV2ListJobsResponse
Lists Jobs. Results are sorted by creation time, descending.
414 415 416 417 418 419 420 421 422 423 424 425 |
# File 'lib/google/apis/run_v2/service.rb', line 414 def list_project_location_jobs(parent, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+parent}/jobs', ) command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2ListJobsResponse::Representation command.response_class = Google::Apis::RunV2::GoogleCloudRunV2ListJobsResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['showDeleted'] = show_deleted unless show_deleted.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleLongrunningListOperationsResponse
Lists operations that match the specified filter in the request. If the server
doesn't support this method, it returns UNIMPLEMENTED.
942 943 944 945 946 947 948 949 950 951 952 953 954 |
# File 'lib/google/apis/run_v2/service.rb', line 942 def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+name}/operations', ) command.response_representation = Google::Apis::RunV2::GoogleLongrunningListOperationsResponse::Representation command.response_class = Google::Apis::RunV2::GoogleLongrunningListOperationsResponse command.params['name'] = name unless name.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_service_revisions(parent, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleCloudRunV2ListRevisionsResponse
Lists Revisions from a given Service, or from a given location. Results are sorted by creation time, descending.
1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 |
# File 'lib/google/apis/run_v2/service.rb', line 1455 def list_project_location_service_revisions(parent, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+parent}/revisions', ) command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2ListRevisionsResponse::Representation command.response_class = Google::Apis::RunV2::GoogleCloudRunV2ListRevisionsResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['showDeleted'] = show_deleted unless show_deleted.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_services(parent, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleCloudRunV2ListServicesResponse
Lists Services. Results are sorted by creation time, descending.
1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 |
# File 'lib/google/apis/run_v2/service.rb', line 1185 def list_project_location_services(parent, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+parent}/services', ) command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2ListServicesResponse::Representation command.response_class = Google::Apis::RunV2::GoogleCloudRunV2ListServicesResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['showDeleted'] = show_deleted unless show_deleted.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_worker_pool_revisions(parent, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleCloudRunV2ListRevisionsResponse
Lists Revisions from a given Service, or from a given location. Results are sorted by creation time, descending.
1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 |
# File 'lib/google/apis/run_v2/service.rb', line 1899 def list_project_location_worker_pool_revisions(parent, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+parent}/revisions', ) command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2ListRevisionsResponse::Representation command.response_class = Google::Apis::RunV2::GoogleCloudRunV2ListRevisionsResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['showDeleted'] = show_deleted unless show_deleted.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_worker_pools(parent, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleCloudRunV2ListWorkerPoolsResponse
Lists WorkerPools. Results are sorted by creation time, descending.
1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 |
# File 'lib/google/apis/run_v2/service.rb', line 1658 def list_project_location_worker_pools(parent, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+parent}/workerPools', ) command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2ListWorkerPoolsResponse::Representation command.response_class = Google::Apis::RunV2::GoogleCloudRunV2ListWorkerPoolsResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['showDeleted'] = show_deleted unless show_deleted.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_job(name, google_cloud_run_v2_job_object = nil, allow_missing: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleLongrunningOperation
Updates a Job.
456 457 458 459 460 461 462 463 464 465 466 467 468 |
# File 'lib/google/apis/run_v2/service.rb', line 456 def patch_project_location_job(name, google_cloud_run_v2_job_object = nil, allow_missing: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v2/{+name}', ) command.request_representation = Google::Apis::RunV2::GoogleCloudRunV2Job::Representation command.request_object = google_cloud_run_v2_job_object command.response_representation = Google::Apis::RunV2::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::RunV2::GoogleLongrunningOperation command.params['name'] = name unless name.nil? command.query['allowMissing'] = allow_missing unless allow_missing.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_service(name, google_cloud_run_v2_service_object = nil, allow_missing: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleLongrunningOperation
Updates a Service.
1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 |
# File 'lib/google/apis/run_v2/service.rb', line 1231 def patch_project_location_service(name, google_cloud_run_v2_service_object = nil, allow_missing: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v2/{+name}', ) command.request_representation = Google::Apis::RunV2::GoogleCloudRunV2Service::Representation command.request_object = google_cloud_run_v2_service_object command.response_representation = Google::Apis::RunV2::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::RunV2::GoogleLongrunningOperation command.params['name'] = name unless name.nil? command.query['allowMissing'] = allow_missing unless allow_missing.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_worker_pool(name, google_cloud_run_v2_worker_pool_object = nil, allow_missing: nil, force_new_revision: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleLongrunningOperation
Updates a WorkerPool.
1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 |
# File 'lib/google/apis/run_v2/service.rb', line 1711 def patch_project_location_worker_pool(name, google_cloud_run_v2_worker_pool_object = nil, allow_missing: nil, force_new_revision: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v2/{+name}', ) command.request_representation = Google::Apis::RunV2::GoogleCloudRunV2WorkerPool::Representation command.request_object = google_cloud_run_v2_worker_pool_object command.response_representation = Google::Apis::RunV2::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::RunV2::GoogleLongrunningOperation command.params['name'] = name unless name.nil? command.query['allowMissing'] = allow_missing unless allow_missing.nil? command.query['forceNewRevision'] = force_new_revision unless force_new_revision.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#run_project_location_job(name, google_cloud_run_v2_run_job_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleLongrunningOperation
Triggers creation of a new Execution of this Job.
492 493 494 495 496 497 498 499 500 501 502 |
# File 'lib/google/apis/run_v2/service.rb', line 492 def run_project_location_job(name, google_cloud_run_v2_run_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+name}:run', ) command.request_representation = Google::Apis::RunV2::GoogleCloudRunV2RunJobRequest::Representation command.request_object = google_cloud_run_v2_run_job_request_object command.response_representation = Google::Apis::RunV2::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::RunV2::GoogleLongrunningOperation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_project_location_job_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleIamV1Policy
Sets the IAM Access control policy for the specified Job. Overwrites any existing policy.
528 529 530 531 532 533 534 535 536 537 538 |
# File 'lib/google/apis/run_v2/service.rb', line 528 def set_project_location_job_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::RunV2::GoogleIamV1SetIamPolicyRequest::Representation command.request_object = google_iam_v1_set_iam_policy_request_object command.response_representation = Google::Apis::RunV2::GoogleIamV1Policy::Representation command.response_class = Google::Apis::RunV2::GoogleIamV1Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_project_location_service_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleIamV1Policy
Sets the IAM Access control policy for the specified Service. Overwrites any existing policy.
1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 |
# File 'lib/google/apis/run_v2/service.rb', line 1270 def set_project_location_service_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::RunV2::GoogleIamV1SetIamPolicyRequest::Representation command.request_object = google_iam_v1_set_iam_policy_request_object command.response_representation = Google::Apis::RunV2::GoogleIamV1Policy::Representation command.response_class = Google::Apis::RunV2::GoogleIamV1Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_project_location_worker_pool_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleIamV1Policy
Sets the IAM Access control policy for the specified WorkerPool. Overwrites any existing policy.
1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 |
# File 'lib/google/apis/run_v2/service.rb', line 1751 def set_project_location_worker_pool_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::RunV2::GoogleIamV1SetIamPolicyRequest::Representation command.request_object = google_iam_v1_set_iam_policy_request_object command.response_representation = Google::Apis::RunV2::GoogleIamV1Policy::Representation command.response_class = Google::Apis::RunV2::GoogleIamV1Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#submit_project_location_build(parent, google_cloud_run_v2_submit_build_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleCloudRunV2SubmitBuildResponse
Submits a build in a given project.
216 217 218 219 220 221 222 223 224 225 226 |
# File 'lib/google/apis/run_v2/service.rb', line 216 def submit_project_location_build(parent, google_cloud_run_v2_submit_build_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+parent}/builds:submit', ) command.request_representation = Google::Apis::RunV2::GoogleCloudRunV2SubmitBuildRequest::Representation command.request_object = google_cloud_run_v2_submit_build_request_object command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2SubmitBuildResponse::Representation command.response_class = Google::Apis::RunV2::GoogleCloudRunV2SubmitBuildResponse command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_project_location_job_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleIamV1TestIamPermissionsResponse
Returns permissions that a caller has on the specified Project. There are no permissions required for making this API call.
564 565 566 567 568 569 570 571 572 573 574 |
# File 'lib/google/apis/run_v2/service.rb', line 564 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::RunV2::GoogleIamV1TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::RunV2::GoogleIamV1TestIamPermissionsResponse::Representation command.response_class = Google::Apis::RunV2::GoogleIamV1TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_project_location_service_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleIamV1TestIamPermissionsResponse
Returns permissions that a caller has on the specified Project. There are no permissions required for making this API call.
1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 |
# File 'lib/google/apis/run_v2/service.rb', line 1306 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::RunV2::GoogleIamV1TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::RunV2::GoogleIamV1TestIamPermissionsResponse::Representation command.response_class = Google::Apis::RunV2::GoogleIamV1TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_project_location_worker_pool_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleIamV1TestIamPermissionsResponse
Returns permissions that a caller has on the specified Project. There are no permissions required for making this API call.
1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 |
# File 'lib/google/apis/run_v2/service.rb', line 1787 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::RunV2::GoogleIamV1TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::RunV2::GoogleIamV1TestIamPermissionsResponse::Representation command.response_class = Google::Apis::RunV2::GoogleIamV1TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#wait_project_location_operation(name, google_longrunning_wait_operation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV2::GoogleLongrunningOperation
Waits until the specified long-running operation is done or reaches at most a
specified timeout, returning the latest state. If the operation is already
done, the latest state is immediately returned. If the timeout specified is
greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
the server does not support this method, it returns google.rpc.Code.
UNIMPLEMENTED. Note that this method is on a best-effort basis. It may return
the latest state before the specified timeout (including immediately), meaning
even an immediate response is no guarantee that the operation is done.
984 985 986 987 988 989 990 991 992 993 994 |
# File 'lib/google/apis/run_v2/service.rb', line 984 def wait_project_location_operation(name, google_longrunning_wait_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+name}:wait', ) command.request_representation = Google::Apis::RunV2::GoogleLongrunningWaitOperationRequest::Representation command.request_object = google_longrunning_wait_operation_request_object command.response_representation = Google::Apis::RunV2::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::RunV2::GoogleLongrunningOperation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |