Skip to content

Commit 9338d6a

Browse files
feat(analyticshub)!: update the API
BREAKING CHANGE: This release has breaking changes. #### analyticshub:v1beta1 The following keys were added: - schemas.Listing.properties.allowOnlyMetadataSharing.description - schemas.Listing.properties.allowOnlyMetadataSharing.type #### analyticshub:v1 The following keys were deleted: - schemas.AnalyticsHubSubscriptionInfo.description - schemas.AnalyticsHubSubscriptionInfo.id - schemas.AnalyticsHubSubscriptionInfo.properties.listing.description - schemas.AnalyticsHubSubscriptionInfo.properties.listing.type - schemas.AnalyticsHubSubscriptionInfo.properties.subscription.description - schemas.AnalyticsHubSubscriptionInfo.properties.subscription.type - schemas.AnalyticsHubSubscriptionInfo.type - schemas.BigQueryConfig.properties.state.description - schemas.BigQueryConfig.properties.state.enum - schemas.BigQueryConfig.properties.state.enumDescriptions - schemas.BigQueryConfig.properties.state.readOnly - schemas.BigQueryConfig.properties.state.type - schemas.CloudStorageConfig.properties.state.description - schemas.CloudStorageConfig.properties.state.enum - schemas.CloudStorageConfig.properties.state.enumDescriptions - schemas.CloudStorageConfig.properties.state.readOnly - schemas.CloudStorageConfig.properties.state.type - schemas.GooglePubsubV1Subscription.properties.analyticsHubSubscriptionInfo.$ref - schemas.GooglePubsubV1Subscription.properties.analyticsHubSubscriptionInfo.description - schemas.GooglePubsubV1Subscription.properties.analyticsHubSubscriptionInfo.readOnly - schemas.GooglePubsubV1Subscription.properties.state.description - schemas.GooglePubsubV1Subscription.properties.state.enum - schemas.GooglePubsubV1Subscription.properties.state.enumDescriptions - schemas.GooglePubsubV1Subscription.properties.state.readOnly - schemas.GooglePubsubV1Subscription.properties.state.type - schemas.GooglePubsubV1Subscription.properties.topicMessageRetentionDuration.description - schemas.GooglePubsubV1Subscription.properties.topicMessageRetentionDuration.format - schemas.GooglePubsubV1Subscription.properties.topicMessageRetentionDuration.readOnly - schemas.GooglePubsubV1Subscription.properties.topicMessageRetentionDuration.type The following keys were added: - schemas.DestinationDataset.properties.replicaLocations.description - schemas.DestinationDataset.properties.replicaLocations.items.type - schemas.DestinationDataset.properties.replicaLocations.type - schemas.Listing.properties.allowOnlyMetadataSharing.description - schemas.Listing.properties.allowOnlyMetadataSharing.type The following keys were changed: - resources.projects.resources.locations.resources.dataExchanges.methods.create.parameters.dataExchangeId.description - resources.projects.resources.locations.resources.dataExchanges.resources.listings.methods.create.parameters.listingId.description - schemas.CloudStorageConfig.properties.maxDuration.description - schemas.DeadLetterPolicy.properties.maxDeliveryAttempts.description - schemas.GooglePubsubV1Subscription.description - schemas.GooglePubsubV1Subscription.properties.enableExactlyOnceDelivery.description - schemas.GooglePubsubV1Subscription.properties.retryPolicy.description - schemas.PubSubTopicSource.properties.dataAffinityRegions.description - schemas.RetryPolicy.description
1 parent 6a1cb77 commit 9338d6a

File tree

4 files changed

+47
-136
lines changed

4 files changed

+47
-136
lines changed

‎discovery/analyticshub-v1.json

