Eventarc v1 API - Class EventarcClient (2.4.0)

public abstract class EventarcClient

Reference documentation and code samples for the Eventarc v1 API class EventarcClient.

Eventarc client wrapper, for convenient use.

Inheritance

object > EventarcClient

Derived Types

Namespace

Google.Cloud.Eventarc.V1

Assembly

Google.Cloud.Eventarc.V1.dll

Remarks

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

Properties

CreateChannelConnectionOperationsClient

public virtual OperationsClient CreateChannelConnectionOperationsClient { get; }

The long-running operations client for CreateChannelConnection.

Property Value
Type Description
OperationsClient

CreateChannelOperationsClient

public virtual OperationsClient CreateChannelOperationsClient { get; }

The long-running operations client for CreateChannel.

Property Value
Type Description
OperationsClient

CreateTriggerOperationsClient

public virtual OperationsClient CreateTriggerOperationsClient { get; }

The long-running operations client for CreateTrigger.

Property Value
Type Description
OperationsClient

DefaultEndpoint

public static string DefaultEndpoint { get; }

The default endpoint for the Eventarc service, which is a host of "eventarc.googleapis.com" and a port of 443.

Property Value
Type Description
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default Eventarc scopes.

Property Value
Type Description
IReadOnlyListstring
Remarks

The default Eventarc scopes are:

DeleteChannelConnectionOperationsClient

public virtual OperationsClient DeleteChannelConnectionOperationsClient { get; }

The long-running operations client for DeleteChannelConnection.

Property Value
Type Description
OperationsClient

DeleteChannelOperationsClient

public virtual OperationsClient DeleteChannelOperationsClient { get; }

The long-running operations client for DeleteChannel.

Property Value
Type Description
OperationsClient

DeleteTriggerOperationsClient

public virtual OperationsClient DeleteTriggerOperationsClient { get; }

The long-running operations client for DeleteTrigger.

Property Value
Type Description
OperationsClient

GrpcClient

public virtual Eventarc.EventarcClient GrpcClient { get; }

The underlying gRPC Eventarc client

Property Value
Type Description
EventarcEventarcClient

IAMPolicyClient

public virtual IAMPolicyClient IAMPolicyClient { get; }

The IAMPolicyClient associated with this client.

Property Value
Type Description
IAMPolicyClient

LocationsClient

public virtual LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
LocationsClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
Type Description
ServiceMetadata

UpdateChannelOperationsClient

public virtual OperationsClient UpdateChannelOperationsClient { get; }

The long-running operations client for UpdateChannel.

Property Value
Type Description
OperationsClient

UpdateTriggerOperationsClient

public virtual OperationsClient UpdateTriggerOperationsClient { get; }

The long-running operations client for UpdateTrigger.

Property Value
Type Description
OperationsClient

Methods

Create()

public static EventarcClient Create()

Synchronously creates a EventarcClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use EventarcClientBuilder.

Returns
Type Description
EventarcClient

The created EventarcClient.

CreateAsync(CancellationToken)

public static Task<EventarcClient> CreateAsync(CancellationToken cancellationToken = default)

Asynchronously creates a EventarcClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use EventarcClientBuilder.

Parameter
Name Description
cancellationToken CancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
TaskEventarcClient

The task representing the created EventarcClient.

CreateChannel(LocationName, Channel, string, CallSettings)

public virtual Operation<Channel, OperationMetadata> CreateChannel(LocationName parent, Channel channel, string channelId, CallSettings callSettings = null)

Create a new channel in a particular project and location.

Parameters
Name Description
parent LocationName

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

channel Channel

Required. The channel to create.

channelId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationChannelOperationMetadata

The RPC response.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Channel channel = new Channel();
string channelId = "";
// Make the request
Operation<Channel, OperationMetadata> response = eventarcClient.CreateChannel(parent, channel, channelId);

// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Channel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = eventarcClient.PollOnceCreateChannel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Channel retrievedResult = retrievedResponse.Result;
}

CreateChannel(CreateChannelRequest, CallSettings)

public virtual Operation<Channel, OperationMetadata> CreateChannel(CreateChannelRequest request, CallSettings callSettings = null)

Create a new channel in a particular project and location.

Parameters
Name Description
request CreateChannelRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationChannelOperationMetadata

The RPC response.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
CreateChannelRequest request = new CreateChannelRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Channel = new Channel(),
    ChannelId = "",
    ValidateOnly = false,
};
// Make the request
Operation<Channel, OperationMetadata> response = eventarcClient.CreateChannel(request);

// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Channel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = eventarcClient.PollOnceCreateChannel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Channel retrievedResult = retrievedResponse.Result;
}

CreateChannel(string, Channel, string, CallSettings)

public virtual Operation<Channel, OperationMetadata> CreateChannel(string parent, Channel channel, string channelId, CallSettings callSettings = null)

Create a new channel in a particular project and location.

Parameters
Name Description
parent string

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

channel Channel

Required. The channel to create.

channelId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationChannelOperationMetadata

The RPC response.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Channel channel = new Channel();
string channelId = "";
// Make the request
Operation<Channel, OperationMetadata> response = eventarcClient.CreateChannel(parent, channel, channelId);

// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Channel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = eventarcClient.PollOnceCreateChannel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Channel retrievedResult = retrievedResponse.Result;
}

CreateChannelAsync(LocationName, Channel, string, CallSettings)

public virtual Task<Operation<Channel, OperationMetadata>> CreateChannelAsync(LocationName parent, Channel channel, string channelId, CallSettings callSettings = null)

Create a new channel in a particular project and location.

Parameters
Name Description
parent LocationName

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

channel Channel

Required. The channel to create.

channelId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationChannelOperationMetadata

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Channel channel = new Channel();
string channelId = "";
// Make the request
Operation<Channel, OperationMetadata> response = await eventarcClient.CreateChannelAsync(parent, channel, channelId);

// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Channel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Channel retrievedResult = retrievedResponse.Result;
}

CreateChannelAsync(LocationName, Channel, string, CancellationToken)

public virtual Task<Operation<Channel, OperationMetadata>> CreateChannelAsync(LocationName parent, Channel channel, string channelId, CancellationToken cancellationToken)

Create a new channel in a particular project and location.

Parameters
Name Description
parent LocationName

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

channel Channel

Required. The channel to create.

channelId string

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationChannelOperationMetadata

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Channel channel = new Channel();
string channelId = "";
// Make the request
Operation<Channel, OperationMetadata> response = await eventarcClient.CreateChannelAsync(parent, channel, channelId);

// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Channel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Channel retrievedResult = retrievedResponse.Result;
}

CreateChannelAsync(CreateChannelRequest, CallSettings)

public virtual Task<Operation<Channel, OperationMetadata>> CreateChannelAsync(CreateChannelRequest request, CallSettings callSettings = null)

Create a new channel in a particular project and location.

Parameters
Name Description
request CreateChannelRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationChannelOperationMetadata

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
CreateChannelRequest request = new CreateChannelRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Channel = new Channel(),
    ChannelId = "",
    ValidateOnly = false,
};
// Make the request
Operation<Channel, OperationMetadata> response = await eventarcClient.CreateChannelAsync(request);

// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Channel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Channel retrievedResult = retrievedResponse.Result;
}

CreateChannelAsync(CreateChannelRequest, CancellationToken)

public virtual Task<Operation<Channel, OperationMetadata>> CreateChannelAsync(CreateChannelRequest request, CancellationToken cancellationToken)

Create a new channel in a particular project and location.

Parameters
Name Description
request CreateChannelRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationChannelOperationMetadata

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
CreateChannelRequest request = new CreateChannelRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Channel = new Channel(),
    ChannelId = "",
    ValidateOnly = false,
};
// Make the request
Operation<Channel, OperationMetadata> response = await eventarcClient.CreateChannelAsync(request);

// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Channel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Channel retrievedResult = retrievedResponse.Result;
}

CreateChannelAsync(string, Channel, string, CallSettings)

public virtual Task<Operation<Channel, OperationMetadata>> CreateChannelAsync(string parent, Channel channel, string channelId, CallSettings callSettings = null)

Create a new channel in a particular project and location.

Parameters
Name Description
parent string

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

channel Channel

Required. The channel to create.

channelId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationChannelOperationMetadata

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Channel channel = new Channel();
string channelId = "";
// Make the request
Operation<Channel, OperationMetadata> response = await eventarcClient.CreateChannelAsync(parent, channel, channelId);

// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Channel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Channel retrievedResult = retrievedResponse.Result;
}

CreateChannelAsync(string, Channel, string, CancellationToken)

public virtual Task<Operation<Channel, OperationMetadata>> CreateChannelAsync(string parent, Channel channel, string channelId, CancellationToken cancellationToken)

Create a new channel in a particular project and location.

Parameters
Name Description
parent string

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

channel Channel

Required. The channel to create.

channelId string

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationChannelOperationMetadata

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Channel channel = new Channel();
string channelId = "";
// Make the request
Operation<Channel, OperationMetadata> response = await eventarcClient.CreateChannelAsync(parent, channel, channelId);

// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Channel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Channel retrievedResult = retrievedResponse.Result;
}

CreateChannelConnection(LocationName, ChannelConnection, string, CallSettings)

public virtual Operation<ChannelConnection, OperationMetadata> CreateChannelConnection(LocationName parent, ChannelConnection channelConnection, string channelConnectionId, CallSettings callSettings = null)

Create a new ChannelConnection in a particular project and location.

Parameters
Name Description
parent LocationName

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

channelConnection ChannelConnection

Required. Channel connection to create.

channelConnectionId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationChannelConnectionOperationMetadata

The RPC response.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ChannelConnection channelConnection = new ChannelConnection();
string channelConnectionId = "";
// Make the request
Operation<ChannelConnection, OperationMetadata> response = eventarcClient.CreateChannelConnection(parent, channelConnection, channelConnectionId);

// Poll until the returned long-running operation is complete
Operation<ChannelConnection, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ChannelConnection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelConnection, OperationMetadata> retrievedResponse = eventarcClient.PollOnceCreateChannelConnection(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ChannelConnection retrievedResult = retrievedResponse.Result;
}

CreateChannelConnection(CreateChannelConnectionRequest, CallSettings)

public virtual Operation<ChannelConnection, OperationMetadata> CreateChannelConnection(CreateChannelConnectionRequest request, CallSettings callSettings = null)

Create a new ChannelConnection in a particular project and location.

Parameters
Name Description
request CreateChannelConnectionRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationChannelConnectionOperationMetadata

The RPC response.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
CreateChannelConnectionRequest request = new CreateChannelConnectionRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ChannelConnection = new ChannelConnection(),
    ChannelConnectionId = "",
};
// Make the request
Operation<ChannelConnection, OperationMetadata> response = eventarcClient.CreateChannelConnection(request);

// Poll until the returned long-running operation is complete
Operation<ChannelConnection, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ChannelConnection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelConnection, OperationMetadata> retrievedResponse = eventarcClient.PollOnceCreateChannelConnection(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ChannelConnection retrievedResult = retrievedResponse.Result;
}

CreateChannelConnection(string, ChannelConnection, string, CallSettings)

public virtual Operation<ChannelConnection, OperationMetadata> CreateChannelConnection(string parent, ChannelConnection channelConnection, string channelConnectionId, CallSettings callSettings = null)

Create a new ChannelConnection in a particular project and location.

Parameters
Name Description
parent string

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

channelConnection ChannelConnection

Required. Channel connection to create.

channelConnectionId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationChannelConnectionOperationMetadata

The RPC response.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ChannelConnection channelConnection = new ChannelConnection();
string channelConnectionId = "";
// Make the request
Operation<ChannelConnection, OperationMetadata> response = eventarcClient.CreateChannelConnection(parent, channelConnection, channelConnectionId);

// Poll until the returned long-running operation is complete
Operation<ChannelConnection, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ChannelConnection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelConnection, OperationMetadata> retrievedResponse = eventarcClient.PollOnceCreateChannelConnection(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ChannelConnection retrievedResult = retrievedResponse.Result;
}

