Class EventarcClient (2.31.0-rc)

Eventarc allows users to subscribe to various events that are provided by Google Cloud services and forward them to supported destinations.

Equality

Instances of this class created via copy-construction or copy-assignment always compare equal. Instances created with equal std::shared_ptr<*Connection> objects compare equal. Objects that compare equal share the same underlying resources.

Performance

Creating a new instance of this class is a relatively expensive operation, new objects establish new connections to the service. In contrast, copy-construction, move-construction, and the corresponding assignment operations are relatively efficient as the copies share all underlying resources.

Thread Safety

Concurrent access to different instances of this class, even if they compare equal, is guaranteed to work. Two or more threads operating on the same instance of this class is not guaranteed to work. Since copy-construction and move-construction is a relatively efficient operation, consider using such a copy when using this class from multiple threads.

Constructors

EventarcClient(EventarcClient const &)

Copy and move support

Parameter
Name Description
EventarcClient const &

EventarcClient(EventarcClient &&)

Copy and move support

Parameter
Name Description
EventarcClient &&

EventarcClient(std::shared_ptr< EventarcConnection >, Options)

Parameters
Name Description
connection std::shared_ptr< EventarcConnection >
opts Options

Operators

operator=(EventarcClient const &)

Copy and move support

Parameter
Name Description
EventarcClient const &
Returns
Type Description
EventarcClient &

operator=(EventarcClient &&)

Copy and move support

Parameter
Name Description
EventarcClient &&
Returns
Type Description
EventarcClient &

Functions

GetTrigger(std::string const &, Options)

Get a single trigger.

Parameters
Name Description
name std::string const &

Required. The name of the trigger to get.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StatusOr< google::cloud::eventarc::v1::Trigger >

the result of the RPC. The response message type (google.cloud.eventarc.v1.Trigger) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

GetTrigger(google::cloud::eventarc::v1::GetTriggerRequest const &, Options)

Get a single trigger.

Parameters
Name Description
request google::cloud::eventarc::v1::GetTriggerRequest const &

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.eventarc.v1.GetTriggerRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StatusOr< google::cloud::eventarc::v1::Trigger >

the result of the RPC. The response message type (google.cloud.eventarc.v1.Trigger) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

ListTriggers(std::string const &, Options)

List triggers.

Parameters
Name Description
parent std::string const &

Required. The parent collection to list triggers on.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StreamRange< google::cloud::eventarc::v1::Trigger >

a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has begin() and end() member functions returning a iterator class meeting the input iterator requirements. The value type for this iterator is a StatusOr as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the StatusOr<T> contains elements of type google.cloud.eventarc.v1.Trigger, or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the Protobuf mapping rules.

ListTriggers(google::cloud::eventarc::v1::ListTriggersRequest, Options)

List triggers.

Parameters
Name Description
request google::cloud::eventarc::v1::ListTriggersRequest

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.eventarc.v1.ListTriggersRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StreamRange< google::cloud::eventarc::v1::Trigger >

a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has begin() and end() member functions returning a iterator class meeting the input iterator requirements. The value type for this iterator is a StatusOr as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the StatusOr<T> contains elements of type google.cloud.eventarc.v1.Trigger, or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the Protobuf mapping rules.

CreateTrigger(std::string const &, google::cloud::eventarc::v1::Trigger const &, std::string const &, Options)

Create a new trigger in a particular project and location.

Parameters
Name Description
parent std::string const &

Required. The parent collection in which to add this trigger.

trigger google::cloud::eventarc::v1::Trigger const &

Required. The trigger to create.

trigger_id std::string const &

Required. The user-provided ID to be assigned to the trigger.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::Trigger > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.eventarc.v1.Trigger proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

CreateTrigger(NoAwaitTag, std::string const &, google::cloud::eventarc::v1::Trigger const &, std::string const &, Options)

Create a new trigger in a particular project and location.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
parent std::string const &
trigger google::cloud::eventarc::v1::Trigger const &
trigger_id std::string const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

CreateTrigger(google::cloud::eventarc::v1::CreateTriggerRequest const &, Options)

Create a new trigger in a particular project and location.

Parameters
Name Description
request google::cloud::eventarc::v1::CreateTriggerRequest const &

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.eventarc.v1.CreateTriggerRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::Trigger > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.eventarc.v1.Trigger proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

CreateTrigger(NoAwaitTag, google::cloud::eventarc::v1::CreateTriggerRequest const &, Options)

Create a new trigger in a particular project and location.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
request google::cloud::eventarc::v1::CreateTriggerRequest const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

CreateTrigger(google::longrunning::Operation const &, Options)

Create a new trigger in a particular project and location.

This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.

Parameters
Name Description
operation google::longrunning::Operation const &
opts Options
Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::Trigger > >

UpdateTrigger(google::cloud::eventarc::v1::Trigger const &, google::protobuf::FieldMask const &, bool, Options)

Update a single trigger.

Parameters
Name Description
trigger google::cloud::eventarc::v1::Trigger const &

The trigger to be updated.

update_mask google::protobuf::FieldMask const &

The fields to be updated; only fields explicitly provided are updated. If no field mask is provided, all provided fields in the request are updated. To update all fields, provide a field mask of "*".

allow_missing bool

If set to true, and the trigger is not found, a new trigger will be created. In this situation, update_mask is ignored.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::Trigger > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.eventarc.v1.Trigger proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

UpdateTrigger(NoAwaitTag, google::cloud::eventarc::v1::Trigger const &, google::protobuf::FieldMask const &, bool, Options)

Update a single trigger.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
trigger google::cloud::eventarc::v1::Trigger const &
update_mask google::protobuf::FieldMask const &
allow_missing bool
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

UpdateTrigger(google::cloud::eventarc::v1::UpdateTriggerRequest const &, Options)

Update a single trigger.

Parameters
Name Description
request google::cloud::eventarc::v1::UpdateTriggerRequest const &

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.eventarc.v1.UpdateTriggerRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::Trigger > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.eventarc.v1.Trigger proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

UpdateTrigger(NoAwaitTag, google::cloud::eventarc::v1::UpdateTriggerRequest const &, Options)

Update a single trigger.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
request google::cloud::eventarc::v1::UpdateTriggerRequest const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

UpdateTrigger(google::longrunning::Operation const &, Options)

Update a single trigger.

This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.

Parameters
Name Description
operation google::longrunning::Operation const &
opts Options
Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::Trigger > >

DeleteTrigger(std::string const &, bool, Options)

Delete a single trigger.

Parameters
Name Description
name std::string const &

Required. The name of the trigger to be deleted.

allow_missing bool

If set to true, and the trigger is not found, the request will succeed but no action will be taken on the server.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::Trigger > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.eventarc.v1.Trigger proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

DeleteTrigger(NoAwaitTag, std::string const &, bool, Options)

