google-cloud-eventarc-v1 1.0.1 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +30 -20
  3. data/lib/google/cloud/eventarc/v1/bindings_override.rb +96 -0
  4. data/lib/google/cloud/eventarc/v1/channel_pb.rb +1 -1
  5. data/lib/google/cloud/eventarc/v1/enrollment_pb.rb +47 -0
  6. data/lib/google/cloud/eventarc/v1/eventarc/client.rb +2595 -187
  7. data/lib/google/cloud/eventarc/v1/eventarc/operations.rb +12 -15
  8. data/lib/google/cloud/eventarc/v1/eventarc/paths.rb +112 -0
  9. data/lib/google/cloud/eventarc/v1/eventarc/rest/client.rb +2442 -193
  10. data/lib/google/cloud/eventarc/v1/eventarc/rest/operations.rb +43 -38
  11. data/lib/google/cloud/eventarc/v1/eventarc/rest/service_stub.rb +1602 -265
  12. data/lib/google/cloud/eventarc/v1/eventarc_pb.rb +35 -1
  13. data/lib/google/cloud/eventarc/v1/eventarc_services_pb.rb +42 -0
  14. data/lib/google/cloud/eventarc/v1/google_api_source_pb.rb +50 -0
  15. data/lib/google/cloud/eventarc/v1/logging_config_pb.rb +45 -0
  16. data/lib/google/cloud/eventarc/v1/message_bus_pb.rb +49 -0
  17. data/lib/google/cloud/eventarc/v1/network_config_pb.rb +45 -0
  18. data/lib/google/cloud/eventarc/v1/pipeline_pb.rb +65 -0
  19. data/lib/google/cloud/eventarc/v1/trigger_pb.rb +4 -1
  20. data/lib/google/cloud/eventarc/v1/version.rb +1 -1
  21. data/proto_docs/google/api/client.rb +39 -0
  22. data/proto_docs/google/api/field_info.rb +88 -0
  23. data/proto_docs/google/cloud/eventarc/v1/channel.rb +5 -1
  24. data/proto_docs/google/cloud/eventarc/v1/discovery.rb +8 -7
  25. data/proto_docs/google/cloud/eventarc/v1/enrollment.rb +95 -0
  26. data/proto_docs/google/cloud/eventarc/v1/eventarc.rb +522 -8
  27. data/proto_docs/google/cloud/eventarc/v1/google_api_source.rb +95 -0
  28. data/proto_docs/google/cloud/eventarc/v1/logging_config.rb +78 -0
  29. data/proto_docs/google/cloud/eventarc/v1/message_bus.rb +94 -0
  30. data/proto_docs/google/cloud/eventarc/v1/network_config.rb +37 -0
  31. data/proto_docs/google/cloud/eventarc/v1/pipeline.rb +583 -0
  32. data/proto_docs/google/cloud/eventarc/v1/trigger.rb +76 -35
  33. data/proto_docs/google/longrunning/operations.rb +19 -14
  34. metadata +18 -5
@@ -24,13 +24,14 @@ 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 location of the
28
- # project and must be in
27
+ # Required. The resource name of the trigger. Must be unique within the
28
+ # location of the 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-assigned unique identifier for the trigger. The value is a UUID4
33
- # string and guaranteed to remain unchanged until the resource is deleted.
32
+ # Output only. Server-assigned unique identifier for the trigger. The value
33
+ # is a UUID4 string and guaranteed to remain unchanged until the resource is
34
+ # deleted.
34
35
  # @!attribute [r] create_time
35
36
  # @return [::Google::Protobuf::Timestamp]
36
37
  # Output only. The creation time.
@@ -39,36 +40,32 @@ module Google
39
40
  # Output only. The last-modified time.
40
41
  # @!attribute [rw] event_filters
41
42
  # @return [::Array<::Google::Cloud::Eventarc::V1::EventFilter>]
42
- # Required. Unordered list. The list of filters that applies to event attributes. Only events that
43
- # match all the provided filters are sent to the destination.
43
+ # Required. Unordered list. The list of filters that applies to event
44
+ # attributes. Only events that match all the provided filters are sent to the
45
+ # destination.
44
46
  # @!attribute [rw] service_account
45
47
  # @return [::String]
46
48
  # Optional. The IAM service account email associated with the trigger. The
47
49
  # service account represents the identity of the trigger.
