Network Services v1 API - Class DepServiceClient (1.0.0-beta01)

public abstract class DepServiceClient

Reference documentation and code samples for the Network Services v1 API class DepServiceClient.

DepService client wrapper, for convenient use.

Inheritance

object > DepServiceClient

Derived Types

Namespace

Google.Cloud.NetworkServices.V1

Assembly

Google.Cloud.NetworkServices.V1.dll

Remarks

Service describing handlers for resources.

Properties

CreateLbRouteExtensionOperationsClient

public virtual OperationsClient CreateLbRouteExtensionOperationsClient { get; }

The long-running operations client for CreateLbRouteExtension.

Property Value
Type Description
OperationsClient

CreateLbTrafficExtensionOperationsClient

public virtual OperationsClient CreateLbTrafficExtensionOperationsClient { get; }

The long-running operations client for CreateLbTrafficExtension.

Property Value
Type Description
OperationsClient

DefaultEndpoint

public static string DefaultEndpoint { get; }

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

Property Value
Type Description
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default DepService scopes.

Property Value
Type Description
IReadOnlyListstring
Remarks

The default DepService scopes are:

DeleteLbRouteExtensionOperationsClient

public virtual OperationsClient DeleteLbRouteExtensionOperationsClient { get; }

The long-running operations client for DeleteLbRouteExtension.

Property Value
Type Description
OperationsClient

DeleteLbTrafficExtensionOperationsClient

public virtual OperationsClient DeleteLbTrafficExtensionOperationsClient { get; }

The long-running operations client for DeleteLbTrafficExtension.

Property Value
Type Description
OperationsClient

GrpcClient

public virtual DepService.DepServiceClient GrpcClient { get; }

The underlying gRPC DepService client

Property Value
Type Description
DepServiceDepServiceClient

IAMPolicyClient

public virtual IAMPolicyClient IAMPolicyClient { get; }

The IAMPolicyClient associated with this client.

Property Value
Type Description
IAMPolicyClient

LocationsClient

public virtual LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
LocationsClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
Type Description
ServiceMetadata

UpdateLbRouteExtensionOperationsClient

public virtual OperationsClient UpdateLbRouteExtensionOperationsClient { get; }

The long-running operations client for UpdateLbRouteExtension.

Property Value
Type Description
OperationsClient

UpdateLbTrafficExtensionOperationsClient

public virtual OperationsClient UpdateLbTrafficExtensionOperationsClient { get; }

The long-running operations client for UpdateLbTrafficExtension.

Property Value
Type Description
OperationsClient

Methods

Create()

public static DepServiceClient Create()

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

Returns
Type Description
DepServiceClient

The created DepServiceClient.

CreateAsync(CancellationToken)

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

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

Parameter
Name Description
cancellationToken CancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
TaskDepServiceClient

The task representing the created DepServiceClient.

CreateLbRouteExtension(LocationName, LbRouteExtension, string, CallSettings)

public virtual Operation<LbRouteExtension, OperationMetadata> CreateLbRouteExtension(LocationName parent, LbRouteExtension lbRouteExtension, string lbRouteExtensionId, CallSettings callSettings = null)

Creates a new LbRouteExtension resource in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the LbRouteExtension resource. Must be in the format projects/{project}/locations/{location}.

lbRouteExtension LbRouteExtension

Required. LbRouteExtension resource to be created.

lbRouteExtensionId string

Required. User-provided ID of the LbRouteExtension resource to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationLbRouteExtensionOperationMetadata

The RPC response.

Example
// Create client
DepServiceClient depServiceClient = DepServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
LbRouteExtension lbRouteExtension = new LbRouteExtension();
string lbRouteExtensionId = "";
// Make the request
Operation<LbRouteExtension, OperationMetadata> response = depServiceClient.CreateLbRouteExtension(parent, lbRouteExtension, lbRouteExtensionId);

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

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

CreateLbRouteExtension(CreateLbRouteExtensionRequest, CallSettings)

public virtual Operation<LbRouteExtension, OperationMetadata> CreateLbRouteExtension(CreateLbRouteExtensionRequest request, CallSettings callSettings = null)

Creates a new LbRouteExtension resource in a given project and location.

Parameters
Name Description
request CreateLbRouteExtensionRequest

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
OperationLbRouteExtensionOperationMetadata

The RPC response.

Example
// Create client
DepServiceClient depServiceClient = DepServiceClient.Create();
// Initialize request argument(s)
CreateLbRouteExtensionRequest request = new CreateLbRouteExtensionRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    LbRouteExtensionId = "",
    LbRouteExtension = new LbRouteExtension(),
    RequestId = "",
};
// Make the request
Operation<LbRouteExtension, OperationMetadata> response = depServiceClient.CreateLbRouteExtension(request);

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

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

CreateLbRouteExtension(string, LbRouteExtension, string, CallSettings)

public virtual Operation<LbRouteExtension, OperationMetadata> CreateLbRouteExtension(string parent, LbRouteExtension lbRouteExtension, string lbRouteExtensionId, CallSettings callSettings = null)

Creates a new LbRouteExtension resource in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the LbRouteExtension resource. Must be in the format projects/{project}/locations/{location}.

lbRouteExtension LbRouteExtension

Required. LbRouteExtension resource to be created.

lbRouteExtensionId string

Required. User-provided ID of the LbRouteExtension resource to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationLbRouteExtensionOperationMetadata

The RPC response.

Example
// Create client
DepServiceClient depServiceClient = DepServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
LbRouteExtension lbRouteExtension = new LbRouteExtension();
string lbRouteExtensionId = "";
// Make the request
Operation<LbRouteExtension, OperationMetadata> response = depServiceClient.CreateLbRouteExtension(parent, lbRouteExtension, lbRouteExtensionId);

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

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

CreateLbRouteExtensionAsync(LocationName, LbRouteExtension, string, CallSettings)

public virtual Task<Operation<LbRouteExtension, OperationMetadata>> CreateLbRouteExtensionAsync(LocationName parent, LbRouteExtension lbRouteExtension, string lbRouteExtensionId, CallSettings callSettings = null)

Creates a new LbRouteExtension resource in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the LbRouteExtension resource. Must be in the format projects/{project}/locations/{location}.

lbRouteExtension LbRouteExtension

Required. LbRouteExtension resource to be created.

lbRouteExtensionId string

Required. User-provided ID of the LbRouteExtension resource to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationLbRouteExtensionOperationMetadata

A Task containing the RPC response.

Example
// Create client
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
LbRouteExtension lbRouteExtension = new LbRouteExtension();
string lbRouteExtensionId = "";
// Make the request
Operation<LbRouteExtension, OperationMetadata> response = await depServiceClient.CreateLbRouteExtensionAsync(parent, lbRouteExtension, lbRouteExtensionId);

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

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

CreateLbRouteExtensionAsync(LocationName, LbRouteExtension, string, CancellationToken)

public virtual Task<Operation<LbRouteExtension, OperationMetadata>> CreateLbRouteExtensionAsync(LocationName parent, LbRouteExtension lbRouteExtension, string lbRouteExtensionId, CancellationToken cancellationToken)

Creates a new LbRouteExtension resource in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the LbRouteExtension resource. Must be in the format projects/{project}/locations/{location}.

lbRouteExtension LbRouteExtension

Required. LbRouteExtension resource to be created.

lbRouteExtensionId string

Required. User-provided ID of the LbRouteExtension resource to be created.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationLbRouteExtensionOperationMetadata

A Task containing the RPC response.

Example
// Create client
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
LbRouteExtension lbRouteExtension = new LbRouteExtension();
string lbRouteExtensionId = "";
// Make the request
Operation<LbRouteExtension, OperationMetadata> response = await depServiceClient.CreateLbRouteExtensionAsync(parent, lbRouteExtension, lbRouteExtensionId);

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

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

CreateLbRouteExtensionAsync(CreateLbRouteExtensionRequest, CallSettings)

public virtual Task<Operation<LbRouteExtension, OperationMetadata>> CreateLbRouteExtensionAsync(CreateLbRouteExtensionRequest request, CallSettings callSettings = null)

Creates a new LbRouteExtension resource in a given project and location.

Parameters
Name Description
request CreateLbRouteExtensionRequest

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
TaskOperationLbRouteExtensionOperationMetadata

A Task containing the RPC response.

Example
// Create client
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
CreateLbRouteExtensionRequest request = new CreateLbRouteExtensionRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    LbRouteExtensionId = "",
    LbRouteExtension = new LbRouteExtension(),
    RequestId = "",
};
// Make the request
Operation<LbRouteExtension, OperationMetadata> response = await depServiceClient.CreateLbRouteExtensionAsync(request);

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

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