Delete a single trigger.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
name std::string const &
allow_missing bool
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

DeleteTrigger(google::cloud::eventarc::v1::DeleteTriggerRequest const &, Options)

Delete a single trigger.

Parameters
Name Description
request google::cloud::eventarc::v1::DeleteTriggerRequest const &

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.eventarc.v1.DeleteTriggerRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::Trigger > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.eventarc.v1.Trigger proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

DeleteTrigger(NoAwaitTag, google::cloud::eventarc::v1::DeleteTriggerRequest const &, Options)

Delete a single trigger.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
request google::cloud::eventarc::v1::DeleteTriggerRequest const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

DeleteTrigger(google::longrunning::Operation const &, Options)

Delete a single trigger.

This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.

Parameters
Name Description
operation google::longrunning::Operation const &
opts Options
Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::Trigger > >

GetChannel(std::string const &, Options)

Get a single Channel.

Parameters
Name Description
name std::string const &

Required. The name of the channel to get.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StatusOr< google::cloud::eventarc::v1::Channel >

the result of the RPC. The response message type (google.cloud.eventarc.v1.Channel) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

GetChannel(google::cloud::eventarc::v1::GetChannelRequest const &, Options)

Get a single Channel.

Parameters
Name Description
request google::cloud::eventarc::v1::GetChannelRequest const &

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.eventarc.v1.GetChannelRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StatusOr< google::cloud::eventarc::v1::Channel >

the result of the RPC. The response message type (google.cloud.eventarc.v1.Channel) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

ListChannels(std::string const &, Options)

List channels.

Parameters
Name Description
parent std::string const &

Required. The parent collection to list channels on.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StreamRange< google::cloud::eventarc::v1::Channel >

a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has begin() and end() member functions returning a iterator class meeting the input iterator requirements. The value type for this iterator is a StatusOr as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the StatusOr<T> contains elements of type google.cloud.eventarc.v1.Channel, or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the Protobuf mapping rules.

ListChannels(google::cloud::eventarc::v1::ListChannelsRequest, Options)

List channels.

Parameters
Name Description
request google::cloud::eventarc::v1::ListChannelsRequest

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.eventarc.v1.ListChannelsRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StreamRange< google::cloud::eventarc::v1::Channel >

a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has begin() and end() member functions returning a iterator class meeting the input iterator requirements. The value type for this iterator is a StatusOr as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the StatusOr<T> contains elements of type google.cloud.eventarc.v1.Channel, or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the Protobuf mapping rules.

CreateChannel(std::string const &, google::cloud::eventarc::v1::Channel const &, std::string const &, Options)

Create a new channel in a particular project and location.

Parameters
Name Description
parent std::string const &

Required. The parent collection in which to add this channel.

channel google::cloud::eventarc::v1::Channel const &

Required. The channel to create.

channel_id std::string const &

Required. The user-provided ID to be assigned to the channel.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::Channel > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.eventarc.v1.Channel proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

CreateChannel(NoAwaitTag, std::string const &, google::cloud::eventarc::v1::Channel const &, std::string const &, Options)

Create a new channel in a particular project and location.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
parent std::string const &
channel google::cloud::eventarc::v1::Channel const &
channel_id std::string const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

CreateChannel(google::cloud::eventarc::v1::CreateChannelRequest const &, Options)

Create a new channel in a particular project and location.

Parameters
Name Description
request google::cloud::eventarc::v1::CreateChannelRequest const &

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.eventarc.v1.CreateChannelRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::Channel > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.eventarc.v1.Channel proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

CreateChannel(NoAwaitTag, google::cloud::eventarc::v1::CreateChannelRequest const &, Options)

Create a new channel in a particular project and location.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
request google::cloud::eventarc::v1::CreateChannelRequest const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

CreateChannel(google::longrunning::Operation const &, Options)

Create a new channel in a particular project and location.

This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.

Parameters
Name Description
operation google::longrunning::Operation const &
opts Options
Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::Channel > >

UpdateChannel(google::cloud::eventarc::v1::Channel const &, google::protobuf::FieldMask const &, Options)

Update a single channel.

Parameters
Name Description
channel google::cloud::eventarc::v1::Channel const &

The channel to be updated.

update_mask google::protobuf::FieldMask const &

The fields to be updated; only fields explicitly provided are updated. If no field mask is provided, all provided fields in the request are updated. To update all fields, provide a field mask of "*".

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::Channel > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.eventarc.v1.Channel proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

UpdateChannel(NoAwaitTag, google::cloud::eventarc::v1::Channel const &, google::protobuf::FieldMask const &, Options)

Update a single channel.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
channel google::cloud::eventarc::v1::Channel const &
update_mask google::protobuf::FieldMask const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

UpdateChannel(google::cloud::eventarc::v1::UpdateChannelRequest const &, Options)

Update a single channel.

Parameters
Name Description
request google::cloud::eventarc::v1::UpdateChannelRequest const &

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.eventarc.v1.UpdateChannelRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::Channel > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.eventarc.v1.Channel proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

UpdateChannel(NoAwaitTag, google::cloud::eventarc::v1::UpdateChannelRequest const &, Options)

Update a single channel.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
request google::cloud::eventarc::v1::UpdateChannelRequest const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

UpdateChannel(google::longrunning::Operation const &, Options)

Update a single channel.

This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.

Parameters
Name Description
operation google::longrunning::Operation const &
opts Options
Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::Channel > >

DeleteChannel(std::string const &, Options)

Delete a single channel.

Parameters
Name Description
name std::string const &

Required. The name of the channel to be deleted.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::Channel > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.eventarc.v1.Channel proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

DeleteChannel(NoAwaitTag, std::string const &, Options)

Delete a single channel.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
name std::string const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

DeleteChannel(google::cloud::eventarc::v1::DeleteChannelRequest const &, Options)

Delete a single channel.

Parameters
Name Description
request google::cloud::eventarc::v1::DeleteChannelRequest const &

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.eventarc.v1.DeleteChannelRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::Channel > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.eventarc.v1.Channel proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

DeleteChannel(NoAwaitTag, google::cloud::eventarc::v1::DeleteChannelRequest const &, Options)

Delete a single channel.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
request google::cloud::eventarc::v1::DeleteChannelRequest const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

DeleteChannel(google::longrunning::Operation const &, Options)

Delete a single channel.

This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.

Parameters
Name Description
operation google::longrunning::Operation const &
opts Options
Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::Channel > >

GetProvider(std::string const &, Options)

Get a single Provider.

Parameters
Name Description
name std::string const &

Required. The name of the provider to get.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StatusOr< google::cloud::eventarc::v1::Provider >

the result of the RPC. The response message type (google.cloud.eventarc.v1.Provider) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

GetProvider(google::cloud::eventarc::v1::GetProviderRequest const &, Options)

Get a single Provider.