48
50
  #
49
- # The principal who calls this API must have the `iam.serviceAccounts.actAs`
50
- # permission in the service account. See
51
- # https://cloud.google.com/iam/docs/understanding-service-accounts?hl=en#sa_common
52
- # for more information.
53
- #
54
- # For Cloud Run destinations, this service account is used to generate
55
- # identity tokens when invoking the service. See
56
- # https://cloud.google.com/run/docs/triggering/pubsub-push#create-service-account
57
- # for information on how to invoke authenticated Cloud Run services.
58
- # To create Audit Log triggers, the service account should also
59
- # have the `roles/eventarc.eventReceiver` IAM role.
51
+ # The `iam.serviceAccounts.actAs` permission must be granted on the service
52
+ # account to allow a principal to impersonate the service account. For more
53
+ # information, see the
54
+ # [Roles and permissions](/eventarc/docs/all-roles-permissions) page specific
55
+ # to the trigger destination.
60
56
  # @!attribute [rw] destination
61
57
  # @return [::Google::Cloud::Eventarc::V1::Destination]
62
58
  # Required. Destination specifies where the events should be sent to.
63
59
  # @!attribute [rw] transport
64
60
  # @return [::Google::Cloud::Eventarc::V1::Transport]
65
- # Optional. To deliver messages, Eventarc might use other GCP
61
+ # Optional. To deliver messages, Eventarc might use other Google Cloud
66
62
  # products as a transport intermediary. This field contains a reference to
67
63
  # that transport intermediary. This information can be used for debugging
68
64
  # purposes.
69
65
  # @!attribute [rw] labels
70
66
  # @return [::Google::Protobuf::Map{::String => ::String}]
71
- # Optional. User labels attached to the triggers that can be used to group resources.
67
+ # Optional. User labels attached to the triggers that can be used to group
68
+ # resources.
72
69
  # @!attribute [rw] channel
73
70
  # @return [::String]
74
71
  # Optional. The name of the channel associated with the trigger in
@@ -77,10 +74,19 @@ module Google
77
74
  # @!attribute [r] conditions
78
75
  # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Eventarc::V1::StateCondition}]
79
76
  # Output only. The reason(s) why a trigger is in FAILED state.
77
+ # @!attribute [rw] event_data_content_type
78
+ # @return [::String]
79
+ # Optional. EventDataContentType specifies the type of payload in MIME
80
+ # format that is expected from the CloudEvent data field. This is set to
81
+ # `application/json` if the value is not defined.
82
+ # @!attribute [r] satisfies_pzs
83
+ # @return [::Boolean]
84
+ # Output only. Whether or not this Trigger satisfies the requirements of
85
+ # physical zone separation
80
86
  # @!attribute [r] etag
81
87
  # @return [::String]
82
- # Output only. This checksum is computed by the server based on the value of other
83
- # fields, and might be sent only on create requests to ensure that the
88
+ # Output only. This checksum is computed by the server based on the value of
89
+ # other fields, and might be sent only on create requests to ensure that the
84
90
  # client has an up-to-date value before proceeding.
85
91
  class Trigger
86
92
  include ::Google::Protobuf::MessageExts
@@ -108,8 +114,10 @@ module Google
108
114
  # Filters events based on exact matches on the CloudEvents attributes.
109
115
  # @!attribute [rw] attribute
110
116
  # @return [::String]
111
- # Required. The name of a CloudEvents attribute. Currently, only a subset of attributes
112
- # are supported for filtering.
117
+ # Required. The name of a CloudEvents attribute. Currently, only a subset of
118
+ # attributes are supported for filtering. You can [retrieve a specific
119
+ # provider's supported event
120
+ # types](/eventarc/docs/list-providers#describe-provider).
113
121
  #
114
122
  # All triggers MUST provide a filter for the 'type' attribute.
115
123
  # @!attribute [rw] value
@@ -119,8 +127,9 @@ module Google
119
127
  # @return [::String]
120
128
  # Optional. The operator used for matching the events with the value of the
121
129
  # filter. If not specified, only events that have an exact key-value pair
122
- # specified in the filter are matched. The only allowed value is
123
- # `match-path-pattern`.
130
+ # specified in the filter are matched. The allowed values are `path_pattern`
131
+ # and `match-path-pattern`. `path_pattern` is only allowed for GCFv1
132
+ # triggers.
124
133
  class EventFilter
