source: vendor/google/apiclient-services/src/RapidMigrationAssessment.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: 10.4 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 RapidMigrationAssessment (v1).
24 *
25 * <p>
26 * The Rapid Migration Assessment service is our first-party migration
27 * assessment and planning tool.</p>
28 *
29 * <p>
30 * For more information about this service, see the API
31 * <a href="https://cloud.google.com/migration-center" target="_blank">Documentation</a>
32 * </p>
33 *
34 * @author Google, Inc.
35 */
36class RapidMigrationAssessment 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 $projects_locations;
43 public $projects_locations_annotations;
44 public $projects_locations_collectors;
45 public $projects_locations_operations;
46 public $rootUrlTemplate;
47
48 /**
49 * Constructs the internal representation of the RapidMigrationAssessment
50 * service.
51 *
52 * @param Client|array $clientOrConfig The client used to deliver requests, or a
53 * config array to pass to a new Client instance.
54 * @param string $rootUrl The root URL used for requests to the service.
55 */
56 public function __construct($clientOrConfig = [], $rootUrl = null)
57 {
58 parent::__construct($clientOrConfig);
59 $this->rootUrl = $rootUrl ?: 'https://rapidmigrationassessment.googleapis.com/';
60 $this->rootUrlTemplate = $rootUrl ?: 'https://rapidmigrationassessment.UNIVERSE_DOMAIN/';
61 $this->servicePath = '';
62 $this->batchPath = 'batch';
63 $this->version = 'v1';
64 $this->serviceName = 'rapidmigrationassessment';
65
66 $this->projects_locations = new RapidMigrationAssessment\Resource\ProjectsLocations(
67 $this,
68 $this->serviceName,
69 'locations',
70 [
71 'methods' => [
72 'get' => [
73 'path' => 'v1/{+name}',
74 'httpMethod' => 'GET',
75 'parameters' => [
76 'name' => [
77 'location' => 'path',
78 'type' => 'string',
79 'required' => true,
80 ],
81 ],
82 ],'list' => [
83 'path' => 'v1/{+name}/locations',
84 'httpMethod' => 'GET',
85 'parameters' => [
86 'name' => [
87 'location' => 'path',
88 'type' => 'string',
89 'required' => true,
90 ],
91 'filter' => [
92 'location' => 'query',
93 'type' => 'string',
94 ],
95 'pageSize' => [
96 'location' => 'query',
97 'type' => 'integer',
98 ],
99 'pageToken' => [
100 'location' => 'query',
101 'type' => 'string',
102 ],
103 ],
104 ],
105 ]
106 ]
107 );
108 $this->projects_locations_annotations = new RapidMigrationAssessment\Resource\ProjectsLocationsAnnotations(
109 $this,
110 $this->serviceName,
111 'annotations',
112 [
113 'methods' => [
114 'create' => [
115 'path' => 'v1/{+parent}/annotations',
116 'httpMethod' => 'POST',
117 'parameters' => [
118 'parent' => [
119 'location' => 'path',
120 'type' => 'string',
121 'required' => true,
122 ],
123 'requestId' => [
124 'location' => 'query',
125 'type' => 'string',
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 ],
139 ]
140 ]
141 );
142 $this->projects_locations_collectors = new RapidMigrationAssessment\Resource\ProjectsLocationsCollectors(
143 $this,
144 $this->serviceName,
145 'collectors',
146 [
147 'methods' => [
148 'create' => [
149 'path' => 'v1/{+parent}/collectors',
150 'httpMethod' => 'POST',
151 'parameters' => [
152 'parent' => [
153 'location' => 'path',
154 'type' => 'string',
155 'required' => true,
156 ],
157 'collectorId' => [
158 'location' => 'query',
159 'type' => 'string',
160 ],
161 'requestId' => [
162 'location' => 'query',
163 'type' => 'string',
164 ],
165 ],
166 ],'delete' => [
167 'path' => 'v1/{+name}',
168 'httpMethod' => 'DELETE',
169 'parameters' => [
170 'name' => [
171 'location' => 'path',
172 'type' => 'string',
173 'required' => true,
174 ],
175 'requestId' => [
176 'location' => 'query',
177 'type' => 'string',
178 ],
179 ],
180 ],'get' => [
181 'path' => 'v1/{+name}',
182 'httpMethod' => 'GET',
183 'parameters' => [
184 'name' => [
185 'location' => 'path',
186 'type' => 'string',
187 'required' => true,
188 ],
189 ],
190 ],'list' => [
191 'path' => 'v1/{+parent}/collectors',
192 'httpMethod' => 'GET',
193 'parameters' => [
194 'parent' => [
195 'location' => 'path',
196 'type' => 'string',
197 'required' => true,
198 ],
199 'filter' => [
200 'location' => 'query',
201 'type' => 'string',
202 ],
203 'orderBy' => [
204 'location' => 'query',
205 'type' => 'string',
206 ],
207 'pageSize' => [
208 'location' => 'query',
209 'type' => 'integer',
210 ],
211 'pageToken' => [
212 'location' => 'query',
213 'type' => 'string',
214 ],
215 ],
216 ],'patch' => [
217 'path' => 'v1/{+name}',
218 'httpMethod' => 'PATCH',
219 'parameters' => [
220 'name' => [
221 'location' => 'path',
222 'type' => 'string',
223 'required' => true,
224 ],
225 'requestId' => [
226 'location' => 'query',
227 'type' => 'string',
228 ],
229 'updateMask' => [
230 'location' => 'query',
231 'type' => 'string',
232 ],
233 ],
234 ],'pause' => [
235 'path' => 'v1/{+name}:pause',
236 'httpMethod' => 'POST',
237 'parameters' => [
238 'name' => [
239 'location' => 'path',
240 'type' => 'string',
241 'required' => true,
242 ],
243 ],
244 ],'register' => [
245 'path' => 'v1/{+name}:register',
246 'httpMethod' => 'POST',
247 'parameters' => [
248 'name' => [
249 'location' => 'path',
250 'type' => 'string',
251 'required' => true,
252 ],
253 ],
254 ],'resume' => [
255 'path' => 'v1/{+name}:resume',
256 'httpMethod' => 'POST',
257 'parameters' => [
258 'name' => [
259 'location' => 'path',
260 'type' => 'string',
261 'required' => true,
262 ],
263 ],
264 ],
265 ]
266 ]
267 );
268 $this->projects_locations_operations = new RapidMigrationAssessment\Resource\ProjectsLocationsOperations(
269 $this,
270 $this->serviceName,
271 'operations',
272 [
273 'methods' => [
274 'cancel' => [
275 'path' => 'v1/{+name}:cancel',
276 'httpMethod' => 'POST',
277 'parameters' => [
278 'name' => [
279 'location' => 'path',
280 'type' => 'string',
281 'required' => true,
282 ],
283 ],
284 ],'delete' => [
285 'path' => 'v1/{+name}',
286 'httpMethod' => 'DELETE',
287 'parameters' => [
288 'name' => [
289 'location' => 'path',
290 'type' => 'string',
291 'required' => true,
292 ],
293 ],
294 ],'get' => [
295 'path' => 'v1/{+name}',
296 'httpMethod' => 'GET',
297 'parameters' => [
298 'name' => [
299 'location' => 'path',
300 'type' => 'string',
301 'required' => true,
302 ],
303 ],
304 ],'list' => [
305 'path' => 'v1/{+name}/operations',
306 'httpMethod' => 'GET',
307 'parameters' => [
308 'name' => [
309 'location' => 'path',
310 'type' => 'string',
311 'required' => true,
312 ],
313 'filter' => [
314 'location' => 'query',
315 'type' => 'string',
316 ],
317 'pageSize' => [
318 'location' => 'query',
319 'type' => 'integer',
320 ],
321 'pageToken' => [
322 'location' => 'query',
323 'type' => 'string',
324 ],
325 ],
326 ],
327 ]
328 ]
329 );
330 }
331}
332
333// Adding a class alias for backwards compatibility with the previous class name.
334class_alias(RapidMigrationAssessment::class, 'Google_Service_RapidMigrationAssessment');
Note: See TracBrowser for help on using the repository browser.