Skip to content

Commit c798f62

Browse files
authored
feat(pubsub/v2): add new v2 library (#12218)
* move existing files to v2 * add pstest and testdata directories * chore(pubsub): rewrite v2 files with new package (#11292) * chore(pubsub): remove handwritten layer from v2 (#11367) * refactor imports to support v2 * remove handwritten schema client * remove handwritten topic admin methods * remove handwritten subscription admin methods * remove admin operations only tests * delete handwritten snapshot methods * deprecate(pubsub/v2): remove and rename existing settings (#11375) * deprecate(pubsub/v2): deprecate and rename user settings * remove more code related to synchronous and byte limit * refactor(pubsub/v2): make tests use new GAPIC library (#11429) * refactor(pubsub/v2): make tests use new GAPIC library * remove examples for list operations that are no longer part of this library * feat(pubsub/v2): rename data plane clients (#11376) * rename data plane clients * add renamed data clients * revert changes to filenames * rename subscriber * fix go docs referencing topic/subs * fix remaining data client renames * remove unused publisher method * remove TopicInProject remove TopicInProject * feat(pubsub): rename lease settings, change byte limit default (#11963) * chore(pubsub): restore updated v1 go files (#12011) * chore(pubsub): revert v2 gapic to head (#12090) * chore(pubsub): revert v2 gapic to HEAD * revert info.go changes * chore(pubsub): module and workspace updates (#12106) * chore(pubsub): replace go.mod and go.work files in v1 * fix go.work formatting * run go mod tidy * chore(pubsub): rename data plane clients (#12108) * chore(pubsub): rename data clients and update documentation * more data plane renaming * update repo-metadata and module files * update copyright header for new files * update go mod and work files * add deprecation notice for pubsub v1 * fix exported comments * feat(pubsub/v2): remove dependency on v2 fake (#12248) * remove v2 fake * remove lingering import of v2 pstest * run go mod tidy * bump google.golang.org/api version * feat(pubsub/v2): add back fake and internal packages (#12292) * feat(pubsub): add back v2 helper libraries * fix copyright header year for new files * update internal/testutil package version * chore: alias v1 pubsub types * chore(pubsub/v2): rename call options (#12519) * chore(pubsub/v2): rename call options * fix variable name * chore(pubsub/v2): carve out v2 module (#12509) * docs(pubsub): add migration guide to v2 (#12547) * docs(pubsub): add migration guide to v2 * additional code formatting and edits to migration guide * format code migration guide
1 parent 3f14ec8 commit c798f62

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+27041
-11535
lines changed

go.work

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ use (
138138
./privilegedaccessmanager
139139
./profiler
140140
./pubsub
141+
./pubsub/v2
141142
./pubsublite
142143
./rapidmigrationassessment
143144
./recaptchaenterprise

go.work.sum

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ google.golang.org/genproto/googleapis/bytestream v0.0.0-20240102182953-50ed04b92
231231
google.golang.org/genproto/googleapis/bytestream v0.0.0-20240513163218-0867130af1f8/go.mod h1:RCpt0+3mpEDPldc32vXBM8ADXlFL95T8Chxx0nv0/zE=
232232
google.golang.org/genproto/googleapis/bytestream v0.0.0-20250115164207-1a7da9e5054f h1:NtrhicUU5+S4TaE5AurusJUYfAo/QB8a+kbIXipuJeI=
233233
google.golang.org/genproto/googleapis/bytestream v0.0.0-20250303144028-a0af3efb3deb/go.mod h1:35wIojE/F1ptq1nfNDNjtowabHoMSA2qQs7+smpCO5s=
234+
google.golang.org/genproto/googleapis/bytestream v0.0.0-20250505200425-f936aa4a68b2/go.mod h1:h6yxum/C2qRb4txaZRLDHK8RyS0H/o2oEDeKY4onY/Y=
234235
google.golang.org/genproto/googleapis/rpc v0.0.0-20230725213213-b022f6e96895/go.mod h1:TUfxEVdsvPg18p6AslUXFoLdpED4oBnGwyqk3dV1XzM=
235236
google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.3.0 h1:rNBFJjBCOgVr9pWD7rs/knKL4FRTKgpZmsRfV214zcA=
236237
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=

internal/.repo-metadata-full.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2249,6 +2249,16 @@
22492249
"release_level": "stable",
22502250
"library_type": "GAPIC_MANUAL"
22512251
},
2252+
"cloud.google.com/go/pubsub/v2": {
2253+
"api_shortname": "pubsub",
2254+
"distribution_name": "cloud.google.com/go/pubsub/v2",
2255+
"description": "Cloud Pub/Sub API",
2256+
"language": "go",
2257+
"client_library_type": "manual",
2258+
"client_documentation": "https://cloud.google.com/go/docs/reference/cloud.google.com/go/pubsub/latest/v2",
2259+
"release_level": "stable",
2260+
"library_type": "GAPIC_MANUAL"
2261+
},
22522262
"cloud.google.com/go/pubsub/v2/apiv1": {
22532263
"api_shortname": "pubsub",
22542264
"distribution_name": "cloud.google.com/go/pubsub/v2/apiv1",

internal/postprocessor/config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ modules:
123123
- privatecatalog
124124
- privilegedaccessmanager
125125
- profiler
126+
- pubsub/v2
126127
- pubsub
127128
- pubsublite
128129
- rapidmigrationassessment

0 commit comments

Comments
 (0)