Skip to content

Commit 26349e3

Browse files
feat: add wide-scope Eventarc GoogleApiSource flags (#32227)
feat: add Eventarc Trigger RetryPolicy PiperOrigin-RevId: 836781847 Source-Link: googleapis/googleapis@c9ff4f1 Source-Link: googleapis/googleapis-gen@c146ad3 Copy-Tag: eyJwIjoiZ29vZ2xlLWNsb3VkLWV2ZW50YXJjLXYxLy5Pd2xCb3QueWFtbCIsImgiOiJjMTQ2YWQzZGI5MTEyMjYwM2YxNTMwYjY5ZTdmZDk3M2MxODc3NTA5In0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 7cba098 commit 26349e3

4 files changed

Lines changed: 60 additions & 2 deletions

File tree

google-cloud-eventarc-v1/lib/google/cloud/eventarc/v1/google_api_source_pb.rb

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

google-cloud-eventarc-v1/lib/google/cloud/eventarc/v1/trigger_pb.rb

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

google-cloud-eventarc-v1/proto_docs/google/cloud/eventarc/v1/google_api_source.rb

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,47 @@ module V1
6767
# @!attribute [rw] logging_config
6868
# @return [::Google::Cloud::Eventarc::V1::LoggingConfig]
6969
# Optional. Config to control Platform logging for the GoogleApiSource.
70+
# @!attribute [rw] organization_subscription
71+
# @return [::Google::Cloud::Eventarc::V1::GoogleApiSource::OrganizationSubscription]
72+
# Optional. Config to enable subscribing to events from all projects in the
73+
# GoogleApiSource's org.
74+
#
75+
# Note: The following fields are mutually exclusive: `organization_subscription`, `project_subscriptions`. If a field in that set is populated, all other fields in the set will automatically be cleared.
76+
# @!attribute [rw] project_subscriptions
77+
# @return [::Google::Cloud::Eventarc::V1::GoogleApiSource::ProjectSubscriptions]
78+
# Optional. Config to enable subscribing to all events from a list of
79+
# projects.
80+
#
81+
# All the projects must be in the same org as the GoogleApiSource.
82+
#
83+
# Note: The following fields are mutually exclusive: `project_subscriptions`, `organization_subscription`. If a field in that set is populated, all other fields in the set will automatically be cleared.
7084
class GoogleApiSource
7185
include ::Google::Protobuf::MessageExts
7286
extend ::Google::Protobuf::MessageExts::ClassMethods
7387

88+
# Config to enable subscribing to all events from a list of projects.
89+
# @!attribute [rw] list
90+
# @return [::Array<::String>]
91+
# Required. A list of projects to receive events from.
92+
#
93+
# All the projects must be in the same org. The listed projects should have
94+
# the format project/\\{identifier} where identifier can be either the
95+
# project id for project number. A single list may contain both formats. At
96+
# most 100 projects can be listed.
97+
class ProjectSubscriptions
98+
include ::Google::Protobuf::MessageExts
99+
extend ::Google::Protobuf::MessageExts::ClassMethods
100+
end
101+
102+
# Config to enabled subscribing to events from other projects in the org.
103+
# @!attribute [rw] enabled
104+
# @return [::Boolean]
105+
# Required. Enable org level subscription.
106+
class OrganizationSubscription
107+
include ::Google::Protobuf::MessageExts
108+
extend ::Google::Protobuf::MessageExts::ClassMethods
109+
end
110+
74111
# @!attribute [rw] key
75112
# @return [::String]
76113
# @!attribute [rw] value

google-cloud-eventarc-v1/proto_docs/google/cloud/eventarc/v1/trigger.rb

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ module V1
8383
# @return [::Boolean]
8484
# Output only. Whether or not this Trigger satisfies the requirements of
8585
# physical zone separation
86+
# @!attribute [rw] retry_policy
87+
# @return [::Google::Cloud::Eventarc::V1::Trigger::RetryPolicy]
88+
# Optional. The retry policy to use in the Trigger.
89+
#
90+
# If unset, event delivery will be retried for up to 24 hours by default:
91+
# https://cloud.google.com/eventarc/docs/retry-events
8692
# @!attribute [r] etag
8793
# @return [::String]
8894
# Output only. This checksum is computed by the server based on the value of
@@ -92,6 +98,18 @@ class Trigger
9298
include ::Google::Protobuf::MessageExts
9399
extend ::Google::Protobuf::MessageExts::ClassMethods
94100

101+
# The retry policy configuration for the Trigger.
102+
#
103+
# Can only be set with Cloud Run destinations.
104+
# @!attribute [rw] max_attempts
105+
# @return [::Integer]
106+
# Optional. The maximum number of delivery attempts for any message. The
107+
# only valid value is 1.
108+
class RetryPolicy
109+
include ::Google::Protobuf::MessageExts
110+
extend ::Google::Protobuf::MessageExts::ClassMethods
111+
end
112+
95113
# @!attribute [rw] key
96114
# @return [::String]
97115
# @!attribute [rw] value

0 commit comments

Comments
 (0)