Class TargetInstancesResource
The "targetInstances" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.Compute.v1
Assembly: Google.Apis.Compute.v1.dll
Syntax
public class TargetInstancesResource
Constructors
TargetInstancesResource(IClientService)
Constructs a new resource.
Declaration
public TargetInstancesResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
AggregatedList(String)
Retrieves an aggregated list of target instances.
Declaration
public virtual TargetInstancesResource.AggregatedListRequest AggregatedList(string project)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | project | Project ID for this request. |
Returns
| Type | Description |
|---|---|
| TargetInstancesResource.AggregatedListRequest |
Delete(String, String, String)
Deletes the specified TargetInstance resource.
Declaration
public virtual TargetInstancesResource.DeleteRequest Delete(string project, string zone, string targetInstance)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | project | Project ID for this request. |
| System.String | zone | Name of the zone scoping this request. |
| System.String | targetInstance | Name of the TargetInstance resource to delete. |
Returns
| Type | Description |
|---|---|
| TargetInstancesResource.DeleteRequest |
Get(String, String, String)
Returns the specified TargetInstance resource. Gets a list of available target instances by making a list() request.
Declaration
public virtual TargetInstancesResource.GetRequest Get(string project, string zone, string targetInstance)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | project | Project ID for this request. |
| System.String | zone | Name of the zone scoping this request. |
| System.String | targetInstance | Name of the TargetInstance resource to return. |
Returns
| Type | Description |
|---|---|
| TargetInstancesResource.GetRequest |
Insert(TargetInstance, String, String)
Creates a TargetInstance resource in the specified project and zone using the data included in the request.
Declaration
public virtual TargetInstancesResource.InsertRequest Insert(TargetInstance body, string project, string zone)
Parameters
| Type | Name | Description |
|---|---|---|
| TargetInstance | body | The body of the request. |
| System.String | project | Project ID for this request. |
| System.String | zone | Name of the zone scoping this request. |
Returns
| Type | Description |
|---|---|
| TargetInstancesResource.InsertRequest |
List(String, String)
Retrieves a list of TargetInstance resources available to the specified project and zone.
Declaration
public virtual TargetInstancesResource.ListRequest List(string project, string zone)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | project | Project ID for this request. |
| System.String | zone | Name of the zone scoping this request. |
Returns
| Type | Description |
|---|---|
| TargetInstancesResource.ListRequest |