Skip to content

Commit 8aafdbb

Browse files
Regenerate storagebatchoperations client
1 parent 52e9eb6 commit 8aafdbb

29 files changed

+2450
-0
lines changed

src/StorageBatchOperations.php

Lines changed: 265 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,265 @@
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+
18+
namespace Google\Service;
19+
20+
use Google\Client;
21+
22+
/**
23+
* Service definition for StorageBatchOperations (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/storage/docs/metadata" target="_blank">Documentation</a>
31+
* </p>
32+
*
33+
* @author Google, Inc.
34+
*/
35+
class StorageBatchOperations 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 $projects_locations;
42+
public $projects_locations_jobs;
43+
public $projects_locations_operations;
44+
public $rootUrlTemplate;
45+
46+
/**
47+
* Constructs the internal representation of the StorageBatchOperations
48+
* service.
49+
*
50+
* @param Client|array $clientOrConfig The client used to deliver requests, or a
51+
* config array to pass to a new Client instance.
52+
* @param string $rootUrl The root URL used for requests to the service.
53+
*/
54+
public function __construct($clientOrConfig = [], $rootUrl = null)
55+
{
56+
parent::__construct($clientOrConfig);
57+
$this->rootUrl = $rootUrl ?: 'https://storagebatchoperations.googleapis.com/';
58+
$this->rootUrlTemplate = $rootUrl ?: 'https://storagebatchoperations.UNIVERSE_DOMAIN/';
59+
$this->servicePath = '';
60+
$this->batchPath = 'batch';
61+
$this->version = 'v1';
62+
$this->serviceName = 'storagebatchoperations';
63+
64+
$this->projects_locations = new StorageBatchOperations\Resource\ProjectsLocations(
65+
$this,
66+
$this->serviceName,
67+
'locations',
68+
[
69+
'methods' => [
70+
'get' => [
71+
'path' => 'v1/{+name}',
72+
'httpMethod' => 'GET',
73+
'parameters' => [
74+
'name' => [
75+
'location' => 'path',
76+
'type' => 'string',
77+
'required' => true,
78+
],
79+
],
80+
],'list' => [
81+
'path' => 'v1/{+name}/locations',
82+
'httpMethod' => 'GET',
83+
'parameters' => [
84+
'name' => [
85+
'location' => 'path',
86+
'type' => 'string',
87+
'required' => true,
88+
],
89+
'extraLocationTypes' => [
90+
'location' => 'query',
91+
'type' => 'string',
92+
'repeated' => true,
93+
],
94+
'filter' => [
95+
'location' => 'query',
96+
'type' => 'string',
97+
],
98+
'pageSize' => [
99+
'location' => 'query',
100+
'type' => 'integer',
101+
],
102+
'pageToken' => [
103+
'location' => 'query',
104+
'type' => 'string',
105+
],
106+
],
107+
],
108+
]
109+
]
110+
);
111+
$this->projects_locations_jobs = new StorageBatchOperations\Resource\ProjectsLocationsJobs(
112+
$this,
113+
$this->serviceName,
114+
'jobs',
115+
[
116+
'methods' => [
117+
'cancel' => [
118+
'path' => 'v1/{+name}:cancel',
119+
'httpMethod' => 'POST',
120+
'parameters' => [
121+
'name' => [
122+
'location' => 'path',
123+
'type' => 'string',
124+
'required' => true,
125+
],
126+
],
127+
],'create' => [
128+
'path' => 'v1/{+parent}/jobs',
129+
'httpMethod' => 'POST',
130+
'parameters' => [
131+
'parent' => [
132+
'location' => 'path',
133+
'type' => 'string',
134+
'required' => true,
135+
],
136+
'jobId' => [
137+
'location' => 'query',
138+
'type' => 'string',
139+
],
140+
'requestId' => [
141+
'location' => 'query',
142+
'type' => 'string',
143+
],
144+
],
145+
],'delete' => [
146+
'path' => 'v1/{+name}',
147+
'httpMethod' => 'DELETE',
148+
'parameters' => [
149+
'name' => [
150+
'location' => 'path',
151+
'type' => 'string',
152+
'required' => true,
153+
],
154+
'requestId' => [
155+
'location' => 'query',
156+
'type' => 'string',
157+
],
158+
],
159+
],'get' => [
160+
'path' => 'v1/{+name}',
161+
'httpMethod' => 'GET',
162+
'parameters' => [
163+
'name' => [
164+
'location' => 'path',
165+
'type' => 'string',
166+
'required' => true,
167+
],
168+
],
169+
],'list' => [
170+
'path' => 'v1/{+parent}/jobs',
171+
'httpMethod' => 'GET',
172+
'parameters' => [
173+
'parent' => [
174+
'location' => 'path',
175+
'type' => 'string',
176+
'required' => true,
177+
],
178+
'filter' => [
179+
'location' => 'query',
180+
'type' => 'string',
181+
],
182+
'orderBy' => [
183+
'location' => 'query',
184+
'type' => 'string',
185+
],
186+
'pageSize' => [
187+
'location' => 'query',
188+
'type' => 'integer',
189+
],
190+
'pageToken' => [
191+
'location' => 'query',
192+
'type' => 'string',
193+
],
194+
],
195+
],
196+
]
197+
]
198+
);
199+
$this->projects_locations_operations = new StorageBatchOperations\Resource\ProjectsLocationsOperations(
200+
$this,
201+
$this->serviceName,
202+
'operations',
203+
[
204+
'methods' => [
205+
'cancel' => [
206+
'path' => 'v1/{+name}:cancel',
207+
'httpMethod' => 'POST',
208+
'parameters' => [
209+
'name' => [
210+
'location' => 'path',
211+
'type' => 'string',
212+
'required' => true,
213+
],
214+
],
215+
],'delete' => [
216+
'path' => 'v1/{+name}',
217+
'httpMethod' => 'DELETE',
218+
'parameters' => [
219+
'name' => [
220+
'location' => 'path',
221+
'type' => 'string',
222+
'required' => true,
223+
],
224+
],
225+
],'get' => [
226+
'path' => 'v1/{+name}',
227+
'httpMethod' => 'GET',
228+
'parameters' => [
229+
'name' => [
230+
'location' => 'path',
231+
'type' => 'string',
232+
'required' => true,
233+
],
234+
],
235+
],'list' => [
236+
'path' => 'v1/{+name}/operations',
237+
'httpMethod' => 'GET',
238+
'parameters' => [
239+
'name' => [
240+
'location' => 'path',
241+
'type' => 'string',
242+
'required' => true,
243+
],
244+
'filter' => [
245+
'location' => 'query',
246+
'type' => 'string',
247+
],
248+
'pageSize' => [
249+
'location' => 'query',
250+
'type' => 'integer',
251+
],
252+
'pageToken' => [
253+
'location' => 'query',
254+
'type' => 'string',
255+
],
256+
],
257+
],
258+
]
259+
]
260+
);
261+
}
262+
}
263+
264+
// Adding a class alias for backwards compatibility with the previous class name.
265+
class_alias(StorageBatchOperations::class, 'Google_Service_StorageBatchOperations');

