Skip to content

Commit 4013fb1

Browse files
1 parent e78cf8f commit 4013fb1

9 files changed

Lines changed: 405 additions & 0 deletions

src/Backupdr.php

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,6 +717,40 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
717717
'type' => 'string',
718718
],
719719
],
720+
],'fetchForResourceType' => [
721+
'path' => 'v1/{+parent}/backups:fetchForResourceType',
722+
'httpMethod' => 'GET',
723+
'parameters' => [
724+
'parent' => [
725+
'location' => 'path',
726+
'type' => 'string',
727+
'required' => true,
728+
],
729+
'filter' => [
730+
'location' => 'query',
731+
'type' => 'string',
732+
],
733+
'orderBy' => [
734+
'location' => 'query',
735+
'type' => 'string',
736+
],
737+
'pageSize' => [
738+
'location' => 'query',
739+
'type' => 'integer',
740+
],
741+
'pageToken' => [
742+
'location' => 'query',
743+
'type' => 'string',
744+
],
745+
'resourceType' => [
746+
'location' => 'query',
747+
'type' => 'string',
748+
],
749+
'view' => [
750+
'location' => 'query',
751+
'type' => 'string',
752+
],
753+
],
720754
],'get' => [
721755
'path' => 'v1/{+name}',
722756
'httpMethod' => 'GET',
@@ -839,6 +873,32 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
839873
'required' => true,
840874
],
841875
],
876+
],'list' => [
877+
'path' => 'v1/{+parent}/dataSourceReferences',
878+
'httpMethod' => 'GET',
879+
'parameters' => [
880+
'parent' => [
881+
'location' => 'path',
882+
'type' => 'string',
883+
'required' => true,
884+
],
885+
'filter' => [
886+
'location' => 'query',
887+
'type' => 'string',
888+
],
889+
'orderBy' => [
890+
'location' => 'query',
891+
'type' => 'string',
892+
],
893+
'pageSize' => [
894+
'location' => 'query',
895+
'type' => 'integer',
896+
],
897+
'pageToken' => [
898+
'location' => 'query',
899+
'type' => 'string',
900+
],
901+
],
842902
],
843903
]
844904
]

src/Backupdr/Backup.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ class Backup extends \Google\Collection
6262
public $expireTime;
6363
protected $gcpBackupPlanInfoType = GCPBackupPlanInfo::class;
6464
protected $gcpBackupPlanInfoDataType = '';
65+
protected $gcpResourceType = BackupGcpResource::class;
66+
protected $gcpResourceDataType = '';
6567
/**
6668
* @var string[]
6769
*/
@@ -289,6 +291,20 @@ public function getGcpBackupPlanInfo()
289291
{
290292
return $this->gcpBackupPlanInfo;
291293
}
294+
/**
295+
* @param BackupGcpResource
296+
*/
297+
public function setGcpResource(BackupGcpResource $gcpResource)
298+
{
299+
$this->gcpResource = $gcpResource;
300+
}
301+
/**
302+
* @return BackupGcpResource
303+
*/
304+
public function getGcpResource()
305+
{
306+
return $this->gcpResource;
307+
}
292308
/**
293309
* @param string[]
294310
*/

src/Backupdr/BackupGcpResource.php

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\Backupdr;
19+
20+
class BackupGcpResource extends \Google\Model
21+
{
22+
/**
23+
* @var string
24+
*/
25+
public $gcpResourcename;
26+
/**
27+
* @var string
28+
*/
29+
public $location;
30+
/**
31+
* @var string
32+
*/
33+
public $type;
34+
35+
/**
36+
* @param string
37+
*/
38+
public function setGcpResourcename($gcpResourcename)
39+
{
40+
$this->gcpResourcename = $gcpResourcename;
41+
}
42+
/**
43+
* @return string
44+
*/
45+
public function getGcpResourcename()
46+
{
47+
return $this->gcpResourcename;
48+
}
49+
/**
50+
* @param string
51+
*/
52+
public function setLocation($location)
53+
{
54+
$this->location = $location;
55+
}
56+
/**
57+
* @return string
58+
*/
59+
public function getLocation()
60+
{
61+
return $this->location;
62+
}
63+
/**
64+
* @param string
65+
*/
66+
public function setType($type)
67+
{
68+
$this->type = $type;
69+
}
70+
/**
71+
* @return string
72+
*/
73+
public function getType()
74+
{
75+
return $this->type;
76+
}
77+
}
78+
79+
// Adding a class alias for backwards compatibility with the previous class name.
80+
class_alias(BackupGcpResource::class, 'Google_Service_Backupdr_BackupGcpResource');

