Network Services v1 API - Class NetworkServicesClient (1.0.0)

public abstract class NetworkServicesClient

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

NetworkServices client wrapper, for convenient use.

Inheritance

object > NetworkServicesClient

Namespace

Google.Cloud.NetworkServices.V1

Assembly

Google.Cloud.NetworkServices.V1.dll

Remarks

Service describing handlers for resources.

Properties

CreateEndpointPolicyOperationsClient

public virtual OperationsClient CreateEndpointPolicyOperationsClient { get; }

The long-running operations client for CreateEndpointPolicy.

Property Value
Type Description
OperationsClient

CreateGatewayOperationsClient

public virtual OperationsClient CreateGatewayOperationsClient { get; }

The long-running operations client for CreateGateway.

Property Value
Type Description
OperationsClient

CreateGrpcRouteOperationsClient

public virtual OperationsClient CreateGrpcRouteOperationsClient { get; }

The long-running operations client for CreateGrpcRoute.

Property Value
Type Description
OperationsClient

CreateHttpRouteOperationsClient

public virtual OperationsClient CreateHttpRouteOperationsClient { get; }

The long-running operations client for CreateHttpRoute.

Property Value
Type Description
OperationsClient

CreateMeshOperationsClient

public virtual OperationsClient CreateMeshOperationsClient { get; }

The long-running operations client for CreateMesh.

Property Value
Type Description
OperationsClient

CreateServiceBindingOperationsClient

public virtual OperationsClient CreateServiceBindingOperationsClient { get; }

The long-running operations client for CreateServiceBinding.

Property Value
Type Description
OperationsClient

CreateTcpRouteOperationsClient

public virtual OperationsClient CreateTcpRouteOperationsClient { get; }

The long-running operations client for CreateTcpRoute.

Property Value
Type Description
OperationsClient

CreateTlsRouteOperationsClient

public virtual OperationsClient CreateTlsRouteOperationsClient { get; }

The long-running operations client for CreateTlsRoute.

Property Value
Type Description
OperationsClient

DefaultEndpoint

public static string DefaultEndpoint { get; }

The default endpoint for the NetworkServices 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 NetworkServices scopes.

Property Value
Type Description
IReadOnlyListstring
Remarks

The default NetworkServices scopes are:

DeleteEndpointPolicyOperationsClient

public virtual OperationsClient DeleteEndpointPolicyOperationsClient { get; }

The long-running operations client for DeleteEndpointPolicy.

Property Value
Type Description
OperationsClient

DeleteGatewayOperationsClient

public virtual OperationsClient DeleteGatewayOperationsClient { get; }

The long-running operations client for DeleteGateway.

Property Value
Type Description
OperationsClient

DeleteGrpcRouteOperationsClient

public virtual OperationsClient DeleteGrpcRouteOperationsClient { get; }

The long-running operations client for DeleteGrpcRoute.

Property Value
Type Description
OperationsClient

DeleteHttpRouteOperationsClient

public virtual OperationsClient DeleteHttpRouteOperationsClient { get; }

The long-running operations client for DeleteHttpRoute.

Property Value
Type Description
OperationsClient

DeleteMeshOperationsClient

public virtual OperationsClient DeleteMeshOperationsClient { get; }

The long-running operations client for DeleteMesh.

Property Value
Type Description
OperationsClient

DeleteServiceBindingOperationsClient

public virtual OperationsClient DeleteServiceBindingOperationsClient { get; }

The long-running operations client for DeleteServiceBinding.

Property Value
Type Description
OperationsClient

DeleteTcpRouteOperationsClient

public virtual OperationsClient DeleteTcpRouteOperationsClient { get; }

The long-running operations client for DeleteTcpRoute.

Property Value
Type Description
OperationsClient

DeleteTlsRouteOperationsClient

public virtual OperationsClient DeleteTlsRouteOperationsClient { get; }

The long-running operations client for DeleteTlsRoute.

Property Value
Type Description
OperationsClient

GrpcClient

public virtual NetworkServices.NetworkServicesClient GrpcClient { get; }

The underlying gRPC NetworkServices client

Property Value
Type Description
NetworkServicesNetworkServicesClient

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

UpdateEndpointPolicyOperationsClient

public virtual OperationsClient UpdateEndpointPolicyOperationsClient { get; }

The long-running operations client for UpdateEndpointPolicy.

Property Value
Type Description
OperationsClient

UpdateGatewayOperationsClient

public virtual OperationsClient UpdateGatewayOperationsClient { get; }

The long-running operations client for UpdateGateway.

Property Value
Type Description
OperationsClient

UpdateGrpcRouteOperationsClient

public virtual OperationsClient UpdateGrpcRouteOperationsClient { get; }

The long-running operations client for UpdateGrpcRoute.

Property Value
Type Description
OperationsClient

UpdateHttpRouteOperationsClient

public virtual OperationsClient UpdateHttpRouteOperationsClient { get; }

The long-running operations client for UpdateHttpRoute.

Property Value
Type Description
OperationsClient

UpdateMeshOperationsClient

public virtual OperationsClient UpdateMeshOperationsClient { get; }

The long-running operations client for UpdateMesh.

Property Value
Type Description
OperationsClient

UpdateTcpRouteOperationsClient

public virtual OperationsClient UpdateTcpRouteOperationsClient { get; }

The long-running operations client for UpdateTcpRoute.

Property Value
Type Description
OperationsClient

UpdateTlsRouteOperationsClient

public virtual OperationsClient UpdateTlsRouteOperationsClient { get; }

The long-running operations client for UpdateTlsRoute.

Property Value
Type Description
OperationsClient

Methods

Create()

public static NetworkServicesClient Create()

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

Returns
Type Description
NetworkServicesClient

The created NetworkServicesClient.

CreateAsync(CancellationToken)

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

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

Parameter
Name Description
cancellationToken CancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
TaskNetworkServicesClient

The task representing the created NetworkServicesClient.

CreateEndpointPolicy(LocationName, EndpointPolicy, string, CallSettings)

public virtual Operation<EndpointPolicy, OperationMetadata> CreateEndpointPolicy(LocationName parent, EndpointPolicy endpointPolicy, string endpointPolicyId, CallSettings callSettings = null)

Creates a new EndpointPolicy in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the EndpointPolicy. Must be in the format projects/*/locations/global.

endpointPolicy EndpointPolicy

Required. EndpointPolicy resource to be created.

endpointPolicyId string

Required. Short name of the EndpointPolicy resource to be created. E.g. "CustomECS".

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEndpointPolicyOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
EndpointPolicy endpointPolicy = new EndpointPolicy();
string endpointPolicyId = "";
// Make the request
Operation<EndpointPolicy, OperationMetadata> response = networkServicesClient.CreateEndpointPolicy(parent, endpointPolicy, endpointPolicyId);

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

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

CreateEndpointPolicy(CreateEndpointPolicyRequest, CallSettings)

public virtual Operation<EndpointPolicy, OperationMetadata> CreateEndpointPolicy(CreateEndpointPolicyRequest request, CallSettings callSettings = null)

Creates a new EndpointPolicy in a given project and location.

Parameters
Name Description
request CreateEndpointPolicyRequest

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
OperationEndpointPolicyOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
CreateEndpointPolicyRequest request = new CreateEndpointPolicyRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    EndpointPolicyId = "",
    EndpointPolicy = new EndpointPolicy(),
};
// Make the request
Operation<EndpointPolicy, OperationMetadata> response = networkServicesClient.CreateEndpointPolicy(request);

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

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

CreateEndpointPolicy(string, EndpointPolicy, string, CallSettings)

public virtual Operation<EndpointPolicy, OperationMetadata> CreateEndpointPolicy(string parent, EndpointPolicy endpointPolicy, string endpointPolicyId, CallSettings callSettings = null)

Creates a new EndpointPolicy in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the EndpointPolicy. Must be in the format projects/*/locations/global.

endpointPolicy EndpointPolicy

Required. EndpointPolicy resource to be created.

endpointPolicyId string

Required. Short name of the EndpointPolicy resource to be created. E.g. "CustomECS".

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEndpointPolicyOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
EndpointPolicy endpointPolicy = new EndpointPolicy();
string endpointPolicyId = "";
// Make the request
Operation<EndpointPolicy, OperationMetadata> response = networkServicesClient.CreateEndpointPolicy(parent, endpointPolicy, endpointPolicyId);

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

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

CreateEndpointPolicyAsync(LocationName, EndpointPolicy, string, CallSettings)

public virtual Task<Operation<EndpointPolicy, OperationMetadata>> CreateEndpointPolicyAsync(LocationName parent, EndpointPolicy endpointPolicy, string endpointPolicyId, CallSettings callSettings = null)

Creates a new EndpointPolicy in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the EndpointPolicy. Must be in the format projects/*/locations/global.

endpointPolicy EndpointPolicy

Required. EndpointPolicy resource to be created.

endpointPolicyId string

Required. Short name of the EndpointPolicy resource to be created. E.g. "CustomECS".

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEndpointPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
EndpointPolicy endpointPolicy = new EndpointPolicy();
string endpointPolicyId = "";
// Make the request
Operation<EndpointPolicy, OperationMetadata> response = await networkServicesClient.CreateEndpointPolicyAsync(parent, endpointPolicy, endpointPolicyId);

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

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

CreateEndpointPolicyAsync(LocationName, EndpointPolicy, string, CancellationToken)

public virtual Task<Operation<EndpointPolicy, OperationMetadata>> CreateEndpointPolicyAsync(LocationName parent, EndpointPolicy endpointPolicy, string endpointPolicyId, CancellationToken cancellationToken)

Creates a new EndpointPolicy in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the EndpointPolicy. Must be in the format projects/*/locations/global.

endpointPolicy EndpointPolicy

Required. EndpointPolicy resource to be created.

endpointPolicyId string

Required. Short name of the EndpointPolicy resource to be created. E.g. "CustomECS".

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEndpointPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
EndpointPolicy endpointPolicy = new EndpointPolicy();
string endpointPolicyId = "";
// Make the request
Operation<EndpointPolicy, OperationMetadata> response = await networkServicesClient.CreateEndpointPolicyAsync(parent, endpointPolicy, endpointPolicyId);

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

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

CreateEndpointPolicyAsync(CreateEndpointPolicyRequest, CallSettings)

public virtual Task<Operation<EndpointPolicy, OperationMetadata>> CreateEndpointPolicyAsync(CreateEndpointPolicyRequest request, CallSettings callSettings = null)

Creates a new EndpointPolicy in a given project and location.

Parameters
Name Description
request CreateEndpointPolicyRequest

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
TaskOperationEndpointPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
CreateEndpointPolicyRequest request = new CreateEndpointPolicyRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    EndpointPolicyId = "",
    EndpointPolicy = new EndpointPolicy(),
};
// Make the request
Operation<EndpointPolicy, OperationMetadata> response = await networkServicesClient.CreateEndpointPolicyAsync(request);

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

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

CreateEndpointPolicyAsync(CreateEndpointPolicyRequest, CancellationToken)

public virtual Task<Operation<EndpointPolicy, OperationMetadata>> CreateEndpointPolicyAsync(CreateEndpointPolicyRequest request, CancellationToken cancellationToken)

Creates a new EndpointPolicy in a given project and location.

Parameters
Name Description
request CreateEndpointPolicyRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEndpointPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
CreateEndpointPolicyRequest request = new CreateEndpointPolicyRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    EndpointPolicyId = "",
    EndpointPolicy = new EndpointPolicy(),
};
// Make the request
Operation<EndpointPolicy, OperationMetadata> response = await networkServicesClient.CreateEndpointPolicyAsync(request);

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

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

CreateEndpointPolicyAsync(string, EndpointPolicy, string, CallSettings)

public virtual Task<Operation<EndpointPolicy, OperationMetadata>> CreateEndpointPolicyAsync(string parent, EndpointPolicy endpointPolicy, string endpointPolicyId, CallSettings callSettings = null)

Creates a new EndpointPolicy in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the EndpointPolicy. Must be in the format projects/*/locations/global.

endpointPolicy EndpointPolicy

Required. EndpointPolicy resource to be created.

endpointPolicyId string

Required. Short name of the EndpointPolicy resource to be created. E.g. "CustomECS".

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEndpointPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
EndpointPolicy endpointPolicy = new EndpointPolicy();
string endpointPolicyId = "";
// Make the request
Operation<EndpointPolicy, OperationMetadata> response = await networkServicesClient.CreateEndpointPolicyAsync(parent, endpointPolicy, endpointPolicyId);

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

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

CreateEndpointPolicyAsync(string, EndpointPolicy, string, CancellationToken)

public virtual Task<Operation<EndpointPolicy, OperationMetadata>> CreateEndpointPolicyAsync(string parent, EndpointPolicy endpointPolicy, string endpointPolicyId, CancellationToken cancellationToken)

Creates a new EndpointPolicy in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the EndpointPolicy. Must be in the format projects/*/locations/global.

endpointPolicy EndpointPolicy

Required. EndpointPolicy resource to be created.

endpointPolicyId string

Required. Short name of the EndpointPolicy resource to be created. E.g. "CustomECS".

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEndpointPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
EndpointPolicy endpointPolicy = new EndpointPolicy();
string endpointPolicyId = "";
// Make the request
Operation<EndpointPolicy, OperationMetadata> response = await networkServicesClient.CreateEndpointPolicyAsync(parent, endpointPolicy, endpointPolicyId);

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

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

CreateGateway(LocationName, Gateway, string, CallSettings)

public virtual Operation<Gateway, OperationMetadata> CreateGateway(LocationName parent, Gateway gateway, string gatewayId, CallSettings callSettings = null)

Creates a new Gateway in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the Gateway. Must be in the format projects/*/locations/*.

gateway Gateway

Required. Gateway resource to be created.

gatewayId string

Required. Short name of the Gateway resource to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationGatewayOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Gateway gateway = new Gateway();
string gatewayId = "";
// Make the request
Operation<Gateway, OperationMetadata> response = networkServicesClient.CreateGateway(parent, gateway, gatewayId);

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

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

CreateGateway(CreateGatewayRequest, CallSettings)

public virtual Operation<Gateway, OperationMetadata> CreateGateway(CreateGatewayRequest request, CallSettings callSettings = null)

Creates a new Gateway in a given project and location.

Parameters
Name Description
request CreateGatewayRequest

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
OperationGatewayOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
CreateGatewayRequest request = new CreateGatewayRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    GatewayId = "",
    Gateway = new Gateway(),
};
// Make the request
Operation<Gateway, OperationMetadata> response = networkServicesClient.CreateGateway(request);

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

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

CreateGateway(string, Gateway, string, CallSettings)

public virtual Operation<Gateway, OperationMetadata> CreateGateway(string parent, Gateway gateway, string gatewayId, CallSettings callSettings = null)

Creates a new Gateway in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the Gateway. Must be in the format projects/*/locations/*.

gateway Gateway

Required. Gateway resource to be created.

gatewayId string

Required. Short name of the Gateway resource to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationGatewayOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Gateway gateway = new Gateway();
string gatewayId = "";
// Make the request
Operation<Gateway, OperationMetadata> response = networkServicesClient.CreateGateway(parent, gateway, gatewayId);

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

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

CreateGatewayAsync(LocationName, Gateway, string, CallSettings)

public virtual Task<Operation<Gateway, OperationMetadata>> CreateGatewayAsync(LocationName parent, Gateway gateway, string gatewayId, CallSettings callSettings = null)

Creates a new Gateway in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the Gateway. Must be in the format projects/*/locations/*.

gateway Gateway

Required. Gateway resource to be created.

gatewayId string

Required. Short name of the Gateway resource to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationGatewayOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Gateway gateway = new Gateway();
string gatewayId = "";
// Make the request
Operation<Gateway, OperationMetadata> response = await networkServicesClient.CreateGatewayAsync(parent, gateway, gatewayId);

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

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

CreateGatewayAsync(LocationName, Gateway, string, CancellationToken)

public virtual Task<Operation<Gateway, OperationMetadata>> CreateGatewayAsync(LocationName parent, Gateway gateway, string gatewayId, CancellationToken cancellationToken)

Creates a new Gateway in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the Gateway. Must be in the format projects/*/locations/*.

gateway Gateway

Required. Gateway resource to be created.

gatewayId string

Required. Short name of the Gateway resource to be created.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationGatewayOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Gateway gateway = new Gateway();
string gatewayId = "";
// Make the request
Operation<Gateway, OperationMetadata> response = await networkServicesClient.CreateGatewayAsync(parent, gateway, gatewayId);

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

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

CreateGatewayAsync(CreateGatewayRequest, CallSettings)

public virtual Task<Operation<Gateway, OperationMetadata>> CreateGatewayAsync(CreateGatewayRequest request, CallSettings callSettings = null)

Creates a new Gateway in a given project and location.

Parameters
Name Description
request CreateGatewayRequest

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
TaskOperationGatewayOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
CreateGatewayRequest request = new CreateGatewayRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    GatewayId = "",
    Gateway = new Gateway(),
};
// Make the request
Operation<Gateway, OperationMetadata> response = await networkServicesClient.CreateGatewayAsync(request);

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

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

CreateGatewayAsync(CreateGatewayRequest, CancellationToken)

public virtual Task<Operation<Gateway, OperationMetadata>> CreateGatewayAsync(CreateGatewayRequest request, CancellationToken cancellationToken)

Creates a new Gateway in a given project and location.

Parameters
Name Description
request CreateGatewayRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationGatewayOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
CreateGatewayRequest request = new CreateGatewayRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    GatewayId = "",
    Gateway = new Gateway(),
};
// Make the request
Operation<Gateway, OperationMetadata> response = await networkServicesClient.CreateGatewayAsync(request);

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

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

CreateGatewayAsync(string, Gateway, string, CallSettings)

public virtual Task<Operation<Gateway, OperationMetadata>> CreateGatewayAsync(string parent, Gateway gateway, string gatewayId, CallSettings callSettings = null)

Creates a new Gateway in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the Gateway. Must be in the format projects/*/locations/*.

gateway Gateway

Required. Gateway resource to be created.

gatewayId string

Required. Short name of the Gateway resource to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationGatewayOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Gateway gateway = new Gateway();
string gatewayId = "";
// Make the request
Operation<Gateway, OperationMetadata> response = await networkServicesClient.CreateGatewayAsync(parent, gateway, gatewayId);

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

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

CreateGatewayAsync(string, Gateway, string, CancellationToken)

public virtual Task<Operation<Gateway, OperationMetadata>> CreateGatewayAsync(string parent, Gateway gateway, string gatewayId, CancellationToken cancellationToken)

Creates a new Gateway in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the Gateway. Must be in the format projects/*/locations/*.

gateway Gateway

Required. Gateway resource to be created.

gatewayId string

Required. Short name of the Gateway resource to be created.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationGatewayOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Gateway gateway = new Gateway();
string gatewayId = "";
// Make the request
Operation<Gateway, OperationMetadata> response = await networkServicesClient.CreateGatewayAsync(parent, gateway, gatewayId);

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

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

CreateGrpcRoute(LocationName, GrpcRoute, string, CallSettings)

public virtual Operation<GrpcRoute, OperationMetadata> CreateGrpcRoute(LocationName parent, GrpcRoute grpcRoute, string grpcRouteId, CallSettings callSettings = null)

Creates a new GrpcRoute in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the GrpcRoute. Must be in the format projects/*/locations/global.

grpcRoute GrpcRoute

Required. GrpcRoute resource to be created.

grpcRouteId string

Required. Short name of the GrpcRoute resource to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationGrpcRouteOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
GrpcRoute grpcRoute = new GrpcRoute();
string grpcRouteId = "";
// Make the request
Operation<GrpcRoute, OperationMetadata> response = networkServicesClient.CreateGrpcRoute(parent, grpcRoute, grpcRouteId);

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

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

CreateGrpcRoute(CreateGrpcRouteRequest, CallSettings)

public virtual Operation<GrpcRoute, OperationMetadata> CreateGrpcRoute(CreateGrpcRouteRequest request, CallSettings callSettings = null)

Creates a new GrpcRoute in a given project and location.

Parameters
Name Description
request CreateGrpcRouteRequest

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
OperationGrpcRouteOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
CreateGrpcRouteRequest request = new CreateGrpcRouteRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    GrpcRouteId = "",
    GrpcRoute = new GrpcRoute(),
};
// Make the request
Operation<GrpcRoute, OperationMetadata> response = networkServicesClient.CreateGrpcRoute(request);

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

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

CreateGrpcRoute(string, GrpcRoute, string, CallSettings)

public virtual Operation<GrpcRoute, OperationMetadata> CreateGrpcRoute(string parent, GrpcRoute grpcRoute, string grpcRouteId, CallSettings callSettings = null)

Creates a new GrpcRoute in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the GrpcRoute. Must be in the format projects/*/locations/global.

grpcRoute GrpcRoute

Required. GrpcRoute resource to be created.

grpcRouteId string

Required. Short name of the GrpcRoute resource to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationGrpcRouteOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
GrpcRoute grpcRoute = new GrpcRoute();
string grpcRouteId = "";
// Make the request
Operation<GrpcRoute, OperationMetadata> response = networkServicesClient.CreateGrpcRoute(parent, grpcRoute, grpcRouteId);

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

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

CreateGrpcRouteAsync(LocationName, GrpcRoute, string, CallSettings)

public virtual Task<Operation<GrpcRoute, OperationMetadata>> CreateGrpcRouteAsync(LocationName parent, GrpcRoute grpcRoute, string grpcRouteId, CallSettings callSettings = null)

Creates a new GrpcRoute in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the GrpcRoute. Must be in the format projects/*/locations/global.

grpcRoute GrpcRoute

Required. GrpcRoute resource to be created.

grpcRouteId string

Required. Short name of the GrpcRoute resource to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationGrpcRouteOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
GrpcRoute grpcRoute = new GrpcRoute();
string grpcRouteId = "";
// Make the request
Operation<GrpcRoute, OperationMetadata> response = await networkServicesClient.CreateGrpcRouteAsync(parent, grpcRoute, grpcRouteId);

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

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

CreateGrpcRouteAsync(LocationName, GrpcRoute, string, CancellationToken)

public virtual Task<Operation<GrpcRoute, OperationMetadata>> CreateGrpcRouteAsync(LocationName parent, GrpcRoute grpcRoute, string grpcRouteId, CancellationToken cancellationToken)

Creates a new GrpcRoute in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the GrpcRoute. Must be in the format projects/*/locations/global.

grpcRoute GrpcRoute

Required. GrpcRoute resource to be created.

grpcRouteId string

Required. Short name of the GrpcRoute resource to be created.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationGrpcRouteOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
GrpcRoute grpcRoute = new GrpcRoute();
string grpcRouteId = "";
// Make the request
Operation<GrpcRoute, OperationMetadata> response = await networkServicesClient.CreateGrpcRouteAsync(parent, grpcRoute, grpcRouteId);

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

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

CreateGrpcRouteAsync(CreateGrpcRouteRequest, CallSettings)

public virtual Task<Operation<GrpcRoute, OperationMetadata>> CreateGrpcRouteAsync(CreateGrpcRouteRequest request, CallSettings callSettings = null)

Creates a new GrpcRoute in a given project and location.

Parameters
Name Description
request CreateGrpcRouteRequest

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
TaskOperationGrpcRouteOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
CreateGrpcRouteRequest request = new CreateGrpcRouteRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    GrpcRouteId = "",
    GrpcRoute = new GrpcRoute(),
};
// Make the request
Operation<GrpcRoute, OperationMetadata> response = await networkServicesClient.CreateGrpcRouteAsync(request);

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

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

CreateGrpcRouteAsync(CreateGrpcRouteRequest, CancellationToken)

public virtual Task<Operation<GrpcRoute, OperationMetadata>> CreateGrpcRouteAsync(CreateGrpcRouteRequest request, CancellationToken cancellationToken)

Creates a new GrpcRoute in a given project and location.

Parameters
Name Description
request CreateGrpcRouteRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationGrpcRouteOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
CreateGrpcRouteRequest request = new CreateGrpcRouteRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    GrpcRouteId = "",
    GrpcRoute = new GrpcRoute(),
};
// Make the request
Operation<GrpcRoute, OperationMetadata> response = await networkServicesClient.CreateGrpcRouteAsync(request);

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

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

CreateGrpcRouteAsync(string, GrpcRoute, string, CallSettings)

public virtual Task<Operation<GrpcRoute, OperationMetadata>> CreateGrpcRouteAsync(string parent, GrpcRoute grpcRoute, string grpcRouteId, CallSettings callSettings = null)

Creates a new GrpcRoute in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the GrpcRoute. Must be in the format projects/*/locations/global.

