diff --git a/AlloyDb/metadata/V1/Service.php b/AlloyDb/metadata/V1/Service.php index 25fefab0cca3..238c970fac62 100644 Binary files a/AlloyDb/metadata/V1/Service.php and b/AlloyDb/metadata/V1/Service.php differ diff --git a/AlloyDb/src/V1/Cluster/NetworkConfig.php b/AlloyDb/src/V1/Cluster/NetworkConfig.php index 579ed767a6b8..38e319e5da18 100644 --- a/AlloyDb/src/V1/Cluster/NetworkConfig.php +++ b/AlloyDb/src/V1/Cluster/NetworkConfig.php @@ -32,8 +32,8 @@ class NetworkConfig extends \Google\Protobuf\Internal\Message * instance IPs for this cluster will be created in the allocated range. The * range name must comply with RFC 1035. Specifically, the name must be 1-63 * characters long and match the regular expression - * [a-z]([-a-z0-9]*[a-z0-9])?. - * Field name is intended to be consistent with CloudSQL. + * `[a-z]([-a-z0-9]*[a-z0-9])?`. + * Field name is intended to be consistent with Cloud SQL. * * Generated from protobuf field string allocated_ip_range = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -58,8 +58,8 @@ class NetworkConfig extends \Google\Protobuf\Internal\Message * instance IPs for this cluster will be created in the allocated range. The * range name must comply with RFC 1035. Specifically, the name must be 1-63 * characters long and match the regular expression - * [a-z]([-a-z0-9]*[a-z0-9])?. - * Field name is intended to be consistent with CloudSQL. + * `[a-z]([-a-z0-9]*[a-z0-9])?`. + * Field name is intended to be consistent with Cloud SQL. * } */ public function __construct($data = NULL) { @@ -109,8 +109,8 @@ public function setNetwork($var) * instance IPs for this cluster will be created in the allocated range. The * range name must comply with RFC 1035. Specifically, the name must be 1-63 * characters long and match the regular expression - * [a-z]([-a-z0-9]*[a-z0-9])?. - * Field name is intended to be consistent with CloudSQL. + * `[a-z]([-a-z0-9]*[a-z0-9])?`. + * Field name is intended to be consistent with Cloud SQL. * * Generated from protobuf field string allocated_ip_range = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -126,8 +126,8 @@ public function getAllocatedIpRange() * instance IPs for this cluster will be created in the allocated range. The * range name must comply with RFC 1035. Specifically, the name must be 1-63 * characters long and match the regular expression - * [a-z]([-a-z0-9]*[a-z0-9])?. - * Field name is intended to be consistent with CloudSQL. + * `[a-z]([-a-z0-9]*[a-z0-9])?`. + * Field name is intended to be consistent with Cloud SQL. * * Generated from protobuf field string allocated_ip_range = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AlloyDb/src/V1/Gapic/AlloyDBAdminGapicClient.php b/AlloyDb/src/V1/Gapic/AlloyDBAdminGapicClient.php index abb9bad6dcbb..ebe3d7f72464 100644 --- a/AlloyDb/src/V1/Gapic/AlloyDBAdminGapicClient.php +++ b/AlloyDb/src/V1/Gapic/AlloyDBAdminGapicClient.php @@ -1869,6 +1869,10 @@ public function failoverInstance($name, array $optionalArgs = []) * default duration. * @type string $publicKey * Optional. The public key from the client. + * @type bool $useMetadataExchange + * Optional. An optional hint to the endpoint to generate a client + * ceritificate that can be used by AlloyDB connectors to exchange additional + * metadata with the server after TLS handshake. * @type RetrySettings|array $retrySettings * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an * associative array of retry settings parameters. See the documentation on @@ -1897,6 +1901,12 @@ public function generateClientCertificate($parent, array $optionalArgs = []) $request->setPublicKey($optionalArgs['publicKey']); } + if (isset($optionalArgs['useMetadataExchange'])) { + $request->setUseMetadataExchange( + $optionalArgs['useMetadataExchange'] + ); + } + $requestParams = new RequestParamsHeaderDescriptor( $requestParamHeaders ); diff --git a/AlloyDb/src/V1/GenerateClientCertificateRequest.php b/AlloyDb/src/V1/GenerateClientCertificateRequest.php index 96e33e2dc263..a66f9ccd2a1a 100644 --- a/AlloyDb/src/V1/GenerateClientCertificateRequest.php +++ b/AlloyDb/src/V1/GenerateClientCertificateRequest.php @@ -55,6 +55,14 @@ class GenerateClientCertificateRequest extends \Google\Protobuf\Internal\Message * Generated from protobuf field string public_key = 5 [(.google.api.field_behavior) = OPTIONAL]; */ protected $public_key = ''; + /** + * Optional. An optional hint to the endpoint to generate a client + * ceritificate that can be used by AlloyDB connectors to exchange additional + * metadata with the server after TLS handshake. + * + * Generated from protobuf field bool use_metadata_exchange = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $use_metadata_exchange = false; /** * @param string $parent Required. The name of the parent resource. The required format is: @@ -100,6 +108,10 @@ public static function build(string $parent): self * default duration. * @type string $public_key * Optional. The public key from the client. + * @type bool $use_metadata_exchange + * Optional. An optional hint to the endpoint to generate a client + * ceritificate that can be used by AlloyDB connectors to exchange additional + * metadata with the server after TLS handshake. * } */ public function __construct($data = NULL) { @@ -251,5 +263,35 @@ public function setPublicKey($var) return $this; } + /** + * Optional. An optional hint to the endpoint to generate a client + * ceritificate that can be used by AlloyDB connectors to exchange additional + * metadata with the server after TLS handshake. + * + * Generated from protobuf field bool use_metadata_exchange = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getUseMetadataExchange() + { + return $this->use_metadata_exchange; + } + + /** + * Optional. An optional hint to the endpoint to generate a client + * ceritificate that can be used by AlloyDB connectors to exchange additional + * metadata with the server after TLS handshake. + * + * Generated from protobuf field bool use_metadata_exchange = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setUseMetadataExchange($var) + { + GPBUtil::checkBool($var); + $this->use_metadata_exchange = $var; + + return $this; + } + } diff --git a/AlloyDb/src/V1/Instance.php b/AlloyDb/src/V1/Instance.php index c0ce05d48fb0..8a5e4930c841 100644 --- a/AlloyDb/src/V1/Instance.php +++ b/AlloyDb/src/V1/Instance.php @@ -146,7 +146,8 @@ class Instance extends \Google\Protobuf\Internal\Message */ protected $query_insights_config = null; /** - * Read pool specific config. + * Read pool instance configuration. + * This is required if the value of instanceType is READ_POOL. * * Generated from protobuf field .google.cloud.alloydb.v1.Instance.ReadPoolConfig read_pool_config = 14; */ @@ -261,7 +262,8 @@ class Instance extends \Google\Protobuf\Internal\Message * @type \Google\Cloud\AlloyDb\V1\Instance\QueryInsightsInstanceConfig $query_insights_config * Configuration for query insights. * @type \Google\Cloud\AlloyDb\V1\Instance\ReadPoolConfig $read_pool_config - * Read pool specific config. + * Read pool instance configuration. + * This is required if the value of instanceType is READ_POOL. * @type string $ip_address * Output only. The IP address for the Instance. * This is the connection endpoint for an end-user application. @@ -829,7 +831,8 @@ public function setQueryInsightsConfig($var) } /** - * Read pool specific config. + * Read pool instance configuration. + * This is required if the value of instanceType is READ_POOL. * * Generated from protobuf field .google.cloud.alloydb.v1.Instance.ReadPoolConfig read_pool_config = 14; * @return \Google\Cloud\AlloyDb\V1\Instance\ReadPoolConfig|null @@ -850,7 +853,8 @@ public function clearReadPoolConfig() } /** - * Read pool specific config. + * Read pool instance configuration. + * This is required if the value of instanceType is READ_POOL. * * Generated from protobuf field .google.cloud.alloydb.v1.Instance.ReadPoolConfig read_pool_config = 14; * @param \Google\Cloud\AlloyDb\V1\Instance\ReadPoolConfig $var