Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 4 additions & 4 deletions .librarian/state.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1757,7 +1757,7 @@ libraries:
tag_format: '{id}-v{version}'
- id: google-cloud-eventarc
version: 1.17.0
last_generated_commit: 3322511885371d2b2253f209ccc3aa60d4100cfd
last_generated_commit: c9ff4f1cd26f1fe63e6d1c11a198366b70ebdb84
apis:
- path: google/cloud/eventarc/v1
service_config: eventarc_v1.yaml
Expand Down Expand Up @@ -2426,7 +2426,7 @@ libraries:
tag_format: '{id}-v{version}'
- id: google-cloud-netapp
version: 0.4.0
last_generated_commit: 3322511885371d2b2253f209ccc3aa60d4100cfd
last_generated_commit: c9ff4f1cd26f1fe63e6d1c11a198366b70ebdb84
apis:
- path: google/cloud/netapp/v1
service_config: netapp_v1.yaml
Expand Down Expand Up @@ -2479,7 +2479,7 @@ libraries:
tag_format: '{id}-v{version}'
- id: google-cloud-network-security
version: 0.9.21
last_generated_commit: 3322511885371d2b2253f209ccc3aa60d4100cfd
last_generated_commit: c9ff4f1cd26f1fe63e6d1c11a198366b70ebdb84
apis:
- path: google/cloud/networksecurity/v1alpha1
service_config: networksecurity_v1alpha1.yaml
Expand Down Expand Up @@ -4244,7 +4244,7 @@ libraries:
tag_format: '{id}-v{version}'
- id: googleapis-common-protos
version: 1.72.0
last_generated_commit: a17b84add8318f780fcc8a027815d5fee644b9f7
last_generated_commit: c9ff4f1cd26f1fe63e6d1c11a198366b70ebdb84
apis:
- path: google/api
service_config: serviceconfig.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5120,6 +5120,7 @@ async def sample_create_google_api_source():

# Initialize request argument(s)
google_api_source = eventarc_v1.GoogleApiSource()
google_api_source.organization_subscription.enabled = True
google_api_source.destination = "destination_value"

