Eventarc V1 API - Class Google::Cloud::Eventarc::V1::Eventarc::Rest::Client (v1.1.0)

Reference documentation and code samples for the Eventarc V1 API class Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.

REST client for the Eventarc service.

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

Inherits

  • Object

Methods

.configure

def self.configure() { |config| ... } -> Client::Configuration

Configure the Eventarc Client class.

See Configuration for a description of the configuration fields.

Yields
  • (config) — Configure the Client client.
Yield Parameter
Example
# Modify the configuration for all Eventarc clients
::Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.configure do |config|
  config.timeout = 10.0
end

#configure

def configure() { |config| ... } -> Client::Configuration

Configure the Eventarc Client instance.

The configuration is set to the derived mode, meaning that values can be changed, but structural changes (adding new fields, etc.) are not allowed. Structural changes should be made on Client.configure.

See Configuration for a description of the configuration fields.

Yields
  • (config) — Configure the Client client.
Yield Parameter

#create_channel

def create_channel(request, options = nil) -> ::Gapic::Operation
def create_channel(parent: nil, channel: nil, channel_id: nil, validate_only: nil) -> ::Gapic::Operation

Create a new channel in a particular project and location.

Overloads
def create_channel(request, options = nil) -> ::Gapic::Operation
Pass arguments to create_channel via a request object, either of type CreateChannelRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Eventarc::V1::CreateChannelRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def create_channel(parent: nil, channel: nil, channel_id: nil, validate_only: nil) -> ::Gapic::Operation
Pass arguments to create_channel via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameters
  • parent (::String) — Required. The parent collection in which to add this channel.
  • channel (::Google::Cloud::Eventarc::V1::Channel, ::Hash) — Required. The channel to create.
  • channel_id (::String) — Required. The user-provided ID to be assigned to the channel.
  • validate_only (::Boolean) — Optional. If set, validate the request and preview the review, but do not post it.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.
Example

Basic example

require "google/cloud/eventarc/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Eventarc::V1::CreateChannelRequest.new

# Call the create_channel method.
result = client.create_channel request

# The returned object is of type Gapic::Operation. You can use it to
# check the status of an operation, cancel it, or wait for results.
# Here is how to wait for a response.
result.wait_until_done! timeout: 60
if result.response?
  p result.response
else
  puts "No response received."
end

#create_channel_connection

def create_channel_connection(request, options = nil) -> ::Gapic::Operation
def create_channel_connection(parent: nil, channel_connection: nil, channel_connection_id: nil) -> ::Gapic::Operation

Create a new ChannelConnection in a particular project and location.

Overloads
def create_channel_connection(request, options = nil) -> ::Gapic::Operation
Pass arguments to create_channel_connection via a request object, either of type CreateChannelConnectionRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Eventarc::V1::CreateChannelConnectionRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def create_channel_connection(parent: nil, channel_connection: nil, channel_connection_id: nil) -> ::Gapic::Operation
Pass arguments to create_channel_connection via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameters
  • parent (::String) — Required. The parent collection in which to add this channel connection.
  • channel_connection (::Google::Cloud::Eventarc::V1::ChannelConnection, ::Hash) — Required. Channel connection to create.
  • channel_connection_id (::String) — Required. The user-provided ID to be assigned to the channel connection.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.
Example

Basic example

require "google/cloud/eventarc/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Eventarc::V1::CreateChannelConnectionRequest.new

# Call the create_channel_connection method.
result = client.create_channel_connection request

# The returned object is of type Gapic::Operation. You can use it to
# check the status of an operation, cancel it, or wait for results.
# Here is how to wait for a response.
result.wait_until_done! timeout: 60
if result.response?
  p result.response
else
  puts "No response received."
end

#create_enrollment

def create_enrollment(request, options = nil) -> ::Gapic::Operation
def create_enrollment(parent: nil, enrollment: nil, enrollment_id: nil, validate_only: nil) -> ::Gapic::Operation

Create a new Enrollment in a particular project and location.

Overloads
def create_enrollment(request, options = nil) -> ::Gapic::Operation
Pass arguments to create_enrollment via a request object, either of type CreateEnrollmentRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Eventarc::V1::CreateEnrollmentRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def create_enrollment(parent: nil, enrollment: nil, enrollment_id: nil, validate_only: nil) -> ::Gapic::Operation
Pass arguments to create_enrollment via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameters
  • parent (::String) — Required. The parent collection in which to add this enrollment.
  • enrollment (::Google::Cloud::Eventarc::V1::Enrollment, ::Hash) — Required. The enrollment to create.
  • enrollment_id (::String) — Required. The user-provided ID to be assigned to the Enrollment. It should match the format (^a-z?$).
  • validate_only (::Boolean) — Optional. If set, validate the request and preview the review, but do not post it.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.
Example

Basic example

require "google/cloud/eventarc/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Eventarc::V1::CreateEnrollmentRequest.new

# Call the create_enrollment method.
result = client.create_enrollment request

# The returned object is of type Gapic::Operation. You can use it to
# check the status of an operation, cancel it, or wait for results.
# Here is how to wait for a response.
result.wait_until_done! timeout: 60
if result.response?
  p result.response
else
  puts "No response received."
end

#create_google_api_source

def create_google_api_source(request, options = nil) -> ::Gapic::Operation
def create_google_api_source(parent: nil, google_api_source: nil, google_api_source_id: nil, validate_only: nil) -> ::Gapic::Operation

Create a new GoogleApiSource in a particular project and location.

Overloads
def create_google_api_source(request, options = nil) -> ::Gapic::Operation
Pass arguments to create_google_api_source via a request object, either of type CreateGoogleApiSourceRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Eventarc::V1::CreateGoogleApiSourceRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def create_google_api_source(parent: nil, google_api_source: nil, google_api_source_id: nil, validate_only: nil) -> ::Gapic::Operation
Pass arguments to create_google_api_source via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameters
  • parent (::String) — Required. The parent collection in which to add this google api source.
  • google_api_source (::Google::Cloud::Eventarc::V1::GoogleApiSource, ::Hash) — Required. The google api source to create.
  • google_api_source_id (::String) — Required. The user-provided ID to be assigned to the GoogleApiSource. It should match the format (^a-z?$).
  • validate_only (::Boolean) — Optional. If set, validate the request and preview the review, but do not post it.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.
Example

Basic example

require "google/cloud/eventarc/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Eventarc::V1::CreateGoogleApiSourceRequest.new

# Call the create_google_api_source method.
result = client.create_google_api_source request

# The returned object is of type Gapic::Operation. You can use it to
# check the status of an operation, cancel it, or wait for results.
# Here is how to wait for a response.
result.wait_until_done! timeout: 60
if result.response?
  p result.response
else
  puts "No response received."
end

#create_message_bus

def create_message_bus(request, options = nil) -> ::Gapic::Operation
def create_message_bus(parent: nil, message_bus: nil, message_bus_id: nil, validate_only: nil) -> ::Gapic::Operation

Create a new MessageBus in a particular project and location.