CreateChannelConnectionAsync(LocationName, ChannelConnection, string, CallSettings)

public virtual Task<Operation<ChannelConnection, OperationMetadata>> CreateChannelConnectionAsync(LocationName parent, ChannelConnection channelConnection, string channelConnectionId, CallSettings callSettings = null)

Create a new ChannelConnection in a particular project and location.

Parameters
Name Description
parent LocationName

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

channelConnection ChannelConnection

Required. Channel connection to create.

channelConnectionId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationChannelConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ChannelConnection channelConnection = new ChannelConnection();
string channelConnectionId = "";
// Make the request
Operation<ChannelConnection, OperationMetadata> response = await eventarcClient.CreateChannelConnectionAsync(parent, channelConnection, channelConnectionId);

// Poll until the returned long-running operation is complete
Operation<ChannelConnection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ChannelConnection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelConnection, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateChannelConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ChannelConnection retrievedResult = retrievedResponse.Result;
}

CreateChannelConnectionAsync(LocationName, ChannelConnection, string, CancellationToken)

public virtual Task<Operation<ChannelConnection, OperationMetadata>> CreateChannelConnectionAsync(LocationName parent, ChannelConnection channelConnection, string channelConnectionId, CancellationToken cancellationToken)

Create a new ChannelConnection in a particular project and location.

Parameters
Name Description
parent LocationName

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

channelConnection ChannelConnection

Required. Channel connection to create.

channelConnectionId string

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationChannelConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ChannelConnection channelConnection = new ChannelConnection();
string channelConnectionId = "";
// Make the request
Operation<ChannelConnection, OperationMetadata> response = await eventarcClient.CreateChannelConnectionAsync(parent, channelConnection, channelConnectionId);

// Poll until the returned long-running operation is complete
Operation<ChannelConnection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ChannelConnection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelConnection, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateChannelConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ChannelConnection retrievedResult = retrievedResponse.Result;
}

CreateChannelConnectionAsync(CreateChannelConnectionRequest, CallSettings)

public virtual Task<Operation<ChannelConnection, OperationMetadata>> CreateChannelConnectionAsync(CreateChannelConnectionRequest request, CallSettings callSettings = null)

Create a new ChannelConnection in a particular project and location.

Parameters
Name Description
request CreateChannelConnectionRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationChannelConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
CreateChannelConnectionRequest request = new CreateChannelConnectionRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ChannelConnection = new ChannelConnection(),
    ChannelConnectionId = "",
};
// Make the request
Operation<ChannelConnection, OperationMetadata> response = await eventarcClient.CreateChannelConnectionAsync(request);

// Poll until the returned long-running operation is complete
Operation<ChannelConnection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ChannelConnection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelConnection, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateChannelConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ChannelConnection retrievedResult = retrievedResponse.Result;
}

CreateChannelConnectionAsync(CreateChannelConnectionRequest, CancellationToken)

public virtual Task<Operation<ChannelConnection, OperationMetadata>> CreateChannelConnectionAsync(CreateChannelConnectionRequest request, CancellationToken cancellationToken)

Create a new ChannelConnection in a particular project and location.

Parameters
Name Description
request CreateChannelConnectionRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationChannelConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
CreateChannelConnectionRequest request = new CreateChannelConnectionRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ChannelConnection = new ChannelConnection(),
    ChannelConnectionId = "",
};
// Make the request
Operation<ChannelConnection, OperationMetadata> response = await eventarcClient.CreateChannelConnectionAsync(request);

// Poll until the returned long-running operation is complete
Operation<ChannelConnection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ChannelConnection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelConnection, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateChannelConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ChannelConnection retrievedResult = retrievedResponse.Result;
}

CreateChannelConnectionAsync(string, ChannelConnection, string, CallSettings)

public virtual Task<Operation<ChannelConnection, OperationMetadata>> CreateChannelConnectionAsync(string parent, ChannelConnection channelConnection, string channelConnectionId, CallSettings callSettings = null)

Create a new ChannelConnection in a particular project and location.

Parameters
Name Description
parent string

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

channelConnection ChannelConnection

Required. Channel connection to create.

channelConnectionId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationChannelConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ChannelConnection channelConnection = new ChannelConnection();
string channelConnectionId = "";
// Make the request
Operation<ChannelConnection, OperationMetadata> response = await eventarcClient.CreateChannelConnectionAsync(parent, channelConnection, channelConnectionId);

// Poll until the returned long-running operation is complete
Operation<ChannelConnection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ChannelConnection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelConnection, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateChannelConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ChannelConnection retrievedResult = retrievedResponse.Result;
}

CreateChannelConnectionAsync(string, ChannelConnection, string, CancellationToken)

public virtual Task<Operation<ChannelConnection, OperationMetadata>> CreateChannelConnectionAsync(string parent, ChannelConnection channelConnection, string channelConnectionId, CancellationToken cancellationToken)

Create a new ChannelConnection in a particular project and location.

Parameters
Name Description
parent string

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

channelConnection ChannelConnection

Required. Channel connection to create.

channelConnectionId string

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationChannelConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ChannelConnection channelConnection = new ChannelConnection();
string channelConnectionId = "";
// Make the request
Operation<ChannelConnection, OperationMetadata> response = await eventarcClient.CreateChannelConnectionAsync(parent, channelConnection, channelConnectionId);

// Poll until the returned long-running operation is complete
Operation<ChannelConnection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ChannelConnection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelConnection, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateChannelConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ChannelConnection retrievedResult = retrievedResponse.Result;
}

CreateTrigger(LocationName, Trigger, string, CallSettings)

public virtual Operation<Trigger, OperationMetadata> CreateTrigger(LocationName parent, Trigger trigger, string triggerId, CallSettings callSettings = null)

Create a new trigger in a particular project and location.

Parameters
Name Description
parent LocationName

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

trigger Trigger

Required. The trigger to create.

triggerId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationTriggerOperationMetadata

The RPC response.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Trigger trigger = new Trigger();
string triggerId = "";
// Make the request
Operation<Trigger, OperationMetadata> response = eventarcClient.CreateTrigger(parent, trigger, triggerId);

// Poll until the returned long-running operation is complete
Operation<Trigger, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Trigger result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Trigger, OperationMetadata> retrievedResponse = eventarcClient.PollOnceCreateTrigger(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Trigger retrievedResult = retrievedResponse.Result;
}

CreateTrigger(CreateTriggerRequest, CallSettings)

public virtual Operation<Trigger, OperationMetadata> CreateTrigger(CreateTriggerRequest request, CallSettings callSettings = null)

Create a new trigger in a particular project and location.

Parameters
Name Description
request CreateTriggerRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationTriggerOperationMetadata

The RPC response.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
CreateTriggerRequest request = new CreateTriggerRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Trigger = new Trigger(),
    TriggerId = "",
    ValidateOnly = false,
};
// Make the request
Operation<Trigger, OperationMetadata> response = eventarcClient.CreateTrigger(request);

// Poll until the returned long-running operation is complete
Operation<Trigger, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Trigger result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Trigger, OperationMetadata> retrievedResponse = eventarcClient.PollOnceCreateTrigger(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Trigger retrievedResult = retrievedResponse.Result;
}

CreateTrigger(string, Trigger, string, CallSettings)

public virtual Operation<Trigger, OperationMetadata> CreateTrigger(string parent, Trigger trigger, string triggerId, CallSettings callSettings = null)

Create a new trigger in a particular project and location.

Parameters
Name Description
parent string

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

trigger Trigger

Required. The trigger to create.

triggerId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationTriggerOperationMetadata

The RPC response.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Trigger trigger = new Trigger();
string triggerId = "";
// Make the request
Operation<Trigger, OperationMetadata> response = eventarcClient.CreateTrigger(parent, trigger, triggerId);

// Poll until the returned long-running operation is complete
Operation<Trigger, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Trigger result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Trigger, OperationMetadata> retrievedResponse = eventarcClient.PollOnceCreateTrigger(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Trigger retrievedResult = retrievedResponse.Result;
}

CreateTriggerAsync(LocationName, Trigger, string, CallSettings)

public virtual Task<Operation<Trigger, OperationMetadata>> CreateTriggerAsync(LocationName parent, Trigger trigger, string triggerId, CallSettings callSettings = null)

Create a new trigger in a particular project and location.

Parameters
Name Description
parent LocationName

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

trigger Trigger

Required. The trigger to create.

triggerId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationTriggerOperationMetadata

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Trigger trigger = new Trigger();
string triggerId = "";
// Make the request
Operation<Trigger, OperationMetadata> response = await eventarcClient.CreateTriggerAsync(parent, trigger, triggerId);

// Poll until the returned long-running operation is complete
Operation<Trigger, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Trigger result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Trigger, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateTriggerAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Trigger retrievedResult = retrievedResponse.Result;
}

CreateTriggerAsync(LocationName, Trigger, string, CancellationToken)

public virtual Task<Operation<Trigger, OperationMetadata>> CreateTriggerAsync(LocationName parent, Trigger trigger, string triggerId, CancellationToken cancellationToken)

Create a new trigger in a particular project and location.

Parameters
Name Description
parent LocationName

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

trigger Trigger

Required. The trigger to create.

triggerId string

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationTriggerOperationMetadata

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Trigger trigger = new Trigger();
string triggerId = "";
// Make the request
Operation<Trigger, OperationMetadata> response = await eventarcClient.CreateTriggerAsync(parent, trigger, triggerId);

// Poll until the returned long-running operation is complete
Operation<Trigger, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Trigger result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Trigger, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateTriggerAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Trigger retrievedResult = retrievedResponse.Result;
}

CreateTriggerAsync(CreateTriggerRequest, CallSettings)

public virtual Task<Operation<Trigger, OperationMetadata>> CreateTriggerAsync(CreateTriggerRequest request, CallSettings callSettings = null)

Create a new trigger in a particular project and location.

Parameters
Name Description
request CreateTriggerRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationTriggerOperationMetadata

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
CreateTriggerRequest request = new CreateTriggerRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Trigger = new Trigger(),
    TriggerId = "",
    ValidateOnly = false,
};
// Make the request
Operation<Trigger, OperationMetadata> response = await eventarcClient.CreateTriggerAsync(request);

// Poll until the returned long-running operation is complete
Operation<Trigger, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Trigger result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Trigger, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateTriggerAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Trigger retrievedResult = retrievedResponse.Result;
}

CreateTriggerAsync(CreateTriggerRequest, CancellationToken)

public virtual Task<Operation<Trigger, OperationMetadata>> CreateTriggerAsync(CreateTriggerRequest request, CancellationToken cancellationToken)

Create a new trigger in a particular project and location.

Parameters
Name Description
request CreateTriggerRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationTriggerOperationMetadata

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
CreateTriggerRequest request = new CreateTriggerRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Trigger = new Trigger(),
    TriggerId = "",
    ValidateOnly = false,
};
// Make the request
Operation<Trigger, OperationMetadata> response = await eventarcClient.CreateTriggerAsync(request);

// Poll until the returned long-running operation is complete
Operation<Trigger, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Trigger result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Trigger, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateTriggerAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Trigger retrievedResult = retrievedResponse.Result;
}

CreateTriggerAsync(string, Trigger, string, CallSettings)

public virtual Task<Operation<Trigger, OperationMetadata>> CreateTriggerAsync(string parent, Trigger trigger, string triggerId, CallSettings callSettings = null)

Create a new trigger in a particular project and location.

Parameters
Name Description
parent string

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

trigger Trigger

Required. The trigger to create.

triggerId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationTriggerOperationMetadata

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Trigger trigger = new Trigger();
string triggerId = "";
// Make the request
Operation<Trigger, OperationMetadata> response = await eventarcClient.CreateTriggerAsync(parent, trigger, triggerId);

// Poll until the returned long-running operation is complete
Operation<Trigger, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Trigger result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Trigger, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateTriggerAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Trigger retrievedResult = retrievedResponse.Result;
}

