Skip to content

Commit 84c996b

Browse files
1 parent 1390b2b commit 84c996b

7 files changed

Lines changed: 251 additions & 1 deletion

src/Backupdr/Backup.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ class Backup extends \Google\Collection
143143
* @var string
144144
*/
145145
public $expireTime;
146+
protected $filestoreInstanceBackupPropertiesType = FilestoreInstanceBackupProperties::class;
147+
protected $filestoreInstanceBackupPropertiesDataType = '';
146148
protected $gcpBackupPlanInfoType = GCPBackupPlanInfo::class;
147149
protected $gcpBackupPlanInfoDataType = '';
148150
protected $gcpResourceType = BackupGcpResource::class;
@@ -437,6 +439,22 @@ public function getExpireTime()
437439
{
438440
return $this->expireTime;
439441
}
442+
/**
443+
* Output only. Filestore specific backup properties.
444+
*
445+
* @param FilestoreInstanceBackupProperties $filestoreInstanceBackupProperties
446+
*/
447+
public function setFilestoreInstanceBackupProperties(FilestoreInstanceBackupProperties $filestoreInstanceBackupProperties)
448+
{
449+
$this->filestoreInstanceBackupProperties = $filestoreInstanceBackupProperties;
450+
}
451+
/**
452+
* @return FilestoreInstanceBackupProperties
453+
*/
454+
public function getFilestoreInstanceBackupProperties()
455+
{
456+
return $this->filestoreInstanceBackupProperties;
457+
}
440458
/**
441459
* Output only. Configuration for a Google Cloud resource.
442460
*

src/Backupdr/DataSourceGcpResource.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ class DataSourceGcpResource extends \Google\Model
2727
protected $computeInstanceDatasourcePropertiesDataType = '';
2828
protected $diskDatasourcePropertiesType = DiskDataSourceProperties::class;
2929
protected $diskDatasourcePropertiesDataType = '';
30+
protected $filestoreInstanceDatasourcePropertiesType = FilestoreInstanceDataSourceProperties::class;
31+
protected $filestoreInstanceDatasourcePropertiesDataType = '';
3032
/**
3133
* Output only. Full resource pathname URL of the source Google Cloud
3234
* resource.
@@ -118,6 +120,23 @@ public function getDiskDatasourceProperties()
118120
{
119121
return $this->diskDatasourceProperties;
120122
}
123+
/**
124+
* Output only. FilestoreInstanceDataSourceProperties has a subset of
125+
* FileStore instance properties that are useful at the Datasource level.
126+
*
127+
* @param FilestoreInstanceDataSourceProperties $filestoreInstanceDatasourceProperties
128+
*/
129+
public function setFilestoreInstanceDatasourceProperties(FilestoreInstanceDataSourceProperties $filestoreInstanceDatasourceProperties)
130+
{
131+
$this->filestoreInstanceDatasourceProperties = $filestoreInstanceDatasourceProperties;
132+
}
133+
/**
134+
* @return FilestoreInstanceDataSourceProperties
135+
*/
136+
public function getFilestoreInstanceDatasourceProperties()
137+
{
138+
return $this->filestoreInstanceDatasourceProperties;
139+
}
121140
/**
122141
* Output only. Full resource pathname URL of the source Google Cloud
123142
* resource.

src/Backupdr/DataSourceGcpResourceInfo.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ class DataSourceGcpResourceInfo extends \Google\Model
2323
protected $alloyDbClusterPropertiesDataType = '';
2424
protected $cloudSqlInstancePropertiesType = CloudSqlInstanceDataSourceReferenceProperties::class;
2525
protected $cloudSqlInstancePropertiesDataType = '';
26+
protected $filestoreInstancePropertiesType = FilestoreInstanceDataSourceReferenceProperties::class;
27+
protected $filestoreInstancePropertiesDataType = '';
2628
/**
2729
* Output only. The resource name of the Google Cloud resource. Ex:
2830
* projects/{project}/zones/{zone}/instances/{instance}
@@ -77,6 +79,22 @@ public function getCloudSqlInstanceProperties()
7779
{
7880
return $this->cloudSqlInstanceProperties;
7981
}
82+
/**
83+
* Output only. The properties of the Filestore instance.
84+
*
85+
* @param FilestoreInstanceDataSourceReferenceProperties $filestoreInstanceProperties
86+
*/
87+
public function setFilestoreInstanceProperties(FilestoreInstanceDataSourceReferenceProperties $filestoreInstanceProperties)
88+
{
89+
$this->filestoreInstanceProperties = $filestoreInstanceProperties;
90+
}
91+
/**
92+
* @return FilestoreInstanceDataSourceReferenceProperties
93+
*/
94+
public function getFilestoreInstanceProperties()
95+
{
96+
return $this->filestoreInstanceProperties;
97+
}
8098
/**
8199
* Output only. The resource name of the Google Cloud resource. Ex:
82100
* projects/{project}/zones/{zone}/instances/{instance}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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\Backupdr;
19+
20+
class FilestoreInstanceBackupProperties extends \Google\Model
21+
{
22+
/**
23+
* Output only. The source instance of the backup.
24+
*
25+
* @var string
26+
*/
27+
public $sourceInstance;
28+
29+
/**
30+
* Output only. The source instance of the backup.
31+
*
32+
* @param string $sourceInstance
33+
*/
34+
public function setSourceInstance($sourceInstance)
35+
{
36+
$this->sourceInstance = $sourceInstance;
37+
}
38+
/**
39+
* @return string
40+
*/
41+
public function getSourceInstance()
42+
{
43+
return $this->sourceInstance;
44+
}
45+
}
46+
47+
// Adding a class alias for backwards compatibility with the previous class name.
48+
class_alias(FilestoreInstanceBackupProperties::class, 'Google_Service_Backupdr_FilestoreInstanceBackupProperties');
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
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\Backupdr;
19+
20+
class FilestoreInstanceDataSourceProperties extends \Google\Model
21+
{
22+
/**
23+
* Output only. The instance creation timestamp.
24+
*
25+
* @var string
26+
*/
27+
public $instanceCreateTime;
28+
/**
29+
* Output only. Name of the Filestore instance backed up by the datasource.
30+
*
31+
* @var string
32+
*/
33+
public $name;
34+
35+
/**
36+
* Output only. The instance creation timestamp.
37+
*
38+
* @param string $instanceCreateTime
39+
*/
40+
public function setInstanceCreateTime($instanceCreateTime)
41+
{
42+
$this->instanceCreateTime = $instanceCreateTime;
43+
}
44+
/**
45+
* @return string
46+
*/
47+
public function getInstanceCreateTime()
48+
{
49+
return $this->instanceCreateTime;
50+
}
51+
/**
52+
* Output only. Name of the Filestore instance backed up by the datasource.
53+
*
54+
* @param string $name
55+
*/
56+
public function setName($name)
57+
{
58+
$this->name = $name;
59+
}
60+
/**
61+
* @return string
62+
*/
63+
public function getName()
64+
{
65+
return $this->name;
66+
}
67+
}
68+
69+
// Adding a class alias for backwards compatibility with the previous class name.
70+
class_alias(FilestoreInstanceDataSourceProperties::class, 'Google_Service_Backupdr_FilestoreInstanceDataSourceProperties');
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
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\Backupdr;
19+
20+
class FilestoreInstanceDataSourceReferenceProperties extends \Google\Model
21+
{
22+
/**
23+
* Output only. The instance creation timestamp.
24+
*
25+
* @var string
26+
*/
27+
public $instanceCreateTime;
28+
/**
29+
* Output only. Name of the Filestore instance backed up by the datasource.
30+
* Format: projects/{project}/instances/{instance}
31+
*
32+
* @var string
33+
*/
34+
public $name;
35+
36+
/**
37+
* Output only. The instance creation timestamp.
38+
*
39+
* @param string $instanceCreateTime
40+
*/
41+
public function setInstanceCreateTime($instanceCreateTime)
42+
{
43+
$this->instanceCreateTime = $instanceCreateTime;
44+
}
45+
/**
46+
* @return string
47+
*/
48+
public function getInstanceCreateTime()
49+
{
50+
return $this->instanceCreateTime;
51+
}
52+
/**
53+
* Output only. Name of the Filestore instance backed up by the datasource.
54+
* Format: projects/{project}/instances/{instance}
55+
*
56+
* @param string $name
57+
*/
58+
public function setName($name)
59+
{
60+
$this->name = $name;
61+
}
62+
/**
63+
* @return string
64+
*/
65+
public function getName()
66+
{
67+
return $this->name;
68+
}
69+
}
70+
71+
// Adding a class alias for backwards compatibility with the previous class name.
72+
class_alias(FilestoreInstanceDataSourceReferenceProperties::class, 'Google_Service_Backupdr_FilestoreInstanceDataSourceReferenceProperties');

