Distributed Cloud Edge Network v1 API - Class EdgeNetworkClient (1.0.0-beta03)

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
TypeDescription
OperationsClient

CreateNetworkOperationsClient

public virtual OperationsClient CreateNetworkOperationsClient { get; }

The long-running operations client for CreateNetwork.

Property Value
TypeDescription
OperationsClient

CreateRouterOperationsClient

public virtual OperationsClient CreateRouterOperationsClient { get; }

The long-running operations client for CreateRouter.

Property Value
TypeDescription
OperationsClient

CreateSubnetOperationsClient

public virtual OperationsClient CreateSubnetOperationsClient { get; }

The long-running operations client for CreateSubnet.

Property Value
TypeDescription
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
TypeDescription
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default EdgeNetwork scopes.

Property Value
TypeDescription
IReadOnlyListstring
Remarks

The default EdgeNetwork scopes are:

DeleteInterconnectAttachmentOperationsClient

public virtual OperationsClient DeleteInterconnectAttachmentOperationsClient { get; }

The long-running operations client for DeleteInterconnectAttachment.

Property Value
TypeDescription
OperationsClient

DeleteNetworkOperationsClient

public virtual OperationsClient DeleteNetworkOperationsClient { get; }

The long-running operations client for DeleteNetwork.

Property Value
TypeDescription
OperationsClient

DeleteRouterOperationsClient

public virtual OperationsClient DeleteRouterOperationsClient { get; }

The long-running operations client for DeleteRouter.

Property Value
TypeDescription
OperationsClient

DeleteSubnetOperationsClient

public virtual OperationsClient DeleteSubnetOperationsClient { get; }

The long-running operations client for DeleteSubnet.

Property Value
TypeDescription
OperationsClient

GrpcClient

public virtual EdgeNetwork.EdgeNetworkClient GrpcClient { get; }

The underlying gRPC EdgeNetwork client

Property Value
TypeDescription
EdgeNetworkEdgeNetworkClient

LocationsClient

public virtual LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
TypeDescription
LocationsClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
TypeDescription
ServiceMetadata

UpdateRouterOperationsClient

public virtual OperationsClient UpdateRouterOperationsClient { get; }

The long-running operations client for UpdateRouter.

Property Value
TypeDescription
OperationsClient

UpdateSubnetOperationsClient

public virtual OperationsClient UpdateSubnetOperationsClient { get; }

The long-running operations client for UpdateSubnet.

Property Value
TypeDescription
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
TypeDescription
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
NameDescription
cancellationTokenCancellationToken

The CancellationToken to use while creating the client.

Returns
TypeDescription
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
NameDescription
requestCreateInterconnectAttachmentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentZoneName

Required. Value for parent.

interconnectAttachmentInterconnectAttachment

Required. The resource being created

interconnectAttachmentIdstring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentstring

Required. Value for parent.

interconnectAttachmentInterconnectAttachment

Required. The resource being created

interconnectAttachmentIdstring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestCreateInterconnectAttachmentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestCreateInterconnectAttachmentRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
parentZoneName

Required. Value for parent.

interconnectAttachmentInterconnectAttachment

Required. The resource being created

interconnectAttachmentIdstring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentZoneName

Required. Value for parent.

interconnectAttachmentInterconnectAttachment

Required. The resource being created

interconnectAttachmentIdstring

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
parentstring

Required. Value for parent.

interconnectAttachmentInterconnectAttachment

Required. The resource being created

interconnectAttachmentIdstring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentstring

Required. Value for parent.

interconnectAttachmentInterconnectAttachment

Required. The resource being created

interconnectAttachmentIdstring

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestCreateNetworkRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentZoneName

Required. Value for parent.

networkNetwork

Required. The resource being created

networkIdstring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentstring

Required. Value for parent.

networkNetwork

Required. The resource being created

networkIdstring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestCreateNetworkRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestCreateNetworkRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
parentZoneName

