Skip to content

Commit 670d19c

Browse files
1 parent 0836d4b commit 670d19c

5 files changed

Lines changed: 77 additions & 9 deletions

File tree

src/SQLAdmin/ExecuteSqlPayload.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class ExecuteSqlPayload extends \Google\Model
4343
*/
4444
public $application;
4545
/**
46-
* Optional. When set to true, the API caller identity associated with the
46+
* Optional. When set to `true`, the API caller identity associated with the
4747
* request is used for database authentication. The API caller must be an IAM
4848
* user in the database.
4949
*
@@ -105,7 +105,7 @@ public function getApplication()
105105
return $this->application;
106106
}
107107
/**
108-
* Optional. When set to true, the API caller identity associated with the
108+
* Optional. When set to `true`, the API caller identity associated with the
109109
* request is used for database authentication. The API caller must be an IAM
110110
* user in the database.
111111
*

src/SQLAdmin/Operation.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,10 @@ class Operation extends \Google\Model
250250
* Creates a Cloud SQL read pool instance.
251251
*/
252252
public const OPERATION_TYPE_CREATE_READ_POOL = 'CREATE_READ_POOL';
253+
/**
254+
* Pre-checks the major version upgrade operation.
255+
*/
256+
public const OPERATION_TYPE_PRE_CHECK_MAJOR_VERSION_UPGRADE = 'PRE_CHECK_MAJOR_VERSION_UPGRADE';
253257
/**
254258
* The state of the operation is unknown.
255259
*/
@@ -548,7 +552,8 @@ public function getName()
548552
* UPDATE_BACKUP, ACQUIRE_SSRS_LEASE, RELEASE_SSRS_LEASE,
549553
* RECONFIGURE_OLD_PRIMARY, CLUSTER_MAINTENANCE, SELF_SERVICE_MAINTENANCE,
550554
* SWITCHOVER_TO_REPLICA, MAJOR_VERSION_UPGRADE, ADVANCED_BACKUP,
551-
* MANAGE_BACKUP, ENHANCED_BACKUP, REPAIR_READ_POOL, CREATE_READ_POOL
555+
* MANAGE_BACKUP, ENHANCED_BACKUP, REPAIR_READ_POOL, CREATE_READ_POOL,
556+
* PRE_CHECK_MAJOR_VERSION_UPGRADE
552557
*
553558
* @param self::OPERATION_TYPE_* $operationType
554559
*/

src/SQLAdmin/PscAutoConnectionConfig.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ class PscAutoConnectionConfig extends \Google\Model
3737
public $consumerNetworkStatus;
3838
/**
3939
* Optional. This is the project ID of consumer service project of this
40-
* consumer endpoint. Optional. This is only applicable if consumer_network is
41-
* a shared vpc network.
40+
* consumer endpoint. This is only applicable if `consumer_network` is a
41+
* shared VPC network.
4242
*
4343
* @var string
4444
*/
@@ -94,8 +94,8 @@ public function getConsumerNetworkStatus()
9494
}
9595
/**
9696
* Optional. This is the project ID of consumer service project of this
97-
* consumer endpoint. Optional. This is only applicable if consumer_network is
98-
* a shared vpc network.
97+
* consumer endpoint. This is only applicable if `consumer_network` is a
98+
* shared VPC network.
9999
*
100100
* @param string $consumerProject
101101
*/