grpcRoute GrpcRoute

Required. GrpcRoute resource to be created.

grpcRouteId string

Required. Short name of the GrpcRoute resource to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationGrpcRouteOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
GrpcRoute grpcRoute = new GrpcRoute();
string grpcRouteId = "";
// Make the request
Operation<GrpcRoute, OperationMetadata> response = await networkServicesClient.CreateGrpcRouteAsync(parent, grpcRoute, grpcRouteId);

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

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

CreateGrpcRouteAsync(string, GrpcRoute, string, CancellationToken)

public virtual Task<Operation<GrpcRoute, OperationMetadata>> CreateGrpcRouteAsync(string parent, GrpcRoute grpcRoute, string grpcRouteId, CancellationToken cancellationToken)

Creates a new GrpcRoute in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the GrpcRoute. Must be in the format projects/*/locations/global.

grpcRoute GrpcRoute

Required. GrpcRoute resource to be created.

grpcRouteId string

Required. Short name of the GrpcRoute resource to be created.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationGrpcRouteOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
GrpcRoute grpcRoute = new GrpcRoute();
string grpcRouteId = "";
// Make the request
Operation<GrpcRoute, OperationMetadata> response = await networkServicesClient.CreateGrpcRouteAsync(parent, grpcRoute, grpcRouteId);

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

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

CreateHttpRoute(LocationName, HttpRoute, string, CallSettings)

public virtual Operation<HttpRoute, OperationMetadata> CreateHttpRoute(LocationName parent, HttpRoute httpRoute, string httpRouteId, CallSettings callSettings = null)

Creates a new HttpRoute in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the HttpRoute. Must be in the format projects/*/locations/global.

httpRoute HttpRoute

Required. HttpRoute resource to be created.

httpRouteId string

Required. Short name of the HttpRoute resource to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationHttpRouteOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
HttpRoute httpRoute = new HttpRoute();
string httpRouteId = "";
// Make the request
Operation<HttpRoute, OperationMetadata> response = networkServicesClient.CreateHttpRoute(parent, httpRoute, httpRouteId);

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

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

CreateHttpRoute(CreateHttpRouteRequest, CallSettings)

public virtual Operation<HttpRoute, OperationMetadata> CreateHttpRoute(CreateHttpRouteRequest request, CallSettings callSettings = null)

Creates a new HttpRoute in a given project and location.

Parameters
Name Description
request CreateHttpRouteRequest

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
OperationHttpRouteOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
CreateHttpRouteRequest request = new CreateHttpRouteRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    HttpRouteId = "",
    HttpRoute = new HttpRoute(),
};
// Make the request
Operation<HttpRoute, OperationMetadata> response = networkServicesClient.CreateHttpRoute(request);

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

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

CreateHttpRoute(string, HttpRoute, string, CallSettings)

public virtual Operation<HttpRoute, OperationMetadata> CreateHttpRoute(string parent, HttpRoute httpRoute, string httpRouteId, CallSettings callSettings = null)

Creates a new HttpRoute in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the HttpRoute. Must be in the format projects/*/locations/global.

httpRoute HttpRoute

Required. HttpRoute resource to be created.

httpRouteId string

Required. Short name of the HttpRoute resource to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationHttpRouteOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
HttpRoute httpRoute = new HttpRoute();
string httpRouteId = "";
// Make the request
Operation<HttpRoute, OperationMetadata> response = networkServicesClient.CreateHttpRoute(parent, httpRoute, httpRouteId);

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

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

CreateHttpRouteAsync(LocationName, HttpRoute, string, CallSettings)

public virtual Task<Operation<HttpRoute, OperationMetadata>> CreateHttpRouteAsync(LocationName parent, HttpRoute httpRoute, string httpRouteId, CallSettings callSettings = null)

Creates a new HttpRoute in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the HttpRoute. Must be in the format projects/*/locations/global.

httpRoute HttpRoute

Required. HttpRoute resource to be created.

httpRouteId string

Required. Short name of the HttpRoute resource to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationHttpRouteOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
HttpRoute httpRoute = new HttpRoute();
string httpRouteId = "";
// Make the request
Operation<HttpRoute, OperationMetadata> response = await networkServicesClient.CreateHttpRouteAsync(parent, httpRoute, httpRouteId);

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

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

CreateHttpRouteAsync(LocationName, HttpRoute, string, CancellationToken)

public virtual Task<Operation<HttpRoute, OperationMetadata>> CreateHttpRouteAsync(LocationName parent, HttpRoute httpRoute, string httpRouteId, CancellationToken cancellationToken)

Creates a new HttpRoute in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the HttpRoute. Must be in the format projects/*/locations/global.

httpRoute HttpRoute

Required. HttpRoute resource to be created.

httpRouteId string

Required. Short name of the HttpRoute resource to be created.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationHttpRouteOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
HttpRoute httpRoute = new HttpRoute();
string httpRouteId = "";
// Make the request
Operation<HttpRoute, OperationMetadata> response = await networkServicesClient.CreateHttpRouteAsync(parent, httpRoute, httpRouteId);

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

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

CreateHttpRouteAsync(CreateHttpRouteRequest, CallSettings)

public virtual Task<Operation<HttpRoute, OperationMetadata>> CreateHttpRouteAsync(CreateHttpRouteRequest request, CallSettings callSettings = null)

Creates a new HttpRoute in a given project and location.

Parameters
Name Description
request CreateHttpRouteRequest

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
TaskOperationHttpRouteOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
CreateHttpRouteRequest request = new CreateHttpRouteRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    HttpRouteId = "",
    HttpRoute = new HttpRoute(),
};
// Make the request
Operation<HttpRoute, OperationMetadata> response = await networkServicesClient.CreateHttpRouteAsync(request);

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

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

CreateHttpRouteAsync(CreateHttpRouteRequest, CancellationToken)

public virtual Task<Operation<HttpRoute, OperationMetadata>> CreateHttpRouteAsync(CreateHttpRouteRequest request, CancellationToken cancellationToken)

Creates a new HttpRoute in a given project and location.

Parameters
Name Description
request CreateHttpRouteRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationHttpRouteOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
CreateHttpRouteRequest request = new CreateHttpRouteRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    HttpRouteId = "",
    HttpRoute = new HttpRoute(),
};
// Make the request
Operation<HttpRoute, OperationMetadata> response = await networkServicesClient.CreateHttpRouteAsync(request);

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

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

CreateHttpRouteAsync(string, HttpRoute, string, CallSettings)

public virtual Task<Operation<HttpRoute, OperationMetadata>> CreateHttpRouteAsync(string parent, HttpRoute httpRoute, string httpRouteId, CallSettings callSettings = null)

Creates a new HttpRoute in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the HttpRoute. Must be in the format projects/*/locations/global.

httpRoute HttpRoute

Required. HttpRoute resource to be created.

httpRouteId string

Required. Short name of the HttpRoute resource to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationHttpRouteOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
HttpRoute httpRoute = new HttpRoute();
string httpRouteId = "";
// Make the request
Operation<HttpRoute, OperationMetadata> response = await networkServicesClient.CreateHttpRouteAsync(parent, httpRoute, httpRouteId);

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

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

CreateHttpRouteAsync(string, HttpRoute, string, CancellationToken)

public virtual Task<Operation<HttpRoute, OperationMetadata>> CreateHttpRouteAsync(string parent, HttpRoute httpRoute, string httpRouteId, CancellationToken cancellationToken)

Creates a new HttpRoute in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the HttpRoute. Must be in the format projects/*/locations/global.

httpRoute HttpRoute

Required. HttpRoute resource to be created.

httpRouteId string

Required. Short name of the HttpRoute resource to be created.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationHttpRouteOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
HttpRoute httpRoute = new HttpRoute();
string httpRouteId = "";
// Make the request
Operation<HttpRoute, OperationMetadata> response = await networkServicesClient.CreateHttpRouteAsync(parent, httpRoute, httpRouteId);

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

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

CreateMesh(LocationName, Mesh, string, CallSettings)

public virtual Operation<Mesh, OperationMetadata> CreateMesh(LocationName parent, Mesh mesh, string meshId, CallSettings callSettings = null)

Creates a new Mesh in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the Mesh. Must be in the format projects/*/locations/global.

mesh Mesh

Required. Mesh resource to be created.

meshId string

Required. Short name of the Mesh resource to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationMeshOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Mesh mesh = new Mesh();
string meshId = "";
// Make the request
Operation<Mesh, OperationMetadata> response = networkServicesClient.CreateMesh(parent, mesh, meshId);

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

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

CreateMesh(CreateMeshRequest, CallSettings)

public virtual Operation<Mesh, OperationMetadata> CreateMesh(CreateMeshRequest request, CallSettings callSettings = null)

Creates a new Mesh in a given project and location.

Parameters
Name Description
request CreateMeshRequest

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
OperationMeshOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
CreateMeshRequest request = new CreateMeshRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    MeshId = "",
    Mesh = new Mesh(),
};
// Make the request
Operation<Mesh, OperationMetadata> response = networkServicesClient.CreateMesh(request);

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

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

CreateMesh(string, Mesh, string, CallSettings)

public virtual Operation<Mesh, OperationMetadata> CreateMesh(string parent, Mesh mesh, string meshId, CallSettings callSettings = null)

Creates a new Mesh in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the Mesh. Must be in the format projects/*/locations/global.

mesh Mesh

Required. Mesh resource to be created.

meshId string

Required. Short name of the Mesh resource to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationMeshOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Mesh mesh = new Mesh();
string meshId = "";
// Make the request
Operation<Mesh, OperationMetadata> response = networkServicesClient.CreateMesh(parent, mesh, meshId);

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

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

CreateMeshAsync(LocationName, Mesh, string, CallSettings)

public virtual Task<Operation<Mesh, OperationMetadata>> CreateMeshAsync(LocationName parent, Mesh mesh, string meshId, CallSettings callSettings = null)

Creates a new Mesh in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the Mesh. Must be in the format projects/*/locations/global.

mesh Mesh

Required. Mesh resource to be created.

meshId string

Required. Short name of the Mesh resource to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationMeshOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Mesh mesh = new Mesh();
string meshId = "";
// Make the request
Operation<Mesh, OperationMetadata> response = await networkServicesClient.CreateMeshAsync(parent, mesh, meshId);

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

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

CreateMeshAsync(LocationName, Mesh, string, CancellationToken)

public virtual Task<Operation<Mesh, OperationMetadata>> CreateMeshAsync(LocationName parent, Mesh mesh, string meshId, CancellationToken cancellationToken)

Creates a new Mesh in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the Mesh. Must be in the format projects/*/locations/global.

mesh Mesh

Required. Mesh resource to be created.

meshId string

Required. Short name of the Mesh resource to be created.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationMeshOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Mesh mesh = new Mesh();
string meshId = "";
// Make the request
Operation<Mesh, OperationMetadata> response = await networkServicesClient.CreateMeshAsync(parent, mesh, meshId);

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

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

CreateMeshAsync(CreateMeshRequest, CallSettings)

public virtual Task<Operation<Mesh, OperationMetadata>> CreateMeshAsync(CreateMeshRequest request, CallSettings callSettings = null)

Creates a new Mesh in a given project and location.

Parameters
Name Description
request CreateMeshRequest

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
TaskOperationMeshOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
CreateMeshRequest request = new CreateMeshRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    MeshId = "",
    Mesh = new Mesh(),
};
// Make the request
Operation<Mesh, OperationMetadata> response = await networkServicesClient.CreateMeshAsync(request);

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

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

CreateMeshAsync(CreateMeshRequest, CancellationToken)

public virtual Task<Operation<Mesh, OperationMetadata>> CreateMeshAsync(CreateMeshRequest request, CancellationToken cancellationToken)

Creates a new Mesh in a given project and location.

Parameters
Name Description
request CreateMeshRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationMeshOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
CreateMeshRequest request = new CreateMeshRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    MeshId = "",
    Mesh = new Mesh(),
};
// Make the request
Operation<Mesh, OperationMetadata> response = await networkServicesClient.CreateMeshAsync(request);

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

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

CreateMeshAsync(string, Mesh, string, CallSettings)

public virtual Task<Operation<Mesh, OperationMetadata>> CreateMeshAsync(string parent, Mesh mesh, string meshId, CallSettings callSettings = null)

Creates a new Mesh in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the Mesh. Must be in the format projects/*/locations/global.

mesh Mesh

Required. Mesh resource to be created.

meshId string

Required. Short name of the Mesh resource to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationMeshOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Mesh mesh = new Mesh();
string meshId = "";
// Make the request
Operation<Mesh, OperationMetadata> response = await networkServicesClient.CreateMeshAsync(parent, mesh, meshId);

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

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

CreateMeshAsync(string, Mesh, string, CancellationToken)

public virtual Task<Operation<Mesh, OperationMetadata>> CreateMeshAsync(string parent, Mesh mesh, string meshId, CancellationToken cancellationToken)

Creates a new Mesh in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the Mesh. Must be in the format projects/*/locations/global.

mesh Mesh

Required. Mesh resource to be created.

meshId string

Required. Short name of the Mesh resource to be created.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationMeshOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Mesh mesh = new Mesh();
string meshId = "";
// Make the request
Operation<Mesh, OperationMetadata> response = await networkServicesClient.CreateMeshAsync(parent, mesh, meshId);

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

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

CreateServiceBinding(LocationName, ServiceBinding, string, CallSettings)

public virtual Operation<ServiceBinding, OperationMetadata> CreateServiceBinding(LocationName parent, ServiceBinding serviceBinding, string serviceBindingId, CallSettings callSettings = null)

Creates a new ServiceBinding in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the ServiceBinding. Must be in the format projects/*/locations/global.

serviceBinding ServiceBinding

Required. ServiceBinding resource to be created.

serviceBindingId string

Required. Short name of the ServiceBinding resource to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationServiceBindingOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ServiceBinding serviceBinding = new ServiceBinding();
string serviceBindingId = "";
// Make the request
Operation<ServiceBinding, OperationMetadata> response = networkServicesClient.CreateServiceBinding(parent, serviceBinding, serviceBindingId);

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

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

CreateServiceBinding(CreateServiceBindingRequest, CallSettings)

public virtual Operation<ServiceBinding, OperationMetadata> CreateServiceBinding(CreateServiceBindingRequest request, CallSettings callSettings = null)

Creates a new ServiceBinding in a given project and location.

Parameters
Name Description
request CreateServiceBindingRequest

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
OperationServiceBindingOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
CreateServiceBindingRequest request = new CreateServiceBindingRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ServiceBindingId = "",
    ServiceBinding = new ServiceBinding(),
};
// Make the request
Operation<ServiceBinding, OperationMetadata> response = networkServicesClient.CreateServiceBinding(request);

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

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

CreateServiceBinding(string, ServiceBinding, string, CallSettings)

public virtual Operation<ServiceBinding, OperationMetadata> CreateServiceBinding(string parent, ServiceBinding serviceBinding, string serviceBindingId, CallSettings callSettings = null)

Creates a new ServiceBinding in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the ServiceBinding. Must be in the format projects/*/locations/global.

serviceBinding ServiceBinding

Required. ServiceBinding resource to be created.

serviceBindingId string

Required. Short name of the ServiceBinding resource to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationServiceBindingOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ServiceBinding serviceBinding = new ServiceBinding();
string serviceBindingId = "";
// Make the request
Operation<ServiceBinding, OperationMetadata> response = networkServicesClient.CreateServiceBinding(parent, serviceBinding, serviceBindingId);

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

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

CreateServiceBindingAsync(LocationName, ServiceBinding, string, CallSettings)

public virtual Task<Operation<ServiceBinding, OperationMetadata>> CreateServiceBindingAsync(LocationName parent, ServiceBinding serviceBinding, string serviceBindingId, CallSettings callSettings = null)

Creates a new ServiceBinding in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the ServiceBinding. Must be in the format projects/*/locations/global.

serviceBinding ServiceBinding

Required. ServiceBinding resource to be created.

serviceBindingId string

Required. Short name of the ServiceBinding resource to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationServiceBindingOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ServiceBinding serviceBinding = new ServiceBinding();
string serviceBindingId = "";
// Make the request
Operation<ServiceBinding, OperationMetadata> response = await networkServicesClient.CreateServiceBindingAsync(parent, serviceBinding, serviceBindingId);

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

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

CreateServiceBindingAsync(LocationName, ServiceBinding, string, CancellationToken)

public virtual Task<Operation<ServiceBinding, OperationMetadata>> CreateServiceBindingAsync(LocationName parent, ServiceBinding serviceBinding, string serviceBindingId, CancellationToken cancellationToken)

Creates a new ServiceBinding in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the ServiceBinding. Must be in the format projects/*/locations/global.

serviceBinding ServiceBinding

Required. ServiceBinding resource to be created.

serviceBindingId string

Required. Short name of the ServiceBinding resource to be created.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationServiceBindingOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ServiceBinding serviceBinding = new ServiceBinding();
string serviceBindingId = "";
// Make the request
Operation<ServiceBinding, OperationMetadata> response = await networkServicesClient.CreateServiceBindingAsync(parent, serviceBinding, serviceBindingId);

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

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

CreateServiceBindingAsync(CreateServiceBindingRequest, CallSettings)

public virtual Task<Operation<ServiceBinding, OperationMetadata>> CreateServiceBindingAsync(CreateServiceBindingRequest request, CallSettings callSettings = null)

Creates a new ServiceBinding in a given project and location.

Parameters
Name Description
request CreateServiceBindingRequest

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
TaskOperationServiceBindingOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
CreateServiceBindingRequest request = new CreateServiceBindingRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ServiceBindingId = "",
    ServiceBinding = new ServiceBinding(),
};
// Make the request
Operation<ServiceBinding, OperationMetadata> response = await networkServicesClient.CreateServiceBindingAsync(request);

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

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

CreateServiceBindingAsync(CreateServiceBindingRequest, CancellationToken)

public virtual Task<Operation<ServiceBinding, OperationMetadata>> CreateServiceBindingAsync(CreateServiceBindingRequest request, CancellationToken cancellationToken)

Creates a new ServiceBinding in a given project and location.

Parameters
Name Description
request CreateServiceBindingRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationServiceBindingOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
CreateServiceBindingRequest request = new CreateServiceBindingRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ServiceBindingId = "",
    ServiceBinding = new ServiceBinding(),
};
// Make the request
Operation<ServiceBinding, OperationMetadata> response = await networkServicesClient.CreateServiceBindingAsync(request);

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

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

CreateServiceBindingAsync(string, ServiceBinding, string, CallSettings)

public virtual Task<Operation<ServiceBinding, OperationMetadata>> CreateServiceBindingAsync(string parent, ServiceBinding serviceBinding, string serviceBindingId, CallSettings callSettings = null)

Creates a new ServiceBinding in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the ServiceBinding. Must be in the format projects/*/locations/global.

serviceBinding ServiceBinding

Required. ServiceBinding resource to be created.

serviceBindingId string

Required. Short name of the ServiceBinding resource to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationServiceBindingOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ServiceBinding serviceBinding = new ServiceBinding();
string serviceBindingId = "";
// Make the request
Operation<ServiceBinding, OperationMetadata> response = await networkServicesClient.CreateServiceBindingAsync(parent, serviceBinding, serviceBindingId);

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

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

CreateServiceBindingAsync(string, ServiceBinding, string, CancellationToken)

public virtual Task<Operation<ServiceBinding, OperationMetadata>> CreateServiceBindingAsync(string parent, ServiceBinding serviceBinding, string serviceBindingId, CancellationToken cancellationToken)

Creates a new ServiceBinding in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the ServiceBinding. Must be in the format projects/*/locations/global.

serviceBinding ServiceBinding

Required. ServiceBinding resource to be created.

serviceBindingId string

Required. Short name of the ServiceBinding resource to be created.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationServiceBindingOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ServiceBinding serviceBinding = new ServiceBinding();
string serviceBindingId = "";
// Make the request
Operation<ServiceBinding, OperationMetadata> response = await networkServicesClient.CreateServiceBindingAsync(parent, serviceBinding, serviceBindingId);

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

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

CreateTcpRoute(LocationName, TcpRoute, string, CallSettings)

public virtual Operation<TcpRoute, OperationMetadata> CreateTcpRoute(LocationName parent, TcpRoute tcpRoute, string tcpRouteId, CallSettings callSettings = null)

Creates a new TcpRoute in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the TcpRoute. Must be in the format projects/*/locations/global.

tcpRoute TcpRoute

Required. TcpRoute resource to be created.

tcpRouteId string

Required. Short name of the TcpRoute resource to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationTcpRouteOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
TcpRoute tcpRoute = new TcpRoute();
string tcpRouteId = "";
// Make the request
Operation<TcpRoute, OperationMetadata> response = networkServicesClient.CreateTcpRoute(parent, tcpRoute, tcpRouteId);

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

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

CreateTcpRoute(CreateTcpRouteRequest, CallSettings)

public virtual Operation<TcpRoute, OperationMetadata> CreateTcpRoute(CreateTcpRouteRequest request, CallSettings callSettings = null)

Creates a new TcpRoute in a given project and location.

Parameters
Name Description
request CreateTcpRouteRequest

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
OperationTcpRouteOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
CreateTcpRouteRequest request = new CreateTcpRouteRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    TcpRouteId = "",
    TcpRoute = new TcpRoute(),
};
// Make the request
Operation<TcpRoute, OperationMetadata> response = networkServicesClient.CreateTcpRoute(request);

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

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

CreateTcpRoute(string, TcpRoute, string, CallSettings)

public virtual Operation<TcpRoute, OperationMetadata> CreateTcpRoute(string parent, TcpRoute tcpRoute, string tcpRouteId, CallSettings callSettings = null)

Creates a new TcpRoute in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the TcpRoute. Must be in the format projects/*/locations/global.

tcpRoute TcpRoute

Required. TcpRoute resource to be created.

tcpRouteId string

Required. Short name of the TcpRoute resource to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationTcpRouteOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
TcpRoute tcpRoute = new TcpRoute();
string tcpRouteId = "";
// Make the request
Operation<TcpRoute, OperationMetadata> response = networkServicesClient.CreateTcpRoute(parent, tcpRoute, tcpRouteId);

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

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

CreateTcpRouteAsync(LocationName, TcpRoute, string, CallSettings)

public virtual Task<Operation<TcpRoute, OperationMetadata>> CreateTcpRouteAsync(LocationName parent, TcpRoute tcpRoute, string tcpRouteId, CallSettings callSettings = null)

Creates a new TcpRoute in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the TcpRoute. Must be in the format projects/*/locations/global.

tcpRoute TcpRoute

Required. TcpRoute resource to be created.

tcpRouteId string

Required. Short name of the TcpRoute resource to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationTcpRouteOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
TcpRoute tcpRoute = new TcpRoute();
string tcpRouteId = "";
// Make the request
Operation<TcpRoute, OperationMetadata> response = await networkServicesClient.CreateTcpRouteAsync(parent, tcpRoute, tcpRouteId);

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

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

CreateTcpRouteAsync(LocationName, TcpRoute, string, CancellationToken)

public virtual Task<Operation<TcpRoute, OperationMetadata>> CreateTcpRouteAsync(LocationName parent, TcpRoute tcpRoute, string tcpRouteId, CancellationToken cancellationToken)