Required. Value for parent.

networkNetwork

Required. The resource being created

networkIdstring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentZoneName

Required. Value for parent.

networkNetwork

Required. The resource being created

networkIdstring

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
parentstring

Required. Value for parent.

networkNetwork

Required. The resource being created

networkIdstring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentstring

Required. Value for parent.

networkNetwork

Required. The resource being created

networkIdstring

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestCreateRouterRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentZoneName

Required. Value for parent.

routerRouter

Required. The resource being created

routerIdstring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentstring

Required. Value for parent.

routerRouter

Required. The resource being created

routerIdstring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestCreateRouterRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestCreateRouterRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
parentZoneName

Required. Value for parent.

routerRouter

Required. The resource being created

routerIdstring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentZoneName

Required. Value for parent.

routerRouter

Required. The resource being created

routerIdstring

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
parentstring

Required. Value for parent.

routerRouter

Required. The resource being created

routerIdstring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentstring

Required. Value for parent.

routerRouter

Required. The resource being created

routerIdstring

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestCreateSubnetRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentZoneName

Required. Value for parent.

subnetSubnet

Required. The resource being created

subnetIdstring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentstring

Required. Value for parent.

subnetSubnet

Required. The resource being created

subnetIdstring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestCreateSubnetRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestCreateSubnetRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
parentZoneName

Required. Value for parent.

subnetSubnet

Required. The resource being created

subnetIdstring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentZoneName

Required. Value for parent.

subnetSubnet

Required. The resource being created

subnetIdstring

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
parentstring

Required. Value for parent.

subnetSubnet

Required. The resource being created

subnetIdstring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentstring

Required. Value for parent.

subnetSubnet

Required. The resource being created

subnetIdstring

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestDeleteInterconnectAttachmentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameInterconnectAttachmentName

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDeleteInterconnectAttachmentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDeleteInterconnectAttachmentRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
nameInterconnectAttachmentName

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameInterconnectAttachmentName

Required. Name of the resource

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the resource

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestDeleteNetworkRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameNetworkName

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDeleteNetworkRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDeleteNetworkRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
nameNetworkName

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameNetworkName

Required. Name of the resource

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the resource

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestDeleteRouterRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameRouterName

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDeleteRouterRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDeleteRouterRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
nameRouterName

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameRouterName

Required. Name of the resource

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the resource

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestDeleteSubnetRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameSubnetName

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDeleteSubnetRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDeleteSubnetRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
nameSubnetName

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameSubnetName

Required. Name of the resource

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the resource

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestDiagnoseInterconnectRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameInterconnectName

Required. The name of the interconnect resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

Required. The name of the interconnect resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDiagnoseInterconnectRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDiagnoseInterconnectRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
nameInterconnectName

Required. The name of the interconnect resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameInterconnectName

Required. The name of the interconnect resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
namestring

Required. The name of the interconnect resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

Required. The name of the interconnect resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestDiagnoseNetworkRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameNetworkName

Required. The name of the network resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

Required. The name of the network resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDiagnoseNetworkRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDiagnoseNetworkRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
nameNetworkName

Required. The name of the network resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameNetworkName

Required. The name of the network resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
namestring

Required. The name of the network resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

Required. The name of the network resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestDiagnoseRouterRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameRouterName

Required. The name of the router resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

Required. The name of the router resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDiagnoseRouterRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDiagnoseRouterRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
nameRouterName

Required. The name of the router resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameRouterName

Required. The name of the router resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
namestring

Required. The name of the router resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

Required. The name of the router resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestGetInterconnectRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameInterconnectName

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetInterconnectRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetInterconnectRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
nameInterconnectName

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameInterconnectName

Required. Name of the resource

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the resource

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestGetInterconnectAttachmentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameInterconnectAttachmentName

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetInterconnectAttachmentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetInterconnectAttachmentRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
nameInterconnectAttachmentName

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameInterconnectAttachmentName

