Distributed Cloud Edge Network v1 API - Class EdgeNetworkClient (1.3.0)

public abstract class EdgeNetworkClient

Reference documentation and code samples for the Distributed Cloud Edge Network v1 API class EdgeNetworkClient.

EdgeNetwork client wrapper, for convenient use.

Inheritance

object > EdgeNetworkClient

Derived Types

Namespace

Google.Cloud.EdgeNetwork.V1

Assembly

Google.Cloud.EdgeNetwork.V1.dll

Remarks

EdgeNetwork API provides managed, highly available cloud dynamic network configuration service to the GEC customer to enable edge application and network function solutions. This allows the customers to easily define and configure the network setup and property to meet the workload requirement.

Properties

CreateInterconnectAttachmentOperationsClient

public virtual OperationsClient CreateInterconnectAttachmentOperationsClient { get; }

The long-running operations client for CreateInterconnectAttachment.

Property Value
Type Description
OperationsClient

CreateNetworkOperationsClient

public virtual OperationsClient CreateNetworkOperationsClient { get; }

The long-running operations client for CreateNetwork.

Property Value
Type Description
OperationsClient

CreateRouterOperationsClient

public virtual OperationsClient CreateRouterOperationsClient { get; }

The long-running operations client for CreateRouter.

Property Value
Type Description
OperationsClient

CreateSubnetOperationsClient

public virtual OperationsClient CreateSubnetOperationsClient { get; }

The long-running operations client for CreateSubnet.

Property Value
Type Description
OperationsClient

DefaultEndpoint

public static string DefaultEndpoint { get; }

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

Property Value
Type Description
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default EdgeNetwork scopes.

Property Value
Type Description
IReadOnlyListstring
Remarks

The default EdgeNetwork scopes are:

DeleteInterconnectAttachmentOperationsClient

public virtual OperationsClient DeleteInterconnectAttachmentOperationsClient { get; }

The long-running operations client for DeleteInterconnectAttachment.

Property Value
Type Description
OperationsClient

DeleteNetworkOperationsClient

public virtual OperationsClient DeleteNetworkOperationsClient { get; }

The long-running operations client for DeleteNetwork.

Property Value
Type Description
OperationsClient

DeleteRouterOperationsClient

public virtual OperationsClient DeleteRouterOperationsClient { get; }

The long-running operations client for DeleteRouter.

Property Value
Type Description
OperationsClient

DeleteSubnetOperationsClient

public virtual OperationsClient DeleteSubnetOperationsClient { get; }

The long-running operations client for DeleteSubnet.

Property Value
Type Description
OperationsClient

GrpcClient

public virtual EdgeNetwork.EdgeNetworkClient GrpcClient { get; }

The underlying gRPC EdgeNetwork client

Property Value
Type Description
EdgeNetworkEdgeNetworkClient

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

UpdateRouterOperationsClient

public virtual OperationsClient UpdateRouterOperationsClient { get; }

The long-running operations client for UpdateRouter.

Property Value
Type Description
OperationsClient

UpdateSubnetOperationsClient

public virtual OperationsClient UpdateSubnetOperationsClient { get; }

The long-running operations client for UpdateSubnet.

Property Value
Type Description
OperationsClient

Methods

Create()

public static EdgeNetworkClient Create()

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

Returns
Type Description
EdgeNetworkClient

The created EdgeNetworkClient.

CreateAsync(CancellationToken)

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

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

Parameter
Name Description
cancellationToken CancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
TaskEdgeNetworkClient

The task representing the created EdgeNetworkClient.

CreateInterconnectAttachment(CreateInterconnectAttachmentRequest, CallSettings)

public virtual Operation<InterconnectAttachment, OperationMetadata> CreateInterconnectAttachment(CreateInterconnectAttachmentRequest request, CallSettings callSettings = null)

Creates a new InterconnectAttachment in a given project and location.

Parameters
Name Description
request CreateInterconnectAttachmentRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationInterconnectAttachmentOperationMetadata

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
CreateInterconnectAttachmentRequest request = new CreateInterconnectAttachmentRequest
{
    ParentAsZoneName = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]"),
    InterconnectAttachmentId = "",
    InterconnectAttachment = new InterconnectAttachment(),
    RequestId = "",
};
// Make the request
Operation<InterconnectAttachment, OperationMetadata> response = edgeNetworkClient.CreateInterconnectAttachment(request);

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

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

CreateInterconnectAttachment(ZoneName, InterconnectAttachment, string, CallSettings)

public virtual Operation<InterconnectAttachment, OperationMetadata> CreateInterconnectAttachment(ZoneName parent, InterconnectAttachment interconnectAttachment, string interconnectAttachmentId, CallSettings callSettings = null)

Creates a new InterconnectAttachment in a given project and location.

Parameters
Name Description
parent ZoneName

Required. Value for parent.

interconnectAttachment InterconnectAttachment

Required. The resource being created

interconnectAttachmentId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationInterconnectAttachmentOperationMetadata

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
ZoneName parent = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]");
InterconnectAttachment interconnectAttachment = new InterconnectAttachment();
string interconnectAttachmentId = "";
// Make the request
Operation<InterconnectAttachment, OperationMetadata> response = edgeNetworkClient.CreateInterconnectAttachment(parent, interconnectAttachment, interconnectAttachmentId);

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

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

CreateInterconnectAttachment(string, InterconnectAttachment, string, CallSettings)

public virtual Operation<InterconnectAttachment, OperationMetadata> CreateInterconnectAttachment(string parent, InterconnectAttachment interconnectAttachment, string interconnectAttachmentId, CallSettings callSettings = null)

Creates a new InterconnectAttachment in a given project and location.

Parameters
Name Description
parent string

Required. Value for parent.

interconnectAttachment InterconnectAttachment

Required. The resource being created

interconnectAttachmentId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationInterconnectAttachmentOperationMetadata

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]";
InterconnectAttachment interconnectAttachment = new InterconnectAttachment();
string interconnectAttachmentId = "";
// Make the request
Operation<InterconnectAttachment, OperationMetadata> response = edgeNetworkClient.CreateInterconnectAttachment(parent, interconnectAttachment, interconnectAttachmentId);

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

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

CreateInterconnectAttachmentAsync(CreateInterconnectAttachmentRequest, CallSettings)

public virtual Task<Operation<InterconnectAttachment, OperationMetadata>> CreateInterconnectAttachmentAsync(CreateInterconnectAttachmentRequest request, CallSettings callSettings = null)

Creates a new InterconnectAttachment in a given project and location.

Parameters
Name Description
request CreateInterconnectAttachmentRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationInterconnectAttachmentOperationMetadata

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
CreateInterconnectAttachmentRequest request = new CreateInterconnectAttachmentRequest
{
    ParentAsZoneName = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]"),
    InterconnectAttachmentId = "",
    InterconnectAttachment = new InterconnectAttachment(),
    RequestId = "",
};
// Make the request
Operation<InterconnectAttachment, OperationMetadata> response = await edgeNetworkClient.CreateInterconnectAttachmentAsync(request);

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

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

CreateInterconnectAttachmentAsync(CreateInterconnectAttachmentRequest, CancellationToken)

public virtual Task<Operation<InterconnectAttachment, OperationMetadata>> CreateInterconnectAttachmentAsync(CreateInterconnectAttachmentRequest request, CancellationToken cancellationToken)

Creates a new InterconnectAttachment in a given project and location.

Parameters
Name Description
request CreateInterconnectAttachmentRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationInterconnectAttachmentOperationMetadata

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
CreateInterconnectAttachmentRequest request = new CreateInterconnectAttachmentRequest
{
    ParentAsZoneName = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]"),
    InterconnectAttachmentId = "",
    InterconnectAttachment = new InterconnectAttachment(),
    RequestId = "",
};
// Make the request
Operation<InterconnectAttachment, OperationMetadata> response = await edgeNetworkClient.CreateInterconnectAttachmentAsync(request);

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

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

CreateInterconnectAttachmentAsync(ZoneName, InterconnectAttachment, string, CallSettings)

public virtual Task<Operation<InterconnectAttachment, OperationMetadata>> CreateInterconnectAttachmentAsync(ZoneName parent, InterconnectAttachment interconnectAttachment, string interconnectAttachmentId, CallSettings callSettings = null)

Creates a new InterconnectAttachment in a given project and location.

Parameters
Name Description
parent ZoneName

Required. Value for parent.

interconnectAttachment InterconnectAttachment

Required. The resource being created

interconnectAttachmentId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationInterconnectAttachmentOperationMetadata

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
ZoneName parent = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]");
InterconnectAttachment interconnectAttachment = new InterconnectAttachment();
string interconnectAttachmentId = "";
// Make the request
Operation<InterconnectAttachment, OperationMetadata> response = await edgeNetworkClient.CreateInterconnectAttachmentAsync(parent, interconnectAttachment, interconnectAttachmentId);

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

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

CreateInterconnectAttachmentAsync(ZoneName, InterconnectAttachment, string, CancellationToken)

public virtual Task<Operation<InterconnectAttachment, OperationMetadata>> CreateInterconnectAttachmentAsync(ZoneName parent, InterconnectAttachment interconnectAttachment, string interconnectAttachmentId, CancellationToken cancellationToken)

Creates a new InterconnectAttachment in a given project and location.

Parameters
Name Description
parent ZoneName

Required. Value for parent.

interconnectAttachment InterconnectAttachment

Required. The resource being created

interconnectAttachmentId string

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationInterconnectAttachmentOperationMetadata

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
ZoneName parent = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]");
InterconnectAttachment interconnectAttachment = new InterconnectAttachment();
string interconnectAttachmentId = "";
// Make the request
Operation<InterconnectAttachment, OperationMetadata> response = await edgeNetworkClient.CreateInterconnectAttachmentAsync(parent, interconnectAttachment, interconnectAttachmentId);

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

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

CreateInterconnectAttachmentAsync(string, InterconnectAttachment, string, CallSettings)

public virtual Task<Operation<InterconnectAttachment, OperationMetadata>> CreateInterconnectAttachmentAsync(string parent, InterconnectAttachment interconnectAttachment, string interconnectAttachmentId, CallSettings callSettings = null)

Creates a new InterconnectAttachment in a given project and location.

Parameters
Name Description
parent string

Required. Value for parent.

interconnectAttachment InterconnectAttachment

Required. The resource being created

interconnectAttachmentId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationInterconnectAttachmentOperationMetadata

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]";
InterconnectAttachment interconnectAttachment = new InterconnectAttachment();
string interconnectAttachmentId = "";
// Make the request
Operation<InterconnectAttachment, OperationMetadata> response = await edgeNetworkClient.CreateInterconnectAttachmentAsync(parent, interconnectAttachment, interconnectAttachmentId);

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

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

CreateInterconnectAttachmentAsync(string, InterconnectAttachment, string, CancellationToken)

public virtual Task<Operation<InterconnectAttachment, OperationMetadata>> CreateInterconnectAttachmentAsync(string parent, InterconnectAttachment interconnectAttachment, string interconnectAttachmentId, CancellationToken cancellationToken)

Creates a new InterconnectAttachment in a given project and location.

Parameters
Name Description
parent string

Required. Value for parent.

interconnectAttachment InterconnectAttachment

Required. The resource being created

interconnectAttachmentId string

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationInterconnectAttachmentOperationMetadata

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]";
InterconnectAttachment interconnectAttachment = new InterconnectAttachment();
string interconnectAttachmentId = "";
// Make the request
Operation<InterconnectAttachment, OperationMetadata> response = await edgeNetworkClient.CreateInterconnectAttachmentAsync(parent, interconnectAttachment, interconnectAttachmentId);

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

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

CreateNetwork(CreateNetworkRequest, CallSettings)

public virtual Operation<Network, OperationMetadata> CreateNetwork(CreateNetworkRequest request, CallSettings callSettings = null)

Creates a new Network in a given project and location.

Parameters
Name Description
request CreateNetworkRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationNetworkOperationMetadata

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
CreateNetworkRequest request = new CreateNetworkRequest
{
    ParentAsZoneName = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]"),
    NetworkId = "",
    Network = new Network(),
    RequestId = "",
};
// Make the request
Operation<Network, OperationMetadata> response = edgeNetworkClient.CreateNetwork(request);

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

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

CreateNetwork(ZoneName, Network, string, CallSettings)

public virtual Operation<Network, OperationMetadata> CreateNetwork(ZoneName parent, Network network, string networkId, CallSettings callSettings = null)

Creates a new Network in a given project and location.

Parameters
Name Description
parent ZoneName

Required. Value for parent.

network Network

Required. The resource being created

networkId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationNetworkOperationMetadata

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
ZoneName parent = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]");
Network network = new Network();
string networkId = "";
// Make the request
Operation<Network, OperationMetadata> response = edgeNetworkClient.CreateNetwork(parent, network, networkId);

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

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

CreateNetwork(string, Network, string, CallSettings)

public virtual Operation<Network, OperationMetadata> CreateNetwork(string parent, Network network, string networkId, CallSettings callSettings = null)

Creates a new Network in a given project and location.

Parameters
Name Description
parent string

Required. Value for parent.

network Network

Required. The resource being created

networkId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationNetworkOperationMetadata

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]";
Network network = new Network();
string networkId = "";
// Make the request
Operation<Network, OperationMetadata> response = edgeNetworkClient.CreateNetwork(parent, network, networkId);

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

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

CreateNetworkAsync(CreateNetworkRequest, CallSettings)

public virtual Task<Operation<Network, OperationMetadata>> CreateNetworkAsync(CreateNetworkRequest request, CallSettings callSettings = null)

Creates a new Network in a given project and location.

Parameters
Name Description
request CreateNetworkRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationNetworkOperationMetadata

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
CreateNetworkRequest request = new CreateNetworkRequest
{
    ParentAsZoneName = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]"),
    NetworkId = "",
    Network = new Network(),
    RequestId = "",
};
// Make the request
Operation<Network, OperationMetadata> response = await edgeNetworkClient.CreateNetworkAsync(request);

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

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

CreateNetworkAsync(CreateNetworkRequest, CancellationToken)

public virtual Task<Operation<Network, OperationMetadata>> CreateNetworkAsync(CreateNetworkRequest request, CancellationToken cancellationToken)

Creates a new Network in a given project and location.

Parameters
Name Description
request CreateNetworkRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationNetworkOperationMetadata

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
CreateNetworkRequest request = new CreateNetworkRequest
{
    ParentAsZoneName = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]"),
    NetworkId = "",
    Network = new Network(),
    RequestId = "",
};
// Make the request
Operation<Network, OperationMetadata> response = await edgeNetworkClient.CreateNetworkAsync(request);

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

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

CreateNetworkAsync(ZoneName, Network, string, CallSettings)

public virtual Task<Operation<Network, OperationMetadata>> CreateNetworkAsync(ZoneName parent, Network network, string networkId, CallSettings callSettings = null)

Creates a new Network in a given project and location.

Parameters
Name Description
parent ZoneName

Required. Value for parent.

network Network

Required. The resource being created

networkId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationNetworkOperationMetadata

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
ZoneName parent = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]");
Network network = new Network();
string networkId = "";
// Make the request
Operation<Network, OperationMetadata> response = await edgeNetworkClient.CreateNetworkAsync(parent, network, networkId);

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

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

CreateNetworkAsync(ZoneName, Network, string, CancellationToken)

public virtual Task<Operation<Network, OperationMetadata>> CreateNetworkAsync(ZoneName parent, Network network, string networkId, CancellationToken cancellationToken)

