Config Delivery v1 API - Class ConfigDeliveryClient (1.0.0-beta01)

public abstract class ConfigDeliveryClient

Reference documentation and code samples for the Config Delivery v1 API class ConfigDeliveryClient.

ConfigDelivery client wrapper, for convenient use.

Inheritance

object > ConfigDeliveryClient

Derived Types

Namespace

Google.Cloud.ConfigDelivery.V1

Assembly

Google.Cloud.ConfigDelivery.V1.dll

Remarks

ConfigDelivery service manages the deployment of kubernetes configuration to a fleet of kubernetes clusters.

Properties

AbortRolloutOperationsClient

public virtual OperationsClient AbortRolloutOperationsClient { get; }

The long-running operations client for AbortRollout.

Property Value
Type Description
OperationsClient

CreateFleetPackageOperationsClient

public virtual OperationsClient CreateFleetPackageOperationsClient { get; }

The long-running operations client for CreateFleetPackage.

Property Value
Type Description
OperationsClient

CreateReleaseOperationsClient

public virtual OperationsClient CreateReleaseOperationsClient { get; }

The long-running operations client for CreateRelease.

Property Value
Type Description
OperationsClient

CreateResourceBundleOperationsClient

public virtual OperationsClient CreateResourceBundleOperationsClient { get; }

The long-running operations client for CreateResourceBundle.

Property Value
Type Description
OperationsClient

CreateVariantOperationsClient

public virtual OperationsClient CreateVariantOperationsClient { get; }

The long-running operations client for CreateVariant.

Property Value
Type Description
OperationsClient

DefaultEndpoint

public static string DefaultEndpoint { get; }

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

Property Value
Type Description
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default ConfigDelivery scopes.

Property Value
Type Description
IReadOnlyListstring
Remarks

The default ConfigDelivery scopes are:

DeleteFleetPackageOperationsClient

public virtual OperationsClient DeleteFleetPackageOperationsClient { get; }

The long-running operations client for DeleteFleetPackage.

Property Value
Type Description
OperationsClient

DeleteReleaseOperationsClient

public virtual OperationsClient DeleteReleaseOperationsClient { get; }

The long-running operations client for DeleteRelease.

Property Value
Type Description
OperationsClient

DeleteResourceBundleOperationsClient

public virtual OperationsClient DeleteResourceBundleOperationsClient { get; }

The long-running operations client for DeleteResourceBundle.

Property Value
Type Description
OperationsClient

DeleteVariantOperationsClient

public virtual OperationsClient DeleteVariantOperationsClient { get; }

The long-running operations client for DeleteVariant.

Property Value
Type Description
OperationsClient

GrpcClient

public virtual ConfigDelivery.ConfigDeliveryClient GrpcClient { get; }

The underlying gRPC ConfigDelivery client

Property Value
Type Description
ConfigDeliveryConfigDeliveryClient

LocationsClient

public virtual LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
LocationsClient

ResumeRolloutOperationsClient

public virtual OperationsClient ResumeRolloutOperationsClient { get; }

The long-running operations client for ResumeRollout.

Property Value
Type Description
OperationsClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
Type Description
ServiceMetadata

SuspendRolloutOperationsClient

public virtual OperationsClient SuspendRolloutOperationsClient { get; }

The long-running operations client for SuspendRollout.

Property Value
Type Description
OperationsClient

UpdateFleetPackageOperationsClient

public virtual OperationsClient UpdateFleetPackageOperationsClient { get; }

The long-running operations client for UpdateFleetPackage.

Property Value
Type Description
OperationsClient

UpdateReleaseOperationsClient

public virtual OperationsClient UpdateReleaseOperationsClient { get; }

The long-running operations client for UpdateRelease.

Property Value
Type Description
OperationsClient

UpdateResourceBundleOperationsClient

public virtual OperationsClient UpdateResourceBundleOperationsClient { get; }

The long-running operations client for UpdateResourceBundle.

Property Value
Type Description
OperationsClient

UpdateVariantOperationsClient

public virtual OperationsClient UpdateVariantOperationsClient { get; }

The long-running operations client for UpdateVariant.

Property Value
Type Description
OperationsClient

Methods

AbortRollout(AbortRolloutRequest, CallSettings)

public virtual Operation<Rollout, OperationMetadata> AbortRollout(AbortRolloutRequest request, CallSettings callSettings = null)

Abort a Rollout.

Parameters
Name Description
request AbortRolloutRequest

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
OperationRolloutOperationMetadata

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
AbortRolloutRequest request = new AbortRolloutRequest
{
    RolloutName = RolloutName.FromProjectLocationFleetPackageRollout("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]", "[ROLLOUT]"),
    Reason = "",
};
// Make the request
Operation<Rollout, OperationMetadata> response = configDeliveryClient.AbortRollout(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 = configDeliveryClient.PollOnceAbortRollout(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;
}

AbortRollout(RolloutName, CallSettings)

public virtual Operation<Rollout, OperationMetadata> AbortRollout(RolloutName name, CallSettings callSettings = null)

Abort a Rollout.

Parameters
Name Description
name RolloutName

Required. Name of the Rollout.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationRolloutOperationMetadata

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
RolloutName name = RolloutName.FromProjectLocationFleetPackageRollout("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]", "[ROLLOUT]");
// Make the request
Operation<Rollout, OperationMetadata> response = configDeliveryClient.AbortRollout(name);

// 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 = configDeliveryClient.PollOnceAbortRollout(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;
}

AbortRollout(string, CallSettings)

public virtual Operation<Rollout, OperationMetadata> AbortRollout(string name, CallSettings callSettings = null)

Abort a Rollout.

Parameters
Name Description
name string

Required. Name of the Rollout.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationRolloutOperationMetadata

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/fleetPackages/[FLEET_PACKAGE]/rollouts/[ROLLOUT]";
// Make the request
Operation<Rollout, OperationMetadata> response = configDeliveryClient.AbortRollout(name);

// 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 = configDeliveryClient.PollOnceAbortRollout(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;
}

AbortRolloutAsync(AbortRolloutRequest, CallSettings)

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

Abort a Rollout.

Parameters
Name Description
request AbortRolloutRequest

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
TaskOperationRolloutOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
AbortRolloutRequest request = new AbortRolloutRequest
{
    RolloutName = RolloutName.FromProjectLocationFleetPackageRollout("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]", "[ROLLOUT]"),
    Reason = "",
};
// Make the request
Operation<Rollout, OperationMetadata> response = await configDeliveryClient.AbortRolloutAsync(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 configDeliveryClient.PollOnceAbortRolloutAsync(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;
}

AbortRolloutAsync(AbortRolloutRequest, CancellationToken)

public virtual Task<Operation<Rollout, OperationMetadata>> AbortRolloutAsync(AbortRolloutRequest request, CancellationToken cancellationToken)

Abort a Rollout.

Parameters
Name Description
request AbortRolloutRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationRolloutOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
AbortRolloutRequest request = new AbortRolloutRequest
{
    RolloutName = RolloutName.FromProjectLocationFleetPackageRollout("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]", "[ROLLOUT]"),
    Reason = "",
};
// Make the request
Operation<Rollout, OperationMetadata> response = await configDeliveryClient.AbortRolloutAsync(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 configDeliveryClient.PollOnceAbortRolloutAsync(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;
}

AbortRolloutAsync(RolloutName, CallSettings)

public virtual Task<Operation<Rollout, OperationMetadata>> AbortRolloutAsync(RolloutName name, CallSettings callSettings = null)

Abort a Rollout.

Parameters
Name Description
name RolloutName

Required. Name of the Rollout.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationRolloutOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
RolloutName name = RolloutName.FromProjectLocationFleetPackageRollout("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]", "[ROLLOUT]");
// Make the request
Operation<Rollout, OperationMetadata> response = await configDeliveryClient.AbortRolloutAsync(name);

// 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 configDeliveryClient.PollOnceAbortRolloutAsync(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;
}

AbortRolloutAsync(RolloutName, CancellationToken)

public virtual Task<Operation<Rollout, OperationMetadata>> AbortRolloutAsync(RolloutName name, CancellationToken cancellationToken)

Abort a Rollout.

Parameters
Name Description
name RolloutName

Required. Name of the Rollout.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationRolloutOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
RolloutName name = RolloutName.FromProjectLocationFleetPackageRollout("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]", "[ROLLOUT]");
// Make the request
Operation<Rollout, OperationMetadata> response = await configDeliveryClient.AbortRolloutAsync(name);

// 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 configDeliveryClient.PollOnceAbortRolloutAsync(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;
}

AbortRolloutAsync(string, CallSettings)

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

Abort a Rollout.

Parameters
Name Description
name string

Required. Name of the Rollout.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationRolloutOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/fleetPackages/[FLEET_PACKAGE]/rollouts/[ROLLOUT]";
// Make the request
Operation<Rollout, OperationMetadata> response = await configDeliveryClient.AbortRolloutAsync(name);

// 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 configDeliveryClient.PollOnceAbortRolloutAsync(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;
}

AbortRolloutAsync(string, CancellationToken)

public virtual Task<Operation<Rollout, OperationMetadata>> AbortRolloutAsync(string name, CancellationToken cancellationToken)

Abort a Rollout.

Parameters
Name Description
name string

Required. Name of the Rollout.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationRolloutOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/fleetPackages/[FLEET_PACKAGE]/rollouts/[ROLLOUT]";
// Make the request
Operation<Rollout, OperationMetadata> response = await configDeliveryClient.AbortRolloutAsync(name);

// 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 configDeliveryClient.PollOnceAbortRolloutAsync(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;
}

Create()

public static ConfigDeliveryClient Create()

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

Returns
Type Description
ConfigDeliveryClient

The created ConfigDeliveryClient.

CreateAsync(CancellationToken)

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

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

Parameter
Name Description
cancellationToken CancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
TaskConfigDeliveryClient

The task representing the created ConfigDeliveryClient.

CreateFleetPackage(LocationName, FleetPackage, string, CallSettings)

public virtual Operation<FleetPackage, OperationMetadata> CreateFleetPackage(LocationName parent, FleetPackage fleetPackage, string fleetPackageId, CallSettings callSettings = null)

Creates a new FleetPackage in a given project and location.

Parameters
Name Description
parent LocationName

Required. Value for parent.

fleetPackage FleetPackage

Required. The resource being created.

fleetPackageId string

Required. Id of the requesting object If auto-generating Id server-side, remove this field and fleet_package_id from the method_signature of Create RPC

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationFleetPackageOperationMetadata

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
FleetPackage fleetPackage = new FleetPackage();
string fleetPackageId = "";
// Make the request
Operation<FleetPackage, OperationMetadata> response = configDeliveryClient.CreateFleetPackage(parent, fleetPackage, fleetPackageId);

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

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

CreateFleetPackage(CreateFleetPackageRequest, CallSettings)

public virtual Operation<FleetPackage, OperationMetadata> CreateFleetPackage(CreateFleetPackageRequest request, CallSettings callSettings = null)

Creates a new FleetPackage in a given project and location.

Parameters
Name Description
request CreateFleetPackageRequest

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
OperationFleetPackageOperationMetadata

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
CreateFleetPackageRequest request = new CreateFleetPackageRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    FleetPackageId = "",
    FleetPackage = new FleetPackage(),
    RequestId = "",
};
// Make the request
Operation<FleetPackage, OperationMetadata> response = configDeliveryClient.CreateFleetPackage(request);

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

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

CreateFleetPackage(string, FleetPackage, string, CallSettings)

public virtual Operation<FleetPackage, OperationMetadata> CreateFleetPackage(string parent, FleetPackage fleetPackage, string fleetPackageId, CallSettings callSettings = null)

Creates a new FleetPackage in a given project and location.

Parameters
Name Description
parent string

Required. Value for parent.

fleetPackage FleetPackage

Required. The resource being created.

fleetPackageId string

Required. Id of the requesting object If auto-generating Id server-side, remove this field and fleet_package_id from the method_signature of Create RPC

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationFleetPackageOperationMetadata

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
FleetPackage fleetPackage = new FleetPackage();
string fleetPackageId = "";
// Make the request
Operation<FleetPackage, OperationMetadata> response = configDeliveryClient.CreateFleetPackage(parent, fleetPackage, fleetPackageId);

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

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

CreateFleetPackageAsync(LocationName, FleetPackage, string, CallSettings)

public virtual Task<Operation<FleetPackage, OperationMetadata>> CreateFleetPackageAsync(LocationName parent, FleetPackage fleetPackage, string fleetPackageId, CallSettings callSettings = null)

Creates a new FleetPackage in a given project and location.

Parameters
Name Description
parent LocationName

Required. Value for parent.

fleetPackage FleetPackage

Required. The resource being created.

fleetPackageId string

Required. Id of the requesting object If auto-generating Id server-side, remove this field and fleet_package_id from the method_signature of Create RPC

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationFleetPackageOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
FleetPackage fleetPackage = new FleetPackage();
string fleetPackageId = "";
// Make the request
Operation<FleetPackage, OperationMetadata> response = await configDeliveryClient.CreateFleetPackageAsync(parent, fleetPackage, fleetPackageId);

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

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

CreateFleetPackageAsync(LocationName, FleetPackage, string, CancellationToken)

public virtual Task<Operation<FleetPackage, OperationMetadata>> CreateFleetPackageAsync(LocationName parent, FleetPackage fleetPackage, string fleetPackageId, CancellationToken cancellationToken)

Creates a new FleetPackage in a given project and location.

Parameters
Name Description
parent LocationName

Required. Value for parent.

fleetPackage FleetPackage

Required. The resource being created.

fleetPackageId string

Required. Id of the requesting object If auto-generating Id server-side, remove this field and fleet_package_id from the method_signature of Create RPC

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationFleetPackageOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
FleetPackage fleetPackage = new FleetPackage();
string fleetPackageId = "";
// Make the request
Operation<FleetPackage, OperationMetadata> response = await configDeliveryClient.CreateFleetPackageAsync(parent, fleetPackage, fleetPackageId);

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

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

CreateFleetPackageAsync(CreateFleetPackageRequest, CallSettings)

public virtual Task<Operation<FleetPackage, OperationMetadata>> CreateFleetPackageAsync(CreateFleetPackageRequest request, CallSettings callSettings = null)

Creates a new FleetPackage in a given project and location.

