Google Cloud Deploy v1 API - Class CloudDeployClient (2.2.0)

public abstract class CloudDeployClient

Reference documentation and code samples for the Google Cloud Deploy v1 API class CloudDeployClient.

CloudDeploy client wrapper, for convenient use.

Inheritance

Object > CloudDeployClient

Derived Types

Namespace

Google.Cloud.Deploy.V1

Assembly

Google.Cloud.Deploy.V1.dll

Remarks

CloudDeploy service creates and manages Continuous Delivery operations on Google Cloud Platform via Skaffold (https://skaffold.dev).

Properties

CreateDeliveryPipelineOperationsClient

public virtual OperationsClient CreateDeliveryPipelineOperationsClient { get; }

The long-running operations client for CreateDeliveryPipeline.

Property Value
Type Description
OperationsClient

CreateReleaseOperationsClient

public virtual OperationsClient CreateReleaseOperationsClient { get; }

The long-running operations client for CreateRelease.

Property Value
Type Description
OperationsClient

CreateRolloutOperationsClient

public virtual OperationsClient CreateRolloutOperationsClient { get; }

The long-running operations client for CreateRollout.

Property Value
Type Description
OperationsClient

CreateTargetOperationsClient

public virtual OperationsClient CreateTargetOperationsClient { get; }

The long-running operations client for CreateTarget.

Property Value
Type Description
OperationsClient

DefaultEndpoint

public static string DefaultEndpoint { get; }

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

Property Value
Type Description
String

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default CloudDeploy scopes.

Property Value
Type Description
IReadOnlyList<String>
Remarks

The default CloudDeploy scopes are:

DeleteDeliveryPipelineOperationsClient

public virtual OperationsClient DeleteDeliveryPipelineOperationsClient { get; }

The long-running operations client for DeleteDeliveryPipeline.

Property Value
Type Description
OperationsClient

DeleteTargetOperationsClient

public virtual OperationsClient DeleteTargetOperationsClient { get; }

The long-running operations client for DeleteTarget.

Property Value
Type Description
OperationsClient

GrpcClient

public virtual CloudDeploy.CloudDeployClient GrpcClient { get; }

The underlying gRPC CloudDeploy client

Property Value
Type Description
CloudDeploy.CloudDeployClient

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

UpdateDeliveryPipelineOperationsClient

public virtual OperationsClient UpdateDeliveryPipelineOperationsClient { get; }

The long-running operations client for UpdateDeliveryPipeline.

Property Value
Type Description
OperationsClient

UpdateTargetOperationsClient

public virtual OperationsClient UpdateTargetOperationsClient { get; }

The long-running operations client for UpdateTarget.

Property Value
Type Description
OperationsClient

Methods

AbandonRelease(AbandonReleaseRequest, CallSettings)

public virtual AbandonReleaseResponse AbandonRelease(AbandonReleaseRequest request, CallSettings callSettings = null)

Abandons a Release in the Delivery Pipeline.

Parameters
Name Description
request AbandonReleaseRequest

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
AbandonReleaseResponse

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
AbandonReleaseRequest request = new AbandonReleaseRequest
{
    ReleaseName = ReleaseName.FromProjectLocationDeliveryPipelineRelease("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]"),
};
// Make the request
AbandonReleaseResponse response = cloudDeployClient.AbandonRelease(request);

AbandonRelease(ReleaseName, CallSettings)

public virtual AbandonReleaseResponse AbandonRelease(ReleaseName name, CallSettings callSettings = null)

Abandons a Release in the Delivery Pipeline.

Parameters
Name Description
name ReleaseName

Required. Name of the Release. Format is projects/{project}/locations/{___location}/deliveryPipelines/{deliveryPipeline}/ releases/{release}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
AbandonReleaseResponse

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
ReleaseName name = ReleaseName.FromProjectLocationDeliveryPipelineRelease("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]");
// Make the request
AbandonReleaseResponse response = cloudDeployClient.AbandonRelease(name);

AbandonRelease(String, CallSettings)

public virtual AbandonReleaseResponse AbandonRelease(string name, CallSettings callSettings = null)

Abandons a Release in the Delivery Pipeline.

Parameters
Name Description
name String

Required. Name of the Release. Format is projects/{project}/locations/{___location}/deliveryPipelines/{deliveryPipeline}/ releases/{release}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
AbandonReleaseResponse

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deliveryPipelines/[DELIVERY_PIPELINE]/releases/[RELEASE]";
// Make the request
AbandonReleaseResponse response = cloudDeployClient.AbandonRelease(name);

AbandonReleaseAsync(AbandonReleaseRequest, CallSettings)

public virtual Task<AbandonReleaseResponse> AbandonReleaseAsync(AbandonReleaseRequest request, CallSettings callSettings = null)

Abandons a Release in the Delivery Pipeline.

Parameters
Name Description
request AbandonReleaseRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<AbandonReleaseResponse>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
AbandonReleaseRequest request = new AbandonReleaseRequest
{
    ReleaseName = ReleaseName.FromProjectLocationDeliveryPipelineRelease("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]"),
};
// Make the request
AbandonReleaseResponse response = await cloudDeployClient.AbandonReleaseAsync(request);

AbandonReleaseAsync(AbandonReleaseRequest, CancellationToken)

public virtual Task<AbandonReleaseResponse> AbandonReleaseAsync(AbandonReleaseRequest request, CancellationToken cancellationToken)

Abandons a Release in the Delivery Pipeline.

Parameters
Name Description
request AbandonReleaseRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<AbandonReleaseResponse>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
AbandonReleaseRequest request = new AbandonReleaseRequest
{
    ReleaseName = ReleaseName.FromProjectLocationDeliveryPipelineRelease("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]"),
};
// Make the request
AbandonReleaseResponse response = await cloudDeployClient.AbandonReleaseAsync(request);

AbandonReleaseAsync(ReleaseName, CallSettings)

public virtual Task<AbandonReleaseResponse> AbandonReleaseAsync(ReleaseName name, CallSettings callSettings = null)

Abandons a Release in the Delivery Pipeline.

Parameters
Name Description
name ReleaseName

Required. Name of the Release. Format is projects/{project}/locations/{___location}/deliveryPipelines/{deliveryPipeline}/ releases/{release}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<AbandonReleaseResponse>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
ReleaseName name = ReleaseName.FromProjectLocationDeliveryPipelineRelease("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]");
// Make the request
AbandonReleaseResponse response = await cloudDeployClient.AbandonReleaseAsync(name);

AbandonReleaseAsync(ReleaseName, CancellationToken)

public virtual Task<AbandonReleaseResponse> AbandonReleaseAsync(ReleaseName name, CancellationToken cancellationToken)

Abandons a Release in the Delivery Pipeline.

Parameters
Name Description
name ReleaseName

Required. Name of the Release. Format is projects/{project}/locations/{___location}/deliveryPipelines/{deliveryPipeline}/ releases/{release}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<AbandonReleaseResponse>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
ReleaseName name = ReleaseName.FromProjectLocationDeliveryPipelineRelease("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]");
// Make the request
AbandonReleaseResponse response = await cloudDeployClient.AbandonReleaseAsync(name);

AbandonReleaseAsync(String, CallSettings)

public virtual Task<AbandonReleaseResponse> AbandonReleaseAsync(string name, CallSettings callSettings = null)

Abandons a Release in the Delivery Pipeline.

Parameters
Name Description
name String

Required. Name of the Release. Format is projects/{project}/locations/{___location}/deliveryPipelines/{deliveryPipeline}/ releases/{release}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<AbandonReleaseResponse>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deliveryPipelines/[DELIVERY_PIPELINE]/releases/[RELEASE]";
// Make the request
AbandonReleaseResponse response = await cloudDeployClient.AbandonReleaseAsync(name);

AbandonReleaseAsync(String, CancellationToken)

public virtual Task<AbandonReleaseResponse> AbandonReleaseAsync(string name, CancellationToken cancellationToken)

Abandons a Release in the Delivery Pipeline.

Parameters
Name Description
name String

Required. Name of the Release. Format is projects/{project}/locations/{___location}/deliveryPipelines/{deliveryPipeline}/ releases/{release}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<AbandonReleaseResponse>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deliveryPipelines/[DELIVERY_PIPELINE]/releases/[RELEASE]";
// Make the request
AbandonReleaseResponse response = await cloudDeployClient.AbandonReleaseAsync(name);

ApproveRollout(ApproveRolloutRequest, CallSettings)

public virtual ApproveRolloutResponse ApproveRollout(ApproveRolloutRequest request, CallSettings callSettings = null)

Approves a Rollout.

Parameters
Name Description
request ApproveRolloutRequest

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
ApproveRolloutResponse

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
ApproveRolloutRequest request = new ApproveRolloutRequest
{
    RolloutName = RolloutName.FromProjectLocationDeliveryPipelineReleaseRollout("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]"),
    Approved = false,
};
// Make the request
ApproveRolloutResponse response = cloudDeployClient.ApproveRollout(request);

ApproveRollout(RolloutName, CallSettings)

public virtual ApproveRolloutResponse ApproveRollout(RolloutName name, CallSettings callSettings = null)

Approves a Rollout.

Parameters
Name Description
name RolloutName

Required. Name of the Rollout. Format is projects/{project}/locations/{___location}/deliveryPipelines/{deliveryPipeline}/ releases/{release}/rollouts/{rollout}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ApproveRolloutResponse

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
RolloutName name = RolloutName.FromProjectLocationDeliveryPipelineReleaseRollout("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]");
// Make the request
ApproveRolloutResponse response = cloudDeployClient.ApproveRollout(name);

ApproveRollout(String, CallSettings)

public virtual ApproveRolloutResponse ApproveRollout(string name, CallSettings callSettings = null)

Approves a Rollout.

Parameters
Name Description
name String

Required. Name of the Rollout. Format is projects/{project}/locations/{___location}/deliveryPipelines/{deliveryPipeline}/ releases/{release}/rollouts/{rollout}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ApproveRolloutResponse

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deliveryPipelines/[DELIVERY_PIPELINE]/releases/[RELEASE]/rollouts/[ROLLOUT]";
// Make the request
ApproveRolloutResponse response = cloudDeployClient.ApproveRollout(name);

ApproveRolloutAsync(ApproveRolloutRequest, CallSettings)

public virtual Task<ApproveRolloutResponse> ApproveRolloutAsync(ApproveRolloutRequest request, CallSettings callSettings = null)

Approves a Rollout.

Parameters
Name Description
request ApproveRolloutRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<ApproveRolloutResponse>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
ApproveRolloutRequest request = new ApproveRolloutRequest
{
    RolloutName = RolloutName.FromProjectLocationDeliveryPipelineReleaseRollout("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]"),
    Approved = false,
};
// Make the request
ApproveRolloutResponse response = await cloudDeployClient.ApproveRolloutAsync(request);

ApproveRolloutAsync(ApproveRolloutRequest, CancellationToken)

public virtual Task<ApproveRolloutResponse> ApproveRolloutAsync(ApproveRolloutRequest request, CancellationToken cancellationToken)

Approves a Rollout.

Parameters
Name Description
request ApproveRolloutRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<ApproveRolloutResponse>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
ApproveRolloutRequest request = new ApproveRolloutRequest
{
    RolloutName = RolloutName.FromProjectLocationDeliveryPipelineReleaseRollout("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]"),
    Approved = false,
};
// Make the request
ApproveRolloutResponse response = await cloudDeployClient.ApproveRolloutAsync(request);

ApproveRolloutAsync(RolloutName, CallSettings)

public virtual Task<ApproveRolloutResponse> ApproveRolloutAsync(RolloutName name, CallSettings callSettings = null)

Approves a Rollout.

Parameters
Name Description
name RolloutName

Required. Name of the Rollout. Format is projects/{project}/locations/{___location}/deliveryPipelines/{deliveryPipeline}/ releases/{release}/rollouts/{rollout}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<ApproveRolloutResponse>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
RolloutName name = RolloutName.FromProjectLocationDeliveryPipelineReleaseRollout("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]");
// Make the request
ApproveRolloutResponse response = await cloudDeployClient.ApproveRolloutAsync(name);

ApproveRolloutAsync(RolloutName, CancellationToken)

public virtual Task<ApproveRolloutResponse> ApproveRolloutAsync(RolloutName name, CancellationToken cancellationToken)

Approves a Rollout.

Parameters
Name Description
name RolloutName

Required. Name of the Rollout. Format is projects/{project}/locations/{___location}/deliveryPipelines/{deliveryPipeline}/ releases/{release}/rollouts/{rollout}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<ApproveRolloutResponse>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
RolloutName name = RolloutName.FromProjectLocationDeliveryPipelineReleaseRollout("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]");
// Make the request
ApproveRolloutResponse response = await cloudDeployClient.ApproveRolloutAsync(name);

ApproveRolloutAsync(String, CallSettings)

public virtual Task<ApproveRolloutResponse> ApproveRolloutAsync(string name, CallSettings callSettings = null)

Approves a Rollout.

Parameters
Name Description
name String

Required. Name of the Rollout. Format is projects/{project}/locations/{___location}/deliveryPipelines/{deliveryPipeline}/ releases/{release}/rollouts/{rollout}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<ApproveRolloutResponse>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deliveryPipelines/[DELIVERY_PIPELINE]/releases/[RELEASE]/rollouts/[ROLLOUT]";
// Make the request
ApproveRolloutResponse response = await cloudDeployClient.ApproveRolloutAsync(name);

ApproveRolloutAsync(String, CancellationToken)

public virtual Task<ApproveRolloutResponse> ApproveRolloutAsync(string name, CancellationToken cancellationToken)

Approves a Rollout.

Parameters
Name Description
name String

Required. Name of the Rollout. Format is projects/{project}/locations/{___location}/deliveryPipelines/{deliveryPipeline}/ releases/{release}/rollouts/{rollout}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<ApproveRolloutResponse>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deliveryPipelines/[DELIVERY_PIPELINE]/releases/[RELEASE]/rollouts/[ROLLOUT]";
// Make the request
ApproveRolloutResponse response = await cloudDeployClient.ApproveRolloutAsync(name);

Create()

public static CloudDeployClient Create()

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

Returns
Type Description
CloudDeployClient

The created CloudDeployClient.

CreateAsync(CancellationToken)

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

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

Parameter
Name Description
cancellationToken CancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
Task<CloudDeployClient>

The task representing the created CloudDeployClient.

CreateDeliveryPipeline(LocationName, DeliveryPipeline, String, CallSettings)

public virtual Operation<DeliveryPipeline, OperationMetadata> CreateDeliveryPipeline(LocationName parent, DeliveryPipeline deliveryPipeline, string deliveryPipelineId, CallSettings callSettings = null)

Creates a new DeliveryPipeline in a given project and ___location.

Parameters
Name Description
parent LocationName

Required. The parent collection in which the DeliveryPipeline should be created. Format should be projects/{project_id}/locations/{location_name}.

deliveryPipeline DeliveryPipeline

Required. The DeliveryPipeline to create.

deliveryPipelineId String

Required. ID of the DeliveryPipeline.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<DeliveryPipeline, OperationMetadata>

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
DeliveryPipeline deliveryPipeline = new DeliveryPipeline();
string deliveryPipelineId = "";
// Make the request
Operation<DeliveryPipeline, OperationMetadata> response = cloudDeployClient.CreateDeliveryPipeline(parent, deliveryPipeline, deliveryPipelineId);

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

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

CreateDeliveryPipeline(CreateDeliveryPipelineRequest, CallSettings)

public virtual Operation<DeliveryPipeline, OperationMetadata> CreateDeliveryPipeline(CreateDeliveryPipelineRequest request, CallSettings callSettings = null)

Creates a new DeliveryPipeline in a given project and ___location.

Parameters
Name Description
request CreateDeliveryPipelineRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<DeliveryPipeline, OperationMetadata>

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
CreateDeliveryPipelineRequest request = new CreateDeliveryPipelineRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    DeliveryPipelineId = "",
    DeliveryPipeline = new DeliveryPipeline(),
    RequestId = "",
    ValidateOnly = false,
};
// Make the request
Operation<DeliveryPipeline, OperationMetadata> response = cloudDeployClient.CreateDeliveryPipeline(request);

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

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