CreateTriggerAsync(string, Trigger, string, CancellationToken)

public virtual Task<Operation<Trigger, OperationMetadata>> CreateTriggerAsync(string parent, Trigger trigger, string triggerId, CancellationToken cancellationToken)

Create a new trigger in a particular project and location.

Parameters
Name Description
parent string

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

trigger Trigger

Required. The trigger to create.

triggerId string

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationTriggerOperationMetadata

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Trigger trigger = new Trigger();
string triggerId = "";
// Make the request
Operation<Trigger, OperationMetadata> response = await eventarcClient.CreateTriggerAsync(parent, trigger, triggerId);

// Poll until the returned long-running operation is complete
Operation<Trigger, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Trigger result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Trigger, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateTriggerAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Trigger retrievedResult = retrievedResponse.Result;
}

DeleteChannel(ChannelName, CallSettings)

public virtual Operation<Channel, OperationMetadata> DeleteChannel(ChannelName name, CallSettings callSettings = null)

Delete a single channel.

Parameters
Name Description
name ChannelName

Required. The name of the channel to be deleted.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationChannelOperationMetadata

The RPC response.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
ChannelName name = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]");
// Make the request
Operation<Channel, OperationMetadata> response = eventarcClient.DeleteChannel(name);

// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Channel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = eventarcClient.PollOnceDeleteChannel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Channel retrievedResult = retrievedResponse.Result;
}

DeleteChannel(DeleteChannelRequest, CallSettings)

public virtual Operation<Channel, OperationMetadata> DeleteChannel(DeleteChannelRequest request, CallSettings callSettings = null)

Delete a single channel.

Parameters
Name Description
request DeleteChannelRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationChannelOperationMetadata

The RPC response.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
DeleteChannelRequest request = new DeleteChannelRequest
{
    ChannelName = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]"),
    ValidateOnly = false,
};
// Make the request
Operation<Channel, OperationMetadata> response = eventarcClient.DeleteChannel(request);

// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Channel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = eventarcClient.PollOnceDeleteChannel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Channel retrievedResult = retrievedResponse.Result;
}

DeleteChannel(string, CallSettings)

public virtual Operation<Channel, OperationMetadata> DeleteChannel(string name, CallSettings callSettings = null)

Delete a single channel.

Parameters
Name Description
name string

Required. The name of the channel to be deleted.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationChannelOperationMetadata

The RPC response.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/channels/[CHANNEL]";
// Make the request
Operation<Channel, OperationMetadata> response = eventarcClient.DeleteChannel(name);

// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Channel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = eventarcClient.PollOnceDeleteChannel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Channel retrievedResult = retrievedResponse.Result;
}

DeleteChannelAsync(ChannelName, CallSettings)

public virtual Task<Operation<Channel, OperationMetadata>> DeleteChannelAsync(ChannelName name, CallSettings callSettings = null)

Delete a single channel.

Parameters
Name Description
name ChannelName

Required. The name of the channel to be deleted.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationChannelOperationMetadata

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
ChannelName name = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]");
// Make the request
Operation<Channel, OperationMetadata> response = await eventarcClient.DeleteChannelAsync(name);

// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Channel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Channel retrievedResult = retrievedResponse.Result;
}

DeleteChannelAsync(ChannelName, CancellationToken)

public virtual Task<Operation<Channel, OperationMetadata>> DeleteChannelAsync(ChannelName name, CancellationToken cancellationToken)

Delete a single channel.

Parameters
Name Description
name ChannelName

Required. The name of the channel to be deleted.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationChannelOperationMetadata

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
ChannelName name = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]");
// Make the request
Operation<Channel, OperationMetadata> response = await eventarcClient.DeleteChannelAsync(name);

// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Channel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Channel retrievedResult = retrievedResponse.Result;
}

DeleteChannelAsync(DeleteChannelRequest, CallSettings)

public virtual Task<Operation<Channel, OperationMetadata>> DeleteChannelAsync(DeleteChannelRequest request, CallSettings callSettings = null)

Delete a single channel.

Parameters
Name Description
request DeleteChannelRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationChannelOperationMetadata

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
DeleteChannelRequest request = new DeleteChannelRequest
{
    ChannelName = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]"),
    ValidateOnly = false,
};
// Make the request
Operation<Channel, OperationMetadata> response = await eventarcClient.DeleteChannelAsync(request);

// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Channel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Channel retrievedResult = retrievedResponse.Result;
}

DeleteChannelAsync(DeleteChannelRequest, CancellationToken)

public virtual Task<Operation<Channel, OperationMetadata>> DeleteChannelAsync(DeleteChannelRequest request, CancellationToken cancellationToken)

Delete a single channel.

Parameters
Name Description
request DeleteChannelRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationChannelOperationMetadata

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
DeleteChannelRequest request = new DeleteChannelRequest
{
    ChannelName = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]"),
    ValidateOnly = false,
};
// Make the request
Operation<Channel, OperationMetadata> response = await eventarcClient.DeleteChannelAsync(request);

// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Channel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Channel retrievedResult = retrievedResponse.Result;
}

DeleteChannelAsync(string, CallSettings)

public virtual Task<Operation<Channel, OperationMetadata>> DeleteChannelAsync(string name, CallSettings callSettings = null)

Delete a single channel.

Parameters
Name Description
name string

Required. The name of the channel to be deleted.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationChannelOperationMetadata

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/channels/[CHANNEL]";
// Make the request
Operation<Channel, OperationMetadata> response = await eventarcClient.DeleteChannelAsync(name);

// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Channel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Channel retrievedResult = retrievedResponse.Result;
}

DeleteChannelAsync(string, CancellationToken)

public virtual Task<Operation<Channel, OperationMetadata>> DeleteChannelAsync(string name, CancellationToken cancellationToken)

Delete a single channel.

Parameters
Name Description
name string

Required. The name of the channel to be deleted.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationChannelOperationMetadata

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/channels/[CHANNEL]";
// Make the request
Operation<Channel, OperationMetadata> response = await eventarcClient.DeleteChannelAsync(name);

// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Channel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Channel retrievedResult = retrievedResponse.Result;
}

DeleteChannelConnection(ChannelConnectionName, CallSettings)

public virtual Operation<ChannelConnection, OperationMetadata> DeleteChannelConnection(ChannelConnectionName name, CallSettings callSettings = null)

Delete a single ChannelConnection.

Parameters
Name Description
name ChannelConnectionName

Required. The name of the channel connection to delete.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationChannelConnectionOperationMetadata

The RPC response.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
ChannelConnectionName name = ChannelConnectionName.FromProjectLocationChannelConnection("[PROJECT]", "[LOCATION]", "[CHANNEL_CONNECTION]");
// Make the request
Operation<ChannelConnection, OperationMetadata> response = eventarcClient.DeleteChannelConnection(name);

// Poll until the returned long-running operation is complete
Operation<ChannelConnection, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ChannelConnection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelConnection, OperationMetadata> retrievedResponse = eventarcClient.PollOnceDeleteChannelConnection(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ChannelConnection retrievedResult = retrievedResponse.Result;
}

DeleteChannelConnection(DeleteChannelConnectionRequest, CallSettings)

public virtual Operation<ChannelConnection, OperationMetadata> DeleteChannelConnection(DeleteChannelConnectionRequest request, CallSettings callSettings = null)

Delete a single ChannelConnection.

Parameters
Name Description
request DeleteChannelConnectionRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationChannelConnectionOperationMetadata

The RPC response.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
DeleteChannelConnectionRequest request = new DeleteChannelConnectionRequest
{
    ChannelConnectionName = ChannelConnectionName.FromProjectLocationChannelConnection("[PROJECT]", "[LOCATION]", "[CHANNEL_CONNECTION]"),
};
// Make the request
Operation<ChannelConnection, OperationMetadata> response = eventarcClient.DeleteChannelConnection(request);

// Poll until the returned long-running operation is complete
Operation<ChannelConnection, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ChannelConnection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelConnection, OperationMetadata> retrievedResponse = eventarcClient.PollOnceDeleteChannelConnection(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ChannelConnection retrievedResult = retrievedResponse.Result;
}

DeleteChannelConnection(string, CallSettings)

public virtual Operation<ChannelConnection, OperationMetadata> DeleteChannelConnection(string name, CallSettings callSettings = null)

Delete a single ChannelConnection.

Parameters
Name Description
name string

Required. The name of the channel connection to delete.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationChannelConnectionOperationMetadata

The RPC response.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/channelConnections/[CHANNEL_CONNECTION]";
// Make the request
Operation<ChannelConnection, OperationMetadata> response = eventarcClient.DeleteChannelConnection(name);

// Poll until the returned long-running operation is complete
Operation<ChannelConnection, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ChannelConnection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelConnection, OperationMetadata> retrievedResponse = eventarcClient.PollOnceDeleteChannelConnection(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ChannelConnection retrievedResult = retrievedResponse.Result;
}

DeleteChannelConnectionAsync(ChannelConnectionName, CallSettings)

public virtual Task<Operation<ChannelConnection, OperationMetadata>> DeleteChannelConnectionAsync(ChannelConnectionName name, CallSettings callSettings = null)

Delete a single ChannelConnection.

Parameters
Name Description
name ChannelConnectionName

Required. The name of the channel connection to delete.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationChannelConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
ChannelConnectionName name = ChannelConnectionName.FromProjectLocationChannelConnection("[PROJECT]", "[LOCATION]", "[CHANNEL_CONNECTION]");
// Make the request
Operation<ChannelConnection, OperationMetadata> response = await eventarcClient.DeleteChannelConnectionAsync(name);

// Poll until the returned long-running operation is complete
Operation<ChannelConnection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ChannelConnection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelConnection, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteChannelConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ChannelConnection retrievedResult = retrievedResponse.Result;
}

DeleteChannelConnectionAsync(ChannelConnectionName, CancellationToken)

public virtual Task<Operation<ChannelConnection, OperationMetadata>> DeleteChannelConnectionAsync(ChannelConnectionName name, CancellationToken cancellationToken)

Delete a single ChannelConnection.

Parameters
Name Description
name ChannelConnectionName

Required. The name of the channel connection to delete.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationChannelConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
ChannelConnectionName name = ChannelConnectionName.FromProjectLocationChannelConnection("[PROJECT]", "[LOCATION]", "[CHANNEL_CONNECTION]");
// Make the request
Operation<ChannelConnection, OperationMetadata> response = await eventarcClient.DeleteChannelConnectionAsync(name);

// Poll until the returned long-running operation is complete
Operation<ChannelConnection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ChannelConnection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelConnection, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteChannelConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ChannelConnection retrievedResult = retrievedResponse.Result;
}

DeleteChannelConnectionAsync(DeleteChannelConnectionRequest, CallSettings)

public virtual Task<Operation<ChannelConnection, OperationMetadata>> DeleteChannelConnectionAsync(DeleteChannelConnectionRequest request, CallSettings callSettings = null)

Delete a single ChannelConnection.

Parameters
Name Description
request DeleteChannelConnectionRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationChannelConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
DeleteChannelConnectionRequest request = new DeleteChannelConnectionRequest
{
    ChannelConnectionName = ChannelConnectionName.FromProjectLocationChannelConnection("[PROJECT]", "[LOCATION]", "[CHANNEL_CONNECTION]"),
};
// Make the request
Operation<ChannelConnection, OperationMetadata> response = await eventarcClient.DeleteChannelConnectionAsync(request);

// Poll until the returned long-running operation is complete
Operation<ChannelConnection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ChannelConnection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelConnection, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteChannelConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ChannelConnection retrievedResult = retrievedResponse.Result;
}

DeleteChannelConnectionAsync(DeleteChannelConnectionRequest, CancellationToken)

public virtual Task<Operation<ChannelConnection, OperationMetadata>> DeleteChannelConnectionAsync(DeleteChannelConnectionRequest request, CancellationToken cancellationToken)

Delete a single ChannelConnection.

