Compute Engine v1 API - Class GlobalNetworkEndpointGroups.GlobalNetworkEndpointGroupsClient (3.2.0)

public class GlobalNetworkEndpointGroups.GlobalNetworkEndpointGroupsClient : ClientBase<GlobalNetworkEndpointGroups.GlobalNetworkEndpointGroupsClient>

Reference documentation and code samples for the Compute Engine v1 API class GlobalNetworkEndpointGroups.GlobalNetworkEndpointGroupsClient.

Client for GlobalNetworkEndpointGroups

Inheritance

object > ClientBase > ClientBaseGlobalNetworkEndpointGroupsGlobalNetworkEndpointGroupsClient > GlobalNetworkEndpointGroups.GlobalNetworkEndpointGroupsClient

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

GlobalNetworkEndpointGroupsClient()

protected GlobalNetworkEndpointGroupsClient()

Protected parameterless constructor to allow creation of test doubles.

GlobalNetworkEndpointGroupsClient(CallInvoker)

public GlobalNetworkEndpointGroupsClient(CallInvoker callInvoker)

Creates a new client for GlobalNetworkEndpointGroups that uses a custom CallInvoker.

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

GlobalNetworkEndpointGroupsClient(ChannelBase)

public GlobalNetworkEndpointGroupsClient(ChannelBase channel)

Creates a new client for GlobalNetworkEndpointGroups

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

GlobalNetworkEndpointGroupsClient(ClientBaseConfiguration)

protected GlobalNetworkEndpointGroupsClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The client configuration.

Methods

AttachNetworkEndpoints(AttachNetworkEndpointsGlobalNetworkEndpointGroupRequest, CallOptions)

public virtual Operation AttachNetworkEndpoints(AttachNetworkEndpointsGlobalNetworkEndpointGroupRequest request, CallOptions options)

Attach a network endpoint to the specified network endpoint group.

Parameters
Name Description
request AttachNetworkEndpointsGlobalNetworkEndpointGroupRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