Overloads
def create_message_bus(request, options = nil) -> ::Gapic::Operation
Pass arguments to create_message_bus via a request object, either of type CreateMessageBusRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Eventarc::V1::CreateMessageBusRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def create_message_bus(parent: nil, message_bus: nil, message_bus_id: nil, validate_only: nil) -> ::Gapic::Operation
Pass arguments to create_message_bus via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameters
  • parent (::String) — Required. The parent collection in which to add this message bus.
  • message_bus (::Google::Cloud::Eventarc::V1::MessageBus, ::Hash) — Required. The message bus to create.
  • message_bus_id (::String) — Required. The user-provided ID to be assigned to the MessageBus. It should match the format (^a-z?$)
  • validate_only (::Boolean) — Optional. If set, validate the request and preview the review, but do not post it.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.
Example

Basic example

require "google/cloud/eventarc/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Eventarc::V1::CreateMessageBusRequest.new

# Call the create_message_bus method.
result = client.create_message_bus request

# The returned object is of type Gapic::Operation. You can use it to
# check the status of an operation, cancel it, or wait for results.
# Here is how to wait for a response.
result.wait_until_done! timeout: 60
if result.response?
  p result.response
else
  puts "No response received."
end

#create_pipeline

def create_pipeline(request, options = nil) -> ::Gapic::Operation
def create_pipeline(parent: nil, pipeline: nil, pipeline_id: nil, validate_only: nil) -> ::Gapic::Operation

Create a new Pipeline in a particular project and location.

Overloads
def create_pipeline(request, options = nil) -> ::Gapic::Operation
Pass arguments to create_pipeline via a request object, either of type CreatePipelineRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Eventarc::V1::CreatePipelineRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def create_pipeline(parent: nil, pipeline: nil, pipeline_id: nil, validate_only: nil) -> ::Gapic::Operation
Pass arguments to create_pipeline via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameters
  • parent (::String) — Required. The parent collection in which to add this pipeline.
  • pipeline (::Google::Cloud::Eventarc::V1::Pipeline, ::Hash) — Required. The pipeline to create.
  • pipeline_id (::String) — Required. The user-provided ID to be assigned to the Pipeline.
  • validate_only (::Boolean) — Optional. If set, validate the request and preview the review, but do not post it.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.
Example

Basic example

require "google/cloud/eventarc/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Eventarc::V1::CreatePipelineRequest.new

# Call the create_pipeline method.
result = client.create_pipeline request

# The returned object is of type Gapic::Operation. You can use it to
# check the status of an operation, cancel it, or wait for results.
# Here is how to wait for a response.
result.wait_until_done! timeout: 60
if result.response?
  p result.response
else
  puts "No response received."
end

#create_trigger

def create_trigger(request, options = nil) -> ::Gapic::Operation
def create_trigger(parent: nil, trigger: nil, trigger_id: nil, validate_only: nil) -> ::Gapic::Operation

Create a new trigger in a particular project and location.

Overloads
def create_trigger(request, options = nil) -> ::Gapic::Operation
Pass arguments to create_trigger via a request object, either of type CreateTriggerRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Eventarc::V1::CreateTriggerRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def create_trigger(parent: nil, trigger: nil, trigger_id: nil, validate_only: nil) -> ::Gapic::Operation
Pass arguments to create_trigger via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameters
  • parent (::String) — Required. The parent collection in which to add this trigger.
  • trigger (::Google::Cloud::Eventarc::V1::Trigger, ::Hash) — Required. The trigger to create.
  • trigger_id (::String) — Required. The user-provided ID to be assigned to the trigger.
  • validate_only (::Boolean) — Optional. If set, validate the request and preview the review, but do not post it.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.
Example

Basic example

require "google/cloud/eventarc/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Eventarc::V1::CreateTriggerRequest.new

# Call the create_trigger method.
result = client.create_trigger request

# The returned object is of type Gapic::Operation. You can use it to
# check the status of an operation, cancel it, or wait for results.
# Here is how to wait for a response.
result.wait_until_done! timeout: 60
if result.response?
  p result.response
else
  puts "No response received."
end

#delete_channel

def delete_channel(request, options = nil) -> ::Gapic::Operation
def delete_channel(name: nil, validate_only: nil) -> ::Gapic::Operation

Delete a single channel.

Overloads
def delete_channel(request, options = nil) -> ::Gapic::Operation
Pass arguments to delete_channel via a request object, either of type DeleteChannelRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Eventarc::V1::DeleteChannelRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def delete_channel(name: nil, validate_only: nil) -> ::Gapic::Operation
Pass arguments to delete_channel via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameters
  • name (::String) — Required. The name of the channel to be deleted.
  • validate_only (::Boolean) — Optional. If set, validate the request and preview the review, but do not post it.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.
Example

Basic example

require "google/cloud/eventarc/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Eventarc::V1::DeleteChannelRequest.new

# Call the delete_channel method.
result = client.delete_channel request

# The returned object is of type Gapic::Operation. You can use it to
# check the status of an operation, cancel it, or wait for results.
# Here is how to wait for a response.
result.wait_until_done! timeout: 60
if result.response?
  p result.response
else
  puts "No response received."
end

#delete_channel_connection

def delete_channel_connection(request, options = nil) -> ::Gapic::Operation
def delete_channel_connection(name: nil) -> ::Gapic::Operation

Delete a single ChannelConnection.

Overloads
def delete_channel_connection(request, options = nil) -> ::Gapic::Operation
Pass arguments to delete_channel_connection via a request object, either of type DeleteChannelConnectionRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Eventarc::V1::DeleteChannelConnectionRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def delete_channel_connection(name: nil) -> ::Gapic::Operation
Pass arguments to delete_channel_connection via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameter
  • name (::String) — Required. The name of the channel connection to delete.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.
Example

Basic example

require "google/cloud/eventarc/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Eventarc::V1::DeleteChannelConnectionRequest.new

# Call the delete_channel_connection method.
result = client.delete_channel_connection request

# The returned object is of type Gapic::Operation. You can use it to
# check the status of an operation, cancel it, or wait for results.
# Here is how to wait for a response.
result.wait_until_done! timeout: 60
if result.response?
  p result.response
else
  puts "No response received."
end

#delete_enrollment

def delete_enrollment(request, options = nil) -> ::Gapic::Operation
def delete_enrollment(name: nil, etag: nil, allow_missing: nil, validate_only: nil) -> ::Gapic::Operation

Delete a single Enrollment.

Overloads
def delete_enrollment(request, options = nil) -> ::Gapic::Operation
Pass arguments to delete_enrollment via a request object, either of type DeleteEnrollmentRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Eventarc::V1::DeleteEnrollmentRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def delete_enrollment(name: nil, etag: nil, allow_missing: nil, validate_only: nil) -> ::Gapic::Operation
Pass arguments to delete_enrollment via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameters
  • name (::String) — Required. The name of the Enrollment to be deleted.
  • etag (::String) — Optional. If provided, the Enrollment will only be deleted if the etag matches the current etag on the resource.
  • allow_missing (::Boolean) — Optional. If set to true, and the Enrollment is not found, the request will succeed but no action will be taken on the server.
  • validate_only (::Boolean) — Optional. If set, validate the request and preview the review, but do not post it.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.
