source: vendor/google/apiclient-services/src/Transcoder.php@ e3d4e0a

Last change on this file since e3d4e0a was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 7 days ago

Upload project files

  • Property mode set to 100644
File size: 6.6 KB
RevLine 
[e3d4e0a]1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service;
19
20use Google\Client;
21
22/**
23 * Service definition for Transcoder (v1).
24 *
25 * <p>
26 * This API converts video files into formats suitable for consumer
27 * distribution. For more information, see the Transcoder API overview.</p>
28 *
29 * <p>
30 * For more information about this service, see the API
31 * <a href="https://cloud.google.com/transcoder/docs/" target="_blank">Documentation</a>
32 * </p>
33 *
34 * @author Google, Inc.
35 */
36class Transcoder extends \Google\Service
37{
38 /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
39 const CLOUD_PLATFORM =
40 "https://www.googleapis.com/auth/cloud-platform";
41
42 public $projects_locations_jobTemplates;
43 public $projects_locations_jobs;
44 public $rootUrlTemplate;
45
46 /**
47 * Constructs the internal representation of the Transcoder service.
48 *
49 * @param Client|array $clientOrConfig The client used to deliver requests, or a
50 * config array to pass to a new Client instance.
51 * @param string $rootUrl The root URL used for requests to the service.
52 */
53 public function __construct($clientOrConfig = [], $rootUrl = null)
54 {
55 parent::__construct($clientOrConfig);
56 $this->rootUrl = $rootUrl ?: 'https://transcoder.googleapis.com/';
57 $this->rootUrlTemplate = $rootUrl ?: 'https://transcoder.UNIVERSE_DOMAIN/';
58 $this->servicePath = '';
59 $this->batchPath = 'batch';
60 $this->version = 'v1';
61 $this->serviceName = 'transcoder';
62
63 $this->projects_locations_jobTemplates = new Transcoder\Resource\ProjectsLocationsJobTemplates(
64 $this,
65 $this->serviceName,
66 'jobTemplates',
67 [
68 'methods' => [
69 'create' => [
70 'path' => 'v1/{+parent}/jobTemplates',
71 'httpMethod' => 'POST',
72 'parameters' => [
73 'parent' => [
74 'location' => 'path',
75 'type' => 'string',
76 'required' => true,
77 ],
78 'jobTemplateId' => [
79 'location' => 'query',
80 'type' => 'string',
81 ],
82 ],
83 ],'delete' => [
84 'path' => 'v1/{+name}',
85 'httpMethod' => 'DELETE',
86 'parameters' => [
87 'name' => [
88 'location' => 'path',
89 'type' => 'string',
90 'required' => true,
91 ],
92 'allowMissing' => [
93 'location' => 'query',
94 'type' => 'boolean',
95 ],
96 ],
97 ],'get' => [
98 'path' => 'v1/{+name}',
99 'httpMethod' => 'GET',
100 'parameters' => [
101 'name' => [
102 'location' => 'path',
103 'type' => 'string',
104 'required' => true,
105 ],
106 ],
107 ],'list' => [
108 'path' => 'v1/{+parent}/jobTemplates',
109 'httpMethod' => 'GET',
110 'parameters' => [
111 'parent' => [
112 'location' => 'path',
113 'type' => 'string',
114 'required' => true,
115 ],
116 'filter' => [
117 'location' => 'query',
118 'type' => 'string',
119 ],
120 'orderBy' => [
121 'location' => 'query',
122 'type' => 'string',
123 ],
124 'pageSize' => [
125 'location' => 'query',
126 'type' => 'integer',
127 ],
128 'pageToken' => [
129 'location' => 'query',
130 'type' => 'string',
131 ],
132 ],
133 ],
134 ]
135 ]
136 );
137 $this->projects_locations_jobs = new Transcoder\Resource\ProjectsLocationsJobs(
138 $this,
139 $this->serviceName,
140 'jobs',
141 [
142 'methods' => [
143 'create' => [
144 'path' => 'v1/{+parent}/jobs',
145 'httpMethod' => 'POST',
146 'parameters' => [
147 'parent' => [
148 'location' => 'path',
149 'type' => 'string',
150 'required' => true,
151 ],
152 ],
153 ],'delete' => [
154 'path' => 'v1/{+name}',
155 'httpMethod' => 'DELETE',
156 'parameters' => [
157 'name' => [
158 'location' => 'path',
159 'type' => 'string',
160 'required' => true,
161 ],
162 'allowMissing' => [
163 'location' => 'query',
164 'type' => 'boolean',
165 ],
166 ],
167 ],'get' => [
168 'path' => 'v1/{+name}',
169 'httpMethod' => 'GET',
170 'parameters' => [
171 'name' => [
172 'location' => 'path',
173 'type' => 'string',
174 'required' => true,
175 ],
176 ],
177 ],'list' => [
178 'path' => 'v1/{+parent}/jobs',
179 'httpMethod' => 'GET',
180 'parameters' => [
181 'parent' => [
182 'location' => 'path',
183 'type' => 'string',
184 'required' => true,
185 ],
186 'filter' => [
187 'location' => 'query',
188 'type' => 'string',
189 ],
190 'orderBy' => [
191 'location' => 'query',
192 'type' => 'string',
193 ],
194 'pageSize' => [
195 'location' => 'query',
196 'type' => 'integer',
197 ],
198 'pageToken' => [
199 'location' => 'query',
200 'type' => 'string',
201 ],
202 ],
203 ],
204 ]
205 ]
206 );
207 }
208}
209
210// Adding a class alias for backwards compatibility with the previous class name.
211class_alias(Transcoder::class, 'Google_Service_Transcoder');
Note: See TracBrowser for help on using the repository browser.