google-cloud-eventarc-v1 1.0.0 → 1.1.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.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/eventarc/v1/bindings_override.rb +96 -0
  3. data/lib/google/cloud/eventarc/v1/channel_pb.rb +1 -1
  4. data/lib/google/cloud/eventarc/v1/enrollment_pb.rb +47 -0
  5. data/lib/google/cloud/eventarc/v1/eventarc/client.rb +2565 -174
  6. data/lib/google/cloud/eventarc/v1/eventarc/paths.rb +112 -0
  7. data/lib/google/cloud/eventarc/v1/eventarc/rest/client.rb +2420 -180
  8. data/lib/google/cloud/eventarc/v1/eventarc/rest/service_stub.rb +1335 -88
  9. data/lib/google/cloud/eventarc/v1/eventarc_pb.rb +35 -1
  10. data/lib/google/cloud/eventarc/v1/eventarc_services_pb.rb +42 -0
  11. data/lib/google/cloud/eventarc/v1/google_api_source_pb.rb +50 -0
  12. data/lib/google/cloud/eventarc/v1/logging_config_pb.rb +45 -0
  13. data/lib/google/cloud/eventarc/v1/message_bus_pb.rb +49 -0
  14. data/lib/google/cloud/eventarc/v1/network_config_pb.rb +45 -0
  15. data/lib/google/cloud/eventarc/v1/pipeline_pb.rb +65 -0
  16. data/lib/google/cloud/eventarc/v1/trigger_pb.rb +4 -1
  17. data/lib/google/cloud/eventarc/v1/version.rb +1 -1
  18. data/proto_docs/google/api/client.rb +51 -10
  19. data/proto_docs/google/api/field_info.rb +88 -0
  20. data/proto_docs/google/api/resource.rb +7 -2
  21. data/proto_docs/google/cloud/eventarc/v1/channel.rb +5 -1
  22. data/proto_docs/google/cloud/eventarc/v1/discovery.rb +8 -7
  23. data/proto_docs/google/cloud/eventarc/v1/enrollment.rb +95 -0
  24. data/proto_docs/google/cloud/eventarc/v1/eventarc.rb +522 -8
  25. data/proto_docs/google/cloud/eventarc/v1/google_api_source.rb +95 -0
  26. data/proto_docs/google/cloud/eventarc/v1/logging_config.rb +78 -0
  27. data/proto_docs/google/cloud/eventarc/v1/message_bus.rb +94 -0
  28. data/proto_docs/google/cloud/eventarc/v1/network_config.rb +37 -0
  29. data/proto_docs/google/cloud/eventarc/v1/pipeline.rb +583 -0
  30. data/proto_docs/google/cloud/eventarc/v1/trigger.rb +76 -35
  31. metadata +16 -3
@@ -28,6 +28,9 @@ module Google
28
28
  # @!attribute [rw] destinations
29
29
  # @return [::Array<::Google::Api::ClientLibraryDestination>]
30
30
  # The destination where API teams want this client library to be published.
31
+ # @!attribute [rw] selective_gapic_generation
32
+ # @return [::Google::Api::SelectiveGapicGeneration]
33
+ # Configuration for which RPCs should be generated in the GAPIC client.
31
34
  class CommonLanguageSettings
32
35
  include ::Google::Protobuf::MessageExts
33
36
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -196,9 +199,32 @@ module Google
196
199
  # @!attribute [rw] common
197
200
  # @return [::Google::Api::CommonLanguageSettings]
198
201
  # Some settings.
202
+ # @!attribute [rw] experimental_features
203
+ # @return [::Google::Api::PythonSettings::ExperimentalFeatures]
204
+ # Experimental features to be included during client library generation.
199
205
  class PythonSettings
200
206
  include ::Google::Protobuf::MessageExts
201
207
  extend ::Google::Protobuf::MessageExts::ClassMethods
208
+
209
+ # Experimental features to be included during client library generation.
210
+ # These fields will be deprecated once the feature graduates and is enabled
211
+ # by default.
212
+ # @!attribute [rw] rest_async_io_enabled
213
+ # @return [::Boolean]
214
+ # Enables generation of asynchronous REST clients if `rest` transport is
215
+ # enabled. By default, asynchronous REST clients will not be generated.
216
+ # This feature will be enabled by default 1 month after launching the
217
+ # feature in preview packages.
218
+ # @!attribute [rw] protobuf_pythonic_types_enabled
219
+ # @return [::Boolean]
220
+ # Enables generation of protobuf code using new types that are more
221
+ # Pythonic which are included in `protobuf>=5.29.x`. This feature will be
222
+ # enabled by default 1 month after launching the feature in preview
223
+ # packages.
224
+ class ExperimentalFeatures
225
+ include ::Google::Protobuf::MessageExts
226
+ extend ::Google::Protobuf::MessageExts::ClassMethods
227
+ end
202
228
  end
