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