Example

Basic example

require "google/cloud/eventarc/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Eventarc::V1::DeleteEnrollmentRequest.new

# Call the delete_enrollment method.
result = client.delete_enrollment request

# The returned object is of type Gapic::Operation. You can use it to
# check the status of an operation, cancel it, or wait for results.
# Here is how to wait for a response.
result.wait_until_done! timeout: 60
if result.response?
  p result.response
else
  puts "No response received."
end

#delete_google_api_source

def delete_google_api_source(request, options = nil) -> ::Gapic::Operation
def delete_google_api_source(name: nil, etag: nil, allow_missing: nil, validate_only: nil) -> ::Gapic::Operation

Delete a single GoogleApiSource.

Overloads
def delete_google_api_source(request, options = nil) -> ::Gapic::Operation
Pass arguments to delete_google_api_source via a request object, either of type DeleteGoogleApiSourceRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Eventarc::V1::DeleteGoogleApiSourceRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def delete_google_api_source(name: nil, etag: nil, allow_missing: nil, validate_only: nil) -> ::Gapic::Operation
Pass arguments to delete_google_api_source via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameters
  • name (::String) — Required. The name of the GoogleApiSource to be deleted.
  • etag (::String) — Optional. If provided, the MessageBus will only be deleted if the etag matches the current etag on the resource.
  • allow_missing (::Boolean) — Optional. If set to true, and the MessageBus is not found, the request will succeed but no action will be taken on the server.
  • validate_only (::Boolean) — Optional. If set, validate the request and preview the review, but do not post it.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.
Example

Basic example

require "google/cloud/eventarc/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Eventarc::V1::DeleteGoogleApiSourceRequest.new

# Call the delete_google_api_source method.
result = client.delete_google_api_source request

# The returned object is of type Gapic::Operation. You can use it to
# check the status of an operation, cancel it, or wait for results.
# Here is how to wait for a response.
result.wait_until_done! timeout: 60
if result.response?
  p result.response
else
  puts "No response received."
end

#delete_message_bus

def delete_message_bus(request, options = nil) -> ::Gapic::Operation
def delete_message_bus(name: nil, etag: nil, allow_missing: nil, validate_only: nil) -> ::Gapic::Operation

Delete a single message bus.

Overloads
def delete_message_bus(request, options = nil) -> ::Gapic::Operation
Pass arguments to delete_message_bus via a request object, either of type DeleteMessageBusRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Eventarc::V1::DeleteMessageBusRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def delete_message_bus(name: nil, etag: nil, allow_missing: nil, validate_only: nil) -> ::Gapic::Operation
Pass arguments to delete_message_bus via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameters
  • name (::String) — Required. The name of the MessageBus to be deleted.
  • etag (::String) — Optional. If provided, the MessageBus will only be deleted if the etag matches the current etag on the resource.
  • allow_missing (::Boolean) — Optional. If set to true, and the MessageBus is not found, the request will succeed but no action will be taken on the server.
  • validate_only (::Boolean) — Optional. If set, validate the request and preview the review, but do not post it.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.
Example

Basic example

require "google/cloud/eventarc/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Eventarc::V1::DeleteMessageBusRequest.new

# Call the delete_message_bus method.
result = client.delete_message_bus request

# The returned object is of type Gapic::Operation. You can use it to
# check the status of an operation, cancel it, or wait for results.
# Here is how to wait for a response.
result.wait_until_done! timeout: 60
if result.response?
  p result.response
else
  puts "No response received."
end

#delete_pipeline

def delete_pipeline(request, options = nil) -> ::Gapic::Operation
def delete_pipeline(name: nil, etag: nil, allow_missing: nil, validate_only: nil) -> ::Gapic::Operation

Delete a single pipeline.

Overloads
def delete_pipeline(request, options = nil) -> ::Gapic::Operation
Pass arguments to delete_pipeline via a request object, either of type DeletePipelineRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Eventarc::V1::DeletePipelineRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def delete_pipeline(name: nil, etag: nil, allow_missing: nil, validate_only: nil) -> ::Gapic::Operation
Pass arguments to delete_pipeline via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameters
  • name (::String) — Required. The name of the Pipeline to be deleted.
  • etag (::String) — Optional. If provided, the Pipeline will only be deleted if the etag matches the current etag on the resource.
  • allow_missing (::Boolean) — Optional. If set to true, and the Pipeline is not found, the request will succeed but no action will be taken on the server.
  • validate_only (::Boolean) — Optional. If set, validate the request and preview the review, but do not post it.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.
Example

Basic example

require "google/cloud/eventarc/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Eventarc::V1::DeletePipelineRequest.new

# Call the delete_pipeline method.
result = client.delete_pipeline request

# The returned object is of type Gapic::Operation. You can use it to
# check the status of an operation, cancel it, or wait for results.
# Here is how to wait for a response.
result.wait_until_done! timeout: 60
if result.response?
  p result.response
else
  puts "No response received."
end

#delete_trigger

def delete_trigger(request, options = nil) -> ::Gapic::Operation
def delete_trigger(name: nil, etag: nil, allow_missing: nil, validate_only: nil) -> ::Gapic::Operation

Delete a single trigger.

Overloads
def delete_trigger(request, options = nil) -> ::Gapic::Operation
Pass arguments to delete_trigger via a request object, either of type DeleteTriggerRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Eventarc::V1::DeleteTriggerRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def delete_trigger(name: nil, etag: nil, allow_missing: nil, validate_only: nil) -> ::Gapic::Operation
Pass arguments to delete_trigger via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameters
  • name (::String) — Required. The name of the trigger to be deleted.
  • etag (::String) — If provided, the trigger will only be deleted if the etag matches the current etag on the resource.
  • allow_missing (::Boolean) — If set to true, and the trigger is not found, the request will succeed but no action will be taken on the server.
  • validate_only (::Boolean) — Optional. If set, validate the request and preview the review, but do not post it.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.
Example

Basic example

require "google/cloud/eventarc/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Eventarc::V1::DeleteTriggerRequest.new

# Call the delete_trigger method.
result = client.delete_trigger request

# The returned object is of type Gapic::Operation. You can use it to
# check the status of an operation, cancel it, or wait for results.
# Here is how to wait for a response.
result.wait_until_done! timeout: 60
if result.response?
  p result.response
else
  puts "No response received."
end

#get_channel

def get_channel(request, options = nil) -> ::Google::Cloud::Eventarc::V1::Channel
def get_channel(name: nil) -> ::Google::Cloud::Eventarc::V1::Channel

Get a single Channel.

