Compute Engine v1 API - Class MachineType (2.6.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
RepeatedField<Accelerators>

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
Int32

HasCreationTimestamp

public bool HasCreationTimestamp { get; }

Gets whether the "creation_timestamp" field is set

Property Value
TypeDescription
Boolean

HasDescription

public bool HasDescription { get; }

Gets whether the "description" field is set

Property Value
TypeDescription
Boolean

HasGuestCpus

public bool HasGuestCpus { get; }

Gets whether the "guest_cpus" field is set

Property Value
TypeDescription
Boolean

HasId

public bool HasId { get; }

Gets whether the "id" field is set

Property Value
TypeDescription
Boolean

HasImageSpaceGb

public bool HasImageSpaceGb { get; }

Gets whether the "image_space_gb" field is set

Property Value
TypeDescription
Boolean

HasIsSharedCpu

public bool HasIsSharedCpu { get; }

Gets whether the "is_shared_cpu" field is set

Property Value
TypeDescription
Boolean

HasKind

public bool HasKind { get; }

Gets whether the "kind" field is set

Property Value
TypeDescription
Boolean

HasMaximumPersistentDisks

public bool HasMaximumPersistentDisks { get; }

Gets whether the "maximum_persistent_disks" field is set

Property Value
TypeDescription
Boolean

HasMaximumPersistentDisksSizeGb

public bool HasMaximumPersistentDisksSizeGb { get; }

Gets whether the "maximum_persistent_disks_size_gb" field is set

Property Value
TypeDescription
Boolean

HasMemoryMb

public bool HasMemoryMb { get; }

Gets whether the "memory_mb" field is set

Property Value
TypeDescription
Boolean

HasName

public bool HasName { get; }

Gets whether the "name" field is set

Property Value
TypeDescription
Boolean
public bool HasSelfLink { get; }

Gets whether the "self_link" field is set

Property Value
TypeDescription
Boolean

HasZone

public bool HasZone { get; }

Gets whether the "zone" field is set

Property Value
TypeDescription
Boolean

Id

public ulong Id { get; set; }

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

Property Value
TypeDescription
UInt64

ImageSpaceGb

public int ImageSpaceGb { get; set; }

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

Property Value
TypeDescription
Int32

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
Boolean

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
Int32

MaximumPersistentDisksSizeGb

public long MaximumPersistentDisksSizeGb { get; set; }

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

Property Value
TypeDescription
Int64

MemoryMb

public int MemoryMb { get; set; }

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

Property Value
TypeDescription
Int32

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
RepeatedField<ScratchDisks>
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