203
229
 
204
230
  # Settings for Node client libraries.
@@ -290,6 +316,13 @@ module Google
290
316
  # @return [::String]
291
317
  # The fully qualified name of the method, for which the options below apply.
292
318
  # This is used to find the method to apply the options.
319
+ #
320
+ # Example:
321
+ #
322
+ # publishing:
323
+ # method_settings:
324
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
325
+ # # method settings for CreateFolder...
293
326
  # @!attribute [rw] long_running
294
327
  # @return [::Google::Api::MethodSettings::LongRunning]
295
328
  # Describes settings to use for long-running operations when generating
@@ -298,17 +331,14 @@ module Google
298
331
  #
299
332
  # Example of a YAML configuration::
300
333
  #
301
- # publishing:
302
- # method_settings:
334
+ # publishing:
335
+ # method_settings:
303
336
  # - selector: google.cloud.speech.v2.Speech.BatchRecognize
304
337
  # long_running:
305
- # initial_poll_delay:
306
- # seconds: 60 # 1 minute
338
+ # initial_poll_delay: 60s # 1 minute
307
339
  # poll_delay_multiplier: 1.5
308
- # max_poll_delay:
309
- # seconds: 360 # 6 minutes
310
- # total_poll_timeout:
311
- # seconds: 54000 # 90 minutes
340
+ # max_poll_delay: 360s # 6 minutes
341
+ # total_poll_timeout: 54000s # 90 minutes
312
342
  # @!attribute [rw] auto_populated_fields
313
343
  # @return [::Array<::String>]
314
344
  # List of top-level fields of the request message, that should be
@@ -317,8 +347,8 @@ module Google
317
347
  #
318
348
  # Example of a YAML configuration:
319
349
  #
320
- # publishing:
321
- # method_settings:
350
+ # publishing:
351
+ # method_settings:
322
352
  # - selector: google.example.v1.ExampleService.CreateExample
323
353
  # auto_populated_fields:
324
354
  # - request_id
@@ -354,6 +384,17 @@ module Google
354
384
  end
355
385
  end
356
386
 
387
+ # This message is used to configure the generation of a subset of the RPCs in
388
+ # a service for client libraries.
389
+ # @!attribute [rw] methods
390
+ # @return [::Array<::String>]
391
+ # An allowlist of the fully qualified names of RPCs that should be included
392
+ # on public client surfaces.
393
+ class SelectiveGapicGeneration
394
+ include ::Google::Protobuf::MessageExts
395
+ extend ::Google::Protobuf::MessageExts::ClassMethods
396
+ end
397
+
357
398
  # The organization for which the client libraries are being published.
358
399
  # Affects the url where generated docs are published, etc.
359
400
  module ClientLibraryOrganization