CreateDeliveryPipeline(String, DeliveryPipeline, String, CallSettings)

public virtual Operation<DeliveryPipeline, OperationMetadata> CreateDeliveryPipeline(string parent, DeliveryPipeline deliveryPipeline, string deliveryPipelineId, CallSettings callSettings = null)

Creates a new DeliveryPipeline in a given project and ___location.

Parameters
Name Description
parent String

Required. The parent collection in which the DeliveryPipeline should be created. Format should be projects/{project_id}/locations/{location_name}.

deliveryPipeline DeliveryPipeline

Required. The DeliveryPipeline to create.

deliveryPipelineId String

Required. ID of the DeliveryPipeline.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<DeliveryPipeline, OperationMetadata>

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
DeliveryPipeline deliveryPipeline = new DeliveryPipeline();
string deliveryPipelineId = "";
// Make the request
Operation<DeliveryPipeline, OperationMetadata> response = cloudDeployClient.CreateDeliveryPipeline(parent, deliveryPipeline, deliveryPipelineId);

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

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

CreateDeliveryPipelineAsync(LocationName, DeliveryPipeline, String, CallSettings)

public virtual Task<Operation<DeliveryPipeline, OperationMetadata>> CreateDeliveryPipelineAsync(LocationName parent, DeliveryPipeline deliveryPipeline, string deliveryPipelineId, CallSettings callSettings = null)

Creates a new DeliveryPipeline in a given project and ___location.

Parameters
Name Description
parent LocationName

Required. The parent collection in which the DeliveryPipeline should be created. Format should be projects/{project_id}/locations/{location_name}.

deliveryPipeline DeliveryPipeline

Required. The DeliveryPipeline to create.

deliveryPipelineId String

Required. ID of the DeliveryPipeline.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Operation<DeliveryPipeline, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
DeliveryPipeline deliveryPipeline = new DeliveryPipeline();
string deliveryPipelineId = "";
// Make the request
Operation<DeliveryPipeline, OperationMetadata> response = await cloudDeployClient.CreateDeliveryPipelineAsync(parent, deliveryPipeline, deliveryPipelineId);

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

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

CreateDeliveryPipelineAsync(LocationName, DeliveryPipeline, String, CancellationToken)

public virtual Task<Operation<DeliveryPipeline, OperationMetadata>> CreateDeliveryPipelineAsync(LocationName parent, DeliveryPipeline deliveryPipeline, string deliveryPipelineId, CancellationToken cancellationToken)

Creates a new DeliveryPipeline in a given project and ___location.

Parameters
Name Description
parent LocationName

Required. The parent collection in which the DeliveryPipeline should be created. Format should be projects/{project_id}/locations/{location_name}.

deliveryPipeline DeliveryPipeline

Required. The DeliveryPipeline to create.

deliveryPipelineId String

Required. ID of the DeliveryPipeline.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Operation<DeliveryPipeline, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
DeliveryPipeline deliveryPipeline = new DeliveryPipeline();
string deliveryPipelineId = "";
// Make the request
Operation<DeliveryPipeline, OperationMetadata> response = await cloudDeployClient.CreateDeliveryPipelineAsync(parent, deliveryPipeline, deliveryPipelineId);

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

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

CreateDeliveryPipelineAsync(CreateDeliveryPipelineRequest, CallSettings)

public virtual Task<Operation<DeliveryPipeline, OperationMetadata>> CreateDeliveryPipelineAsync(CreateDeliveryPipelineRequest request, CallSettings callSettings = null)

Creates a new DeliveryPipeline in a given project and ___location.

Parameters
Name Description
request CreateDeliveryPipelineRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Operation<DeliveryPipeline, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
CreateDeliveryPipelineRequest request = new CreateDeliveryPipelineRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    DeliveryPipelineId = "",
    DeliveryPipeline = new DeliveryPipeline(),
    RequestId = "",
    ValidateOnly = false,
};
// Make the request
Operation<DeliveryPipeline, OperationMetadata> response = await cloudDeployClient.CreateDeliveryPipelineAsync(request);

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

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

CreateDeliveryPipelineAsync(CreateDeliveryPipelineRequest, CancellationToken)

public virtual Task<Operation<DeliveryPipeline, OperationMetadata>> CreateDeliveryPipelineAsync(CreateDeliveryPipelineRequest request, CancellationToken cancellationToken)

Creates a new DeliveryPipeline in a given project and ___location.

Parameters
Name Description
request CreateDeliveryPipelineRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Operation<DeliveryPipeline, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
CreateDeliveryPipelineRequest request = new CreateDeliveryPipelineRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    DeliveryPipelineId = "",
    DeliveryPipeline = new DeliveryPipeline(),
    RequestId = "",
    ValidateOnly = false,
};
// Make the request
Operation<DeliveryPipeline, OperationMetadata> response = await cloudDeployClient.CreateDeliveryPipelineAsync(request);

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

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

CreateDeliveryPipelineAsync(String, DeliveryPipeline, String, CallSettings)

public virtual Task<Operation<DeliveryPipeline, OperationMetadata>> CreateDeliveryPipelineAsync(string parent, DeliveryPipeline deliveryPipeline, string deliveryPipelineId, CallSettings callSettings = null)

Creates a new DeliveryPipeline in a given project and ___location.

Parameters
Name Description
parent String

Required. The parent collection in which the DeliveryPipeline should be created. Format should be projects/{project_id}/locations/{location_name}.

deliveryPipeline DeliveryPipeline

Required. The DeliveryPipeline to create.

deliveryPipelineId String

Required. ID of the DeliveryPipeline.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Operation<DeliveryPipeline, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
DeliveryPipeline deliveryPipeline = new DeliveryPipeline();
string deliveryPipelineId = "";
// Make the request
Operation<DeliveryPipeline, OperationMetadata> response = await cloudDeployClient.CreateDeliveryPipelineAsync(parent, deliveryPipeline, deliveryPipelineId);

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

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

CreateDeliveryPipelineAsync(String, DeliveryPipeline, String, CancellationToken)

public virtual Task<Operation<DeliveryPipeline, OperationMetadata>> CreateDeliveryPipelineAsync(string parent, DeliveryPipeline deliveryPipeline, string deliveryPipelineId, CancellationToken cancellationToken)

Creates a new DeliveryPipeline in a given project and ___location.

Parameters
Name Description
parent String

Required. The parent collection in which the DeliveryPipeline should be created. Format should be projects/{project_id}/locations/{location_name}.

deliveryPipeline DeliveryPipeline

Required. The DeliveryPipeline to create.

deliveryPipelineId String

Required. ID of the DeliveryPipeline.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Operation<DeliveryPipeline, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
DeliveryPipeline deliveryPipeline = new DeliveryPipeline();
string deliveryPipelineId = "";
// Make the request
Operation<DeliveryPipeline, OperationMetadata> response = await cloudDeployClient.CreateDeliveryPipelineAsync(parent, deliveryPipeline, deliveryPipelineId);

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

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

CreateRelease(CreateReleaseRequest, CallSettings)

public virtual Operation<Release, OperationMetadata> CreateRelease(CreateReleaseRequest request, CallSettings callSettings = null)

Creates a new Release in a given project and ___location.

Parameters
Name Description
request CreateReleaseRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<Release, OperationMetadata>

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
CreateReleaseRequest request = new CreateReleaseRequest
{
    ParentAsDeliveryPipelineName = DeliveryPipelineName.FromProjectLocationDeliveryPipeline("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]"),
    ReleaseId = "",
    Release = new Release(),
    RequestId = "",
    ValidateOnly = false,
};
// Make the request
Operation<Release, OperationMetadata> response = cloudDeployClient.CreateRelease(request);

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

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

CreateRelease(DeliveryPipelineName, Release, String, CallSettings)

public virtual Operation<Release, OperationMetadata> CreateRelease(DeliveryPipelineName parent, Release release, string releaseId, CallSettings callSettings = null)

Creates a new Release in a given project and ___location.

Parameters
Name Description
parent DeliveryPipelineName

Required. The parent collection in which the Release should be created. Format should be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.

release Release

Required. The Release to create.

releaseId String

Required. ID of the Release.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<Release, OperationMetadata>

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
DeliveryPipelineName parent = DeliveryPipelineName.FromProjectLocationDeliveryPipeline("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]");
Release release = new Release();
string releaseId = "";
// Make the request
Operation<Release, OperationMetadata> response = cloudDeployClient.CreateRelease(parent, release, releaseId);

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

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

CreateRelease(String, Release, String, CallSettings)

public virtual Operation<Release, OperationMetadata> CreateRelease(string parent, Release release, string releaseId, CallSettings callSettings = null)

Creates a new Release in a given project and ___location.

Parameters
Name Description
parent String

Required. The parent collection in which the Release should be created. Format should be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.

release Release

Required. The Release to create.

releaseId String

Required. ID of the Release.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<Release, OperationMetadata>

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/deliveryPipelines/[DELIVERY_PIPELINE]";
Release release = new Release();
string releaseId = "";
// Make the request
Operation<Release, OperationMetadata> response = cloudDeployClient.CreateRelease(parent, release, releaseId);

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

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

CreateReleaseAsync(CreateReleaseRequest, CallSettings)

public virtual Task<Operation<Release, OperationMetadata>> CreateReleaseAsync(CreateReleaseRequest request, CallSettings callSettings = null)

Creates a new Release in a given project and ___location.

Parameters
Name Description
request CreateReleaseRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Operation<Release, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
CreateReleaseRequest request = new CreateReleaseRequest
{
    ParentAsDeliveryPipelineName = DeliveryPipelineName.FromProjectLocationDeliveryPipeline("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]"),
    ReleaseId = "",
    Release = new Release(),
    RequestId = "",
    ValidateOnly = false,
};
// Make the request
Operation<Release, OperationMetadata> response = await cloudDeployClient.CreateReleaseAsync(request);

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

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

CreateReleaseAsync(CreateReleaseRequest, CancellationToken)

public virtual Task<Operation<Release, OperationMetadata>> CreateReleaseAsync(CreateReleaseRequest request, CancellationToken cancellationToken)

Creates a new Release in a given project and ___location.

Parameters
Name Description
request CreateReleaseRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Operation<Release, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
CreateReleaseRequest request = new CreateReleaseRequest
{
    ParentAsDeliveryPipelineName = DeliveryPipelineName.FromProjectLocationDeliveryPipeline("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]"),
    ReleaseId = "",
    Release = new Release(),
    RequestId = "",
    ValidateOnly = false,
};
// Make the request
Operation<Release, OperationMetadata> response = await cloudDeployClient.CreateReleaseAsync(request);

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

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

CreateReleaseAsync(DeliveryPipelineName, Release, String, CallSettings)

public virtual Task<Operation<Release, OperationMetadata>> CreateReleaseAsync(DeliveryPipelineName parent, Release release, string releaseId, CallSettings callSettings = null)

Creates a new Release in a given project and ___location.

Parameters
Name Description
parent DeliveryPipelineName

Required. The parent collection in which the Release should be created. Format should be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.

release Release

Required. The Release to create.

releaseId String

Required. ID of the Release.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Operation<Release, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
DeliveryPipelineName parent = DeliveryPipelineName.FromProjectLocationDeliveryPipeline("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]");
Release release = new Release();
string releaseId = "";
// Make the request
Operation<Release, OperationMetadata> response = await cloudDeployClient.CreateReleaseAsync(parent, release, releaseId);

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

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

CreateReleaseAsync(DeliveryPipelineName, Release, String, CancellationToken)

public virtual Task<Operation<Release, OperationMetadata>> CreateReleaseAsync(DeliveryPipelineName parent, Release release, string releaseId, CancellationToken cancellationToken)

Creates a new Release in a given project and ___location.

Parameters
Name Description
parent DeliveryPipelineName

Required. The parent collection in which the Release should be created. Format should be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.

release Release

Required. The Release to create.

releaseId String

Required. ID of the Release.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Operation<Release, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
DeliveryPipelineName parent = DeliveryPipelineName.FromProjectLocationDeliveryPipeline("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]");
Release release = new Release();
string releaseId = "";
// Make the request
Operation<Release, OperationMetadata> response = await cloudDeployClient.CreateReleaseAsync(parent, release, releaseId);

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

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

CreateReleaseAsync(String, Release, String, CallSettings)

public virtual Task<Operation<Release, OperationMetadata>> CreateReleaseAsync(string parent, Release release, string releaseId, CallSettings callSettings = null)

Creates a new Release in a given project and ___location.

Parameters
Name Description
parent String

Required. The parent collection in which the Release should be created. Format should be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.

release Release

Required. The Release to create.

releaseId String

Required. ID of the Release.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Operation<Release, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/deliveryPipelines/[DELIVERY_PIPELINE]";
Release release = new Release();
string releaseId = "";
// Make the request
Operation<Release, OperationMetadata> response = await cloudDeployClient.CreateReleaseAsync(parent, release, releaseId);

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

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

CreateReleaseAsync(String, Release, String, CancellationToken)

public virtual Task<Operation<Release, OperationMetadata>> CreateReleaseAsync(string parent, Release release, string releaseId, CancellationToken cancellationToken)

Creates a new Release in a given project and ___location.

Parameters
Name Description
parent String

Required. The parent collection in which the Release should be created. Format should be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.

release Release

Required. The Release to create.

releaseId String

Required. ID of the Release.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Operation<Release, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/deliveryPipelines/[DELIVERY_PIPELINE]";
Release release = new Release();
string releaseId = "";
// Make the request
Operation<Release, OperationMetadata> response = await cloudDeployClient.CreateReleaseAsync(parent, release, releaseId);

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

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

CreateRollout(CreateRolloutRequest, CallSettings)

public virtual Operation<Rollout, OperationMetadata> CreateRollout(CreateRolloutRequest request, CallSettings callSettings = null)

Creates a new Rollout in a given project and ___location.

