Skip to content

Commit b953dfb

Browse files
1 parent 009ee7f commit b953dfb

10 files changed

Lines changed: 836 additions & 0 deletions

src/Backupdr.php

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ class Backupdr extends \Google\Service
4646
public $projects_locations_backupVaults_dataSources_backups;
4747
public $projects_locations_managementServers;
4848
public $projects_locations_operations;
49+
public $projects_locations_resourceBackupConfigs;
4950
public $projects_locations_serviceConfig;
5051
public $rootUrlTemplate;
5152

@@ -840,6 +841,42 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
840841
]
841842
]
842843
);
844+
$this->projects_locations_resourceBackupConfigs = new Backupdr\Resource\ProjectsLocationsResourceBackupConfigs(
845+
$this,
846+
$this->serviceName,
847+
'resourceBackupConfigs',
848+
[
849+
'methods' => [
850+
'list' => [
851+
'path' => 'v1/{+parent}/resourceBackupConfigs',
852+
'httpMethod' => 'GET',
853+
'parameters' => [
854+
'parent' => [
855+
'location' => 'path',
856+
'type' => 'string',
857+
'required' => true,
858+
],
859+
'filter' => [
860+
'location' => 'query',
861+
'type' => 'string',
862+
],
863+
'orderBy' => [
864+
'location' => 'query',
865+
'type' => 'string',
866+
],
867+
'pageSize' => [
868+
'location' => 'query',
869+
'type' => 'integer',
870+
],
871+
'pageToken' => [
872+
'location' => 'query',
873+
'type' => 'string',
874+
],
875+
],
876+
],
877+
]
878+
]
879+
);
843880
$this->projects_locations_serviceConfig = new Backupdr\Resource\ProjectsLocationsServiceConfig(
844881
$this,
845882
$this->serviceName,
Lines changed: 217 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,217 @@
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 BackupConfigDetails extends \Google\Collection
21+
{
22+
protected $collection_key = 'backupLocations';
23+
/**
24+
* @var string
25+
*/
26+
public $applicableResource;
27+
/**
28+
* @var string
29+
*/
30+
public $backupConfigSource;
31+
/**
32+
* @var string
33+
*/
34+
public $backupConfigSourceDisplayName;
35+
protected $backupDrPlanConfigType = BackupDrPlanConfig::class;
36+
protected $backupDrPlanConfigDataType = '';
37+
protected $backupDrTemplateConfigType = BackupDrTemplateConfig::class;
38+
protected $backupDrTemplateConfigDataType = '';
39+
protected $backupLocationsType = BackupLocation::class;
40+
protected $backupLocationsDataType = 'array';
41+
/**
42+
* @var string
43+
*/
44+
public $backupVault;
45+
/**
46+
* @var string
47+
*/
48+
public $latestSuccessfulBackupTime;
49+
protected $pitrSettingsType = PitrSettings::class;
50+
protected $pitrSettingsDataType = '';
51+
/**
52+
* @var string
53+
*/
54+
public $state;
55+
/**
56+
* @var string
57+
*/
58+
public $type;
59+
60+
/**
61+
* @param string
62+
*/
63+
public function setApplicableResource($applicableResource)
64+
{
65+
$this->applicableResource = $applicableResource;
66+
}
67+
/**
68+
* @return string
69+
*/
70+
public function getApplicableResource()
71+
{
72+
return $this->applicableResource;
73+
}
74+
/**
75+
* @param string
76+
*/
77+
public function setBackupConfigSource($backupConfigSource)
78+
{
79+
$this->backupConfigSource = $backupConfigSource;
80+
}
81+
/**
82+
* @return string
83+
*/
84+
public function getBackupConfigSource()
85+
{
86+
return $this->backupConfigSource;
87+
}
88+
/**
89+
* @param string
90+
*/
91+
public function setBackupConfigSourceDisplayName($backupConfigSourceDisplayName)
92+
{
93+
$this->backupConfigSourceDisplayName = $backupConfigSourceDisplayName;
94+
}
95+
/**
96+
* @return string
97+
*/
98+
public function getBackupConfigSourceDisplayName()
99+
{
100+
return $this->backupConfigSourceDisplayName;
101+
}
102+
/**
103+
* @param BackupDrPlanConfig
104+
*/
105+
public function setBackupDrPlanConfig(BackupDrPlanConfig $backupDrPlanConfig)
106+
{
107+
$this->backupDrPlanConfig = $backupDrPlanConfig;
108+
}
109+
/**
110+
* @return BackupDrPlanConfig
111+
*/
112+
public function getBackupDrPlanConfig()
113+
{
114+
return $this->backupDrPlanConfig;
115+
}
116+
/**
117+
* @param BackupDrTemplateConfig
118+
*/
119+
public function setBackupDrTemplateConfig(BackupDrTemplateConfig $backupDrTemplateConfig)
120+
{
121+
$this->backupDrTemplateConfig = $backupDrTemplateConfig;
122+
}
123+
/**
124+
* @return BackupDrTemplateConfig
125+
*/
126+
public function getBackupDrTemplateConfig()
127+
{
128+
return $this->backupDrTemplateConfig;
129+
}
130+
/**
131+
* @param BackupLocation[]
132+
*/
133+
public function setBackupLocations($backupLocations)
134+
{
135+
$this->backupLocations = $backupLocations;
136+
}
137+
/**
138+
* @return BackupLocation[]
139+
*/
140+
public function getBackupLocations()
141+
{
142+
return $this->backupLocations;
143+
}
144+
/**
145+
* @param string
146+
*/
147+
public function setBackupVault($backupVault)
148+
{
149+
$this->backupVault = $backupVault;
150+
}
151+
/**
152+
* @return string
153+
*/
154+
public function getBackupVault()
155+
{
156+
return $this->backupVault;
157+
}
158+
/**
159+
* @param string
160+
*/
161+
public function setLatestSuccessfulBackupTime($latestSuccessfulBackupTime)
162+
{
163+
$this->latestSuccessfulBackupTime = $latestSuccessfulBackupTime;
164+
}
165+
/**
166+
* @return string
167+
*/
168+
public function getLatestSuccessfulBackupTime()
169+
{
170+
return $this->latestSuccessfulBackupTime;
171+
}
172+
/**
173+
* @param PitrSettings
174+
*/
175+
public function setPitrSettings(PitrSettings $pitrSettings)
176+
{
177+
$this->pitrSettings = $pitrSettings;
178+
}
179+
/**
180+
* @return PitrSettings
181+
*/
182+
public function getPitrSettings()
183+
{
184+
return $this->pitrSettings;
185+
}
186+
/**
187+
* @param string
188+
*/
189+
public function setState($state)
190+
{
191+
$this->state = $state;
192+
}
193+
/**
194+
* @return string
195+
*/
196+
public function getState()
197+
{
198+
return $this->state;
199+
}
200+
/**
201+
* @param string
202+
*/
203+
public function setType($type)
204+
{
205+
$this->type = $type;
206+
}
207+
/**
208+
* @return string
209+
*/
210+
public function getType()
211+
{
212+
return $this->type;
213+
}
214+
}
215+
216+
// Adding a class alias for backwards compatibility with the previous class name.
217+
class_alias(BackupConfigDetails::class, 'Google_Service_Backupdr_BackupConfigDetails');
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\Backupdr;
19+
20+
class BackupDrPlanConfig extends \Google\Collection
21+
{
22+
protected $collection_key = 'backupDrPlanRules';
23+
protected $backupDrPlanRulesType = BackupDrPlanRule::class;
24+
protected $backupDrPlanRulesDataType = 'array';
25+
26+
/**
27+
* @param BackupDrPlanRule[]
28+
*/
29+
public function setBackupDrPlanRules($backupDrPlanRules)
30+
{
31+
$this->backupDrPlanRules = $backupDrPlanRules;
32+
}
33+
/**
34+
* @return BackupDrPlanRule[]
35+
*/
36+
public function getBackupDrPlanRules()
37+
{
38+
return $this->backupDrPlanRules;
39+
}
40+
}
41+
42+
// Adding a class alias for backwards compatibility with the previous class name.
43+
class_alias(BackupDrPlanConfig::class, 'Google_Service_Backupdr_BackupDrPlanConfig');

src/Backupdr/BackupDrPlanRule.php

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
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 BackupDrPlanRule extends \Google\Model
21+
{
22+
/**
23+
* @var string
24+
*/
25+
public $lastSuccessfulBackupTime;
26+
/**
27+
* @var string
28+
*/
29+
public $ruleId;
30+
31+
/**
32+
* @param string
33+
*/
34+
public function setLastSuccessfulBackupTime($lastSuccessfulBackupTime)
35+
{
36+
$this->lastSuccessfulBackupTime = $lastSuccessfulBackupTime;
37+
}
38+
/**
39+
* @return string
40+
*/
41+
public function getLastSuccessfulBackupTime()
42+
{
43+
return $this->lastSuccessfulBackupTime;
44+
}
45+
/**
46+
* @param string
47+
*/
48+
public function setRuleId($ruleId)
49+
{
50+
$this->ruleId = $ruleId;
51+
}
52+
/**
53+
* @return string
54+
*/
55+
public function getRuleId()
56+
{
57+
return $this->ruleId;
58+
}
59+
}
60+
61+
// Adding a class alias for backwards compatibility with the previous class name.
62+
class_alias(BackupDrPlanRule::class, 'Google_Service_Backupdr_BackupDrPlanRule');

0 commit comments

Comments
 (0)