CreateLbRouteExtensionAsync(CreateLbRouteExtensionRequest, CancellationToken)

public virtual Task<Operation<LbRouteExtension, OperationMetadata>> CreateLbRouteExtensionAsync(CreateLbRouteExtensionRequest request, CancellationToken cancellationToken)

Creates a new LbRouteExtension resource in a given project and location.

Parameters
Name Description
request CreateLbRouteExtensionRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationLbRouteExtensionOperationMetadata

A Task containing the RPC response.

Example
// Create client
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
CreateLbRouteExtensionRequest request = new CreateLbRouteExtensionRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    LbRouteExtensionId = "",
    LbRouteExtension = new LbRouteExtension(),
    RequestId = "",
};
// Make the request
Operation<LbRouteExtension, OperationMetadata> response = await depServiceClient.CreateLbRouteExtensionAsync(request);

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

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

CreateLbRouteExtensionAsync(string, LbRouteExtension, string, CallSettings)

public virtual Task<Operation<LbRouteExtension, OperationMetadata>> CreateLbRouteExtensionAsync(string parent, LbRouteExtension lbRouteExtension, string lbRouteExtensionId, CallSettings callSettings = null)

Creates a new LbRouteExtension resource in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the LbRouteExtension resource. Must be in the format projects/{project}/locations/{location}.

lbRouteExtension LbRouteExtension

Required. LbRouteExtension resource to be created.

lbRouteExtensionId string

Required. User-provided ID of the LbRouteExtension resource to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationLbRouteExtensionOperationMetadata

A Task containing the RPC response.

Example
// Create client
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
LbRouteExtension lbRouteExtension = new LbRouteExtension();
string lbRouteExtensionId = "";
// Make the request
Operation<LbRouteExtension, OperationMetadata> response = await depServiceClient.CreateLbRouteExtensionAsync(parent, lbRouteExtension, lbRouteExtensionId);

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

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

CreateLbRouteExtensionAsync(string, LbRouteExtension, string, CancellationToken)

public virtual Task<Operation<LbRouteExtension, OperationMetadata>> CreateLbRouteExtensionAsync(string parent, LbRouteExtension lbRouteExtension, string lbRouteExtensionId, CancellationToken cancellationToken)

Creates a new LbRouteExtension resource in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the LbRouteExtension resource. Must be in the format projects/{project}/locations/{location}.

lbRouteExtension LbRouteExtension

Required. LbRouteExtension resource to be created.

lbRouteExtensionId string

Required. User-provided ID of the LbRouteExtension resource to be created.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationLbRouteExtensionOperationMetadata

A Task containing the RPC response.

Example
// Create client
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
LbRouteExtension lbRouteExtension = new LbRouteExtension();
string lbRouteExtensionId = "";
// Make the request
Operation<LbRouteExtension, OperationMetadata> response = await depServiceClient.CreateLbRouteExtensionAsync(parent, lbRouteExtension, lbRouteExtensionId);

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

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

CreateLbTrafficExtension(LocationName, LbTrafficExtension, string, CallSettings)

public virtual Operation<LbTrafficExtension, OperationMetadata> CreateLbTrafficExtension(LocationName parent, LbTrafficExtension lbTrafficExtension, string lbTrafficExtensionId, CallSettings callSettings = null)

Creates a new LbTrafficExtension resource in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the LbTrafficExtension resource. Must be in the format projects/{project}/locations/{location}.

lbTrafficExtension LbTrafficExtension

Required. LbTrafficExtension resource to be created.

lbTrafficExtensionId string

Required. User-provided ID of the LbTrafficExtension resource to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationLbTrafficExtensionOperationMetadata

The RPC response.

Example
// Create client
DepServiceClient depServiceClient = DepServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
LbTrafficExtension lbTrafficExtension = new LbTrafficExtension();
string lbTrafficExtensionId = "";
// Make the request
Operation<LbTrafficExtension, OperationMetadata> response = depServiceClient.CreateLbTrafficExtension(parent, lbTrafficExtension, lbTrafficExtensionId);

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

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

CreateLbTrafficExtension(CreateLbTrafficExtensionRequest, CallSettings)

public virtual Operation<LbTrafficExtension, OperationMetadata> CreateLbTrafficExtension(CreateLbTrafficExtensionRequest request, CallSettings callSettings = null)

Creates a new LbTrafficExtension resource in a given project and location.

Parameters
Name Description
request CreateLbTrafficExtensionRequest

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
OperationLbTrafficExtensionOperationMetadata

The RPC response.

Example
// Create client
DepServiceClient depServiceClient = DepServiceClient.Create();
// Initialize request argument(s)
CreateLbTrafficExtensionRequest request = new CreateLbTrafficExtensionRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    LbTrafficExtensionId = "",
    LbTrafficExtension = new LbTrafficExtension(),
    RequestId = "",
};
// Make the request
Operation<LbTrafficExtension, OperationMetadata> response = depServiceClient.CreateLbTrafficExtension(request);

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

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

CreateLbTrafficExtension(string, LbTrafficExtension, string, CallSettings)

public virtual Operation<LbTrafficExtension, OperationMetadata> CreateLbTrafficExtension(string parent, LbTrafficExtension lbTrafficExtension, string lbTrafficExtensionId, CallSettings callSettings = null)

Creates a new LbTrafficExtension resource in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the LbTrafficExtension resource. Must be in the format projects/{project}/locations/{location}.

lbTrafficExtension LbTrafficExtension

Required. LbTrafficExtension resource to be created.

lbTrafficExtensionId string

Required. User-provided ID of the LbTrafficExtension resource to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationLbTrafficExtensionOperationMetadata

The RPC response.

Example
// Create client
DepServiceClient depServiceClient = DepServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
LbTrafficExtension lbTrafficExtension = new LbTrafficExtension();
string lbTrafficExtensionId = "";
// Make the request
Operation<LbTrafficExtension, OperationMetadata> response = depServiceClient.CreateLbTrafficExtension(parent, lbTrafficExtension, lbTrafficExtensionId);

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

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

CreateLbTrafficExtensionAsync(LocationName, LbTrafficExtension, string, CallSettings)

public virtual Task<Operation<LbTrafficExtension, OperationMetadata>> CreateLbTrafficExtensionAsync(LocationName parent, LbTrafficExtension lbTrafficExtension, string lbTrafficExtensionId, CallSettings callSettings = null)

Creates a new LbTrafficExtension resource in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the LbTrafficExtension resource. Must be in the format projects/{project}/locations/{location}.

lbTrafficExtension LbTrafficExtension

Required. LbTrafficExtension resource to be created.

lbTrafficExtensionId string

Required. User-provided ID of the LbTrafficExtension resource to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationLbTrafficExtensionOperationMetadata

A Task containing the RPC response.

Example
// Create client
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
LbTrafficExtension lbTrafficExtension = new LbTrafficExtension();
string lbTrafficExtensionId = "";
// Make the request
Operation<LbTrafficExtension, OperationMetadata> response = await depServiceClient.CreateLbTrafficExtensionAsync(parent, lbTrafficExtension, lbTrafficExtensionId);

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

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

CreateLbTrafficExtensionAsync(LocationName, LbTrafficExtension, string, CancellationToken)

public virtual Task<Operation<LbTrafficExtension, OperationMetadata>> CreateLbTrafficExtensionAsync(LocationName parent, LbTrafficExtension lbTrafficExtension, string lbTrafficExtensionId, CancellationToken cancellationToken)

Creates a new LbTrafficExtension resource in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the LbTrafficExtension resource. Must be in the format projects/{project}/locations/{location}.

lbTrafficExtension LbTrafficExtension

Required. LbTrafficExtension resource to be created.

lbTrafficExtensionId string

Required. User-provided ID of the LbTrafficExtension resource to be created.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationLbTrafficExtensionOperationMetadata

A Task containing the RPC response.

Example
// Create client
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
LbTrafficExtension lbTrafficExtension = new LbTrafficExtension();
string lbTrafficExtensionId = "";
// Make the request
Operation<LbTrafficExtension, OperationMetadata> response = await depServiceClient.CreateLbTrafficExtensionAsync(parent, lbTrafficExtension, lbTrafficExtensionId);

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

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

CreateLbTrafficExtensionAsync(CreateLbTrafficExtensionRequest, CallSettings)

public virtual Task<Operation<LbTrafficExtension, OperationMetadata>> CreateLbTrafficExtensionAsync(CreateLbTrafficExtensionRequest request, CallSettings callSettings = null)