src/SQLAdmin/PscConfig.php

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,34 @@ class PscConfig extends \Google\Collection
4040
public $networkAttachmentUri;
4141
protected $pscAutoConnectionsType = PscAutoConnectionConfig::class;
4242
protected $pscAutoConnectionsDataType = 'array';
43+
/**
44+
* Optional. Indicates whether PSC DNS automation is enabled for this
45+
* instance. When enabled, Cloud SQL provisions a universal DNS record across
46+
* all networks configured with Private Service Connect (PSC) auto-
47+
* connections. This will default to true for new instances when Private
48+
* Service Connect is enabled.
49+
*
50+
* @var bool
51+
*/
52+
public $pscAutoDnsEnabled;
4353
/**
4454
* Whether PSC connectivity is enabled for this instance.
4555
*
4656
* @var bool
4757
*/
4858
public $pscEnabled;
59+
/**
60+
* Optional. Indicates whether PSC write endpoint DNS automation is enabled
61+
* for this instance. When enabled, Cloud SQL provisions a universal global
62+
* DNS record across all networks configured with Private Service Connect
63+
* (PSC) auto-connections that always points to the cluster primary instance.
64+
* This feature is only supported for Enterprise Plus edition. This will
65+
* default to true for new Enterprise Plus instances when
66+
* `psc_auto_dns_enabled` is enabled.
67+
*
68+
* @var bool
69+
*/
70+
public $pscWriteEndpointDnsEnabled;
4971

5072
/**
5173
* Optional. The list of consumer projects that are allow-listed for PSC
@@ -102,6 +124,26 @@ public function getPscAutoConnections()
102124
{
103125
return $this->pscAutoConnections;
104126
}
127+
/**
128+
* Optional. Indicates whether PSC DNS automation is enabled for this
129+
* instance. When enabled, Cloud SQL provisions a universal DNS record across
130+
* all networks configured with Private Service Connect (PSC) auto-
131+
* connections. This will default to true for new instances when Private
132+
* Service Connect is enabled.
133+
*
134+
* @param bool $pscAutoDnsEnabled
135+
*/
136+
public function setPscAutoDnsEnabled($pscAutoDnsEnabled)
137+
{
138+
$this->pscAutoDnsEnabled = $pscAutoDnsEnabled;
139+
}
140+
/**
141+
* @return bool
142+
*/
143+
public function getPscAutoDnsEnabled()
144+
{
145+
return $this->pscAutoDnsEnabled;
146+
}
105147
/**
106148
* Whether PSC connectivity is enabled for this instance.
107149
*
@@ -118,6 +160,28 @@ public function getPscEnabled()
118160
{
119161
return $this->pscEnabled;
120162
}
163+
/**
164+
* Optional. Indicates whether PSC write endpoint DNS automation is enabled
165+
* for this instance. When enabled, Cloud SQL provisions a universal global
166+
* DNS record across all networks configured with Private Service Connect
167+
* (PSC) auto-connections that always points to the cluster primary instance.
168+
* This feature is only supported for Enterprise Plus edition. This will
169+
* default to true for new Enterprise Plus instances when
170+
* `psc_auto_dns_enabled` is enabled.
171+
*
172+
* @param bool $pscWriteEndpointDnsEnabled
173+
*/
174+
public function setPscWriteEndpointDnsEnabled($pscWriteEndpointDnsEnabled)
175+
{
176+
$this->pscWriteEndpointDnsEnabled = $pscWriteEndpointDnsEnabled;
177+
}
178+
/**
179+
* @return bool
180+
*/
181+
public function getPscWriteEndpointDnsEnabled()
182+
{
183+
return $this->pscWriteEndpointDnsEnabled;
184+
}
121185
}
122186

123187
// Adding a class alias for backwards compatibility with the previous class name.

src/SQLAdmin/Resource/Instances.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,7 @@ public function addServerCertificate($project, $instance, $optParams = [])
224224
* Creates a Cloud SQL instance as a clone of the source instance. Using this
225225
* operation might cause your instance to restart. (instances.cloneInstances)
226226
*
227-
* @param string $project Required. Project ID of the source as well as the
228-
* clone Cloud SQL instance.
227+
* @param string $project Required. Project ID of the source Cloud SQL instance.
229228
* @param string $instance Required. The ID of the Cloud SQL instance to be
230229
* cloned (source). This does not include the project ID.
231230
* @param InstancesCloneRequest $postBody

0 commit comments

Comments
 (0)