Parameters
Name Description
request google::cloud::eventarc::v1::GetProviderRequest const &

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.eventarc.v1.GetProviderRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StatusOr< google::cloud::eventarc::v1::Provider >

the result of the RPC. The response message type (google.cloud.eventarc.v1.Provider) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

ListProviders(std::string const &, Options)

List providers.

Parameters
Name Description
parent std::string const &

Required. The parent of the provider to get.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StreamRange< google::cloud::eventarc::v1::Provider >

a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has begin() and end() member functions returning a iterator class meeting the input iterator requirements. The value type for this iterator is a StatusOr as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the StatusOr<T> contains elements of type google.cloud.eventarc.v1.Provider, or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the Protobuf mapping rules.

ListProviders(google::cloud::eventarc::v1::ListProvidersRequest, Options)

List providers.

Parameters
Name Description
request google::cloud::eventarc::v1::ListProvidersRequest

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.eventarc.v1.ListProvidersRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StreamRange< google::cloud::eventarc::v1::Provider >

a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has begin() and end() member functions returning a iterator class meeting the input iterator requirements. The value type for this iterator is a StatusOr as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the StatusOr<T> contains elements of type google.cloud.eventarc.v1.Provider, or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the Protobuf mapping rules.

GetChannelConnection(std::string const &, Options)

Get a single ChannelConnection.

Parameters
Name Description
name std::string const &

Required. The name of the channel connection to get.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StatusOr< google::cloud::eventarc::v1::ChannelConnection >

the result of the RPC. The response message type (google.cloud.eventarc.v1.ChannelConnection) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

GetChannelConnection(google::cloud::eventarc::v1::GetChannelConnectionRequest const &, Options)

Get a single ChannelConnection.

Parameters
Name Description
request google::cloud::eventarc::v1::GetChannelConnectionRequest const &

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.eventarc.v1.GetChannelConnectionRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StatusOr< google::cloud::eventarc::v1::ChannelConnection >

the result of the RPC. The response message type (google.cloud.eventarc.v1.ChannelConnection) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

ListChannelConnections(std::string const &, Options)

List channel connections.

Parameters
Name Description
parent std::string const &

Required. The parent collection from which to list channel connections.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StreamRange< google::cloud::eventarc::v1::ChannelConnection >

a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has begin() and end() member functions returning a iterator class meeting the input iterator requirements. The value type for this iterator is a StatusOr as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the StatusOr<T> contains elements of type google.cloud.eventarc.v1.ChannelConnection, or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the Protobuf mapping rules.

ListChannelConnections(google::cloud::eventarc::v1::ListChannelConnectionsRequest, Options)

List channel connections.

Parameters
Name Description
request google::cloud::eventarc::v1::ListChannelConnectionsRequest

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.eventarc.v1.ListChannelConnectionsRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StreamRange< google::cloud::eventarc::v1::ChannelConnection >

a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has begin() and end() member functions returning a iterator class meeting the input iterator requirements. The value type for this iterator is a StatusOr as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the StatusOr<T> contains elements of type google.cloud.eventarc.v1.ChannelConnection, or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the Protobuf mapping rules.

CreateChannelConnection(std::string const &, google::cloud::eventarc::v1::ChannelConnection const &, std::string const &, Options)

Create a new ChannelConnection in a particular project and location.

Parameters
Name Description
parent std::string const &

Required. The parent collection in which to add this channel connection.

channel_connection google::cloud::eventarc::v1::ChannelConnection const &

Required. Channel connection to create.

channel_connection_id std::string const &

Required. The user-provided ID to be assigned to the channel connection.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::ChannelConnection > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.eventarc.v1.ChannelConnection proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

CreateChannelConnection(NoAwaitTag, std::string const &, google::cloud::eventarc::v1::ChannelConnection const &, std::string const &, Options)

Create a new ChannelConnection in a particular project and location.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
parent std::string const &
channel_connection google::cloud::eventarc::v1::ChannelConnection const &
channel_connection_id std::string const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

CreateChannelConnection(google::cloud::eventarc::v1::CreateChannelConnectionRequest const &, Options)

Create a new ChannelConnection in a particular project and location.

Parameters
Name Description
request google::cloud::eventarc::v1::CreateChannelConnectionRequest const &

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.eventarc.v1.CreateChannelConnectionRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::ChannelConnection > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.eventarc.v1.ChannelConnection proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

CreateChannelConnection(NoAwaitTag, google::cloud::eventarc::v1::CreateChannelConnectionRequest const &, Options)

Create a new ChannelConnection in a particular project and location.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
request google::cloud::eventarc::v1::CreateChannelConnectionRequest const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

CreateChannelConnection(google::longrunning::Operation const &, Options)

Create a new ChannelConnection in a particular project and location.

This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.

Parameters
Name Description
operation google::longrunning::Operation const &
opts Options
Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::ChannelConnection > >

DeleteChannelConnection(std::string const &, Options)

Delete a single ChannelConnection.

Parameters
Name Description
name std::string const &

Required. The name of the channel connection to delete.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::ChannelConnection > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.eventarc.v1.ChannelConnection proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

DeleteChannelConnection(NoAwaitTag, std::string const &, Options)

Delete a single ChannelConnection.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
name std::string const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

DeleteChannelConnection(google::cloud::eventarc::v1::DeleteChannelConnectionRequest const &, Options)

Delete a single ChannelConnection.

Parameters
Name Description
request google::cloud::eventarc::v1::DeleteChannelConnectionRequest const &

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.eventarc.v1.DeleteChannelConnectionRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::ChannelConnection > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.eventarc.v1.ChannelConnection proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

DeleteChannelConnection(NoAwaitTag, google::cloud::eventarc::v1::DeleteChannelConnectionRequest const &, Options)

Delete a single ChannelConnection.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
request google::cloud::eventarc::v1::DeleteChannelConnectionRequest const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

DeleteChannelConnection(google::longrunning::Operation const &, Options)

Delete a single ChannelConnection.

This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.

Parameters
Name Description
operation google::longrunning::Operation const &
opts Options
Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::ChannelConnection > >

GetGoogleChannelConfig(std::string const &, Options)

Get a GoogleChannelConfig.

Parameters
Name Description
name std::string const &

Required. The name of the config to get.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StatusOr< google::cloud::eventarc::v1::GoogleChannelConfig >

the result of the RPC. The response message type (google.cloud.eventarc.v1.GoogleChannelConfig) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

GetGoogleChannelConfig(google::cloud::eventarc::v1::GetGoogleChannelConfigRequest const &, Options)

Get a GoogleChannelConfig.

Parameters
Name Description
request google::cloud::eventarc::v1::GetGoogleChannelConfigRequest const &

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.eventarc.v1.GetGoogleChannelConfigRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StatusOr< google::cloud::eventarc::v1::GoogleChannelConfig >