Lines changed: 21 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
],
174174
"parameters": {
175175
"dataExchangeId": {
176-
"description": "Required. The ID of the data exchange. Must contain only Unicode letters, numbers (0-9), underscores (_). Should not use characters that require URL-escaping, or characters outside of ASCII, spaces. Max length: 100 bytes.",
176+
"description": "Required. The ID of the data exchange. Must contain only Unicode letters, numbers (0-9), underscores (_). Max length: 100 bytes.",
177177
"location": "query",
178178
"type": "string"
179179
},
@@ -493,7 +493,7 @@
493493
],
494494
"parameters": {
495495
"listingId": {
496-
"description": "Required. The ID of the listing to create. Must contain only Unicode letters, numbers (0-9), underscores (_). Should not use characters that require URL-escaping, or characters outside of ASCII, spaces. Max length: 100 bytes.",
496+
"description": "Required. The ID of the listing to create. Must contain only Unicode letters, numbers (0-9), underscores (_). Max length: 100 bytes.",
497497
"location": "query",
498498
"type": "string"
499499
},
@@ -1027,24 +1027,9 @@
10271027
}
10281028
}
10291029
},
1030-
"revision": "20250310",
1030+
"revision": "20250418",
10311031
"rootUrl": "https://analyticshub.googleapis.com/",
10321032
"schemas": {
1033-
"AnalyticsHubSubscriptionInfo": {
1034-
"description": "Information about an associated [Analytics Hub subscription](https://cloud.google.com/bigquery/docs/analytics-hub-manage-subscriptions).",
1035-
"id": "AnalyticsHubSubscriptionInfo",
1036-
"properties": {
1037-
"listing": {
1038-
"description": "Optional. The name of the associated Analytics Hub listing resource. Pattern: \"projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}\"",
1039-
"type": "string"
1040-
},
1041-
"subscription": {
1042-
"description": "Optional. The name of the associated Analytics Hub subscription resource. Pattern: \"projects/{project}/locations/{location}/subscriptions/{subscription}\"",
1043-
"type": "string"
1044-
}
1045-
},
1046-
"type": "object"
1047-
},
10481033
"AuditConfig": {
10491034
"description": "Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { \"audit_configs\": [ { \"service\": \"allServices\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" }, { \"log_type\": \"ADMIN_READ\" } ] }, { \"service\": \"sampleservice.googleapis.com\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\" }, { \"log_type\": \"DATA_WRITE\", \"exempted_members\": [ \"user:aliya@example.com\" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `jose@example.com` from DATA_READ logging, and `aliya@example.com` from DATA_WRITE logging.",
10501035
"id": "AuditConfig",
@@ -1120,27 +1105,6 @@
11201105
"description": "Optional. The service account to use to write to BigQuery. The subscription creator or updater that specifies this field must have `iam.serviceAccounts.actAs` permission on the service account. If not specified, the Pub/Sub [service agent](https://cloud.google.com/iam/docs/service-agents), service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.",
11211106
"type": "string"
11221107
},
1123-
"state": {
1124-
"description": "Output only. An output-only field that indicates whether or not the subscription can receive messages.",
1125-
"enum": [
1126-
"STATE_UNSPECIFIED",
1127-
"ACTIVE",
1128-
"PERMISSION_DENIED",
1129-
"NOT_FOUND",
1130-
"SCHEMA_MISMATCH",
1131-
"IN_TRANSIT_LOCATION_RESTRICTION"
1132-
],
1133-
"enumDescriptions": [
1134-
"Default value. This value is unused.",
1135-
"The subscription can actively send messages to BigQuery",
1136-
"Cannot write to the BigQuery table because of permission denied errors. This can happen if - Pub/Sub SA has not been granted the [appropriate BigQuery IAM permissions](https://cloud.google.com/pubsub/docs/create-subscription#assign_bigquery_service_account) - bigquery.googleapis.com API is not enabled for the project ([instructions](https://cloud.google.com/service-usage/docs/enable-disable))",
1137-
"Cannot write to the BigQuery table because it does not exist.",
1138-
"Cannot write to the BigQuery table due to a schema mismatch.",
1139-
"Cannot write to the destination because enforce_in_transit is set to true and the destination locations are not in the allowed regions."
1140-
],
1141-
"readOnly": true,
1142-
"type": "string"
1143-
},
11441108
"table": {
11451109
"description": "Optional. The name of the table to which to write data, of the form {projectId}.{datasetId}.{tableId}",
11461110
"type": "string"
@@ -1234,7 +1198,7 @@
12341198
"type": "string"
12351199
},
12361200
"maxDuration": {
1237-
"description": "Optional. The maximum duration that can elapse before a new Cloud Storage file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed the subscription's acknowledgment deadline.",
1201+
"description": "Optional. File batching settings. If no max_duration setting is specified, a max_duration of 5 minutes will be set by default. max_duration is required regardless of whether other file batching settings are specified. The maximum duration that can elapse before a new Cloud Storage file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed the subscription's acknowledgement deadline.",
12381202
"format": "google-duration",
12391203
"type": "string"
12401204
},
@@ -1247,27 +1211,6 @@
12471211
"description": "Optional. The service account to use to write to Cloud Storage. The subscription creator or updater that specifies this field must have `iam.serviceAccounts.actAs` permission on the service account. If not specified, the Pub/Sub [service agent](https://cloud.google.com/iam/docs/service-agents), service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.",
12481212
"type": "string"
12491213
},
1250-
"state": {
1251-
"description": "Output only. An output-only field that indicates whether or not the subscription can receive messages.",
1252-
"enum": [
1253-
"STATE_UNSPECIFIED",
1254-
"ACTIVE",
1255-
"PERMISSION_DENIED",
1256-
"NOT_FOUND",
1257-
"IN_TRANSIT_LOCATION_RESTRICTION",
1258-
"SCHEMA_MISMATCH"
1259-
],
1260-
"enumDescriptions": [
1261-
"Default value. This value is unused.",
1262-
"The subscription can actively send messages to Cloud Storage.",
1263-
"Cannot write to the Cloud Storage bucket because of permission denied errors.",
1264-
"Cannot write to the Cloud Storage bucket because it does not exist.",
1265-
"Cannot write to the destination because enforce_in_transit is set to true and the destination locations are not in the allowed regions.",
1266-
"Cannot write to the Cloud Storage bucket due to an incompatibility between the topic schema and subscription settings."
1267-
],
1268-
"readOnly": true,
1269-
"type": "string"
1270-
},
12711214
"textConfig": {
12721215
"$ref": "TextConfig",
12731216
"description": "Optional. If set, message data will be written to Cloud Storage in text format."
@@ -1377,7 +1320,7 @@
13771320
"type": "string"
13781321
},
13791322
"maxDeliveryAttempts": {
1380-
"description": "Optional. The maximum number of delivery attempts for any message. The value must be between 5 and 100. The number of delivery attempts is defined as 1 + (the sum of number of NACKs and number of times the acknowledgment deadline has been exceeded for the message). A NACK is any call to ModifyAckDeadline with a 0 deadline. Note that client libraries may automatically extend ack_deadlines. This field will be honored on a best effort basis. If this parameter is 0, a default value of 5 is used.",
1323+
"description": "Optional. The maximum number of delivery attempts for any message. The value must be between 5 and 100. The number of delivery attempts is defined as 1 + (the sum of number of NACKs and number of times the acknowledgement deadline has been exceeded for the message). A NACK is any call to ModifyAckDeadline with a 0 deadline. Note that client libraries may automatically extend ack_deadlines. This field will be honored on a best effort basis. If this parameter is 0, a default value of 5 is used.",
13811324
"format": "int32",
13821325
"type": "integer"
13831326
}
@@ -1416,6 +1359,13 @@
14161359
"location": {
14171360
"description": "Required. The geographic location where the dataset should reside. See https://cloud.google.com/bigquery/docs/locations for supported locations.",
14181361
"type": "string"
1362+
},
1363+
"replicaLocations": {
1364+
"description": "Optional. The geographic locations where the dataset should be replicated. See https://cloud.google.com/bigquery/docs/locations for supported locations.",
1365+
"items": {
1366+
"type": "string"
1367+
},
1368+
"type": "array"
14191369
}
14201370
},
14211371
"type": "object"
@@ -1572,19 +1522,14 @@
15721522
"type": "object"
15731523
},
15741524
"GooglePubsubV1Subscription": {
1575-
"description": "A subscription resource. If none of `push_config`, `bigquery_config`, or `cloud_storage_config` is set, then the subscriber will pull and ack messages using API methods. At most one of these fields may be set.",
1525+
"description": "Defines the destination Pub/Sub subscription. If none of `push_config`, `bigquery_config`, `cloud_storage_config`, `pubsub_export_config`, or `pubsublite_export_config` is set, then the subscriber will pull and ack messages using API methods. At most one of these fields may be set.",
15761526
"id": "GooglePubsubV1Subscription",
15771527
"properties": {
15781528
"ackDeadlineSeconds": {
15791529
"description": "Optional. The approximate amount of time (on a best-effort basis) Pub/Sub waits for the subscriber to acknowledge receipt before resending the message. In the interval after the message is delivered and before it is acknowledged, it is considered to be _outstanding_. During that time period, the message will not be redelivered (on a best-effort basis). For pull subscriptions, this value is used as the initial value for the ack deadline. To override this value for a given message, call `ModifyAckDeadline` with the corresponding `ack_id` if using non-streaming pull or send the `ack_id` in a `StreamingModifyAckDeadlineRequest` if using streaming pull. The minimum custom deadline you can specify is 10 seconds. The maximum custom deadline you can specify is 600 seconds (10 minutes). If this parameter is 0, a default value of 10 seconds is used. For push delivery, this value is also used to set the request timeout for the call to the push endpoint. If the subscriber never acknowledges the message, the Pub/Sub system will eventually redeliver the message.",
15801530
"format": "int32",
15811531
"type": "integer"
15821532
},
1583-
"analyticsHubSubscriptionInfo": {
1584-
"$ref": "AnalyticsHubSubscriptionInfo",
1585-
"description": "Output only. Information about the associated Analytics Hub subscription. Only set if the subscritpion is created by Analytics Hub.",
1586-
"readOnly": true
1587-
},
15881533
"bigqueryConfig": {
15891534
"$ref": "BigQueryConfig",
15901535
"description": "Optional. If delivery to BigQuery is used with this subscription, this field is used to configure it."
@@ -1602,7 +1547,7 @@
16021547
"type": "boolean"
16031548
},
16041549
"enableExactlyOnceDelivery": {
1605-
"description": "Optional. If true, Pub/Sub provides the following guarantees for the delivery of a message with a given value of `message_id` on this subscription: * The message sent to a subscriber is guaranteed not to be resent before the message's acknowledgment deadline expires. * An acknowledged message will not be resent to a subscriber. Note that subscribers may still receive multiple copies of a message when `enable_exactly_once_delivery` is true if the message was published multiple times by a publisher client. These copies are considered distinct by Pub/Sub and have distinct `message_id` values.",
1550+
"description": "Optional. If true, Pub/Sub provides the following guarantees for the delivery of a message with a given value of `message_id` on this subscription: * The message sent to a subscriber is guaranteed not to be resent before the message's acknowledgement deadline expires. * An acknowledged message will not be resent to a subscriber. Note that subscribers may still receive multiple copies of a message when `enable_exactly_once_delivery` is true if the message was published multiple times by a publisher client. These copies are considered distinct by Pub/Sub and have distinct `message_id` values.",
16061551
"type": "boolean"
16071552
},
16081553
"enableMessageOrdering": {
@@ -1650,28 +1595,7 @@
16501595
},
16511596
"retryPolicy": {
16521597
"$ref": "RetryPolicy",
1653-
"description": "Optional. A policy that specifies how Pub/Sub retries message delivery for this subscription. If not set, the default retry policy is applied. This generally implies that messages will be retried as soon as possible for healthy subscribers. RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded events for a given message."
1654-
},
1655-
"state": {
1656-
"description": "Output only. An output-only field indicating whether or not the subscription can receive messages.",
1657-
"enum": [
1658-
"STATE_UNSPECIFIED",
1659-
"ACTIVE",
1660-
"RESOURCE_ERROR"
1661-
],
1662-
"enumDescriptions": [
1663-
"Default value. This value is unused.",
1664-
"The subscription can actively receive messages",
1665-
"The subscription cannot receive messages because of an error with the resource to which it pushes messages. See the more detailed error state in the corresponding configuration."
1666-
],
1667-
"readOnly": true,
1668-
"type": "string"
1669-
},
1670-
"topicMessageRetentionDuration": {
1671-
"description": "Output only. Indicates the minimum duration for which a message is retained after it is published to the subscription's topic. If this field is set, messages published to the subscription's topic in the last `topic_message_retention_duration` are always available to subscribers. See the `message_retention_duration` field in `Topic`. This field is set only in responses from the server; it is ignored if it is set in any requests.",
1672-
"format": "google-duration",
1673-
"readOnly": true,
1674-
"type": "string"
1598+
"description": "Optional. A policy that specifies how Pub/Sub retries message delivery for this subscription. If not set, the default retry policy is applied. This generally implies that messages will be retried as soon as possible for healthy subscribers. RetryPolicy will be triggered on NACKs or acknowledgement deadline exceeded events for a given message."
16751599
}
16761600
},
16771601
"type": "object"
@@ -1807,6 +1731,10 @@
18071731
"description": "A listing is what gets published into a data exchange that a subscriber can subscribe to. It contains a reference to the data source along with descriptive information that will help subscribers find and subscribe the data.",
18081732
"id": "Listing",
18091733
"properties": {
1734+
"allowOnlyMetadataSharing": {
1735+
"description": "Optional. If true, the listing is only available to get the resource metadata. Listing is non subscribable.",
1736+
"type": "boolean"
1737+
},
18101738
"bigqueryDataset": {
18111739
"$ref": "BigQueryDatasetSource",
18121740
"description": "Shared dataset i.e. BigQuery dataset source."
@@ -2123,7 +2051,7 @@
21232051
"id": "PubSubTopicSource",
21242052
"properties": {
21252053
"dataAffinityRegions": {
2126-
"description": "Optional. Region hint on where the data might be published. Data affinity regions are modifiable. See go/regions for full listing of possible Cloud regions.",
2054+
"description": "Optional. Region hint on where the data might be published. Data affinity regions are modifiable. See https://cloud.google.com/about/locations for full listing of possible Cloud regions.",
21272055
"items": {
21282056
"type": "string"
21292057
},
@@ -2244,7 +2172,7 @@
22442172
"type": "object"
22452173
},
22462174
"RetryPolicy": {
2247-
"description": "A policy that specifies how Pub/Sub retries message delivery. Retry delay will be exponential based on provided minimum and maximum backoffs. https://en.wikipedia.org/wiki/Exponential_backoff. RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded events for a given message. Retry Policy is implemented on a best effort basis. At times, the delay between consecutive deliveries may not match the configuration. That is, delay can be more or less than configured backoff.",
2175+
"description": "A policy that specifies how Pub/Sub retries message delivery. Retry delay will be exponential based on provided minimum and maximum backoffs. https://en.wikipedia.org/wiki/Exponential_backoff. RetryPolicy will be triggered on NACKs or acknowledgement deadline exceeded events for a given message. Retry Policy is implemented on a best effort basis. At times, the delay between consecutive deliveries may not match the configuration. That is, delay can be more or less than configured backoff.",
22482176
"id": "RetryPolicy",
22492177
"properties": {
22502178
"maximumBackoff": {

‎discovery/analyticshub-v1beta1.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@
695695
}
696696
}
697697
},
698-
"revision": "20250217",
698+
"revision": "20250418",
699699
"rootUrl": "https://analyticshub.googleapis.com/",
700700
"schemas": {
701701
"AuditConfig": {
@@ -1032,6 +1032,10 @@
10321032
"description": "A listing is what gets published into a data exchange that a subscriber can subscribe to. It contains a reference to the data source along with descriptive information that will help subscribers find and subscribe the data.",
10331033
"id": "Listing",
10341034
"properties": {
1035+
"allowOnlyMetadataSharing": {
1036+
"description": "Optional. If true, the listing is only available to get the resource metadata. Listing is non subscribable.",
1037+
"type": "boolean"
1038+
},
10351039
"bigqueryDataset": {
10361040
"$ref": "BigQueryDatasetSource",
10371041
"description": "Required. Shared dataset i.e. BigQuery dataset source."

0 commit comments

Comments
 (0)