@@ -0,0 +1,88 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Api
22
+ # Rich semantic information of an API field beyond basic typing.
23
+ # @!attribute [rw] format
24
+ # @return [::Google::Api::FieldInfo::Format]
25
+ # The standard format of a field value. This does not explicitly configure
26
+ # any API consumer, just documents the API's format for the field it is
27
+ # applied to.
28
+ # @!attribute [rw] referenced_types
29
+ # @return [::Array<::Google::Api::TypeReference>]
30
+ # The type(s) that the annotated, generic field may represent.
31
+ #
32
+ # Currently, this must only be used on fields of type `google.protobuf.Any`.
33
+ # Supporting other generic types may be considered in the future.
34
+ class FieldInfo
35
+ include ::Google::Protobuf::MessageExts
36
+ extend ::Google::Protobuf::MessageExts::ClassMethods
37
+
38
+ # The standard format of a field value. The supported formats are all backed
39
+ # by either an RFC defined by the IETF or a Google-defined AIP.
40
+ module Format
41
+ # Default, unspecified value.
42
+ FORMAT_UNSPECIFIED = 0
43
+
44
+ # Universally Unique Identifier, version 4, value as defined by
45
+ # https://datatracker.ietf.org/doc/html/rfc4122. The value may be
46
+ # normalized to entirely lowercase letters. For example, the value
47
+ # `F47AC10B-58CC-0372-8567-0E02B2C3D479` would be normalized to
48
+ # `f47ac10b-58cc-0372-8567-0e02b2c3d479`.
49
+ UUID4 = 1
50
+
51
+ # Internet Protocol v4 value as defined by [RFC
52
+ # 791](https://datatracker.ietf.org/doc/html/rfc791). The value may be
53
+ # condensed, with leading zeros in each octet stripped. For example,
54
+ # `001.022.233.040` would be condensed to `1.22.233.40`.
55
+ IPV4 = 2
56
+
57
+ # Internet Protocol v6 value as defined by [RFC
58
+ # 2460](https://datatracker.ietf.org/doc/html/rfc2460). The value may be
59
+ # normalized to entirely lowercase letters with zeros compressed, following
60
+ # [RFC 5952](https://datatracker.ietf.org/doc/html/rfc5952). For example,
61
+ # the value `2001:0DB8:0::0` would be normalized to `2001:db8::`.
62
+ IPV6 = 3
63
+
64
+ # An IP address in either v4 or v6 format as described by the individual
65
+ # values defined herein. See the comments on the IPV4 and IPV6 types for
66
+ # allowed normalizations of each.
67
+ IPV4_OR_IPV6 = 4
68
+ end
69
+ end
70
+
71
+ # A reference to a message type, for use in {::Google::Api::FieldInfo FieldInfo}.
72
+ # @!attribute [rw] type_name
73
+ # @return [::String]
74
+ # The name of the type that the annotated, generic field may represent.
75
+ # If the type is in the same protobuf package, the value can be the simple
76
+ # message name e.g., `"MyMessage"`. Otherwise, the value must be the
77
+ # fully-qualified message name e.g., `"google.library.v1.Book"`.
78
+ #
79
+ # If the type(s) are unknown to the service (e.g. the field accepts generic
80
+ # user input), use the wildcard `"*"` to denote this behavior.
81
+ #
82
+ # See [AIP-202](https://google.aip.dev/202#type-references) for more details.
83
+ class TypeReference
84
+ include ::Google::Protobuf::MessageExts
85
+ extend ::Google::Protobuf::MessageExts::ClassMethods
86
+ end
87
+ end
88
+ end
@@ -124,8 +124,13 @@ module Google
124
124
  # @return [::String]
125
125
  # The plural name used in the resource name and permission names, such as
126
126
  # 'projects' for the resource name of 'projects/\\{project}' and the permission
127
- # name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
128
- # concept of the `plural` field in k8s CRD spec
127
+ # name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception
128
+ # to this is for Nested Collections that have stuttering names, as defined
129
+ # in [AIP-122](https://google.aip.dev/122#nested-collections), where the
130
+ # collection ID in the resource name pattern does not necessarily directly
131
+ # match the `plural` value.
132
+ #
133
+ # It is the same concept of the `plural` field in k8s CRD spec
129
134
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
130
135
  #
131
136
  # Note: The plural form is required even for singleton resources. See
@@ -61,11 +61,15 @@ module Google
61
61
  # by the provider to register the channel for publishing.
62
62
  # @!attribute [rw] crypto_key_name
63
63
  # @return [::String]
64
- # Optional. Resource name of a KMS crypto key (managed by the user) used to
64
+ # Resource name of a KMS crypto key (managed by the user) used to
65
65
  # encrypt/decrypt their event data.
66
66
  #
67
67
  # It must match the pattern
68
68
  # `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
69
+ # @!attribute [r] satisfies_pzs
70
+ # @return [::Boolean]
71
+ # Output only. Whether or not this Channel satisfies the requirements of
72
+ # physical zone separation
69
73
  class Channel
70
74
  include ::Google::Protobuf::MessageExts
71
75
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -24,11 +24,12 @@ module Google
24
24
  # A representation of the Provider resource.
25
25
  # @!attribute [r] name
26
26
  # @return [::String]
27
- # Output only. In `projects/{project}/locations/{location}/providers/{provider_id}`
28
- # format.
27
+ # Output only. In
28
+ # `projects/{project}/locations/{location}/providers/{provider_id}` format.
29
29
  # @!attribute [r] display_name
30
30
  # @return [::String]
31
- # Output only. Human friendly name for the Provider. For example "Cloud Storage".
31
+ # Output only. Human friendly name for the Provider. For example "Cloud
32
+ # Storage".
32
33
  # @!attribute [r] event_types