the result of the RPC. The response message type (google.cloud.eventarc.v1.GoogleChannelConfig) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

UpdateGoogleChannelConfig(google::cloud::eventarc::v1::GoogleChannelConfig const &, google::protobuf::FieldMask const &, Options)

Update a single GoogleChannelConfig.

Parameters
Name Description
google_channel_config google::cloud::eventarc::v1::GoogleChannelConfig const &

Required. The config to be updated.

update_mask google::protobuf::FieldMask const &

The fields to be updated; only fields explicitly provided are updated. If no field mask is provided, all provided fields in the request are updated. To update all fields, provide a field mask of "*".

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StatusOr< google::cloud::eventarc::v1::GoogleChannelConfig >

the result of the RPC. The response message type (google.cloud.eventarc.v1.GoogleChannelConfig) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

UpdateGoogleChannelConfig(google::cloud::eventarc::v1::UpdateGoogleChannelConfigRequest const &, Options)

Update a single GoogleChannelConfig.

Parameters
Name Description
request google::cloud::eventarc::v1::UpdateGoogleChannelConfigRequest const &

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.eventarc.v1.UpdateGoogleChannelConfigRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StatusOr< google::cloud::eventarc::v1::GoogleChannelConfig >

the result of the RPC. The response message type (google.cloud.eventarc.v1.GoogleChannelConfig) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

GetMessageBus(std::string const &, Options)

Get a single MessageBus.

Parameters
Name Description
name std::string const &

Required. The name of the message bus to get.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StatusOr< google::cloud::eventarc::v1::MessageBus >

the result of the RPC. The response message type (google.cloud.eventarc.v1.MessageBus) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

GetMessageBus(google::cloud::eventarc::v1::GetMessageBusRequest const &, Options)

Get a single MessageBus.

Parameters
Name Description
request google::cloud::eventarc::v1::GetMessageBusRequest const &

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.eventarc.v1.GetMessageBusRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StatusOr< google::cloud::eventarc::v1::MessageBus >

the result of the RPC. The response message type (google.cloud.eventarc.v1.MessageBus) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

ListMessageBuses(std::string const &, Options)

List message buses.

Parameters
Name Description
parent std::string const &

Required. The parent collection to list triggers on.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StreamRange< google::cloud::eventarc::v1::MessageBus >

a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has begin() and end() member functions returning a iterator class meeting the input iterator requirements. The value type for this iterator is a StatusOr as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the StatusOr<T> contains elements of type google.cloud.eventarc.v1.MessageBus, or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the Protobuf mapping rules.

ListMessageBuses(google::cloud::eventarc::v1::ListMessageBusesRequest, Options)

List message buses.

Parameters
Name Description
request google::cloud::eventarc::v1::ListMessageBusesRequest

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.eventarc.v1.ListMessageBusesRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StreamRange< google::cloud::eventarc::v1::MessageBus >

a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has begin() and end() member functions returning a iterator class meeting the input iterator requirements. The value type for this iterator is a StatusOr as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the StatusOr<T> contains elements of type google.cloud.eventarc.v1.MessageBus, or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the Protobuf mapping rules.

ListMessageBusEnrollments(std::string const &, Options)

List message bus enrollments.

Parameters
Name Description
parent std::string const &

Required. The parent message bus to list enrollments on.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StatusOr< google::cloud::eventarc::v1::ListMessageBusEnrollmentsResponse >

the result of the RPC. The response message type (google.cloud.eventarc.v1.ListMessageBusEnrollmentsResponse) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

ListMessageBusEnrollments(google::cloud::eventarc::v1::ListMessageBusEnrollmentsRequest const &, Options)

List message bus enrollments.

Parameters
Name Description
request google::cloud::eventarc::v1::ListMessageBusEnrollmentsRequest const &

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.eventarc.v1.ListMessageBusEnrollmentsRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StatusOr< google::cloud::eventarc::v1::ListMessageBusEnrollmentsResponse >

the result of the RPC. The response message type (google.cloud.eventarc.v1.ListMessageBusEnrollmentsResponse) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

CreateMessageBus(std::string const &, google::cloud::eventarc::v1::MessageBus const &, std::string const &, Options)

Create a new MessageBus in a particular project and location.

Parameters
Name Description
parent std::string const &

Required. The parent collection in which to add this message bus.

message_bus google::cloud::eventarc::v1::MessageBus const &

Required. The message bus to create.

message_bus_id std::string const &

Required. The user-provided ID to be assigned to the MessageBus. It should match the format (^a-z?$)

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::MessageBus > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.eventarc.v1.MessageBus proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

CreateMessageBus(NoAwaitTag, std::string const &, google::cloud::eventarc::v1::MessageBus const &, std::string const &, Options)

Create a new MessageBus in a particular project and location.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
parent std::string const &
message_bus google::cloud::eventarc::v1::MessageBus const &
message_bus_id std::string const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

CreateMessageBus(google::cloud::eventarc::v1::CreateMessageBusRequest const &, Options)

Create a new MessageBus in a particular project and location.

Parameters
Name Description
request google::cloud::eventarc::v1::CreateMessageBusRequest const &

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.eventarc.v1.CreateMessageBusRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::MessageBus > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.eventarc.v1.MessageBus proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

CreateMessageBus(NoAwaitTag, google::cloud::eventarc::v1::CreateMessageBusRequest const &, Options)

Create a new MessageBus in a particular project and location.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
request google::cloud::eventarc::v1::CreateMessageBusRequest const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

CreateMessageBus(google::longrunning::Operation const &, Options)

Create a new MessageBus in a particular project and location.

This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.

Parameters
Name Description
operation google::longrunning::Operation const &
opts Options
Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::MessageBus > >

UpdateMessageBus(google::cloud::eventarc::v1::MessageBus const &, google::protobuf::FieldMask const &, Options)

Update a single message bus.

Parameters
Name Description
message_bus google::cloud::eventarc::v1::MessageBus const &

Required. The MessageBus to be updated.

update_mask google::protobuf::FieldMask const &

Optional. The fields to be updated; only fields explicitly provided are updated. If no field mask is provided, all provided fields in the request are updated. To update all fields, provide a field mask of "*".

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::MessageBus > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.eventarc.v1.MessageBus proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

UpdateMessageBus(NoAwaitTag, google::cloud::eventarc::v1::MessageBus const &, google::protobuf::FieldMask const &, Options)

Update a single message bus.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
message_bus google::cloud::eventarc::v1::MessageBus const &
update_mask google::protobuf::FieldMask const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

UpdateMessageBus(google::cloud::eventarc::v1::UpdateMessageBusRequest const &, Options)

Update a single message bus.

Parameters
Name Description
request google::cloud::eventarc::v1::UpdateMessageBusRequest const &

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.eventarc.v1.UpdateMessageBusRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::MessageBus > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.eventarc.v1.MessageBus proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

