google-cloud-pubsub-v1 0.11.0 → 1.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +72 -101
  3. data/README.md +32 -22
  4. data/lib/google/cloud/pubsub/v1/{publisher/helpers.rb → _helpers.rb} +4 -10
  5. data/lib/google/cloud/pubsub/v1/iam_policy/client.rb +33 -337
  6. data/lib/google/cloud/pubsub/v1/iam_policy/credentials.rb +6 -2
  7. data/lib/google/cloud/pubsub/v1/iam_policy.rb +5 -31
  8. data/lib/google/cloud/pubsub/v1/publisher/credentials.rb +2 -37
  9. data/lib/google/cloud/pubsub/v1/publisher.rb +2 -35
  10. data/lib/google/cloud/pubsub/v1/schema_service/client.rb +571 -35
  11. data/lib/google/cloud/pubsub/v1/schema_service.rb +1 -1
  12. data/lib/google/cloud/pubsub/v1/subscriber/credentials.rb +2 -37
  13. data/lib/google/cloud/pubsub/v1/subscriber.rb +2 -36
  14. data/lib/google/cloud/pubsub/v1/{subscriber → subscription_admin}/client.rb +299 -208
  15. data/lib/google/cloud/pubsub/v1/subscription_admin/credentials.rb +52 -0
  16. data/lib/google/cloud/pubsub/v1/subscription_admin/helpers.rb +50 -0
  17. data/lib/google/cloud/pubsub/v1/{subscriber → subscription_admin}/paths.rb +3 -3
  18. data/lib/google/cloud/pubsub/v1/subscription_admin.rb +51 -0
  19. data/lib/google/cloud/pubsub/v1/{publisher → topic_admin}/client.rb +199 -108
  20. data/lib/google/cloud/pubsub/v1/topic_admin/credentials.rb +52 -0
  21. data/lib/google/cloud/pubsub/v1/topic_admin/helpers.rb +50 -0
  22. data/lib/google/cloud/pubsub/v1/{publisher → topic_admin}/paths.rb +3 -3
  23. data/lib/google/cloud/pubsub/v1/topic_admin.rb +50 -0
  24. data/lib/google/cloud/pubsub/v1/version.rb +1 -1
  25. data/lib/google/cloud/pubsub/v1.rb +4 -5
  26. data/lib/google/pubsub/v1/pubsub_pb.rb +63 -246
  27. data/lib/google/pubsub/v1/pubsub_services_pb.rb +23 -24
  28. data/lib/google/pubsub/v1/schema_pb.rb +31 -60
  29. data/lib/google/pubsub/v1/schema_services_pb.rb +8 -0
  30. data/proto_docs/google/api/client.rb +473 -0
  31. data/proto_docs/google/api/field_behavior.rb +14 -0
  32. data/proto_docs/google/api/launch_stage.rb +71 -0
  33. data/proto_docs/google/api/resource.rb +7 -2
  34. data/proto_docs/google/protobuf/empty.rb +0 -2
  35. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  36. data/proto_docs/google/pubsub/v1/pubsub.rb +1189 -227
  37. data/proto_docs/google/pubsub/v1/schema.rb +93 -4
  38. metadata +25 -142
  39. data/lib/google/cloud/pubsub/v1/subscriber/helpers.rb +0 -25
  40. data/proto_docs/google/iam/v1/iam_policy.rb +0 -87
  41. data/proto_docs/google/iam/v1/options.rb +0 -50
  42. data/proto_docs/google/iam/v1/policy.rb +0 -418
@@ -33,7 +33,7 @@ module Google
33
33
  ##
34
34
  # Service for doing schema-related operations.
35
35
  #
36
- # To load this service and instantiate a client:
36
+ # @example Load this service and instantiate a gRPC client
37
37
  #
38
38
  # require "google/cloud/pubsub/v1/schema_service"
39
39
  # client = ::Google::Cloud::PubSub::V1::SchemaService::Client.new
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2025 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -14,39 +14,4 @@
14
14
  # See the License for the specific language governing permissions and
15
15
  # limitations under the License.
16
16
 
17
- # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
-
19
- require "googleauth"
20
-
21
- module Google
22
- module Cloud
23
- module PubSub
24
- module V1
25
- module Subscriber
26
- # Credentials for the Subscriber API.
27
- class Credentials < ::Google::Auth::Credentials
28
- self.scope = [
29
- "https://www.googleapis.com/auth/cloud-platform",
30
- "https://www.googleapis.com/auth/pubsub"
31
- ]
32
- self.env_vars = [
33
- "PUBSUB_CREDENTIALS",
34
- "PUBSUB_KEYFILE",
35
- "GOOGLE_CLOUD_CREDENTIALS",
36
- "GOOGLE_CLOUD_KEYFILE",
37
- "GCLOUD_KEYFILE",
38
- "PUBSUB_CREDENTIALS_JSON",
39
- "PUBSUB_KEYFILE_JSON",
40
- "GOOGLE_CLOUD_CREDENTIALS_JSON",
41
- "GOOGLE_CLOUD_KEYFILE_JSON",
42
- "GCLOUD_KEYFILE_JSON"
43
- ]
44
- self.paths = [
45
- "~/.config/google_cloud/application_default_credentials.json"
46
- ]
47
- end
48
- end
49
- end
50
- end
51
- end
52
- end
17
+ require "google/cloud/pubsub/v1/subscription_admin"
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 Google LLC
3
+ # Copyright 2025 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -14,38 +14,4 @@
14
14
  # See the License for the specific language governing permissions and
15
15
  # limitations under the License.
16
16
 
17
- # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
-
19
- require "gapic/common"
20
- require "gapic/config"
21
- require "gapic/config/method"
22
-
23
- require "google/cloud/pubsub/v1/version"
24
-
25
- require "google/cloud/pubsub/v1/subscriber/credentials"
26
- require "google/cloud/pubsub/v1/subscriber/paths"
27
- require "google/cloud/pubsub/v1/subscriber/client"
28
-
29
- module Google
30
- module Cloud
31
- module PubSub
32
- module V1
33
- ##
34
- # The service that an application uses to manipulate subscriptions and to
35
- # consume messages from a subscription via the `Pull` method or by
36
- # establishing a bi-directional stream using the `StreamingPull` method.
37
- #
38
- # To load this service and instantiate a client:
39
- #
40
- # require "google/cloud/pubsub/v1/subscriber"
41
- # client = ::Google::Cloud::PubSub::V1::Subscriber::Client.new
42
- #
43
- module Subscriber
44
- end
45
- end
46
- end
47
- end
48
- end
49
-
50
- helper_path = ::File.join __dir__, "subscriber", "helpers.rb"
51
- require "google/cloud/pubsub/v1/subscriber/helpers" if ::File.file? helper_path
17
+ require "google/cloud/pubsub/v1/subscription_admin"