Parameters
Name Description
request CreateRolloutRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<Rollout, OperationMetadata>

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
CreateRolloutRequest request = new CreateRolloutRequest
{
    ParentAsReleaseName = ReleaseName.FromProjectLocationDeliveryPipelineRelease("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]"),
    RolloutId = "",
    Rollout = new Rollout(),
    RequestId = "",
    ValidateOnly = false,
};
// Make the request
Operation<Rollout, OperationMetadata> response = cloudDeployClient.CreateRollout(request);

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

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

CreateRollout(ReleaseName, Rollout, String, CallSettings)

public virtual Operation<Rollout, OperationMetadata> CreateRollout(ReleaseName parent, Rollout rollout, string rolloutId, CallSettings callSettings = null)

Creates a new Rollout in a given project and ___location.

Parameters
Name Description
parent ReleaseName

Required. The parent collection in which the Rollout should be created. Format should be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}.

rollout Rollout

Required. The Rollout to create.

rolloutId String

Required. ID of the Rollout.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<Rollout, OperationMetadata>

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
ReleaseName parent = ReleaseName.FromProjectLocationDeliveryPipelineRelease("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]");
Rollout rollout = new Rollout();
string rolloutId = "";
// Make the request
Operation<Rollout, OperationMetadata> response = cloudDeployClient.CreateRollout(parent, rollout, rolloutId);

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

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

CreateRollout(String, Rollout, String, CallSettings)

public virtual Operation<Rollout, OperationMetadata> CreateRollout(string parent, Rollout rollout, string rolloutId, CallSettings callSettings = null)

Creates a new Rollout in a given project and ___location.

Parameters
Name Description
parent String

Required. The parent collection in which the Rollout should be created. Format should be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}.

rollout Rollout

Required. The Rollout to create.

rolloutId String

Required. ID of the Rollout.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<Rollout, OperationMetadata>

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/deliveryPipelines/[DELIVERY_PIPELINE]/releases/[RELEASE]";
Rollout rollout = new Rollout();
string rolloutId = "";
// Make the request
Operation<Rollout, OperationMetadata> response = cloudDeployClient.CreateRollout(parent, rollout, rolloutId);

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

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

CreateRolloutAsync(CreateRolloutRequest, CallSettings)

public virtual Task<Operation<Rollout, OperationMetadata>> CreateRolloutAsync(CreateRolloutRequest request, CallSettings callSettings = null)

Creates a new Rollout in a given project and ___location.

Parameters
Name Description
request CreateRolloutRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Operation<Rollout, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
CreateRolloutRequest request = new CreateRolloutRequest
{
    ParentAsReleaseName = ReleaseName.FromProjectLocationDeliveryPipelineRelease("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]"),
    RolloutId = "",
    Rollout = new Rollout(),
    RequestId = "",
    ValidateOnly = false,
};
// Make the request
Operation<Rollout, OperationMetadata> response = await cloudDeployClient.CreateRolloutAsync(request);

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

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

CreateRolloutAsync(CreateRolloutRequest, CancellationToken)

public virtual Task<Operation<Rollout, OperationMetadata>> CreateRolloutAsync(CreateRolloutRequest request, CancellationToken cancellationToken)

Creates a new Rollout in a given project and ___location.

Parameters
Name Description
request CreateRolloutRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Operation<Rollout, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
CreateRolloutRequest request = new CreateRolloutRequest
{
    ParentAsReleaseName = ReleaseName.FromProjectLocationDeliveryPipelineRelease("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]"),
    RolloutId = "",
    Rollout = new Rollout(),
    RequestId = "",
    ValidateOnly = false,
};
// Make the request
Operation<Rollout, OperationMetadata> response = await cloudDeployClient.CreateRolloutAsync(request);

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

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

CreateRolloutAsync(ReleaseName, Rollout, String, CallSettings)

public virtual Task<Operation<Rollout, OperationMetadata>> CreateRolloutAsync(ReleaseName parent, Rollout rollout, string rolloutId, CallSettings callSettings = null)

Creates a new Rollout in a given project and ___location.

Parameters
Name Description
parent ReleaseName

Required. The parent collection in which the Rollout should be created. Format should be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}.

rollout Rollout

Required. The Rollout to create.

rolloutId String

Required. ID of the Rollout.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Operation<Rollout, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
ReleaseName parent = ReleaseName.FromProjectLocationDeliveryPipelineRelease("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]");
Rollout rollout = new Rollout();
string rolloutId = "";
// Make the request
Operation<Rollout, OperationMetadata> response = await cloudDeployClient.CreateRolloutAsync(parent, rollout, rolloutId);

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

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

CreateRolloutAsync(ReleaseName, Rollout, String, CancellationToken)

public virtual Task<Operation<Rollout, OperationMetadata>> CreateRolloutAsync(ReleaseName parent, Rollout rollout, string rolloutId, CancellationToken cancellationToken)

Creates a new Rollout in a given project and ___location.

Parameters
Name Description
parent ReleaseName

Required. The parent collection in which the Rollout should be created. Format should be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}.

rollout Rollout

Required. The Rollout to create.

rolloutId String

Required. ID of the Rollout.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Operation<Rollout, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
ReleaseName parent = ReleaseName.FromProjectLocationDeliveryPipelineRelease("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]");
Rollout rollout = new Rollout();
string rolloutId = "";
// Make the request
Operation<Rollout, OperationMetadata> response = await cloudDeployClient.CreateRolloutAsync(parent, rollout, rolloutId);

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

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

CreateRolloutAsync(String, Rollout, String, CallSettings)

public virtual Task<Operation<Rollout, OperationMetadata>> CreateRolloutAsync(string parent, Rollout rollout, string rolloutId, CallSettings callSettings = null)

Creates a new Rollout in a given project and ___location.

Parameters
Name Description
parent String

Required. The parent collection in which the Rollout should be created. Format should be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}.

rollout Rollout

Required. The Rollout to create.

rolloutId String

Required. ID of the Rollout.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Operation<Rollout, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/deliveryPipelines/[DELIVERY_PIPELINE]/releases/[RELEASE]";
Rollout rollout = new Rollout();
string rolloutId = "";
// Make the request
Operation<Rollout, OperationMetadata> response = await cloudDeployClient.CreateRolloutAsync(parent, rollout, rolloutId);

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

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

CreateRolloutAsync(String, Rollout, String, CancellationToken)

public virtual Task<Operation<Rollout, OperationMetadata>> CreateRolloutAsync(string parent, Rollout rollout, string rolloutId, CancellationToken cancellationToken)

Creates a new Rollout in a given project and ___location.

Parameters
Name Description
parent String

Required. The parent collection in which the Rollout should be created. Format should be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}.

rollout Rollout

Required. The Rollout to create.

rolloutId String

Required. ID of the Rollout.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Operation<Rollout, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/deliveryPipelines/[DELIVERY_PIPELINE]/releases/[RELEASE]";
Rollout rollout = new Rollout();
string rolloutId = "";
// Make the request
Operation<Rollout, OperationMetadata> response = await cloudDeployClient.CreateRolloutAsync(parent, rollout, rolloutId);

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

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

CreateTarget(LocationName, Target, String, CallSettings)

public virtual Operation<Target, OperationMetadata> CreateTarget(LocationName parent, Target target, string targetId, CallSettings callSettings = null)

Creates a new Target in a given project and ___location.

Parameters
Name Description
parent LocationName

Required. The parent collection in which the Target should be created. Format should be projects/{project_id}/locations/{location_name}.

target Target

Required. The Target to create.

targetId String

Required. ID of the Target.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<Target, OperationMetadata>

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Target target = new Target();
string targetId = "";
// Make the request
Operation<Target, OperationMetadata> response = cloudDeployClient.CreateTarget(parent, target, targetId);

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

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

CreateTarget(CreateTargetRequest, CallSettings)

public virtual Operation<Target, OperationMetadata> CreateTarget(CreateTargetRequest request, CallSettings callSettings = null)

Creates a new Target in a given project and ___location.

Parameters
Name Description
request CreateTargetRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<Target, OperationMetadata>

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
CreateTargetRequest request = new CreateTargetRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    TargetId = "",
    Target = new Target(),
    RequestId = "",
    ValidateOnly = false,
};
// Make the request
Operation<Target, OperationMetadata> response = cloudDeployClient.CreateTarget(request);

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

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

CreateTarget(String, Target, String, CallSettings)

public virtual Operation<Target, OperationMetadata> CreateTarget(string parent, Target target, string targetId, CallSettings callSettings = null)

Creates a new Target in a given project and ___location.

Parameters
Name Description
parent String

Required. The parent collection in which the Target should be created. Format should be projects/{project_id}/locations/{location_name}.

target Target

Required. The Target to create.

targetId String

Required. ID of the Target.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<Target, OperationMetadata>

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Target target = new Target();
string targetId = "";
// Make the request
Operation<Target, OperationMetadata> response = cloudDeployClient.CreateTarget(parent, target, targetId);

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

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

CreateTargetAsync(LocationName, Target, String, CallSettings)

public virtual Task<Operation<Target, OperationMetadata>> CreateTargetAsync(LocationName parent, Target target, string targetId, CallSettings callSettings = null)

Creates a new Target in a given project and ___location.

Parameters
Name Description
parent LocationName

Required. The parent collection in which the Target should be created. Format should be projects/{project_id}/locations/{location_name}.

target Target

Required. The Target to create.

targetId String

Required. ID of the Target.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Operation<Target, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Target target = new Target();
string targetId = "";
// Make the request
Operation<Target, OperationMetadata> response = await cloudDeployClient.CreateTargetAsync(parent, target, targetId);

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

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

CreateTargetAsync(LocationName, Target, String, CancellationToken)

public virtual Task<Operation<Target, OperationMetadata>> CreateTargetAsync(LocationName parent, Target target, string targetId, CancellationToken cancellationToken)

Creates a new Target in a given project and ___location.

Parameters
Name Description
parent LocationName

Required. The parent collection in which the Target should be created. Format should be projects/{project_id}/locations/{location_name}.

target Target

Required. The Target to create.

targetId String

Required. ID of the Target.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Operation<Target, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Target target = new Target();
string targetId = "";
// Make the request
Operation<Target, OperationMetadata> response = await cloudDeployClient.CreateTargetAsync(parent, target, targetId);

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

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

CreateTargetAsync(CreateTargetRequest, CallSettings)

public virtual Task<Operation<Target, OperationMetadata>> CreateTargetAsync(CreateTargetRequest request, CallSettings callSettings = null)

Creates a new Target in a given project and ___location.

Parameters
Name Description
request CreateTargetRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Operation<Target, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
CreateTargetRequest request = new CreateTargetRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    TargetId = "",
    Target = new Target(),
    RequestId = "",
    ValidateOnly = false,
};
// Make the request
Operation<Target, OperationMetadata> response = await cloudDeployClient.CreateTargetAsync(request);

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

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

CreateTargetAsync(CreateTargetRequest, CancellationToken)

public virtual Task<Operation<Target, OperationMetadata>> CreateTargetAsync(CreateTargetRequest request, CancellationToken cancellationToken)

Creates a new Target in a given project and ___location.

Parameters
Name Description
request CreateTargetRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Operation<Target, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
CreateTargetRequest request = new CreateTargetRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    TargetId = "",
    Target = new Target(),
    RequestId = "",
    ValidateOnly = false,
};
// Make the request
Operation<Target, OperationMetadata> response = await cloudDeployClient.CreateTargetAsync(request);

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

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

CreateTargetAsync(String, Target, String, CallSettings)

public virtual Task<Operation<Target, OperationMetadata>> CreateTargetAsync(string parent, Target target, string targetId, CallSettings callSettings = null)

Creates a new Target in a given project and ___location.

Parameters
Name Description
parent String

Required. The parent collection in which the Target should be created. Format should be projects/{project_id}/locations/{location_name}.

target Target

Required. The Target to create.

targetId String

Required. ID of the Target.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Operation<Target, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Target target = new Target();
string targetId = "";
// Make the request
Operation<Target, OperationMetadata> response = await cloudDeployClient.CreateTargetAsync(parent, target, targetId);

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

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

CreateTargetAsync(String, Target, String, CancellationToken)

public virtual Task<Operation<Target, OperationMetadata>> CreateTargetAsync(string parent, Target target, string targetId, CancellationToken cancellationToken)

Creates a new Target in a given project and ___location.

Parameters
Name Description
parent String

Required. The parent collection in which the Target should be created. Format should be projects/{project_id}/locations/{location_name}.

target Target

Required. The Target to create.

targetId String

Required. ID of the Target.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Operation<Target, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Target target = new Target();
string targetId = "";
// Make the request
Operation<Target, OperationMetadata> response = await cloudDeployClient.CreateTargetAsync(parent, target, targetId);

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

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

