Class: Google::Apis::RunV1alpha1::CloudRunService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::RunV1alpha1::CloudRunService
- Defined in:
- lib/google/apis/run_v1alpha1/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/.
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
-
#create_namespace_job(parent, job_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV1alpha1::Job
Create a job.
-
#delete_namespace_job(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV1alpha1::Empty
Delete a job.
-
#get_namespace_job(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV1alpha1::Job
Get information about a job.
-
#initialize ⇒ CloudRunService
constructor
A new instance of CloudRunService.
-
#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) {|result, err| ... } ⇒ Google::Apis::RunV1alpha1::ListJobsResponse
List jobs.
Constructor Details
#initialize ⇒ CloudRunService
Returns a new instance of CloudRunService.
48 49 50 51 52 53 |
# File 'lib/google/apis/run_v1alpha1/service.rb', line 48 def initialize super('https://run.googleapis.com/', '', client_name: 'google-apis-run_v1alpha1', client_version: Google::Apis::RunV1alpha1::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.
41 42 43 |
# File 'lib/google/apis/run_v1alpha1/service.rb', line 41 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.
46 47 48 |
# File 'lib/google/apis/run_v1alpha1/service.rb', line 46 def quota_user @quota_user end |
Instance Method Details
#create_namespace_job(parent, job_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV1alpha1::Job
Create a job.
77 78 79 80 81 82 83 84 85 86 87 |
# File 'lib/google/apis/run_v1alpha1/service.rb', line 77 def create_namespace_job(parent, job_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'apis/run.googleapis.com/v1alpha1/{+parent}/jobs', ) command.request_representation = Google::Apis::RunV1alpha1::Job::Representation command.request_object = job_object command.response_representation = Google::Apis::RunV1alpha1::Job::Representation command.response_class = Google::Apis::RunV1alpha1::Job 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 |
#delete_namespace_job(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV1alpha1::Empty
Delete a job.
118 119 120 121 122 123 124 125 126 127 128 129 |
# File 'lib/google/apis/run_v1alpha1/service.rb', line 118 def delete_namespace_job(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'apis/run.googleapis.com/v1alpha1/{+name}', ) command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation command.response_class = Google::Apis::RunV1alpha1::Empty command.params['name'] = name unless name.nil? command.query['apiVersion'] = api_version unless api_version.nil? command.query['kind'] = kind unless kind.nil? command.query['propagationPolicy'] = propagation_policy unless propagation_policy.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_namespace_job(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RunV1alpha1::Job
Get information about a job.
152 153 154 155 156 157 158 159 160 |
# File 'lib/google/apis/run_v1alpha1/service.rb', line 152 def get_namespace_job(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'apis/run.googleapis.com/v1alpha1/{+name}', ) command.response_representation = Google::Apis::RunV1alpha1::Job::Representation command.response_class = Google::Apis::RunV1alpha1::Job 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_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) {|result, err| ... } ⇒ Google::Apis::RunV1alpha1::ListJobsResponse
List jobs.
202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 |
# File 'lib/google/apis/run_v1alpha1/service.rb', line 202 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) command = make_simple_command(:get, 'apis/run.googleapis.com/v1alpha1/{+parent}/jobs', ) command.response_representation = Google::Apis::RunV1alpha1::ListJobsResponse::Representation command.response_class = Google::Apis::RunV1alpha1::ListJobsResponse command.params['parent'] = parent unless parent.nil? command.query['continue'] = continue unless continue.nil? command.query['fieldSelector'] = field_selector unless field_selector.nil? command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil? command.query['labelSelector'] = label_selector unless label_selector.nil? command.query['limit'] = limit unless limit.nil? command.query['resourceVersion'] = resource_version unless resource_version.nil? command.query['watch'] = watch unless watch.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |