source: vendor/google/apiclient-services/src/Assuredworkloads.php@ f9c482b

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

Upload new project files

  • Property mode set to 100644
File size: 9.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 Assuredworkloads (v1).
24 *
25 * <p>
26</p>
27 *
28 * <p>
29 * For more information about this service, see the API
30 * <a href="https://cloud.google.com/learnmoreurl" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class Assuredworkloads extends \Google\Service
36{
37 /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
38 const CLOUD_PLATFORM =
39 "https://www.googleapis.com/auth/cloud-platform";
40
41 public $organizations_locations_operations;
42 public $organizations_locations_workloads;
43 public $organizations_locations_workloads_violations;
44 public $rootUrlTemplate;
45
46 /**
47 * Constructs the internal representation of the Assuredworkloads 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://assuredworkloads.googleapis.com/';
57 $this->rootUrlTemplate = $rootUrl ?: 'https://assuredworkloads.UNIVERSE_DOMAIN/';
58 $this->servicePath = '';
59 $this->batchPath = 'batch';
60 $this->version = 'v1';
61 $this->serviceName = 'assuredworkloads';
62
63 $this->organizations_locations_operations = new Assuredworkloads\Resource\OrganizationsLocationsOperations(
64 $this,
65 $this->serviceName,
66 'operations',
67 [
68 'methods' => [
69 'get' => [
70 'path' => 'v1/{+name}',
71 'httpMethod' => 'GET',
72 'parameters' => [
73 'name' => [
74 'location' => 'path',
75 'type' => 'string',
76 'required' => true,
77 ],
78 ],
79 ],'list' => [
80 'path' => 'v1/{+name}/operations',
81 'httpMethod' => 'GET',
82 'parameters' => [
83 'name' => [
84 'location' => 'path',
85 'type' => 'string',
86 'required' => true,
87 ],
88 'filter' => [
89 'location' => 'query',
90 'type' => 'string',
91 ],
92 'pageSize' => [
93 'location' => 'query',
94 'type' => 'integer',
95 ],
96 'pageToken' => [
97 'location' => 'query',
98 'type' => 'string',
99 ],
100 ],
101 ],
102 ]
103 ]
104 );
105 $this->organizations_locations_workloads = new Assuredworkloads\Resource\OrganizationsLocationsWorkloads(
106 $this,
107 $this->serviceName,
108 'workloads',
109 [
110 'methods' => [
111 'analyzeWorkloadMove' => [
112 'path' => 'v1/{+target}:analyzeWorkloadMove',
113 'httpMethod' => 'GET',
114 'parameters' => [
115 'target' => [
116 'location' => 'path',
117 'type' => 'string',
118 'required' => true,
119 ],
120 'assetTypes' => [
121 'location' => 'query',
122 'type' => 'string',
123 'repeated' => true,
124 ],
125 'pageSize' => [
126 'location' => 'query',
127 'type' => 'integer',
128 ],
129 'pageToken' => [
130 'location' => 'query',
131 'type' => 'string',
132 ],
133 'project' => [
134 'location' => 'query',
135 'type' => 'string',
136 ],
137 ],
138 ],'create' => [
139 'path' => 'v1/{+parent}/workloads',
140 'httpMethod' => 'POST',
141 'parameters' => [
142 'parent' => [
143 'location' => 'path',
144 'type' => 'string',
145 'required' => true,
146 ],
147 'externalId' => [
148 'location' => 'query',
149 'type' => 'string',
150 ],
151 ],
152 ],'delete' => [
153 'path' => 'v1/{+name}',
154 'httpMethod' => 'DELETE',
155 'parameters' => [
156 'name' => [
157 'location' => 'path',
158 'type' => 'string',
159 'required' => true,
160 ],
161 'etag' => [
162 'location' => 'query',
163 'type' => 'string',
164 ],
165 ],
166 ],'enableResourceMonitoring' => [
167 'path' => 'v1/{+name}:enableResourceMonitoring',
168 'httpMethod' => 'POST',
169 'parameters' => [
170 'name' => [
171 'location' => 'path',
172 'type' => 'string',
173 'required' => true,
174 ],
175 ],
176 ],'get' => [
177 'path' => 'v1/{+name}',
178 'httpMethod' => 'GET',
179 'parameters' => [
180 'name' => [
181 'location' => 'path',
182 'type' => 'string',
183 'required' => true,
184 ],
185 ],
186 ],'list' => [
187 'path' => 'v1/{+parent}/workloads',
188 'httpMethod' => 'GET',
189 'parameters' => [
190 'parent' => [
191 'location' => 'path',
192 'type' => 'string',
193 'required' => true,
194 ],
195 'filter' => [
196 'location' => 'query',
197 'type' => 'string',
198 ],
199 'pageSize' => [
200 'location' => 'query',
201 'type' => 'integer',
202 ],
203 'pageToken' => [
204 'location' => 'query',
205 'type' => 'string',
206 ],
207 ],
208 ],'mutatePartnerPermissions' => [
209 'path' => 'v1/{+name}:mutatePartnerPermissions',
210 'httpMethod' => 'PATCH',
211 'parameters' => [
212 'name' => [
213 'location' => 'path',
214 'type' => 'string',
215 'required' => true,
216 ],
217 ],
218 ],'patch' => [
219 'path' => 'v1/{+name}',
220 'httpMethod' => 'PATCH',
221 'parameters' => [
222 'name' => [
223 'location' => 'path',
224 'type' => 'string',
225 'required' => true,
226 ],
227 'updateMask' => [
228 'location' => 'query',
229 'type' => 'string',
230 ],
231 ],
232 ],'restrictAllowedResources' => [
233 'path' => 'v1/{+name}:restrictAllowedResources',
234 'httpMethod' => 'POST',
235 'parameters' => [
236 'name' => [
237 'location' => 'path',
238 'type' => 'string',
239 'required' => true,
240 ],
241 ],
242 ],
243 ]
244 ]
245 );
246 $this->organizations_locations_workloads_violations = new Assuredworkloads\Resource\OrganizationsLocationsWorkloadsViolations(
247 $this,
248 $this->serviceName,
249 'violations',
250 [
251 'methods' => [
252 'acknowledge' => [
253 'path' => 'v1/{+name}:acknowledge',
254 'httpMethod' => 'POST',
255 'parameters' => [
256 'name' => [
257 'location' => 'path',
258 'type' => 'string',
259 'required' => true,
260 ],
261 ],
262 ],'get' => [
263 'path' => 'v1/{+name}',
264 'httpMethod' => 'GET',
265 'parameters' => [
266 'name' => [
267 'location' => 'path',
268 'type' => 'string',
269 'required' => true,
270 ],
271 ],
272 ],'list' => [
273 'path' => 'v1/{+parent}/violations',
274 'httpMethod' => 'GET',
275 'parameters' => [
276 'parent' => [
277 'location' => 'path',
278 'type' => 'string',
279 'required' => true,
280 ],
281 'filter' => [
282 'location' => 'query',
283 'type' => 'string',
284 ],
285 'interval.endTime' => [
286 'location' => 'query',
287 'type' => 'string',
288 ],
289 'interval.startTime' => [
290 'location' => 'query',
291 'type' => 'string',
292 ],
293 'pageSize' => [
294 'location' => 'query',
295 'type' => 'integer',
296 ],
297 'pageToken' => [
298 'location' => 'query',
299 'type' => 'string',
300 ],
301 ],
302 ],
303 ]
304 ]
305 );
306 }
307}
308
309// Adding a class alias for backwards compatibility with the previous class name.
310class_alias(Assuredworkloads::class, 'Google_Service_Assuredworkloads');
Note: See TracBrowser for help on using the repository browser.