source: vendor/google/apiclient-services/src/BinaryAuthorization.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: 11.8 KB
Line 
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 BinaryAuthorization (v1).
24 *
25 * <p>
26 * The management interface for Binary Authorization, a service that provides
27 * policy-based deployment validation and control for images deployed to Google
28 * Kubernetes Engine (GKE), Anthos Service Mesh, Anthos Clusters, and Cloud Run.</p>
29 *
30 * <p>
31 * For more information about this service, see the API
32 * <a href="https://cloud.google.com/binary-authorization/" target="_blank">Documentation</a>
33 * </p>
34 *
35 * @author Google, Inc.
36 */
37class BinaryAuthorization extends \Google\Service
38{
39 /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
40 const CLOUD_PLATFORM =
41 "https://www.googleapis.com/auth/cloud-platform";
42
43 public $projects;
44 public $projects_attestors;
45 public $projects_platforms_gke_policies;
46 public $projects_platforms_policies;
47 public $projects_policy;
48 public $systempolicy;
49 public $rootUrlTemplate;
50
51 /**
52 * Constructs the internal representation of the BinaryAuthorization service.
53 *
54 * @param Client|array $clientOrConfig The client used to deliver requests, or a
55 * config array to pass to a new Client instance.
56 * @param string $rootUrl The root URL used for requests to the service.
57 */
58 public function __construct($clientOrConfig = [], $rootUrl = null)
59 {
60 parent::__construct($clientOrConfig);
61 $this->rootUrl = $rootUrl ?: 'https://binaryauthorization.googleapis.com/';
62 $this->rootUrlTemplate = $rootUrl ?: 'https://binaryauthorization.UNIVERSE_DOMAIN/';
63 $this->servicePath = '';
64 $this->batchPath = 'batch';
65 $this->version = 'v1';
66 $this->serviceName = 'binaryauthorization';
67
68 $this->projects = new BinaryAuthorization\Resource\Projects(
69 $this,
70 $this->serviceName,
71 'projects',
72 [
73 'methods' => [
74 'getPolicy' => [
75 'path' => 'v1/{+name}',
76 'httpMethod' => 'GET',
77 'parameters' => [
78 'name' => [
79 'location' => 'path',
80 'type' => 'string',
81 'required' => true,
82 ],
83 ],
84 ],'updatePolicy' => [
85 'path' => 'v1/{+name}',
86 'httpMethod' => 'PUT',
87 'parameters' => [
88 'name' => [
89 'location' => 'path',
90 'type' => 'string',
91 'required' => true,
92 ],
93 ],
94 ],
95 ]
96 ]
97 );
98 $this->projects_attestors = new BinaryAuthorization\Resource\ProjectsAttestors(
99 $this,
100 $this->serviceName,
101 'attestors',
102 [
103 'methods' => [
104 'create' => [
105 'path' => 'v1/{+parent}/attestors',
106 'httpMethod' => 'POST',
107 'parameters' => [
108 'parent' => [
109 'location' => 'path',
110 'type' => 'string',
111 'required' => true,
112 ],
113 'attestorId' => [
114 'location' => 'query',
115 'type' => 'string',
116 ],
117 ],
118 ],'delete' => [
119 'path' => 'v1/{+name}',
120 'httpMethod' => 'DELETE',
121 'parameters' => [
122 'name' => [
123 'location' => 'path',
124 'type' => 'string',
125 'required' => true,
126 ],
127 ],
128 ],'get' => [
129 'path' => 'v1/{+name}',
130 'httpMethod' => 'GET',
131 'parameters' => [
132 'name' => [
133 'location' => 'path',
134 'type' => 'string',
135 'required' => true,
136 ],
137 ],
138 ],'getIamPolicy' => [
139 'path' => 'v1/{+resource}:getIamPolicy',
140 'httpMethod' => 'GET',
141 'parameters' => [
142 'resource' => [
143 'location' => 'path',
144 'type' => 'string',
145 'required' => true,
146 ],
147 'options.requestedPolicyVersion' => [
148 'location' => 'query',
149 'type' => 'integer',
150 ],
151 ],
152 ],'list' => [
153 'path' => 'v1/{+parent}/attestors',
154 'httpMethod' => 'GET',
155 'parameters' => [
156 'parent' => [
157 'location' => 'path',
158 'type' => 'string',
159 'required' => true,
160 ],
161 'pageSize' => [
162 'location' => 'query',
163 'type' => 'integer',
164 ],
165 'pageToken' => [
166 'location' => 'query',
167 'type' => 'string',
168 ],
169 ],
170 ],'setIamPolicy' => [
171 'path' => 'v1/{+resource}:setIamPolicy',
172 'httpMethod' => 'POST',
173 'parameters' => [
174 'resource' => [
175 'location' => 'path',
176 'type' => 'string',
177 'required' => true,
178 ],
179 ],
180 ],'testIamPermissions' => [
181 'path' => 'v1/{+resource}:testIamPermissions',
182 'httpMethod' => 'POST',
183 'parameters' => [
184 'resource' => [
185 'location' => 'path',
186 'type' => 'string',
187 'required' => true,
188 ],
189 ],
190 ],'update' => [
191 'path' => 'v1/{+name}',
192 'httpMethod' => 'PUT',
193 'parameters' => [
194 'name' => [
195 'location' => 'path',
196 'type' => 'string',
197 'required' => true,
198 ],
199 ],
200 ],'validateAttestationOccurrence' => [
201 'path' => 'v1/{+attestor}:validateAttestationOccurrence',
202 'httpMethod' => 'POST',
203 'parameters' => [
204 'attestor' => [
205 'location' => 'path',
206 'type' => 'string',
207 'required' => true,
208 ],
209 ],
210 ],
211 ]
212 ]
213 );
214 $this->projects_platforms_gke_policies = new BinaryAuthorization\Resource\ProjectsPlatformsGkePolicies(
215 $this,
216 $this->serviceName,
217 'policies',
218 [
219 'methods' => [
220 'evaluate' => [
221 'path' => 'v1/{+name}:evaluate',
222 'httpMethod' => 'POST',
223 'parameters' => [
224 'name' => [
225 'location' => 'path',
226 'type' => 'string',
227 'required' => true,
228 ],
229 ],
230 ],
231 ]
232 ]
233 );
234 $this->projects_platforms_policies = new BinaryAuthorization\Resource\ProjectsPlatformsPolicies(
235 $this,
236 $this->serviceName,
237 'policies',
238 [
239 'methods' => [
240 'create' => [
241 'path' => 'v1/{+parent}/policies',
242 'httpMethod' => 'POST',
243 'parameters' => [
244 'parent' => [
245 'location' => 'path',
246 'type' => 'string',
247 'required' => true,
248 ],
249 'policyId' => [
250 'location' => 'query',
251 'type' => 'string',
252 ],
253 ],
254 ],'delete' => [
255 'path' => 'v1/{+name}',
256 'httpMethod' => 'DELETE',
257 'parameters' => [
258 'name' => [
259 'location' => 'path',
260 'type' => 'string',
261 'required' => true,
262 ],
263 'etag' => [
264 'location' => 'query',
265 'type' => 'string',
266 ],
267 ],
268 ],'get' => [
269 'path' => 'v1/{+name}',
270 'httpMethod' => 'GET',
271 'parameters' => [
272 'name' => [
273 'location' => 'path',
274 'type' => 'string',
275 'required' => true,
276 ],
277 ],
278 ],'list' => [
279 'path' => 'v1/{+parent}/policies',
280 'httpMethod' => 'GET',
281 'parameters' => [
282 'parent' => [
283 'location' => 'path',
284 'type' => 'string',
285 'required' => true,
286 ],
287 'pageSize' => [
288 'location' => 'query',
289 'type' => 'integer',
290 ],
291 'pageToken' => [
292 'location' => 'query',
293 'type' => 'string',
294 ],
295 ],
296 ],'replacePlatformPolicy' => [
297 'path' => 'v1/{+name}',
298 'httpMethod' => 'PUT',
299 'parameters' => [
300 'name' => [
301 'location' => 'path',
302 'type' => 'string',
303 'required' => true,
304 ],
305 ],
306 ],
307 ]
308 ]
309 );
310 $this->projects_policy = new BinaryAuthorization\Resource\ProjectsPolicy(
311 $this,
312 $this->serviceName,
313 'policy',
314 [
315 'methods' => [
316 'getIamPolicy' => [
317 'path' => 'v1/{+resource}:getIamPolicy',
318 'httpMethod' => 'GET',
319 'parameters' => [
320 'resource' => [
321 'location' => 'path',
322 'type' => 'string',
323 'required' => true,
324 ],
325 'options.requestedPolicyVersion' => [
326 'location' => 'query',
327 'type' => 'integer',
328 ],
329 ],
330 ],'setIamPolicy' => [
331 'path' => 'v1/{+resource}:setIamPolicy',
332 'httpMethod' => 'POST',
333 'parameters' => [
334 'resource' => [
335 'location' => 'path',
336 'type' => 'string',
337 'required' => true,
338 ],
339 ],
340 ],'testIamPermissions' => [
341 'path' => 'v1/{+resource}:testIamPermissions',
342 'httpMethod' => 'POST',
343 'parameters' => [
344 'resource' => [
345 'location' => 'path',
346 'type' => 'string',
347 'required' => true,
348 ],
349 ],
350 ],
351 ]
352 ]
353 );
354 $this->systempolicy = new BinaryAuthorization\Resource\Systempolicy(
355 $this,
356 $this->serviceName,
357 'systempolicy',
358 [
359 'methods' => [
360 'getPolicy' => [
361 'path' => 'v1/{+name}',
362 'httpMethod' => 'GET',
363 'parameters' => [
364 'name' => [
365 'location' => 'path',
366 'type' => 'string',
367 'required' => true,
368 ],
369 ],
370 ],
371 ]
372 ]
373 );
374 }
375}
376
377// Adding a class alias for backwards compatibility with the previous class name.
378class_alias(BinaryAuthorization::class, 'Google_Service_BinaryAuthorization');
Note: See TracBrowser for help on using the repository browser.