Skip to content

Commit 04c4a6c

Browse files
1 parent 69dc237 commit 04c4a6c

7 files changed

Lines changed: 362 additions & 4 deletions

src/Firestore.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,16 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
8686
'required' => true,
8787
],
8888
],
89+
],'clone' => [
90+
'path' => 'v1/{+parent}/databases:clone',
91+
'httpMethod' => 'POST',
92+
'parameters' => [
93+
'parent' => [
94+
'location' => 'path',
95+
'type' => 'string',
96+
'required' => true,
97+
],
98+
],
8999
],'create' => [
90100
'path' => 'v1/{+parent}/databases',
91101
'httpMethod' => 'POST',
Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
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 GoogleFirestoreAdminV1CloneDatabaseMetadata extends \Google\Model
21+
{
22+
/**
23+
* @var string
24+
*/
25+
public $database;
26+
/**
27+
* @var string
28+
*/
29+
public $endTime;
30+
/**
31+
* @var string
32+
*/
33+
public $operationState;
34+
protected $pitrSnapshotType = GoogleFirestoreAdminV1PitrSnapshot::class;
35+
protected $pitrSnapshotDataType = '';
36+
protected $progressPercentageType = GoogleFirestoreAdminV1Progress::class;
37+
protected $progressPercentageDataType = '';
38+
/**
39+
* @var string
40+
*/
41+
public $startTime;
42+
43+
/**
44+
* @param string
45+
*/
46+
public function setDatabase($database)
47+
{
48+
$this->database = $database;
49+
}
50+
/**
51+
* @return string
52+
*/
53+
public function getDatabase()
54+
{
55+
return $this->database;
56+
}
57+
/**
58+
* @param string
59+
*/
60+
public function setEndTime($endTime)
61+
{
62+
$this->endTime = $endTime;
63+
}
64+
/**
65+
* @return string
66+
*/
67+
public function getEndTime()
68+
{
69+
return $this->endTime;
70+
}
71+
/**
72+
* @param string
73+
*/
74+
public function setOperationState($operationState)
75+
{
76+
$this->operationState = $operationState;
77+
}
78+
/**
79+
* @return string
80+
*/
81+
public function getOperationState()
82+
{
83+
return $this->operationState;
84+
}
85+
/**
86+
* @param GoogleFirestoreAdminV1PitrSnapshot
87+
*/
88+
public function setPitrSnapshot(GoogleFirestoreAdminV1PitrSnapshot $pitrSnapshot)
89+
{
90+
$this->pitrSnapshot = $pitrSnapshot;
91+
}
92+
/**
93+
* @return GoogleFirestoreAdminV1PitrSnapshot
94+
*/
95+
public function getPitrSnapshot()
96+
{
97+
return $this->pitrSnapshot;
98+
}
99+
/**
100+
* @param GoogleFirestoreAdminV1Progress
101+
*/
102+
public function setProgressPercentage(GoogleFirestoreAdminV1Progress $progressPercentage)
103+
{
104+
$this->progressPercentage = $progressPercentage;
105+
}
106+
/**
107+
* @return GoogleFirestoreAdminV1Progress
108+
*/
109+
public function getProgressPercentage()
110+
{
111+
return $this->progressPercentage;
112+
}
113+
/**
114+
* @param string
115+
*/
116+
public function setStartTime($startTime)
117+
{
118+
$this->startTime = $startTime;
119+
}
120+
/**
121+
* @return string
122+
*/
123+
public function getStartTime()
124+
{
125+
return $this->startTime;
126+
}
127+
}
128+
129+
// Adding a class alias for backwards compatibility with the previous class name.
130+
class_alias(GoogleFirestoreAdminV1CloneDatabaseMetadata::class, 'Google_Service_Firestore_GoogleFirestoreAdminV1CloneDatabaseMetadata');
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
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 GoogleFirestoreAdminV1CloneDatabaseRequest extends \Google\Model
21+
{
22+
/**
23+
* @var string
24+
*/
25+
public $databaseId;
26+
protected $encryptionConfigType = GoogleFirestoreAdminV1EncryptionConfig::class;
27+
protected $encryptionConfigDataType = '';
28+
protected $pitrSnapshotType = GoogleFirestoreAdminV1PitrSnapshot::class;
29+
protected $pitrSnapshotDataType = '';
30+
/**
31+
* @var string[]
32+
*/
33+
public $tags;
34+
35+
/**
36+
* @param string
37+
*/
38+
public function setDatabaseId($databaseId)
39+
{
40+
$this->databaseId = $databaseId;
41+
}
42+
/**
43+
* @return string
44+
*/
45+
public function getDatabaseId()
46+
{
47+
return $this->databaseId;
48+
}
49+
/**
50+
* @param GoogleFirestoreAdminV1EncryptionConfig
51+
*/
52+
public function setEncryptionConfig(GoogleFirestoreAdminV1EncryptionConfig $encryptionConfig)
53+
{
54+
$this->encryptionConfig = $encryptionConfig;
55+
}
56+
/**
57+
* @return GoogleFirestoreAdminV1EncryptionConfig
58+
*/
59+
public function getEncryptionConfig()
60+
{
61+
return $this->encryptionConfig;
62+
}
63+
/**
64+
* @param GoogleFirestoreAdminV1PitrSnapshot
65+
*/
66+
public function setPitrSnapshot(GoogleFirestoreAdminV1PitrSnapshot $pitrSnapshot)
67+
{
68+
$this->pitrSnapshot = $pitrSnapshot;
69+
}
70+
/**
71+
* @return GoogleFirestoreAdminV1PitrSnapshot
72+
*/
73+
public function getPitrSnapshot()
74+
{
75+
return $this->pitrSnapshot;
76+
}
77+
/**
78+
* @param string[]
79+
*/
80+
public function setTags($tags)
81+
{
82+
$this->tags = $tags;
83+
}
84+
/**
85+
* @return string[]
86+
*/
87+
public function getTags()
88+
{
89+
return $this->tags;
90+
}
91+
}
92+
93+
// Adding a class alias for backwards compatibility with the previous class name.
94+
class_alias(GoogleFirestoreAdminV1CloneDatabaseRequest::class, 'Google_Service_Firestore_GoogleFirestoreAdminV1CloneDatabaseRequest');

src/Firestore/GoogleFirestoreAdminV1Index.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ class GoogleFirestoreAdminV1Index extends \Google\Collection
5050
* @var string
5151
*/
5252
public $state;
53+
/**
54+
* @var bool
55+
*/
56+
public $unique;
5357

5458
/**
5559
* @param string
@@ -163,6 +167,20 @@ public function getState()
163167
{
164168
return $this->state;
165169
}
170+
/**
171+
* @param bool
172+
*/
173+
public function setUnique($unique)
174+
{
175+
$this->unique = $unique;
176+
}
177+
/**
178+
* @return bool
179+
*/
180+
public function getUnique()
181+
{
182+
return $this->unique;
183+
}
166184
}
167185