UpdateMessageBus(NoAwaitTag, google::cloud::eventarc::v1::UpdateMessageBusRequest const &, Options)

Update a single message bus.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
request google::cloud::eventarc::v1::UpdateMessageBusRequest const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

UpdateMessageBus(google::longrunning::Operation const &, Options)

Update a single message bus.

This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.

Parameters
Name Description
operation google::longrunning::Operation const &
opts Options
Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::MessageBus > >

DeleteMessageBus(std::string const &, std::string const &, Options)

Delete a single message bus.

Parameters
Name Description
name std::string const &

Required. The name of the MessageBus to be deleted.

etag std::string const &

Optional. If provided, the MessageBus will only be deleted if the etag matches the current etag on the resource.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::MessageBus > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.eventarc.v1.MessageBus proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

DeleteMessageBus(NoAwaitTag, std::string const &, std::string const &, Options)

Delete a single message bus.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
name std::string const &
etag std::string const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

DeleteMessageBus(google::cloud::eventarc::v1::DeleteMessageBusRequest const &, Options)

Delete a single message bus.

Parameters
Name Description
request google::cloud::eventarc::v1::DeleteMessageBusRequest const &

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.eventarc.v1.DeleteMessageBusRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::MessageBus > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.eventarc.v1.MessageBus proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

DeleteMessageBus(NoAwaitTag, google::cloud::eventarc::v1::DeleteMessageBusRequest const &, Options)

Delete a single message bus.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
request google::cloud::eventarc::v1::DeleteMessageBusRequest const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

DeleteMessageBus(google::longrunning::Operation const &, Options)

Delete a single message bus.

This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.

Parameters
Name Description
operation google::longrunning::Operation const &
opts Options
Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::MessageBus > >

GetEnrollment(std::string const &, Options)

Get a single Enrollment.

Parameters
Name Description
name std::string const &

Required. The name of the Enrollment to get.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StatusOr< google::cloud::eventarc::v1::Enrollment >

the result of the RPC. The response message type (google.cloud.eventarc.v1.Enrollment) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

GetEnrollment(google::cloud::eventarc::v1::GetEnrollmentRequest const &, Options)

Get a single Enrollment.

Parameters
Name Description
request google::cloud::eventarc::v1::GetEnrollmentRequest const &

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.eventarc.v1.GetEnrollmentRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StatusOr< google::cloud::eventarc::v1::Enrollment >

the result of the RPC. The response message type (google.cloud.eventarc.v1.Enrollment) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

ListEnrollments(std::string const &, Options)

List Enrollments.

Parameters
Name Description
parent std::string const &

Required. The parent collection to list triggers on.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StreamRange< google::cloud::eventarc::v1::Enrollment >

a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has begin() and end() member functions returning a iterator class meeting the input iterator requirements. The value type for this iterator is a StatusOr as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the StatusOr<T> contains elements of type google.cloud.eventarc.v1.Enrollment, or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the Protobuf mapping rules.

ListEnrollments(google::cloud::eventarc::v1::ListEnrollmentsRequest, Options)

List Enrollments.

Parameters
Name Description
request google::cloud::eventarc::v1::ListEnrollmentsRequest

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.eventarc.v1.ListEnrollmentsRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StreamRange< google::cloud::eventarc::v1::Enrollment >

a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has begin() and end() member functions returning a iterator class meeting the input iterator requirements. The value type for this iterator is a StatusOr as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the StatusOr<T> contains elements of type google.cloud.eventarc.v1.Enrollment, or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the Protobuf mapping rules.

CreateEnrollment(std::string const &, google::cloud::eventarc::v1::Enrollment const &, std::string const &, Options)

Create a new Enrollment in a particular project and location.

Parameters
Name Description
parent std::string const &

Required. The parent collection in which to add this enrollment.

enrollment google::cloud::eventarc::v1::Enrollment const &

Required. The enrollment to create.

enrollment_id std::string const &

Required. The user-provided ID to be assigned to the Enrollment. It should match the format (^a-z?$).

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::Enrollment > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.eventarc.v1.Enrollment proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

CreateEnrollment(NoAwaitTag, std::string const &, google::cloud::eventarc::v1::Enrollment const &, std::string const &, Options)

Create a new Enrollment in a particular project and location.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
parent std::string const &
enrollment google::cloud::eventarc::v1::Enrollment const &
enrollment_id std::string const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

CreateEnrollment(google::cloud::eventarc::v1::CreateEnrollmentRequest const &, Options)

Create a new Enrollment in a particular project and location.

Parameters
Name Description
request google::cloud::eventarc::v1::CreateEnrollmentRequest const &

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.eventarc.v1.CreateEnrollmentRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::Enrollment > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.eventarc.v1.Enrollment proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

CreateEnrollment(NoAwaitTag, google::cloud::eventarc::v1::CreateEnrollmentRequest const &, Options)

Create a new Enrollment in a particular project and location.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
request google::cloud::eventarc::v1::CreateEnrollmentRequest const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

CreateEnrollment(google::longrunning::Operation const &, Options)

Create a new Enrollment in a particular project and location.

This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.

Parameters
Name Description
operation google::longrunning::Operation const &
opts Options
Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::Enrollment > >

UpdateEnrollment(google::cloud::eventarc::v1::Enrollment const &, google::protobuf::FieldMask const &, Options)

Update a single Enrollment.

Parameters
Name Description
enrollment google::cloud::eventarc::v1::Enrollment const &

Required. The Enrollment to be updated.

update_mask google::protobuf::FieldMask const &

Optional. The fields to be updated; only fields explicitly provided are updated. If no field mask is provided, all provided fields in the request are updated. To update all fields, provide a field mask of "*".

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::Enrollment > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.eventarc.v1.Enrollment proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

UpdateEnrollment(NoAwaitTag, google::cloud::eventarc::v1::Enrollment const &, google::protobuf::FieldMask const &, Options)

Update a single Enrollment.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
enrollment google::cloud::eventarc::v1::Enrollment const &
update_mask google::protobuf::FieldMask const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

UpdateEnrollment(google::cloud::eventarc::v1::UpdateEnrollmentRequest const &, Options)

Update a single Enrollment.

Parameters
Name Description
request google::cloud::eventarc::v1::UpdateEnrollmentRequest const &

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.eventarc.v1.UpdateEnrollmentRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::Enrollment > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.eventarc.v1.Enrollment proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

UpdateEnrollment(NoAwaitTag, google::cloud::eventarc::v1::UpdateEnrollmentRequest const &, Options)

Update a single Enrollment.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
request google::cloud::eventarc::v1::UpdateEnrollmentRequest const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

UpdateEnrollment(google::longrunning::Operation const &, Options)

Update a single Enrollment.

This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.

