public abstract class EventarcClient
Eventarc client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.Eventarc.V1Assembly
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 |
IReadOnlyList<String> |
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 |
Eventarc.EventarcClient |
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(CancellationToken))
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 |
Task<EventarcClient> | 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 |
Operation<Channel, OperationMetadata> | The RPC response. |
// 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 |
Operation<Channel, OperationMetadata> | The RPC response. |
// 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 |
Operation<Channel, OperationMetadata> | The RPC response. |
// 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 |
Task<Operation<Channel, OperationMetadata>> | A Task containing the RPC response. |
// 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 |
Task<Operation<Channel, OperationMetadata>> | A Task containing the RPC response. |
// 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 |
Task<Operation<Channel, OperationMetadata>> | A Task containing the RPC response. |
// 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 |
Task<Operation<Channel, OperationMetadata>> | A Task containing the RPC response. |
// 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 |
Task<Operation<Channel, OperationMetadata>> | A Task containing the RPC response. |
// 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 |
Task<Operation<Channel, OperationMetadata>> | A Task containing the RPC response. |
// 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 |
Operation<ChannelConnection, OperationMetadata> | The RPC response. |
// 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 |
Operation<ChannelConnection, OperationMetadata> | The RPC response. |
// 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 |
Operation<ChannelConnection, OperationMetadata> | The RPC response. |
// 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 |
Task<Operation<ChannelConnection, OperationMetadata>> | A Task containing the RPC response. |
// 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 |
Task<Operation<ChannelConnection, OperationMetadata>> | A Task containing the RPC response. |
// 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 |
Task<Operation<ChannelConnection, OperationMetadata>> | A Task containing the RPC response. |
// 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 |
Task<Operation<ChannelConnection, OperationMetadata>> | A Task containing the RPC response. |
// 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 |
Task<Operation<ChannelConnection, OperationMetadata>> | A Task containing the RPC response. |
// 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 |
Task<Operation<ChannelConnection, OperationMetadata>> | A Task containing the RPC response. |
// 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 |
Operation<Trigger, OperationMetadata> | The RPC response. |
// 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 |
Operation<Trigger, OperationMetadata> | The RPC response. |
// 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 |
Operation<Trigger, OperationMetadata> | The RPC response. |
// 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 |
Task<Operation<Trigger, OperationMetadata>> | A Task containing the RPC response. |
// 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 |
Task<Operation<Trigger, OperationMetadata>> | A Task containing the RPC response. |
// 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 |
Task<Operation<Trigger, OperationMetadata>> | A Task containing the RPC response. |
// 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 |
Task<Operation<Trigger, OperationMetadata>> | A Task containing the RPC response. |
// 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 |
Task<Operation<Trigger, OperationMetadata>> | A Task containing the RPC response. |
// 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 |
Task<Operation<Trigger, OperationMetadata>> | A Task containing the RPC response. |
// 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 |
Operation<Channel, OperationMetadata> | The RPC response. |
// 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 |
Operation<Channel, OperationMetadata> | The RPC response. |
// 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 |
Operation<Channel, OperationMetadata> | The RPC response. |
// 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 |
Task<Operation<Channel, OperationMetadata>> | A Task containing the RPC response. |
// 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 |
Task<Operation<Channel, OperationMetadata>> | A Task containing the RPC response. |
// 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 |
Task<Operation<Channel, OperationMetadata>> | A Task containing the RPC response. |
// 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 |
Task<Operation<Channel, OperationMetadata>> | A Task containing the RPC response. |
// 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 |
Task<Operation<Channel, OperationMetadata>> | A Task containing the RPC response. |
// 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 |
Task<Operation<Channel, OperationMetadata>> | A Task containing the RPC response. |
// 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 |
Operation<ChannelConnection, OperationMetadata> | The RPC response. |
// 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 |
Operation<ChannelConnection, OperationMetadata> | The RPC response. |
// 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 |
Operation<ChannelConnection, OperationMetadata> | The RPC response. |
// 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 |
Task<Operation<ChannelConnection, OperationMetadata>> | A Task containing the RPC response. |
// 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 |
Task<Operation<ChannelConnection, OperationMetadata>> | A Task containing the RPC response. |
// 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 |
Task<Operation<ChannelConnection, OperationMetadata>> | A Task containing the RPC response. |
// 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 |
Task<Operation<ChannelConnection, OperationMetadata>> | A Task containing the RPC response. |
// 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 |
Task<Operation<ChannelConnection, OperationMetadata>> | A Task containing the RPC response. |
// 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 |
Task<Operation<ChannelConnection, OperationMetadata>> | A Task containing the RPC response. |
// 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 |
Operation<Trigger, OperationMetadata> | The RPC response. |
// 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, Boolean, 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 | Boolean 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 |
Operation<Trigger, OperationMetadata> | The RPC response. |
// 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, Boolean, 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 | Boolean 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 |
Operation<Trigger, OperationMetadata> | The RPC response. |
// 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 |
Task<Operation<Trigger, OperationMetadata>> | A Task containing the RPC response. |
// 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 |
Task<Operation<Trigger, OperationMetadata>> | A Task containing the RPC response. |
// 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, Boolean, 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 | Boolean 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 |
Task<Operation<Trigger, OperationMetadata>> | A Task containing the RPC response. |
// 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, Boolean, 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 | Boolean 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 |
Task<Operation<Trigger, OperationMetadata>> | A Task containing the RPC response. |
// 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, Boolean, 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 | Boolean 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 |
Task<Operation<Trigger, OperationMetadata>> | A Task containing the RPC response. |
// 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, Boolean, 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 | Boolean 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 |
Task<Operation<Trigger, OperationMetadata>> | A Task containing the RPC response. |
// 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. |
// 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. |
// 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. |
// 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 |
Task<Channel> | A Task containing the RPC response. |
// 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 |
Task<Channel> | A Task containing the RPC response. |
// 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 |
Task<Channel> | A Task containing the RPC response. |
// 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 |
Task<Channel> | A Task containing the RPC response. |
// 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 |
Task<Channel> | A Task containing the RPC response. |
// 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 |
Task<Channel> | A Task containing the RPC response. |
// 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. |
// 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. |
// 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. |
// 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 |
Task<ChannelConnection> | A Task containing the RPC response. |
// 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 |
Task<ChannelConnection> | A Task containing the RPC response. |
// 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 |
Task<ChannelConnection> | A Task containing the RPC response. |
// 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 |
Task<ChannelConnection> | A Task containing the RPC response. |
// 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 |
Task<ChannelConnection> | A Task containing the RPC response. |
// 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 |
Task<ChannelConnection> | A Task containing the RPC response. |
// 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);
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. |
// 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. |
// 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. |
// 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 |
Task<Provider> | A Task containing the RPC response. |
// 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 |
Task<Provider> | A Task containing the RPC response. |
// 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 |
Task<Provider> | A Task containing the RPC response. |
// 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 |
Task<Provider> | A Task containing the RPC response. |
// 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 |
Task<Provider> | A Task containing the RPC response. |
// 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 |
Task<Provider> | A Task containing the RPC response. |
// 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. |
// 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. |
// 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. |
// 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 |
Task<Trigger> | A Task containing the RPC response. |
// 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 |
Task<Trigger> | A Task containing the RPC response. |
// 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 |
Task<Trigger> | A Task containing the RPC response. |
// 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 |
Task<Trigger> | A Task containing the RPC response. |
// 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 |
Task<Trigger> | A Task containing the RPC response. |
// 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 |
Task<Trigger> | A Task containing the RPC response. |
// 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, Nullable<Int32>, 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 |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListChannelConnectionsResponse, ChannelConnection> | A pageable sequence of ChannelConnection resources. |
// 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 |
PagedEnumerable<ListChannelConnectionsResponse, ChannelConnection> | A pageable sequence of ChannelConnection resources. |
// 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, Nullable<Int32>, 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 |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListChannelConnectionsResponse, ChannelConnection> | A pageable sequence of ChannelConnection resources. |
// 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, Nullable<Int32>, 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 |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListChannelConnectionsResponse, ChannelConnection> | A pageable asynchronous sequence of ChannelConnection resources. |
// 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 |
PagedAsyncEnumerable<ListChannelConnectionsResponse, ChannelConnection> | A pageable asynchronous sequence of ChannelConnection resources. |
// 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, Nullable<Int32>, 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 |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListChannelConnectionsResponse, ChannelConnection> | A pageable asynchronous sequence of ChannelConnection resources. |
// 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, Nullable<Int32>, 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 |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListChannelsResponse, Channel> | A pageable sequence of Channel resources. |
// 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 |
PagedEnumerable<ListChannelsResponse, Channel> | A pageable sequence of Channel resources. |
// 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, Nullable<Int32>, 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 |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListChannelsResponse, Channel> | A pageable sequence of Channel resources. |
// 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, Nullable<Int32>, 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 |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListChannelsResponse, Channel> | A pageable asynchronous sequence of Channel resources. |
// 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 |
PagedAsyncEnumerable<ListChannelsResponse, Channel> | A pageable asynchronous sequence of Channel resources. |
// 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, Nullable<Int32>, 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 |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListChannelsResponse, Channel> | A pageable asynchronous sequence of Channel resources. |
// 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, Nullable<Int32>, 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 |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListProvidersResponse, Provider> | A pageable sequence of Provider resources. |
// 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 |
PagedEnumerable<ListProvidersResponse, Provider> | A pageable sequence of Provider resources. |
// 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, Nullable<Int32>, 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 |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListProvidersResponse, Provider> | A pageable sequence of Provider resources. |
// 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, Nullable<Int32>, 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 |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListProvidersResponse, Provider> | A pageable asynchronous sequence of Provider resources. |
// 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 |
PagedAsyncEnumerable<ListProvidersResponse, Provider> | A pageable asynchronous sequence of Provider resources. |
// 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, Nullable<Int32>, 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 |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListProvidersResponse, Provider> | A pageable asynchronous sequence of Provider resources. |
// 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, Nullable<Int32>, 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 |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListTriggersResponse, Trigger> | A pageable sequence of Trigger resources. |
// 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 |
PagedEnumerable<ListTriggersResponse, Trigger> | A pageable sequence of Trigger resources. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
ListTriggersRequest request = new ListTriggersRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
OrderBy = "",
};
// 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, Nullable<Int32>, 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 |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListTriggersResponse, Trigger> | A pageable sequence of Trigger resources. |
// 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, Nullable<Int32>, 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 |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListTriggersResponse, Trigger> | A pageable asynchronous sequence of Trigger resources. |
// 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 |
PagedAsyncEnumerable<ListTriggersResponse, Trigger> | A pageable asynchronous sequence of Trigger resources. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
ListTriggersRequest request = new ListTriggersRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
OrderBy = "",
};
// 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, Nullable<Int32>, 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 |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListTriggersResponse, Trigger> | A pageable asynchronous sequence of Trigger resources. |
// 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 |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Channel, OperationMetadata> | 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 |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Channel, OperationMetadata>> | 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 |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<ChannelConnection, OperationMetadata> | 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 |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<ChannelConnection, OperationMetadata>> | 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 |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Trigger, OperationMetadata> | 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 |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Trigger, OperationMetadata>> | 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 |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Channel, OperationMetadata> | 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 |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Channel, OperationMetadata>> | 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 |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<ChannelConnection, OperationMetadata> | 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 |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<ChannelConnection, OperationMetadata>> | 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 |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Trigger, OperationMetadata> | 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 |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Trigger, OperationMetadata>> | 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 |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Channel, OperationMetadata> | 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 |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Channel, OperationMetadata>> | 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 |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Trigger, OperationMetadata> | 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 |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Trigger, OperationMetadata>> | 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. |
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 |
Operation<Channel, OperationMetadata> | The RPC response. |
// 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 |
Operation<Channel, OperationMetadata> | The RPC response. |
// 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 |
Task<Operation<Channel, OperationMetadata>> | A Task containing the RPC response. |
// 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 |
Task<Operation<Channel, OperationMetadata>> | A Task containing the RPC response. |
// 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 |
Task<Operation<Channel, OperationMetadata>> | A Task containing the RPC response. |
// 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 |
Task<Operation<Channel, OperationMetadata>> | A Task containing the RPC response. |
// 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;
}
UpdateTrigger(Trigger, FieldMask, Boolean, 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 | Boolean If set to true, and the trigger is not found, a new trigger will be
created. In this situation, |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Trigger, OperationMetadata> | The RPC response. |
// 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 |
Operation<Trigger, OperationMetadata> | The RPC response. |
// 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, Boolean, 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 | Boolean If set to true, and the trigger is not found, a new trigger will be
created. In this situation, |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Trigger, OperationMetadata>> | A Task containing the RPC response. |
// 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, Boolean, 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 | Boolean If set to true, and the trigger is not found, a new trigger will be
created. In this situation, |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Trigger, OperationMetadata>> | A Task containing the RPC response. |
// 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 |
Task<Operation<Trigger, OperationMetadata>> | A Task containing the RPC response. |
// 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 |
Task<Operation<Trigger, OperationMetadata>> | A Task containing the RPC response. |
// 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;
}