168186
// Adding a class alias for backwards compatibility with the previous class name.
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
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 GoogleFirestoreAdminV1PitrSnapshot extends \Google\Model
21+
{
22+
/**
23+
* @var string
24+
*/
25+
public $database;
26+
/**
27+
* @var string
28+
*/
29+
public $databaseUid;
30+
/**
31+
* @var string
32+
*/
33+
public $snapshotTime;
34+
35+
/**
36+
* @param string
37+
*/
38+
public function setDatabase($database)
39+
{
40+
$this->database = $database;
41+
}
42+
/**
43+
* @return string
44+
*/
45+
public function getDatabase()
46+
{
47+
return $this->database;
48+
}
49+
/**
50+
* @param string
51+
*/
52+
public function setDatabaseUid($databaseUid)
53+
{
54+
$this->databaseUid = $databaseUid;
55+
}
56+
/**
57+
* @return string
58+
*/
59+
public function getDatabaseUid()
60+
{
61+
return $this->databaseUid;
62+
}
63+
/**
64+
* @param string
65+
*/
66+
public function setSnapshotTime($snapshotTime)
67+
{
68+
$this->snapshotTime = $snapshotTime;
69+
}
70+
/**
71+
* @return string
72+
*/
73+
public function getSnapshotTime()
74+
{
75+
return $this->snapshotTime;
76+
}
77+
}
78+
79+
// Adding a class alias for backwards compatibility with the previous class name.
80+
class_alias(GoogleFirestoreAdminV1PitrSnapshot::class, 'Google_Service_Firestore_GoogleFirestoreAdminV1PitrSnapshot');

0 commit comments

Comments
 (0)