src/Backupdr/CloudSqlInstanceBackupProperties.php

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@ class CloudSqlInstanceBackupProperties extends \Google\Model
2727
* @var bool
2828
*/
2929
public $finalBackup;
30+
/**
31+
* @var string
32+
*/
33+
public $instanceCreateTime;
34+
/**
35+
* @var string
36+
*/
37+
public $instanceDeleteTime;
3038
/**
3139
* @var string
3240
*/
@@ -64,6 +72,34 @@ public function getFinalBackup()
6472
{
6573
return $this->finalBackup;
6674
}
75+
/**
76+
* @param string
77+
*/
78+
public function setInstanceCreateTime($instanceCreateTime)
79+
{
80+
$this->instanceCreateTime = $instanceCreateTime;
81+
}
82+
/**
83+
* @return string
84+
*/
85+
public function getInstanceCreateTime()
86+
{
87+
return $this->instanceCreateTime;
88+
}
89+
/**
90+
* @param string
91+
*/
92+
public function setInstanceDeleteTime($instanceDeleteTime)
93+
{
94+
$this->instanceDeleteTime = $instanceDeleteTime;
95+
}
96+
/**
97+
* @return string
98+
*/
99+
public function getInstanceDeleteTime()
100+
{
101+
return $this->instanceDeleteTime;
102+
}
67103
/**
68104
* @param string
69105
*/

src/Backupdr/DataSourceReference.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ class DataSourceReference extends \Google\Model
4343
* @var string
4444
*/
4545
public $name;
46+
/**
47+
* @var string
48+
*/
49+
public $totalStoredBytes;
4650

4751
/**
4852
* @param string
@@ -142,6 +146,20 @@ public function getName()
142146
{
143147
return $this->name;
144148
}
149+
/**
150+
* @param string
151+
*/
152+
public function setTotalStoredBytes($totalStoredBytes)
153+
{
154+
$this->totalStoredBytes = $totalStoredBytes;
155+
}
156+
/**
157+
* @return string
158+
*/
159+
public function getTotalStoredBytes()
160+
{
161+
return $this->totalStoredBytes;
162+
}
145163
}
146164

147165
// Adding a class alias for backwards compatibility with the previous class name.
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
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 FetchBackupsForResourceTypeResponse extends \Google\Collection
21+
{
22+
protected $collection_key = 'backups';
23+
protected $backupsType = Backup::class;
24+
protected $backupsDataType = 'array';
25+
/**
26+
* @var string
27+
*/
28+
public $nextPageToken;
29+
30+
/**
31+
* @param Backup[]
32+
*/
33+
public function setBackups($backups)
34+
{
35+
$this->backups = $backups;
36+
}
37+
/**
38+
* @return Backup[]
39+
*/
40+
public function getBackups()
41+
{
42+
return $this->backups;
43+
}
44+
/**
45+
* @param string
46+
*/
47+
public function setNextPageToken($nextPageToken)
48+
{
49+
$this->nextPageToken = $nextPageToken;
50+
}
51+
/**
52+
* @return string
53+
*/
54+
public function getNextPageToken()
55+
{
56+
return $this->nextPageToken;
57+
}
58+
}
59+
60+
// Adding a class alias for backwards compatibility with the previous class name.
61+
class_alias(FetchBackupsForResourceTypeResponse::class, 'Google_Service_Backupdr_FetchBackupsForResourceTypeResponse');
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
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 ListDataSourceReferencesResponse extends \Google\Collection
21+
{
22+
protected $collection_key = 'dataSourceReferences';
23+
protected $dataSourceReferencesType = DataSourceReference::class;
24+
protected $dataSourceReferencesDataType = 'array';
25+
/**
26+
* @var string
27+
*/
28+
public $nextPageToken;
29+
30+
/**
31+
* @param DataSourceReference[]
32+
*/
33+
public function setDataSourceReferences($dataSourceReferences)
34+
{
35+
$this->dataSourceReferences = $dataSourceReferences;
36+
}
37+
/**
38+
* @return DataSourceReference[]
39+
*/
40+
public function getDataSourceReferences()
41+
{
42+
return $this->dataSourceReferences;
43+
}
44+
/**
45+
* @param string
46+
*/
47+
public function setNextPageToken($nextPageToken)
48+
{
49+
$this->nextPageToken = $nextPageToken;
50+
}
51+
/**
52+
* @return string
53+
*/
54+
public function getNextPageToken()
55+
{
56+
return $this->nextPageToken;
57+
}
58+
}
59+
60+
// Adding a class alias for backwards compatibility with the previous class name.
61+
class_alias(ListDataSourceReferencesResponse::class, 'Google_Service_Backupdr_ListDataSourceReferencesResponse');

0 commit comments

Comments
 (0)