google-cloud-eventarc-publishing-v1 0.2.0 → 0.4.0
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/AUTHENTICATION.md +1 -1
- data/README.md +10 -5
- data/lib/google/cloud/eventarc/publishing/v1/publisher/client.rb +16 -2
- data/lib/google/cloud/eventarc/publishing/v1/publisher_pb.rb +4 -1
- data/lib/google/cloud/eventarc/publishing/v1/publisher_services_pb.rb +0 -1
- data/lib/google/cloud/eventarc/publishing/v1/version.rb +1 -1
- data/proto_docs/google/cloud/eventarc/publishing/v1/publisher.rb +16 -0
- data/proto_docs/google/protobuf/any.rb +3 -3
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9d6bd0508e60a6e8d295566ceef014f8fe2a25b08484eedb7a181f7b27bd279
|
4
|
+
data.tar.gz: c7b3ebbb13044b136fdaca92befefc560be34b3dd30601d8d4b257260dea852d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62179721c954abd92b513d8140251d07ed2ab9dad56fe65c420d944d5e84860d541a67a47660506785dfd0d6b7a25302672493b0afc67e8f1c3b7a6c0ca5470d
|
7
|
+
data.tar.gz: 6db2934add4710ec8e86b90eeee241e10f1fdec18e353042ea495ba6b0ddd75b29fa20805f6a5cb327ca330f14436e8dce3958957c87e8e10fce7eda0442d937
|
data/AUTHENTICATION.md
CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
|
|
114
114
|
To configure your system for this, simply:
|
115
115
|
|
116
116
|
1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
|
117
|
-
2. Authenticate using OAuth 2.0 `$ gcloud auth login`
|
117
|
+
2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
|
118
118
|
3. Write code as if already authenticated.
|
119
119
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
data/README.md
CHANGED
@@ -69,16 +69,21 @@ module GRPC
|
|
69
69
|
end
|
70
70
|
```
|
71
71
|
|
72
|
+
|
73
|
+
## Google Cloud Samples
|
74
|
+
|
75
|
+
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
76
|
+
|
72
77
|
## Supported Ruby Versions
|
73
78
|
|
74
|
-
This library is supported on Ruby 2.
|
79
|
+
This library is supported on Ruby 2.6+.
|
75
80
|
|
76
81
|
Google provides official support for Ruby versions that are actively supported
|
77
82
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
78
|
-
in security maintenance, and not end of life.
|
79
|
-
|
80
|
-
|
81
|
-
|
83
|
+
in security maintenance, and not end of life. Older versions of Ruby _may_
|
84
|
+
still work, but are unsupported and not recommended. See
|
85
|
+
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
86
|
+
support schedule.
|
82
87
|
|
83
88
|
## Which client should I use?
|
84
89
|
|
@@ -181,7 +181,7 @@ module Google
|
|
181
181
|
# @param options [::Gapic::CallOptions, ::Hash]
|
182
182
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
183
183
|
#
|
184
|
-
# @overload publish_channel_connection_events(channel_connection: nil, events: nil)
|
184
|
+
# @overload publish_channel_connection_events(channel_connection: nil, events: nil, text_events: nil)
|
185
185
|
# Pass arguments to `publish_channel_connection_events` via keyword arguments. Note that at
|
186
186
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
187
187
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -191,6 +191,13 @@ module Google
|
|
191
191
|
# `projects/{partner_project_id}/locations/{location}/channelConnections/{channel_connection_id}`.
|
192
192
|
# @param events [::Array<::Google::Protobuf::Any, ::Hash>]
|
193
193
|
# The CloudEvents v1.0 events to publish. No other types are allowed.
|
194
|
+
# If this field is set, then the `text_events` fields must not be set.
|
195
|
+
# @param text_events [::Array<::String>]
|
196
|
+
# The text representation of events to publish.
|
197
|
+
# CloudEvent v1.0 in JSON format is the only allowed type. Refer to
|
198
|
+
# https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md
|
199
|
+
# for specification.
|
200
|
+
# If this field is set, then the `events` fields must not be set.
|
194
201
|
#
|
195
202
|
# @yield [response, operation] Access the result along with the RPC operation
|
196
203
|
# @yieldparam response [::Google::Cloud::Eventarc::Publishing::V1::PublishChannelConnectionEventsResponse]
|
@@ -269,7 +276,7 @@ module Google
|
|
269
276
|
# @param options [::Gapic::CallOptions, ::Hash]
|
270
277
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
271
278
|
#
|
272
|
-
# @overload publish_events(channel: nil, events: nil)
|
279
|
+
# @overload publish_events(channel: nil, events: nil, text_events: nil)
|
273
280
|
# Pass arguments to `publish_events` via keyword arguments. Note that at
|
274
281
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
275
282
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -279,6 +286,13 @@ module Google
|
|
279
286
|
# `projects/{project}/locations/{location}/channels/{channel-id}`.
|
280
287
|
# @param events [::Array<::Google::Protobuf::Any, ::Hash>]
|
281
288
|
# The CloudEvents v1.0 events to publish. No other types are allowed.
|
289
|
+
# If this field is set, then the `text_events` fields must not be set.
|
290
|
+
# @param text_events [::Array<::String>]
|
291
|
+
# The text representation of events to publish.
|
292
|
+
# CloudEvent v1.0 in JSON format is the only allowed type. Refer to
|
293
|
+
# https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md
|
294
|
+
# for specification.
|
295
|
+
# If this field is set, then the `events` fields must not be set.
|
282
296
|
#
|
283
297
|
# @yield [response, operation] Access the result along with the RPC operation
|
284
298
|
# @yieldparam response [::Google::Cloud::Eventarc::Publishing::V1::PublishEventsResponse]
|
@@ -1,22 +1,25 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/eventarc/publishing/v1/publisher.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/annotations_pb'
|
5
7
|
require 'google/api/client_pb'
|
6
8
|
require 'google/protobuf/any_pb'
|
7
|
-
require 'google/protobuf'
|
8
9
|
|
9
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
11
|
add_file("google/cloud/eventarc/publishing/v1/publisher.proto", :syntax => :proto3) do
|
11
12
|
add_message "google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest" do
|
12
13
|
optional :channel_connection, :string, 1
|
13
14
|
repeated :events, :message, 2, "google.protobuf.Any"
|
15
|
+
repeated :text_events, :string, 3
|
14
16
|
end
|
15
17
|
add_message "google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse" do
|
16
18
|
end
|
17
19
|
add_message "google.cloud.eventarc.publishing.v1.PublishEventsRequest" do
|
18
20
|
optional :channel, :string, 1
|
19
21
|
repeated :events, :message, 2, "google.protobuf.Any"
|
22
|
+
repeated :text_events, :string, 3
|
20
23
|
end
|
21
24
|
add_message "google.cloud.eventarc.publishing.v1.PublishEventsResponse" do
|
22
25
|
end
|
@@ -14,7 +14,6 @@
|
|
14
14
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
15
|
# See the License for the specific language governing permissions and
|
16
16
|
# limitations under the License.
|
17
|
-
#
|
18
17
|
|
19
18
|
require 'grpc'
|
20
19
|
require 'google/cloud/eventarc/publishing/v1/publisher_pb'
|
@@ -30,6 +30,14 @@ module Google
|
|
30
30
|
# @!attribute [rw] events
|
31
31
|
# @return [::Array<::Google::Protobuf::Any>]
|
32
32
|
# The CloudEvents v1.0 events to publish. No other types are allowed.
|
33
|
+
# If this field is set, then the `text_events` fields must not be set.
|
34
|
+
# @!attribute [rw] text_events
|
35
|
+
# @return [::Array<::String>]
|
36
|
+
# The text representation of events to publish.
|
37
|
+
# CloudEvent v1.0 in JSON format is the only allowed type. Refer to
|
38
|
+
# https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md
|
39
|
+
# for specification.
|
40
|
+
# If this field is set, then the `events` fields must not be set.
|
33
41
|
class PublishChannelConnectionEventsRequest
|
34
42
|
include ::Google::Protobuf::MessageExts
|
35
43
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -49,6 +57,14 @@ module Google
|
|
49
57
|
# @!attribute [rw] events
|
50
58
|
# @return [::Array<::Google::Protobuf::Any>]
|
51
59
|
# The CloudEvents v1.0 events to publish. No other types are allowed.
|
60
|
+
# If this field is set, then the `text_events` fields must not be set.
|
61
|
+
# @!attribute [rw] text_events
|
62
|
+
# @return [::Array<::String>]
|
63
|
+
# The text representation of events to publish.
|
64
|
+
# CloudEvent v1.0 in JSON format is the only allowed type. Refer to
|
65
|
+
# https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md
|
66
|
+
# for specification.
|
67
|
+
# If this field is set, then the `events` fields must not be set.
|
52
68
|
class PublishEventsRequest
|
53
69
|
include ::Google::Protobuf::MessageExts
|
54
70
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -44,7 +44,7 @@ module Google
|
|
44
44
|
# foo = any.unpack(Foo.class);
|
45
45
|
# }
|
46
46
|
#
|
47
|
-
#
|
47
|
+
# Example 3: Pack and unpack a message in Python.
|
48
48
|
#
|
49
49
|
# foo = Foo(...)
|
50
50
|
# any = Any()
|
@@ -54,7 +54,7 @@ module Google
|
|
54
54
|
# any.Unpack(foo)
|
55
55
|
# ...
|
56
56
|
#
|
57
|
-
#
|
57
|
+
# Example 4: Pack and unpack a message in Go
|
58
58
|
#
|
59
59
|
# foo := &pb.Foo{...}
|
60
60
|
# any, err := anypb.New(foo)
|
@@ -75,7 +75,7 @@ module Google
|
|
75
75
|
#
|
76
76
|
#
|
77
77
|
# JSON
|
78
|
-
#
|
78
|
+
#
|
79
79
|
# The JSON representation of an `Any` value uses the regular
|
80
80
|
# representation of the deserialized, embedded message, with an
|
81
81
|
# additional field `@type` which contains the type URL. Example:
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-eventarc-publishing-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.12'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.12'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -50,28 +50,28 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 1.
|
53
|
+
version: 1.26.1
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: 1.
|
60
|
+
version: 1.26.1
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: minitest
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '5.
|
67
|
+
version: '5.16'
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: '5.
|
74
|
+
version: '5.16'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: minitest-focus
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,14 +106,14 @@ dependencies:
|
|
106
106
|
requirements:
|
107
107
|
- - ">="
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
109
|
+
version: '13.0'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
114
|
- - ">="
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version: '
|
116
|
+
version: '13.0'
|
117
117
|
- !ruby/object:Gem::Dependency
|
118
118
|
name: redcarpet
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
@@ -196,14 +196,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
196
196
|
requirements:
|
197
197
|
- - ">="
|
198
198
|
- !ruby/object:Gem::Version
|
199
|
-
version: '2.
|
199
|
+
version: '2.6'
|
200
200
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
201
201
|
requirements:
|
202
202
|
- - ">="
|
203
203
|
- !ruby/object:Gem::Version
|
204
204
|
version: '0'
|
205
205
|
requirements: []
|
206
|
-
rubygems_version: 3.3.
|
206
|
+
rubygems_version: 3.3.14
|
207
207
|
signing_key:
|
208
208
|
specification_version: 4
|
209
209
|
summary: API Client library for the Eventarc Publishing V1 API
|