Parameters
Name Description
request DeleteChannelConnectionRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationChannelConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
DeleteChannelConnectionRequest request = new DeleteChannelConnectionRequest
{
    ChannelConnectionName = ChannelConnectionName.FromProjectLocationChannelConnection("[PROJECT]", "[LOCATION]", "[CHANNEL_CONNECTION]"),
};
// Make the request
Operation<ChannelConnection, OperationMetadata> response = await eventarcClient.DeleteChannelConnectionAsync(request);

// Poll until the returned long-running operation is complete
Operation<ChannelConnection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ChannelConnection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelConnection, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteChannelConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ChannelConnection retrievedResult = retrievedResponse.Result;
}

DeleteChannelConnectionAsync(string, CallSettings)

public virtual Task<Operation<ChannelConnection, OperationMetadata>> DeleteChannelConnectionAsync(string name, CallSettings callSettings = null)

Delete a single ChannelConnection.

Parameters
Name Description
name string

Required. The name of the channel connection to delete.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationChannelConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/channelConnections/[CHANNEL_CONNECTION]";
// Make the request
Operation<ChannelConnection, OperationMetadata> response = await eventarcClient.DeleteChannelConnectionAsync(name);

// Poll until the returned long-running operation is complete
Operation<ChannelConnection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ChannelConnection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelConnection, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteChannelConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ChannelConnection retrievedResult = retrievedResponse.Result;
}

DeleteChannelConnectionAsync(string, CancellationToken)

public virtual Task<Operation<ChannelConnection, OperationMetadata>> DeleteChannelConnectionAsync(string name, CancellationToken cancellationToken)

Delete a single ChannelConnection.

Parameters
Name Description
name string

Required. The name of the channel connection to delete.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationChannelConnectionOperationMetadata

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/channelConnections/[CHANNEL_CONNECTION]";
// Make the request
Operation<ChannelConnection, OperationMetadata> response = await eventarcClient.DeleteChannelConnectionAsync(name);

// Poll until the returned long-running operation is complete
Operation<ChannelConnection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ChannelConnection result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelConnection, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteChannelConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ChannelConnection retrievedResult = retrievedResponse.Result;
}

DeleteTrigger(DeleteTriggerRequest, CallSettings)

public virtual Operation<Trigger, OperationMetadata> DeleteTrigger(DeleteTriggerRequest request, CallSettings callSettings = null)

Delete a single trigger.

Parameters
Name Description
request DeleteTriggerRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationTriggerOperationMetadata

The RPC response.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
DeleteTriggerRequest request = new DeleteTriggerRequest
{
    TriggerName = TriggerName.FromProjectLocationTrigger("[PROJECT]", "[LOCATION]", "[TRIGGER]"),
    Etag = "",
    AllowMissing = false,
    ValidateOnly = false,
};
// Make the request
Operation<Trigger, OperationMetadata> response = eventarcClient.DeleteTrigger(request);

// Poll until the returned long-running operation is complete
Operation<Trigger, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Trigger result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Trigger, OperationMetadata> retrievedResponse = eventarcClient.PollOnceDeleteTrigger(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Trigger retrievedResult = retrievedResponse.Result;
}

DeleteTrigger(TriggerName, bool, CallSettings)

public virtual Operation<Trigger, OperationMetadata> DeleteTrigger(TriggerName name, bool allowMissing, CallSettings callSettings = null)

Delete a single trigger.

Parameters
Name Description
name TriggerName

Required. The name of the trigger to be deleted.

allowMissing bool

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationTriggerOperationMetadata

The RPC response.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
TriggerName name = TriggerName.FromProjectLocationTrigger("[PROJECT]", "[LOCATION]", "[TRIGGER]");
bool allowMissing = false;
// Make the request
Operation<Trigger, OperationMetadata> response = eventarcClient.DeleteTrigger(name, allowMissing);

// Poll until the returned long-running operation is complete
Operation<Trigger, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Trigger result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Trigger, OperationMetadata> retrievedResponse = eventarcClient.PollOnceDeleteTrigger(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Trigger retrievedResult = retrievedResponse.Result;
}

DeleteTrigger(string, bool, CallSettings)

public virtual Operation<Trigger, OperationMetadata> DeleteTrigger(string name, bool allowMissing, CallSettings callSettings = null)

Delete a single trigger.

Parameters
Name Description
name string

Required. The name of the trigger to be deleted.

allowMissing bool

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationTriggerOperationMetadata

The RPC response.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/triggers/[TRIGGER]";
bool allowMissing = false;
// Make the request
Operation<Trigger, OperationMetadata> response = eventarcClient.DeleteTrigger(name, allowMissing);

// Poll until the returned long-running operation is complete
Operation<Trigger, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Trigger result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Trigger, OperationMetadata> retrievedResponse = eventarcClient.PollOnceDeleteTrigger(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Trigger retrievedResult = retrievedResponse.Result;
}

DeleteTriggerAsync(DeleteTriggerRequest, CallSettings)

public virtual Task<Operation<Trigger, OperationMetadata>> DeleteTriggerAsync(DeleteTriggerRequest request, CallSettings callSettings = null)

Delete a single trigger.

Parameters
Name Description
request DeleteTriggerRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationTriggerOperationMetadata

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
DeleteTriggerRequest request = new DeleteTriggerRequest
{
    TriggerName = TriggerName.FromProjectLocationTrigger("[PROJECT]", "[LOCATION]", "[TRIGGER]"),
    Etag = "",
    AllowMissing = false,
    ValidateOnly = false,
};
// Make the request
Operation<Trigger, OperationMetadata> response = await eventarcClient.DeleteTriggerAsync(request);

// Poll until the returned long-running operation is complete
Operation<Trigger, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Trigger result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Trigger, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteTriggerAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Trigger retrievedResult = retrievedResponse.Result;
}

DeleteTriggerAsync(DeleteTriggerRequest, CancellationToken)

public virtual Task<Operation<Trigger, OperationMetadata>> DeleteTriggerAsync(DeleteTriggerRequest request, CancellationToken cancellationToken)

Delete a single trigger.

Parameters
Name Description
request DeleteTriggerRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationTriggerOperationMetadata

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
DeleteTriggerRequest request = new DeleteTriggerRequest
{
    TriggerName = TriggerName.FromProjectLocationTrigger("[PROJECT]", "[LOCATION]", "[TRIGGER]"),
    Etag = "",
    AllowMissing = false,
    ValidateOnly = false,
};
// Make the request
Operation<Trigger, OperationMetadata> response = await eventarcClient.DeleteTriggerAsync(request);

// Poll until the returned long-running operation is complete
Operation<Trigger, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Trigger result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Trigger, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteTriggerAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Trigger retrievedResult = retrievedResponse.Result;
}

DeleteTriggerAsync(TriggerName, bool, CallSettings)

public virtual Task<Operation<Trigger, OperationMetadata>> DeleteTriggerAsync(TriggerName name, bool allowMissing, CallSettings callSettings = null)

Delete a single trigger.

Parameters
Name Description
name TriggerName

Required. The name of the trigger to be deleted.

allowMissing bool

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationTriggerOperationMetadata

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
TriggerName name = TriggerName.FromProjectLocationTrigger("[PROJECT]", "[LOCATION]", "[TRIGGER]");
bool allowMissing = false;
// Make the request
Operation<Trigger, OperationMetadata> response = await eventarcClient.DeleteTriggerAsync(name, allowMissing);

// Poll until the returned long-running operation is complete
Operation<Trigger, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Trigger result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Trigger, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteTriggerAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Trigger retrievedResult = retrievedResponse.Result;
}

DeleteTriggerAsync(TriggerName, bool, CancellationToken)

public virtual Task<Operation<Trigger, OperationMetadata>> DeleteTriggerAsync(TriggerName name, bool allowMissing, CancellationToken cancellationToken)

Delete a single trigger.

Parameters
Name Description
name TriggerName

Required. The name of the trigger to be deleted.

allowMissing bool

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationTriggerOperationMetadata

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
TriggerName name = TriggerName.FromProjectLocationTrigger("[PROJECT]", "[LOCATION]", "[TRIGGER]");
bool allowMissing = false;
// Make the request
Operation<Trigger, OperationMetadata> response = await eventarcClient.DeleteTriggerAsync(name, allowMissing);

// Poll until the returned long-running operation is complete
Operation<Trigger, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Trigger result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Trigger, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteTriggerAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Trigger retrievedResult = retrievedResponse.Result;
}

DeleteTriggerAsync(string, bool, CallSettings)

public virtual Task<Operation<Trigger, OperationMetadata>> DeleteTriggerAsync(string name, bool allowMissing, CallSettings callSettings = null)

Delete a single trigger.

Parameters
Name Description
name string

Required. The name of the trigger to be deleted.

allowMissing bool

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationTriggerOperationMetadata

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/triggers/[TRIGGER]";
bool allowMissing = false;
// Make the request
Operation<Trigger, OperationMetadata> response = await eventarcClient.DeleteTriggerAsync(name, allowMissing);

// Poll until the returned long-running operation is complete
Operation<Trigger, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Trigger result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Trigger, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteTriggerAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Trigger retrievedResult = retrievedResponse.Result;
}

DeleteTriggerAsync(string, bool, CancellationToken)

public virtual Task<Operation<Trigger, OperationMetadata>> DeleteTriggerAsync(string name, bool allowMissing, CancellationToken cancellationToken)

Delete a single trigger.

Parameters
Name Description
name string

Required. The name of the trigger to be deleted.

allowMissing bool

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationTriggerOperationMetadata

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/triggers/[TRIGGER]";
bool allowMissing = false;
// Make the request
Operation<Trigger, OperationMetadata> response = await eventarcClient.DeleteTriggerAsync(name, allowMissing);

// Poll until the returned long-running operation is complete
Operation<Trigger, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Trigger result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Trigger, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteTriggerAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Trigger retrievedResult = retrievedResponse.Result;
}

GetChannel(ChannelName, CallSettings)

public virtual Channel GetChannel(ChannelName name, CallSettings callSettings = null)

Get a single Channel.

Parameters
Name Description
name ChannelName

Required. The name of the channel to get.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Channel

The RPC response.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
ChannelName name = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]");
// Make the request
Channel response = eventarcClient.GetChannel(name);

GetChannel(GetChannelRequest, CallSettings)

public virtual Channel GetChannel(GetChannelRequest request, CallSettings callSettings = null)

Get a single Channel.

Parameters
Name Description
request GetChannelRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Channel

The RPC response.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
GetChannelRequest request = new GetChannelRequest
{
    ChannelName = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]"),
};
// Make the request
Channel response = eventarcClient.GetChannel(request);

GetChannel(string, CallSettings)

public virtual Channel GetChannel(string name, CallSettings callSettings = null)

Get a single Channel.

Parameters
Name Description
name string

Required. The name of the channel to get.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Channel

The RPC response.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/channels/[CHANNEL]";
// Make the request
Channel response = eventarcClient.GetChannel(name);

GetChannelAsync(ChannelName, CallSettings)

public virtual Task<Channel> GetChannelAsync(ChannelName name, CallSettings callSettings = null)

Get a single Channel.

Parameters
Name Description
name ChannelName

Required. The name of the channel to get.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskChannel

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
ChannelName name = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]");
// Make the request
Channel response = await eventarcClient.GetChannelAsync(name);

GetChannelAsync(ChannelName, CancellationToken)

public virtual Task<Channel> GetChannelAsync(ChannelName name, CancellationToken cancellationToken)

Get a single Channel.

Parameters
Name Description
name ChannelName

Required. The name of the channel to get.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskChannel

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
ChannelName name = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]");
// Make the request
Channel response = await eventarcClient.GetChannelAsync(name);

GetChannelAsync(GetChannelRequest, CallSettings)

public virtual Task<Channel> GetChannelAsync(GetChannelRequest request, CallSettings callSettings = null)

Get a single Channel.

Parameters
Name Description
request GetChannelRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskChannel

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
GetChannelRequest request = new GetChannelRequest
{
    ChannelName = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]"),
};
// Make the request
Channel response = await eventarcClient.GetChannelAsync(request);

