diff --git a/packages/google-cloud-alloydb/protos/google/cloud/alloydb/v1/resources.proto b/packages/google-cloud-alloydb/protos/google/cloud/alloydb/v1/resources.proto index 9e35537e936..9042f00fab9 100644 --- a/packages/google-cloud-alloydb/protos/google/cloud/alloydb/v1/resources.proto +++ b/packages/google-cloud-alloydb/protos/google/cloud/alloydb/v1/resources.proto @@ -401,8 +401,8 @@ message Cluster { // 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. string allocated_ip_range = 2 [(google.api.field_behavior) = OPTIONAL]; } @@ -835,7 +835,8 @@ message Instance { // Configuration for query insights. QueryInsightsInstanceConfig query_insights_config = 21; - // Read pool specific config. + // Read pool instance configuration. + // This is required if the value of instanceType is READ_POOL. ReadPoolConfig read_pool_config = 14; // Output only. The IP address for the Instance. diff --git a/packages/google-cloud-alloydb/protos/google/cloud/alloydb/v1/service.proto b/packages/google-cloud-alloydb/protos/google/cloud/alloydb/v1/service.proto index 5cb16a67981..8c47a29b6ff 100644 --- a/packages/google-cloud-alloydb/protos/google/cloud/alloydb/v1/service.proto +++ b/packages/google-cloud-alloydb/protos/google/cloud/alloydb/v1/service.proto @@ -1358,6 +1358,11 @@ message GenerateClientCertificateRequest { // Optional. The public key from the client. string public_key = 5 [(google.api.field_behavior) = OPTIONAL]; + + // 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. + bool use_metadata_exchange = 6 [(google.api.field_behavior) = OPTIONAL]; } // Message returned by a GenerateClientCertificate operation. diff --git a/packages/google-cloud-alloydb/protos/protos.d.ts b/packages/google-cloud-alloydb/protos/protos.d.ts index 82ebb5837ea..6a439bc88c9 100644 --- a/packages/google-cloud-alloydb/protos/protos.d.ts +++ b/packages/google-cloud-alloydb/protos/protos.d.ts @@ -8111,6 +8111,9 @@ export namespace google { /** GenerateClientCertificateRequest publicKey */ publicKey?: (string|null); + + /** GenerateClientCertificateRequest useMetadataExchange */ + useMetadataExchange?: (boolean|null); } /** Represents a GenerateClientCertificateRequest. */ @@ -8134,6 +8137,9 @@ export namespace google { /** GenerateClientCertificateRequest publicKey. */ public publicKey: string; + /** GenerateClientCertificateRequest useMetadataExchange. */ + public useMetadataExchange: boolean; + /** * Creates a new GenerateClientCertificateRequest instance using the specified properties. * @param [properties] Properties to set diff --git a/packages/google-cloud-alloydb/protos/protos.js b/packages/google-cloud-alloydb/protos/protos.js index 3d8e41da236..cdfe0641a69 100644 --- a/packages/google-cloud-alloydb/protos/protos.js +++ b/packages/google-cloud-alloydb/protos/protos.js @@ -20542,6 +20542,7 @@ * @property {string|null} [requestId] GenerateClientCertificateRequest requestId * @property {google.protobuf.IDuration|null} [certDuration] GenerateClientCertificateRequest certDuration * @property {string|null} [publicKey] GenerateClientCertificateRequest publicKey + * @property {boolean|null} [useMetadataExchange] GenerateClientCertificateRequest useMetadataExchange */ /** @@ -20591,6 +20592,14 @@ */ GenerateClientCertificateRequest.prototype.publicKey = ""; + /** + * GenerateClientCertificateRequest useMetadataExchange. + * @member {boolean} useMetadataExchange + * @memberof google.cloud.alloydb.v1.GenerateClientCertificateRequest + * @instance + */ + GenerateClientCertificateRequest.prototype.useMetadataExchange = false; + /** * Creates a new GenerateClientCertificateRequest instance using the specified properties. * @function create @@ -20623,6 +20632,8 @@ $root.google.protobuf.Duration.encode(message.certDuration, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.publicKey != null && Object.hasOwnProperty.call(message, "publicKey")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.publicKey); + if (message.useMetadataExchange != null && Object.hasOwnProperty.call(message, "useMetadataExchange")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.useMetadataExchange); return writer; }; @@ -20673,6 +20684,10 @@ message.publicKey = reader.string(); break; } + case 6: { + message.useMetadataExchange = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -20722,6 +20737,9 @@ if (message.publicKey != null && message.hasOwnProperty("publicKey")) if (!$util.isString(message.publicKey)) return "publicKey: string expected"; + if (message.useMetadataExchange != null && message.hasOwnProperty("useMetadataExchange")) + if (typeof message.useMetadataExchange !== "boolean") + return "useMetadataExchange: boolean expected"; return null; }; @@ -20748,6 +20766,8 @@ } if (object.publicKey != null) message.publicKey = String(object.publicKey); + if (object.useMetadataExchange != null) + message.useMetadataExchange = Boolean(object.useMetadataExchange); return message; }; @@ -20769,6 +20789,7 @@ object.requestId = ""; object.certDuration = null; object.publicKey = ""; + object.useMetadataExchange = false; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; @@ -20778,6 +20799,8 @@ object.certDuration = $root.google.protobuf.Duration.toObject(message.certDuration, options); if (message.publicKey != null && message.hasOwnProperty("publicKey")) object.publicKey = message.publicKey; + if (message.useMetadataExchange != null && message.hasOwnProperty("useMetadataExchange")) + object.useMetadataExchange = message.useMetadataExchange; return object; }; diff --git a/packages/google-cloud-alloydb/protos/protos.json b/packages/google-cloud-alloydb/protos/protos.json index 15dcdcfabee..a479ed784c6 100644 --- a/packages/google-cloud-alloydb/protos/protos.json +++ b/packages/google-cloud-alloydb/protos/protos.json @@ -2902,6 +2902,13 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "useMetadataExchange": { + "type": "bool", + "id": 6, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, diff --git a/packages/google-cloud-alloydb/samples/generated/v1/alloy_d_b_admin.generate_client_certificate.js b/packages/google-cloud-alloydb/samples/generated/v1/alloy_d_b_admin.generate_client_certificate.js index fa0c3f2a889..ca15830b7b8 100644 --- a/packages/google-cloud-alloydb/samples/generated/v1/alloy_d_b_admin.generate_client_certificate.js +++ b/packages/google-cloud-alloydb/samples/generated/v1/alloy_d_b_admin.generate_client_certificate.js @@ -59,6 +59,12 @@ function main(parent) { * Optional. The public key from the client. */ // const publicKey = 'abc123' + /** + * 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. + */ + // const useMetadataExchange = true // Imports the Alloydb library const {AlloyDBAdminClient} = require('@google-cloud/alloydb').v1; diff --git a/packages/google-cloud-alloydb/samples/generated/v1/snippet_metadata_google.cloud.alloydb.v1.json b/packages/google-cloud-alloydb/samples/generated/v1/snippet_metadata_google.cloud.alloydb.v1.json index 99e6271f58e..6d5e8ac250d 100644 --- a/packages/google-cloud-alloydb/samples/generated/v1/snippet_metadata_google.cloud.alloydb.v1.json +++ b/packages/google-cloud-alloydb/samples/generated/v1/snippet_metadata_google.cloud.alloydb.v1.json @@ -1286,7 +1286,7 @@ "segments": [ { "start": 25, - "end": 80, + "end": 86, "type": "FULL" } ], @@ -1310,6 +1310,10 @@ { "name": "public_key", "type": "TYPE_STRING" + }, + { + "name": "use_metadata_exchange", + "type": "TYPE_BOOL" } ], "resultType": ".google.cloud.alloydb.v1.GenerateClientCertificateResponse", diff --git a/packages/google-cloud-alloydb/src/v1/alloy_d_b_admin_client.ts b/packages/google-cloud-alloydb/src/v1/alloy_d_b_admin_client.ts index 06f22fd6098..b886b757f51 100644 --- a/packages/google-cloud-alloydb/src/v1/alloy_d_b_admin_client.ts +++ b/packages/google-cloud-alloydb/src/v1/alloy_d_b_admin_client.ts @@ -943,6 +943,10 @@ export class AlloyDBAdminClient { * default duration. * @param {string} [request.publicKey] * Optional. The public key from the client. + * @param {boolean} [request.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. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array.