DeleteDeliveryPipeline(DeleteDeliveryPipelineRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteDeliveryPipeline(DeleteDeliveryPipelineRequest request, CallSettings callSettings = null)

Deletes a single DeliveryPipeline.

Parameters
Name Description
request DeleteDeliveryPipelineRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<Empty, OperationMetadata>

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
DeleteDeliveryPipelineRequest request = new DeleteDeliveryPipelineRequest
{
    DeliveryPipelineName = DeliveryPipelineName.FromProjectLocationDeliveryPipeline("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]"),
    RequestId = "",
    AllowMissing = false,
    ValidateOnly = false,
    Etag = "",
    Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = cloudDeployClient.DeleteDeliveryPipeline(request);

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

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

DeleteDeliveryPipeline(DeliveryPipelineName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteDeliveryPipeline(DeliveryPipelineName name, CallSettings callSettings = null)

Deletes a single DeliveryPipeline.

Parameters
Name Description
name DeliveryPipelineName

Required. The name of the DeliveryPipeline to delete. Format should be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<Empty, OperationMetadata>

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
DeliveryPipelineName name = DeliveryPipelineName.FromProjectLocationDeliveryPipeline("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]");
// Make the request
Operation<Empty, OperationMetadata> response = cloudDeployClient.DeleteDeliveryPipeline(name);

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

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

DeleteDeliveryPipeline(String, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteDeliveryPipeline(string name, CallSettings callSettings = null)

Deletes a single DeliveryPipeline.

Parameters
Name Description
name String

Required. The name of the DeliveryPipeline to delete. Format should be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<Empty, OperationMetadata>

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deliveryPipelines/[DELIVERY_PIPELINE]";
// Make the request
Operation<Empty, OperationMetadata> response = cloudDeployClient.DeleteDeliveryPipeline(name);

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

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

DeleteDeliveryPipelineAsync(DeleteDeliveryPipelineRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteDeliveryPipelineAsync(DeleteDeliveryPipelineRequest request, CallSettings callSettings = null)

Deletes a single DeliveryPipeline.

Parameters
Name Description
request DeleteDeliveryPipelineRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Operation<Empty, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
DeleteDeliveryPipelineRequest request = new DeleteDeliveryPipelineRequest
{
    DeliveryPipelineName = DeliveryPipelineName.FromProjectLocationDeliveryPipeline("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]"),
    RequestId = "",
    AllowMissing = false,
    ValidateOnly = false,
    Etag = "",
    Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = await cloudDeployClient.DeleteDeliveryPipelineAsync(request);

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

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

DeleteDeliveryPipelineAsync(DeleteDeliveryPipelineRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteDeliveryPipelineAsync(DeleteDeliveryPipelineRequest request, CancellationToken cancellationToken)

Deletes a single DeliveryPipeline.

Parameters
Name Description
request DeleteDeliveryPipelineRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Operation<Empty, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
DeleteDeliveryPipelineRequest request = new DeleteDeliveryPipelineRequest
{
    DeliveryPipelineName = DeliveryPipelineName.FromProjectLocationDeliveryPipeline("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]"),
    RequestId = "",
    AllowMissing = false,
    ValidateOnly = false,
    Etag = "",
    Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = await cloudDeployClient.DeleteDeliveryPipelineAsync(request);

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

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

DeleteDeliveryPipelineAsync(DeliveryPipelineName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteDeliveryPipelineAsync(DeliveryPipelineName name, CallSettings callSettings = null)

Deletes a single DeliveryPipeline.

Parameters
Name Description
name DeliveryPipelineName

Required. The name of the DeliveryPipeline to delete. Format should be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Operation<Empty, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
DeliveryPipelineName name = DeliveryPipelineName.FromProjectLocationDeliveryPipeline("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]");
// Make the request
Operation<Empty, OperationMetadata> response = await cloudDeployClient.DeleteDeliveryPipelineAsync(name);

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

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

DeleteDeliveryPipelineAsync(DeliveryPipelineName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteDeliveryPipelineAsync(DeliveryPipelineName name, CancellationToken cancellationToken)

Deletes a single DeliveryPipeline.

Parameters
Name Description
name DeliveryPipelineName

Required. The name of the DeliveryPipeline to delete. Format should be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Operation<Empty, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
DeliveryPipelineName name = DeliveryPipelineName.FromProjectLocationDeliveryPipeline("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]");
// Make the request
Operation<Empty, OperationMetadata> response = await cloudDeployClient.DeleteDeliveryPipelineAsync(name);

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

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

DeleteDeliveryPipelineAsync(String, CallSettings)

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

Deletes a single DeliveryPipeline.

Parameters
Name Description
name String

Required. The name of the DeliveryPipeline to delete. Format should be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Operation<Empty, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deliveryPipelines/[DELIVERY_PIPELINE]";
// Make the request
Operation<Empty, OperationMetadata> response = await cloudDeployClient.DeleteDeliveryPipelineAsync(name);

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

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

DeleteDeliveryPipelineAsync(String, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteDeliveryPipelineAsync(string name, CancellationToken cancellationToken)

Deletes a single DeliveryPipeline.

Parameters
Name Description
name String

Required. The name of the DeliveryPipeline to delete. Format should be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Operation<Empty, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deliveryPipelines/[DELIVERY_PIPELINE]";
// Make the request
Operation<Empty, OperationMetadata> response = await cloudDeployClient.DeleteDeliveryPipelineAsync(name);

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

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

DeleteTarget(DeleteTargetRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteTarget(DeleteTargetRequest request, CallSettings callSettings = null)

Deletes a single Target.

Parameters
Name Description
request DeleteTargetRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<Empty, OperationMetadata>

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
DeleteTargetRequest request = new DeleteTargetRequest
{
    TargetName = TargetName.FromProjectLocationTarget("[PROJECT]", "[LOCATION]", "[TARGET]"),
    RequestId = "",
    AllowMissing = false,
    ValidateOnly = false,
    Etag = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = cloudDeployClient.DeleteTarget(request);

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

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

DeleteTarget(TargetName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteTarget(TargetName name, CallSettings callSettings = null)

Deletes a single Target.

Parameters
Name Description
name TargetName

Required. The name of the Target to delete. Format should be projects/{project_id}/locations/{location_name}/targets/{target_name}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<Empty, OperationMetadata>

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
TargetName name = TargetName.FromProjectLocationTarget("[PROJECT]", "[LOCATION]", "[TARGET]");
// Make the request
Operation<Empty, OperationMetadata> response = cloudDeployClient.DeleteTarget(name);

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

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

DeleteTarget(String, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteTarget(string name, CallSettings callSettings = null)

Deletes a single Target.

Parameters
Name Description
name String

Required. The name of the Target to delete. Format should be projects/{project_id}/locations/{location_name}/targets/{target_name}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<Empty, OperationMetadata>

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/targets/[TARGET]";
// Make the request
Operation<Empty, OperationMetadata> response = cloudDeployClient.DeleteTarget(name);

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

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

DeleteTargetAsync(DeleteTargetRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteTargetAsync(DeleteTargetRequest request, CallSettings callSettings = null)

Deletes a single Target.

Parameters
Name Description
request DeleteTargetRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Operation<Empty, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
DeleteTargetRequest request = new DeleteTargetRequest
{
    TargetName = TargetName.FromProjectLocationTarget("[PROJECT]", "[LOCATION]", "[TARGET]"),
    RequestId = "",
    AllowMissing = false,
    ValidateOnly = false,
    Etag = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await cloudDeployClient.DeleteTargetAsync(request);

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

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

DeleteTargetAsync(DeleteTargetRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteTargetAsync(DeleteTargetRequest request, CancellationToken cancellationToken)

Deletes a single Target.

Parameters
Name Description
request DeleteTargetRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Operation<Empty, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
DeleteTargetRequest request = new DeleteTargetRequest
{
    TargetName = TargetName.FromProjectLocationTarget("[PROJECT]", "[LOCATION]", "[TARGET]"),
    RequestId = "",
    AllowMissing = false,
    ValidateOnly = false,
    Etag = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await cloudDeployClient.DeleteTargetAsync(request);

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

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

DeleteTargetAsync(TargetName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteTargetAsync(TargetName name, CallSettings callSettings = null)

Deletes a single Target.

Parameters
Name Description
name TargetName

Required. The name of the Target to delete. Format should be projects/{project_id}/locations/{location_name}/targets/{target_name}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Operation<Empty, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
TargetName name = TargetName.FromProjectLocationTarget("[PROJECT]", "[LOCATION]", "[TARGET]");
// Make the request
Operation<Empty, OperationMetadata> response = await cloudDeployClient.DeleteTargetAsync(name);

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

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

DeleteTargetAsync(TargetName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteTargetAsync(TargetName name, CancellationToken cancellationToken)

Deletes a single Target.

Parameters
Name Description
name TargetName

Required. The name of the Target to delete. Format should be projects/{project_id}/locations/{location_name}/targets/{target_name}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Operation<Empty, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
TargetName name = TargetName.FromProjectLocationTarget("[PROJECT]", "[LOCATION]", "[TARGET]");
// Make the request
Operation<Empty, OperationMetadata> response = await cloudDeployClient.DeleteTargetAsync(name);

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

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

DeleteTargetAsync(String, CallSettings)

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

Deletes a single Target.

Parameters
Name Description
name String

Required. The name of the Target to delete. Format should be projects/{project_id}/locations/{location_name}/targets/{target_name}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Operation<Empty, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/targets/[TARGET]";
// Make the request
Operation<Empty, OperationMetadata> response = await cloudDeployClient.DeleteTargetAsync(name);

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

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

DeleteTargetAsync(String, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteTargetAsync(string name, CancellationToken cancellationToken)

Deletes a single Target.

Parameters
Name Description
name String

Required. The name of the Target to delete. Format should be projects/{project_id}/locations/{location_name}/targets/{target_name}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Operation<Empty, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/targets/[TARGET]";
// Make the request
Operation<Empty, OperationMetadata> response = await cloudDeployClient.DeleteTargetAsync(name);

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

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

GetConfig(ConfigName, CallSettings)

public virtual Config GetConfig(ConfigName name, CallSettings callSettings = null)

Gets the configuration for a ___location.

Parameters
Name Description
name ConfigName

Required. Name of requested configuration.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Config

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
ConfigName name = ConfigName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
Config response = cloudDeployClient.GetConfig(name);

GetConfig(GetConfigRequest, CallSettings)

public virtual Config GetConfig(GetConfigRequest request, CallSettings callSettings = null)

Gets the configuration for a ___location.

Parameters
Name Description
request GetConfigRequest

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
Config

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
GetConfigRequest request = new GetConfigRequest
{
    ConfigName = ConfigName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
Config response = cloudDeployClient.GetConfig(request);

GetConfig(String, CallSettings)

public virtual Config GetConfig(string name, CallSettings callSettings = null)

Gets the configuration for a ___location.

Parameters
Name Description
name String

Required. Name of requested configuration.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Config

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/config";
// Make the request
Config response = cloudDeployClient.GetConfig(name);

GetConfigAsync(ConfigName, CallSettings)

public virtual Task<Config> GetConfigAsync(ConfigName name, CallSettings callSettings = null)

Gets the configuration for a ___location.

Parameters
Name Description
name ConfigName

Required. Name of requested configuration.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Config>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
ConfigName name = ConfigName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
Config response = await cloudDeployClient.GetConfigAsync(name);

GetConfigAsync(ConfigName, CancellationToken)

public virtual Task<Config> GetConfigAsync(ConfigName name, CancellationToken cancellationToken)

Gets the configuration for a ___location.

Parameters
Name Description
name ConfigName

Required. Name of requested configuration.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Config>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
ConfigName name = ConfigName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
Config response = await cloudDeployClient.GetConfigAsync(name);

GetConfigAsync(GetConfigRequest, CallSettings)

public virtual Task<Config> GetConfigAsync(GetConfigRequest request, CallSettings callSettings = null)

Gets the configuration for a ___location.

Parameters
Name Description
request GetConfigRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Config>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
GetConfigRequest request = new GetConfigRequest
{
    ConfigName = ConfigName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
Config response = await cloudDeployClient.GetConfigAsync(request);

GetConfigAsync(GetConfigRequest, CancellationToken)

public virtual Task<Config> GetConfigAsync(GetConfigRequest request, CancellationToken cancellationToken)

Gets the configuration for a ___location.

Parameters
Name Description
request GetConfigRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Config>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
GetConfigRequest request = new GetConfigRequest
{
    ConfigName = ConfigName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
Config response = await cloudDeployClient.GetConfigAsync(request);

GetConfigAsync(String, CallSettings)

public virtual Task<Config> GetConfigAsync(string name, CallSettings callSettings = null)

Gets the configuration for a ___location.

Parameters
Name Description
name String

Required. Name of requested configuration.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Config>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/config";
// Make the request
Config response = await cloudDeployClient.GetConfigAsync(name);

GetConfigAsync(String, CancellationToken)

public virtual Task<Config> GetConfigAsync(string name, CancellationToken cancellationToken)

Gets the configuration for a ___location.

Parameters
Name Description
name String

Required. Name of requested configuration.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Config>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/config";
// Make the request
Config response = await cloudDeployClient.GetConfigAsync(name);

GetDeliveryPipeline(DeliveryPipelineName, CallSettings)

public virtual DeliveryPipeline GetDeliveryPipeline(DeliveryPipelineName name, CallSettings callSettings = null)

Gets details of a single DeliveryPipeline.

Parameters
Name Description
name DeliveryPipelineName

Required. Name of the DeliveryPipeline. Format must be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
DeliveryPipeline

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
DeliveryPipelineName name = DeliveryPipelineName.FromProjectLocationDeliveryPipeline("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]");
// Make the request
DeliveryPipeline response = cloudDeployClient.GetDeliveryPipeline(name);

GetDeliveryPipeline(GetDeliveryPipelineRequest, CallSettings)

public virtual DeliveryPipeline GetDeliveryPipeline(GetDeliveryPipelineRequest request, CallSettings callSettings = null)

Gets details of a single DeliveryPipeline.

Parameters
Name Description
request GetDeliveryPipelineRequest

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
DeliveryPipeline

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
GetDeliveryPipelineRequest request = new GetDeliveryPipelineRequest
{
    DeliveryPipelineName = DeliveryPipelineName.FromProjectLocationDeliveryPipeline("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]"),
};
// Make the request
DeliveryPipeline response = cloudDeployClient.GetDeliveryPipeline(request);

GetDeliveryPipeline(String, CallSettings)

public virtual DeliveryPipeline GetDeliveryPipeline(string name, CallSettings callSettings = null)

Gets details of a single DeliveryPipeline.

Parameters
Name Description
name String

Required. Name of the DeliveryPipeline. Format must be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
DeliveryPipeline

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deliveryPipelines/[DELIVERY_PIPELINE]";
// Make the request
DeliveryPipeline response = cloudDeployClient.GetDeliveryPipeline(name);

GetDeliveryPipelineAsync(DeliveryPipelineName, CallSettings)

public virtual Task<DeliveryPipeline> GetDeliveryPipelineAsync(DeliveryPipelineName name, CallSettings callSettings = null)

Gets details of a single DeliveryPipeline.

Parameters
Name Description
name DeliveryPipelineName

Required. Name of the DeliveryPipeline. Format must be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<DeliveryPipeline>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
DeliveryPipelineName name = DeliveryPipelineName.FromProjectLocationDeliveryPipeline("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]");
// Make the request
DeliveryPipeline response = await cloudDeployClient.GetDeliveryPipelineAsync(name);

GetDeliveryPipelineAsync(DeliveryPipelineName, CancellationToken)

public virtual Task<DeliveryPipeline> GetDeliveryPipelineAsync(DeliveryPipelineName name, CancellationToken cancellationToken)

Gets details of a single DeliveryPipeline.

Parameters
Name Description
name DeliveryPipelineName

Required. Name of the DeliveryPipeline. Format must be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<DeliveryPipeline>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
DeliveryPipelineName name = DeliveryPipelineName.FromProjectLocationDeliveryPipeline("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]");
// Make the request
DeliveryPipeline response = await cloudDeployClient.GetDeliveryPipelineAsync(name);

GetDeliveryPipelineAsync(GetDeliveryPipelineRequest, CallSettings)

public virtual Task<DeliveryPipeline> GetDeliveryPipelineAsync(GetDeliveryPipelineRequest request, CallSettings callSettings = null)

Gets details of a single DeliveryPipeline.

Parameters
Name Description
request GetDeliveryPipelineRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<DeliveryPipeline>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
GetDeliveryPipelineRequest request = new GetDeliveryPipelineRequest
{
    DeliveryPipelineName = DeliveryPipelineName.FromProjectLocationDeliveryPipeline("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]"),
};
// Make the request
DeliveryPipeline response = await cloudDeployClient.GetDeliveryPipelineAsync(request);

GetDeliveryPipelineAsync(GetDeliveryPipelineRequest, CancellationToken)

public virtual Task<DeliveryPipeline> GetDeliveryPipelineAsync(GetDeliveryPipelineRequest request, CancellationToken cancellationToken)

Gets details of a single DeliveryPipeline.

Parameters
Name Description
request GetDeliveryPipelineRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<DeliveryPipeline>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
GetDeliveryPipelineRequest request = new GetDeliveryPipelineRequest
{
    DeliveryPipelineName = DeliveryPipelineName.FromProjectLocationDeliveryPipeline("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]"),
};
// Make the request
DeliveryPipeline response = await cloudDeployClient.GetDeliveryPipelineAsync(request);

GetDeliveryPipelineAsync(String, CallSettings)

public virtual Task<DeliveryPipeline> GetDeliveryPipelineAsync(string name, CallSettings callSettings = null)

Gets details of a single DeliveryPipeline.

Parameters
Name Description
name String

Required. Name of the DeliveryPipeline. Format must be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<DeliveryPipeline>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deliveryPipelines/[DELIVERY_PIPELINE]";
// Make the request
DeliveryPipeline response = await cloudDeployClient.GetDeliveryPipelineAsync(name);

GetDeliveryPipelineAsync(String, CancellationToken)

public virtual Task<DeliveryPipeline> GetDeliveryPipelineAsync(string name, CancellationToken cancellationToken)

Gets details of a single DeliveryPipeline.

Parameters
Name Description
name String

Required. Name of the DeliveryPipeline. Format must be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<DeliveryPipeline>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deliveryPipelines/[DELIVERY_PIPELINE]";
// Make the request
DeliveryPipeline response = await cloudDeployClient.GetDeliveryPipelineAsync(name);

GetJobRun(GetJobRunRequest, CallSettings)

public virtual JobRun GetJobRun(GetJobRunRequest request, CallSettings callSettings = null)

Gets details of a single JobRun.

Parameters
Name Description
request GetJobRunRequest

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
JobRun

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
GetJobRunRequest request = new GetJobRunRequest
{
    JobRunName = JobRunName.FromProjectLocationDeliveryPipelineReleaseRolloutJobRun("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]", "[JOB_RUN]"),
};
// Make the request
JobRun response = cloudDeployClient.GetJobRun(request);

GetJobRun(JobRunName, CallSettings)

public virtual JobRun GetJobRun(JobRunName name, CallSettings callSettings = null)

Gets details of a single JobRun.

Parameters
Name Description
name JobRunName

Required. Name of the JobRun. Format must be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}/jobRuns/{job_run_name}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
JobRun

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
JobRunName name = JobRunName.FromProjectLocationDeliveryPipelineReleaseRolloutJobRun("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]", "[JOB_RUN]");
// Make the request
JobRun response = cloudDeployClient.GetJobRun(name);

GetJobRun(String, CallSettings)

public virtual JobRun GetJobRun(string name, CallSettings callSettings = null)

Gets details of a single JobRun.

Parameters
Name Description
name String

Required. Name of the JobRun. Format must be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}/jobRuns/{job_run_name}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
JobRun

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deliveryPipelines/[DELIVERY_PIPELINE]/releases/[RELEASE]/rollouts/[ROLLOUT]/jobRuns/[JOB_RUN]";
// Make the request
JobRun response = cloudDeployClient.GetJobRun(name);

GetJobRunAsync(GetJobRunRequest, CallSettings)

public virtual Task<JobRun> GetJobRunAsync(GetJobRunRequest request, CallSettings callSettings = null)

Gets details of a single JobRun.

Parameters
Name Description
request GetJobRunRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<JobRun>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
GetJobRunRequest request = new GetJobRunRequest
{
    JobRunName = JobRunName.FromProjectLocationDeliveryPipelineReleaseRolloutJobRun("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]", "[JOB_RUN]"),
};
// Make the request
JobRun response = await cloudDeployClient.GetJobRunAsync(request);

GetJobRunAsync(GetJobRunRequest, CancellationToken)

public virtual Task<JobRun> GetJobRunAsync(GetJobRunRequest request, CancellationToken cancellationToken)

Gets details of a single JobRun.

Parameters
Name Description
request GetJobRunRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<JobRun>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
GetJobRunRequest request = new GetJobRunRequest
{
    JobRunName = JobRunName.FromProjectLocationDeliveryPipelineReleaseRolloutJobRun("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]", "[JOB_RUN]"),
};
// Make the request
JobRun response = await cloudDeployClient.GetJobRunAsync(request);

GetJobRunAsync(JobRunName, CallSettings)

public virtual Task<JobRun> GetJobRunAsync(JobRunName name, CallSettings callSettings = null)

Gets details of a single JobRun.

Parameters
Name Description
name JobRunName

Required. Name of the JobRun. Format must be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}/jobRuns/{job_run_name}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<JobRun>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
JobRunName name = JobRunName.FromProjectLocationDeliveryPipelineReleaseRolloutJobRun("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]", "[JOB_RUN]");
// Make the request
JobRun response = await cloudDeployClient.GetJobRunAsync(name);

GetJobRunAsync(JobRunName, CancellationToken)

public virtual Task<JobRun> GetJobRunAsync(JobRunName name, CancellationToken cancellationToken)

Gets details of a single JobRun.

Parameters
Name Description
name JobRunName

Required. Name of the JobRun. Format must be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}/jobRuns/{job_run_name}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<JobRun>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
JobRunName name = JobRunName.FromProjectLocationDeliveryPipelineReleaseRolloutJobRun("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]", "[JOB_RUN]");
// Make the request
JobRun response = await cloudDeployClient.GetJobRunAsync(name);

GetJobRunAsync(String, CallSettings)

public virtual Task<JobRun> GetJobRunAsync(string name, CallSettings callSettings = null)

Gets details of a single JobRun.

Parameters
Name Description
name String

Required. Name of the JobRun. Format must be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}/jobRuns/{job_run_name}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<JobRun>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deliveryPipelines/[DELIVERY_PIPELINE]/releases/[RELEASE]/rollouts/[ROLLOUT]/jobRuns/[JOB_RUN]";
// Make the request
JobRun response = await cloudDeployClient.GetJobRunAsync(name);

GetJobRunAsync(String, CancellationToken)

public virtual Task<JobRun> GetJobRunAsync(string name, CancellationToken cancellationToken)

Gets details of a single JobRun.

Parameters
Name Description
name String

Required. Name of the JobRun. Format must be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}/jobRuns/{job_run_name}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<JobRun>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deliveryPipelines/[DELIVERY_PIPELINE]/releases/[RELEASE]/rollouts/[ROLLOUT]/jobRuns/[JOB_RUN]";
// Make the request
JobRun response = await cloudDeployClient.GetJobRunAsync(name);

GetRelease(GetReleaseRequest, CallSettings)

public virtual Release GetRelease(GetReleaseRequest request, CallSettings callSettings = null)

Gets details of a single Release.

Parameters
Name Description
request GetReleaseRequest

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
Release

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
GetReleaseRequest request = new GetReleaseRequest
{
    ReleaseName = ReleaseName.FromProjectLocationDeliveryPipelineRelease("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]"),
};
// Make the request
Release response = cloudDeployClient.GetRelease(request);

GetRelease(ReleaseName, CallSettings)

public virtual Release GetRelease(ReleaseName name, CallSettings callSettings = null)

Gets details of a single Release.

Parameters
Name Description
name ReleaseName

Required. Name of the Release. Format must be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Release

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
ReleaseName name = ReleaseName.FromProjectLocationDeliveryPipelineRelease("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]");
// Make the request
Release response = cloudDeployClient.GetRelease(name);

GetRelease(String, CallSettings)

public virtual Release GetRelease(string name, CallSettings callSettings = null)

Gets details of a single Release.

Parameters
Name Description
name String

Required. Name of the Release. Format must be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Release

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deliveryPipelines/[DELIVERY_PIPELINE]/releases/[RELEASE]";
// Make the request
Release response = cloudDeployClient.GetRelease(name);

GetReleaseAsync(GetReleaseRequest, CallSettings)

public virtual Task<Release> GetReleaseAsync(GetReleaseRequest request, CallSettings callSettings = null)

Gets details of a single Release.

Parameters
Name Description
request GetReleaseRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Release>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
GetReleaseRequest request = new GetReleaseRequest
{
    ReleaseName = ReleaseName.FromProjectLocationDeliveryPipelineRelease("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]"),
};
// Make the request
Release response = await cloudDeployClient.GetReleaseAsync(request);

GetReleaseAsync(GetReleaseRequest, CancellationToken)

public virtual Task<Release> GetReleaseAsync(GetReleaseRequest request, CancellationToken cancellationToken)

Gets details of a single Release.

Parameters
Name Description
request GetReleaseRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Release>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
GetReleaseRequest request = new GetReleaseRequest
{
    ReleaseName = ReleaseName.FromProjectLocationDeliveryPipelineRelease("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]"),
};
// Make the request
Release response = await cloudDeployClient.GetReleaseAsync(request);

GetReleaseAsync(ReleaseName, CallSettings)

public virtual Task<Release> GetReleaseAsync(ReleaseName name, CallSettings callSettings = null)

Gets details of a single Release.

Parameters
Name Description
name ReleaseName

Required. Name of the Release. Format must be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Release>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
ReleaseName name = ReleaseName.FromProjectLocationDeliveryPipelineRelease("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]");
// Make the request
Release response = await cloudDeployClient.GetReleaseAsync(name);

GetReleaseAsync(ReleaseName, CancellationToken)

public virtual Task<Release> GetReleaseAsync(ReleaseName name, CancellationToken cancellationToken)

Gets details of a single Release.

Parameters
Name Description
name ReleaseName

Required. Name of the Release. Format must be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Release>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
ReleaseName name = ReleaseName.FromProjectLocationDeliveryPipelineRelease("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]");
// Make the request
Release response = await cloudDeployClient.GetReleaseAsync(name);

GetReleaseAsync(String, CallSettings)

public virtual Task<Release> GetReleaseAsync(string name, CallSettings callSettings = null)

Gets details of a single Release.

Parameters
Name Description
name String

Required. Name of the Release. Format must be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Release>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deliveryPipelines/[DELIVERY_PIPELINE]/releases/[RELEASE]";
// Make the request
Release response = await cloudDeployClient.GetReleaseAsync(name);

GetReleaseAsync(String, CancellationToken)

public virtual Task<Release> GetReleaseAsync(string name, CancellationToken cancellationToken)

Gets details of a single Release.

Parameters
Name Description
name String

Required. Name of the Release. Format must be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Release>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deliveryPipelines/[DELIVERY_PIPELINE]/releases/[RELEASE]";
// Make the request
Release response = await cloudDeployClient.GetReleaseAsync(name);

GetRollout(GetRolloutRequest, CallSettings)

public virtual Rollout GetRollout(GetRolloutRequest request, CallSettings callSettings = null)

Gets details of a single Rollout.

Parameters
Name Description
request GetRolloutRequest

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
Rollout

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
GetRolloutRequest request = new GetRolloutRequest
{
    RolloutName = RolloutName.FromProjectLocationDeliveryPipelineReleaseRollout("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]"),
};
// Make the request
Rollout response = cloudDeployClient.GetRollout(request);

GetRollout(RolloutName, CallSettings)

public virtual Rollout GetRollout(RolloutName name, CallSettings callSettings = null)

Gets details of a single Rollout.

Parameters
Name Description
name RolloutName

Required. Name of the Rollout. Format must be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Rollout

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
RolloutName name = RolloutName.FromProjectLocationDeliveryPipelineReleaseRollout("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]");
// Make the request
Rollout response = cloudDeployClient.GetRollout(name);

GetRollout(String, CallSettings)

public virtual Rollout GetRollout(string name, CallSettings callSettings = null)

Gets details of a single Rollout.

Parameters
Name Description
name String

Required. Name of the Rollout. Format must be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Rollout

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deliveryPipelines/[DELIVERY_PIPELINE]/releases/[RELEASE]/rollouts/[ROLLOUT]";
// Make the request
Rollout response = cloudDeployClient.GetRollout(name);

GetRolloutAsync(GetRolloutRequest, CallSettings)

public virtual Task<Rollout> GetRolloutAsync(GetRolloutRequest request, CallSettings callSettings = null)

Gets details of a single Rollout.

Parameters
Name Description
request GetRolloutRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Rollout>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
GetRolloutRequest request = new GetRolloutRequest
{
    RolloutName = RolloutName.FromProjectLocationDeliveryPipelineReleaseRollout("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]"),
};
// Make the request
Rollout response = await cloudDeployClient.GetRolloutAsync(request);

GetRolloutAsync(GetRolloutRequest, CancellationToken)

public virtual Task<Rollout> GetRolloutAsync(GetRolloutRequest request, CancellationToken cancellationToken)

Gets details of a single Rollout.

Parameters
Name Description
request GetRolloutRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Rollout>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
GetRolloutRequest request = new GetRolloutRequest
{
    RolloutName = RolloutName.FromProjectLocationDeliveryPipelineReleaseRollout("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]"),
};
// Make the request
Rollout response = await cloudDeployClient.GetRolloutAsync(request);

GetRolloutAsync(RolloutName, CallSettings)

public virtual Task<Rollout> GetRolloutAsync(RolloutName name, CallSettings callSettings = null)

Gets details of a single Rollout.

Parameters
Name Description
name RolloutName

Required. Name of the Rollout. Format must be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Rollout>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
RolloutName name = RolloutName.FromProjectLocationDeliveryPipelineReleaseRollout("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]");
// Make the request
Rollout response = await cloudDeployClient.GetRolloutAsync(name);

GetRolloutAsync(RolloutName, CancellationToken)

public virtual Task<Rollout> GetRolloutAsync(RolloutName name, CancellationToken cancellationToken)

Gets details of a single Rollout.

Parameters
Name Description
name RolloutName

Required. Name of the Rollout. Format must be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Rollout>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
RolloutName name = RolloutName.FromProjectLocationDeliveryPipelineReleaseRollout("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]");
// Make the request
Rollout response = await cloudDeployClient.GetRolloutAsync(name);

GetRolloutAsync(String, CallSettings)

public virtual Task<Rollout> GetRolloutAsync(string name, CallSettings callSettings = null)

Gets details of a single Rollout.

Parameters
Name Description
name String

Required. Name of the Rollout. Format must be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Rollout>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deliveryPipelines/[DELIVERY_PIPELINE]/releases/[RELEASE]/rollouts/[ROLLOUT]";
// Make the request
Rollout response = await cloudDeployClient.GetRolloutAsync(name);

GetRolloutAsync(String, CancellationToken)

public virtual Task<Rollout> GetRolloutAsync(string name, CancellationToken cancellationToken)

Gets details of a single Rollout.

Parameters
Name Description
name String

Required. Name of the Rollout. Format must be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Rollout>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/deliveryPipelines/[DELIVERY_PIPELINE]/releases/[RELEASE]/rollouts/[ROLLOUT]";
// Make the request
Rollout response = await cloudDeployClient.GetRolloutAsync(name);

GetTarget(GetTargetRequest, CallSettings)

public virtual Target GetTarget(GetTargetRequest request, CallSettings callSettings = null)

Gets details of a single Target.

Parameters
Name Description
request GetTargetRequest

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
Target

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
GetTargetRequest request = new GetTargetRequest
{
    TargetName = TargetName.FromProjectLocationTarget("[PROJECT]", "[LOCATION]", "[TARGET]"),
};
// Make the request
Target response = cloudDeployClient.GetTarget(request);

GetTarget(TargetName, CallSettings)

public virtual Target GetTarget(TargetName name, CallSettings callSettings = null)

Gets details of a single Target.

Parameters
Name Description
name TargetName

Required. Name of the Target. Format must be projects/{project_id}/locations/{location_name}/targets/{target_name}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Target

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
TargetName name = TargetName.FromProjectLocationTarget("[PROJECT]", "[LOCATION]", "[TARGET]");
// Make the request
Target response = cloudDeployClient.GetTarget(name);

GetTarget(String, CallSettings)

public virtual Target GetTarget(string name, CallSettings callSettings = null)

Gets details of a single Target.

Parameters
Name Description
name String

Required. Name of the Target. Format must be projects/{project_id}/locations/{location_name}/targets/{target_name}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Target

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/targets/[TARGET]";
// Make the request
Target response = cloudDeployClient.GetTarget(name);

GetTargetAsync(GetTargetRequest, CallSettings)

public virtual Task<Target> GetTargetAsync(GetTargetRequest request, CallSettings callSettings = null)

Gets details of a single Target.

Parameters
Name Description
request GetTargetRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Target>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
GetTargetRequest request = new GetTargetRequest
{
    TargetName = TargetName.FromProjectLocationTarget("[PROJECT]", "[LOCATION]", "[TARGET]"),
};
// Make the request
Target response = await cloudDeployClient.GetTargetAsync(request);

GetTargetAsync(GetTargetRequest, CancellationToken)

public virtual Task<Target> GetTargetAsync(GetTargetRequest request, CancellationToken cancellationToken)

Gets details of a single Target.

Parameters
Name Description
request GetTargetRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Target>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
GetTargetRequest request = new GetTargetRequest
{
    TargetName = TargetName.FromProjectLocationTarget("[PROJECT]", "[LOCATION]", "[TARGET]"),
};
// Make the request
Target response = await cloudDeployClient.GetTargetAsync(request);

GetTargetAsync(TargetName, CallSettings)

public virtual Task<Target> GetTargetAsync(TargetName name, CallSettings callSettings = null)

Gets details of a single Target.

Parameters
Name Description
name TargetName

Required. Name of the Target. Format must be projects/{project_id}/locations/{location_name}/targets/{target_name}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Target>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
TargetName name = TargetName.FromProjectLocationTarget("[PROJECT]", "[LOCATION]", "[TARGET]");
// Make the request
Target response = await cloudDeployClient.GetTargetAsync(name);

GetTargetAsync(TargetName, CancellationToken)

public virtual Task<Target> GetTargetAsync(TargetName name, CancellationToken cancellationToken)

Gets details of a single Target.

Parameters
Name Description
name TargetName

Required. Name of the Target. Format must be projects/{project_id}/locations/{location_name}/targets/{target_name}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Target>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
TargetName name = TargetName.FromProjectLocationTarget("[PROJECT]", "[LOCATION]", "[TARGET]");
// Make the request
Target response = await cloudDeployClient.GetTargetAsync(name);

GetTargetAsync(String, CallSettings)

public virtual Task<Target> GetTargetAsync(string name, CallSettings callSettings = null)

Gets details of a single Target.

Parameters
Name Description
name String

Required. Name of the Target. Format must be projects/{project_id}/locations/{location_name}/targets/{target_name}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Target>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/targets/[TARGET]";
// Make the request
Target response = await cloudDeployClient.GetTargetAsync(name);

GetTargetAsync(String, CancellationToken)

public virtual Task<Target> GetTargetAsync(string name, CancellationToken cancellationToken)

Gets details of a single Target.

Parameters
Name Description
name String

Required. Name of the Target. Format must be projects/{project_id}/locations/{location_name}/targets/{target_name}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Target>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/targets/[TARGET]";
// Make the request
Target response = await cloudDeployClient.GetTargetAsync(name);

ListDeliveryPipelines(LocationName, String, Nullable<Int32>, CallSettings)

public virtual PagedEnumerable<ListDeliveryPipelinesResponse, DeliveryPipeline> ListDeliveryPipelines(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists DeliveryPipelines in a given project and ___location.

Parameters
Name Description
parent LocationName

Required. The parent, which owns this collection of pipelines. Format must be projects/{project_id}/locations/{location_name}.

pageToken String

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

pageSize Nullable<Int32>

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListDeliveryPipelinesResponse, DeliveryPipeline>

A pageable sequence of DeliveryPipeline resources.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListDeliveryPipelinesResponse, DeliveryPipeline> response = cloudDeployClient.ListDeliveryPipelines(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (DeliveryPipeline 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 (ListDeliveryPipelinesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DeliveryPipeline 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<DeliveryPipeline> 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 (DeliveryPipeline 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;

ListDeliveryPipelines(ListDeliveryPipelinesRequest, CallSettings)

public virtual PagedEnumerable<ListDeliveryPipelinesResponse, DeliveryPipeline> ListDeliveryPipelines(ListDeliveryPipelinesRequest request, CallSettings callSettings = null)

Lists DeliveryPipelines in a given project and ___location.

Parameters
Name Description
request ListDeliveryPipelinesRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListDeliveryPipelinesResponse, DeliveryPipeline>

A pageable sequence of DeliveryPipeline resources.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
ListDeliveryPipelinesRequest request = new ListDeliveryPipelinesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListDeliveryPipelinesResponse, DeliveryPipeline> response = cloudDeployClient.ListDeliveryPipelines(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (DeliveryPipeline 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 (ListDeliveryPipelinesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DeliveryPipeline 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<DeliveryPipeline> 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 (DeliveryPipeline 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;

ListDeliveryPipelines(String, String, Nullable<Int32>, CallSettings)

public virtual PagedEnumerable<ListDeliveryPipelinesResponse, DeliveryPipeline> ListDeliveryPipelines(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists DeliveryPipelines in a given project and ___location.

Parameters
Name Description
parent String

Required. The parent, which owns this collection of pipelines. Format must be projects/{project_id}/locations/{location_name}.

pageToken String

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

pageSize Nullable<Int32>

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListDeliveryPipelinesResponse, DeliveryPipeline>

A pageable sequence of DeliveryPipeline resources.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListDeliveryPipelinesResponse, DeliveryPipeline> response = cloudDeployClient.ListDeliveryPipelines(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (DeliveryPipeline 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 (ListDeliveryPipelinesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DeliveryPipeline 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<DeliveryPipeline> 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 (DeliveryPipeline 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;

ListDeliveryPipelinesAsync(LocationName, String, Nullable<Int32>, CallSettings)

public virtual PagedAsyncEnumerable<ListDeliveryPipelinesResponse, DeliveryPipeline> ListDeliveryPipelinesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists DeliveryPipelines in a given project and ___location.

Parameters
Name Description
parent LocationName

Required. The parent, which owns this collection of pipelines. Format must be projects/{project_id}/locations/{location_name}.

pageToken String

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

pageSize Nullable<Int32>

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListDeliveryPipelinesResponse, DeliveryPipeline>

A pageable asynchronous sequence of DeliveryPipeline resources.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListDeliveryPipelinesResponse, DeliveryPipeline> response = cloudDeployClient.ListDeliveryPipelinesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DeliveryPipeline 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((ListDeliveryPipelinesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DeliveryPipeline 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<DeliveryPipeline> 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 (DeliveryPipeline 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;

ListDeliveryPipelinesAsync(ListDeliveryPipelinesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListDeliveryPipelinesResponse, DeliveryPipeline> ListDeliveryPipelinesAsync(ListDeliveryPipelinesRequest request, CallSettings callSettings = null)

Lists DeliveryPipelines in a given project and ___location.

Parameters
Name Description
request ListDeliveryPipelinesRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListDeliveryPipelinesResponse, DeliveryPipeline>

A pageable asynchronous sequence of DeliveryPipeline resources.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
ListDeliveryPipelinesRequest request = new ListDeliveryPipelinesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListDeliveryPipelinesResponse, DeliveryPipeline> response = cloudDeployClient.ListDeliveryPipelinesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DeliveryPipeline 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((ListDeliveryPipelinesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DeliveryPipeline 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<DeliveryPipeline> 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 (DeliveryPipeline 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;

ListDeliveryPipelinesAsync(String, String, Nullable<Int32>, CallSettings)

public virtual PagedAsyncEnumerable<ListDeliveryPipelinesResponse, DeliveryPipeline> ListDeliveryPipelinesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists DeliveryPipelines in a given project and ___location.

Parameters
Name Description
parent String

Required. The parent, which owns this collection of pipelines. Format must be projects/{project_id}/locations/{location_name}.

pageToken String

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

pageSize Nullable<Int32>

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListDeliveryPipelinesResponse, DeliveryPipeline>

A pageable asynchronous sequence of DeliveryPipeline resources.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListDeliveryPipelinesResponse, DeliveryPipeline> response = cloudDeployClient.ListDeliveryPipelinesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DeliveryPipeline 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((ListDeliveryPipelinesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DeliveryPipeline 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<DeliveryPipeline> 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 (DeliveryPipeline 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;

ListJobRuns(ListJobRunsRequest, CallSettings)

public virtual PagedEnumerable<ListJobRunsResponse, JobRun> ListJobRuns(ListJobRunsRequest request, CallSettings callSettings = null)

Lists JobRuns in a given project and ___location.

Parameters
Name Description
request ListJobRunsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListJobRunsResponse, JobRun>

A pageable sequence of JobRun resources.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
ListJobRunsRequest request = new ListJobRunsRequest
{
    ParentAsRolloutName = RolloutName.FromProjectLocationDeliveryPipelineReleaseRollout("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListJobRunsResponse, JobRun> response = cloudDeployClient.ListJobRuns(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (JobRun 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 (ListJobRunsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (JobRun 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<JobRun> 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 (JobRun 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;

ListJobRuns(RolloutName, String, Nullable<Int32>, CallSettings)

public virtual PagedEnumerable<ListJobRunsResponse, JobRun> ListJobRuns(RolloutName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists JobRuns in a given project and ___location.

Parameters
Name Description
parent RolloutName

Required. The Rollout which owns this collection of JobRun objects.

pageToken String

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

pageSize Nullable<Int32>

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListJobRunsResponse, JobRun>

A pageable sequence of JobRun resources.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
RolloutName parent = RolloutName.FromProjectLocationDeliveryPipelineReleaseRollout("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]");
// Make the request
PagedEnumerable<ListJobRunsResponse, JobRun> response = cloudDeployClient.ListJobRuns(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (JobRun 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 (ListJobRunsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (JobRun 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<JobRun> 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 (JobRun 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;

ListJobRuns(String, String, Nullable<Int32>, CallSettings)

public virtual PagedEnumerable<ListJobRunsResponse, JobRun> ListJobRuns(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists JobRuns in a given project and ___location.

Parameters
Name Description
parent String

Required. The Rollout which owns this collection of JobRun objects.

pageToken String

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

pageSize Nullable<Int32>

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListJobRunsResponse, JobRun>

A pageable sequence of JobRun resources.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/deliveryPipelines/[DELIVERY_PIPELINE]/releases/[RELEASE]/rollouts/[ROLLOUT]";
// Make the request
PagedEnumerable<ListJobRunsResponse, JobRun> response = cloudDeployClient.ListJobRuns(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (JobRun 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 (ListJobRunsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (JobRun 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<JobRun> 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 (JobRun 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;

ListJobRunsAsync(ListJobRunsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListJobRunsResponse, JobRun> ListJobRunsAsync(ListJobRunsRequest request, CallSettings callSettings = null)

Lists JobRuns in a given project and ___location.

Parameters
Name Description
request ListJobRunsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListJobRunsResponse, JobRun>

A pageable asynchronous sequence of JobRun resources.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
ListJobRunsRequest request = new ListJobRunsRequest
{
    ParentAsRolloutName = RolloutName.FromProjectLocationDeliveryPipelineReleaseRollout("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListJobRunsResponse, JobRun> response = cloudDeployClient.ListJobRunsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((JobRun 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((ListJobRunsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (JobRun 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<JobRun> 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 (JobRun 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;

ListJobRunsAsync(RolloutName, String, Nullable<Int32>, CallSettings)

public virtual PagedAsyncEnumerable<ListJobRunsResponse, JobRun> ListJobRunsAsync(RolloutName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists JobRuns in a given project and ___location.

Parameters
Name Description
parent RolloutName

Required. The Rollout which owns this collection of JobRun objects.

pageToken String

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

pageSize Nullable<Int32>

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListJobRunsResponse, JobRun>

A pageable asynchronous sequence of JobRun resources.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
RolloutName parent = RolloutName.FromProjectLocationDeliveryPipelineReleaseRollout("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]");
// Make the request
PagedAsyncEnumerable<ListJobRunsResponse, JobRun> response = cloudDeployClient.ListJobRunsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((JobRun 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((ListJobRunsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (JobRun 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<JobRun> 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 (JobRun 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;

ListJobRunsAsync(String, String, Nullable<Int32>, CallSettings)

public virtual PagedAsyncEnumerable<ListJobRunsResponse, JobRun> ListJobRunsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists JobRuns in a given project and ___location.

Parameters
Name Description
parent String

Required. The Rollout which owns this collection of JobRun objects.

pageToken String

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

pageSize Nullable<Int32>

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListJobRunsResponse, JobRun>

A pageable asynchronous sequence of JobRun resources.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/deliveryPipelines/[DELIVERY_PIPELINE]/releases/[RELEASE]/rollouts/[ROLLOUT]";
// Make the request
PagedAsyncEnumerable<ListJobRunsResponse, JobRun> response = cloudDeployClient.ListJobRunsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((JobRun 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((ListJobRunsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (JobRun 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<JobRun> 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 (JobRun 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;

ListReleases(DeliveryPipelineName, String, Nullable<Int32>, CallSettings)

public virtual PagedEnumerable<ListReleasesResponse, Release> ListReleases(DeliveryPipelineName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Releases in a given project and ___location.

Parameters
Name Description
parent DeliveryPipelineName

Required. The DeliveryPipeline which owns this collection of Release objects.

pageToken String

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

pageSize Nullable<Int32>

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListReleasesResponse, Release>

A pageable sequence of Release resources.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
DeliveryPipelineName parent = DeliveryPipelineName.FromProjectLocationDeliveryPipeline("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]");
// Make the request
PagedEnumerable<ListReleasesResponse, Release> response = cloudDeployClient.ListReleases(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Release 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 (ListReleasesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Release 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<Release> 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 (Release 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;

ListReleases(ListReleasesRequest, CallSettings)

public virtual PagedEnumerable<ListReleasesResponse, Release> ListReleases(ListReleasesRequest request, CallSettings callSettings = null)

Lists Releases in a given project and ___location.

Parameters
Name Description
request ListReleasesRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListReleasesResponse, Release>

A pageable sequence of Release resources.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
ListReleasesRequest request = new ListReleasesRequest
{
    ParentAsDeliveryPipelineName = DeliveryPipelineName.FromProjectLocationDeliveryPipeline("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListReleasesResponse, Release> response = cloudDeployClient.ListReleases(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (Release 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 (ListReleasesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Release 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<Release> 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 (Release 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;

ListReleases(String, String, Nullable<Int32>, CallSettings)

public virtual PagedEnumerable<ListReleasesResponse, Release> ListReleases(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Releases in a given project and ___location.

Parameters
Name Description
parent String

Required. The DeliveryPipeline which owns this collection of Release objects.

pageToken String

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

pageSize Nullable<Int32>

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListReleasesResponse, Release>

A pageable sequence of Release resources.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/deliveryPipelines/[DELIVERY_PIPELINE]";
// Make the request
PagedEnumerable<ListReleasesResponse, Release> response = cloudDeployClient.ListReleases(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Release 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 (ListReleasesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Release 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<Release> 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 (Release 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;

ListReleasesAsync(DeliveryPipelineName, String, Nullable<Int32>, CallSettings)

public virtual PagedAsyncEnumerable<ListReleasesResponse, Release> ListReleasesAsync(DeliveryPipelineName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Releases in a given project and ___location.

Parameters
Name Description
parent DeliveryPipelineName

Required. The DeliveryPipeline which owns this collection of Release objects.

pageToken String

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

pageSize Nullable<Int32>

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListReleasesResponse, Release>

A pageable asynchronous sequence of Release resources.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
DeliveryPipelineName parent = DeliveryPipelineName.FromProjectLocationDeliveryPipeline("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]");
// Make the request
PagedAsyncEnumerable<ListReleasesResponse, Release> response = cloudDeployClient.ListReleasesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Release 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((ListReleasesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Release 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<Release> 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 (Release 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;

ListReleasesAsync(ListReleasesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListReleasesResponse, Release> ListReleasesAsync(ListReleasesRequest request, CallSettings callSettings = null)

Lists Releases in a given project and ___location.

Parameters
Name Description
request ListReleasesRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListReleasesResponse, Release>

A pageable asynchronous sequence of Release resources.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
ListReleasesRequest request = new ListReleasesRequest
{
    ParentAsDeliveryPipelineName = DeliveryPipelineName.FromProjectLocationDeliveryPipeline("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListReleasesResponse, Release> response = cloudDeployClient.ListReleasesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Release 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((ListReleasesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Release 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<Release> 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 (Release 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;

ListReleasesAsync(String, String, Nullable<Int32>, CallSettings)

public virtual PagedAsyncEnumerable<ListReleasesResponse, Release> ListReleasesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Releases in a given project and ___location.

Parameters
Name Description
parent String

Required. The DeliveryPipeline which owns this collection of Release objects.

pageToken String

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

pageSize Nullable<Int32>

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListReleasesResponse, Release>

A pageable asynchronous sequence of Release resources.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/deliveryPipelines/[DELIVERY_PIPELINE]";
// Make the request
PagedAsyncEnumerable<ListReleasesResponse, Release> response = cloudDeployClient.ListReleasesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Release 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((ListReleasesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Release 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<Release> 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 (Release 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;

ListRollouts(ListRolloutsRequest, CallSettings)

public virtual PagedEnumerable<ListRolloutsResponse, Rollout> ListRollouts(ListRolloutsRequest request, CallSettings callSettings = null)

Lists Rollouts in a given project and ___location.

Parameters
Name Description
request ListRolloutsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListRolloutsResponse, Rollout>

A pageable sequence of Rollout resources.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
ListRolloutsRequest request = new ListRolloutsRequest
{
    ParentAsReleaseName = ReleaseName.FromProjectLocationDeliveryPipelineRelease("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListRolloutsResponse, Rollout> response = cloudDeployClient.ListRollouts(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (Rollout 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 (ListRolloutsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Rollout 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<Rollout> 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 (Rollout 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;

ListRollouts(ReleaseName, String, Nullable<Int32>, CallSettings)

public virtual PagedEnumerable<ListRolloutsResponse, Rollout> ListRollouts(ReleaseName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Rollouts in a given project and ___location.

Parameters
Name Description
parent ReleaseName

Required. The Release which owns this collection of Rollout objects.

pageToken String

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

pageSize Nullable<Int32>

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListRolloutsResponse, Rollout>

A pageable sequence of Rollout resources.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
ReleaseName parent = ReleaseName.FromProjectLocationDeliveryPipelineRelease("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]");
// Make the request
PagedEnumerable<ListRolloutsResponse, Rollout> response = cloudDeployClient.ListRollouts(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Rollout 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 (ListRolloutsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Rollout 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<Rollout> 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 (Rollout 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;

ListRollouts(String, String, Nullable<Int32>, CallSettings)

public virtual PagedEnumerable<ListRolloutsResponse, Rollout> ListRollouts(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Rollouts in a given project and ___location.

Parameters
Name Description
parent String

Required. The Release which owns this collection of Rollout objects.

pageToken String

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

pageSize Nullable<Int32>

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListRolloutsResponse, Rollout>

A pageable sequence of Rollout resources.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/deliveryPipelines/[DELIVERY_PIPELINE]/releases/[RELEASE]";
// Make the request
PagedEnumerable<ListRolloutsResponse, Rollout> response = cloudDeployClient.ListRollouts(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Rollout 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 (ListRolloutsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Rollout 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<Rollout> 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 (Rollout 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;

ListRolloutsAsync(ListRolloutsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListRolloutsResponse, Rollout> ListRolloutsAsync(ListRolloutsRequest request, CallSettings callSettings = null)

Lists Rollouts in a given project and ___location.

Parameters
Name Description
request ListRolloutsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListRolloutsResponse, Rollout>

A pageable asynchronous sequence of Rollout resources.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
ListRolloutsRequest request = new ListRolloutsRequest
{
    ParentAsReleaseName = ReleaseName.FromProjectLocationDeliveryPipelineRelease("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListRolloutsResponse, Rollout> response = cloudDeployClient.ListRolloutsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Rollout 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((ListRolloutsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Rollout 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<Rollout> 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 (Rollout 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;

ListRolloutsAsync(ReleaseName, String, Nullable<Int32>, CallSettings)

public virtual PagedAsyncEnumerable<ListRolloutsResponse, Rollout> ListRolloutsAsync(ReleaseName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Rollouts in a given project and ___location.

Parameters
Name Description
parent ReleaseName

Required. The Release which owns this collection of Rollout objects.

pageToken String

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

pageSize Nullable<Int32>

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListRolloutsResponse, Rollout>

A pageable asynchronous sequence of Rollout resources.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
ReleaseName parent = ReleaseName.FromProjectLocationDeliveryPipelineRelease("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]");
// Make the request
PagedAsyncEnumerable<ListRolloutsResponse, Rollout> response = cloudDeployClient.ListRolloutsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Rollout 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((ListRolloutsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Rollout 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<Rollout> 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 (Rollout 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;

ListRolloutsAsync(String, String, Nullable<Int32>, CallSettings)

public virtual PagedAsyncEnumerable<ListRolloutsResponse, Rollout> ListRolloutsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Rollouts in a given project and ___location.

Parameters
Name Description
parent String

Required. The Release which owns this collection of Rollout objects.

pageToken String

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

pageSize Nullable<Int32>

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListRolloutsResponse, Rollout>

A pageable asynchronous sequence of Rollout resources.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/deliveryPipelines/[DELIVERY_PIPELINE]/releases/[RELEASE]";
// Make the request
PagedAsyncEnumerable<ListRolloutsResponse, Rollout> response = cloudDeployClient.ListRolloutsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Rollout 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((ListRolloutsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Rollout 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<Rollout> 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 (Rollout 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;

ListTargets(LocationName, String, Nullable<Int32>, CallSettings)

public virtual PagedEnumerable<ListTargetsResponse, Target> ListTargets(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Targets in a given project and ___location.

Parameters
Name Description
parent LocationName

Required. The parent, which owns this collection of targets. Format must be projects/{project_id}/locations/{location_name}.

pageToken String

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

pageSize Nullable<Int32>

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListTargetsResponse, Target>

A pageable sequence of Target resources.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListTargetsResponse, Target> response = cloudDeployClient.ListTargets(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Target 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 (ListTargetsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Target 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<Target> 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 (Target 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;

ListTargets(ListTargetsRequest, CallSettings)

public virtual PagedEnumerable<ListTargetsResponse, Target> ListTargets(ListTargetsRequest request, CallSettings callSettings = null)

Lists Targets in a given project and ___location.

Parameters
Name Description
request ListTargetsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListTargetsResponse, Target>

A pageable sequence of Target resources.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
ListTargetsRequest request = new ListTargetsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListTargetsResponse, Target> response = cloudDeployClient.ListTargets(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (Target 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 (ListTargetsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Target 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<Target> 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 (Target 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;

ListTargets(String, String, Nullable<Int32>, CallSettings)

public virtual PagedEnumerable<ListTargetsResponse, Target> ListTargets(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Targets in a given project and ___location.

Parameters
Name Description
parent String

Required. The parent, which owns this collection of targets. Format must be projects/{project_id}/locations/{location_name}.

pageToken String

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

pageSize Nullable<Int32>

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListTargetsResponse, Target>

A pageable sequence of Target resources.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListTargetsResponse, Target> response = cloudDeployClient.ListTargets(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Target 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 (ListTargetsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Target 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<Target> 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 (Target 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;

ListTargetsAsync(LocationName, String, Nullable<Int32>, CallSettings)

public virtual PagedAsyncEnumerable<ListTargetsResponse, Target> ListTargetsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Targets in a given project and ___location.

Parameters
Name Description
parent LocationName

Required. The parent, which owns this collection of targets. Format must be projects/{project_id}/locations/{location_name}.

pageToken String

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

pageSize Nullable<Int32>

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListTargetsResponse, Target>

A pageable asynchronous sequence of Target resources.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListTargetsResponse, Target> response = cloudDeployClient.ListTargetsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Target 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((ListTargetsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Target 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<Target> 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 (Target 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;

ListTargetsAsync(ListTargetsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListTargetsResponse, Target> ListTargetsAsync(ListTargetsRequest request, CallSettings callSettings = null)

Lists Targets in a given project and ___location.

Parameters
Name Description
request ListTargetsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListTargetsResponse, Target>

A pageable asynchronous sequence of Target resources.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
ListTargetsRequest request = new ListTargetsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListTargetsResponse, Target> response = cloudDeployClient.ListTargetsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Target 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((ListTargetsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Target 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<Target> 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 (Target 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;

ListTargetsAsync(String, String, Nullable<Int32>, CallSettings)

public virtual PagedAsyncEnumerable<ListTargetsResponse, Target> ListTargetsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Targets in a given project and ___location.

Parameters
Name Description
parent String

Required. The parent, which owns this collection of targets. Format must be projects/{project_id}/locations/{location_name}.

pageToken String

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

pageSize Nullable<Int32>

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListTargetsResponse, Target>

A pageable asynchronous sequence of Target resources.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListTargetsResponse, Target> response = cloudDeployClient.ListTargetsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Target 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((ListTargetsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Target 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<Target> 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 (Target 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;

PollOnceCreateDeliveryPipeline(String, CallSettings)

public virtual Operation<DeliveryPipeline, OperationMetadata> PollOnceCreateDeliveryPipeline(string operationName, CallSettings callSettings = null)

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

Parameters
Name Description
operationName String

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<DeliveryPipeline, OperationMetadata>

The result of polling the operation.

PollOnceCreateDeliveryPipelineAsync(String, CallSettings)

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

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

Parameters
Name Description
operationName String

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Operation<DeliveryPipeline, OperationMetadata>>

A task representing the result of polling the operation.

PollOnceCreateRelease(String, CallSettings)

public virtual Operation<Release, OperationMetadata> PollOnceCreateRelease(string operationName, CallSettings callSettings = null)

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

Parameters
Name Description
operationName String

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<Release, OperationMetadata>

The result of polling the operation.

PollOnceCreateReleaseAsync(String, CallSettings)

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

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

Parameters
Name Description
operationName String

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Operation<Release, OperationMetadata>>

A task representing the result of polling the operation.

PollOnceCreateRollout(String, CallSettings)

public virtual Operation<Rollout, OperationMetadata> PollOnceCreateRollout(string operationName, CallSettings callSettings = null)

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

Parameters
Name Description
operationName String

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<Rollout, OperationMetadata>

The result of polling the operation.

PollOnceCreateRolloutAsync(String, CallSettings)

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

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

Parameters
Name Description
operationName String

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Operation<Rollout, OperationMetadata>>

A task representing the result of polling the operation.

PollOnceCreateTarget(String, CallSettings)

public virtual Operation<Target, OperationMetadata> PollOnceCreateTarget(string operationName, CallSettings callSettings = null)

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

Parameters
Name Description
operationName String

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<Target, OperationMetadata>

The result of polling the operation.

PollOnceCreateTargetAsync(String, CallSettings)

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

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

Parameters
Name Description
operationName String

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Operation<Target, OperationMetadata>>

A task representing the result of polling the operation.

PollOnceDeleteDeliveryPipeline(String, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceDeleteDeliveryPipeline(string operationName, CallSettings callSettings = null)

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

Parameters
Name Description
operationName String

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<Empty, OperationMetadata>

The result of polling the operation.

PollOnceDeleteDeliveryPipelineAsync(String, CallSettings)

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

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

Parameters
Name Description
operationName String

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Operation<Empty, OperationMetadata>>

A task representing the result of polling the operation.

PollOnceDeleteTarget(String, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceDeleteTarget(string operationName, CallSettings callSettings = null)

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

Parameters
Name Description
operationName String

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<Empty, OperationMetadata>

The result of polling the operation.

PollOnceDeleteTargetAsync(String, CallSettings)

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

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

Parameters
Name Description
operationName String

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Operation<Empty, OperationMetadata>>

A task representing the result of polling the operation.

PollOnceUpdateDeliveryPipeline(String, CallSettings)

public virtual Operation<DeliveryPipeline, OperationMetadata> PollOnceUpdateDeliveryPipeline(string operationName, CallSettings callSettings = null)

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

Parameters
Name Description
operationName String

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<DeliveryPipeline, OperationMetadata>

The result of polling the operation.

PollOnceUpdateDeliveryPipelineAsync(String, CallSettings)

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

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

Parameters
Name Description
operationName String

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Operation<DeliveryPipeline, OperationMetadata>>

A task representing the result of polling the operation.

PollOnceUpdateTarget(String, CallSettings)

public virtual Operation<Target, OperationMetadata> PollOnceUpdateTarget(string operationName, CallSettings callSettings = null)

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

Parameters
Name Description
operationName String

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<Target, OperationMetadata>

The result of polling the operation.

PollOnceUpdateTargetAsync(String, CallSettings)

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

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

Parameters
Name Description
operationName String

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Operation<Target, OperationMetadata>>

A task representing the result of polling the operation.

RetryJob(RetryJobRequest, CallSettings)

public virtual RetryJobResponse RetryJob(RetryJobRequest request, CallSettings callSettings = null)

Retries the specified Job in a Rollout.

Parameters
Name Description
request RetryJobRequest

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
RetryJobResponse

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
RetryJobRequest request = new RetryJobRequest
{
    RolloutAsRolloutName = RolloutName.FromProjectLocationDeliveryPipelineReleaseRollout("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]"),
    PhaseId = "",
    JobId = "",
};
// Make the request
RetryJobResponse response = cloudDeployClient.RetryJob(request);

RetryJob(RolloutName, String, String, CallSettings)

public virtual RetryJobResponse RetryJob(RolloutName rollout, string phaseId, string jobId, CallSettings callSettings = null)

Retries the specified Job in a Rollout.

Parameters
Name Description
rollout RolloutName

Required. Name of the Rollout. Format is projects/{project}/locations/{___location}/deliveryPipelines/{deliveryPipeline}/ releases/{release}/rollouts/{rollout}.

phaseId String

Required. The phase ID the Job to retry belongs to.

jobId String

Required. The job ID for the Job to retry.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
RetryJobResponse

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
RolloutName rollout = RolloutName.FromProjectLocationDeliveryPipelineReleaseRollout("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]");
string phaseId = "";
string jobId = "";
// Make the request
RetryJobResponse response = cloudDeployClient.RetryJob(rollout, phaseId, jobId);

RetryJob(String, String, String, CallSettings)

public virtual RetryJobResponse RetryJob(string rollout, string phaseId, string jobId, CallSettings callSettings = null)

Retries the specified Job in a Rollout.

Parameters
Name Description
rollout String

Required. Name of the Rollout. Format is projects/{project}/locations/{___location}/deliveryPipelines/{deliveryPipeline}/ releases/{release}/rollouts/{rollout}.

phaseId String

Required. The phase ID the Job to retry belongs to.

jobId String

Required. The job ID for the Job to retry.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
RetryJobResponse

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
string rollout = "projects/[PROJECT]/locations/[LOCATION]/deliveryPipelines/[DELIVERY_PIPELINE]/releases/[RELEASE]/rollouts/[ROLLOUT]";
string phaseId = "";
string jobId = "";
// Make the request
RetryJobResponse response = cloudDeployClient.RetryJob(rollout, phaseId, jobId);

RetryJobAsync(RetryJobRequest, CallSettings)

public virtual Task<RetryJobResponse> RetryJobAsync(RetryJobRequest request, CallSettings callSettings = null)

Retries the specified Job in a Rollout.

Parameters
Name Description
request RetryJobRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<RetryJobResponse>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
RetryJobRequest request = new RetryJobRequest
{
    RolloutAsRolloutName = RolloutName.FromProjectLocationDeliveryPipelineReleaseRollout("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]"),
    PhaseId = "",
    JobId = "",
};
// Make the request
RetryJobResponse response = await cloudDeployClient.RetryJobAsync(request);

RetryJobAsync(RetryJobRequest, CancellationToken)

public virtual Task<RetryJobResponse> RetryJobAsync(RetryJobRequest request, CancellationToken cancellationToken)

Retries the specified Job in a Rollout.

Parameters
Name Description
request RetryJobRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<RetryJobResponse>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
RetryJobRequest request = new RetryJobRequest
{
    RolloutAsRolloutName = RolloutName.FromProjectLocationDeliveryPipelineReleaseRollout("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]"),
    PhaseId = "",
    JobId = "",
};
// Make the request
RetryJobResponse response = await cloudDeployClient.RetryJobAsync(request);

RetryJobAsync(RolloutName, String, String, CallSettings)

public virtual Task<RetryJobResponse> RetryJobAsync(RolloutName rollout, string phaseId, string jobId, CallSettings callSettings = null)

Retries the specified Job in a Rollout.

Parameters
Name Description
rollout RolloutName

Required. Name of the Rollout. Format is projects/{project}/locations/{___location}/deliveryPipelines/{deliveryPipeline}/ releases/{release}/rollouts/{rollout}.

phaseId String

Required. The phase ID the Job to retry belongs to.

jobId String

Required. The job ID for the Job to retry.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<RetryJobResponse>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
RolloutName rollout = RolloutName.FromProjectLocationDeliveryPipelineReleaseRollout("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]");
string phaseId = "";
string jobId = "";
// Make the request
RetryJobResponse response = await cloudDeployClient.RetryJobAsync(rollout, phaseId, jobId);

RetryJobAsync(RolloutName, String, String, CancellationToken)

public virtual Task<RetryJobResponse> RetryJobAsync(RolloutName rollout, string phaseId, string jobId, CancellationToken cancellationToken)

Retries the specified Job in a Rollout.

Parameters
Name Description
rollout RolloutName

Required. Name of the Rollout. Format is projects/{project}/locations/{___location}/deliveryPipelines/{deliveryPipeline}/ releases/{release}/rollouts/{rollout}.

phaseId String

Required. The phase ID the Job to retry belongs to.

jobId String

Required. The job ID for the Job to retry.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<RetryJobResponse>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
RolloutName rollout = RolloutName.FromProjectLocationDeliveryPipelineReleaseRollout("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]");
string phaseId = "";
string jobId = "";
// Make the request
RetryJobResponse response = await cloudDeployClient.RetryJobAsync(rollout, phaseId, jobId);

RetryJobAsync(String, String, String, CallSettings)

public virtual Task<RetryJobResponse> RetryJobAsync(string rollout, string phaseId, string jobId, CallSettings callSettings = null)

Retries the specified Job in a Rollout.

Parameters
Name Description
rollout String

Required. Name of the Rollout. Format is projects/{project}/locations/{___location}/deliveryPipelines/{deliveryPipeline}/ releases/{release}/rollouts/{rollout}.

phaseId String

Required. The phase ID the Job to retry belongs to.

jobId String

Required. The job ID for the Job to retry.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<RetryJobResponse>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
string rollout = "projects/[PROJECT]/locations/[LOCATION]/deliveryPipelines/[DELIVERY_PIPELINE]/releases/[RELEASE]/rollouts/[ROLLOUT]";
string phaseId = "";
string jobId = "";
// Make the request
RetryJobResponse response = await cloudDeployClient.RetryJobAsync(rollout, phaseId, jobId);

RetryJobAsync(String, String, String, CancellationToken)

public virtual Task<RetryJobResponse> RetryJobAsync(string rollout, string phaseId, string jobId, CancellationToken cancellationToken)

Retries the specified Job in a Rollout.

Parameters
Name Description
rollout String

Required. Name of the Rollout. Format is projects/{project}/locations/{___location}/deliveryPipelines/{deliveryPipeline}/ releases/{release}/rollouts/{rollout}.

phaseId String

Required. The phase ID the Job to retry belongs to.

jobId String

Required. The job ID for the Job to retry.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<RetryJobResponse>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
string rollout = "projects/[PROJECT]/locations/[LOCATION]/deliveryPipelines/[DELIVERY_PIPELINE]/releases/[RELEASE]/rollouts/[ROLLOUT]";
string phaseId = "";
string jobId = "";
// Make the request
RetryJobResponse response = await cloudDeployClient.RetryJobAsync(rollout, phaseId, jobId);

ShutdownDefaultChannelsAsync()

public static Task ShutdownDefaultChannelsAsync()

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

Returns
Type Description
Task

A task representing the asynchronous shutdown operation.

Remarks

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

UpdateDeliveryPipeline(DeliveryPipeline, FieldMask, CallSettings)

public virtual Operation<DeliveryPipeline, OperationMetadata> UpdateDeliveryPipeline(DeliveryPipeline deliveryPipeline, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single DeliveryPipeline.

Parameters
Name Description
deliveryPipeline DeliveryPipeline

Required. The DeliveryPipeline to update.

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the DeliveryPipeline resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<DeliveryPipeline, OperationMetadata>

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
DeliveryPipeline deliveryPipeline = new DeliveryPipeline();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<DeliveryPipeline, OperationMetadata> response = cloudDeployClient.UpdateDeliveryPipeline(deliveryPipeline, updateMask);

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

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

UpdateDeliveryPipeline(UpdateDeliveryPipelineRequest, CallSettings)

public virtual Operation<DeliveryPipeline, OperationMetadata> UpdateDeliveryPipeline(UpdateDeliveryPipelineRequest request, CallSettings callSettings = null)

Updates the parameters of a single DeliveryPipeline.

Parameters
Name Description
request UpdateDeliveryPipelineRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<DeliveryPipeline, OperationMetadata>

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
UpdateDeliveryPipelineRequest request = new UpdateDeliveryPipelineRequest
{
    UpdateMask = new FieldMask(),
    DeliveryPipeline = new DeliveryPipeline(),
    RequestId = "",
    AllowMissing = false,
    ValidateOnly = false,
};
// Make the request
Operation<DeliveryPipeline, OperationMetadata> response = cloudDeployClient.UpdateDeliveryPipeline(request);

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

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

UpdateDeliveryPipelineAsync(DeliveryPipeline, FieldMask, CallSettings)

public virtual Task<Operation<DeliveryPipeline, OperationMetadata>> UpdateDeliveryPipelineAsync(DeliveryPipeline deliveryPipeline, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single DeliveryPipeline.

Parameters
Name Description
deliveryPipeline DeliveryPipeline

Required. The DeliveryPipeline to update.

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the DeliveryPipeline resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Operation<DeliveryPipeline, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
DeliveryPipeline deliveryPipeline = new DeliveryPipeline();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<DeliveryPipeline, OperationMetadata> response = await cloudDeployClient.UpdateDeliveryPipelineAsync(deliveryPipeline, updateMask);

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

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

UpdateDeliveryPipelineAsync(DeliveryPipeline, FieldMask, CancellationToken)

public virtual Task<Operation<DeliveryPipeline, OperationMetadata>> UpdateDeliveryPipelineAsync(DeliveryPipeline deliveryPipeline, FieldMask updateMask, CancellationToken cancellationToken)

Updates the parameters of a single DeliveryPipeline.

Parameters
Name Description
deliveryPipeline DeliveryPipeline

Required. The DeliveryPipeline to update.

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the DeliveryPipeline resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Operation<DeliveryPipeline, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
DeliveryPipeline deliveryPipeline = new DeliveryPipeline();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<DeliveryPipeline, OperationMetadata> response = await cloudDeployClient.UpdateDeliveryPipelineAsync(deliveryPipeline, updateMask);

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

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

UpdateDeliveryPipelineAsync(UpdateDeliveryPipelineRequest, CallSettings)

public virtual Task<Operation<DeliveryPipeline, OperationMetadata>> UpdateDeliveryPipelineAsync(UpdateDeliveryPipelineRequest request, CallSettings callSettings = null)

Updates the parameters of a single DeliveryPipeline.

Parameters
Name Description
request UpdateDeliveryPipelineRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Operation<DeliveryPipeline, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
UpdateDeliveryPipelineRequest request = new UpdateDeliveryPipelineRequest
{
    UpdateMask = new FieldMask(),
    DeliveryPipeline = new DeliveryPipeline(),
    RequestId = "",
    AllowMissing = false,
    ValidateOnly = false,
};
// Make the request
Operation<DeliveryPipeline, OperationMetadata> response = await cloudDeployClient.UpdateDeliveryPipelineAsync(request);

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

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

UpdateDeliveryPipelineAsync(UpdateDeliveryPipelineRequest, CancellationToken)

public virtual Task<Operation<DeliveryPipeline, OperationMetadata>> UpdateDeliveryPipelineAsync(UpdateDeliveryPipelineRequest request, CancellationToken cancellationToken)

Updates the parameters of a single DeliveryPipeline.

Parameters
Name Description
request UpdateDeliveryPipelineRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Operation<DeliveryPipeline, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
UpdateDeliveryPipelineRequest request = new UpdateDeliveryPipelineRequest
{
    UpdateMask = new FieldMask(),
    DeliveryPipeline = new DeliveryPipeline(),
    RequestId = "",
    AllowMissing = false,
    ValidateOnly = false,
};
// Make the request
Operation<DeliveryPipeline, OperationMetadata> response = await cloudDeployClient.UpdateDeliveryPipelineAsync(request);

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

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

UpdateTarget(Target, FieldMask, CallSettings)

public virtual Operation<Target, OperationMetadata> UpdateTarget(Target target, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single Target.

Parameters
Name Description
target Target

Required. The Target to update.

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the Target resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<Target, OperationMetadata>

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
Target target = new Target();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Target, OperationMetadata> response = cloudDeployClient.UpdateTarget(target, updateMask);

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

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

UpdateTarget(UpdateTargetRequest, CallSettings)

public virtual Operation<Target, OperationMetadata> UpdateTarget(UpdateTargetRequest request, CallSettings callSettings = null)

Updates the parameters of a single Target.

Parameters
Name Description
request UpdateTargetRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Operation<Target, OperationMetadata>

The RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = CloudDeployClient.Create();
// Initialize request argument(s)
UpdateTargetRequest request = new UpdateTargetRequest
{
    UpdateMask = new FieldMask(),
    Target = new Target(),
    RequestId = "",
    AllowMissing = false,
    ValidateOnly = false,
};
// Make the request
Operation<Target, OperationMetadata> response = cloudDeployClient.UpdateTarget(request);

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

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

UpdateTargetAsync(Target, FieldMask, CallSettings)

public virtual Task<Operation<Target, OperationMetadata>> UpdateTargetAsync(Target target, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single Target.

Parameters
Name Description
target Target

Required. The Target to update.

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the Target resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Operation<Target, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
Target target = new Target();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Target, OperationMetadata> response = await cloudDeployClient.UpdateTargetAsync(target, updateMask);

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

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

UpdateTargetAsync(Target, FieldMask, CancellationToken)

public virtual Task<Operation<Target, OperationMetadata>> UpdateTargetAsync(Target target, FieldMask updateMask, CancellationToken cancellationToken)

Updates the parameters of a single Target.

Parameters
Name Description
target Target

Required. The Target to update.

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the Target resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Operation<Target, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
Target target = new Target();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Target, OperationMetadata> response = await cloudDeployClient.UpdateTargetAsync(target, updateMask);

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

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

UpdateTargetAsync(UpdateTargetRequest, CallSettings)

public virtual Task<Operation<Target, OperationMetadata>> UpdateTargetAsync(UpdateTargetRequest request, CallSettings callSettings = null)

Updates the parameters of a single Target.

Parameters
Name Description
request UpdateTargetRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Operation<Target, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
UpdateTargetRequest request = new UpdateTargetRequest
{
    UpdateMask = new FieldMask(),
    Target = new Target(),
    RequestId = "",
    AllowMissing = false,
    ValidateOnly = false,
};
// Make the request
Operation<Target, OperationMetadata> response = await cloudDeployClient.UpdateTargetAsync(request);

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

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

UpdateTargetAsync(UpdateTargetRequest, CancellationToken)

public virtual Task<Operation<Target, OperationMetadata>> UpdateTargetAsync(UpdateTargetRequest request, CancellationToken cancellationToken)

Updates the parameters of a single Target.

Parameters
Name Description
request UpdateTargetRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Operation<Target, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
CloudDeployClient cloudDeployClient = await CloudDeployClient.CreateAsync();
// Initialize request argument(s)
UpdateTargetRequest request = new UpdateTargetRequest
{
    UpdateMask = new FieldMask(),
    Target = new Target(),
    RequestId = "",
    AllowMissing = false,
    ValidateOnly = false,
};
// Make the request
Operation<Target, OperationMetadata> response = await cloudDeployClient.UpdateTargetAsync(request);

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

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