Parameters
Name Description
request CreateFleetPackageRequest

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
TaskOperationFleetPackageOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
CreateFleetPackageRequest request = new CreateFleetPackageRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    FleetPackageId = "",
    FleetPackage = new FleetPackage(),
    RequestId = "",
};
// Make the request
Operation<FleetPackage, OperationMetadata> response = await configDeliveryClient.CreateFleetPackageAsync(request);

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

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

CreateFleetPackageAsync(CreateFleetPackageRequest, CancellationToken)

public virtual Task<Operation<FleetPackage, OperationMetadata>> CreateFleetPackageAsync(CreateFleetPackageRequest request, CancellationToken cancellationToken)

Creates a new FleetPackage in a given project and location.

Parameters
Name Description
request CreateFleetPackageRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationFleetPackageOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
CreateFleetPackageRequest request = new CreateFleetPackageRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    FleetPackageId = "",
    FleetPackage = new FleetPackage(),
    RequestId = "",
};
// Make the request
Operation<FleetPackage, OperationMetadata> response = await configDeliveryClient.CreateFleetPackageAsync(request);

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

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

CreateFleetPackageAsync(string, FleetPackage, string, CallSettings)

public virtual Task<Operation<FleetPackage, OperationMetadata>> CreateFleetPackageAsync(string parent, FleetPackage fleetPackage, string fleetPackageId, CallSettings callSettings = null)

Creates a new FleetPackage in a given project and location.

Parameters
Name Description
parent string

Required. Value for parent.

fleetPackage FleetPackage

Required. The resource being created.

fleetPackageId string

Required. Id of the requesting object If auto-generating Id server-side, remove this field and fleet_package_id from the method_signature of Create RPC

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationFleetPackageOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
FleetPackage fleetPackage = new FleetPackage();
string fleetPackageId = "";
// Make the request
Operation<FleetPackage, OperationMetadata> response = await configDeliveryClient.CreateFleetPackageAsync(parent, fleetPackage, fleetPackageId);

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

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

CreateFleetPackageAsync(string, FleetPackage, string, CancellationToken)

public virtual Task<Operation<FleetPackage, OperationMetadata>> CreateFleetPackageAsync(string parent, FleetPackage fleetPackage, string fleetPackageId, CancellationToken cancellationToken)

Creates a new FleetPackage in a given project and location.

Parameters
Name Description
parent string

Required. Value for parent.

fleetPackage FleetPackage

Required. The resource being created.

fleetPackageId string

Required. Id of the requesting object If auto-generating Id server-side, remove this field and fleet_package_id from the method_signature of Create RPC

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationFleetPackageOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
FleetPackage fleetPackage = new FleetPackage();
string fleetPackageId = "";
// Make the request
Operation<FleetPackage, OperationMetadata> response = await configDeliveryClient.CreateFleetPackageAsync(parent, fleetPackage, fleetPackageId);

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

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<FleetPackage, OperationMetadata> retrievedResponse = await configDeliveryClient.PollOnceCreateFleetPackageAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    FleetPackage 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, location and resource bundle.

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
OperationReleaseOperationMetadata

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
CreateReleaseRequest request = new CreateReleaseRequest
{
    ParentAsResourceBundleName = ResourceBundleName.FromProjectLocationResourceBundle("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]"),
    ReleaseId = "",
    Release = new Release(),
    RequestId = "",
};
// Make the request
Operation<Release, OperationMetadata> response = configDeliveryClient.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 = configDeliveryClient.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(ResourceBundleName, Release, string, CallSettings)

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

Creates a new Release in a given project, location and resource bundle.

Parameters
Name Description
parent ResourceBundleName

Required. Value for parent.

release Release

Required. The resource being created

releaseId string

Required. Id of the requesting object If auto-generating Id server-side, remove this field and release_id from the method_signature of Create RPC

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationReleaseOperationMetadata

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
ResourceBundleName parent = ResourceBundleName.FromProjectLocationResourceBundle("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]");
Release release = new Release();
string releaseId = "";
// Make the request
Operation<Release, OperationMetadata> response = configDeliveryClient.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 = configDeliveryClient.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, location and resource bundle.

Parameters
Name Description
parent string

Required. Value for parent.

release Release

Required. The resource being created

releaseId string

Required. Id of the requesting object If auto-generating Id server-side, remove this field and release_id from the method_signature of Create RPC

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationReleaseOperationMetadata

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/resourceBundles/[RESOURCE_BUNDLE]";
Release release = new Release();
string releaseId = "";
// Make the request
Operation<Release, OperationMetadata> response = configDeliveryClient.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 = configDeliveryClient.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, location and resource bundle.

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
TaskOperationReleaseOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
CreateReleaseRequest request = new CreateReleaseRequest
{
    ParentAsResourceBundleName = ResourceBundleName.FromProjectLocationResourceBundle("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]"),
    ReleaseId = "",
    Release = new Release(),
    RequestId = "",
};
// Make the request
Operation<Release, OperationMetadata> response = await configDeliveryClient.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 configDeliveryClient.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, location and resource bundle.

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
TaskOperationReleaseOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
CreateReleaseRequest request = new CreateReleaseRequest
{
    ParentAsResourceBundleName = ResourceBundleName.FromProjectLocationResourceBundle("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]"),
    ReleaseId = "",
    Release = new Release(),
    RequestId = "",
};
// Make the request
Operation<Release, OperationMetadata> response = await configDeliveryClient.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 configDeliveryClient.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(ResourceBundleName, Release, string, CallSettings)

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

Creates a new Release in a given project, location and resource bundle.

Parameters
Name Description
parent ResourceBundleName

Required. Value for parent.

release Release

Required. The resource being created

releaseId string

Required. Id of the requesting object If auto-generating Id server-side, remove this field and release_id from the method_signature of Create RPC

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationReleaseOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
ResourceBundleName parent = ResourceBundleName.FromProjectLocationResourceBundle("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]");
Release release = new Release();
string releaseId = "";
// Make the request
Operation<Release, OperationMetadata> response = await configDeliveryClient.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 configDeliveryClient.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(ResourceBundleName, Release, string, CancellationToken)

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

Creates a new Release in a given project, location and resource bundle.

Parameters
Name Description
parent ResourceBundleName

Required. Value for parent.

release Release

Required. The resource being created

releaseId string

Required. Id of the requesting object If auto-generating Id server-side, remove this field and release_id from the method_signature of Create RPC

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationReleaseOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
ResourceBundleName parent = ResourceBundleName.FromProjectLocationResourceBundle("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]");
Release release = new Release();
string releaseId = "";
// Make the request
Operation<Release, OperationMetadata> response = await configDeliveryClient.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 configDeliveryClient.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, location and resource bundle.

Parameters
Name Description
parent string

Required. Value for parent.

release Release

Required. The resource being created

releaseId string

Required. Id of the requesting object If auto-generating Id server-side, remove this field and release_id from the method_signature of Create RPC

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationReleaseOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/resourceBundles/[RESOURCE_BUNDLE]";
Release release = new Release();
string releaseId = "";
// Make the request
Operation<Release, OperationMetadata> response = await configDeliveryClient.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 configDeliveryClient.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, location and resource bundle.

Parameters
Name Description
parent string

Required. Value for parent.

release Release

Required. The resource being created

releaseId string

Required. Id of the requesting object If auto-generating Id server-side, remove this field and release_id from the method_signature of Create RPC

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationReleaseOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/resourceBundles/[RESOURCE_BUNDLE]";
Release release = new Release();
string releaseId = "";
// Make the request
Operation<Release, OperationMetadata> response = await configDeliveryClient.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 configDeliveryClient.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;
}

CreateResourceBundle(LocationName, ResourceBundle, string, CallSettings)

public virtual Operation<ResourceBundle, OperationMetadata> CreateResourceBundle(LocationName parent, ResourceBundle resourceBundle, string resourceBundleId, CallSettings callSettings = null)

Creates a new ResourceBundle in a given project and location.

Parameters
Name Description
parent LocationName

Required. Value for parent.

resourceBundle ResourceBundle

Required. The resource being created

resourceBundleId string

Required. Id of the requesting object If auto-generating Id server-side, remove this field and resource_bundle_id from the method_signature of Create RPC

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationResourceBundleOperationMetadata

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ResourceBundle resourceBundle = new ResourceBundle();
string resourceBundleId = "";
// Make the request
Operation<ResourceBundle, OperationMetadata> response = configDeliveryClient.CreateResourceBundle(parent, resourceBundle, resourceBundleId);

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

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

CreateResourceBundle(CreateResourceBundleRequest, CallSettings)

public virtual Operation<ResourceBundle, OperationMetadata> CreateResourceBundle(CreateResourceBundleRequest request, CallSettings callSettings = null)

Creates a new ResourceBundle in a given project and location.

Parameters
Name Description
request CreateResourceBundleRequest

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
OperationResourceBundleOperationMetadata

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
CreateResourceBundleRequest request = new CreateResourceBundleRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ResourceBundleId = "",
    ResourceBundle = new ResourceBundle(),
    RequestId = "",
};
// Make the request
Operation<ResourceBundle, OperationMetadata> response = configDeliveryClient.CreateResourceBundle(request);

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

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

CreateResourceBundle(string, ResourceBundle, string, CallSettings)

public virtual Operation<ResourceBundle, OperationMetadata> CreateResourceBundle(string parent, ResourceBundle resourceBundle, string resourceBundleId, CallSettings callSettings = null)

Creates a new ResourceBundle in a given project and location.

Parameters
Name Description
parent string

Required. Value for parent.

resourceBundle ResourceBundle

Required. The resource being created

resourceBundleId string

Required. Id of the requesting object If auto-generating Id server-side, remove this field and resource_bundle_id from the method_signature of Create RPC

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationResourceBundleOperationMetadata

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ResourceBundle resourceBundle = new ResourceBundle();
string resourceBundleId = "";
// Make the request
Operation<ResourceBundle, OperationMetadata> response = configDeliveryClient.CreateResourceBundle(parent, resourceBundle, resourceBundleId);

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

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

CreateResourceBundleAsync(LocationName, ResourceBundle, string, CallSettings)

public virtual Task<Operation<ResourceBundle, OperationMetadata>> CreateResourceBundleAsync(LocationName parent, ResourceBundle resourceBundle, string resourceBundleId, CallSettings callSettings = null)

Creates a new ResourceBundle in a given project and location.

Parameters
Name Description
parent LocationName

Required. Value for parent.

resourceBundle ResourceBundle

Required. The resource being created

resourceBundleId string

Required. Id of the requesting object If auto-generating Id server-side, remove this field and resource_bundle_id from the method_signature of Create RPC

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationResourceBundleOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ResourceBundle resourceBundle = new ResourceBundle();
string resourceBundleId = "";
// Make the request
Operation<ResourceBundle, OperationMetadata> response = await configDeliveryClient.CreateResourceBundleAsync(parent, resourceBundle, resourceBundleId);

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

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

CreateResourceBundleAsync(LocationName, ResourceBundle, string, CancellationToken)

public virtual Task<Operation<ResourceBundle, OperationMetadata>> CreateResourceBundleAsync(LocationName parent, ResourceBundle resourceBundle, string resourceBundleId, CancellationToken cancellationToken)

Creates a new ResourceBundle in a given project and location.

Parameters
Name Description
parent LocationName

Required. Value for parent.

resourceBundle ResourceBundle

Required. The resource being created

resourceBundleId string

Required. Id of the requesting object If auto-generating Id server-side, remove this field and resource_bundle_id from the method_signature of Create RPC

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationResourceBundleOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ResourceBundle resourceBundle = new ResourceBundle();
string resourceBundleId = "";
// Make the request
Operation<ResourceBundle, OperationMetadata> response = await configDeliveryClient.CreateResourceBundleAsync(parent, resourceBundle, resourceBundleId);

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

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

CreateResourceBundleAsync(CreateResourceBundleRequest, CallSettings)

public virtual Task<Operation<ResourceBundle, OperationMetadata>> CreateResourceBundleAsync(CreateResourceBundleRequest request, CallSettings callSettings = null)

Creates a new ResourceBundle in a given project and location.

Parameters
Name Description
request CreateResourceBundleRequest

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
TaskOperationResourceBundleOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
CreateResourceBundleRequest request = new CreateResourceBundleRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ResourceBundleId = "",
    ResourceBundle = new ResourceBundle(),
    RequestId = "",
};
// Make the request
Operation<ResourceBundle, OperationMetadata> response = await configDeliveryClient.CreateResourceBundleAsync(request);

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

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

CreateResourceBundleAsync(CreateResourceBundleRequest, CancellationToken)

public virtual Task<Operation<ResourceBundle, OperationMetadata>> CreateResourceBundleAsync(CreateResourceBundleRequest request, CancellationToken cancellationToken)

Creates a new ResourceBundle in a given project and location.

Parameters
Name Description
request CreateResourceBundleRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationResourceBundleOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
CreateResourceBundleRequest request = new CreateResourceBundleRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ResourceBundleId = "",
    ResourceBundle = new ResourceBundle(),
    RequestId = "",
};
// Make the request
Operation<ResourceBundle, OperationMetadata> response = await configDeliveryClient.CreateResourceBundleAsync(request);

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

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

CreateResourceBundleAsync(string, ResourceBundle, string, CallSettings)

public virtual Task<Operation<ResourceBundle, OperationMetadata>> CreateResourceBundleAsync(string parent, ResourceBundle resourceBundle, string resourceBundleId, CallSettings callSettings = null)

Creates a new ResourceBundle in a given project and location.

Parameters
Name Description
parent string

Required. Value for parent.

resourceBundle ResourceBundle

Required. The resource being created

resourceBundleId string

Required. Id of the requesting object If auto-generating Id server-side, remove this field and resource_bundle_id from the method_signature of Create RPC

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationResourceBundleOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ResourceBundle resourceBundle = new ResourceBundle();
string resourceBundleId = "";
// Make the request
Operation<ResourceBundle, OperationMetadata> response = await configDeliveryClient.CreateResourceBundleAsync(parent, resourceBundle, resourceBundleId);

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

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

CreateResourceBundleAsync(string, ResourceBundle, string, CancellationToken)

public virtual Task<Operation<ResourceBundle, OperationMetadata>> CreateResourceBundleAsync(string parent, ResourceBundle resourceBundle, string resourceBundleId, CancellationToken cancellationToken)

Creates a new ResourceBundle in a given project and location.

Parameters
Name Description
parent string

Required. Value for parent.

