Skip to content

Commit 6dfd03a

Browse files
1 parent e4663f9 commit 6dfd03a

4 files changed

Lines changed: 87 additions & 5 deletions

File tree

src/CloudAlloyDBAdmin/Node.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ class Node extends \Google\Model
3131
* @var string
3232
*/
3333
public $ip;
34+
/**
35+
* Output only. Indicates whether the node set up to be configured as a hot
36+
* standby.
37+
*
38+
* @var bool
39+
*/
40+
public $isHotStandby;
3441
/**
3542
* Output only. Determined by state of the compute VM and postgres-service
3643
* health. Compute VM state can have values listed in
@@ -79,6 +86,23 @@ public function getIp()
7986
{
8087
return $this->ip;
8188
}
89+
/**
90+
* Output only. Indicates whether the node set up to be configured as a hot
91+
* standby.
92+
*
93+
* @param bool $isHotStandby
94+
*/
95+
public function setIsHotStandby($isHotStandby)
96+
{
97+
$this->isHotStandby = $isHotStandby;
98+
}
99+
/**
100+
* @return bool
101+
*/
102+
public function getIsHotStandby()
103+
{
104+
return $this->isHotStandby;
105+
}
82106
/**
83107
* Output only. Determined by state of the compute VM and postgres-service
84108
* health. Compute VM state can have values listed in

src/CloudAlloyDBAdmin/Resource/ProjectsLocations.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,16 @@ public function get($name, $optParams = [])
4646
}
4747
/**
4848
* Lists information about the supported locations for this service. This method
49-
* can be called in two ways: * **List all public locations:** Use the path `GET
50-
* /v1/locations`. * **List project-visible locations:** Use the path `GET
51-
* /v1/projects/{project_id}/locations`. This may include public locations as
52-
* well as private or other locations specifically visible to the project.
53-
* (locations.listProjectsLocations)
49+
* lists locations based on the resource scope provided in the
50+
* [ListLocationsRequest.name] field: * **Global locations**: If `name` is
51+
* empty, the method lists the public locations available to all projects. *
52+
* **Project-specific locations**: If `name` follows the format
53+
* `projects/{project}`, the method lists locations visible to that specific
54+
* project. This includes public, private, or other project-specific locations
55+
* enabled for the project. For gRPC and client library implementations, the
56+
* resource name is passed as the `name` field. For direct service calls, the
57+
* resource name is incorporated into the request path based on the specific
58+
* service implementation and version. (locations.listProjectsLocations)
5459
*
5560
* @param string $name The resource that owns the locations collection, if
5661
* applicable.

src/CloudAlloyDBAdmin/StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata.php

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,14 @@ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata extends \Goo
139139
* An instance acting as Read Pool.
140140
*/
141141
public const INSTANCE_TYPE_SUB_RESOURCE_TYPE_READ_POOL = 'SUB_RESOURCE_TYPE_READ_POOL';
142+
/**
143+
* Represents a reservation resource.
144+
*/
145+
public const INSTANCE_TYPE_SUB_RESOURCE_TYPE_RESERVATION = 'SUB_RESOURCE_TYPE_RESERVATION';
146+
/**
147+
* Represents a dataset resource.
148+
*/
149+
public const INSTANCE_TYPE_SUB_RESOURCE_TYPE_DATASET = 'SUB_RESOURCE_TYPE_DATASET';
142150
/**
143151
* For rest of the other categories.
144152
*/
@@ -239,6 +247,12 @@ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata extends \Goo
239247
protected $machineConfigurationDataType = '';
240248
protected $maintenanceInfoType = StorageDatabasecenterPartnerapiV1mainResourceMaintenanceInfo::class;
241249
protected $maintenanceInfoDataType = '';
250+
/**
251+
* Optional. The modes of the database resource.
252+
*
253+
* @var string[]
254+
*/
255+
public $modes;
242256
protected $primaryResourceIdType = StorageDatabasecenterPartnerapiV1mainDatabaseResourceId::class;
243257
protected $primaryResourceIdDataType = '';
244258
/**
@@ -510,6 +524,7 @@ public function getId()
510524
* PRIMARY, SECONDARY, READ_REPLICA, OTHER, SUB_RESOURCE_TYPE_PRIMARY,
511525
* SUB_RESOURCE_TYPE_SECONDARY, SUB_RESOURCE_TYPE_READ_REPLICA,
512526
* SUB_RESOURCE_TYPE_EXTERNAL_PRIMARY, SUB_RESOURCE_TYPE_READ_POOL,
527+
* SUB_RESOURCE_TYPE_RESERVATION, SUB_RESOURCE_TYPE_DATASET,
513528
* SUB_RESOURCE_TYPE_OTHER
514529
*
515530
* @param self::INSTANCE_TYPE_* $instanceType
@@ -589,6 +604,22 @@ public function getMaintenanceInfo()
589604
{
590605
return $this->maintenanceInfo;
591606
}
607+
/**
608+
* Optional. The modes of the database resource.
609+
*
610+
* @param string[] $modes
611+
*/
612+
public function setModes($modes)
613+
{
614+
$this->modes = $modes;
615+
}
616+
/**
617+
* @return string[]
618+
*/
619+
public function getModes()
620+
{
621+
return $this->modes;
622+
}
592623
/**
593624
* Identifier for this resource's immediate parent/primary resource if the
594625
* current resource is a replica or derived form of another Database resource.

src/CloudAlloyDBAdmin/StorageDatabasecenterPartnerapiV1mainDatabaseResourceSignalData.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,12 @@ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceSignalData extends \G
9696
* @var string
9797
*/
9898
public $lastRefreshTime;
99+
/**
100+
* Resource location.
101+
*
102+
* @var string
103+
*/
104+
public $location;
99105
protected $resourceIdType = StorageDatabasecenterPartnerapiV1mainDatabaseResourceId::class;
100106
protected $resourceIdDataType = '';
101107
/**
@@ -170,6 +176,22 @@ public function getLastRefreshTime()
170176
{
171177
return $this->lastRefreshTime;
172178
}
179+
/**
180+
* Resource location.
181+
*
182+
* @param string $location
183+
*/
184+
public function setLocation($location)
185+
{
186+
$this->location = $location;
187+
}
188+
/**
189+
* @return string
190+
*/
191+
public function getLocation()
192+
{
193+
return $this->location;
194+
}
173195
/**
174196
* Database resource id.
175197
*

0 commit comments

Comments
 (0)