AttachNetworkEndpoints(AttachNetworkEndpointsGlobalNetworkEndpointGroupRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation AttachNetworkEndpoints(AttachNetworkEndpointsGlobalNetworkEndpointGroupRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Attach a network endpoint to the specified network endpoint group.

Parameters
Name Description
request AttachNetworkEndpointsGlobalNetworkEndpointGroupRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Operation

The response received from the server.

AttachNetworkEndpointsAsync(AttachNetworkEndpointsGlobalNetworkEndpointGroupRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> AttachNetworkEndpointsAsync(AttachNetworkEndpointsGlobalNetworkEndpointGroupRequest request, CallOptions options)

Attach a network endpoint to the specified network endpoint group.

Parameters
Name Description
request AttachNetworkEndpointsGlobalNetworkEndpointGroupRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

AttachNetworkEndpointsAsync(AttachNetworkEndpointsGlobalNetworkEndpointGroupRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> AttachNetworkEndpointsAsync(AttachNetworkEndpointsGlobalNetworkEndpointGroupRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Attach a network endpoint to the specified network endpoint group.

Parameters
Name Description
request AttachNetworkEndpointsGlobalNetworkEndpointGroupRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

CreateOperationsClientForGlobalOperations()

public virtual Operations.OperationsClient CreateOperationsClientForGlobalOperations()

Creates a new instance of Operations.OperationsClient using the same call invoker as this client, delegating to GlobalOperations.

Returns
Type Description
OperationsOperationsClient

A new Operations client for the same target as this client.

Delete(DeleteGlobalNetworkEndpointGroupRequest, CallOptions)

public virtual Operation Delete(DeleteGlobalNetworkEndpointGroupRequest request, CallOptions options)

Deletes the specified network endpoint group.Note that the NEG cannot be deleted if there are backend services referencing it.

Parameters
Name Description
request DeleteGlobalNetworkEndpointGroupRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

Delete(DeleteGlobalNetworkEndpointGroupRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation Delete(DeleteGlobalNetworkEndpointGroupRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes the specified network endpoint group.Note that the NEG cannot be deleted if there are backend services referencing it.

Parameters
Name Description
request DeleteGlobalNetworkEndpointGroupRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Operation

The response received from the server.

DeleteAsync(DeleteGlobalNetworkEndpointGroupRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> DeleteAsync(DeleteGlobalNetworkEndpointGroupRequest request, CallOptions options)

Deletes the specified network endpoint group.Note that the NEG cannot be deleted if there are backend services referencing it.

Parameters
Name Description
request DeleteGlobalNetworkEndpointGroupRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

DeleteAsync(DeleteGlobalNetworkEndpointGroupRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> DeleteAsync(DeleteGlobalNetworkEndpointGroupRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes the specified network endpoint group.Note that the NEG cannot be deleted if there are backend services referencing it.

Parameters
Name Description
request DeleteGlobalNetworkEndpointGroupRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

DetachNetworkEndpoints(DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest, CallOptions)

public virtual Operation DetachNetworkEndpoints(DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest request, CallOptions options)

Detach the network endpoint from the specified network endpoint group.

Parameters
Name Description
request DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

DetachNetworkEndpoints(DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation DetachNetworkEndpoints(DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Detach the network endpoint from the specified network endpoint group.

Parameters
Name Description
request DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Operation

The response received from the server.

DetachNetworkEndpointsAsync(DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> DetachNetworkEndpointsAsync(DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest request, CallOptions options)

Detach the network endpoint from the specified network endpoint group.

Parameters
Name Description
request DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

DetachNetworkEndpointsAsync(DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> DetachNetworkEndpointsAsync(DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Detach the network endpoint from the specified network endpoint group.

Parameters
Name Description
request DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

Get(GetGlobalNetworkEndpointGroupRequest, CallOptions)

public virtual NetworkEndpointGroup Get(GetGlobalNetworkEndpointGroupRequest request, CallOptions options)

Returns the specified network endpoint group.

Parameters
Name Description
request GetGlobalNetworkEndpointGroupRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
NetworkEndpointGroup

The response received from the server.

Get(GetGlobalNetworkEndpointGroupRequest, Metadata, DateTime?, CancellationToken)

public virtual NetworkEndpointGroup Get(GetGlobalNetworkEndpointGroupRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the specified network endpoint group.

Parameters
Name Description
request GetGlobalNetworkEndpointGroupRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
NetworkEndpointGroup

The response received from the server.

GetAsync(GetGlobalNetworkEndpointGroupRequest, CallOptions)

public virtual AsyncUnaryCall<NetworkEndpointGroup> GetAsync(GetGlobalNetworkEndpointGroupRequest request, CallOptions options)

Returns the specified network endpoint group.

Parameters
Name Description
request GetGlobalNetworkEndpointGroupRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallNetworkEndpointGroup

The call object.

GetAsync(GetGlobalNetworkEndpointGroupRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<NetworkEndpointGroup> GetAsync(GetGlobalNetworkEndpointGroupRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the specified network endpoint group.

Parameters
Name Description
request GetGlobalNetworkEndpointGroupRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallNetworkEndpointGroup

The call object.

Insert(InsertGlobalNetworkEndpointGroupRequest, CallOptions)

public virtual Operation Insert(InsertGlobalNetworkEndpointGroupRequest request, CallOptions options)

Creates a network endpoint group in the specified project using the parameters that are included in the request.

Parameters
Name Description
request InsertGlobalNetworkEndpointGroupRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

Insert(InsertGlobalNetworkEndpointGroupRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation Insert(InsertGlobalNetworkEndpointGroupRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a network endpoint group in the specified project using the parameters that are included in the request.

Parameters
Name Description
request InsertGlobalNetworkEndpointGroupRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Operation

The response received from the server.

InsertAsync(InsertGlobalNetworkEndpointGroupRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> InsertAsync(InsertGlobalNetworkEndpointGroupRequest request, CallOptions options)

Creates a network endpoint group in the specified project using the parameters that are included in the request.

Parameters
Name Description
request InsertGlobalNetworkEndpointGroupRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

InsertAsync(InsertGlobalNetworkEndpointGroupRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> InsertAsync(InsertGlobalNetworkEndpointGroupRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a network endpoint group in the specified project using the parameters that are included in the request.

Parameters
Name Description
request InsertGlobalNetworkEndpointGroupRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

List(ListGlobalNetworkEndpointGroupsRequest, CallOptions)

public virtual NetworkEndpointGroupList List(ListGlobalNetworkEndpointGroupsRequest request, CallOptions options)

Retrieves the list of network endpoint groups that are located in the specified project.

Parameters
Name Description
request ListGlobalNetworkEndpointGroupsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
NetworkEndpointGroupList

The response received from the server.

List(ListGlobalNetworkEndpointGroupsRequest, Metadata, DateTime?, CancellationToken)

public virtual NetworkEndpointGroupList List(ListGlobalNetworkEndpointGroupsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves the list of network endpoint groups that are located in the specified project.

Parameters
Name Description
request ListGlobalNetworkEndpointGroupsRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
NetworkEndpointGroupList

The response received from the server.

ListAsync(ListGlobalNetworkEndpointGroupsRequest, CallOptions)

public virtual AsyncUnaryCall<NetworkEndpointGroupList> ListAsync(ListGlobalNetworkEndpointGroupsRequest request, CallOptions options)

Retrieves the list of network endpoint groups that are located in the specified project.

Parameters
Name Description
request ListGlobalNetworkEndpointGroupsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallNetworkEndpointGroupList

The call object.

ListAsync(ListGlobalNetworkEndpointGroupsRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<NetworkEndpointGroupList> ListAsync(ListGlobalNetworkEndpointGroupsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves the list of network endpoint groups that are located in the specified project.

Parameters
Name Description
request ListGlobalNetworkEndpointGroupsRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallNetworkEndpointGroupList

The call object.

ListNetworkEndpoints(ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest, CallOptions)

public virtual NetworkEndpointGroupsListNetworkEndpoints ListNetworkEndpoints(ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest request, CallOptions options)

Lists the network endpoints in the specified network endpoint group.

Parameters
Name Description
request ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
NetworkEndpointGroupsListNetworkEndpoints

The response received from the server.

ListNetworkEndpoints(ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest, Metadata, DateTime?, CancellationToken)

public virtual NetworkEndpointGroupsListNetworkEndpoints ListNetworkEndpoints(ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists the network endpoints in the specified network endpoint group.

Parameters
Name Description
request ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
NetworkEndpointGroupsListNetworkEndpoints

The response received from the server.

ListNetworkEndpointsAsync(ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest, CallOptions)

public virtual AsyncUnaryCall<NetworkEndpointGroupsListNetworkEndpoints> ListNetworkEndpointsAsync(ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest request, CallOptions options)

Lists the network endpoints in the specified network endpoint group.

Parameters
Name Description
request ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallNetworkEndpointGroupsListNetworkEndpoints

The call object.

ListNetworkEndpointsAsync(ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<NetworkEndpointGroupsListNetworkEndpoints> ListNetworkEndpointsAsync(ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists the network endpoints in the specified network endpoint group.

Parameters
Name Description
request ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallNetworkEndpointGroupsListNetworkEndpoints

The call object.

NewInstance(ClientBaseConfiguration)

protected override GlobalNetworkEndpointGroups.GlobalNetworkEndpointGroupsClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
GlobalNetworkEndpointGroupsGlobalNetworkEndpointGroupsClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Compute.V1.GlobalNetworkEndpointGroups.GlobalNetworkEndpointGroupsClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)