Creates a new Network in a given project and location.

Parameters
Name Description
parent ZoneName

Required. Value for parent.

network Network

Required. The resource being created

networkId string

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationNetworkOperationMetadata

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
ZoneName parent = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]");
Network network = new Network();
string networkId = "";
// Make the request
Operation<Network, OperationMetadata> response = await edgeNetworkClient.CreateNetworkAsync(parent, network, networkId);

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

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

CreateNetworkAsync(string, Network, string, CallSettings)

public virtual Task<Operation<Network, OperationMetadata>> CreateNetworkAsync(string parent, Network network, string networkId, CallSettings callSettings = null)

Creates a new Network in a given project and location.

Parameters
Name Description
parent string

Required. Value for parent.

network Network

Required. The resource being created

networkId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationNetworkOperationMetadata

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]";
Network network = new Network();
string networkId = "";
// Make the request
Operation<Network, OperationMetadata> response = await edgeNetworkClient.CreateNetworkAsync(parent, network, networkId);

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

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

CreateNetworkAsync(string, Network, string, CancellationToken)

public virtual Task<Operation<Network, OperationMetadata>> CreateNetworkAsync(string parent, Network network, string networkId, CancellationToken cancellationToken)

Creates a new Network in a given project and location.

Parameters
Name Description
parent string

Required. Value for parent.

network Network

Required. The resource being created

networkId string

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationNetworkOperationMetadata

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]";
Network network = new Network();
string networkId = "";
// Make the request
Operation<Network, OperationMetadata> response = await edgeNetworkClient.CreateNetworkAsync(parent, network, networkId);

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

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

CreateRouter(CreateRouterRequest, CallSettings)

public virtual Operation<Router, OperationMetadata> CreateRouter(CreateRouterRequest request, CallSettings callSettings = null)

Creates a new Router in a given project and location.

Parameters
Name Description
request CreateRouterRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationRouterOperationMetadata

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
CreateRouterRequest request = new CreateRouterRequest
{
    ParentAsZoneName = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]"),
    RouterId = "",
    Router = new Router(),
    RequestId = "",
};
// Make the request
Operation<Router, OperationMetadata> response = edgeNetworkClient.CreateRouter(request);

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

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

CreateRouter(ZoneName, Router, string, CallSettings)

public virtual Operation<Router, OperationMetadata> CreateRouter(ZoneName parent, Router router, string routerId, CallSettings callSettings = null)

Creates a new Router in a given project and location.

Parameters
Name Description
parent ZoneName

Required. Value for parent.

router Router

Required. The resource being created

routerId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationRouterOperationMetadata

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
ZoneName parent = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]");
Router router = new Router();
string routerId = "";
// Make the request
Operation<Router, OperationMetadata> response = edgeNetworkClient.CreateRouter(parent, router, routerId);

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

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

CreateRouter(string, Router, string, CallSettings)

public virtual Operation<Router, OperationMetadata> CreateRouter(string parent, Router router, string routerId, CallSettings callSettings = null)

Creates a new Router in a given project and location.

Parameters
Name Description
parent string

Required. Value for parent.

router Router

Required. The resource being created

routerId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationRouterOperationMetadata

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]";
Router router = new Router();
string routerId = "";
// Make the request
Operation<Router, OperationMetadata> response = edgeNetworkClient.CreateRouter(parent, router, routerId);

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

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

CreateRouterAsync(CreateRouterRequest, CallSettings)

public virtual Task<Operation<Router, OperationMetadata>> CreateRouterAsync(CreateRouterRequest request, CallSettings callSettings = null)

Creates a new Router in a given project and location.

Parameters
Name Description
request CreateRouterRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationRouterOperationMetadata

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
CreateRouterRequest request = new CreateRouterRequest
{
    ParentAsZoneName = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]"),
    RouterId = "",
    Router = new Router(),
    RequestId = "",
};
// Make the request
Operation<Router, OperationMetadata> response = await edgeNetworkClient.CreateRouterAsync(request);

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

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

CreateRouterAsync(CreateRouterRequest, CancellationToken)

public virtual Task<Operation<Router, OperationMetadata>> CreateRouterAsync(CreateRouterRequest request, CancellationToken cancellationToken)

Creates a new Router in a given project and location.

Parameters
Name Description
request CreateRouterRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationRouterOperationMetadata

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
CreateRouterRequest request = new CreateRouterRequest
{
    ParentAsZoneName = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]"),
    RouterId = "",
    Router = new Router(),
    RequestId = "",
};
// Make the request
Operation<Router, OperationMetadata> response = await edgeNetworkClient.CreateRouterAsync(request);

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

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

CreateRouterAsync(ZoneName, Router, string, CallSettings)

public virtual Task<Operation<Router, OperationMetadata>> CreateRouterAsync(ZoneName parent, Router router, string routerId, CallSettings callSettings = null)

Creates a new Router in a given project and location.

Parameters
Name Description
parent ZoneName

Required. Value for parent.

router Router

Required. The resource being created

routerId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationRouterOperationMetadata

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
ZoneName parent = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]");
Router router = new Router();
string routerId = "";
// Make the request
Operation<Router, OperationMetadata> response = await edgeNetworkClient.CreateRouterAsync(parent, router, routerId);

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

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

CreateRouterAsync(ZoneName, Router, string, CancellationToken)

public virtual Task<Operation<Router, OperationMetadata>> CreateRouterAsync(ZoneName parent, Router router, string routerId, CancellationToken cancellationToken)

Creates a new Router in a given project and location.

Parameters
Name Description
parent ZoneName

Required. Value for parent.

router Router

Required. The resource being created

routerId string

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationRouterOperationMetadata

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
ZoneName parent = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]");
Router router = new Router();
string routerId = "";
// Make the request
Operation<Router, OperationMetadata> response = await edgeNetworkClient.CreateRouterAsync(parent, router, routerId);

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

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

CreateRouterAsync(string, Router, string, CallSettings)

public virtual Task<Operation<Router, OperationMetadata>> CreateRouterAsync(string parent, Router router, string routerId, CallSettings callSettings = null)

Creates a new Router in a given project and location.

Parameters
Name Description
parent string

Required. Value for parent.

router Router

Required. The resource being created

routerId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationRouterOperationMetadata

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]";
Router router = new Router();
string routerId = "";
// Make the request
Operation<Router, OperationMetadata> response = await edgeNetworkClient.CreateRouterAsync(parent, router, routerId);

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

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

CreateRouterAsync(string, Router, string, CancellationToken)

public virtual Task<Operation<Router, OperationMetadata>> CreateRouterAsync(string parent, Router router, string routerId, CancellationToken cancellationToken)

Creates a new Router in a given project and location.

Parameters
Name Description
parent string

Required. Value for parent.

router Router

Required. The resource being created

routerId string

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationRouterOperationMetadata

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]";
Router router = new Router();
string routerId = "";
// Make the request
Operation<Router, OperationMetadata> response = await edgeNetworkClient.CreateRouterAsync(parent, router, routerId);

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

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

CreateSubnet(CreateSubnetRequest, CallSettings)

public virtual Operation<Subnet, OperationMetadata> CreateSubnet(CreateSubnetRequest request, CallSettings callSettings = null)

Creates a new Subnet in a given project and location.

Parameters
Name Description
request CreateSubnetRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationSubnetOperationMetadata

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
CreateSubnetRequest request = new CreateSubnetRequest
{
    ParentAsZoneName = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]"),
    SubnetId = "",
    Subnet = new Subnet(),
    RequestId = "",
};
// Make the request
Operation<Subnet, OperationMetadata> response = edgeNetworkClient.CreateSubnet(request);

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

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

CreateSubnet(ZoneName, Subnet, string, CallSettings)

public virtual Operation<Subnet, OperationMetadata> CreateSubnet(ZoneName parent, Subnet subnet, string subnetId, CallSettings callSettings = null)

Creates a new Subnet in a given project and location.

Parameters
Name Description
parent ZoneName

Required. Value for parent.

subnet Subnet

Required. The resource being created

subnetId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationSubnetOperationMetadata

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
ZoneName parent = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]");
Subnet subnet = new Subnet();
string subnetId = "";
// Make the request
Operation<Subnet, OperationMetadata> response = edgeNetworkClient.CreateSubnet(parent, subnet, subnetId);

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

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

CreateSubnet(string, Subnet, string, CallSettings)

public virtual Operation<Subnet, OperationMetadata> CreateSubnet(string parent, Subnet subnet, string subnetId, CallSettings callSettings = null)

Creates a new Subnet in a given project and location.

Parameters
Name Description
parent string

Required. Value for parent.

subnet Subnet

Required. The resource being created

subnetId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationSubnetOperationMetadata

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]";
Subnet subnet = new Subnet();
string subnetId = "";
// Make the request
Operation<Subnet, OperationMetadata> response = edgeNetworkClient.CreateSubnet(parent, subnet, subnetId);

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

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

CreateSubnetAsync(CreateSubnetRequest, CallSettings)

public virtual Task<Operation<Subnet, OperationMetadata>> CreateSubnetAsync(CreateSubnetRequest request, CallSettings callSettings = null)

Creates a new Subnet in a given project and location.

Parameters
Name Description
request CreateSubnetRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationSubnetOperationMetadata

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
CreateSubnetRequest request = new CreateSubnetRequest
{
    ParentAsZoneName = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]"),
    SubnetId = "",
    Subnet = new Subnet(),
    RequestId = "",
};
// Make the request
Operation<Subnet, OperationMetadata> response = await edgeNetworkClient.CreateSubnetAsync(request);

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

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

CreateSubnetAsync(CreateSubnetRequest, CancellationToken)

public virtual Task<Operation<Subnet, OperationMetadata>> CreateSubnetAsync(CreateSubnetRequest request, CancellationToken cancellationToken)

Creates a new Subnet in a given project and location.

Parameters
Name Description
request CreateSubnetRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationSubnetOperationMetadata

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
CreateSubnetRequest request = new CreateSubnetRequest
{
    ParentAsZoneName = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]"),
    SubnetId = "",
    Subnet = new Subnet(),
    RequestId = "",
};
// Make the request
Operation<Subnet, OperationMetadata> response = await edgeNetworkClient.CreateSubnetAsync(request);

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

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

CreateSubnetAsync(ZoneName, Subnet, string, CallSettings)

public virtual Task<Operation<Subnet, OperationMetadata>> CreateSubnetAsync(ZoneName parent, Subnet subnet, string subnetId, CallSettings callSettings = null)

Creates a new Subnet in a given project and location.

Parameters
Name Description
parent ZoneName

Required. Value for parent.

subnet Subnet

Required. The resource being created

subnetId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationSubnetOperationMetadata

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
ZoneName parent = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]");
Subnet subnet = new Subnet();
string subnetId = "";
// Make the request
Operation<Subnet, OperationMetadata> response = await edgeNetworkClient.CreateSubnetAsync(parent, subnet, subnetId);

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

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

CreateSubnetAsync(ZoneName, Subnet, string, CancellationToken)

public virtual Task<Operation<Subnet, OperationMetadata>> CreateSubnetAsync(ZoneName parent, Subnet subnet, string subnetId, CancellationToken cancellationToken)

Creates a new Subnet in a given project and location.

Parameters
Name Description
parent ZoneName

Required. Value for parent.

subnet Subnet

Required. The resource being created

subnetId string

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationSubnetOperationMetadata

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
ZoneName parent = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]");
Subnet subnet = new Subnet();
string subnetId = "";
// Make the request
Operation<Subnet, OperationMetadata> response = await edgeNetworkClient.CreateSubnetAsync(parent, subnet, subnetId);

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

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

CreateSubnetAsync(string, Subnet, string, CallSettings)

public virtual Task<Operation<Subnet, OperationMetadata>> CreateSubnetAsync(string parent, Subnet subnet, string subnetId, CallSettings callSettings = null)

Creates a new Subnet in a given project and location.

Parameters
Name Description
parent string

Required. Value for parent.

subnet Subnet

Required. The resource being created

subnetId string

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationSubnetOperationMetadata

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]";
Subnet subnet = new Subnet();
string subnetId = "";
// Make the request
Operation<Subnet, OperationMetadata> response = await edgeNetworkClient.CreateSubnetAsync(parent, subnet, subnetId);

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

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

CreateSubnetAsync(string, Subnet, string, CancellationToken)

public virtual Task<Operation<Subnet, OperationMetadata>> CreateSubnetAsync(string parent, Subnet subnet, string subnetId, CancellationToken cancellationToken)

Creates a new Subnet in a given project and location.

Parameters
Name Description
parent string

Required. Value for parent.

subnet Subnet

Required. The resource being created

subnetId string

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationSubnetOperationMetadata

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]";
Subnet subnet = new Subnet();
string subnetId = "";
// Make the request
Operation<Subnet, OperationMetadata> response = await edgeNetworkClient.CreateSubnetAsync(parent, subnet, subnetId);

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

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

