Skip to content

Commit c76e0ea

Browse files
fix(pubsub): update the API
#### pubsub:v1beta1a The following keys were changed: - endpoints #### pubsub:v1beta2 The following keys were changed: - endpoints #### pubsub:v1 The following keys were changed: - endpoints - resources.projects.resources.snapshots.methods.create.parameters.name.description - resources.projects.resources.snapshots.methods.delete.parameters.snapshot.description - resources.projects.resources.snapshots.methods.get.parameters.snapshot.description - resources.projects.resources.snapshots.methods.list.parameters.project.description - resources.projects.resources.subscriptions.methods.create.parameters.name.description - resources.projects.resources.subscriptions.methods.delete.parameters.subscription.description - resources.projects.resources.subscriptions.methods.get.parameters.subscription.description - resources.projects.resources.subscriptions.methods.list.parameters.project.description - resources.projects.resources.subscriptions.methods.patch.parameters.name.description - resources.projects.resources.topics.methods.create.parameters.name.description - resources.projects.resources.topics.methods.delete.parameters.topic.description - resources.projects.resources.topics.methods.get.parameters.topic.description - resources.projects.resources.topics.methods.list.parameters.project.description - resources.projects.resources.topics.methods.patch.parameters.name.description - resources.projects.resources.topics.methods.publish.parameters.topic.description - schemas.CreateSnapshotRequest.properties.subscription.description - schemas.Subscription.properties.name.description - schemas.Subscription.properties.topic.description - schemas.Topic.properties.name.description
1 parent 525aefc commit c76e0ea

File tree

4 files changed

+206
-56
lines changed

4 files changed

+206
-56
lines changed

discovery/pubsub-v1.json