Required. Name of the resource

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the resource

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestGetNetworkRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameNetworkName

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetNetworkRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetNetworkRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
nameNetworkName

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameNetworkName

Required. Name of the resource

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the resource

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestGetRouterRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameRouterName

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetRouterRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetRouterRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
nameRouterName

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameRouterName

Required. Name of the resource

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the resource

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestGetSubnetRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameSubnetName

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetSubnetRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetSubnetRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
nameSubnetName

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameSubnetName

Required. Name of the resource

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

Required. Name of the resource

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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)

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

Gets details of a single Zone.

Parameters
NameDescription
requestGetZoneRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Zone

The RPC response.

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

GetZone(ZoneName, CallSettings)

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

Gets details of a single Zone.

Parameters
NameDescription
nameZoneName

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
Zone response = edgeNetworkClient.GetZone(name);

GetZone(string, CallSettings)

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

Gets details of a single Zone.

Parameters
NameDescription
namestring

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
Zone response = edgeNetworkClient.GetZone(name);

GetZoneAsync(GetZoneRequest, CallSettings)

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

Gets details of a single Zone.

Parameters
NameDescription
requestGetZoneRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskZone

A Task containing the RPC response.

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

GetZoneAsync(GetZoneRequest, CancellationToken)

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

Gets details of a single Zone.

Parameters
NameDescription
requestGetZoneRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskZone

A Task containing the RPC response.

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

GetZoneAsync(ZoneName, CallSettings)

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

Gets details of a single Zone.

Parameters
NameDescription
nameZoneName

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
Zone response = await edgeNetworkClient.GetZoneAsync(name);

GetZoneAsync(ZoneName, CancellationToken)

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

Gets details of a single Zone.

Parameters
NameDescription
nameZoneName

Required. Name of the resource

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
Zone response = await edgeNetworkClient.GetZoneAsync(name);

GetZoneAsync(string, CallSettings)

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

Gets details of a single Zone.

Parameters
NameDescription
namestring

Required. Name of the resource

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
Zone response = await edgeNetworkClient.GetZoneAsync(name);

GetZoneAsync(string, CancellationToken)

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

Gets details of a single Zone.

Parameters
NameDescription
namestring

Required. Name of the resource

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
Zone response = await edgeNetworkClient.GetZoneAsync(name);

InitializeZone(InitializeZoneRequest, CallSettings)

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

InitializeZone will initialize resources for a zone in a project.

Parameters
NameDescription
requestInitializeZoneRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameZoneName

Required. The name of the zone resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

Required. The name of the zone resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestInitializeZoneRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestInitializeZoneRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
nameZoneName

Required. The name of the zone resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameZoneName

Required. The name of the zone resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
namestring

Required. The name of the zone resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

Required. The name of the zone resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestListInterconnectAttachmentsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentZoneName

Required. Parent value for ListInterconnectAttachmentsRequest

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentstring

Required. Parent value for ListInterconnectAttachmentsRequest

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListInterconnectAttachmentsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentZoneName

Required. Parent value for ListInterconnectAttachmentsRequest

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentstring

Required. Parent value for ListInterconnectAttachmentsRequest

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListInterconnectsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentZoneName

Required. Parent value for ListInterconnectsRequest

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentstring

Required. Parent value for ListInterconnectsRequest

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListInterconnectsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentZoneName

Required. Parent value for ListInterconnectsRequest

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentstring

Required. Parent value for ListInterconnectsRequest

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListNetworksRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentZoneName

Required. Parent value for ListNetworksRequest

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentstring

Required. Parent value for ListNetworksRequest

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListNetworksRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentZoneName

Required. Parent value for ListNetworksRequest

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentstring

Required. Parent value for ListNetworksRequest

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListRoutersRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentZoneName

Required. Parent value for ListRoutersRequest

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentstring

Required. Parent value for ListRoutersRequest

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListRoutersRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentZoneName

Required. Parent value for ListRoutersRequest

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentstring

Required. Parent value for ListRoutersRequest

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListSubnetsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentZoneName

Required. Parent value for ListSubnetsRequest

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentstring

Required. Parent value for ListSubnetsRequest

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListSubnetsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentZoneName

Required. Parent value for ListSubnetsRequest

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentstring

Required. Parent value for ListSubnetsRequest

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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)

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

Lists Zones in a given project and location.

Parameters
NameDescription
parentLocationName

Required. Parent value for ListZonesRequest

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
PagedEnumerable<ListZonesResponse, Zone> response = edgeNetworkClient.ListZones(parent);

// 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
foreach (ListZonesResponse page in response.AsRawResponses())
{
    // 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)

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

Lists Zones in a given project and location.

Parameters
NameDescription
requestListZonesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListZonesResponseZone

A pageable sequence of Zone resources.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = EdgeNetworkClient.Create();
// Initialize request argument(s)
ListZonesRequest request = new ListZonesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListZonesResponse, Zone> response = edgeNetworkClient.ListZones(request);

// 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
foreach (ListZonesResponse page in response.AsRawResponses())
{
    // 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)

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

Lists Zones in a given project and location.

Parameters
NameDescription
parentstring

Required. Parent value for ListZonesRequest

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
PagedEnumerable<ListZonesResponse, Zone> response = edgeNetworkClient.ListZones(parent);

// 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
foreach (ListZonesResponse page in response.AsRawResponses())
{
    // 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)

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

Lists Zones in a given project and location.

Parameters
NameDescription
parentLocationName

Required. Parent value for ListZonesRequest

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
PagedAsyncEnumerable<ListZonesResponse, Zone> response = edgeNetworkClient.ListZonesAsync(parent);

// 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
await response.AsRawResponses().ForEachAsync((ListZonesResponse page) =>
{
    // 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)

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

Lists Zones in a given project and location.

Parameters
NameDescription
requestListZonesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListZonesResponseZone

A pageable asynchronous sequence of Zone resources.

Example
// Create client
EdgeNetworkClient edgeNetworkClient = await EdgeNetworkClient.CreateAsync();
// Initialize request argument(s)
ListZonesRequest request = new ListZonesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListZonesResponse, Zone> response = edgeNetworkClient.ListZonesAsync(request);

// 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
await response.AsRawResponses().ForEachAsync((ListZonesResponse page) =>
{
    // 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)

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

Lists Zones in a given project and location.

Parameters
NameDescription
parentstring

Required. Parent value for ListZonesRequest

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
PagedAsyncEnumerable<ListZonesResponse, Zone> response = edgeNetworkClient.ListZonesAsync(parent);

// 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
await response.AsRawResponses().ForEachAsync((ListZonesResponse page) =>
{
    // 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
NameDescription
operationNamestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
operationNamestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
operationNamestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
operationNamestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
operationNamestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
operationNamestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
operationNamestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
operationNamestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
operationNamestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
operationNamestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
operationNamestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
operationNamestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
operationNamestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
operationNamestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
operationNamestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
operationNamestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
operationNamestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
operationNamestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
operationNamestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
operationNamestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
TypeDescription
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
NameDescription
routerRouter

Required. The resource being updated

updateMaskFieldMask

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestUpdateRouterRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
routerRouter

Required. The resource being updated

updateMaskFieldMask

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
routerRouter

Required. The resource being updated

updateMaskFieldMask

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.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestUpdateRouterRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestUpdateRouterRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
subnetSubnet

Required. The resource being updated

updateMaskFieldMask

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestUpdateSubnetRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
subnetSubnet

Required. The resource being updated

updateMaskFieldMask

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
subnetSubnet

Required. The resource being updated

updateMaskFieldMask

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.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestUpdateSubnetRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestUpdateSubnetRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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;
}