Creates a new LbTrafficExtension resource in a given project and location.

Parameters
Name Description
request CreateLbTrafficExtensionRequest

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
TaskOperationLbTrafficExtensionOperationMetadata

A Task containing the RPC response.

Example
// Create client
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
CreateLbTrafficExtensionRequest request = new CreateLbTrafficExtensionRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    LbTrafficExtensionId = "",
    LbTrafficExtension = new LbTrafficExtension(),
    RequestId = "",
};
// Make the request
Operation<LbTrafficExtension, OperationMetadata> response = await depServiceClient.CreateLbTrafficExtensionAsync(request);

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

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

CreateLbTrafficExtensionAsync(CreateLbTrafficExtensionRequest, CancellationToken)

public virtual Task<Operation<LbTrafficExtension, OperationMetadata>> CreateLbTrafficExtensionAsync(CreateLbTrafficExtensionRequest request, CancellationToken cancellationToken)

Creates a new LbTrafficExtension resource in a given project and location.

Parameters
Name Description
request CreateLbTrafficExtensionRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationLbTrafficExtensionOperationMetadata

A Task containing the RPC response.

Example
// Create client
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
CreateLbTrafficExtensionRequest request = new CreateLbTrafficExtensionRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    LbTrafficExtensionId = "",
    LbTrafficExtension = new LbTrafficExtension(),
    RequestId = "",
};
// Make the request
Operation<LbTrafficExtension, OperationMetadata> response = await depServiceClient.CreateLbTrafficExtensionAsync(request);

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

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

CreateLbTrafficExtensionAsync(string, LbTrafficExtension, string, CallSettings)

public virtual Task<Operation<LbTrafficExtension, OperationMetadata>> CreateLbTrafficExtensionAsync(string parent, LbTrafficExtension lbTrafficExtension, string lbTrafficExtensionId, CallSettings callSettings = null)

Creates a new LbTrafficExtension resource in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the LbTrafficExtension resource. Must be in the format projects/{project}/locations/{location}.

lbTrafficExtension LbTrafficExtension

Required. LbTrafficExtension resource to be created.

lbTrafficExtensionId string

Required. User-provided ID of the LbTrafficExtension resource to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationLbTrafficExtensionOperationMetadata

A Task containing the RPC response.

Example
// Create client
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
LbTrafficExtension lbTrafficExtension = new LbTrafficExtension();
string lbTrafficExtensionId = "";
// Make the request
Operation<LbTrafficExtension, OperationMetadata> response = await depServiceClient.CreateLbTrafficExtensionAsync(parent, lbTrafficExtension, lbTrafficExtensionId);

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

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

CreateLbTrafficExtensionAsync(string, LbTrafficExtension, string, CancellationToken)

public virtual Task<Operation<LbTrafficExtension, OperationMetadata>> CreateLbTrafficExtensionAsync(string parent, LbTrafficExtension lbTrafficExtension, string lbTrafficExtensionId, CancellationToken cancellationToken)

Creates a new LbTrafficExtension resource in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the LbTrafficExtension resource. Must be in the format projects/{project}/locations/{location}.

lbTrafficExtension LbTrafficExtension

Required. LbTrafficExtension resource to be created.

lbTrafficExtensionId string

Required. User-provided ID of the LbTrafficExtension resource to be created.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationLbTrafficExtensionOperationMetadata

A Task containing the RPC response.

Example
// Create client
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
LbTrafficExtension lbTrafficExtension = new LbTrafficExtension();
string lbTrafficExtensionId = "";
// Make the request
Operation<LbTrafficExtension, OperationMetadata> response = await depServiceClient.CreateLbTrafficExtensionAsync(parent, lbTrafficExtension, lbTrafficExtensionId);

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

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

