google-cloud-pubsub-v1 1.10.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.
- checksums.yaml +4 -4
- data/lib/google/cloud/pubsub/v1/publisher/credentials.rb +2 -37
- data/lib/google/cloud/pubsub/v1/publisher.rb +2 -35
- data/lib/google/cloud/pubsub/v1/schema_service/client.rb +2 -2
- data/lib/google/cloud/pubsub/v1/subscriber/credentials.rb +2 -37
- data/lib/google/cloud/pubsub/v1/subscriber.rb +2 -36
- data/lib/google/cloud/pubsub/v1/{subscriber → subscription_admin}/client.rb +63 -63
- data/lib/google/cloud/pubsub/v1/subscription_admin/credentials.rb +52 -0
- data/lib/google/cloud/pubsub/v1/{publisher → subscription_admin}/helpers.rb +4 -1
- data/lib/google/cloud/pubsub/v1/{subscriber → subscription_admin}/paths.rb +3 -3
- data/lib/google/cloud/pubsub/v1/subscription_admin.rb +51 -0
- data/lib/google/cloud/pubsub/v1/{publisher → topic_admin}/client.rb +46 -46
- data/lib/google/cloud/pubsub/v1/topic_admin/credentials.rb +52 -0
- data/lib/google/cloud/pubsub/v1/{subscriber → topic_admin}/helpers.rb +4 -1
- data/lib/google/cloud/pubsub/v1/{publisher → topic_admin}/paths.rb +3 -3
- data/lib/google/cloud/pubsub/v1/topic_admin.rb +50 -0
- data/lib/google/cloud/pubsub/v1/version.rb +1 -1
- data/lib/google/cloud/pubsub/v1.rb +2 -2
- data/lib/google/pubsub/v1/pubsub_pb.rb +2 -1
- data/proto_docs/google/pubsub/v1/pubsub.rb +50 -11
- metadata +11 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57b1c094232cb8d4a6865f7b48403873a788c43c7dd18f189f73a35d093b7b46
|
4
|
+
data.tar.gz: aba4b106f88cffb7ab128f0fd37316af10ea2910f94b9a200b0da07d624817df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d1c46ca8fae908e6980183207252e4ca91b07dab71a5636407a12a9547a8b3d95ab7e26f413045879df48091eb5a104195ff98ec16998f4681195c8706a28c1
|
7
|
+
data.tar.gz: 006e37cf5f283a68acdd60070da2aed7f740af393e35b3ebf17e80bcc5e6dff596f402f32719d67bc86e0e1b32f5667b9674e94b9e69c0aca52b5b14ec3446c9
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright
|
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
|
-
|
18
|
-
|
19
|
-
require "googleauth"
|
20
|
-
|
21
|
-
module Google
|
22
|
-
module Cloud
|
23
|
-
module PubSub
|
24
|
-
module V1
|
25
|
-
module Publisher
|
26
|
-
# Credentials for the Publisher 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/topic_admin"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright
|
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,37 +14,4 @@
|
|
14
14
|
# See the License for the specific language governing permissions and
|
15
15
|
# limitations under the License.
|
16
16
|
|
17
|
-
|
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/publisher/credentials"
|
26
|
-
require "google/cloud/pubsub/v1/publisher/paths"
|
27
|
-
require "google/cloud/pubsub/v1/publisher/client"
|
28
|
-
|
29
|
-
module Google
|
30
|
-
module Cloud
|
31
|
-
module PubSub
|
32
|
-
module V1
|
33
|
-
##
|
34
|
-
# The service that an application uses to manipulate topics, and to send
|
35
|
-
# messages to a topic.
|
36
|
-
#
|
37
|
-
# @example Load this service and instantiate a gRPC client
|
38
|
-
#
|
39
|
-
# require "google/cloud/pubsub/v1/publisher"
|
40
|
-
# client = ::Google::Cloud::PubSub::V1::Publisher::Client.new
|
41
|
-
#
|
42
|
-
module Publisher
|
43
|
-
end
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|
48
|
-
|
49
|
-
helper_path = ::File.join __dir__, "publisher", "helpers.rb"
|
50
|
-
require "google/cloud/pubsub/v1/publisher/helpers" if ::File.file? helper_path
|
17
|
+
require "google/cloud/pubsub/v1/topic_admin"
|
@@ -1108,11 +1108,11 @@ module Google
|
|
1108
1108
|
#
|
1109
1109
|
# Format is `projects/{project}/schemas/{schema}`.
|
1110
1110
|
#
|
1111
|
-
# Note: The following
|
1111
|
+
# Note: The following parameters are mutually exclusive: `name`, `schema`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
1112
1112
|
# @param schema [::Google::Cloud::PubSub::V1::Schema, ::Hash]
|
1113
1113
|
# Ad-hoc schema against which to validate
|
1114
1114
|
#
|
1115
|
-
# Note: The following
|
1115
|
+
# Note: The following parameters are mutually exclusive: `schema`, `name`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
1116
1116
|
# @param message [::String]
|
1117
1117
|
# Message to validate against the provided `schema_spec`.
|
1118
1118
|
# @param encoding [::Google::Cloud::PubSub::V1::Encoding]
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright
|
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
|
-
|
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
|
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
|
-
|
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
|
-
# @example Load this service and instantiate a gRPC 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"
|