Class: Google::Apis::TranscoderV1beta1::TranscoderService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::TranscoderV1beta1::TranscoderService
- Defined in:
- lib/google/apis/transcoder_v1beta1/service.rb
Overview
Transcoder API
This API converts video files into formats suitable for consumer distribution.
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_project_location_job(parent, job_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TranscoderV1beta1::Job
Creates a job in the specified region.
-
#create_project_location_job_template(parent, job_template_object = nil, job_template_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TranscoderV1beta1::JobTemplate
Creates a job template in the specified region.
-
#delete_project_location_job(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TranscoderV1beta1::Empty
Deletes a job.
-
#delete_project_location_job_template(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TranscoderV1beta1::Empty
Deletes a job template.
-
#get_project_location_job(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TranscoderV1beta1::Job
Returns the job data.
-
#get_project_location_job_template(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TranscoderV1beta1::JobTemplate
Returns the job template data.
-
#initialize ⇒ TranscoderService
constructor
A new instance of TranscoderService.
-
#list_project_location_job_templates(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TranscoderV1beta1::ListJobTemplatesResponse
Lists job templates in the specified region.
-
#list_project_location_jobs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TranscoderV1beta1::ListJobsResponse
Lists jobs in the specified region.
Constructor Details
#initialize ⇒ TranscoderService
Returns a new instance of TranscoderService.
45 46 47 48 49 50 |
# File 'lib/google/apis/transcoder_v1beta1/service.rb', line 45 def initialize super('https://transcoder.googleapis.com/', '', client_name: 'google-apis-transcoder_v1beta1', client_version: Google::Apis::TranscoderV1beta1::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.
38 39 40 |
# File 'lib/google/apis/transcoder_v1beta1/service.rb', line 38 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.
43 44 45 |
# File 'lib/google/apis/transcoder_v1beta1/service.rb', line 43 def quota_user @quota_user end |
Instance Method Details
#create_project_location_job(parent, job_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TranscoderV1beta1::Job
Creates a job in the specified region.
212 213 214 215 216 217 218 219 220 221 222 |
# File 'lib/google/apis/transcoder_v1beta1/service.rb', line 212 def create_project_location_job(parent, job_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+parent}/jobs', ) command.request_representation = Google::Apis::TranscoderV1beta1::Job::Representation command.request_object = job_object command.response_representation = Google::Apis::TranscoderV1beta1::Job::Representation command.response_class = Google::Apis::TranscoderV1beta1::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 |
#create_project_location_job_template(parent, job_template_object = nil, job_template_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TranscoderV1beta1::JobTemplate
Creates a job template in the specified region.
78 79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/google/apis/transcoder_v1beta1/service.rb', line 78 def create_project_location_job_template(parent, job_template_object = nil, job_template_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+parent}/jobTemplates', ) command.request_representation = Google::Apis::TranscoderV1beta1::JobTemplate::Representation command.request_object = job_template_object command.response_representation = Google::Apis::TranscoderV1beta1::JobTemplate::Representation command.response_class = Google::Apis::TranscoderV1beta1::JobTemplate command.params['parent'] = parent unless parent.nil? command.query['jobTemplateId'] = job_template_id unless job_template_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, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TranscoderV1beta1::Empty
Deletes a job.
245 246 247 248 249 250 251 252 253 |
# File 'lib/google/apis/transcoder_v1beta1/service.rb', line 245 def delete_project_location_job(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', ) command.response_representation = Google::Apis::TranscoderV1beta1::Empty::Representation command.response_class = Google::Apis::TranscoderV1beta1::Empty 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_job_template(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TranscoderV1beta1::Empty
Deletes a job template.
112 113 114 115 116 117 118 119 120 |
# File 'lib/google/apis/transcoder_v1beta1/service.rb', line 112 def delete_project_location_job_template(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1beta1/{+name}', ) command.response_representation = Google::Apis::TranscoderV1beta1::Empty::Representation command.response_class = Google::Apis::TranscoderV1beta1::Empty 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(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TranscoderV1beta1::Job
Returns the job data.
276 277 278 279 280 281 282 283 284 |
# File 'lib/google/apis/transcoder_v1beta1/service.rb', line 276 def get_project_location_job(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', ) command.response_representation = Google::Apis::TranscoderV1beta1::Job::Representation command.response_class = Google::Apis::TranscoderV1beta1::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 |
#get_project_location_job_template(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TranscoderV1beta1::JobTemplate
Returns the job template data.
143 144 145 146 147 148 149 150 151 |
# File 'lib/google/apis/transcoder_v1beta1/service.rb', line 143 def get_project_location_job_template(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+name}', ) command.response_representation = Google::Apis::TranscoderV1beta1::JobTemplate::Representation command.response_class = Google::Apis::TranscoderV1beta1::JobTemplate 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_templates(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TranscoderV1beta1::ListJobTemplatesResponse
Lists job templates in the specified region.
178 179 180 181 182 183 184 185 186 187 188 |
# File 'lib/google/apis/transcoder_v1beta1/service.rb', line 178 def list_project_location_job_templates(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+parent}/jobTemplates', ) command.response_representation = Google::Apis::TranscoderV1beta1::ListJobTemplatesResponse::Representation command.response_class = Google::Apis::TranscoderV1beta1::ListJobTemplatesResponse 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['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, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::TranscoderV1beta1::ListJobsResponse
Lists jobs in the specified region.
310 311 312 313 314 315 316 317 318 319 320 |
# File 'lib/google/apis/transcoder_v1beta1/service.rb', line 310 def list_project_location_jobs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta1/{+parent}/jobs', ) command.response_representation = Google::Apis::TranscoderV1beta1::ListJobsResponse::Representation command.response_class = Google::Apis::TranscoderV1beta1::ListJobsResponse 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['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |