google-cloud-eventarc-v1 0.1.4 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/eventarc/v1/channel_connection_pb.rb +31 -0
- data/lib/google/cloud/eventarc/v1/channel_pb.rb +42 -0
- data/lib/google/cloud/eventarc/v1/eventarc/client.rb +934 -8
- data/lib/google/cloud/eventarc/v1/eventarc/paths.rb +57 -0
- data/lib/google/cloud/eventarc/v1/eventarc_pb.rb +63 -0
- data/lib/google/cloud/eventarc/v1/eventarc_services_pb.rb +18 -0
- data/lib/google/cloud/eventarc/v1/trigger_pb.rb +12 -0
- data/lib/google/cloud/eventarc/v1/version.rb +1 -1
- data/proto_docs/google/cloud/eventarc/v1/channel.rb +94 -0
- data/proto_docs/google/cloud/eventarc/v1/channel_connection.rb +59 -0
- data/proto_docs/google/cloud/eventarc/v1/eventarc.rb +181 -9
- data/proto_docs/google/cloud/eventarc/v1/trigger.rb +78 -35
- metadata +7 -3
@@ -24,14 +24,13 @@ module Google
|
|
24
24
|
# A representation of the trigger resource.
|
25
25
|
# @!attribute [rw] name
|
26
26
|
# @return [::String]
|
27
|
-
# Required. The resource name of the trigger. Must be unique within the
|
28
|
-
#
|
27
|
+
# Required. The resource name of the trigger. Must be unique within the location of the
|
28
|
+
# project and must be in
|
29
29
|
# `projects/{project}/locations/{location}/triggers/{trigger}` format.
|
30
30
|
# @!attribute [r] uid
|
31
31
|
# @return [::String]
|
32
|
-
# Output only. Server
|
33
|
-
#
|
34
|
-
# deleted.
|
32
|
+
# Output only. Server-assigned unique identifier for the trigger. The value is a UUID4
|
33
|
+
# string and guaranteed to remain unchanged until the resource is deleted.
|
35
34
|
# @!attribute [r] create_time
|
36
35
|
# @return [::Google::Protobuf::Timestamp]
|
37
36
|
# Output only. The creation time.
|
@@ -40,14 +39,14 @@ module Google
|
|
40
39
|
# Output only. The last-modified time.
|
41
40
|
# @!attribute [rw] event_filters
|
42
41
|
# @return [::Array<::Google::Cloud::Eventarc::V1::EventFilter>]
|
43
|
-
# Required. null The list of filters that applies to event attributes. Only
|
44
|
-
#
|
42
|
+
# Required. null The list of filters that applies to event attributes. Only events that
|
43
|
+
# match all the provided filters are sent to the destination.
|
45
44
|
# @!attribute [rw] service_account
|
46
45
|
# @return [::String]
|
47
46
|
# Optional. The IAM service account email associated with the trigger. The
|
48
47
|
# service account represents the identity of the trigger.
|
49
48
|
#
|
50
|
-
# The principal who calls this API must have `iam.serviceAccounts.actAs`
|
49
|
+
# The principal who calls this API must have the `iam.serviceAccounts.actAs`
|
51
50
|
# permission in the service account. See
|
52
51
|
# https://cloud.google.com/iam/docs/understanding-service-accounts?hl=en#sa_common
|
53
52
|
# for more information.
|
@@ -56,26 +55,30 @@ module Google
|
|
56
55
|
# identity tokens when invoking the service. See
|
57
56
|
# https://cloud.google.com/run/docs/triggering/pubsub-push#create-service-account
|
58
57
|
# for information on how to invoke authenticated Cloud Run services.
|
59
|
-
#
|
60
|
-
# have `roles/eventarc.eventReceiver` IAM role.
|
58
|
+
# To create Audit Log triggers, the service account should also
|
59
|
+
# have the `roles/eventarc.eventReceiver` IAM role.
|
61
60
|
# @!attribute [rw] destination
|
62
61
|
# @return [::Google::Cloud::Eventarc::V1::Destination]
|
63
62
|
# Required. Destination specifies where the events should be sent to.
|
64
63
|
# @!attribute [rw] transport
|
65
64
|
# @return [::Google::Cloud::Eventarc::V1::Transport]
|
66
|
-
# Optional.
|
67
|
-
# products as transport intermediary. This field contains a reference to
|
68
|
-
# transport intermediary. This information can be used for debugging
|
65
|
+
# Optional. To deliver messages, Eventarc might use other GCP
|
66
|
+
# products as a transport intermediary. This field contains a reference to
|
67
|
+
# that transport intermediary. This information can be used for debugging
|
69
68
|
# purposes.
|
70
69
|
# @!attribute [rw] labels
|
71
70
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
72
|
-
# Optional. User labels attached to the triggers that can be used to group
|
73
|
-
#
|
71
|
+
# Optional. User labels attached to the triggers that can be used to group resources.
|
72
|
+
# @!attribute [rw] channel
|
73
|
+
# @return [::String]
|
74
|
+
# Optional. The name of the channel associated with the trigger in
|
75
|
+
# `projects/{project}/locations/{location}/channels/{channel}` format.
|
76
|
+
# You must provide a channel to receive events from Eventarc SaaS partners.
|
74
77
|
# @!attribute [r] etag
|
75
78
|
# @return [::String]
|
76
|
-
# Output only. This checksum is computed by the server based on the value of
|
77
|
-
#
|
78
|
-
# has an up-to-date value before proceeding.
|
79
|
+
# Output only. This checksum is computed by the server based on the value of other
|
80
|
+
# fields, and might be sent only on create requests to ensure that the
|
81
|
+
# client has an up-to-date value before proceeding.
|
79
82
|
class Trigger
|
80
83
|
include ::Google::Protobuf::MessageExts
|
81
84
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -93,13 +96,19 @@ module Google
|
|
93
96
|
# Filters events based on exact matches on the CloudEvents attributes.
|
94
97
|
# @!attribute [rw] attribute
|
95
98
|
# @return [::String]
|
96
|
-
# Required. The name of a CloudEvents attribute. Currently, only a subset of
|
97
|
-
#
|
99
|
+
# Required. The name of a CloudEvents attribute. Currently, only a subset of attributes
|
100
|
+
# are supported for filtering.
|
98
101
|
#
|
99
102
|
# All triggers MUST provide a filter for the 'type' attribute.
|
100
103
|
# @!attribute [rw] value
|
101
104
|
# @return [::String]
|
102
105
|
# Required. The value for the attribute.
|
106
|
+
# @!attribute [rw] operator
|
107
|
+
# @return [::String]
|
108
|
+
# Optional. The operator used for matching the events with the value of the
|
109
|
+
# filter. If not specified, only events that have an exact key-value pair
|
110
|
+
# specified in the filter are matched. The only allowed value is
|
111
|
+
# `match-path-pattern`.
|
103
112
|
class EventFilter
|
104
113
|
include ::Google::Protobuf::MessageExts
|
105
114
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -108,18 +117,26 @@ module Google
|
|
108
117
|
# Represents a target of an invocation over HTTP.
|
109
118
|
# @!attribute [rw] cloud_run
|
110
119
|
# @return [::Google::Cloud::Eventarc::V1::CloudRun]
|
111
|
-
# Cloud Run fully-managed
|
112
|
-
# should be
|
120
|
+
# Cloud Run fully-managed resource that receives the events. The resource
|
121
|
+
# should be in the same project as the trigger.
|
122
|
+
# @!attribute [rw] cloud_function
|
123
|
+
# @return [::String]
|
124
|
+
# The Cloud Function resource name. Only Cloud Functions V2 is supported.
|
125
|
+
# Format: `projects/{project}/locations/{location}/functions/{function}`
|
126
|
+
# @!attribute [rw] gke
|
127
|
+
# @return [::Google::Cloud::Eventarc::V1::GKE]
|
128
|
+
# A GKE service capable of receiving events. The service should be running
|
129
|
+
# in the same project as the trigger.
|
113
130
|
class Destination
|
114
131
|
include ::Google::Protobuf::MessageExts
|
115
132
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
116
133
|
end
|
117
134
|
|
118
|
-
# Represents the transport intermediaries created for the trigger
|
135
|
+
# Represents the transport intermediaries created for the trigger to
|
119
136
|
# deliver events.
|
120
137
|
# @!attribute [rw] pubsub
|
121
138
|
# @return [::Google::Cloud::Eventarc::V1::Pubsub]
|
122
|
-
# The Pub/Sub topic and subscription used by Eventarc as
|
139
|
+
# The Pub/Sub topic and subscription used by Eventarc as a transport
|
123
140
|
# intermediary.
|
124
141
|
class Transport
|
125
142
|
include ::Google::Protobuf::MessageExts
|
@@ -132,14 +149,13 @@ module Google
|
|
132
149
|
# Required. The name of the Cloud Run service being addressed. See
|
133
150
|
# https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services.
|
134
151
|
#
|
135
|
-
# Only services located in the same project
|
152
|
+
# Only services located in the same project as the trigger object
|
136
153
|
# can be addressed.
|
137
154
|
# @!attribute [rw] path
|
138
155
|
# @return [::String]
|
139
|
-
# Optional. The relative path on the Cloud Run service the events should be
|
140
|
-
# sent to.
|
156
|
+
# Optional. The relative path on the Cloud Run service the events should be sent to.
|
141
157
|
#
|
142
|
-
# The value must conform to the definition of URI path segment (section 3.3
|
158
|
+
# The value must conform to the definition of a URI path segment (section 3.3
|
143
159
|
# of RFC2396). Examples: "/route", "route", "route/subroute".
|
144
160
|
# @!attribute [rw] region
|
145
161
|
# @return [::String]
|
@@ -149,20 +165,47 @@ module Google
|
|
149
165
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
150
166
|
end
|
151
167
|
|
168
|
+
# Represents a GKE destination.
|
169
|
+
# @!attribute [rw] cluster
|
170
|
+
# @return [::String]
|
171
|
+
# Required. The name of the cluster the GKE service is running in. The cluster must be
|
172
|
+
# running in the same project as the trigger being created.
|
173
|
+
# @!attribute [rw] location
|
174
|
+
# @return [::String]
|
175
|
+
# Required. The name of the Google Compute Engine in which the cluster resides, which
|
176
|
+
# can either be compute zone (for example, us-central1-a) for the zonal
|
177
|
+
# clusters or region (for example, us-central1) for regional clusters.
|
178
|
+
# @!attribute [rw] namespace
|
179
|
+
# @return [::String]
|
180
|
+
# Required. The namespace the GKE service is running in.
|
181
|
+
# @!attribute [rw] service
|
182
|
+
# @return [::String]
|
183
|
+
# Required. Name of the GKE service.
|
184
|
+
# @!attribute [rw] path
|
185
|
+
# @return [::String]
|
186
|
+
# Optional. The relative path on the GKE service the events should be sent to.
|
187
|
+
#
|
188
|
+
# The value must conform to the definition of a URI path segment (section 3.3
|
189
|
+
# of RFC2396). Examples: "/route", "route", "route/subroute".
|
190
|
+
class GKE
|
191
|
+
include ::Google::Protobuf::MessageExts
|
192
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
193
|
+
end
|
194
|
+
|
152
195
|
# Represents a Pub/Sub transport.
|
153
196
|
# @!attribute [rw] topic
|
154
197
|
# @return [::String]
|
155
|
-
# Optional. The name of the Pub/Sub topic created and managed by Eventarc
|
156
|
-
#
|
198
|
+
# Optional. The name of the Pub/Sub topic created and managed by Eventarc as
|
199
|
+
# a transport for the event delivery. Format:
|
157
200
|
# `projects/{PROJECT_ID}/topics/{TOPIC_NAME}`.
|
158
201
|
#
|
159
|
-
# You
|
160
|
-
# `google.cloud.pubsub.topic.v1.messagePublished
|
161
|
-
# here
|
202
|
+
# You can set an existing topic for triggers of the type
|
203
|
+
# `google.cloud.pubsub.topic.v1.messagePublished`. The topic you provide
|
204
|
+
# here is not deleted by Eventarc at trigger deletion.
|
162
205
|
# @!attribute [r] subscription
|
163
206
|
# @return [::String]
|
164
|
-
# Output only. The name of the Pub/Sub subscription created and managed by
|
165
|
-
#
|
207
|
+
# Output only. The name of the Pub/Sub subscription created and managed by Eventarc
|
208
|
+
# as a transport for the event delivery. Format:
|
166
209
|
# `projects/{PROJECT_ID}/subscriptions/{SUBSCRIPTION_NAME}`.
|
167
210
|
class Pubsub
|
168
211
|
include ::Google::Protobuf::MessageExts
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-eventarc-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.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-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -173,6 +173,8 @@ files:
|
|
173
173
|
- README.md
|
174
174
|
- lib/google-cloud-eventarc-v1.rb
|
175
175
|
- lib/google/cloud/eventarc/v1.rb
|
176
|
+
- lib/google/cloud/eventarc/v1/channel_connection_pb.rb
|
177
|
+
- lib/google/cloud/eventarc/v1/channel_pb.rb
|
176
178
|
- lib/google/cloud/eventarc/v1/eventarc.rb
|
177
179
|
- lib/google/cloud/eventarc/v1/eventarc/client.rb
|
178
180
|
- lib/google/cloud/eventarc/v1/eventarc/credentials.rb
|
@@ -185,6 +187,8 @@ files:
|
|
185
187
|
- proto_docs/README.md
|
186
188
|
- proto_docs/google/api/field_behavior.rb
|
187
189
|
- proto_docs/google/api/resource.rb
|
190
|
+
- proto_docs/google/cloud/eventarc/v1/channel.rb
|
191
|
+
- proto_docs/google/cloud/eventarc/v1/channel_connection.rb
|
188
192
|
- proto_docs/google/cloud/eventarc/v1/eventarc.rb
|
189
193
|
- proto_docs/google/cloud/eventarc/v1/trigger.rb
|
190
194
|
- proto_docs/google/longrunning/operations.rb
|
@@ -213,7 +217,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
213
217
|
- !ruby/object:Gem::Version
|
214
218
|
version: '0'
|
215
219
|
requirements: []
|
216
|
-
rubygems_version: 3.3.
|
220
|
+
rubygems_version: 3.3.5
|
217
221
|
signing_key:
|
218
222
|
specification_version: 4
|
219
223
|
summary: API Client library for the Eventarc V1 API
|