Class NetworkEndpointGroupsResource
The "networkEndpointGroups" collection of methods.
Inherited Members
Namespace: Google.Apis.Compute.v1
Assembly: Google.Apis.Compute.v1.dll
Syntax
public class NetworkEndpointGroupsResource
Constructors
NetworkEndpointGroupsResource(IClientService)
Constructs a new resource.
Declaration
public NetworkEndpointGroupsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
AggregatedList(string)
Retrieves the list of network endpoint groups and sorts them by zone. To prevent failure, Google recommends
that you set the returnPartialSuccess
parameter to true
.
Declaration
public virtual NetworkEndpointGroupsResource.AggregatedListRequest AggregatedList(string project)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
Returns
Type | Description |
---|---|
NetworkEndpointGroupsResource.AggregatedListRequest |
AttachNetworkEndpoints(NetworkEndpointGroupsAttachEndpointsRequest, string, string, string)
Attach a list of network endpoints to the specified network endpoint group.
Declaration
public virtual NetworkEndpointGroupsResource.AttachNetworkEndpointsRequest AttachNetworkEndpoints(NetworkEndpointGroupsAttachEndpointsRequest body, string project, string zone, string networkEndpointGroup)
Parameters
Type | Name | Description |
---|---|---|
NetworkEndpointGroupsAttachEndpointsRequest | body | The body of the request. |
string | project | Project ID for this request. |
string | zone | The name of the zone where the network endpoint group is located. It should comply with RFC1035. |
string | networkEndpointGroup | The name of the network endpoint group where you are attaching network endpoints to. It should comply with RFC1035. |
Returns
Type | Description |
---|---|
NetworkEndpointGroupsResource.AttachNetworkEndpointsRequest |
Delete(string, string, string)
Deletes the specified network endpoint group. The network endpoints in the NEG and the VM instances they belong to are not terminated when the NEG is deleted. Note that the NEG cannot be deleted if there are backend services referencing it.
Declaration
public virtual NetworkEndpointGroupsResource.DeleteRequest Delete(string project, string zone, string networkEndpointGroup)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | zone | The name of the zone where the network endpoint group is located. It should comply with RFC1035. |
string | networkEndpointGroup | The name of the network endpoint group to delete. It should comply with RFC1035. |
Returns
Type | Description |
---|---|
NetworkEndpointGroupsResource.DeleteRequest |
DetachNetworkEndpoints(NetworkEndpointGroupsDetachEndpointsRequest, string, string, string)
Detach a list of network endpoints from the specified network endpoint group.
Declaration
public virtual NetworkEndpointGroupsResource.DetachNetworkEndpointsRequest DetachNetworkEndpoints(NetworkEndpointGroupsDetachEndpointsRequest body, string project, string zone, string networkEndpointGroup)
Parameters
Type | Name | Description |
---|---|---|
NetworkEndpointGroupsDetachEndpointsRequest | body | The body of the request. |
string | project | Project ID for this request. |
string | zone | The name of the zone where the network endpoint group is located. It should comply with RFC1035. |
string | networkEndpointGroup | The name of the network endpoint group where you are removing network endpoints. It should comply with RFC1035. |
Returns
Type | Description |
---|---|
NetworkEndpointGroupsResource.DetachNetworkEndpointsRequest |
Get(string, string, string)
Returns the specified network endpoint group.
Declaration
public virtual NetworkEndpointGroupsResource.GetRequest Get(string project, string zone, string networkEndpointGroup)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | zone | The name of the zone where the network endpoint group is located. It should comply with RFC1035. |
string | networkEndpointGroup | The name of the network endpoint group. It should comply with RFC1035. |
Returns
Type | Description |
---|---|
NetworkEndpointGroupsResource.GetRequest |
Insert(NetworkEndpointGroup, string, string)
Creates a network endpoint group in the specified project using the parameters that are included in the request.
Declaration
public virtual NetworkEndpointGroupsResource.InsertRequest Insert(NetworkEndpointGroup body, string project, string zone)
Parameters
Type | Name | Description |
---|---|---|
NetworkEndpointGroup | body | The body of the request. |
string | project | Project ID for this request. |
string | zone | The name of the zone where you want to create the network endpoint group. It should comply with RFC1035. |
Returns
Type | Description |
---|---|
NetworkEndpointGroupsResource.InsertRequest |
List(string, string)
Retrieves the list of network endpoint groups that are located in the specified project and zone.
Declaration
public virtual NetworkEndpointGroupsResource.ListRequest List(string project, string zone)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | zone | The name of the zone where the network endpoint group is located. It should comply with RFC1035. |
Returns
Type | Description |
---|---|
NetworkEndpointGroupsResource.ListRequest |
ListNetworkEndpoints(NetworkEndpointGroupsListEndpointsRequest, string, string, string)
Lists the network endpoints in the specified network endpoint group.
Declaration
public virtual NetworkEndpointGroupsResource.ListNetworkEndpointsRequest ListNetworkEndpoints(NetworkEndpointGroupsListEndpointsRequest body, string project, string zone, string networkEndpointGroup)
Parameters
Type | Name | Description |
---|---|---|
NetworkEndpointGroupsListEndpointsRequest | body | The body of the request. |
string | project | Project ID for this request. |
string | zone | The name of the zone where the network endpoint group is located. It should comply with RFC1035. |
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. |
Returns
Type | Description |
---|---|
NetworkEndpointGroupsResource.ListNetworkEndpointsRequest |
TestIamPermissions(TestPermissionsRequest, string, string, string)
Returns permissions that a caller has on the specified resource.
Declaration
public virtual NetworkEndpointGroupsResource.TestIamPermissionsRequest TestIamPermissions(TestPermissionsRequest body, string project, string zone, string resource)
Parameters
Type | Name | Description |
---|---|---|
TestPermissionsRequest | body | The body of the request. |
string | project | Project ID for this request. |
string | zone | The name of the zone for this request. |
string | resource | Name or id of the resource for this request. |
Returns
Type | Description |
---|---|
NetworkEndpointGroupsResource.TestIamPermissionsRequest |