Parameters
Name Description
operation google::longrunning::Operation const &
opts Options
Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::Enrollment > >

DeleteEnrollment(std::string const &, std::string const &, Options)

Delete a single Enrollment.

Parameters
Name Description
name std::string const &

Required. The name of the Enrollment to be deleted.

etag std::string const &

Optional. If provided, the Enrollment will only be deleted if the etag matches the current etag on the resource.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::Enrollment > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.eventarc.v1.Enrollment proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

DeleteEnrollment(NoAwaitTag, std::string const &, std::string const &, Options)

Delete a single Enrollment.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
name std::string const &
etag std::string const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

DeleteEnrollment(google::cloud::eventarc::v1::DeleteEnrollmentRequest const &, Options)

Delete a single Enrollment.

Parameters
Name Description
request google::cloud::eventarc::v1::DeleteEnrollmentRequest const &

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.eventarc.v1.DeleteEnrollmentRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::Enrollment > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.eventarc.v1.Enrollment proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

DeleteEnrollment(NoAwaitTag, google::cloud::eventarc::v1::DeleteEnrollmentRequest const &, Options)

Delete a single Enrollment.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
request google::cloud::eventarc::v1::DeleteEnrollmentRequest const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

DeleteEnrollment(google::longrunning::Operation const &, Options)

Delete a single Enrollment.

This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.

Parameters
Name Description
operation google::longrunning::Operation const &
opts Options
Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::Enrollment > >

GetPipeline(std::string const &, Options)

Get a single Pipeline.

Parameters
Name Description
name std::string const &

Required. The name of the pipeline to get.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StatusOr< google::cloud::eventarc::v1::Pipeline >

the result of the RPC. The response message type (google.cloud.eventarc.v1.Pipeline) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

GetPipeline(google::cloud::eventarc::v1::GetPipelineRequest const &, Options)

Get a single Pipeline.

Parameters
Name Description
request google::cloud::eventarc::v1::GetPipelineRequest const &

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.eventarc.v1.GetPipelineRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StatusOr< google::cloud::eventarc::v1::Pipeline >

the result of the RPC. The response message type (google.cloud.eventarc.v1.Pipeline) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

ListPipelines(std::string const &, Options)

List pipelines.

Parameters
Name Description
parent std::string const &

Required. The parent collection to list pipelines on.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StreamRange< google::cloud::eventarc::v1::Pipeline >

a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has begin() and end() member functions returning a iterator class meeting the input iterator requirements. The value type for this iterator is a StatusOr as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the StatusOr<T> contains elements of type google.cloud.eventarc.v1.Pipeline, or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the Protobuf mapping rules.

ListPipelines(google::cloud::eventarc::v1::ListPipelinesRequest, Options)

List pipelines.

Parameters
Name Description
request google::cloud::eventarc::v1::ListPipelinesRequest

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.eventarc.v1.ListPipelinesRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StreamRange< google::cloud::eventarc::v1::Pipeline >

a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has begin() and end() member functions returning a iterator class meeting the input iterator requirements. The value type for this iterator is a StatusOr as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the StatusOr<T> contains elements of type google.cloud.eventarc.v1.Pipeline, or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the Protobuf mapping rules.

CreatePipeline(std::string const &, google::cloud::eventarc::v1::Pipeline const &, std::string const &, Options)

Create a new Pipeline in a particular project and location.

Parameters
Name Description
parent std::string const &

Required. The parent collection in which to add this pipeline.

pipeline google::cloud::eventarc::v1::Pipeline const &

Required. The pipeline to create.

pipeline_id std::string const &

Required. The user-provided ID to be assigned to the Pipeline.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::Pipeline > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.eventarc.v1.Pipeline proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

CreatePipeline(NoAwaitTag, std::string const &, google::cloud::eventarc::v1::Pipeline const &, std::string const &, Options)

Create a new Pipeline in a particular project and location.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
parent std::string const &
pipeline google::cloud::eventarc::v1::Pipeline const &
pipeline_id std::string const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

CreatePipeline(google::cloud::eventarc::v1::CreatePipelineRequest const &, Options)

Create a new Pipeline in a particular project and location.

Parameters
Name Description
request google::cloud::eventarc::v1::CreatePipelineRequest const &

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.eventarc.v1.CreatePipelineRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::Pipeline > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.eventarc.v1.Pipeline proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

CreatePipeline(NoAwaitTag, google::cloud::eventarc::v1::CreatePipelineRequest const &, Options)

Create a new Pipeline in a particular project and location.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
request google::cloud::eventarc::v1::CreatePipelineRequest const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

CreatePipeline(google::longrunning::Operation const &, Options)

Create a new Pipeline in a particular project and location.

This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.

Parameters
Name Description
operation google::longrunning::Operation const &
opts Options
Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::Pipeline > >

UpdatePipeline(google::cloud::eventarc::v1::Pipeline const &, google::protobuf::FieldMask const &, Options)

Update a single pipeline.

Parameters
Name Description
pipeline google::cloud::eventarc::v1::Pipeline const &

Required. The Pipeline to be updated.

update_mask google::protobuf::FieldMask const &

Optional. The fields to be updated; only fields explicitly provided are updated. If no field mask is provided, all provided fields in the request are updated. To update all fields, provide a field mask of "*".

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::Pipeline > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.eventarc.v1.Pipeline proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

UpdatePipeline(NoAwaitTag, google::cloud::eventarc::v1::Pipeline const &, google::protobuf::FieldMask const &, Options)

Update a single pipeline.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
pipeline google::cloud::eventarc::v1::Pipeline const &
update_mask google::protobuf::FieldMask const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

UpdatePipeline(google::cloud::eventarc::v1::UpdatePipelineRequest const &, Options)

Update a single pipeline.

Parameters
Name Description
request google::cloud::eventarc::v1::UpdatePipelineRequest const &

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.eventarc.v1.UpdatePipelineRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::Pipeline > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.eventarc.v1.Pipeline proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

UpdatePipeline(NoAwaitTag, google::cloud::eventarc::v1::UpdatePipelineRequest const &, Options)

Update a single pipeline.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
request google::cloud::eventarc::v1::UpdatePipelineRequest const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

UpdatePipeline(google::longrunning::Operation const &, Options)

Update a single pipeline.

This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.

Parameters
Name Description
operation google::longrunning::Operation const &
opts Options
Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::Pipeline > >

DeletePipeline(std::string const &, std::string const &, Options)

Delete a single pipeline.

Parameters
Name Description
name std::string const &

Required. The name of the Pipeline to be deleted.

etag std::string const &

Optional. If provided, the Pipeline will only be deleted if the etag matches the current etag on the resource.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::Pipeline > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.eventarc.v1.Pipeline proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

DeletePipeline(NoAwaitTag, std::string const &, std::string const &, Options)

Delete a single pipeline.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
name std::string const &
etag std::string const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