Creates a new TcpRoute in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the TcpRoute. Must be in the format projects/*/locations/global.

tcpRoute TcpRoute

Required. TcpRoute resource to be created.

tcpRouteId string

Required. Short name of the TcpRoute resource to be created.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationTcpRouteOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
TcpRoute tcpRoute = new TcpRoute();
string tcpRouteId = "";
// Make the request
Operation<TcpRoute, OperationMetadata> response = await networkServicesClient.CreateTcpRouteAsync(parent, tcpRoute, tcpRouteId);

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

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

CreateTcpRouteAsync(CreateTcpRouteRequest, CallSettings)

public virtual Task<Operation<TcpRoute, OperationMetadata>> CreateTcpRouteAsync(CreateTcpRouteRequest request, CallSettings callSettings = null)

Creates a new TcpRoute in a given project and location.

Parameters
Name Description
request CreateTcpRouteRequest

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
TaskOperationTcpRouteOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
CreateTcpRouteRequest request = new CreateTcpRouteRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    TcpRouteId = "",
    TcpRoute = new TcpRoute(),
};
// Make the request
Operation<TcpRoute, OperationMetadata> response = await networkServicesClient.CreateTcpRouteAsync(request);

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

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

CreateTcpRouteAsync(CreateTcpRouteRequest, CancellationToken)

public virtual Task<Operation<TcpRoute, OperationMetadata>> CreateTcpRouteAsync(CreateTcpRouteRequest request, CancellationToken cancellationToken)

Creates a new TcpRoute in a given project and location.

Parameters
Name Description
request CreateTcpRouteRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationTcpRouteOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
CreateTcpRouteRequest request = new CreateTcpRouteRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    TcpRouteId = "",
    TcpRoute = new TcpRoute(),
};
// Make the request
Operation<TcpRoute, OperationMetadata> response = await networkServicesClient.CreateTcpRouteAsync(request);

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

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

CreateTcpRouteAsync(string, TcpRoute, string, CallSettings)

public virtual Task<Operation<TcpRoute, OperationMetadata>> CreateTcpRouteAsync(string parent, TcpRoute tcpRoute, string tcpRouteId, CallSettings callSettings = null)

Creates a new TcpRoute in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the TcpRoute. Must be in the format projects/*/locations/global.

tcpRoute TcpRoute

Required. TcpRoute resource to be created.

tcpRouteId string

Required. Short name of the TcpRoute resource to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationTcpRouteOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
TcpRoute tcpRoute = new TcpRoute();
string tcpRouteId = "";
// Make the request
Operation<TcpRoute, OperationMetadata> response = await networkServicesClient.CreateTcpRouteAsync(parent, tcpRoute, tcpRouteId);

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

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

CreateTcpRouteAsync(string, TcpRoute, string, CancellationToken)

public virtual Task<Operation<TcpRoute, OperationMetadata>> CreateTcpRouteAsync(string parent, TcpRoute tcpRoute, string tcpRouteId, CancellationToken cancellationToken)

Creates a new TcpRoute in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the TcpRoute. Must be in the format projects/*/locations/global.

tcpRoute TcpRoute

Required. TcpRoute resource to be created.

tcpRouteId string

Required. Short name of the TcpRoute resource to be created.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationTcpRouteOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
TcpRoute tcpRoute = new TcpRoute();
string tcpRouteId = "";
// Make the request
Operation<TcpRoute, OperationMetadata> response = await networkServicesClient.CreateTcpRouteAsync(parent, tcpRoute, tcpRouteId);

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

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

CreateTlsRoute(LocationName, TlsRoute, string, CallSettings)

public virtual Operation<TlsRoute, OperationMetadata> CreateTlsRoute(LocationName parent, TlsRoute tlsRoute, string tlsRouteId, CallSettings callSettings = null)

Creates a new TlsRoute in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the TlsRoute. Must be in the format projects/*/locations/global.

tlsRoute TlsRoute

Required. TlsRoute resource to be created.

tlsRouteId string

Required. Short name of the TlsRoute resource to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationTlsRouteOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
TlsRoute tlsRoute = new TlsRoute();
string tlsRouteId = "";
// Make the request
Operation<TlsRoute, OperationMetadata> response = networkServicesClient.CreateTlsRoute(parent, tlsRoute, tlsRouteId);

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

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

CreateTlsRoute(CreateTlsRouteRequest, CallSettings)

public virtual Operation<TlsRoute, OperationMetadata> CreateTlsRoute(CreateTlsRouteRequest request, CallSettings callSettings = null)

Creates a new TlsRoute in a given project and location.

Parameters
Name Description
request CreateTlsRouteRequest

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
OperationTlsRouteOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
CreateTlsRouteRequest request = new CreateTlsRouteRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    TlsRouteId = "",
    TlsRoute = new TlsRoute(),
};
// Make the request
Operation<TlsRoute, OperationMetadata> response = networkServicesClient.CreateTlsRoute(request);

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

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

CreateTlsRoute(string, TlsRoute, string, CallSettings)

public virtual Operation<TlsRoute, OperationMetadata> CreateTlsRoute(string parent, TlsRoute tlsRoute, string tlsRouteId, CallSettings callSettings = null)

Creates a new TlsRoute in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the TlsRoute. Must be in the format projects/*/locations/global.

tlsRoute TlsRoute

Required. TlsRoute resource to be created.

tlsRouteId string

Required. Short name of the TlsRoute resource to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationTlsRouteOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
TlsRoute tlsRoute = new TlsRoute();
string tlsRouteId = "";
// Make the request
Operation<TlsRoute, OperationMetadata> response = networkServicesClient.CreateTlsRoute(parent, tlsRoute, tlsRouteId);

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

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

CreateTlsRouteAsync(LocationName, TlsRoute, string, CallSettings)

public virtual Task<Operation<TlsRoute, OperationMetadata>> CreateTlsRouteAsync(LocationName parent, TlsRoute tlsRoute, string tlsRouteId, CallSettings callSettings = null)

Creates a new TlsRoute in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the TlsRoute. Must be in the format projects/*/locations/global.

tlsRoute TlsRoute

Required. TlsRoute resource to be created.

tlsRouteId string

Required. Short name of the TlsRoute resource to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationTlsRouteOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
TlsRoute tlsRoute = new TlsRoute();
string tlsRouteId = "";
// Make the request
Operation<TlsRoute, OperationMetadata> response = await networkServicesClient.CreateTlsRouteAsync(parent, tlsRoute, tlsRouteId);

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

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

CreateTlsRouteAsync(LocationName, TlsRoute, string, CancellationToken)

public virtual Task<Operation<TlsRoute, OperationMetadata>> CreateTlsRouteAsync(LocationName parent, TlsRoute tlsRoute, string tlsRouteId, CancellationToken cancellationToken)

Creates a new TlsRoute in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource of the TlsRoute. Must be in the format projects/*/locations/global.

tlsRoute TlsRoute

Required. TlsRoute resource to be created.

tlsRouteId string

Required. Short name of the TlsRoute resource to be created.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationTlsRouteOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
TlsRoute tlsRoute = new TlsRoute();
string tlsRouteId = "";
// Make the request
Operation<TlsRoute, OperationMetadata> response = await networkServicesClient.CreateTlsRouteAsync(parent, tlsRoute, tlsRouteId);

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

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

CreateTlsRouteAsync(CreateTlsRouteRequest, CallSettings)

public virtual Task<Operation<TlsRoute, OperationMetadata>> CreateTlsRouteAsync(CreateTlsRouteRequest request, CallSettings callSettings = null)

Creates a new TlsRoute in a given project and location.

Parameters
Name Description
request CreateTlsRouteRequest

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
TaskOperationTlsRouteOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
CreateTlsRouteRequest request = new CreateTlsRouteRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    TlsRouteId = "",
    TlsRoute = new TlsRoute(),
};
// Make the request
Operation<TlsRoute, OperationMetadata> response = await networkServicesClient.CreateTlsRouteAsync(request);

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

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

CreateTlsRouteAsync(CreateTlsRouteRequest, CancellationToken)

public virtual Task<Operation<TlsRoute, OperationMetadata>> CreateTlsRouteAsync(CreateTlsRouteRequest request, CancellationToken cancellationToken)

Creates a new TlsRoute in a given project and location.

Parameters
Name Description
request CreateTlsRouteRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationTlsRouteOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
CreateTlsRouteRequest request = new CreateTlsRouteRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    TlsRouteId = "",
    TlsRoute = new TlsRoute(),
};
// Make the request
Operation<TlsRoute, OperationMetadata> response = await networkServicesClient.CreateTlsRouteAsync(request);

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

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

CreateTlsRouteAsync(string, TlsRoute, string, CallSettings)

public virtual Task<Operation<TlsRoute, OperationMetadata>> CreateTlsRouteAsync(string parent, TlsRoute tlsRoute, string tlsRouteId, CallSettings callSettings = null)

Creates a new TlsRoute in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the TlsRoute. Must be in the format projects/*/locations/global.

tlsRoute TlsRoute

Required. TlsRoute resource to be created.

tlsRouteId string

Required. Short name of the TlsRoute resource to be created.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationTlsRouteOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
TlsRoute tlsRoute = new TlsRoute();
string tlsRouteId = "";
// Make the request
Operation<TlsRoute, OperationMetadata> response = await networkServicesClient.CreateTlsRouteAsync(parent, tlsRoute, tlsRouteId);

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

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

CreateTlsRouteAsync(string, TlsRoute, string, CancellationToken)

public virtual Task<Operation<TlsRoute, OperationMetadata>> CreateTlsRouteAsync(string parent, TlsRoute tlsRoute, string tlsRouteId, CancellationToken cancellationToken)

