Skip to content

Commit d3222ef

Browse files
1 parent 89a5246 commit d3222ef

4 files changed

Lines changed: 108 additions & 5 deletions

File tree

src/Backupdr/BackupPlan.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ class BackupPlan extends \Google\Collection
6262
* @var string
6363
*/
6464
public $backupVaultServiceAccount;
65+
protected $computeInstanceBackupPlanPropertiesType = ComputeInstanceBackupPlanProperties::class;
66+
protected $computeInstanceBackupPlanPropertiesDataType = '';
6567
/**
6668
* Output only. When the `BackupPlan` was created.
6769
*
@@ -214,6 +216,24 @@ public function getBackupVaultServiceAccount()
214216
{
215217
return $this->backupVaultServiceAccount;
216218
}
219+
/**
220+
* Optional. Defines optional properties specific to backups of disk-based
221+
* resources, such as Compute Engine. This includes settings like whether to
222+
* perform a guest flush.
223+
*
224+
* @param ComputeInstanceBackupPlanProperties $computeInstanceBackupPlanProperties
225+
*/
226+
public function setComputeInstanceBackupPlanProperties(ComputeInstanceBackupPlanProperties $computeInstanceBackupPlanProperties)
227+
{
228+
$this->computeInstanceBackupPlanProperties = $computeInstanceBackupPlanProperties;
229+
}
230+
/**
231+
* @return ComputeInstanceBackupPlanProperties
232+
*/
233+
public function getComputeInstanceBackupPlanProperties()
234+
{
235+
return $this->computeInstanceBackupPlanProperties;
236+
}
217237
/**
218238
* Output only. When the `BackupPlan` was created.
219239
*
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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 ComputeInstanceBackupPlanProperties extends \Google\Model
21+
{
22+
/**
23+
* Optional. Indicates whether to perform a guest flush operation before
24+
* taking a compute backup. When set to false, the system will create crash-
25+
* consistent backups. Default value is false.
26+
*
27+
* @var bool
28+
*/
29+
public $guestFlush;
30+
31+
/**
32+
* Optional. Indicates whether to perform a guest flush operation before
33+
* taking a compute backup. When set to false, the system will create crash-
34+
* consistent backups. Default value is false.
35+
*
36+
* @param bool $guestFlush
37+
*/
38+
public function setGuestFlush($guestFlush)
39+
{
40+
$this->guestFlush = $guestFlush;
41+
}
42+
/**
43+
* @return bool
44+
*/
45+
public function getGuestFlush()
46+
{
47+
return $this->guestFlush;
48+
}
49+
}
50+
51+
// Adding a class alias for backwards compatibility with the previous class name.
52+
class_alias(ComputeInstanceBackupPlanProperties::class, 'Google_Service_Backupdr_ComputeInstanceBackupPlanProperties');

src/Backupdr/ComputeInstanceBackupProperties.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,14 @@ class ComputeInstanceBackupProperties extends \Google\Collection
5555
protected $diskDataType = 'array';
5656
protected $guestAcceleratorType = AcceleratorConfig::class;
5757
protected $guestAcceleratorDataType = 'array';
58+
/**
59+
* Optional. Indicates whether to perform a guest flush operation before
60+
* taking a compute backup. When set to false, the system will create crash-
61+
* consistent backups. Default value is false.
62+
*
63+
* @var bool
64+
*/
65+
public $guestFlush;
5866
/**
5967
* KeyRevocationActionType of the instance. Supported options are "STOP" and
6068
* "NONE". The default value is "NONE" if it is not specified.
@@ -178,6 +186,24 @@ public function getGuestAccelerator()
178186
{
179187
return $this->guestAccelerator;
180188
}
189+
/**
190+
* Optional. Indicates whether to perform a guest flush operation before
191+
* taking a compute backup. When set to false, the system will create crash-
192+
* consistent backups. Default value is false.
193+
*
194+
* @param bool $guestFlush
195+
*/
196+
public function setGuestFlush($guestFlush)
197+
{
198+
$this->guestFlush = $guestFlush;
199+
}
200+
/**
201+
* @return bool
202+
*/
203+
public function getGuestFlush()
204+
{
205+
return $this->guestFlush;
206+
}
181207
/**
182208
* KeyRevocationActionType of the instance. Supported options are "STOP" and
183209
* "NONE". The default value is "NONE" if it is not specified.

src/Backupdr/Resource/ProjectsLocations.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,16 @@ public function getTrial($name, $optParams = [])
6363
}
6464
/**
6565
* Lists information about the supported locations for this service. This method
66-
* can be called in two ways: * **List all public locations:** Use the path `GET
67-
* /v1/locations`. * **List project-visible locations:** Use the path `GET
68-
* /v1/projects/{project_id}/locations`. This may include public locations as
69-
* well as private or other locations specifically visible to the project.
70-
* (locations.listProjectsLocations)
66+
* lists locations based on the resource scope provided in the
67+
* [ListLocationsRequest.name] field: * **Global locations**: If `name` is
68+
* empty, the method lists the public locations available to all projects. *
69+
* **Project-specific locations**: If `name` follows the format
70+
* `projects/{project}`, the method lists locations visible to that specific
71+
* project. This includes public, private, or other project-specific locations
72+
* enabled for the project. For gRPC and client library implementations, the
73+
* resource name is passed as the `name` field. For direct service calls, the
74+
* resource name is incorporated into the request path based on the specific
75+
* service implementation and version. (locations.listProjectsLocations)
7176
*
7277
* @param string $name The resource that owns the locations collection, if
7378
* applicable.

0 commit comments

Comments
 (0)