125
134
  include ::Google::Protobuf::MessageExts
126
135
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -145,8 +154,13 @@ module Google
145
154
  # should be in the same project as the trigger.
146
155
  # @!attribute [rw] cloud_function
147
156
  # @return [::String]
148
- # The Cloud Function resource name. Only Cloud Functions V2 is supported.
157
+ # The Cloud Function resource name. Cloud Functions V1 and V2 are
158
+ # supported.
149
159
  # Format: `projects/{project}/locations/{location}/functions/{function}`
160
+ #
161
+ # This is a read-only field. Creating Cloud Functions V1/V2 triggers is
162
+ # only supported via the Cloud Functions product. An error will be returned
163
+ # if the user sets this value.
150
164
  # @!attribute [rw] gke
151
165
  # @return [::Google::Cloud::Eventarc::V1::GKE]
152
166
  # A GKE service capable of receiving events. The service should be running
@@ -157,6 +171,14 @@ module Google
157
171
  # the events. The Workflow resource should be deployed in the same project
158
172
  # as the trigger.
159
173
  # Format: `projects/{project}/locations/{location}/workflows/{workflow}`
174
+ # @!attribute [rw] http_endpoint
175
+ # @return [::Google::Cloud::Eventarc::V1::HttpEndpoint]
176
+ # An HTTP endpoint destination described by an URI.
177
+ # @!attribute [rw] network_config
178
+ # @return [::Google::Cloud::Eventarc::V1::NetworkConfig]
179
+ # Optional. Network config is used to configure how Eventarc resolves and
180
+ # connect to a destination.
181
+ # This should only be used with HttpEndpoint destination type.
160
182
  class Destination
161
183
  include ::Google::Protobuf::MessageExts
162
184
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -183,7 +205,8 @@ module Google
183
205
  # can be addressed.
184
206
  # @!attribute [rw] path
185
207
  # @return [::String]
186
- # Optional. The relative path on the Cloud Run service the events should be sent to.
208
+ # Optional. The relative path on the Cloud Run service the events should be
209
+ # sent to.
187
210
  #
188
211
  # The value must conform to the definition of a URI path segment (section 3.3
189
212
  # of RFC2396). Examples: "/route", "route", "route/subroute".
@@ -198,13 +221,14 @@ module Google
198
221
  # Represents a GKE destination.
199
222
  # @!attribute [rw] cluster
200
223
  # @return [::String]
201
- # Required. The name of the cluster the GKE service is running in. The cluster must be
202
- # running in the same project as the trigger being created.
224
+ # Required. The name of the cluster the GKE service is running in. The
225
+ # cluster must be running in the same project as the trigger being created.
203
226
  # @!attribute [rw] location
204
227
  # @return [::String]
205
- # Required. The name of the Google Compute Engine in which the cluster resides, which
206
- # can either be compute zone (for example, us-central1-a) for the zonal
207
- # clusters or region (for example, us-central1) for regional clusters.
228
+ # Required. The name of the Google Compute Engine in which the cluster
229
+ # resides, which can either be compute zone (for example, us-central1-a) for
230
+ # the zonal clusters or region (for example, us-central1) for regional
231
+ # clusters.
208
232
  # @!attribute [rw] namespace
209
233
  # @return [::String]
210
234
  # Required. The namespace the GKE service is running in.
@@ -213,7 +237,8 @@ module Google
213
237
  # Required. Name of the GKE service.
214
238
  # @!attribute [rw] path
215
239
  # @return [::String]
216
- # Optional. The relative path on the GKE service the events should be sent to.
240
+ # Optional. The relative path on the GKE service the events should be sent
241
+ # to.
217
242
  #
218
243
  # The value must conform to the definition of a URI path segment (section 3.3
219
244
  # of RFC2396). Examples: "/route", "route", "route/subroute".
@@ -234,13 +259,29 @@ module Google
234
259
  # here is not deleted by Eventarc at trigger deletion.
235
260
  # @!attribute [r] subscription
236
261
  # @return [::String]
237
- # Output only. The name of the Pub/Sub subscription created and managed by Eventarc
238
- # as a transport for the event delivery. Format:
262
+ # Output only. The name of the Pub/Sub subscription created and managed by
263
+ # Eventarc as a transport for the event delivery. Format:
239
264
  # `projects/{PROJECT_ID}/subscriptions/{SUBSCRIPTION_NAME}`.
