Skip to content

Commit ca2296c

Browse files
feat: [batch] Clarify Batch API proto doc about pubsub notifications (#4503)
* feat: Clarify Batch API proto doc about pubsub notifications --- feat: add Batch Managed Container support for v1alpha PiperOrigin-RevId: 554622486 Source-Link: googleapis/googleapis@0e42ad0 Source-Link: googleapis/googleapis-gen@274d7b7 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJhdGNoLy5Pd2xCb3QueWFtbCIsImgiOiIyNzRkN2I3NzdlNDRkMmUwNjBlZTBkY2EzNjIwNDExOTI3NWMyZGNhIn0= * 🦉 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 <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent cff0faf commit ca2296c

6 files changed

Lines changed: 13 additions & 8 deletions

File tree

packages/google-cloud-batch/protos/google/cloud/batch/v1/job.proto

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,12 @@ message JobStatus {
184184
// Notification configurations.
185185
message JobNotification {
186186
// Message details.
187-
// Describe the attribute that a message should have.
188-
// Without specified message attributes, no message will be sent by default.
187+
// Describe the conditions under which messages will be sent.
188+
// If no attribute is defined, no message will be sent by default.
189+
// One message should specify either the job or the task level attributes,
190+
// but not both. For example,
191+
// job level: JOB_STATE_CHANGED and/or a specified new_job_state;
192+
// task level: TASK_STATE_CHANGED and/or a specified new_task_state.
189193
message Message {
190194
// The message type.
191195
Type type = 1;
@@ -210,8 +214,8 @@ message JobNotification {
210214
}
211215

212216
// The Pub/Sub topic where notifications like the job state changes
213-
// will be published. This topic exist in the same project as the job
214-
// and billings will be charged to this project.
217+
// will be published. The topic must exist in the same project as
218+
// the job and billings will be charged to this project.
215219
// If not specified, no Pub/Sub messages will be sent.
216220
// Topic format: `projects/{project}/topics/{topic}`.
217221
string pubsub_topic = 1;

packages/google-cloud-batch/protos/google/cloud/batch/v1/task.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ syntax = "proto3";
1616

1717
package google.cloud.batch.v1;
1818

19+
import "google/api/field_behavior.proto";
1920
import "google/api/resource.proto";
2021
import "google/cloud/batch/v1/volume.proto";
2122
import "google/protobuf/duration.proto";

packages/google-cloud-batch/samples/generated/v1/snippet_metadata.google.cloud.batch.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"clientLibrary": {
33
"name": "nodejs-batch",
4-
"version": "0.10.0",
4+
"version": "1.0.0",
55
"language": "TYPESCRIPT",
66
"apis": [
77
{

packages/google-cloud-batch/samples/generated/v1/snippet_metadata_google.cloud.batch.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"clientLibrary": {
33
"name": "nodejs-batch",
4-
"version": "0.10.0",
4+
"version": "1.0.0",
55
"language": "TYPESCRIPT",
66
"apis": [
77
{

packages/google-cloud-batch/samples/generated/v1alpha/snippet_metadata.google.cloud.batch.v1alpha.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"clientLibrary": {
33
"name": "nodejs-batch",
4-
"version": "0.10.0",
4+
"version": "1.0.0",
55
"language": "TYPESCRIPT",
66
"apis": [
77
{

packages/google-cloud-batch/samples/generated/v1alpha/snippet_metadata_google.cloud.batch.v1alpha.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"clientLibrary": {
33
"name": "nodejs-batch",
4-
"version": "0.10.0",
4+
"version": "1.0.0",
55
"language": "TYPESCRIPT",
66
"apis": [
77
{

0 commit comments

Comments
 (0)