DeletePipeline(google::cloud::eventarc::v1::DeletePipelineRequest const &, Options)

Delete a single pipeline.

Parameters
Name Description
request google::cloud::eventarc::v1::DeletePipelineRequest const &

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.eventarc.v1.DeletePipelineRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::Pipeline > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.eventarc.v1.Pipeline proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

DeletePipeline(NoAwaitTag, google::cloud::eventarc::v1::DeletePipelineRequest const &, Options)

Delete a single pipeline.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
request google::cloud::eventarc::v1::DeletePipelineRequest const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

DeletePipeline(google::longrunning::Operation const &, Options)

Delete a single pipeline.

This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.

Parameters
Name Description
operation google::longrunning::Operation const &
opts Options
Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::Pipeline > >

GetGoogleApiSource(std::string const &, Options)

Get a single GoogleApiSource.

Parameters
Name Description
name std::string const &

Required. The name of the google api source to get.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StatusOr< google::cloud::eventarc::v1::GoogleApiSource >

the result of the RPC. The response message type (google.cloud.eventarc.v1.GoogleApiSource) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

GetGoogleApiSource(google::cloud::eventarc::v1::GetGoogleApiSourceRequest const &, Options)

Get a single GoogleApiSource.

Parameters
Name Description
request google::cloud::eventarc::v1::GetGoogleApiSourceRequest const &

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.eventarc.v1.GetGoogleApiSourceRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StatusOr< google::cloud::eventarc::v1::GoogleApiSource >

the result of the RPC. The response message type (google.cloud.eventarc.v1.GoogleApiSource) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

ListGoogleApiSources(std::string const &, Options)

List GoogleApiSources.

Parameters
Name Description
parent std::string const &

Required. The parent collection to list GoogleApiSources on.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StreamRange< google::cloud::eventarc::v1::GoogleApiSource >

a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has begin() and end() member functions returning a iterator class meeting the input iterator requirements. The value type for this iterator is a StatusOr as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the StatusOr<T> contains elements of type google.cloud.eventarc.v1.GoogleApiSource, or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the Protobuf mapping rules.

ListGoogleApiSources(google::cloud::eventarc::v1::ListGoogleApiSourcesRequest, Options)

List GoogleApiSources.

Parameters
Name Description
request google::cloud::eventarc::v1::ListGoogleApiSourcesRequest

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.eventarc.v1.ListGoogleApiSourcesRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StreamRange< google::cloud::eventarc::v1::GoogleApiSource >

a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has begin() and end() member functions returning a iterator class meeting the input iterator requirements. The value type for this iterator is a StatusOr as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the StatusOr<T> contains elements of type google.cloud.eventarc.v1.GoogleApiSource, or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the Protobuf mapping rules.

CreateGoogleApiSource(std::string const &, google::cloud::eventarc::v1::GoogleApiSource const &, std::string const &, Options)

Create a new GoogleApiSource in a particular project and location.

Parameters
Name Description
parent std::string const &

Required. The parent collection in which to add this google api source.

google_api_source google::cloud::eventarc::v1::GoogleApiSource const &

Required. The google api source to create.

google_api_source_id std::string const &

Required. The user-provided ID to be assigned to the GoogleApiSource. It should match the format (^a-z?$).

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::GoogleApiSource > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.eventarc.v1.GoogleApiSource proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

CreateGoogleApiSource(NoAwaitTag, std::string const &, google::cloud::eventarc::v1::GoogleApiSource const &, std::string const &, Options)

Create a new GoogleApiSource in a particular project and location.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
parent std::string const &
google_api_source google::cloud::eventarc::v1::GoogleApiSource const &
google_api_source_id std::string const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

CreateGoogleApiSource(google::cloud::eventarc::v1::CreateGoogleApiSourceRequest const &, Options)

Create a new GoogleApiSource in a particular project and location.

Parameters
Name Description
request google::cloud::eventarc::v1::CreateGoogleApiSourceRequest const &

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.eventarc.v1.CreateGoogleApiSourceRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::GoogleApiSource > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.eventarc.v1.GoogleApiSource proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

CreateGoogleApiSource(NoAwaitTag, google::cloud::eventarc::v1::CreateGoogleApiSourceRequest const &, Options)

Create a new GoogleApiSource in a particular project and location.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
request google::cloud::eventarc::v1::CreateGoogleApiSourceRequest const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

CreateGoogleApiSource(google::longrunning::Operation const &, Options)

Create a new GoogleApiSource in a particular project and location.

This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.

Parameters
Name Description
operation google::longrunning::Operation const &
opts Options
Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::GoogleApiSource > >

UpdateGoogleApiSource(google::cloud::eventarc::v1::GoogleApiSource const &, google::protobuf::FieldMask const &, Options)

Update a single GoogleApiSource.

Parameters
Name Description
google_api_source google::cloud::eventarc::v1::GoogleApiSource const &

Required. The GoogleApiSource to be updated.

update_mask google::protobuf::FieldMask const &

Optional. The fields to be updated; only fields explicitly provided are updated. If no field mask is provided, all provided fields in the request are updated. To update all fields, provide a field mask of "*".

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::GoogleApiSource > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.eventarc.v1.GoogleApiSource proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

UpdateGoogleApiSource(NoAwaitTag, google::cloud::eventarc::v1::GoogleApiSource const &, google::protobuf::FieldMask const &, Options)

Update a single GoogleApiSource.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
google_api_source google::cloud::eventarc::v1::GoogleApiSource const &
update_mask google::protobuf::FieldMask const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

UpdateGoogleApiSource(google::cloud::eventarc::v1::UpdateGoogleApiSourceRequest const &, Options)

Update a single GoogleApiSource.

Parameters
Name Description
request google::cloud::eventarc::v1::UpdateGoogleApiSourceRequest const &

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.eventarc.v1.UpdateGoogleApiSourceRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::GoogleApiSource > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.eventarc.v1.GoogleApiSource proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

UpdateGoogleApiSource(NoAwaitTag, google::cloud::eventarc::v1::UpdateGoogleApiSourceRequest const &, Options)

Update a single GoogleApiSource.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
request google::cloud::eventarc::v1::UpdateGoogleApiSourceRequest const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

UpdateGoogleApiSource(google::longrunning::Operation const &, Options)

Update a single GoogleApiSource.

This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.

Parameters
Name Description
operation google::longrunning::Operation const &
opts Options
Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::GoogleApiSource > >

DeleteGoogleApiSource(std::string const &, std::string const &, Options)

Delete a single GoogleApiSource.

Parameters
Name Description
name std::string const &

Required. The name of the GoogleApiSource to be deleted.

etag std::string const &

Optional. If provided, the MessageBus will only be deleted if the etag matches the current etag on the resource.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::GoogleApiSource > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.eventarc.v1.GoogleApiSource proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

