source: vendor/google/apiclient-services/src/BigQueryReservation.php

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

Upload project files

  • Property mode set to 100644
File size: 13.2 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 BigQueryReservation (v1).
24 *
25 * <p>
26 * A service to modify your BigQuery flat-rate reservations.</p>
27 *
28 * <p>
29 * For more information about this service, see the API
30 * <a href="https://cloud.google.com/bigquery/" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class BigQueryReservation extends \Google\Service
36{
37 /** View and manage your data in Google BigQuery and see the email address for your Google Account. */
38 const BIGQUERY =
39 "https://www.googleapis.com/auth/bigquery";
40 /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
41 const CLOUD_PLATFORM =
42 "https://www.googleapis.com/auth/cloud-platform";
43
44 public $projects_locations;
45 public $projects_locations_capacityCommitments;
46 public $projects_locations_reservations;
47 public $projects_locations_reservations_assignments;
48 public $rootUrlTemplate;
49
50 /**
51 * Constructs the internal representation of the BigQueryReservation service.
52 *
53 * @param Client|array $clientOrConfig The client used to deliver requests, or a
54 * config array to pass to a new Client instance.
55 * @param string $rootUrl The root URL used for requests to the service.
56 */
57 public function __construct($clientOrConfig = [], $rootUrl = null)
58 {
59 parent::__construct($clientOrConfig);
60 $this->rootUrl = $rootUrl ?: 'https://bigqueryreservation.googleapis.com/';
61 $this->rootUrlTemplate = $rootUrl ?: 'https://bigqueryreservation.UNIVERSE_DOMAIN/';
62 $this->servicePath = '';
63 $this->batchPath = 'batch';
64 $this->version = 'v1';
65 $this->serviceName = 'bigqueryreservation';
66
67 $this->projects_locations = new BigQueryReservation\Resource\ProjectsLocations(
68 $this,
69 $this->serviceName,
70 'locations',
71 [
72 'methods' => [
73 'getBiReservation' => [
74 'path' => 'v1/{+name}',
75 'httpMethod' => 'GET',
76 'parameters' => [
77 'name' => [
78 'location' => 'path',
79 'type' => 'string',
80 'required' => true,
81 ],
82 ],
83 ],'searchAllAssignments' => [
84 'path' => 'v1/{+parent}:searchAllAssignments',
85 'httpMethod' => 'GET',
86 'parameters' => [
87 'parent' => [
88 'location' => 'path',
89 'type' => 'string',
90 'required' => true,
91 ],
92 'pageSize' => [
93 'location' => 'query',
94 'type' => 'integer',
95 ],
96 'pageToken' => [
97 'location' => 'query',
98 'type' => 'string',
99 ],
100 'query' => [
101 'location' => 'query',
102 'type' => 'string',
103 ],
104 ],
105 ],'searchAssignments' => [
106 'path' => 'v1/{+parent}:searchAssignments',
107 'httpMethod' => 'GET',
108 'parameters' => [
109 'parent' => [
110 'location' => 'path',
111 'type' => 'string',
112 'required' => true,
113 ],
114 'pageSize' => [
115 'location' => 'query',
116 'type' => 'integer',
117 ],
118 'pageToken' => [
119 'location' => 'query',
120 'type' => 'string',
121 ],
122 'query' => [
123 'location' => 'query',
124 'type' => 'string',
125 ],
126 ],
127 ],'updateBiReservation' => [
128 'path' => 'v1/{+name}',
129 'httpMethod' => 'PATCH',
130 'parameters' => [
131 'name' => [
132 'location' => 'path',
133 'type' => 'string',
134 'required' => true,
135 ],
136 'updateMask' => [
137 'location' => 'query',
138 'type' => 'string',
139 ],
140 ],
141 ],
142 ]
143 ]
144 );
145 $this->projects_locations_capacityCommitments = new BigQueryReservation\Resource\ProjectsLocationsCapacityCommitments(
146 $this,
147 $this->serviceName,
148 'capacityCommitments',
149 [
150 'methods' => [
151 'create' => [
152 'path' => 'v1/{+parent}/capacityCommitments',
153 'httpMethod' => 'POST',
154 'parameters' => [
155 'parent' => [
156 'location' => 'path',
157 'type' => 'string',
158 'required' => true,
159 ],
160 'capacityCommitmentId' => [
161 'location' => 'query',
162 'type' => 'string',
163 ],
164 'enforceSingleAdminProjectPerOrg' => [
165 'location' => 'query',
166 'type' => 'boolean',
167 ],
168 ],
169 ],'delete' => [
170 'path' => 'v1/{+name}',
171 'httpMethod' => 'DELETE',
172 'parameters' => [
173 'name' => [
174 'location' => 'path',
175 'type' => 'string',
176 'required' => true,
177 ],
178 'force' => [
179 'location' => 'query',
180 'type' => 'boolean',
181 ],
182 ],
183 ],'get' => [
184 'path' => 'v1/{+name}',
185 'httpMethod' => 'GET',
186 'parameters' => [
187 'name' => [
188 'location' => 'path',
189 'type' => 'string',
190 'required' => true,
191 ],
192 ],
193 ],'list' => [
194 'path' => 'v1/{+parent}/capacityCommitments',
195 'httpMethod' => 'GET',
196 'parameters' => [
197 'parent' => [
198 'location' => 'path',
199 'type' => 'string',
200 'required' => true,
201 ],
202 'pageSize' => [
203 'location' => 'query',
204 'type' => 'integer',
205 ],
206 'pageToken' => [
207 'location' => 'query',
208 'type' => 'string',
209 ],
210 ],
211 ],'merge' => [
212 'path' => 'v1/{+parent}/capacityCommitments:merge',
213 'httpMethod' => 'POST',
214 'parameters' => [
215 'parent' => [
216 'location' => 'path',
217 'type' => 'string',
218 'required' => true,
219 ],
220 ],
221 ],'patch' => [
222 'path' => 'v1/{+name}',
223 'httpMethod' => 'PATCH',
224 'parameters' => [
225 'name' => [
226 'location' => 'path',
227 'type' => 'string',
228 'required' => true,
229 ],
230 'updateMask' => [
231 'location' => 'query',
232 'type' => 'string',
233 ],
234 ],
235 ],'split' => [
236 'path' => 'v1/{+name}:split',
237 'httpMethod' => 'POST',
238 'parameters' => [
239 'name' => [
240 'location' => 'path',
241 'type' => 'string',
242 'required' => true,
243 ],
244 ],
245 ],
246 ]
247 ]
248 );
249 $this->projects_locations_reservations = new BigQueryReservation\Resource\ProjectsLocationsReservations(
250 $this,
251 $this->serviceName,
252 'reservations',
253 [
254 'methods' => [
255 'create' => [
256 'path' => 'v1/{+parent}/reservations',
257 'httpMethod' => 'POST',
258 'parameters' => [
259 'parent' => [
260 'location' => 'path',
261 'type' => 'string',
262 'required' => true,
263 ],
264 'reservationId' => [
265 'location' => 'query',
266 'type' => 'string',
267 ],
268 ],
269 ],'delete' => [
270 'path' => 'v1/{+name}',
271 'httpMethod' => 'DELETE',
272 'parameters' => [
273 'name' => [
274 'location' => 'path',
275 'type' => 'string',
276 'required' => true,
277 ],
278 ],
279 ],'failoverReservation' => [
280 'path' => 'v1/{+name}:failoverReservation',
281 'httpMethod' => 'POST',
282 'parameters' => [
283 'name' => [
284 'location' => 'path',
285 'type' => 'string',
286 'required' => true,
287 ],
288 ],
289 ],'get' => [
290 'path' => 'v1/{+name}',
291 'httpMethod' => 'GET',
292 'parameters' => [
293 'name' => [
294 'location' => 'path',
295 'type' => 'string',
296 'required' => true,
297 ],
298 ],
299 ],'list' => [
300 'path' => 'v1/{+parent}/reservations',
301 'httpMethod' => 'GET',
302 'parameters' => [
303 'parent' => [
304 'location' => 'path',
305 'type' => 'string',
306 'required' => true,
307 ],
308 'pageSize' => [
309 'location' => 'query',
310 'type' => 'integer',
311 ],
312 'pageToken' => [
313 'location' => 'query',
314 'type' => 'string',
315 ],
316 ],
317 ],'patch' => [
318 'path' => 'v1/{+name}',
319 'httpMethod' => 'PATCH',
320 'parameters' => [
321 'name' => [
322 'location' => 'path',
323 'type' => 'string',
324 'required' => true,
325 ],
326 'updateMask' => [
327 'location' => 'query',
328 'type' => 'string',
329 ],
330 ],
331 ],
332 ]
333 ]
334 );
335 $this->projects_locations_reservations_assignments = new BigQueryReservation\Resource\ProjectsLocationsReservationsAssignments(
336 $this,
337 $this->serviceName,
338 'assignments',
339 [
340 'methods' => [
341 'create' => [
342 'path' => 'v1/{+parent}/assignments',
343 'httpMethod' => 'POST',
344 'parameters' => [
345 'parent' => [
346 'location' => 'path',
347 'type' => 'string',
348 'required' => true,
349 ],
350 'assignmentId' => [
351 'location' => 'query',
352 'type' => 'string',
353 ],
354 ],
355 ],'delete' => [
356 'path' => 'v1/{+name}',
357 'httpMethod' => 'DELETE',
358 'parameters' => [
359 'name' => [
360 'location' => 'path',
361 'type' => 'string',
362 'required' => true,
363 ],
364 ],
365 ],'list' => [
366 'path' => 'v1/{+parent}/assignments',
367 'httpMethod' => 'GET',
368 'parameters' => [
369 'parent' => [
370 'location' => 'path',
371 'type' => 'string',
372 'required' => true,
373 ],
374 'pageSize' => [
375 'location' => 'query',
376 'type' => 'integer',
377 ],
378 'pageToken' => [
379 'location' => 'query',
380 'type' => 'string',
381 ],
382 ],
383 ],'move' => [
384 'path' => 'v1/{+name}:move',
385 'httpMethod' => 'POST',
386 'parameters' => [
387 'name' => [
388 'location' => 'path',
389 'type' => 'string',
390 'required' => true,
391 ],
392 ],
393 ],'patch' => [
394 'path' => 'v1/{+name}',
395 'httpMethod' => 'PATCH',
396 'parameters' => [
397 'name' => [
398 'location' => 'path',
399 'type' => 'string',
400 'required' => true,
401 ],
402 'updateMask' => [
403 'location' => 'query',
404 'type' => 'string',
405 ],
406 ],
407 ],
408 ]
409 ]
410 );
411 }
412}
413
414// Adding a class alias for backwards compatibility with the previous class name.
415class_alias(BigQueryReservation::class, 'Google_Service_BigQueryReservation');
Note: See TracBrowser for help on using the repository browser.