src/Backupdr/ResourceBackupConfig.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ class ResourceBackupConfig extends \Google\Collection
3939
* Compute Engine Regional Disk.
4040
*/
4141
public const TARGET_RESOURCE_TYPE_COMPUTE_ENGINE_REGIONAL_DISK = 'COMPUTE_ENGINE_REGIONAL_DISK';
42+
/**
43+
* Filestore Instance.
44+
*/
45+
public const TARGET_RESOURCE_TYPE_FILESTORE_INSTANCE = 'FILESTORE_INSTANCE';
4246
protected $collection_key = 'backupConfigsDetails';
4347
protected $backupConfigsDetailsType = BackupConfigDetails::class;
4448
protected $backupConfigsDetailsDataType = 'array';
@@ -207,7 +211,8 @@ public function getTargetResourceLabels()
207211
* Output only. The type of the target resource.
208212
*
209213
* Accepted values: RESOURCE_TYPE_UNSPECIFIED, CLOUD_SQL_INSTANCE,
210-
* COMPUTE_ENGINE_VM, COMPUTE_ENGINE_DISK, COMPUTE_ENGINE_REGIONAL_DISK
214+
* COMPUTE_ENGINE_VM, COMPUTE_ENGINE_DISK, COMPUTE_ENGINE_REGIONAL_DISK,
215+
* FILESTORE_INSTANCE
211216
*
212217
* @param self::TARGET_RESOURCE_TYPE_* $targetResourceType
213218
*/

0 commit comments

Comments
 (0)