Overloads
def get_channel(request, options = nil) -> ::Google::Cloud::Eventarc::V1::Channel
Pass arguments to get_channel via a request object, either of type GetChannelRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Eventarc::V1::GetChannelRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_channel(name: nil) -> ::Google::Cloud::Eventarc::V1::Channel
Pass arguments to get_channel via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameter
  • name (::String) — Required. The name of the channel to get.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.
Example

Basic example

require "google/cloud/eventarc/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Eventarc::V1::GetChannelRequest.new

# Call the get_channel method.
result = client.get_channel request

# The returned object is of type Google::Cloud::Eventarc::V1::Channel.
p result

#get_channel_connection

def get_channel_connection(request, options = nil) -> ::Google::Cloud::Eventarc::V1::ChannelConnection
def get_channel_connection(name: nil) -> ::Google::Cloud::Eventarc::V1::ChannelConnection

Get a single ChannelConnection.

Overloads
def get_channel_connection(request, options = nil) -> ::Google::Cloud::Eventarc::V1::ChannelConnection
Pass arguments to get_channel_connection via a request object, either of type GetChannelConnectionRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Eventarc::V1::GetChannelConnectionRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_channel_connection(name: nil) -> ::Google::Cloud::Eventarc::V1::ChannelConnection
Pass arguments to get_channel_connection via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameter
  • name (::String) — Required. The name of the channel connection to get.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.
Example

Basic example

require "google/cloud/eventarc/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Eventarc::V1::GetChannelConnectionRequest.new

# Call the get_channel_connection method.
result = client.get_channel_connection request

# The returned object is of type Google::Cloud::Eventarc::V1::ChannelConnection.
p result

#get_enrollment

def get_enrollment(request, options = nil) -> ::Google::Cloud::Eventarc::V1::Enrollment
def get_enrollment(name: nil) -> ::Google::Cloud::Eventarc::V1::Enrollment

Get a single Enrollment.

Overloads
def get_enrollment(request, options = nil) -> ::Google::Cloud::Eventarc::V1::Enrollment
Pass arguments to get_enrollment via a request object, either of type GetEnrollmentRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Eventarc::V1::GetEnrollmentRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_enrollment(name: nil) -> ::Google::Cloud::Eventarc::V1::Enrollment
Pass arguments to get_enrollment via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameter
  • name (::String) — Required. The name of the Enrollment to get.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.
Example

Basic example

require "google/cloud/eventarc/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Eventarc::V1::GetEnrollmentRequest.new

# Call the get_enrollment method.
result = client.get_enrollment request

# The returned object is of type Google::Cloud::Eventarc::V1::Enrollment.
p result

#get_google_api_source

def get_google_api_source(request, options = nil) -> ::Google::Cloud::Eventarc::V1::GoogleApiSource
def get_google_api_source(name: nil) -> ::Google::Cloud::Eventarc::V1::GoogleApiSource

Get a single GoogleApiSource.

Overloads
def get_google_api_source(request, options = nil) -> ::Google::Cloud::Eventarc::V1::GoogleApiSource
Pass arguments to get_google_api_source via a request object, either of type GetGoogleApiSourceRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Eventarc::V1::GetGoogleApiSourceRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_google_api_source(name: nil) -> ::Google::Cloud::Eventarc::V1::GoogleApiSource
Pass arguments to get_google_api_source via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameter
  • name (::String) — Required. The name of the google api source to get.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.
Example

Basic example

require "google/cloud/eventarc/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Eventarc::V1::GetGoogleApiSourceRequest.new

# Call the get_google_api_source method.
result = client.get_google_api_source request

# The returned object is of type Google::Cloud::Eventarc::V1::GoogleApiSource.
p result

#get_google_channel_config

def get_google_channel_config(request, options = nil) -> ::Google::Cloud::Eventarc::V1::GoogleChannelConfig
def get_google_channel_config(name: nil) -> ::Google::Cloud::Eventarc::V1::GoogleChannelConfig

Get a GoogleChannelConfig

Overloads
def get_google_channel_config(request, options = nil) -> ::Google::Cloud::Eventarc::V1::GoogleChannelConfig
Pass arguments to get_google_channel_config via a request object, either of type GetGoogleChannelConfigRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Eventarc::V1::GetGoogleChannelConfigRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_google_channel_config(name: nil) -> ::Google::Cloud::Eventarc::V1::GoogleChannelConfig
Pass arguments to get_google_channel_config via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameter
  • name (::String) — Required. The name of the config to get.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.
Example

Basic example

require "google/cloud/eventarc/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Eventarc::V1::GetGoogleChannelConfigRequest.new

# Call the get_google_channel_config method.
result = client.get_google_channel_config request

# The returned object is of type Google::Cloud::Eventarc::V1::GoogleChannelConfig.
p result

#get_message_bus

def get_message_bus(request, options = nil) -> ::Google::Cloud::Eventarc::V1::MessageBus
def get_message_bus(name: nil) -> ::Google::Cloud::Eventarc::V1::MessageBus

Get a single MessageBus.

Overloads
def get_message_bus(request, options = nil) -> ::Google::Cloud::Eventarc::V1::MessageBus
Pass arguments to get_message_bus via a request object, either of type GetMessageBusRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Eventarc::V1::GetMessageBusRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_message_bus(name: nil) -> ::Google::Cloud::Eventarc::V1::MessageBus
Pass arguments to get_message_bus via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameter
  • name (::String) — Required. The name of the message bus to get.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.
Example

Basic example

require "google/cloud/eventarc/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Eventarc::V1::GetMessageBusRequest.new

# Call the get_message_bus method.
result = client.get_message_bus request

# The returned object is of type Google::Cloud::Eventarc::V1::MessageBus.
p result

#get_pipeline

def get_pipeline(request, options = nil) -> ::Google::Cloud::Eventarc::V1::Pipeline
def get_pipeline(name: nil) -> ::Google::Cloud::Eventarc::V1::Pipeline

Get a single Pipeline.

Overloads
def get_pipeline(request, options = nil) -> ::Google::Cloud::Eventarc::V1::Pipeline
Pass arguments to get_pipeline via a request object, either of type GetPipelineRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Eventarc::V1::GetPipelineRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_pipeline(name: nil) -> ::Google::Cloud::Eventarc::V1::Pipeline
Pass arguments to get_pipeline via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameter
  • name (::String) — Required. The name of the pipeline to get.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.
Example

Basic example

require "google/cloud/eventarc/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Eventarc::V1::GetPipelineRequest.new

# Call the get_pipeline method.
result = client.get_pipeline request

# The returned object is of type Google::Cloud::Eventarc::V1::Pipeline.
p result

#get_provider

def get_provider(request, options = nil) -> ::Google::Cloud::Eventarc::V1::Provider
def get_provider(name: nil) -> ::Google::Cloud::Eventarc::V1::Provider

Get a single Provider.

Overloads
def get_provider(request, options = nil) -> ::Google::Cloud::Eventarc::V1::Provider
Pass arguments to get_provider via a request object, either of type GetProviderRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Eventarc::V1::GetProviderRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_provider(name: nil) -> ::Google::Cloud::Eventarc::V1::Provider
Pass arguments to get_provider via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameter
  • name (::String) — Required. The name of the provider to get.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.