DeleteInterconnectAttachment(DeleteInterconnectAttachmentRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteInterconnectAttachment(DeleteInterconnectAttachmentRequest request, CallSettings callSettings = null)

Deletes a single InterconnectAttachment.

Parameters
Name Description
request DeleteInterconnectAttachmentRequest

The request 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
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
DeleteInterconnectAttachmentRequest request = new DeleteInterconnectAttachmentRequest
{
    InterconnectAttachmentName = InterconnectAttachmentName.FromProjectLocationZoneInterconnectAttachment("[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT_ATTACHMENT]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = edgeNetworkClient.DeleteInterconnectAttachment(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 = edgeNetworkClient.PollOnceDeleteInterconnectAttachment(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;
}

DeleteInterconnectAttachment(InterconnectAttachmentName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteInterconnectAttachment(InterconnectAttachmentName name, CallSettings callSettings = null)

Deletes a single InterconnectAttachment.

Parameters
Name Description
name InterconnectAttachmentName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
InterconnectAttachmentName name = InterconnectAttachmentName.FromProjectLocationZoneInterconnectAttachment("[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT_ATTACHMENT]");
// Make the request
Operation<Empty, OperationMetadata> response = edgeNetworkClient.DeleteInterconnectAttachment(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 = edgeNetworkClient.PollOnceDeleteInterconnectAttachment(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;
}

DeleteInterconnectAttachment(string, CallSettings)

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

Deletes a single InterconnectAttachment.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]/interconnectAttachments/[INTERCONNECT_ATTACHMENT]";
// Make the request
Operation<Empty, OperationMetadata> response = edgeNetworkClient.DeleteInterconnectAttachment(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 = edgeNetworkClient.PollOnceDeleteInterconnectAttachment(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;
}

DeleteInterconnectAttachmentAsync(DeleteInterconnectAttachmentRequest, CallSettings)

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

Deletes a single InterconnectAttachment.

Parameters
Name Description
request DeleteInterconnectAttachmentRequest

The request 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
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
DeleteInterconnectAttachmentRequest request = new DeleteInterconnectAttachmentRequest
{
    InterconnectAttachmentName = InterconnectAttachmentName.FromProjectLocationZoneInterconnectAttachment("[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT_ATTACHMENT]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await edgeNetworkClient.DeleteInterconnectAttachmentAsync(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 edgeNetworkClient.PollOnceDeleteInterconnectAttachmentAsync(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;
}

DeleteInterconnectAttachmentAsync(DeleteInterconnectAttachmentRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteInterconnectAttachmentAsync(DeleteInterconnectAttachmentRequest request, CancellationToken cancellationToken)

Deletes a single InterconnectAttachment.

Parameters
Name Description
request DeleteInterconnectAttachmentRequest

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
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
DeleteInterconnectAttachmentRequest request = new DeleteInterconnectAttachmentRequest
{
    InterconnectAttachmentName = InterconnectAttachmentName.FromProjectLocationZoneInterconnectAttachment("[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT_ATTACHMENT]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await edgeNetworkClient.DeleteInterconnectAttachmentAsync(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 edgeNetworkClient.PollOnceDeleteInterconnectAttachmentAsync(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;
}

DeleteInterconnectAttachmentAsync(InterconnectAttachmentName, CallSettings)

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

Deletes a single InterconnectAttachment.

Parameters
Name Description
name InterconnectAttachmentName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
InterconnectAttachmentName name = InterconnectAttachmentName.FromProjectLocationZoneInterconnectAttachment("[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT_ATTACHMENT]");
// Make the request
Operation<Empty, OperationMetadata> response = await edgeNetworkClient.DeleteInterconnectAttachmentAsync(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 edgeNetworkClient.PollOnceDeleteInterconnectAttachmentAsync(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;
}

DeleteInterconnectAttachmentAsync(InterconnectAttachmentName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteInterconnectAttachmentAsync(InterconnectAttachmentName name, CancellationToken cancellationToken)

Deletes a single InterconnectAttachment.

Parameters
Name Description
name InterconnectAttachmentName

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
InterconnectAttachmentName name = InterconnectAttachmentName.FromProjectLocationZoneInterconnectAttachment("[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT_ATTACHMENT]");
// Make the request
Operation<Empty, OperationMetadata> response = await edgeNetworkClient.DeleteInterconnectAttachmentAsync(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 edgeNetworkClient.PollOnceDeleteInterconnectAttachmentAsync(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;
}

DeleteInterconnectAttachmentAsync(string, CallSettings)

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

Deletes a single InterconnectAttachment.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]/interconnectAttachments/[INTERCONNECT_ATTACHMENT]";
// Make the request
Operation<Empty, OperationMetadata> response = await edgeNetworkClient.DeleteInterconnectAttachmentAsync(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 edgeNetworkClient.PollOnceDeleteInterconnectAttachmentAsync(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;
}

DeleteInterconnectAttachmentAsync(string, CancellationToken)

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

Deletes a single InterconnectAttachment.

Parameters
Name Description
name string

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]/interconnectAttachments/[INTERCONNECT_ATTACHMENT]";
// Make the request
Operation<Empty, OperationMetadata> response = await edgeNetworkClient.DeleteInterconnectAttachmentAsync(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 edgeNetworkClient.PollOnceDeleteInterconnectAttachmentAsync(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;
}

DeleteNetwork(DeleteNetworkRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteNetwork(DeleteNetworkRequest request, CallSettings callSettings = null)

Deletes a single Network.

Parameters
Name Description
request DeleteNetworkRequest

The request 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
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
DeleteNetworkRequest request = new DeleteNetworkRequest
{
    NetworkName = NetworkName.FromProjectLocationZoneNetwork("[PROJECT]", "[LOCATION]", "[ZONE]", "[NETWORK]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = edgeNetworkClient.DeleteNetwork(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 = edgeNetworkClient.PollOnceDeleteNetwork(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;
}

DeleteNetwork(NetworkName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteNetwork(NetworkName name, CallSettings callSettings = null)

Deletes a single Network.

Parameters
Name Description
name NetworkName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
NetworkName name = NetworkName.FromProjectLocationZoneNetwork("[PROJECT]", "[LOCATION]", "[ZONE]", "[NETWORK]");
// Make the request
Operation<Empty, OperationMetadata> response = edgeNetworkClient.DeleteNetwork(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 = edgeNetworkClient.PollOnceDeleteNetwork(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;
}

DeleteNetwork(string, CallSettings)

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

Deletes a single Network.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]/networks/[NETWORK]";
// Make the request
Operation<Empty, OperationMetadata> response = edgeNetworkClient.DeleteNetwork(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 = edgeNetworkClient.PollOnceDeleteNetwork(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;
}

DeleteNetworkAsync(DeleteNetworkRequest, CallSettings)

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

Deletes a single Network.

Parameters
Name Description
request DeleteNetworkRequest

The request 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
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
DeleteNetworkRequest request = new DeleteNetworkRequest
{
    NetworkName = NetworkName.FromProjectLocationZoneNetwork("[PROJECT]", "[LOCATION]", "[ZONE]", "[NETWORK]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await edgeNetworkClient.DeleteNetworkAsync(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 edgeNetworkClient.PollOnceDeleteNetworkAsync(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;
}

DeleteNetworkAsync(DeleteNetworkRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteNetworkAsync(DeleteNetworkRequest request, CancellationToken cancellationToken)

Deletes a single Network.

Parameters
Name Description
request DeleteNetworkRequest

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
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
DeleteNetworkRequest request = new DeleteNetworkRequest
{
    NetworkName = NetworkName.FromProjectLocationZoneNetwork("[PROJECT]", "[LOCATION]", "[ZONE]", "[NETWORK]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await edgeNetworkClient.DeleteNetworkAsync(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 edgeNetworkClient.PollOnceDeleteNetworkAsync(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;
}

DeleteNetworkAsync(NetworkName, CallSettings)

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

Deletes a single Network.

Parameters
Name Description
name NetworkName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
NetworkName name = NetworkName.FromProjectLocationZoneNetwork("[PROJECT]", "[LOCATION]", "[ZONE]", "[NETWORK]");
// Make the request
Operation<Empty, OperationMetadata> response = await edgeNetworkClient.DeleteNetworkAsync(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 edgeNetworkClient.PollOnceDeleteNetworkAsync(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;
}

DeleteNetworkAsync(NetworkName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteNetworkAsync(NetworkName name, CancellationToken cancellationToken)

Deletes a single Network.

Parameters
Name Description
name NetworkName

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
NetworkName name = NetworkName.FromProjectLocationZoneNetwork("[PROJECT]", "[LOCATION]", "[ZONE]", "[NETWORK]");
// Make the request
Operation<Empty, OperationMetadata> response = await edgeNetworkClient.DeleteNetworkAsync(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 edgeNetworkClient.PollOnceDeleteNetworkAsync(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;
}

DeleteNetworkAsync(string, CallSettings)

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

Deletes a single Network.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]/networks/[NETWORK]";
// Make the request
Operation<Empty, OperationMetadata> response = await edgeNetworkClient.DeleteNetworkAsync(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 edgeNetworkClient.PollOnceDeleteNetworkAsync(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;
}

DeleteNetworkAsync(string, CancellationToken)

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

Deletes a single Network.

Parameters
Name Description
name string

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]/networks/[NETWORK]";
// Make the request
Operation<Empty, OperationMetadata> response = await edgeNetworkClient.DeleteNetworkAsync(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 edgeNetworkClient.PollOnceDeleteNetworkAsync(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;
}

DeleteRouter(DeleteRouterRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteRouter(DeleteRouterRequest request, CallSettings callSettings = null)

Deletes a single Router.

Parameters
Name Description
request DeleteRouterRequest

The request 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
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
DeleteRouterRequest request = new DeleteRouterRequest
{
    RouterName = RouterName.FromProjectLocationZoneRouter("[PROJECT]", "[LOCATION]", "[ZONE]", "[ROUTER]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = edgeNetworkClient.DeleteRouter(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 = edgeNetworkClient.PollOnceDeleteRouter(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;
}

DeleteRouter(RouterName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteRouter(RouterName name, CallSettings callSettings = null)

Deletes a single Router.

Parameters
Name Description
name RouterName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
RouterName name = RouterName.FromProjectLocationZoneRouter("[PROJECT]", "[LOCATION]", "[ZONE]", "[ROUTER]");
// Make the request
Operation<Empty, OperationMetadata> response = edgeNetworkClient.DeleteRouter(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 = edgeNetworkClient.PollOnceDeleteRouter(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;
}

DeleteRouter(string, CallSettings)

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

Deletes a single Router.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]/routers/[ROUTER]";
// Make the request
Operation<Empty, OperationMetadata> response = edgeNetworkClient.DeleteRouter(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 = edgeNetworkClient.PollOnceDeleteRouter(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;
}

DeleteRouterAsync(DeleteRouterRequest, CallSettings)

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

Deletes a single Router.

Parameters
Name Description
request DeleteRouterRequest

The request 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
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
DeleteRouterRequest request = new DeleteRouterRequest
{
    RouterName = RouterName.FromProjectLocationZoneRouter("[PROJECT]", "[LOCATION]", "[ZONE]", "[ROUTER]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await edgeNetworkClient.DeleteRouterAsync(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 edgeNetworkClient.PollOnceDeleteRouterAsync(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;
}

DeleteRouterAsync(DeleteRouterRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteRouterAsync(DeleteRouterRequest request, CancellationToken cancellationToken)

Deletes a single Router.

Parameters
Name Description
request DeleteRouterRequest

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
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
DeleteRouterRequest request = new DeleteRouterRequest
{
    RouterName = RouterName.FromProjectLocationZoneRouter("[PROJECT]", "[LOCATION]", "[ZONE]", "[ROUTER]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await edgeNetworkClient.DeleteRouterAsync(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 edgeNetworkClient.PollOnceDeleteRouterAsync(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;
}

DeleteRouterAsync(RouterName, CallSettings)

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

Deletes a single Router.

Parameters
Name Description
name RouterName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
RouterName name = RouterName.FromProjectLocationZoneRouter("[PROJECT]", "[LOCATION]", "[ZONE]", "[ROUTER]");
// Make the request
Operation<Empty, OperationMetadata> response = await edgeNetworkClient.DeleteRouterAsync(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 edgeNetworkClient.PollOnceDeleteRouterAsync(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;
}

DeleteRouterAsync(RouterName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteRouterAsync(RouterName name, CancellationToken cancellationToken)

Deletes a single Router.

Parameters
Name Description
name RouterName

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
RouterName name = RouterName.FromProjectLocationZoneRouter("[PROJECT]", "[LOCATION]", "[ZONE]", "[ROUTER]");
// Make the request
Operation<Empty, OperationMetadata> response = await edgeNetworkClient.DeleteRouterAsync(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 edgeNetworkClient.PollOnceDeleteRouterAsync(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;
}

DeleteRouterAsync(string, CallSettings)

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

Deletes a single Router.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]/routers/[ROUTER]";
// Make the request
Operation<Empty, OperationMetadata> response = await edgeNetworkClient.DeleteRouterAsync(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 edgeNetworkClient.PollOnceDeleteRouterAsync(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;
}

DeleteRouterAsync(string, CancellationToken)

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

Deletes a single Router.

Parameters
Name Description
name string

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]/routers/[ROUTER]";
// Make the request
Operation<Empty, OperationMetadata> response = await edgeNetworkClient.DeleteRouterAsync(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 edgeNetworkClient.PollOnceDeleteRouterAsync(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;
}

DeleteSubnet(DeleteSubnetRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteSubnet(DeleteSubnetRequest request, CallSettings callSettings = null)

Deletes a single Subnet.

Parameters
Name Description
request DeleteSubnetRequest

The request 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
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
DeleteSubnetRequest request = new DeleteSubnetRequest
{
    SubnetName = SubnetName.FromProjectLocationZoneSubnet("[PROJECT]", "[LOCATION]", "[ZONE]", "[SUBNET]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = edgeNetworkClient.DeleteSubnet(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 = edgeNetworkClient.PollOnceDeleteSubnet(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;
}

DeleteSubnet(SubnetName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteSubnet(SubnetName name, CallSettings callSettings = null)

Deletes a single Subnet.

Parameters
Name Description
name SubnetName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
SubnetName name = SubnetName.FromProjectLocationZoneSubnet("[PROJECT]", "[LOCATION]", "[ZONE]", "[SUBNET]");
// Make the request
Operation<Empty, OperationMetadata> response = edgeNetworkClient.DeleteSubnet(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 = edgeNetworkClient.PollOnceDeleteSubnet(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;
}

DeleteSubnet(string, CallSettings)

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

Deletes a single Subnet.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]/subnets/[SUBNET]";
// Make the request
Operation<Empty, OperationMetadata> response = edgeNetworkClient.DeleteSubnet(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 = edgeNetworkClient.PollOnceDeleteSubnet(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;
}

DeleteSubnetAsync(DeleteSubnetRequest, CallSettings)

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

Deletes a single Subnet.

Parameters
Name Description
request DeleteSubnetRequest

The request 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
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
DeleteSubnetRequest request = new DeleteSubnetRequest
{
    SubnetName = SubnetName.FromProjectLocationZoneSubnet("[PROJECT]", "[LOCATION]", "[ZONE]", "[SUBNET]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await edgeNetworkClient.DeleteSubnetAsync(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 edgeNetworkClient.PollOnceDeleteSubnetAsync(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;
}

DeleteSubnetAsync(DeleteSubnetRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteSubnetAsync(DeleteSubnetRequest request, CancellationToken cancellationToken)

Deletes a single Subnet.

Parameters
Name Description
request DeleteSubnetRequest

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
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
DeleteSubnetRequest request = new DeleteSubnetRequest
{
    SubnetName = SubnetName.FromProjectLocationZoneSubnet("[PROJECT]", "[LOCATION]", "[ZONE]", "[SUBNET]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await edgeNetworkClient.DeleteSubnetAsync(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 edgeNetworkClient.PollOnceDeleteSubnetAsync(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;
}

DeleteSubnetAsync(SubnetName, CallSettings)

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

Deletes a single Subnet.

Parameters
Name Description
name SubnetName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
SubnetName name = SubnetName.FromProjectLocationZoneSubnet("[PROJECT]", "[LOCATION]", "[ZONE]", "[SUBNET]");
// Make the request
Operation<Empty, OperationMetadata> response = await edgeNetworkClient.DeleteSubnetAsync(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 edgeNetworkClient.PollOnceDeleteSubnetAsync(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;
}

DeleteSubnetAsync(SubnetName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteSubnetAsync(SubnetName name, CancellationToken cancellationToken)

Deletes a single Subnet.

Parameters
Name Description
name SubnetName

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
SubnetName name = SubnetName.FromProjectLocationZoneSubnet("[PROJECT]", "[LOCATION]", "[ZONE]", "[SUBNET]");
// Make the request
Operation<Empty, OperationMetadata> response = await edgeNetworkClient.DeleteSubnetAsync(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 edgeNetworkClient.PollOnceDeleteSubnetAsync(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;
}

DeleteSubnetAsync(string, CallSettings)

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

Deletes a single Subnet.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]/subnets/[SUBNET]";
// Make the request
Operation<Empty, OperationMetadata> response = await edgeNetworkClient.DeleteSubnetAsync(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 edgeNetworkClient.PollOnceDeleteSubnetAsync(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;
}

DeleteSubnetAsync(string, CancellationToken)

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

Deletes a single Subnet.

Parameters
Name Description
name string

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]/subnets/[SUBNET]";
// Make the request
Operation<Empty, OperationMetadata> response = await edgeNetworkClient.DeleteSubnetAsync(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 edgeNetworkClient.PollOnceDeleteSubnetAsync(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;
}

DiagnoseInterconnect(DiagnoseInterconnectRequest, CallSettings)

public virtual DiagnoseInterconnectResponse DiagnoseInterconnect(DiagnoseInterconnectRequest request, CallSettings callSettings = null)

Get the diagnostics of a single interconnect resource.

Parameters
Name Description
request DiagnoseInterconnectRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
DiagnoseInterconnectResponse

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
DiagnoseInterconnectRequest request = new DiagnoseInterconnectRequest
{
    InterconnectName = InterconnectName.FromProjectLocationZoneInterconnect("[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT]"),
};
// Make the request
DiagnoseInterconnectResponse response = edgeNetworkClient.DiagnoseInterconnect(request);

DiagnoseInterconnect(InterconnectName, CallSettings)

public virtual DiagnoseInterconnectResponse DiagnoseInterconnect(InterconnectName name, CallSettings callSettings = null)

Get the diagnostics of a single interconnect resource.

Parameters
Name Description
name InterconnectName

Required. The name of the interconnect resource.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
DiagnoseInterconnectResponse

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
InterconnectName name = InterconnectName.FromProjectLocationZoneInterconnect("[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT]");
// Make the request
DiagnoseInterconnectResponse response = edgeNetworkClient.DiagnoseInterconnect(name);

DiagnoseInterconnect(string, CallSettings)

public virtual DiagnoseInterconnectResponse DiagnoseInterconnect(string name, CallSettings callSettings = null)

Get the diagnostics of a single interconnect resource.

Parameters
Name Description
name string

Required. The name of the interconnect resource.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
DiagnoseInterconnectResponse

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]/interconnects/[INTERCONNECT]";
// Make the request
DiagnoseInterconnectResponse response = edgeNetworkClient.DiagnoseInterconnect(name);

DiagnoseInterconnectAsync(DiagnoseInterconnectRequest, CallSettings)

public virtual Task<DiagnoseInterconnectResponse> DiagnoseInterconnectAsync(DiagnoseInterconnectRequest request, CallSettings callSettings = null)

Get the diagnostics of a single interconnect resource.

Parameters
Name Description
request DiagnoseInterconnectRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskDiagnoseInterconnectResponse

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
DiagnoseInterconnectRequest request = new DiagnoseInterconnectRequest
{
    InterconnectName = InterconnectName.FromProjectLocationZoneInterconnect("[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT]"),
};
// Make the request
DiagnoseInterconnectResponse response = await edgeNetworkClient.DiagnoseInterconnectAsync(request);

DiagnoseInterconnectAsync(DiagnoseInterconnectRequest, CancellationToken)

public virtual Task<DiagnoseInterconnectResponse> DiagnoseInterconnectAsync(DiagnoseInterconnectRequest request, CancellationToken cancellationToken)

Get the diagnostics of a single interconnect resource.

Parameters
Name Description
request DiagnoseInterconnectRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskDiagnoseInterconnectResponse

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
DiagnoseInterconnectRequest request = new DiagnoseInterconnectRequest
{
    InterconnectName = InterconnectName.FromProjectLocationZoneInterconnect("[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT]"),
};
// Make the request
DiagnoseInterconnectResponse response = await edgeNetworkClient.DiagnoseInterconnectAsync(request);

DiagnoseInterconnectAsync(InterconnectName, CallSettings)

public virtual Task<DiagnoseInterconnectResponse> DiagnoseInterconnectAsync(InterconnectName name, CallSettings callSettings = null)

Get the diagnostics of a single interconnect resource.

Parameters
Name Description
name InterconnectName

Required. The name of the interconnect resource.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskDiagnoseInterconnectResponse

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
InterconnectName name = InterconnectName.FromProjectLocationZoneInterconnect("[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT]");
// Make the request
DiagnoseInterconnectResponse response = await edgeNetworkClient.DiagnoseInterconnectAsync(name);

DiagnoseInterconnectAsync(InterconnectName, CancellationToken)

public virtual Task<DiagnoseInterconnectResponse> DiagnoseInterconnectAsync(InterconnectName name, CancellationToken cancellationToken)

Get the diagnostics of a single interconnect resource.

Parameters
Name Description
name InterconnectName

Required. The name of the interconnect resource.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskDiagnoseInterconnectResponse

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
InterconnectName name = InterconnectName.FromProjectLocationZoneInterconnect("[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT]");
// Make the request
DiagnoseInterconnectResponse response = await edgeNetworkClient.DiagnoseInterconnectAsync(name);

DiagnoseInterconnectAsync(string, CallSettings)

public virtual Task<DiagnoseInterconnectResponse> DiagnoseInterconnectAsync(string name, CallSettings callSettings = null)

Get the diagnostics of a single interconnect resource.

Parameters
Name Description
name string

Required. The name of the interconnect resource.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskDiagnoseInterconnectResponse

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]/interconnects/[INTERCONNECT]";
// Make the request
DiagnoseInterconnectResponse response = await edgeNetworkClient.DiagnoseInterconnectAsync(name);

DiagnoseInterconnectAsync(string, CancellationToken)

public virtual Task<DiagnoseInterconnectResponse> DiagnoseInterconnectAsync(string name, CancellationToken cancellationToken)

Get the diagnostics of a single interconnect resource.

Parameters
Name Description
name string

Required. The name of the interconnect resource.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskDiagnoseInterconnectResponse

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]/interconnects/[INTERCONNECT]";
// Make the request
DiagnoseInterconnectResponse response = await edgeNetworkClient.DiagnoseInterconnectAsync(name);

DiagnoseNetwork(DiagnoseNetworkRequest, CallSettings)

public virtual DiagnoseNetworkResponse DiagnoseNetwork(DiagnoseNetworkRequest request, CallSettings callSettings = null)

Get the diagnostics of a single network resource.

Parameters
Name Description
request DiagnoseNetworkRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
DiagnoseNetworkResponse

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
DiagnoseNetworkRequest request = new DiagnoseNetworkRequest
{
    NetworkName = NetworkName.FromProjectLocationZoneNetwork("[PROJECT]", "[LOCATION]", "[ZONE]", "[NETWORK]"),
};
// Make the request
DiagnoseNetworkResponse response = edgeNetworkClient.DiagnoseNetwork(request);

DiagnoseNetwork(NetworkName, CallSettings)

public virtual DiagnoseNetworkResponse DiagnoseNetwork(NetworkName name, CallSettings callSettings = null)

Get the diagnostics of a single network resource.

Parameters
Name Description
name NetworkName

Required. The name of the network resource.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
DiagnoseNetworkResponse

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
NetworkName name = NetworkName.FromProjectLocationZoneNetwork("[PROJECT]", "[LOCATION]", "[ZONE]", "[NETWORK]");
// Make the request
DiagnoseNetworkResponse response = edgeNetworkClient.DiagnoseNetwork(name);

DiagnoseNetwork(string, CallSettings)

public virtual DiagnoseNetworkResponse DiagnoseNetwork(string name, CallSettings callSettings = null)

Get the diagnostics of a single network resource.

Parameters
Name Description
name string

Required. The name of the network resource.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
DiagnoseNetworkResponse

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]/networks/[NETWORK]";
// Make the request
DiagnoseNetworkResponse response = edgeNetworkClient.DiagnoseNetwork(name);

DiagnoseNetworkAsync(DiagnoseNetworkRequest, CallSettings)

public virtual Task<DiagnoseNetworkResponse> DiagnoseNetworkAsync(DiagnoseNetworkRequest request, CallSettings callSettings = null)

Get the diagnostics of a single network resource.

Parameters
Name Description
request DiagnoseNetworkRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskDiagnoseNetworkResponse

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
DiagnoseNetworkRequest request = new DiagnoseNetworkRequest
{
    NetworkName = NetworkName.FromProjectLocationZoneNetwork("[PROJECT]", "[LOCATION]", "[ZONE]", "[NETWORK]"),
};
// Make the request
DiagnoseNetworkResponse response = await edgeNetworkClient.DiagnoseNetworkAsync(request);

DiagnoseNetworkAsync(DiagnoseNetworkRequest, CancellationToken)

public virtual Task<DiagnoseNetworkResponse> DiagnoseNetworkAsync(DiagnoseNetworkRequest request, CancellationToken cancellationToken)

Get the diagnostics of a single network resource.

Parameters
Name Description
request DiagnoseNetworkRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskDiagnoseNetworkResponse

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
DiagnoseNetworkRequest request = new DiagnoseNetworkRequest
{
    NetworkName = NetworkName.FromProjectLocationZoneNetwork("[PROJECT]", "[LOCATION]", "[ZONE]", "[NETWORK]"),
};
// Make the request
DiagnoseNetworkResponse response = await edgeNetworkClient.DiagnoseNetworkAsync(request);

DiagnoseNetworkAsync(NetworkName, CallSettings)

public virtual Task<DiagnoseNetworkResponse> DiagnoseNetworkAsync(NetworkName name, CallSettings callSettings = null)

Get the diagnostics of a single network resource.

Parameters
Name Description
name NetworkName

Required. The name of the network resource.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskDiagnoseNetworkResponse

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
NetworkName name = NetworkName.FromProjectLocationZoneNetwork("[PROJECT]", "[LOCATION]", "[ZONE]", "[NETWORK]");
// Make the request
DiagnoseNetworkResponse response = await edgeNetworkClient.DiagnoseNetworkAsync(name);

DiagnoseNetworkAsync(NetworkName, CancellationToken)

public virtual Task<DiagnoseNetworkResponse> DiagnoseNetworkAsync(NetworkName name, CancellationToken cancellationToken)

Get the diagnostics of a single network resource.

Parameters
Name Description
name NetworkName

Required. The name of the network resource.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskDiagnoseNetworkResponse

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
NetworkName name = NetworkName.FromProjectLocationZoneNetwork("[PROJECT]", "[LOCATION]", "[ZONE]", "[NETWORK]");
// Make the request
DiagnoseNetworkResponse response = await edgeNetworkClient.DiagnoseNetworkAsync(name);

DiagnoseNetworkAsync(string, CallSettings)

public virtual Task<DiagnoseNetworkResponse> DiagnoseNetworkAsync(string name, CallSettings callSettings = null)

Get the diagnostics of a single network resource.

Parameters
Name Description
name string

Required. The name of the network resource.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskDiagnoseNetworkResponse

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]/networks/[NETWORK]";
// Make the request
DiagnoseNetworkResponse response = await edgeNetworkClient.DiagnoseNetworkAsync(name);

DiagnoseNetworkAsync(string, CancellationToken)

public virtual Task<DiagnoseNetworkResponse> DiagnoseNetworkAsync(string name, CancellationToken cancellationToken)

Get the diagnostics of a single network resource.

Parameters
Name Description
name string

Required. The name of the network resource.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskDiagnoseNetworkResponse

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]/networks/[NETWORK]";
// Make the request
DiagnoseNetworkResponse response = await edgeNetworkClient.DiagnoseNetworkAsync(name);

DiagnoseRouter(DiagnoseRouterRequest, CallSettings)

public virtual DiagnoseRouterResponse DiagnoseRouter(DiagnoseRouterRequest request, CallSettings callSettings = null)

Get the diagnostics of a single router resource.

Parameters
Name Description
request DiagnoseRouterRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
DiagnoseRouterResponse

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
DiagnoseRouterRequest request = new DiagnoseRouterRequest
{
    RouterName = RouterName.FromProjectLocationZoneRouter("[PROJECT]", "[LOCATION]", "[ZONE]", "[ROUTER]"),
};
// Make the request
DiagnoseRouterResponse response = edgeNetworkClient.DiagnoseRouter(request);

DiagnoseRouter(RouterName, CallSettings)

public virtual DiagnoseRouterResponse DiagnoseRouter(RouterName name, CallSettings callSettings = null)

Get the diagnostics of a single router resource.

Parameters
Name Description
name RouterName

Required. The name of the router resource.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
DiagnoseRouterResponse

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
RouterName name = RouterName.FromProjectLocationZoneRouter("[PROJECT]", "[LOCATION]", "[ZONE]", "[ROUTER]");
// Make the request
DiagnoseRouterResponse response = edgeNetworkClient.DiagnoseRouter(name);

DiagnoseRouter(string, CallSettings)

public virtual DiagnoseRouterResponse DiagnoseRouter(string name, CallSettings callSettings = null)

Get the diagnostics of a single router resource.

Parameters
Name Description
name string

Required. The name of the router resource.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
DiagnoseRouterResponse

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]/routers/[ROUTER]";
// Make the request
DiagnoseRouterResponse response = edgeNetworkClient.DiagnoseRouter(name);

DiagnoseRouterAsync(DiagnoseRouterRequest, CallSettings)

public virtual Task<DiagnoseRouterResponse> DiagnoseRouterAsync(DiagnoseRouterRequest request, CallSettings callSettings = null)

Get the diagnostics of a single router resource.

Parameters
Name Description
request DiagnoseRouterRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskDiagnoseRouterResponse

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
DiagnoseRouterRequest request = new DiagnoseRouterRequest
{
    RouterName = RouterName.FromProjectLocationZoneRouter("[PROJECT]", "[LOCATION]", "[ZONE]", "[ROUTER]"),
};
// Make the request
DiagnoseRouterResponse response = await edgeNetworkClient.DiagnoseRouterAsync(request);

DiagnoseRouterAsync(DiagnoseRouterRequest, CancellationToken)

public virtual Task<DiagnoseRouterResponse> DiagnoseRouterAsync(DiagnoseRouterRequest request, CancellationToken cancellationToken)

Get the diagnostics of a single router resource.

Parameters
Name Description
request DiagnoseRouterRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskDiagnoseRouterResponse

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
DiagnoseRouterRequest request = new DiagnoseRouterRequest
{
    RouterName = RouterName.FromProjectLocationZoneRouter("[PROJECT]", "[LOCATION]", "[ZONE]", "[ROUTER]"),
};
// Make the request
DiagnoseRouterResponse response = await edgeNetworkClient.DiagnoseRouterAsync(request);

DiagnoseRouterAsync(RouterName, CallSettings)

public virtual Task<DiagnoseRouterResponse> DiagnoseRouterAsync(RouterName name, CallSettings callSettings = null)

Get the diagnostics of a single router resource.

Parameters
Name Description
name RouterName

Required. The name of the router resource.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskDiagnoseRouterResponse

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
RouterName name = RouterName.FromProjectLocationZoneRouter("[PROJECT]", "[LOCATION]", "[ZONE]", "[ROUTER]");
// Make the request
DiagnoseRouterResponse response = await edgeNetworkClient.DiagnoseRouterAsync(name);

DiagnoseRouterAsync(RouterName, CancellationToken)

public virtual Task<DiagnoseRouterResponse> DiagnoseRouterAsync(RouterName name, CancellationToken cancellationToken)

Get the diagnostics of a single router resource.

Parameters
Name Description
name RouterName

Required. The name of the router resource.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskDiagnoseRouterResponse

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
RouterName name = RouterName.FromProjectLocationZoneRouter("[PROJECT]", "[LOCATION]", "[ZONE]", "[ROUTER]");
// Make the request
DiagnoseRouterResponse response = await edgeNetworkClient.DiagnoseRouterAsync(name);

DiagnoseRouterAsync(string, CallSettings)

public virtual Task<DiagnoseRouterResponse> DiagnoseRouterAsync(string name, CallSettings callSettings = null)

Get the diagnostics of a single router resource.

Parameters
Name Description
name string

Required. The name of the router resource.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskDiagnoseRouterResponse

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]/routers/[ROUTER]";
// Make the request
DiagnoseRouterResponse response = await edgeNetworkClient.DiagnoseRouterAsync(name);

DiagnoseRouterAsync(string, CancellationToken)

public virtual Task<DiagnoseRouterResponse> DiagnoseRouterAsync(string name, CancellationToken cancellationToken)

Get the diagnostics of a single router resource.

Parameters
Name Description
name string

Required. The name of the router resource.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskDiagnoseRouterResponse

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]/routers/[ROUTER]";
// Make the request
DiagnoseRouterResponse response = await edgeNetworkClient.DiagnoseRouterAsync(name);

GetInterconnect(GetInterconnectRequest, CallSettings)

public virtual Interconnect GetInterconnect(GetInterconnectRequest request, CallSettings callSettings = null)

Gets details of a single Interconnect.

Parameters
Name Description
request GetInterconnectRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Interconnect

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
GetInterconnectRequest request = new GetInterconnectRequest
{
    InterconnectName = InterconnectName.FromProjectLocationZoneInterconnect("[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT]"),
};
// Make the request
Interconnect response = edgeNetworkClient.GetInterconnect(request);

GetInterconnect(InterconnectName, CallSettings)

public virtual Interconnect GetInterconnect(InterconnectName name, CallSettings callSettings = null)

Gets details of a single Interconnect.

Parameters
Name Description
name InterconnectName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Interconnect

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
InterconnectName name = InterconnectName.FromProjectLocationZoneInterconnect("[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT]");
// Make the request
Interconnect response = edgeNetworkClient.GetInterconnect(name);

GetInterconnect(string, CallSettings)

public virtual Interconnect GetInterconnect(string name, CallSettings callSettings = null)

Gets details of a single Interconnect.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Interconnect

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]/interconnects/[INTERCONNECT]";
// Make the request
Interconnect response = edgeNetworkClient.GetInterconnect(name);

GetInterconnectAsync(GetInterconnectRequest, CallSettings)

public virtual Task<Interconnect> GetInterconnectAsync(GetInterconnectRequest request, CallSettings callSettings = null)

Gets details of a single Interconnect.

Parameters
Name Description
request GetInterconnectRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskInterconnect

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
GetInterconnectRequest request = new GetInterconnectRequest
{
    InterconnectName = InterconnectName.FromProjectLocationZoneInterconnect("[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT]"),
};
// Make the request
Interconnect response = await edgeNetworkClient.GetInterconnectAsync(request);

GetInterconnectAsync(GetInterconnectRequest, CancellationToken)

public virtual Task<Interconnect> GetInterconnectAsync(GetInterconnectRequest request, CancellationToken cancellationToken)

Gets details of a single Interconnect.

Parameters
Name Description
request GetInterconnectRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskInterconnect

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
GetInterconnectRequest request = new GetInterconnectRequest
{
    InterconnectName = InterconnectName.FromProjectLocationZoneInterconnect("[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT]"),
};
// Make the request
Interconnect response = await edgeNetworkClient.GetInterconnectAsync(request);

GetInterconnectAsync(InterconnectName, CallSettings)

public virtual Task<Interconnect> GetInterconnectAsync(InterconnectName name, CallSettings callSettings = null)

Gets details of a single Interconnect.

Parameters
Name Description
name InterconnectName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskInterconnect

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
InterconnectName name = InterconnectName.FromProjectLocationZoneInterconnect("[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT]");
// Make the request
Interconnect response = await edgeNetworkClient.GetInterconnectAsync(name);

GetInterconnectAsync(InterconnectName, CancellationToken)

public virtual Task<Interconnect> GetInterconnectAsync(InterconnectName name, CancellationToken cancellationToken)

Gets details of a single Interconnect.

Parameters
Name Description
name InterconnectName

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskInterconnect

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
InterconnectName name = InterconnectName.FromProjectLocationZoneInterconnect("[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT]");
// Make the request
Interconnect response = await edgeNetworkClient.GetInterconnectAsync(name);

GetInterconnectAsync(string, CallSettings)

public virtual Task<Interconnect> GetInterconnectAsync(string name, CallSettings callSettings = null)

Gets details of a single Interconnect.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskInterconnect

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]/interconnects/[INTERCONNECT]";
// Make the request
Interconnect response = await edgeNetworkClient.GetInterconnectAsync(name);

GetInterconnectAsync(string, CancellationToken)

public virtual Task<Interconnect> GetInterconnectAsync(string name, CancellationToken cancellationToken)

Gets details of a single Interconnect.

Parameters
Name Description
name string

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskInterconnect

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]/interconnects/[INTERCONNECT]";
// Make the request
Interconnect response = await edgeNetworkClient.GetInterconnectAsync(name);

GetInterconnectAttachment(GetInterconnectAttachmentRequest, CallSettings)

public virtual InterconnectAttachment GetInterconnectAttachment(GetInterconnectAttachmentRequest request, CallSettings callSettings = null)

Gets details of a single InterconnectAttachment.

Parameters
Name Description
request GetInterconnectAttachmentRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
InterconnectAttachment

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
GetInterconnectAttachmentRequest request = new GetInterconnectAttachmentRequest
{
    InterconnectAttachmentName = InterconnectAttachmentName.FromProjectLocationZoneInterconnectAttachment("[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT_ATTACHMENT]"),
};
// Make the request
InterconnectAttachment response = edgeNetworkClient.GetInterconnectAttachment(request);

GetInterconnectAttachment(InterconnectAttachmentName, CallSettings)

public virtual InterconnectAttachment GetInterconnectAttachment(InterconnectAttachmentName name, CallSettings callSettings = null)

Gets details of a single InterconnectAttachment.

Parameters
Name Description
name InterconnectAttachmentName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
InterconnectAttachment

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
InterconnectAttachmentName name = InterconnectAttachmentName.FromProjectLocationZoneInterconnectAttachment("[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT_ATTACHMENT]");
// Make the request
InterconnectAttachment response = edgeNetworkClient.GetInterconnectAttachment(name);

GetInterconnectAttachment(string, CallSettings)

public virtual InterconnectAttachment GetInterconnectAttachment(string name, CallSettings callSettings = null)

Gets details of a single InterconnectAttachment.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
InterconnectAttachment

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]/interconnectAttachments/[INTERCONNECT_ATTACHMENT]";
// Make the request
InterconnectAttachment response = edgeNetworkClient.GetInterconnectAttachment(name);

GetInterconnectAttachmentAsync(GetInterconnectAttachmentRequest, CallSettings)

public virtual Task<InterconnectAttachment> GetInterconnectAttachmentAsync(GetInterconnectAttachmentRequest request, CallSettings callSettings = null)

Gets details of a single InterconnectAttachment.

Parameters
Name Description
request GetInterconnectAttachmentRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskInterconnectAttachment

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
GetInterconnectAttachmentRequest request = new GetInterconnectAttachmentRequest
{
    InterconnectAttachmentName = InterconnectAttachmentName.FromProjectLocationZoneInterconnectAttachment("[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT_ATTACHMENT]"),
};
// Make the request
InterconnectAttachment response = await edgeNetworkClient.GetInterconnectAttachmentAsync(request);

GetInterconnectAttachmentAsync(GetInterconnectAttachmentRequest, CancellationToken)

public virtual Task<InterconnectAttachment> GetInterconnectAttachmentAsync(GetInterconnectAttachmentRequest request, CancellationToken cancellationToken)

Gets details of a single InterconnectAttachment.

Parameters
Name Description
request GetInterconnectAttachmentRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskInterconnectAttachment

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
GetInterconnectAttachmentRequest request = new GetInterconnectAttachmentRequest
{
    InterconnectAttachmentName = InterconnectAttachmentName.FromProjectLocationZoneInterconnectAttachment("[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT_ATTACHMENT]"),
};
// Make the request
InterconnectAttachment response = await edgeNetworkClient.GetInterconnectAttachmentAsync(request);

GetInterconnectAttachmentAsync(InterconnectAttachmentName, CallSettings)

public virtual Task<InterconnectAttachment> GetInterconnectAttachmentAsync(InterconnectAttachmentName name, CallSettings callSettings = null)

Gets details of a single InterconnectAttachment.

Parameters
Name Description
name InterconnectAttachmentName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskInterconnectAttachment

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
InterconnectAttachmentName name = InterconnectAttachmentName.FromProjectLocationZoneInterconnectAttachment("[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT_ATTACHMENT]");
// Make the request
InterconnectAttachment response = await edgeNetworkClient.GetInterconnectAttachmentAsync(name);

GetInterconnectAttachmentAsync(InterconnectAttachmentName, CancellationToken)

public virtual Task<InterconnectAttachment> GetInterconnectAttachmentAsync(InterconnectAttachmentName name, CancellationToken cancellationToken)

Gets details of a single InterconnectAttachment.

Parameters
Name Description
name InterconnectAttachmentName

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskInterconnectAttachment

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
InterconnectAttachmentName name = InterconnectAttachmentName.FromProjectLocationZoneInterconnectAttachment("[PROJECT]", "[LOCATION]", "[ZONE]", "[INTERCONNECT_ATTACHMENT]");
// Make the request
InterconnectAttachment response = await edgeNetworkClient.GetInterconnectAttachmentAsync(name);

GetInterconnectAttachmentAsync(string, CallSettings)

public virtual Task<InterconnectAttachment> GetInterconnectAttachmentAsync(string name, CallSettings callSettings = null)

Gets details of a single InterconnectAttachment.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskInterconnectAttachment

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]/interconnectAttachments/[INTERCONNECT_ATTACHMENT]";
// Make the request
InterconnectAttachment response = await edgeNetworkClient.GetInterconnectAttachmentAsync(name);

GetInterconnectAttachmentAsync(string, CancellationToken)

public virtual Task<InterconnectAttachment> GetInterconnectAttachmentAsync(string name, CancellationToken cancellationToken)

Gets details of a single InterconnectAttachment.

Parameters
Name Description
name string

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskInterconnectAttachment

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]/interconnectAttachments/[INTERCONNECT_ATTACHMENT]";
// Make the request
InterconnectAttachment response = await edgeNetworkClient.GetInterconnectAttachmentAsync(name);

GetNetwork(GetNetworkRequest, CallSettings)

public virtual Network GetNetwork(GetNetworkRequest request, CallSettings callSettings = null)

Gets details of a single Network.

Parameters
Name Description
request GetNetworkRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Network

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
GetNetworkRequest request = new GetNetworkRequest
{
    NetworkName = NetworkName.FromProjectLocationZoneNetwork("[PROJECT]", "[LOCATION]", "[ZONE]", "[NETWORK]"),
};
// Make the request
Network response = edgeNetworkClient.GetNetwork(request);

GetNetwork(NetworkName, CallSettings)

public virtual Network GetNetwork(NetworkName name, CallSettings callSettings = null)

Gets details of a single Network.

Parameters
Name Description
name NetworkName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Network

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
NetworkName name = NetworkName.FromProjectLocationZoneNetwork("[PROJECT]", "[LOCATION]", "[ZONE]", "[NETWORK]");
// Make the request
Network response = edgeNetworkClient.GetNetwork(name);

GetNetwork(string, CallSettings)

public virtual Network GetNetwork(string name, CallSettings callSettings = null)

Gets details of a single Network.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Network

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]/networks/[NETWORK]";
// Make the request
Network response = edgeNetworkClient.GetNetwork(name);

GetNetworkAsync(GetNetworkRequest, CallSettings)

public virtual Task<Network> GetNetworkAsync(GetNetworkRequest request, CallSettings callSettings = null)

Gets details of a single Network.

Parameters
Name Description
request GetNetworkRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskNetwork

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
GetNetworkRequest request = new GetNetworkRequest
{
    NetworkName = NetworkName.FromProjectLocationZoneNetwork("[PROJECT]", "[LOCATION]", "[ZONE]", "[NETWORK]"),
};
// Make the request
Network response = await edgeNetworkClient.GetNetworkAsync(request);

GetNetworkAsync(GetNetworkRequest, CancellationToken)

public virtual Task<Network> GetNetworkAsync(GetNetworkRequest request, CancellationToken cancellationToken)

Gets details of a single Network.

Parameters
Name Description
request GetNetworkRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskNetwork

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
GetNetworkRequest request = new GetNetworkRequest
{
    NetworkName = NetworkName.FromProjectLocationZoneNetwork("[PROJECT]", "[LOCATION]", "[ZONE]", "[NETWORK]"),
};
// Make the request
Network response = await edgeNetworkClient.GetNetworkAsync(request);

GetNetworkAsync(NetworkName, CallSettings)

public virtual Task<Network> GetNetworkAsync(NetworkName name, CallSettings callSettings = null)

Gets details of a single Network.

Parameters
Name Description
name NetworkName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskNetwork

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
NetworkName name = NetworkName.FromProjectLocationZoneNetwork("[PROJECT]", "[LOCATION]", "[ZONE]", "[NETWORK]");
// Make the request
Network response = await edgeNetworkClient.GetNetworkAsync(name);

GetNetworkAsync(NetworkName, CancellationToken)

public virtual Task<Network> GetNetworkAsync(NetworkName name, CancellationToken cancellationToken)

Gets details of a single Network.

Parameters
Name Description
name NetworkName

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskNetwork

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
NetworkName name = NetworkName.FromProjectLocationZoneNetwork("[PROJECT]", "[LOCATION]", "[ZONE]", "[NETWORK]");
// Make the request
Network response = await edgeNetworkClient.GetNetworkAsync(name);

GetNetworkAsync(string, CallSettings)

public virtual Task<Network> GetNetworkAsync(string name, CallSettings callSettings = null)

Gets details of a single Network.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskNetwork

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]/networks/[NETWORK]";
// Make the request
Network response = await edgeNetworkClient.GetNetworkAsync(name);

GetNetworkAsync(string, CancellationToken)

public virtual Task<Network> GetNetworkAsync(string name, CancellationToken cancellationToken)

Gets details of a single Network.

Parameters
Name Description
name string

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskNetwork

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]/networks/[NETWORK]";
// Make the request
Network response = await edgeNetworkClient.GetNetworkAsync(name);

GetRouter(GetRouterRequest, CallSettings)

public virtual Router GetRouter(GetRouterRequest request, CallSettings callSettings = null)

Gets details of a single Router.

Parameters
Name Description
request GetRouterRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Router

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
GetRouterRequest request = new GetRouterRequest
{
    RouterName = RouterName.FromProjectLocationZoneRouter("[PROJECT]", "[LOCATION]", "[ZONE]", "[ROUTER]"),
};
// Make the request
Router response = edgeNetworkClient.GetRouter(request);

GetRouter(RouterName, CallSettings)

public virtual Router GetRouter(RouterName name, CallSettings callSettings = null)

Gets details of a single Router.

Parameters
Name Description
name RouterName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Router

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
RouterName name = RouterName.FromProjectLocationZoneRouter("[PROJECT]", "[LOCATION]", "[ZONE]", "[ROUTER]");
// Make the request
Router response = edgeNetworkClient.GetRouter(name);

GetRouter(string, CallSettings)

public virtual Router GetRouter(string name, CallSettings callSettings = null)

Gets details of a single Router.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Router

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]/routers/[ROUTER]";
// Make the request
Router response = edgeNetworkClient.GetRouter(name);

GetRouterAsync(GetRouterRequest, CallSettings)

public virtual Task<Router> GetRouterAsync(GetRouterRequest request, CallSettings callSettings = null)

Gets details of a single Router.

Parameters
Name Description
request GetRouterRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskRouter

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
GetRouterRequest request = new GetRouterRequest
{
    RouterName = RouterName.FromProjectLocationZoneRouter("[PROJECT]", "[LOCATION]", "[ZONE]", "[ROUTER]"),
};
// Make the request
Router response = await edgeNetworkClient.GetRouterAsync(request);

GetRouterAsync(GetRouterRequest, CancellationToken)

public virtual Task<Router> GetRouterAsync(GetRouterRequest request, CancellationToken cancellationToken)

Gets details of a single Router.

Parameters
Name Description
request GetRouterRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskRouter

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
GetRouterRequest request = new GetRouterRequest
{
    RouterName = RouterName.FromProjectLocationZoneRouter("[PROJECT]", "[LOCATION]", "[ZONE]", "[ROUTER]"),
};
// Make the request
Router response = await edgeNetworkClient.GetRouterAsync(request);

GetRouterAsync(RouterName, CallSettings)

public virtual Task<Router> GetRouterAsync(RouterName name, CallSettings callSettings = null)

Gets details of a single Router.

Parameters
Name Description
name RouterName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskRouter

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
RouterName name = RouterName.FromProjectLocationZoneRouter("[PROJECT]", "[LOCATION]", "[ZONE]", "[ROUTER]");
// Make the request
Router response = await edgeNetworkClient.GetRouterAsync(name);

GetRouterAsync(RouterName, CancellationToken)

public virtual Task<Router> GetRouterAsync(RouterName name, CancellationToken cancellationToken)

Gets details of a single Router.

Parameters
Name Description
name RouterName

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskRouter

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
RouterName name = RouterName.FromProjectLocationZoneRouter("[PROJECT]", "[LOCATION]", "[ZONE]", "[ROUTER]");
// Make the request
Router response = await edgeNetworkClient.GetRouterAsync(name);

GetRouterAsync(string, CallSettings)

public virtual Task<Router> GetRouterAsync(string name, CallSettings callSettings = null)

Gets details of a single Router.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskRouter

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]/routers/[ROUTER]";
// Make the request
Router response = await edgeNetworkClient.GetRouterAsync(name);

GetRouterAsync(string, CancellationToken)

public virtual Task<Router> GetRouterAsync(string name, CancellationToken cancellationToken)

Gets details of a single Router.

Parameters
Name Description
name string

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskRouter

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]/routers/[ROUTER]";
// Make the request
Router response = await edgeNetworkClient.GetRouterAsync(name);

GetSubnet(GetSubnetRequest, CallSettings)

public virtual Subnet GetSubnet(GetSubnetRequest request, CallSettings callSettings = null)

Gets details of a single Subnet.

Parameters
Name Description
request GetSubnetRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Subnet

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
GetSubnetRequest request = new GetSubnetRequest
{
    SubnetName = SubnetName.FromProjectLocationZoneSubnet("[PROJECT]", "[LOCATION]", "[ZONE]", "[SUBNET]"),
};
// Make the request
Subnet response = edgeNetworkClient.GetSubnet(request);

GetSubnet(SubnetName, CallSettings)

public virtual Subnet GetSubnet(SubnetName name, CallSettings callSettings = null)

Gets details of a single Subnet.

Parameters
Name Description
name SubnetName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Subnet

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
SubnetName name = SubnetName.FromProjectLocationZoneSubnet("[PROJECT]", "[LOCATION]", "[ZONE]", "[SUBNET]");
// Make the request
Subnet response = edgeNetworkClient.GetSubnet(name);

GetSubnet(string, CallSettings)

public virtual Subnet GetSubnet(string name, CallSettings callSettings = null)

Gets details of a single Subnet.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Subnet

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]/subnets/[SUBNET]";
// Make the request
Subnet response = edgeNetworkClient.GetSubnet(name);

GetSubnetAsync(GetSubnetRequest, CallSettings)

public virtual Task<Subnet> GetSubnetAsync(GetSubnetRequest request, CallSettings callSettings = null)

Gets details of a single Subnet.

Parameters
Name Description
request GetSubnetRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSubnet

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
GetSubnetRequest request = new GetSubnetRequest
{
    SubnetName = SubnetName.FromProjectLocationZoneSubnet("[PROJECT]", "[LOCATION]", "[ZONE]", "[SUBNET]"),
};
// Make the request
Subnet response = await edgeNetworkClient.GetSubnetAsync(request);

GetSubnetAsync(GetSubnetRequest, CancellationToken)

public virtual Task<Subnet> GetSubnetAsync(GetSubnetRequest request, CancellationToken cancellationToken)

Gets details of a single Subnet.

Parameters
Name Description
request GetSubnetRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskSubnet

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
GetSubnetRequest request = new GetSubnetRequest
{
    SubnetName = SubnetName.FromProjectLocationZoneSubnet("[PROJECT]", "[LOCATION]", "[ZONE]", "[SUBNET]"),
};
// Make the request
Subnet response = await edgeNetworkClient.GetSubnetAsync(request);

GetSubnetAsync(SubnetName, CallSettings)

public virtual Task<Subnet> GetSubnetAsync(SubnetName name, CallSettings callSettings = null)

Gets details of a single Subnet.

Parameters
Name Description
name SubnetName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSubnet

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
SubnetName name = SubnetName.FromProjectLocationZoneSubnet("[PROJECT]", "[LOCATION]", "[ZONE]", "[SUBNET]");
// Make the request
Subnet response = await edgeNetworkClient.GetSubnetAsync(name);

GetSubnetAsync(SubnetName, CancellationToken)

public virtual Task<Subnet> GetSubnetAsync(SubnetName name, CancellationToken cancellationToken)

Gets details of a single Subnet.

Parameters
Name Description
name SubnetName

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskSubnet

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
SubnetName name = SubnetName.FromProjectLocationZoneSubnet("[PROJECT]", "[LOCATION]", "[ZONE]", "[SUBNET]");
// Make the request
Subnet response = await edgeNetworkClient.GetSubnetAsync(name);

GetSubnetAsync(string, CallSettings)

public virtual Task<Subnet> GetSubnetAsync(string name, CallSettings callSettings = null)

Gets details of a single Subnet.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSubnet

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]/subnets/[SUBNET]";
// Make the request
Subnet response = await edgeNetworkClient.GetSubnetAsync(name);

GetSubnetAsync(string, CancellationToken)

public virtual Task<Subnet> GetSubnetAsync(string name, CancellationToken cancellationToken)

Gets details of a single Subnet.

Parameters
Name Description
name string

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskSubnet

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]/subnets/[SUBNET]";
// Make the request
Subnet response = await edgeNetworkClient.GetSubnetAsync(name);

GetZone(GetZoneRequest, CallSettings)

[Obsolete]
public virtual Zone GetZone(GetZoneRequest request, CallSettings callSettings = null)

Deprecated: not implemented. Gets details of a single Zone.

Parameters
Name Description
request GetZoneRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Zone

The RPC response.

Example
            // Create client
            EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
            // Initialize request argument(s)
#pragma warning disable CS0612
            GetZoneRequest request = new GetZoneRequest { };
#pragma warning restore CS0612
            // Make the request
#pragma warning disable CS0612
            Zone response = edgeNetworkClient.GetZone(request);
#pragma warning restore CS0612

GetZone(ZoneName, CallSettings)

[Obsolete]
public virtual Zone GetZone(ZoneName name, CallSettings callSettings = null)

Deprecated: not implemented. Gets details of a single Zone.

Parameters
Name Description
name ZoneName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Zone

The RPC response.

Example
            // Create client
            EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
            // Initialize request argument(s)
            ZoneName name = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]");
            // Make the request
#pragma warning disable CS0612
            Zone response = edgeNetworkClient.GetZone(name);
#pragma warning restore CS0612

GetZone(string, CallSettings)

[Obsolete]
public virtual Zone GetZone(string name, CallSettings callSettings = null)

Deprecated: not implemented. Gets details of a single Zone.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Zone

The RPC response.

Example
            // Create client
            EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
            // Initialize request argument(s)
            string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]";
            // Make the request
#pragma warning disable CS0612
            Zone response = edgeNetworkClient.GetZone(name);
#pragma warning restore CS0612

GetZoneAsync(GetZoneRequest, CallSettings)

[Obsolete]
public virtual Task<Zone> GetZoneAsync(GetZoneRequest request, CallSettings callSettings = null)

Deprecated: not implemented. Gets details of a single Zone.

Parameters
Name Description
request GetZoneRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskZone

A Task containing the RPC response.

Example
            // Create client
            EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
            // Initialize request argument(s)
#pragma warning disable CS0612
            GetZoneRequest request = new GetZoneRequest { };
#pragma warning restore CS0612
            // Make the request
#pragma warning disable CS0612
            Zone response = await edgeNetworkClient.GetZoneAsync(request);
#pragma warning restore CS0612

GetZoneAsync(GetZoneRequest, CancellationToken)

[Obsolete]
public virtual Task<Zone> GetZoneAsync(GetZoneRequest request, CancellationToken cancellationToken)

Deprecated: not implemented. Gets details of a single Zone.

Parameters
Name Description
request GetZoneRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskZone

A Task containing the RPC response.

Example
            // Create client
            EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
            // Initialize request argument(s)
#pragma warning disable CS0612
            GetZoneRequest request = new GetZoneRequest { };
#pragma warning restore CS0612
            // Make the request
#pragma warning disable CS0612
            Zone response = await edgeNetworkClient.GetZoneAsync(request);
#pragma warning restore CS0612

GetZoneAsync(ZoneName, CallSettings)

[Obsolete]
public virtual Task<Zone> GetZoneAsync(ZoneName name, CallSettings callSettings = null)

Deprecated: not implemented. Gets details of a single Zone.

Parameters
Name Description
name ZoneName

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskZone

A Task containing the RPC response.

Example
            // Create client
            EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
            // Initialize request argument(s)
            ZoneName name = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]");
            // Make the request
#pragma warning disable CS0612
            Zone response = await edgeNetworkClient.GetZoneAsync(name);
#pragma warning restore CS0612

GetZoneAsync(ZoneName, CancellationToken)

[Obsolete]
public virtual Task<Zone> GetZoneAsync(ZoneName name, CancellationToken cancellationToken)

Deprecated: not implemented. Gets details of a single Zone.

Parameters
Name Description
name ZoneName

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskZone

A Task containing the RPC response.

Example
            // Create client
            EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
            // Initialize request argument(s)
            ZoneName name = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]");
            // Make the request
#pragma warning disable CS0612
            Zone response = await edgeNetworkClient.GetZoneAsync(name);
#pragma warning restore CS0612

GetZoneAsync(string, CallSettings)

[Obsolete]
public virtual Task<Zone> GetZoneAsync(string name, CallSettings callSettings = null)

Deprecated: not implemented. Gets details of a single Zone.

Parameters
Name Description
name string

Required. Name of the resource

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskZone

A Task containing the RPC response.

Example
            // Create client
            EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
            // Initialize request argument(s)
            string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]";
            // Make the request
#pragma warning disable CS0612
            Zone response = await edgeNetworkClient.GetZoneAsync(name);
#pragma warning restore CS0612

GetZoneAsync(string, CancellationToken)

[Obsolete]
public virtual Task<Zone> GetZoneAsync(string name, CancellationToken cancellationToken)

Deprecated: not implemented. Gets details of a single Zone.

Parameters
Name Description
name string

Required. Name of the resource

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskZone

A Task containing the RPC response.

Example
            // Create client
            EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
            // Initialize request argument(s)
            string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]";
            // Make the request
#pragma warning disable CS0612
            Zone response = await edgeNetworkClient.GetZoneAsync(name);
#pragma warning restore CS0612

InitializeZone(InitializeZoneRequest, CallSettings)

public virtual InitializeZoneResponse InitializeZone(InitializeZoneRequest request, CallSettings callSettings = null)

InitializeZone will initialize resources for a zone in a project.

Parameters
Name Description
request InitializeZoneRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
InitializeZoneResponse

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
InitializeZoneRequest request = new InitializeZoneRequest
{
    ZoneName = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]"),
};
// Make the request
InitializeZoneResponse response = edgeNetworkClient.InitializeZone(request);

InitializeZone(ZoneName, CallSettings)

public virtual InitializeZoneResponse InitializeZone(ZoneName name, CallSettings callSettings = null)

InitializeZone will initialize resources for a zone in a project.

Parameters
Name Description
name ZoneName

Required. The name of the zone resource.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
InitializeZoneResponse

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
ZoneName name = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]");
// Make the request
InitializeZoneResponse response = edgeNetworkClient.InitializeZone(name);

InitializeZone(string, CallSettings)

public virtual InitializeZoneResponse InitializeZone(string name, CallSettings callSettings = null)

InitializeZone will initialize resources for a zone in a project.

Parameters
Name Description
name string

Required. The name of the zone resource.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
InitializeZoneResponse

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]";
// Make the request
InitializeZoneResponse response = edgeNetworkClient.InitializeZone(name);

InitializeZoneAsync(InitializeZoneRequest, CallSettings)

public virtual Task<InitializeZoneResponse> InitializeZoneAsync(InitializeZoneRequest request, CallSettings callSettings = null)

InitializeZone will initialize resources for a zone in a project.

Parameters
Name Description
request InitializeZoneRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskInitializeZoneResponse

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
InitializeZoneRequest request = new InitializeZoneRequest
{
    ZoneName = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]"),
};
// Make the request
InitializeZoneResponse response = await edgeNetworkClient.InitializeZoneAsync(request);

InitializeZoneAsync(InitializeZoneRequest, CancellationToken)

public virtual Task<InitializeZoneResponse> InitializeZoneAsync(InitializeZoneRequest request, CancellationToken cancellationToken)

InitializeZone will initialize resources for a zone in a project.

Parameters
Name Description
request InitializeZoneRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskInitializeZoneResponse

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
InitializeZoneRequest request = new InitializeZoneRequest
{
    ZoneName = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]"),
};
// Make the request
InitializeZoneResponse response = await edgeNetworkClient.InitializeZoneAsync(request);

InitializeZoneAsync(ZoneName, CallSettings)

public virtual Task<InitializeZoneResponse> InitializeZoneAsync(ZoneName name, CallSettings callSettings = null)

InitializeZone will initialize resources for a zone in a project.

Parameters
Name Description
name ZoneName

Required. The name of the zone resource.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskInitializeZoneResponse

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
ZoneName name = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]");
// Make the request
InitializeZoneResponse response = await edgeNetworkClient.InitializeZoneAsync(name);

InitializeZoneAsync(ZoneName, CancellationToken)

public virtual Task<InitializeZoneResponse> InitializeZoneAsync(ZoneName name, CancellationToken cancellationToken)

InitializeZone will initialize resources for a zone in a project.

Parameters
Name Description
name ZoneName

Required. The name of the zone resource.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskInitializeZoneResponse

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
ZoneName name = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]");
// Make the request
InitializeZoneResponse response = await edgeNetworkClient.InitializeZoneAsync(name);

InitializeZoneAsync(string, CallSettings)

public virtual Task<InitializeZoneResponse> InitializeZoneAsync(string name, CallSettings callSettings = null)

InitializeZone will initialize resources for a zone in a project.

Parameters
Name Description
name string

Required. The name of the zone resource.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskInitializeZoneResponse

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]";
// Make the request
InitializeZoneResponse response = await edgeNetworkClient.InitializeZoneAsync(name);

InitializeZoneAsync(string, CancellationToken)

public virtual Task<InitializeZoneResponse> InitializeZoneAsync(string name, CancellationToken cancellationToken)

InitializeZone will initialize resources for a zone in a project.

Parameters
Name Description
name string

Required. The name of the zone resource.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskInitializeZoneResponse

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]";
// Make the request
InitializeZoneResponse response = await edgeNetworkClient.InitializeZoneAsync(name);

ListInterconnectAttachments(ListInterconnectAttachmentsRequest, CallSettings)

public virtual PagedEnumerable<ListInterconnectAttachmentsResponse, InterconnectAttachment> ListInterconnectAttachments(ListInterconnectAttachmentsRequest request, CallSettings callSettings = null)

Lists InterconnectAttachments in a given project and location.

Parameters
Name Description
request ListInterconnectAttachmentsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListInterconnectAttachmentsResponseInterconnectAttachment

A pageable sequence of InterconnectAttachment resources.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
ListInterconnectAttachmentsRequest request = new ListInterconnectAttachmentsRequest
{
    ParentAsZoneName = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListInterconnectAttachmentsResponse, InterconnectAttachment> response = edgeNetworkClient.ListInterconnectAttachments(request);

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

ListInterconnectAttachments(ZoneName, string, int?, CallSettings)

public virtual PagedEnumerable<ListInterconnectAttachmentsResponse, InterconnectAttachment> ListInterconnectAttachments(ZoneName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists InterconnectAttachments in a given project and location.

Parameters
Name Description
parent ZoneName

Required. Parent value for ListInterconnectAttachmentsRequest

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
PagedEnumerableListInterconnectAttachmentsResponseInterconnectAttachment

A pageable sequence of InterconnectAttachment resources.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
ZoneName parent = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]");
// Make the request
PagedEnumerable<ListInterconnectAttachmentsResponse, InterconnectAttachment> response = edgeNetworkClient.ListInterconnectAttachments(parent);

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

ListInterconnectAttachments(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListInterconnectAttachmentsResponse, InterconnectAttachment> ListInterconnectAttachments(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists InterconnectAttachments in a given project and location.

Parameters
Name Description
parent string

Required. Parent value for ListInterconnectAttachmentsRequest

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
PagedEnumerableListInterconnectAttachmentsResponseInterconnectAttachment

A pageable sequence of InterconnectAttachment resources.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]";
// Make the request
PagedEnumerable<ListInterconnectAttachmentsResponse, InterconnectAttachment> response = edgeNetworkClient.ListInterconnectAttachments(parent);

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

ListInterconnectAttachmentsAsync(ListInterconnectAttachmentsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListInterconnectAttachmentsResponse, InterconnectAttachment> ListInterconnectAttachmentsAsync(ListInterconnectAttachmentsRequest request, CallSettings callSettings = null)

Lists InterconnectAttachments in a given project and location.

Parameters
Name Description
request ListInterconnectAttachmentsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListInterconnectAttachmentsResponseInterconnectAttachment

A pageable asynchronous sequence of InterconnectAttachment resources.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
ListInterconnectAttachmentsRequest request = new ListInterconnectAttachmentsRequest
{
    ParentAsZoneName = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListInterconnectAttachmentsResponse, InterconnectAttachment> response = edgeNetworkClient.ListInterconnectAttachmentsAsync(request);

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

ListInterconnectAttachmentsAsync(ZoneName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListInterconnectAttachmentsResponse, InterconnectAttachment> ListInterconnectAttachmentsAsync(ZoneName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists InterconnectAttachments in a given project and location.

Parameters
Name Description
parent ZoneName

Required. Parent value for ListInterconnectAttachmentsRequest

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
PagedAsyncEnumerableListInterconnectAttachmentsResponseInterconnectAttachment

A pageable asynchronous sequence of InterconnectAttachment resources.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
ZoneName parent = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]");
// Make the request
PagedAsyncEnumerable<ListInterconnectAttachmentsResponse, InterconnectAttachment> response = edgeNetworkClient.ListInterconnectAttachmentsAsync(parent);

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

ListInterconnectAttachmentsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListInterconnectAttachmentsResponse, InterconnectAttachment> ListInterconnectAttachmentsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists InterconnectAttachments in a given project and location.

Parameters
Name Description
parent string

Required. Parent value for ListInterconnectAttachmentsRequest

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
PagedAsyncEnumerableListInterconnectAttachmentsResponseInterconnectAttachment

A pageable asynchronous sequence of InterconnectAttachment resources.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]";
// Make the request
PagedAsyncEnumerable<ListInterconnectAttachmentsResponse, InterconnectAttachment> response = edgeNetworkClient.ListInterconnectAttachmentsAsync(parent);

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

ListInterconnects(ListInterconnectsRequest, CallSettings)

public virtual PagedEnumerable<ListInterconnectsResponse, Interconnect> ListInterconnects(ListInterconnectsRequest request, CallSettings callSettings = null)

Lists Interconnects in a given project and location.

Parameters
Name Description
request ListInterconnectsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListInterconnectsResponseInterconnect

A pageable sequence of Interconnect resources.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
ListInterconnectsRequest request = new ListInterconnectsRequest
{
    ParentAsZoneName = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListInterconnectsResponse, Interconnect> response = edgeNetworkClient.ListInterconnects(request);

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

ListInterconnects(ZoneName, string, int?, CallSettings)

public virtual PagedEnumerable<ListInterconnectsResponse, Interconnect> ListInterconnects(ZoneName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Interconnects in a given project and location.

Parameters
Name Description
parent ZoneName

Required. Parent value for ListInterconnectsRequest

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
PagedEnumerableListInterconnectsResponseInterconnect

A pageable sequence of Interconnect resources.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
ZoneName parent = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]");
// Make the request
PagedEnumerable<ListInterconnectsResponse, Interconnect> response = edgeNetworkClient.ListInterconnects(parent);

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

ListInterconnects(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListInterconnectsResponse, Interconnect> ListInterconnects(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Interconnects in a given project and location.

Parameters
Name Description
parent string

Required. Parent value for ListInterconnectsRequest

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
PagedEnumerableListInterconnectsResponseInterconnect

A pageable sequence of Interconnect resources.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]";
// Make the request
PagedEnumerable<ListInterconnectsResponse, Interconnect> response = edgeNetworkClient.ListInterconnects(parent);

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

ListInterconnectsAsync(ListInterconnectsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListInterconnectsResponse, Interconnect> ListInterconnectsAsync(ListInterconnectsRequest request, CallSettings callSettings = null)

Lists Interconnects in a given project and location.

Parameters
Name Description
request ListInterconnectsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListInterconnectsResponseInterconnect

A pageable asynchronous sequence of Interconnect resources.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
ListInterconnectsRequest request = new ListInterconnectsRequest
{
    ParentAsZoneName = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListInterconnectsResponse, Interconnect> response = edgeNetworkClient.ListInterconnectsAsync(request);

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

ListInterconnectsAsync(ZoneName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListInterconnectsResponse, Interconnect> ListInterconnectsAsync(ZoneName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Interconnects in a given project and location.

Parameters
Name Description
parent ZoneName

Required. Parent value for ListInterconnectsRequest

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
PagedAsyncEnumerableListInterconnectsResponseInterconnect

A pageable asynchronous sequence of Interconnect resources.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
ZoneName parent = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]");
// Make the request
PagedAsyncEnumerable<ListInterconnectsResponse, Interconnect> response = edgeNetworkClient.ListInterconnectsAsync(parent);

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

ListInterconnectsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListInterconnectsResponse, Interconnect> ListInterconnectsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Interconnects in a given project and location.

Parameters
Name Description
parent string

Required. Parent value for ListInterconnectsRequest

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
PagedAsyncEnumerableListInterconnectsResponseInterconnect

A pageable asynchronous sequence of Interconnect resources.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]";
// Make the request
PagedAsyncEnumerable<ListInterconnectsResponse, Interconnect> response = edgeNetworkClient.ListInterconnectsAsync(parent);

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

ListNetworks(ListNetworksRequest, CallSettings)

public virtual PagedEnumerable<ListNetworksResponse, Network> ListNetworks(ListNetworksRequest request, CallSettings callSettings = null)

Lists Networks in a given project and location.

Parameters
Name Description
request ListNetworksRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListNetworksResponseNetwork

A pageable sequence of Network resources.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
ListNetworksRequest request = new ListNetworksRequest
{
    ParentAsZoneName = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListNetworksResponse, Network> response = edgeNetworkClient.ListNetworks(request);

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

ListNetworks(ZoneName, string, int?, CallSettings)

public virtual PagedEnumerable<ListNetworksResponse, Network> ListNetworks(ZoneName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Networks in a given project and location.

Parameters
Name Description
parent ZoneName

Required. Parent value for ListNetworksRequest

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
PagedEnumerableListNetworksResponseNetwork

A pageable sequence of Network resources.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
ZoneName parent = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]");
// Make the request
PagedEnumerable<ListNetworksResponse, Network> response = edgeNetworkClient.ListNetworks(parent);

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

ListNetworks(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListNetworksResponse, Network> ListNetworks(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Networks in a given project and location.

Parameters
Name Description
parent string

Required. Parent value for ListNetworksRequest

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
PagedEnumerableListNetworksResponseNetwork

A pageable sequence of Network resources.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]";
// Make the request
PagedEnumerable<ListNetworksResponse, Network> response = edgeNetworkClient.ListNetworks(parent);

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

ListNetworksAsync(ListNetworksRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListNetworksResponse, Network> ListNetworksAsync(ListNetworksRequest request, CallSettings callSettings = null)

Lists Networks in a given project and location.

Parameters
Name Description
request ListNetworksRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListNetworksResponseNetwork

A pageable asynchronous sequence of Network resources.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
ListNetworksRequest request = new ListNetworksRequest
{
    ParentAsZoneName = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListNetworksResponse, Network> response = edgeNetworkClient.ListNetworksAsync(request);

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

ListNetworksAsync(ZoneName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListNetworksResponse, Network> ListNetworksAsync(ZoneName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Networks in a given project and location.

Parameters
Name Description
parent ZoneName

Required. Parent value for ListNetworksRequest

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
PagedAsyncEnumerableListNetworksResponseNetwork

A pageable asynchronous sequence of Network resources.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
ZoneName parent = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]");
// Make the request
PagedAsyncEnumerable<ListNetworksResponse, Network> response = edgeNetworkClient.ListNetworksAsync(parent);

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

ListNetworksAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListNetworksResponse, Network> ListNetworksAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Networks in a given project and location.

Parameters
Name Description
parent string

Required. Parent value for ListNetworksRequest

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
PagedAsyncEnumerableListNetworksResponseNetwork

A pageable asynchronous sequence of Network resources.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]";
// Make the request
PagedAsyncEnumerable<ListNetworksResponse, Network> response = edgeNetworkClient.ListNetworksAsync(parent);

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

ListRouters(ListRoutersRequest, CallSettings)

public virtual PagedEnumerable<ListRoutersResponse, Router> ListRouters(ListRoutersRequest request, CallSettings callSettings = null)

Lists Routers in a given project and location.

Parameters
Name Description
request ListRoutersRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListRoutersResponseRouter

A pageable sequence of Router resources.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
ListRoutersRequest request = new ListRoutersRequest
{
    ParentAsZoneName = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListRoutersResponse, Router> response = edgeNetworkClient.ListRouters(request);

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

ListRouters(ZoneName, string, int?, CallSettings)

public virtual PagedEnumerable<ListRoutersResponse, Router> ListRouters(ZoneName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Routers in a given project and location.

Parameters
Name Description
parent ZoneName

Required. Parent value for ListRoutersRequest

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
PagedEnumerableListRoutersResponseRouter

A pageable sequence of Router resources.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
ZoneName parent = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]");
// Make the request
PagedEnumerable<ListRoutersResponse, Router> response = edgeNetworkClient.ListRouters(parent);

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

ListRouters(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListRoutersResponse, Router> ListRouters(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Routers in a given project and location.

Parameters
Name Description
parent string

Required. Parent value for ListRoutersRequest

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
PagedEnumerableListRoutersResponseRouter

A pageable sequence of Router resources.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]";
// Make the request
PagedEnumerable<ListRoutersResponse, Router> response = edgeNetworkClient.ListRouters(parent);

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

ListRoutersAsync(ListRoutersRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListRoutersResponse, Router> ListRoutersAsync(ListRoutersRequest request, CallSettings callSettings = null)

Lists Routers in a given project and location.

Parameters
Name Description
request ListRoutersRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListRoutersResponseRouter

A pageable asynchronous sequence of Router resources.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
ListRoutersRequest request = new ListRoutersRequest
{
    ParentAsZoneName = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListRoutersResponse, Router> response = edgeNetworkClient.ListRoutersAsync(request);

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

ListRoutersAsync(ZoneName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListRoutersResponse, Router> ListRoutersAsync(ZoneName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Routers in a given project and location.

Parameters
Name Description
parent ZoneName

Required. Parent value for ListRoutersRequest

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
PagedAsyncEnumerableListRoutersResponseRouter

A pageable asynchronous sequence of Router resources.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
ZoneName parent = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]");
// Make the request
PagedAsyncEnumerable<ListRoutersResponse, Router> response = edgeNetworkClient.ListRoutersAsync(parent);

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

ListRoutersAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListRoutersResponse, Router> ListRoutersAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Routers in a given project and location.

Parameters
Name Description
parent string

Required. Parent value for ListRoutersRequest

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
PagedAsyncEnumerableListRoutersResponseRouter

A pageable asynchronous sequence of Router resources.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]";
// Make the request
PagedAsyncEnumerable<ListRoutersResponse, Router> response = edgeNetworkClient.ListRoutersAsync(parent);

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

ListSubnets(ListSubnetsRequest, CallSettings)

public virtual PagedEnumerable<ListSubnetsResponse, Subnet> ListSubnets(ListSubnetsRequest request, CallSettings callSettings = null)

Lists Subnets in a given project and location.

Parameters
Name Description
request ListSubnetsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListSubnetsResponseSubnet

A pageable sequence of Subnet resources.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
ListSubnetsRequest request = new ListSubnetsRequest
{
    ParentAsZoneName = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListSubnetsResponse, Subnet> response = edgeNetworkClient.ListSubnets(request);

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

ListSubnets(ZoneName, string, int?, CallSettings)

public virtual PagedEnumerable<ListSubnetsResponse, Subnet> ListSubnets(ZoneName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Subnets in a given project and location.

Parameters
Name Description
parent ZoneName

Required. Parent value for ListSubnetsRequest

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
PagedEnumerableListSubnetsResponseSubnet

A pageable sequence of Subnet resources.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
ZoneName parent = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]");
// Make the request
PagedEnumerable<ListSubnetsResponse, Subnet> response = edgeNetworkClient.ListSubnets(parent);

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

ListSubnets(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListSubnetsResponse, Subnet> ListSubnets(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Subnets in a given project and location.

Parameters
Name Description
parent string

Required. Parent value for ListSubnetsRequest

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
PagedEnumerableListSubnetsResponseSubnet

A pageable sequence of Subnet resources.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]";
// Make the request
PagedEnumerable<ListSubnetsResponse, Subnet> response = edgeNetworkClient.ListSubnets(parent);

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

ListSubnetsAsync(ListSubnetsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListSubnetsResponse, Subnet> ListSubnetsAsync(ListSubnetsRequest request, CallSettings callSettings = null)

Lists Subnets in a given project and location.

Parameters
Name Description
request ListSubnetsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListSubnetsResponseSubnet

A pageable asynchronous sequence of Subnet resources.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
ListSubnetsRequest request = new ListSubnetsRequest
{
    ParentAsZoneName = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListSubnetsResponse, Subnet> response = edgeNetworkClient.ListSubnetsAsync(request);

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

ListSubnetsAsync(ZoneName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListSubnetsResponse, Subnet> ListSubnetsAsync(ZoneName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Subnets in a given project and location.

Parameters
Name Description
parent ZoneName

Required. Parent value for ListSubnetsRequest

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
PagedAsyncEnumerableListSubnetsResponseSubnet

A pageable asynchronous sequence of Subnet resources.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
ZoneName parent = ZoneName.FromProjectLocationZone("[PROJECT]", "[LOCATION]", "[ZONE]");
// Make the request
PagedAsyncEnumerable<ListSubnetsResponse, Subnet> response = edgeNetworkClient.ListSubnetsAsync(parent);

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

ListSubnetsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListSubnetsResponse, Subnet> ListSubnetsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Subnets in a given project and location.

Parameters
Name Description
parent string

Required. Parent value for ListSubnetsRequest

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
PagedAsyncEnumerableListSubnetsResponseSubnet

A pageable asynchronous sequence of Subnet resources.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/zones/[ZONE]";
// Make the request
PagedAsyncEnumerable<ListSubnetsResponse, Subnet> response = edgeNetworkClient.ListSubnetsAsync(parent);

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

ListZones(LocationName, string, int?, CallSettings)

[Obsolete]
public virtual PagedEnumerable<ListZonesResponse, Zone> ListZones(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Deprecated: not implemented. Lists Zones in a given project and location.

Parameters
Name Description
parent LocationName

Required. Parent value for ListZonesRequest

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
PagedEnumerableListZonesResponseZone

A pageable sequence of Zone resources.

Example
            // Create client
            EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
            // Initialize request argument(s)
            LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
            // Make the request
#pragma warning disable CS0612
            PagedEnumerable<ListZonesResponse, Zone> response = edgeNetworkClient.ListZones(parent);
#pragma warning restore CS0612

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

            // Or iterate over pages (of server-defined size), performing one RPC per page
#pragma warning disable CS0612
            foreach (ListZonesResponse page in response.AsRawResponses())
#pragma warning restore CS0612
            {
                // Do something with each page of items
                Console.WriteLine("A page of results:");
                foreach (Zone 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<Zone> 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 (Zone 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;

ListZones(ListZonesRequest, CallSettings)

[Obsolete]
public virtual PagedEnumerable<ListZonesResponse, Zone> ListZones(ListZonesRequest request, CallSettings callSettings = null)

Deprecated: not implemented. Lists Zones in a given project and location.

Parameters
Name Description
request ListZonesRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListZonesResponseZone

A pageable sequence of Zone resources.

Example
            // Create client
            EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
            // Initialize request argument(s)
#pragma warning disable CS0612
            ListZonesRequest request = new ListZonesRequest { };
#pragma warning restore CS0612
            // Make the request
#pragma warning disable CS0612
            PagedEnumerable<ListZonesResponse, Zone> response = edgeNetworkClient.ListZones(request);
#pragma warning restore CS0612

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

            // Or iterate over pages (of server-defined size), performing one RPC per page
#pragma warning disable CS0612
            foreach (ListZonesResponse page in response.AsRawResponses())
#pragma warning restore CS0612
            {
                // Do something with each page of items
                Console.WriteLine("A page of results:");
                foreach (Zone 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<Zone> 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 (Zone 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;

ListZones(string, string, int?, CallSettings)

[Obsolete]
public virtual PagedEnumerable<ListZonesResponse, Zone> ListZones(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Deprecated: not implemented. Lists Zones in a given project and location.

Parameters
Name Description
parent string

Required. Parent value for ListZonesRequest

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
PagedEnumerableListZonesResponseZone

A pageable sequence of Zone resources.

Example
            // Create client
            EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
            // Initialize request argument(s)
            string parent = "projects/[PROJECT]/locations/[LOCATION]";
            // Make the request
#pragma warning disable CS0612
            PagedEnumerable<ListZonesResponse, Zone> response = edgeNetworkClient.ListZones(parent);
#pragma warning restore CS0612

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

            // Or iterate over pages (of server-defined size), performing one RPC per page
#pragma warning disable CS0612
            foreach (ListZonesResponse page in response.AsRawResponses())
#pragma warning restore CS0612
            {
                // Do something with each page of items
                Console.WriteLine("A page of results:");
                foreach (Zone 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<Zone> 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 (Zone 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;

ListZonesAsync(LocationName, string, int?, CallSettings)

[Obsolete]
public virtual PagedAsyncEnumerable<ListZonesResponse, Zone> ListZonesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Deprecated: not implemented. Lists Zones in a given project and location.

Parameters
Name Description
parent LocationName

Required. Parent value for ListZonesRequest

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
PagedAsyncEnumerableListZonesResponseZone

A pageable asynchronous sequence of Zone resources.

Example
            // Create client
            EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
            // Initialize request argument(s)
            LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
            // Make the request
#pragma warning disable CS0612
            PagedAsyncEnumerable<ListZonesResponse, Zone> response = edgeNetworkClient.ListZonesAsync(parent);
#pragma warning restore CS0612

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

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

ListZonesAsync(ListZonesRequest, CallSettings)

[Obsolete]
public virtual PagedAsyncEnumerable<ListZonesResponse, Zone> ListZonesAsync(ListZonesRequest request, CallSettings callSettings = null)

Deprecated: not implemented. Lists Zones in a given project and location.

Parameters
Name Description
request ListZonesRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListZonesResponseZone

A pageable asynchronous sequence of Zone resources.

Example
            // Create client
            EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
            // Initialize request argument(s)
#pragma warning disable CS0612
            ListZonesRequest request = new ListZonesRequest { };
#pragma warning restore CS0612
            // Make the request
#pragma warning disable CS0612
            PagedAsyncEnumerable<ListZonesResponse, Zone> response = edgeNetworkClient.ListZonesAsync(request);
#pragma warning restore CS0612

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

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

ListZonesAsync(string, string, int?, CallSettings)

[Obsolete]
public virtual PagedAsyncEnumerable<ListZonesResponse, Zone> ListZonesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Deprecated: not implemented. Lists Zones in a given project and location.

Parameters
Name Description
parent string

Required. Parent value for ListZonesRequest

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
PagedAsyncEnumerableListZonesResponseZone

A pageable asynchronous sequence of Zone resources.

Example
            // Create client
            EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
            // Initialize request argument(s)
            string parent = "projects/[PROJECT]/locations/[LOCATION]";
            // Make the request
#pragma warning disable CS0612
            PagedAsyncEnumerable<ListZonesResponse, Zone> response = edgeNetworkClient.ListZonesAsync(parent);
#pragma warning restore CS0612

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

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

PollOnceCreateInterconnectAttachment(string, CallSettings)

public virtual Operation<InterconnectAttachment, OperationMetadata> PollOnceCreateInterconnectAttachment(string operationName, CallSettings callSettings = null)

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

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
OperationInterconnectAttachmentOperationMetadata

The result of polling the operation.

PollOnceCreateInterconnectAttachmentAsync(string, CallSettings)

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

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

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
TaskOperationInterconnectAttachmentOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateNetwork(string, CallSettings)

public virtual Operation<Network, OperationMetadata> PollOnceCreateNetwork(string operationName, CallSettings callSettings = null)

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

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
OperationNetworkOperationMetadata

The result of polling the operation.

PollOnceCreateNetworkAsync(string, CallSettings)

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

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

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
TaskOperationNetworkOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateRouter(string, CallSettings)

public virtual Operation<Router, OperationMetadata> PollOnceCreateRouter(string operationName, CallSettings callSettings = null)

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

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
OperationRouterOperationMetadata

The result of polling the operation.

PollOnceCreateRouterAsync(string, CallSettings)

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

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

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
TaskOperationRouterOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateSubnet(string, CallSettings)

public virtual Operation<Subnet, OperationMetadata> PollOnceCreateSubnet(string operationName, CallSettings callSettings = null)

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

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
OperationSubnetOperationMetadata

The result of polling the operation.

PollOnceCreateSubnetAsync(string, CallSettings)

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

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

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
TaskOperationSubnetOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteInterconnectAttachment(string, CallSettings)

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

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

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.

PollOnceDeleteInterconnectAttachmentAsync(string, CallSettings)

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

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

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.

PollOnceDeleteNetwork(string, CallSettings)

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

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

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.

PollOnceDeleteNetworkAsync(string, CallSettings)

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

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

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.

PollOnceDeleteRouter(string, CallSettings)

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

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

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.

PollOnceDeleteRouterAsync(string, CallSettings)

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

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

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.

PollOnceDeleteSubnet(string, CallSettings)

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

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

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.

PollOnceDeleteSubnetAsync(string, CallSettings)

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

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

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.

PollOnceUpdateRouter(string, CallSettings)

public virtual Operation<Router, OperationMetadata> PollOnceUpdateRouter(string operationName, CallSettings callSettings = null)

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

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
OperationRouterOperationMetadata

The result of polling the operation.

PollOnceUpdateRouterAsync(string, CallSettings)

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

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

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
TaskOperationRouterOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateSubnet(string, CallSettings)

public virtual Operation<Subnet, OperationMetadata> PollOnceUpdateSubnet(string operationName, CallSettings callSettings = null)

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

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
OperationSubnetOperationMetadata

The result of polling the operation.

PollOnceUpdateSubnetAsync(string, CallSettings)

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

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

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
TaskOperationSubnetOperationMetadata

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.

UpdateRouter(Router, FieldMask, CallSettings)

public virtual Operation<Router, OperationMetadata> UpdateRouter(Router router, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single Router.

Parameters
Name Description
router Router

Required. The resource being updated

updateMask FieldMask

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

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
Router router = new Router();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Router, OperationMetadata> response = edgeNetworkClient.UpdateRouter(router, updateMask);

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

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

UpdateRouter(UpdateRouterRequest, CallSettings)

public virtual Operation<Router, OperationMetadata> UpdateRouter(UpdateRouterRequest request, CallSettings callSettings = null)

Updates the parameters of a single Router.

Parameters
Name Description
request UpdateRouterRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationRouterOperationMetadata

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
UpdateRouterRequest request = new UpdateRouterRequest
{
    UpdateMask = new FieldMask(),
    Router = new Router(),
    RequestId = "",
};
// Make the request
Operation<Router, OperationMetadata> response = edgeNetworkClient.UpdateRouter(request);

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

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

UpdateRouterAsync(Router, FieldMask, CallSettings)

public virtual Task<Operation<Router, OperationMetadata>> UpdateRouterAsync(Router router, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single Router.

Parameters
Name Description
router Router

Required. The resource being updated

updateMask FieldMask

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

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
Router router = new Router();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Router, OperationMetadata> response = await edgeNetworkClient.UpdateRouterAsync(router, updateMask);

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

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

UpdateRouterAsync(Router, FieldMask, CancellationToken)

public virtual Task<Operation<Router, OperationMetadata>> UpdateRouterAsync(Router router, FieldMask updateMask, CancellationToken cancellationToken)

Updates the parameters of a single Router.

Parameters
Name Description
router Router

Required. The resource being updated

updateMask FieldMask

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

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
Router router = new Router();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Router, OperationMetadata> response = await edgeNetworkClient.UpdateRouterAsync(router, updateMask);

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

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

UpdateRouterAsync(UpdateRouterRequest, CallSettings)

public virtual Task<Operation<Router, OperationMetadata>> UpdateRouterAsync(UpdateRouterRequest request, CallSettings callSettings = null)

Updates the parameters of a single Router.

Parameters
Name Description
request UpdateRouterRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationRouterOperationMetadata

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
UpdateRouterRequest request = new UpdateRouterRequest
{
    UpdateMask = new FieldMask(),
    Router = new Router(),
    RequestId = "",
};
// Make the request
Operation<Router, OperationMetadata> response = await edgeNetworkClient.UpdateRouterAsync(request);

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

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

UpdateRouterAsync(UpdateRouterRequest, CancellationToken)

public virtual Task<Operation<Router, OperationMetadata>> UpdateRouterAsync(UpdateRouterRequest request, CancellationToken cancellationToken)

Updates the parameters of a single Router.

Parameters
Name Description
request UpdateRouterRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationRouterOperationMetadata

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
UpdateRouterRequest request = new UpdateRouterRequest
{
    UpdateMask = new FieldMask(),
    Router = new Router(),
    RequestId = "",
};
// Make the request
Operation<Router, OperationMetadata> response = await edgeNetworkClient.UpdateRouterAsync(request);

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

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

UpdateSubnet(Subnet, FieldMask, CallSettings)

public virtual Operation<Subnet, OperationMetadata> UpdateSubnet(Subnet subnet, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single Subnet.

Parameters
Name Description
subnet Subnet

Required. The resource being updated

updateMask FieldMask

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

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
Subnet subnet = new Subnet();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Subnet, OperationMetadata> response = edgeNetworkClient.UpdateSubnet(subnet, updateMask);

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

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

UpdateSubnet(UpdateSubnetRequest, CallSettings)

public virtual Operation<Subnet, OperationMetadata> UpdateSubnet(UpdateSubnetRequest request, CallSettings callSettings = null)

Updates the parameters of a single Subnet.

Parameters
Name Description
request UpdateSubnetRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationSubnetOperationMetadata

The RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
UpdateSubnetRequest request = new UpdateSubnetRequest
{
    UpdateMask = new FieldMask(),
    Subnet = new Subnet(),
    RequestId = "",
};
// Make the request
Operation<Subnet, OperationMetadata> response = edgeNetworkClient.UpdateSubnet(request);

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

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

UpdateSubnetAsync(Subnet, FieldMask, CallSettings)

public virtual Task<Operation<Subnet, OperationMetadata>> UpdateSubnetAsync(Subnet subnet, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a single Subnet.

Parameters
Name Description
subnet Subnet

Required. The resource being updated

updateMask FieldMask

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

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
Subnet subnet = new Subnet();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Subnet, OperationMetadata> response = await edgeNetworkClient.UpdateSubnetAsync(subnet, updateMask);

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

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

UpdateSubnetAsync(Subnet, FieldMask, CancellationToken)

public virtual Task<Operation<Subnet, OperationMetadata>> UpdateSubnetAsync(Subnet subnet, FieldMask updateMask, CancellationToken cancellationToken)

Updates the parameters of a single Subnet.

Parameters
Name Description
subnet Subnet

Required. The resource being updated

updateMask FieldMask

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

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
Subnet subnet = new Subnet();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Subnet, OperationMetadata> response = await edgeNetworkClient.UpdateSubnetAsync(subnet, updateMask);

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

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

UpdateSubnetAsync(UpdateSubnetRequest, CallSettings)

public virtual Task<Operation<Subnet, OperationMetadata>> UpdateSubnetAsync(UpdateSubnetRequest request, CallSettings callSettings = null)

Updates the parameters of a single Subnet.

Parameters
Name Description
request UpdateSubnetRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationSubnetOperationMetadata

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
UpdateSubnetRequest request = new UpdateSubnetRequest
{
    UpdateMask = new FieldMask(),
    Subnet = new Subnet(),
    RequestId = "",
};
// Make the request
Operation<Subnet, OperationMetadata> response = await edgeNetworkClient.UpdateSubnetAsync(request);

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

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

UpdateSubnetAsync(UpdateSubnetRequest, CancellationToken)

public virtual Task<Operation<Subnet, OperationMetadata>> UpdateSubnetAsync(UpdateSubnetRequest request, CancellationToken cancellationToken)

Updates the parameters of a single Subnet.

Parameters
Name Description
request UpdateSubnetRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationSubnetOperationMetadata

A Task containing the RPC response.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
UpdateSubnetRequest request = new UpdateSubnetRequest
{
    UpdateMask = new FieldMask(),
    Subnet = new Subnet(),
    RequestId = "",
};
// Make the request
Operation<Subnet, OperationMetadata> response = await edgeNetworkClient.UpdateSubnetAsync(request);

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

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