Lines changed: 70 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,31 @@
8484
"endpointUrl": "https://pubsub.australia-southeast2.rep.googleapis.com/",
8585
"location": "australia-southeast2"
8686
},
87+
{
88+
"description": "Regional Endpoint",
89+
"endpointUrl": "https://pubsub.europe-central2.rep.googleapis.com/",
90+
"location": "europe-central2"
91+
},
92+
{
93+
"description": "Regional Endpoint",
94+
"endpointUrl": "https://pubsub.europe-north1.rep.googleapis.com/",
95+
"location": "europe-north1"
96+
},
97+
{
98+
"description": "Regional Endpoint",
99+
"endpointUrl": "https://pubsub.europe-north2.rep.googleapis.com/",
100+
"location": "europe-north2"
101+
},
102+
{
103+
"description": "Regional Endpoint",
104+
"endpointUrl": "https://pubsub.europe-southwest1.rep.googleapis.com/",
105+
"location": "europe-southwest1"
106+
},
107+
{
108+
"description": "Regional Endpoint",
109+
"endpointUrl": "https://pubsub.europe-west1.rep.googleapis.com/",
110+
"location": "europe-west1"
111+
},
87112
{
88113
"description": "Regional Endpoint",
89114
"endpointUrl": "https://pubsub.europe-west2.rep.googleapis.com/",
@@ -94,6 +119,11 @@
94119
"endpointUrl": "https://pubsub.europe-west3.rep.googleapis.com/",
95120
"location": "europe-west3"
96121
},
122+
{
123+
"description": "Regional Endpoint",
124+
"endpointUrl": "https://pubsub.europe-west4.rep.googleapis.com/",
125+
"location": "europe-west4"
126+
},
97127
{
98128
"description": "Regional Endpoint",
99129
"endpointUrl": "https://pubsub.europe-west6.rep.googleapis.com/",
@@ -109,6 +139,16 @@
109139
"endpointUrl": "https://pubsub.europe-west9.rep.googleapis.com/",
110140
"location": "europe-west9"
111141
},
142+
{
143+
"description": "Regional Endpoint",
144+
"endpointUrl": "https://pubsub.europe-west10.rep.googleapis.com/",
145+
"location": "europe-west10"
146+
},
147+
{
148+
"description": "Regional Endpoint",
149+
"endpointUrl": "https://pubsub.europe-west12.rep.googleapis.com/",
150+
"location": "europe-west12"
151+
},
112152
{
113153
"description": "Regional Endpoint",
114154
"endpointUrl": "https://pubsub.me-central1.rep.googleapis.com/",
@@ -174,6 +214,11 @@
174214
"endpointUrl": "https://pubsub.us-east5.rep.googleapis.com/",
175215
"location": "us-east5"
176216
},
217+
{
218+
"description": "Regional Endpoint",
219+
"endpointUrl": "https://pubsub.us-east7.rep.googleapis.com/",
220+
"location": "us-east7"
221+
},
177222
{
178223
"description": "Regional Endpoint",
179224
"endpointUrl": "https://pubsub.us-south1.rep.googleapis.com/",
@@ -198,6 +243,11 @@
198243
"description": "Regional Endpoint",
199244
"endpointUrl": "https://pubsub.us-west4.rep.googleapis.com/",
200245
"location": "us-west4"
246+
},
247+
{
248+
"description": "Regional Endpoint",
249+
"endpointUrl": "https://pubsub.us-west8.rep.googleapis.com/",
250+
"location": "us-west8"
201251
}
202252
],
203253
"icons": {
@@ -750,7 +800,7 @@
750800
],
751801
"parameters": {
752802
"name": {
753-
"description": "Required. User-provided name for this snapshot. If the name is not provided in the request, the server will assign a random name for this snapshot on the same project as the subscription. Note that for REST API requests, you must specify a name. See the [resource name rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). Format is `projects/{project}/snapshots/{snap}`.",
803+
"description": "Required. Identifier. User-provided name for this snapshot. If the name is not provided in the request, the server will assign a random name for this snapshot on the same project as the subscription. Note that for REST API requests, you must specify a name. See the [resource name rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). Format is `projects/{project}/snapshots/{snap}`.",
754804
"location": "path",
755805
"pattern": "^projects/[^/]+/snapshots/[^/]+$",
756806
"required": true,
@@ -779,7 +829,7 @@
779829
],
780830
"parameters": {
781831
"snapshot": {
782-
"description": "Required. The name of the snapshot to delete. Format is `projects/{project}/snapshots/{snap}`.",
832+
"description": "Required. Identifier. The name of the snapshot to delete. Format is `projects/{project}/snapshots/{snap}`.",
783833
"location": "path",
784834
"pattern": "^projects/[^/]+/snapshots/[^/]+$",
785835
"required": true,
@@ -805,7 +855,7 @@
805855
],
806856
"parameters": {
807857
"snapshot": {
808-
"description": "Required. The name of the snapshot to get. Format is `projects/{project}/snapshots/{snap}`.",
858+
"description": "Required. Identifier. The name of the snapshot to get. Format is `projects/{project}/snapshots/{snap}`.",
809859
"location": "path",
810860
"pattern": "^projects/[^/]+/snapshots/[^/]+$",
811861
"required": true,
@@ -874,7 +924,7 @@
874924
"type": "string"
875925
},
876926
"project": {
877-
"description": "Required. The name of the project in which to list snapshots. Format is `projects/{project-id}`.",
927+
"description": "Required. Identifier. The name of the project in which to list snapshots. Format is `projects/{project-id}`.",
878928
"location": "path",
879929
"pattern": "^projects/[^/]+$",
880930
"required": true,
@@ -1020,7 +1070,7 @@
10201070
],
10211071
"parameters": {
10221072
"name": {
1023-
"description": "Required. The name of the subscription. It must have the format `\"projects/{project}/subscriptions/{subscription}\"`. `{subscription}` must start with a letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters in length, and it must not start with `\"goog\"`.",
1073+
"description": "Required. Identifier. The name of the subscription. It must have the format `\"projects/{project}/subscriptions/{subscription}\"`. `{subscription}` must start with a letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters in length, and it must not start with `\"goog\"`.",
10241074
"location": "path",
10251075
"pattern": "^projects/[^/]+/subscriptions/[^/]+$",
10261076
"required": true,
@@ -1049,7 +1099,7 @@
10491099
],
10501100
"parameters": {
10511101
"subscription": {
1052-
"description": "Required. The subscription to delete. Format is `projects/{project}/subscriptions/{sub}`.",
1102+
"description": "Required. Identifier. The subscription to delete. Format is `projects/{project}/subscriptions/{sub}`.",
10531103
"location": "path",
10541104
"pattern": "^projects/[^/]+/subscriptions/[^/]+$",
10551105
"required": true,
@@ -1101,7 +1151,7 @@
11011151
],
11021152
"parameters": {
11031153
"subscription": {
1104-
"description": "Required. The name of the subscription to get. Format is `projects/{project}/subscriptions/{sub}`.",
1154+
"description": "Required. Identifier. The name of the subscription to get. Format is `projects/{project}/subscriptions/{sub}`.",
11051155
"location": "path",
11061156
"pattern": "^projects/[^/]+/subscriptions/[^/]+$",
11071157
"required": true,
@@ -1170,7 +1220,7 @@
11701220
"type": "string"
11711221
},
11721222
"project": {
1173-
"description": "Required. The name of the project in which to list subscriptions. Format is `projects/{project-id}`.",
1223+
"description": "Required. Identifier. The name of the project in which to list subscriptions. Format is `projects/{project-id}`.",
11741224
"location": "path",
11751225
"pattern": "^projects/[^/]+$",
11761226
"required": true,
@@ -1254,7 +1304,7 @@
12541304
],
12551305
"parameters": {
12561306
"name": {
1257-
"description": "Required. The name of the subscription. It must have the format `\"projects/{project}/subscriptions/{subscription}\"`. `{subscription}` must start with a letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters in length, and it must not start with `\"goog\"`.",
1307+
"description": "Required. Identifier. The name of the subscription. It must have the format `\"projects/{project}/subscriptions/{subscription}\"`. `{subscription}` must start with a letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters in length, and it must not start with `\"goog\"`.",
12581308
"location": "path",
12591309
"pattern": "^projects/[^/]+/subscriptions/[^/]+$",
12601310
"required": true,
@@ -1403,7 +1453,7 @@
14031453
],
14041454
"parameters": {
14051455
"name": {
1406-
"description": "Required. The name of the topic. It must have the format `\"projects/{project}/topics/{topic}\"`. `{topic}` must start with a letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters in length, and it must not start with `\"goog\"`.",
1456+
"description": "Required. Identifier. The name of the topic. It must have the format `\"projects/{project}/topics/{topic}\"`. `{topic}` must start with a letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters in length, and it must not start with `\"goog\"`.",
14071457
"location": "path",
14081458
"pattern": "^projects/[^/]+/topics/[^/]+$",
14091459
"required": true,
@@ -1432,7 +1482,7 @@
14321482
],
14331483
"parameters": {
14341484
"topic": {
1435-
"description": "Required. Name of the topic to delete. Format is `projects/{project}/topics/{topic}`.",
1485+
"description": "Required. Identifier. Name of the topic to delete. Format is `projects/{project}/topics/{topic}`.",
14361486
"location": "path",
14371487
"pattern": "^projects/[^/]+/topics/[^/]+$",
14381488
"required": true,
@@ -1458,7 +1508,7 @@
14581508
],
14591509
"parameters": {
14601510
"topic": {
1461-
"description": "Required. The name of the topic to get. Format is `projects/{project}/topics/{topic}`.",
1511+
"description": "Required. Identifier. The name of the topic to get. Format is `projects/{project}/topics/{topic}`.",
14621512
"location": "path",
14631513
"pattern": "^projects/[^/]+/topics/[^/]+$",
14641514
"required": true,
@@ -1527,7 +1577,7 @@
15271577
"type": "string"
15281578
},
15291579
"project": {
1530-
"description": "Required. The name of the project in which to list topics. Format is `projects/{project-id}`.",
1580+
"description": "Required. Identifier. The name of the project in which to list topics. Format is `projects/{project-id}`.",
15311581
"location": "path",
15321582
"pattern": "^projects/[^/]+$",
15331583
"required": true,
@@ -1553,7 +1603,7 @@
15531603
],
15541604
"parameters": {
15551605
"name": {
1556-
"description": "Required. The name of the topic. It must have the format `\"projects/{project}/topics/{topic}\"`. `{topic}` must start with a letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters in length, and it must not start with `\"goog\"`.",
1606+
"description": "Required. Identifier. The name of the topic. It must have the format `\"projects/{project}/topics/{topic}\"`. `{topic}` must start with a letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters in length, and it must not start with `\"goog\"`.",
15571607
"location": "path",
15581608
"pattern": "^projects/[^/]+/topics/[^/]+$",
15591609
"required": true,
@@ -1582,7 +1632,7 @@
15821632
],
15831633
"parameters": {
15841634
"topic": {
1585-
"description": "Required. The messages in the request will be published on this topic. Format is `projects/{project}/topics/{topic}`.",
1635+
"description": "Required. Identifier. The messages in the request will be published on this topic. Format is `projects/{project}/topics/{topic}`.",
15861636
"location": "path",
15871637
"pattern": "^projects/[^/]+/topics/[^/]+$",
15881638
"required": true,
@@ -1748,7 +1798,7 @@
17481798
}
17491799
}
17501800
},
1751-
"revision": "20251104",
1801+
"revision": "20251212",
17521802
"rootUrl": "https://pubsub.googleapis.com/",
17531803
"schemas": {
17541804
"AcknowledgeRequest": {
@@ -2220,7 +2270,7 @@
22202270
"type": "object"
22212271
},
22222272
"subscription": {
2223-
"description": "Required. The subscription whose backlog the snapshot retains. Specifically, the created snapshot is guaranteed to retain: (a) The existing backlog on the subscription. More precisely, this is defined as the messages in the subscription's backlog that are unacknowledged upon the successful completion of the `CreateSnapshot` request; as well as: (b) Any messages published to the subscription's topic following the successful completion of the CreateSnapshot request. Format is `projects/{project}/subscriptions/{sub}`.",
2273+
"description": "Required. Identifier. The subscription whose backlog the snapshot retains. Specifically, the created snapshot is guaranteed to retain: (a) The existing backlog on the subscription. More precisely, this is defined as the messages in the subscription's backlog that are unacknowledged upon the successful completion of the `CreateSnapshot` request; as well as: (b) Any messages published to the subscription's topic following the successful completion of the CreateSnapshot request. Format is `projects/{project}/subscriptions/{sub}`.",
22242274
"type": "string"
22252275
},
22262276
"tags": {
@@ -2993,7 +3043,7 @@
29933043
"type": "array"
29943044
},
29953045
"name": {
2996-
"description": "Required. The name of the subscription. It must have the format `\"projects/{project}/subscriptions/{subscription}\"`. `{subscription}` must start with a letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters in length, and it must not start with `\"goog\"`.",
3046+
"description": "Required. Identifier. The name of the subscription. It must have the format `\"projects/{project}/subscriptions/{subscription}\"`. `{subscription}` must start with a letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters in length, and it must not start with `\"goog\"`.",
29973047
"type": "string"
29983048
},
29993049
"pushConfig": {
@@ -3031,7 +3081,7 @@
30313081
"type": "object"
30323082
},
30333083
"topic": {
3034-
"description": "Required. The name of the topic from which this subscription is receiving messages. Format is `projects/{project}/topics/{topic}`. The value of this field will be `_deleted-topic_` if the topic has been deleted.",
3084+
"description": "Required. Identifier. The name of the topic from which this subscription is receiving messages. Format is `projects/{project}/topics/{topic}`. The value of this field will be `_deleted-topic_` if the topic has been deleted.",
30353085
"type": "string"
30363086
},
30373087
"topicMessageRetentionDuration": {
@@ -3124,7 +3174,7 @@
31243174
"type": "array"
31253175
},
31263176
"name": {
3127-
"description": "Required. The name of the topic. It must have the format `\"projects/{project}/topics/{topic}\"`. `{topic}` must start with a letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters in length, and it must not start with `\"goog\"`.",
3177+
"description": "Required. Identifier. The name of the topic. It must have the format `\"projects/{project}/topics/{topic}\"`. `{topic}` must start with a letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters in length, and it must not start with `\"goog\"`.",
31283178
"type": "string"
31293179
},
31303180
"satisfiesPzs": {

0 commit comments

Comments
 (0)