Example

Basic example

require "google/cloud/eventarc/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Eventarc::V1::GetProviderRequest.new

# Call the get_provider method.
result = client.get_provider request

# The returned object is of type Google::Cloud::Eventarc::V1::Provider.
p result

#get_trigger

def get_trigger(request, options = nil) -> ::Google::Cloud::Eventarc::V1::Trigger
def get_trigger(name: nil) -> ::Google::Cloud::Eventarc::V1::Trigger

Get a single trigger.

Overloads
def get_trigger(request, options = nil) -> ::Google::Cloud::Eventarc::V1::Trigger
Pass arguments to get_trigger via a request object, either of type GetTriggerRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Eventarc::V1::GetTriggerRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_trigger(name: nil) -> ::Google::Cloud::Eventarc::V1::Trigger
Pass arguments to get_trigger via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameter
  • name (::String) — Required. The name of the trigger to get.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.
Example

Basic example

require "google/cloud/eventarc/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Eventarc::V1::GetTriggerRequest.new

# Call the get_trigger method.
result = client.get_trigger request

# The returned object is of type Google::Cloud::Eventarc::V1::Trigger.
p result

#iam_policy_client

def iam_policy_client() -> Google::Iam::V1::IAMPolicy::Rest::Client

Get the associated client for mix-in of the IAMPolicy.

Returns
  • (Google::Iam::V1::IAMPolicy::Rest::Client)

#initialize

def initialize() { |config| ... } -> Client

Create a new Eventarc REST client object.

Yields
  • (config) — Configure the Eventarc client.
Yield Parameter
Returns
  • (Client) — a new instance of Client
Example
# Create a client using the default configuration
client = ::Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new

# Create a client using a custom configuration
client = ::Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new do |config|
  config.timeout = 10.0
end

#list_channel_connections

def list_channel_connections(request, options = nil) -> ::Google::Cloud::Eventarc::V1::ListChannelConnectionsResponse
def list_channel_connections(parent: nil, page_size: nil, page_token: nil) -> ::Google::Cloud::Eventarc::V1::ListChannelConnectionsResponse

List channel connections.

Overloads
def list_channel_connections(request, options = nil) -> ::Google::Cloud::Eventarc::V1::ListChannelConnectionsResponse
Pass arguments to list_channel_connections via a request object, either of type ListChannelConnectionsRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Eventarc::V1::ListChannelConnectionsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_channel_connections(parent: nil, page_size: nil, page_token: nil) -> ::Google::Cloud::Eventarc::V1::ListChannelConnectionsResponse
Pass arguments to list_channel_connections via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameters
  • parent (::String) — Required. The parent collection from which to list channel connections.
  • page_size (::Integer) — The maximum number of channel connections to return on each page.

    Note: The service may send fewer responses.

  • page_token (::String) — The page token; provide the value from the next_page_token field in a previous ListChannelConnections call to retrieve the subsequent page.

    When paginating, all other parameters provided to ListChannelConnetions match the call that provided the page token.

Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.
Example

Basic example

require "google/cloud/eventarc/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Eventarc::V1::ListChannelConnectionsRequest.new

# Call the list_channel_connections method.
result = client.list_channel_connections request

# The returned object is of type Gapic::PagedEnumerable. You can iterate
# over elements, and API calls will be issued to fetch pages as needed.
result.each do |item|
  # Each element is of type ::Google::Cloud::Eventarc::V1::ChannelConnection.
  p item
end

#list_channels

def list_channels(request, options = nil) -> ::Google::Cloud::Eventarc::V1::ListChannelsResponse
def list_channels(parent: nil, page_size: nil, page_token: nil, order_by: nil) -> ::Google::Cloud::Eventarc::V1::ListChannelsResponse

List channels.

Overloads
def list_channels(request, options = nil) -> ::Google::Cloud::Eventarc::V1::ListChannelsResponse
Pass arguments to list_channels via a request object, either of type ListChannelsRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Eventarc::V1::ListChannelsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_channels(parent: nil, page_size: nil, page_token: nil, order_by: nil) -> ::Google::Cloud::Eventarc::V1::ListChannelsResponse
Pass arguments to list_channels via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameters
  • parent (::String) — Required. The parent collection to list channels on.
  • page_size (::Integer) — The maximum number of channels to return on each page.

    Note: The service may send fewer.

  • page_token (::String) — The page token; provide the value from the next_page_token field in a previous ListChannels call to retrieve the subsequent page.

    When paginating, all other parameters provided to ListChannels must match the call that provided the page token.

  • order_by (::String) — The sorting order of the resources returned. Value should be a comma-separated list of fields. The default sorting order is ascending. To specify descending order for a field, append a desc suffix; for example: name desc, channel_id.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.
Example

Basic example

require "google/cloud/eventarc/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Eventarc::V1::ListChannelsRequest.new

# Call the list_channels method.
result = client.list_channels request

# The returned object is of type Gapic::PagedEnumerable. You can iterate
# over elements, and API calls will be issued to fetch pages as needed.
result.each do |item|
  # Each element is of type ::Google::Cloud::Eventarc::V1::Channel.
  p item
end

#list_enrollments

def list_enrollments(request, options = nil) -> ::Google::Cloud::Eventarc::V1::ListEnrollmentsResponse
def list_enrollments(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) -> ::Google::Cloud::Eventarc::V1::ListEnrollmentsResponse

List Enrollments.

Overloads
def list_enrollments(request, options = nil) -> ::Google::Cloud::Eventarc::V1::ListEnrollmentsResponse
Pass arguments to list_enrollments via a request object, either of type ListEnrollmentsRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Eventarc::V1::ListEnrollmentsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_enrollments(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) -> ::Google::Cloud::Eventarc::V1::ListEnrollmentsResponse
Pass arguments to list_enrollments via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameters
  • parent (::String) — Required. The parent collection to list triggers on.
  • page_size (::Integer) — Optional. The maximum number of results to return on each page.

    Note: The service may send fewer.

  • page_token (::String) — Optional. The page token; provide the value from the next_page_token field in a previous call to retrieve the subsequent page.

    When paginating, all other parameters provided must match the previous call that provided the page token.

  • order_by (::String) — Optional. The sorting order of the resources returned. Value should be a comma-separated list of fields. The default sorting order is ascending. To specify descending order for a field, append a desc suffix; for example: name desc, update_time.
  • filter (::String) — Optional. The filter field that the list request will filter on. Possible filtersare described in https://google.aip.dev/160.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.
Example

Basic example

require "google/cloud/eventarc/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Eventarc::V1::ListEnrollmentsRequest.new

# Call the list_enrollments method.
result = client.list_enrollments request

# The returned object is of type Gapic::PagedEnumerable. You can iterate
# over elements, and API calls will be issued to fetch pages as needed.
result.each do |item|
  # Each element is of type ::Google::Cloud::Eventarc::V1::Enrollment.
  p item
end

#list_google_api_sources

