Skip to content

Commit

Permalink
feat(all): auto-regenerate discovery clients (#3004)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored Feb 8, 2025
1 parent 28be0d7 commit aa95c21
Show file tree
Hide file tree
Showing 39 changed files with 2,405 additions and 965 deletions.
41 changes: 39 additions & 2 deletions analyticshub/v1/analyticshub-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,7 @@
}
}
},
"revision": "20250126",
"revision": "20250203",
"rootUrl": "https://analyticshub.googleapis.com/",
"schemas": {
"AnalyticsHubSubscriptionInfo": {
Expand Down Expand Up @@ -1160,7 +1160,7 @@
"id": "BigQueryDatasetSource",
"properties": {
"dataset": {
"description": "Resource name of the dataset source for this listing. e.g. `projects/myproject/datasets/123`",
"description": "Optional. Resource name of the dataset source for this listing. e.g. `projects/myproject/datasets/123`",
"type": "string"
},
"restrictedExportPolicy": {
Expand Down Expand Up @@ -1620,6 +1620,13 @@
"format": "google-duration",
"type": "string"
},
"messageTransforms": {
"description": "Optional. Transforms to be applied to messages before they are delivered to subscribers. Transforms are applied in the order specified.",
"items": {
"$ref": "MessageTransform"
},
"type": "array"
},
"name": {
"description": "Required. Name of the subscription. Format is `projects/{project}/subscriptions/{sub}`.",
"type": "string"
Expand Down Expand Up @@ -1660,6 +1667,21 @@
},
"type": "object"
},
"JavaScriptUDF": {
"description": "User-defined JavaScript function that can transform or filter a Pub/Sub message.",
"id": "JavaScriptUDF",
"properties": {
"code": {
"description": "Required. JavaScript code that contains a function `function_name` with the below signature: ``` /** * Transforms a Pub/Sub message. * @return {(Object)\u003e|null)} - To * filter a message, return `null`. To transform a message return a map * with the following keys: * - (required) 'data' : {string} * - (optional) 'attributes' : {Object} * Returning empty `attributes` will remove all attributes from the * message. * * @param {(Object)\u003e} Pub/Sub * message. Keys: * - (required) 'data' : {string} * - (required) 'attributes' : {Object} * * @param {Object} metadata - Pub/Sub message metadata. * Keys: * - (required) 'message_id' : {string} * - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format * - (optional) 'ordering_key': {string} */ function (message, metadata) { } ```",
"type": "string"
},
"functionName": {
"description": "Required. Name of the JavasScript function that should applied to Pub/Sub messages.",
"type": "string"
}
},
"type": "object"
},
"LinkedResource": {
"description": "Reference to a linked resource tracked by this Subscription.",
"id": "LinkedResource",
Expand Down Expand Up @@ -1927,6 +1949,21 @@
},
"type": "object"
},
"MessageTransform": {
"description": "All supported message transforms types.",
"id": "MessageTransform",
"properties": {
"enabled": {
"description": "Optional. If set to true, the transform is enabled. If false, the transform is disabled and will not be applied to messages. Defaults to `true`.",
"type": "boolean"
},
"javascriptUdf": {
"$ref": "JavaScriptUDF",
"description": "Optional. JavaScript User Defined Function. If multiple JavaScriptUDF's are specified on a resource, each must have a unique `function_name`."
}
},
"type": "object"
},
"NoWrapper": {
"description": "Sets the `data` field as the HTTP body for delivery.",
"id": "NoWrapper",
Expand Down
72 changes: 70 additions & 2 deletions analyticshub/v1/analyticshub-gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions backupdr/v1/backupdr-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -1745,7 +1745,7 @@
}
}
},
"revision": "20250122",
"revision": "20250129",
"rootUrl": "https://backupdr.googleapis.com/",
"schemas": {
"AbandonBackupRequest": {
Expand Down Expand Up @@ -4775,7 +4775,7 @@
"type": "array"
},
"hourlyFrequency": {
"description": "Optional. Specifies frequency for hourly backups. A hourly frequency of 2 means jobs will run every 2 hours from start time till end time defined. This is required for `recurrence_type`, `HOURLY` and is not applicable otherwise. A validation error will occur if a value is supplied and `recurrence_type` is not `HOURLY`. Value of hourly frequency should be between 6 and 23. Reason for limit : We found that there is bandwidth limitation of 3GB/S for GMI while taking a backup and 5GB/S while doing a restore. Given the amount of parallel backups and restore we are targeting, this will potentially take the backup time to mins and hours (in worst case scenario).",
"description": "Optional. Specifies frequency for hourly backups. A hourly frequency of 2 means jobs will run every 2 hours from start time till end time defined. This is required for `recurrence_type`, `HOURLY` and is not applicable otherwise. A validation error will occur if a value is supplied and `recurrence_type` is not `HOURLY`. Value of hourly frequency should be between 4 and 23. Reason for limit : We found that there is bandwidth limitation of 3GB/S for GMI while taking a backup and 5GB/S while doing a restore. Given the amount of parallel backups and restore we are targeting, this will potentially take the backup time to mins and hours (in worst case scenario).",
"format": "int32",
"type": "integer"
},
Expand Down
2 changes: 1 addition & 1 deletion backupdr/v1/backupdr-gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit aa95c21

Please sign in to comment.