request = eventarc_v1.CreateGoogleApiSourceRequest(
Expand Down Expand Up @@ -5272,6 +5273,7 @@ async def sample_update_google_api_source():

# Initialize request argument(s)
google_api_source = eventarc_v1.GoogleApiSource()
google_api_source.organization_subscription.enabled = True
google_api_source.destination = "destination_value"

request = eventarc_v1.UpdateGoogleApiSourceRequest(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5726,6 +5726,7 @@ def sample_create_google_api_source():

# Initialize request argument(s)
google_api_source = eventarc_v1.GoogleApiSource()
google_api_source.organization_subscription.enabled = True
google_api_source.destination = "destination_value"

request = eventarc_v1.CreateGoogleApiSourceRequest(
Expand Down Expand Up @@ -5875,6 +5876,7 @@ def sample_update_google_api_source():

# Initialize request argument(s)
google_api_source = eventarc_v1.GoogleApiSource()
google_api_source.organization_subscription.enabled = True
google_api_source.destination = "destination_value"

request = eventarc_v1.UpdateGoogleApiSourceRequest(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ class GoogleApiSource(proto.Message):
r"""A GoogleApiSource represents a subscription of 1P events from
a MessageBus.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes:
name (str):
Identifier. Resource name of the form
Expand Down Expand Up @@ -73,8 +80,57 @@ class GoogleApiSource(proto.Message):
logging_config (google.cloud.eventarc_v1.types.LoggingConfig):
Optional. Config to control Platform logging
for the GoogleApiSource.
organization_subscription (google.cloud.eventarc_v1.types.GoogleApiSource.OrganizationSubscription):
Optional. Config to enable subscribing to
events from all projects in the
GoogleApiSource's org.

This field is a member of `oneof`_ ``wide_scope_subscription``.
project_subscriptions (google.cloud.eventarc_v1.types.GoogleApiSource.ProjectSubscriptions):
Optional. Config to enable subscribing to all
events from a list of projects.

All the projects must be in the same org as the
GoogleApiSource.

This field is a member of `oneof`_ ``wide_scope_subscription``.
"""

class ProjectSubscriptions(proto.Message):
r"""Config to enable subscribing to all events from a list of
projects.

Attributes:
list_ (MutableSequence[str]):
Required. A list of projects to receive
events from.
All the projects must be in the same org. The
listed projects should have the format
project/{identifier} where identifier can be
either the project id for project number. A
single list may contain both formats. At most
100 projects can be listed.
"""

list_: MutableSequence[str] = proto.RepeatedField(
proto.STRING,
number=1,
)

class OrganizationSubscription(proto.Message):
r"""Config to enabled subscribing to events from other projects
in the org.

Attributes:
enabled (bool):
Required. Enable org level subscription.
"""

enabled: bool = proto.Field(
proto.BOOL,
number=1,
)

name: str = proto.Field(
proto.STRING,
number=1,
Expand Down Expand Up @@ -124,6 +180,18 @@ class GoogleApiSource(proto.Message):
number=11,
message=gce_logging_config.LoggingConfig,
)
organization_subscription: OrganizationSubscription = proto.Field(
proto.MESSAGE,
number=12,
oneof="wide_scope_subscription",
message=OrganizationSubscription,
)
project_subscriptions: ProjectSubscriptions = proto.Field(
proto.MESSAGE,
number=13,
oneof="wide_scope_subscription",
message=ProjectSubscriptions,
)


__all__ = tuple(sorted(__protobuf__.manifest))
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,13 @@ class Trigger(proto.Message):
Output only. Whether or not this Trigger
satisfies the requirements of physical zone
separation
retry_policy (google.cloud.eventarc_v1.types.Trigger.RetryPolicy):
Optional. The retry policy to use in the
Trigger.
If unset, event delivery will be retried for up
to 24 hours by default:

https://cloud.google.com/eventarc/docs/retry-events
etag (str):
Output only. This checksum is computed by the
server based on the value of other fields, and
Expand All @@ -110,6 +117,23 @@ class Trigger(proto.Message):
proceeding.
"""

class RetryPolicy(proto.Message):
r"""The retry policy configuration for the Trigger.

Can only be set with Cloud Run destinations.

Attributes:
max_attempts (int):
Optional. The maximum number of delivery
attempts for any message. The only valid value
is 1.
"""

max_attempts: int = proto.Field(
proto.INT32,
number=1,
)

name: str = proto.Field(
proto.STRING,
number=1,
Expand Down Expand Up @@ -170,6 +194,11 @@ class Trigger(proto.Message):
proto.BOOL,
number=19,
)
retry_policy: RetryPolicy = proto.Field(
proto.MESSAGE,
number=20,
message=RetryPolicy,
)
etag: str = proto.Field(
proto.STRING,
number=99,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ async def sample_create_google_api_source():

# Initialize request argument(s)
google_api_source = eventarc_v1.GoogleApiSource()
google_api_source.organization_subscription.enabled = True
google_api_source.destination = "destination_value"

request = eventarc_v1.CreateGoogleApiSourceRequest(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def sample_create_google_api_source():

# Initialize request argument(s)
google_api_source = eventarc_v1.GoogleApiSource()
google_api_source.organization_subscription.enabled = True
google_api_source.destination = "destination_value"

request = eventarc_v1.CreateGoogleApiSourceRequest(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ async def sample_update_google_api_source():

# Initialize request argument(s)
google_api_source = eventarc_v1.GoogleApiSource()
google_api_source.organization_subscription.enabled = True
google_api_source.destination = "destination_value"

request = eventarc_v1.UpdateGoogleApiSourceRequest(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def sample_update_google_api_source():

# Initialize request argument(s)
google_api_source = eventarc_v1.GoogleApiSource()
google_api_source.organization_subscription.enabled = True
google_api_source.destination = "destination_value"

request = eventarc_v1.UpdateGoogleApiSourceRequest(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -599,12 +599,12 @@
"regionTag": "eventarc_v1_generated_Eventarc_CreateGoogleApiSource_async",
"segments": [
{
"end": 60,
"end": 61,
"start": 27,
"type": "FULL"
},
{
"end": 60,
"end": 61,
"start": 27,
"type": "SHORT"
},
Expand All @@ -614,18 +614,18 @@
"type": "CLIENT_INITIALIZATION"
},
{
"end": 50,
"end": 51,
"start": 41,
"type": "REQUEST_INITIALIZATION"
},
{
"end": 57,
"start": 51,
"end": 58,
"start": 52,
"type": "REQUEST_EXECUTION"
},
{
"end": 61,
"start": 58,
"end": 62,
"start": 59,
"type": "RESPONSE_HANDLING"
}
],
Expand Down Expand Up @@ -687,12 +687,12 @@
"regionTag": "eventarc_v1_generated_Eventarc_CreateGoogleApiSource_sync",
"segments": [
{
"end": 60,
"end": 61,
"start": 27,
"type": "FULL"
},
{
"end": 60,
"end": 61,
"start": 27,
"type": "SHORT"
},
Expand All @@ -702,18 +702,18 @@
"type": "CLIENT_INITIALIZATION"
},
{
"end": 50,
"end": 51,
"start": 41,
"type": "REQUEST_INITIALIZATION"
},
{
"end": 57,
"start": 51,
"end": 58,
"start": 52,
"type": "REQUEST_EXECUTION"
},
{
"end": 61,
"start": 58,
"end": 62,
"start": 59,
"type": "RESPONSE_HANDLING"
}
],
Expand Down Expand Up @@ -5706,12 +5706,12 @@
"regionTag": "eventarc_v1_generated_Eventarc_UpdateGoogleApiSource_async",
"segments": [
{
"end": 58,
"end": 59,
"start": 27,
"type": "FULL"
},
{
"end": 58,
"end": 59,
"start": 27,
"type": "SHORT"
},
Expand All @@ -5721,18 +5721,18 @@
"type": "CLIENT_INITIALIZATION"
},
{
"end": 48,
"end": 49,
"start": 41,
"type": "REQUEST_INITIALIZATION"
},
{
"end": 55,
"start": 49,
"end": 56,
"start": 50,
"type": "REQUEST_EXECUTION"
},
{
"end": 59,
"start": 56,
"end": 60,
"start": 57,
"type": "RESPONSE_HANDLING"
}
],
Expand Down Expand Up @@ -5790,12 +5790,12 @@
"regionTag": "eventarc_v1_generated_Eventarc_UpdateGoogleApiSource_sync",
"segments": [
{
"end": 58,
"end": 59,
"start": 27,
"type": "FULL"
},
{
"end": 58,
"end": 59,
"start": 27,
"type": "SHORT"
},
Expand All @@ -5805,18 +5805,18 @@
"type": "CLIENT_INITIALIZATION"
},
{
"end": 48,
"end": 49,
"start": 41,
"type": "REQUEST_INITIALIZATION"
},
{
"end": 55,
"start": 49,
"end": 56,
"start": 50,
"type": "REQUEST_EXECUTION"
},
{
"end": 59,
"start": 56,
"end": 60,
"start": 57,
"type": "RESPONSE_HANDLING"
}
],
Expand Down
Loading
Loading