google-cloud-pubsub-v1 0.1.2 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +14 -14
- data/LICENSE.md +188 -190
- data/README.md +69 -5
- data/lib/google/cloud/pubsub/v1/iam_policy/client.rb +108 -52
- data/lib/google/cloud/pubsub/v1/publisher/client.rb +284 -121
- data/lib/google/cloud/pubsub/v1/publisher/paths.rb +18 -1
- data/lib/google/cloud/pubsub/v1/schema_service/client.rb +898 -0
- data/lib/google/cloud/pubsub/v1/schema_service/credentials.rb +52 -0
- data/lib/google/cloud/pubsub/v1/schema_service/paths.rb +64 -0
- data/lib/google/cloud/pubsub/v1/schema_service.rb +49 -0
- data/lib/google/cloud/pubsub/v1/subscriber/client.rb +457 -182
- data/lib/google/cloud/pubsub/v1/subscriber/paths.rb +1 -1
- data/lib/google/cloud/pubsub/v1/version.rb +1 -1
- data/lib/google/cloud/pubsub/v1.rb +5 -1
- data/lib/google/pubsub/v1/pubsub_pb.rb +17 -2
- data/lib/google/pubsub/v1/pubsub_services_pb.rb +31 -31
- data/lib/google/pubsub/v1/schema_pb.rb +95 -0
- data/lib/google/pubsub/v1/schema_services_pb.rb +55 -0
- data/proto_docs/google/api/field_behavior.rb +12 -0
- data/proto_docs/google/api/resource.rb +50 -14
- data/proto_docs/google/protobuf/timestamp.rb +10 -1
- data/proto_docs/google/pubsub/v1/pubsub.rb +55 -2
- data/proto_docs/google/pubsub/v1/schema.rb +218 -0
- data/proto_docs/google/type/expr.rb +35 -12
- metadata +28 -14
- data/lib/google/iam/v1/iam_policy_services_pb.rb +0 -81
@@ -38,6 +38,23 @@ module Google
|
|
38
38
|
"projects/#{project}"
|
39
39
|
end
|
40
40
|
|
41
|
+
##
|
42
|
+
# Create a fully-qualified Schema resource string.
|
43
|
+
#
|
44
|
+
# The resource will be in the following format:
|
45
|
+
#
|
46
|
+
# `projects/{project}/schemas/{schema}`
|
47
|
+
#
|
48
|
+
# @param project [String]
|
49
|
+
# @param schema [String]
|
50
|
+
#
|
51
|
+
# @return [::String]
|
52
|
+
def schema_path project:, schema:
|
53
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
54
|
+
|
55
|
+
"projects/#{project}/schemas/#{schema}"
|
56
|
+
end
|
57
|
+
|
41
58
|
##
|
42
59
|
# Create a fully-qualified Subscription resource string.
|
43
60
|
#
|
@@ -79,7 +96,7 @@ module Google
|
|
79
96
|
|
80
97
|
"projects/#{project}/topics/#{topic}"
|
81
98
|
end),
|
82
|
-
""
|
99
|
+
"" => (proc do
|
83
100
|
"_deleted-topic_"
|
84
101
|
end)
|
85
102
|
}
|