Creates a new TlsRoute in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource of the TlsRoute. Must be in the format projects/*/locations/global.

tlsRoute TlsRoute

Required. TlsRoute resource to be created.

tlsRouteId string

Required. Short name of the TlsRoute resource to be created.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationTlsRouteOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
TlsRoute tlsRoute = new TlsRoute();
string tlsRouteId = "";
// Make the request
Operation<TlsRoute, OperationMetadata> response = await networkServicesClient.CreateTlsRouteAsync(parent, tlsRoute, tlsRouteId);

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

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

DeleteEndpointPolicy(DeleteEndpointPolicyRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteEndpointPolicy(DeleteEndpointPolicyRequest request, CallSettings callSettings = null)

Deletes a single EndpointPolicy.

Parameters
Name Description
request DeleteEndpointPolicyRequest

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
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
DeleteEndpointPolicyRequest request = new DeleteEndpointPolicyRequest
{
    EndpointPolicyName = EndpointPolicyName.FromProjectLocationEndpointPolicy("[PROJECT]", "[LOCATION]", "[ENDPOINT_POLICY]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = networkServicesClient.DeleteEndpointPolicy(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 = networkServicesClient.PollOnceDeleteEndpointPolicy(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;
}

DeleteEndpointPolicy(EndpointPolicyName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteEndpointPolicy(EndpointPolicyName name, CallSettings callSettings = null)

Deletes a single EndpointPolicy.

Parameters
Name Description
name EndpointPolicyName

Required. A name of the EndpointPolicy to delete. Must be in the format projects/*/locations/global/endpointPolicies/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
EndpointPolicyName name = EndpointPolicyName.FromProjectLocationEndpointPolicy("[PROJECT]", "[LOCATION]", "[ENDPOINT_POLICY]");
// Make the request
Operation<Empty, OperationMetadata> response = networkServicesClient.DeleteEndpointPolicy(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 = networkServicesClient.PollOnceDeleteEndpointPolicy(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;
}

DeleteEndpointPolicy(string, CallSettings)

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

Deletes a single EndpointPolicy.

Parameters
Name Description
name string

Required. A name of the EndpointPolicy to delete. Must be in the format projects/*/locations/global/endpointPolicies/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/endpointPolicies/[ENDPOINT_POLICY]";
// Make the request
Operation<Empty, OperationMetadata> response = networkServicesClient.DeleteEndpointPolicy(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 = networkServicesClient.PollOnceDeleteEndpointPolicy(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;
}

DeleteEndpointPolicyAsync(DeleteEndpointPolicyRequest, CallSettings)

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

Deletes a single EndpointPolicy.

Parameters
Name Description
request DeleteEndpointPolicyRequest

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
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
DeleteEndpointPolicyRequest request = new DeleteEndpointPolicyRequest
{
    EndpointPolicyName = EndpointPolicyName.FromProjectLocationEndpointPolicy("[PROJECT]", "[LOCATION]", "[ENDPOINT_POLICY]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteEndpointPolicyAsync(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 networkServicesClient.PollOnceDeleteEndpointPolicyAsync(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;
}

DeleteEndpointPolicyAsync(DeleteEndpointPolicyRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteEndpointPolicyAsync(DeleteEndpointPolicyRequest request, CancellationToken cancellationToken)

Deletes a single EndpointPolicy.

Parameters
Name Description
request DeleteEndpointPolicyRequest

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
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
DeleteEndpointPolicyRequest request = new DeleteEndpointPolicyRequest
{
    EndpointPolicyName = EndpointPolicyName.FromProjectLocationEndpointPolicy("[PROJECT]", "[LOCATION]", "[ENDPOINT_POLICY]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteEndpointPolicyAsync(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 networkServicesClient.PollOnceDeleteEndpointPolicyAsync(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;
}

DeleteEndpointPolicyAsync(EndpointPolicyName, CallSettings)

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

Deletes a single EndpointPolicy.

Parameters
Name Description
name EndpointPolicyName

Required. A name of the EndpointPolicy to delete. Must be in the format projects/*/locations/global/endpointPolicies/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
EndpointPolicyName name = EndpointPolicyName.FromProjectLocationEndpointPolicy("[PROJECT]", "[LOCATION]", "[ENDPOINT_POLICY]");
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteEndpointPolicyAsync(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 networkServicesClient.PollOnceDeleteEndpointPolicyAsync(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;
}

DeleteEndpointPolicyAsync(EndpointPolicyName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteEndpointPolicyAsync(EndpointPolicyName name, CancellationToken cancellationToken)

Deletes a single EndpointPolicy.

Parameters
Name Description
name EndpointPolicyName

Required. A name of the EndpointPolicy to delete. Must be in the format projects/*/locations/global/endpointPolicies/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
EndpointPolicyName name = EndpointPolicyName.FromProjectLocationEndpointPolicy("[PROJECT]", "[LOCATION]", "[ENDPOINT_POLICY]");
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteEndpointPolicyAsync(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 networkServicesClient.PollOnceDeleteEndpointPolicyAsync(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;
}

DeleteEndpointPolicyAsync(string, CallSettings)

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

Deletes a single EndpointPolicy.

Parameters
Name Description
name string

Required. A name of the EndpointPolicy to delete. Must be in the format projects/*/locations/global/endpointPolicies/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/endpointPolicies/[ENDPOINT_POLICY]";
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteEndpointPolicyAsync(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 networkServicesClient.PollOnceDeleteEndpointPolicyAsync(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;
}

DeleteEndpointPolicyAsync(string, CancellationToken)

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

Deletes a single EndpointPolicy.

Parameters
Name Description
name string

Required. A name of the EndpointPolicy to delete. Must be in the format projects/*/locations/global/endpointPolicies/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/endpointPolicies/[ENDPOINT_POLICY]";
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteEndpointPolicyAsync(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 networkServicesClient.PollOnceDeleteEndpointPolicyAsync(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;
}

DeleteGateway(DeleteGatewayRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteGateway(DeleteGatewayRequest request, CallSettings callSettings = null)

Deletes a single Gateway.

Parameters
Name Description
request DeleteGatewayRequest

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
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
DeleteGatewayRequest request = new DeleteGatewayRequest
{
    GatewayName = GatewayName.FromProjectLocationGateway("[PROJECT]", "[LOCATION]", "[GATEWAY]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = networkServicesClient.DeleteGateway(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 = networkServicesClient.PollOnceDeleteGateway(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;
}

DeleteGateway(GatewayName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteGateway(GatewayName name, CallSettings callSettings = null)

Deletes a single Gateway.

Parameters
Name Description
name GatewayName

Required. A name of the Gateway to delete. Must be in the format projects/*/locations/*/gateways/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
GatewayName name = GatewayName.FromProjectLocationGateway("[PROJECT]", "[LOCATION]", "[GATEWAY]");
// Make the request
Operation<Empty, OperationMetadata> response = networkServicesClient.DeleteGateway(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 = networkServicesClient.PollOnceDeleteGateway(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;
}

DeleteGateway(string, CallSettings)

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

Deletes a single Gateway.

Parameters
Name Description
name string

Required. A name of the Gateway to delete. Must be in the format projects/*/locations/*/gateways/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/gateways/[GATEWAY]";
// Make the request
Operation<Empty, OperationMetadata> response = networkServicesClient.DeleteGateway(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 = networkServicesClient.PollOnceDeleteGateway(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;
}

DeleteGatewayAsync(DeleteGatewayRequest, CallSettings)

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

Deletes a single Gateway.

Parameters
Name Description
request DeleteGatewayRequest

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
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
DeleteGatewayRequest request = new DeleteGatewayRequest
{
    GatewayName = GatewayName.FromProjectLocationGateway("[PROJECT]", "[LOCATION]", "[GATEWAY]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteGatewayAsync(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 networkServicesClient.PollOnceDeleteGatewayAsync(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;
}

DeleteGatewayAsync(DeleteGatewayRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteGatewayAsync(DeleteGatewayRequest request, CancellationToken cancellationToken)

Deletes a single Gateway.

Parameters
Name Description
request DeleteGatewayRequest

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
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
DeleteGatewayRequest request = new DeleteGatewayRequest
{
    GatewayName = GatewayName.FromProjectLocationGateway("[PROJECT]", "[LOCATION]", "[GATEWAY]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteGatewayAsync(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 networkServicesClient.PollOnceDeleteGatewayAsync(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;
}

DeleteGatewayAsync(GatewayName, CallSettings)

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

Deletes a single Gateway.

Parameters
Name Description
name GatewayName

Required. A name of the Gateway to delete. Must be in the format projects/*/locations/*/gateways/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
GatewayName name = GatewayName.FromProjectLocationGateway("[PROJECT]", "[LOCATION]", "[GATEWAY]");
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteGatewayAsync(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 networkServicesClient.PollOnceDeleteGatewayAsync(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;
}

DeleteGatewayAsync(GatewayName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteGatewayAsync(GatewayName name, CancellationToken cancellationToken)

Deletes a single Gateway.

Parameters
Name Description
name GatewayName

Required. A name of the Gateway to delete. Must be in the format projects/*/locations/*/gateways/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
GatewayName name = GatewayName.FromProjectLocationGateway("[PROJECT]", "[LOCATION]", "[GATEWAY]");
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteGatewayAsync(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 networkServicesClient.PollOnceDeleteGatewayAsync(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;
}

DeleteGatewayAsync(string, CallSettings)

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

Deletes a single Gateway.

Parameters
Name Description
name string

Required. A name of the Gateway to delete. Must be in the format projects/*/locations/*/gateways/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/gateways/[GATEWAY]";
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteGatewayAsync(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 networkServicesClient.PollOnceDeleteGatewayAsync(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;
}

DeleteGatewayAsync(string, CancellationToken)

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

Deletes a single Gateway.

Parameters
Name Description
name string

Required. A name of the Gateway to delete. Must be in the format projects/*/locations/*/gateways/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/gateways/[GATEWAY]";
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteGatewayAsync(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 networkServicesClient.PollOnceDeleteGatewayAsync(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;
}

DeleteGrpcRoute(DeleteGrpcRouteRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteGrpcRoute(DeleteGrpcRouteRequest request, CallSettings callSettings = null)

Deletes a single GrpcRoute.

Parameters
Name Description
request DeleteGrpcRouteRequest

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
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
DeleteGrpcRouteRequest request = new DeleteGrpcRouteRequest
{
    GrpcRouteName = GrpcRouteName.FromProjectLocationGrpcRoute("[PROJECT]", "[LOCATION]", "[GRPC_ROUTE]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = networkServicesClient.DeleteGrpcRoute(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 = networkServicesClient.PollOnceDeleteGrpcRoute(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;
}

DeleteGrpcRoute(GrpcRouteName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteGrpcRoute(GrpcRouteName name, CallSettings callSettings = null)

Deletes a single GrpcRoute.

Parameters
Name Description
name GrpcRouteName

Required. A name of the GrpcRoute to delete. Must be in the format projects/*/locations/global/grpcRoutes/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
GrpcRouteName name = GrpcRouteName.FromProjectLocationGrpcRoute("[PROJECT]", "[LOCATION]", "[GRPC_ROUTE]");
// Make the request
Operation<Empty, OperationMetadata> response = networkServicesClient.DeleteGrpcRoute(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 = networkServicesClient.PollOnceDeleteGrpcRoute(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;
}

DeleteGrpcRoute(string, CallSettings)

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

Deletes a single GrpcRoute.

Parameters
Name Description
name string

Required. A name of the GrpcRoute to delete. Must be in the format projects/*/locations/global/grpcRoutes/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/grpcRoutes/[GRPC_ROUTE]";
// Make the request
Operation<Empty, OperationMetadata> response = networkServicesClient.DeleteGrpcRoute(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 = networkServicesClient.PollOnceDeleteGrpcRoute(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;
}

DeleteGrpcRouteAsync(DeleteGrpcRouteRequest, CallSettings)

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

Deletes a single GrpcRoute.

Parameters
Name Description
request DeleteGrpcRouteRequest

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
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
DeleteGrpcRouteRequest request = new DeleteGrpcRouteRequest
{
    GrpcRouteName = GrpcRouteName.FromProjectLocationGrpcRoute("[PROJECT]", "[LOCATION]", "[GRPC_ROUTE]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteGrpcRouteAsync(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 networkServicesClient.PollOnceDeleteGrpcRouteAsync(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;
}

DeleteGrpcRouteAsync(DeleteGrpcRouteRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteGrpcRouteAsync(DeleteGrpcRouteRequest request, CancellationToken cancellationToken)

Deletes a single GrpcRoute.

Parameters
Name Description
request DeleteGrpcRouteRequest

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
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
DeleteGrpcRouteRequest request = new DeleteGrpcRouteRequest
{
    GrpcRouteName = GrpcRouteName.FromProjectLocationGrpcRoute("[PROJECT]", "[LOCATION]", "[GRPC_ROUTE]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteGrpcRouteAsync(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 networkServicesClient.PollOnceDeleteGrpcRouteAsync(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;
}

DeleteGrpcRouteAsync(GrpcRouteName, CallSettings)

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

Deletes a single GrpcRoute.

Parameters
Name Description
name GrpcRouteName

Required. A name of the GrpcRoute to delete. Must be in the format projects/*/locations/global/grpcRoutes/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
GrpcRouteName name = GrpcRouteName.FromProjectLocationGrpcRoute("[PROJECT]", "[LOCATION]", "[GRPC_ROUTE]");
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteGrpcRouteAsync(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 networkServicesClient.PollOnceDeleteGrpcRouteAsync(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;
}

DeleteGrpcRouteAsync(GrpcRouteName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteGrpcRouteAsync(GrpcRouteName name, CancellationToken cancellationToken)

Deletes a single GrpcRoute.

Parameters
Name Description
name GrpcRouteName

Required. A name of the GrpcRoute to delete. Must be in the format projects/*/locations/global/grpcRoutes/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
GrpcRouteName name = GrpcRouteName.FromProjectLocationGrpcRoute("[PROJECT]", "[LOCATION]", "[GRPC_ROUTE]");
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteGrpcRouteAsync(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 networkServicesClient.PollOnceDeleteGrpcRouteAsync(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;
}

DeleteGrpcRouteAsync(string, CallSettings)

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

Deletes a single GrpcRoute.

Parameters
Name Description
name string

Required. A name of the GrpcRoute to delete. Must be in the format projects/*/locations/global/grpcRoutes/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/grpcRoutes/[GRPC_ROUTE]";
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteGrpcRouteAsync(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 networkServicesClient.PollOnceDeleteGrpcRouteAsync(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;
}

DeleteGrpcRouteAsync(string, CancellationToken)

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

Deletes a single GrpcRoute.

Parameters
Name Description
name string

Required. A name of the GrpcRoute to delete. Must be in the format projects/*/locations/global/grpcRoutes/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/grpcRoutes/[GRPC_ROUTE]";
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteGrpcRouteAsync(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 networkServicesClient.PollOnceDeleteGrpcRouteAsync(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;
}

DeleteHttpRoute(DeleteHttpRouteRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteHttpRoute(DeleteHttpRouteRequest request, CallSettings callSettings = null)

Deletes a single HttpRoute.

Parameters
Name Description
request DeleteHttpRouteRequest

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
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
DeleteHttpRouteRequest request = new DeleteHttpRouteRequest
{
    HttpRouteName = HttpRouteName.FromProjectLocationHttpRoute("[PROJECT]", "[LOCATION]", "[HTTP_ROUTE]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = networkServicesClient.DeleteHttpRoute(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 = networkServicesClient.PollOnceDeleteHttpRoute(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;
}

DeleteHttpRoute(HttpRouteName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteHttpRoute(HttpRouteName name, CallSettings callSettings = null)

Deletes a single HttpRoute.

Parameters
Name Description
name HttpRouteName

Required. A name of the HttpRoute to delete. Must be in the format projects/*/locations/global/httpRoutes/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
HttpRouteName name = HttpRouteName.FromProjectLocationHttpRoute("[PROJECT]", "[LOCATION]", "[HTTP_ROUTE]");
// Make the request
Operation<Empty, OperationMetadata> response = networkServicesClient.DeleteHttpRoute(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 = networkServicesClient.PollOnceDeleteHttpRoute(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;
}

DeleteHttpRoute(string, CallSettings)

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

Deletes a single HttpRoute.

Parameters
Name Description
name string

Required. A name of the HttpRoute to delete. Must be in the format projects/*/locations/global/httpRoutes/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/httpRoutes/[HTTP_ROUTE]";
// Make the request
Operation<Empty, OperationMetadata> response = networkServicesClient.DeleteHttpRoute(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 = networkServicesClient.PollOnceDeleteHttpRoute(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;
}

DeleteHttpRouteAsync(DeleteHttpRouteRequest, CallSettings)

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

Deletes a single HttpRoute.

Parameters
Name Description
request DeleteHttpRouteRequest

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
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
DeleteHttpRouteRequest request = new DeleteHttpRouteRequest
{
    HttpRouteName = HttpRouteName.FromProjectLocationHttpRoute("[PROJECT]", "[LOCATION]", "[HTTP_ROUTE]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteHttpRouteAsync(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 networkServicesClient.PollOnceDeleteHttpRouteAsync(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;
}

DeleteHttpRouteAsync(DeleteHttpRouteRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteHttpRouteAsync(DeleteHttpRouteRequest request, CancellationToken cancellationToken)

Deletes a single HttpRoute.

Parameters
Name Description
request DeleteHttpRouteRequest

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
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
DeleteHttpRouteRequest request = new DeleteHttpRouteRequest
{
    HttpRouteName = HttpRouteName.FromProjectLocationHttpRoute("[PROJECT]", "[LOCATION]", "[HTTP_ROUTE]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteHttpRouteAsync(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 networkServicesClient.PollOnceDeleteHttpRouteAsync(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;
}

DeleteHttpRouteAsync(HttpRouteName, CallSettings)

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

Deletes a single HttpRoute.

Parameters
Name Description
name HttpRouteName

Required. A name of the HttpRoute to delete. Must be in the format projects/*/locations/global/httpRoutes/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
HttpRouteName name = HttpRouteName.FromProjectLocationHttpRoute("[PROJECT]", "[LOCATION]", "[HTTP_ROUTE]");
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteHttpRouteAsync(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 networkServicesClient.PollOnceDeleteHttpRouteAsync(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;
}

DeleteHttpRouteAsync(HttpRouteName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteHttpRouteAsync(HttpRouteName name, CancellationToken cancellationToken)

Deletes a single HttpRoute.

Parameters
Name Description
name HttpRouteName

Required. A name of the HttpRoute to delete. Must be in the format projects/*/locations/global/httpRoutes/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
HttpRouteName name = HttpRouteName.FromProjectLocationHttpRoute("[PROJECT]", "[LOCATION]", "[HTTP_ROUTE]");
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteHttpRouteAsync(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 networkServicesClient.PollOnceDeleteHttpRouteAsync(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;
}

DeleteHttpRouteAsync(string, CallSettings)

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

Deletes a single HttpRoute.

Parameters
Name Description
name string

Required. A name of the HttpRoute to delete. Must be in the format projects/*/locations/global/httpRoutes/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/httpRoutes/[HTTP_ROUTE]";
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteHttpRouteAsync(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 networkServicesClient.PollOnceDeleteHttpRouteAsync(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;
}

DeleteHttpRouteAsync(string, CancellationToken)

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

Deletes a single HttpRoute.

Parameters
Name Description
name string

Required. A name of the HttpRoute to delete. Must be in the format projects/*/locations/global/httpRoutes/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/httpRoutes/[HTTP_ROUTE]";
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteHttpRouteAsync(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 networkServicesClient.PollOnceDeleteHttpRouteAsync(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;
}

DeleteMesh(DeleteMeshRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteMesh(DeleteMeshRequest request, CallSettings callSettings = null)

Deletes a single Mesh.

Parameters
Name Description
request DeleteMeshRequest

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
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
DeleteMeshRequest request = new DeleteMeshRequest
{
    MeshName = MeshName.FromProjectLocationMesh("[PROJECT]", "[LOCATION]", "[MESH]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = networkServicesClient.DeleteMesh(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 = networkServicesClient.PollOnceDeleteMesh(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;
}

DeleteMesh(MeshName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteMesh(MeshName name, CallSettings callSettings = null)

Deletes a single Mesh.

Parameters
Name Description
name MeshName

Required. A name of the Mesh to delete. Must be in the format projects/*/locations/global/meshes/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
MeshName name = MeshName.FromProjectLocationMesh("[PROJECT]", "[LOCATION]", "[MESH]");
// Make the request
Operation<Empty, OperationMetadata> response = networkServicesClient.DeleteMesh(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 = networkServicesClient.PollOnceDeleteMesh(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;
}

DeleteMesh(string, CallSettings)

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

Deletes a single Mesh.

Parameters
Name Description
name string

Required. A name of the Mesh to delete. Must be in the format projects/*/locations/global/meshes/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/meshes/[MESH]";
// Make the request
Operation<Empty, OperationMetadata> response = networkServicesClient.DeleteMesh(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 = networkServicesClient.PollOnceDeleteMesh(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;
}

DeleteMeshAsync(DeleteMeshRequest, CallSettings)

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

Deletes a single Mesh.

Parameters
Name Description
request DeleteMeshRequest

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
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
DeleteMeshRequest request = new DeleteMeshRequest
{
    MeshName = MeshName.FromProjectLocationMesh("[PROJECT]", "[LOCATION]", "[MESH]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteMeshAsync(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 networkServicesClient.PollOnceDeleteMeshAsync(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;
}

DeleteMeshAsync(DeleteMeshRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteMeshAsync(DeleteMeshRequest request, CancellationToken cancellationToken)

Deletes a single Mesh.

Parameters
Name Description
request DeleteMeshRequest

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
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
DeleteMeshRequest request = new DeleteMeshRequest
{
    MeshName = MeshName.FromProjectLocationMesh("[PROJECT]", "[LOCATION]", "[MESH]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteMeshAsync(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 networkServicesClient.PollOnceDeleteMeshAsync(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;
}

DeleteMeshAsync(MeshName, CallSettings)

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

Deletes a single Mesh.

Parameters
Name Description
name MeshName

Required. A name of the Mesh to delete. Must be in the format projects/*/locations/global/meshes/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
MeshName name = MeshName.FromProjectLocationMesh("[PROJECT]", "[LOCATION]", "[MESH]");
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteMeshAsync(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 networkServicesClient.PollOnceDeleteMeshAsync(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;
}

DeleteMeshAsync(MeshName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteMeshAsync(MeshName name, CancellationToken cancellationToken)

Deletes a single Mesh.

Parameters
Name Description
name MeshName

Required. A name of the Mesh to delete. Must be in the format projects/*/locations/global/meshes/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
MeshName name = MeshName.FromProjectLocationMesh("[PROJECT]", "[LOCATION]", "[MESH]");
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteMeshAsync(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 networkServicesClient.PollOnceDeleteMeshAsync(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;
}

DeleteMeshAsync(string, CallSettings)

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

Deletes a single Mesh.

Parameters
Name Description
name string

Required. A name of the Mesh to delete. Must be in the format projects/*/locations/global/meshes/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/meshes/[MESH]";
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteMeshAsync(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 networkServicesClient.PollOnceDeleteMeshAsync(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;
}

DeleteMeshAsync(string, CancellationToken)

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

Deletes a single Mesh.

Parameters
Name Description
name string

Required. A name of the Mesh to delete. Must be in the format projects/*/locations/global/meshes/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/meshes/[MESH]";
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteMeshAsync(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 networkServicesClient.PollOnceDeleteMeshAsync(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;
}

DeleteServiceBinding(DeleteServiceBindingRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteServiceBinding(DeleteServiceBindingRequest request, CallSettings callSettings = null)

Deletes a single ServiceBinding.

Parameters
Name Description
request DeleteServiceBindingRequest

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
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
DeleteServiceBindingRequest request = new DeleteServiceBindingRequest
{
    ServiceBindingName = ServiceBindingName.FromProjectLocationServiceBinding("[PROJECT]", "[LOCATION]", "[SERVICE_BINDING]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = networkServicesClient.DeleteServiceBinding(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 = networkServicesClient.PollOnceDeleteServiceBinding(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;
}

DeleteServiceBinding(ServiceBindingName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteServiceBinding(ServiceBindingName name, CallSettings callSettings = null)

Deletes a single ServiceBinding.

Parameters
Name Description
name ServiceBindingName

Required. A name of the ServiceBinding to delete. Must be in the format projects/*/locations/global/serviceBindings/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
ServiceBindingName name = ServiceBindingName.FromProjectLocationServiceBinding("[PROJECT]", "[LOCATION]", "[SERVICE_BINDING]");
// Make the request
Operation<Empty, OperationMetadata> response = networkServicesClient.DeleteServiceBinding(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 = networkServicesClient.PollOnceDeleteServiceBinding(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;
}

DeleteServiceBinding(string, CallSettings)

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

Deletes a single ServiceBinding.

Parameters
Name Description
name string

Required. A name of the ServiceBinding to delete. Must be in the format projects/*/locations/global/serviceBindings/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/serviceBindings/[SERVICE_BINDING]";
// Make the request
Operation<Empty, OperationMetadata> response = networkServicesClient.DeleteServiceBinding(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 = networkServicesClient.PollOnceDeleteServiceBinding(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;
}

DeleteServiceBindingAsync(DeleteServiceBindingRequest, CallSettings)

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

Deletes a single ServiceBinding.

Parameters
Name Description
request DeleteServiceBindingRequest

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
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
DeleteServiceBindingRequest request = new DeleteServiceBindingRequest
{
    ServiceBindingName = ServiceBindingName.FromProjectLocationServiceBinding("[PROJECT]", "[LOCATION]", "[SERVICE_BINDING]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteServiceBindingAsync(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 networkServicesClient.PollOnceDeleteServiceBindingAsync(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;
}

DeleteServiceBindingAsync(DeleteServiceBindingRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteServiceBindingAsync(DeleteServiceBindingRequest request, CancellationToken cancellationToken)

Deletes a single ServiceBinding.

Parameters
Name Description
request DeleteServiceBindingRequest

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
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
DeleteServiceBindingRequest request = new DeleteServiceBindingRequest
{
    ServiceBindingName = ServiceBindingName.FromProjectLocationServiceBinding("[PROJECT]", "[LOCATION]", "[SERVICE_BINDING]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteServiceBindingAsync(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 networkServicesClient.PollOnceDeleteServiceBindingAsync(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;
}

DeleteServiceBindingAsync(ServiceBindingName, CallSettings)

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

Deletes a single ServiceBinding.

Parameters
Name Description
name ServiceBindingName

Required. A name of the ServiceBinding to delete. Must be in the format projects/*/locations/global/serviceBindings/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
ServiceBindingName name = ServiceBindingName.FromProjectLocationServiceBinding("[PROJECT]", "[LOCATION]", "[SERVICE_BINDING]");
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteServiceBindingAsync(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 networkServicesClient.PollOnceDeleteServiceBindingAsync(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;
}

DeleteServiceBindingAsync(ServiceBindingName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteServiceBindingAsync(ServiceBindingName name, CancellationToken cancellationToken)

Deletes a single ServiceBinding.

Parameters
Name Description
name ServiceBindingName

Required. A name of the ServiceBinding to delete. Must be in the format projects/*/locations/global/serviceBindings/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
ServiceBindingName name = ServiceBindingName.FromProjectLocationServiceBinding("[PROJECT]", "[LOCATION]", "[SERVICE_BINDING]");
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteServiceBindingAsync(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 networkServicesClient.PollOnceDeleteServiceBindingAsync(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;
}

DeleteServiceBindingAsync(string, CallSettings)

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

Deletes a single ServiceBinding.

Parameters
Name Description
name string

Required. A name of the ServiceBinding to delete. Must be in the format projects/*/locations/global/serviceBindings/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/serviceBindings/[SERVICE_BINDING]";
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteServiceBindingAsync(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 networkServicesClient.PollOnceDeleteServiceBindingAsync(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;
}

DeleteServiceBindingAsync(string, CancellationToken)

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

Deletes a single ServiceBinding.

Parameters
Name Description
name string

Required. A name of the ServiceBinding to delete. Must be in the format projects/*/locations/global/serviceBindings/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/serviceBindings/[SERVICE_BINDING]";
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteServiceBindingAsync(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 networkServicesClient.PollOnceDeleteServiceBindingAsync(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;
}

DeleteTcpRoute(DeleteTcpRouteRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteTcpRoute(DeleteTcpRouteRequest request, CallSettings callSettings = null)

Deletes a single TcpRoute.

Parameters
Name Description
request DeleteTcpRouteRequest

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
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
DeleteTcpRouteRequest request = new DeleteTcpRouteRequest
{
    TcpRouteName = TcpRouteName.FromProjectLocationTcpRoute("[PROJECT]", "[LOCATION]", "[TCP_ROUTE]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = networkServicesClient.DeleteTcpRoute(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 = networkServicesClient.PollOnceDeleteTcpRoute(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;
}

DeleteTcpRoute(TcpRouteName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteTcpRoute(TcpRouteName name, CallSettings callSettings = null)

Deletes a single TcpRoute.

Parameters
Name Description
name TcpRouteName

Required. A name of the TcpRoute to delete. Must be in the format projects/*/locations/global/tcpRoutes/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
TcpRouteName name = TcpRouteName.FromProjectLocationTcpRoute("[PROJECT]", "[LOCATION]", "[TCP_ROUTE]");
// Make the request
Operation<Empty, OperationMetadata> response = networkServicesClient.DeleteTcpRoute(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 = networkServicesClient.PollOnceDeleteTcpRoute(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;
}

DeleteTcpRoute(string, CallSettings)

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

Deletes a single TcpRoute.

Parameters
Name Description
name string

Required. A name of the TcpRoute to delete. Must be in the format projects/*/locations/global/tcpRoutes/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/tcpRoutes/[TCP_ROUTE]";
// Make the request
Operation<Empty, OperationMetadata> response = networkServicesClient.DeleteTcpRoute(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 = networkServicesClient.PollOnceDeleteTcpRoute(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;
}

DeleteTcpRouteAsync(DeleteTcpRouteRequest, CallSettings)

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

Deletes a single TcpRoute.

Parameters
Name Description
request DeleteTcpRouteRequest

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
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
DeleteTcpRouteRequest request = new DeleteTcpRouteRequest
{
    TcpRouteName = TcpRouteName.FromProjectLocationTcpRoute("[PROJECT]", "[LOCATION]", "[TCP_ROUTE]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteTcpRouteAsync(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 networkServicesClient.PollOnceDeleteTcpRouteAsync(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;
}

DeleteTcpRouteAsync(DeleteTcpRouteRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteTcpRouteAsync(DeleteTcpRouteRequest request, CancellationToken cancellationToken)

Deletes a single TcpRoute.

Parameters
Name Description
request DeleteTcpRouteRequest

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
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
DeleteTcpRouteRequest request = new DeleteTcpRouteRequest
{
    TcpRouteName = TcpRouteName.FromProjectLocationTcpRoute("[PROJECT]", "[LOCATION]", "[TCP_ROUTE]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteTcpRouteAsync(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 networkServicesClient.PollOnceDeleteTcpRouteAsync(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;
}

DeleteTcpRouteAsync(TcpRouteName, CallSettings)

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

Deletes a single TcpRoute.

Parameters
Name Description
name TcpRouteName

Required. A name of the TcpRoute to delete. Must be in the format projects/*/locations/global/tcpRoutes/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
TcpRouteName name = TcpRouteName.FromProjectLocationTcpRoute("[PROJECT]", "[LOCATION]", "[TCP_ROUTE]");
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteTcpRouteAsync(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 networkServicesClient.PollOnceDeleteTcpRouteAsync(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;
}

DeleteTcpRouteAsync(TcpRouteName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteTcpRouteAsync(TcpRouteName name, CancellationToken cancellationToken)

Deletes a single TcpRoute.

Parameters
Name Description
name TcpRouteName

Required. A name of the TcpRoute to delete. Must be in the format projects/*/locations/global/tcpRoutes/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
TcpRouteName name = TcpRouteName.FromProjectLocationTcpRoute("[PROJECT]", "[LOCATION]", "[TCP_ROUTE]");
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteTcpRouteAsync(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 networkServicesClient.PollOnceDeleteTcpRouteAsync(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;
}

DeleteTcpRouteAsync(string, CallSettings)

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

Deletes a single TcpRoute.

Parameters
Name Description
name string

Required. A name of the TcpRoute to delete. Must be in the format projects/*/locations/global/tcpRoutes/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/tcpRoutes/[TCP_ROUTE]";
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteTcpRouteAsync(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 networkServicesClient.PollOnceDeleteTcpRouteAsync(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;
}

DeleteTcpRouteAsync(string, CancellationToken)

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

Deletes a single TcpRoute.

Parameters
Name Description
name string

Required. A name of the TcpRoute to delete. Must be in the format projects/*/locations/global/tcpRoutes/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/tcpRoutes/[TCP_ROUTE]";
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteTcpRouteAsync(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 networkServicesClient.PollOnceDeleteTcpRouteAsync(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;
}

DeleteTlsRoute(DeleteTlsRouteRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteTlsRoute(DeleteTlsRouteRequest request, CallSettings callSettings = null)

Deletes a single TlsRoute.

Parameters
Name Description
request DeleteTlsRouteRequest

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
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
DeleteTlsRouteRequest request = new DeleteTlsRouteRequest
{
    TlsRouteName = TlsRouteName.FromProjectLocationTlsRoute("[PROJECT]", "[LOCATION]", "[TLS_ROUTE]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = networkServicesClient.DeleteTlsRoute(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 = networkServicesClient.PollOnceDeleteTlsRoute(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;
}

DeleteTlsRoute(TlsRouteName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteTlsRoute(TlsRouteName name, CallSettings callSettings = null)

Deletes a single TlsRoute.

Parameters
Name Description
name TlsRouteName

Required. A name of the TlsRoute to delete. Must be in the format projects/*/locations/global/tlsRoutes/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
TlsRouteName name = TlsRouteName.FromProjectLocationTlsRoute("[PROJECT]", "[LOCATION]", "[TLS_ROUTE]");
// Make the request
Operation<Empty, OperationMetadata> response = networkServicesClient.DeleteTlsRoute(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 = networkServicesClient.PollOnceDeleteTlsRoute(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;
}

DeleteTlsRoute(string, CallSettings)

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

Deletes a single TlsRoute.

Parameters
Name Description
name string

Required. A name of the TlsRoute to delete. Must be in the format projects/*/locations/global/tlsRoutes/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/tlsRoutes/[TLS_ROUTE]";
// Make the request
Operation<Empty, OperationMetadata> response = networkServicesClient.DeleteTlsRoute(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 = networkServicesClient.PollOnceDeleteTlsRoute(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;
}

DeleteTlsRouteAsync(DeleteTlsRouteRequest, CallSettings)

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

Deletes a single TlsRoute.

Parameters
Name Description
request DeleteTlsRouteRequest

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
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
DeleteTlsRouteRequest request = new DeleteTlsRouteRequest
{
    TlsRouteName = TlsRouteName.FromProjectLocationTlsRoute("[PROJECT]", "[LOCATION]", "[TLS_ROUTE]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteTlsRouteAsync(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 networkServicesClient.PollOnceDeleteTlsRouteAsync(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;
}

DeleteTlsRouteAsync(DeleteTlsRouteRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteTlsRouteAsync(DeleteTlsRouteRequest request, CancellationToken cancellationToken)

Deletes a single TlsRoute.

Parameters
Name Description
request DeleteTlsRouteRequest

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
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
DeleteTlsRouteRequest request = new DeleteTlsRouteRequest
{
    TlsRouteName = TlsRouteName.FromProjectLocationTlsRoute("[PROJECT]", "[LOCATION]", "[TLS_ROUTE]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteTlsRouteAsync(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 networkServicesClient.PollOnceDeleteTlsRouteAsync(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;
}

DeleteTlsRouteAsync(TlsRouteName, CallSettings)

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

Deletes a single TlsRoute.

Parameters
Name Description
name TlsRouteName

Required. A name of the TlsRoute to delete. Must be in the format projects/*/locations/global/tlsRoutes/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
TlsRouteName name = TlsRouteName.FromProjectLocationTlsRoute("[PROJECT]", "[LOCATION]", "[TLS_ROUTE]");
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteTlsRouteAsync(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 networkServicesClient.PollOnceDeleteTlsRouteAsync(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;
}

DeleteTlsRouteAsync(TlsRouteName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteTlsRouteAsync(TlsRouteName name, CancellationToken cancellationToken)

Deletes a single TlsRoute.

Parameters
Name Description
name TlsRouteName

Required. A name of the TlsRoute to delete. Must be in the format projects/*/locations/global/tlsRoutes/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
TlsRouteName name = TlsRouteName.FromProjectLocationTlsRoute("[PROJECT]", "[LOCATION]", "[TLS_ROUTE]");
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteTlsRouteAsync(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 networkServicesClient.PollOnceDeleteTlsRouteAsync(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;
}

DeleteTlsRouteAsync(string, CallSettings)

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

Deletes a single TlsRoute.

Parameters
Name Description
name string

Required. A name of the TlsRoute to delete. Must be in the format projects/*/locations/global/tlsRoutes/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/tlsRoutes/[TLS_ROUTE]";
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteTlsRouteAsync(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 networkServicesClient.PollOnceDeleteTlsRouteAsync(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;
}

DeleteTlsRouteAsync(string, CancellationToken)

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

Deletes a single TlsRoute.

Parameters
Name Description
name string

Required. A name of the TlsRoute to delete. Must be in the format projects/*/locations/global/tlsRoutes/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/tlsRoutes/[TLS_ROUTE]";
// Make the request
Operation<Empty, OperationMetadata> response = await networkServicesClient.DeleteTlsRouteAsync(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 networkServicesClient.PollOnceDeleteTlsRouteAsync(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;
}

GetEndpointPolicy(EndpointPolicyName, CallSettings)

public virtual EndpointPolicy GetEndpointPolicy(EndpointPolicyName name, CallSettings callSettings = null)

Gets details of a single EndpointPolicy.

Parameters
Name Description
name EndpointPolicyName

Required. A name of the EndpointPolicy to get. Must be in the format projects/*/locations/global/endpointPolicies/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
EndpointPolicy

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
EndpointPolicyName name = EndpointPolicyName.FromProjectLocationEndpointPolicy("[PROJECT]", "[LOCATION]", "[ENDPOINT_POLICY]");
// Make the request
EndpointPolicy response = networkServicesClient.GetEndpointPolicy(name);

GetEndpointPolicy(GetEndpointPolicyRequest, CallSettings)

public virtual EndpointPolicy GetEndpointPolicy(GetEndpointPolicyRequest request, CallSettings callSettings = null)

Gets details of a single EndpointPolicy.

Parameters
Name Description
request GetEndpointPolicyRequest

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
EndpointPolicy

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
GetEndpointPolicyRequest request = new GetEndpointPolicyRequest
{
    EndpointPolicyName = EndpointPolicyName.FromProjectLocationEndpointPolicy("[PROJECT]", "[LOCATION]", "[ENDPOINT_POLICY]"),
};
// Make the request
EndpointPolicy response = networkServicesClient.GetEndpointPolicy(request);

GetEndpointPolicy(string, CallSettings)

public virtual EndpointPolicy GetEndpointPolicy(string name, CallSettings callSettings = null)

Gets details of a single EndpointPolicy.

Parameters
Name Description
name string

Required. A name of the EndpointPolicy to get. Must be in the format projects/*/locations/global/endpointPolicies/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
EndpointPolicy

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/endpointPolicies/[ENDPOINT_POLICY]";
// Make the request
EndpointPolicy response = networkServicesClient.GetEndpointPolicy(name);

GetEndpointPolicyAsync(EndpointPolicyName, CallSettings)

public virtual Task<EndpointPolicy> GetEndpointPolicyAsync(EndpointPolicyName name, CallSettings callSettings = null)

Gets details of a single EndpointPolicy.

Parameters
Name Description
name EndpointPolicyName

Required. A name of the EndpointPolicy to get. Must be in the format projects/*/locations/global/endpointPolicies/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskEndpointPolicy

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
EndpointPolicyName name = EndpointPolicyName.FromProjectLocationEndpointPolicy("[PROJECT]", "[LOCATION]", "[ENDPOINT_POLICY]");
// Make the request
EndpointPolicy response = await networkServicesClient.GetEndpointPolicyAsync(name);

GetEndpointPolicyAsync(EndpointPolicyName, CancellationToken)

public virtual Task<EndpointPolicy> GetEndpointPolicyAsync(EndpointPolicyName name, CancellationToken cancellationToken)

Gets details of a single EndpointPolicy.

Parameters
Name Description
name EndpointPolicyName

Required. A name of the EndpointPolicy to get. Must be in the format projects/*/locations/global/endpointPolicies/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskEndpointPolicy

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
EndpointPolicyName name = EndpointPolicyName.FromProjectLocationEndpointPolicy("[PROJECT]", "[LOCATION]", "[ENDPOINT_POLICY]");
// Make the request
EndpointPolicy response = await networkServicesClient.GetEndpointPolicyAsync(name);

GetEndpointPolicyAsync(GetEndpointPolicyRequest, CallSettings)

public virtual Task<EndpointPolicy> GetEndpointPolicyAsync(GetEndpointPolicyRequest request, CallSettings callSettings = null)

Gets details of a single EndpointPolicy.

Parameters
Name Description
request GetEndpointPolicyRequest

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
TaskEndpointPolicy

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
GetEndpointPolicyRequest request = new GetEndpointPolicyRequest
{
    EndpointPolicyName = EndpointPolicyName.FromProjectLocationEndpointPolicy("[PROJECT]", "[LOCATION]", "[ENDPOINT_POLICY]"),
};
// Make the request
EndpointPolicy response = await networkServicesClient.GetEndpointPolicyAsync(request);

GetEndpointPolicyAsync(GetEndpointPolicyRequest, CancellationToken)

public virtual Task<EndpointPolicy> GetEndpointPolicyAsync(GetEndpointPolicyRequest request, CancellationToken cancellationToken)

Gets details of a single EndpointPolicy.

Parameters
Name Description
request GetEndpointPolicyRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskEndpointPolicy

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
GetEndpointPolicyRequest request = new GetEndpointPolicyRequest
{
    EndpointPolicyName = EndpointPolicyName.FromProjectLocationEndpointPolicy("[PROJECT]", "[LOCATION]", "[ENDPOINT_POLICY]"),
};
// Make the request
EndpointPolicy response = await networkServicesClient.GetEndpointPolicyAsync(request);

GetEndpointPolicyAsync(string, CallSettings)

public virtual Task<EndpointPolicy> GetEndpointPolicyAsync(string name, CallSettings callSettings = null)

Gets details of a single EndpointPolicy.

Parameters
Name Description
name string

Required. A name of the EndpointPolicy to get. Must be in the format projects/*/locations/global/endpointPolicies/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskEndpointPolicy

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/endpointPolicies/[ENDPOINT_POLICY]";
// Make the request
EndpointPolicy response = await networkServicesClient.GetEndpointPolicyAsync(name);

GetEndpointPolicyAsync(string, CancellationToken)

public virtual Task<EndpointPolicy> GetEndpointPolicyAsync(string name, CancellationToken cancellationToken)

Gets details of a single EndpointPolicy.

Parameters
Name Description
name string

Required. A name of the EndpointPolicy to get. Must be in the format projects/*/locations/global/endpointPolicies/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskEndpointPolicy

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/endpointPolicies/[ENDPOINT_POLICY]";
// Make the request
EndpointPolicy response = await networkServicesClient.GetEndpointPolicyAsync(name);

GetGateway(GatewayName, CallSettings)

public virtual Gateway GetGateway(GatewayName name, CallSettings callSettings = null)

Gets details of a single Gateway.

Parameters
Name Description
name GatewayName

Required. A name of the Gateway to get. Must be in the format projects/*/locations/*/gateways/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Gateway

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
GatewayName name = GatewayName.FromProjectLocationGateway("[PROJECT]", "[LOCATION]", "[GATEWAY]");
// Make the request
Gateway response = networkServicesClient.GetGateway(name);

GetGateway(GetGatewayRequest, CallSettings)

public virtual Gateway GetGateway(GetGatewayRequest request, CallSettings callSettings = null)

Gets details of a single Gateway.

Parameters
Name Description
request GetGatewayRequest

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
Gateway

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
GetGatewayRequest request = new GetGatewayRequest
{
    GatewayName = GatewayName.FromProjectLocationGateway("[PROJECT]", "[LOCATION]", "[GATEWAY]"),
};
// Make the request
Gateway response = networkServicesClient.GetGateway(request);

GetGateway(string, CallSettings)

public virtual Gateway GetGateway(string name, CallSettings callSettings = null)

Gets details of a single Gateway.

Parameters
Name Description
name string

Required. A name of the Gateway to get. Must be in the format projects/*/locations/*/gateways/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Gateway

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/gateways/[GATEWAY]";
// Make the request
Gateway response = networkServicesClient.GetGateway(name);

GetGatewayAsync(GatewayName, CallSettings)

public virtual Task<Gateway> GetGatewayAsync(GatewayName name, CallSettings callSettings = null)

Gets details of a single Gateway.

Parameters
Name Description
name GatewayName

Required. A name of the Gateway to get. Must be in the format projects/*/locations/*/gateways/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGateway

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
GatewayName name = GatewayName.FromProjectLocationGateway("[PROJECT]", "[LOCATION]", "[GATEWAY]");
// Make the request
Gateway response = await networkServicesClient.GetGatewayAsync(name);

GetGatewayAsync(GatewayName, CancellationToken)

public virtual Task<Gateway> GetGatewayAsync(GatewayName name, CancellationToken cancellationToken)

Gets details of a single Gateway.

Parameters
Name Description
name GatewayName

Required. A name of the Gateway to get. Must be in the format projects/*/locations/*/gateways/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGateway

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
GatewayName name = GatewayName.FromProjectLocationGateway("[PROJECT]", "[LOCATION]", "[GATEWAY]");
// Make the request
Gateway response = await networkServicesClient.GetGatewayAsync(name);

GetGatewayAsync(GetGatewayRequest, CallSettings)

public virtual Task<Gateway> GetGatewayAsync(GetGatewayRequest request, CallSettings callSettings = null)

Gets details of a single Gateway.

Parameters
Name Description
request GetGatewayRequest

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
TaskGateway

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
GetGatewayRequest request = new GetGatewayRequest
{
    GatewayName = GatewayName.FromProjectLocationGateway("[PROJECT]", "[LOCATION]", "[GATEWAY]"),
};
// Make the request
Gateway response = await networkServicesClient.GetGatewayAsync(request);

GetGatewayAsync(GetGatewayRequest, CancellationToken)

public virtual Task<Gateway> GetGatewayAsync(GetGatewayRequest request, CancellationToken cancellationToken)

Gets details of a single Gateway.

Parameters
Name Description
request GetGatewayRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGateway

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
GetGatewayRequest request = new GetGatewayRequest
{
    GatewayName = GatewayName.FromProjectLocationGateway("[PROJECT]", "[LOCATION]", "[GATEWAY]"),
};
// Make the request
Gateway response = await networkServicesClient.GetGatewayAsync(request);

GetGatewayAsync(string, CallSettings)

public virtual Task<Gateway> GetGatewayAsync(string name, CallSettings callSettings = null)

Gets details of a single Gateway.

Parameters
Name Description
name string

Required. A name of the Gateway to get. Must be in the format projects/*/locations/*/gateways/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGateway

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/gateways/[GATEWAY]";
// Make the request
Gateway response = await networkServicesClient.GetGatewayAsync(name);

GetGatewayAsync(string, CancellationToken)

public virtual Task<Gateway> GetGatewayAsync(string name, CancellationToken cancellationToken)

Gets details of a single Gateway.

Parameters
Name Description
name string

Required. A name of the Gateway to get. Must be in the format projects/*/locations/*/gateways/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGateway

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/gateways/[GATEWAY]";
// Make the request
Gateway response = await networkServicesClient.GetGatewayAsync(name);

GetGrpcRoute(GetGrpcRouteRequest, CallSettings)

public virtual GrpcRoute GetGrpcRoute(GetGrpcRouteRequest request, CallSettings callSettings = null)

Gets details of a single GrpcRoute.

Parameters
Name Description
request GetGrpcRouteRequest

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
GrpcRoute

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
GetGrpcRouteRequest request = new GetGrpcRouteRequest
{
    GrpcRouteName = GrpcRouteName.FromProjectLocationGrpcRoute("[PROJECT]", "[LOCATION]", "[GRPC_ROUTE]"),
};
// Make the request
GrpcRoute response = networkServicesClient.GetGrpcRoute(request);

GetGrpcRoute(GrpcRouteName, CallSettings)

public virtual GrpcRoute GetGrpcRoute(GrpcRouteName name, CallSettings callSettings = null)

Gets details of a single GrpcRoute.

Parameters
Name Description
name GrpcRouteName

Required. A name of the GrpcRoute to get. Must be in the format projects/*/locations/global/grpcRoutes/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GrpcRoute

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
GrpcRouteName name = GrpcRouteName.FromProjectLocationGrpcRoute("[PROJECT]", "[LOCATION]", "[GRPC_ROUTE]");
// Make the request
GrpcRoute response = networkServicesClient.GetGrpcRoute(name);

GetGrpcRoute(string, CallSettings)

public virtual GrpcRoute GetGrpcRoute(string name, CallSettings callSettings = null)

Gets details of a single GrpcRoute.

Parameters
Name Description
name string

Required. A name of the GrpcRoute to get. Must be in the format projects/*/locations/global/grpcRoutes/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GrpcRoute

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/grpcRoutes/[GRPC_ROUTE]";
// Make the request
GrpcRoute response = networkServicesClient.GetGrpcRoute(name);

GetGrpcRouteAsync(GetGrpcRouteRequest, CallSettings)

public virtual Task<GrpcRoute> GetGrpcRouteAsync(GetGrpcRouteRequest request, CallSettings callSettings = null)

Gets details of a single GrpcRoute.

Parameters
Name Description
request GetGrpcRouteRequest

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
TaskGrpcRoute

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
GetGrpcRouteRequest request = new GetGrpcRouteRequest
{
    GrpcRouteName = GrpcRouteName.FromProjectLocationGrpcRoute("[PROJECT]", "[LOCATION]", "[GRPC_ROUTE]"),
};
// Make the request
GrpcRoute response = await networkServicesClient.GetGrpcRouteAsync(request);

GetGrpcRouteAsync(GetGrpcRouteRequest, CancellationToken)

public virtual Task<GrpcRoute> GetGrpcRouteAsync(GetGrpcRouteRequest request, CancellationToken cancellationToken)

Gets details of a single GrpcRoute.

Parameters
Name Description
request GetGrpcRouteRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGrpcRoute

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
GetGrpcRouteRequest request = new GetGrpcRouteRequest
{
    GrpcRouteName = GrpcRouteName.FromProjectLocationGrpcRoute("[PROJECT]", "[LOCATION]", "[GRPC_ROUTE]"),
};
// Make the request
GrpcRoute response = await networkServicesClient.GetGrpcRouteAsync(request);

GetGrpcRouteAsync(GrpcRouteName, CallSettings)

public virtual Task<GrpcRoute> GetGrpcRouteAsync(GrpcRouteName name, CallSettings callSettings = null)

Gets details of a single GrpcRoute.

Parameters
Name Description
name GrpcRouteName

Required. A name of the GrpcRoute to get. Must be in the format projects/*/locations/global/grpcRoutes/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGrpcRoute

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
GrpcRouteName name = GrpcRouteName.FromProjectLocationGrpcRoute("[PROJECT]", "[LOCATION]", "[GRPC_ROUTE]");
// Make the request
GrpcRoute response = await networkServicesClient.GetGrpcRouteAsync(name);

GetGrpcRouteAsync(GrpcRouteName, CancellationToken)

public virtual Task<GrpcRoute> GetGrpcRouteAsync(GrpcRouteName name, CancellationToken cancellationToken)

Gets details of a single GrpcRoute.

Parameters
Name Description
name GrpcRouteName

Required. A name of the GrpcRoute to get. Must be in the format projects/*/locations/global/grpcRoutes/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGrpcRoute

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
GrpcRouteName name = GrpcRouteName.FromProjectLocationGrpcRoute("[PROJECT]", "[LOCATION]", "[GRPC_ROUTE]");
// Make the request
GrpcRoute response = await networkServicesClient.GetGrpcRouteAsync(name);

GetGrpcRouteAsync(string, CallSettings)

public virtual Task<GrpcRoute> GetGrpcRouteAsync(string name, CallSettings callSettings = null)

Gets details of a single GrpcRoute.

Parameters
Name Description
name string

Required. A name of the GrpcRoute to get. Must be in the format projects/*/locations/global/grpcRoutes/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGrpcRoute

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/grpcRoutes/[GRPC_ROUTE]";
// Make the request
GrpcRoute response = await networkServicesClient.GetGrpcRouteAsync(name);

GetGrpcRouteAsync(string, CancellationToken)

public virtual Task<GrpcRoute> GetGrpcRouteAsync(string name, CancellationToken cancellationToken)

Gets details of a single GrpcRoute.

Parameters
Name Description
name string

Required. A name of the GrpcRoute to get. Must be in the format projects/*/locations/global/grpcRoutes/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGrpcRoute

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/grpcRoutes/[GRPC_ROUTE]";
// Make the request
GrpcRoute response = await networkServicesClient.GetGrpcRouteAsync(name);

GetHttpRoute(GetHttpRouteRequest, CallSettings)

public virtual HttpRoute GetHttpRoute(GetHttpRouteRequest request, CallSettings callSettings = null)

Gets details of a single HttpRoute.

Parameters
Name Description
request GetHttpRouteRequest

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
HttpRoute

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
GetHttpRouteRequest request = new GetHttpRouteRequest
{
    HttpRouteName = HttpRouteName.FromProjectLocationHttpRoute("[PROJECT]", "[LOCATION]", "[HTTP_ROUTE]"),
};
// Make the request
HttpRoute response = networkServicesClient.GetHttpRoute(request);

GetHttpRoute(HttpRouteName, CallSettings)

public virtual HttpRoute GetHttpRoute(HttpRouteName name, CallSettings callSettings = null)

Gets details of a single HttpRoute.

Parameters
Name Description
name HttpRouteName

Required. A name of the HttpRoute to get. Must be in the format projects/*/locations/global/httpRoutes/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
HttpRoute

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
HttpRouteName name = HttpRouteName.FromProjectLocationHttpRoute("[PROJECT]", "[LOCATION]", "[HTTP_ROUTE]");
// Make the request
HttpRoute response = networkServicesClient.GetHttpRoute(name);

GetHttpRoute(string, CallSettings)

public virtual HttpRoute GetHttpRoute(string name, CallSettings callSettings = null)

Gets details of a single HttpRoute.

Parameters
Name Description
name string

Required. A name of the HttpRoute to get. Must be in the format projects/*/locations/global/httpRoutes/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
HttpRoute

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/httpRoutes/[HTTP_ROUTE]";
// Make the request
HttpRoute response = networkServicesClient.GetHttpRoute(name);

GetHttpRouteAsync(GetHttpRouteRequest, CallSettings)

public virtual Task<HttpRoute> GetHttpRouteAsync(GetHttpRouteRequest request, CallSettings callSettings = null)

Gets details of a single HttpRoute.

Parameters
Name Description
request GetHttpRouteRequest

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
TaskHttpRoute

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
GetHttpRouteRequest request = new GetHttpRouteRequest
{
    HttpRouteName = HttpRouteName.FromProjectLocationHttpRoute("[PROJECT]", "[LOCATION]", "[HTTP_ROUTE]"),
};
// Make the request
HttpRoute response = await networkServicesClient.GetHttpRouteAsync(request);

GetHttpRouteAsync(GetHttpRouteRequest, CancellationToken)

public virtual Task<HttpRoute> GetHttpRouteAsync(GetHttpRouteRequest request, CancellationToken cancellationToken)

Gets details of a single HttpRoute.

Parameters
Name Description
request GetHttpRouteRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskHttpRoute

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
GetHttpRouteRequest request = new GetHttpRouteRequest
{
    HttpRouteName = HttpRouteName.FromProjectLocationHttpRoute("[PROJECT]", "[LOCATION]", "[HTTP_ROUTE]"),
};
// Make the request
HttpRoute response = await networkServicesClient.GetHttpRouteAsync(request);

GetHttpRouteAsync(HttpRouteName, CallSettings)

public virtual Task<HttpRoute> GetHttpRouteAsync(HttpRouteName name, CallSettings callSettings = null)

Gets details of a single HttpRoute.

Parameters
Name Description
name HttpRouteName

Required. A name of the HttpRoute to get. Must be in the format projects/*/locations/global/httpRoutes/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskHttpRoute

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
HttpRouteName name = HttpRouteName.FromProjectLocationHttpRoute("[PROJECT]", "[LOCATION]", "[HTTP_ROUTE]");
// Make the request
HttpRoute response = await networkServicesClient.GetHttpRouteAsync(name);

GetHttpRouteAsync(HttpRouteName, CancellationToken)

public virtual Task<HttpRoute> GetHttpRouteAsync(HttpRouteName name, CancellationToken cancellationToken)

Gets details of a single HttpRoute.

Parameters
Name Description
name HttpRouteName

Required. A name of the HttpRoute to get. Must be in the format projects/*/locations/global/httpRoutes/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskHttpRoute

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
HttpRouteName name = HttpRouteName.FromProjectLocationHttpRoute("[PROJECT]", "[LOCATION]", "[HTTP_ROUTE]");
// Make the request
HttpRoute response = await networkServicesClient.GetHttpRouteAsync(name);

GetHttpRouteAsync(string, CallSettings)

public virtual Task<HttpRoute> GetHttpRouteAsync(string name, CallSettings callSettings = null)

Gets details of a single HttpRoute.

Parameters
Name Description
name string

Required. A name of the HttpRoute to get. Must be in the format projects/*/locations/global/httpRoutes/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskHttpRoute

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/httpRoutes/[HTTP_ROUTE]";
// Make the request
HttpRoute response = await networkServicesClient.GetHttpRouteAsync(name);

GetHttpRouteAsync(string, CancellationToken)

public virtual Task<HttpRoute> GetHttpRouteAsync(string name, CancellationToken cancellationToken)

Gets details of a single HttpRoute.

Parameters
Name Description
name string

Required. A name of the HttpRoute to get. Must be in the format projects/*/locations/global/httpRoutes/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskHttpRoute

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/httpRoutes/[HTTP_ROUTE]";
// Make the request
HttpRoute response = await networkServicesClient.GetHttpRouteAsync(name);

GetMesh(GetMeshRequest, CallSettings)

public virtual Mesh GetMesh(GetMeshRequest request, CallSettings callSettings = null)

Gets details of a single Mesh.

Parameters
Name Description
request GetMeshRequest

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
Mesh

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
GetMeshRequest request = new GetMeshRequest
{
    MeshName = MeshName.FromProjectLocationMesh("[PROJECT]", "[LOCATION]", "[MESH]"),
};
// Make the request
Mesh response = networkServicesClient.GetMesh(request);

GetMesh(MeshName, CallSettings)

public virtual Mesh GetMesh(MeshName name, CallSettings callSettings = null)

Gets details of a single Mesh.

Parameters
Name Description
name MeshName

Required. A name of the Mesh to get. Must be in the format projects/*/locations/global/meshes/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Mesh

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
MeshName name = MeshName.FromProjectLocationMesh("[PROJECT]", "[LOCATION]", "[MESH]");
// Make the request
Mesh response = networkServicesClient.GetMesh(name);

GetMesh(string, CallSettings)

public virtual Mesh GetMesh(string name, CallSettings callSettings = null)

Gets details of a single Mesh.

Parameters
Name Description
name string

Required. A name of the Mesh to get. Must be in the format projects/*/locations/global/meshes/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Mesh

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/meshes/[MESH]";
// Make the request
Mesh response = networkServicesClient.GetMesh(name);

GetMeshAsync(GetMeshRequest, CallSettings)

public virtual Task<Mesh> GetMeshAsync(GetMeshRequest request, CallSettings callSettings = null)

Gets details of a single Mesh.

Parameters
Name Description
request GetMeshRequest

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
TaskMesh

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
GetMeshRequest request = new GetMeshRequest
{
    MeshName = MeshName.FromProjectLocationMesh("[PROJECT]", "[LOCATION]", "[MESH]"),
};
// Make the request
Mesh response = await networkServicesClient.GetMeshAsync(request);

GetMeshAsync(GetMeshRequest, CancellationToken)

public virtual Task<Mesh> GetMeshAsync(GetMeshRequest request, CancellationToken cancellationToken)

Gets details of a single Mesh.

Parameters
Name Description
request GetMeshRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskMesh

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
GetMeshRequest request = new GetMeshRequest
{
    MeshName = MeshName.FromProjectLocationMesh("[PROJECT]", "[LOCATION]", "[MESH]"),
};
// Make the request
Mesh response = await networkServicesClient.GetMeshAsync(request);

GetMeshAsync(MeshName, CallSettings)

public virtual Task<Mesh> GetMeshAsync(MeshName name, CallSettings callSettings = null)

Gets details of a single Mesh.

Parameters
Name Description
name MeshName

Required. A name of the Mesh to get. Must be in the format projects/*/locations/global/meshes/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskMesh

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
MeshName name = MeshName.FromProjectLocationMesh("[PROJECT]", "[LOCATION]", "[MESH]");
// Make the request
Mesh response = await networkServicesClient.GetMeshAsync(name);

GetMeshAsync(MeshName, CancellationToken)

public virtual Task<Mesh> GetMeshAsync(MeshName name, CancellationToken cancellationToken)

Gets details of a single Mesh.

Parameters
Name Description
name MeshName

Required. A name of the Mesh to get. Must be in the format projects/*/locations/global/meshes/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskMesh

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
MeshName name = MeshName.FromProjectLocationMesh("[PROJECT]", "[LOCATION]", "[MESH]");
// Make the request
Mesh response = await networkServicesClient.GetMeshAsync(name);

GetMeshAsync(string, CallSettings)

public virtual Task<Mesh> GetMeshAsync(string name, CallSettings callSettings = null)

Gets details of a single Mesh.

Parameters
Name Description
name string

Required. A name of the Mesh to get. Must be in the format projects/*/locations/global/meshes/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskMesh

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/meshes/[MESH]";
// Make the request
Mesh response = await networkServicesClient.GetMeshAsync(name);

GetMeshAsync(string, CancellationToken)

public virtual Task<Mesh> GetMeshAsync(string name, CancellationToken cancellationToken)

Gets details of a single Mesh.

Parameters
Name Description
name string

Required. A name of the Mesh to get. Must be in the format projects/*/locations/global/meshes/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskMesh

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/meshes/[MESH]";
// Make the request
Mesh response = await networkServicesClient.GetMeshAsync(name);

GetServiceBinding(GetServiceBindingRequest, CallSettings)

public virtual ServiceBinding GetServiceBinding(GetServiceBindingRequest request, CallSettings callSettings = null)

Gets details of a single ServiceBinding.

Parameters
Name Description
request GetServiceBindingRequest

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
ServiceBinding

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
GetServiceBindingRequest request = new GetServiceBindingRequest
{
    ServiceBindingName = ServiceBindingName.FromProjectLocationServiceBinding("[PROJECT]", "[LOCATION]", "[SERVICE_BINDING]"),
};
// Make the request
ServiceBinding response = networkServicesClient.GetServiceBinding(request);

GetServiceBinding(ServiceBindingName, CallSettings)

public virtual ServiceBinding GetServiceBinding(ServiceBindingName name, CallSettings callSettings = null)

Gets details of a single ServiceBinding.

Parameters
Name Description
name ServiceBindingName

Required. A name of the ServiceBinding to get. Must be in the format projects/*/locations/global/serviceBindings/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ServiceBinding

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
ServiceBindingName name = ServiceBindingName.FromProjectLocationServiceBinding("[PROJECT]", "[LOCATION]", "[SERVICE_BINDING]");
// Make the request
ServiceBinding response = networkServicesClient.GetServiceBinding(name);

GetServiceBinding(string, CallSettings)

public virtual ServiceBinding GetServiceBinding(string name, CallSettings callSettings = null)

Gets details of a single ServiceBinding.

Parameters
Name Description
name string

Required. A name of the ServiceBinding to get. Must be in the format projects/*/locations/global/serviceBindings/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ServiceBinding

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/serviceBindings/[SERVICE_BINDING]";
// Make the request
ServiceBinding response = networkServicesClient.GetServiceBinding(name);

GetServiceBindingAsync(GetServiceBindingRequest, CallSettings)

public virtual Task<ServiceBinding> GetServiceBindingAsync(GetServiceBindingRequest request, CallSettings callSettings = null)

Gets details of a single ServiceBinding.

Parameters
Name Description
request GetServiceBindingRequest

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
TaskServiceBinding

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
GetServiceBindingRequest request = new GetServiceBindingRequest
{
    ServiceBindingName = ServiceBindingName.FromProjectLocationServiceBinding("[PROJECT]", "[LOCATION]", "[SERVICE_BINDING]"),
};
// Make the request
ServiceBinding response = await networkServicesClient.GetServiceBindingAsync(request);

GetServiceBindingAsync(GetServiceBindingRequest, CancellationToken)

public virtual Task<ServiceBinding> GetServiceBindingAsync(GetServiceBindingRequest request, CancellationToken cancellationToken)

Gets details of a single ServiceBinding.

Parameters
Name Description
request GetServiceBindingRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskServiceBinding

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
GetServiceBindingRequest request = new GetServiceBindingRequest
{
    ServiceBindingName = ServiceBindingName.FromProjectLocationServiceBinding("[PROJECT]", "[LOCATION]", "[SERVICE_BINDING]"),
};
// Make the request
ServiceBinding response = await networkServicesClient.GetServiceBindingAsync(request);

GetServiceBindingAsync(ServiceBindingName, CallSettings)

public virtual Task<ServiceBinding> GetServiceBindingAsync(ServiceBindingName name, CallSettings callSettings = null)

Gets details of a single ServiceBinding.

Parameters
Name Description
name ServiceBindingName

Required. A name of the ServiceBinding to get. Must be in the format projects/*/locations/global/serviceBindings/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskServiceBinding

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
ServiceBindingName name = ServiceBindingName.FromProjectLocationServiceBinding("[PROJECT]", "[LOCATION]", "[SERVICE_BINDING]");
// Make the request
ServiceBinding response = await networkServicesClient.GetServiceBindingAsync(name);

GetServiceBindingAsync(ServiceBindingName, CancellationToken)

public virtual Task<ServiceBinding> GetServiceBindingAsync(ServiceBindingName name, CancellationToken cancellationToken)

Gets details of a single ServiceBinding.

Parameters
Name Description
name ServiceBindingName

Required. A name of the ServiceBinding to get. Must be in the format projects/*/locations/global/serviceBindings/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskServiceBinding

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
ServiceBindingName name = ServiceBindingName.FromProjectLocationServiceBinding("[PROJECT]", "[LOCATION]", "[SERVICE_BINDING]");
// Make the request
ServiceBinding response = await networkServicesClient.GetServiceBindingAsync(name);

GetServiceBindingAsync(string, CallSettings)

public virtual Task<ServiceBinding> GetServiceBindingAsync(string name, CallSettings callSettings = null)

Gets details of a single ServiceBinding.

Parameters
Name Description
name string

Required. A name of the ServiceBinding to get. Must be in the format projects/*/locations/global/serviceBindings/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskServiceBinding

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/serviceBindings/[SERVICE_BINDING]";
// Make the request
ServiceBinding response = await networkServicesClient.GetServiceBindingAsync(name);

GetServiceBindingAsync(string, CancellationToken)

public virtual Task<ServiceBinding> GetServiceBindingAsync(string name, CancellationToken cancellationToken)

Gets details of a single ServiceBinding.

Parameters
Name Description
name string

Required. A name of the ServiceBinding to get. Must be in the format projects/*/locations/global/serviceBindings/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskServiceBinding

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/serviceBindings/[SERVICE_BINDING]";
// Make the request
ServiceBinding response = await networkServicesClient.GetServiceBindingAsync(name);

GetTcpRoute(GetTcpRouteRequest, CallSettings)

public virtual TcpRoute GetTcpRoute(GetTcpRouteRequest request, CallSettings callSettings = null)

Gets details of a single TcpRoute.

Parameters
Name Description
request GetTcpRouteRequest

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
TcpRoute

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
GetTcpRouteRequest request = new GetTcpRouteRequest
{
    TcpRouteName = TcpRouteName.FromProjectLocationTcpRoute("[PROJECT]", "[LOCATION]", "[TCP_ROUTE]"),
};
// Make the request
TcpRoute response = networkServicesClient.GetTcpRoute(request);

GetTcpRoute(TcpRouteName, CallSettings)

public virtual TcpRoute GetTcpRoute(TcpRouteName name, CallSettings callSettings = null)

Gets details of a single TcpRoute.

Parameters
Name Description
name TcpRouteName

Required. A name of the TcpRoute to get. Must be in the format projects/*/locations/global/tcpRoutes/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TcpRoute

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
TcpRouteName name = TcpRouteName.FromProjectLocationTcpRoute("[PROJECT]", "[LOCATION]", "[TCP_ROUTE]");
// Make the request
TcpRoute response = networkServicesClient.GetTcpRoute(name);

GetTcpRoute(string, CallSettings)

public virtual TcpRoute GetTcpRoute(string name, CallSettings callSettings = null)

Gets details of a single TcpRoute.

Parameters
Name Description
name string

Required. A name of the TcpRoute to get. Must be in the format projects/*/locations/global/tcpRoutes/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TcpRoute

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/tcpRoutes/[TCP_ROUTE]";
// Make the request
TcpRoute response = networkServicesClient.GetTcpRoute(name);

GetTcpRouteAsync(GetTcpRouteRequest, CallSettings)

public virtual Task<TcpRoute> GetTcpRouteAsync(GetTcpRouteRequest request, CallSettings callSettings = null)

Gets details of a single TcpRoute.

Parameters
Name Description
request GetTcpRouteRequest

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
TaskTcpRoute

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
GetTcpRouteRequest request = new GetTcpRouteRequest
{
    TcpRouteName = TcpRouteName.FromProjectLocationTcpRoute("[PROJECT]", "[LOCATION]", "[TCP_ROUTE]"),
};
// Make the request
TcpRoute response = await networkServicesClient.GetTcpRouteAsync(request);

GetTcpRouteAsync(GetTcpRouteRequest, CancellationToken)

public virtual Task<TcpRoute> GetTcpRouteAsync(GetTcpRouteRequest request, CancellationToken cancellationToken)

Gets details of a single TcpRoute.

Parameters
Name Description
request GetTcpRouteRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskTcpRoute

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
GetTcpRouteRequest request = new GetTcpRouteRequest
{
    TcpRouteName = TcpRouteName.FromProjectLocationTcpRoute("[PROJECT]", "[LOCATION]", "[TCP_ROUTE]"),
};
// Make the request
TcpRoute response = await networkServicesClient.GetTcpRouteAsync(request);

GetTcpRouteAsync(TcpRouteName, CallSettings)

public virtual Task<TcpRoute> GetTcpRouteAsync(TcpRouteName name, CallSettings callSettings = null)

Gets details of a single TcpRoute.

Parameters
Name Description
name TcpRouteName

Required. A name of the TcpRoute to get. Must be in the format projects/*/locations/global/tcpRoutes/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskTcpRoute

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
TcpRouteName name = TcpRouteName.FromProjectLocationTcpRoute("[PROJECT]", "[LOCATION]", "[TCP_ROUTE]");
// Make the request
TcpRoute response = await networkServicesClient.GetTcpRouteAsync(name);

GetTcpRouteAsync(TcpRouteName, CancellationToken)

public virtual Task<TcpRoute> GetTcpRouteAsync(TcpRouteName name, CancellationToken cancellationToken)

Gets details of a single TcpRoute.

Parameters
Name Description
name TcpRouteName

Required. A name of the TcpRoute to get. Must be in the format projects/*/locations/global/tcpRoutes/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskTcpRoute

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
TcpRouteName name = TcpRouteName.FromProjectLocationTcpRoute("[PROJECT]", "[LOCATION]", "[TCP_ROUTE]");
// Make the request
TcpRoute response = await networkServicesClient.GetTcpRouteAsync(name);

GetTcpRouteAsync(string, CallSettings)

public virtual Task<TcpRoute> GetTcpRouteAsync(string name, CallSettings callSettings = null)

Gets details of a single TcpRoute.

Parameters
Name Description
name string

Required. A name of the TcpRoute to get. Must be in the format projects/*/locations/global/tcpRoutes/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskTcpRoute

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/tcpRoutes/[TCP_ROUTE]";
// Make the request
TcpRoute response = await networkServicesClient.GetTcpRouteAsync(name);

GetTcpRouteAsync(string, CancellationToken)

public virtual Task<TcpRoute> GetTcpRouteAsync(string name, CancellationToken cancellationToken)

Gets details of a single TcpRoute.

Parameters
Name Description
name string

Required. A name of the TcpRoute to get. Must be in the format projects/*/locations/global/tcpRoutes/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskTcpRoute

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/tcpRoutes/[TCP_ROUTE]";
// Make the request
TcpRoute response = await networkServicesClient.GetTcpRouteAsync(name);

GetTlsRoute(GetTlsRouteRequest, CallSettings)

public virtual TlsRoute GetTlsRoute(GetTlsRouteRequest request, CallSettings callSettings = null)

Gets details of a single TlsRoute.

Parameters
Name Description
request GetTlsRouteRequest

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
TlsRoute

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
GetTlsRouteRequest request = new GetTlsRouteRequest
{
    TlsRouteName = TlsRouteName.FromProjectLocationTlsRoute("[PROJECT]", "[LOCATION]", "[TLS_ROUTE]"),
};
// Make the request
TlsRoute response = networkServicesClient.GetTlsRoute(request);

GetTlsRoute(TlsRouteName, CallSettings)

public virtual TlsRoute GetTlsRoute(TlsRouteName name, CallSettings callSettings = null)

Gets details of a single TlsRoute.

Parameters
Name Description
name TlsRouteName

Required. A name of the TlsRoute to get. Must be in the format projects/*/locations/global/tlsRoutes/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TlsRoute

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
TlsRouteName name = TlsRouteName.FromProjectLocationTlsRoute("[PROJECT]", "[LOCATION]", "[TLS_ROUTE]");
// Make the request
TlsRoute response = networkServicesClient.GetTlsRoute(name);

GetTlsRoute(string, CallSettings)

public virtual TlsRoute GetTlsRoute(string name, CallSettings callSettings = null)

Gets details of a single TlsRoute.

Parameters
Name Description
name string

Required. A name of the TlsRoute to get. Must be in the format projects/*/locations/global/tlsRoutes/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TlsRoute

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/tlsRoutes/[TLS_ROUTE]";
// Make the request
TlsRoute response = networkServicesClient.GetTlsRoute(name);

GetTlsRouteAsync(GetTlsRouteRequest, CallSettings)

public virtual Task<TlsRoute> GetTlsRouteAsync(GetTlsRouteRequest request, CallSettings callSettings = null)

Gets details of a single TlsRoute.

Parameters
Name Description
request GetTlsRouteRequest

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
TaskTlsRoute

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
GetTlsRouteRequest request = new GetTlsRouteRequest
{
    TlsRouteName = TlsRouteName.FromProjectLocationTlsRoute("[PROJECT]", "[LOCATION]", "[TLS_ROUTE]"),
};
// Make the request
TlsRoute response = await networkServicesClient.GetTlsRouteAsync(request);

GetTlsRouteAsync(GetTlsRouteRequest, CancellationToken)

public virtual Task<TlsRoute> GetTlsRouteAsync(GetTlsRouteRequest request, CancellationToken cancellationToken)

Gets details of a single TlsRoute.

Parameters
Name Description
request GetTlsRouteRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskTlsRoute

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
GetTlsRouteRequest request = new GetTlsRouteRequest
{
    TlsRouteName = TlsRouteName.FromProjectLocationTlsRoute("[PROJECT]", "[LOCATION]", "[TLS_ROUTE]"),
};
// Make the request
TlsRoute response = await networkServicesClient.GetTlsRouteAsync(request);

GetTlsRouteAsync(TlsRouteName, CallSettings)

public virtual Task<TlsRoute> GetTlsRouteAsync(TlsRouteName name, CallSettings callSettings = null)

Gets details of a single TlsRoute.

Parameters
Name Description
name TlsRouteName

Required. A name of the TlsRoute to get. Must be in the format projects/*/locations/global/tlsRoutes/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskTlsRoute

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
TlsRouteName name = TlsRouteName.FromProjectLocationTlsRoute("[PROJECT]", "[LOCATION]", "[TLS_ROUTE]");
// Make the request
TlsRoute response = await networkServicesClient.GetTlsRouteAsync(name);

GetTlsRouteAsync(TlsRouteName, CancellationToken)

public virtual Task<TlsRoute> GetTlsRouteAsync(TlsRouteName name, CancellationToken cancellationToken)

Gets details of a single TlsRoute.

Parameters
Name Description
name TlsRouteName

Required. A name of the TlsRoute to get. Must be in the format projects/*/locations/global/tlsRoutes/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskTlsRoute

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
TlsRouteName name = TlsRouteName.FromProjectLocationTlsRoute("[PROJECT]", "[LOCATION]", "[TLS_ROUTE]");
// Make the request
TlsRoute response = await networkServicesClient.GetTlsRouteAsync(name);

GetTlsRouteAsync(string, CallSettings)

public virtual Task<TlsRoute> GetTlsRouteAsync(string name, CallSettings callSettings = null)

Gets details of a single TlsRoute.

Parameters
Name Description
name string

Required. A name of the TlsRoute to get. Must be in the format projects/*/locations/global/tlsRoutes/*.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskTlsRoute

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/tlsRoutes/[TLS_ROUTE]";
// Make the request
TlsRoute response = await networkServicesClient.GetTlsRouteAsync(name);

GetTlsRouteAsync(string, CancellationToken)

public virtual Task<TlsRoute> GetTlsRouteAsync(string name, CancellationToken cancellationToken)

Gets details of a single TlsRoute.

Parameters
Name Description
name string

Required. A name of the TlsRoute to get. Must be in the format projects/*/locations/global/tlsRoutes/*.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskTlsRoute

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/tlsRoutes/[TLS_ROUTE]";
// Make the request
TlsRoute response = await networkServicesClient.GetTlsRouteAsync(name);

ListEndpointPolicies(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListEndpointPoliciesResponse, EndpointPolicy> ListEndpointPolicies(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists EndpointPolicies in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location from which the EndpointPolicies should be listed, specified in the format projects/*/locations/global.

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
PagedEnumerableListEndpointPoliciesResponseEndpointPolicy

A pageable sequence of EndpointPolicy resources.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListEndpointPoliciesResponse, EndpointPolicy> response = networkServicesClient.ListEndpointPolicies(parent);

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

ListEndpointPolicies(ListEndpointPoliciesRequest, CallSettings)

public virtual PagedEnumerable<ListEndpointPoliciesResponse, EndpointPolicy> ListEndpointPolicies(ListEndpointPoliciesRequest request, CallSettings callSettings = null)

Lists EndpointPolicies in a given project and location.

Parameters
Name Description
request ListEndpointPoliciesRequest

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
PagedEnumerableListEndpointPoliciesResponseEndpointPolicy

A pageable sequence of EndpointPolicy resources.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
ListEndpointPoliciesRequest request = new ListEndpointPoliciesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedEnumerable<ListEndpointPoliciesResponse, EndpointPolicy> response = networkServicesClient.ListEndpointPolicies(request);

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

ListEndpointPolicies(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListEndpointPoliciesResponse, EndpointPolicy> ListEndpointPolicies(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists EndpointPolicies in a given project and location.

Parameters
Name Description
parent string

Required. The project and location from which the EndpointPolicies should be listed, specified in the format projects/*/locations/global.

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
PagedEnumerableListEndpointPoliciesResponseEndpointPolicy

A pageable sequence of EndpointPolicy resources.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListEndpointPoliciesResponse, EndpointPolicy> response = networkServicesClient.ListEndpointPolicies(parent);

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

ListEndpointPoliciesAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListEndpointPoliciesResponse, EndpointPolicy> ListEndpointPoliciesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists EndpointPolicies in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location from which the EndpointPolicies should be listed, specified in the format projects/*/locations/global.

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
PagedAsyncEnumerableListEndpointPoliciesResponseEndpointPolicy

A pageable asynchronous sequence of EndpointPolicy resources.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListEndpointPoliciesResponse, EndpointPolicy> response = networkServicesClient.ListEndpointPoliciesAsync(parent);

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

ListEndpointPoliciesAsync(ListEndpointPoliciesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListEndpointPoliciesResponse, EndpointPolicy> ListEndpointPoliciesAsync(ListEndpointPoliciesRequest request, CallSettings callSettings = null)

Lists EndpointPolicies in a given project and location.

Parameters
Name Description
request ListEndpointPoliciesRequest

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
PagedAsyncEnumerableListEndpointPoliciesResponseEndpointPolicy

A pageable asynchronous sequence of EndpointPolicy resources.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
ListEndpointPoliciesRequest request = new ListEndpointPoliciesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedAsyncEnumerable<ListEndpointPoliciesResponse, EndpointPolicy> response = networkServicesClient.ListEndpointPoliciesAsync(request);

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

ListEndpointPoliciesAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListEndpointPoliciesResponse, EndpointPolicy> ListEndpointPoliciesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists EndpointPolicies in a given project and location.

Parameters
Name Description
parent string

Required. The project and location from which the EndpointPolicies should be listed, specified in the format projects/*/locations/global.

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
PagedAsyncEnumerableListEndpointPoliciesResponseEndpointPolicy

A pageable asynchronous sequence of EndpointPolicy resources.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListEndpointPoliciesResponse, EndpointPolicy> response = networkServicesClient.ListEndpointPoliciesAsync(parent);

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

ListGateways(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListGatewaysResponse, Gateway> ListGateways(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Gateways in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location from which the Gateways should be listed, specified in the format projects/*/locations/*.

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
PagedEnumerableListGatewaysResponseGateway

A pageable sequence of Gateway resources.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListGatewaysResponse, Gateway> response = networkServicesClient.ListGateways(parent);

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

ListGateways(ListGatewaysRequest, CallSettings)

public virtual PagedEnumerable<ListGatewaysResponse, Gateway> ListGateways(ListGatewaysRequest request, CallSettings callSettings = null)

Lists Gateways in a given project and location.

Parameters
Name Description
request ListGatewaysRequest

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
PagedEnumerableListGatewaysResponseGateway

A pageable sequence of Gateway resources.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
ListGatewaysRequest request = new ListGatewaysRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedEnumerable<ListGatewaysResponse, Gateway> response = networkServicesClient.ListGateways(request);

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

ListGateways(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListGatewaysResponse, Gateway> ListGateways(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Gateways in a given project and location.

Parameters
Name Description
parent string

Required. The project and location from which the Gateways should be listed, specified in the format projects/*/locations/*.

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
PagedEnumerableListGatewaysResponseGateway

A pageable sequence of Gateway resources.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListGatewaysResponse, Gateway> response = networkServicesClient.ListGateways(parent);

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

ListGatewaysAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListGatewaysResponse, Gateway> ListGatewaysAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Gateways in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location from which the Gateways should be listed, specified in the format projects/*/locations/*.

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
PagedAsyncEnumerableListGatewaysResponseGateway

A pageable asynchronous sequence of Gateway resources.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListGatewaysResponse, Gateway> response = networkServicesClient.ListGatewaysAsync(parent);

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

ListGatewaysAsync(ListGatewaysRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListGatewaysResponse, Gateway> ListGatewaysAsync(ListGatewaysRequest request, CallSettings callSettings = null)

Lists Gateways in a given project and location.

Parameters
Name Description
request ListGatewaysRequest

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
PagedAsyncEnumerableListGatewaysResponseGateway

A pageable asynchronous sequence of Gateway resources.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
ListGatewaysRequest request = new ListGatewaysRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedAsyncEnumerable<ListGatewaysResponse, Gateway> response = networkServicesClient.ListGatewaysAsync(request);

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

ListGatewaysAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListGatewaysResponse, Gateway> ListGatewaysAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Gateways in a given project and location.

Parameters
Name Description
parent string

Required. The project and location from which the Gateways should be listed, specified in the format projects/*/locations/*.

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
PagedAsyncEnumerableListGatewaysResponseGateway

A pageable asynchronous sequence of Gateway resources.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListGatewaysResponse, Gateway> response = networkServicesClient.ListGatewaysAsync(parent);

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

ListGrpcRoutes(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListGrpcRoutesResponse, GrpcRoute> ListGrpcRoutes(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists GrpcRoutes in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location from which the GrpcRoutes should be listed, specified in the format projects/*/locations/global.

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
PagedEnumerableListGrpcRoutesResponseGrpcRoute

A pageable sequence of GrpcRoute resources.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListGrpcRoutesResponse, GrpcRoute> response = networkServicesClient.ListGrpcRoutes(parent);

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

ListGrpcRoutes(ListGrpcRoutesRequest, CallSettings)

public virtual PagedEnumerable<ListGrpcRoutesResponse, GrpcRoute> ListGrpcRoutes(ListGrpcRoutesRequest request, CallSettings callSettings = null)

Lists GrpcRoutes in a given project and location.

Parameters
Name Description
request ListGrpcRoutesRequest

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
PagedEnumerableListGrpcRoutesResponseGrpcRoute

A pageable sequence of GrpcRoute resources.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
ListGrpcRoutesRequest request = new ListGrpcRoutesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedEnumerable<ListGrpcRoutesResponse, GrpcRoute> response = networkServicesClient.ListGrpcRoutes(request);

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

ListGrpcRoutes(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListGrpcRoutesResponse, GrpcRoute> ListGrpcRoutes(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists GrpcRoutes in a given project and location.

Parameters
Name Description
parent string

Required. The project and location from which the GrpcRoutes should be listed, specified in the format projects/*/locations/global.

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
PagedEnumerableListGrpcRoutesResponseGrpcRoute

A pageable sequence of GrpcRoute resources.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListGrpcRoutesResponse, GrpcRoute> response = networkServicesClient.ListGrpcRoutes(parent);

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

ListGrpcRoutesAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListGrpcRoutesResponse, GrpcRoute> ListGrpcRoutesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists GrpcRoutes in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location from which the GrpcRoutes should be listed, specified in the format projects/*/locations/global.

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
PagedAsyncEnumerableListGrpcRoutesResponseGrpcRoute

A pageable asynchronous sequence of GrpcRoute resources.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListGrpcRoutesResponse, GrpcRoute> response = networkServicesClient.ListGrpcRoutesAsync(parent);

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

ListGrpcRoutesAsync(ListGrpcRoutesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListGrpcRoutesResponse, GrpcRoute> ListGrpcRoutesAsync(ListGrpcRoutesRequest request, CallSettings callSettings = null)

Lists GrpcRoutes in a given project and location.

Parameters
Name Description
request ListGrpcRoutesRequest

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
PagedAsyncEnumerableListGrpcRoutesResponseGrpcRoute

A pageable asynchronous sequence of GrpcRoute resources.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
ListGrpcRoutesRequest request = new ListGrpcRoutesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedAsyncEnumerable<ListGrpcRoutesResponse, GrpcRoute> response = networkServicesClient.ListGrpcRoutesAsync(request);

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

ListGrpcRoutesAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListGrpcRoutesResponse, GrpcRoute> ListGrpcRoutesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists GrpcRoutes in a given project and location.

Parameters
Name Description
parent string

Required. The project and location from which the GrpcRoutes should be listed, specified in the format projects/*/locations/global.

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
PagedAsyncEnumerableListGrpcRoutesResponseGrpcRoute

A pageable asynchronous sequence of GrpcRoute resources.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListGrpcRoutesResponse, GrpcRoute> response = networkServicesClient.ListGrpcRoutesAsync(parent);

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

ListHttpRoutes(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListHttpRoutesResponse, HttpRoute> ListHttpRoutes(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists HttpRoute in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location from which the HttpRoutes should be listed, specified in the format projects/*/locations/global.

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
PagedEnumerableListHttpRoutesResponseHttpRoute

A pageable sequence of HttpRoute resources.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListHttpRoutesResponse, HttpRoute> response = networkServicesClient.ListHttpRoutes(parent);

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

ListHttpRoutes(ListHttpRoutesRequest, CallSettings)

public virtual PagedEnumerable<ListHttpRoutesResponse, HttpRoute> ListHttpRoutes(ListHttpRoutesRequest request, CallSettings callSettings = null)

Lists HttpRoute in a given project and location.

Parameters
Name Description
request ListHttpRoutesRequest

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
PagedEnumerableListHttpRoutesResponseHttpRoute

A pageable sequence of HttpRoute resources.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
ListHttpRoutesRequest request = new ListHttpRoutesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedEnumerable<ListHttpRoutesResponse, HttpRoute> response = networkServicesClient.ListHttpRoutes(request);

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

ListHttpRoutes(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListHttpRoutesResponse, HttpRoute> ListHttpRoutes(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists HttpRoute in a given project and location.

Parameters
Name Description
parent string

Required. The project and location from which the HttpRoutes should be listed, specified in the format projects/*/locations/global.

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
PagedEnumerableListHttpRoutesResponseHttpRoute

A pageable sequence of HttpRoute resources.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListHttpRoutesResponse, HttpRoute> response = networkServicesClient.ListHttpRoutes(parent);

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

ListHttpRoutesAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListHttpRoutesResponse, HttpRoute> ListHttpRoutesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists HttpRoute in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location from which the HttpRoutes should be listed, specified in the format projects/*/locations/global.

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
PagedAsyncEnumerableListHttpRoutesResponseHttpRoute

A pageable asynchronous sequence of HttpRoute resources.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListHttpRoutesResponse, HttpRoute> response = networkServicesClient.ListHttpRoutesAsync(parent);

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

ListHttpRoutesAsync(ListHttpRoutesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListHttpRoutesResponse, HttpRoute> ListHttpRoutesAsync(ListHttpRoutesRequest request, CallSettings callSettings = null)

Lists HttpRoute in a given project and location.

Parameters
Name Description
request ListHttpRoutesRequest

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
PagedAsyncEnumerableListHttpRoutesResponseHttpRoute

A pageable asynchronous sequence of HttpRoute resources.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
ListHttpRoutesRequest request = new ListHttpRoutesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedAsyncEnumerable<ListHttpRoutesResponse, HttpRoute> response = networkServicesClient.ListHttpRoutesAsync(request);

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

ListHttpRoutesAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListHttpRoutesResponse, HttpRoute> ListHttpRoutesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists HttpRoute in a given project and location.

Parameters
Name Description
parent string

Required. The project and location from which the HttpRoutes should be listed, specified in the format projects/*/locations/global.

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
PagedAsyncEnumerableListHttpRoutesResponseHttpRoute

A pageable asynchronous sequence of HttpRoute resources.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListHttpRoutesResponse, HttpRoute> response = networkServicesClient.ListHttpRoutesAsync(parent);

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

ListMeshes(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListMeshesResponse, Mesh> ListMeshes(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Meshes in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location from which the Meshes should be listed, specified in the format projects/*/locations/global.

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
PagedEnumerableListMeshesResponseMesh

A pageable sequence of Mesh resources.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListMeshesResponse, Mesh> response = networkServicesClient.ListMeshes(parent);

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

ListMeshes(ListMeshesRequest, CallSettings)

public virtual PagedEnumerable<ListMeshesResponse, Mesh> ListMeshes(ListMeshesRequest request, CallSettings callSettings = null)

Lists Meshes in a given project and location.

Parameters
Name Description
request ListMeshesRequest

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
PagedEnumerableListMeshesResponseMesh

A pageable sequence of Mesh resources.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
ListMeshesRequest request = new ListMeshesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedEnumerable<ListMeshesResponse, Mesh> response = networkServicesClient.ListMeshes(request);

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

ListMeshes(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListMeshesResponse, Mesh> ListMeshes(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Meshes in a given project and location.

Parameters
Name Description
parent string

Required. The project and location from which the Meshes should be listed, specified in the format projects/*/locations/global.

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
PagedEnumerableListMeshesResponseMesh

A pageable sequence of Mesh resources.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListMeshesResponse, Mesh> response = networkServicesClient.ListMeshes(parent);

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

ListMeshesAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListMeshesResponse, Mesh> ListMeshesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Meshes in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location from which the Meshes should be listed, specified in the format projects/*/locations/global.

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
PagedAsyncEnumerableListMeshesResponseMesh

A pageable asynchronous sequence of Mesh resources.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListMeshesResponse, Mesh> response = networkServicesClient.ListMeshesAsync(parent);

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

ListMeshesAsync(ListMeshesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListMeshesResponse, Mesh> ListMeshesAsync(ListMeshesRequest request, CallSettings callSettings = null)

Lists Meshes in a given project and location.

Parameters
Name Description
request ListMeshesRequest

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
PagedAsyncEnumerableListMeshesResponseMesh

A pageable asynchronous sequence of Mesh resources.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
ListMeshesRequest request = new ListMeshesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedAsyncEnumerable<ListMeshesResponse, Mesh> response = networkServicesClient.ListMeshesAsync(request);

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

ListMeshesAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListMeshesResponse, Mesh> ListMeshesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Meshes in a given project and location.

Parameters
Name Description
parent string

Required. The project and location from which the Meshes should be listed, specified in the format projects/*/locations/global.

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
PagedAsyncEnumerableListMeshesResponseMesh

A pageable asynchronous sequence of Mesh resources.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListMeshesResponse, Mesh> response = networkServicesClient.ListMeshesAsync(parent);

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

ListServiceBindings(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListServiceBindingsResponse, ServiceBinding> ListServiceBindings(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ServiceBinding in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location from which the ServiceBindings should be listed, specified in the format projects/*/locations/global.

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
PagedEnumerableListServiceBindingsResponseServiceBinding

A pageable sequence of ServiceBinding resources.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListServiceBindingsResponse, ServiceBinding> response = networkServicesClient.ListServiceBindings(parent);

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

ListServiceBindings(ListServiceBindingsRequest, CallSettings)

public virtual PagedEnumerable<ListServiceBindingsResponse, ServiceBinding> ListServiceBindings(ListServiceBindingsRequest request, CallSettings callSettings = null)

Lists ServiceBinding in a given project and location.

Parameters
Name Description
request ListServiceBindingsRequest

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
PagedEnumerableListServiceBindingsResponseServiceBinding

A pageable sequence of ServiceBinding resources.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
ListServiceBindingsRequest request = new ListServiceBindingsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedEnumerable<ListServiceBindingsResponse, ServiceBinding> response = networkServicesClient.ListServiceBindings(request);

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

ListServiceBindings(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListServiceBindingsResponse, ServiceBinding> ListServiceBindings(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ServiceBinding in a given project and location.

Parameters
Name Description
parent string

Required. The project and location from which the ServiceBindings should be listed, specified in the format projects/*/locations/global.

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
PagedEnumerableListServiceBindingsResponseServiceBinding

A pageable sequence of ServiceBinding resources.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListServiceBindingsResponse, ServiceBinding> response = networkServicesClient.ListServiceBindings(parent);

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

ListServiceBindingsAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListServiceBindingsResponse, ServiceBinding> ListServiceBindingsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ServiceBinding in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location from which the ServiceBindings should be listed, specified in the format projects/*/locations/global.

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
PagedAsyncEnumerableListServiceBindingsResponseServiceBinding

A pageable asynchronous sequence of ServiceBinding resources.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListServiceBindingsResponse, ServiceBinding> response = networkServicesClient.ListServiceBindingsAsync(parent);

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

ListServiceBindingsAsync(ListServiceBindingsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListServiceBindingsResponse, ServiceBinding> ListServiceBindingsAsync(ListServiceBindingsRequest request, CallSettings callSettings = null)

Lists ServiceBinding in a given project and location.

Parameters
Name Description
request ListServiceBindingsRequest

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
PagedAsyncEnumerableListServiceBindingsResponseServiceBinding

A pageable asynchronous sequence of ServiceBinding resources.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
ListServiceBindingsRequest request = new ListServiceBindingsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedAsyncEnumerable<ListServiceBindingsResponse, ServiceBinding> response = networkServicesClient.ListServiceBindingsAsync(request);

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

ListServiceBindingsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListServiceBindingsResponse, ServiceBinding> ListServiceBindingsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ServiceBinding in a given project and location.

Parameters
Name Description
parent string

Required. The project and location from which the ServiceBindings should be listed, specified in the format projects/*/locations/global.

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
PagedAsyncEnumerableListServiceBindingsResponseServiceBinding

A pageable asynchronous sequence of ServiceBinding resources.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListServiceBindingsResponse, ServiceBinding> response = networkServicesClient.ListServiceBindingsAsync(parent);

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

ListTcpRoutes(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListTcpRoutesResponse, TcpRoute> ListTcpRoutes(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists TcpRoute in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location from which the TcpRoutes should be listed, specified in the format projects/*/locations/global.

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
PagedEnumerableListTcpRoutesResponseTcpRoute

A pageable sequence of TcpRoute resources.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListTcpRoutesResponse, TcpRoute> response = networkServicesClient.ListTcpRoutes(parent);

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

ListTcpRoutes(ListTcpRoutesRequest, CallSettings)

public virtual PagedEnumerable<ListTcpRoutesResponse, TcpRoute> ListTcpRoutes(ListTcpRoutesRequest request, CallSettings callSettings = null)

Lists TcpRoute in a given project and location.

Parameters
Name Description
request ListTcpRoutesRequest

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
PagedEnumerableListTcpRoutesResponseTcpRoute

A pageable sequence of TcpRoute resources.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
ListTcpRoutesRequest request = new ListTcpRoutesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedEnumerable<ListTcpRoutesResponse, TcpRoute> response = networkServicesClient.ListTcpRoutes(request);

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

ListTcpRoutes(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListTcpRoutesResponse, TcpRoute> ListTcpRoutes(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists TcpRoute in a given project and location.

Parameters
Name Description
parent string

Required. The project and location from which the TcpRoutes should be listed, specified in the format projects/*/locations/global.

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
PagedEnumerableListTcpRoutesResponseTcpRoute

A pageable sequence of TcpRoute resources.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListTcpRoutesResponse, TcpRoute> response = networkServicesClient.ListTcpRoutes(parent);

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

ListTcpRoutesAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListTcpRoutesResponse, TcpRoute> ListTcpRoutesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists TcpRoute in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location from which the TcpRoutes should be listed, specified in the format projects/*/locations/global.

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
PagedAsyncEnumerableListTcpRoutesResponseTcpRoute

A pageable asynchronous sequence of TcpRoute resources.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListTcpRoutesResponse, TcpRoute> response = networkServicesClient.ListTcpRoutesAsync(parent);

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

ListTcpRoutesAsync(ListTcpRoutesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListTcpRoutesResponse, TcpRoute> ListTcpRoutesAsync(ListTcpRoutesRequest request, CallSettings callSettings = null)

Lists TcpRoute in a given project and location.

Parameters
Name Description
request ListTcpRoutesRequest

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
PagedAsyncEnumerableListTcpRoutesResponseTcpRoute

A pageable asynchronous sequence of TcpRoute resources.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
ListTcpRoutesRequest request = new ListTcpRoutesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedAsyncEnumerable<ListTcpRoutesResponse, TcpRoute> response = networkServicesClient.ListTcpRoutesAsync(request);

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

ListTcpRoutesAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListTcpRoutesResponse, TcpRoute> ListTcpRoutesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists TcpRoute in a given project and location.

Parameters
Name Description
parent string

Required. The project and location from which the TcpRoutes should be listed, specified in the format projects/*/locations/global.

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
PagedAsyncEnumerableListTcpRoutesResponseTcpRoute

A pageable asynchronous sequence of TcpRoute resources.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListTcpRoutesResponse, TcpRoute> response = networkServicesClient.ListTcpRoutesAsync(parent);

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

ListTlsRoutes(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListTlsRoutesResponse, TlsRoute> ListTlsRoutes(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists TlsRoute in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location from which the TlsRoutes should be listed, specified in the format projects/*/locations/global.

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
PagedEnumerableListTlsRoutesResponseTlsRoute

A pageable sequence of TlsRoute resources.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListTlsRoutesResponse, TlsRoute> response = networkServicesClient.ListTlsRoutes(parent);

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

ListTlsRoutes(ListTlsRoutesRequest, CallSettings)

public virtual PagedEnumerable<ListTlsRoutesResponse, TlsRoute> ListTlsRoutes(ListTlsRoutesRequest request, CallSettings callSettings = null)

Lists TlsRoute in a given project and location.

Parameters
Name Description
request ListTlsRoutesRequest

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
PagedEnumerableListTlsRoutesResponseTlsRoute

A pageable sequence of TlsRoute resources.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
ListTlsRoutesRequest request = new ListTlsRoutesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedEnumerable<ListTlsRoutesResponse, TlsRoute> response = networkServicesClient.ListTlsRoutes(request);

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

ListTlsRoutes(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListTlsRoutesResponse, TlsRoute> ListTlsRoutes(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists TlsRoute in a given project and location.

Parameters
Name Description
parent string

Required. The project and location from which the TlsRoutes should be listed, specified in the format projects/*/locations/global.

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
PagedEnumerableListTlsRoutesResponseTlsRoute

A pageable sequence of TlsRoute resources.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListTlsRoutesResponse, TlsRoute> response = networkServicesClient.ListTlsRoutes(parent);

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

ListTlsRoutesAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListTlsRoutesResponse, TlsRoute> ListTlsRoutesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists TlsRoute in a given project and location.

Parameters
Name Description
parent LocationName

Required. The project and location from which the TlsRoutes should be listed, specified in the format projects/*/locations/global.

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
PagedAsyncEnumerableListTlsRoutesResponseTlsRoute

A pageable asynchronous sequence of TlsRoute resources.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListTlsRoutesResponse, TlsRoute> response = networkServicesClient.ListTlsRoutesAsync(parent);

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

ListTlsRoutesAsync(ListTlsRoutesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListTlsRoutesResponse, TlsRoute> ListTlsRoutesAsync(ListTlsRoutesRequest request, CallSettings callSettings = null)

Lists TlsRoute in a given project and location.

Parameters
Name Description
request ListTlsRoutesRequest

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
PagedAsyncEnumerableListTlsRoutesResponseTlsRoute

A pageable asynchronous sequence of TlsRoute resources.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
ListTlsRoutesRequest request = new ListTlsRoutesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedAsyncEnumerable<ListTlsRoutesResponse, TlsRoute> response = networkServicesClient.ListTlsRoutesAsync(request);

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

ListTlsRoutesAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListTlsRoutesResponse, TlsRoute> ListTlsRoutesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists TlsRoute in a given project and location.

Parameters
Name Description
parent string

Required. The project and location from which the TlsRoutes should be listed, specified in the format projects/*/locations/global.

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
PagedAsyncEnumerableListTlsRoutesResponseTlsRoute

A pageable asynchronous sequence of TlsRoute resources.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListTlsRoutesResponse, TlsRoute> response = networkServicesClient.ListTlsRoutesAsync(parent);

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

PollOnceCreateEndpointPolicy(string, CallSettings)

public virtual Operation<EndpointPolicy, OperationMetadata> PollOnceCreateEndpointPolicy(string operationName, CallSettings callSettings = null)

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

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
OperationEndpointPolicyOperationMetadata

The result of polling the operation.

PollOnceCreateEndpointPolicyAsync(string, CallSettings)

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

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

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
TaskOperationEndpointPolicyOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateGateway(string, CallSettings)

public virtual Operation<Gateway, OperationMetadata> PollOnceCreateGateway(string operationName, CallSettings callSettings = null)

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

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
OperationGatewayOperationMetadata

The result of polling the operation.

PollOnceCreateGatewayAsync(string, CallSettings)

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

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

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
TaskOperationGatewayOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateGrpcRoute(string, CallSettings)

public virtual Operation<GrpcRoute, OperationMetadata> PollOnceCreateGrpcRoute(string operationName, CallSettings callSettings = null)

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

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
OperationGrpcRouteOperationMetadata

The result of polling the operation.

PollOnceCreateGrpcRouteAsync(string, CallSettings)

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

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

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
TaskOperationGrpcRouteOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateHttpRoute(string, CallSettings)

public virtual Operation<HttpRoute, OperationMetadata> PollOnceCreateHttpRoute(string operationName, CallSettings callSettings = null)

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

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
OperationHttpRouteOperationMetadata

The result of polling the operation.

PollOnceCreateHttpRouteAsync(string, CallSettings)

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

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

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
TaskOperationHttpRouteOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateMesh(string, CallSettings)

public virtual Operation<Mesh, OperationMetadata> PollOnceCreateMesh(string operationName, CallSettings callSettings = null)

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

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
OperationMeshOperationMetadata

The result of polling the operation.

PollOnceCreateMeshAsync(string, CallSettings)

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

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

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
TaskOperationMeshOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateServiceBinding(string, CallSettings)

public virtual Operation<ServiceBinding, OperationMetadata> PollOnceCreateServiceBinding(string operationName, CallSettings callSettings = null)

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

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
OperationServiceBindingOperationMetadata

The result of polling the operation.

PollOnceCreateServiceBindingAsync(string, CallSettings)

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

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

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
TaskOperationServiceBindingOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateTcpRoute(string, CallSettings)

public virtual Operation<TcpRoute, OperationMetadata> PollOnceCreateTcpRoute(string operationName, CallSettings callSettings = null)

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

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
OperationTcpRouteOperationMetadata

The result of polling the operation.

PollOnceCreateTcpRouteAsync(string, CallSettings)

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

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

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
TaskOperationTcpRouteOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateTlsRoute(string, CallSettings)

public virtual Operation<TlsRoute, OperationMetadata> PollOnceCreateTlsRoute(string operationName, CallSettings callSettings = null)

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

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
OperationTlsRouteOperationMetadata

The result of polling the operation.

PollOnceCreateTlsRouteAsync(string, CallSettings)

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

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

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
TaskOperationTlsRouteOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteEndpointPolicy(string, CallSettings)

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

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

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.

PollOnceDeleteEndpointPolicyAsync(string, CallSettings)

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

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

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.

PollOnceDeleteGateway(string, CallSettings)

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

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

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.

PollOnceDeleteGatewayAsync(string, CallSettings)

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

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

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.

PollOnceDeleteGrpcRoute(string, CallSettings)

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

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

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.

PollOnceDeleteGrpcRouteAsync(string, CallSettings)

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

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

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.

PollOnceDeleteHttpRoute(string, CallSettings)

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

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

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.

PollOnceDeleteHttpRouteAsync(string, CallSettings)

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

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

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.

PollOnceDeleteMesh(string, CallSettings)

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

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

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.

PollOnceDeleteMeshAsync(string, CallSettings)

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

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

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.

PollOnceDeleteServiceBinding(string, CallSettings)

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

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

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.

PollOnceDeleteServiceBindingAsync(string, CallSettings)

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

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

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.

PollOnceDeleteTcpRoute(string, CallSettings)

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

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

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.

PollOnceDeleteTcpRouteAsync(string, CallSettings)

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

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

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.

PollOnceDeleteTlsRoute(string, CallSettings)

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

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

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.

PollOnceDeleteTlsRouteAsync(string, CallSettings)

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

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

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.

PollOnceUpdateEndpointPolicy(string, CallSettings)

public virtual Operation<EndpointPolicy, OperationMetadata> PollOnceUpdateEndpointPolicy(string operationName, CallSettings callSettings = null)

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

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
OperationEndpointPolicyOperationMetadata

The result of polling the operation.

PollOnceUpdateEndpointPolicyAsync(string, CallSettings)

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

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

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
TaskOperationEndpointPolicyOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateGateway(string, CallSettings)

public virtual Operation<Gateway, OperationMetadata> PollOnceUpdateGateway(string operationName, CallSettings callSettings = null)

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

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
OperationGatewayOperationMetadata

The result of polling the operation.

PollOnceUpdateGatewayAsync(string, CallSettings)

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

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

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
TaskOperationGatewayOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateGrpcRoute(string, CallSettings)

public virtual Operation<GrpcRoute, OperationMetadata> PollOnceUpdateGrpcRoute(string operationName, CallSettings callSettings = null)

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

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
OperationGrpcRouteOperationMetadata

The result of polling the operation.

PollOnceUpdateGrpcRouteAsync(string, CallSettings)

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

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

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
TaskOperationGrpcRouteOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateHttpRoute(string, CallSettings)

public virtual Operation<HttpRoute, OperationMetadata> PollOnceUpdateHttpRoute(string operationName, CallSettings callSettings = null)

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

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
OperationHttpRouteOperationMetadata

The result of polling the operation.

PollOnceUpdateHttpRouteAsync(string, CallSettings)

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

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

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
TaskOperationHttpRouteOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateMesh(string, CallSettings)

public virtual Operation<Mesh, OperationMetadata> PollOnceUpdateMesh(string operationName, CallSettings callSettings = null)

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

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
OperationMeshOperationMetadata

The result of polling the operation.

PollOnceUpdateMeshAsync(string, CallSettings)

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

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

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
TaskOperationMeshOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateTcpRoute(string, CallSettings)

public virtual Operation<TcpRoute, OperationMetadata> PollOnceUpdateTcpRoute(string operationName, CallSettings callSettings = null)

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

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
OperationTcpRouteOperationMetadata

The result of polling the operation.

PollOnceUpdateTcpRouteAsync(string, CallSettings)

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

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

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
TaskOperationTcpRouteOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateTlsRoute(string, CallSettings)

public virtual Operation<TlsRoute, OperationMetadata> PollOnceUpdateTlsRoute(string operationName, CallSettings callSettings = null)

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

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
OperationTlsRouteOperationMetadata

The result of polling the operation.

PollOnceUpdateTlsRouteAsync(string, CallSettings)

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

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

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
TaskOperationTlsRouteOperationMetadata

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.

UpdateEndpointPolicy(EndpointPolicy, FieldMask, CallSettings)

public virtual Operation<EndpointPolicy, OperationMetadata> UpdateEndpointPolicy(EndpointPolicy endpointPolicy, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single EndpointPolicy.

Parameters
Name Description
endpointPolicy EndpointPolicy

Required. Updated EndpointPolicy resource.

updateMask FieldMask

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEndpointPolicyOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
EndpointPolicy endpointPolicy = new EndpointPolicy();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<EndpointPolicy, OperationMetadata> response = networkServicesClient.UpdateEndpointPolicy(endpointPolicy, updateMask);

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

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

UpdateEndpointPolicy(UpdateEndpointPolicyRequest, CallSettings)

public virtual Operation<EndpointPolicy, OperationMetadata> UpdateEndpointPolicy(UpdateEndpointPolicyRequest request, CallSettings callSettings = null)

Updates the parameters of a single EndpointPolicy.

Parameters
Name Description
request UpdateEndpointPolicyRequest

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
OperationEndpointPolicyOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
UpdateEndpointPolicyRequest request = new UpdateEndpointPolicyRequest
{
    UpdateMask = new FieldMask(),
    EndpointPolicy = new EndpointPolicy(),
};
// Make the request
Operation<EndpointPolicy, OperationMetadata> response = networkServicesClient.UpdateEndpointPolicy(request);

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

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

UpdateEndpointPolicyAsync(EndpointPolicy, FieldMask, CallSettings)

public virtual Task<Operation<EndpointPolicy, OperationMetadata>> UpdateEndpointPolicyAsync(EndpointPolicy endpointPolicy, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single EndpointPolicy.

Parameters
Name Description
endpointPolicy EndpointPolicy

Required. Updated EndpointPolicy resource.

updateMask FieldMask

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEndpointPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
EndpointPolicy endpointPolicy = new EndpointPolicy();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<EndpointPolicy, OperationMetadata> response = await networkServicesClient.UpdateEndpointPolicyAsync(endpointPolicy, updateMask);

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

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

UpdateEndpointPolicyAsync(EndpointPolicy, FieldMask, CancellationToken)

public virtual Task<Operation<EndpointPolicy, OperationMetadata>> UpdateEndpointPolicyAsync(EndpointPolicy endpointPolicy, FieldMask updateMask, CancellationToken cancellationToken)

Updates the parameters of a single EndpointPolicy.

Parameters
Name Description
endpointPolicy EndpointPolicy

Required. Updated EndpointPolicy resource.

updateMask FieldMask

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEndpointPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
EndpointPolicy endpointPolicy = new EndpointPolicy();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<EndpointPolicy, OperationMetadata> response = await networkServicesClient.UpdateEndpointPolicyAsync(endpointPolicy, updateMask);

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

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

UpdateEndpointPolicyAsync(UpdateEndpointPolicyRequest, CallSettings)

public virtual Task<Operation<EndpointPolicy, OperationMetadata>> UpdateEndpointPolicyAsync(UpdateEndpointPolicyRequest request, CallSettings callSettings = null)

Updates the parameters of a single EndpointPolicy.

Parameters
Name Description
request UpdateEndpointPolicyRequest

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
TaskOperationEndpointPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
UpdateEndpointPolicyRequest request = new UpdateEndpointPolicyRequest
{
    UpdateMask = new FieldMask(),
    EndpointPolicy = new EndpointPolicy(),
};
// Make the request
Operation<EndpointPolicy, OperationMetadata> response = await networkServicesClient.UpdateEndpointPolicyAsync(request);

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

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

UpdateEndpointPolicyAsync(UpdateEndpointPolicyRequest, CancellationToken)

public virtual Task<Operation<EndpointPolicy, OperationMetadata>> UpdateEndpointPolicyAsync(UpdateEndpointPolicyRequest request, CancellationToken cancellationToken)

Updates the parameters of a single EndpointPolicy.

Parameters
Name Description
request UpdateEndpointPolicyRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEndpointPolicyOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
UpdateEndpointPolicyRequest request = new UpdateEndpointPolicyRequest
{
    UpdateMask = new FieldMask(),
    EndpointPolicy = new EndpointPolicy(),
};
// Make the request
Operation<EndpointPolicy, OperationMetadata> response = await networkServicesClient.UpdateEndpointPolicyAsync(request);

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

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

UpdateGateway(Gateway, FieldMask, CallSettings)

public virtual Operation<Gateway, OperationMetadata> UpdateGateway(Gateway gateway, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single Gateway.

Parameters
Name Description
gateway Gateway

Required. Updated Gateway resource.

updateMask FieldMask

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationGatewayOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
Gateway gateway = new Gateway();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Gateway, OperationMetadata> response = networkServicesClient.UpdateGateway(gateway, updateMask);

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

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

UpdateGateway(UpdateGatewayRequest, CallSettings)

public virtual Operation<Gateway, OperationMetadata> UpdateGateway(UpdateGatewayRequest request, CallSettings callSettings = null)

Updates the parameters of a single Gateway.

Parameters
Name Description
request UpdateGatewayRequest

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
OperationGatewayOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
UpdateGatewayRequest request = new UpdateGatewayRequest
{
    UpdateMask = new FieldMask(),
    Gateway = new Gateway(),
};
// Make the request
Operation<Gateway, OperationMetadata> response = networkServicesClient.UpdateGateway(request);

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

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

UpdateGatewayAsync(Gateway, FieldMask, CallSettings)

public virtual Task<Operation<Gateway, OperationMetadata>> UpdateGatewayAsync(Gateway gateway, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single Gateway.

Parameters
Name Description
gateway Gateway

Required. Updated Gateway resource.

updateMask FieldMask

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationGatewayOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
Gateway gateway = new Gateway();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Gateway, OperationMetadata> response = await networkServicesClient.UpdateGatewayAsync(gateway, updateMask);

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

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

UpdateGatewayAsync(Gateway, FieldMask, CancellationToken)

public virtual Task<Operation<Gateway, OperationMetadata>> UpdateGatewayAsync(Gateway gateway, FieldMask updateMask, CancellationToken cancellationToken)

Updates the parameters of a single Gateway.

Parameters
Name Description
gateway Gateway

Required. Updated Gateway resource.

updateMask FieldMask

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationGatewayOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
Gateway gateway = new Gateway();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Gateway, OperationMetadata> response = await networkServicesClient.UpdateGatewayAsync(gateway, updateMask);

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

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

UpdateGatewayAsync(UpdateGatewayRequest, CallSettings)

public virtual Task<Operation<Gateway, OperationMetadata>> UpdateGatewayAsync(UpdateGatewayRequest request, CallSettings callSettings = null)

Updates the parameters of a single Gateway.

Parameters
Name Description
request UpdateGatewayRequest

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
TaskOperationGatewayOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
UpdateGatewayRequest request = new UpdateGatewayRequest
{
    UpdateMask = new FieldMask(),
    Gateway = new Gateway(),
};
// Make the request
Operation<Gateway, OperationMetadata> response = await networkServicesClient.UpdateGatewayAsync(request);

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

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

UpdateGatewayAsync(UpdateGatewayRequest, CancellationToken)

public virtual Task<Operation<Gateway, OperationMetadata>> UpdateGatewayAsync(UpdateGatewayRequest request, CancellationToken cancellationToken)

Updates the parameters of a single Gateway.

Parameters
Name Description
request UpdateGatewayRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationGatewayOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
UpdateGatewayRequest request = new UpdateGatewayRequest
{
    UpdateMask = new FieldMask(),
    Gateway = new Gateway(),
};
// Make the request
Operation<Gateway, OperationMetadata> response = await networkServicesClient.UpdateGatewayAsync(request);

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

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

UpdateGrpcRoute(GrpcRoute, FieldMask, CallSettings)

public virtual Operation<GrpcRoute, OperationMetadata> UpdateGrpcRoute(GrpcRoute grpcRoute, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single GrpcRoute.

Parameters
Name Description
grpcRoute GrpcRoute

Required. Updated GrpcRoute resource.

updateMask FieldMask

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationGrpcRouteOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
GrpcRoute grpcRoute = new GrpcRoute();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<GrpcRoute, OperationMetadata> response = networkServicesClient.UpdateGrpcRoute(grpcRoute, updateMask);

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

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

UpdateGrpcRoute(UpdateGrpcRouteRequest, CallSettings)

public virtual Operation<GrpcRoute, OperationMetadata> UpdateGrpcRoute(UpdateGrpcRouteRequest request, CallSettings callSettings = null)

Updates the parameters of a single GrpcRoute.

Parameters
Name Description
request UpdateGrpcRouteRequest

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
OperationGrpcRouteOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
UpdateGrpcRouteRequest request = new UpdateGrpcRouteRequest
{
    UpdateMask = new FieldMask(),
    GrpcRoute = new GrpcRoute(),
};
// Make the request
Operation<GrpcRoute, OperationMetadata> response = networkServicesClient.UpdateGrpcRoute(request);

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

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

UpdateGrpcRouteAsync(GrpcRoute, FieldMask, CallSettings)

public virtual Task<Operation<GrpcRoute, OperationMetadata>> UpdateGrpcRouteAsync(GrpcRoute grpcRoute, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single GrpcRoute.

Parameters
Name Description
grpcRoute GrpcRoute

Required. Updated GrpcRoute resource.

updateMask FieldMask

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationGrpcRouteOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
GrpcRoute grpcRoute = new GrpcRoute();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<GrpcRoute, OperationMetadata> response = await networkServicesClient.UpdateGrpcRouteAsync(grpcRoute, updateMask);

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

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

UpdateGrpcRouteAsync(GrpcRoute, FieldMask, CancellationToken)

public virtual Task<Operation<GrpcRoute, OperationMetadata>> UpdateGrpcRouteAsync(GrpcRoute grpcRoute, FieldMask updateMask, CancellationToken cancellationToken)

Updates the parameters of a single GrpcRoute.

Parameters
Name Description
grpcRoute GrpcRoute

Required. Updated GrpcRoute resource.

updateMask FieldMask

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationGrpcRouteOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
GrpcRoute grpcRoute = new GrpcRoute();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<GrpcRoute, OperationMetadata> response = await networkServicesClient.UpdateGrpcRouteAsync(grpcRoute, updateMask);

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

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

UpdateGrpcRouteAsync(UpdateGrpcRouteRequest, CallSettings)

public virtual Task<Operation<GrpcRoute, OperationMetadata>> UpdateGrpcRouteAsync(UpdateGrpcRouteRequest request, CallSettings callSettings = null)

Updates the parameters of a single GrpcRoute.

Parameters
Name Description
request UpdateGrpcRouteRequest

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
TaskOperationGrpcRouteOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
UpdateGrpcRouteRequest request = new UpdateGrpcRouteRequest
{
    UpdateMask = new FieldMask(),
    GrpcRoute = new GrpcRoute(),
};
// Make the request
Operation<GrpcRoute, OperationMetadata> response = await networkServicesClient.UpdateGrpcRouteAsync(request);

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

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

UpdateGrpcRouteAsync(UpdateGrpcRouteRequest, CancellationToken)

public virtual Task<Operation<GrpcRoute, OperationMetadata>> UpdateGrpcRouteAsync(UpdateGrpcRouteRequest request, CancellationToken cancellationToken)

Updates the parameters of a single GrpcRoute.

Parameters
Name Description
request UpdateGrpcRouteRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationGrpcRouteOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
UpdateGrpcRouteRequest request = new UpdateGrpcRouteRequest
{
    UpdateMask = new FieldMask(),
    GrpcRoute = new GrpcRoute(),
};
// Make the request
Operation<GrpcRoute, OperationMetadata> response = await networkServicesClient.UpdateGrpcRouteAsync(request);

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

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

UpdateHttpRoute(HttpRoute, FieldMask, CallSettings)

public virtual Operation<HttpRoute, OperationMetadata> UpdateHttpRoute(HttpRoute httpRoute, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single HttpRoute.

Parameters
Name Description
httpRoute HttpRoute

Required. Updated HttpRoute resource.

updateMask FieldMask

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationHttpRouteOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
HttpRoute httpRoute = new HttpRoute();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<HttpRoute, OperationMetadata> response = networkServicesClient.UpdateHttpRoute(httpRoute, updateMask);

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

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

UpdateHttpRoute(UpdateHttpRouteRequest, CallSettings)

public virtual Operation<HttpRoute, OperationMetadata> UpdateHttpRoute(UpdateHttpRouteRequest request, CallSettings callSettings = null)

Updates the parameters of a single HttpRoute.

Parameters
Name Description
request UpdateHttpRouteRequest

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
OperationHttpRouteOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
UpdateHttpRouteRequest request = new UpdateHttpRouteRequest
{
    UpdateMask = new FieldMask(),
    HttpRoute = new HttpRoute(),
};
// Make the request
Operation<HttpRoute, OperationMetadata> response = networkServicesClient.UpdateHttpRoute(request);

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

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

UpdateHttpRouteAsync(HttpRoute, FieldMask, CallSettings)

public virtual Task<Operation<HttpRoute, OperationMetadata>> UpdateHttpRouteAsync(HttpRoute httpRoute, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single HttpRoute.

Parameters
Name Description
httpRoute HttpRoute

Required. Updated HttpRoute resource.

updateMask FieldMask

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationHttpRouteOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
HttpRoute httpRoute = new HttpRoute();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<HttpRoute, OperationMetadata> response = await networkServicesClient.UpdateHttpRouteAsync(httpRoute, updateMask);

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

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

UpdateHttpRouteAsync(HttpRoute, FieldMask, CancellationToken)

public virtual Task<Operation<HttpRoute, OperationMetadata>> UpdateHttpRouteAsync(HttpRoute httpRoute, FieldMask updateMask, CancellationToken cancellationToken)

Updates the parameters of a single HttpRoute.

Parameters
Name Description
httpRoute HttpRoute

Required. Updated HttpRoute resource.

updateMask FieldMask

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationHttpRouteOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
HttpRoute httpRoute = new HttpRoute();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<HttpRoute, OperationMetadata> response = await networkServicesClient.UpdateHttpRouteAsync(httpRoute, updateMask);

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

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

UpdateHttpRouteAsync(UpdateHttpRouteRequest, CallSettings)

public virtual Task<Operation<HttpRoute, OperationMetadata>> UpdateHttpRouteAsync(UpdateHttpRouteRequest request, CallSettings callSettings = null)

Updates the parameters of a single HttpRoute.

Parameters
Name Description
request UpdateHttpRouteRequest

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
TaskOperationHttpRouteOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
UpdateHttpRouteRequest request = new UpdateHttpRouteRequest
{
    UpdateMask = new FieldMask(),
    HttpRoute = new HttpRoute(),
};
// Make the request
Operation<HttpRoute, OperationMetadata> response = await networkServicesClient.UpdateHttpRouteAsync(request);

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

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

UpdateHttpRouteAsync(UpdateHttpRouteRequest, CancellationToken)

public virtual Task<Operation<HttpRoute, OperationMetadata>> UpdateHttpRouteAsync(UpdateHttpRouteRequest request, CancellationToken cancellationToken)

Updates the parameters of a single HttpRoute.

Parameters
Name Description
request UpdateHttpRouteRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationHttpRouteOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
UpdateHttpRouteRequest request = new UpdateHttpRouteRequest
{
    UpdateMask = new FieldMask(),
    HttpRoute = new HttpRoute(),
};
// Make the request
Operation<HttpRoute, OperationMetadata> response = await networkServicesClient.UpdateHttpRouteAsync(request);

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

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

UpdateMesh(Mesh, FieldMask, CallSettings)

public virtual Operation<Mesh, OperationMetadata> UpdateMesh(Mesh mesh, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single Mesh.

Parameters
Name Description
mesh Mesh

Required. Updated Mesh resource.

updateMask FieldMask

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationMeshOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
Mesh mesh = new Mesh();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Mesh, OperationMetadata> response = networkServicesClient.UpdateMesh(mesh, updateMask);

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

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

UpdateMesh(UpdateMeshRequest, CallSettings)

public virtual Operation<Mesh, OperationMetadata> UpdateMesh(UpdateMeshRequest request, CallSettings callSettings = null)

Updates the parameters of a single Mesh.

Parameters
Name Description
request UpdateMeshRequest

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
OperationMeshOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
UpdateMeshRequest request = new UpdateMeshRequest
{
    UpdateMask = new FieldMask(),
    Mesh = new Mesh(),
};
// Make the request
Operation<Mesh, OperationMetadata> response = networkServicesClient.UpdateMesh(request);

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

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

UpdateMeshAsync(Mesh, FieldMask, CallSettings)

public virtual Task<Operation<Mesh, OperationMetadata>> UpdateMeshAsync(Mesh mesh, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single Mesh.

Parameters
Name Description
mesh Mesh

Required. Updated Mesh resource.

updateMask FieldMask

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationMeshOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
Mesh mesh = new Mesh();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Mesh, OperationMetadata> response = await networkServicesClient.UpdateMeshAsync(mesh, updateMask);

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

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

UpdateMeshAsync(Mesh, FieldMask, CancellationToken)

public virtual Task<Operation<Mesh, OperationMetadata>> UpdateMeshAsync(Mesh mesh, FieldMask updateMask, CancellationToken cancellationToken)

Updates the parameters of a single Mesh.

Parameters
Name Description
mesh Mesh

Required. Updated Mesh resource.

updateMask FieldMask

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationMeshOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
Mesh mesh = new Mesh();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Mesh, OperationMetadata> response = await networkServicesClient.UpdateMeshAsync(mesh, updateMask);

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

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

UpdateMeshAsync(UpdateMeshRequest, CallSettings)

public virtual Task<Operation<Mesh, OperationMetadata>> UpdateMeshAsync(UpdateMeshRequest request, CallSettings callSettings = null)

Updates the parameters of a single Mesh.

Parameters
Name Description
request UpdateMeshRequest

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
TaskOperationMeshOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
UpdateMeshRequest request = new UpdateMeshRequest
{
    UpdateMask = new FieldMask(),
    Mesh = new Mesh(),
};
// Make the request
Operation<Mesh, OperationMetadata> response = await networkServicesClient.UpdateMeshAsync(request);

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

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

UpdateMeshAsync(UpdateMeshRequest, CancellationToken)

public virtual Task<Operation<Mesh, OperationMetadata>> UpdateMeshAsync(UpdateMeshRequest request, CancellationToken cancellationToken)

Updates the parameters of a single Mesh.

Parameters
Name Description
request UpdateMeshRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationMeshOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
UpdateMeshRequest request = new UpdateMeshRequest
{
    UpdateMask = new FieldMask(),
    Mesh = new Mesh(),
};
// Make the request
Operation<Mesh, OperationMetadata> response = await networkServicesClient.UpdateMeshAsync(request);

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

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

UpdateTcpRoute(TcpRoute, FieldMask, CallSettings)

public virtual Operation<TcpRoute, OperationMetadata> UpdateTcpRoute(TcpRoute tcpRoute, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single TcpRoute.

Parameters
Name Description
tcpRoute TcpRoute

Required. Updated TcpRoute resource.

updateMask FieldMask

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationTcpRouteOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
TcpRoute tcpRoute = new TcpRoute();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<TcpRoute, OperationMetadata> response = networkServicesClient.UpdateTcpRoute(tcpRoute, updateMask);

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

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

UpdateTcpRoute(UpdateTcpRouteRequest, CallSettings)

public virtual Operation<TcpRoute, OperationMetadata> UpdateTcpRoute(UpdateTcpRouteRequest request, CallSettings callSettings = null)

Updates the parameters of a single TcpRoute.

Parameters
Name Description
request UpdateTcpRouteRequest

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
OperationTcpRouteOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
UpdateTcpRouteRequest request = new UpdateTcpRouteRequest
{
    UpdateMask = new FieldMask(),
    TcpRoute = new TcpRoute(),
};
// Make the request
Operation<TcpRoute, OperationMetadata> response = networkServicesClient.UpdateTcpRoute(request);

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

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

UpdateTcpRouteAsync(TcpRoute, FieldMask, CallSettings)

public virtual Task<Operation<TcpRoute, OperationMetadata>> UpdateTcpRouteAsync(TcpRoute tcpRoute, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single TcpRoute.

Parameters
Name Description
tcpRoute TcpRoute

Required. Updated TcpRoute resource.

updateMask FieldMask

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationTcpRouteOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
TcpRoute tcpRoute = new TcpRoute();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<TcpRoute, OperationMetadata> response = await networkServicesClient.UpdateTcpRouteAsync(tcpRoute, updateMask);

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

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

UpdateTcpRouteAsync(TcpRoute, FieldMask, CancellationToken)

public virtual Task<Operation<TcpRoute, OperationMetadata>> UpdateTcpRouteAsync(TcpRoute tcpRoute, FieldMask updateMask, CancellationToken cancellationToken)

Updates the parameters of a single TcpRoute.

Parameters
Name Description
tcpRoute TcpRoute

Required. Updated TcpRoute resource.

updateMask FieldMask

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationTcpRouteOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
TcpRoute tcpRoute = new TcpRoute();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<TcpRoute, OperationMetadata> response = await networkServicesClient.UpdateTcpRouteAsync(tcpRoute, updateMask);

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

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

UpdateTcpRouteAsync(UpdateTcpRouteRequest, CallSettings)

public virtual Task<Operation<TcpRoute, OperationMetadata>> UpdateTcpRouteAsync(UpdateTcpRouteRequest request, CallSettings callSettings = null)

Updates the parameters of a single TcpRoute.

Parameters
Name Description
request UpdateTcpRouteRequest

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
TaskOperationTcpRouteOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
UpdateTcpRouteRequest request = new UpdateTcpRouteRequest
{
    UpdateMask = new FieldMask(),
    TcpRoute = new TcpRoute(),
};
// Make the request
Operation<TcpRoute, OperationMetadata> response = await networkServicesClient.UpdateTcpRouteAsync(request);

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

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

UpdateTcpRouteAsync(UpdateTcpRouteRequest, CancellationToken)

public virtual Task<Operation<TcpRoute, OperationMetadata>> UpdateTcpRouteAsync(UpdateTcpRouteRequest request, CancellationToken cancellationToken)

Updates the parameters of a single TcpRoute.

Parameters
Name Description
request UpdateTcpRouteRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationTcpRouteOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
UpdateTcpRouteRequest request = new UpdateTcpRouteRequest
{
    UpdateMask = new FieldMask(),
    TcpRoute = new TcpRoute(),
};
// Make the request
Operation<TcpRoute, OperationMetadata> response = await networkServicesClient.UpdateTcpRouteAsync(request);

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

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

UpdateTlsRoute(TlsRoute, FieldMask, CallSettings)

public virtual Operation<TlsRoute, OperationMetadata> UpdateTlsRoute(TlsRoute tlsRoute, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single TlsRoute.

Parameters
Name Description
tlsRoute TlsRoute

Required. Updated TlsRoute resource.

updateMask FieldMask

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationTlsRouteOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
TlsRoute tlsRoute = new TlsRoute();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<TlsRoute, OperationMetadata> response = networkServicesClient.UpdateTlsRoute(tlsRoute, updateMask);

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

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

UpdateTlsRoute(UpdateTlsRouteRequest, CallSettings)

public virtual Operation<TlsRoute, OperationMetadata> UpdateTlsRoute(UpdateTlsRouteRequest request, CallSettings callSettings = null)

Updates the parameters of a single TlsRoute.

Parameters
Name Description
request UpdateTlsRouteRequest

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
OperationTlsRouteOperationMetadata

The RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = NetworkServicesClient.Create();
// Initialize request argument(s)
UpdateTlsRouteRequest request = new UpdateTlsRouteRequest
{
    UpdateMask = new FieldMask(),
    TlsRoute = new TlsRoute(),
};
// Make the request
Operation<TlsRoute, OperationMetadata> response = networkServicesClient.UpdateTlsRoute(request);

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

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

UpdateTlsRouteAsync(TlsRoute, FieldMask, CallSettings)

public virtual Task<Operation<TlsRoute, OperationMetadata>> UpdateTlsRouteAsync(TlsRoute tlsRoute, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single TlsRoute.

Parameters
Name Description
tlsRoute TlsRoute

Required. Updated TlsRoute resource.

updateMask FieldMask

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationTlsRouteOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
TlsRoute tlsRoute = new TlsRoute();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<TlsRoute, OperationMetadata> response = await networkServicesClient.UpdateTlsRouteAsync(tlsRoute, updateMask);

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

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

UpdateTlsRouteAsync(TlsRoute, FieldMask, CancellationToken)

public virtual Task<Operation<TlsRoute, OperationMetadata>> UpdateTlsRouteAsync(TlsRoute tlsRoute, FieldMask updateMask, CancellationToken cancellationToken)

Updates the parameters of a single TlsRoute.

Parameters
Name Description
tlsRoute TlsRoute

Required. Updated TlsRoute resource.

updateMask FieldMask

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationTlsRouteOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
TlsRoute tlsRoute = new TlsRoute();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<TlsRoute, OperationMetadata> response = await networkServicesClient.UpdateTlsRouteAsync(tlsRoute, updateMask);

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

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

UpdateTlsRouteAsync(UpdateTlsRouteRequest, CallSettings)

public virtual Task<Operation<TlsRoute, OperationMetadata>> UpdateTlsRouteAsync(UpdateTlsRouteRequest request, CallSettings callSettings = null)

Updates the parameters of a single TlsRoute.

Parameters
Name Description
request UpdateTlsRouteRequest

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
TaskOperationTlsRouteOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
UpdateTlsRouteRequest request = new UpdateTlsRouteRequest
{
    UpdateMask = new FieldMask(),
    TlsRoute = new TlsRoute(),
};
// Make the request
Operation<TlsRoute, OperationMetadata> response = await networkServicesClient.UpdateTlsRouteAsync(request);

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

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

UpdateTlsRouteAsync(UpdateTlsRouteRequest, CancellationToken)

public virtual Task<Operation<TlsRoute, OperationMetadata>> UpdateTlsRouteAsync(UpdateTlsRouteRequest request, CancellationToken cancellationToken)

Updates the parameters of a single TlsRoute.

Parameters
Name Description
request UpdateTlsRouteRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationTlsRouteOperationMetadata

A Task containing the RPC response.

Example
// Create client
NetworkServicesClient networkServicesClient = await NetworkServicesClient.CreateAsync();
// Initialize request argument(s)
UpdateTlsRouteRequest request = new UpdateTlsRouteRequest
{
    UpdateMask = new FieldMask(),
    TlsRoute = new TlsRoute(),
};
// Make the request
Operation<TlsRoute, OperationMetadata> response = await networkServicesClient.UpdateTlsRouteAsync(request);

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

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