def list_google_api_sources(request, options = nil) -> ::Google::Cloud::Eventarc::V1::ListGoogleApiSourcesResponse
def list_google_api_sources(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) -> ::Google::Cloud::Eventarc::V1::ListGoogleApiSourcesResponse

List GoogleApiSources.

Overloads
def list_google_api_sources(request, options = nil) -> ::Google::Cloud::Eventarc::V1::ListGoogleApiSourcesResponse
Pass arguments to list_google_api_sources via a request object, either of type ListGoogleApiSourcesRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Eventarc::V1::ListGoogleApiSourcesRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_google_api_sources(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) -> ::Google::Cloud::Eventarc::V1::ListGoogleApiSourcesResponse
Pass arguments to list_google_api_sources via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameters
  • parent (::String) — Required. The parent collection to list GoogleApiSources on.
  • page_size (::Integer) — Optional. The maximum number of results to return on each page.

    Note: The service may send fewer.

  • page_token (::String) — Optional. The page token; provide the value from the next_page_token field in a previous call to retrieve the subsequent page.

    When paginating, all other parameters provided must match the previous call that provided the page token.

  • order_by (::String) — Optional. The sorting order of the resources returned. Value should be a comma-separated list of fields. The default sorting order is ascending. To specify descending order for a field, append a desc suffix; for example: name desc, update_time.
  • filter (::String) — Optional. The filter field that the list request will filter on. Possible filtersare described in https://google.aip.dev/160.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.
Example

Basic example

require "google/cloud/eventarc/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Eventarc::V1::ListGoogleApiSourcesRequest.new

# Call the list_google_api_sources method.
result = client.list_google_api_sources request

# The returned object is of type Gapic::PagedEnumerable. You can iterate
# over elements, and API calls will be issued to fetch pages as needed.
result.each do |item|
  # Each element is of type ::Google::Cloud::Eventarc::V1::GoogleApiSource.
  p item
end

#list_message_bus_enrollments

def list_message_bus_enrollments(request, options = nil) -> ::Google::Cloud::Eventarc::V1::ListMessageBusEnrollmentsResponse
def list_message_bus_enrollments(parent: nil, page_size: nil, page_token: nil) -> ::Google::Cloud::Eventarc::V1::ListMessageBusEnrollmentsResponse

List message bus enrollments.

Overloads
def list_message_bus_enrollments(request, options = nil) -> ::Google::Cloud::Eventarc::V1::ListMessageBusEnrollmentsResponse
Pass arguments to list_message_bus_enrollments via a request object, either of type ListMessageBusEnrollmentsRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Eventarc::V1::ListMessageBusEnrollmentsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_message_bus_enrollments(parent: nil, page_size: nil, page_token: nil) -> ::Google::Cloud::Eventarc::V1::ListMessageBusEnrollmentsResponse
Pass arguments to list_message_bus_enrollments via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameters
  • parent (::String) — Required. The parent message bus to list enrollments on.
  • page_size (::Integer) — Optional. The maximum number of results to return on each page.

    Note: The service may send fewer.

  • page_token (::String) — Optional. The page token; provide the value from the next_page_token field in a previous call to retrieve the subsequent page.

    When paginating, all other parameters provided must match the previous call that provided the page token.

Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.
Example

Basic example

require "google/cloud/eventarc/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Eventarc::V1::ListMessageBusEnrollmentsRequest.new

# Call the list_message_bus_enrollments method.
result = client.list_message_bus_enrollments request

# The returned object is of type Google::Cloud::Eventarc::V1::ListMessageBusEnrollmentsResponse.
p result

#list_message_buses

def list_message_buses(request, options = nil) -> ::Google::Cloud::Eventarc::V1::ListMessageBusesResponse
def list_message_buses(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) -> ::Google::Cloud::Eventarc::V1::ListMessageBusesResponse

List message buses.

Overloads
def list_message_buses(request, options = nil) -> ::Google::Cloud::Eventarc::V1::ListMessageBusesResponse
Pass arguments to list_message_buses via a request object, either of type ListMessageBusesRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Eventarc::V1::ListMessageBusesRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_message_buses(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) -> ::Google::Cloud::Eventarc::V1::ListMessageBusesResponse
Pass arguments to list_message_buses via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameters
  • parent (::String) — Required. The parent collection to list triggers on.
  • page_size (::Integer) — Optional. The maximum number of results to return on each page.

    Note: The service may send fewer.

  • page_token (::String) — Optional. The page token; provide the value from the next_page_token field in a previous call to retrieve the subsequent page.

    When paginating, all other parameters provided must match the previous call that provided the page token.

  • order_by (::String) — Optional. The sorting order of the resources returned. Value should be a comma-separated list of fields. The default sorting order is ascending. To specify descending order for a field, append a desc suffix; for example: name desc, update_time.
  • filter (::String) — Optional. The filter field that the list request will filter on. Possible filtersare described in https://google.aip.dev/160.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.
Example

Basic example

require "google/cloud/eventarc/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Eventarc::V1::ListMessageBusesRequest.new

# Call the list_message_buses method.
result = client.list_message_buses request

# The returned object is of type Gapic::PagedEnumerable. You can iterate
# over elements, and API calls will be issued to fetch pages as needed.
result.each do |item|
  # Each element is of type ::Google::Cloud::Eventarc::V1::MessageBus.
  p item
end

#list_pipelines

def list_pipelines(request, options = nil) -> ::Google::Cloud::Eventarc::V1::ListPipelinesResponse
def list_pipelines(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) -> ::Google::Cloud::Eventarc::V1::ListPipelinesResponse

List pipelines.

Overloads
def list_pipelines(request, options = nil) -> ::Google::Cloud::Eventarc::V1::ListPipelinesResponse
Pass arguments to list_pipelines via a request object, either of type ListPipelinesRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Eventarc::V1::ListPipelinesRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_pipelines(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) -> ::Google::Cloud::Eventarc::V1::ListPipelinesResponse
Pass arguments to list_pipelines via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameters
  • parent (::String) — Required. The parent collection to list pipelines on.
  • page_size (::Integer) — Optional. The maximum number of results to return on each page.

    Note: The service may send fewer.

  • page_token (::String) — Optional. The page token; provide the value from the next_page_token field in a previous call to retrieve the subsequent page.

    When paginating, all other parameters provided must match the previous call that provided the page token.

  • order_by (::String) — Optional. The sorting order of the resources returned. Value should be a comma-separated list of fields. The default sorting order is ascending. To specify descending order for a field, append a desc suffix; for example: name desc, update_time.
  • filter (::String) — Optional. The filter field that the list request will filter on. Possible filters are described in https://google.aip.dev/160.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.
Example

Basic example

require "google/cloud/eventarc/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Eventarc::V1::ListPipelinesRequest.new

# Call the list_pipelines method.
result = client.list_pipelines request

# The returned object is of type Gapic::PagedEnumerable. You can iterate
# over elements, and API calls will be issued to fetch pages as needed.
result.each do |item|
  # Each element is of type ::Google::Cloud::Eventarc::V1::Pipeline.
  p item
