Skip to content

Commit 9c098d7

Browse files
Regenerate firestore client (#6563)
1 parent 10bcb84 commit 9c098d7

12 files changed

Lines changed: 672 additions & 0 deletions

src/Firestore.php

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ class Firestore extends \Google\Service
4848
public $projects_databases_collectionGroups_indexes;
4949
public $projects_databases_documents;
5050
public $projects_databases_operations;
51+
public $projects_databases_userCreds;
5152
public $projects_locations;
5253
public $projects_locations_backups;
5354
public $rootUrlTemplate;
@@ -730,6 +731,90 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
730731
]
731732
]
732733
);
734+
$this->projects_databases_userCreds = new Firestore\Resource\ProjectsDatabasesUserCreds(
735+
$this,
736+
$this->serviceName,
737+
'userCreds',
738+
[
739+
'methods' => [
740+
'create' => [
741+
'path' => 'v1/{+parent}/userCreds',
742+
'httpMethod' => 'POST',
743+
'parameters' => [
744+
'parent' => [
745+
'location' => 'path',
746+
'type' => 'string',
747+
'required' => true,
748+
],
749+
'userCredsId' => [
750+
'location' => 'query',
751+
'type' => 'string',
752+
],
753+
],
754+
],'delete' => [
755+
'path' => 'v1/{+name}',
756+
'httpMethod' => 'DELETE',
757+
'parameters' => [
758+
'name' => [
759+
'location' => 'path',
760+
'type' => 'string',
761+
'required' => true,
762+
],
763+
],
764+
],'disable' => [
765+
'path' => 'v1/{+name}:disable',
766+
'httpMethod' => 'POST',
767+
'parameters' => [
768+
'name' => [
769+
'location' => 'path',
770+
'type' => 'string',
771+
'required' => true,
772+
],
773+
],
774+
],'enable' => [
775+
'path' => 'v1/{+name}:enable',
776+
'httpMethod' => 'POST',
777+
'parameters' => [
778+
'name' => [
779+
'location' => 'path',
780+
'type' => 'string',
781+
'required' => true,
782+
],
783+
],
784+
],'get' => [
785+
'path' => 'v1/{+name}',
786+
'httpMethod' => 'GET',
787+
'parameters' => [
788+
'name' => [
789+
'location' => 'path',
790+
'type' => 'string',
791+
'required' => true,
792+
],
793+
],
794+
],'list' => [
795+
'path' => 'v1/{+parent}/userCreds',
796+
'httpMethod' => 'GET',
797+
'parameters' => [
798+
'parent' => [
799+
'location' => 'path',
800+
'type' => 'string',
801+
'required' => true,
802+
],
803+
],
804+
],'resetPassword' => [
805+
'path' => 'v1/{+name}:resetPassword',
806+
'httpMethod' => 'POST',
807+
'parameters' => [
808+
'name' => [
809+
'location' => 'path',
810+
'type' => 'string',
811+
'required' => true,
812+
],
813+
],
814+
],
815+
]
816+
]
817+
);
733818
$this->projects_locations = new Firestore\Resource\ProjectsLocations(
734819
$this,
735820
$this->serviceName,
@@ -755,6 +840,11 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
755840
'type' => 'string',
756841
'required' => true,
757842
],
843+
'extraLocationTypes' => [
844+
'location' => 'query',
845+
'type' => 'string',
846+
'repeated' => true,
847+
],
758848
'filter' => [
759849
'location' => 'query',
760850
'type' => 'string',

src/Firestore/GoogleFirestoreAdminV1Database.php

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ class GoogleFirestoreAdminV1Database extends \Google\Model
3333
* @var string
3434
*/
3535
public $createTime;
36+
/**
37+
* @var string
38+
*/
39+
public $databaseEdition;
3640
/**
3741
* @var string
3842
*/
@@ -49,6 +53,10 @@ class GoogleFirestoreAdminV1Database extends \Google\Model
4953
* @var string
5054
*/
5155
public $etag;
56+
/**
57+
* @var bool
58+
*/
59+
public $freeTier;
5260
/**
5361
* @var string
5462
*/
@@ -71,6 +79,10 @@ class GoogleFirestoreAdminV1Database extends \Google\Model
7179
public $previousId;
7280
protected $sourceInfoType = GoogleFirestoreAdminV1SourceInfo::class;
7381
protected $sourceInfoDataType = '';
82+
/**
83+
* @var string[]
84+
*/
85+
public $tags;
7486
/**
7587
* @var string
7688
*/
@@ -144,6 +156,20 @@ public function getCreateTime()
144156
{
145157
return $this->createTime;
146158
}
159+
/**
160+
* @param string
161+
*/
162+
public function setDatabaseEdition($databaseEdition)
163+
{
164+
$this->databaseEdition = $databaseEdition;
165+
}
166+
/**
167+
* @return string
168+
*/
169+
public function getDatabaseEdition()
170+
{
171+
return $this->databaseEdition;
172+
}
147173
/**
148174
* @param string
149175
*/
@@ -200,6 +226,20 @@ public function getEtag()
200226
{
201227
return $this->etag;
202228
}
229+
/**
230+
* @param bool
231+
*/
232+
public function setFreeTier($freeTier)
233+
{
234+
$this->freeTier = $freeTier;
235+
}
236+
/**
237+
* @return bool
238+
*/
239+
public function getFreeTier()
240+
{
241+
return $this->freeTier;
242+
}
203243
/**
204244
* @param string
205245
*/
@@ -284,6 +324,20 @@ public function getSourceInfo()
284324
{
285325
return $this->sourceInfo;
286326
}
327+
/**
328+
* @param string[]
329+
*/
330+
public function setTags($tags)
331+
{
332+
$this->tags = $tags;
333+
}
334+
/**
335+
* @return string[]
336+
*/
337+
public function getTags()
338+
{
339+
return $this->tags;
340+
}
287341
/**
288342
* @param string
289343
*/
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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\Firestore;
19+
20+
class GoogleFirestoreAdminV1DisableUserCredsRequest extends \Google\Model
21+
{
22+
}
23+
24+
// Adding a class alias for backwards compatibility with the previous class name.
25+
class_alias(GoogleFirestoreAdminV1DisableUserCredsRequest::class, 'Google_Service_Firestore_GoogleFirestoreAdminV1DisableUserCredsRequest');
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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\Firestore;
19+
20+
class GoogleFirestoreAdminV1EnableUserCredsRequest extends \Google\Model
21+
{
22+
}
23+
24+
// Adding a class alias for backwards compatibility with the previous class name.
25+
class_alias(GoogleFirestoreAdminV1EnableUserCredsRequest::class, 'Google_Service_Firestore_GoogleFirestoreAdminV1EnableUserCredsRequest');

src/Firestore/GoogleFirestoreAdminV1Index.php

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,16 @@ class GoogleFirestoreAdminV1Index extends \Google\Collection
2424
* @var string
2525
*/
2626
public $apiScope;
27+
/**
28+
* @var string
29+
*/
30+
public $density;
2731
protected $fieldsType = GoogleFirestoreAdminV1IndexField::class;
2832
protected $fieldsDataType = 'array';
33+
/**
34+
* @var bool
35+
*/
36+
public $multikey;
2937
/**
3038
* @var string
3139
*/
@@ -34,6 +42,10 @@ class GoogleFirestoreAdminV1Index extends \Google\Collection
3442
* @var string
3543
*/
3644
public $queryScope;
45+
/**
46+
* @var int
47+
*/
48+
public $shardCount;
3749
/**
3850
* @var string
3951
*/
@@ -53,6 +65,20 @@ public function getApiScope()
5365
{
5466
return $this->apiScope;
5567
}
68+
/**
69+
* @param string
70+
*/
71+
public function setDensity($density)
72+
{
73+
$this->density = $density;
74+
}
75+
/**
76+
* @return string
77+
*/
78+
public function getDensity()
79+
{
80+
return $this->density;
81+
}
5682
/**
5783
* @param GoogleFirestoreAdminV1IndexField[]
5884
*/
@@ -67,6 +93,20 @@ public function getFields()
6793
{
6894
return $this->fields;
6995
}
96+
/**
97+
* @param bool
98+
*/
99+
public function setMultikey($multikey)
100+
{
101+
$this->multikey = $multikey;
102+
}
103+
/**
104+
* @return bool
105+
*/
106+
public function getMultikey()
107+
{
108+
return $this->multikey;
109+
}
70110
/**
71111
* @param string
72112
*/
@@ -95,6 +135,20 @@ public function getQueryScope()
95135
{
96136
return $this->queryScope;
97137
}
138+
/**
139+
* @param int
140+
*/
141+
public function setShardCount($shardCount)
142+
{
143+
$this->shardCount = $shardCount;
144+
}
145+
/**
146+
* @return int
147+
*/
148+
public function getShardCount()
149+
{
150+
return $this->shardCount;
151+
}
98152
/**
99153
* @param string
100154
*/
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\Firestore;
19+
20+
class GoogleFirestoreAdminV1ListUserCredsResponse extends \Google\Collection
21+
{
22+
protected $collection_key = 'userCreds';
23+
protected $userCredsType = GoogleFirestoreAdminV1UserCreds::class;
24+
protected $userCredsDataType = 'array';
25+
26+
/**
27+
* @param GoogleFirestoreAdminV1UserCreds[]
28+
*/
29+
public function setUserCreds($userCreds)
30+
{
31+
$this->userCreds = $userCreds;
32+
}
33+
/**
34+
* @return GoogleFirestoreAdminV1UserCreds[]
35+
*/
36+
public function getUserCreds()
37+
{
38+
return $this->userCreds;
39+
}
40+
}
41+
42+
// Adding a class alias for backwards compatibility with the previous class name.
43+
class_alias(GoogleFirestoreAdminV1ListUserCredsResponse::class, 'Google_Service_Firestore_GoogleFirestoreAdminV1ListUserCredsResponse');

0 commit comments

Comments
 (0)