src/StorageBatchOperations/Bucket.php

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
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+
18+
namespace Google\Service\StorageBatchOperations;
19+
20+
class Bucket extends \Google\Model
21+
{
22+
/**
23+
* @var string
24+
*/
25+
public $bucket;
26+
protected $manifestType = Manifest::class;
27+
protected $manifestDataType = '';
28+
protected $prefixListType = PrefixList::class;
29+
protected $prefixListDataType = '';
30+
31+
/**
32+
* @param string
33+
*/
34+
public function setBucket($bucket)
35+
{
36+
$this->bucket = $bucket;
37+
}
38+
/**
39+
* @return string
40+
*/
41+
public function getBucket()
42+
{
43+
return $this->bucket;
44+
}
45+
/**
46+
* @param Manifest
47+
*/
48+
public function setManifest(Manifest $manifest)
49+
{
50+
$this->manifest = $manifest;
51+
}
52+
/**
53+
* @return Manifest
54+
*/
55+
public function getManifest()
56+
{
57+
return $this->manifest;
58+
}
59+
/**
60+
* @param PrefixList
61+
*/
62+
public function setPrefixList(PrefixList $prefixList)
63+
{
64+
$this->prefixList = $prefixList;
65+
}
66+
/**
67+
* @return PrefixList
68+
*/
69+
public function getPrefixList()
70+
{
71+
return $this->prefixList;
72+
}
73+
}
74+
75+
// Adding a class alias for backwards compatibility with the previous class name.
76+
class_alias(Bucket::class, 'Google_Service_StorageBatchOperations_Bucket');
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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+
18+
namespace Google\Service\StorageBatchOperations;
19+
20+
class BucketList extends \Google\Collection
21+
{
22+
protected $collection_key = 'buckets';
23+
protected $bucketsType = Bucket::class;
24+
protected $bucketsDataType = 'array';
25+
26+
/**
27+
* @param Bucket[]
28+
*/
29+
public function setBuckets($buckets)
30+
{
31+
$this->buckets = $buckets;
32+
}
33+
/**
34+
* @return Bucket[]
35+
*/
36+
public function getBuckets()
37+
{
38+
return $this->buckets;
39+
}
40+
}
41+
42+
// Adding a class alias for backwards compatibility with the previous class name.
43+
class_alias(BucketList::class, 'Google_Service_StorageBatchOperations_BucketList');

0 commit comments

Comments
 (0)