240
265
  class Pubsub
241
266
  include ::Google::Protobuf::MessageExts
242
267
  extend ::Google::Protobuf::MessageExts::ClassMethods
243
268
  end
269
+
270
+ # Represents a HTTP endpoint destination.
271
+ # @!attribute [rw] uri
272
+ # @return [::String]
273
+ # Required. The URI of the HTTP enpdoint.
274
+ #
275
+ # The value must be a RFC2396 URI string.
276
+ # Examples: `http://10.10.10.8:80/route`,
277
+ # `http://svc.us-central1.p.local:8080/`.
278
+ # Only HTTP and HTTPS protocols are supported. The host can be either a
279
+ # static IP addressable from the VPC specified by the network config, or
280
+ # an internal DNS hostname of the service resolvable via Cloud DNS.
281
+ class HttpEndpoint
282
+ include ::Google::Protobuf::MessageExts
283
+ extend ::Google::Protobuf::MessageExts::ClassMethods
284
+ end
244
285
  end
245
286
  end
246
287
  end
@@ -42,7 +42,7 @@ module Google
42
42
  # The error result of the operation in case of failure or cancellation.
43
43
  # @!attribute [rw] response
44
44
  # @return [::Google::Protobuf::Any]
45
- # The normal response of the operation in case of success. If the original
45
+ # The normal, successful response of the operation. If the original
46
46
  # method returns no data on success, such as `Delete`, the response is
47
47
  # `google.protobuf.Empty`. If the original method is standard
48
48
  # `Get`/`Create`/`Update`, the response should be the resource. For other
@@ -55,7 +55,8 @@ module Google
55
55
  extend ::Google::Protobuf::MessageExts::ClassMethods
56
56
  end
57
57
 
58
- # The request message for Operations.GetOperation.
58
+ # The request message for
59
+ # Operations.GetOperation.
59
60
  # @!attribute [rw] name
60
61
  # @return [::String]
61
62
  # The name of the operation resource.
@@ -64,7 +65,8 @@ module Google
64
65
  extend ::Google::Protobuf::MessageExts::ClassMethods
65
66
  end
66
67
 
67
- # The request message for Operations.ListOperations.
68
+ # The request message for
69
+ # Operations.ListOperations.
68
70
  # @!attribute [rw] name
69
71
  # @return [::String]
70
72
  # The name of the operation's parent resource.
@@ -82,7 +84,8 @@ module Google
82
84
  extend ::Google::Protobuf::MessageExts::ClassMethods
83
85
  end
84
86
 
85
- # The response message for Operations.ListOperations.
87
+ # The response message for
88
+ # Operations.ListOperations.
86
89
  # @!attribute [rw] operations
87
90
  # @return [::Array<::Google::Longrunning::Operation>]
88
91
  # A list of operations that matches the specified filter in the request.
@@ -94,7 +97,8 @@ module Google
94
97
  extend ::Google::Protobuf::MessageExts::ClassMethods
95
98
  end
96
99
 
97
- # The request message for Operations.CancelOperation.
100
+ # The request message for
101
+ # Operations.CancelOperation.
98
102
  # @!attribute [rw] name
99
103
  # @return [::String]
100
104
  # The name of the operation resource to be cancelled.
@@ -103,7 +107,8 @@ module Google
103
107
  extend ::Google::Protobuf::MessageExts::ClassMethods
104
108
  end
105
109
 
106
- # The request message for Operations.DeleteOperation.
110
+ # The request message for
111
+ # Operations.DeleteOperation.
107
112
  # @!attribute [rw] name
108
113
  # @return [::String]
109
114
  # The name of the operation resource to be deleted.
@@ -112,7 +117,8 @@ module Google
112
117
  extend ::Google::Protobuf::MessageExts::ClassMethods
113
118
  end
114
119
 
115
- # The request message for Operations.WaitOperation.
120
+ # The request message for
121
+ # Operations.WaitOperation.
116
122
  # @!attribute [rw] name
117
123
  # @return [::String]
118
124
  # The name of the operation resource to wait on.
@@ -130,13 +136,12 @@ module Google
130
136
  #
131
137
  # Example:
132
138
  #
