From 347ea87f938abbf9abe37df7ffb32625ec142e1a Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 9 Jul 2024 17:01:29 -0400 Subject: [PATCH] feat: [sql] add Dataplex integration opt-in field (#5527) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: add Dataplex integration opt-in field PiperOrigin-RevId: 649181421 Source-Link: https://github.com/googleapis/googleapis/commit/95b8ded04d644eada44b2df6e498462464c69f49 Source-Link: https://github.com/googleapis/googleapis-gen/commit/3ca77d975f0d5150140424986c67d52c3e90f0b1 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNxbC8uT3dsQm90LnlhbWwiLCJoIjoiM2NhNzdkOTc1ZjBkNTE1MDE0MDQyNDk4NmM2N2Q1MmMzZTkwZjBiMSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot Co-authored-by: sofisl <55454395+sofisl@users.noreply.github.com> --- .../sql/v1beta4/cloud_sql_resources.proto | 6 ++++ packages/google-cloud-sql/protos/protos.d.ts | 6 ++++ packages/google-cloud-sql/protos/protos.js | 28 +++++++++++++++++++ packages/google-cloud-sql/protos/protos.json | 7 +++++ 4 files changed, 47 insertions(+) diff --git a/packages/google-cloud-sql/protos/google/cloud/sql/v1beta4/cloud_sql_resources.proto b/packages/google-cloud-sql/protos/google/cloud/sql/v1beta4/cloud_sql_resources.proto index 828998d2df1..3c3f9238644 100644 --- a/packages/google-cloud-sql/protos/google/cloud/sql/v1beta4/cloud_sql_resources.proto +++ b/packages/google-cloud-sql/protos/google/cloud/sql/v1beta4/cloud_sql_resources.proto @@ -2329,6 +2329,12 @@ message Settings { // SQL for PostgreSQL instances. google.protobuf.BoolValue enable_google_ml_integration = 40 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. By default, Cloud SQL instances have schema extraction disabled + // for Dataplex. When this parameter is set to true, schema extraction for + // Dataplex on Cloud SQL instances is activated. + google.protobuf.BoolValue enable_dataplex_integration = 41 + [(google.api.field_behavior) = OPTIONAL]; } // Specifies options for controlling advanced machine features. diff --git a/packages/google-cloud-sql/protos/protos.d.ts b/packages/google-cloud-sql/protos/protos.d.ts index e6e42e49925..99b74cb01ee 100644 --- a/packages/google-cloud-sql/protos/protos.d.ts +++ b/packages/google-cloud-sql/protos/protos.d.ts @@ -37501,6 +37501,9 @@ export namespace google { /** Settings enableGoogleMlIntegration */ enableGoogleMlIntegration?: (google.protobuf.IBoolValue|null); + + /** Settings enableDataplexIntegration */ + enableDataplexIntegration?: (google.protobuf.IBoolValue|null); } /** Represents a Settings. */ @@ -37611,6 +37614,9 @@ export namespace google { /** Settings enableGoogleMlIntegration. */ public enableGoogleMlIntegration?: (google.protobuf.IBoolValue|null); + /** Settings enableDataplexIntegration. */ + public enableDataplexIntegration?: (google.protobuf.IBoolValue|null); + /** * Creates a new Settings instance using the specified properties. * @param [properties] Properties to set diff --git a/packages/google-cloud-sql/protos/protos.js b/packages/google-cloud-sql/protos/protos.js index 6d9c5ec2cf8..dc35e1bd819 100644 --- a/packages/google-cloud-sql/protos/protos.js +++ b/packages/google-cloud-sql/protos/protos.js @@ -93579,6 +93579,7 @@ * @property {google.cloud.sql.v1beta4.IAdvancedMachineFeatures|null} [advancedMachineFeatures] Settings advancedMachineFeatures * @property {google.cloud.sql.v1beta4.IDataCacheConfig|null} [dataCacheConfig] Settings dataCacheConfig * @property {google.protobuf.IBoolValue|null} [enableGoogleMlIntegration] Settings enableGoogleMlIntegration + * @property {google.protobuf.IBoolValue|null} [enableDataplexIntegration] Settings enableDataplexIntegration */ /** @@ -93864,6 +93865,14 @@ */ Settings.prototype.enableGoogleMlIntegration = null; + /** + * Settings enableDataplexIntegration. + * @member {google.protobuf.IBoolValue|null|undefined} enableDataplexIntegration + * @memberof google.cloud.sql.v1beta4.Settings + * @instance + */ + Settings.prototype.enableDataplexIntegration = null; + /** * Creates a new Settings instance using the specified properties. * @function create @@ -93958,6 +93967,8 @@ writer.uint32(/* id 38, wireType 0 =*/304).int32(message.edition); if (message.enableGoogleMlIntegration != null && Object.hasOwnProperty.call(message, "enableGoogleMlIntegration")) $root.google.protobuf.BoolValue.encode(message.enableGoogleMlIntegration, writer.uint32(/* id 40, wireType 2 =*/322).fork()).ldelim(); + if (message.enableDataplexIntegration != null && Object.hasOwnProperty.call(message, "enableDataplexIntegration")) + $root.google.protobuf.BoolValue.encode(message.enableDataplexIntegration, writer.uint32(/* id 41, wireType 2 =*/330).fork()).ldelim(); return writer; }; @@ -94149,6 +94160,10 @@ message.enableGoogleMlIntegration = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); break; } + case 41: { + message.enableDataplexIntegration = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -94384,6 +94399,11 @@ if (error) return "enableGoogleMlIntegration." + error; } + if (message.enableDataplexIntegration != null && message.hasOwnProperty("enableDataplexIntegration")) { + var error = $root.google.protobuf.BoolValue.verify(message.enableDataplexIntegration); + if (error) + return "enableDataplexIntegration." + error; + } return null; }; @@ -94679,6 +94699,11 @@ throw TypeError(".google.cloud.sql.v1beta4.Settings.enableGoogleMlIntegration: object expected"); message.enableGoogleMlIntegration = $root.google.protobuf.BoolValue.fromObject(object.enableGoogleMlIntegration); } + if (object.enableDataplexIntegration != null) { + if (typeof object.enableDataplexIntegration !== "object") + throw TypeError(".google.cloud.sql.v1beta4.Settings.enableDataplexIntegration: object expected"); + message.enableDataplexIntegration = $root.google.protobuf.BoolValue.fromObject(object.enableDataplexIntegration); + } return message; }; @@ -94732,6 +94757,7 @@ object.dataCacheConfig = null; object.edition = options.enums === String ? "EDITION_UNSPECIFIED" : 0; object.enableGoogleMlIntegration = null; + object.enableDataplexIntegration = null; } if (message.settingsVersion != null && message.hasOwnProperty("settingsVersion")) object.settingsVersion = $root.google.protobuf.Int64Value.toObject(message.settingsVersion, options); @@ -94812,6 +94838,8 @@ object.edition = options.enums === String ? $root.google.cloud.sql.v1beta4.Settings.Edition[message.edition] === undefined ? message.edition : $root.google.cloud.sql.v1beta4.Settings.Edition[message.edition] : message.edition; if (message.enableGoogleMlIntegration != null && message.hasOwnProperty("enableGoogleMlIntegration")) object.enableGoogleMlIntegration = $root.google.protobuf.BoolValue.toObject(message.enableGoogleMlIntegration, options); + if (message.enableDataplexIntegration != null && message.hasOwnProperty("enableDataplexIntegration")) + object.enableDataplexIntegration = $root.google.protobuf.BoolValue.toObject(message.enableDataplexIntegration, options); return object; }; diff --git a/packages/google-cloud-sql/protos/protos.json b/packages/google-cloud-sql/protos/protos.json index de4bdc0c0f5..d25795e3681 100644 --- a/packages/google-cloud-sql/protos/protos.json +++ b/packages/google-cloud-sql/protos/protos.json @@ -9435,6 +9435,13 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "enableDataplexIntegration": { + "type": "google.protobuf.BoolValue", + "id": 41, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } }, "nested": {