end

#list_providers

def list_providers(request, options = nil) -> ::Google::Cloud::Eventarc::V1::ListProvidersResponse
def list_providers(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) -> ::Google::Cloud::Eventarc::V1::ListProvidersResponse

List providers.

Overloads
def list_providers(request, options = nil) -> ::Google::Cloud::Eventarc::V1::ListProvidersResponse
Pass arguments to list_providers via a request object, either of type ListProvidersRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Eventarc::V1::ListProvidersRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_providers(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) -> ::Google::Cloud::Eventarc::V1::ListProvidersResponse
Pass arguments to list_providers via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameters
  • parent (::String) — Required. The parent of the provider to get.
  • page_size (::Integer) — The maximum number of providers to return on each page.
  • page_token (::String) — The page token; provide the value from the next_page_token field in a previous ListProviders call to retrieve the subsequent page.

    When paginating, all other parameters provided to ListProviders must match the call that provided the page token.

  • order_by (::String) — The sorting order of the resources returned. Value should be a comma-separated list of fields. The default sorting oder is ascending. To specify descending order for a field, append a desc suffix; for example: name desc, _id.
  • filter (::String) — The filter field that the list request will filter on.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.
Example

Basic example

require "google/cloud/eventarc/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Eventarc::V1::ListProvidersRequest.new

# Call the list_providers method.
result = client.list_providers request

# The returned object is of type Gapic::PagedEnumerable. You can iterate
# over elements, and API calls will be issued to fetch pages as needed.
result.each do |item|
  # Each element is of type ::Google::Cloud::Eventarc::V1::Provider.
  p item
end

#list_triggers

def list_triggers(request, options = nil) -> ::Google::Cloud::Eventarc::V1::ListTriggersResponse
def list_triggers(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) -> ::Google::Cloud::Eventarc::V1::ListTriggersResponse

List triggers.

Overloads
def list_triggers(request, options = nil) -> ::Google::Cloud::Eventarc::V1::ListTriggersResponse
Pass arguments to list_triggers via a request object, either of type ListTriggersRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Eventarc::V1::ListTriggersRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_triggers(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) -> ::Google::Cloud::Eventarc::V1::ListTriggersResponse
Pass arguments to list_triggers via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameters
  • parent (::String) — Required. The parent collection to list triggers on.
  • page_size (::Integer) — The maximum number of triggers to return on each page.

    Note: The service may send fewer.

  • page_token (::String) — The page token; provide the value from the next_page_token field in a previous ListTriggers call to retrieve the subsequent page.

    When paginating, all other parameters provided to ListTriggers must match the call that provided the page token.

  • order_by (::String) — The sorting order of the resources returned. Value should be a comma-separated list of fields. The default sorting order is ascending. To specify descending order for a field, append a desc suffix; for example: name desc, trigger_id.
  • filter (::String) — Filter field. Used to filter the Triggers to be listed. Possible filters are described in https://google.aip.dev/160. For example, using "?filter=destination:gke" would list only Triggers with a gke destination.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.
Example

Basic example

require "google/cloud/eventarc/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Eventarc::V1::ListTriggersRequest.new

# Call the list_triggers method.
result = client.list_triggers request

# The returned object is of type Gapic::PagedEnumerable. You can iterate
# over elements, and API calls will be issued to fetch pages as needed.
result.each do |item|
  # Each element is of type ::Google::Cloud::Eventarc::V1::Trigger.
  p item
end

#location_client

def location_client() -> Google::Cloud::Location::Locations::Rest::Client

Get the associated client for mix-in of the Locations.

Returns
  • (Google::Cloud::Location::Locations::Rest::Client)

#operations_client

def operations_client() -> ::Google::Cloud::Eventarc::V1::Eventarc::Rest::Operations

Get the associated client for long-running operations.

#universe_domain

def universe_domain() -> String

The effective universe domain

Returns
  • (String)

#update_channel

def update_channel(request, options = nil) -> ::Gapic::Operation
def update_channel(channel: nil, update_mask: nil, validate_only: nil) -> ::Gapic::Operation

Update a single channel.

Overloads
def update_channel(request, options = nil) -> ::Gapic::Operation
Pass arguments to update_channel via a request object, either of type UpdateChannelRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Eventarc::V1::UpdateChannelRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def update_channel(channel: nil, update_mask: nil, validate_only: nil) -> ::Gapic::Operation
Pass arguments to update_channel via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameters
  • channel (::Google::Cloud::Eventarc::V1::Channel, ::Hash) — The channel to be updated.
  • update_mask (::Google::Protobuf::FieldMask, ::Hash) — 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 "*".
  • validate_only (::Boolean) — Optional. If set, validate the request and preview the review, but do not post it.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.
Example

Basic example

require "google/cloud/eventarc/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Eventarc::V1::UpdateChannelRequest.new

# Call the update_channel method.
result = client.update_channel request

# The returned object is of type Gapic::Operation. You can use it to
# check the status of an operation, cancel it, or wait for results.
# Here is how to wait for a response.
result.wait_until_done! timeout: 60
if result.response?
  p result.response
else
  puts "No response received."
end

#update_enrollment

def update_enrollment(request, options = nil) -> ::Gapic::Operation
def update_enrollment(enrollment: nil, update_mask: nil, allow_missing: nil, validate_only: nil) -> ::Gapic::Operation

Update a single Enrollment.

Overloads
def update_enrollment(request, options = nil) -> ::Gapic::Operation
Pass arguments to update_enrollment via a request object, either of type UpdateEnrollmentRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Eventarc::V1::UpdateEnrollmentRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def update_enrollment(enrollment: nil, update_mask: nil, allow_missing: nil, validate_only: nil) -> ::Gapic::Operation
Pass arguments to update_enrollment via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameters
  • enrollment (::Google::Cloud::Eventarc::V1::Enrollment, ::Hash) — Required. The Enrollment to be updated.
  • update_mask (::Google::Protobuf::FieldMask, ::Hash) — 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 "*".
  • allow_missing (::Boolean) — Optional. If set to true, and the Enrollment is not found, a new Enrollment will be created. In this situation, update_mask is ignored.
  • validate_only (::Boolean) — Optional. If set, validate the request and preview the review, but do not post it.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.
Example

Basic example

require "google/cloud/eventarc/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Eventarc::V1::UpdateEnrollmentRequest.new

# Call the update_enrollment method.
result = client.update_enrollment request

# The returned object is of type Gapic::Operation. You can use it to
# check the status of an operation, cancel it, or wait for results.
# Here is how to wait for a response.
result.wait_until_done! timeout: 60
if result.response?
  p result.response
else
  puts "No response received."
end

#update_google_api_source

def update_google_api_source(request, options = nil) -> ::Gapic::Operation
def update_google_api_source(google_api_source: nil, update_mask: nil, allow_missing: nil, validate_only: nil) -> ::Gapic::Operation

Update a single GoogleApiSource.

