Class MachineTypesResource
The "machineTypes" collection of methods.
Inherited Members
Namespace: Google.Apis.Compute.alpha
Assembly: Google.Apis.Compute.alpha.dll
Syntax
public class MachineTypesResource
Constructors
MachineTypesResource(IClientService)
Constructs a new resource.
Declaration
public MachineTypesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
AggregatedList(string)
Retrieves an aggregated list of machine types. To prevent failure, Google recommends that you set the
returnPartialSuccess
parameter to true
.
Declaration
public virtual MachineTypesResource.AggregatedListRequest AggregatedList(string project)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
Returns
Type | Description |
---|---|
MachineTypesResource.AggregatedListRequest |
Get(string, string, string)
Returns the specified machine type.
Declaration
public virtual MachineTypesResource.GetRequest Get(string project, string zone, string machineType)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | zone | The name of the zone for this request. |
string | machineType | Name of the machine type to return. |
Returns
Type | Description |
---|---|
MachineTypesResource.GetRequest |
List(string, string)
Retrieves a list of machine types available to the specified project.
Declaration
public virtual MachineTypesResource.ListRequest List(string project, string zone)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | zone | The name of the zone for this request. |
Returns
Type | Description |
---|---|
MachineTypesResource.ListRequest |