DeleteGoogleApiSource(NoAwaitTag, std::string const &, std::string const &, Options)

Delete a single GoogleApiSource.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
name std::string const &
etag std::string const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

DeleteGoogleApiSource(google::cloud::eventarc::v1::DeleteGoogleApiSourceRequest const &, Options)

Delete a single GoogleApiSource.

Parameters
Name Description
request google::cloud::eventarc::v1::DeleteGoogleApiSourceRequest const &

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.eventarc.v1.DeleteGoogleApiSourceRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::GoogleApiSource > >

A future that becomes satisfied when the LRO (Long Running Operation) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the StatusOr returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a google.cloud.eventarc.v1.GoogleApiSource proto message. The C++ class representing this message is created by Protobuf, using the Protobuf mapping rules.

DeleteGoogleApiSource(NoAwaitTag, google::cloud::eventarc::v1::DeleteGoogleApiSourceRequest const &, Options)

Delete a single GoogleApiSource.

Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.

Parameters
Name Description
NoAwaitTag
request google::cloud::eventarc::v1::DeleteGoogleApiSourceRequest const &
opts Options
Returns
Type Description
StatusOr< google::longrunning::Operation >

DeleteGoogleApiSource(google::longrunning::Operation const &, Options)

Delete a single GoogleApiSource.

This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.

Parameters
Name Description
operation google::longrunning::Operation const &
opts Options
Returns
Type Description
future< StatusOr< google::cloud::eventarc::v1::GoogleApiSource > >

ListLocations(google::cloud::location::ListLocationsRequest, Options)

Lists information about the supported locations for this service.

Parameters
Name Description
request google::cloud::location::ListLocationsRequest

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.location.ListLocationsRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StreamRange< google::cloud::location::Location >

a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has begin() and end() member functions returning a iterator class meeting the input iterator requirements. The value type for this iterator is a StatusOr as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the StatusOr<T> contains elements of type google.cloud.location.Location, or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the Protobuf mapping rules.

GetLocation(google::cloud::location::GetLocationRequest const &, Options)

Gets information about a location.

Parameters
Name Description
request google::cloud::location::GetLocationRequest const &

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.location.GetLocationRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StatusOr< google::cloud::location::Location >

the result of the RPC. The response message type (google.cloud.location.Location) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

SetIamPolicy(google::iam::v1::SetIamPolicyRequest const &, Options)

Sets the access control policy on the specified resource.

Replaces any existing policy.

Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.

Parameters
Name Description
request google::iam::v1::SetIamPolicyRequest const &

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.iam.v1.SetIamPolicyRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StatusOr< google::iam::v1::Policy >

the result of the RPC. The response message type (google.iam.v1.Policy) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

GetIamPolicy(google::iam::v1::GetIamPolicyRequest const &, Options)

Gets the access control policy for a resource.

Returns an empty policy if the resource exists and does not have a policy set.

Parameters
Name Description
request google::iam::v1::GetIamPolicyRequest const &

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.iam.v1.GetIamPolicyRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StatusOr< google::iam::v1::Policy >

the result of the RPC. The response message type (google.iam.v1.Policy) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

TestIamPermissions(google::iam::v1::TestIamPermissionsRequest const &, Options)

Returns permissions that a caller has on the specified resource.

If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.

Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.

Parameters
Name Description
request google::iam::v1::TestIamPermissionsRequest const &

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.iam.v1.TestIamPermissionsRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StatusOr< google::iam::v1::TestIamPermissionsResponse >

the result of the RPC. The response message type (google.iam.v1.TestIamPermissionsResponse) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

ListOperations(std::string const &, std::string const &, Options)

Lists operations that match the specified filter in the request.

If the server doesn't support this method, it returns UNIMPLEMENTED.

NOTE: the name binding allows API services to override the binding to use different resource name schemes, such as users/*/operations. To override the binding, API services can add a binding such as "/v1/{name=users/*}/operations" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.

Parameters
Name Description
name std::string const &

The name of the operation's parent resource.

filter std::string const &

The standard list filter.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StreamRange< google::longrunning::Operation >

a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has begin() and end() member functions returning a iterator class meeting the input iterator requirements. The value type for this iterator is a StatusOr as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the StatusOr<T> contains elements of type google.longrunning.Operation, or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the Protobuf mapping rules.

ListOperations(google::longrunning::ListOperationsRequest, Options)

Lists operations that match the specified filter in the request.

If the server doesn't support this method, it returns UNIMPLEMENTED.

NOTE: the name binding allows API services to override the binding to use different resource name schemes, such as users/*/operations. To override the binding, API services can add a binding such as "/v1/{name=users/*}/operations" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.

Parameters
Name Description
request google::longrunning::ListOperationsRequest

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.longrunning.ListOperationsRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StreamRange< google::longrunning::Operation >

a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has begin() and end() member functions returning a iterator class meeting the input iterator requirements. The value type for this iterator is a StatusOr as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the StatusOr<T> contains elements of type google.longrunning.Operation, or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the Protobuf mapping rules.

GetOperation(std::string const &, Options)

Gets the latest state of a long-running operation.

Clients can use this method to poll the operation result at intervals as recommended by the API service.

Parameters
Name Description
name std::string const &

The name of the operation resource.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StatusOr< google::longrunning::Operation >

the result of the RPC. The response message type (google.longrunning.Operation) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

GetOperation(google::longrunning::GetOperationRequest const &, Options)

Gets the latest state of a long-running operation.

Clients can use this method to poll the operation result at intervals as recommended by the API service.

Parameters
Name Description
request google::longrunning::GetOperationRequest const &

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.longrunning.GetOperationRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StatusOr< google::longrunning::Operation >

the result of the RPC. The response message type (google.longrunning.Operation) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

DeleteOperation(std::string const &, Options)

Deletes a long-running operation.

This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.

Parameters
Name Description
name std::string const &

The name of the operation resource to be deleted.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
Status

a Status object. If the request failed, the status contains the details of the failure.

DeleteOperation(google::longrunning::DeleteOperationRequest const &, Options)

Deletes a long-running operation.

This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.

Parameters
Name Description
request google::longrunning::DeleteOperationRequest const &

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.longrunning.DeleteOperationRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
Status

a Status object. If the request failed, the status contains the details of the failure.

CancelOperation(std::string const &, Options)

Starts asynchronous cancellation on a long-running operation.

The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.

Parameters
Name Description
name std::string const &

The name of the operation resource to be cancelled.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
Status

a Status object. If the request failed, the status contains the details of the failure.

CancelOperation(google::longrunning::CancelOperationRequest const &, Options)

Starts asynchronous cancellation on a long-running operation.

The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.

Parameters
Name Description
request google::longrunning::CancelOperationRequest const &

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.longrunning.CancelOperationRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
Status

a Status object. If the request failed, the status contains the details of the failure.