Skip to content

Commit 025101a

Browse files
1 parent a61ad81 commit 025101a

File tree

1 file changed

+69
-1
lines changed

1 file changed

+69
-1
lines changed

src/SQLAdmin/PointInTimeRestoreContext.php

Lines changed: 69 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
1717

1818
namespace Google\Service\SQLAdmin;
1919

20-
class PointInTimeRestoreContext extends \Google\Model
20+
class PointInTimeRestoreContext extends \Google\Collection
2121
{
22+
protected $collection_key = 'targetInstanceClearSettingsFieldNames';
2223
/**
2324
* Optional. The name of the allocated IP range for the internal IP Cloud SQL
2425
* instance. For example: "google-managed-services-default". If you set this,
@@ -69,12 +70,28 @@ class PointInTimeRestoreContext extends \Google\Model
6970
* @var string
7071
*/
7172
public $privateNetwork;
73+
/**
74+
* Optional. The region of the target instance where the datasource will be
75+
* restored. For example: "us-central1".
76+
*
77+
* @var string
78+
*/
79+
public $region;
7280
/**
7381
* Target instance name.
7482
*
7583
* @var string
7684
*/
7785
public $targetInstance;
86+
/**
87+
* Optional. Specifies the instance settings that will be cleared from the
88+
* source instance. This field is only applicable for cross project PITRs.
89+
*
90+
* @var string[]
91+
*/
92+
public $targetInstanceClearSettingsFieldNames;
93+
protected $targetInstanceSettingsType = DatabaseInstance::class;
94+
protected $targetInstanceSettingsDataType = '';
7895

7996
/**
8097
* Optional. The name of the allocated IP range for the internal IP Cloud SQL
@@ -186,6 +203,23 @@ public function getPrivateNetwork()
186203
{
187204
return $this->privateNetwork;
188205
}
206+
/**
207+
* Optional. The region of the target instance where the datasource will be
208+
* restored. For example: "us-central1".
209+
*
210+
* @param string $region
211+
*/
212+
public function setRegion($region)
213+
{
214+
$this->region = $region;
215+
}
216+
/**
217+
* @return string
218+
*/
219+
public function getRegion()
220+
{
221+
return $this->region;
222+
}
189223
/**
190224
* Target instance name.
191225
*
@@ -202,6 +236,40 @@ public function getTargetInstance()
202236
{
203237
return $this->targetInstance;
204238
}
239+
/**
240+
* Optional. Specifies the instance settings that will be cleared from the
241+
* source instance. This field is only applicable for cross project PITRs.
242+
*
243+
* @param string[] $targetInstanceClearSettingsFieldNames
244+
*/
245+
public function setTargetInstanceClearSettingsFieldNames($targetInstanceClearSettingsFieldNames)
246+
{
247+
$this->targetInstanceClearSettingsFieldNames = $targetInstanceClearSettingsFieldNames;
248+
}
249+
/**
250+
* @return string[]
251+
*/
252+
public function getTargetInstanceClearSettingsFieldNames()
253+
{
254+
return $this->targetInstanceClearSettingsFieldNames;
255+
}
256+
/**
257+
* Optional. Specifies the instance settings that will be overridden from the
258+
* source instance. This field is only applicable for cross project PITRs.
259+
*
260+
* @param DatabaseInstance $targetInstanceSettings
261+
*/
262+
public function setTargetInstanceSettings(DatabaseInstance $targetInstanceSettings)
263+
{
264+
$this->targetInstanceSettings = $targetInstanceSettings;
265+
}
266+
/**
267+
* @return DatabaseInstance
268+
*/
269+
public function getTargetInstanceSettings()
270+
{
271+
return $this->targetInstanceSettings;
272+
}
205273
}
206274

207275
// Adding a class alias for backwards compatibility with the previous class name.

0 commit comments

Comments
 (0)