GetChannelAsync(GetChannelRequest, CancellationToken)

public virtual Task<Channel> GetChannelAsync(GetChannelRequest request, CancellationToken cancellationToken)

Get a single Channel.

Parameters
Name Description
request GetChannelRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskChannel

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
GetChannelRequest request = new GetChannelRequest
{
    ChannelName = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]"),
};
// Make the request
Channel response = await eventarcClient.GetChannelAsync(request);

GetChannelAsync(string, CallSettings)

public virtual Task<Channel> GetChannelAsync(string name, CallSettings callSettings = null)

Get a single Channel.

Parameters
Name Description
name string

Required. The name of the channel to get.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskChannel

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/channels/[CHANNEL]";
// Make the request
Channel response = await eventarcClient.GetChannelAsync(name);

GetChannelAsync(string, CancellationToken)

public virtual Task<Channel> GetChannelAsync(string name, CancellationToken cancellationToken)

Get a single Channel.

Parameters
Name Description
name string

Required. The name of the channel to get.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskChannel

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/channels/[CHANNEL]";
// Make the request
Channel response = await eventarcClient.GetChannelAsync(name);

GetChannelConnection(ChannelConnectionName, CallSettings)

public virtual ChannelConnection GetChannelConnection(ChannelConnectionName name, CallSettings callSettings = null)

Get a single ChannelConnection.

Parameters
Name Description
name ChannelConnectionName

Required. The name of the channel connection to get.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ChannelConnection

The RPC response.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
ChannelConnectionName name = ChannelConnectionName.FromProjectLocationChannelConnection("[PROJECT]", "[LOCATION]", "[CHANNEL_CONNECTION]");
// Make the request
ChannelConnection response = eventarcClient.GetChannelConnection(name);

GetChannelConnection(GetChannelConnectionRequest, CallSettings)

public virtual ChannelConnection GetChannelConnection(GetChannelConnectionRequest request, CallSettings callSettings = null)

Get a single ChannelConnection.

Parameters
Name Description
request GetChannelConnectionRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ChannelConnection

The RPC response.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
GetChannelConnectionRequest request = new GetChannelConnectionRequest
{
    ChannelConnectionName = ChannelConnectionName.FromProjectLocationChannelConnection("[PROJECT]", "[LOCATION]", "[CHANNEL_CONNECTION]"),
};
// Make the request
ChannelConnection response = eventarcClient.GetChannelConnection(request);

GetChannelConnection(string, CallSettings)

public virtual ChannelConnection GetChannelConnection(string name, CallSettings callSettings = null)

Get a single ChannelConnection.

Parameters
Name Description
name string

Required. The name of the channel connection to get.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ChannelConnection

The RPC response.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/channelConnections/[CHANNEL_CONNECTION]";
// Make the request
ChannelConnection response = eventarcClient.GetChannelConnection(name);

GetChannelConnectionAsync(ChannelConnectionName, CallSettings)

public virtual Task<ChannelConnection> GetChannelConnectionAsync(ChannelConnectionName name, CallSettings callSettings = null)

Get a single ChannelConnection.

Parameters
Name Description
name ChannelConnectionName

Required. The name of the channel connection to get.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskChannelConnection

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
ChannelConnectionName name = ChannelConnectionName.FromProjectLocationChannelConnection("[PROJECT]", "[LOCATION]", "[CHANNEL_CONNECTION]");
// Make the request
ChannelConnection response = await eventarcClient.GetChannelConnectionAsync(name);

GetChannelConnectionAsync(ChannelConnectionName, CancellationToken)

public virtual Task<ChannelConnection> GetChannelConnectionAsync(ChannelConnectionName name, CancellationToken cancellationToken)

Get a single ChannelConnection.

Parameters
Name Description
name ChannelConnectionName

Required. The name of the channel connection to get.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskChannelConnection

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
ChannelConnectionName name = ChannelConnectionName.FromProjectLocationChannelConnection("[PROJECT]", "[LOCATION]", "[CHANNEL_CONNECTION]");
// Make the request
ChannelConnection response = await eventarcClient.GetChannelConnectionAsync(name);

GetChannelConnectionAsync(GetChannelConnectionRequest, CallSettings)

public virtual Task<ChannelConnection> GetChannelConnectionAsync(GetChannelConnectionRequest request, CallSettings callSettings = null)

Get a single ChannelConnection.

Parameters
Name Description
request GetChannelConnectionRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskChannelConnection

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
GetChannelConnectionRequest request = new GetChannelConnectionRequest
{
    ChannelConnectionName = ChannelConnectionName.FromProjectLocationChannelConnection("[PROJECT]", "[LOCATION]", "[CHANNEL_CONNECTION]"),
};
// Make the request
ChannelConnection response = await eventarcClient.GetChannelConnectionAsync(request);

GetChannelConnectionAsync(GetChannelConnectionRequest, CancellationToken)

public virtual Task<ChannelConnection> GetChannelConnectionAsync(GetChannelConnectionRequest request, CancellationToken cancellationToken)

Get a single ChannelConnection.

Parameters
Name Description
request GetChannelConnectionRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskChannelConnection

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
GetChannelConnectionRequest request = new GetChannelConnectionRequest
{
    ChannelConnectionName = ChannelConnectionName.FromProjectLocationChannelConnection("[PROJECT]", "[LOCATION]", "[CHANNEL_CONNECTION]"),
};
// Make the request
ChannelConnection response = await eventarcClient.GetChannelConnectionAsync(request);

GetChannelConnectionAsync(string, CallSettings)

public virtual Task<ChannelConnection> GetChannelConnectionAsync(string name, CallSettings callSettings = null)

Get a single ChannelConnection.

Parameters
Name Description
name string

Required. The name of the channel connection to get.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskChannelConnection

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/channelConnections/[CHANNEL_CONNECTION]";
// Make the request
ChannelConnection response = await eventarcClient.GetChannelConnectionAsync(name);

GetChannelConnectionAsync(string, CancellationToken)

public virtual Task<ChannelConnection> GetChannelConnectionAsync(string name, CancellationToken cancellationToken)

Get a single ChannelConnection.

Parameters
Name Description
name string

Required. The name of the channel connection to get.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskChannelConnection

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/channelConnections/[CHANNEL_CONNECTION]";
// Make the request
ChannelConnection response = await eventarcClient.GetChannelConnectionAsync(name);

GetGoogleChannelConfig(GetGoogleChannelConfigRequest, CallSettings)

public virtual GoogleChannelConfig GetGoogleChannelConfig(GetGoogleChannelConfigRequest request, CallSettings callSettings = null)

Get a GoogleChannelConfig

Parameters
Name Description
request GetGoogleChannelConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GoogleChannelConfig

