Skip to content

Commit 41c4f8d

Browse files
Google APIscopybara-github
authored andcommitted
feat: add Stored Procedure Sharing support for analyticshub listings
feat: add tags support for Pub/Sub subscriptions PiperOrigin-RevId: 827828462
1 parent a0066e7 commit 41c4f8d

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

google/cloud/bigquery/analyticshub/v1/analyticshub.proto

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,6 +1100,11 @@ message Listing {
11001100
RestrictedExportConfig restricted_export_config = 13
11011101
[(google.api.field_behavior) = OPTIONAL];
11021102

1103+
// Optional. If set, stored procedure configuration will be propagated and
1104+
// enforced on the linked dataset.
1105+
StoredProcedureConfig stored_procedure_config = 20
1106+
[(google.api.field_behavior) = OPTIONAL];
1107+
11031108
// Optional. Type of discovery of the listing on the discovery page.
11041109
optional DiscoveryType discovery_type = 14
11051110
[(google.api.field_behavior) = OPTIONAL];
@@ -1124,6 +1129,26 @@ message Listing {
11241129
[(google.api.field_behavior) = OPTIONAL];
11251130
}
11261131

1132+
// Stored procedure configuration, used to configure stored procedure sharing
1133+
// on linked dataset.
1134+
message StoredProcedureConfig {
1135+
// Enum to specify the type of stored procedure to share.
1136+
enum StoredProcedureType {
1137+
// Default value. This value is unused.
1138+
STORED_PROCEDURE_TYPE_UNSPECIFIED = 0;
1139+
1140+
// SQL stored procedure.
1141+
SQL_PROCEDURE = 1;
1142+
}
1143+
1144+
// Optional. If true, enable sharing of stored procedure.
1145+
bool enabled = 1 [(google.api.field_behavior) = OPTIONAL];
1146+
1147+
// Output only. Types of stored procedure supported to share.
1148+
repeated StoredProcedureType allowed_stored_procedure_types = 2
1149+
[(google.api.field_behavior) = OUTPUT_ONLY];
1150+
}
1151+
11271152
// A subscription represents a subscribers' access to a particular set of
11281153
// published data. It contains references to associated listings,
11291154
// data exchanges, and linked datasets.

google/cloud/bigquery/analyticshub/v1/pubsub.proto

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,16 @@ message PubSubSubscription {
162162
// subscribers. Transforms are applied in the order specified.
163163
repeated MessageTransform message_transforms = 25
164164
[(google.api.field_behavior) = OPTIONAL];
165+
166+
// Optional. Input only. Immutable. Tag keys/values directly bound to this
167+
// resource. For example:
168+
// "123/environment": "production",
169+
// "123/costCenter": "marketing"
170+
map<string, string> tags = 26 [
171+
(google.api.field_behavior) = INPUT_ONLY,
172+
(google.api.field_behavior) = IMMUTABLE,
173+
(google.api.field_behavior) = OPTIONAL
174+
];
165175
}
166176

167177
// A policy that specifies how Pub/Sub retries message delivery.

0 commit comments

Comments
 (0)