public abstract class EventarcClient
Reference documentation and code samples for the Eventarc v1 API 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 |
CreateEnrollmentOperationsClient
public virtual OperationsClient CreateEnrollmentOperationsClient { get; }
The long-running operations client for CreateEnrollment
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
CreateGoogleApiSourceOperationsClient
public virtual OperationsClient CreateGoogleApiSourceOperationsClient { get; }
The long-running operations client for CreateGoogleApiSource
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
CreateMessageBusOperationsClient
public virtual OperationsClient CreateMessageBusOperationsClient { get; }
The long-running operations client for CreateMessageBus
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
CreatePipelineOperationsClient
public virtual OperationsClient CreatePipelineOperationsClient { get; }
The long-running operations client for CreatePipeline
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
CreateTriggerOperationsClient
public virtual OperationsClient CreateTriggerOperationsClient { get; }
The long-running operations client for CreateTrigger
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DefaultEndpoint
public static string DefaultEndpoint { get; }
The default endpoint for the Eventarc service, which is a host of "eventarc.googleapis.com" and a port of 443.
Property Value | |
---|---|
Type | Description |
string |
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }
The default Eventarc scopes.
Property Value | |
---|---|
Type | Description |
IReadOnlyListstring |
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 |
DeleteEnrollmentOperationsClient
public virtual OperationsClient DeleteEnrollmentOperationsClient { get; }
The long-running operations client for DeleteEnrollment
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DeleteGoogleApiSourceOperationsClient
public virtual OperationsClient DeleteGoogleApiSourceOperationsClient { get; }
The long-running operations client for DeleteGoogleApiSource
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DeleteMessageBusOperationsClient
public virtual OperationsClient DeleteMessageBusOperationsClient { get; }
The long-running operations client for DeleteMessageBus
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DeletePipelineOperationsClient
public virtual OperationsClient DeletePipelineOperationsClient { get; }
The long-running operations client for DeletePipeline
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DeleteTriggerOperationsClient
public virtual OperationsClient DeleteTriggerOperationsClient { get; }
The long-running operations client for DeleteTrigger
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
GrpcClient
public virtual Eventarc.EventarcClient GrpcClient { get; }
The underlying gRPC Eventarc client
Property Value | |
---|---|
Type | Description |
EventarcEventarcClient |
IAMPolicyClient
public virtual IAMPolicyClient IAMPolicyClient { get; }
The IAMPolicyClient associated with this client.
Property Value | |
---|---|
Type | Description |
IAMPolicyClient |
LocationsClient
public virtual LocationsClient LocationsClient { get; }
The LocationsClient associated with this client.
Property Value | |
---|---|
Type | Description |
LocationsClient |
ServiceMetadata
public static ServiceMetadata ServiceMetadata { get; }
The service metadata associated with this client type.
Property Value | |
---|---|
Type | Description |
ServiceMetadata |
UpdateChannelOperationsClient
public virtual OperationsClient UpdateChannelOperationsClient { get; }
The long-running operations client for UpdateChannel
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
UpdateEnrollmentOperationsClient
public virtual OperationsClient UpdateEnrollmentOperationsClient { get; }
The long-running operations client for UpdateEnrollment
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
UpdateGoogleApiSourceOperationsClient
public virtual OperationsClient UpdateGoogleApiSourceOperationsClient { get; }
The long-running operations client for UpdateGoogleApiSource
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
UpdateMessageBusOperationsClient
public virtual OperationsClient UpdateMessageBusOperationsClient { get; }
The long-running operations client for UpdateMessageBus
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
UpdatePipelineOperationsClient
public virtual OperationsClient UpdatePipelineOperationsClient { get; }
The long-running operations client for UpdatePipeline
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
UpdateTriggerOperationsClient
public virtual OperationsClient UpdateTriggerOperationsClient { get; }
The long-running operations client for UpdateTrigger
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
Methods
Create()
public static EventarcClient Create()
Synchronously creates a EventarcClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use EventarcClientBuilder.
Returns | |
---|---|
Type | Description |
EventarcClient |
The created EventarcClient. |
CreateAsync(CancellationToken)
public static Task<EventarcClient> CreateAsync(CancellationToken cancellationToken = default)
Asynchronously creates a EventarcClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use EventarcClientBuilder.
Parameter | |
---|---|
Name | Description |
cancellationToken |
CancellationToken The CancellationToken to use while creating the client. |
Returns | |
---|---|
Type | Description |
TaskEventarcClient |
The task representing the created EventarcClient. |
CreateChannel(LocationName, Channel, string, CallSettings)
public virtual Operation<Channel, OperationMetadata> CreateChannel(LocationName parent, Channel channel, string channelId, CallSettings callSettings = null)
Create a new channel in a particular project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent collection in which to add this channel. |
channel |
Channel Required. The channel to create. |
channelId |
string Required. The user-provided ID to be assigned to the channel. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationChannelOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Channel channel = new Channel();
string channelId = "";
// Make the request
Operation<Channel, OperationMetadata> response = eventarcClient.CreateChannel(parent, channel, channelId);
// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Channel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = eventarcClient.PollOnceCreateChannel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Channel retrievedResult = retrievedResponse.Result;
}
CreateChannel(CreateChannelRequest, CallSettings)
public virtual Operation<Channel, OperationMetadata> CreateChannel(CreateChannelRequest request, CallSettings callSettings = null)
Create a new channel in a particular project and location.
Parameters | |
---|---|
Name | Description |
request |
CreateChannelRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationChannelOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
CreateChannelRequest request = new CreateChannelRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Channel = new Channel(),
ChannelId = "",
ValidateOnly = false,
};
// Make the request
Operation<Channel, OperationMetadata> response = eventarcClient.CreateChannel(request);
// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Channel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = eventarcClient.PollOnceCreateChannel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Channel retrievedResult = retrievedResponse.Result;
}
CreateChannel(string, Channel, string, CallSettings)
public virtual Operation<Channel, OperationMetadata> CreateChannel(string parent, Channel channel, string channelId, CallSettings callSettings = null)
Create a new channel in a particular project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent collection in which to add this channel. |
channel |
Channel Required. The channel to create. |
channelId |
string Required. The user-provided ID to be assigned to the channel. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationChannelOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Channel channel = new Channel();
string channelId = "";
// Make the request
Operation<Channel, OperationMetadata> response = eventarcClient.CreateChannel(parent, channel, channelId);
// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Channel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = eventarcClient.PollOnceCreateChannel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Channel retrievedResult = retrievedResponse.Result;
}
CreateChannelAsync(LocationName, Channel, string, CallSettings)
public virtual Task<Operation<Channel, OperationMetadata>> CreateChannelAsync(LocationName parent, Channel channel, string channelId, CallSettings callSettings = null)
Create a new channel in a particular project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent collection in which to add this channel. |
channel |
Channel Required. The channel to create. |
channelId |
string Required. The user-provided ID to be assigned to the channel. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationChannelOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Channel channel = new Channel();
string channelId = "";
// Make the request
Operation<Channel, OperationMetadata> response = await eventarcClient.CreateChannelAsync(parent, channel, channelId);
// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Channel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Channel retrievedResult = retrievedResponse.Result;
}
CreateChannelAsync(LocationName, Channel, string, CancellationToken)
public virtual Task<Operation<Channel, OperationMetadata>> CreateChannelAsync(LocationName parent, Channel channel, string channelId, CancellationToken cancellationToken)
Create a new channel in a particular project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent collection in which to add this channel. |
channel |
Channel Required. The channel to create. |
channelId |
string Required. The user-provided ID to be assigned to the channel. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationChannelOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Channel channel = new Channel();
string channelId = "";
// Make the request
Operation<Channel, OperationMetadata> response = await eventarcClient.CreateChannelAsync(parent, channel, channelId);
// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Channel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Channel retrievedResult = retrievedResponse.Result;
}
CreateChannelAsync(CreateChannelRequest, CallSettings)
public virtual Task<Operation<Channel, OperationMetadata>> CreateChannelAsync(CreateChannelRequest request, CallSettings callSettings = null)
Create a new channel in a particular project and location.
Parameters | |
---|---|
Name | Description |
request |
CreateChannelRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationChannelOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
CreateChannelRequest request = new CreateChannelRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Channel = new Channel(),
ChannelId = "",
ValidateOnly = false,
};
// Make the request
Operation<Channel, OperationMetadata> response = await eventarcClient.CreateChannelAsync(request);
// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Channel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Channel retrievedResult = retrievedResponse.Result;
}
CreateChannelAsync(CreateChannelRequest, CancellationToken)
public virtual Task<Operation<Channel, OperationMetadata>> CreateChannelAsync(CreateChannelRequest request, CancellationToken cancellationToken)
Create a new channel in a particular project and location.
Parameters | |
---|---|
Name | Description |
request |
CreateChannelRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationChannelOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
CreateChannelRequest request = new CreateChannelRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Channel = new Channel(),
ChannelId = "",
ValidateOnly = false,
};
// Make the request
Operation<Channel, OperationMetadata> response = await eventarcClient.CreateChannelAsync(request);
// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Channel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Channel retrievedResult = retrievedResponse.Result;
}
CreateChannelAsync(string, Channel, string, CallSettings)
public virtual Task<Operation<Channel, OperationMetadata>> CreateChannelAsync(string parent, Channel channel, string channelId, CallSettings callSettings = null)
Create a new channel in a particular project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent collection in which to add this channel. |
channel |
Channel Required. The channel to create. |
channelId |
string Required. The user-provided ID to be assigned to the channel. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationChannelOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Channel channel = new Channel();
string channelId = "";
// Make the request
Operation<Channel, OperationMetadata> response = await eventarcClient.CreateChannelAsync(parent, channel, channelId);
// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Channel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Channel retrievedResult = retrievedResponse.Result;
}
CreateChannelAsync(string, Channel, string, CancellationToken)
public virtual Task<Operation<Channel, OperationMetadata>> CreateChannelAsync(string parent, Channel channel, string channelId, CancellationToken cancellationToken)
Create a new channel in a particular project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent collection in which to add this channel. |
channel |
Channel Required. The channel to create. |
channelId |
string Required. The user-provided ID to be assigned to the channel. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationChannelOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Channel channel = new Channel();
string channelId = "";
// Make the request
Operation<Channel, OperationMetadata> response = await eventarcClient.CreateChannelAsync(parent, channel, channelId);
// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Channel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Channel retrievedResult = retrievedResponse.Result;
}
CreateChannelConnection(LocationName, ChannelConnection, string, CallSettings)
public virtual Operation<ChannelConnection, OperationMetadata> CreateChannelConnection(LocationName parent, ChannelConnection channelConnection, string channelConnectionId, CallSettings callSettings = null)
Create a new ChannelConnection in a particular project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent collection in which to add this channel connection. |
channelConnection |
ChannelConnection Required. Channel connection to create. |
channelConnectionId |
string Required. The user-provided ID to be assigned to the channel connection. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationChannelConnectionOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ChannelConnection channelConnection = new ChannelConnection();
string channelConnectionId = "";
// Make the request
Operation<ChannelConnection, OperationMetadata> response = eventarcClient.CreateChannelConnection(parent, channelConnection, channelConnectionId);
// Poll until the returned long-running operation is complete
Operation<ChannelConnection, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ChannelConnection result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelConnection, OperationMetadata> retrievedResponse = eventarcClient.PollOnceCreateChannelConnection(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ChannelConnection retrievedResult = retrievedResponse.Result;
}
CreateChannelConnection(CreateChannelConnectionRequest, CallSettings)
public virtual Operation<ChannelConnection, OperationMetadata> CreateChannelConnection(CreateChannelConnectionRequest request, CallSettings callSettings = null)
Create a new ChannelConnection in a particular project and location.
Parameters | |
---|---|
Name | Description |
request |
CreateChannelConnectionRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationChannelConnectionOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
CreateChannelConnectionRequest request = new CreateChannelConnectionRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
ChannelConnection = new ChannelConnection(),
ChannelConnectionId = "",
};
// Make the request
Operation<ChannelConnection, OperationMetadata> response = eventarcClient.CreateChannelConnection(request);
// Poll until the returned long-running operation is complete
Operation<ChannelConnection, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ChannelConnection result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelConnection, OperationMetadata> retrievedResponse = eventarcClient.PollOnceCreateChannelConnection(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ChannelConnection retrievedResult = retrievedResponse.Result;
}
CreateChannelConnection(string, ChannelConnection, string, CallSettings)
public virtual Operation<ChannelConnection, OperationMetadata> CreateChannelConnection(string parent, ChannelConnection channelConnection, string channelConnectionId, CallSettings callSettings = null)
Create a new ChannelConnection in a particular project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent collection in which to add this channel connection. |
channelConnection |
ChannelConnection Required. Channel connection to create. |
channelConnectionId |
string Required. The user-provided ID to be assigned to the channel connection. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationChannelConnectionOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ChannelConnection channelConnection = new ChannelConnection();
string channelConnectionId = "";
// Make the request
Operation<ChannelConnection, OperationMetadata> response = eventarcClient.CreateChannelConnection(parent, channelConnection, channelConnectionId);
// Poll until the returned long-running operation is complete
Operation<ChannelConnection, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ChannelConnection result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelConnection, OperationMetadata> retrievedResponse = eventarcClient.PollOnceCreateChannelConnection(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ChannelConnection retrievedResult = retrievedResponse.Result;
}
CreateChannelConnectionAsync(LocationName, ChannelConnection, string, CallSettings)
public virtual Task<Operation<ChannelConnection, OperationMetadata>> CreateChannelConnectionAsync(LocationName parent, ChannelConnection channelConnection, string channelConnectionId, CallSettings callSettings = null)
Create a new ChannelConnection in a particular project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent collection in which to add this channel connection. |
channelConnection |
ChannelConnection Required. Channel connection to create. |
channelConnectionId |
string Required. The user-provided ID to be assigned to the channel connection. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationChannelConnectionOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ChannelConnection channelConnection = new ChannelConnection();
string channelConnectionId = "";
// Make the request
Operation<ChannelConnection, OperationMetadata> response = await eventarcClient.CreateChannelConnectionAsync(parent, channelConnection, channelConnectionId);
// Poll until the returned long-running operation is complete
Operation<ChannelConnection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ChannelConnection result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelConnection, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateChannelConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ChannelConnection retrievedResult = retrievedResponse.Result;
}
CreateChannelConnectionAsync(LocationName, ChannelConnection, string, CancellationToken)
public virtual Task<Operation<ChannelConnection, OperationMetadata>> CreateChannelConnectionAsync(LocationName parent, ChannelConnection channelConnection, string channelConnectionId, CancellationToken cancellationToken)
Create a new ChannelConnection in a particular project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent collection in which to add this channel connection. |
channelConnection |
ChannelConnection Required. Channel connection to create. |
channelConnectionId |
string Required. The user-provided ID to be assigned to the channel connection. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationChannelConnectionOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ChannelConnection channelConnection = new ChannelConnection();
string channelConnectionId = "";
// Make the request
Operation<ChannelConnection, OperationMetadata> response = await eventarcClient.CreateChannelConnectionAsync(parent, channelConnection, channelConnectionId);
// Poll until the returned long-running operation is complete
Operation<ChannelConnection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ChannelConnection result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelConnection, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateChannelConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ChannelConnection retrievedResult = retrievedResponse.Result;
}
CreateChannelConnectionAsync(CreateChannelConnectionRequest, CallSettings)
public virtual Task<Operation<ChannelConnection, OperationMetadata>> CreateChannelConnectionAsync(CreateChannelConnectionRequest request, CallSettings callSettings = null)
Create a new ChannelConnection in a particular project and location.
Parameters | |
---|---|
Name | Description |
request |
CreateChannelConnectionRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationChannelConnectionOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
CreateChannelConnectionRequest request = new CreateChannelConnectionRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
ChannelConnection = new ChannelConnection(),
ChannelConnectionId = "",
};
// Make the request
Operation<ChannelConnection, OperationMetadata> response = await eventarcClient.CreateChannelConnectionAsync(request);
// Poll until the returned long-running operation is complete
Operation<ChannelConnection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ChannelConnection result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelConnection, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateChannelConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ChannelConnection retrievedResult = retrievedResponse.Result;
}
CreateChannelConnectionAsync(CreateChannelConnectionRequest, CancellationToken)
public virtual Task<Operation<ChannelConnection, OperationMetadata>> CreateChannelConnectionAsync(CreateChannelConnectionRequest request, CancellationToken cancellationToken)
Create a new ChannelConnection in a particular project and location.
Parameters | |
---|---|
Name | Description |
request |
CreateChannelConnectionRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationChannelConnectionOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
CreateChannelConnectionRequest request = new CreateChannelConnectionRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
ChannelConnection = new ChannelConnection(),
ChannelConnectionId = "",
};
// Make the request
Operation<ChannelConnection, OperationMetadata> response = await eventarcClient.CreateChannelConnectionAsync(request);
// Poll until the returned long-running operation is complete
Operation<ChannelConnection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ChannelConnection result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelConnection, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateChannelConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ChannelConnection retrievedResult = retrievedResponse.Result;
}
CreateChannelConnectionAsync(string, ChannelConnection, string, CallSettings)
public virtual Task<Operation<ChannelConnection, OperationMetadata>> CreateChannelConnectionAsync(string parent, ChannelConnection channelConnection, string channelConnectionId, CallSettings callSettings = null)
Create a new ChannelConnection in a particular project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent collection in which to add this channel connection. |
channelConnection |
ChannelConnection Required. Channel connection to create. |
channelConnectionId |
string Required. The user-provided ID to be assigned to the channel connection. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationChannelConnectionOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ChannelConnection channelConnection = new ChannelConnection();
string channelConnectionId = "";
// Make the request
Operation<ChannelConnection, OperationMetadata> response = await eventarcClient.CreateChannelConnectionAsync(parent, channelConnection, channelConnectionId);
// Poll until the returned long-running operation is complete
Operation<ChannelConnection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ChannelConnection result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelConnection, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateChannelConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ChannelConnection retrievedResult = retrievedResponse.Result;
}
CreateChannelConnectionAsync(string, ChannelConnection, string, CancellationToken)
public virtual Task<Operation<ChannelConnection, OperationMetadata>> CreateChannelConnectionAsync(string parent, ChannelConnection channelConnection, string channelConnectionId, CancellationToken cancellationToken)
Create a new ChannelConnection in a particular project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent collection in which to add this channel connection. |
channelConnection |
ChannelConnection Required. Channel connection to create. |
channelConnectionId |
string Required. The user-provided ID to be assigned to the channel connection. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationChannelConnectionOperationMetadata |
A Task containing the RPC response. |
// 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;
}
CreateEnrollment(LocationName, Enrollment, string, CallSettings)
public virtual Operation<Enrollment, OperationMetadata> CreateEnrollment(LocationName parent, Enrollment enrollment, string enrollmentId, CallSettings callSettings = null)
Create a new Enrollment in a particular project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent collection in which to add this enrollment. |
enrollment |
Enrollment Required. The enrollment to create. |
enrollmentId |
string Required. The user-provided ID to be assigned to the Enrollment. It should match the format (^a-z?$). |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEnrollmentOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Enrollment enrollment = new Enrollment();
string enrollmentId = "";
// Make the request
Operation<Enrollment, OperationMetadata> response = eventarcClient.CreateEnrollment(parent, enrollment, enrollmentId);
// Poll until the returned long-running operation is complete
Operation<Enrollment, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Enrollment 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<Enrollment, OperationMetadata> retrievedResponse = eventarcClient.PollOnceCreateEnrollment(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Enrollment retrievedResult = retrievedResponse.Result;
}
CreateEnrollment(CreateEnrollmentRequest, CallSettings)
public virtual Operation<Enrollment, OperationMetadata> CreateEnrollment(CreateEnrollmentRequest request, CallSettings callSettings = null)
Create a new Enrollment in a particular project and location.
Parameters | |
---|---|
Name | Description |
request |
CreateEnrollmentRequest 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 |
OperationEnrollmentOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
CreateEnrollmentRequest request = new CreateEnrollmentRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Enrollment = new Enrollment(),
EnrollmentId = "",
ValidateOnly = false,
};
// Make the request
Operation<Enrollment, OperationMetadata> response = eventarcClient.CreateEnrollment(request);
// Poll until the returned long-running operation is complete
Operation<Enrollment, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Enrollment 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<Enrollment, OperationMetadata> retrievedResponse = eventarcClient.PollOnceCreateEnrollment(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Enrollment retrievedResult = retrievedResponse.Result;
}
CreateEnrollment(string, Enrollment, string, CallSettings)
public virtual Operation<Enrollment, OperationMetadata> CreateEnrollment(string parent, Enrollment enrollment, string enrollmentId, CallSettings callSettings = null)
Create a new Enrollment in a particular project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent collection in which to add this enrollment. |
enrollment |
Enrollment Required. The enrollment to create. |
enrollmentId |
string Required. The user-provided ID to be assigned to the Enrollment. It should match the format (^a-z?$). |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEnrollmentOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Enrollment enrollment = new Enrollment();
string enrollmentId = "";
// Make the request
Operation<Enrollment, OperationMetadata> response = eventarcClient.CreateEnrollment(parent, enrollment, enrollmentId);
// Poll until the returned long-running operation is complete
Operation<Enrollment, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Enrollment 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<Enrollment, OperationMetadata> retrievedResponse = eventarcClient.PollOnceCreateEnrollment(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Enrollment retrievedResult = retrievedResponse.Result;
}
CreateEnrollmentAsync(LocationName, Enrollment, string, CallSettings)
public virtual Task<Operation<Enrollment, OperationMetadata>> CreateEnrollmentAsync(LocationName parent, Enrollment enrollment, string enrollmentId, CallSettings callSettings = null)
Create a new Enrollment in a particular project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent collection in which to add this enrollment. |
enrollment |
Enrollment Required. The enrollment to create. |
enrollmentId |
string Required. The user-provided ID to be assigned to the Enrollment. It should match the format (^a-z?$). |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEnrollmentOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Enrollment enrollment = new Enrollment();
string enrollmentId = "";
// Make the request
Operation<Enrollment, OperationMetadata> response = await eventarcClient.CreateEnrollmentAsync(parent, enrollment, enrollmentId);
// Poll until the returned long-running operation is complete
Operation<Enrollment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Enrollment 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<Enrollment, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateEnrollmentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Enrollment retrievedResult = retrievedResponse.Result;
}
CreateEnrollmentAsync(LocationName, Enrollment, string, CancellationToken)
public virtual Task<Operation<Enrollment, OperationMetadata>> CreateEnrollmentAsync(LocationName parent, Enrollment enrollment, string enrollmentId, CancellationToken cancellationToken)
Create a new Enrollment in a particular project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent collection in which to add this enrollment. |
enrollment |
Enrollment Required. The enrollment to create. |
enrollmentId |
string Required. The user-provided ID to be assigned to the Enrollment. It should match the format (^a-z?$). |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEnrollmentOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Enrollment enrollment = new Enrollment();
string enrollmentId = "";
// Make the request
Operation<Enrollment, OperationMetadata> response = await eventarcClient.CreateEnrollmentAsync(parent, enrollment, enrollmentId);
// Poll until the returned long-running operation is complete
Operation<Enrollment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Enrollment 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<Enrollment, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateEnrollmentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Enrollment retrievedResult = retrievedResponse.Result;
}
CreateEnrollmentAsync(CreateEnrollmentRequest, CallSettings)
public virtual Task<Operation<Enrollment, OperationMetadata>> CreateEnrollmentAsync(CreateEnrollmentRequest request, CallSettings callSettings = null)
Create a new Enrollment in a particular project and location.
Parameters | |
---|---|
Name | Description |
request |
CreateEnrollmentRequest 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 |
TaskOperationEnrollmentOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
CreateEnrollmentRequest request = new CreateEnrollmentRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Enrollment = new Enrollment(),
EnrollmentId = "",
ValidateOnly = false,
};
// Make the request
Operation<Enrollment, OperationMetadata> response = await eventarcClient.CreateEnrollmentAsync(request);
// Poll until the returned long-running operation is complete
Operation<Enrollment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Enrollment 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<Enrollment, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateEnrollmentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Enrollment retrievedResult = retrievedResponse.Result;
}
CreateEnrollmentAsync(CreateEnrollmentRequest, CancellationToken)
public virtual Task<Operation<Enrollment, OperationMetadata>> CreateEnrollmentAsync(CreateEnrollmentRequest request, CancellationToken cancellationToken)
Create a new Enrollment in a particular project and location.
Parameters | |
---|---|
Name | Description |
request |
CreateEnrollmentRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEnrollmentOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
CreateEnrollmentRequest request = new CreateEnrollmentRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Enrollment = new Enrollment(),
EnrollmentId = "",
ValidateOnly = false,
};
// Make the request
Operation<Enrollment, OperationMetadata> response = await eventarcClient.CreateEnrollmentAsync(request);
// Poll until the returned long-running operation is complete
Operation<Enrollment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Enrollment 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<Enrollment, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateEnrollmentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Enrollment retrievedResult = retrievedResponse.Result;
}
CreateEnrollmentAsync(string, Enrollment, string, CallSettings)
public virtual Task<Operation<Enrollment, OperationMetadata>> CreateEnrollmentAsync(string parent, Enrollment enrollment, string enrollmentId, CallSettings callSettings = null)
Create a new Enrollment in a particular project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent collection in which to add this enrollment. |
enrollment |
Enrollment Required. The enrollment to create. |
enrollmentId |
string Required. The user-provided ID to be assigned to the Enrollment. It should match the format (^a-z?$). |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEnrollmentOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Enrollment enrollment = new Enrollment();
string enrollmentId = "";
// Make the request
Operation<Enrollment, OperationMetadata> response = await eventarcClient.CreateEnrollmentAsync(parent, enrollment, enrollmentId);
// Poll until the returned long-running operation is complete
Operation<Enrollment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Enrollment 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<Enrollment, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateEnrollmentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Enrollment retrievedResult = retrievedResponse.Result;
}
CreateEnrollmentAsync(string, Enrollment, string, CancellationToken)
public virtual Task<Operation<Enrollment, OperationMetadata>> CreateEnrollmentAsync(string parent, Enrollment enrollment, string enrollmentId, CancellationToken cancellationToken)
Create a new Enrollment in a particular project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent collection in which to add this enrollment. |
enrollment |
Enrollment Required. The enrollment to create. |
enrollmentId |
string Required. The user-provided ID to be assigned to the Enrollment. It should match the format (^a-z?$). |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEnrollmentOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Enrollment enrollment = new Enrollment();
string enrollmentId = "";
// Make the request
Operation<Enrollment, OperationMetadata> response = await eventarcClient.CreateEnrollmentAsync(parent, enrollment, enrollmentId);
// Poll until the returned long-running operation is complete
Operation<Enrollment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Enrollment 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<Enrollment, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateEnrollmentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Enrollment retrievedResult = retrievedResponse.Result;
}
CreateGoogleApiSource(LocationName, GoogleApiSource, string, CallSettings)
public virtual Operation<GoogleApiSource, OperationMetadata> CreateGoogleApiSource(LocationName parent, GoogleApiSource googleApiSource, string googleApiSourceId, CallSettings callSettings = null)
Create a new GoogleApiSource in a particular project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent collection in which to add this google api source. |
googleApiSource |
GoogleApiSource Required. The google api source to create. |
googleApiSourceId |
string Required. The user-provided ID to be assigned to the GoogleApiSource. It should match the format (^a-z?$). |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationGoogleApiSourceOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
GoogleApiSource googleApiSource = new GoogleApiSource();
string googleApiSourceId = "";
// Make the request
Operation<GoogleApiSource, OperationMetadata> response = eventarcClient.CreateGoogleApiSource(parent, googleApiSource, googleApiSourceId);
// Poll until the returned long-running operation is complete
Operation<GoogleApiSource, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
GoogleApiSource 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<GoogleApiSource, OperationMetadata> retrievedResponse = eventarcClient.PollOnceCreateGoogleApiSource(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
GoogleApiSource retrievedResult = retrievedResponse.Result;
}
CreateGoogleApiSource(CreateGoogleApiSourceRequest, CallSettings)
public virtual Operation<GoogleApiSource, OperationMetadata> CreateGoogleApiSource(CreateGoogleApiSourceRequest request, CallSettings callSettings = null)
Create a new GoogleApiSource in a particular project and location.
Parameters | |
---|---|
Name | Description |
request |
CreateGoogleApiSourceRequest 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 |
OperationGoogleApiSourceOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
CreateGoogleApiSourceRequest request = new CreateGoogleApiSourceRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
GoogleApiSource = new GoogleApiSource(),
GoogleApiSourceId = "",
ValidateOnly = false,
};
// Make the request
Operation<GoogleApiSource, OperationMetadata> response = eventarcClient.CreateGoogleApiSource(request);
// Poll until the returned long-running operation is complete
Operation<GoogleApiSource, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
GoogleApiSource 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<GoogleApiSource, OperationMetadata> retrievedResponse = eventarcClient.PollOnceCreateGoogleApiSource(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
GoogleApiSource retrievedResult = retrievedResponse.Result;
}
CreateGoogleApiSource(string, GoogleApiSource, string, CallSettings)
public virtual Operation<GoogleApiSource, OperationMetadata> CreateGoogleApiSource(string parent, GoogleApiSource googleApiSource, string googleApiSourceId, CallSettings callSettings = null)
Create a new GoogleApiSource in a particular project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent collection in which to add this google api source. |
googleApiSource |
GoogleApiSource Required. The google api source to create. |
googleApiSourceId |
string Required. The user-provided ID to be assigned to the GoogleApiSource. It should match the format (^a-z?$). |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationGoogleApiSourceOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
GoogleApiSource googleApiSource = new GoogleApiSource();
string googleApiSourceId = "";
// Make the request
Operation<GoogleApiSource, OperationMetadata> response = eventarcClient.CreateGoogleApiSource(parent, googleApiSource, googleApiSourceId);
// Poll until the returned long-running operation is complete
Operation<GoogleApiSource, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
GoogleApiSource 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<GoogleApiSource, OperationMetadata> retrievedResponse = eventarcClient.PollOnceCreateGoogleApiSource(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
GoogleApiSource retrievedResult = retrievedResponse.Result;
}
CreateGoogleApiSourceAsync(LocationName, GoogleApiSource, string, CallSettings)
public virtual Task<Operation<GoogleApiSource, OperationMetadata>> CreateGoogleApiSourceAsync(LocationName parent, GoogleApiSource googleApiSource, string googleApiSourceId, CallSettings callSettings = null)
Create a new GoogleApiSource in a particular project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent collection in which to add this google api source. |
googleApiSource |
GoogleApiSource Required. The google api source to create. |
googleApiSourceId |
string Required. The user-provided ID to be assigned to the GoogleApiSource. It should match the format (^a-z?$). |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationGoogleApiSourceOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
GoogleApiSource googleApiSource = new GoogleApiSource();
string googleApiSourceId = "";
// Make the request
Operation<GoogleApiSource, OperationMetadata> response = await eventarcClient.CreateGoogleApiSourceAsync(parent, googleApiSource, googleApiSourceId);
// Poll until the returned long-running operation is complete
Operation<GoogleApiSource, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GoogleApiSource 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<GoogleApiSource, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateGoogleApiSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
GoogleApiSource retrievedResult = retrievedResponse.Result;
}
CreateGoogleApiSourceAsync(LocationName, GoogleApiSource, string, CancellationToken)
public virtual Task<Operation<GoogleApiSource, OperationMetadata>> CreateGoogleApiSourceAsync(LocationName parent, GoogleApiSource googleApiSource, string googleApiSourceId, CancellationToken cancellationToken)
Create a new GoogleApiSource in a particular project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent collection in which to add this google api source. |
googleApiSource |
GoogleApiSource Required. The google api source to create. |
googleApiSourceId |
string Required. The user-provided ID to be assigned to the GoogleApiSource. It should match the format (^a-z?$). |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationGoogleApiSourceOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
GoogleApiSource googleApiSource = new GoogleApiSource();
string googleApiSourceId = "";
// Make the request
Operation<GoogleApiSource, OperationMetadata> response = await eventarcClient.CreateGoogleApiSourceAsync(parent, googleApiSource, googleApiSourceId);
// Poll until the returned long-running operation is complete
Operation<GoogleApiSource, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GoogleApiSource 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<GoogleApiSource, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateGoogleApiSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
GoogleApiSource retrievedResult = retrievedResponse.Result;
}
CreateGoogleApiSourceAsync(CreateGoogleApiSourceRequest, CallSettings)
public virtual Task<Operation<GoogleApiSource, OperationMetadata>> CreateGoogleApiSourceAsync(CreateGoogleApiSourceRequest request, CallSettings callSettings = null)
Create a new GoogleApiSource in a particular project and location.
Parameters | |
---|---|
Name | Description |
request |
CreateGoogleApiSourceRequest 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 |
TaskOperationGoogleApiSourceOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
CreateGoogleApiSourceRequest request = new CreateGoogleApiSourceRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
GoogleApiSource = new GoogleApiSource(),
GoogleApiSourceId = "",
ValidateOnly = false,
};
// Make the request
Operation<GoogleApiSource, OperationMetadata> response = await eventarcClient.CreateGoogleApiSourceAsync(request);
// Poll until the returned long-running operation is complete
Operation<GoogleApiSource, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GoogleApiSource 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<GoogleApiSource, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateGoogleApiSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
GoogleApiSource retrievedResult = retrievedResponse.Result;
}
CreateGoogleApiSourceAsync(CreateGoogleApiSourceRequest, CancellationToken)
public virtual Task<Operation<GoogleApiSource, OperationMetadata>> CreateGoogleApiSourceAsync(CreateGoogleApiSourceRequest request, CancellationToken cancellationToken)
Create a new GoogleApiSource in a particular project and location.
Parameters | |
---|---|
Name | Description |
request |
CreateGoogleApiSourceRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationGoogleApiSourceOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
CreateGoogleApiSourceRequest request = new CreateGoogleApiSourceRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
GoogleApiSource = new GoogleApiSource(),
GoogleApiSourceId = "",
ValidateOnly = false,
};
// Make the request
Operation<GoogleApiSource, OperationMetadata> response = await eventarcClient.CreateGoogleApiSourceAsync(request);
// Poll until the returned long-running operation is complete
Operation<GoogleApiSource, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GoogleApiSource 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<GoogleApiSource, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateGoogleApiSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
GoogleApiSource retrievedResult = retrievedResponse.Result;
}
CreateGoogleApiSourceAsync(string, GoogleApiSource, string, CallSettings)
public virtual Task<Operation<GoogleApiSource, OperationMetadata>> CreateGoogleApiSourceAsync(string parent, GoogleApiSource googleApiSource, string googleApiSourceId, CallSettings callSettings = null)
Create a new GoogleApiSource in a particular project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent collection in which to add this google api source. |
googleApiSource |
GoogleApiSource Required. The google api source to create. |
googleApiSourceId |
string Required. The user-provided ID to be assigned to the GoogleApiSource. It should match the format (^a-z?$). |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationGoogleApiSourceOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
GoogleApiSource googleApiSource = new GoogleApiSource();
string googleApiSourceId = "";
// Make the request
Operation<GoogleApiSource, OperationMetadata> response = await eventarcClient.CreateGoogleApiSourceAsync(parent, googleApiSource, googleApiSourceId);
// Poll until the returned long-running operation is complete
Operation<GoogleApiSource, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GoogleApiSource 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<GoogleApiSource, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateGoogleApiSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
GoogleApiSource retrievedResult = retrievedResponse.Result;
}
CreateGoogleApiSourceAsync(string, GoogleApiSource, string, CancellationToken)
public virtual Task<Operation<GoogleApiSource, OperationMetadata>> CreateGoogleApiSourceAsync(string parent, GoogleApiSource googleApiSource, string googleApiSourceId, CancellationToken cancellationToken)
Create a new GoogleApiSource in a particular project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent collection in which to add this google api source. |
googleApiSource |
GoogleApiSource Required. The google api source to create. |
googleApiSourceId |
string Required. The user-provided ID to be assigned to the GoogleApiSource. It should match the format (^a-z?$). |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationGoogleApiSourceOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
GoogleApiSource googleApiSource = new GoogleApiSource();
string googleApiSourceId = "";
// Make the request
Operation<GoogleApiSource, OperationMetadata> response = await eventarcClient.CreateGoogleApiSourceAsync(parent, googleApiSource, googleApiSourceId);
// Poll until the returned long-running operation is complete
Operation<GoogleApiSource, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GoogleApiSource 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<GoogleApiSource, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateGoogleApiSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
GoogleApiSource retrievedResult = retrievedResponse.Result;
}
CreateMessageBus(LocationName, MessageBus, string, CallSettings)
public virtual Operation<MessageBus, OperationMetadata> CreateMessageBus(LocationName parent, MessageBus messageBus, string messageBusId, CallSettings callSettings = null)
Create a new MessageBus in a particular project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent collection in which to add this message bus. |
messageBus |
MessageBus Required. The message bus to create. |
messageBusId |
string Required. The user-provided ID to be assigned to the MessageBus. It should match the format (^a-z?$) |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationMessageBusOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
MessageBus messageBus = new MessageBus();
string messageBusId = "";
// Make the request
Operation<MessageBus, OperationMetadata> response = eventarcClient.CreateMessageBus(parent, messageBus, messageBusId);
// Poll until the returned long-running operation is complete
Operation<MessageBus, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
MessageBus 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<MessageBus, OperationMetadata> retrievedResponse = eventarcClient.PollOnceCreateMessageBus(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
MessageBus retrievedResult = retrievedResponse.Result;
}
CreateMessageBus(CreateMessageBusRequest, CallSettings)
public virtual Operation<MessageBus, OperationMetadata> CreateMessageBus(CreateMessageBusRequest request, CallSettings callSettings = null)
Create a new MessageBus in a particular project and location.
Parameters | |
---|---|
Name | Description |
request |
CreateMessageBusRequest 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 |
OperationMessageBusOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
CreateMessageBusRequest request = new CreateMessageBusRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
MessageBus = new MessageBus(),
MessageBusId = "",
ValidateOnly = false,
};
// Make the request
Operation<MessageBus, OperationMetadata> response = eventarcClient.CreateMessageBus(request);
// Poll until the returned long-running operation is complete
Operation<MessageBus, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
MessageBus 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<MessageBus, OperationMetadata> retrievedResponse = eventarcClient.PollOnceCreateMessageBus(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
MessageBus retrievedResult = retrievedResponse.Result;
}
CreateMessageBus(string, MessageBus, string, CallSettings)
public virtual Operation<MessageBus, OperationMetadata> CreateMessageBus(string parent, MessageBus messageBus, string messageBusId, CallSettings callSettings = null)
Create a new MessageBus in a particular project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent collection in which to add this message bus. |
messageBus |
MessageBus Required. The message bus to create. |
messageBusId |
string Required. The user-provided ID to be assigned to the MessageBus. It should match the format (^a-z?$) |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationMessageBusOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
MessageBus messageBus = new MessageBus();
string messageBusId = "";
// Make the request
Operation<MessageBus, OperationMetadata> response = eventarcClient.CreateMessageBus(parent, messageBus, messageBusId);
// Poll until the returned long-running operation is complete
Operation<MessageBus, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
MessageBus 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<MessageBus, OperationMetadata> retrievedResponse = eventarcClient.PollOnceCreateMessageBus(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
MessageBus retrievedResult = retrievedResponse.Result;
}
CreateMessageBusAsync(LocationName, MessageBus, string, CallSettings)
public virtual Task<Operation<MessageBus, OperationMetadata>> CreateMessageBusAsync(LocationName parent, MessageBus messageBus, string messageBusId, CallSettings callSettings = null)
Create a new MessageBus in a particular project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent collection in which to add this message bus. |
messageBus |
MessageBus Required. The message bus to create. |
messageBusId |
string Required. The user-provided ID to be assigned to the MessageBus. It should match the format (^a-z?$) |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationMessageBusOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
MessageBus messageBus = new MessageBus();
string messageBusId = "";
// Make the request
Operation<MessageBus, OperationMetadata> response = await eventarcClient.CreateMessageBusAsync(parent, messageBus, messageBusId);
// Poll until the returned long-running operation is complete
Operation<MessageBus, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
MessageBus 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<MessageBus, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateMessageBusAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
MessageBus retrievedResult = retrievedResponse.Result;
}
CreateMessageBusAsync(LocationName, MessageBus, string, CancellationToken)
public virtual Task<Operation<MessageBus, OperationMetadata>> CreateMessageBusAsync(LocationName parent, MessageBus messageBus, string messageBusId, CancellationToken cancellationToken)
Create a new MessageBus in a particular project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent collection in which to add this message bus. |
messageBus |
MessageBus Required. The message bus to create. |
messageBusId |
string Required. The user-provided ID to be assigned to the MessageBus. It should match the format (^a-z?$) |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationMessageBusOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
MessageBus messageBus = new MessageBus();
string messageBusId = "";
// Make the request
Operation<MessageBus, OperationMetadata> response = await eventarcClient.CreateMessageBusAsync(parent, messageBus, messageBusId);
// Poll until the returned long-running operation is complete
Operation<MessageBus, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
MessageBus 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<MessageBus, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateMessageBusAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
MessageBus retrievedResult = retrievedResponse.Result;
}
CreateMessageBusAsync(CreateMessageBusRequest, CallSettings)
public virtual Task<Operation<MessageBus, OperationMetadata>> CreateMessageBusAsync(CreateMessageBusRequest request, CallSettings callSettings = null)
Create a new MessageBus in a particular project and location.
Parameters | |
---|---|
Name | Description |
request |
CreateMessageBusRequest 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 |
TaskOperationMessageBusOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
CreateMessageBusRequest request = new CreateMessageBusRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
MessageBus = new MessageBus(),
MessageBusId = "",
ValidateOnly = false,
};
// Make the request
Operation<MessageBus, OperationMetadata> response = await eventarcClient.CreateMessageBusAsync(request);
// Poll until the returned long-running operation is complete
Operation<MessageBus, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
MessageBus 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<MessageBus, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateMessageBusAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
MessageBus retrievedResult = retrievedResponse.Result;
}
CreateMessageBusAsync(CreateMessageBusRequest, CancellationToken)
public virtual Task<Operation<MessageBus, OperationMetadata>> CreateMessageBusAsync(CreateMessageBusRequest request, CancellationToken cancellationToken)
Create a new MessageBus in a particular project and location.
Parameters | |
---|---|
Name | Description |
request |
CreateMessageBusRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationMessageBusOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
CreateMessageBusRequest request = new CreateMessageBusRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
MessageBus = new MessageBus(),
MessageBusId = "",
ValidateOnly = false,
};
// Make the request
Operation<MessageBus, OperationMetadata> response = await eventarcClient.CreateMessageBusAsync(request);
// Poll until the returned long-running operation is complete
Operation<MessageBus, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
MessageBus 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<MessageBus, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateMessageBusAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
MessageBus retrievedResult = retrievedResponse.Result;
}
CreateMessageBusAsync(string, MessageBus, string, CallSettings)
public virtual Task<Operation<MessageBus, OperationMetadata>> CreateMessageBusAsync(string parent, MessageBus messageBus, string messageBusId, CallSettings callSettings = null)
Create a new MessageBus in a particular project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent collection in which to add this message bus. |
messageBus |
MessageBus Required. The message bus to create. |
messageBusId |
string Required. The user-provided ID to be assigned to the MessageBus. It should match the format (^a-z?$) |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationMessageBusOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
MessageBus messageBus = new MessageBus();
string messageBusId = "";
// Make the request
Operation<MessageBus, OperationMetadata> response = await eventarcClient.CreateMessageBusAsync(parent, messageBus, messageBusId);
// Poll until the returned long-running operation is complete
Operation<MessageBus, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
MessageBus 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<MessageBus, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateMessageBusAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
MessageBus retrievedResult = retrievedResponse.Result;
}
CreateMessageBusAsync(string, MessageBus, string, CancellationToken)
public virtual Task<Operation<MessageBus, OperationMetadata>> CreateMessageBusAsync(string parent, MessageBus messageBus, string messageBusId, CancellationToken cancellationToken)
Create a new MessageBus in a particular project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent collection in which to add this message bus. |
messageBus |
MessageBus Required. The message bus to create. |
messageBusId |
string Required. The user-provided ID to be assigned to the MessageBus. It should match the format (^a-z?$) |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationMessageBusOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
MessageBus messageBus = new MessageBus();
string messageBusId = "";
// Make the request
Operation<MessageBus, OperationMetadata> response = await eventarcClient.CreateMessageBusAsync(parent, messageBus, messageBusId);
// Poll until the returned long-running operation is complete
Operation<MessageBus, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
MessageBus 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<MessageBus, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateMessageBusAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
MessageBus retrievedResult = retrievedResponse.Result;
}
CreatePipeline(LocationName, Pipeline, string, CallSettings)
public virtual Operation<Pipeline, OperationMetadata> CreatePipeline(LocationName parent, Pipeline pipeline, string pipelineId, CallSettings callSettings = null)
Create a new Pipeline in a particular project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent collection in which to add this pipeline. |
pipeline |
Pipeline Required. The pipeline to create. |
pipelineId |
string Required. The user-provided ID to be assigned to the Pipeline. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationPipelineOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Pipeline pipeline = new Pipeline();
string pipelineId = "";
// Make the request
Operation<Pipeline, OperationMetadata> response = eventarcClient.CreatePipeline(parent, pipeline, pipelineId);
// Poll until the returned long-running operation is complete
Operation<Pipeline, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Pipeline 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<Pipeline, OperationMetadata> retrievedResponse = eventarcClient.PollOnceCreatePipeline(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Pipeline retrievedResult = retrievedResponse.Result;
}
CreatePipeline(CreatePipelineRequest, CallSettings)
public virtual Operation<Pipeline, OperationMetadata> CreatePipeline(CreatePipelineRequest request, CallSettings callSettings = null)
Create a new Pipeline in a particular project and location.
Parameters | |
---|---|
Name | Description |
request |
CreatePipelineRequest 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 |
OperationPipelineOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
CreatePipelineRequest request = new CreatePipelineRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Pipeline = new Pipeline(),
PipelineId = "",
ValidateOnly = false,
};
// Make the request
Operation<Pipeline, OperationMetadata> response = eventarcClient.CreatePipeline(request);
// Poll until the returned long-running operation is complete
Operation<Pipeline, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Pipeline 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<Pipeline, OperationMetadata> retrievedResponse = eventarcClient.PollOnceCreatePipeline(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Pipeline retrievedResult = retrievedResponse.Result;
}
CreatePipeline(string, Pipeline, string, CallSettings)
public virtual Operation<Pipeline, OperationMetadata> CreatePipeline(string parent, Pipeline pipeline, string pipelineId, CallSettings callSettings = null)
Create a new Pipeline in a particular project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent collection in which to add this pipeline. |
pipeline |
Pipeline Required. The pipeline to create. |
pipelineId |
string Required. The user-provided ID to be assigned to the Pipeline. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationPipelineOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Pipeline pipeline = new Pipeline();
string pipelineId = "";
// Make the request
Operation<Pipeline, OperationMetadata> response = eventarcClient.CreatePipeline(parent, pipeline, pipelineId);
// Poll until the returned long-running operation is complete
Operation<Pipeline, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Pipeline 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<Pipeline, OperationMetadata> retrievedResponse = eventarcClient.PollOnceCreatePipeline(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Pipeline retrievedResult = retrievedResponse.Result;
}
CreatePipelineAsync(LocationName, Pipeline, string, CallSettings)
public virtual Task<Operation<Pipeline, OperationMetadata>> CreatePipelineAsync(LocationName parent, Pipeline pipeline, string pipelineId, CallSettings callSettings = null)
Create a new Pipeline in a particular project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent collection in which to add this pipeline. |
pipeline |
Pipeline Required. The pipeline to create. |
pipelineId |
string Required. The user-provided ID to be assigned to the Pipeline. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationPipelineOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Pipeline pipeline = new Pipeline();
string pipelineId = "";
// Make the request
Operation<Pipeline, OperationMetadata> response = await eventarcClient.CreatePipelineAsync(parent, pipeline, pipelineId);
// Poll until the returned long-running operation is complete
Operation<Pipeline, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Pipeline 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<Pipeline, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreatePipelineAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Pipeline retrievedResult = retrievedResponse.Result;
}
CreatePipelineAsync(LocationName, Pipeline, string, CancellationToken)
public virtual Task<Operation<Pipeline, OperationMetadata>> CreatePipelineAsync(LocationName parent, Pipeline pipeline, string pipelineId, CancellationToken cancellationToken)
Create a new Pipeline in a particular project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent collection in which to add this pipeline. |
pipeline |
Pipeline Required. The pipeline to create. |
pipelineId |
string Required. The user-provided ID to be assigned to the Pipeline. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationPipelineOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Pipeline pipeline = new Pipeline();
string pipelineId = "";
// Make the request
Operation<Pipeline, OperationMetadata> response = await eventarcClient.CreatePipelineAsync(parent, pipeline, pipelineId);
// Poll until the returned long-running operation is complete
Operation<Pipeline, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Pipeline 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<Pipeline, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreatePipelineAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Pipeline retrievedResult = retrievedResponse.Result;
}
CreatePipelineAsync(CreatePipelineRequest, CallSettings)
public virtual Task<Operation<Pipeline, OperationMetadata>> CreatePipelineAsync(CreatePipelineRequest request, CallSettings callSettings = null)
Create a new Pipeline in a particular project and location.
Parameters | |
---|---|
Name | Description |
request |
CreatePipelineRequest 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 |
TaskOperationPipelineOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
CreatePipelineRequest request = new CreatePipelineRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Pipeline = new Pipeline(),
PipelineId = "",
ValidateOnly = false,
};
// Make the request
Operation<Pipeline, OperationMetadata> response = await eventarcClient.CreatePipelineAsync(request);
// Poll until the returned long-running operation is complete
Operation<Pipeline, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Pipeline 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<Pipeline, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreatePipelineAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Pipeline retrievedResult = retrievedResponse.Result;
}
CreatePipelineAsync(CreatePipelineRequest, CancellationToken)
public virtual Task<Operation<Pipeline, OperationMetadata>> CreatePipelineAsync(CreatePipelineRequest request, CancellationToken cancellationToken)
Create a new Pipeline in a particular project and location.
Parameters | |
---|---|
Name | Description |
request |
CreatePipelineRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationPipelineOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
CreatePipelineRequest request = new CreatePipelineRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Pipeline = new Pipeline(),
PipelineId = "",
ValidateOnly = false,
};
// Make the request
Operation<Pipeline, OperationMetadata> response = await eventarcClient.CreatePipelineAsync(request);
// Poll until the returned long-running operation is complete
Operation<Pipeline, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Pipeline 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<Pipeline, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreatePipelineAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Pipeline retrievedResult = retrievedResponse.Result;
}
CreatePipelineAsync(string, Pipeline, string, CallSettings)
public virtual Task<Operation<Pipeline, OperationMetadata>> CreatePipelineAsync(string parent, Pipeline pipeline, string pipelineId, CallSettings callSettings = null)
Create a new Pipeline in a particular project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent collection in which to add this pipeline. |
pipeline |
Pipeline Required. The pipeline to create. |
pipelineId |
string Required. The user-provided ID to be assigned to the Pipeline. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationPipelineOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Pipeline pipeline = new Pipeline();
string pipelineId = "";
// Make the request
Operation<Pipeline, OperationMetadata> response = await eventarcClient.CreatePipelineAsync(parent, pipeline, pipelineId);
// Poll until the returned long-running operation is complete
Operation<Pipeline, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Pipeline 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<Pipeline, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreatePipelineAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Pipeline retrievedResult = retrievedResponse.Result;
}
CreatePipelineAsync(string, Pipeline, string, CancellationToken)
public virtual Task<Operation<Pipeline, OperationMetadata>> CreatePipelineAsync(string parent, Pipeline pipeline, string pipelineId, CancellationToken cancellationToken)
Create a new Pipeline in a particular project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent collection in which to add this pipeline. |
pipeline |
Pipeline Required. The pipeline to create. |
pipelineId |
string Required. The user-provided ID to be assigned to the Pipeline. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationPipelineOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Pipeline pipeline = new Pipeline();
string pipelineId = "";
// Make the request
Operation<Pipeline, OperationMetadata> response = await eventarcClient.CreatePipelineAsync(parent, pipeline, pipelineId);
// Poll until the returned long-running operation is complete
Operation<Pipeline, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Pipeline 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<Pipeline, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreatePipelineAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Pipeline retrievedResult = retrievedResponse.Result;
}
CreateTrigger(LocationName, Trigger, string, CallSettings)
public virtual Operation<Trigger, OperationMetadata> CreateTrigger(LocationName parent, Trigger trigger, string triggerId, CallSettings callSettings = null)
Create a new trigger in a particular project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent collection in which to add this trigger. |
trigger |
Trigger Required. The trigger to create. |
triggerId |
string Required. The user-provided ID to be assigned to the trigger. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationTriggerOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Trigger trigger = new Trigger();
string triggerId = "";
// Make the request
Operation<Trigger, OperationMetadata> response = eventarcClient.CreateTrigger(parent, trigger, triggerId);
// Poll until the returned long-running operation is complete
Operation<Trigger, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Trigger result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Trigger, OperationMetadata> retrievedResponse = eventarcClient.PollOnceCreateTrigger(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Trigger retrievedResult = retrievedResponse.Result;
}
CreateTrigger(CreateTriggerRequest, CallSettings)
public virtual Operation<Trigger, OperationMetadata> CreateTrigger(CreateTriggerRequest request, CallSettings callSettings = null)
Create a new trigger in a particular project and location.
Parameters | |
---|---|
Name | Description |
request |
CreateTriggerRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationTriggerOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
CreateTriggerRequest request = new CreateTriggerRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Trigger = new Trigger(),
TriggerId = "",
ValidateOnly = false,
};
// Make the request
Operation<Trigger, OperationMetadata> response = eventarcClient.CreateTrigger(request);
// Poll until the returned long-running operation is complete
Operation<Trigger, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Trigger result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Trigger, OperationMetadata> retrievedResponse = eventarcClient.PollOnceCreateTrigger(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Trigger retrievedResult = retrievedResponse.Result;
}
CreateTrigger(string, Trigger, string, CallSettings)
public virtual Operation<Trigger, OperationMetadata> CreateTrigger(string parent, Trigger trigger, string triggerId, CallSettings callSettings = null)
Create a new trigger in a particular project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent collection in which to add this trigger. |
trigger |
Trigger Required. The trigger to create. |
triggerId |
string Required. The user-provided ID to be assigned to the trigger. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationTriggerOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Trigger trigger = new Trigger();
string triggerId = "";
// Make the request
Operation<Trigger, OperationMetadata> response = eventarcClient.CreateTrigger(parent, trigger, triggerId);
// Poll until the returned long-running operation is complete
Operation<Trigger, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Trigger result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Trigger, OperationMetadata> retrievedResponse = eventarcClient.PollOnceCreateTrigger(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Trigger retrievedResult = retrievedResponse.Result;
}
CreateTriggerAsync(LocationName, Trigger, string, CallSettings)
public virtual Task<Operation<Trigger, OperationMetadata>> CreateTriggerAsync(LocationName parent, Trigger trigger, string triggerId, CallSettings callSettings = null)
Create a new trigger in a particular project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent collection in which to add this trigger. |
trigger |
Trigger Required. The trigger to create. |
triggerId |
string Required. The user-provided ID to be assigned to the trigger. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationTriggerOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Trigger trigger = new Trigger();
string triggerId = "";
// Make the request
Operation<Trigger, OperationMetadata> response = await eventarcClient.CreateTriggerAsync(parent, trigger, triggerId);
// Poll until the returned long-running operation is complete
Operation<Trigger, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Trigger result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Trigger, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateTriggerAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Trigger retrievedResult = retrievedResponse.Result;
}
CreateTriggerAsync(LocationName, Trigger, string, CancellationToken)
public virtual Task<Operation<Trigger, OperationMetadata>> CreateTriggerAsync(LocationName parent, Trigger trigger, string triggerId, CancellationToken cancellationToken)
Create a new trigger in a particular project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent collection in which to add this trigger. |
trigger |
Trigger Required. The trigger to create. |
triggerId |
string Required. The user-provided ID to be assigned to the trigger. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationTriggerOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Trigger trigger = new Trigger();
string triggerId = "";
// Make the request
Operation<Trigger, OperationMetadata> response = await eventarcClient.CreateTriggerAsync(parent, trigger, triggerId);
// Poll until the returned long-running operation is complete
Operation<Trigger, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Trigger result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Trigger, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateTriggerAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Trigger retrievedResult = retrievedResponse.Result;
}
CreateTriggerAsync(CreateTriggerRequest, CallSettings)
public virtual Task<Operation<Trigger, OperationMetadata>> CreateTriggerAsync(CreateTriggerRequest request, CallSettings callSettings = null)
Create a new trigger in a particular project and location.
Parameters | |
---|---|
Name | Description |
request |
CreateTriggerRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationTriggerOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
CreateTriggerRequest request = new CreateTriggerRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Trigger = new Trigger(),
TriggerId = "",
ValidateOnly = false,
};
// Make the request
Operation<Trigger, OperationMetadata> response = await eventarcClient.CreateTriggerAsync(request);
// Poll until the returned long-running operation is complete
Operation<Trigger, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Trigger result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Trigger, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateTriggerAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Trigger retrievedResult = retrievedResponse.Result;
}
CreateTriggerAsync(CreateTriggerRequest, CancellationToken)
public virtual Task<Operation<Trigger, OperationMetadata>> CreateTriggerAsync(CreateTriggerRequest request, CancellationToken cancellationToken)
Create a new trigger in a particular project and location.
Parameters | |
---|---|
Name | Description |
request |
CreateTriggerRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationTriggerOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
CreateTriggerRequest request = new CreateTriggerRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Trigger = new Trigger(),
TriggerId = "",
ValidateOnly = false,
};
// Make the request
Operation<Trigger, OperationMetadata> response = await eventarcClient.CreateTriggerAsync(request);
// Poll until the returned long-running operation is complete
Operation<Trigger, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Trigger result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Trigger, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateTriggerAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Trigger retrievedResult = retrievedResponse.Result;
}
CreateTriggerAsync(string, Trigger, string, CallSettings)
public virtual Task<Operation<Trigger, OperationMetadata>> CreateTriggerAsync(string parent, Trigger trigger, string triggerId, CallSettings callSettings = null)
Create a new trigger in a particular project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent collection in which to add this trigger. |
trigger |
Trigger Required. The trigger to create. |
triggerId |
string Required. The user-provided ID to be assigned to the trigger. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationTriggerOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Trigger trigger = new Trigger();
string triggerId = "";
// Make the request
Operation<Trigger, OperationMetadata> response = await eventarcClient.CreateTriggerAsync(parent, trigger, triggerId);
// Poll until the returned long-running operation is complete
Operation<Trigger, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Trigger result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Trigger, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateTriggerAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Trigger retrievedResult = retrievedResponse.Result;
}
CreateTriggerAsync(string, Trigger, string, CancellationToken)
public virtual Task<Operation<Trigger, OperationMetadata>> CreateTriggerAsync(string parent, Trigger trigger, string triggerId, CancellationToken cancellationToken)
Create a new trigger in a particular project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent collection in which to add this trigger. |
trigger |
Trigger Required. The trigger to create. |
triggerId |
string Required. The user-provided ID to be assigned to the trigger. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationTriggerOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Trigger trigger = new Trigger();
string triggerId = "";
// Make the request
Operation<Trigger, OperationMetadata> response = await eventarcClient.CreateTriggerAsync(parent, trigger, triggerId);
// Poll until the returned long-running operation is complete
Operation<Trigger, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Trigger result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Trigger, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceCreateTriggerAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Trigger retrievedResult = retrievedResponse.Result;
}
DeleteChannel(ChannelName, CallSettings)
public virtual Operation<Channel, OperationMetadata> DeleteChannel(ChannelName name, CallSettings callSettings = null)
Delete a single channel.
Parameters | |
---|---|
Name | Description |
name |
ChannelName Required. The name of the channel to be deleted. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationChannelOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
ChannelName name = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]");
// Make the request
Operation<Channel, OperationMetadata> response = eventarcClient.DeleteChannel(name);
// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Channel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = eventarcClient.PollOnceDeleteChannel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Channel retrievedResult = retrievedResponse.Result;
}
DeleteChannel(DeleteChannelRequest, CallSettings)
public virtual Operation<Channel, OperationMetadata> DeleteChannel(DeleteChannelRequest request, CallSettings callSettings = null)
Delete a single channel.
Parameters | |
---|---|
Name | Description |
request |
DeleteChannelRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationChannelOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
DeleteChannelRequest request = new DeleteChannelRequest
{
ChannelName = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]"),
ValidateOnly = false,
};
// Make the request
Operation<Channel, OperationMetadata> response = eventarcClient.DeleteChannel(request);
// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Channel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = eventarcClient.PollOnceDeleteChannel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Channel retrievedResult = retrievedResponse.Result;
}
DeleteChannel(string, CallSettings)
public virtual Operation<Channel, OperationMetadata> DeleteChannel(string name, CallSettings callSettings = null)
Delete a single channel.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the channel to be deleted. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationChannelOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/channels/[CHANNEL]";
// Make the request
Operation<Channel, OperationMetadata> response = eventarcClient.DeleteChannel(name);
// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Channel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = eventarcClient.PollOnceDeleteChannel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Channel retrievedResult = retrievedResponse.Result;
}
DeleteChannelAsync(ChannelName, CallSettings)
public virtual Task<Operation<Channel, OperationMetadata>> DeleteChannelAsync(ChannelName name, CallSettings callSettings = null)
Delete a single channel.
Parameters | |
---|---|
Name | Description |
name |
ChannelName Required. The name of the channel to be deleted. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationChannelOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
ChannelName name = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]");
// Make the request
Operation<Channel, OperationMetadata> response = await eventarcClient.DeleteChannelAsync(name);
// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Channel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Channel retrievedResult = retrievedResponse.Result;
}
DeleteChannelAsync(ChannelName, CancellationToken)
public virtual Task<Operation<Channel, OperationMetadata>> DeleteChannelAsync(ChannelName name, CancellationToken cancellationToken)
Delete a single channel.
Parameters | |
---|---|
Name | Description |
name |
ChannelName Required. The name of the channel to be deleted. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationChannelOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
ChannelName name = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]");
// Make the request
Operation<Channel, OperationMetadata> response = await eventarcClient.DeleteChannelAsync(name);
// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Channel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Channel retrievedResult = retrievedResponse.Result;
}
DeleteChannelAsync(DeleteChannelRequest, CallSettings)
public virtual Task<Operation<Channel, OperationMetadata>> DeleteChannelAsync(DeleteChannelRequest request, CallSettings callSettings = null)
Delete a single channel.
Parameters | |
---|---|
Name | Description |
request |
DeleteChannelRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationChannelOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
DeleteChannelRequest request = new DeleteChannelRequest
{
ChannelName = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]"),
ValidateOnly = false,
};
// Make the request
Operation<Channel, OperationMetadata> response = await eventarcClient.DeleteChannelAsync(request);
// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Channel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Channel retrievedResult = retrievedResponse.Result;
}
DeleteChannelAsync(DeleteChannelRequest, CancellationToken)
public virtual Task<Operation<Channel, OperationMetadata>> DeleteChannelAsync(DeleteChannelRequest request, CancellationToken cancellationToken)
Delete a single channel.
Parameters | |
---|---|
Name | Description |
request |
DeleteChannelRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationChannelOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
DeleteChannelRequest request = new DeleteChannelRequest
{
ChannelName = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]"),
ValidateOnly = false,
};
// Make the request
Operation<Channel, OperationMetadata> response = await eventarcClient.DeleteChannelAsync(request);
// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Channel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Channel retrievedResult = retrievedResponse.Result;
}
DeleteChannelAsync(string, CallSettings)
public virtual Task<Operation<Channel, OperationMetadata>> DeleteChannelAsync(string name, CallSettings callSettings = null)
Delete a single channel.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the channel to be deleted. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationChannelOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/channels/[CHANNEL]";
// Make the request
Operation<Channel, OperationMetadata> response = await eventarcClient.DeleteChannelAsync(name);
// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Channel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Channel retrievedResult = retrievedResponse.Result;
}
DeleteChannelAsync(string, CancellationToken)
public virtual Task<Operation<Channel, OperationMetadata>> DeleteChannelAsync(string name, CancellationToken cancellationToken)
Delete a single channel.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the channel to be deleted. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationChannelOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/channels/[CHANNEL]";
// Make the request
Operation<Channel, OperationMetadata> response = await eventarcClient.DeleteChannelAsync(name);
// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Channel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Channel retrievedResult = retrievedResponse.Result;
}
DeleteChannelConnection(ChannelConnectionName, CallSettings)
public virtual Operation<ChannelConnection, OperationMetadata> DeleteChannelConnection(ChannelConnectionName name, CallSettings callSettings = null)
Delete a single ChannelConnection.
Parameters | |
---|---|
Name | Description |
name |
ChannelConnectionName Required. The name of the channel connection to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationChannelConnectionOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
ChannelConnectionName name = ChannelConnectionName.FromProjectLocationChannelConnection("[PROJECT]", "[LOCATION]", "[CHANNEL_CONNECTION]");
// Make the request
Operation<ChannelConnection, OperationMetadata> response = eventarcClient.DeleteChannelConnection(name);
// Poll until the returned long-running operation is complete
Operation<ChannelConnection, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ChannelConnection result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelConnection, OperationMetadata> retrievedResponse = eventarcClient.PollOnceDeleteChannelConnection(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ChannelConnection retrievedResult = retrievedResponse.Result;
}
DeleteChannelConnection(DeleteChannelConnectionRequest, CallSettings)
public virtual Operation<ChannelConnection, OperationMetadata> DeleteChannelConnection(DeleteChannelConnectionRequest request, CallSettings callSettings = null)
Delete a single ChannelConnection.
Parameters | |
---|---|
Name | Description |
request |
DeleteChannelConnectionRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationChannelConnectionOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
DeleteChannelConnectionRequest request = new DeleteChannelConnectionRequest
{
ChannelConnectionName = ChannelConnectionName.FromProjectLocationChannelConnection("[PROJECT]", "[LOCATION]", "[CHANNEL_CONNECTION]"),
};
// Make the request
Operation<ChannelConnection, OperationMetadata> response = eventarcClient.DeleteChannelConnection(request);
// Poll until the returned long-running operation is complete
Operation<ChannelConnection, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ChannelConnection result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelConnection, OperationMetadata> retrievedResponse = eventarcClient.PollOnceDeleteChannelConnection(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ChannelConnection retrievedResult = retrievedResponse.Result;
}
DeleteChannelConnection(string, CallSettings)
public virtual Operation<ChannelConnection, OperationMetadata> DeleteChannelConnection(string name, CallSettings callSettings = null)
Delete a single ChannelConnection.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the channel connection to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationChannelConnectionOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/channelConnections/[CHANNEL_CONNECTION]";
// Make the request
Operation<ChannelConnection, OperationMetadata> response = eventarcClient.DeleteChannelConnection(name);
// Poll until the returned long-running operation is complete
Operation<ChannelConnection, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ChannelConnection result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelConnection, OperationMetadata> retrievedResponse = eventarcClient.PollOnceDeleteChannelConnection(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ChannelConnection retrievedResult = retrievedResponse.Result;
}
DeleteChannelConnectionAsync(ChannelConnectionName, CallSettings)
public virtual Task<Operation<ChannelConnection, OperationMetadata>> DeleteChannelConnectionAsync(ChannelConnectionName name, CallSettings callSettings = null)
Delete a single ChannelConnection.
Parameters | |
---|---|
Name | Description |
name |
ChannelConnectionName Required. The name of the channel connection to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationChannelConnectionOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
ChannelConnectionName name = ChannelConnectionName.FromProjectLocationChannelConnection("[PROJECT]", "[LOCATION]", "[CHANNEL_CONNECTION]");
// Make the request
Operation<ChannelConnection, OperationMetadata> response = await eventarcClient.DeleteChannelConnectionAsync(name);
// Poll until the returned long-running operation is complete
Operation<ChannelConnection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ChannelConnection result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelConnection, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteChannelConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ChannelConnection retrievedResult = retrievedResponse.Result;
}
DeleteChannelConnectionAsync(ChannelConnectionName, CancellationToken)
public virtual Task<Operation<ChannelConnection, OperationMetadata>> DeleteChannelConnectionAsync(ChannelConnectionName name, CancellationToken cancellationToken)
Delete a single ChannelConnection.
Parameters | |
---|---|
Name | Description |
name |
ChannelConnectionName Required. The name of the channel connection to delete. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationChannelConnectionOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
ChannelConnectionName name = ChannelConnectionName.FromProjectLocationChannelConnection("[PROJECT]", "[LOCATION]", "[CHANNEL_CONNECTION]");
// Make the request
Operation<ChannelConnection, OperationMetadata> response = await eventarcClient.DeleteChannelConnectionAsync(name);
// Poll until the returned long-running operation is complete
Operation<ChannelConnection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ChannelConnection result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelConnection, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteChannelConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ChannelConnection retrievedResult = retrievedResponse.Result;
}
DeleteChannelConnectionAsync(DeleteChannelConnectionRequest, CallSettings)
public virtual Task<Operation<ChannelConnection, OperationMetadata>> DeleteChannelConnectionAsync(DeleteChannelConnectionRequest request, CallSettings callSettings = null)
Delete a single ChannelConnection.
Parameters | |
---|---|
Name | Description |
request |
DeleteChannelConnectionRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationChannelConnectionOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
DeleteChannelConnectionRequest request = new DeleteChannelConnectionRequest
{
ChannelConnectionName = ChannelConnectionName.FromProjectLocationChannelConnection("[PROJECT]", "[LOCATION]", "[CHANNEL_CONNECTION]"),
};
// Make the request
Operation<ChannelConnection, OperationMetadata> response = await eventarcClient.DeleteChannelConnectionAsync(request);
// Poll until the returned long-running operation is complete
Operation<ChannelConnection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ChannelConnection result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelConnection, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteChannelConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ChannelConnection retrievedResult = retrievedResponse.Result;
}
DeleteChannelConnectionAsync(DeleteChannelConnectionRequest, CancellationToken)
public virtual Task<Operation<ChannelConnection, OperationMetadata>> DeleteChannelConnectionAsync(DeleteChannelConnectionRequest request, CancellationToken cancellationToken)
Delete a single ChannelConnection.
Parameters | |
---|---|
Name | Description |
request |
DeleteChannelConnectionRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationChannelConnectionOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
DeleteChannelConnectionRequest request = new DeleteChannelConnectionRequest
{
ChannelConnectionName = ChannelConnectionName.FromProjectLocationChannelConnection("[PROJECT]", "[LOCATION]", "[CHANNEL_CONNECTION]"),
};
// Make the request
Operation<ChannelConnection, OperationMetadata> response = await eventarcClient.DeleteChannelConnectionAsync(request);
// Poll until the returned long-running operation is complete
Operation<ChannelConnection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ChannelConnection result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelConnection, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteChannelConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ChannelConnection retrievedResult = retrievedResponse.Result;
}
DeleteChannelConnectionAsync(string, CallSettings)
public virtual Task<Operation<ChannelConnection, OperationMetadata>> DeleteChannelConnectionAsync(string name, CallSettings callSettings = null)
Delete a single ChannelConnection.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the channel connection to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationChannelConnectionOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/channelConnections/[CHANNEL_CONNECTION]";
// Make the request
Operation<ChannelConnection, OperationMetadata> response = await eventarcClient.DeleteChannelConnectionAsync(name);
// Poll until the returned long-running operation is complete
Operation<ChannelConnection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ChannelConnection result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelConnection, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteChannelConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
ChannelConnection retrievedResult = retrievedResponse.Result;
}
DeleteChannelConnectionAsync(string, CancellationToken)
public virtual Task<Operation<ChannelConnection, OperationMetadata>> DeleteChannelConnectionAsync(string name, CancellationToken cancellationToken)
Delete a single ChannelConnection.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the channel connection to delete. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationChannelConnectionOperationMetadata |
A Task containing the RPC response. |
// 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;
}
DeleteEnrollment(DeleteEnrollmentRequest, CallSettings)
public virtual Operation<Enrollment, OperationMetadata> DeleteEnrollment(DeleteEnrollmentRequest request, CallSettings callSettings = null)
Delete a single Enrollment.
Parameters | |
---|---|
Name | Description |
request |
DeleteEnrollmentRequest 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 |
OperationEnrollmentOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
DeleteEnrollmentRequest request = new DeleteEnrollmentRequest
{
EnrollmentName = EnrollmentName.FromProjectLocationEnrollment("[PROJECT]", "[LOCATION]", "[ENROLLMENT]"),
Etag = "",
AllowMissing = false,
ValidateOnly = false,
};
// Make the request
Operation<Enrollment, OperationMetadata> response = eventarcClient.DeleteEnrollment(request);
// Poll until the returned long-running operation is complete
Operation<Enrollment, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Enrollment 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<Enrollment, OperationMetadata> retrievedResponse = eventarcClient.PollOnceDeleteEnrollment(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Enrollment retrievedResult = retrievedResponse.Result;
}
DeleteEnrollment(EnrollmentName, string, CallSettings)
public virtual Operation<Enrollment, OperationMetadata> DeleteEnrollment(EnrollmentName name, string etag, CallSettings callSettings = null)
Delete a single Enrollment.
Parameters | |
---|---|
Name | Description |
name |
EnrollmentName Required. The name of the Enrollment to be deleted. |
etag |
string Optional. If provided, the Enrollment will only be deleted if the etag matches the current etag on the resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEnrollmentOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
EnrollmentName name = EnrollmentName.FromProjectLocationEnrollment("[PROJECT]", "[LOCATION]", "[ENROLLMENT]");
string etag = "";
// Make the request
Operation<Enrollment, OperationMetadata> response = eventarcClient.DeleteEnrollment(name, etag);
// Poll until the returned long-running operation is complete
Operation<Enrollment, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Enrollment 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<Enrollment, OperationMetadata> retrievedResponse = eventarcClient.PollOnceDeleteEnrollment(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Enrollment retrievedResult = retrievedResponse.Result;
}
DeleteEnrollment(string, string, CallSettings)
public virtual Operation<Enrollment, OperationMetadata> DeleteEnrollment(string name, string etag, CallSettings callSettings = null)
Delete a single Enrollment.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the Enrollment to be deleted. |
etag |
string Optional. If provided, the Enrollment will only be deleted if the etag matches the current etag on the resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEnrollmentOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/enrollments/[ENROLLMENT]";
string etag = "";
// Make the request
Operation<Enrollment, OperationMetadata> response = eventarcClient.DeleteEnrollment(name, etag);
// Poll until the returned long-running operation is complete
Operation<Enrollment, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Enrollment 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<Enrollment, OperationMetadata> retrievedResponse = eventarcClient.PollOnceDeleteEnrollment(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Enrollment retrievedResult = retrievedResponse.Result;
}
DeleteEnrollmentAsync(DeleteEnrollmentRequest, CallSettings)
public virtual Task<Operation<Enrollment, OperationMetadata>> DeleteEnrollmentAsync(DeleteEnrollmentRequest request, CallSettings callSettings = null)
Delete a single Enrollment.
Parameters | |
---|---|
Name | Description |
request |
DeleteEnrollmentRequest 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 |
TaskOperationEnrollmentOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
DeleteEnrollmentRequest request = new DeleteEnrollmentRequest
{
EnrollmentName = EnrollmentName.FromProjectLocationEnrollment("[PROJECT]", "[LOCATION]", "[ENROLLMENT]"),
Etag = "",
AllowMissing = false,
ValidateOnly = false,
};
// Make the request
Operation<Enrollment, OperationMetadata> response = await eventarcClient.DeleteEnrollmentAsync(request);
// Poll until the returned long-running operation is complete
Operation<Enrollment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Enrollment 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<Enrollment, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteEnrollmentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Enrollment retrievedResult = retrievedResponse.Result;
}
DeleteEnrollmentAsync(DeleteEnrollmentRequest, CancellationToken)
public virtual Task<Operation<Enrollment, OperationMetadata>> DeleteEnrollmentAsync(DeleteEnrollmentRequest request, CancellationToken cancellationToken)
Delete a single Enrollment.
Parameters | |
---|---|
Name | Description |
request |
DeleteEnrollmentRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEnrollmentOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
DeleteEnrollmentRequest request = new DeleteEnrollmentRequest
{
EnrollmentName = EnrollmentName.FromProjectLocationEnrollment("[PROJECT]", "[LOCATION]", "[ENROLLMENT]"),
Etag = "",
AllowMissing = false,
ValidateOnly = false,
};
// Make the request
Operation<Enrollment, OperationMetadata> response = await eventarcClient.DeleteEnrollmentAsync(request);
// Poll until the returned long-running operation is complete
Operation<Enrollment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Enrollment 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<Enrollment, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteEnrollmentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Enrollment retrievedResult = retrievedResponse.Result;
}
DeleteEnrollmentAsync(EnrollmentName, string, CallSettings)
public virtual Task<Operation<Enrollment, OperationMetadata>> DeleteEnrollmentAsync(EnrollmentName name, string etag, CallSettings callSettings = null)
Delete a single Enrollment.
Parameters | |
---|---|
Name | Description |
name |
EnrollmentName Required. The name of the Enrollment to be deleted. |
etag |
string Optional. If provided, the Enrollment will only be deleted if the etag matches the current etag on the resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEnrollmentOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
EnrollmentName name = EnrollmentName.FromProjectLocationEnrollment("[PROJECT]", "[LOCATION]", "[ENROLLMENT]");
string etag = "";
// Make the request
Operation<Enrollment, OperationMetadata> response = await eventarcClient.DeleteEnrollmentAsync(name, etag);
// Poll until the returned long-running operation is complete
Operation<Enrollment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Enrollment 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<Enrollment, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteEnrollmentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Enrollment retrievedResult = retrievedResponse.Result;
}
DeleteEnrollmentAsync(EnrollmentName, string, CancellationToken)
public virtual Task<Operation<Enrollment, OperationMetadata>> DeleteEnrollmentAsync(EnrollmentName name, string etag, CancellationToken cancellationToken)
Delete a single Enrollment.
Parameters | |
---|---|
Name | Description |
name |
EnrollmentName Required. The name of the Enrollment to be deleted. |
etag |
string Optional. If provided, the Enrollment will only be deleted if the etag matches the current etag on the resource. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEnrollmentOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
EnrollmentName name = EnrollmentName.FromProjectLocationEnrollment("[PROJECT]", "[LOCATION]", "[ENROLLMENT]");
string etag = "";
// Make the request
Operation<Enrollment, OperationMetadata> response = await eventarcClient.DeleteEnrollmentAsync(name, etag);
// Poll until the returned long-running operation is complete
Operation<Enrollment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Enrollment 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<Enrollment, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteEnrollmentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Enrollment retrievedResult = retrievedResponse.Result;
}
DeleteEnrollmentAsync(string, string, CallSettings)
public virtual Task<Operation<Enrollment, OperationMetadata>> DeleteEnrollmentAsync(string name, string etag, CallSettings callSettings = null)
Delete a single Enrollment.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the Enrollment to be deleted. |
etag |
string Optional. If provided, the Enrollment will only be deleted if the etag matches the current etag on the resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEnrollmentOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/enrollments/[ENROLLMENT]";
string etag = "";
// Make the request
Operation<Enrollment, OperationMetadata> response = await eventarcClient.DeleteEnrollmentAsync(name, etag);
// Poll until the returned long-running operation is complete
Operation<Enrollment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Enrollment 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<Enrollment, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteEnrollmentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Enrollment retrievedResult = retrievedResponse.Result;
}
DeleteEnrollmentAsync(string, string, CancellationToken)
public virtual Task<Operation<Enrollment, OperationMetadata>> DeleteEnrollmentAsync(string name, string etag, CancellationToken cancellationToken)
Delete a single Enrollment.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the Enrollment to be deleted. |
etag |
string Optional. If provided, the Enrollment will only be deleted if the etag matches the current etag on the resource. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEnrollmentOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/enrollments/[ENROLLMENT]";
string etag = "";
// Make the request
Operation<Enrollment, OperationMetadata> response = await eventarcClient.DeleteEnrollmentAsync(name, etag);
// Poll until the returned long-running operation is complete
Operation<Enrollment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Enrollment 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<Enrollment, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteEnrollmentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Enrollment retrievedResult = retrievedResponse.Result;
}
DeleteGoogleApiSource(DeleteGoogleApiSourceRequest, CallSettings)
public virtual Operation<GoogleApiSource, OperationMetadata> DeleteGoogleApiSource(DeleteGoogleApiSourceRequest request, CallSettings callSettings = null)
Delete a single GoogleApiSource.
Parameters | |
---|---|
Name | Description |
request |
DeleteGoogleApiSourceRequest 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 |
OperationGoogleApiSourceOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
DeleteGoogleApiSourceRequest request = new DeleteGoogleApiSourceRequest
{
GoogleApiSourceName = GoogleApiSourceName.FromProjectLocationGoogleApiSource("[PROJECT]", "[LOCATION]", "[GOOGLE_API_SOURCE]"),
Etag = "",
AllowMissing = false,
ValidateOnly = false,
};
// Make the request
Operation<GoogleApiSource, OperationMetadata> response = eventarcClient.DeleteGoogleApiSource(request);
// Poll until the returned long-running operation is complete
Operation<GoogleApiSource, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
GoogleApiSource 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<GoogleApiSource, OperationMetadata> retrievedResponse = eventarcClient.PollOnceDeleteGoogleApiSource(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
GoogleApiSource retrievedResult = retrievedResponse.Result;
}
DeleteGoogleApiSource(GoogleApiSourceName, string, CallSettings)
public virtual Operation<GoogleApiSource, OperationMetadata> DeleteGoogleApiSource(GoogleApiSourceName name, string etag, CallSettings callSettings = null)
Delete a single GoogleApiSource.
Parameters | |
---|---|
Name | Description |
name |
GoogleApiSourceName Required. The name of the GoogleApiSource to be deleted. |
etag |
string Optional. If provided, the MessageBus will only be deleted if the etag matches the current etag on the resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationGoogleApiSourceOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
GoogleApiSourceName name = GoogleApiSourceName.FromProjectLocationGoogleApiSource("[PROJECT]", "[LOCATION]", "[GOOGLE_API_SOURCE]");
string etag = "";
// Make the request
Operation<GoogleApiSource, OperationMetadata> response = eventarcClient.DeleteGoogleApiSource(name, etag);
// Poll until the returned long-running operation is complete
Operation<GoogleApiSource, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
GoogleApiSource 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<GoogleApiSource, OperationMetadata> retrievedResponse = eventarcClient.PollOnceDeleteGoogleApiSource(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
GoogleApiSource retrievedResult = retrievedResponse.Result;
}
DeleteGoogleApiSource(string, string, CallSettings)
public virtual Operation<GoogleApiSource, OperationMetadata> DeleteGoogleApiSource(string name, string etag, CallSettings callSettings = null)
Delete a single GoogleApiSource.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the GoogleApiSource to be deleted. |
etag |
string Optional. If provided, the MessageBus will only be deleted if the etag matches the current etag on the resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationGoogleApiSourceOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/googleApiSources/[GOOGLE_API_SOURCE]";
string etag = "";
// Make the request
Operation<GoogleApiSource, OperationMetadata> response = eventarcClient.DeleteGoogleApiSource(name, etag);
// Poll until the returned long-running operation is complete
Operation<GoogleApiSource, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
GoogleApiSource 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<GoogleApiSource, OperationMetadata> retrievedResponse = eventarcClient.PollOnceDeleteGoogleApiSource(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
GoogleApiSource retrievedResult = retrievedResponse.Result;
}
DeleteGoogleApiSourceAsync(DeleteGoogleApiSourceRequest, CallSettings)
public virtual Task<Operation<GoogleApiSource, OperationMetadata>> DeleteGoogleApiSourceAsync(DeleteGoogleApiSourceRequest request, CallSettings callSettings = null)
Delete a single GoogleApiSource.
Parameters | |
---|---|
Name | Description |
request |
DeleteGoogleApiSourceRequest 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 |
TaskOperationGoogleApiSourceOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
DeleteGoogleApiSourceRequest request = new DeleteGoogleApiSourceRequest
{
GoogleApiSourceName = GoogleApiSourceName.FromProjectLocationGoogleApiSource("[PROJECT]", "[LOCATION]", "[GOOGLE_API_SOURCE]"),
Etag = "",
AllowMissing = false,
ValidateOnly = false,
};
// Make the request
Operation<GoogleApiSource, OperationMetadata> response = await eventarcClient.DeleteGoogleApiSourceAsync(request);
// Poll until the returned long-running operation is complete
Operation<GoogleApiSource, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GoogleApiSource 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<GoogleApiSource, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteGoogleApiSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
GoogleApiSource retrievedResult = retrievedResponse.Result;
}
DeleteGoogleApiSourceAsync(DeleteGoogleApiSourceRequest, CancellationToken)
public virtual Task<Operation<GoogleApiSource, OperationMetadata>> DeleteGoogleApiSourceAsync(DeleteGoogleApiSourceRequest request, CancellationToken cancellationToken)
Delete a single GoogleApiSource.
Parameters | |
---|---|
Name | Description |
request |
DeleteGoogleApiSourceRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationGoogleApiSourceOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
DeleteGoogleApiSourceRequest request = new DeleteGoogleApiSourceRequest
{
GoogleApiSourceName = GoogleApiSourceName.FromProjectLocationGoogleApiSource("[PROJECT]", "[LOCATION]", "[GOOGLE_API_SOURCE]"),
Etag = "",
AllowMissing = false,
ValidateOnly = false,
};
// Make the request
Operation<GoogleApiSource, OperationMetadata> response = await eventarcClient.DeleteGoogleApiSourceAsync(request);
// Poll until the returned long-running operation is complete
Operation<GoogleApiSource, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GoogleApiSource 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<GoogleApiSource, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteGoogleApiSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
GoogleApiSource retrievedResult = retrievedResponse.Result;
}
DeleteGoogleApiSourceAsync(GoogleApiSourceName, string, CallSettings)
public virtual Task<Operation<GoogleApiSource, OperationMetadata>> DeleteGoogleApiSourceAsync(GoogleApiSourceName name, string etag, CallSettings callSettings = null)
Delete a single GoogleApiSource.
Parameters | |
---|---|
Name | Description |
name |
GoogleApiSourceName Required. The name of the GoogleApiSource to be deleted. |
etag |
string Optional. If provided, the MessageBus will only be deleted if the etag matches the current etag on the resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationGoogleApiSourceOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
GoogleApiSourceName name = GoogleApiSourceName.FromProjectLocationGoogleApiSource("[PROJECT]", "[LOCATION]", "[GOOGLE_API_SOURCE]");
string etag = "";
// Make the request
Operation<GoogleApiSource, OperationMetadata> response = await eventarcClient.DeleteGoogleApiSourceAsync(name, etag);
// Poll until the returned long-running operation is complete
Operation<GoogleApiSource, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GoogleApiSource 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<GoogleApiSource, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteGoogleApiSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
GoogleApiSource retrievedResult = retrievedResponse.Result;
}
DeleteGoogleApiSourceAsync(GoogleApiSourceName, string, CancellationToken)
public virtual Task<Operation<GoogleApiSource, OperationMetadata>> DeleteGoogleApiSourceAsync(GoogleApiSourceName name, string etag, CancellationToken cancellationToken)
Delete a single GoogleApiSource.
Parameters | |
---|---|
Name | Description |
name |
GoogleApiSourceName Required. The name of the GoogleApiSource to be deleted. |
etag |
string Optional. If provided, the MessageBus will only be deleted if the etag matches the current etag on the resource. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationGoogleApiSourceOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
GoogleApiSourceName name = GoogleApiSourceName.FromProjectLocationGoogleApiSource("[PROJECT]", "[LOCATION]", "[GOOGLE_API_SOURCE]");
string etag = "";
// Make the request
Operation<GoogleApiSource, OperationMetadata> response = await eventarcClient.DeleteGoogleApiSourceAsync(name, etag);
// Poll until the returned long-running operation is complete
Operation<GoogleApiSource, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GoogleApiSource 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<GoogleApiSource, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteGoogleApiSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
GoogleApiSource retrievedResult = retrievedResponse.Result;
}
DeleteGoogleApiSourceAsync(string, string, CallSettings)
public virtual Task<Operation<GoogleApiSource, OperationMetadata>> DeleteGoogleApiSourceAsync(string name, string etag, CallSettings callSettings = null)
Delete a single GoogleApiSource.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the GoogleApiSource to be deleted. |
etag |
string Optional. If provided, the MessageBus will only be deleted if the etag matches the current etag on the resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationGoogleApiSourceOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/googleApiSources/[GOOGLE_API_SOURCE]";
string etag = "";
// Make the request
Operation<GoogleApiSource, OperationMetadata> response = await eventarcClient.DeleteGoogleApiSourceAsync(name, etag);
// Poll until the returned long-running operation is complete
Operation<GoogleApiSource, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GoogleApiSource 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<GoogleApiSource, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteGoogleApiSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
GoogleApiSource retrievedResult = retrievedResponse.Result;
}
DeleteGoogleApiSourceAsync(string, string, CancellationToken)
public virtual Task<Operation<GoogleApiSource, OperationMetadata>> DeleteGoogleApiSourceAsync(string name, string etag, CancellationToken cancellationToken)
Delete a single GoogleApiSource.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the GoogleApiSource to be deleted. |
etag |
string Optional. If provided, the MessageBus will only be deleted if the etag matches the current etag on the resource. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationGoogleApiSourceOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/googleApiSources/[GOOGLE_API_SOURCE]";
string etag = "";
// Make the request
Operation<GoogleApiSource, OperationMetadata> response = await eventarcClient.DeleteGoogleApiSourceAsync(name, etag);
// Poll until the returned long-running operation is complete
Operation<GoogleApiSource, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GoogleApiSource 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<GoogleApiSource, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteGoogleApiSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
GoogleApiSource retrievedResult = retrievedResponse.Result;
}
DeleteMessageBus(DeleteMessageBusRequest, CallSettings)
public virtual Operation<MessageBus, OperationMetadata> DeleteMessageBus(DeleteMessageBusRequest request, CallSettings callSettings = null)
Delete a single message bus.
Parameters | |
---|---|
Name | Description |
request |
DeleteMessageBusRequest 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 |
OperationMessageBusOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
DeleteMessageBusRequest request = new DeleteMessageBusRequest
{
MessageBusName = MessageBusName.FromProjectLocationMessageBus("[PROJECT]", "[LOCATION]", "[MESSAGE_BUS]"),
Etag = "",
AllowMissing = false,
ValidateOnly = false,
};
// Make the request
Operation<MessageBus, OperationMetadata> response = eventarcClient.DeleteMessageBus(request);
// Poll until the returned long-running operation is complete
Operation<MessageBus, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
MessageBus 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<MessageBus, OperationMetadata> retrievedResponse = eventarcClient.PollOnceDeleteMessageBus(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
MessageBus retrievedResult = retrievedResponse.Result;
}
DeleteMessageBus(MessageBusName, string, CallSettings)
public virtual Operation<MessageBus, OperationMetadata> DeleteMessageBus(MessageBusName name, string etag, CallSettings callSettings = null)
Delete a single message bus.
Parameters | |
---|---|
Name | Description |
name |
MessageBusName Required. The name of the MessageBus to be deleted. |
etag |
string Optional. If provided, the MessageBus will only be deleted if the etag matches the current etag on the resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationMessageBusOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
MessageBusName name = MessageBusName.FromProjectLocationMessageBus("[PROJECT]", "[LOCATION]", "[MESSAGE_BUS]");
string etag = "";
// Make the request
Operation<MessageBus, OperationMetadata> response = eventarcClient.DeleteMessageBus(name, etag);
// Poll until the returned long-running operation is complete
Operation<MessageBus, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
MessageBus 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<MessageBus, OperationMetadata> retrievedResponse = eventarcClient.PollOnceDeleteMessageBus(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
MessageBus retrievedResult = retrievedResponse.Result;
}
DeleteMessageBus(string, string, CallSettings)
public virtual Operation<MessageBus, OperationMetadata> DeleteMessageBus(string name, string etag, CallSettings callSettings = null)
Delete a single message bus.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the MessageBus to be deleted. |
etag |
string Optional. If provided, the MessageBus will only be deleted if the etag matches the current etag on the resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationMessageBusOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/messageBuses/[MESSAGE_BUS]";
string etag = "";
// Make the request
Operation<MessageBus, OperationMetadata> response = eventarcClient.DeleteMessageBus(name, etag);
// Poll until the returned long-running operation is complete
Operation<MessageBus, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
MessageBus 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<MessageBus, OperationMetadata> retrievedResponse = eventarcClient.PollOnceDeleteMessageBus(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
MessageBus retrievedResult = retrievedResponse.Result;
}
DeleteMessageBusAsync(DeleteMessageBusRequest, CallSettings)
public virtual Task<Operation<MessageBus, OperationMetadata>> DeleteMessageBusAsync(DeleteMessageBusRequest request, CallSettings callSettings = null)
Delete a single message bus.
Parameters | |
---|---|
Name | Description |
request |
DeleteMessageBusRequest 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 |
TaskOperationMessageBusOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
DeleteMessageBusRequest request = new DeleteMessageBusRequest
{
MessageBusName = MessageBusName.FromProjectLocationMessageBus("[PROJECT]", "[LOCATION]", "[MESSAGE_BUS]"),
Etag = "",
AllowMissing = false,
ValidateOnly = false,
};
// Make the request
Operation<MessageBus, OperationMetadata> response = await eventarcClient.DeleteMessageBusAsync(request);
// Poll until the returned long-running operation is complete
Operation<MessageBus, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
MessageBus 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<MessageBus, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteMessageBusAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
MessageBus retrievedResult = retrievedResponse.Result;
}
DeleteMessageBusAsync(DeleteMessageBusRequest, CancellationToken)
public virtual Task<Operation<MessageBus, OperationMetadata>> DeleteMessageBusAsync(DeleteMessageBusRequest request, CancellationToken cancellationToken)
Delete a single message bus.
Parameters | |
---|---|
Name | Description |
request |
DeleteMessageBusRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationMessageBusOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
DeleteMessageBusRequest request = new DeleteMessageBusRequest
{
MessageBusName = MessageBusName.FromProjectLocationMessageBus("[PROJECT]", "[LOCATION]", "[MESSAGE_BUS]"),
Etag = "",
AllowMissing = false,
ValidateOnly = false,
};
// Make the request
Operation<MessageBus, OperationMetadata> response = await eventarcClient.DeleteMessageBusAsync(request);
// Poll until the returned long-running operation is complete
Operation<MessageBus, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
MessageBus 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<MessageBus, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteMessageBusAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
MessageBus retrievedResult = retrievedResponse.Result;
}
DeleteMessageBusAsync(MessageBusName, string, CallSettings)
public virtual Task<Operation<MessageBus, OperationMetadata>> DeleteMessageBusAsync(MessageBusName name, string etag, CallSettings callSettings = null)
Delete a single message bus.
Parameters | |
---|---|
Name | Description |
name |
MessageBusName Required. The name of the MessageBus to be deleted. |
etag |
string Optional. If provided, the MessageBus will only be deleted if the etag matches the current etag on the resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationMessageBusOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
MessageBusName name = MessageBusName.FromProjectLocationMessageBus("[PROJECT]", "[LOCATION]", "[MESSAGE_BUS]");
string etag = "";
// Make the request
Operation<MessageBus, OperationMetadata> response = await eventarcClient.DeleteMessageBusAsync(name, etag);
// Poll until the returned long-running operation is complete
Operation<MessageBus, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
MessageBus 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<MessageBus, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteMessageBusAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
MessageBus retrievedResult = retrievedResponse.Result;
}
DeleteMessageBusAsync(MessageBusName, string, CancellationToken)
public virtual Task<Operation<MessageBus, OperationMetadata>> DeleteMessageBusAsync(MessageBusName name, string etag, CancellationToken cancellationToken)
Delete a single message bus.
Parameters | |
---|---|
Name | Description |
name |
MessageBusName Required. The name of the MessageBus to be deleted. |
etag |
string Optional. If provided, the MessageBus will only be deleted if the etag matches the current etag on the resource. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationMessageBusOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
MessageBusName name = MessageBusName.FromProjectLocationMessageBus("[PROJECT]", "[LOCATION]", "[MESSAGE_BUS]");
string etag = "";
// Make the request
Operation<MessageBus, OperationMetadata> response = await eventarcClient.DeleteMessageBusAsync(name, etag);
// Poll until the returned long-running operation is complete
Operation<MessageBus, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
MessageBus 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<MessageBus, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteMessageBusAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
MessageBus retrievedResult = retrievedResponse.Result;
}
DeleteMessageBusAsync(string, string, CallSettings)
public virtual Task<Operation<MessageBus, OperationMetadata>> DeleteMessageBusAsync(string name, string etag, CallSettings callSettings = null)
Delete a single message bus.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the MessageBus to be deleted. |
etag |
string Optional. If provided, the MessageBus will only be deleted if the etag matches the current etag on the resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationMessageBusOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/messageBuses/[MESSAGE_BUS]";
string etag = "";
// Make the request
Operation<MessageBus, OperationMetadata> response = await eventarcClient.DeleteMessageBusAsync(name, etag);
// Poll until the returned long-running operation is complete
Operation<MessageBus, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
MessageBus 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<MessageBus, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteMessageBusAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
MessageBus retrievedResult = retrievedResponse.Result;
}
DeleteMessageBusAsync(string, string, CancellationToken)
public virtual Task<Operation<MessageBus, OperationMetadata>> DeleteMessageBusAsync(string name, string etag, CancellationToken cancellationToken)
Delete a single message bus.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the MessageBus to be deleted. |
etag |
string Optional. If provided, the MessageBus will only be deleted if the etag matches the current etag on the resource. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationMessageBusOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/messageBuses/[MESSAGE_BUS]";
string etag = "";
// Make the request
Operation<MessageBus, OperationMetadata> response = await eventarcClient.DeleteMessageBusAsync(name, etag);
// Poll until the returned long-running operation is complete
Operation<MessageBus, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
MessageBus 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<MessageBus, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteMessageBusAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
MessageBus retrievedResult = retrievedResponse.Result;
}
DeletePipeline(DeletePipelineRequest, CallSettings)
public virtual Operation<Pipeline, OperationMetadata> DeletePipeline(DeletePipelineRequest request, CallSettings callSettings = null)
Delete a single pipeline.
Parameters | |
---|---|
Name | Description |
request |
DeletePipelineRequest 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 |
OperationPipelineOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
DeletePipelineRequest request = new DeletePipelineRequest
{
PipelineName = PipelineName.FromProjectLocationPipeline("[PROJECT]", "[LOCATION]", "[PIPELINE]"),
Etag = "",
AllowMissing = false,
ValidateOnly = false,
};
// Make the request
Operation<Pipeline, OperationMetadata> response = eventarcClient.DeletePipeline(request);
// Poll until the returned long-running operation is complete
Operation<Pipeline, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Pipeline 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<Pipeline, OperationMetadata> retrievedResponse = eventarcClient.PollOnceDeletePipeline(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Pipeline retrievedResult = retrievedResponse.Result;
}
DeletePipeline(PipelineName, string, CallSettings)
public virtual Operation<Pipeline, OperationMetadata> DeletePipeline(PipelineName name, string etag, CallSettings callSettings = null)
Delete a single pipeline.
Parameters | |
---|---|
Name | Description |
name |
PipelineName Required. The name of the Pipeline to be deleted. |
etag |
string Optional. If provided, the Pipeline will only be deleted if the etag matches the current etag on the resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationPipelineOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
PipelineName name = PipelineName.FromProjectLocationPipeline("[PROJECT]", "[LOCATION]", "[PIPELINE]");
string etag = "";
// Make the request
Operation<Pipeline, OperationMetadata> response = eventarcClient.DeletePipeline(name, etag);
// Poll until the returned long-running operation is complete
Operation<Pipeline, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Pipeline 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<Pipeline, OperationMetadata> retrievedResponse = eventarcClient.PollOnceDeletePipeline(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Pipeline retrievedResult = retrievedResponse.Result;
}
DeletePipeline(string, string, CallSettings)
public virtual Operation<Pipeline, OperationMetadata> DeletePipeline(string name, string etag, CallSettings callSettings = null)
Delete a single pipeline.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the Pipeline to be deleted. |
etag |
string Optional. If provided, the Pipeline will only be deleted if the etag matches the current etag on the resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationPipelineOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/pipelines/[PIPELINE]";
string etag = "";
// Make the request
Operation<Pipeline, OperationMetadata> response = eventarcClient.DeletePipeline(name, etag);
// Poll until the returned long-running operation is complete
Operation<Pipeline, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Pipeline 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<Pipeline, OperationMetadata> retrievedResponse = eventarcClient.PollOnceDeletePipeline(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Pipeline retrievedResult = retrievedResponse.Result;
}
DeletePipelineAsync(DeletePipelineRequest, CallSettings)
public virtual Task<Operation<Pipeline, OperationMetadata>> DeletePipelineAsync(DeletePipelineRequest request, CallSettings callSettings = null)
Delete a single pipeline.
Parameters | |
---|---|
Name | Description |
request |
DeletePipelineRequest 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 |
TaskOperationPipelineOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
DeletePipelineRequest request = new DeletePipelineRequest
{
PipelineName = PipelineName.FromProjectLocationPipeline("[PROJECT]", "[LOCATION]", "[PIPELINE]"),
Etag = "",
AllowMissing = false,
ValidateOnly = false,
};
// Make the request
Operation<Pipeline, OperationMetadata> response = await eventarcClient.DeletePipelineAsync(request);
// Poll until the returned long-running operation is complete
Operation<Pipeline, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Pipeline 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<Pipeline, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeletePipelineAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Pipeline retrievedResult = retrievedResponse.Result;
}
DeletePipelineAsync(DeletePipelineRequest, CancellationToken)
public virtual Task<Operation<Pipeline, OperationMetadata>> DeletePipelineAsync(DeletePipelineRequest request, CancellationToken cancellationToken)
Delete a single pipeline.
Parameters | |
---|---|
Name | Description |
request |
DeletePipelineRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationPipelineOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
DeletePipelineRequest request = new DeletePipelineRequest
{
PipelineName = PipelineName.FromProjectLocationPipeline("[PROJECT]", "[LOCATION]", "[PIPELINE]"),
Etag = "",
AllowMissing = false,
ValidateOnly = false,
};
// Make the request
Operation<Pipeline, OperationMetadata> response = await eventarcClient.DeletePipelineAsync(request);
// Poll until the returned long-running operation is complete
Operation<Pipeline, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Pipeline 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<Pipeline, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeletePipelineAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Pipeline retrievedResult = retrievedResponse.Result;
}
DeletePipelineAsync(PipelineName, string, CallSettings)
public virtual Task<Operation<Pipeline, OperationMetadata>> DeletePipelineAsync(PipelineName name, string etag, CallSettings callSettings = null)
Delete a single pipeline.
Parameters | |
---|---|
Name | Description |
name |
PipelineName Required. The name of the Pipeline to be deleted. |
etag |
string Optional. If provided, the Pipeline will only be deleted if the etag matches the current etag on the resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationPipelineOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
PipelineName name = PipelineName.FromProjectLocationPipeline("[PROJECT]", "[LOCATION]", "[PIPELINE]");
string etag = "";
// Make the request
Operation<Pipeline, OperationMetadata> response = await eventarcClient.DeletePipelineAsync(name, etag);
// Poll until the returned long-running operation is complete
Operation<Pipeline, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Pipeline 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<Pipeline, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeletePipelineAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Pipeline retrievedResult = retrievedResponse.Result;
}
DeletePipelineAsync(PipelineName, string, CancellationToken)
public virtual Task<Operation<Pipeline, OperationMetadata>> DeletePipelineAsync(PipelineName name, string etag, CancellationToken cancellationToken)
Delete a single pipeline.
Parameters | |
---|---|
Name | Description |
name |
PipelineName Required. The name of the Pipeline to be deleted. |
etag |
string Optional. If provided, the Pipeline will only be deleted if the etag matches the current etag on the resource. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationPipelineOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
PipelineName name = PipelineName.FromProjectLocationPipeline("[PROJECT]", "[LOCATION]", "[PIPELINE]");
string etag = "";
// Make the request
Operation<Pipeline, OperationMetadata> response = await eventarcClient.DeletePipelineAsync(name, etag);
// Poll until the returned long-running operation is complete
Operation<Pipeline, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Pipeline 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<Pipeline, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeletePipelineAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Pipeline retrievedResult = retrievedResponse.Result;
}
DeletePipelineAsync(string, string, CallSettings)
public virtual Task<Operation<Pipeline, OperationMetadata>> DeletePipelineAsync(string name, string etag, CallSettings callSettings = null)
Delete a single pipeline.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the Pipeline to be deleted. |
etag |
string Optional. If provided, the Pipeline will only be deleted if the etag matches the current etag on the resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationPipelineOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/pipelines/[PIPELINE]";
string etag = "";
// Make the request
Operation<Pipeline, OperationMetadata> response = await eventarcClient.DeletePipelineAsync(name, etag);
// Poll until the returned long-running operation is complete
Operation<Pipeline, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Pipeline 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<Pipeline, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeletePipelineAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Pipeline retrievedResult = retrievedResponse.Result;
}
DeletePipelineAsync(string, string, CancellationToken)
public virtual Task<Operation<Pipeline, OperationMetadata>> DeletePipelineAsync(string name, string etag, CancellationToken cancellationToken)
Delete a single pipeline.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the Pipeline to be deleted. |
etag |
string Optional. If provided, the Pipeline will only be deleted if the etag matches the current etag on the resource. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationPipelineOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/pipelines/[PIPELINE]";
string etag = "";
// Make the request
Operation<Pipeline, OperationMetadata> response = await eventarcClient.DeletePipelineAsync(name, etag);
// Poll until the returned long-running operation is complete
Operation<Pipeline, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Pipeline 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<Pipeline, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeletePipelineAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Pipeline retrievedResult = retrievedResponse.Result;
}
DeleteTrigger(DeleteTriggerRequest, CallSettings)
public virtual Operation<Trigger, OperationMetadata> DeleteTrigger(DeleteTriggerRequest request, CallSettings callSettings = null)
Delete a single trigger.
Parameters | |
---|---|
Name | Description |
request |
DeleteTriggerRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationTriggerOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
DeleteTriggerRequest request = new DeleteTriggerRequest
{
TriggerName = TriggerName.FromProjectLocationTrigger("[PROJECT]", "[LOCATION]", "[TRIGGER]"),
Etag = "",
AllowMissing = false,
ValidateOnly = false,
};
// Make the request
Operation<Trigger, OperationMetadata> response = eventarcClient.DeleteTrigger(request);
// Poll until the returned long-running operation is complete
Operation<Trigger, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Trigger result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Trigger, OperationMetadata> retrievedResponse = eventarcClient.PollOnceDeleteTrigger(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Trigger retrievedResult = retrievedResponse.Result;
}
DeleteTrigger(TriggerName, bool, CallSettings)
public virtual Operation<Trigger, OperationMetadata> DeleteTrigger(TriggerName name, bool allowMissing, CallSettings callSettings = null)
Delete a single trigger.
Parameters | |
---|---|
Name | Description |
name |
TriggerName Required. The name of the trigger to be deleted. |
allowMissing |
bool If set to true, and the trigger is not found, the request will succeed but no action will be taken on the server. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationTriggerOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
TriggerName name = TriggerName.FromProjectLocationTrigger("[PROJECT]", "[LOCATION]", "[TRIGGER]");
bool allowMissing = false;
// Make the request
Operation<Trigger, OperationMetadata> response = eventarcClient.DeleteTrigger(name, allowMissing);
// Poll until the returned long-running operation is complete
Operation<Trigger, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Trigger result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Trigger, OperationMetadata> retrievedResponse = eventarcClient.PollOnceDeleteTrigger(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Trigger retrievedResult = retrievedResponse.Result;
}
DeleteTrigger(string, bool, CallSettings)
public virtual Operation<Trigger, OperationMetadata> DeleteTrigger(string name, bool allowMissing, CallSettings callSettings = null)
Delete a single trigger.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the trigger to be deleted. |
allowMissing |
bool If set to true, and the trigger is not found, the request will succeed but no action will be taken on the server. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationTriggerOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/triggers/[TRIGGER]";
bool allowMissing = false;
// Make the request
Operation<Trigger, OperationMetadata> response = eventarcClient.DeleteTrigger(name, allowMissing);
// Poll until the returned long-running operation is complete
Operation<Trigger, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Trigger result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Trigger, OperationMetadata> retrievedResponse = eventarcClient.PollOnceDeleteTrigger(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Trigger retrievedResult = retrievedResponse.Result;
}
DeleteTriggerAsync(DeleteTriggerRequest, CallSettings)
public virtual Task<Operation<Trigger, OperationMetadata>> DeleteTriggerAsync(DeleteTriggerRequest request, CallSettings callSettings = null)
Delete a single trigger.
Parameters | |
---|---|
Name | Description |
request |
DeleteTriggerRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationTriggerOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
DeleteTriggerRequest request = new DeleteTriggerRequest
{
TriggerName = TriggerName.FromProjectLocationTrigger("[PROJECT]", "[LOCATION]", "[TRIGGER]"),
Etag = "",
AllowMissing = false,
ValidateOnly = false,
};
// Make the request
Operation<Trigger, OperationMetadata> response = await eventarcClient.DeleteTriggerAsync(request);
// Poll until the returned long-running operation is complete
Operation<Trigger, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Trigger result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Trigger, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteTriggerAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Trigger retrievedResult = retrievedResponse.Result;
}
DeleteTriggerAsync(DeleteTriggerRequest, CancellationToken)
public virtual Task<Operation<Trigger, OperationMetadata>> DeleteTriggerAsync(DeleteTriggerRequest request, CancellationToken cancellationToken)
Delete a single trigger.
Parameters | |
---|---|
Name | Description |
request |
DeleteTriggerRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationTriggerOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
DeleteTriggerRequest request = new DeleteTriggerRequest
{
TriggerName = TriggerName.FromProjectLocationTrigger("[PROJECT]", "[LOCATION]", "[TRIGGER]"),
Etag = "",
AllowMissing = false,
ValidateOnly = false,
};
// Make the request
Operation<Trigger, OperationMetadata> response = await eventarcClient.DeleteTriggerAsync(request);
// Poll until the returned long-running operation is complete
Operation<Trigger, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Trigger result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Trigger, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteTriggerAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Trigger retrievedResult = retrievedResponse.Result;
}
DeleteTriggerAsync(TriggerName, bool, CallSettings)
public virtual Task<Operation<Trigger, OperationMetadata>> DeleteTriggerAsync(TriggerName name, bool allowMissing, CallSettings callSettings = null)
Delete a single trigger.
Parameters | |
---|---|
Name | Description |
name |
TriggerName Required. The name of the trigger to be deleted. |
allowMissing |
bool If set to true, and the trigger is not found, the request will succeed but no action will be taken on the server. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationTriggerOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
TriggerName name = TriggerName.FromProjectLocationTrigger("[PROJECT]", "[LOCATION]", "[TRIGGER]");
bool allowMissing = false;
// Make the request
Operation<Trigger, OperationMetadata> response = await eventarcClient.DeleteTriggerAsync(name, allowMissing);
// Poll until the returned long-running operation is complete
Operation<Trigger, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Trigger result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Trigger, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteTriggerAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Trigger retrievedResult = retrievedResponse.Result;
}
DeleteTriggerAsync(TriggerName, bool, CancellationToken)
public virtual Task<Operation<Trigger, OperationMetadata>> DeleteTriggerAsync(TriggerName name, bool allowMissing, CancellationToken cancellationToken)
Delete a single trigger.
Parameters | |
---|---|
Name | Description |
name |
TriggerName Required. The name of the trigger to be deleted. |
allowMissing |
bool If set to true, and the trigger is not found, the request will succeed but no action will be taken on the server. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationTriggerOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
TriggerName name = TriggerName.FromProjectLocationTrigger("[PROJECT]", "[LOCATION]", "[TRIGGER]");
bool allowMissing = false;
// Make the request
Operation<Trigger, OperationMetadata> response = await eventarcClient.DeleteTriggerAsync(name, allowMissing);
// Poll until the returned long-running operation is complete
Operation<Trigger, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Trigger result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Trigger, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteTriggerAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Trigger retrievedResult = retrievedResponse.Result;
}
DeleteTriggerAsync(string, bool, CallSettings)
public virtual Task<Operation<Trigger, OperationMetadata>> DeleteTriggerAsync(string name, bool allowMissing, CallSettings callSettings = null)
Delete a single trigger.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the trigger to be deleted. |
allowMissing |
bool If set to true, and the trigger is not found, the request will succeed but no action will be taken on the server. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationTriggerOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/triggers/[TRIGGER]";
bool allowMissing = false;
// Make the request
Operation<Trigger, OperationMetadata> response = await eventarcClient.DeleteTriggerAsync(name, allowMissing);
// Poll until the returned long-running operation is complete
Operation<Trigger, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Trigger result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Trigger, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceDeleteTriggerAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Trigger retrievedResult = retrievedResponse.Result;
}
DeleteTriggerAsync(string, bool, CancellationToken)
public virtual Task<Operation<Trigger, OperationMetadata>> DeleteTriggerAsync(string name, bool allowMissing, CancellationToken cancellationToken)
Delete a single trigger.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the trigger to be deleted. |
allowMissing |
bool If set to true, and the trigger is not found, the request will succeed but no action will be taken on the server. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationTriggerOperationMetadata |
A Task containing the RPC response. |
// 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 |
TaskChannel |
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 |
TaskChannel |
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 |
TaskChannel |
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 |
TaskChannel |
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 |
TaskChannel |
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 |
TaskChannel |
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 |
TaskChannelConnection |
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 |
TaskChannelConnection |
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 |
TaskChannelConnection |
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 |
TaskChannelConnection |
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 |
TaskChannelConnection |
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 |
TaskChannelConnection |
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);
GetEnrollment(EnrollmentName, CallSettings)
public virtual Enrollment GetEnrollment(EnrollmentName name, CallSettings callSettings = null)
Get a single Enrollment.
Parameters | |
---|---|
Name | Description |
name |
EnrollmentName Required. The name of the Enrollment to get. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Enrollment |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
EnrollmentName name = EnrollmentName.FromProjectLocationEnrollment("[PROJECT]", "[LOCATION]", "[ENROLLMENT]");
// Make the request
Enrollment response = eventarcClient.GetEnrollment(name);
GetEnrollment(GetEnrollmentRequest, CallSettings)
public virtual Enrollment GetEnrollment(GetEnrollmentRequest request, CallSettings callSettings = null)
Get a single Enrollment.
Parameters | |
---|---|
Name | Description |
request |
GetEnrollmentRequest 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 |
Enrollment |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
GetEnrollmentRequest request = new GetEnrollmentRequest
{
EnrollmentName = EnrollmentName.FromProjectLocationEnrollment("[PROJECT]", "[LOCATION]", "[ENROLLMENT]"),
};
// Make the request
Enrollment response = eventarcClient.GetEnrollment(request);
GetEnrollment(string, CallSettings)
public virtual Enrollment GetEnrollment(string name, CallSettings callSettings = null)
Get a single Enrollment.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the Enrollment to get. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Enrollment |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/enrollments/[ENROLLMENT]";
// Make the request
Enrollment response = eventarcClient.GetEnrollment(name);
GetEnrollmentAsync(EnrollmentName, CallSettings)
public virtual Task<Enrollment> GetEnrollmentAsync(EnrollmentName name, CallSettings callSettings = null)
Get a single Enrollment.
Parameters | |
---|---|
Name | Description |
name |
EnrollmentName Required. The name of the Enrollment to get. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskEnrollment |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
EnrollmentName name = EnrollmentName.FromProjectLocationEnrollment("[PROJECT]", "[LOCATION]", "[ENROLLMENT]");
// Make the request
Enrollment response = await eventarcClient.GetEnrollmentAsync(name);
GetEnrollmentAsync(EnrollmentName, CancellationToken)
public virtual Task<Enrollment> GetEnrollmentAsync(EnrollmentName name, CancellationToken cancellationToken)
Get a single Enrollment.
Parameters | |
---|---|
Name | Description |
name |
EnrollmentName Required. The name of the Enrollment to get. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskEnrollment |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
EnrollmentName name = EnrollmentName.FromProjectLocationEnrollment("[PROJECT]", "[LOCATION]", "[ENROLLMENT]");
// Make the request
Enrollment response = await eventarcClient.GetEnrollmentAsync(name);
GetEnrollmentAsync(GetEnrollmentRequest, CallSettings)
public virtual Task<Enrollment> GetEnrollmentAsync(GetEnrollmentRequest request, CallSettings callSettings = null)
Get a single Enrollment.
Parameters | |
---|---|
Name | Description |
request |
GetEnrollmentRequest 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 |
TaskEnrollment |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
GetEnrollmentRequest request = new GetEnrollmentRequest
{
EnrollmentName = EnrollmentName.FromProjectLocationEnrollment("[PROJECT]", "[LOCATION]", "[ENROLLMENT]"),
};
// Make the request
Enrollment response = await eventarcClient.GetEnrollmentAsync(request);
GetEnrollmentAsync(GetEnrollmentRequest, CancellationToken)
public virtual Task<Enrollment> GetEnrollmentAsync(GetEnrollmentRequest request, CancellationToken cancellationToken)
Get a single Enrollment.
Parameters | |
---|---|
Name | Description |
request |
GetEnrollmentRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskEnrollment |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
GetEnrollmentRequest request = new GetEnrollmentRequest
{
EnrollmentName = EnrollmentName.FromProjectLocationEnrollment("[PROJECT]", "[LOCATION]", "[ENROLLMENT]"),
};
// Make the request
Enrollment response = await eventarcClient.GetEnrollmentAsync(request);
GetEnrollmentAsync(string, CallSettings)
public virtual Task<Enrollment> GetEnrollmentAsync(string name, CallSettings callSettings = null)
Get a single Enrollment.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the Enrollment to get. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskEnrollment |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/enrollments/[ENROLLMENT]";
// Make the request
Enrollment response = await eventarcClient.GetEnrollmentAsync(name);
GetEnrollmentAsync(string, CancellationToken)
public virtual Task<Enrollment> GetEnrollmentAsync(string name, CancellationToken cancellationToken)
Get a single Enrollment.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the Enrollment to get. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskEnrollment |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/enrollments/[ENROLLMENT]";
// Make the request
Enrollment response = await eventarcClient.GetEnrollmentAsync(name);
GetGoogleApiSource(GetGoogleApiSourceRequest, CallSettings)
public virtual GoogleApiSource GetGoogleApiSource(GetGoogleApiSourceRequest request, CallSettings callSettings = null)
Get a single GoogleApiSource.
Parameters | |
---|---|
Name | Description |
request |
GetGoogleApiSourceRequest 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 |
GoogleApiSource |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
GetGoogleApiSourceRequest request = new GetGoogleApiSourceRequest
{
GoogleApiSourceName = GoogleApiSourceName.FromProjectLocationGoogleApiSource("[PROJECT]", "[LOCATION]", "[GOOGLE_API_SOURCE]"),
};
// Make the request
GoogleApiSource response = eventarcClient.GetGoogleApiSource(request);
GetGoogleApiSource(GoogleApiSourceName, CallSettings)
public virtual GoogleApiSource GetGoogleApiSource(GoogleApiSourceName name, CallSettings callSettings = null)
Get a single GoogleApiSource.
Parameters | |
---|---|
Name | Description |
name |
GoogleApiSourceName Required. The name of the google api source to get. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
GoogleApiSource |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
GoogleApiSourceName name = GoogleApiSourceName.FromProjectLocationGoogleApiSource("[PROJECT]", "[LOCATION]", "[GOOGLE_API_SOURCE]");
// Make the request
GoogleApiSource response = eventarcClient.GetGoogleApiSource(name);
GetGoogleApiSource(string, CallSettings)
public virtual GoogleApiSource GetGoogleApiSource(string name, CallSettings callSettings = null)
Get a single GoogleApiSource.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the google api source to get. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
GoogleApiSource |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/googleApiSources/[GOOGLE_API_SOURCE]";
// Make the request
GoogleApiSource response = eventarcClient.GetGoogleApiSource(name);
GetGoogleApiSourceAsync(GetGoogleApiSourceRequest, CallSettings)
public virtual Task<GoogleApiSource> GetGoogleApiSourceAsync(GetGoogleApiSourceRequest request, CallSettings callSettings = null)
Get a single GoogleApiSource.
Parameters | |
---|---|
Name | Description |
request |
GetGoogleApiSourceRequest 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 |
TaskGoogleApiSource |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
GetGoogleApiSourceRequest request = new GetGoogleApiSourceRequest
{
GoogleApiSourceName = GoogleApiSourceName.FromProjectLocationGoogleApiSource("[PROJECT]", "[LOCATION]", "[GOOGLE_API_SOURCE]"),
};
// Make the request
GoogleApiSource response = await eventarcClient.GetGoogleApiSourceAsync(request);
GetGoogleApiSourceAsync(GetGoogleApiSourceRequest, CancellationToken)
public virtual Task<GoogleApiSource> GetGoogleApiSourceAsync(GetGoogleApiSourceRequest request, CancellationToken cancellationToken)
Get a single GoogleApiSource.
Parameters | |
---|---|
Name | Description |
request |
GetGoogleApiSourceRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskGoogleApiSource |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
GetGoogleApiSourceRequest request = new GetGoogleApiSourceRequest
{
GoogleApiSourceName = GoogleApiSourceName.FromProjectLocationGoogleApiSource("[PROJECT]", "[LOCATION]", "[GOOGLE_API_SOURCE]"),
};
// Make the request
GoogleApiSource response = await eventarcClient.GetGoogleApiSourceAsync(request);
GetGoogleApiSourceAsync(GoogleApiSourceName, CallSettings)
public virtual Task<GoogleApiSource> GetGoogleApiSourceAsync(GoogleApiSourceName name, CallSettings callSettings = null)
Get a single GoogleApiSource.
Parameters | |
---|---|
Name | Description |
name |
GoogleApiSourceName Required. The name of the google api source to get. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskGoogleApiSource |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
GoogleApiSourceName name = GoogleApiSourceName.FromProjectLocationGoogleApiSource("[PROJECT]", "[LOCATION]", "[GOOGLE_API_SOURCE]");
// Make the request
GoogleApiSource response = await eventarcClient.GetGoogleApiSourceAsync(name);
GetGoogleApiSourceAsync(GoogleApiSourceName, CancellationToken)
public virtual Task<GoogleApiSource> GetGoogleApiSourceAsync(GoogleApiSourceName name, CancellationToken cancellationToken)
Get a single GoogleApiSource.
Parameters | |
---|---|
Name | Description |
name |
GoogleApiSourceName Required. The name of the google api source to get. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskGoogleApiSource |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
GoogleApiSourceName name = GoogleApiSourceName.FromProjectLocationGoogleApiSource("[PROJECT]", "[LOCATION]", "[GOOGLE_API_SOURCE]");
// Make the request
GoogleApiSource response = await eventarcClient.GetGoogleApiSourceAsync(name);
GetGoogleApiSourceAsync(string, CallSettings)
public virtual Task<GoogleApiSource> GetGoogleApiSourceAsync(string name, CallSettings callSettings = null)
Get a single GoogleApiSource.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the google api source to get. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskGoogleApiSource |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/googleApiSources/[GOOGLE_API_SOURCE]";
// Make the request
GoogleApiSource response = await eventarcClient.GetGoogleApiSourceAsync(name);
GetGoogleApiSourceAsync(string, CancellationToken)
public virtual Task<GoogleApiSource> GetGoogleApiSourceAsync(string name, CancellationToken cancellationToken)
Get a single GoogleApiSource.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the google api source to get. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskGoogleApiSource |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/googleApiSources/[GOOGLE_API_SOURCE]";
// Make the request
GoogleApiSource response = await eventarcClient.GetGoogleApiSourceAsync(name);
GetGoogleChannelConfig(GetGoogleChannelConfigRequest, CallSettings)
public virtual GoogleChannelConfig GetGoogleChannelConfig(GetGoogleChannelConfigRequest request, CallSettings callSettings = null)
Get a GoogleChannelConfig
Parameters | |
---|---|
Name | Description |
request |
GetGoogleChannelConfigRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
GoogleChannelConfig |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
GetGoogleChannelConfigRequest request = new GetGoogleChannelConfigRequest
{
GoogleChannelConfigName = GoogleChannelConfigName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
GoogleChannelConfig response = eventarcClient.GetGoogleChannelConfig(request);
GetGoogleChannelConfig(GoogleChannelConfigName, CallSettings)
public virtual GoogleChannelConfig GetGoogleChannelConfig(GoogleChannelConfigName name, CallSettings callSettings = null)
Get a GoogleChannelConfig
Parameters | |
---|---|
Name | Description |
name |
GoogleChannelConfigName Required. The name of the config to get. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
GoogleChannelConfig |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
GoogleChannelConfigName name = GoogleChannelConfigName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
GoogleChannelConfig response = eventarcClient.GetGoogleChannelConfig(name);
GetGoogleChannelConfig(string, CallSettings)
public virtual GoogleChannelConfig GetGoogleChannelConfig(string name, CallSettings callSettings = null)
Get a GoogleChannelConfig
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the config to get. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
GoogleChannelConfig |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/googleChannelConfig";
// Make the request
GoogleChannelConfig response = eventarcClient.GetGoogleChannelConfig(name);
GetGoogleChannelConfigAsync(GetGoogleChannelConfigRequest, CallSettings)
public virtual Task<GoogleChannelConfig> GetGoogleChannelConfigAsync(GetGoogleChannelConfigRequest request, CallSettings callSettings = null)
Get a GoogleChannelConfig
Parameters | |
---|---|
Name | Description |
request |
GetGoogleChannelConfigRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskGoogleChannelConfig |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
GetGoogleChannelConfigRequest request = new GetGoogleChannelConfigRequest
{
GoogleChannelConfigName = GoogleChannelConfigName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
GoogleChannelConfig response = await eventarcClient.GetGoogleChannelConfigAsync(request);
GetGoogleChannelConfigAsync(GetGoogleChannelConfigRequest, CancellationToken)
public virtual Task<GoogleChannelConfig> GetGoogleChannelConfigAsync(GetGoogleChannelConfigRequest request, CancellationToken cancellationToken)
Get a GoogleChannelConfig
Parameters | |
---|---|
Name | Description |
request |
GetGoogleChannelConfigRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskGoogleChannelConfig |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
GetGoogleChannelConfigRequest request = new GetGoogleChannelConfigRequest
{
GoogleChannelConfigName = GoogleChannelConfigName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
GoogleChannelConfig response = await eventarcClient.GetGoogleChannelConfigAsync(request);
GetGoogleChannelConfigAsync(GoogleChannelConfigName, CallSettings)
public virtual Task<GoogleChannelConfig> GetGoogleChannelConfigAsync(GoogleChannelConfigName name, CallSettings callSettings = null)
Get a GoogleChannelConfig
Parameters | |
---|---|
Name | Description |
name |
GoogleChannelConfigName Required. The name of the config to get. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskGoogleChannelConfig |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
GoogleChannelConfigName name = GoogleChannelConfigName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
GoogleChannelConfig response = await eventarcClient.GetGoogleChannelConfigAsync(name);
GetGoogleChannelConfigAsync(GoogleChannelConfigName, CancellationToken)
public virtual Task<GoogleChannelConfig> GetGoogleChannelConfigAsync(GoogleChannelConfigName name, CancellationToken cancellationToken)
Get a GoogleChannelConfig
Parameters | |
---|---|
Name | Description |
name |
GoogleChannelConfigName Required. The name of the config to get. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskGoogleChannelConfig |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
GoogleChannelConfigName name = GoogleChannelConfigName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
GoogleChannelConfig response = await eventarcClient.GetGoogleChannelConfigAsync(name);
GetGoogleChannelConfigAsync(string, CallSettings)
public virtual Task<GoogleChannelConfig> GetGoogleChannelConfigAsync(string name, CallSettings callSettings = null)
Get a GoogleChannelConfig
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the config to get. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskGoogleChannelConfig |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/googleChannelConfig";
// Make the request
GoogleChannelConfig response = await eventarcClient.GetGoogleChannelConfigAsync(name);
GetGoogleChannelConfigAsync(string, CancellationToken)
public virtual Task<GoogleChannelConfig> GetGoogleChannelConfigAsync(string name, CancellationToken cancellationToken)
Get a GoogleChannelConfig
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the config to get. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskGoogleChannelConfig |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/googleChannelConfig";
// Make the request
GoogleChannelConfig response = await eventarcClient.GetGoogleChannelConfigAsync(name);
GetMessageBus(GetMessageBusRequest, CallSettings)
public virtual MessageBus GetMessageBus(GetMessageBusRequest request, CallSettings callSettings = null)
Get a single MessageBus.
Parameters | |
---|---|
Name | Description |
request |
GetMessageBusRequest 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 |
MessageBus |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
GetMessageBusRequest request = new GetMessageBusRequest
{
MessageBusName = MessageBusName.FromProjectLocationMessageBus("[PROJECT]", "[LOCATION]", "[MESSAGE_BUS]"),
};
// Make the request
MessageBus response = eventarcClient.GetMessageBus(request);
GetMessageBus(MessageBusName, CallSettings)
public virtual MessageBus GetMessageBus(MessageBusName name, CallSettings callSettings = null)
Get a single MessageBus.
Parameters | |
---|---|
Name | Description |
name |
MessageBusName Required. The name of the message bus to get. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
MessageBus |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
MessageBusName name = MessageBusName.FromProjectLocationMessageBus("[PROJECT]", "[LOCATION]", "[MESSAGE_BUS]");
// Make the request
MessageBus response = eventarcClient.GetMessageBus(name);
GetMessageBus(string, CallSettings)
public virtual MessageBus GetMessageBus(string name, CallSettings callSettings = null)
Get a single MessageBus.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the message bus to get. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
MessageBus |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/messageBuses/[MESSAGE_BUS]";
// Make the request
MessageBus response = eventarcClient.GetMessageBus(name);
GetMessageBusAsync(GetMessageBusRequest, CallSettings)
public virtual Task<MessageBus> GetMessageBusAsync(GetMessageBusRequest request, CallSettings callSettings = null)
Get a single MessageBus.
Parameters | |
---|---|
Name | Description |
request |
GetMessageBusRequest 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 |
TaskMessageBus |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
GetMessageBusRequest request = new GetMessageBusRequest
{
MessageBusName = MessageBusName.FromProjectLocationMessageBus("[PROJECT]", "[LOCATION]", "[MESSAGE_BUS]"),
};
// Make the request
MessageBus response = await eventarcClient.GetMessageBusAsync(request);
GetMessageBusAsync(GetMessageBusRequest, CancellationToken)
public virtual Task<MessageBus> GetMessageBusAsync(GetMessageBusRequest request, CancellationToken cancellationToken)
Get a single MessageBus.
Parameters | |
---|---|
Name | Description |
request |
GetMessageBusRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskMessageBus |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
GetMessageBusRequest request = new GetMessageBusRequest
{
MessageBusName = MessageBusName.FromProjectLocationMessageBus("[PROJECT]", "[LOCATION]", "[MESSAGE_BUS]"),
};
// Make the request
MessageBus response = await eventarcClient.GetMessageBusAsync(request);
GetMessageBusAsync(MessageBusName, CallSettings)
public virtual Task<MessageBus> GetMessageBusAsync(MessageBusName name, CallSettings callSettings = null)
Get a single MessageBus.
Parameters | |
---|---|
Name | Description |
name |
MessageBusName Required. The name of the message bus to get. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskMessageBus |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
MessageBusName name = MessageBusName.FromProjectLocationMessageBus("[PROJECT]", "[LOCATION]", "[MESSAGE_BUS]");
// Make the request
MessageBus response = await eventarcClient.GetMessageBusAsync(name);
GetMessageBusAsync(MessageBusName, CancellationToken)
public virtual Task<MessageBus> GetMessageBusAsync(MessageBusName name, CancellationToken cancellationToken)
Get a single MessageBus.
Parameters | |
---|---|
Name | Description |
name |
MessageBusName Required. The name of the message bus to get. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskMessageBus |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
MessageBusName name = MessageBusName.FromProjectLocationMessageBus("[PROJECT]", "[LOCATION]", "[MESSAGE_BUS]");
// Make the request
MessageBus response = await eventarcClient.GetMessageBusAsync(name);
GetMessageBusAsync(string, CallSettings)
public virtual Task<MessageBus> GetMessageBusAsync(string name, CallSettings callSettings = null)
Get a single MessageBus.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the message bus to get. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskMessageBus |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/messageBuses/[MESSAGE_BUS]";
// Make the request
MessageBus response = await eventarcClient.GetMessageBusAsync(name);
GetMessageBusAsync(string, CancellationToken)
public virtual Task<MessageBus> GetMessageBusAsync(string name, CancellationToken cancellationToken)
Get a single MessageBus.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the message bus to get. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskMessageBus |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/messageBuses/[MESSAGE_BUS]";
// Make the request
MessageBus response = await eventarcClient.GetMessageBusAsync(name);
GetPipeline(GetPipelineRequest, CallSettings)
public virtual Pipeline GetPipeline(GetPipelineRequest request, CallSettings callSettings = null)
Get a single Pipeline.
Parameters | |
---|---|
Name | Description |
request |
GetPipelineRequest 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 |
Pipeline |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
GetPipelineRequest request = new GetPipelineRequest
{
PipelineName = PipelineName.FromProjectLocationPipeline("[PROJECT]", "[LOCATION]", "[PIPELINE]"),
};
// Make the request
Pipeline response = eventarcClient.GetPipeline(request);
GetPipeline(PipelineName, CallSettings)
public virtual Pipeline GetPipeline(PipelineName name, CallSettings callSettings = null)
Get a single Pipeline.
Parameters | |
---|---|
Name | Description |
name |
PipelineName Required. The name of the pipeline to get. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Pipeline |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
PipelineName name = PipelineName.FromProjectLocationPipeline("[PROJECT]", "[LOCATION]", "[PIPELINE]");
// Make the request
Pipeline response = eventarcClient.GetPipeline(name);
GetPipeline(string, CallSettings)
public virtual Pipeline GetPipeline(string name, CallSettings callSettings = null)
Get a single Pipeline.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the pipeline to get. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Pipeline |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/pipelines/[PIPELINE]";
// Make the request
Pipeline response = eventarcClient.GetPipeline(name);
GetPipelineAsync(GetPipelineRequest, CallSettings)
public virtual Task<Pipeline> GetPipelineAsync(GetPipelineRequest request, CallSettings callSettings = null)
Get a single Pipeline.
Parameters | |
---|---|
Name | Description |
request |
GetPipelineRequest 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 |
TaskPipeline |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
GetPipelineRequest request = new GetPipelineRequest
{
PipelineName = PipelineName.FromProjectLocationPipeline("[PROJECT]", "[LOCATION]", "[PIPELINE]"),
};
// Make the request
Pipeline response = await eventarcClient.GetPipelineAsync(request);
GetPipelineAsync(GetPipelineRequest, CancellationToken)
public virtual Task<Pipeline> GetPipelineAsync(GetPipelineRequest request, CancellationToken cancellationToken)
Get a single Pipeline.
Parameters | |
---|---|
Name | Description |
request |
GetPipelineRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPipeline |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
GetPipelineRequest request = new GetPipelineRequest
{
PipelineName = PipelineName.FromProjectLocationPipeline("[PROJECT]", "[LOCATION]", "[PIPELINE]"),
};
// Make the request
Pipeline response = await eventarcClient.GetPipelineAsync(request);
GetPipelineAsync(PipelineName, CallSettings)
public virtual Task<Pipeline> GetPipelineAsync(PipelineName name, CallSettings callSettings = null)
Get a single Pipeline.
Parameters | |
---|---|
Name | Description |
name |
PipelineName Required. The name of the pipeline to get. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPipeline |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
PipelineName name = PipelineName.FromProjectLocationPipeline("[PROJECT]", "[LOCATION]", "[PIPELINE]");
// Make the request
Pipeline response = await eventarcClient.GetPipelineAsync(name);
GetPipelineAsync(PipelineName, CancellationToken)
public virtual Task<Pipeline> GetPipelineAsync(PipelineName name, CancellationToken cancellationToken)
Get a single Pipeline.
Parameters | |
---|---|
Name | Description |
name |
PipelineName Required. The name of the pipeline to get. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPipeline |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
PipelineName name = PipelineName.FromProjectLocationPipeline("[PROJECT]", "[LOCATION]", "[PIPELINE]");
// Make the request
Pipeline response = await eventarcClient.GetPipelineAsync(name);
GetPipelineAsync(string, CallSettings)
public virtual Task<Pipeline> GetPipelineAsync(string name, CallSettings callSettings = null)
Get a single Pipeline.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the pipeline to get. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPipeline |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/pipelines/[PIPELINE]";
// Make the request
Pipeline response = await eventarcClient.GetPipelineAsync(name);
GetPipelineAsync(string, CancellationToken)
public virtual Task<Pipeline> GetPipelineAsync(string name, CancellationToken cancellationToken)
Get a single Pipeline.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the pipeline to get. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPipeline |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/pipelines/[PIPELINE]";
// Make the request
Pipeline response = await eventarcClient.GetPipelineAsync(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 |
TaskProvider |
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 |
TaskProvider |
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 |
TaskProvider |
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 |
TaskProvider |
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 |
TaskProvider |
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 |
TaskProvider |
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 |
TaskTrigger |
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 |
TaskTrigger |
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 |
TaskTrigger |
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 |
TaskTrigger |
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 |
TaskTrigger |
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 |
TaskTrigger |
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, int?, CallSettings)
public virtual PagedEnumerable<ListChannelConnectionsResponse, ChannelConnection> ListChannelConnections(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List channel connections.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent collection from which to list channel connections. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int 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 |
PagedEnumerableListChannelConnectionsResponseChannelConnection |
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 |
PagedEnumerableListChannelConnectionsResponseChannelConnection |
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, int?, CallSettings)
public virtual PagedEnumerable<ListChannelConnectionsResponse, ChannelConnection> ListChannelConnections(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List channel connections.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent collection from which to list channel connections. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int 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 |
PagedEnumerableListChannelConnectionsResponseChannelConnection |
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, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListChannelConnectionsResponse, ChannelConnection> ListChannelConnectionsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List channel connections.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent collection from which to list channel connections. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int 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 |
PagedAsyncEnumerableListChannelConnectionsResponseChannelConnection |
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 |
PagedAsyncEnumerableListChannelConnectionsResponseChannelConnection |
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, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListChannelConnectionsResponse, ChannelConnection> ListChannelConnectionsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List channel connections.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent collection from which to list channel connections. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int 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 |
PagedAsyncEnumerableListChannelConnectionsResponseChannelConnection |
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, int?, CallSettings)
public virtual PagedEnumerable<ListChannelsResponse, Channel> ListChannels(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List channels.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent collection to list channels on. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int 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 |
PagedEnumerableListChannelsResponseChannel |
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 |
PagedEnumerableListChannelsResponseChannel |
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, int?, CallSettings)
public virtual PagedEnumerable<ListChannelsResponse, Channel> ListChannels(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List channels.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent collection to list channels on. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int 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 |
PagedEnumerableListChannelsResponseChannel |
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, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListChannelsResponse, Channel> ListChannelsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List channels.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent collection to list channels on. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int 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 |
PagedAsyncEnumerableListChannelsResponseChannel |
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 |
PagedAsyncEnumerableListChannelsResponseChannel |
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, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListChannelsResponse, Channel> ListChannelsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List channels.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent collection to list channels on. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int 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 |
PagedAsyncEnumerableListChannelsResponseChannel |
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;
ListEnrollments(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListEnrollmentsResponse, Enrollment> ListEnrollments(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List Enrollments.
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 |
int 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 |
PagedEnumerableListEnrollmentsResponseEnrollment |
A pageable sequence of Enrollment resources. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListEnrollmentsResponse, Enrollment> response = eventarcClient.ListEnrollments(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Enrollment 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 (ListEnrollmentsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Enrollment 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<Enrollment> 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 (Enrollment 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;
ListEnrollments(ListEnrollmentsRequest, CallSettings)
public virtual PagedEnumerable<ListEnrollmentsResponse, Enrollment> ListEnrollments(ListEnrollmentsRequest request, CallSettings callSettings = null)
List Enrollments.
Parameters | |
---|---|
Name | Description |
request |
ListEnrollmentsRequest 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 |
PagedEnumerableListEnrollmentsResponseEnrollment |
A pageable sequence of Enrollment resources. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
ListEnrollmentsRequest request = new ListEnrollmentsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
OrderBy = "",
Filter = "",
};
// Make the request
PagedEnumerable<ListEnrollmentsResponse, Enrollment> response = eventarcClient.ListEnrollments(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (Enrollment 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 (ListEnrollmentsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Enrollment 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<Enrollment> 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 (Enrollment 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;
ListEnrollments(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListEnrollmentsResponse, Enrollment> ListEnrollments(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List Enrollments.
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 |
int 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 |
PagedEnumerableListEnrollmentsResponseEnrollment |
A pageable sequence of Enrollment resources. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListEnrollmentsResponse, Enrollment> response = eventarcClient.ListEnrollments(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Enrollment 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 (ListEnrollmentsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Enrollment 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<Enrollment> 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 (Enrollment 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;
ListEnrollmentsAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListEnrollmentsResponse, Enrollment> ListEnrollmentsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List Enrollments.
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 |
int 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 |
PagedAsyncEnumerableListEnrollmentsResponseEnrollment |
A pageable asynchronous sequence of Enrollment resources. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListEnrollmentsResponse, Enrollment> response = eventarcClient.ListEnrollmentsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Enrollment 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((ListEnrollmentsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Enrollment 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<Enrollment> 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 (Enrollment 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;
ListEnrollmentsAsync(ListEnrollmentsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListEnrollmentsResponse, Enrollment> ListEnrollmentsAsync(ListEnrollmentsRequest request, CallSettings callSettings = null)
List Enrollments.
Parameters | |
---|---|
Name | Description |
request |
ListEnrollmentsRequest 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 |
PagedAsyncEnumerableListEnrollmentsResponseEnrollment |
A pageable asynchronous sequence of Enrollment resources. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
ListEnrollmentsRequest request = new ListEnrollmentsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
OrderBy = "",
Filter = "",
};
// Make the request
PagedAsyncEnumerable<ListEnrollmentsResponse, Enrollment> response = eventarcClient.ListEnrollmentsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Enrollment 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((ListEnrollmentsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Enrollment 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<Enrollment> 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 (Enrollment 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;
ListEnrollmentsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListEnrollmentsResponse, Enrollment> ListEnrollmentsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List Enrollments.
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 |
int 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 |
PagedAsyncEnumerableListEnrollmentsResponseEnrollment |
A pageable asynchronous sequence of Enrollment resources. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListEnrollmentsResponse, Enrollment> response = eventarcClient.ListEnrollmentsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Enrollment 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((ListEnrollmentsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Enrollment 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<Enrollment> 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 (Enrollment 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;
ListGoogleApiSources(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListGoogleApiSourcesResponse, GoogleApiSource> ListGoogleApiSources(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List GoogleApiSources.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent collection to list GoogleApiSources on. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int 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 |
PagedEnumerableListGoogleApiSourcesResponseGoogleApiSource |
A pageable sequence of GoogleApiSource resources. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListGoogleApiSourcesResponse, GoogleApiSource> response = eventarcClient.ListGoogleApiSources(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (GoogleApiSource 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 (ListGoogleApiSourcesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (GoogleApiSource 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<GoogleApiSource> 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 (GoogleApiSource 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;
ListGoogleApiSources(ListGoogleApiSourcesRequest, CallSettings)
public virtual PagedEnumerable<ListGoogleApiSourcesResponse, GoogleApiSource> ListGoogleApiSources(ListGoogleApiSourcesRequest request, CallSettings callSettings = null)
List GoogleApiSources.
Parameters | |
---|---|
Name | Description |
request |
ListGoogleApiSourcesRequest 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 |
PagedEnumerableListGoogleApiSourcesResponseGoogleApiSource |
A pageable sequence of GoogleApiSource resources. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
ListGoogleApiSourcesRequest request = new ListGoogleApiSourcesRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
OrderBy = "",
Filter = "",
};
// Make the request
PagedEnumerable<ListGoogleApiSourcesResponse, GoogleApiSource> response = eventarcClient.ListGoogleApiSources(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (GoogleApiSource 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 (ListGoogleApiSourcesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (GoogleApiSource 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<GoogleApiSource> 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 (GoogleApiSource 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;
ListGoogleApiSources(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListGoogleApiSourcesResponse, GoogleApiSource> ListGoogleApiSources(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List GoogleApiSources.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent collection to list GoogleApiSources on. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int 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 |
PagedEnumerableListGoogleApiSourcesResponseGoogleApiSource |
A pageable sequence of GoogleApiSource resources. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListGoogleApiSourcesResponse, GoogleApiSource> response = eventarcClient.ListGoogleApiSources(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (GoogleApiSource 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 (ListGoogleApiSourcesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (GoogleApiSource 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<GoogleApiSource> 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 (GoogleApiSource 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;
ListGoogleApiSourcesAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListGoogleApiSourcesResponse, GoogleApiSource> ListGoogleApiSourcesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List GoogleApiSources.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent collection to list GoogleApiSources on. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int 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 |
PagedAsyncEnumerableListGoogleApiSourcesResponseGoogleApiSource |
A pageable asynchronous sequence of GoogleApiSource resources. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListGoogleApiSourcesResponse, GoogleApiSource> response = eventarcClient.ListGoogleApiSourcesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((GoogleApiSource 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((ListGoogleApiSourcesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (GoogleApiSource 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<GoogleApiSource> 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 (GoogleApiSource 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;
ListGoogleApiSourcesAsync(ListGoogleApiSourcesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListGoogleApiSourcesResponse, GoogleApiSource> ListGoogleApiSourcesAsync(ListGoogleApiSourcesRequest request, CallSettings callSettings = null)
List GoogleApiSources.
Parameters | |
---|---|
Name | Description |
request |
ListGoogleApiSourcesRequest 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 |
PagedAsyncEnumerableListGoogleApiSourcesResponseGoogleApiSource |
A pageable asynchronous sequence of GoogleApiSource resources. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
ListGoogleApiSourcesRequest request = new ListGoogleApiSourcesRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
OrderBy = "",
Filter = "",
};
// Make the request
PagedAsyncEnumerable<ListGoogleApiSourcesResponse, GoogleApiSource> response = eventarcClient.ListGoogleApiSourcesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((GoogleApiSource 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((ListGoogleApiSourcesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (GoogleApiSource 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<GoogleApiSource> 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 (GoogleApiSource 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;
ListGoogleApiSourcesAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListGoogleApiSourcesResponse, GoogleApiSource> ListGoogleApiSourcesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List GoogleApiSources.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent collection to list GoogleApiSources on. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int 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 |
PagedAsyncEnumerableListGoogleApiSourcesResponseGoogleApiSource |
A pageable asynchronous sequence of GoogleApiSource resources. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListGoogleApiSourcesResponse, GoogleApiSource> response = eventarcClient.ListGoogleApiSourcesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((GoogleApiSource 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((ListGoogleApiSourcesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (GoogleApiSource 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<GoogleApiSource> 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 (GoogleApiSource 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;
ListMessageBusEnrollments(ListMessageBusEnrollmentsRequest, CallSettings)
public virtual PagedEnumerable<ListMessageBusEnrollmentsResponse, string> ListMessageBusEnrollments(ListMessageBusEnrollmentsRequest request, CallSettings callSettings = null)
List message bus enrollments.
Parameters | |
---|---|
Name | Description |
request |
ListMessageBusEnrollmentsRequest 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 |
PagedEnumerableListMessageBusEnrollmentsResponsestring |
A pageable sequence of string resources. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
ListMessageBusEnrollmentsRequest request = new ListMessageBusEnrollmentsRequest
{
ParentAsMessageBusName = MessageBusName.FromProjectLocationMessageBus("[PROJECT]", "[LOCATION]", "[MESSAGE_BUS]"),
};
// Make the request
PagedEnumerable<ListMessageBusEnrollmentsResponse, string> response = eventarcClient.ListMessageBusEnrollments(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (string 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 (ListMessageBusEnrollmentsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (string 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<string> 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 (string 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;
ListMessageBusEnrollments(MessageBusName, string, int?, CallSettings)
public virtual PagedEnumerable<ListMessageBusEnrollmentsResponse, string> ListMessageBusEnrollments(MessageBusName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List message bus enrollments.
Parameters | |
---|---|
Name | Description |
parent |
MessageBusName Required. The parent message bus to list enrollments on. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int 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 |
PagedEnumerableListMessageBusEnrollmentsResponsestring |
A pageable sequence of string resources. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
MessageBusName parent = MessageBusName.FromProjectLocationMessageBus("[PROJECT]", "[LOCATION]", "[MESSAGE_BUS]");
// Make the request
PagedEnumerable<ListMessageBusEnrollmentsResponse, string> response = eventarcClient.ListMessageBusEnrollments(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (string 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 (ListMessageBusEnrollmentsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (string 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<string> 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 (string 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;
ListMessageBusEnrollments(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListMessageBusEnrollmentsResponse, string> ListMessageBusEnrollments(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List message bus enrollments.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent message bus to list enrollments on. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int 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 |
PagedEnumerableListMessageBusEnrollmentsResponsestring |
A pageable sequence of string resources. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/messageBuses/[MESSAGE_BUS]";
// Make the request
PagedEnumerable<ListMessageBusEnrollmentsResponse, string> response = eventarcClient.ListMessageBusEnrollments(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (string 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 (ListMessageBusEnrollmentsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (string 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<string> 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 (string 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;
ListMessageBusEnrollmentsAsync(ListMessageBusEnrollmentsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListMessageBusEnrollmentsResponse, string> ListMessageBusEnrollmentsAsync(ListMessageBusEnrollmentsRequest request, CallSettings callSettings = null)
List message bus enrollments.
Parameters | |
---|---|
Name | Description |
request |
ListMessageBusEnrollmentsRequest 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 |
PagedAsyncEnumerableListMessageBusEnrollmentsResponsestring |
A pageable asynchronous sequence of string resources. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
ListMessageBusEnrollmentsRequest request = new ListMessageBusEnrollmentsRequest
{
ParentAsMessageBusName = MessageBusName.FromProjectLocationMessageBus("[PROJECT]", "[LOCATION]", "[MESSAGE_BUS]"),
};
// Make the request
PagedAsyncEnumerable<ListMessageBusEnrollmentsResponse, string> response = eventarcClient.ListMessageBusEnrollmentsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((string 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((ListMessageBusEnrollmentsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (string 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<string> 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 (string 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;
ListMessageBusEnrollmentsAsync(MessageBusName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListMessageBusEnrollmentsResponse, string> ListMessageBusEnrollmentsAsync(MessageBusName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List message bus enrollments.
Parameters | |
---|---|
Name | Description |
parent |
MessageBusName Required. The parent message bus to list enrollments on. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int 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 |
PagedAsyncEnumerableListMessageBusEnrollmentsResponsestring |
A pageable asynchronous sequence of string resources. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
MessageBusName parent = MessageBusName.FromProjectLocationMessageBus("[PROJECT]", "[LOCATION]", "[MESSAGE_BUS]");
// Make the request
PagedAsyncEnumerable<ListMessageBusEnrollmentsResponse, string> response = eventarcClient.ListMessageBusEnrollmentsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((string 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((ListMessageBusEnrollmentsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (string 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<string> 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 (string 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;
ListMessageBusEnrollmentsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListMessageBusEnrollmentsResponse, string> ListMessageBusEnrollmentsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List message bus enrollments.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent message bus to list enrollments on. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int 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 |
PagedAsyncEnumerableListMessageBusEnrollmentsResponsestring |
A pageable asynchronous sequence of string resources. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/messageBuses/[MESSAGE_BUS]";
// Make the request
PagedAsyncEnumerable<ListMessageBusEnrollmentsResponse, string> response = eventarcClient.ListMessageBusEnrollmentsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((string 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((ListMessageBusEnrollmentsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (string 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<string> 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 (string 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;
ListMessageBuses(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListMessageBusesResponse, MessageBus> ListMessageBuses(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List message buses.
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 |
int 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 |
PagedEnumerableListMessageBusesResponseMessageBus |
A pageable sequence of MessageBus resources. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListMessageBusesResponse, MessageBus> response = eventarcClient.ListMessageBuses(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (MessageBus 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 (ListMessageBusesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (MessageBus 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<MessageBus> 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 (MessageBus 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;
ListMessageBuses(ListMessageBusesRequest, CallSettings)
public virtual PagedEnumerable<ListMessageBusesResponse, MessageBus> ListMessageBuses(ListMessageBusesRequest request, CallSettings callSettings = null)
List message buses.
Parameters | |
---|---|
Name | Description |
request |
ListMessageBusesRequest 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 |
PagedEnumerableListMessageBusesResponseMessageBus |
A pageable sequence of MessageBus resources. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
ListMessageBusesRequest request = new ListMessageBusesRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
OrderBy = "",
Filter = "",
};
// Make the request
PagedEnumerable<ListMessageBusesResponse, MessageBus> response = eventarcClient.ListMessageBuses(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (MessageBus 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 (ListMessageBusesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (MessageBus 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<MessageBus> 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 (MessageBus 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;
ListMessageBuses(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListMessageBusesResponse, MessageBus> ListMessageBuses(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List message buses.
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 |
int 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 |
PagedEnumerableListMessageBusesResponseMessageBus |
A pageable sequence of MessageBus resources. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListMessageBusesResponse, MessageBus> response = eventarcClient.ListMessageBuses(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (MessageBus 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 (ListMessageBusesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (MessageBus 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<MessageBus> 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 (MessageBus 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;
ListMessageBusesAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListMessageBusesResponse, MessageBus> ListMessageBusesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List message buses.
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 |
int 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 |
PagedAsyncEnumerableListMessageBusesResponseMessageBus |
A pageable asynchronous sequence of MessageBus resources. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListMessageBusesResponse, MessageBus> response = eventarcClient.ListMessageBusesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((MessageBus 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((ListMessageBusesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (MessageBus 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<MessageBus> 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 (MessageBus 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;
ListMessageBusesAsync(ListMessageBusesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListMessageBusesResponse, MessageBus> ListMessageBusesAsync(ListMessageBusesRequest request, CallSettings callSettings = null)
List message buses.
Parameters | |
---|---|
Name | Description |
request |
ListMessageBusesRequest 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 |
PagedAsyncEnumerableListMessageBusesResponseMessageBus |
A pageable asynchronous sequence of MessageBus resources. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
ListMessageBusesRequest request = new ListMessageBusesRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
OrderBy = "",
Filter = "",
};
// Make the request
PagedAsyncEnumerable<ListMessageBusesResponse, MessageBus> response = eventarcClient.ListMessageBusesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((MessageBus 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((ListMessageBusesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (MessageBus 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<MessageBus> 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 (MessageBus 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;
ListMessageBusesAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListMessageBusesResponse, MessageBus> ListMessageBusesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List message buses.
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 |
int 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 |
PagedAsyncEnumerableListMessageBusesResponseMessageBus |
A pageable asynchronous sequence of MessageBus resources. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListMessageBusesResponse, MessageBus> response = eventarcClient.ListMessageBusesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((MessageBus 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((ListMessageBusesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (MessageBus 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<MessageBus> 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 (MessageBus 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;
ListPipelines(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListPipelinesResponse, Pipeline> ListPipelines(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List pipelines.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent collection to list pipelines on. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int 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 |
PagedEnumerableListPipelinesResponsePipeline |
A pageable sequence of Pipeline resources. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListPipelinesResponse, Pipeline> response = eventarcClient.ListPipelines(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Pipeline 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 (ListPipelinesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Pipeline 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<Pipeline> 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 (Pipeline 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;
ListPipelines(ListPipelinesRequest, CallSettings)
public virtual PagedEnumerable<ListPipelinesResponse, Pipeline> ListPipelines(ListPipelinesRequest request, CallSettings callSettings = null)
List pipelines.
Parameters | |
---|---|
Name | Description |
request |
ListPipelinesRequest 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 |
PagedEnumerableListPipelinesResponsePipeline |
A pageable sequence of Pipeline resources. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
ListPipelinesRequest request = new ListPipelinesRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
OrderBy = "",
Filter = "",
};
// Make the request
PagedEnumerable<ListPipelinesResponse, Pipeline> response = eventarcClient.ListPipelines(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (Pipeline 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 (ListPipelinesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Pipeline 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<Pipeline> 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 (Pipeline 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;
ListPipelines(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListPipelinesResponse, Pipeline> ListPipelines(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List pipelines.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent collection to list pipelines on. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int 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 |
PagedEnumerableListPipelinesResponsePipeline |
A pageable sequence of Pipeline resources. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListPipelinesResponse, Pipeline> response = eventarcClient.ListPipelines(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Pipeline 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 (ListPipelinesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Pipeline 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<Pipeline> 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 (Pipeline 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;
ListPipelinesAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListPipelinesResponse, Pipeline> ListPipelinesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List pipelines.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent collection to list pipelines on. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int 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 |
PagedAsyncEnumerableListPipelinesResponsePipeline |
A pageable asynchronous sequence of Pipeline resources. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListPipelinesResponse, Pipeline> response = eventarcClient.ListPipelinesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Pipeline 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((ListPipelinesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Pipeline 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<Pipeline> 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 (Pipeline 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;
ListPipelinesAsync(ListPipelinesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListPipelinesResponse, Pipeline> ListPipelinesAsync(ListPipelinesRequest request, CallSettings callSettings = null)
List pipelines.
Parameters | |
---|---|
Name | Description |
request |
ListPipelinesRequest 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 |
PagedAsyncEnumerableListPipelinesResponsePipeline |
A pageable asynchronous sequence of Pipeline resources. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
ListPipelinesRequest request = new ListPipelinesRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
OrderBy = "",
Filter = "",
};
// Make the request
PagedAsyncEnumerable<ListPipelinesResponse, Pipeline> response = eventarcClient.ListPipelinesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Pipeline 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((ListPipelinesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Pipeline 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<Pipeline> 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 (Pipeline 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;
ListPipelinesAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListPipelinesResponse, Pipeline> ListPipelinesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List pipelines.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent collection to list pipelines on. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int 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 |
PagedAsyncEnumerableListPipelinesResponsePipeline |
A pageable asynchronous sequence of Pipeline resources. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListPipelinesResponse, Pipeline> response = eventarcClient.ListPipelinesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Pipeline 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((ListPipelinesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Pipeline 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<Pipeline> 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 (Pipeline item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListProviders(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListProvidersResponse, Provider> ListProviders(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List providers.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent of the provider to get. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int 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 |
PagedEnumerableListProvidersResponseProvider |
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 |
PagedEnumerableListProvidersResponseProvider |
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, int?, CallSettings)
public virtual PagedEnumerable<ListProvidersResponse, Provider> ListProviders(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List providers.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent of the provider to get. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int 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 |
PagedEnumerableListProvidersResponseProvider |
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, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListProvidersResponse, Provider> ListProvidersAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List providers.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent of the provider to get. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int 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 |
PagedAsyncEnumerableListProvidersResponseProvider |
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 |
PagedAsyncEnumerableListProvidersResponseProvider |
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, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListProvidersResponse, Provider> ListProvidersAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List providers.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent of the provider to get. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int 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 |
PagedAsyncEnumerableListProvidersResponseProvider |
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, int?, CallSettings)
public virtual PagedEnumerable<ListTriggersResponse, Trigger> ListTriggers(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List triggers.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent collection to list triggers on. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int 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 |
PagedEnumerableListTriggersResponseTrigger |
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 |
PagedEnumerableListTriggersResponseTrigger |
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 = "",
Filter = "",
};
// Make the request
PagedEnumerable<ListTriggersResponse, Trigger> response = eventarcClient.ListTriggers(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (Trigger item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListTriggersResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Trigger item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Trigger> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Trigger item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListTriggers(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListTriggersResponse, Trigger> ListTriggers(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List triggers.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent collection to list triggers on. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int 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 |
PagedEnumerableListTriggersResponseTrigger |
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, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListTriggersResponse, Trigger> ListTriggersAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List triggers.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent collection to list triggers on. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int 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 |
PagedAsyncEnumerableListTriggersResponseTrigger |
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 |
PagedAsyncEnumerableListTriggersResponseTrigger |
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 = "",
Filter = "",
};
// Make the request
PagedAsyncEnumerable<ListTriggersResponse, Trigger> response = eventarcClient.ListTriggersAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Trigger item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListTriggersResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Trigger item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Trigger> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Trigger item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListTriggersAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListTriggersResponse, Trigger> ListTriggersAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List triggers.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The parent collection to list triggers on. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int 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 |
PagedAsyncEnumerableListTriggersResponseTrigger |
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 |
OperationChannelOperationMetadata |
The result of polling the operation. |
PollOnceCreateChannelAsync(string, CallSettings)
public virtual Task<Operation<Channel, OperationMetadata>> PollOnceCreateChannelAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreateChannel
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationChannelOperationMetadata |
A task representing the result of polling the operation. |
PollOnceCreateChannelConnection(string, CallSettings)
public virtual Operation<ChannelConnection, OperationMetadata> PollOnceCreateChannelConnection(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
CreateChannelConnection
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationChannelConnectionOperationMetadata |
The result of polling the operation. |
PollOnceCreateChannelConnectionAsync(string, CallSettings)
public virtual Task<Operation<ChannelConnection, OperationMetadata>> PollOnceCreateChannelConnectionAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreateChannelConnection
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationChannelConnectionOperationMetadata |
A task representing the result of polling the operation. |
PollOnceCreateEnrollment(string, CallSettings)
public virtual Operation<Enrollment, OperationMetadata> PollOnceCreateEnrollment(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of CreateEnrollment
.
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 |
OperationEnrollmentOperationMetadata |
The result of polling the operation. |
PollOnceCreateEnrollmentAsync(string, CallSettings)
public virtual Task<Operation<Enrollment, OperationMetadata>> PollOnceCreateEnrollmentAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreateEnrollment
.
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 |
TaskOperationEnrollmentOperationMetadata |
A task representing the result of polling the operation. |
PollOnceCreateGoogleApiSource(string, CallSettings)
public virtual Operation<GoogleApiSource, OperationMetadata> PollOnceCreateGoogleApiSource(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of CreateGoogleApiSource
.
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 |
OperationGoogleApiSourceOperationMetadata |
The result of polling the operation. |
PollOnceCreateGoogleApiSourceAsync(string, CallSettings)
public virtual Task<Operation<GoogleApiSource, OperationMetadata>> PollOnceCreateGoogleApiSourceAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreateGoogleApiSource
.
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 |
TaskOperationGoogleApiSourceOperationMetadata |
A task representing the result of polling the operation. |
PollOnceCreateMessageBus(string, CallSettings)
public virtual Operation<MessageBus, OperationMetadata> PollOnceCreateMessageBus(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of CreateMessageBus
.
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 |
OperationMessageBusOperationMetadata |
The result of polling the operation. |
PollOnceCreateMessageBusAsync(string, CallSettings)
public virtual Task<Operation<MessageBus, OperationMetadata>> PollOnceCreateMessageBusAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreateMessageBus
.
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 |
TaskOperationMessageBusOperationMetadata |
A task representing the result of polling the operation. |
PollOnceCreatePipeline(string, CallSettings)
public virtual Operation<Pipeline, OperationMetadata> PollOnceCreatePipeline(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of CreatePipeline
.
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 |
OperationPipelineOperationMetadata |
The result of polling the operation. |
PollOnceCreatePipelineAsync(string, CallSettings)
public virtual Task<Operation<Pipeline, OperationMetadata>> PollOnceCreatePipelineAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreatePipeline
.
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 |
TaskOperationPipelineOperationMetadata |
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 |
OperationTriggerOperationMetadata |
The result of polling the operation. |
PollOnceCreateTriggerAsync(string, CallSettings)
public virtual Task<Operation<Trigger, OperationMetadata>> PollOnceCreateTriggerAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreateTrigger
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationTriggerOperationMetadata |
A task representing the result of polling the operation. |
PollOnceDeleteChannel(string, CallSettings)
public virtual Operation<Channel, OperationMetadata> PollOnceDeleteChannel(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of DeleteChannel
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationChannelOperationMetadata |
The result of polling the operation. |
PollOnceDeleteChannelAsync(string, CallSettings)
public virtual Task<Operation<Channel, OperationMetadata>> PollOnceDeleteChannelAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeleteChannel
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationChannelOperationMetadata |
A task representing the result of polling the operation. |
PollOnceDeleteChannelConnection(string, CallSettings)
public virtual Operation<ChannelConnection, OperationMetadata> PollOnceDeleteChannelConnection(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
DeleteChannelConnection
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationChannelConnectionOperationMetadata |
The result of polling the operation. |
PollOnceDeleteChannelConnectionAsync(string, CallSettings)
public virtual Task<Operation<ChannelConnection, OperationMetadata>> PollOnceDeleteChannelConnectionAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeleteChannelConnection
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationChannelConnectionOperationMetadata |
A task representing the result of polling the operation. |
PollOnceDeleteEnrollment(string, CallSettings)
public virtual Operation<Enrollment, OperationMetadata> PollOnceDeleteEnrollment(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of DeleteEnrollment
.
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 |
OperationEnrollmentOperationMetadata |
The result of polling the operation. |
PollOnceDeleteEnrollmentAsync(string, CallSettings)
public virtual Task<Operation<Enrollment, OperationMetadata>> PollOnceDeleteEnrollmentAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeleteEnrollment
.
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 |
TaskOperationEnrollmentOperationMetadata |
A task representing the result of polling the operation. |
PollOnceDeleteGoogleApiSource(string, CallSettings)
public virtual Operation<GoogleApiSource, OperationMetadata> PollOnceDeleteGoogleApiSource(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of DeleteGoogleApiSource
.
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 |
OperationGoogleApiSourceOperationMetadata |
The result of polling the operation. |
PollOnceDeleteGoogleApiSourceAsync(string, CallSettings)
public virtual Task<Operation<GoogleApiSource, OperationMetadata>> PollOnceDeleteGoogleApiSourceAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeleteGoogleApiSource
.
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 |
TaskOperationGoogleApiSourceOperationMetadata |
A task representing the result of polling the operation. |
PollOnceDeleteMessageBus(string, CallSettings)
public virtual Operation<MessageBus, OperationMetadata> PollOnceDeleteMessageBus(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of DeleteMessageBus
.
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 |
OperationMessageBusOperationMetadata |
The result of polling the operation. |
PollOnceDeleteMessageBusAsync(string, CallSettings)
public virtual Task<Operation<MessageBus, OperationMetadata>> PollOnceDeleteMessageBusAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeleteMessageBus
.
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 |
TaskOperationMessageBusOperationMetadata |
A task representing the result of polling the operation. |
PollOnceDeletePipeline(string, CallSettings)
public virtual Operation<Pipeline, OperationMetadata> PollOnceDeletePipeline(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of DeletePipeline
.
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 |
OperationPipelineOperationMetadata |
The result of polling the operation. |
PollOnceDeletePipelineAsync(string, CallSettings)
public virtual Task<Operation<Pipeline, OperationMetadata>> PollOnceDeletePipelineAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeletePipeline
.
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 |
TaskOperationPipelineOperationMetadata |
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 |
OperationTriggerOperationMetadata |
The result of polling the operation. |
PollOnceDeleteTriggerAsync(string, CallSettings)
public virtual Task<Operation<Trigger, OperationMetadata>> PollOnceDeleteTriggerAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeleteTrigger
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationTriggerOperationMetadata |
A task representing the result of polling the operation. |
PollOnceUpdateChannel(string, CallSettings)
public virtual Operation<Channel, OperationMetadata> PollOnceUpdateChannel(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of UpdateChannel
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationChannelOperationMetadata |
The result of polling the operation. |
PollOnceUpdateChannelAsync(string, CallSettings)
public virtual Task<Operation<Channel, OperationMetadata>> PollOnceUpdateChannelAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
UpdateChannel
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationChannelOperationMetadata |
A task representing the result of polling the operation. |
PollOnceUpdateEnrollment(string, CallSettings)
public virtual Operation<Enrollment, OperationMetadata> PollOnceUpdateEnrollment(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of UpdateEnrollment
.
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 |
OperationEnrollmentOperationMetadata |
The result of polling the operation. |
PollOnceUpdateEnrollmentAsync(string, CallSettings)
public virtual Task<Operation<Enrollment, OperationMetadata>> PollOnceUpdateEnrollmentAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
UpdateEnrollment
.
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 |
TaskOperationEnrollmentOperationMetadata |
A task representing the result of polling the operation. |
PollOnceUpdateGoogleApiSource(string, CallSettings)
public virtual Operation<GoogleApiSource, OperationMetadata> PollOnceUpdateGoogleApiSource(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of UpdateGoogleApiSource
.
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 |
OperationGoogleApiSourceOperationMetadata |
The result of polling the operation. |
PollOnceUpdateGoogleApiSourceAsync(string, CallSettings)
public virtual Task<Operation<GoogleApiSource, OperationMetadata>> PollOnceUpdateGoogleApiSourceAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
UpdateGoogleApiSource
.
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 |
TaskOperationGoogleApiSourceOperationMetadata |
A task representing the result of polling the operation. |
PollOnceUpdateMessageBus(string, CallSettings)
public virtual Operation<MessageBus, OperationMetadata> PollOnceUpdateMessageBus(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of UpdateMessageBus
.
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 |
OperationMessageBusOperationMetadata |
The result of polling the operation. |
PollOnceUpdateMessageBusAsync(string, CallSettings)
public virtual Task<Operation<MessageBus, OperationMetadata>> PollOnceUpdateMessageBusAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
UpdateMessageBus
.
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 |
TaskOperationMessageBusOperationMetadata |
A task representing the result of polling the operation. |
PollOnceUpdatePipeline(string, CallSettings)
public virtual Operation<Pipeline, OperationMetadata> PollOnceUpdatePipeline(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of UpdatePipeline
.
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 |
OperationPipelineOperationMetadata |
The result of polling the operation. |
PollOnceUpdatePipelineAsync(string, CallSettings)
public virtual Task<Operation<Pipeline, OperationMetadata>> PollOnceUpdatePipelineAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
UpdatePipeline
.
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 |
TaskOperationPipelineOperationMetadata |
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 |
OperationTriggerOperationMetadata |
The result of polling the operation. |
PollOnceUpdateTriggerAsync(string, CallSettings)
public virtual Task<Operation<Trigger, OperationMetadata>> PollOnceUpdateTriggerAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
UpdateTrigger
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationTriggerOperationMetadata |
A task representing the result of polling the operation. |
ShutdownDefaultChannelsAsync()
public static Task ShutdownDefaultChannelsAsync()
Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.
Returns | |
---|---|
Type | Description |
Task |
A task representing the asynchronous shutdown operation. |
After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.
UpdateChannel(Channel, FieldMask, CallSettings)
public virtual Operation<Channel, OperationMetadata> UpdateChannel(Channel channel, FieldMask updateMask, CallSettings callSettings = null)
Update a single channel.
Parameters | |
---|---|
Name | Description |
channel |
Channel The channel to be updated. |
updateMask |
FieldMask The fields to be updated; only fields explicitly provided are updated. If no field mask is provided, all provided fields in the request are updated. To update all fields, provide a field mask of "*". |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationChannelOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
Channel channel = new Channel();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Channel, OperationMetadata> response = eventarcClient.UpdateChannel(channel, updateMask);
// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Channel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = eventarcClient.PollOnceUpdateChannel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Channel retrievedResult = retrievedResponse.Result;
}
UpdateChannel(UpdateChannelRequest, CallSettings)
public virtual Operation<Channel, OperationMetadata> UpdateChannel(UpdateChannelRequest request, CallSettings callSettings = null)
Update a single channel.
Parameters | |
---|---|
Name | Description |
request |
UpdateChannelRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationChannelOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
UpdateChannelRequest request = new UpdateChannelRequest
{
Channel = new Channel(),
UpdateMask = new FieldMask(),
ValidateOnly = false,
};
// Make the request
Operation<Channel, OperationMetadata> response = eventarcClient.UpdateChannel(request);
// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Channel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = eventarcClient.PollOnceUpdateChannel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Channel retrievedResult = retrievedResponse.Result;
}
UpdateChannelAsync(Channel, FieldMask, CallSettings)
public virtual Task<Operation<Channel, OperationMetadata>> UpdateChannelAsync(Channel channel, FieldMask updateMask, CallSettings callSettings = null)
Update a single channel.
Parameters | |
---|---|
Name | Description |
channel |
Channel The channel to be updated. |
updateMask |
FieldMask The fields to be updated; only fields explicitly provided are updated. If no field mask is provided, all provided fields in the request are updated. To update all fields, provide a field mask of "*". |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationChannelOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
Channel channel = new Channel();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Channel, OperationMetadata> response = await eventarcClient.UpdateChannelAsync(channel, updateMask);
// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Channel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceUpdateChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Channel retrievedResult = retrievedResponse.Result;
}
UpdateChannelAsync(Channel, FieldMask, CancellationToken)
public virtual Task<Operation<Channel, OperationMetadata>> UpdateChannelAsync(Channel channel, FieldMask updateMask, CancellationToken cancellationToken)
Update a single channel.
Parameters | |
---|---|
Name | Description |
channel |
Channel The channel to be updated. |
updateMask |
FieldMask The fields to be updated; only fields explicitly provided are updated. If no field mask is provided, all provided fields in the request are updated. To update all fields, provide a field mask of "*". |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationChannelOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
Channel channel = new Channel();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Channel, OperationMetadata> response = await eventarcClient.UpdateChannelAsync(channel, updateMask);
// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Channel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceUpdateChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Channel retrievedResult = retrievedResponse.Result;
}
UpdateChannelAsync(UpdateChannelRequest, CallSettings)
public virtual Task<Operation<Channel, OperationMetadata>> UpdateChannelAsync(UpdateChannelRequest request, CallSettings callSettings = null)
Update a single channel.
Parameters | |
---|---|
Name | Description |
request |
UpdateChannelRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationChannelOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
UpdateChannelRequest request = new UpdateChannelRequest
{
Channel = new Channel(),
UpdateMask = new FieldMask(),
ValidateOnly = false,
};
// Make the request
Operation<Channel, OperationMetadata> response = await eventarcClient.UpdateChannelAsync(request);
// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Channel result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceUpdateChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Channel retrievedResult = retrievedResponse.Result;
}
UpdateChannelAsync(UpdateChannelRequest, CancellationToken)
public virtual Task<Operation<Channel, OperationMetadata>> UpdateChannelAsync(UpdateChannelRequest request, CancellationToken cancellationToken)
Update a single channel.
Parameters | |
---|---|
Name | Description |
request |
UpdateChannelRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationChannelOperationMetadata |
A Task containing the RPC response. |
// 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;
}
UpdateEnrollment(Enrollment, FieldMask, CallSettings)
public virtual Operation<Enrollment, OperationMetadata> UpdateEnrollment(Enrollment enrollment, FieldMask updateMask, CallSettings callSettings = null)
Update a single Enrollment.
Parameters | |
---|---|
Name | Description |
enrollment |
Enrollment Required. The Enrollment to be updated. |
updateMask |
FieldMask Optional. The fields to be updated; only fields explicitly provided are updated. If no field mask is provided, all provided fields in the request are updated. To update all fields, provide a field mask of "*". |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEnrollmentOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
Enrollment enrollment = new Enrollment();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Enrollment, OperationMetadata> response = eventarcClient.UpdateEnrollment(enrollment, updateMask);
// Poll until the returned long-running operation is complete
Operation<Enrollment, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Enrollment 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<Enrollment, OperationMetadata> retrievedResponse = eventarcClient.PollOnceUpdateEnrollment(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Enrollment retrievedResult = retrievedResponse.Result;
}
UpdateEnrollment(UpdateEnrollmentRequest, CallSettings)
public virtual Operation<Enrollment, OperationMetadata> UpdateEnrollment(UpdateEnrollmentRequest request, CallSettings callSettings = null)
Update a single Enrollment.
Parameters | |
---|---|
Name | Description |
request |
UpdateEnrollmentRequest 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 |
OperationEnrollmentOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
UpdateEnrollmentRequest request = new UpdateEnrollmentRequest
{
Enrollment = new Enrollment(),
UpdateMask = new FieldMask(),
AllowMissing = false,
ValidateOnly = false,
};
// Make the request
Operation<Enrollment, OperationMetadata> response = eventarcClient.UpdateEnrollment(request);
// Poll until the returned long-running operation is complete
Operation<Enrollment, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Enrollment 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<Enrollment, OperationMetadata> retrievedResponse = eventarcClient.PollOnceUpdateEnrollment(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Enrollment retrievedResult = retrievedResponse.Result;
}
UpdateEnrollmentAsync(Enrollment, FieldMask, CallSettings)
public virtual Task<Operation<Enrollment, OperationMetadata>> UpdateEnrollmentAsync(Enrollment enrollment, FieldMask updateMask, CallSettings callSettings = null)
Update a single Enrollment.
Parameters | |
---|---|
Name | Description |
enrollment |
Enrollment Required. The Enrollment to be updated. |
updateMask |
FieldMask Optional. The fields to be updated; only fields explicitly provided are updated. If no field mask is provided, all provided fields in the request are updated. To update all fields, provide a field mask of "*". |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEnrollmentOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
Enrollment enrollment = new Enrollment();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Enrollment, OperationMetadata> response = await eventarcClient.UpdateEnrollmentAsync(enrollment, updateMask);
// Poll until the returned long-running operation is complete
Operation<Enrollment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Enrollment 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<Enrollment, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceUpdateEnrollmentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Enrollment retrievedResult = retrievedResponse.Result;
}
UpdateEnrollmentAsync(Enrollment, FieldMask, CancellationToken)
public virtual Task<Operation<Enrollment, OperationMetadata>> UpdateEnrollmentAsync(Enrollment enrollment, FieldMask updateMask, CancellationToken cancellationToken)
Update a single Enrollment.
Parameters | |
---|---|
Name | Description |
enrollment |
Enrollment Required. The Enrollment to be updated. |
updateMask |
FieldMask Optional. The fields to be updated; only fields explicitly provided are updated. If no field mask is provided, all provided fields in the request are updated. To update all fields, provide a field mask of "*". |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEnrollmentOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
Enrollment enrollment = new Enrollment();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Enrollment, OperationMetadata> response = await eventarcClient.UpdateEnrollmentAsync(enrollment, updateMask);
// Poll until the returned long-running operation is complete
Operation<Enrollment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Enrollment 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<Enrollment, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceUpdateEnrollmentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Enrollment retrievedResult = retrievedResponse.Result;
}
UpdateEnrollmentAsync(UpdateEnrollmentRequest, CallSettings)
public virtual Task<Operation<Enrollment, OperationMetadata>> UpdateEnrollmentAsync(UpdateEnrollmentRequest request, CallSettings callSettings = null)
Update a single Enrollment.
Parameters | |
---|---|
Name | Description |
request |
UpdateEnrollmentRequest 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 |
TaskOperationEnrollmentOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
UpdateEnrollmentRequest request = new UpdateEnrollmentRequest
{
Enrollment = new Enrollment(),
UpdateMask = new FieldMask(),
AllowMissing = false,
ValidateOnly = false,
};
// Make the request
Operation<Enrollment, OperationMetadata> response = await eventarcClient.UpdateEnrollmentAsync(request);
// Poll until the returned long-running operation is complete
Operation<Enrollment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Enrollment 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<Enrollment, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceUpdateEnrollmentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Enrollment retrievedResult = retrievedResponse.Result;
}
UpdateEnrollmentAsync(UpdateEnrollmentRequest, CancellationToken)
public virtual Task<Operation<Enrollment, OperationMetadata>> UpdateEnrollmentAsync(UpdateEnrollmentRequest request, CancellationToken cancellationToken)
Update a single Enrollment.
Parameters | |
---|---|
Name | Description |
request |
UpdateEnrollmentRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEnrollmentOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
UpdateEnrollmentRequest request = new UpdateEnrollmentRequest
{
Enrollment = new Enrollment(),
UpdateMask = new FieldMask(),
AllowMissing = false,
ValidateOnly = false,
};
// Make the request
Operation<Enrollment, OperationMetadata> response = await eventarcClient.UpdateEnrollmentAsync(request);
// Poll until the returned long-running operation is complete
Operation<Enrollment, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Enrollment 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<Enrollment, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceUpdateEnrollmentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Enrollment retrievedResult = retrievedResponse.Result;
}
UpdateGoogleApiSource(GoogleApiSource, FieldMask, CallSettings)
public virtual Operation<GoogleApiSource, OperationMetadata> UpdateGoogleApiSource(GoogleApiSource googleApiSource, FieldMask updateMask, CallSettings callSettings = null)
Update a single GoogleApiSource.
Parameters | |
---|---|
Name | Description |
googleApiSource |
GoogleApiSource Required. The GoogleApiSource to be updated. |
updateMask |
FieldMask Optional. The fields to be updated; only fields explicitly provided are updated. If no field mask is provided, all provided fields in the request are updated. To update all fields, provide a field mask of "*". |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationGoogleApiSourceOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
GoogleApiSource googleApiSource = new GoogleApiSource();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<GoogleApiSource, OperationMetadata> response = eventarcClient.UpdateGoogleApiSource(googleApiSource, updateMask);
// Poll until the returned long-running operation is complete
Operation<GoogleApiSource, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
GoogleApiSource 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<GoogleApiSource, OperationMetadata> retrievedResponse = eventarcClient.PollOnceUpdateGoogleApiSource(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
GoogleApiSource retrievedResult = retrievedResponse.Result;
}
UpdateGoogleApiSource(UpdateGoogleApiSourceRequest, CallSettings)
public virtual Operation<GoogleApiSource, OperationMetadata> UpdateGoogleApiSource(UpdateGoogleApiSourceRequest request, CallSettings callSettings = null)
Update a single GoogleApiSource.
Parameters | |
---|---|
Name | Description |
request |
UpdateGoogleApiSourceRequest 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 |
OperationGoogleApiSourceOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
UpdateGoogleApiSourceRequest request = new UpdateGoogleApiSourceRequest
{
GoogleApiSource = new GoogleApiSource(),
UpdateMask = new FieldMask(),
AllowMissing = false,
ValidateOnly = false,
};
// Make the request
Operation<GoogleApiSource, OperationMetadata> response = eventarcClient.UpdateGoogleApiSource(request);
// Poll until the returned long-running operation is complete
Operation<GoogleApiSource, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
GoogleApiSource 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<GoogleApiSource, OperationMetadata> retrievedResponse = eventarcClient.PollOnceUpdateGoogleApiSource(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
GoogleApiSource retrievedResult = retrievedResponse.Result;
}
UpdateGoogleApiSourceAsync(GoogleApiSource, FieldMask, CallSettings)
public virtual Task<Operation<GoogleApiSource, OperationMetadata>> UpdateGoogleApiSourceAsync(GoogleApiSource googleApiSource, FieldMask updateMask, CallSettings callSettings = null)
Update a single GoogleApiSource.
Parameters | |
---|---|
Name | Description |
googleApiSource |
GoogleApiSource Required. The GoogleApiSource to be updated. |
updateMask |
FieldMask Optional. The fields to be updated; only fields explicitly provided are updated. If no field mask is provided, all provided fields in the request are updated. To update all fields, provide a field mask of "*". |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationGoogleApiSourceOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
GoogleApiSource googleApiSource = new GoogleApiSource();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<GoogleApiSource, OperationMetadata> response = await eventarcClient.UpdateGoogleApiSourceAsync(googleApiSource, updateMask);
// Poll until the returned long-running operation is complete
Operation<GoogleApiSource, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GoogleApiSource 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<GoogleApiSource, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceUpdateGoogleApiSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
GoogleApiSource retrievedResult = retrievedResponse.Result;
}
UpdateGoogleApiSourceAsync(GoogleApiSource, FieldMask, CancellationToken)
public virtual Task<Operation<GoogleApiSource, OperationMetadata>> UpdateGoogleApiSourceAsync(GoogleApiSource googleApiSource, FieldMask updateMask, CancellationToken cancellationToken)
Update a single GoogleApiSource.
Parameters | |
---|---|
Name | Description |
googleApiSource |
GoogleApiSource Required. The GoogleApiSource to be updated. |
updateMask |
FieldMask Optional. The fields to be updated; only fields explicitly provided are updated. If no field mask is provided, all provided fields in the request are updated. To update all fields, provide a field mask of "*". |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationGoogleApiSourceOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
GoogleApiSource googleApiSource = new GoogleApiSource();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<GoogleApiSource, OperationMetadata> response = await eventarcClient.UpdateGoogleApiSourceAsync(googleApiSource, updateMask);
// Poll until the returned long-running operation is complete
Operation<GoogleApiSource, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GoogleApiSource 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<GoogleApiSource, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceUpdateGoogleApiSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
GoogleApiSource retrievedResult = retrievedResponse.Result;
}
UpdateGoogleApiSourceAsync(UpdateGoogleApiSourceRequest, CallSettings)
public virtual Task<Operation<GoogleApiSource, OperationMetadata>> UpdateGoogleApiSourceAsync(UpdateGoogleApiSourceRequest request, CallSettings callSettings = null)
Update a single GoogleApiSource.
Parameters | |
---|---|
Name | Description |
request |
UpdateGoogleApiSourceRequest 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 |
TaskOperationGoogleApiSourceOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
UpdateGoogleApiSourceRequest request = new UpdateGoogleApiSourceRequest
{
GoogleApiSource = new GoogleApiSource(),
UpdateMask = new FieldMask(),
AllowMissing = false,
ValidateOnly = false,
};
// Make the request
Operation<GoogleApiSource, OperationMetadata> response = await eventarcClient.UpdateGoogleApiSourceAsync(request);
// Poll until the returned long-running operation is complete
Operation<GoogleApiSource, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GoogleApiSource 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<GoogleApiSource, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceUpdateGoogleApiSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
GoogleApiSource retrievedResult = retrievedResponse.Result;
}
UpdateGoogleApiSourceAsync(UpdateGoogleApiSourceRequest, CancellationToken)
public virtual Task<Operation<GoogleApiSource, OperationMetadata>> UpdateGoogleApiSourceAsync(UpdateGoogleApiSourceRequest request, CancellationToken cancellationToken)
Update a single GoogleApiSource.
Parameters | |
---|---|
Name | Description |
request |
UpdateGoogleApiSourceRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationGoogleApiSourceOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
UpdateGoogleApiSourceRequest request = new UpdateGoogleApiSourceRequest
{
GoogleApiSource = new GoogleApiSource(),
UpdateMask = new FieldMask(),
AllowMissing = false,
ValidateOnly = false,
};
// Make the request
Operation<GoogleApiSource, OperationMetadata> response = await eventarcClient.UpdateGoogleApiSourceAsync(request);
// Poll until the returned long-running operation is complete
Operation<GoogleApiSource, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GoogleApiSource 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<GoogleApiSource, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceUpdateGoogleApiSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
GoogleApiSource retrievedResult = retrievedResponse.Result;
}
UpdateGoogleChannelConfig(GoogleChannelConfig, FieldMask, CallSettings)
public virtual GoogleChannelConfig UpdateGoogleChannelConfig(GoogleChannelConfig googleChannelConfig, FieldMask updateMask, CallSettings callSettings = null)
Update a single GoogleChannelConfig
Parameters | |
---|---|
Name | Description |
googleChannelConfig |
GoogleChannelConfig Required. The config to be updated. |
updateMask |
FieldMask The fields to be updated; only fields explicitly provided are updated. If no field mask is provided, all provided fields in the request are updated. To update all fields, provide a field mask of "*". |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
GoogleChannelConfig |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
GoogleChannelConfig googleChannelConfig = new GoogleChannelConfig();
FieldMask updateMask = new FieldMask();
// Make the request
GoogleChannelConfig response = eventarcClient.UpdateGoogleChannelConfig(googleChannelConfig, updateMask);
UpdateGoogleChannelConfig(UpdateGoogleChannelConfigRequest, CallSettings)
public virtual GoogleChannelConfig UpdateGoogleChannelConfig(UpdateGoogleChannelConfigRequest request, CallSettings callSettings = null)
Update a single GoogleChannelConfig
Parameters | |
---|---|
Name | Description |
request |
UpdateGoogleChannelConfigRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
GoogleChannelConfig |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
UpdateGoogleChannelConfigRequest request = new UpdateGoogleChannelConfigRequest
{
GoogleChannelConfig = new GoogleChannelConfig(),
UpdateMask = new FieldMask(),
};
// Make the request
GoogleChannelConfig response = eventarcClient.UpdateGoogleChannelConfig(request);
UpdateGoogleChannelConfigAsync(GoogleChannelConfig, FieldMask, CallSettings)
public virtual Task<GoogleChannelConfig> UpdateGoogleChannelConfigAsync(GoogleChannelConfig googleChannelConfig, FieldMask updateMask, CallSettings callSettings = null)
Update a single GoogleChannelConfig
Parameters | |
---|---|
Name | Description |
googleChannelConfig |
GoogleChannelConfig Required. The config to be updated. |
updateMask |
FieldMask The fields to be updated; only fields explicitly provided are updated. If no field mask is provided, all provided fields in the request are updated. To update all fields, provide a field mask of "*". |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskGoogleChannelConfig |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
GoogleChannelConfig googleChannelConfig = new GoogleChannelConfig();
FieldMask updateMask = new FieldMask();
// Make the request
GoogleChannelConfig response = await eventarcClient.UpdateGoogleChannelConfigAsync(googleChannelConfig, updateMask);
UpdateGoogleChannelConfigAsync(GoogleChannelConfig, FieldMask, CancellationToken)
public virtual Task<GoogleChannelConfig> UpdateGoogleChannelConfigAsync(GoogleChannelConfig googleChannelConfig, FieldMask updateMask, CancellationToken cancellationToken)
Update a single GoogleChannelConfig
Parameters | |
---|---|
Name | Description |
googleChannelConfig |
GoogleChannelConfig Required. The config to be updated. |
updateMask |
FieldMask The fields to be updated; only fields explicitly provided are updated. If no field mask is provided, all provided fields in the request are updated. To update all fields, provide a field mask of "*". |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskGoogleChannelConfig |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
GoogleChannelConfig googleChannelConfig = new GoogleChannelConfig();
FieldMask updateMask = new FieldMask();
// Make the request
GoogleChannelConfig response = await eventarcClient.UpdateGoogleChannelConfigAsync(googleChannelConfig, updateMask);
UpdateGoogleChannelConfigAsync(UpdateGoogleChannelConfigRequest, CallSettings)
public virtual Task<GoogleChannelConfig> UpdateGoogleChannelConfigAsync(UpdateGoogleChannelConfigRequest request, CallSettings callSettings = null)
Update a single GoogleChannelConfig
Parameters | |
---|---|
Name | Description |
request |
UpdateGoogleChannelConfigRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskGoogleChannelConfig |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
UpdateGoogleChannelConfigRequest request = new UpdateGoogleChannelConfigRequest
{
GoogleChannelConfig = new GoogleChannelConfig(),
UpdateMask = new FieldMask(),
};
// Make the request
GoogleChannelConfig response = await eventarcClient.UpdateGoogleChannelConfigAsync(request);
UpdateGoogleChannelConfigAsync(UpdateGoogleChannelConfigRequest, CancellationToken)
public virtual Task<GoogleChannelConfig> UpdateGoogleChannelConfigAsync(UpdateGoogleChannelConfigRequest request, CancellationToken cancellationToken)
Update a single GoogleChannelConfig
Parameters | |
---|---|
Name | Description |
request |
UpdateGoogleChannelConfigRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskGoogleChannelConfig |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
UpdateGoogleChannelConfigRequest request = new UpdateGoogleChannelConfigRequest
{
GoogleChannelConfig = new GoogleChannelConfig(),
UpdateMask = new FieldMask(),
};
// Make the request
GoogleChannelConfig response = await eventarcClient.UpdateGoogleChannelConfigAsync(request);
UpdateMessageBus(MessageBus, FieldMask, CallSettings)
public virtual Operation<MessageBus, OperationMetadata> UpdateMessageBus(MessageBus messageBus, FieldMask updateMask, CallSettings callSettings = null)
Update a single message bus.
Parameters | |
---|---|
Name | Description |
messageBus |
MessageBus Required. The MessageBus to be updated. |
updateMask |
FieldMask Optional. The fields to be updated; only fields explicitly provided are updated. If no field mask is provided, all provided fields in the request are updated. To update all fields, provide a field mask of "*". |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationMessageBusOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
MessageBus messageBus = new MessageBus();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<MessageBus, OperationMetadata> response = eventarcClient.UpdateMessageBus(messageBus, updateMask);
// Poll until the returned long-running operation is complete
Operation<MessageBus, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
MessageBus 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<MessageBus, OperationMetadata> retrievedResponse = eventarcClient.PollOnceUpdateMessageBus(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
MessageBus retrievedResult = retrievedResponse.Result;
}
UpdateMessageBus(UpdateMessageBusRequest, CallSettings)
public virtual Operation<MessageBus, OperationMetadata> UpdateMessageBus(UpdateMessageBusRequest request, CallSettings callSettings = null)
Update a single message bus.
Parameters | |
---|---|
Name | Description |
request |
UpdateMessageBusRequest 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 |
OperationMessageBusOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
UpdateMessageBusRequest request = new UpdateMessageBusRequest
{
MessageBus = new MessageBus(),
UpdateMask = new FieldMask(),
AllowMissing = false,
ValidateOnly = false,
};
// Make the request
Operation<MessageBus, OperationMetadata> response = eventarcClient.UpdateMessageBus(request);
// Poll until the returned long-running operation is complete
Operation<MessageBus, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
MessageBus 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<MessageBus, OperationMetadata> retrievedResponse = eventarcClient.PollOnceUpdateMessageBus(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
MessageBus retrievedResult = retrievedResponse.Result;
}
UpdateMessageBusAsync(MessageBus, FieldMask, CallSettings)
public virtual Task<Operation<MessageBus, OperationMetadata>> UpdateMessageBusAsync(MessageBus messageBus, FieldMask updateMask, CallSettings callSettings = null)
Update a single message bus.
Parameters | |
---|---|
Name | Description |
messageBus |
MessageBus Required. The MessageBus to be updated. |
updateMask |
FieldMask Optional. The fields to be updated; only fields explicitly provided are updated. If no field mask is provided, all provided fields in the request are updated. To update all fields, provide a field mask of "*". |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationMessageBusOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
MessageBus messageBus = new MessageBus();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<MessageBus, OperationMetadata> response = await eventarcClient.UpdateMessageBusAsync(messageBus, updateMask);
// Poll until the returned long-running operation is complete
Operation<MessageBus, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
MessageBus 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<MessageBus, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceUpdateMessageBusAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
MessageBus retrievedResult = retrievedResponse.Result;
}
UpdateMessageBusAsync(MessageBus, FieldMask, CancellationToken)
public virtual Task<Operation<MessageBus, OperationMetadata>> UpdateMessageBusAsync(MessageBus messageBus, FieldMask updateMask, CancellationToken cancellationToken)
Update a single message bus.
Parameters | |
---|---|
Name | Description |
messageBus |
MessageBus Required. The MessageBus to be updated. |
updateMask |
FieldMask Optional. The fields to be updated; only fields explicitly provided are updated. If no field mask is provided, all provided fields in the request are updated. To update all fields, provide a field mask of "*". |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationMessageBusOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
MessageBus messageBus = new MessageBus();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<MessageBus, OperationMetadata> response = await eventarcClient.UpdateMessageBusAsync(messageBus, updateMask);
// Poll until the returned long-running operation is complete
Operation<MessageBus, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
MessageBus 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<MessageBus, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceUpdateMessageBusAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
MessageBus retrievedResult = retrievedResponse.Result;
}
UpdateMessageBusAsync(UpdateMessageBusRequest, CallSettings)
public virtual Task<Operation<MessageBus, OperationMetadata>> UpdateMessageBusAsync(UpdateMessageBusRequest request, CallSettings callSettings = null)
Update a single message bus.
Parameters | |
---|---|
Name | Description |
request |
UpdateMessageBusRequest 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 |
TaskOperationMessageBusOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
UpdateMessageBusRequest request = new UpdateMessageBusRequest
{
MessageBus = new MessageBus(),
UpdateMask = new FieldMask(),
AllowMissing = false,
ValidateOnly = false,
};
// Make the request
Operation<MessageBus, OperationMetadata> response = await eventarcClient.UpdateMessageBusAsync(request);
// Poll until the returned long-running operation is complete
Operation<MessageBus, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
MessageBus 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<MessageBus, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceUpdateMessageBusAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
MessageBus retrievedResult = retrievedResponse.Result;
}
UpdateMessageBusAsync(UpdateMessageBusRequest, CancellationToken)
public virtual Task<Operation<MessageBus, OperationMetadata>> UpdateMessageBusAsync(UpdateMessageBusRequest request, CancellationToken cancellationToken)
Update a single message bus.
Parameters | |
---|---|
Name | Description |
request |
UpdateMessageBusRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationMessageBusOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
UpdateMessageBusRequest request = new UpdateMessageBusRequest
{
MessageBus = new MessageBus(),
UpdateMask = new FieldMask(),
AllowMissing = false,
ValidateOnly = false,
};
// Make the request
Operation<MessageBus, OperationMetadata> response = await eventarcClient.UpdateMessageBusAsync(request);
// Poll until the returned long-running operation is complete
Operation<MessageBus, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
MessageBus 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<MessageBus, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceUpdateMessageBusAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
MessageBus retrievedResult = retrievedResponse.Result;
}
UpdatePipeline(Pipeline, FieldMask, CallSettings)
public virtual Operation<Pipeline, OperationMetadata> UpdatePipeline(Pipeline pipeline, FieldMask updateMask, CallSettings callSettings = null)
Update a single pipeline.
Parameters | |
---|---|
Name | Description |
pipeline |
Pipeline Required. The Pipeline to be updated. |
updateMask |
FieldMask Optional. The fields to be updated; only fields explicitly provided are updated. If no field mask is provided, all provided fields in the request are updated. To update all fields, provide a field mask of "*". |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationPipelineOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
Pipeline pipeline = new Pipeline();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Pipeline, OperationMetadata> response = eventarcClient.UpdatePipeline(pipeline, updateMask);
// Poll until the returned long-running operation is complete
Operation<Pipeline, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Pipeline 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<Pipeline, OperationMetadata> retrievedResponse = eventarcClient.PollOnceUpdatePipeline(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Pipeline retrievedResult = retrievedResponse.Result;
}
UpdatePipeline(UpdatePipelineRequest, CallSettings)
public virtual Operation<Pipeline, OperationMetadata> UpdatePipeline(UpdatePipelineRequest request, CallSettings callSettings = null)
Update a single pipeline.
Parameters | |
---|---|
Name | Description |
request |
UpdatePipelineRequest 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 |
OperationPipelineOperationMetadata |
The RPC response. |
// Create client
EventarcClient eventarcClient = EventarcClient.Create();
// Initialize request argument(s)
UpdatePipelineRequest request = new UpdatePipelineRequest
{
Pipeline = new Pipeline(),
UpdateMask = new FieldMask(),
AllowMissing = false,
ValidateOnly = false,
};
// Make the request
Operation<Pipeline, OperationMetadata> response = eventarcClient.UpdatePipeline(request);
// Poll until the returned long-running operation is complete
Operation<Pipeline, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Pipeline 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<Pipeline, OperationMetadata> retrievedResponse = eventarcClient.PollOnceUpdatePipeline(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Pipeline retrievedResult = retrievedResponse.Result;
}
UpdatePipelineAsync(Pipeline, FieldMask, CallSettings)
public virtual Task<Operation<Pipeline, OperationMetadata>> UpdatePipelineAsync(Pipeline pipeline, FieldMask updateMask, CallSettings callSettings = null)
Update a single pipeline.
Parameters | |
---|---|
Name | Description |
pipeline |
Pipeline Required. The Pipeline to be updated. |
updateMask |
FieldMask Optional. The fields to be updated; only fields explicitly provided are updated. If no field mask is provided, all provided fields in the request are updated. To update all fields, provide a field mask of "*". |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationPipelineOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
Pipeline pipeline = new Pipeline();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Pipeline, OperationMetadata> response = await eventarcClient.UpdatePipelineAsync(pipeline, updateMask);
// Poll until the returned long-running operation is complete
Operation<Pipeline, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Pipeline 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<Pipeline, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceUpdatePipelineAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Pipeline retrievedResult = retrievedResponse.Result;
}
UpdatePipelineAsync(Pipeline, FieldMask, CancellationToken)
public virtual Task<Operation<Pipeline, OperationMetadata>> UpdatePipelineAsync(Pipeline pipeline, FieldMask updateMask, CancellationToken cancellationToken)
Update a single pipeline.
Parameters | |
---|---|
Name | Description |
pipeline |
Pipeline Required. The Pipeline to be updated. |
updateMask |
FieldMask Optional. The fields to be updated; only fields explicitly provided are updated. If no field mask is provided, all provided fields in the request are updated. To update all fields, provide a field mask of "*". |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationPipelineOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
Pipeline pipeline = new Pipeline();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Pipeline, OperationMetadata> response = await eventarcClient.UpdatePipelineAsync(pipeline, updateMask);
// Poll until the returned long-running operation is complete
Operation<Pipeline, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Pipeline 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<Pipeline, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceUpdatePipelineAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Pipeline retrievedResult = retrievedResponse.Result;
}
UpdatePipelineAsync(UpdatePipelineRequest, CallSettings)
public virtual Task<Operation<Pipeline, OperationMetadata>> UpdatePipelineAsync(UpdatePipelineRequest request, CallSettings callSettings = null)
Update a single pipeline.
Parameters | |
---|---|
Name | Description |
request |
UpdatePipelineRequest 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 |
TaskOperationPipelineOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
UpdatePipelineRequest request = new UpdatePipelineRequest
{
Pipeline = new Pipeline(),
UpdateMask = new FieldMask(),
AllowMissing = false,
ValidateOnly = false,
};
// Make the request
Operation<Pipeline, OperationMetadata> response = await eventarcClient.UpdatePipelineAsync(request);
// Poll until the returned long-running operation is complete
Operation<Pipeline, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Pipeline 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<Pipeline, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceUpdatePipelineAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Pipeline retrievedResult = retrievedResponse.Result;
}
UpdatePipelineAsync(UpdatePipelineRequest, CancellationToken)
public virtual Task<Operation<Pipeline, OperationMetadata>> UpdatePipelineAsync(UpdatePipelineRequest request, CancellationToken cancellationToken)
Update a single pipeline.
Parameters | |
---|---|
Name | Description |
request |
UpdatePipelineRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationPipelineOperationMetadata |
A Task containing the RPC response. |
// Create client
EventarcClient eventarcClient = await EventarcClient.CreateAsync();
// Initialize request argument(s)
UpdatePipelineRequest request = new UpdatePipelineRequest
{
Pipeline = new Pipeline(),
UpdateMask = new FieldMask(),
AllowMissing = false,
ValidateOnly = false,
};
// Make the request
Operation<Pipeline, OperationMetadata> response = await eventarcClient.UpdatePipelineAsync(request);
// Poll until the returned long-running operation is complete
Operation<Pipeline, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Pipeline 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<Pipeline, OperationMetadata> retrievedResponse = await eventarcClient.PollOnceUpdatePipelineAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Pipeline retrievedResult = retrievedResponse.Result;
}
UpdateTrigger(Trigger, FieldMask, bool, CallSettings)
public virtual Operation<Trigger, OperationMetadata> UpdateTrigger(Trigger trigger, FieldMask updateMask, bool allowMissing, CallSettings callSettings = null)
Update a single trigger.
Parameters | |
---|---|
Name | Description |
trigger |
Trigger The trigger to be updated. |
updateMask |
FieldMask The fields to be updated; only fields explicitly provided are updated. If no field mask is provided, all provided fields in the request are updated. To update all fields, provide a field mask of "*". |
allowMissing |
bool If set to true, and the trigger is not found, a new trigger will be
created. In this situation, |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationTriggerOperationMetadata |
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 |
OperationTriggerOperationMetadata |
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, bool, CallSettings)
public virtual Task<Operation<Trigger, OperationMetadata>> UpdateTriggerAsync(Trigger trigger, FieldMask updateMask, bool allowMissing, CallSettings callSettings = null)
Update a single trigger.
Parameters | |
---|---|
Name | Description |
trigger |
Trigger The trigger to be updated. |
updateMask |
FieldMask The fields to be updated; only fields explicitly provided are updated. If no field mask is provided, all provided fields in the request are updated. To update all fields, provide a field mask of "*". |
allowMissing |
bool If set to true, and the trigger is not found, a new trigger will be
created. In this situation, |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationTriggerOperationMetadata |
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, bool, CancellationToken)
public virtual Task<Operation<Trigger, OperationMetadata>> UpdateTriggerAsync(Trigger trigger, FieldMask updateMask, bool allowMissing, CancellationToken cancellationToken)
Update a single trigger.
Parameters | |
---|---|
Name | Description |
trigger |
Trigger The trigger to be updated. |
updateMask |
FieldMask The fields to be updated; only fields explicitly provided are updated. If no field mask is provided, all provided fields in the request are updated. To update all fields, provide a field mask of "*". |
allowMissing |
bool If set to true, and the trigger is not found, a new trigger will be
created. In this situation, |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationTriggerOperationMetadata |
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 |
TaskOperationTriggerOperationMetadata |
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 |
TaskOperationTriggerOperationMetadata |
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;
}