Overloads
def update_google_api_source(request, options = nil) -> ::Gapic::Operation
Pass arguments to update_google_api_source via a request object, either of type UpdateGoogleApiSourceRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Eventarc::V1::UpdateGoogleApiSourceRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def update_google_api_source(google_api_source: nil, update_mask: nil, allow_missing: nil, validate_only: nil) -> ::Gapic::Operation
Pass arguments to update_google_api_source via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameters
  • google_api_source (::Google::Cloud::Eventarc::V1::GoogleApiSource, ::Hash) — Required. The GoogleApiSource to be updated.
  • update_mask (::Google::Protobuf::FieldMask, ::Hash) — 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 "*".
  • allow_missing (::Boolean) — Optional. If set to true, and the GoogleApiSource is not found, a new GoogleApiSource will be created. In this situation, update_mask is ignored.
  • validate_only (::Boolean) — Optional. If set, validate the request and preview the review, but do not post it.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.
Example

Basic example

require "google/cloud/eventarc/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Eventarc::V1::UpdateGoogleApiSourceRequest.new

# Call the update_google_api_source method.
result = client.update_google_api_source request

# The returned object is of type Gapic::Operation. You can use it to
# check the status of an operation, cancel it, or wait for results.
# Here is how to wait for a response.
result.wait_until_done! timeout: 60
if result.response?
  p result.response
else
  puts "No response received."
end

#update_google_channel_config

def update_google_channel_config(request, options = nil) -> ::Google::Cloud::Eventarc::V1::GoogleChannelConfig
def update_google_channel_config(google_channel_config: nil, update_mask: nil) -> ::Google::Cloud::Eventarc::V1::GoogleChannelConfig

Update a single GoogleChannelConfig

Overloads
def update_google_channel_config(request, options = nil) -> ::Google::Cloud::Eventarc::V1::GoogleChannelConfig
Pass arguments to update_google_channel_config via a request object, either of type UpdateGoogleChannelConfigRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Eventarc::V1::UpdateGoogleChannelConfigRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def update_google_channel_config(google_channel_config: nil, update_mask: nil) -> ::Google::Cloud::Eventarc::V1::GoogleChannelConfig
Pass arguments to update_google_channel_config via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.
Example

Basic example

require "google/cloud/eventarc/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Eventarc::V1::UpdateGoogleChannelConfigRequest.new

# Call the update_google_channel_config method.
result = client.update_google_channel_config request

# The returned object is of type Google::Cloud::Eventarc::V1::GoogleChannelConfig.
p result

#update_message_bus

def update_message_bus(request, options = nil) -> ::Gapic::Operation
def update_message_bus(message_bus: nil, update_mask: nil, allow_missing: nil, validate_only: nil) -> ::Gapic::Operation

Update a single message bus.

Overloads
def update_message_bus(request, options = nil) -> ::Gapic::Operation
Pass arguments to update_message_bus via a request object, either of type UpdateMessageBusRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Eventarc::V1::UpdateMessageBusRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def update_message_bus(message_bus: nil, update_mask: nil, allow_missing: nil, validate_only: nil) -> ::Gapic::Operation
Pass arguments to update_message_bus via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameters
  • message_bus (::Google::Cloud::Eventarc::V1::MessageBus, ::Hash) — Required. The MessageBus to be updated.
  • update_mask (::Google::Protobuf::FieldMask, ::Hash) — 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 "*".
  • allow_missing (::Boolean) — Optional. If set to true, and the MessageBus is not found, a new MessageBus will be created. In this situation, update_mask is ignored.
  • validate_only (::Boolean) — Optional. If set, validate the request and preview the review, but do not post it.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.
Example

Basic example

require "google/cloud/eventarc/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Eventarc::V1::UpdateMessageBusRequest.new

# Call the update_message_bus method.
result = client.update_message_bus request

# The returned object is of type Gapic::Operation. You can use it to
# check the status of an operation, cancel it, or wait for results.
# Here is how to wait for a response.
result.wait_until_done! timeout: 60
if result.response?
  p result.response
else
  puts "No response received."
end

#update_pipeline

def update_pipeline(request, options = nil) -> ::Gapic::Operation
def update_pipeline(pipeline: nil, update_mask: nil, allow_missing: nil, validate_only: nil) -> ::Gapic::Operation

Update a single pipeline.

Overloads
def update_pipeline(request, options = nil) -> ::Gapic::Operation
Pass arguments to update_pipeline via a request object, either of type UpdatePipelineRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Eventarc::V1::UpdatePipelineRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def update_pipeline(pipeline: nil, update_mask: nil, allow_missing: nil, validate_only: nil) -> ::Gapic::Operation
Pass arguments to update_pipeline via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameters
  • pipeline (::Google::Cloud::Eventarc::V1::Pipeline, ::Hash) — Required. The Pipeline to be updated.
  • update_mask (::Google::Protobuf::FieldMask, ::Hash) — 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 "*".
  • allow_missing (::Boolean) — Optional. If set to true, and the Pipeline is not found, a new Pipeline will be created. In this situation, update_mask is ignored.
  • validate_only (::Boolean) — Optional. If set, validate the request and preview the review, but do not post it.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.
Example

Basic example

require "google/cloud/eventarc/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Eventarc::V1::UpdatePipelineRequest.new

# Call the update_pipeline method.
result = client.update_pipeline request

# The returned object is of type Gapic::Operation. You can use it to
# check the status of an operation, cancel it, or wait for results.
# Here is how to wait for a response.
result.wait_until_done! timeout: 60
if result.response?
  p result.response
else
  puts "No response received."
end

#update_trigger

def update_trigger(request, options = nil) -> ::Gapic::Operation
def update_trigger(trigger: nil, update_mask: nil, allow_missing: nil, validate_only: nil) -> ::Gapic::Operation

Update a single trigger.

Overloads
def update_trigger(request, options = nil) -> ::Gapic::Operation
Pass arguments to update_trigger via a request object, either of type UpdateTriggerRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Eventarc::V1::UpdateTriggerRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def update_trigger(trigger: nil, update_mask: nil, allow_missing: nil, validate_only: nil) -> ::Gapic::Operation
Pass arguments to update_trigger via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameters
  • trigger (::Google::Cloud::Eventarc::V1::Trigger, ::Hash) — The trigger to be updated.
  • update_mask (::Google::Protobuf::FieldMask, ::Hash) — 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 (::Boolean) — If set to true, and the trigger is not found, a new trigger will be created. In this situation, update_mask is ignored.
  • validate_only (::Boolean) — Optional. If set, validate the request and preview the review, but do not post it.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.
Example

Basic example

require "google/cloud/eventarc/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Eventarc::V1::UpdateTriggerRequest.new

# Call the update_trigger method.
result = client.update_trigger request

# The returned object is of type Gapic::Operation. You can use it to
# check the status of an operation, cancel it, or wait for results.
# Here is how to wait for a response.
result.wait_until_done! timeout: 60
if result.response?
  p result.response
else
  puts "No response received."
end