resourceBundle ResourceBundle

Required. The resource being created

resourceBundleId string

Required. Id of the requesting object If auto-generating Id server-side, remove this field and resource_bundle_id from the method_signature of Create RPC

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationResourceBundleOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ResourceBundle resourceBundle = new ResourceBundle();
string resourceBundleId = "";
// Make the request
Operation<ResourceBundle, OperationMetadata> response = await configDeliveryClient.CreateResourceBundleAsync(parent, resourceBundle, resourceBundleId);

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

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

CreateVariant(CreateVariantRequest, CallSettings)

public virtual Operation<Variant, OperationMetadata> CreateVariant(CreateVariantRequest request, CallSettings callSettings = null)

Creates a new Variant in a given project, location, resource bundle, and release.

Parameters
Name Description
request CreateVariantRequest

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
OperationVariantOperationMetadata

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
CreateVariantRequest request = new CreateVariantRequest
{
    ParentAsReleaseName = ReleaseName.FromProjectLocationResourceBundleRelease("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]"),
    VariantId = "",
    Variant = new Variant(),
    RequestId = "",
};
// Make the request
Operation<Variant, OperationMetadata> response = configDeliveryClient.CreateVariant(request);

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

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

CreateVariant(ReleaseName, Variant, string, CallSettings)

public virtual Operation<Variant, OperationMetadata> CreateVariant(ReleaseName parent, Variant variant, string variantId, CallSettings callSettings = null)

Creates a new Variant in a given project, location, resource bundle, and release.

Parameters
Name Description
parent ReleaseName

Required. Value for parent.

variant Variant

Required. The resource being created

variantId string

Required. Id of the requesting object

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationVariantOperationMetadata

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
ReleaseName parent = ReleaseName.FromProjectLocationResourceBundleRelease("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]");
Variant variant = new Variant();
string variantId = "";
// Make the request
Operation<Variant, OperationMetadata> response = configDeliveryClient.CreateVariant(parent, variant, variantId);

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

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

CreateVariant(string, Variant, string, CallSettings)

public virtual Operation<Variant, OperationMetadata> CreateVariant(string parent, Variant variant, string variantId, CallSettings callSettings = null)

Creates a new Variant in a given project, location, resource bundle, and release.

Parameters
Name Description
parent string

Required. Value for parent.

variant Variant

Required. The resource being created

variantId string

Required. Id of the requesting object

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationVariantOperationMetadata

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/resourceBundles/[RESOURCE_BUNDLE]/releases/[RELEASE]";
Variant variant = new Variant();
string variantId = "";
// Make the request
Operation<Variant, OperationMetadata> response = configDeliveryClient.CreateVariant(parent, variant, variantId);

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

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

CreateVariantAsync(CreateVariantRequest, CallSettings)

public virtual Task<Operation<Variant, OperationMetadata>> CreateVariantAsync(CreateVariantRequest request, CallSettings callSettings = null)

Creates a new Variant in a given project, location, resource bundle, and release.

Parameters
Name Description
request CreateVariantRequest

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
TaskOperationVariantOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
CreateVariantRequest request = new CreateVariantRequest
{
    ParentAsReleaseName = ReleaseName.FromProjectLocationResourceBundleRelease("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]"),
    VariantId = "",
    Variant = new Variant(),
    RequestId = "",
};
// Make the request
Operation<Variant, OperationMetadata> response = await configDeliveryClient.CreateVariantAsync(request);

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

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

CreateVariantAsync(CreateVariantRequest, CancellationToken)

public virtual Task<Operation<Variant, OperationMetadata>> CreateVariantAsync(CreateVariantRequest request, CancellationToken cancellationToken)

Creates a new Variant in a given project, location, resource bundle, and release.

Parameters
Name Description
request CreateVariantRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationVariantOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
CreateVariantRequest request = new CreateVariantRequest
{
    ParentAsReleaseName = ReleaseName.FromProjectLocationResourceBundleRelease("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]"),
    VariantId = "",
    Variant = new Variant(),
    RequestId = "",
};
// Make the request
Operation<Variant, OperationMetadata> response = await configDeliveryClient.CreateVariantAsync(request);

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

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

CreateVariantAsync(ReleaseName, Variant, string, CallSettings)

public virtual Task<Operation<Variant, OperationMetadata>> CreateVariantAsync(ReleaseName parent, Variant variant, string variantId, CallSettings callSettings = null)

Creates a new Variant in a given project, location, resource bundle, and release.

Parameters
Name Description
parent ReleaseName

Required. Value for parent.

variant Variant

Required. The resource being created

variantId string

Required. Id of the requesting object

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationVariantOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
ReleaseName parent = ReleaseName.FromProjectLocationResourceBundleRelease("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]");
Variant variant = new Variant();
string variantId = "";
// Make the request
Operation<Variant, OperationMetadata> response = await configDeliveryClient.CreateVariantAsync(parent, variant, variantId);

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

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

CreateVariantAsync(ReleaseName, Variant, string, CancellationToken)

public virtual Task<Operation<Variant, OperationMetadata>> CreateVariantAsync(ReleaseName parent, Variant variant, string variantId, CancellationToken cancellationToken)

Creates a new Variant in a given project, location, resource bundle, and release.

Parameters
Name Description
parent ReleaseName

Required. Value for parent.

variant Variant

Required. The resource being created

variantId string

Required. Id of the requesting object

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationVariantOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
ReleaseName parent = ReleaseName.FromProjectLocationResourceBundleRelease("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]");
Variant variant = new Variant();
string variantId = "";
// Make the request
Operation<Variant, OperationMetadata> response = await configDeliveryClient.CreateVariantAsync(parent, variant, variantId);

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

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

CreateVariantAsync(string, Variant, string, CallSettings)

public virtual Task<Operation<Variant, OperationMetadata>> CreateVariantAsync(string parent, Variant variant, string variantId, CallSettings callSettings = null)

Creates a new Variant in a given project, location, resource bundle, and release.

Parameters
Name Description
parent string

Required. Value for parent.

variant Variant

Required. The resource being created

variantId string

Required. Id of the requesting object

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationVariantOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/resourceBundles/[RESOURCE_BUNDLE]/releases/[RELEASE]";
Variant variant = new Variant();
string variantId = "";
// Make the request
Operation<Variant, OperationMetadata> response = await configDeliveryClient.CreateVariantAsync(parent, variant, variantId);

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

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

CreateVariantAsync(string, Variant, string, CancellationToken)

public virtual Task<Operation<Variant, OperationMetadata>> CreateVariantAsync(string parent, Variant variant, string variantId, CancellationToken cancellationToken)

Creates a new Variant in a given project, location, resource bundle, and release.

Parameters
Name Description
parent string

Required. Value for parent.

variant Variant

Required. The resource being created

variantId string

Required. Id of the requesting object

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationVariantOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/resourceBundles/[RESOURCE_BUNDLE]/releases/[RELEASE]";
Variant variant = new Variant();
string variantId = "";
// Make the request
Operation<Variant, OperationMetadata> response = await configDeliveryClient.CreateVariantAsync(parent, variant, variantId);

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

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