33
34
  # @return [::Array<::Google::Cloud::Eventarc::V1::EventType>]
34
35
  # Output only. Event types for this provider.
@@ -73,12 +74,12 @@ module Google
73
74
  # Output only. Description of the purpose of the attribute.
74
75
  # @!attribute [r] required
75
76
  # @return [::Boolean]
76
- # Output only. If true, the triggers for this provider should always specify a filter
77
- # on these attributes. Trigger creation will fail otherwise.
77
+ # Output only. If true, the triggers for this provider should always specify
78
+ # a filter on these attributes. Trigger creation will fail otherwise.
78
79
  # @!attribute [r] path_pattern_supported
79
80
  # @return [::Boolean]
80
- # Output only. If true, the attribute accepts matching expressions in the Eventarc
81
- # PathPattern format.
81
+ # Output only. If true, the attribute accepts matching expressions in the
82
+ # Eventarc PathPattern format.
82
83
  class FilteringAttribute
83
84
  include ::Google::Protobuf::MessageExts
84
85
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -0,0 +1,95 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module Eventarc
23
+ module V1
24
+ # An enrollment represents a subscription for messages on a particular message
25
+ # bus. It defines a matching criteria for messages on the bus and the
26
+ # subscriber endpoint where matched messages should be delivered.
27
+ # @!attribute [rw] name
28
+ # @return [::String]
29
+ # Identifier. Resource name of the form
30
+ # projects/\\{project}/locations/\\{location}/enrollments/\\{enrollment}
31
+ # @!attribute [r] uid
32
+ # @return [::String]
33
+ # Output only. Server assigned unique identifier for the channel. The value
34
+ # is a UUID4 string and guaranteed to remain unchanged until the resource is
35
+ # deleted.
36
+ # @!attribute [r] etag
37
+ # @return [::String]
38
+ # Output only. This checksum is computed by the server based on the value of
39
+ # other fields, and might be sent only on update and delete requests to
40
+ # ensure that the client has an up-to-date value before proceeding.
41
+ # @!attribute [r] create_time
42
+ # @return [::Google::Protobuf::Timestamp]
43
+ # Output only. The creation time.
44
+ # @!attribute [r] update_time
45
+ # @return [::Google::Protobuf::Timestamp]
46
+ # Output only. The last-modified time.
47
+ # @!attribute [rw] labels
48
+ # @return [::Google::Protobuf::Map{::String => ::String}]
49
+ # Optional. Resource labels.
50
+ # @!attribute [rw] annotations
51
+ # @return [::Google::Protobuf::Map{::String => ::String}]
52
+ # Optional. Resource annotations.
53
+ # @!attribute [rw] display_name
54
+ # @return [::String]
55
+ # Optional. Resource display name.
56
+ # @!attribute [rw] cel_match
57
+ # @return [::String]
58
+ # Required. A CEL expression identifying which messages this enrollment
59
+ # applies to.
60
+ # @!attribute [rw] message_bus
61
+ # @return [::String]
62
+ # Required. Resource name of the message bus identifying the source of the
63
+ # messages. It matches the form
64
+ # projects/\\{project}/locations/\\{location}/messageBuses/\\{messageBus}.
65
+ # @!attribute [rw] destination
66
+ # @return [::String]
67
+ # Required. Destination is the Pipeline that the Enrollment is delivering to.
68
+ # It must point to the full resource name of a Pipeline. Format:
69
+ # "projects/\\{PROJECT_ID}/locations/\\{region}/pipelines/{PIPELINE_ID)"
70
+ class Enrollment
71
+ include ::Google::Protobuf::MessageExts
72
+ extend ::Google::Protobuf::MessageExts::ClassMethods
73
+
74
+ # @!attribute [rw] key
75
+ # @return [::String]
76
+ # @!attribute [rw] value
77
+ # @return [::String]
78
+ class LabelsEntry
79
+ include ::Google::Protobuf::MessageExts
80
+ extend ::Google::Protobuf::MessageExts::ClassMethods
81
+ end
82
+
83
+ # @!attribute [rw] key
84
+ # @return [::String]
85
+ # @!attribute [rw] value
86
+ # @return [::String]
87
+ class AnnotationsEntry
88
+ include ::Google::Protobuf::MessageExts
89
+ extend ::Google::Protobuf::MessageExts::ClassMethods
90
+ end
91
+ end
92
+ end
93
+ end
94
+ end
95
+ end