source: vendor/google/apiclient-services/src/CloudControlsPartnerService.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: 10.6 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 CloudControlsPartnerService (v1).
24 *
25 * <p>
26 * Provides insights about your customers and their Assured Workloads based on
27 * your Sovereign Controls by Partners offering.</p>
28 *
29 * <p>
30 * For more information about this service, see the API
31 * <a href="https://cloud.google.com/sovereign-controls-by-partners/docs/sovereign-partners/reference/rest" target="_blank">Documentation</a>
32 * </p>
33 *
34 * @author Google, Inc.
35 */
36class CloudControlsPartnerService 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 $organizations_locations;
43 public $organizations_locations_customers;
44 public $organizations_locations_customers_workloads;
45 public $organizations_locations_customers_workloads_accessApprovalRequests;
46 public $organizations_locations_customers_workloads_violations;
47 public $rootUrlTemplate;
48
49 /**
50 * Constructs the internal representation of the CloudControlsPartnerService
51 * 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://cloudcontrolspartner.googleapis.com/';
61 $this->rootUrlTemplate = $rootUrl ?: 'https://cloudcontrolspartner.UNIVERSE_DOMAIN/';
62 $this->servicePath = '';
63 $this->batchPath = 'batch';
64 $this->version = 'v1';
65 $this->serviceName = 'cloudcontrolspartner';
66
67 $this->organizations_locations = new CloudControlsPartnerService\Resource\OrganizationsLocations(
68 $this,
69 $this->serviceName,
70 'locations',
71 [
72 'methods' => [
73 'getPartner' => [
74 'path' => 'v1/{+name}',
75 'httpMethod' => 'GET',
76 'parameters' => [
77 'name' => [
78 'location' => 'path',
79 'type' => 'string',
80 'required' => true,
81 ],
82 ],
83 ],
84 ]
85 ]
86 );
87 $this->organizations_locations_customers = new CloudControlsPartnerService\Resource\OrganizationsLocationsCustomers(
88 $this,
89 $this->serviceName,
90 'customers',
91 [
92 'methods' => [
93 'create' => [
94 'path' => 'v1/{+parent}/customers',
95 'httpMethod' => 'POST',
96 'parameters' => [
97 'parent' => [
98 'location' => 'path',
99 'type' => 'string',
100 'required' => true,
101 ],
102 'customerId' => [
103 'location' => 'query',
104 'type' => 'string',
105 ],
106 ],
107 ],'delete' => [
108 'path' => 'v1/{+name}',
109 'httpMethod' => 'DELETE',
110 'parameters' => [
111 'name' => [
112 'location' => 'path',
113 'type' => 'string',
114 'required' => true,
115 ],
116 ],
117 ],'get' => [
118 'path' => 'v1/{+name}',
119 'httpMethod' => 'GET',
120 'parameters' => [
121 'name' => [
122 'location' => 'path',
123 'type' => 'string',
124 'required' => true,
125 ],
126 ],
127 ],'list' => [
128 'path' => 'v1/{+parent}/customers',
129 'httpMethod' => 'GET',
130 'parameters' => [
131 'parent' => [
132 'location' => 'path',
133 'type' => 'string',
134 'required' => true,
135 ],
136 'filter' => [
137 'location' => 'query',
138 'type' => 'string',
139 ],
140 'orderBy' => [
141 'location' => 'query',
142 'type' => 'string',
143 ],
144 'pageSize' => [
145 'location' => 'query',
146 'type' => 'integer',
147 ],
148 'pageToken' => [
149 'location' => 'query',
150 'type' => 'string',
151 ],
152 ],
153 ],'patch' => [
154 'path' => 'v1/{+name}',
155 'httpMethod' => 'PATCH',
156 'parameters' => [
157 'name' => [
158 'location' => 'path',
159 'type' => 'string',
160 'required' => true,
161 ],
162 'updateMask' => [
163 'location' => 'query',
164 'type' => 'string',
165 ],
166 ],
167 ],
168 ]
169 ]
170 );
171 $this->organizations_locations_customers_workloads = new CloudControlsPartnerService\Resource\OrganizationsLocationsCustomersWorkloads(
172 $this,
173 $this->serviceName,
174 'workloads',
175 [
176 'methods' => [
177 'get' => [
178 'path' => 'v1/{+name}',
179 'httpMethod' => 'GET',
180 'parameters' => [
181 'name' => [
182 'location' => 'path',
183 'type' => 'string',
184 'required' => true,
185 ],
186 ],
187 ],'getEkmConnections' => [
188 'path' => 'v1/{+name}',
189 'httpMethod' => 'GET',
190 'parameters' => [
191 'name' => [
192 'location' => 'path',
193 'type' => 'string',
194 'required' => true,
195 ],
196 ],
197 ],'getPartnerPermissions' => [
198 'path' => 'v1/{+name}',
199 'httpMethod' => 'GET',
200 'parameters' => [
201 'name' => [
202 'location' => 'path',
203 'type' => 'string',
204 'required' => true,
205 ],
206 ],
207 ],'list' => [
208 'path' => 'v1/{+parent}/workloads',
209 'httpMethod' => 'GET',
210 'parameters' => [
211 'parent' => [
212 'location' => 'path',
213 'type' => 'string',
214 'required' => true,
215 ],
216 'filter' => [
217 'location' => 'query',
218 'type' => 'string',
219 ],
220 'orderBy' => [
221 'location' => 'query',
222 'type' => 'string',
223 ],
224 'pageSize' => [
225 'location' => 'query',
226 'type' => 'integer',
227 ],
228 'pageToken' => [
229 'location' => 'query',
230 'type' => 'string',
231 ],
232 ],
233 ],
234 ]
235 ]
236 );
237 $this->organizations_locations_customers_workloads_accessApprovalRequests = new CloudControlsPartnerService\Resource\OrganizationsLocationsCustomersWorkloadsAccessApprovalRequests(
238 $this,
239 $this->serviceName,
240 'accessApprovalRequests',
241 [
242 'methods' => [
243 'list' => [
244 'path' => 'v1/{+parent}/accessApprovalRequests',
245 'httpMethod' => 'GET',
246 'parameters' => [
247 'parent' => [
248 'location' => 'path',
249 'type' => 'string',
250 'required' => true,
251 ],
252 'filter' => [
253 'location' => 'query',
254 'type' => 'string',
255 ],
256 'orderBy' => [
257 'location' => 'query',
258 'type' => 'string',
259 ],
260 'pageSize' => [
261 'location' => 'query',
262 'type' => 'integer',
263 ],
264 'pageToken' => [
265 'location' => 'query',
266 'type' => 'string',
267 ],
268 ],
269 ],
270 ]
271 ]
272 );
273 $this->organizations_locations_customers_workloads_violations = new CloudControlsPartnerService\Resource\OrganizationsLocationsCustomersWorkloadsViolations(
274 $this,
275 $this->serviceName,
276 'violations',
277 [
278 'methods' => [
279 'get' => [
280 'path' => 'v1/{+name}',
281 'httpMethod' => 'GET',
282 'parameters' => [
283 'name' => [
284 'location' => 'path',
285 'type' => 'string',
286 'required' => true,
287 ],
288 ],
289 ],'list' => [
290 'path' => 'v1/{+parent}/violations',
291 'httpMethod' => 'GET',
292 'parameters' => [
293 'parent' => [
294 'location' => 'path',
295 'type' => 'string',
296 'required' => true,
297 ],
298 'filter' => [
299 'location' => 'query',
300 'type' => 'string',
301 ],
302 'interval.endTime' => [
303 'location' => 'query',
304 'type' => 'string',
305 ],
306 'interval.startTime' => [
307 'location' => 'query',
308 'type' => 'string',
309 ],
310 'orderBy' => [
311 'location' => 'query',
312 'type' => 'string',
313 ],
314 'pageSize' => [
315 'location' => 'query',
316 'type' => 'integer',
317 ],
318 'pageToken' => [
319 'location' => 'query',
320 'type' => 'string',
321 ],
322 ],
323 ],
324 ]
325 ]
326 );
327 }
328}
329
330// Adding a class alias for backwards compatibility with the previous class name.
331class_alias(CloudControlsPartnerService::class, 'Google_Service_CloudControlsPartnerService');
Note: See TracBrowser for help on using the repository browser.