DeleteLbRouteExtension(DeleteLbRouteExtensionRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteLbRouteExtension(DeleteLbRouteExtensionRequest request, CallSettings callSettings = null)

Deletes the specified LbRouteExtension resource.

Parameters
Name Description
request DeleteLbRouteExtensionRequest

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
DepServiceClient depServiceClient = DepServiceClient.Create();
// Initialize request argument(s)
DeleteLbRouteExtensionRequest request = new DeleteLbRouteExtensionRequest
{
    LbRouteExtensionName = LbRouteExtensionName.FromProjectLocationLbRouteExtension("[PROJECT]", "[LOCATION]", "[LB_ROUTE_EXTENSION]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = depServiceClient.DeleteLbRouteExtension(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 = depServiceClient.PollOnceDeleteLbRouteExtension(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;
}

DeleteLbRouteExtension(LbRouteExtensionName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteLbRouteExtension(LbRouteExtensionName name, CallSettings callSettings = null)

Deletes the specified LbRouteExtension resource.

Parameters
Name Description
name LbRouteExtensionName

Required. The name of the LbRouteExtension resource to delete. Must be in the format projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
DepServiceClient depServiceClient = DepServiceClient.Create();
// Initialize request argument(s)
LbRouteExtensionName name = LbRouteExtensionName.FromProjectLocationLbRouteExtension("[PROJECT]", "[LOCATION]", "[LB_ROUTE_EXTENSION]");
// Make the request
Operation<Empty, OperationMetadata> response = depServiceClient.DeleteLbRouteExtension(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 = depServiceClient.PollOnceDeleteLbRouteExtension(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;
}

DeleteLbRouteExtension(string, CallSettings)

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

Deletes the specified LbRouteExtension resource.

Parameters
Name Description
name string

Required. The name of the LbRouteExtension resource to delete. Must be in the format projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
DepServiceClient depServiceClient = DepServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/lbRouteExtensions/[LB_ROUTE_EXTENSION]";
// Make the request
Operation<Empty, OperationMetadata> response = depServiceClient.DeleteLbRouteExtension(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 = depServiceClient.PollOnceDeleteLbRouteExtension(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;
}

DeleteLbRouteExtensionAsync(DeleteLbRouteExtensionRequest, CallSettings)

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

Deletes the specified LbRouteExtension resource.

Parameters
Name Description
request DeleteLbRouteExtensionRequest

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
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteLbRouteExtensionRequest request = new DeleteLbRouteExtensionRequest
{
    LbRouteExtensionName = LbRouteExtensionName.FromProjectLocationLbRouteExtension("[PROJECT]", "[LOCATION]", "[LB_ROUTE_EXTENSION]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await depServiceClient.DeleteLbRouteExtensionAsync(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 depServiceClient.PollOnceDeleteLbRouteExtensionAsync(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;
}

DeleteLbRouteExtensionAsync(DeleteLbRouteExtensionRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteLbRouteExtensionAsync(DeleteLbRouteExtensionRequest request, CancellationToken cancellationToken)

Deletes the specified LbRouteExtension resource.

Parameters
Name Description
request DeleteLbRouteExtensionRequest

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
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteLbRouteExtensionRequest request = new DeleteLbRouteExtensionRequest
{
    LbRouteExtensionName = LbRouteExtensionName.FromProjectLocationLbRouteExtension("[PROJECT]", "[LOCATION]", "[LB_ROUTE_EXTENSION]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await depServiceClient.DeleteLbRouteExtensionAsync(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 depServiceClient.PollOnceDeleteLbRouteExtensionAsync(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;
}

DeleteLbRouteExtensionAsync(LbRouteExtensionName, CallSettings)

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

Deletes the specified LbRouteExtension resource.

Parameters
Name Description
name LbRouteExtensionName

Required. The name of the LbRouteExtension resource to delete. Must be in the format projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
LbRouteExtensionName name = LbRouteExtensionName.FromProjectLocationLbRouteExtension("[PROJECT]", "[LOCATION]", "[LB_ROUTE_EXTENSION]");
// Make the request
Operation<Empty, OperationMetadata> response = await depServiceClient.DeleteLbRouteExtensionAsync(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 depServiceClient.PollOnceDeleteLbRouteExtensionAsync(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;
}

DeleteLbRouteExtensionAsync(LbRouteExtensionName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteLbRouteExtensionAsync(LbRouteExtensionName name, CancellationToken cancellationToken)

Deletes the specified LbRouteExtension resource.

Parameters
Name Description
name LbRouteExtensionName

Required. The name of the LbRouteExtension resource to delete. Must be in the format projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
LbRouteExtensionName name = LbRouteExtensionName.FromProjectLocationLbRouteExtension("[PROJECT]", "[LOCATION]", "[LB_ROUTE_EXTENSION]");
// Make the request
Operation<Empty, OperationMetadata> response = await depServiceClient.DeleteLbRouteExtensionAsync(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 depServiceClient.PollOnceDeleteLbRouteExtensionAsync(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;
}

DeleteLbRouteExtensionAsync(string, CallSettings)

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

Deletes the specified LbRouteExtension resource.

Parameters
Name Description
name string

Required. The name of the LbRouteExtension resource to delete. Must be in the format projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/lbRouteExtensions/[LB_ROUTE_EXTENSION]";
// Make the request
Operation<Empty, OperationMetadata> response = await depServiceClient.DeleteLbRouteExtensionAsync(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 depServiceClient.PollOnceDeleteLbRouteExtensionAsync(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;
}

DeleteLbRouteExtensionAsync(string, CancellationToken)

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

Deletes the specified LbRouteExtension resource.

Parameters
Name Description
name string

Required. The name of the LbRouteExtension resource to delete. Must be in the format projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/lbRouteExtensions/[LB_ROUTE_EXTENSION]";
// Make the request
Operation<Empty, OperationMetadata> response = await depServiceClient.DeleteLbRouteExtensionAsync(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 depServiceClient.PollOnceDeleteLbRouteExtensionAsync(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;
}

DeleteLbTrafficExtension(DeleteLbTrafficExtensionRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteLbTrafficExtension(DeleteLbTrafficExtensionRequest request, CallSettings callSettings = null)

Deletes the specified LbTrafficExtension resource.

Parameters
Name Description
request DeleteLbTrafficExtensionRequest

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
DepServiceClient depServiceClient = DepServiceClient.Create();
// Initialize request argument(s)
DeleteLbTrafficExtensionRequest request = new DeleteLbTrafficExtensionRequest
{
    LbTrafficExtensionName = LbTrafficExtensionName.FromProjectLocationLbTrafficExtension("[PROJECT]", "[LOCATION]", "[LB_TRAFFIC_EXTENSION]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = depServiceClient.DeleteLbTrafficExtension(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 = depServiceClient.PollOnceDeleteLbTrafficExtension(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;
}

DeleteLbTrafficExtension(LbTrafficExtensionName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteLbTrafficExtension(LbTrafficExtensionName name, CallSettings callSettings = null)

Deletes the specified LbTrafficExtension resource.

Parameters
Name Description
name LbTrafficExtensionName

Required. The name of the LbTrafficExtension resource to delete. Must be in the format projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
DepServiceClient depServiceClient = DepServiceClient.Create();
// Initialize request argument(s)
LbTrafficExtensionName name = LbTrafficExtensionName.FromProjectLocationLbTrafficExtension("[PROJECT]", "[LOCATION]", "[LB_TRAFFIC_EXTENSION]");
// Make the request
Operation<Empty, OperationMetadata> response = depServiceClient.DeleteLbTrafficExtension(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 = depServiceClient.PollOnceDeleteLbTrafficExtension(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;
}

DeleteLbTrafficExtension(string, CallSettings)

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

Deletes the specified LbTrafficExtension resource.

Parameters
Name Description
name string

Required. The name of the LbTrafficExtension resource to delete. Must be in the format projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
DepServiceClient depServiceClient = DepServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/lbTrafficExtensions/[LB_TRAFFIC_EXTENSION]";
// Make the request
Operation<Empty, OperationMetadata> response = depServiceClient.DeleteLbTrafficExtension(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 = depServiceClient.PollOnceDeleteLbTrafficExtension(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;
}

DeleteLbTrafficExtensionAsync(DeleteLbTrafficExtensionRequest, CallSettings)

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

Deletes the specified LbTrafficExtension resource.

Parameters
Name Description
request DeleteLbTrafficExtensionRequest

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
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteLbTrafficExtensionRequest request = new DeleteLbTrafficExtensionRequest
{
    LbTrafficExtensionName = LbTrafficExtensionName.FromProjectLocationLbTrafficExtension("[PROJECT]", "[LOCATION]", "[LB_TRAFFIC_EXTENSION]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await depServiceClient.DeleteLbTrafficExtensionAsync(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 depServiceClient.PollOnceDeleteLbTrafficExtensionAsync(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;
}

DeleteLbTrafficExtensionAsync(DeleteLbTrafficExtensionRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteLbTrafficExtensionAsync(DeleteLbTrafficExtensionRequest request, CancellationToken cancellationToken)

Deletes the specified LbTrafficExtension resource.

Parameters
Name Description
request DeleteLbTrafficExtensionRequest

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
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteLbTrafficExtensionRequest request = new DeleteLbTrafficExtensionRequest
{
    LbTrafficExtensionName = LbTrafficExtensionName.FromProjectLocationLbTrafficExtension("[PROJECT]", "[LOCATION]", "[LB_TRAFFIC_EXTENSION]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await depServiceClient.DeleteLbTrafficExtensionAsync(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 depServiceClient.PollOnceDeleteLbTrafficExtensionAsync(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;
}

DeleteLbTrafficExtensionAsync(LbTrafficExtensionName, CallSettings)

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

Deletes the specified LbTrafficExtension resource.

Parameters
Name Description
name LbTrafficExtensionName

Required. The name of the LbTrafficExtension resource to delete. Must be in the format projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
LbTrafficExtensionName name = LbTrafficExtensionName.FromProjectLocationLbTrafficExtension("[PROJECT]", "[LOCATION]", "[LB_TRAFFIC_EXTENSION]");
// Make the request
Operation<Empty, OperationMetadata> response = await depServiceClient.DeleteLbTrafficExtensionAsync(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 depServiceClient.PollOnceDeleteLbTrafficExtensionAsync(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;
}

DeleteLbTrafficExtensionAsync(LbTrafficExtensionName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteLbTrafficExtensionAsync(LbTrafficExtensionName name, CancellationToken cancellationToken)

Deletes the specified LbTrafficExtension resource.

Parameters
Name Description
name LbTrafficExtensionName

Required. The name of the LbTrafficExtension resource to delete. Must be in the format projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
LbTrafficExtensionName name = LbTrafficExtensionName.FromProjectLocationLbTrafficExtension("[PROJECT]", "[LOCATION]", "[LB_TRAFFIC_EXTENSION]");
// Make the request
Operation<Empty, OperationMetadata> response = await depServiceClient.DeleteLbTrafficExtensionAsync(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 depServiceClient.PollOnceDeleteLbTrafficExtensionAsync(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;
}

DeleteLbTrafficExtensionAsync(string, CallSettings)

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

Deletes the specified LbTrafficExtension resource.

Parameters
Name Description
name string

Required. The name of the LbTrafficExtension resource to delete. Must be in the format projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/lbTrafficExtensions/[LB_TRAFFIC_EXTENSION]";
// Make the request
Operation<Empty, OperationMetadata> response = await depServiceClient.DeleteLbTrafficExtensionAsync(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 depServiceClient.PollOnceDeleteLbTrafficExtensionAsync(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;
}

DeleteLbTrafficExtensionAsync(string, CancellationToken)

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

Deletes the specified LbTrafficExtension resource.

Parameters
Name Description
name string

Required. The name of the LbTrafficExtension resource to delete. Must be in the format projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/lbTrafficExtensions/[LB_TRAFFIC_EXTENSION]";
// Make the request
Operation<Empty, OperationMetadata> response = await depServiceClient.DeleteLbTrafficExtensionAsync(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 depServiceClient.PollOnceDeleteLbTrafficExtensionAsync(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;
}

GetLbRouteExtension(GetLbRouteExtensionRequest, CallSettings)

public virtual LbRouteExtension GetLbRouteExtension(GetLbRouteExtensionRequest request, CallSettings callSettings = null)

Gets details of the specified LbRouteExtension resource.

Parameters
Name Description
request GetLbRouteExtensionRequest

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
LbRouteExtension

The RPC response.

Example
// Create client
DepServiceClient depServiceClient = DepServiceClient.Create();
// Initialize request argument(s)
GetLbRouteExtensionRequest request = new GetLbRouteExtensionRequest
{
    LbRouteExtensionName = LbRouteExtensionName.FromProjectLocationLbRouteExtension("[PROJECT]", "[LOCATION]", "[LB_ROUTE_EXTENSION]"),
};
// Make the request
LbRouteExtension response = depServiceClient.GetLbRouteExtension(request);

GetLbRouteExtension(LbRouteExtensionName, CallSettings)

public virtual LbRouteExtension GetLbRouteExtension(LbRouteExtensionName name, CallSettings callSettings = null)

Gets details of the specified LbRouteExtension resource.

Parameters
Name Description
name LbRouteExtensionName

Required. A name of the LbRouteExtension resource to get. Must be in the format projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
LbRouteExtension

The RPC response.

Example
// Create client
DepServiceClient depServiceClient = DepServiceClient.Create();
// Initialize request argument(s)
LbRouteExtensionName name = LbRouteExtensionName.FromProjectLocationLbRouteExtension("[PROJECT]", "[LOCATION]", "[LB_ROUTE_EXTENSION]");
// Make the request
LbRouteExtension response = depServiceClient.GetLbRouteExtension(name);

GetLbRouteExtension(string, CallSettings)

public virtual LbRouteExtension GetLbRouteExtension(string name, CallSettings callSettings = null)

Gets details of the specified LbRouteExtension resource.

Parameters
Name Description
name string

Required. A name of the LbRouteExtension resource to get. Must be in the format projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
LbRouteExtension

The RPC response.

Example
// Create client
DepServiceClient depServiceClient = DepServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/lbRouteExtensions/[LB_ROUTE_EXTENSION]";
// Make the request
LbRouteExtension response = depServiceClient.GetLbRouteExtension(name);

GetLbRouteExtensionAsync(GetLbRouteExtensionRequest, CallSettings)

public virtual Task<LbRouteExtension> GetLbRouteExtensionAsync(GetLbRouteExtensionRequest request, CallSettings callSettings = null)

Gets details of the specified LbRouteExtension resource.

Parameters
Name Description
request GetLbRouteExtensionRequest

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
TaskLbRouteExtension

A Task containing the RPC response.

Example
// Create client
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
GetLbRouteExtensionRequest request = new GetLbRouteExtensionRequest
{
    LbRouteExtensionName = LbRouteExtensionName.FromProjectLocationLbRouteExtension("[PROJECT]", "[LOCATION]", "[LB_ROUTE_EXTENSION]"),
};
// Make the request
LbRouteExtension response = await depServiceClient.GetLbRouteExtensionAsync(request);

GetLbRouteExtensionAsync(GetLbRouteExtensionRequest, CancellationToken)

public virtual Task<LbRouteExtension> GetLbRouteExtensionAsync(GetLbRouteExtensionRequest request, CancellationToken cancellationToken)

Gets details of the specified LbRouteExtension resource.

Parameters
Name Description
request GetLbRouteExtensionRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskLbRouteExtension

A Task containing the RPC response.

Example
// Create client
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
GetLbRouteExtensionRequest request = new GetLbRouteExtensionRequest
{
    LbRouteExtensionName = LbRouteExtensionName.FromProjectLocationLbRouteExtension("[PROJECT]", "[LOCATION]", "[LB_ROUTE_EXTENSION]"),
};
// Make the request
LbRouteExtension response = await depServiceClient.GetLbRouteExtensionAsync(request);

GetLbRouteExtensionAsync(LbRouteExtensionName, CallSettings)

public virtual Task<LbRouteExtension> GetLbRouteExtensionAsync(LbRouteExtensionName name, CallSettings callSettings = null)

Gets details of the specified LbRouteExtension resource.

Parameters
Name Description
name LbRouteExtensionName

Required. A name of the LbRouteExtension resource to get. Must be in the format projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLbRouteExtension

A Task containing the RPC response.

Example
// Create client
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
LbRouteExtensionName name = LbRouteExtensionName.FromProjectLocationLbRouteExtension("[PROJECT]", "[LOCATION]", "[LB_ROUTE_EXTENSION]");
// Make the request
LbRouteExtension response = await depServiceClient.GetLbRouteExtensionAsync(name);

GetLbRouteExtensionAsync(LbRouteExtensionName, CancellationToken)

public virtual Task<LbRouteExtension> GetLbRouteExtensionAsync(LbRouteExtensionName name, CancellationToken cancellationToken)

Gets details of the specified LbRouteExtension resource.

Parameters
Name Description
name LbRouteExtensionName

Required. A name of the LbRouteExtension resource to get. Must be in the format projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskLbRouteExtension

A Task containing the RPC response.

Example
// Create client
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
LbRouteExtensionName name = LbRouteExtensionName.FromProjectLocationLbRouteExtension("[PROJECT]", "[LOCATION]", "[LB_ROUTE_EXTENSION]");
// Make the request
LbRouteExtension response = await depServiceClient.GetLbRouteExtensionAsync(name);

GetLbRouteExtensionAsync(string, CallSettings)

public virtual Task<LbRouteExtension> GetLbRouteExtensionAsync(string name, CallSettings callSettings = null)

Gets details of the specified LbRouteExtension resource.

Parameters
Name Description
name string

Required. A name of the LbRouteExtension resource to get. Must be in the format projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLbRouteExtension

A Task containing the RPC response.

Example
// Create client
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/lbRouteExtensions/[LB_ROUTE_EXTENSION]";
// Make the request
LbRouteExtension response = await depServiceClient.GetLbRouteExtensionAsync(name);

GetLbRouteExtensionAsync(string, CancellationToken)

public virtual Task<LbRouteExtension> GetLbRouteExtensionAsync(string name, CancellationToken cancellationToken)

Gets details of the specified LbRouteExtension resource.

Parameters
Name Description
name string

Required. A name of the LbRouteExtension resource to get. Must be in the format projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskLbRouteExtension

A Task containing the RPC response.

Example
// Create client
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/lbRouteExtensions/[LB_ROUTE_EXTENSION]";
// Make the request
LbRouteExtension response = await depServiceClient.GetLbRouteExtensionAsync(name);

GetLbTrafficExtension(GetLbTrafficExtensionRequest, CallSettings)

public virtual LbTrafficExtension GetLbTrafficExtension(GetLbTrafficExtensionRequest request, CallSettings callSettings = null)

Gets details of the specified LbTrafficExtension resource.

Parameters
Name Description
request GetLbTrafficExtensionRequest

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
LbTrafficExtension

The RPC response.

Example
// Create client
DepServiceClient depServiceClient = DepServiceClient.Create();
// Initialize request argument(s)
GetLbTrafficExtensionRequest request = new GetLbTrafficExtensionRequest
{
    LbTrafficExtensionName = LbTrafficExtensionName.FromProjectLocationLbTrafficExtension("[PROJECT]", "[LOCATION]", "[LB_TRAFFIC_EXTENSION]"),
};
// Make the request
LbTrafficExtension response = depServiceClient.GetLbTrafficExtension(request);

GetLbTrafficExtension(LbTrafficExtensionName, CallSettings)

public virtual LbTrafficExtension GetLbTrafficExtension(LbTrafficExtensionName name, CallSettings callSettings = null)

Gets details of the specified LbTrafficExtension resource.

Parameters
Name Description
name LbTrafficExtensionName

Required. A name of the LbTrafficExtension resource to get. Must be in the format projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
LbTrafficExtension

The RPC response.

Example
// Create client
DepServiceClient depServiceClient = DepServiceClient.Create();
// Initialize request argument(s)
LbTrafficExtensionName name = LbTrafficExtensionName.FromProjectLocationLbTrafficExtension("[PROJECT]", "[LOCATION]", "[LB_TRAFFIC_EXTENSION]");
// Make the request
LbTrafficExtension response = depServiceClient.GetLbTrafficExtension(name);

GetLbTrafficExtension(string, CallSettings)

public virtual LbTrafficExtension GetLbTrafficExtension(string name, CallSettings callSettings = null)

Gets details of the specified LbTrafficExtension resource.

Parameters
Name Description
name string

Required. A name of the LbTrafficExtension resource to get. Must be in the format projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
LbTrafficExtension

The RPC response.

Example
// Create client
DepServiceClient depServiceClient = DepServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/lbTrafficExtensions/[LB_TRAFFIC_EXTENSION]";
// Make the request
LbTrafficExtension response = depServiceClient.GetLbTrafficExtension(name);

GetLbTrafficExtensionAsync(GetLbTrafficExtensionRequest, CallSettings)

public virtual Task<LbTrafficExtension> GetLbTrafficExtensionAsync(GetLbTrafficExtensionRequest request, CallSettings callSettings = null)

Gets details of the specified LbTrafficExtension resource.

Parameters
Name Description
request GetLbTrafficExtensionRequest

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
TaskLbTrafficExtension

A Task containing the RPC response.

Example
// Create client
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
GetLbTrafficExtensionRequest request = new GetLbTrafficExtensionRequest
{
    LbTrafficExtensionName = LbTrafficExtensionName.FromProjectLocationLbTrafficExtension("[PROJECT]", "[LOCATION]", "[LB_TRAFFIC_EXTENSION]"),
};
// Make the request
LbTrafficExtension response = await depServiceClient.GetLbTrafficExtensionAsync(request);

GetLbTrafficExtensionAsync(GetLbTrafficExtensionRequest, CancellationToken)

public virtual Task<LbTrafficExtension> GetLbTrafficExtensionAsync(GetLbTrafficExtensionRequest request, CancellationToken cancellationToken)

Gets details of the specified LbTrafficExtension resource.

Parameters
Name Description
request GetLbTrafficExtensionRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskLbTrafficExtension

A Task containing the RPC response.

Example
// Create client
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
GetLbTrafficExtensionRequest request = new GetLbTrafficExtensionRequest
{
    LbTrafficExtensionName = LbTrafficExtensionName.FromProjectLocationLbTrafficExtension("[PROJECT]", "[LOCATION]", "[LB_TRAFFIC_EXTENSION]"),
};
// Make the request
LbTrafficExtension response = await depServiceClient.GetLbTrafficExtensionAsync(request);

GetLbTrafficExtensionAsync(LbTrafficExtensionName, CallSettings)

public virtual Task<LbTrafficExtension> GetLbTrafficExtensionAsync(LbTrafficExtensionName name, CallSettings callSettings = null)

Gets details of the specified LbTrafficExtension resource.

Parameters
Name Description
name LbTrafficExtensionName

Required. A name of the LbTrafficExtension resource to get. Must be in the format projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLbTrafficExtension

A Task containing the RPC response.

Example
// Create client
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
LbTrafficExtensionName name = LbTrafficExtensionName.FromProjectLocationLbTrafficExtension("[PROJECT]", "[LOCATION]", "[LB_TRAFFIC_EXTENSION]");
// Make the request
LbTrafficExtension response = await depServiceClient.GetLbTrafficExtensionAsync(name);

GetLbTrafficExtensionAsync(LbTrafficExtensionName, CancellationToken)

public virtual Task<LbTrafficExtension> GetLbTrafficExtensionAsync(LbTrafficExtensionName name, CancellationToken cancellationToken)

Gets details of the specified LbTrafficExtension resource.

Parameters
Name Description
name LbTrafficExtensionName

Required. A name of the LbTrafficExtension resource to get. Must be in the format projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskLbTrafficExtension

A Task containing the RPC response.

Example
// Create client
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
LbTrafficExtensionName name = LbTrafficExtensionName.FromProjectLocationLbTrafficExtension("[PROJECT]", "[LOCATION]", "[LB_TRAFFIC_EXTENSION]");
// Make the request
LbTrafficExtension response = await depServiceClient.GetLbTrafficExtensionAsync(name);

GetLbTrafficExtensionAsync(string, CallSettings)

public virtual Task<LbTrafficExtension> GetLbTrafficExtensionAsync(string name, CallSettings callSettings = null)

Gets details of the specified LbTrafficExtension resource.

Parameters
Name Description
name string

Required. A name of the LbTrafficExtension resource to get. Must be in the format projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLbTrafficExtension

A Task containing the RPC response.

Example
// Create client
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/lbTrafficExtensions/[LB_TRAFFIC_EXTENSION]";
// Make the request
LbTrafficExtension response = await depServiceClient.GetLbTrafficExtensionAsync(name);

GetLbTrafficExtensionAsync(string, CancellationToken)

public virtual Task<LbTrafficExtension> GetLbTrafficExtensionAsync(string name, CancellationToken cancellationToken)

Gets details of the specified LbTrafficExtension resource.

Parameters
Name Description
name string

Required. A name of the LbTrafficExtension resource to get. Must be in the format projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskLbTrafficExtension

A Task containing the RPC response.

Example
// Create client
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/lbTrafficExtensions/[LB_TRAFFIC_EXTENSION]";
// Make the request
LbTrafficExtension response = await depServiceClient.GetLbTrafficExtensionAsync(name);

ListLbRouteExtensions(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListLbRouteExtensionsResponse, LbRouteExtension> ListLbRouteExtensions(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists LbRouteExtension resources in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location from which the LbRouteExtension resources are listed, specified in the following format: projects/{project}/locations/{location}.

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
PagedEnumerableListLbRouteExtensionsResponseLbRouteExtension

A pageable sequence of LbRouteExtension resources.

Example
// Create client
DepServiceClient depServiceClient = DepServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListLbRouteExtensionsResponse, LbRouteExtension> response = depServiceClient.ListLbRouteExtensions(parent);

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

ListLbRouteExtensions(ListLbRouteExtensionsRequest, CallSettings)

public virtual PagedEnumerable<ListLbRouteExtensionsResponse, LbRouteExtension> ListLbRouteExtensions(ListLbRouteExtensionsRequest request, CallSettings callSettings = null)

Lists LbRouteExtension resources in a given project and location.

Parameters
Name Description
request ListLbRouteExtensionsRequest

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
PagedEnumerableListLbRouteExtensionsResponseLbRouteExtension

A pageable sequence of LbRouteExtension resources.

Example
// Create client
DepServiceClient depServiceClient = DepServiceClient.Create();
// Initialize request argument(s)
ListLbRouteExtensionsRequest request = new ListLbRouteExtensionsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListLbRouteExtensionsResponse, LbRouteExtension> response = depServiceClient.ListLbRouteExtensions(request);

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

ListLbRouteExtensions(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListLbRouteExtensionsResponse, LbRouteExtension> ListLbRouteExtensions(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists LbRouteExtension resources in a given project and location.

Parameters
Name Description
parent string

Required. The project and location from which the LbRouteExtension resources are listed, specified in the following format: projects/{project}/locations/{location}.

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
PagedEnumerableListLbRouteExtensionsResponseLbRouteExtension

A pageable sequence of LbRouteExtension resources.

Example
// Create client
DepServiceClient depServiceClient = DepServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListLbRouteExtensionsResponse, LbRouteExtension> response = depServiceClient.ListLbRouteExtensions(parent);

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

ListLbRouteExtensionsAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListLbRouteExtensionsResponse, LbRouteExtension> ListLbRouteExtensionsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists LbRouteExtension resources in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location from which the LbRouteExtension resources are listed, specified in the following format: projects/{project}/locations/{location}.

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
PagedAsyncEnumerableListLbRouteExtensionsResponseLbRouteExtension

A pageable asynchronous sequence of LbRouteExtension resources.

Example
// Create client
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListLbRouteExtensionsResponse, LbRouteExtension> response = depServiceClient.ListLbRouteExtensionsAsync(parent);

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

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

ListLbRouteExtensionsAsync(ListLbRouteExtensionsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListLbRouteExtensionsResponse, LbRouteExtension> ListLbRouteExtensionsAsync(ListLbRouteExtensionsRequest request, CallSettings callSettings = null)

Lists LbRouteExtension resources in a given project and location.

Parameters
Name Description
request ListLbRouteExtensionsRequest

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
PagedAsyncEnumerableListLbRouteExtensionsResponseLbRouteExtension

A pageable asynchronous sequence of LbRouteExtension resources.

Example
// Create client
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
ListLbRouteExtensionsRequest request = new ListLbRouteExtensionsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListLbRouteExtensionsResponse, LbRouteExtension> response = depServiceClient.ListLbRouteExtensionsAsync(request);

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

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

ListLbRouteExtensionsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListLbRouteExtensionsResponse, LbRouteExtension> ListLbRouteExtensionsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists LbRouteExtension resources in a given project and location.

Parameters
Name Description
parent string

Required. The project and location from which the LbRouteExtension resources are listed, specified in the following format: projects/{project}/locations/{location}.

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
PagedAsyncEnumerableListLbRouteExtensionsResponseLbRouteExtension

A pageable asynchronous sequence of LbRouteExtension resources.

Example
// Create client
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListLbRouteExtensionsResponse, LbRouteExtension> response = depServiceClient.ListLbRouteExtensionsAsync(parent);

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

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

ListLbTrafficExtensions(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListLbTrafficExtensionsResponse, LbTrafficExtension> ListLbTrafficExtensions(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists LbTrafficExtension resources in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location from which the LbTrafficExtension resources are listed, specified in the following format: projects/{project}/locations/{location}.

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
PagedEnumerableListLbTrafficExtensionsResponseLbTrafficExtension

A pageable sequence of LbTrafficExtension resources.

Example
// Create client
DepServiceClient depServiceClient = DepServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListLbTrafficExtensionsResponse, LbTrafficExtension> response = depServiceClient.ListLbTrafficExtensions(parent);

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

ListLbTrafficExtensions(ListLbTrafficExtensionsRequest, CallSettings)

public virtual PagedEnumerable<ListLbTrafficExtensionsResponse, LbTrafficExtension> ListLbTrafficExtensions(ListLbTrafficExtensionsRequest request, CallSettings callSettings = null)

Lists LbTrafficExtension resources in a given project and location.

Parameters
Name Description
request ListLbTrafficExtensionsRequest

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
PagedEnumerableListLbTrafficExtensionsResponseLbTrafficExtension

A pageable sequence of LbTrafficExtension resources.

Example
// Create client
DepServiceClient depServiceClient = DepServiceClient.Create();
// Initialize request argument(s)
ListLbTrafficExtensionsRequest request = new ListLbTrafficExtensionsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListLbTrafficExtensionsResponse, LbTrafficExtension> response = depServiceClient.ListLbTrafficExtensions(request);

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

ListLbTrafficExtensions(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListLbTrafficExtensionsResponse, LbTrafficExtension> ListLbTrafficExtensions(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists LbTrafficExtension resources in a given project and location.

Parameters
Name Description
parent string

Required. The project and location from which the LbTrafficExtension resources are listed, specified in the following format: projects/{project}/locations/{location}.

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
PagedEnumerableListLbTrafficExtensionsResponseLbTrafficExtension

A pageable sequence of LbTrafficExtension resources.

Example
// Create client
DepServiceClient depServiceClient = DepServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListLbTrafficExtensionsResponse, LbTrafficExtension> response = depServiceClient.ListLbTrafficExtensions(parent);

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

ListLbTrafficExtensionsAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListLbTrafficExtensionsResponse, LbTrafficExtension> ListLbTrafficExtensionsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists LbTrafficExtension resources in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location from which the LbTrafficExtension resources are listed, specified in the following format: projects/{project}/locations/{location}.

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
PagedAsyncEnumerableListLbTrafficExtensionsResponseLbTrafficExtension

A pageable asynchronous sequence of LbTrafficExtension resources.

Example
// Create client
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListLbTrafficExtensionsResponse, LbTrafficExtension> response = depServiceClient.ListLbTrafficExtensionsAsync(parent);

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

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

ListLbTrafficExtensionsAsync(ListLbTrafficExtensionsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListLbTrafficExtensionsResponse, LbTrafficExtension> ListLbTrafficExtensionsAsync(ListLbTrafficExtensionsRequest request, CallSettings callSettings = null)

Lists LbTrafficExtension resources in a given project and location.

Parameters
Name Description
request ListLbTrafficExtensionsRequest

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
PagedAsyncEnumerableListLbTrafficExtensionsResponseLbTrafficExtension

A pageable asynchronous sequence of LbTrafficExtension resources.

Example
// Create client
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
ListLbTrafficExtensionsRequest request = new ListLbTrafficExtensionsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListLbTrafficExtensionsResponse, LbTrafficExtension> response = depServiceClient.ListLbTrafficExtensionsAsync(request);

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

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

ListLbTrafficExtensionsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListLbTrafficExtensionsResponse, LbTrafficExtension> ListLbTrafficExtensionsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists LbTrafficExtension resources in a given project and location.

Parameters
Name Description
parent string

Required. The project and location from which the LbTrafficExtension resources are listed, specified in the following format: projects/{project}/locations/{location}.

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
PagedAsyncEnumerableListLbTrafficExtensionsResponseLbTrafficExtension

A pageable asynchronous sequence of LbTrafficExtension resources.

Example
// Create client
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListLbTrafficExtensionsResponse, LbTrafficExtension> response = depServiceClient.ListLbTrafficExtensionsAsync(parent);

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

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

PollOnceCreateLbRouteExtension(string, CallSettings)

public virtual Operation<LbRouteExtension, OperationMetadata> PollOnceCreateLbRouteExtension(string operationName, CallSettings callSettings = null)

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

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
OperationLbRouteExtensionOperationMetadata

The result of polling the operation.

PollOnceCreateLbRouteExtensionAsync(string, CallSettings)

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

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

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
TaskOperationLbRouteExtensionOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateLbTrafficExtension(string, CallSettings)

public virtual Operation<LbTrafficExtension, OperationMetadata> PollOnceCreateLbTrafficExtension(string operationName, CallSettings callSettings = null)

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

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
OperationLbTrafficExtensionOperationMetadata

The result of polling the operation.

PollOnceCreateLbTrafficExtensionAsync(string, CallSettings)

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

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

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
TaskOperationLbTrafficExtensionOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteLbRouteExtension(string, CallSettings)

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

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

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.

PollOnceDeleteLbRouteExtensionAsync(string, CallSettings)

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

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

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.

PollOnceDeleteLbTrafficExtension(string, CallSettings)

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

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

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.

PollOnceDeleteLbTrafficExtensionAsync(string, CallSettings)

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

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

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.

PollOnceUpdateLbRouteExtension(string, CallSettings)

public virtual Operation<LbRouteExtension, OperationMetadata> PollOnceUpdateLbRouteExtension(string operationName, CallSettings callSettings = null)

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

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
OperationLbRouteExtensionOperationMetadata

The result of polling the operation.

PollOnceUpdateLbRouteExtensionAsync(string, CallSettings)

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

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

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
TaskOperationLbRouteExtensionOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateLbTrafficExtension(string, CallSettings)

public virtual Operation<LbTrafficExtension, OperationMetadata> PollOnceUpdateLbTrafficExtension(string operationName, CallSettings callSettings = null)

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

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
OperationLbTrafficExtensionOperationMetadata

The result of polling the operation.

PollOnceUpdateLbTrafficExtensionAsync(string, CallSettings)

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

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

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
TaskOperationLbTrafficExtensionOperationMetadata

A task representing the result of polling the operation.

ShutdownDefaultChannelsAsync()

public static Task ShutdownDefaultChannelsAsync()

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

Returns
Type Description
Task

A task representing the asynchronous shutdown operation.

Remarks

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

UpdateLbRouteExtension(LbRouteExtension, FieldMask, CallSettings)

public virtual Operation<LbRouteExtension, OperationMetadata> UpdateLbRouteExtension(LbRouteExtension lbRouteExtension, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of the specified LbRouteExtension resource.

Parameters
Name Description
lbRouteExtension LbRouteExtension

Required. LbRouteExtension resource being updated.

updateMask FieldMask

Optional. Used to specify the fields to be overwritten in the LbRouteExtension resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field is overwritten if it is in the mask. If the user does not specify a mask, then all fields are overwritten.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationLbRouteExtensionOperationMetadata

The RPC response.

Example
// Create client
DepServiceClient depServiceClient = DepServiceClient.Create();
// Initialize request argument(s)
LbRouteExtension lbRouteExtension = new LbRouteExtension();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<LbRouteExtension, OperationMetadata> response = depServiceClient.UpdateLbRouteExtension(lbRouteExtension, updateMask);

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

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

UpdateLbRouteExtension(UpdateLbRouteExtensionRequest, CallSettings)

public virtual Operation<LbRouteExtension, OperationMetadata> UpdateLbRouteExtension(UpdateLbRouteExtensionRequest request, CallSettings callSettings = null)

Updates the parameters of the specified LbRouteExtension resource.

Parameters
Name Description
request UpdateLbRouteExtensionRequest

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
OperationLbRouteExtensionOperationMetadata

The RPC response.

Example
// Create client
DepServiceClient depServiceClient = DepServiceClient.Create();
// Initialize request argument(s)
UpdateLbRouteExtensionRequest request = new UpdateLbRouteExtensionRequest
{
    UpdateMask = new FieldMask(),
    LbRouteExtension = new LbRouteExtension(),
    RequestId = "",
};
// Make the request
Operation<LbRouteExtension, OperationMetadata> response = depServiceClient.UpdateLbRouteExtension(request);

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

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

UpdateLbRouteExtensionAsync(LbRouteExtension, FieldMask, CallSettings)

public virtual Task<Operation<LbRouteExtension, OperationMetadata>> UpdateLbRouteExtensionAsync(LbRouteExtension lbRouteExtension, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of the specified LbRouteExtension resource.

Parameters
Name Description
lbRouteExtension LbRouteExtension

Required. LbRouteExtension resource being updated.

updateMask FieldMask

Optional. Used to specify the fields to be overwritten in the LbRouteExtension resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field is overwritten if it is in the mask. If the user does not specify a mask, then all fields are overwritten.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationLbRouteExtensionOperationMetadata

A Task containing the RPC response.

Example
// Create client
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
LbRouteExtension lbRouteExtension = new LbRouteExtension();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<LbRouteExtension, OperationMetadata> response = await depServiceClient.UpdateLbRouteExtensionAsync(lbRouteExtension, updateMask);

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

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

UpdateLbRouteExtensionAsync(LbRouteExtension, FieldMask, CancellationToken)

public virtual Task<Operation<LbRouteExtension, OperationMetadata>> UpdateLbRouteExtensionAsync(LbRouteExtension lbRouteExtension, FieldMask updateMask, CancellationToken cancellationToken)

Updates the parameters of the specified LbRouteExtension resource.

Parameters
Name Description
lbRouteExtension LbRouteExtension

Required. LbRouteExtension resource being updated.

updateMask FieldMask

Optional. Used to specify the fields to be overwritten in the LbRouteExtension resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field is overwritten if it is in the mask. If the user does not specify a mask, then all fields are overwritten.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationLbRouteExtensionOperationMetadata

A Task containing the RPC response.

Example
// Create client
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
LbRouteExtension lbRouteExtension = new LbRouteExtension();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<LbRouteExtension, OperationMetadata> response = await depServiceClient.UpdateLbRouteExtensionAsync(lbRouteExtension, updateMask);

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

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

UpdateLbRouteExtensionAsync(UpdateLbRouteExtensionRequest, CallSettings)

public virtual Task<Operation<LbRouteExtension, OperationMetadata>> UpdateLbRouteExtensionAsync(UpdateLbRouteExtensionRequest request, CallSettings callSettings = null)

Updates the parameters of the specified LbRouteExtension resource.

Parameters
Name Description
request UpdateLbRouteExtensionRequest

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
TaskOperationLbRouteExtensionOperationMetadata

A Task containing the RPC response.

Example
// Create client
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateLbRouteExtensionRequest request = new UpdateLbRouteExtensionRequest
{
    UpdateMask = new FieldMask(),
    LbRouteExtension = new LbRouteExtension(),
    RequestId = "",
};
// Make the request
Operation<LbRouteExtension, OperationMetadata> response = await depServiceClient.UpdateLbRouteExtensionAsync(request);

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

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

UpdateLbRouteExtensionAsync(UpdateLbRouteExtensionRequest, CancellationToken)

public virtual Task<Operation<LbRouteExtension, OperationMetadata>> UpdateLbRouteExtensionAsync(UpdateLbRouteExtensionRequest request, CancellationToken cancellationToken)

Updates the parameters of the specified LbRouteExtension resource.

Parameters
Name Description
request UpdateLbRouteExtensionRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationLbRouteExtensionOperationMetadata

A Task containing the RPC response.

Example
// Create client
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateLbRouteExtensionRequest request = new UpdateLbRouteExtensionRequest
{
    UpdateMask = new FieldMask(),
    LbRouteExtension = new LbRouteExtension(),
    RequestId = "",
};
// Make the request
Operation<LbRouteExtension, OperationMetadata> response = await depServiceClient.UpdateLbRouteExtensionAsync(request);

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

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

UpdateLbTrafficExtension(LbTrafficExtension, FieldMask, CallSettings)

public virtual Operation<LbTrafficExtension, OperationMetadata> UpdateLbTrafficExtension(LbTrafficExtension lbTrafficExtension, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of the specified LbTrafficExtension resource.

Parameters
Name Description
lbTrafficExtension LbTrafficExtension

Required. LbTrafficExtension resource being updated.

updateMask FieldMask

Optional. Used to specify the fields to be overwritten in the LbTrafficExtension resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field is overwritten if it is in the mask. If the user does not specify a mask, then all fields are overwritten.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationLbTrafficExtensionOperationMetadata

The RPC response.

Example
// Create client
DepServiceClient depServiceClient = DepServiceClient.Create();
// Initialize request argument(s)
LbTrafficExtension lbTrafficExtension = new LbTrafficExtension();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<LbTrafficExtension, OperationMetadata> response = depServiceClient.UpdateLbTrafficExtension(lbTrafficExtension, updateMask);

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

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

UpdateLbTrafficExtension(UpdateLbTrafficExtensionRequest, CallSettings)

public virtual Operation<LbTrafficExtension, OperationMetadata> UpdateLbTrafficExtension(UpdateLbTrafficExtensionRequest request, CallSettings callSettings = null)

Updates the parameters of the specified LbTrafficExtension resource.

Parameters
Name Description
request UpdateLbTrafficExtensionRequest

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
OperationLbTrafficExtensionOperationMetadata

The RPC response.

Example
// Create client
DepServiceClient depServiceClient = DepServiceClient.Create();
// Initialize request argument(s)
UpdateLbTrafficExtensionRequest request = new UpdateLbTrafficExtensionRequest
{
    UpdateMask = new FieldMask(),
    LbTrafficExtension = new LbTrafficExtension(),
    RequestId = "",
};
// Make the request
Operation<LbTrafficExtension, OperationMetadata> response = depServiceClient.UpdateLbTrafficExtension(request);

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

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

UpdateLbTrafficExtensionAsync(LbTrafficExtension, FieldMask, CallSettings)

public virtual Task<Operation<LbTrafficExtension, OperationMetadata>> UpdateLbTrafficExtensionAsync(LbTrafficExtension lbTrafficExtension, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of the specified LbTrafficExtension resource.

Parameters
Name Description
lbTrafficExtension LbTrafficExtension

Required. LbTrafficExtension resource being updated.

updateMask FieldMask

Optional. Used to specify the fields to be overwritten in the LbTrafficExtension resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field is overwritten if it is in the mask. If the user does not specify a mask, then all fields are overwritten.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationLbTrafficExtensionOperationMetadata

A Task containing the RPC response.

Example
// Create client
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
LbTrafficExtension lbTrafficExtension = new LbTrafficExtension();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<LbTrafficExtension, OperationMetadata> response = await depServiceClient.UpdateLbTrafficExtensionAsync(lbTrafficExtension, updateMask);

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

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

UpdateLbTrafficExtensionAsync(LbTrafficExtension, FieldMask, CancellationToken)

public virtual Task<Operation<LbTrafficExtension, OperationMetadata>> UpdateLbTrafficExtensionAsync(LbTrafficExtension lbTrafficExtension, FieldMask updateMask, CancellationToken cancellationToken)

Updates the parameters of the specified LbTrafficExtension resource.

Parameters
Name Description
lbTrafficExtension LbTrafficExtension

Required. LbTrafficExtension resource being updated.

updateMask FieldMask

Optional. Used to specify the fields to be overwritten in the LbTrafficExtension resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field is overwritten if it is in the mask. If the user does not specify a mask, then all fields are overwritten.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationLbTrafficExtensionOperationMetadata

A Task containing the RPC response.

Example
// Create client
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
LbTrafficExtension lbTrafficExtension = new LbTrafficExtension();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<LbTrafficExtension, OperationMetadata> response = await depServiceClient.UpdateLbTrafficExtensionAsync(lbTrafficExtension, updateMask);

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

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

UpdateLbTrafficExtensionAsync(UpdateLbTrafficExtensionRequest, CallSettings)

public virtual Task<Operation<LbTrafficExtension, OperationMetadata>> UpdateLbTrafficExtensionAsync(UpdateLbTrafficExtensionRequest request, CallSettings callSettings = null)

Updates the parameters of the specified LbTrafficExtension resource.

Parameters
Name Description
request UpdateLbTrafficExtensionRequest

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
TaskOperationLbTrafficExtensionOperationMetadata

A Task containing the RPC response.

Example
// Create client
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateLbTrafficExtensionRequest request = new UpdateLbTrafficExtensionRequest
{
    UpdateMask = new FieldMask(),
    LbTrafficExtension = new LbTrafficExtension(),
    RequestId = "",
};
// Make the request
Operation<LbTrafficExtension, OperationMetadata> response = await depServiceClient.UpdateLbTrafficExtensionAsync(request);

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

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

UpdateLbTrafficExtensionAsync(UpdateLbTrafficExtensionRequest, CancellationToken)

public virtual Task<Operation<LbTrafficExtension, OperationMetadata>> UpdateLbTrafficExtensionAsync(UpdateLbTrafficExtensionRequest request, CancellationToken cancellationToken)

Updates the parameters of the specified LbTrafficExtension resource.

Parameters
Name Description
request UpdateLbTrafficExtensionRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationLbTrafficExtensionOperationMetadata

A Task containing the RPC response.

Example
// Create client
DepServiceClient depServiceClient = await DepServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateLbTrafficExtensionRequest request = new UpdateLbTrafficExtensionRequest
{
    UpdateMask = new FieldMask(),
    LbTrafficExtension = new LbTrafficExtension(),
    RequestId = "",
};
// Make the request
Operation<LbTrafficExtension, OperationMetadata> response = await depServiceClient.UpdateLbTrafficExtensionAsync(request);

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

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