DeleteFleetPackage(DeleteFleetPackageRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteFleetPackage(DeleteFleetPackageRequest request, CallSettings callSettings = null)

Deletes a single FleetPackage.

Parameters
Name Description
request DeleteFleetPackageRequest

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
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
DeleteFleetPackageRequest request = new DeleteFleetPackageRequest
{
    FleetPackageName = FleetPackageName.FromProjectLocationFleetPackage("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]"),
    RequestId = "",
    Force = false,
    AllowMissing = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = configDeliveryClient.DeleteFleetPackage(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 = configDeliveryClient.PollOnceDeleteFleetPackage(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;
}

DeleteFleetPackage(FleetPackageName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteFleetPackage(FleetPackageName name, CallSettings callSettings = null)

Deletes a single FleetPackage.

Parameters
Name Description
name FleetPackageName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
FleetPackageName name = FleetPackageName.FromProjectLocationFleetPackage("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]");
// Make the request
Operation<Empty, OperationMetadata> response = configDeliveryClient.DeleteFleetPackage(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 = configDeliveryClient.PollOnceDeleteFleetPackage(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;
}

DeleteFleetPackage(string, CallSettings)

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

Deletes a single FleetPackage.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/fleetPackages/[FLEET_PACKAGE]";
// Make the request
Operation<Empty, OperationMetadata> response = configDeliveryClient.DeleteFleetPackage(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 = configDeliveryClient.PollOnceDeleteFleetPackage(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;
}

DeleteFleetPackageAsync(DeleteFleetPackageRequest, CallSettings)

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

Deletes a single FleetPackage.

Parameters
Name Description
request DeleteFleetPackageRequest

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
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
DeleteFleetPackageRequest request = new DeleteFleetPackageRequest
{
    FleetPackageName = FleetPackageName.FromProjectLocationFleetPackage("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]"),
    RequestId = "",
    Force = false,
    AllowMissing = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = await configDeliveryClient.DeleteFleetPackageAsync(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 configDeliveryClient.PollOnceDeleteFleetPackageAsync(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;
}

DeleteFleetPackageAsync(DeleteFleetPackageRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteFleetPackageAsync(DeleteFleetPackageRequest request, CancellationToken cancellationToken)

Deletes a single FleetPackage.

Parameters
Name Description
request DeleteFleetPackageRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
DeleteFleetPackageRequest request = new DeleteFleetPackageRequest
{
    FleetPackageName = FleetPackageName.FromProjectLocationFleetPackage("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]"),
    RequestId = "",
    Force = false,
    AllowMissing = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = await configDeliveryClient.DeleteFleetPackageAsync(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 configDeliveryClient.PollOnceDeleteFleetPackageAsync(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;
}

DeleteFleetPackageAsync(FleetPackageName, CallSettings)

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

Deletes a single FleetPackage.

Parameters
Name Description
name FleetPackageName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
FleetPackageName name = FleetPackageName.FromProjectLocationFleetPackage("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]");
// Make the request
Operation<Empty, OperationMetadata> response = await configDeliveryClient.DeleteFleetPackageAsync(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 configDeliveryClient.PollOnceDeleteFleetPackageAsync(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;
}

DeleteFleetPackageAsync(FleetPackageName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteFleetPackageAsync(FleetPackageName name, CancellationToken cancellationToken)

Deletes a single FleetPackage.

Parameters
Name Description
name FleetPackageName

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
FleetPackageName name = FleetPackageName.FromProjectLocationFleetPackage("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]");
// Make the request
Operation<Empty, OperationMetadata> response = await configDeliveryClient.DeleteFleetPackageAsync(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 configDeliveryClient.PollOnceDeleteFleetPackageAsync(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;
}

DeleteFleetPackageAsync(string, CallSettings)

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

Deletes a single FleetPackage.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/fleetPackages/[FLEET_PACKAGE]";
// Make the request
Operation<Empty, OperationMetadata> response = await configDeliveryClient.DeleteFleetPackageAsync(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 configDeliveryClient.PollOnceDeleteFleetPackageAsync(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;
}

DeleteFleetPackageAsync(string, CancellationToken)

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

Deletes a single FleetPackage.

Parameters
Name Description
name string

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/fleetPackages/[FLEET_PACKAGE]";
// Make the request
Operation<Empty, OperationMetadata> response = await configDeliveryClient.DeleteFleetPackageAsync(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 configDeliveryClient.PollOnceDeleteFleetPackageAsync(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;
}

DeleteRelease(DeleteReleaseRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteRelease(DeleteReleaseRequest request, CallSettings callSettings = null)

Deletes a single Release.

Parameters
Name Description
request DeleteReleaseRequest

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
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
DeleteReleaseRequest request = new DeleteReleaseRequest
{
    ReleaseName = ReleaseName.FromProjectLocationResourceBundleRelease("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]"),
    RequestId = "",
    Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = configDeliveryClient.DeleteRelease(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 = configDeliveryClient.PollOnceDeleteRelease(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;
}

DeleteRelease(ReleaseName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteRelease(ReleaseName name, CallSettings callSettings = null)

Deletes a single Release.

Parameters
Name Description
name ReleaseName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
ReleaseName name = ReleaseName.FromProjectLocationResourceBundleRelease("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]");
// Make the request
Operation<Empty, OperationMetadata> response = configDeliveryClient.DeleteRelease(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 = configDeliveryClient.PollOnceDeleteRelease(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;
}

DeleteRelease(string, CallSettings)

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

Deletes a single Release.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/resourceBundles/[RESOURCE_BUNDLE]/releases/[RELEASE]";
// Make the request
Operation<Empty, OperationMetadata> response = configDeliveryClient.DeleteRelease(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 = configDeliveryClient.PollOnceDeleteRelease(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;
}

DeleteReleaseAsync(DeleteReleaseRequest, CallSettings)

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

Deletes a single Release.

Parameters
Name Description
request DeleteReleaseRequest

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
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
DeleteReleaseRequest request = new DeleteReleaseRequest
{
    ReleaseName = ReleaseName.FromProjectLocationResourceBundleRelease("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]"),
    RequestId = "",
    Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = await configDeliveryClient.DeleteReleaseAsync(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 configDeliveryClient.PollOnceDeleteReleaseAsync(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;
}

DeleteReleaseAsync(DeleteReleaseRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteReleaseAsync(DeleteReleaseRequest request, CancellationToken cancellationToken)

Deletes a single Release.

Parameters
Name Description
request DeleteReleaseRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
DeleteReleaseRequest request = new DeleteReleaseRequest
{
    ReleaseName = ReleaseName.FromProjectLocationResourceBundleRelease("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]"),
    RequestId = "",
    Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = await configDeliveryClient.DeleteReleaseAsync(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 configDeliveryClient.PollOnceDeleteReleaseAsync(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;
}

DeleteReleaseAsync(ReleaseName, CallSettings)

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

Deletes a single Release.

Parameters
Name Description
name ReleaseName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
ReleaseName name = ReleaseName.FromProjectLocationResourceBundleRelease("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]");
// Make the request
Operation<Empty, OperationMetadata> response = await configDeliveryClient.DeleteReleaseAsync(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 configDeliveryClient.PollOnceDeleteReleaseAsync(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;
}

DeleteReleaseAsync(ReleaseName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteReleaseAsync(ReleaseName name, CancellationToken cancellationToken)

Deletes a single Release.

Parameters
Name Description
name ReleaseName

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
ReleaseName name = ReleaseName.FromProjectLocationResourceBundleRelease("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]");
// Make the request
Operation<Empty, OperationMetadata> response = await configDeliveryClient.DeleteReleaseAsync(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 configDeliveryClient.PollOnceDeleteReleaseAsync(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;
}

DeleteReleaseAsync(string, CallSettings)

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

Deletes a single Release.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/resourceBundles/[RESOURCE_BUNDLE]/releases/[RELEASE]";
// Make the request
Operation<Empty, OperationMetadata> response = await configDeliveryClient.DeleteReleaseAsync(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 configDeliveryClient.PollOnceDeleteReleaseAsync(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;
}

DeleteReleaseAsync(string, CancellationToken)

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

Deletes a single Release.

Parameters
Name Description
name string

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/resourceBundles/[RESOURCE_BUNDLE]/releases/[RELEASE]";
// Make the request
Operation<Empty, OperationMetadata> response = await configDeliveryClient.DeleteReleaseAsync(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 configDeliveryClient.PollOnceDeleteReleaseAsync(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;
}

DeleteResourceBundle(DeleteResourceBundleRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteResourceBundle(DeleteResourceBundleRequest request, CallSettings callSettings = null)

Deletes a single ResourceBundle.

Parameters
Name Description
request DeleteResourceBundleRequest

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
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
DeleteResourceBundleRequest request = new DeleteResourceBundleRequest
{
    ResourceBundleName = ResourceBundleName.FromProjectLocationResourceBundle("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]"),
    RequestId = "",
    Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = configDeliveryClient.DeleteResourceBundle(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 = configDeliveryClient.PollOnceDeleteResourceBundle(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;
}

DeleteResourceBundle(ResourceBundleName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteResourceBundle(ResourceBundleName name, CallSettings callSettings = null)

Deletes a single ResourceBundle.

Parameters
Name Description
name ResourceBundleName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
ResourceBundleName name = ResourceBundleName.FromProjectLocationResourceBundle("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]");
// Make the request
Operation<Empty, OperationMetadata> response = configDeliveryClient.DeleteResourceBundle(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 = configDeliveryClient.PollOnceDeleteResourceBundle(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;
}

DeleteResourceBundle(string, CallSettings)

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

Deletes a single ResourceBundle.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/resourceBundles/[RESOURCE_BUNDLE]";
// Make the request
Operation<Empty, OperationMetadata> response = configDeliveryClient.DeleteResourceBundle(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 = configDeliveryClient.PollOnceDeleteResourceBundle(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;
}

DeleteResourceBundleAsync(DeleteResourceBundleRequest, CallSettings)

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

Deletes a single ResourceBundle.

Parameters
Name Description
request DeleteResourceBundleRequest

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
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
DeleteResourceBundleRequest request = new DeleteResourceBundleRequest
{
    ResourceBundleName = ResourceBundleName.FromProjectLocationResourceBundle("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]"),
    RequestId = "",
    Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = await configDeliveryClient.DeleteResourceBundleAsync(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 configDeliveryClient.PollOnceDeleteResourceBundleAsync(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;
}

DeleteResourceBundleAsync(DeleteResourceBundleRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteResourceBundleAsync(DeleteResourceBundleRequest request, CancellationToken cancellationToken)

Deletes a single ResourceBundle.

Parameters
Name Description
request DeleteResourceBundleRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
DeleteResourceBundleRequest request = new DeleteResourceBundleRequest
{
    ResourceBundleName = ResourceBundleName.FromProjectLocationResourceBundle("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]"),
    RequestId = "",
    Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = await configDeliveryClient.DeleteResourceBundleAsync(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 configDeliveryClient.PollOnceDeleteResourceBundleAsync(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;
}

DeleteResourceBundleAsync(ResourceBundleName, CallSettings)

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

Deletes a single ResourceBundle.

Parameters
Name Description
name ResourceBundleName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
ResourceBundleName name = ResourceBundleName.FromProjectLocationResourceBundle("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]");
// Make the request
Operation<Empty, OperationMetadata> response = await configDeliveryClient.DeleteResourceBundleAsync(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 configDeliveryClient.PollOnceDeleteResourceBundleAsync(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;
}

DeleteResourceBundleAsync(ResourceBundleName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteResourceBundleAsync(ResourceBundleName name, CancellationToken cancellationToken)

Deletes a single ResourceBundle.

Parameters
Name Description
name ResourceBundleName

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
ResourceBundleName name = ResourceBundleName.FromProjectLocationResourceBundle("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]");
// Make the request
Operation<Empty, OperationMetadata> response = await configDeliveryClient.DeleteResourceBundleAsync(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 configDeliveryClient.PollOnceDeleteResourceBundleAsync(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;
}

DeleteResourceBundleAsync(string, CallSettings)

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

Deletes a single ResourceBundle.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/resourceBundles/[RESOURCE_BUNDLE]";
// Make the request
Operation<Empty, OperationMetadata> response = await configDeliveryClient.DeleteResourceBundleAsync(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 configDeliveryClient.PollOnceDeleteResourceBundleAsync(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;
}

DeleteResourceBundleAsync(string, CancellationToken)

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

Deletes a single ResourceBundle.

Parameters
Name Description
name string

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/resourceBundles/[RESOURCE_BUNDLE]";
// Make the request
Operation<Empty, OperationMetadata> response = await configDeliveryClient.DeleteResourceBundleAsync(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 configDeliveryClient.PollOnceDeleteResourceBundleAsync(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;
}

DeleteVariant(DeleteVariantRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteVariant(DeleteVariantRequest request, CallSettings callSettings = null)

Deletes a single Variant.

Parameters
Name Description
request DeleteVariantRequest

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
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
DeleteVariantRequest request = new DeleteVariantRequest
{
    VariantName = VariantName.FromProjectLocationResourceBundleReleaseVariant("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]", "[VARIANT]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = configDeliveryClient.DeleteVariant(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 = configDeliveryClient.PollOnceDeleteVariant(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;
}

DeleteVariant(VariantName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteVariant(VariantName name, CallSettings callSettings = null)

Deletes a single Variant.

Parameters
Name Description
name VariantName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
VariantName name = VariantName.FromProjectLocationResourceBundleReleaseVariant("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]", "[VARIANT]");
// Make the request
Operation<Empty, OperationMetadata> response = configDeliveryClient.DeleteVariant(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 = configDeliveryClient.PollOnceDeleteVariant(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;
}

DeleteVariant(string, CallSettings)

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

Deletes a single Variant.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/resourceBundles/[RESOURCE_BUNDLE]/releases/[RELEASE]/variants/[VARIANT]";
// Make the request
Operation<Empty, OperationMetadata> response = configDeliveryClient.DeleteVariant(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 = configDeliveryClient.PollOnceDeleteVariant(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;
}

DeleteVariantAsync(DeleteVariantRequest, CallSettings)

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

Deletes a single Variant.

Parameters
Name Description
request DeleteVariantRequest

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
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
DeleteVariantRequest request = new DeleteVariantRequest
{
    VariantName = VariantName.FromProjectLocationResourceBundleReleaseVariant("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]", "[VARIANT]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await configDeliveryClient.DeleteVariantAsync(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 configDeliveryClient.PollOnceDeleteVariantAsync(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;
}

DeleteVariantAsync(DeleteVariantRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteVariantAsync(DeleteVariantRequest request, CancellationToken cancellationToken)

Deletes a single Variant.

Parameters
Name Description
request DeleteVariantRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
DeleteVariantRequest request = new DeleteVariantRequest
{
    VariantName = VariantName.FromProjectLocationResourceBundleReleaseVariant("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]", "[VARIANT]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await configDeliveryClient.DeleteVariantAsync(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 configDeliveryClient.PollOnceDeleteVariantAsync(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;
}

DeleteVariantAsync(VariantName, CallSettings)

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

Deletes a single Variant.

Parameters
Name Description
name VariantName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
VariantName name = VariantName.FromProjectLocationResourceBundleReleaseVariant("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]", "[VARIANT]");
// Make the request
Operation<Empty, OperationMetadata> response = await configDeliveryClient.DeleteVariantAsync(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 configDeliveryClient.PollOnceDeleteVariantAsync(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;
}

DeleteVariantAsync(VariantName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteVariantAsync(VariantName name, CancellationToken cancellationToken)

Deletes a single Variant.

Parameters
Name Description
name VariantName

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
VariantName name = VariantName.FromProjectLocationResourceBundleReleaseVariant("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]", "[VARIANT]");
// Make the request
Operation<Empty, OperationMetadata> response = await configDeliveryClient.DeleteVariantAsync(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 configDeliveryClient.PollOnceDeleteVariantAsync(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;
}

DeleteVariantAsync(string, CallSettings)

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

Deletes a single Variant.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/resourceBundles/[RESOURCE_BUNDLE]/releases/[RELEASE]/variants/[VARIANT]";
// Make the request
Operation<Empty, OperationMetadata> response = await configDeliveryClient.DeleteVariantAsync(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 configDeliveryClient.PollOnceDeleteVariantAsync(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;
}

DeleteVariantAsync(string, CancellationToken)

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

Deletes a single Variant.

Parameters
Name Description
name string

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/resourceBundles/[RESOURCE_BUNDLE]/releases/[RELEASE]/variants/[VARIANT]";
// Make the request
Operation<Empty, OperationMetadata> response = await configDeliveryClient.DeleteVariantAsync(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 configDeliveryClient.PollOnceDeleteVariantAsync(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;
}

GetFleetPackage(FleetPackageName, CallSettings)

public virtual FleetPackage GetFleetPackage(FleetPackageName name, CallSettings callSettings = null)

Gets details of a single FleetPackage.

Parameters
Name Description
name FleetPackageName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
FleetPackage

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
FleetPackageName name = FleetPackageName.FromProjectLocationFleetPackage("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]");
// Make the request
FleetPackage response = configDeliveryClient.GetFleetPackage(name);

GetFleetPackage(GetFleetPackageRequest, CallSettings)

public virtual FleetPackage GetFleetPackage(GetFleetPackageRequest request, CallSettings callSettings = null)

Gets details of a single FleetPackage.

Parameters
Name Description
request GetFleetPackageRequest

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
FleetPackage

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
GetFleetPackageRequest request = new GetFleetPackageRequest
{
    FleetPackageName = FleetPackageName.FromProjectLocationFleetPackage("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]"),
};
// Make the request
FleetPackage response = configDeliveryClient.GetFleetPackage(request);

GetFleetPackage(string, CallSettings)

public virtual FleetPackage GetFleetPackage(string name, CallSettings callSettings = null)

Gets details of a single FleetPackage.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
FleetPackage

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/fleetPackages/[FLEET_PACKAGE]";
// Make the request
FleetPackage response = configDeliveryClient.GetFleetPackage(name);

GetFleetPackageAsync(FleetPackageName, CallSettings)

public virtual Task<FleetPackage> GetFleetPackageAsync(FleetPackageName name, CallSettings callSettings = null)

Gets details of a single FleetPackage.

Parameters
Name Description
name FleetPackageName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskFleetPackage

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
FleetPackageName name = FleetPackageName.FromProjectLocationFleetPackage("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]");
// Make the request
FleetPackage response = await configDeliveryClient.GetFleetPackageAsync(name);

GetFleetPackageAsync(FleetPackageName, CancellationToken)

public virtual Task<FleetPackage> GetFleetPackageAsync(FleetPackageName name, CancellationToken cancellationToken)

Gets details of a single FleetPackage.

Parameters
Name Description
name FleetPackageName

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskFleetPackage

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
FleetPackageName name = FleetPackageName.FromProjectLocationFleetPackage("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]");
// Make the request
FleetPackage response = await configDeliveryClient.GetFleetPackageAsync(name);

GetFleetPackageAsync(GetFleetPackageRequest, CallSettings)

public virtual Task<FleetPackage> GetFleetPackageAsync(GetFleetPackageRequest request, CallSettings callSettings = null)

Gets details of a single FleetPackage.

Parameters
Name Description
request GetFleetPackageRequest

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
TaskFleetPackage

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
GetFleetPackageRequest request = new GetFleetPackageRequest
{
    FleetPackageName = FleetPackageName.FromProjectLocationFleetPackage("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]"),
};
// Make the request
FleetPackage response = await configDeliveryClient.GetFleetPackageAsync(request);

GetFleetPackageAsync(GetFleetPackageRequest, CancellationToken)

public virtual Task<FleetPackage> GetFleetPackageAsync(GetFleetPackageRequest request, CancellationToken cancellationToken)

Gets details of a single FleetPackage.

Parameters
Name Description
request GetFleetPackageRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskFleetPackage

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
GetFleetPackageRequest request = new GetFleetPackageRequest
{
    FleetPackageName = FleetPackageName.FromProjectLocationFleetPackage("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]"),
};
// Make the request
FleetPackage response = await configDeliveryClient.GetFleetPackageAsync(request);

GetFleetPackageAsync(string, CallSettings)

public virtual Task<FleetPackage> GetFleetPackageAsync(string name, CallSettings callSettings = null)

Gets details of a single FleetPackage.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskFleetPackage

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/fleetPackages/[FLEET_PACKAGE]";
// Make the request
FleetPackage response = await configDeliveryClient.GetFleetPackageAsync(name);

GetFleetPackageAsync(string, CancellationToken)

public virtual Task<FleetPackage> GetFleetPackageAsync(string name, CancellationToken cancellationToken)

Gets details of a single FleetPackage.

Parameters
Name Description
name string

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskFleetPackage

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/fleetPackages/[FLEET_PACKAGE]";
// Make the request
FleetPackage response = await configDeliveryClient.GetFleetPackageAsync(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
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
GetReleaseRequest request = new GetReleaseRequest
{
    ReleaseName = ReleaseName.FromProjectLocationResourceBundleRelease("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]"),
};
// Make the request
Release response = configDeliveryClient.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 resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Release

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
ReleaseName name = ReleaseName.FromProjectLocationResourceBundleRelease("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]");
// Make the request
Release response = configDeliveryClient.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 resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Release

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/resourceBundles/[RESOURCE_BUNDLE]/releases/[RELEASE]";
// Make the request
Release response = configDeliveryClient.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
TaskRelease

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
GetReleaseRequest request = new GetReleaseRequest
{
    ReleaseName = ReleaseName.FromProjectLocationResourceBundleRelease("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]"),
};
// Make the request
Release response = await configDeliveryClient.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
TaskRelease

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
GetReleaseRequest request = new GetReleaseRequest
{
    ReleaseName = ReleaseName.FromProjectLocationResourceBundleRelease("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]"),
};
// Make the request
Release response = await configDeliveryClient.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 resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskRelease

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
ReleaseName name = ReleaseName.FromProjectLocationResourceBundleRelease("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]");
// Make the request
Release response = await configDeliveryClient.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 resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskRelease

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
ReleaseName name = ReleaseName.FromProjectLocationResourceBundleRelease("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]");
// Make the request
Release response = await configDeliveryClient.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 resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskRelease

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/resourceBundles/[RESOURCE_BUNDLE]/releases/[RELEASE]";
// Make the request
Release response = await configDeliveryClient.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 resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskRelease

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/resourceBundles/[RESOURCE_BUNDLE]/releases/[RELEASE]";
// Make the request
Release response = await configDeliveryClient.GetReleaseAsync(name);

GetResourceBundle(GetResourceBundleRequest, CallSettings)

public virtual ResourceBundle GetResourceBundle(GetResourceBundleRequest request, CallSettings callSettings = null)

Gets details of a single ResourceBundle.

Parameters
Name Description
request GetResourceBundleRequest

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
ResourceBundle

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
GetResourceBundleRequest request = new GetResourceBundleRequest
{
    ResourceBundleName = ResourceBundleName.FromProjectLocationResourceBundle("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]"),
};
// Make the request
ResourceBundle response = configDeliveryClient.GetResourceBundle(request);

GetResourceBundle(ResourceBundleName, CallSettings)

public virtual ResourceBundle GetResourceBundle(ResourceBundleName name, CallSettings callSettings = null)

Gets details of a single ResourceBundle.

Parameters
Name Description
name ResourceBundleName

Required. Name of the resource.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ResourceBundle

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
ResourceBundleName name = ResourceBundleName.FromProjectLocationResourceBundle("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]");
// Make the request
ResourceBundle response = configDeliveryClient.GetResourceBundle(name);

GetResourceBundle(string, CallSettings)

public virtual ResourceBundle GetResourceBundle(string name, CallSettings callSettings = null)

Gets details of a single ResourceBundle.

Parameters
Name Description
name string

Required. Name of the resource.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ResourceBundle

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/resourceBundles/[RESOURCE_BUNDLE]";
// Make the request
ResourceBundle response = configDeliveryClient.GetResourceBundle(name);

GetResourceBundleAsync(GetResourceBundleRequest, CallSettings)

public virtual Task<ResourceBundle> GetResourceBundleAsync(GetResourceBundleRequest request, CallSettings callSettings = null)

Gets details of a single ResourceBundle.

Parameters
Name Description
request GetResourceBundleRequest

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
TaskResourceBundle

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
GetResourceBundleRequest request = new GetResourceBundleRequest
{
    ResourceBundleName = ResourceBundleName.FromProjectLocationResourceBundle("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]"),
};
// Make the request
ResourceBundle response = await configDeliveryClient.GetResourceBundleAsync(request);

GetResourceBundleAsync(GetResourceBundleRequest, CancellationToken)

public virtual Task<ResourceBundle> GetResourceBundleAsync(GetResourceBundleRequest request, CancellationToken cancellationToken)

Gets details of a single ResourceBundle.

Parameters
Name Description
request GetResourceBundleRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskResourceBundle

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
GetResourceBundleRequest request = new GetResourceBundleRequest
{
    ResourceBundleName = ResourceBundleName.FromProjectLocationResourceBundle("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]"),
};
// Make the request
ResourceBundle response = await configDeliveryClient.GetResourceBundleAsync(request);

GetResourceBundleAsync(ResourceBundleName, CallSettings)

public virtual Task<ResourceBundle> GetResourceBundleAsync(ResourceBundleName name, CallSettings callSettings = null)

Gets details of a single ResourceBundle.

Parameters
Name Description
name ResourceBundleName

Required. Name of the resource.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskResourceBundle

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
ResourceBundleName name = ResourceBundleName.FromProjectLocationResourceBundle("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]");
// Make the request
ResourceBundle response = await configDeliveryClient.GetResourceBundleAsync(name);

GetResourceBundleAsync(ResourceBundleName, CancellationToken)

public virtual Task<ResourceBundle> GetResourceBundleAsync(ResourceBundleName name, CancellationToken cancellationToken)

Gets details of a single ResourceBundle.

Parameters
Name Description
name ResourceBundleName

Required. Name of the resource.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskResourceBundle

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
ResourceBundleName name = ResourceBundleName.FromProjectLocationResourceBundle("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]");
// Make the request
ResourceBundle response = await configDeliveryClient.GetResourceBundleAsync(name);

GetResourceBundleAsync(string, CallSettings)

public virtual Task<ResourceBundle> GetResourceBundleAsync(string name, CallSettings callSettings = null)

Gets details of a single ResourceBundle.

Parameters
Name Description
name string

Required. Name of the resource.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskResourceBundle

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/resourceBundles/[RESOURCE_BUNDLE]";
// Make the request
ResourceBundle response = await configDeliveryClient.GetResourceBundleAsync(name);

GetResourceBundleAsync(string, CancellationToken)

public virtual Task<ResourceBundle> GetResourceBundleAsync(string name, CancellationToken cancellationToken)

Gets details of a single ResourceBundle.

Parameters
Name Description
name string

Required. Name of the resource.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskResourceBundle

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/resourceBundles/[RESOURCE_BUNDLE]";
// Make the request
ResourceBundle response = await configDeliveryClient.GetResourceBundleAsync(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
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
GetRolloutRequest request = new GetRolloutRequest
{
    RolloutName = RolloutName.FromProjectLocationFleetPackageRollout("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]", "[ROLLOUT]"),
};
// Make the request
Rollout response = configDeliveryClient.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 resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Rollout

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
RolloutName name = RolloutName.FromProjectLocationFleetPackageRollout("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]", "[ROLLOUT]");
// Make the request
Rollout response = configDeliveryClient.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 resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Rollout

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/fleetPackages/[FLEET_PACKAGE]/rollouts/[ROLLOUT]";
// Make the request
Rollout response = configDeliveryClient.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
TaskRollout

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
GetRolloutRequest request = new GetRolloutRequest
{
    RolloutName = RolloutName.FromProjectLocationFleetPackageRollout("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]", "[ROLLOUT]"),
};
// Make the request
Rollout response = await configDeliveryClient.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
TaskRollout

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
GetRolloutRequest request = new GetRolloutRequest
{
    RolloutName = RolloutName.FromProjectLocationFleetPackageRollout("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]", "[ROLLOUT]"),
};
// Make the request
Rollout response = await configDeliveryClient.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 resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskRollout

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
RolloutName name = RolloutName.FromProjectLocationFleetPackageRollout("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]", "[ROLLOUT]");
// Make the request
Rollout response = await configDeliveryClient.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 resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskRollout

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
RolloutName name = RolloutName.FromProjectLocationFleetPackageRollout("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]", "[ROLLOUT]");
// Make the request
Rollout response = await configDeliveryClient.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 resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskRollout

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/fleetPackages/[FLEET_PACKAGE]/rollouts/[ROLLOUT]";
// Make the request
Rollout response = await configDeliveryClient.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 resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskRollout

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/fleetPackages/[FLEET_PACKAGE]/rollouts/[ROLLOUT]";
// Make the request
Rollout response = await configDeliveryClient.GetRolloutAsync(name);

GetVariant(GetVariantRequest, CallSettings)

public virtual Variant GetVariant(GetVariantRequest request, CallSettings callSettings = null)

Gets details of a single Variant.

Parameters
Name Description
request GetVariantRequest

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
Variant

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
GetVariantRequest request = new GetVariantRequest
{
    VariantName = VariantName.FromProjectLocationResourceBundleReleaseVariant("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]", "[VARIANT]"),
};
// Make the request
Variant response = configDeliveryClient.GetVariant(request);

GetVariant(VariantName, CallSettings)

public virtual Variant GetVariant(VariantName name, CallSettings callSettings = null)

Gets details of a single Variant.

Parameters
Name Description
name VariantName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Variant

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
VariantName name = VariantName.FromProjectLocationResourceBundleReleaseVariant("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]", "[VARIANT]");
// Make the request
Variant response = configDeliveryClient.GetVariant(name);

GetVariant(string, CallSettings)

public virtual Variant GetVariant(string name, CallSettings callSettings = null)

Gets details of a single Variant.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Variant

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/resourceBundles/[RESOURCE_BUNDLE]/releases/[RELEASE]/variants/[VARIANT]";
// Make the request
Variant response = configDeliveryClient.GetVariant(name);

GetVariantAsync(GetVariantRequest, CallSettings)

public virtual Task<Variant> GetVariantAsync(GetVariantRequest request, CallSettings callSettings = null)

Gets details of a single Variant.

Parameters
Name Description
request GetVariantRequest

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
TaskVariant

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
GetVariantRequest request = new GetVariantRequest
{
    VariantName = VariantName.FromProjectLocationResourceBundleReleaseVariant("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]", "[VARIANT]"),
};
// Make the request
Variant response = await configDeliveryClient.GetVariantAsync(request);

GetVariantAsync(GetVariantRequest, CancellationToken)

public virtual Task<Variant> GetVariantAsync(GetVariantRequest request, CancellationToken cancellationToken)

Gets details of a single Variant.

Parameters
Name Description
request GetVariantRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskVariant

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
GetVariantRequest request = new GetVariantRequest
{
    VariantName = VariantName.FromProjectLocationResourceBundleReleaseVariant("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]", "[VARIANT]"),
};
// Make the request
Variant response = await configDeliveryClient.GetVariantAsync(request);

GetVariantAsync(VariantName, CallSettings)

public virtual Task<Variant> GetVariantAsync(VariantName name, CallSettings callSettings = null)

Gets details of a single Variant.

Parameters
Name Description
name VariantName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskVariant

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
VariantName name = VariantName.FromProjectLocationResourceBundleReleaseVariant("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]", "[VARIANT]");
// Make the request
Variant response = await configDeliveryClient.GetVariantAsync(name);

GetVariantAsync(VariantName, CancellationToken)

public virtual Task<Variant> GetVariantAsync(VariantName name, CancellationToken cancellationToken)

Gets details of a single Variant.

Parameters
Name Description
name VariantName

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskVariant

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
VariantName name = VariantName.FromProjectLocationResourceBundleReleaseVariant("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]", "[VARIANT]");
// Make the request
Variant response = await configDeliveryClient.GetVariantAsync(name);

GetVariantAsync(string, CallSettings)

public virtual Task<Variant> GetVariantAsync(string name, CallSettings callSettings = null)

Gets details of a single Variant.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskVariant

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/resourceBundles/[RESOURCE_BUNDLE]/releases/[RELEASE]/variants/[VARIANT]";
// Make the request
Variant response = await configDeliveryClient.GetVariantAsync(name);

GetVariantAsync(string, CancellationToken)

public virtual Task<Variant> GetVariantAsync(string name, CancellationToken cancellationToken)

Gets details of a single Variant.

Parameters
Name Description
name string

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskVariant

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/resourceBundles/[RESOURCE_BUNDLE]/releases/[RELEASE]/variants/[VARIANT]";
// Make the request
Variant response = await configDeliveryClient.GetVariantAsync(name);

ListFleetPackages(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListFleetPackagesResponse, FleetPackage> ListFleetPackages(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists FleetPackages in a given project and location.

Parameters
Name Description
parent LocationName

Required. Parent value for ListFleetPackagesRequest.

pageToken string

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

pageSize int

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListFleetPackagesResponseFleetPackage

A pageable sequence of FleetPackage resources.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListFleetPackagesResponse, FleetPackage> response = configDeliveryClient.ListFleetPackages(parent);

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

ListFleetPackages(ListFleetPackagesRequest, CallSettings)

public virtual PagedEnumerable<ListFleetPackagesResponse, FleetPackage> ListFleetPackages(ListFleetPackagesRequest request, CallSettings callSettings = null)

Lists FleetPackages in a given project and location.

Parameters
Name Description
request ListFleetPackagesRequest

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
PagedEnumerableListFleetPackagesResponseFleetPackage

A pageable sequence of FleetPackage resources.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
ListFleetPackagesRequest request = new ListFleetPackagesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListFleetPackagesResponse, FleetPackage> response = configDeliveryClient.ListFleetPackages(request);

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

ListFleetPackages(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListFleetPackagesResponse, FleetPackage> ListFleetPackages(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists FleetPackages in a given project and location.

Parameters
Name Description
parent string

Required. Parent value for ListFleetPackagesRequest.

pageToken string

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

pageSize int

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListFleetPackagesResponseFleetPackage

A pageable sequence of FleetPackage resources.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListFleetPackagesResponse, FleetPackage> response = configDeliveryClient.ListFleetPackages(parent);

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

ListFleetPackagesAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListFleetPackagesResponse, FleetPackage> ListFleetPackagesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists FleetPackages in a given project and location.

Parameters
Name Description
parent LocationName

Required. Parent value for ListFleetPackagesRequest.

pageToken string

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

pageSize int

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListFleetPackagesResponseFleetPackage

A pageable asynchronous sequence of FleetPackage resources.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListFleetPackagesResponse, FleetPackage> response = configDeliveryClient.ListFleetPackagesAsync(parent);

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

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListFleetPackagesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (FleetPackage 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<FleetPackage> 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 (FleetPackage 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;

ListFleetPackagesAsync(ListFleetPackagesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListFleetPackagesResponse, FleetPackage> ListFleetPackagesAsync(ListFleetPackagesRequest request, CallSettings callSettings = null)

Lists FleetPackages in a given project and location.

Parameters
Name Description
request ListFleetPackagesRequest

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
PagedAsyncEnumerableListFleetPackagesResponseFleetPackage

A pageable asynchronous sequence of FleetPackage resources.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
ListFleetPackagesRequest request = new ListFleetPackagesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListFleetPackagesResponse, FleetPackage> response = configDeliveryClient.ListFleetPackagesAsync(request);

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

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListFleetPackagesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (FleetPackage 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<FleetPackage> 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 (FleetPackage 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;

ListFleetPackagesAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListFleetPackagesResponse, FleetPackage> ListFleetPackagesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists FleetPackages in a given project and location.

Parameters
Name Description
parent string

Required. Parent value for ListFleetPackagesRequest.

pageToken string

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

pageSize int

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListFleetPackagesResponseFleetPackage

A pageable asynchronous sequence of FleetPackage resources.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListFleetPackagesResponse, FleetPackage> response = configDeliveryClient.ListFleetPackagesAsync(parent);

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

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListFleetPackagesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (FleetPackage 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<FleetPackage> 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 (FleetPackage 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
PagedEnumerableListReleasesResponseRelease

A pageable sequence of Release resources.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
ListReleasesRequest request = new ListReleasesRequest
{
    ParentAsResourceBundleName = ResourceBundleName.FromProjectLocationResourceBundle("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListReleasesResponse, Release> response = configDeliveryClient.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(ResourceBundleName, string, int?, CallSettings)

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

Lists Releases in a given project and location.

Parameters
Name Description
parent ResourceBundleName

Required. Parent value for ListReleasesRequest.

pageToken string

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

pageSize int

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListReleasesResponseRelease

A pageable sequence of Release resources.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
ResourceBundleName parent = ResourceBundleName.FromProjectLocationResourceBundle("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]");
// Make the request
PagedEnumerable<ListReleasesResponse, Release> response = configDeliveryClient.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(string, string, int?, 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. Parent value for ListReleasesRequest.

pageToken string

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

pageSize int

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListReleasesResponseRelease

A pageable sequence of Release resources.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/resourceBundles/[RESOURCE_BUNDLE]";
// Make the request
PagedEnumerable<ListReleasesResponse, Release> response = configDeliveryClient.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(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
PagedAsyncEnumerableListReleasesResponseRelease

A pageable asynchronous sequence of Release resources.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
ListReleasesRequest request = new ListReleasesRequest
{
    ParentAsResourceBundleName = ResourceBundleName.FromProjectLocationResourceBundle("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListReleasesResponse, Release> response = configDeliveryClient.ListReleasesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await 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
await 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 = 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(ResourceBundleName, string, int?, CallSettings)

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

Lists Releases in a given project and location.

Parameters
Name Description
parent ResourceBundleName

Required. Parent value for ListReleasesRequest.

pageToken string

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

pageSize int

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListReleasesResponseRelease

A pageable asynchronous sequence of Release resources.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
ResourceBundleName parent = ResourceBundleName.FromProjectLocationResourceBundle("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]");
// Make the request
PagedAsyncEnumerable<ListReleasesResponse, Release> response = configDeliveryClient.ListReleasesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await 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
await 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 = 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, int?, 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. Parent value for ListReleasesRequest.

pageToken string

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

pageSize int

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListReleasesResponseRelease

A pageable asynchronous sequence of Release resources.

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

// Iterate over all response items, lazily performing RPCs as required
await 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
await 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 = 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;

ListResourceBundles(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListResourceBundlesResponse, ResourceBundle> ListResourceBundles(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ResourceBundles in a given project and location.

Parameters
Name Description
parent LocationName

Required. Parent value for ListResourceBundlesRequest.

pageToken string

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

pageSize int

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListResourceBundlesResponseResourceBundle

A pageable sequence of ResourceBundle resources.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListResourceBundlesResponse, ResourceBundle> response = configDeliveryClient.ListResourceBundles(parent);

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

ListResourceBundles(ListResourceBundlesRequest, CallSettings)

public virtual PagedEnumerable<ListResourceBundlesResponse, ResourceBundle> ListResourceBundles(ListResourceBundlesRequest request, CallSettings callSettings = null)

Lists ResourceBundles in a given project and location.

Parameters
Name Description
request ListResourceBundlesRequest

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
PagedEnumerableListResourceBundlesResponseResourceBundle

A pageable sequence of ResourceBundle resources.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
ListResourceBundlesRequest request = new ListResourceBundlesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListResourceBundlesResponse, ResourceBundle> response = configDeliveryClient.ListResourceBundles(request);

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

ListResourceBundles(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListResourceBundlesResponse, ResourceBundle> ListResourceBundles(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ResourceBundles in a given project and location.

Parameters
Name Description
parent string

Required. Parent value for ListResourceBundlesRequest.

pageToken string

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

pageSize int

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListResourceBundlesResponseResourceBundle

A pageable sequence of ResourceBundle resources.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListResourceBundlesResponse, ResourceBundle> response = configDeliveryClient.ListResourceBundles(parent);

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

ListResourceBundlesAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListResourceBundlesResponse, ResourceBundle> ListResourceBundlesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ResourceBundles in a given project and location.

Parameters
Name Description
parent LocationName

Required. Parent value for ListResourceBundlesRequest.

pageToken string

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

pageSize int

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListResourceBundlesResponseResourceBundle

A pageable asynchronous sequence of ResourceBundle resources.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListResourceBundlesResponse, ResourceBundle> response = configDeliveryClient.ListResourceBundlesAsync(parent);

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

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListResourceBundlesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ResourceBundle 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<ResourceBundle> 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 (ResourceBundle 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;

ListResourceBundlesAsync(ListResourceBundlesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListResourceBundlesResponse, ResourceBundle> ListResourceBundlesAsync(ListResourceBundlesRequest request, CallSettings callSettings = null)

Lists ResourceBundles in a given project and location.

Parameters
Name Description
request ListResourceBundlesRequest

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
PagedAsyncEnumerableListResourceBundlesResponseResourceBundle

A pageable asynchronous sequence of ResourceBundle resources.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
ListResourceBundlesRequest request = new ListResourceBundlesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListResourceBundlesResponse, ResourceBundle> response = configDeliveryClient.ListResourceBundlesAsync(request);

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

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListResourceBundlesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ResourceBundle 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<ResourceBundle> 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 (ResourceBundle 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;

ListResourceBundlesAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListResourceBundlesResponse, ResourceBundle> ListResourceBundlesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ResourceBundles in a given project and location.

Parameters
Name Description
parent string

Required. Parent value for ListResourceBundlesRequest.

pageToken string

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

pageSize int

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListResourceBundlesResponseResourceBundle

A pageable asynchronous sequence of ResourceBundle resources.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListResourceBundlesResponse, ResourceBundle> response = configDeliveryClient.ListResourceBundlesAsync(parent);

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

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListResourceBundlesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ResourceBundle 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<ResourceBundle> 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 (ResourceBundle 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(FleetPackageName, string, int?, CallSettings)

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

Lists Rollouts in a given project, location, and Fleet Package.

Parameters
Name Description
parent FleetPackageName

Required. Parent value for ListRolloutsRequest

pageToken string

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

pageSize int

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListRolloutsResponseRollout

A pageable sequence of Rollout resources.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
FleetPackageName parent = FleetPackageName.FromProjectLocationFleetPackage("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]");
// Make the request
PagedEnumerable<ListRolloutsResponse, Rollout> response = configDeliveryClient.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(ListRolloutsRequest, CallSettings)

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

Lists Rollouts in a given project, location, and Fleet Package.

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
PagedEnumerableListRolloutsResponseRollout

A pageable sequence of Rollout resources.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
ListRolloutsRequest request = new ListRolloutsRequest
{
    ParentAsFleetPackageName = FleetPackageName.FromProjectLocationFleetPackage("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListRolloutsResponse, Rollout> response = configDeliveryClient.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(string, string, int?, CallSettings)

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

Lists Rollouts in a given project, location, and Fleet Package.

Parameters
Name Description
parent string

Required. Parent value for ListRolloutsRequest

pageToken string

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

pageSize int

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListRolloutsResponseRollout

A pageable sequence of Rollout resources.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/fleetPackages/[FLEET_PACKAGE]";
// Make the request
PagedEnumerable<ListRolloutsResponse, Rollout> response = configDeliveryClient.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(FleetPackageName, string, int?, CallSettings)

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

Lists Rollouts in a given project, location, and Fleet Package.

Parameters
Name Description
parent FleetPackageName

Required. Parent value for ListRolloutsRequest

pageToken string

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

pageSize int

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListRolloutsResponseRollout

A pageable asynchronous sequence of Rollout resources.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
FleetPackageName parent = FleetPackageName.FromProjectLocationFleetPackage("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]");
// Make the request
PagedAsyncEnumerable<ListRolloutsResponse, Rollout> response = configDeliveryClient.ListRolloutsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await 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
await 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 = 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(ListRolloutsRequest, CallSettings)

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

Lists Rollouts in a given project, location, and Fleet Package.

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
PagedAsyncEnumerableListRolloutsResponseRollout

A pageable asynchronous sequence of Rollout resources.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
ListRolloutsRequest request = new ListRolloutsRequest
{
    ParentAsFleetPackageName = FleetPackageName.FromProjectLocationFleetPackage("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListRolloutsResponse, Rollout> response = configDeliveryClient.ListRolloutsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await 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
await 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 = 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, int?, CallSettings)

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

Lists Rollouts in a given project, location, and Fleet Package.

Parameters
Name Description
parent string

Required. Parent value for ListRolloutsRequest

pageToken string

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

pageSize int

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListRolloutsResponseRollout

A pageable asynchronous sequence of Rollout resources.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/fleetPackages/[FLEET_PACKAGE]";
// Make the request
PagedAsyncEnumerable<ListRolloutsResponse, Rollout> response = configDeliveryClient.ListRolloutsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await 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
await 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 = 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;

ListVariants(ListVariantsRequest, CallSettings)

public virtual PagedEnumerable<ListVariantsResponse, Variant> ListVariants(ListVariantsRequest request, CallSettings callSettings = null)

Lists Variants in a given project and location.

Parameters
Name Description
request ListVariantsRequest

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
PagedEnumerableListVariantsResponseVariant

A pageable sequence of Variant resources.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
ListVariantsRequest request = new ListVariantsRequest
{
    ParentAsReleaseName = ReleaseName.FromProjectLocationResourceBundleRelease("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListVariantsResponse, Variant> response = configDeliveryClient.ListVariants(request);

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

ListVariants(ReleaseName, string, int?, CallSettings)

public virtual PagedEnumerable<ListVariantsResponse, Variant> ListVariants(ReleaseName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Variants in a given project and location.

Parameters
Name Description
parent ReleaseName

Required. Parent value for ListVariantsRequest.

pageToken string

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

pageSize int

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListVariantsResponseVariant

A pageable sequence of Variant resources.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
ReleaseName parent = ReleaseName.FromProjectLocationResourceBundleRelease("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]");
// Make the request
PagedEnumerable<ListVariantsResponse, Variant> response = configDeliveryClient.ListVariants(parent);

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

ListVariants(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListVariantsResponse, Variant> ListVariants(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Variants in a given project and location.

Parameters
Name Description
parent string

Required. Parent value for ListVariantsRequest.

pageToken string

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

pageSize int

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListVariantsResponseVariant

A pageable sequence of Variant resources.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/resourceBundles/[RESOURCE_BUNDLE]/releases/[RELEASE]";
// Make the request
PagedEnumerable<ListVariantsResponse, Variant> response = configDeliveryClient.ListVariants(parent);

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

ListVariantsAsync(ListVariantsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListVariantsResponse, Variant> ListVariantsAsync(ListVariantsRequest request, CallSettings callSettings = null)

Lists Variants in a given project and location.

Parameters
Name Description
request ListVariantsRequest

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
PagedAsyncEnumerableListVariantsResponseVariant

A pageable asynchronous sequence of Variant resources.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
ListVariantsRequest request = new ListVariantsRequest
{
    ParentAsReleaseName = ReleaseName.FromProjectLocationResourceBundleRelease("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListVariantsResponse, Variant> response = configDeliveryClient.ListVariantsAsync(request);

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

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListVariantsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Variant 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<Variant> 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 (Variant 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;

ListVariantsAsync(ReleaseName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListVariantsResponse, Variant> ListVariantsAsync(ReleaseName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Variants in a given project and location.

Parameters
Name Description
parent ReleaseName

Required. Parent value for ListVariantsRequest.

pageToken string

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

pageSize int

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListVariantsResponseVariant

A pageable asynchronous sequence of Variant resources.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
ReleaseName parent = ReleaseName.FromProjectLocationResourceBundleRelease("[PROJECT]", "[LOCATION]", "[RESOURCE_BUNDLE]", "[RELEASE]");
// Make the request
PagedAsyncEnumerable<ListVariantsResponse, Variant> response = configDeliveryClient.ListVariantsAsync(parent);

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

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListVariantsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Variant 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<Variant> 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 (Variant 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;

ListVariantsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListVariantsResponse, Variant> ListVariantsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Variants in a given project and location.

Parameters
Name Description
parent string

Required. Parent value for ListVariantsRequest.

pageToken string

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

pageSize int

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListVariantsResponseVariant

A pageable asynchronous sequence of Variant resources.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/resourceBundles/[RESOURCE_BUNDLE]/releases/[RELEASE]";
// Make the request
PagedAsyncEnumerable<ListVariantsResponse, Variant> response = configDeliveryClient.ListVariantsAsync(parent);

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

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListVariantsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Variant 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<Variant> 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 (Variant 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;

PollOnceAbortRollout(string, CallSettings)

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

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

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
OperationRolloutOperationMetadata

The result of polling the operation.

PollOnceAbortRolloutAsync(string, CallSettings)

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

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

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
TaskOperationRolloutOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateFleetPackage(string, CallSettings)

public virtual Operation<FleetPackage, OperationMetadata> PollOnceCreateFleetPackage(string operationName, CallSettings callSettings = null)

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

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
OperationFleetPackageOperationMetadata

The result of polling the operation.

PollOnceCreateFleetPackageAsync(string, CallSettings)

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

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

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
TaskOperationFleetPackageOperationMetadata

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
OperationReleaseOperationMetadata

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
TaskOperationReleaseOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateResourceBundle(string, CallSettings)

public virtual Operation<ResourceBundle, OperationMetadata> PollOnceCreateResourceBundle(string operationName, CallSettings callSettings = null)

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

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
OperationResourceBundleOperationMetadata

The result of polling the operation.

PollOnceCreateResourceBundleAsync(string, CallSettings)

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

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

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
TaskOperationResourceBundleOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateVariant(string, CallSettings)

public virtual Operation<Variant, OperationMetadata> PollOnceCreateVariant(string operationName, CallSettings callSettings = null)

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

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
OperationVariantOperationMetadata

The result of polling the operation.

PollOnceCreateVariantAsync(string, CallSettings)

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

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

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
TaskOperationVariantOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteFleetPackage(string, CallSettings)

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

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

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
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteFleetPackageAsync(string, CallSettings)

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

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

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
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteRelease(string, CallSettings)

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

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

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
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteReleaseAsync(string, CallSettings)

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

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

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
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteResourceBundle(string, CallSettings)

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

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

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
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteResourceBundleAsync(string, CallSettings)

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

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

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
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteVariant(string, CallSettings)

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

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

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
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteVariantAsync(string, CallSettings)

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

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

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
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceResumeRollout(string, CallSettings)

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

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

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
OperationRolloutOperationMetadata

The result of polling the operation.

PollOnceResumeRolloutAsync(string, CallSettings)

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

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

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
TaskOperationRolloutOperationMetadata

A task representing the result of polling the operation.

PollOnceSuspendRollout(string, CallSettings)

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

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

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
OperationRolloutOperationMetadata

The result of polling the operation.

PollOnceSuspendRolloutAsync(string, CallSettings)

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

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

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
TaskOperationRolloutOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateFleetPackage(string, CallSettings)

public virtual Operation<FleetPackage, OperationMetadata> PollOnceUpdateFleetPackage(string operationName, CallSettings callSettings = null)

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

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
OperationFleetPackageOperationMetadata

The result of polling the operation.

PollOnceUpdateFleetPackageAsync(string, CallSettings)

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

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

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
TaskOperationFleetPackageOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateRelease(string, CallSettings)

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

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

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
OperationReleaseOperationMetadata

The result of polling the operation.

PollOnceUpdateReleaseAsync(string, CallSettings)

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

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

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
TaskOperationReleaseOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateResourceBundle(string, CallSettings)

public virtual Operation<ResourceBundle, OperationMetadata> PollOnceUpdateResourceBundle(string operationName, CallSettings callSettings = null)

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

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
OperationResourceBundleOperationMetadata

The result of polling the operation.

PollOnceUpdateResourceBundleAsync(string, CallSettings)

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

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

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
TaskOperationResourceBundleOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateVariant(string, CallSettings)

public virtual Operation<Variant, OperationMetadata> PollOnceUpdateVariant(string operationName, CallSettings callSettings = null)

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

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
OperationVariantOperationMetadata

The result of polling the operation.

PollOnceUpdateVariantAsync(string, CallSettings)

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

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

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
TaskOperationVariantOperationMetadata

A task representing the result of polling the operation.

ResumeRollout(ResumeRolloutRequest, CallSettings)

public virtual Operation<Rollout, OperationMetadata> ResumeRollout(ResumeRolloutRequest request, CallSettings callSettings = null)

Resume a Rollout.

Parameters
Name Description
request ResumeRolloutRequest

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
OperationRolloutOperationMetadata

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
ResumeRolloutRequest request = new ResumeRolloutRequest
{
    RolloutName = RolloutName.FromProjectLocationFleetPackageRollout("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]", "[ROLLOUT]"),
    Reason = "",
};
// Make the request
Operation<Rollout, OperationMetadata> response = configDeliveryClient.ResumeRollout(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 = configDeliveryClient.PollOnceResumeRollout(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;
}

ResumeRollout(RolloutName, CallSettings)

public virtual Operation<Rollout, OperationMetadata> ResumeRollout(RolloutName name, CallSettings callSettings = null)

Resume a Rollout.

Parameters
Name Description
name RolloutName

Required. Name of the Rollout.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationRolloutOperationMetadata

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
RolloutName name = RolloutName.FromProjectLocationFleetPackageRollout("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]", "[ROLLOUT]");
// Make the request
Operation<Rollout, OperationMetadata> response = configDeliveryClient.ResumeRollout(name);

// 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 = configDeliveryClient.PollOnceResumeRollout(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;
}

ResumeRollout(string, CallSettings)

public virtual Operation<Rollout, OperationMetadata> ResumeRollout(string name, CallSettings callSettings = null)

Resume a Rollout.

Parameters
Name Description
name string

Required. Name of the Rollout.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationRolloutOperationMetadata

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/fleetPackages/[FLEET_PACKAGE]/rollouts/[ROLLOUT]";
// Make the request
Operation<Rollout, OperationMetadata> response = configDeliveryClient.ResumeRollout(name);

// 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 = configDeliveryClient.PollOnceResumeRollout(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;
}

ResumeRolloutAsync(ResumeRolloutRequest, CallSettings)

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

Resume a Rollout.

Parameters
Name Description
request ResumeRolloutRequest

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
TaskOperationRolloutOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
ResumeRolloutRequest request = new ResumeRolloutRequest
{
    RolloutName = RolloutName.FromProjectLocationFleetPackageRollout("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]", "[ROLLOUT]"),
    Reason = "",
};
// Make the request
Operation<Rollout, OperationMetadata> response = await configDeliveryClient.ResumeRolloutAsync(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 configDeliveryClient.PollOnceResumeRolloutAsync(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;
}

ResumeRolloutAsync(ResumeRolloutRequest, CancellationToken)

public virtual Task<Operation<Rollout, OperationMetadata>> ResumeRolloutAsync(ResumeRolloutRequest request, CancellationToken cancellationToken)

Resume a Rollout.

Parameters
Name Description
request ResumeRolloutRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationRolloutOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
ResumeRolloutRequest request = new ResumeRolloutRequest
{
    RolloutName = RolloutName.FromProjectLocationFleetPackageRollout("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]", "[ROLLOUT]"),
    Reason = "",
};
// Make the request
Operation<Rollout, OperationMetadata> response = await configDeliveryClient.ResumeRolloutAsync(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 configDeliveryClient.PollOnceResumeRolloutAsync(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;
}

ResumeRolloutAsync(RolloutName, CallSettings)

public virtual Task<Operation<Rollout, OperationMetadata>> ResumeRolloutAsync(RolloutName name, CallSettings callSettings = null)

Resume a Rollout.

Parameters
Name Description
name RolloutName

Required. Name of the Rollout.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationRolloutOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
RolloutName name = RolloutName.FromProjectLocationFleetPackageRollout("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]", "[ROLLOUT]");
// Make the request
Operation<Rollout, OperationMetadata> response = await configDeliveryClient.ResumeRolloutAsync(name);

// 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 configDeliveryClient.PollOnceResumeRolloutAsync(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;
}

ResumeRolloutAsync(RolloutName, CancellationToken)

public virtual Task<Operation<Rollout, OperationMetadata>> ResumeRolloutAsync(RolloutName name, CancellationToken cancellationToken)

Resume a Rollout.

Parameters
Name Description
name RolloutName

Required. Name of the Rollout.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationRolloutOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
RolloutName name = RolloutName.FromProjectLocationFleetPackageRollout("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]", "[ROLLOUT]");
// Make the request
Operation<Rollout, OperationMetadata> response = await configDeliveryClient.ResumeRolloutAsync(name);

// 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 configDeliveryClient.PollOnceResumeRolloutAsync(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;
}

ResumeRolloutAsync(string, CallSettings)

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

Resume a Rollout.

Parameters
Name Description
name string

Required. Name of the Rollout.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationRolloutOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/fleetPackages/[FLEET_PACKAGE]/rollouts/[ROLLOUT]";
// Make the request
Operation<Rollout, OperationMetadata> response = await configDeliveryClient.ResumeRolloutAsync(name);

// 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 configDeliveryClient.PollOnceResumeRolloutAsync(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;
}

ResumeRolloutAsync(string, CancellationToken)

public virtual Task<Operation<Rollout, OperationMetadata>> ResumeRolloutAsync(string name, CancellationToken cancellationToken)

Resume a Rollout.

Parameters
Name Description
name string

Required. Name of the Rollout.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationRolloutOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/fleetPackages/[FLEET_PACKAGE]/rollouts/[ROLLOUT]";
// Make the request
Operation<Rollout, OperationMetadata> response = await configDeliveryClient.ResumeRolloutAsync(name);

// 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 configDeliveryClient.PollOnceResumeRolloutAsync(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;
}

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.

SuspendRollout(RolloutName, CallSettings)

public virtual Operation<Rollout, OperationMetadata> SuspendRollout(RolloutName name, CallSettings callSettings = null)

Suspend a Rollout.

Parameters
Name Description
name RolloutName

Required. Name of the Rollout.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationRolloutOperationMetadata

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
RolloutName name = RolloutName.FromProjectLocationFleetPackageRollout("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]", "[ROLLOUT]");
// Make the request
Operation<Rollout, OperationMetadata> response = configDeliveryClient.SuspendRollout(name);

// 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 = configDeliveryClient.PollOnceSuspendRollout(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;
}

SuspendRollout(SuspendRolloutRequest, CallSettings)

public virtual Operation<Rollout, OperationMetadata> SuspendRollout(SuspendRolloutRequest request, CallSettings callSettings = null)

Suspend a Rollout.

Parameters
Name Description
request SuspendRolloutRequest

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
OperationRolloutOperationMetadata

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
SuspendRolloutRequest request = new SuspendRolloutRequest
{
    RolloutName = RolloutName.FromProjectLocationFleetPackageRollout("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]", "[ROLLOUT]"),
    Reason = "",
};
// Make the request
Operation<Rollout, OperationMetadata> response = configDeliveryClient.SuspendRollout(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 = configDeliveryClient.PollOnceSuspendRollout(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;
}

SuspendRollout(string, CallSettings)

public virtual Operation<Rollout, OperationMetadata> SuspendRollout(string name, CallSettings callSettings = null)

Suspend a Rollout.

Parameters
Name Description
name string

Required. Name of the Rollout.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationRolloutOperationMetadata

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/fleetPackages/[FLEET_PACKAGE]/rollouts/[ROLLOUT]";
// Make the request
Operation<Rollout, OperationMetadata> response = configDeliveryClient.SuspendRollout(name);

// 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 = configDeliveryClient.PollOnceSuspendRollout(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;
}

SuspendRolloutAsync(RolloutName, CallSettings)

public virtual Task<Operation<Rollout, OperationMetadata>> SuspendRolloutAsync(RolloutName name, CallSettings callSettings = null)

Suspend a Rollout.

Parameters
Name Description
name RolloutName

Required. Name of the Rollout.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationRolloutOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
RolloutName name = RolloutName.FromProjectLocationFleetPackageRollout("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]", "[ROLLOUT]");
// Make the request
Operation<Rollout, OperationMetadata> response = await configDeliveryClient.SuspendRolloutAsync(name);

// 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 configDeliveryClient.PollOnceSuspendRolloutAsync(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;
}

SuspendRolloutAsync(RolloutName, CancellationToken)

public virtual Task<Operation<Rollout, OperationMetadata>> SuspendRolloutAsync(RolloutName name, CancellationToken cancellationToken)

Suspend a Rollout.

Parameters
Name Description
name RolloutName

Required. Name of the Rollout.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationRolloutOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
RolloutName name = RolloutName.FromProjectLocationFleetPackageRollout("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]", "[ROLLOUT]");
// Make the request
Operation<Rollout, OperationMetadata> response = await configDeliveryClient.SuspendRolloutAsync(name);

// 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 configDeliveryClient.PollOnceSuspendRolloutAsync(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;
}

SuspendRolloutAsync(SuspendRolloutRequest, CallSettings)

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

Suspend a Rollout.

Parameters
Name Description
request SuspendRolloutRequest

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
TaskOperationRolloutOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
SuspendRolloutRequest request = new SuspendRolloutRequest
{
    RolloutName = RolloutName.FromProjectLocationFleetPackageRollout("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]", "[ROLLOUT]"),
    Reason = "",
};
// Make the request
Operation<Rollout, OperationMetadata> response = await configDeliveryClient.SuspendRolloutAsync(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 configDeliveryClient.PollOnceSuspendRolloutAsync(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;
}

SuspendRolloutAsync(SuspendRolloutRequest, CancellationToken)

public virtual Task<Operation<Rollout, OperationMetadata>> SuspendRolloutAsync(SuspendRolloutRequest request, CancellationToken cancellationToken)

Suspend a Rollout.

Parameters
Name Description
request SuspendRolloutRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationRolloutOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
SuspendRolloutRequest request = new SuspendRolloutRequest
{
    RolloutName = RolloutName.FromProjectLocationFleetPackageRollout("[PROJECT]", "[LOCATION]", "[FLEET_PACKAGE]", "[ROLLOUT]"),
    Reason = "",
};
// Make the request
Operation<Rollout, OperationMetadata> response = await configDeliveryClient.SuspendRolloutAsync(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 configDeliveryClient.PollOnceSuspendRolloutAsync(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;
}

SuspendRolloutAsync(string, CallSettings)

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

Suspend a Rollout.

Parameters
Name Description
name string

Required. Name of the Rollout.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationRolloutOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/fleetPackages/[FLEET_PACKAGE]/rollouts/[ROLLOUT]";
// Make the request
Operation<Rollout, OperationMetadata> response = await configDeliveryClient.SuspendRolloutAsync(name);

// 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 configDeliveryClient.PollOnceSuspendRolloutAsync(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;
}

SuspendRolloutAsync(string, CancellationToken)

public virtual Task<Operation<Rollout, OperationMetadata>> SuspendRolloutAsync(string name, CancellationToken cancellationToken)

Suspend a Rollout.

Parameters
Name Description
name string

Required. Name of the Rollout.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationRolloutOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/fleetPackages/[FLEET_PACKAGE]/rollouts/[ROLLOUT]";
// Make the request
Operation<Rollout, OperationMetadata> response = await configDeliveryClient.SuspendRolloutAsync(name);

// 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 configDeliveryClient.PollOnceSuspendRolloutAsync(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;
}

UpdateFleetPackage(FleetPackage, FieldMask, CallSettings)

public virtual Operation<FleetPackage, OperationMetadata> UpdateFleetPackage(FleetPackage fleetPackage, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single FleetPackage.

Parameters
Name Description
fleetPackage FleetPackage

Required. The resource being updated

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the FleetPackage 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
OperationFleetPackageOperationMetadata

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
FleetPackage fleetPackage = new FleetPackage();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<FleetPackage, OperationMetadata> response = configDeliveryClient.UpdateFleetPackage(fleetPackage, updateMask);

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

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

UpdateFleetPackage(UpdateFleetPackageRequest, CallSettings)

public virtual Operation<FleetPackage, OperationMetadata> UpdateFleetPackage(UpdateFleetPackageRequest request, CallSettings callSettings = null)

Updates the parameters of a single FleetPackage.

Parameters
Name Description
request UpdateFleetPackageRequest

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
OperationFleetPackageOperationMetadata

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
UpdateFleetPackageRequest request = new UpdateFleetPackageRequest
{
    UpdateMask = new FieldMask(),
    FleetPackage = new FleetPackage(),
    RequestId = "",
};
// Make the request
Operation<FleetPackage, OperationMetadata> response = configDeliveryClient.UpdateFleetPackage(request);

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

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

UpdateFleetPackageAsync(FleetPackage, FieldMask, CallSettings)

public virtual Task<Operation<FleetPackage, OperationMetadata>> UpdateFleetPackageAsync(FleetPackage fleetPackage, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single FleetPackage.

Parameters
Name Description
fleetPackage FleetPackage

Required. The resource being updated

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the FleetPackage 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
TaskOperationFleetPackageOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
FleetPackage fleetPackage = new FleetPackage();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<FleetPackage, OperationMetadata> response = await configDeliveryClient.UpdateFleetPackageAsync(fleetPackage, updateMask);

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

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

UpdateFleetPackageAsync(FleetPackage, FieldMask, CancellationToken)

public virtual Task<Operation<FleetPackage, OperationMetadata>> UpdateFleetPackageAsync(FleetPackage fleetPackage, FieldMask updateMask, CancellationToken cancellationToken)

Updates the parameters of a single FleetPackage.

Parameters
Name Description
fleetPackage FleetPackage

Required. The resource being updated

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the FleetPackage 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
TaskOperationFleetPackageOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
FleetPackage fleetPackage = new FleetPackage();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<FleetPackage, OperationMetadata> response = await configDeliveryClient.UpdateFleetPackageAsync(fleetPackage, updateMask);

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

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

UpdateFleetPackageAsync(UpdateFleetPackageRequest, CallSettings)

public virtual Task<Operation<FleetPackage, OperationMetadata>> UpdateFleetPackageAsync(UpdateFleetPackageRequest request, CallSettings callSettings = null)

Updates the parameters of a single FleetPackage.

Parameters
Name Description
request UpdateFleetPackageRequest

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
TaskOperationFleetPackageOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
UpdateFleetPackageRequest request = new UpdateFleetPackageRequest
{
    UpdateMask = new FieldMask(),
    FleetPackage = new FleetPackage(),
    RequestId = "",
};
// Make the request
Operation<FleetPackage, OperationMetadata> response = await configDeliveryClient.UpdateFleetPackageAsync(request);

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

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

UpdateFleetPackageAsync(UpdateFleetPackageRequest, CancellationToken)

public virtual Task<Operation<FleetPackage, OperationMetadata>> UpdateFleetPackageAsync(UpdateFleetPackageRequest request, CancellationToken cancellationToken)

Updates the parameters of a single FleetPackage.

Parameters
Name Description
request UpdateFleetPackageRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationFleetPackageOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
UpdateFleetPackageRequest request = new UpdateFleetPackageRequest
{
    UpdateMask = new FieldMask(),
    FleetPackage = new FleetPackage(),
    RequestId = "",
};
// Make the request
Operation<FleetPackage, OperationMetadata> response = await configDeliveryClient.UpdateFleetPackageAsync(request);

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

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

UpdateRelease(Release, FieldMask, CallSettings)

public virtual Operation<Release, OperationMetadata> UpdateRelease(Release release, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single Release.

Parameters
Name Description
release Release

Required. The resource being updated

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the Release 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
OperationReleaseOperationMetadata

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
Release release = new Release();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Release, OperationMetadata> response = configDeliveryClient.UpdateRelease(release, updateMask);

// 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 = configDeliveryClient.PollOnceUpdateRelease(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;
}

UpdateRelease(UpdateReleaseRequest, CallSettings)

public virtual Operation<Release, OperationMetadata> UpdateRelease(UpdateReleaseRequest request, CallSettings callSettings = null)

Updates the parameters of a single Release.

Parameters
Name Description
request UpdateReleaseRequest

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
OperationReleaseOperationMetadata

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
UpdateReleaseRequest request = new UpdateReleaseRequest
{
    UpdateMask = new FieldMask(),
    Release = new Release(),
    RequestId = "",
};
// Make the request
Operation<Release, OperationMetadata> response = configDeliveryClient.UpdateRelease(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 = configDeliveryClient.PollOnceUpdateRelease(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;
}

UpdateReleaseAsync(Release, FieldMask, CallSettings)

public virtual Task<Operation<Release, OperationMetadata>> UpdateReleaseAsync(Release release, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single Release.

Parameters
Name Description
release Release

Required. The resource being updated

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the Release 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
TaskOperationReleaseOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
Release release = new Release();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Release, OperationMetadata> response = await configDeliveryClient.UpdateReleaseAsync(release, updateMask);

// 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 configDeliveryClient.PollOnceUpdateReleaseAsync(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;
}

UpdateReleaseAsync(Release, FieldMask, CancellationToken)

public virtual Task<Operation<Release, OperationMetadata>> UpdateReleaseAsync(Release release, FieldMask updateMask, CancellationToken cancellationToken)

Updates the parameters of a single Release.

Parameters
Name Description
release Release

Required. The resource being updated

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the Release 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
TaskOperationReleaseOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
Release release = new Release();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Release, OperationMetadata> response = await configDeliveryClient.UpdateReleaseAsync(release, updateMask);

// 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 configDeliveryClient.PollOnceUpdateReleaseAsync(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;
}

UpdateReleaseAsync(UpdateReleaseRequest, CallSettings)

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

Updates the parameters of a single Release.

Parameters
Name Description
request UpdateReleaseRequest

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
TaskOperationReleaseOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
UpdateReleaseRequest request = new UpdateReleaseRequest
{
    UpdateMask = new FieldMask(),
    Release = new Release(),
    RequestId = "",
};
// Make the request
Operation<Release, OperationMetadata> response = await configDeliveryClient.UpdateReleaseAsync(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 configDeliveryClient.PollOnceUpdateReleaseAsync(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;
}

UpdateReleaseAsync(UpdateReleaseRequest, CancellationToken)

public virtual Task<Operation<Release, OperationMetadata>> UpdateReleaseAsync(UpdateReleaseRequest request, CancellationToken cancellationToken)

Updates the parameters of a single Release.

Parameters
Name Description
request UpdateReleaseRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationReleaseOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
UpdateReleaseRequest request = new UpdateReleaseRequest
{
    UpdateMask = new FieldMask(),
    Release = new Release(),
    RequestId = "",
};
// Make the request
Operation<Release, OperationMetadata> response = await configDeliveryClient.UpdateReleaseAsync(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 configDeliveryClient.PollOnceUpdateReleaseAsync(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;
}

UpdateResourceBundle(ResourceBundle, FieldMask, CallSettings)

public virtual Operation<ResourceBundle, OperationMetadata> UpdateResourceBundle(ResourceBundle resourceBundle, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single ResourceBundle.

Parameters
Name Description
resourceBundle ResourceBundle

Required. The resource being updated

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the ResourceBundle 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
OperationResourceBundleOperationMetadata

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
ResourceBundle resourceBundle = new ResourceBundle();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<ResourceBundle, OperationMetadata> response = configDeliveryClient.UpdateResourceBundle(resourceBundle, updateMask);

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

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

UpdateResourceBundle(UpdateResourceBundleRequest, CallSettings)

public virtual Operation<ResourceBundle, OperationMetadata> UpdateResourceBundle(UpdateResourceBundleRequest request, CallSettings callSettings = null)

Updates the parameters of a single ResourceBundle.

Parameters
Name Description
request UpdateResourceBundleRequest

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
OperationResourceBundleOperationMetadata

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
UpdateResourceBundleRequest request = new UpdateResourceBundleRequest
{
    UpdateMask = new FieldMask(),
    ResourceBundle = new ResourceBundle(),
    RequestId = "",
};
// Make the request
Operation<ResourceBundle, OperationMetadata> response = configDeliveryClient.UpdateResourceBundle(request);

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

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

UpdateResourceBundleAsync(ResourceBundle, FieldMask, CallSettings)

public virtual Task<Operation<ResourceBundle, OperationMetadata>> UpdateResourceBundleAsync(ResourceBundle resourceBundle, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single ResourceBundle.

Parameters
Name Description
resourceBundle ResourceBundle

Required. The resource being updated

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the ResourceBundle 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
TaskOperationResourceBundleOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
ResourceBundle resourceBundle = new ResourceBundle();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<ResourceBundle, OperationMetadata> response = await configDeliveryClient.UpdateResourceBundleAsync(resourceBundle, updateMask);

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

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

UpdateResourceBundleAsync(ResourceBundle, FieldMask, CancellationToken)

public virtual Task<Operation<ResourceBundle, OperationMetadata>> UpdateResourceBundleAsync(ResourceBundle resourceBundle, FieldMask updateMask, CancellationToken cancellationToken)

Updates the parameters of a single ResourceBundle.

Parameters
Name Description
resourceBundle ResourceBundle

Required. The resource being updated

updateMask FieldMask

Required. Field mask is used to specify the fields to be overwritten in the ResourceBundle 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
TaskOperationResourceBundleOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
ResourceBundle resourceBundle = new ResourceBundle();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<ResourceBundle, OperationMetadata> response = await configDeliveryClient.UpdateResourceBundleAsync(resourceBundle, updateMask);

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

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

UpdateResourceBundleAsync(UpdateResourceBundleRequest, CallSettings)

public virtual Task<Operation<ResourceBundle, OperationMetadata>> UpdateResourceBundleAsync(UpdateResourceBundleRequest request, CallSettings callSettings = null)

Updates the parameters of a single ResourceBundle.

Parameters
Name Description
request UpdateResourceBundleRequest

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
TaskOperationResourceBundleOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
UpdateResourceBundleRequest request = new UpdateResourceBundleRequest
{
    UpdateMask = new FieldMask(),
    ResourceBundle = new ResourceBundle(),
    RequestId = "",
};
// Make the request
Operation<ResourceBundle, OperationMetadata> response = await configDeliveryClient.UpdateResourceBundleAsync(request);

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

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

UpdateResourceBundleAsync(UpdateResourceBundleRequest, CancellationToken)

public virtual Task<Operation<ResourceBundle, OperationMetadata>> UpdateResourceBundleAsync(UpdateResourceBundleRequest request, CancellationToken cancellationToken)

Updates the parameters of a single ResourceBundle.

Parameters
Name Description
request UpdateResourceBundleRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationResourceBundleOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
UpdateResourceBundleRequest request = new UpdateResourceBundleRequest
{
    UpdateMask = new FieldMask(),
    ResourceBundle = new ResourceBundle(),
    RequestId = "",
};
// Make the request
Operation<ResourceBundle, OperationMetadata> response = await configDeliveryClient.UpdateResourceBundleAsync(request);

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

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

UpdateVariant(UpdateVariantRequest, CallSettings)

public virtual Operation<Variant, OperationMetadata> UpdateVariant(UpdateVariantRequest request, CallSettings callSettings = null)

Updates the parameters of a single Variant.

Parameters
Name Description
request UpdateVariantRequest

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
OperationVariantOperationMetadata

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
UpdateVariantRequest request = new UpdateVariantRequest
{
    UpdateMask = new FieldMask(),
    Variant = new Variant(),
    RequestId = "",
};
// Make the request
Operation<Variant, OperationMetadata> response = configDeliveryClient.UpdateVariant(request);

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

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

UpdateVariant(Variant, FieldMask, CallSettings)

public virtual Operation<Variant, OperationMetadata> UpdateVariant(Variant variant, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single Variant.

Parameters
Name Description
variant Variant

Required. The resource being updated

updateMask FieldMask

Optional. Field mask is used to specify the fields to be overwritten in the Variant 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
OperationVariantOperationMetadata

The RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = ConfigDeliveryClient.Create();
// Initialize request argument(s)
Variant variant = new Variant();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Variant, OperationMetadata> response = configDeliveryClient.UpdateVariant(variant, updateMask);

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

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

UpdateVariantAsync(UpdateVariantRequest, CallSettings)

public virtual Task<Operation<Variant, OperationMetadata>> UpdateVariantAsync(UpdateVariantRequest request, CallSettings callSettings = null)

Updates the parameters of a single Variant.

Parameters
Name Description
request UpdateVariantRequest

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
TaskOperationVariantOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
UpdateVariantRequest request = new UpdateVariantRequest
{
    UpdateMask = new FieldMask(),
    Variant = new Variant(),
    RequestId = "",
};
// Make the request
Operation<Variant, OperationMetadata> response = await configDeliveryClient.UpdateVariantAsync(request);

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

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

UpdateVariantAsync(UpdateVariantRequest, CancellationToken)

public virtual Task<Operation<Variant, OperationMetadata>> UpdateVariantAsync(UpdateVariantRequest request, CancellationToken cancellationToken)

Updates the parameters of a single Variant.

Parameters
Name Description
request UpdateVariantRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationVariantOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
UpdateVariantRequest request = new UpdateVariantRequest
{
    UpdateMask = new FieldMask(),
    Variant = new Variant(),
    RequestId = "",
};
// Make the request
Operation<Variant, OperationMetadata> response = await configDeliveryClient.UpdateVariantAsync(request);

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

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

UpdateVariantAsync(Variant, FieldMask, CallSettings)

public virtual Task<Operation<Variant, OperationMetadata>> UpdateVariantAsync(Variant variant, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single Variant.

Parameters
Name Description
variant Variant

Required. The resource being updated

updateMask FieldMask

Optional. Field mask is used to specify the fields to be overwritten in the Variant 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
TaskOperationVariantOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
Variant variant = new Variant();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Variant, OperationMetadata> response = await configDeliveryClient.UpdateVariantAsync(variant, updateMask);

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

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

UpdateVariantAsync(Variant, FieldMask, CancellationToken)

public virtual Task<Operation<Variant, OperationMetadata>> UpdateVariantAsync(Variant variant, FieldMask updateMask, CancellationToken cancellationToken)

Updates the parameters of a single Variant.

Parameters
Name Description
variant Variant

Required. The resource being updated

updateMask FieldMask

Optional. Field mask is used to specify the fields to be overwritten in the Variant 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
TaskOperationVariantOperationMetadata

A Task containing the RPC response.

Example
// Create client
ConfigDeliveryClient configDeliveryClient = await ConfigDeliveryClient.CreateAsync();
// Initialize request argument(s)
Variant variant = new Variant();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Variant, OperationMetadata> response = await configDeliveryClient.UpdateVariantAsync(variant, updateMask);

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

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