Compute Engine v1 API - Class MachineType (2.10.0)

public sealed class MachineType : IMessage<MachineType>, IEquatable<MachineType>, IDeepCloneable<MachineType>, IBufferMessage, IMessage

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

Represents a Machine Type resource. You can use specific machine types for your VM instances based on performance and pricing requirements. For more information, read Machine Types.

Inheritance

object > MachineType

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

MachineType()

public MachineType()

MachineType(MachineType)

public MachineType(MachineType other)
Parameter
NameDescription
otherMachineType

Properties

Accelerators

public RepeatedField<Accelerators> Accelerators { get; }

[Output Only] A list of accelerator configurations assigned to this machine type.

Property Value
TypeDescription
RepeatedFieldAccelerators

CreationTimestamp

public string CreationTimestamp { get; set; }

[Output Only] Creation timestamp in RFC3339 text format.

Property Value
TypeDescription
string

Deprecated

public DeprecationStatus Deprecated { get; set; }

[Output Only] The deprecation status associated with this machine type. Only applicable if the machine type is unavailable.

Property Value
TypeDescription
DeprecationStatus

Description

public string Description { get; set; }

[Output Only] An optional textual description of the resource.

Property Value
TypeDescription
string

GuestCpus

public int GuestCpus { get; set; }

[Output Only] The number of virtual CPUs that are available to the instance.

Property Value
TypeDescription
int

HasCreationTimestamp

public bool HasCreationTimestamp { get; }

Gets whether the "creation_timestamp" field is set

Property Value
TypeDescription
bool

HasDescription

public bool HasDescription { get; }

Gets whether the "description" field is set

Property Value
TypeDescription
bool

HasGuestCpus

public bool HasGuestCpus { get; }

Gets whether the "guest_cpus" field is set

Property Value
TypeDescription
bool

HasId

public bool HasId { get; }

Gets whether the "id" field is set

Property Value
TypeDescription
bool

HasImageSpaceGb

public bool HasImageSpaceGb { get; }

Gets whether the "image_space_gb" field is set

Property Value
TypeDescription
bool

HasIsSharedCpu

public bool HasIsSharedCpu { get; }

Gets whether the "is_shared_cpu" field is set

Property Value
TypeDescription
bool

HasKind

public bool HasKind { get; }

Gets whether the "kind" field is set

Property Value
TypeDescription
bool

HasMaximumPersistentDisks

public bool HasMaximumPersistentDisks { get; }

Gets whether the "maximum_persistent_disks" field is set

Property Value
TypeDescription
bool

HasMaximumPersistentDisksSizeGb

public bool HasMaximumPersistentDisksSizeGb { get; }

Gets whether the "maximum_persistent_disks_size_gb" field is set

Property Value
TypeDescription
bool

HasMemoryMb

public bool HasMemoryMb { get; }

Gets whether the "memory_mb" field is set

Property Value
TypeDescription
bool

HasName

public bool HasName { get; }

Gets whether the "name" field is set

Property Value
TypeDescription
bool
public bool HasSelfLink { get; }

Gets whether the "self_link" field is set

Property Value
TypeDescription
bool

HasZone

public bool HasZone { get; }

Gets whether the "zone" field is set

Property Value
TypeDescription
bool

Id

public ulong Id { get; set; }

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

Property Value
TypeDescription
ulong

ImageSpaceGb

public int ImageSpaceGb { get; set; }

[Deprecated] This property is deprecated and will never be populated with any relevant values.

Property Value
TypeDescription
int

IsSharedCpu

public bool IsSharedCpu { get; set; }

[Output Only] Whether this machine type has a shared CPU. See Shared-core machine types for more information.

Property Value
TypeDescription
bool

Kind

public string Kind { get; set; }

[Output Only] The type of the resource. Always compute#machineType for machine types.

Property Value
TypeDescription
string

MaximumPersistentDisks

public int MaximumPersistentDisks { get; set; }

[Output Only] Maximum persistent disks allowed.

Property Value
TypeDescription
int

MaximumPersistentDisksSizeGb

public long MaximumPersistentDisksSizeGb { get; set; }

[Output Only] Maximum total persistent disks size (GB) allowed.

Property Value
TypeDescription
long

MemoryMb

public int MemoryMb { get; set; }

[Output Only] The amount of physical memory available to the instance, defined in MB.

Property Value
TypeDescription
int

Name

public string Name { get; set; }

[Output Only] Name of the resource.

Property Value
TypeDescription
string

ScratchDisks

public RepeatedField<ScratchDisks> ScratchDisks { get; }

[Output Only] A list of extended scratch disks assigned to the instance.

Property Value
TypeDescription
RepeatedFieldScratchDisks
public string SelfLink { get; set; }

[Output Only] Server-defined URL for the resource.

Property Value
TypeDescription
string

Zone

public string Zone { get; set; }

[Output Only] The name of the zone where the machine type resides, such as us-central1-a.

Property Value
TypeDescription
string