The RPC response.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
GetGoogleChannelConfigRequest request = new GetGoogleChannelConfigRequest
{
    GoogleChannelConfigName = GoogleChannelConfigName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
GoogleChannelConfig response = eventarcClient.GetGoogleChannelConfig(request);

GetGoogleChannelConfig(GoogleChannelConfigName, CallSettings)

public virtual GoogleChannelConfig GetGoogleChannelConfig(GoogleChannelConfigName name, CallSettings callSettings = null)

Get a GoogleChannelConfig

Parameters
Name Description
name GoogleChannelConfigName

Required. The name of the config to get.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GoogleChannelConfig

The RPC response.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
GoogleChannelConfigName name = GoogleChannelConfigName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
GoogleChannelConfig response = eventarcClient.GetGoogleChannelConfig(name);

GetGoogleChannelConfig(string, CallSettings)

public virtual GoogleChannelConfig GetGoogleChannelConfig(string name, CallSettings callSettings = null)

Get a GoogleChannelConfig

Parameters
Name Description
name string

Required. The name of the config to get.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GoogleChannelConfig

The RPC response.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/googleChannelConfig";
// Make the request
GoogleChannelConfig response = eventarcClient.GetGoogleChannelConfig(name);

GetGoogleChannelConfigAsync(GetGoogleChannelConfigRequest, CallSettings)

public virtual Task<GoogleChannelConfig> GetGoogleChannelConfigAsync(GetGoogleChannelConfigRequest request, CallSettings callSettings = null)

Get a GoogleChannelConfig

Parameters
Name Description
request GetGoogleChannelConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGoogleChannelConfig

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
GetGoogleChannelConfigRequest request = new GetGoogleChannelConfigRequest
{
    GoogleChannelConfigName = GoogleChannelConfigName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
GoogleChannelConfig response = await eventarcClient.GetGoogleChannelConfigAsync(request);

GetGoogleChannelConfigAsync(GetGoogleChannelConfigRequest, CancellationToken)

public virtual Task<GoogleChannelConfig> GetGoogleChannelConfigAsync(GetGoogleChannelConfigRequest request, CancellationToken cancellationToken)

Get a GoogleChannelConfig

Parameters
Name Description
request GetGoogleChannelConfigRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGoogleChannelConfig

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
GetGoogleChannelConfigRequest request = new GetGoogleChannelConfigRequest
{
    GoogleChannelConfigName = GoogleChannelConfigName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
GoogleChannelConfig response = await eventarcClient.GetGoogleChannelConfigAsync(request);

GetGoogleChannelConfigAsync(GoogleChannelConfigName, CallSettings)

public virtual Task<GoogleChannelConfig> GetGoogleChannelConfigAsync(GoogleChannelConfigName name, CallSettings callSettings = null)

Get a GoogleChannelConfig

Parameters
Name Description
name GoogleChannelConfigName

Required. The name of the config to get.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGoogleChannelConfig

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
GoogleChannelConfigName name = GoogleChannelConfigName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
GoogleChannelConfig response = await eventarcClient.GetGoogleChannelConfigAsync(name);

GetGoogleChannelConfigAsync(GoogleChannelConfigName, CancellationToken)

public virtual Task<GoogleChannelConfig> GetGoogleChannelConfigAsync(GoogleChannelConfigName name, CancellationToken cancellationToken)

Get a GoogleChannelConfig

Parameters
Name Description
name GoogleChannelConfigName

Required. The name of the config to get.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGoogleChannelConfig

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
GoogleChannelConfigName name = GoogleChannelConfigName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
GoogleChannelConfig response = await eventarcClient.GetGoogleChannelConfigAsync(name);

GetGoogleChannelConfigAsync(string, CallSettings)

public virtual Task<GoogleChannelConfig> GetGoogleChannelConfigAsync(string name, CallSettings callSettings = null)

Get a GoogleChannelConfig

Parameters
Name Description
name string

Required. The name of the config to get.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGoogleChannelConfig

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/googleChannelConfig";
// Make the request
GoogleChannelConfig response = await eventarcClient.GetGoogleChannelConfigAsync(name);

GetGoogleChannelConfigAsync(string, CancellationToken)

public virtual Task<GoogleChannelConfig> GetGoogleChannelConfigAsync(string name, CancellationToken cancellationToken)

Get a GoogleChannelConfig

Parameters
Name Description
name string

Required. The name of the config to get.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGoogleChannelConfig

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/googleChannelConfig";
// Make the request
GoogleChannelConfig response = await eventarcClient.GetGoogleChannelConfigAsync(name);

GetProvider(GetProviderRequest, CallSettings)

public virtual Provider GetProvider(GetProviderRequest request, CallSettings callSettings = null)

Get a single Provider.

Parameters
Name Description
request GetProviderRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Provider

The RPC response.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
GetProviderRequest request = new GetProviderRequest
{
    ProviderName = ProviderName.FromProjectLocationProvider("[PROJECT]", "[LOCATION]", "[PROVIDER]"),
};
// Make the request
Provider response = eventarcClient.GetProvider(request);

GetProvider(ProviderName, CallSettings)

public virtual Provider GetProvider(ProviderName name, CallSettings callSettings = null)

Get a single Provider.

Parameters
Name Description
name ProviderName

Required. The name of the provider to get.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Provider

The RPC response.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
ProviderName name = ProviderName.FromProjectLocationProvider("[PROJECT]", "[LOCATION]", "[PROVIDER]");
// Make the request
Provider response = eventarcClient.GetProvider(name);

GetProvider(string, CallSettings)

public virtual Provider GetProvider(string name, CallSettings callSettings = null)

Get a single Provider.

Parameters
Name Description
name string

Required. The name of the provider to get.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Provider

The RPC response.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/providers/[PROVIDER]";
// Make the request
Provider response = eventarcClient.GetProvider(name);

GetProviderAsync(GetProviderRequest, CallSettings)

public virtual Task<Provider> GetProviderAsync(GetProviderRequest request, CallSettings callSettings = null)

Get a single Provider.

Parameters
Name Description
request GetProviderRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskProvider

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
GetProviderRequest request = new GetProviderRequest
{
    ProviderName = ProviderName.FromProjectLocationProvider("[PROJECT]", "[LOCATION]", "[PROVIDER]"),
};
// Make the request
Provider response = await eventarcClient.GetProviderAsync(request);

GetProviderAsync(GetProviderRequest, CancellationToken)

public virtual Task<Provider> GetProviderAsync(GetProviderRequest request, CancellationToken cancellationToken)

Get a single Provider.

Parameters
Name Description
request GetProviderRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskProvider

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
GetProviderRequest request = new GetProviderRequest
{
    ProviderName = ProviderName.FromProjectLocationProvider("[PROJECT]", "[LOCATION]", "[PROVIDER]"),
};
// Make the request
Provider response = await eventarcClient.GetProviderAsync(request);

GetProviderAsync(ProviderName, CallSettings)

public virtual Task<Provider> GetProviderAsync(ProviderName name, CallSettings callSettings = null)

Get a single Provider.

Parameters
Name Description
name ProviderName

Required. The name of the provider to get.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskProvider

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
ProviderName name = ProviderName.FromProjectLocationProvider("[PROJECT]", "[LOCATION]", "[PROVIDER]");
// Make the request
Provider response = await eventarcClient.GetProviderAsync(name);

GetProviderAsync(ProviderName, CancellationToken)

public virtual Task<Provider> GetProviderAsync(ProviderName name, CancellationToken cancellationToken)

Get a single Provider.

Parameters
Name Description
name ProviderName

Required. The name of the provider to get.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskProvider

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
ProviderName name = ProviderName.FromProjectLocationProvider("[PROJECT]", "[LOCATION]", "[PROVIDER]");
// Make the request
Provider response = await eventarcClient.GetProviderAsync(name);

GetProviderAsync(string, CallSettings)

public virtual Task<Provider> GetProviderAsync(string name, CallSettings callSettings = null)

Get a single Provider.

Parameters
Name Description
name string

Required. The name of the provider to get.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskProvider

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/providers/[PROVIDER]";
// Make the request
Provider response = await eventarcClient.GetProviderAsync(name);

GetProviderAsync(string, CancellationToken)

public virtual Task<Provider> GetProviderAsync(string name, CancellationToken cancellationToken)

Get a single Provider.

Parameters
Name Description
name string

Required. The name of the provider to get.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskProvider

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/providers/[PROVIDER]";
// Make the request
Provider response = await eventarcClient.GetProviderAsync(name);

GetTrigger(GetTriggerRequest, CallSettings)

public virtual Trigger GetTrigger(GetTriggerRequest request, CallSettings callSettings = null)

Get a single trigger.

Parameters
Name Description
request GetTriggerRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Trigger

The RPC response.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
GetTriggerRequest request = new GetTriggerRequest
{
    TriggerName = TriggerName.FromProjectLocationTrigger("[PROJECT]", "[LOCATION]", "[TRIGGER]"),
};
// Make the request
Trigger response = eventarcClient.GetTrigger(request);

GetTrigger(TriggerName, CallSettings)

public virtual Trigger GetTrigger(TriggerName name, CallSettings callSettings = null)

Get a single trigger.

Parameters
Name Description
name TriggerName

Required. The name of the trigger to get.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Trigger

The RPC response.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
TriggerName name = TriggerName.FromProjectLocationTrigger("[PROJECT]", "[LOCATION]", "[TRIGGER]");
// Make the request
Trigger response = eventarcClient.GetTrigger(name);

GetTrigger(string, CallSettings)

public virtual Trigger GetTrigger(string name, CallSettings callSettings = null)

Get a single trigger.

Parameters
Name Description
name string

Required. The name of the trigger to get.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Trigger

The RPC response.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/triggers/[TRIGGER]";
// Make the request
Trigger response = eventarcClient.GetTrigger(name);

GetTriggerAsync(GetTriggerRequest, CallSettings)

public virtual Task<Trigger> GetTriggerAsync(GetTriggerRequest request, CallSettings callSettings = null)

Get a single trigger.

Parameters
Name Description
request GetTriggerRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskTrigger

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
GetTriggerRequest request = new GetTriggerRequest
{
    TriggerName = TriggerName.FromProjectLocationTrigger("[PROJECT]", "[LOCATION]", "[TRIGGER]"),
};
// Make the request
Trigger response = await eventarcClient.GetTriggerAsync(request);

GetTriggerAsync(GetTriggerRequest, CancellationToken)

public virtual Task<Trigger> GetTriggerAsync(GetTriggerRequest request, CancellationToken cancellationToken)

Get a single trigger.

Parameters
Name Description
request GetTriggerRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskTrigger

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
GetTriggerRequest request = new GetTriggerRequest
{
    TriggerName = TriggerName.FromProjectLocationTrigger("[PROJECT]", "[LOCATION]", "[TRIGGER]"),
};
// Make the request
Trigger response = await eventarcClient.GetTriggerAsync(request);

GetTriggerAsync(TriggerName, CallSettings)

public virtual Task<Trigger> GetTriggerAsync(TriggerName name, CallSettings callSettings = null)

Get a single trigger.

Parameters
Name Description
name TriggerName

Required. The name of the trigger to get.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskTrigger

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
TriggerName name = TriggerName.FromProjectLocationTrigger("[PROJECT]", "[LOCATION]", "[TRIGGER]");
// Make the request
Trigger response = await eventarcClient.GetTriggerAsync(name);

GetTriggerAsync(TriggerName, CancellationToken)

public virtual Task<Trigger> GetTriggerAsync(TriggerName name, CancellationToken cancellationToken)

Get a single trigger.

Parameters
Name Description
name TriggerName

Required. The name of the trigger to get.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskTrigger

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
TriggerName name = TriggerName.FromProjectLocationTrigger("[PROJECT]", "[LOCATION]", "[TRIGGER]");
// Make the request
Trigger response = await eventarcClient.GetTriggerAsync(name);

GetTriggerAsync(string, CallSettings)

public virtual Task<Trigger> GetTriggerAsync(string name, CallSettings callSettings = null)

Get a single trigger.

Parameters
Name Description
name string

Required. The name of the trigger to get.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskTrigger

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/triggers/[TRIGGER]";
// Make the request
Trigger response = await eventarcClient.GetTriggerAsync(name);

GetTriggerAsync(string, CancellationToken)

public virtual Task<Trigger> GetTriggerAsync(string name, CancellationToken cancellationToken)

Get a single trigger.

Parameters
Name Description
name string

Required. The name of the trigger to get.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskTrigger

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/triggers/[TRIGGER]";
// Make the request
Trigger response = await eventarcClient.GetTriggerAsync(name);

ListChannelConnections(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListChannelConnectionsResponse, ChannelConnection> ListChannelConnections(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List channel connections.

Parameters
Name Description
parent LocationName

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

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListChannelConnectionsResponseChannelConnection

A pageable sequence of ChannelConnection resources.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListChannelConnectionsResponse, ChannelConnection> response = eventarcClient.ListChannelConnections(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ChannelConnection item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListChannelConnectionsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ChannelConnection item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ChannelConnection> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ChannelConnection item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListChannelConnections(ListChannelConnectionsRequest, CallSettings)

public virtual PagedEnumerable<ListChannelConnectionsResponse, ChannelConnection> ListChannelConnections(ListChannelConnectionsRequest request, CallSettings callSettings = null)

List channel connections.

Parameters
Name Description
request ListChannelConnectionsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListChannelConnectionsResponseChannelConnection

A pageable sequence of ChannelConnection resources.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
ListChannelConnectionsRequest request = new ListChannelConnectionsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedEnumerable<ListChannelConnectionsResponse, ChannelConnection> response = eventarcClient.ListChannelConnections(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (ChannelConnection item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListChannelConnectionsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ChannelConnection item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ChannelConnection> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ChannelConnection item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListChannelConnections(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListChannelConnectionsResponse, ChannelConnection> ListChannelConnections(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List channel connections.

Parameters
Name Description
parent string

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

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListChannelConnectionsResponseChannelConnection

A pageable sequence of ChannelConnection resources.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListChannelConnectionsResponse, ChannelConnection> response = eventarcClient.ListChannelConnections(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ChannelConnection item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListChannelConnectionsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ChannelConnection item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ChannelConnection> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ChannelConnection item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListChannelConnectionsAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListChannelConnectionsResponse, ChannelConnection> ListChannelConnectionsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List channel connections.

Parameters
Name Description
parent LocationName

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

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListChannelConnectionsResponseChannelConnection

A pageable asynchronous sequence of ChannelConnection resources.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListChannelConnectionsResponse, ChannelConnection> response = eventarcClient.ListChannelConnectionsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ChannelConnection item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListChannelConnectionsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ChannelConnection item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ChannelConnection> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ChannelConnection item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListChannelConnectionsAsync(ListChannelConnectionsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListChannelConnectionsResponse, ChannelConnection> ListChannelConnectionsAsync(ListChannelConnectionsRequest request, CallSettings callSettings = null)

List channel connections.

Parameters
Name Description
request ListChannelConnectionsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListChannelConnectionsResponseChannelConnection

A pageable asynchronous sequence of ChannelConnection resources.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
ListChannelConnectionsRequest request = new ListChannelConnectionsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedAsyncEnumerable<ListChannelConnectionsResponse, ChannelConnection> response = eventarcClient.ListChannelConnectionsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ChannelConnection item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListChannelConnectionsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ChannelConnection item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ChannelConnection> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ChannelConnection item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListChannelConnectionsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListChannelConnectionsResponse, ChannelConnection> ListChannelConnectionsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List channel connections.

Parameters
Name Description
parent string

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

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListChannelConnectionsResponseChannelConnection

A pageable asynchronous sequence of ChannelConnection resources.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListChannelConnectionsResponse, ChannelConnection> response = eventarcClient.ListChannelConnectionsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ChannelConnection item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListChannelConnectionsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ChannelConnection item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ChannelConnection> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ChannelConnection item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListChannels(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListChannelsResponse, Channel> ListChannels(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List channels.

Parameters
Name Description
parent LocationName

Required. The parent collection to list channels on.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListChannelsResponseChannel

A pageable sequence of Channel resources.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListChannelsResponse, Channel> response = eventarcClient.ListChannels(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Channel item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListChannelsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Channel item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Channel> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Channel item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListChannels(ListChannelsRequest, CallSettings)

public virtual PagedEnumerable<ListChannelsResponse, Channel> ListChannels(ListChannelsRequest request, CallSettings callSettings = null)

List channels.

Parameters
Name Description
request ListChannelsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListChannelsResponseChannel

A pageable sequence of Channel resources.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
ListChannelsRequest request = new ListChannelsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListChannelsResponse, Channel> response = eventarcClient.ListChannels(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (Channel item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListChannelsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Channel item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Channel> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Channel item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListChannels(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListChannelsResponse, Channel> ListChannels(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List channels.

Parameters
Name Description
parent string

Required. The parent collection to list channels on.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListChannelsResponseChannel

A pageable sequence of Channel resources.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListChannelsResponse, Channel> response = eventarcClient.ListChannels(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Channel item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListChannelsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Channel item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Channel> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Channel item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListChannelsAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListChannelsResponse, Channel> ListChannelsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List channels.

Parameters
Name Description
parent LocationName

Required. The parent collection to list channels on.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListChannelsResponseChannel

A pageable asynchronous sequence of Channel resources.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListChannelsResponse, Channel> response = eventarcClient.ListChannelsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Channel item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListChannelsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Channel item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Channel> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Channel item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListChannelsAsync(ListChannelsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListChannelsResponse, Channel> ListChannelsAsync(ListChannelsRequest request, CallSettings callSettings = null)

List channels.

Parameters
Name Description
request ListChannelsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListChannelsResponseChannel

A pageable asynchronous sequence of Channel resources.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
ListChannelsRequest request = new ListChannelsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListChannelsResponse, Channel> response = eventarcClient.ListChannelsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Channel item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListChannelsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Channel item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Channel> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Channel item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListChannelsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListChannelsResponse, Channel> ListChannelsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List channels.

Parameters
Name Description
parent string

Required. The parent collection to list channels on.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListChannelsResponseChannel

A pageable asynchronous sequence of Channel resources.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListChannelsResponse, Channel> response = eventarcClient.ListChannelsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Channel item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListChannelsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Channel item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Channel> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Channel item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListProviders(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListProvidersResponse, Provider> ListProviders(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List providers.

Parameters
Name Description
parent LocationName

Required. The parent of the provider to get.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListProvidersResponseProvider

A pageable sequence of Provider resources.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListProvidersResponse, Provider> response = eventarcClient.ListProviders(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Provider item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListProvidersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Provider item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Provider> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Provider item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListProviders(ListProvidersRequest, CallSettings)

public virtual PagedEnumerable<ListProvidersResponse, Provider> ListProviders(ListProvidersRequest request, CallSettings callSettings = null)

List providers.

Parameters
Name Description
request ListProvidersRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListProvidersResponseProvider

A pageable sequence of Provider resources.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
ListProvidersRequest request = new ListProvidersRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    OrderBy = "",
    Filter = "",
};
// Make the request
PagedEnumerable<ListProvidersResponse, Provider> response = eventarcClient.ListProviders(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (Provider item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListProvidersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Provider item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Provider> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Provider item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListProviders(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListProvidersResponse, Provider> ListProviders(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List providers.

Parameters
Name Description
parent string

Required. The parent of the provider to get.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListProvidersResponseProvider

A pageable sequence of Provider resources.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListProvidersResponse, Provider> response = eventarcClient.ListProviders(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Provider item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListProvidersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Provider item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Provider> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Provider item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListProvidersAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListProvidersResponse, Provider> ListProvidersAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List providers.

Parameters
Name Description
parent LocationName

Required. The parent of the provider to get.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListProvidersResponseProvider

A pageable asynchronous sequence of Provider resources.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListProvidersResponse, Provider> response = eventarcClient.ListProvidersAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Provider item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListProvidersResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Provider item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Provider> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Provider item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListProvidersAsync(ListProvidersRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListProvidersResponse, Provider> ListProvidersAsync(ListProvidersRequest request, CallSettings callSettings = null)

List providers.

Parameters
Name Description
request ListProvidersRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListProvidersResponseProvider

A pageable asynchronous sequence of Provider resources.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
ListProvidersRequest request = new ListProvidersRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    OrderBy = "",
    Filter = "",
};
// Make the request
PagedAsyncEnumerable<ListProvidersResponse, Provider> response = eventarcClient.ListProvidersAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Provider item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListProvidersResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Provider item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Provider> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Provider item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListProvidersAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListProvidersResponse, Provider> ListProvidersAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List providers.

Parameters
Name Description
parent string

Required. The parent of the provider to get.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListProvidersResponseProvider

A pageable asynchronous sequence of Provider resources.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListProvidersResponse, Provider> response = eventarcClient.ListProvidersAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Provider item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListProvidersResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Provider item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Provider> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Provider item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListTriggers(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListTriggersResponse, Trigger> ListTriggers(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List triggers.

Parameters
Name Description
parent LocationName

Required. The parent collection to list triggers on.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListTriggersResponseTrigger

A pageable sequence of Trigger resources.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListTriggersResponse, Trigger> response = eventarcClient.ListTriggers(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Trigger item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListTriggersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Trigger item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Trigger> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Trigger item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListTriggers(ListTriggersRequest, CallSettings)

public virtual PagedEnumerable<ListTriggersResponse, Trigger> ListTriggers(ListTriggersRequest request, CallSettings callSettings = null)

List triggers.

Parameters
Name Description
request ListTriggersRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListTriggersResponseTrigger

A pageable sequence of Trigger resources.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
ListTriggersRequest request = new ListTriggersRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    OrderBy = "",
    Filter = "",
};
// Make the request
PagedEnumerable<ListTriggersResponse, Trigger> response = eventarcClient.ListTriggers(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (Trigger item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListTriggersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Trigger item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Trigger> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Trigger item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListTriggers(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListTriggersResponse, Trigger> ListTriggers(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List triggers.

Parameters
Name Description
parent string

Required. The parent collection to list triggers on.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListTriggersResponseTrigger

A pageable sequence of Trigger resources.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListTriggersResponse, Trigger> response = eventarcClient.ListTriggers(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Trigger item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListTriggersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Trigger item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Trigger> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Trigger item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListTriggersAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListTriggersResponse, Trigger> ListTriggersAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List triggers.

Parameters
Name Description
parent LocationName

Required. The parent collection to list triggers on.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListTriggersResponseTrigger

A pageable asynchronous sequence of Trigger resources.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListTriggersResponse, Trigger> response = eventarcClient.ListTriggersAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Trigger item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListTriggersResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Trigger item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Trigger> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Trigger item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListTriggersAsync(ListTriggersRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListTriggersResponse, Trigger> ListTriggersAsync(ListTriggersRequest request, CallSettings callSettings = null)

List triggers.

Parameters
Name Description
request ListTriggersRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListTriggersResponseTrigger

A pageable asynchronous sequence of Trigger resources.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
ListTriggersRequest request = new ListTriggersRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    OrderBy = "",
    Filter = "",
};
// Make the request
PagedAsyncEnumerable<ListTriggersResponse, Trigger> response = eventarcClient.ListTriggersAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Trigger item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListTriggersResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Trigger item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Trigger> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Trigger item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListTriggersAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListTriggersResponse, Trigger> ListTriggersAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List triggers.

Parameters
Name Description
parent string

Required. The parent collection to list triggers on.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListTriggersResponseTrigger

A pageable asynchronous sequence of Trigger resources.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListTriggersResponse, Trigger> response = eventarcClient.ListTriggersAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Trigger item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListTriggersResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Trigger item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Trigger> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Trigger item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

PollOnceCreateChannel(string, CallSettings)

public virtual Operation<Channel, OperationMetadata> PollOnceCreateChannel(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateChannel.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationChannelOperationMetadata

The result of polling the operation.

PollOnceCreateChannelAsync(string, CallSettings)

public virtual Task<Operation<Channel, OperationMetadata>> PollOnceCreateChannelAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateChannel.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationChannelOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateChannelConnection(string, CallSettings)

public virtual Operation<ChannelConnection, OperationMetadata> PollOnceCreateChannelConnection(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateChannelConnection.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationChannelConnectionOperationMetadata

The result of polling the operation.

PollOnceCreateChannelConnectionAsync(string, CallSettings)

public virtual Task<Operation<ChannelConnection, OperationMetadata>> PollOnceCreateChannelConnectionAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateChannelConnection.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationChannelConnectionOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateTrigger(string, CallSettings)

public virtual Operation<Trigger, OperationMetadata> PollOnceCreateTrigger(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateTrigger.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationTriggerOperationMetadata

The result of polling the operation.

PollOnceCreateTriggerAsync(string, CallSettings)

public virtual Task<Operation<Trigger, OperationMetadata>> PollOnceCreateTriggerAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateTrigger.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationTriggerOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteChannel(string, CallSettings)

public virtual Operation<Channel, OperationMetadata> PollOnceDeleteChannel(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteChannel.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationChannelOperationMetadata

The result of polling the operation.

PollOnceDeleteChannelAsync(string, CallSettings)

public virtual Task<Operation<Channel, OperationMetadata>> PollOnceDeleteChannelAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteChannel.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationChannelOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteChannelConnection(string, CallSettings)

public virtual Operation<ChannelConnection, OperationMetadata> PollOnceDeleteChannelConnection(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteChannelConnection.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationChannelConnectionOperationMetadata

The result of polling the operation.

PollOnceDeleteChannelConnectionAsync(string, CallSettings)

public virtual Task<Operation<ChannelConnection, OperationMetadata>> PollOnceDeleteChannelConnectionAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteChannelConnection.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationChannelConnectionOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteTrigger(string, CallSettings)

public virtual Operation<Trigger, OperationMetadata> PollOnceDeleteTrigger(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteTrigger.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationTriggerOperationMetadata

The result of polling the operation.

PollOnceDeleteTriggerAsync(string, CallSettings)

public virtual Task<Operation<Trigger, OperationMetadata>> PollOnceDeleteTriggerAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteTrigger.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationTriggerOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateChannel(string, CallSettings)

public virtual Operation<Channel, OperationMetadata> PollOnceUpdateChannel(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UpdateChannel.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationChannelOperationMetadata

The result of polling the operation.

PollOnceUpdateChannelAsync(string, CallSettings)

public virtual Task<Operation<Channel, OperationMetadata>> PollOnceUpdateChannelAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdateChannel.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationChannelOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateTrigger(string, CallSettings)

public virtual Operation<Trigger, OperationMetadata> PollOnceUpdateTrigger(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UpdateTrigger.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationTriggerOperationMetadata

The result of polling the operation.

PollOnceUpdateTriggerAsync(string, CallSettings)

public virtual Task<Operation<Trigger, OperationMetadata>> PollOnceUpdateTriggerAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdateTrigger.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationTriggerOperationMetadata

A task representing the result of polling the operation.

ShutdownDefaultChannelsAsync()

public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.

Returns
Type Description
Task

A task representing the asynchronous shutdown operation.

Remarks

After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.

UpdateChannel(Channel, FieldMask, CallSettings)

public virtual Operation<Channel, OperationMetadata> UpdateChannel(Channel channel, FieldMask updateMask, CallSettings callSettings = null)

Update a single channel.

Parameters
Name Description
channel Channel

The channel to be updated.

updateMask FieldMask

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 "*".

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationChannelOperationMetadata

The RPC response.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
Channel channel = new Channel();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Channel, OperationMetadata> response = eventarcClient.UpdateChannel(channel, updateMask);

// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Channel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = eventarcClient.PollOnceUpdateChannel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Channel retrievedResult = retrievedResponse.Result;
}

UpdateChannel(UpdateChannelRequest, CallSettings)

public virtual Operation<Channel, OperationMetadata> UpdateChannel(UpdateChannelRequest request, CallSettings callSettings = null)

Update a single channel.

Parameters
Name Description
request UpdateChannelRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationChannelOperationMetadata

The RPC response.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
UpdateChannelRequest request = new UpdateChannelRequest
{
    Channel = new Channel(),
    UpdateMask = new FieldMask(),
    ValidateOnly = false,
};
// Make the request
Operation<Channel, OperationMetadata> response = eventarcClient.UpdateChannel(request);

// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Channel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = eventarcClient.PollOnceUpdateChannel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Channel retrievedResult = retrievedResponse.Result;
}

UpdateChannelAsync(Channel, FieldMask, CallSettings)

public virtual Task<Operation<Channel, OperationMetadata>> UpdateChannelAsync(Channel channel, FieldMask updateMask, CallSettings callSettings = null)

Update a single channel.

Parameters
Name Description
channel Channel

The channel to be updated.

updateMask FieldMask

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 "*".

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationChannelOperationMetadata

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
Channel channel = new Channel();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Channel, OperationMetadata> response = await eventarcClient.UpdateChannelAsync(channel, updateMask);

// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Channel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceUpdateChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Channel retrievedResult = retrievedResponse.Result;
}

UpdateChannelAsync(Channel, FieldMask, CancellationToken)

public virtual Task<Operation<Channel, OperationMetadata>> UpdateChannelAsync(Channel channel, FieldMask updateMask, CancellationToken cancellationToken)

Update a single channel.

Parameters
Name Description
channel Channel

The channel to be updated.

updateMask FieldMask

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 "*".

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationChannelOperationMetadata

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
Channel channel = new Channel();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Channel, OperationMetadata> response = await eventarcClient.UpdateChannelAsync(channel, updateMask);

// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Channel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceUpdateChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Channel retrievedResult = retrievedResponse.Result;
}

UpdateChannelAsync(UpdateChannelRequest, CallSettings)

public virtual Task<Operation<Channel, OperationMetadata>> UpdateChannelAsync(UpdateChannelRequest request, CallSettings callSettings = null)

Update a single channel.

Parameters
Name Description
request UpdateChannelRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationChannelOperationMetadata

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
UpdateChannelRequest request = new UpdateChannelRequest
{
    Channel = new Channel(),
    UpdateMask = new FieldMask(),
    ValidateOnly = false,
};
// Make the request
Operation<Channel, OperationMetadata> response = await eventarcClient.UpdateChannelAsync(request);

// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Channel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceUpdateChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Channel retrievedResult = retrievedResponse.Result;
}

UpdateChannelAsync(UpdateChannelRequest, CancellationToken)

public virtual Task<Operation<Channel, OperationMetadata>> UpdateChannelAsync(UpdateChannelRequest request, CancellationToken cancellationToken)

Update a single channel.

Parameters
Name Description
request UpdateChannelRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationChannelOperationMetadata

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
UpdateChannelRequest request = new UpdateChannelRequest
{
    Channel = new Channel(),
    UpdateMask = new FieldMask(),
    ValidateOnly = false,
};
// Make the request
Operation<Channel, OperationMetadata> response = await eventarcClient.UpdateChannelAsync(request);

// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Channel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceUpdateChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Channel retrievedResult = retrievedResponse.Result;
}

UpdateGoogleChannelConfig(GoogleChannelConfig, FieldMask, CallSettings)

public virtual GoogleChannelConfig UpdateGoogleChannelConfig(GoogleChannelConfig googleChannelConfig, FieldMask updateMask, CallSettings callSettings = null)

Update a single GoogleChannelConfig

Parameters
Name Description
googleChannelConfig GoogleChannelConfig

Required. The config to be updated.

updateMask FieldMask

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 "*".

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GoogleChannelConfig

The RPC response.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
GoogleChannelConfig googleChannelConfig = new GoogleChannelConfig();
FieldMask updateMask = new FieldMask();
// Make the request
GoogleChannelConfig response = eventarcClient.UpdateGoogleChannelConfig(googleChannelConfig, updateMask);

UpdateGoogleChannelConfig(UpdateGoogleChannelConfigRequest, CallSettings)

public virtual GoogleChannelConfig UpdateGoogleChannelConfig(UpdateGoogleChannelConfigRequest request, CallSettings callSettings = null)

Update a single GoogleChannelConfig

Parameters
Name Description
request UpdateGoogleChannelConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GoogleChannelConfig

The RPC response.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
UpdateGoogleChannelConfigRequest request = new UpdateGoogleChannelConfigRequest
{
    GoogleChannelConfig = new GoogleChannelConfig(),
    UpdateMask = new FieldMask(),
};
// Make the request
GoogleChannelConfig response = eventarcClient.UpdateGoogleChannelConfig(request);

UpdateGoogleChannelConfigAsync(GoogleChannelConfig, FieldMask, CallSettings)

public virtual Task<GoogleChannelConfig> UpdateGoogleChannelConfigAsync(GoogleChannelConfig googleChannelConfig, FieldMask updateMask, CallSettings callSettings = null)

Update a single GoogleChannelConfig

Parameters
Name Description
googleChannelConfig GoogleChannelConfig

Required. The config to be updated.

updateMask FieldMask

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 "*".

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGoogleChannelConfig

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
GoogleChannelConfig googleChannelConfig = new GoogleChannelConfig();
FieldMask updateMask = new FieldMask();
// Make the request
GoogleChannelConfig response = await eventarcClient.UpdateGoogleChannelConfigAsync(googleChannelConfig, updateMask);

UpdateGoogleChannelConfigAsync(GoogleChannelConfig, FieldMask, CancellationToken)

public virtual Task<GoogleChannelConfig> UpdateGoogleChannelConfigAsync(GoogleChannelConfig googleChannelConfig, FieldMask updateMask, CancellationToken cancellationToken)

Update a single GoogleChannelConfig

Parameters
Name Description
googleChannelConfig GoogleChannelConfig

Required. The config to be updated.

updateMask FieldMask

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 "*".

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGoogleChannelConfig

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
GoogleChannelConfig googleChannelConfig = new GoogleChannelConfig();
FieldMask updateMask = new FieldMask();
// Make the request
GoogleChannelConfig response = await eventarcClient.UpdateGoogleChannelConfigAsync(googleChannelConfig, updateMask);

UpdateGoogleChannelConfigAsync(UpdateGoogleChannelConfigRequest, CallSettings)

public virtual Task<GoogleChannelConfig> UpdateGoogleChannelConfigAsync(UpdateGoogleChannelConfigRequest request, CallSettings callSettings = null)

Update a single GoogleChannelConfig

Parameters
Name Description
request UpdateGoogleChannelConfigRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGoogleChannelConfig

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
UpdateGoogleChannelConfigRequest request = new UpdateGoogleChannelConfigRequest
{
    GoogleChannelConfig = new GoogleChannelConfig(),
    UpdateMask = new FieldMask(),
};
// Make the request
GoogleChannelConfig response = await eventarcClient.UpdateGoogleChannelConfigAsync(request);

UpdateGoogleChannelConfigAsync(UpdateGoogleChannelConfigRequest, CancellationToken)

public virtual Task<GoogleChannelConfig> UpdateGoogleChannelConfigAsync(UpdateGoogleChannelConfigRequest request, CancellationToken cancellationToken)

Update a single GoogleChannelConfig

Parameters
Name Description
request UpdateGoogleChannelConfigRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGoogleChannelConfig

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
UpdateGoogleChannelConfigRequest request = new UpdateGoogleChannelConfigRequest
{
    GoogleChannelConfig = new GoogleChannelConfig(),
    UpdateMask = new FieldMask(),
};
// Make the request
GoogleChannelConfig response = await eventarcClient.UpdateGoogleChannelConfigAsync(request);

UpdateTrigger(Trigger, FieldMask, bool, CallSettings)

public virtual Operation<Trigger, OperationMetadata> UpdateTrigger(Trigger trigger, FieldMask updateMask, bool allowMissing, CallSettings callSettings = null)

Update a single trigger.

Parameters
Name Description
trigger Trigger

The trigger to be updated.

updateMask FieldMask

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 "*".

allowMissing bool

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationTriggerOperationMetadata

The RPC response.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
Trigger trigger = new Trigger();
FieldMask updateMask = new FieldMask();
bool allowMissing = false;
// Make the request
Operation<Trigger, OperationMetadata> response = eventarcClient.UpdateTrigger(trigger, updateMask, allowMissing);

// Poll until the returned long-running operation is complete
Operation<Trigger, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Trigger result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Trigger, OperationMetadata> retrievedResponse = eventarcClient.PollOnceUpdateTrigger(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Trigger retrievedResult = retrievedResponse.Result;
}

UpdateTrigger(UpdateTriggerRequest, CallSettings)

public virtual Operation<Trigger, OperationMetadata> UpdateTrigger(UpdateTriggerRequest request, CallSettings callSettings = null)

Update a single trigger.

Parameters
Name Description
request UpdateTriggerRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationTriggerOperationMetadata

The RPC response.

Example
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
UpdateTriggerRequest request = new UpdateTriggerRequest
{
    Trigger = new Trigger(),
    UpdateMask = new FieldMask(),
    AllowMissing = false,
    ValidateOnly = false,
};
// Make the request
Operation<Trigger, OperationMetadata> response = eventarcClient.UpdateTrigger(request);

// Poll until the returned long-running operation is complete
Operation<Trigger, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Trigger result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Trigger, OperationMetadata> retrievedResponse = eventarcClient.PollOnceUpdateTrigger(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Trigger retrievedResult = retrievedResponse.Result;
}

UpdateTriggerAsync(Trigger, FieldMask, bool, CallSettings)

public virtual Task<Operation<Trigger, OperationMetadata>> UpdateTriggerAsync(Trigger trigger, FieldMask updateMask, bool allowMissing, CallSettings callSettings = null)

Update a single trigger.

Parameters
Name Description
trigger Trigger

The trigger to be updated.

updateMask FieldMask

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 "*".

allowMissing bool

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationTriggerOperationMetadata

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
Trigger trigger = new Trigger();
FieldMask updateMask = new FieldMask();
bool allowMissing = false;
// Make the request
Operation<Trigger, OperationMetadata> response = await eventarcClient.UpdateTriggerAsync(trigger, updateMask, allowMissing);

// Poll until the returned long-running operation is complete
Operation<Trigger, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Trigger result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Trigger, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceUpdateTriggerAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Trigger retrievedResult = retrievedResponse.Result;
}

UpdateTriggerAsync(Trigger, FieldMask, bool, CancellationToken)

public virtual Task<Operation<Trigger, OperationMetadata>> UpdateTriggerAsync(Trigger trigger, FieldMask updateMask, bool allowMissing, CancellationToken cancellationToken)

Update a single trigger.

Parameters
Name Description
trigger Trigger

The trigger to be updated.

updateMask FieldMask

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 "*".

allowMissing bool

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationTriggerOperationMetadata

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
Trigger trigger = new Trigger();
FieldMask updateMask = new FieldMask();
bool allowMissing = false;
// Make the request
Operation<Trigger, OperationMetadata> response = await eventarcClient.UpdateTriggerAsync(trigger, updateMask, allowMissing);

// Poll until the returned long-running operation is complete
Operation<Trigger, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Trigger result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Trigger, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceUpdateTriggerAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Trigger retrievedResult = retrievedResponse.Result;
}

UpdateTriggerAsync(UpdateTriggerRequest, CallSettings)

public virtual Task<Operation<Trigger, OperationMetadata>> UpdateTriggerAsync(UpdateTriggerRequest request, CallSettings callSettings = null)

Update a single trigger.

Parameters
Name Description
request UpdateTriggerRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationTriggerOperationMetadata

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
UpdateTriggerRequest request = new UpdateTriggerRequest
{
    Trigger = new Trigger(),
    UpdateMask = new FieldMask(),
    AllowMissing = false,
    ValidateOnly = false,
};
// Make the request
Operation<Trigger, OperationMetadata> response = await eventarcClient.UpdateTriggerAsync(request);

// Poll until the returned long-running operation is complete
Operation<Trigger, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Trigger result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Trigger, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceUpdateTriggerAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Trigger retrievedResult = retrievedResponse.Result;
}

UpdateTriggerAsync(UpdateTriggerRequest, CancellationToken)

public virtual Task<Operation<Trigger, OperationMetadata>> UpdateTriggerAsync(UpdateTriggerRequest request, CancellationToken cancellationToken)

Update a single trigger.

Parameters
Name Description
request UpdateTriggerRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationTriggerOperationMetadata

A Task containing the RPC response.

Example
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
UpdateTriggerRequest request = new UpdateTriggerRequest
{
    Trigger = new Trigger(),
    UpdateMask = new FieldMask(),
    AllowMissing = false,
    ValidateOnly = false,
};
// Make the request
Operation<Trigger, OperationMetadata> response = await eventarcClient.UpdateTriggerAsync(request);

// Poll until the returned long-running operation is complete
Operation<Trigger, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Trigger result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Trigger, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceUpdateTriggerAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Trigger retrievedResult = retrievedResponse.Result;
}