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 |
|
---|
18 | namespace Google\Service;
|
---|
19 |
|
---|
20 | use Google\Client;
|
---|
21 |
|
---|
22 | /**
|
---|
23 | * Service definition for ArtifactRegistry (v1).
|
---|
24 | *
|
---|
25 | * <p>
|
---|
26 | * Store and manage build artifacts in a scalable and integrated service built
|
---|
27 | * on Google infrastructure.</p>
|
---|
28 | *
|
---|
29 | * <p>
|
---|
30 | * For more information about this service, see the API
|
---|
31 | * <a href="https://cloud.google.com/artifacts/docs/" target="_blank">Documentation</a>
|
---|
32 | * </p>
|
---|
33 | *
|
---|
34 | * @author Google, Inc.
|
---|
35 | */
|
---|
36 | class ArtifactRegistry 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 | /** View your data across Google Cloud services and see the email address of your Google Account. */
|
---|
42 | const CLOUD_PLATFORM_READ_ONLY =
|
---|
43 | "https://www.googleapis.com/auth/cloud-platform.read-only";
|
---|
44 |
|
---|
45 | public $projects;
|
---|
46 | public $projects_locations;
|
---|
47 | public $projects_locations_operations;
|
---|
48 | public $projects_locations_repositories;
|
---|
49 | public $projects_locations_repositories_aptArtifacts;
|
---|
50 | public $projects_locations_repositories_attachments;
|
---|
51 | public $projects_locations_repositories_dockerImages;
|
---|
52 | public $projects_locations_repositories_files;
|
---|
53 | public $projects_locations_repositories_genericArtifacts;
|
---|
54 | public $projects_locations_repositories_goModules;
|
---|
55 | public $projects_locations_repositories_googetArtifacts;
|
---|
56 | public $projects_locations_repositories_kfpArtifacts;
|
---|
57 | public $projects_locations_repositories_mavenArtifacts;
|
---|
58 | public $projects_locations_repositories_npmPackages;
|
---|
59 | public $projects_locations_repositories_packages;
|
---|
60 | public $projects_locations_repositories_packages_tags;
|
---|
61 | public $projects_locations_repositories_packages_versions;
|
---|
62 | public $projects_locations_repositories_pythonPackages;
|
---|
63 | public $projects_locations_repositories_rules;
|
---|
64 | public $projects_locations_repositories_yumArtifacts;
|
---|
65 | public $rootUrlTemplate;
|
---|
66 |
|
---|
67 | /**
|
---|
68 | * Constructs the internal representation of the ArtifactRegistry service.
|
---|
69 | *
|
---|
70 | * @param Client|array $clientOrConfig The client used to deliver requests, or a
|
---|
71 | * config array to pass to a new Client instance.
|
---|
72 | * @param string $rootUrl The root URL used for requests to the service.
|
---|
73 | */
|
---|
74 | public function __construct($clientOrConfig = [], $rootUrl = null)
|
---|
75 | {
|
---|
76 | parent::__construct($clientOrConfig);
|
---|
77 | $this->rootUrl = $rootUrl ?: 'https://artifactregistry.googleapis.com/';
|
---|
78 | $this->rootUrlTemplate = $rootUrl ?: 'https://artifactregistry.UNIVERSE_DOMAIN/';
|
---|
79 | $this->servicePath = '';
|
---|
80 | $this->batchPath = 'batch';
|
---|
81 | $this->version = 'v1';
|
---|
82 | $this->serviceName = 'artifactregistry';
|
---|
83 |
|
---|
84 | $this->projects = new ArtifactRegistry\Resource\Projects(
|
---|
85 | $this,
|
---|
86 | $this->serviceName,
|
---|
87 | 'projects',
|
---|
88 | [
|
---|
89 | 'methods' => [
|
---|
90 | 'getProjectSettings' => [
|
---|
91 | 'path' => 'v1/{+name}',
|
---|
92 | 'httpMethod' => 'GET',
|
---|
93 | 'parameters' => [
|
---|
94 | 'name' => [
|
---|
95 | 'location' => 'path',
|
---|
96 | 'type' => 'string',
|
---|
97 | 'required' => true,
|
---|
98 | ],
|
---|
99 | ],
|
---|
100 | ],'updateProjectSettings' => [
|
---|
101 | 'path' => 'v1/{+name}',
|
---|
102 | 'httpMethod' => 'PATCH',
|
---|
103 | 'parameters' => [
|
---|
104 | 'name' => [
|
---|
105 | 'location' => 'path',
|
---|
106 | 'type' => 'string',
|
---|
107 | 'required' => true,
|
---|
108 | ],
|
---|
109 | 'updateMask' => [
|
---|
110 | 'location' => 'query',
|
---|
111 | 'type' => 'string',
|
---|
112 | ],
|
---|
113 | ],
|
---|
114 | ],
|
---|
115 | ]
|
---|
116 | ]
|
---|
117 | );
|
---|
118 | $this->projects_locations = new ArtifactRegistry\Resource\ProjectsLocations(
|
---|
119 | $this,
|
---|
120 | $this->serviceName,
|
---|
121 | 'locations',
|
---|
122 | [
|
---|
123 | 'methods' => [
|
---|
124 | 'get' => [
|
---|
125 | 'path' => 'v1/{+name}',
|
---|
126 | 'httpMethod' => 'GET',
|
---|
127 | 'parameters' => [
|
---|
128 | 'name' => [
|
---|
129 | 'location' => 'path',
|
---|
130 | 'type' => 'string',
|
---|
131 | 'required' => true,
|
---|
132 | ],
|
---|
133 | ],
|
---|
134 | ],'getVpcscConfig' => [
|
---|
135 | 'path' => 'v1/{+name}',
|
---|
136 | 'httpMethod' => 'GET',
|
---|
137 | 'parameters' => [
|
---|
138 | 'name' => [
|
---|
139 | 'location' => 'path',
|
---|
140 | 'type' => 'string',
|
---|
141 | 'required' => true,
|
---|
142 | ],
|
---|
143 | ],
|
---|
144 | ],'list' => [
|
---|
145 | 'path' => 'v1/{+name}/locations',
|
---|
146 | 'httpMethod' => 'GET',
|
---|
147 | 'parameters' => [
|
---|
148 | 'name' => [
|
---|
149 | 'location' => 'path',
|
---|
150 | 'type' => 'string',
|
---|
151 | 'required' => true,
|
---|
152 | ],
|
---|
153 | 'filter' => [
|
---|
154 | 'location' => 'query',
|
---|
155 | 'type' => 'string',
|
---|
156 | ],
|
---|
157 | 'pageSize' => [
|
---|
158 | 'location' => 'query',
|
---|
159 | 'type' => 'integer',
|
---|
160 | ],
|
---|
161 | 'pageToken' => [
|
---|
162 | 'location' => 'query',
|
---|
163 | 'type' => 'string',
|
---|
164 | ],
|
---|
165 | ],
|
---|
166 | ],'updateVpcscConfig' => [
|
---|
167 | 'path' => 'v1/{+name}',
|
---|
168 | 'httpMethod' => 'PATCH',
|
---|
169 | 'parameters' => [
|
---|
170 | 'name' => [
|
---|
171 | 'location' => 'path',
|
---|
172 | 'type' => 'string',
|
---|
173 | 'required' => true,
|
---|
174 | ],
|
---|
175 | 'updateMask' => [
|
---|
176 | 'location' => 'query',
|
---|
177 | 'type' => 'string',
|
---|
178 | ],
|
---|
179 | ],
|
---|
180 | ],
|
---|
181 | ]
|
---|
182 | ]
|
---|
183 | );
|
---|
184 | $this->projects_locations_operations = new ArtifactRegistry\Resource\ProjectsLocationsOperations(
|
---|
185 | $this,
|
---|
186 | $this->serviceName,
|
---|
187 | 'operations',
|
---|
188 | [
|
---|
189 | 'methods' => [
|
---|
190 | 'get' => [
|
---|
191 | 'path' => 'v1/{+name}',
|
---|
192 | 'httpMethod' => 'GET',
|
---|
193 | 'parameters' => [
|
---|
194 | 'name' => [
|
---|
195 | 'location' => 'path',
|
---|
196 | 'type' => 'string',
|
---|
197 | 'required' => true,
|
---|
198 | ],
|
---|
199 | ],
|
---|
200 | ],
|
---|
201 | ]
|
---|
202 | ]
|
---|
203 | );
|
---|
204 | $this->projects_locations_repositories = new ArtifactRegistry\Resource\ProjectsLocationsRepositories(
|
---|
205 | $this,
|
---|
206 | $this->serviceName,
|
---|
207 | 'repositories',
|
---|
208 | [
|
---|
209 | 'methods' => [
|
---|
210 | 'create' => [
|
---|
211 | 'path' => 'v1/{+parent}/repositories',
|
---|
212 | 'httpMethod' => 'POST',
|
---|
213 | 'parameters' => [
|
---|
214 | 'parent' => [
|
---|
215 | 'location' => 'path',
|
---|
216 | 'type' => 'string',
|
---|
217 | 'required' => true,
|
---|
218 | ],
|
---|
219 | 'repositoryId' => [
|
---|
220 | 'location' => 'query',
|
---|
221 | 'type' => 'string',
|
---|
222 | ],
|
---|
223 | ],
|
---|
224 | ],'delete' => [
|
---|
225 | 'path' => 'v1/{+name}',
|
---|
226 | 'httpMethod' => 'DELETE',
|
---|
227 | 'parameters' => [
|
---|
228 | 'name' => [
|
---|
229 | 'location' => 'path',
|
---|
230 | 'type' => 'string',
|
---|
231 | 'required' => true,
|
---|
232 | ],
|
---|
233 | ],
|
---|
234 | ],'get' => [
|
---|
235 | 'path' => 'v1/{+name}',
|
---|
236 | 'httpMethod' => 'GET',
|
---|
237 | 'parameters' => [
|
---|
238 | 'name' => [
|
---|
239 | 'location' => 'path',
|
---|
240 | 'type' => 'string',
|
---|
241 | 'required' => true,
|
---|
242 | ],
|
---|
243 | ],
|
---|
244 | ],'getIamPolicy' => [
|
---|
245 | 'path' => 'v1/{+resource}:getIamPolicy',
|
---|
246 | 'httpMethod' => 'GET',
|
---|
247 | 'parameters' => [
|
---|
248 | 'resource' => [
|
---|
249 | 'location' => 'path',
|
---|
250 | 'type' => 'string',
|
---|
251 | 'required' => true,
|
---|
252 | ],
|
---|
253 | 'options.requestedPolicyVersion' => [
|
---|
254 | 'location' => 'query',
|
---|
255 | 'type' => 'integer',
|
---|
256 | ],
|
---|
257 | ],
|
---|
258 | ],'list' => [
|
---|
259 | 'path' => 'v1/{+parent}/repositories',
|
---|
260 | 'httpMethod' => 'GET',
|
---|
261 | 'parameters' => [
|
---|
262 | 'parent' => [
|
---|
263 | 'location' => 'path',
|
---|
264 | 'type' => 'string',
|
---|
265 | 'required' => true,
|
---|
266 | ],
|
---|
267 | 'filter' => [
|
---|
268 | 'location' => 'query',
|
---|
269 | 'type' => 'string',
|
---|
270 | ],
|
---|
271 | 'orderBy' => [
|
---|
272 | 'location' => 'query',
|
---|
273 | 'type' => 'string',
|
---|
274 | ],
|
---|
275 | 'pageSize' => [
|
---|
276 | 'location' => 'query',
|
---|
277 | 'type' => 'integer',
|
---|
278 | ],
|
---|
279 | 'pageToken' => [
|
---|
280 | 'location' => 'query',
|
---|
281 | 'type' => 'string',
|
---|
282 | ],
|
---|
283 | ],
|
---|
284 | ],'patch' => [
|
---|
285 | 'path' => 'v1/{+name}',
|
---|
286 | 'httpMethod' => 'PATCH',
|
---|
287 | 'parameters' => [
|
---|
288 | 'name' => [
|
---|
289 | 'location' => 'path',
|
---|
290 | 'type' => 'string',
|
---|
291 | 'required' => true,
|
---|
292 | ],
|
---|
293 | 'updateMask' => [
|
---|
294 | 'location' => 'query',
|
---|
295 | 'type' => 'string',
|
---|
296 | ],
|
---|
297 | ],
|
---|
298 | ],'setIamPolicy' => [
|
---|
299 | 'path' => 'v1/{+resource}:setIamPolicy',
|
---|
300 | 'httpMethod' => 'POST',
|
---|
301 | 'parameters' => [
|
---|
302 | 'resource' => [
|
---|
303 | 'location' => 'path',
|
---|
304 | 'type' => 'string',
|
---|
305 | 'required' => true,
|
---|
306 | ],
|
---|
307 | ],
|
---|
308 | ],'testIamPermissions' => [
|
---|
309 | 'path' => 'v1/{+resource}:testIamPermissions',
|
---|
310 | 'httpMethod' => 'POST',
|
---|
311 | 'parameters' => [
|
---|
312 | 'resource' => [
|
---|
313 | 'location' => 'path',
|
---|
314 | 'type' => 'string',
|
---|
315 | 'required' => true,
|
---|
316 | ],
|
---|
317 | ],
|
---|
318 | ],
|
---|
319 | ]
|
---|
320 | ]
|
---|
321 | );
|
---|
322 | $this->projects_locations_repositories_aptArtifacts = new ArtifactRegistry\Resource\ProjectsLocationsRepositoriesAptArtifacts(
|
---|
323 | $this,
|
---|
324 | $this->serviceName,
|
---|
325 | 'aptArtifacts',
|
---|
326 | [
|
---|
327 | 'methods' => [
|
---|
328 | 'import' => [
|
---|
329 | 'path' => 'v1/{+parent}/aptArtifacts:import',
|
---|
330 | 'httpMethod' => 'POST',
|
---|
331 | 'parameters' => [
|
---|
332 | 'parent' => [
|
---|
333 | 'location' => 'path',
|
---|
334 | 'type' => 'string',
|
---|
335 | 'required' => true,
|
---|
336 | ],
|
---|
337 | ],
|
---|
338 | ],'upload' => [
|
---|
339 | 'path' => 'v1/{+parent}/aptArtifacts:create',
|
---|
340 | 'httpMethod' => 'POST',
|
---|
341 | 'parameters' => [
|
---|
342 | 'parent' => [
|
---|
343 | 'location' => 'path',
|
---|
344 | 'type' => 'string',
|
---|
345 | 'required' => true,
|
---|
346 | ],
|
---|
347 | ],
|
---|
348 | ],
|
---|
349 | ]
|
---|
350 | ]
|
---|
351 | );
|
---|
352 | $this->projects_locations_repositories_attachments = new ArtifactRegistry\Resource\ProjectsLocationsRepositoriesAttachments(
|
---|
353 | $this,
|
---|
354 | $this->serviceName,
|
---|
355 | 'attachments',
|
---|
356 | [
|
---|
357 | 'methods' => [
|
---|
358 | 'create' => [
|
---|
359 | 'path' => 'v1/{+parent}/attachments',
|
---|
360 | 'httpMethod' => 'POST',
|
---|
361 | 'parameters' => [
|
---|
362 | 'parent' => [
|
---|
363 | 'location' => 'path',
|
---|
364 | 'type' => 'string',
|
---|
365 | 'required' => true,
|
---|
366 | ],
|
---|
367 | 'attachmentId' => [
|
---|
368 | 'location' => 'query',
|
---|
369 | 'type' => 'string',
|
---|
370 | ],
|
---|
371 | ],
|
---|
372 | ],'delete' => [
|
---|
373 | 'path' => 'v1/{+name}',
|
---|
374 | 'httpMethod' => 'DELETE',
|
---|
375 | 'parameters' => [
|
---|
376 | 'name' => [
|
---|
377 | 'location' => 'path',
|
---|
378 | 'type' => 'string',
|
---|
379 | 'required' => true,
|
---|
380 | ],
|
---|
381 | ],
|
---|
382 | ],'get' => [
|
---|
383 | 'path' => 'v1/{+name}',
|
---|
384 | 'httpMethod' => 'GET',
|
---|
385 | 'parameters' => [
|
---|
386 | 'name' => [
|
---|
387 | 'location' => 'path',
|
---|
388 | 'type' => 'string',
|
---|
389 | 'required' => true,
|
---|
390 | ],
|
---|
391 | ],
|
---|
392 | ],'list' => [
|
---|
393 | 'path' => 'v1/{+parent}/attachments',
|
---|
394 | 'httpMethod' => 'GET',
|
---|
395 | 'parameters' => [
|
---|
396 | 'parent' => [
|
---|
397 | 'location' => 'path',
|
---|
398 | 'type' => 'string',
|
---|
399 | 'required' => true,
|
---|
400 | ],
|
---|
401 | 'filter' => [
|
---|
402 | 'location' => 'query',
|
---|
403 | 'type' => 'string',
|
---|
404 | ],
|
---|
405 | 'pageSize' => [
|
---|
406 | 'location' => 'query',
|
---|
407 | 'type' => 'integer',
|
---|
408 | ],
|
---|
409 | 'pageToken' => [
|
---|
410 | 'location' => 'query',
|
---|
411 | 'type' => 'string',
|
---|
412 | ],
|
---|
413 | ],
|
---|
414 | ],
|
---|
415 | ]
|
---|
416 | ]
|
---|
417 | );
|
---|
418 | $this->projects_locations_repositories_dockerImages = new ArtifactRegistry\Resource\ProjectsLocationsRepositoriesDockerImages(
|
---|
419 | $this,
|
---|
420 | $this->serviceName,
|
---|
421 | 'dockerImages',
|
---|
422 | [
|
---|
423 | 'methods' => [
|
---|
424 | 'get' => [
|
---|
425 | 'path' => 'v1/{+name}',
|
---|
426 | 'httpMethod' => 'GET',
|
---|
427 | 'parameters' => [
|
---|
428 | 'name' => [
|
---|
429 | 'location' => 'path',
|
---|
430 | 'type' => 'string',
|
---|
431 | 'required' => true,
|
---|
432 | ],
|
---|
433 | ],
|
---|
434 | ],'list' => [
|
---|
435 | 'path' => 'v1/{+parent}/dockerImages',
|
---|
436 | 'httpMethod' => 'GET',
|
---|
437 | 'parameters' => [
|
---|
438 | 'parent' => [
|
---|
439 | 'location' => 'path',
|
---|
440 | 'type' => 'string',
|
---|
441 | 'required' => true,
|
---|
442 | ],
|
---|
443 | 'orderBy' => [
|
---|
444 | 'location' => 'query',
|
---|
445 | 'type' => 'string',
|
---|
446 | ],
|
---|
447 | 'pageSize' => [
|
---|
448 | 'location' => 'query',
|
---|
449 | 'type' => 'integer',
|
---|
450 | ],
|
---|
451 | 'pageToken' => [
|
---|
452 | 'location' => 'query',
|
---|
453 | 'type' => 'string',
|
---|
454 | ],
|
---|
455 | ],
|
---|
456 | ],
|
---|
457 | ]
|
---|
458 | ]
|
---|
459 | );
|
---|
460 | $this->projects_locations_repositories_files = new ArtifactRegistry\Resource\ProjectsLocationsRepositoriesFiles(
|
---|
461 | $this,
|
---|
462 | $this->serviceName,
|
---|
463 | 'files',
|
---|
464 | [
|
---|
465 | 'methods' => [
|
---|
466 | 'delete' => [
|
---|
467 | 'path' => 'v1/{+name}',
|
---|
468 | 'httpMethod' => 'DELETE',
|
---|
469 | 'parameters' => [
|
---|
470 | 'name' => [
|
---|
471 | 'location' => 'path',
|
---|
472 | 'type' => 'string',
|
---|
473 | 'required' => true,
|
---|
474 | ],
|
---|
475 | ],
|
---|
476 | ],'download' => [
|
---|
477 | 'path' => 'v1/{+name}:download',
|
---|
478 | 'httpMethod' => 'GET',
|
---|
479 | 'parameters' => [
|
---|
480 | 'name' => [
|
---|
481 | 'location' => 'path',
|
---|
482 | 'type' => 'string',
|
---|
483 | 'required' => true,
|
---|
484 | ],
|
---|
485 | ],
|
---|
486 | ],'get' => [
|
---|
487 | 'path' => 'v1/{+name}',
|
---|
488 | 'httpMethod' => 'GET',
|
---|
489 | 'parameters' => [
|
---|
490 | 'name' => [
|
---|
491 | 'location' => 'path',
|
---|
492 | 'type' => 'string',
|
---|
493 | 'required' => true,
|
---|
494 | ],
|
---|
495 | ],
|
---|
496 | ],'list' => [
|
---|
497 | 'path' => 'v1/{+parent}/files',
|
---|
498 | 'httpMethod' => 'GET',
|
---|
499 | 'parameters' => [
|
---|
500 | 'parent' => [
|
---|
501 | 'location' => 'path',
|
---|
502 | 'type' => 'string',
|
---|
503 | 'required' => true,
|
---|
504 | ],
|
---|
505 | 'filter' => [
|
---|
506 | 'location' => 'query',
|
---|
507 | 'type' => 'string',
|
---|
508 | ],
|
---|
509 | 'orderBy' => [
|
---|
510 | 'location' => 'query',
|
---|
511 | 'type' => 'string',
|
---|
512 | ],
|
---|
513 | 'pageSize' => [
|
---|
514 | 'location' => 'query',
|
---|
515 | 'type' => 'integer',
|
---|
516 | ],
|
---|
517 | 'pageToken' => [
|
---|
518 | 'location' => 'query',
|
---|
519 | 'type' => 'string',
|
---|
520 | ],
|
---|
521 | ],
|
---|
522 | ],'patch' => [
|
---|
523 | 'path' => 'v1/{+name}',
|
---|
524 | 'httpMethod' => 'PATCH',
|
---|
525 | 'parameters' => [
|
---|
526 | 'name' => [
|
---|
527 | 'location' => 'path',
|
---|
528 | 'type' => 'string',
|
---|
529 | 'required' => true,
|
---|
530 | ],
|
---|
531 | 'updateMask' => [
|
---|
532 | 'location' => 'query',
|
---|
533 | 'type' => 'string',
|
---|
534 | ],
|
---|
535 | ],
|
---|
536 | ],'upload' => [
|
---|
537 | 'path' => 'v1/{+parent}/files:upload',
|
---|
538 | 'httpMethod' => 'POST',
|
---|
539 | 'parameters' => [
|
---|
540 | 'parent' => [
|
---|
541 | 'location' => 'path',
|
---|
542 | 'type' => 'string',
|
---|
543 | 'required' => true,
|
---|
544 | ],
|
---|
545 | ],
|
---|
546 | ],
|
---|
547 | ]
|
---|
548 | ]
|
---|
549 | );
|
---|
550 | $this->projects_locations_repositories_genericArtifacts = new ArtifactRegistry\Resource\ProjectsLocationsRepositoriesGenericArtifacts(
|
---|
551 | $this,
|
---|
552 | $this->serviceName,
|
---|
553 | 'genericArtifacts',
|
---|
554 | [
|
---|
555 | 'methods' => [
|
---|
556 | 'upload' => [
|
---|
557 | 'path' => 'v1/{+parent}/genericArtifacts:create',
|
---|
558 | 'httpMethod' => 'POST',
|
---|
559 | 'parameters' => [
|
---|
560 | 'parent' => [
|
---|
561 | 'location' => 'path',
|
---|
562 | 'type' => 'string',
|
---|
563 | 'required' => true,
|
---|
564 | ],
|
---|
565 | ],
|
---|
566 | ],
|
---|
567 | ]
|
---|
568 | ]
|
---|
569 | );
|
---|
570 | $this->projects_locations_repositories_goModules = new ArtifactRegistry\Resource\ProjectsLocationsRepositoriesGoModules(
|
---|
571 | $this,
|
---|
572 | $this->serviceName,
|
---|
573 | 'goModules',
|
---|
574 | [
|
---|
575 | 'methods' => [
|
---|
576 | 'upload' => [
|
---|
577 | 'path' => 'v1/{+parent}/goModules:create',
|
---|
578 | 'httpMethod' => 'POST',
|
---|
579 | 'parameters' => [
|
---|
580 | 'parent' => [
|
---|
581 | 'location' => 'path',
|
---|
582 | 'type' => 'string',
|
---|
583 | 'required' => true,
|
---|
584 | ],
|
---|
585 | ],
|
---|
586 | ],
|
---|
587 | ]
|
---|
588 | ]
|
---|
589 | );
|
---|
590 | $this->projects_locations_repositories_googetArtifacts = new ArtifactRegistry\Resource\ProjectsLocationsRepositoriesGoogetArtifacts(
|
---|
591 | $this,
|
---|
592 | $this->serviceName,
|
---|
593 | 'googetArtifacts',
|
---|
594 | [
|
---|
595 | 'methods' => [
|
---|
596 | 'import' => [
|
---|
597 | 'path' => 'v1/{+parent}/googetArtifacts:import',
|
---|
598 | 'httpMethod' => 'POST',
|
---|
599 | 'parameters' => [
|
---|
600 | 'parent' => [
|
---|
601 | 'location' => 'path',
|
---|
602 | 'type' => 'string',
|
---|
603 | 'required' => true,
|
---|
604 | ],
|
---|
605 | ],
|
---|
606 | ],'upload' => [
|
---|
607 | 'path' => 'v1/{+parent}/googetArtifacts:create',
|
---|
608 | 'httpMethod' => 'POST',
|
---|
609 | 'parameters' => [
|
---|
610 | 'parent' => [
|
---|
611 | 'location' => 'path',
|
---|
612 | 'type' => 'string',
|
---|
613 | 'required' => true,
|
---|
614 | ],
|
---|
615 | ],
|
---|
616 | ],
|
---|
617 | ]
|
---|
618 | ]
|
---|
619 | );
|
---|
620 | $this->projects_locations_repositories_kfpArtifacts = new ArtifactRegistry\Resource\ProjectsLocationsRepositoriesKfpArtifacts(
|
---|
621 | $this,
|
---|
622 | $this->serviceName,
|
---|
623 | 'kfpArtifacts',
|
---|
624 | [
|
---|
625 | 'methods' => [
|
---|
626 | 'upload' => [
|
---|
627 | 'path' => 'v1/{+parent}/kfpArtifacts:create',
|
---|
628 | 'httpMethod' => 'POST',
|
---|
629 | 'parameters' => [
|
---|
630 | 'parent' => [
|
---|
631 | 'location' => 'path',
|
---|
632 | 'type' => 'string',
|
---|
633 | 'required' => true,
|
---|
634 | ],
|
---|
635 | ],
|
---|
636 | ],
|
---|
637 | ]
|
---|
638 | ]
|
---|
639 | );
|
---|
640 | $this->projects_locations_repositories_mavenArtifacts = new ArtifactRegistry\Resource\ProjectsLocationsRepositoriesMavenArtifacts(
|
---|
641 | $this,
|
---|
642 | $this->serviceName,
|
---|
643 | 'mavenArtifacts',
|
---|
644 | [
|
---|
645 | 'methods' => [
|
---|
646 | 'get' => [
|
---|
647 | 'path' => 'v1/{+name}',
|
---|
648 | 'httpMethod' => 'GET',
|
---|
649 | 'parameters' => [
|
---|
650 | 'name' => [
|
---|
651 | 'location' => 'path',
|
---|
652 | 'type' => 'string',
|
---|
653 | 'required' => true,
|
---|
654 | ],
|
---|
655 | ],
|
---|
656 | ],'list' => [
|
---|
657 | 'path' => 'v1/{+parent}/mavenArtifacts',
|
---|
658 | 'httpMethod' => 'GET',
|
---|
659 | 'parameters' => [
|
---|
660 | 'parent' => [
|
---|
661 | 'location' => 'path',
|
---|
662 | 'type' => 'string',
|
---|
663 | 'required' => true,
|
---|
664 | ],
|
---|
665 | 'pageSize' => [
|
---|
666 | 'location' => 'query',
|
---|
667 | 'type' => 'integer',
|
---|
668 | ],
|
---|
669 | 'pageToken' => [
|
---|
670 | 'location' => 'query',
|
---|
671 | 'type' => 'string',
|
---|
672 | ],
|
---|
673 | ],
|
---|
674 | ],
|
---|
675 | ]
|
---|
676 | ]
|
---|
677 | );
|
---|
678 | $this->projects_locations_repositories_npmPackages = new ArtifactRegistry\Resource\ProjectsLocationsRepositoriesNpmPackages(
|
---|
679 | $this,
|
---|
680 | $this->serviceName,
|
---|
681 | 'npmPackages',
|
---|
682 | [
|
---|
683 | 'methods' => [
|
---|
684 | 'get' => [
|
---|
685 | 'path' => 'v1/{+name}',
|
---|
686 | 'httpMethod' => 'GET',
|
---|
687 | 'parameters' => [
|
---|
688 | 'name' => [
|
---|
689 | 'location' => 'path',
|
---|
690 | 'type' => 'string',
|
---|
691 | 'required' => true,
|
---|
692 | ],
|
---|
693 | ],
|
---|
694 | ],'list' => [
|
---|
695 | 'path' => 'v1/{+parent}/npmPackages',
|
---|
696 | 'httpMethod' => 'GET',
|
---|
697 | 'parameters' => [
|
---|
698 | 'parent' => [
|
---|
699 | 'location' => 'path',
|
---|
700 | 'type' => 'string',
|
---|
701 | 'required' => true,
|
---|
702 | ],
|
---|
703 | 'pageSize' => [
|
---|
704 | 'location' => 'query',
|
---|
705 | 'type' => 'integer',
|
---|
706 | ],
|
---|
707 | 'pageToken' => [
|
---|
708 | 'location' => 'query',
|
---|
709 | 'type' => 'string',
|
---|
710 | ],
|
---|
711 | ],
|
---|
712 | ],
|
---|
713 | ]
|
---|
714 | ]
|
---|
715 | );
|
---|
716 | $this->projects_locations_repositories_packages = new ArtifactRegistry\Resource\ProjectsLocationsRepositoriesPackages(
|
---|
717 | $this,
|
---|
718 | $this->serviceName,
|
---|
719 | 'packages',
|
---|
720 | [
|
---|
721 | 'methods' => [
|
---|
722 | 'delete' => [
|
---|
723 | 'path' => 'v1/{+name}',
|
---|
724 | 'httpMethod' => 'DELETE',
|
---|
725 | 'parameters' => [
|
---|
726 | 'name' => [
|
---|
727 | 'location' => 'path',
|
---|
728 | 'type' => 'string',
|
---|
729 | 'required' => true,
|
---|
730 | ],
|
---|
731 | ],
|
---|
732 | ],'get' => [
|
---|
733 | 'path' => 'v1/{+name}',
|
---|
734 | 'httpMethod' => 'GET',
|
---|
735 | 'parameters' => [
|
---|
736 | 'name' => [
|
---|
737 | 'location' => 'path',
|
---|
738 | 'type' => 'string',
|
---|
739 | 'required' => true,
|
---|
740 | ],
|
---|
741 | ],
|
---|
742 | ],'list' => [
|
---|
743 | 'path' => 'v1/{+parent}/packages',
|
---|
744 | 'httpMethod' => 'GET',
|
---|
745 | 'parameters' => [
|
---|
746 | 'parent' => [
|
---|
747 | 'location' => 'path',
|
---|
748 | 'type' => 'string',
|
---|
749 | 'required' => true,
|
---|
750 | ],
|
---|
751 | 'filter' => [
|
---|
752 | 'location' => 'query',
|
---|
753 | 'type' => 'string',
|
---|
754 | ],
|
---|
755 | 'orderBy' => [
|
---|
756 | 'location' => 'query',
|
---|
757 | 'type' => 'string',
|
---|
758 | ],
|
---|
759 | 'pageSize' => [
|
---|
760 | 'location' => 'query',
|
---|
761 | 'type' => 'integer',
|
---|
762 | ],
|
---|
763 | 'pageToken' => [
|
---|
764 | 'location' => 'query',
|
---|
765 | 'type' => 'string',
|
---|
766 | ],
|
---|
767 | ],
|
---|
768 | ],'patch' => [
|
---|
769 | 'path' => 'v1/{+name}',
|
---|
770 | 'httpMethod' => 'PATCH',
|
---|
771 | 'parameters' => [
|
---|
772 | 'name' => [
|
---|
773 | 'location' => 'path',
|
---|
774 | 'type' => 'string',
|
---|
775 | 'required' => true,
|
---|
776 | ],
|
---|
777 | 'updateMask' => [
|
---|
778 | 'location' => 'query',
|
---|
779 | 'type' => 'string',
|
---|
780 | ],
|
---|
781 | ],
|
---|
782 | ],
|
---|
783 | ]
|
---|
784 | ]
|
---|
785 | );
|
---|
786 | $this->projects_locations_repositories_packages_tags = new ArtifactRegistry\Resource\ProjectsLocationsRepositoriesPackagesTags(
|
---|
787 | $this,
|
---|
788 | $this->serviceName,
|
---|
789 | 'tags',
|
---|
790 | [
|
---|
791 | 'methods' => [
|
---|
792 | 'create' => [
|
---|
793 | 'path' => 'v1/{+parent}/tags',
|
---|
794 | 'httpMethod' => 'POST',
|
---|
795 | 'parameters' => [
|
---|
796 | 'parent' => [
|
---|
797 | 'location' => 'path',
|
---|
798 | 'type' => 'string',
|
---|
799 | 'required' => true,
|
---|
800 | ],
|
---|
801 | 'tagId' => [
|
---|
802 | 'location' => 'query',
|
---|
803 | 'type' => 'string',
|
---|
804 | ],
|
---|
805 | ],
|
---|
806 | ],'delete' => [
|
---|
807 | 'path' => 'v1/{+name}',
|
---|
808 | 'httpMethod' => 'DELETE',
|
---|
809 | 'parameters' => [
|
---|
810 | 'name' => [
|
---|
811 | 'location' => 'path',
|
---|
812 | 'type' => 'string',
|
---|
813 | 'required' => true,
|
---|
814 | ],
|
---|
815 | ],
|
---|
816 | ],'get' => [
|
---|
817 | 'path' => 'v1/{+name}',
|
---|
818 | 'httpMethod' => 'GET',
|
---|
819 | 'parameters' => [
|
---|
820 | 'name' => [
|
---|
821 | 'location' => 'path',
|
---|
822 | 'type' => 'string',
|
---|
823 | 'required' => true,
|
---|
824 | ],
|
---|
825 | ],
|
---|
826 | ],'list' => [
|
---|
827 | 'path' => 'v1/{+parent}/tags',
|
---|
828 | 'httpMethod' => 'GET',
|
---|
829 | 'parameters' => [
|
---|
830 | 'parent' => [
|
---|
831 | 'location' => 'path',
|
---|
832 | 'type' => 'string',
|
---|
833 | 'required' => true,
|
---|
834 | ],
|
---|
835 | 'filter' => [
|
---|
836 | 'location' => 'query',
|
---|
837 | 'type' => 'string',
|
---|
838 | ],
|
---|
839 | 'pageSize' => [
|
---|
840 | 'location' => 'query',
|
---|
841 | 'type' => 'integer',
|
---|
842 | ],
|
---|
843 | 'pageToken' => [
|
---|
844 | 'location' => 'query',
|
---|
845 | 'type' => 'string',
|
---|
846 | ],
|
---|
847 | ],
|
---|
848 | ],'patch' => [
|
---|
849 | 'path' => 'v1/{+name}',
|
---|
850 | 'httpMethod' => 'PATCH',
|
---|
851 | 'parameters' => [
|
---|
852 | 'name' => [
|
---|
853 | 'location' => 'path',
|
---|
854 | 'type' => 'string',
|
---|
855 | 'required' => true,
|
---|
856 | ],
|
---|
857 | 'updateMask' => [
|
---|
858 | 'location' => 'query',
|
---|
859 | 'type' => 'string',
|
---|
860 | ],
|
---|
861 | ],
|
---|
862 | ],
|
---|
863 | ]
|
---|
864 | ]
|
---|
865 | );
|
---|
866 | $this->projects_locations_repositories_packages_versions = new ArtifactRegistry\Resource\ProjectsLocationsRepositoriesPackagesVersions(
|
---|
867 | $this,
|
---|
868 | $this->serviceName,
|
---|
869 | 'versions',
|
---|
870 | [
|
---|
871 | 'methods' => [
|
---|
872 | 'batchDelete' => [
|
---|
873 | 'path' => 'v1/{+parent}/versions:batchDelete',
|
---|
874 | 'httpMethod' => 'POST',
|
---|
875 | 'parameters' => [
|
---|
876 | 'parent' => [
|
---|
877 | 'location' => 'path',
|
---|
878 | 'type' => 'string',
|
---|
879 | 'required' => true,
|
---|
880 | ],
|
---|
881 | ],
|
---|
882 | ],'delete' => [
|
---|
883 | 'path' => 'v1/{+name}',
|
---|
884 | 'httpMethod' => 'DELETE',
|
---|
885 | 'parameters' => [
|
---|
886 | 'name' => [
|
---|
887 | 'location' => 'path',
|
---|
888 | 'type' => 'string',
|
---|
889 | 'required' => true,
|
---|
890 | ],
|
---|
891 | 'force' => [
|
---|
892 | 'location' => 'query',
|
---|
893 | 'type' => 'boolean',
|
---|
894 | ],
|
---|
895 | ],
|
---|
896 | ],'get' => [
|
---|
897 | 'path' => 'v1/{+name}',
|
---|
898 | 'httpMethod' => 'GET',
|
---|
899 | 'parameters' => [
|
---|
900 | 'name' => [
|
---|
901 | 'location' => 'path',
|
---|
902 | 'type' => 'string',
|
---|
903 | 'required' => true,
|
---|
904 | ],
|
---|
905 | 'view' => [
|
---|
906 | 'location' => 'query',
|
---|
907 | 'type' => 'string',
|
---|
908 | ],
|
---|
909 | ],
|
---|
910 | ],'list' => [
|
---|
911 | 'path' => 'v1/{+parent}/versions',
|
---|
912 | 'httpMethod' => 'GET',
|
---|
913 | 'parameters' => [
|
---|
914 | 'parent' => [
|
---|
915 | 'location' => 'path',
|
---|
916 | 'type' => 'string',
|
---|
917 | 'required' => true,
|
---|
918 | ],
|
---|
919 | 'filter' => [
|
---|
920 | 'location' => 'query',
|
---|
921 | 'type' => 'string',
|
---|
922 | ],
|
---|
923 | 'orderBy' => [
|
---|
924 | 'location' => 'query',
|
---|
925 | 'type' => 'string',
|
---|
926 | ],
|
---|
927 | 'pageSize' => [
|
---|
928 | 'location' => 'query',
|
---|
929 | 'type' => 'integer',
|
---|
930 | ],
|
---|
931 | 'pageToken' => [
|
---|
932 | 'location' => 'query',
|
---|
933 | 'type' => 'string',
|
---|
934 | ],
|
---|
935 | 'view' => [
|
---|
936 | 'location' => 'query',
|
---|
937 | 'type' => 'string',
|
---|
938 | ],
|
---|
939 | ],
|
---|
940 | ],'patch' => [
|
---|
941 | 'path' => 'v1/{+name}',
|
---|
942 | 'httpMethod' => 'PATCH',
|
---|
943 | 'parameters' => [
|
---|
944 | 'name' => [
|
---|
945 | 'location' => 'path',
|
---|
946 | 'type' => 'string',
|
---|
947 | 'required' => true,
|
---|
948 | ],
|
---|
949 | 'updateMask' => [
|
---|
950 | 'location' => 'query',
|
---|
951 | 'type' => 'string',
|
---|
952 | ],
|
---|
953 | ],
|
---|
954 | ],
|
---|
955 | ]
|
---|
956 | ]
|
---|
957 | );
|
---|
958 | $this->projects_locations_repositories_pythonPackages = new ArtifactRegistry\Resource\ProjectsLocationsRepositoriesPythonPackages(
|
---|
959 | $this,
|
---|
960 | $this->serviceName,
|
---|
961 | 'pythonPackages',
|
---|
962 | [
|
---|
963 | 'methods' => [
|
---|
964 | 'get' => [
|
---|
965 | 'path' => 'v1/{+name}',
|
---|
966 | 'httpMethod' => 'GET',
|
---|
967 | 'parameters' => [
|
---|
968 | 'name' => [
|
---|
969 | 'location' => 'path',
|
---|
970 | 'type' => 'string',
|
---|
971 | 'required' => true,
|
---|
972 | ],
|
---|
973 | ],
|
---|
974 | ],'list' => [
|
---|
975 | 'path' => 'v1/{+parent}/pythonPackages',
|
---|
976 | 'httpMethod' => 'GET',
|
---|
977 | 'parameters' => [
|
---|
978 | 'parent' => [
|
---|
979 | 'location' => 'path',
|
---|
980 | 'type' => 'string',
|
---|
981 | 'required' => true,
|
---|
982 | ],
|
---|
983 | 'pageSize' => [
|
---|
984 | 'location' => 'query',
|
---|
985 | 'type' => 'integer',
|
---|
986 | ],
|
---|
987 | 'pageToken' => [
|
---|
988 | 'location' => 'query',
|
---|
989 | 'type' => 'string',
|
---|
990 | ],
|
---|
991 | ],
|
---|
992 | ],
|
---|
993 | ]
|
---|
994 | ]
|
---|
995 | );
|
---|
996 | $this->projects_locations_repositories_rules = new ArtifactRegistry\Resource\ProjectsLocationsRepositoriesRules(
|
---|
997 | $this,
|
---|
998 | $this->serviceName,
|
---|
999 | 'rules',
|
---|
1000 | [
|
---|
1001 | 'methods' => [
|
---|
1002 | 'create' => [
|
---|
1003 | 'path' => 'v1/{+parent}/rules',
|
---|
1004 | 'httpMethod' => 'POST',
|
---|
1005 | 'parameters' => [
|
---|
1006 | 'parent' => [
|
---|
1007 | 'location' => 'path',
|
---|
1008 | 'type' => 'string',
|
---|
1009 | 'required' => true,
|
---|
1010 | ],
|
---|
1011 | 'ruleId' => [
|
---|
1012 | 'location' => 'query',
|
---|
1013 | 'type' => 'string',
|
---|
1014 | ],
|
---|
1015 | ],
|
---|
1016 | ],'delete' => [
|
---|
1017 | 'path' => 'v1/{+name}',
|
---|
1018 | 'httpMethod' => 'DELETE',
|
---|
1019 | 'parameters' => [
|
---|
1020 | 'name' => [
|
---|
1021 | 'location' => 'path',
|
---|
1022 | 'type' => 'string',
|
---|
1023 | 'required' => true,
|
---|
1024 | ],
|
---|
1025 | ],
|
---|
1026 | ],'get' => [
|
---|
1027 | 'path' => 'v1/{+name}',
|
---|
1028 | 'httpMethod' => 'GET',
|
---|
1029 | 'parameters' => [
|
---|
1030 | 'name' => [
|
---|
1031 | 'location' => 'path',
|
---|
1032 | 'type' => 'string',
|
---|
1033 | 'required' => true,
|
---|
1034 | ],
|
---|
1035 | ],
|
---|
1036 | ],'list' => [
|
---|
1037 | 'path' => 'v1/{+parent}/rules',
|
---|
1038 | 'httpMethod' => 'GET',
|
---|
1039 | 'parameters' => [
|
---|
1040 | 'parent' => [
|
---|
1041 | 'location' => 'path',
|
---|
1042 | 'type' => 'string',
|
---|
1043 | 'required' => true,
|
---|
1044 | ],
|
---|
1045 | 'pageSize' => [
|
---|
1046 | 'location' => 'query',
|
---|
1047 | 'type' => 'integer',
|
---|
1048 | ],
|
---|
1049 | 'pageToken' => [
|
---|
1050 | 'location' => 'query',
|
---|
1051 | 'type' => 'string',
|
---|
1052 | ],
|
---|
1053 | ],
|
---|
1054 | ],'patch' => [
|
---|
1055 | 'path' => 'v1/{+name}',
|
---|
1056 | 'httpMethod' => 'PATCH',
|
---|
1057 | 'parameters' => [
|
---|
1058 | 'name' => [
|
---|
1059 | 'location' => 'path',
|
---|
1060 | 'type' => 'string',
|
---|
1061 | 'required' => true,
|
---|
1062 | ],
|
---|
1063 | 'updateMask' => [
|
---|
1064 | 'location' => 'query',
|
---|
1065 | 'type' => 'string',
|
---|
1066 | ],
|
---|
1067 | ],
|
---|
1068 | ],
|
---|
1069 | ]
|
---|
1070 | ]
|
---|
1071 | );
|
---|
1072 | $this->projects_locations_repositories_yumArtifacts = new ArtifactRegistry\Resource\ProjectsLocationsRepositoriesYumArtifacts(
|
---|
1073 | $this,
|
---|
1074 | $this->serviceName,
|
---|
1075 | 'yumArtifacts',
|
---|
1076 | [
|
---|
1077 | 'methods' => [
|
---|
1078 | 'import' => [
|
---|
1079 | 'path' => 'v1/{+parent}/yumArtifacts:import',
|
---|
1080 | 'httpMethod' => 'POST',
|
---|
1081 | 'parameters' => [
|
---|
1082 | 'parent' => [
|
---|
1083 | 'location' => 'path',
|
---|
1084 | 'type' => 'string',
|
---|
1085 | 'required' => true,
|
---|
1086 | ],
|
---|
1087 | ],
|
---|
1088 | ],'upload' => [
|
---|
1089 | 'path' => 'v1/{+parent}/yumArtifacts:create',
|
---|
1090 | 'httpMethod' => 'POST',
|
---|
1091 | 'parameters' => [
|
---|
1092 | 'parent' => [
|
---|
1093 | 'location' => 'path',
|
---|
1094 | 'type' => 'string',
|
---|
1095 | 'required' => true,
|
---|
1096 | ],
|
---|
1097 | ],
|
---|
1098 | ],
|
---|
1099 | ]
|
---|
1100 | ]
|
---|
1101 | );
|
---|
1102 | }
|
---|
1103 | }
|
---|
1104 |
|
---|
1105 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
1106 | class_alias(ArtifactRegistry::class, 'Google_Service_ArtifactRegistry');
|
---|