class GlobalNetworkEndpointGroups extends Resource (View source)

The "globalNetworkEndpointGroups" collection of methods.

Typical usage is:

 $computeService = new Google\Service\Compute(...);
 $globalNetworkEndpointGroups = $computeService->globalNetworkEndpointGroups;

Methods

attachNetworkEndpoints(string $project, string $networkEndpointGroup, GlobalNetworkEndpointGroupsAttachEndpointsRequest $postBody, array $optParams = [])

Attach a network endpoint to the specified network endpoint group.

delete(string $project, string $networkEndpointGroup, array $optParams = [])

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

detachNetworkEndpoints(string $project, string $networkEndpointGroup, GlobalNetworkEndpointGroupsDetachEndpointsRequest $postBody, array $optParams = [])

Detach the network endpoint from the specified network endpoint group.

get(string $project, string $networkEndpointGroup, array $optParams = [])

Returns the specified network endpoint group.

insert(string $project, NetworkEndpointGroup $postBody, array $optParams = [])

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

listGlobalNetworkEndpointGroups(string $project, array $optParams = [])

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

listNetworkEndpoints(string $project, string $networkEndpointGroup, array $optParams = [])

Lists the network endpoints in the specified network endpoint group.

Details

Operation attachNetworkEndpoints(string $project, string $networkEndpointGroup, GlobalNetworkEndpointGroupsAttachEndpointsRequest $postBody, array $optParams = [])

Attach a network endpoint to the specified network endpoint group.

(globalNetworkEndpointGroups.attachNetworkEndpoints)

Parameters

string $project

Project ID for this request.

string $networkEndpointGroup

The name of the network endpoint group where you are attaching network endpoints to. It should comply with RFC1035.

GlobalNetworkEndpointGroupsAttachEndpointsRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation delete(string $project, string $networkEndpointGroup, array $optParams = [])

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

(globalNetworkEndpointGroups.delete)

Parameters

string $project

Project ID for this request.

string $networkEndpointGroup

The name of the network endpoint group to delete. It should comply with RFC1035.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation detachNetworkEndpoints(string $project, string $networkEndpointGroup, GlobalNetworkEndpointGroupsDetachEndpointsRequest $postBody, array $optParams = [])

Detach the network endpoint from the specified network endpoint group.

(globalNetworkEndpointGroups.detachNetworkEndpoints)

Parameters

string $project

Project ID for this request.

string $networkEndpointGroup

The name of the network endpoint group where you are removing network endpoints. It should comply with RFC1035.

GlobalNetworkEndpointGroupsDetachEndpointsRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

NetworkEndpointGroup get(string $project, string $networkEndpointGroup, array $optParams = [])

Returns the specified network endpoint group.

(globalNetworkEndpointGroups.get)

Parameters

string $project

Project ID for this request.

string $networkEndpointGroup

The name of the network endpoint group. It should comply with RFC1035.

array $optParams

Optional parameters.

Return Value

NetworkEndpointGroup

Exceptions

Exception

Operation insert(string $project, NetworkEndpointGroup $postBody, array $optParams = [])

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

(globalNetworkEndpointGroups.insert)

Parameters

string $project

Project ID for this request.

NetworkEndpointGroup $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

NetworkEndpointGroupList listGlobalNetworkEndpointGroups(string $project, array $optParams = [])

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

(globalNetworkEndpointGroups.listGlobalNetworkEndpointGroups)

Parameters

string $project

Project ID for this request.

array $optParams

Optional parameters.

Return Value

NetworkEndpointGroupList

Exceptions

Exception

NetworkEndpointGroupsListNetworkEndpoints listNetworkEndpoints(string $project, string $networkEndpointGroup, array $optParams = [])

Lists the network endpoints in the specified network endpoint group.

(globalNetworkEndpointGroups.listNetworkEndpoints)

Parameters

string $project

Project ID for this request.

string $networkEndpointGroup

The name of the network endpoint group from which you want to generate a list of included network endpoints. It should comply with RFC1035.

array $optParams

Optional parameters.

Return Value

NetworkEndpointGroupsListNetworkEndpoints

Exceptions

Exception