133
- # rpc LongRunningRecognize(LongRunningRecognizeRequest)
134
- # returns (google.longrunning.Operation) {
135
- # option (google.longrunning.operation_info) = {
136
- # response_type: "LongRunningRecognizeResponse"
137
- # metadata_type: "LongRunningRecognizeMetadata"
138
- # };
139
- # }
139
+ # rpc Export(ExportRequest) returns (google.longrunning.Operation) {
140
+ # option (google.longrunning.operation_info) = {
141
+ # response_type: "ExportResponse"
142
+ # metadata_type: "ExportMetadata"
143
+ # };
144
+ # }
140
145
  # @!attribute [rw] response_type
141
146
  # @return [::String]
142
147
  # Required. The message name of the primary return type for this
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: 1.0.1
4
+ version: 1.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: 2024-08-30 00:00:00.000000000 Z
11
+ date: 2024-12-10 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.21.1
19
+ version: 0.24.0
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.21.1
29
+ version: 0.24.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -105,6 +105,7 @@ files:
105
105
  - lib/google/cloud/eventarc/v1/channel_connection_pb.rb
106
106
  - lib/google/cloud/eventarc/v1/channel_pb.rb
107
107
  - lib/google/cloud/eventarc/v1/discovery_pb.rb
108
+ - lib/google/cloud/eventarc/v1/enrollment_pb.rb
108
109
  - lib/google/cloud/eventarc/v1/eventarc.rb
109
110
  - lib/google/cloud/eventarc/v1/eventarc/client.rb
110
111
  - lib/google/cloud/eventarc/v1/eventarc/credentials.rb
@@ -116,20 +117,32 @@ files:
116
117
  - lib/google/cloud/eventarc/v1/eventarc/rest/service_stub.rb
117
118
  - lib/google/cloud/eventarc/v1/eventarc_pb.rb
118
119
  - lib/google/cloud/eventarc/v1/eventarc_services_pb.rb
120
+ - lib/google/cloud/eventarc/v1/google_api_source_pb.rb
119
121
  - lib/google/cloud/eventarc/v1/google_channel_config_pb.rb
122
+ - lib/google/cloud/eventarc/v1/logging_config_pb.rb
123
+ - lib/google/cloud/eventarc/v1/message_bus_pb.rb
124
+ - lib/google/cloud/eventarc/v1/network_config_pb.rb
125
+ - lib/google/cloud/eventarc/v1/pipeline_pb.rb
120
126
  - lib/google/cloud/eventarc/v1/rest.rb
121
127
  - lib/google/cloud/eventarc/v1/trigger_pb.rb
122
128
  - lib/google/cloud/eventarc/v1/version.rb
123
129
  - proto_docs/README.md
124
130
  - proto_docs/google/api/client.rb
125
131
  - proto_docs/google/api/field_behavior.rb
132
+ - proto_docs/google/api/field_info.rb
126
133
  - proto_docs/google/api/launch_stage.rb
127
134
  - proto_docs/google/api/resource.rb
128
135
  - proto_docs/google/cloud/eventarc/v1/channel.rb
129
136
  - proto_docs/google/cloud/eventarc/v1/channel_connection.rb
130
137
  - proto_docs/google/cloud/eventarc/v1/discovery.rb
138
+ - proto_docs/google/cloud/eventarc/v1/enrollment.rb
131
139
  - proto_docs/google/cloud/eventarc/v1/eventarc.rb
140
+ - proto_docs/google/cloud/eventarc/v1/google_api_source.rb
132
141
  - proto_docs/google/cloud/eventarc/v1/google_channel_config.rb
142
+ - proto_docs/google/cloud/eventarc/v1/logging_config.rb
143
+ - proto_docs/google/cloud/eventarc/v1/message_bus.rb
144
+ - proto_docs/google/cloud/eventarc/v1/network_config.rb
145
+ - proto_docs/google/cloud/eventarc/v1/pipeline.rb
133
146
  - proto_docs/google/cloud/eventarc/v1/trigger.rb
134
147
  - proto_docs/google/longrunning/operations.rb
135
148
  - proto_docs/google/protobuf/any.rb
@@ -159,7 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
159
172
  - !ruby/object:Gem::Version
160
173
  version: '0'
161
174
  requirements: []
162
- rubygems_version: 3.5.6
175
+ rubygems_version: 3.5.23
163
176
  signing_key:
164
177
  specification_version: 4
165
178
  summary: Build event-driven applications on Google Cloud Platform.