public sealed class InstanceProperties : IMessage<InstanceProperties>, IEquatable<InstanceProperties>, IDeepCloneable<InstanceProperties>, IBufferMessage, IMessage
Inheritance
object >
InstanceProperties
Namespace
Google.Cloud.Compute.V1
Assembly
Google.Cloud.Compute.V1.dll
Constructors
InstanceProperties()
public InstanceProperties()
InstanceProperties(InstanceProperties)
public InstanceProperties(InstanceProperties other)
Properties
AdvancedMachineFeatures
public AdvancedMachineFeatures AdvancedMachineFeatures { get; set; }
Controls for advanced machine-related behavior features.
Note that for MachineImage, this is not supported yet.
CanIpForward
public bool CanIpForward { get; set; }
Enables instances created based on these properties to send packets with
source IP addresses other than their own and receive packets with
destination IP addresses other than their own. If these instances will be
used as an IP gateway or it will be set as the next-hop in a Route
resource, specify true. If unsure, leave this set tofalse. See theEnable IP forwarding
documentation for more information.
| Property Value |
| Type |
Description |
bool |
|
ConfidentialInstanceConfig
public ConfidentialInstanceConfig ConfidentialInstanceConfig { get; set; }
Specifies the Confidential Instance options.
Note that for MachineImage, this is not supported yet.
Description
public string Description { get; set; }
An optional text description for the instances that are created from these
properties.
| Property Value |
| Type |
Description |
string |
|
Disks
public RepeatedField<AttachedDisk> Disks { get; }
An array of disks that are associated with the instances that are created
from these properties.
GuestAccelerators
public RepeatedField<AcceleratorConfig> GuestAccelerators { get; }
A list of guest accelerator cards' type and count to use for instances
created from these properties.
HasCanIpForward
public bool HasCanIpForward { get; }
Gets whether the "can_ip_forward" field is set
| Property Value |
| Type |
Description |
bool |
|
HasDescription
public bool HasDescription { get; }
Gets whether the "description" field is set
| Property Value |
| Type |
Description |
bool |
|
HasKeyRevocationActionType
public bool HasKeyRevocationActionType { get; }
Gets whether the "key_revocation_action_type" field is set
| Property Value |
| Type |
Description |
bool |
|
HasLocalSsdEncryptionMode
public bool HasLocalSsdEncryptionMode { get; }
Gets whether the "local_ssd_encryption_mode" field is set
| Property Value |
| Type |
Description |
bool |
|
HasMachineType
public bool HasMachineType { get; }
Gets whether the "machine_type" field is set
| Property Value |
| Type |
Description |
bool |
|
public bool HasMinCpuPlatform { get; }
Gets whether the "min_cpu_platform" field is set
| Property Value |
| Type |
Description |
bool |
|
HasPrivateIpv6GoogleAccess
public bool HasPrivateIpv6GoogleAccess { get; }
Gets whether the "private_ipv6_google_access" field is set
| Property Value |
| Type |
Description |
bool |
|
KeyRevocationActionType
public string KeyRevocationActionType { get; set; }
KeyRevocationActionType of the instance. Supported options are "STOP" and
"NONE". The default value is "NONE" if it is not specified.
Check the KeyRevocationActionType enum for the list of possible values.
| Property Value |
| Type |
Description |
string |
|
Labels
public MapField<string, string> Labels { get; }
Labels to apply to instances that are created from these properties.
LocalSsdEncryptionMode
public string LocalSsdEncryptionMode { get; set; }
Specifies which method should be used for encrypting the
Local SSDs attached to the VM.
Check the LocalSsdEncryptionMode enum for the list of possible values.
| Property Value |
| Type |
Description |
string |
|
MachineType
public string MachineType { get; set; }
The machine type to use for instances that are created from these
properties.
This field only accepts a machine type name, for example n2-standard-4.
If you use the machine type full or partial URL, for example
projects/my-l7ilb-project/zones/us-central1-a/machineTypes/n2-standard-4,
the request will result in an INTERNAL_ERROR.
| Property Value |
| Type |
Description |
string |
|
public Metadata Metadata { get; set; }
The metadata key/value pairs to assign to instances that are created from
these properties. These pairs can consist of custom metadata or predefined
keys. SeeProject and
instance metadata for more information.
| Property Value |
| Type |
Description |
Metadata |
|
public string MinCpuPlatform { get; set; }
Minimum cpu/platform to be used by instances. The instance may be
scheduled on the specified or newer cpu/platform. Applicable values are the
friendly names of CPU platforms, such asminCpuPlatform: "Intel Haswell" orminCpuPlatform: "Intel Sandy Bridge". For more
information, read Specifying a
Minimum CPU Platform.
| Property Value |
| Type |
Description |
string |
|
NetworkInterfaces
public RepeatedField<NetworkInterface> NetworkInterfaces { get; }
An array of network access configurations for this interface.
public NetworkPerformanceConfig NetworkPerformanceConfig { get; set; }
Note that for MachineImage, this is not supported yet.
PrivateIpv6GoogleAccess
public string PrivateIpv6GoogleAccess { get; set; }
The private IPv6 google access type for VMs.
If not specified, use INHERIT_FROM_SUBNETWORK as default.
Note that for MachineImage, this is not supported yet.
Check the PrivateIpv6GoogleAccess enum for the list of possible values.
| Property Value |
| Type |
Description |
string |
|
ReservationAffinity
public ReservationAffinity ReservationAffinity { get; set; }
Specifies the reservations that instances can consume from.
Note that for MachineImage, this is not supported yet.
public MapField<string, string> ResourceManagerTags { get; }
Input only. Resource manager tags to be bound to the instance. Tag keys and values
have the same definition as resource
manager tags. Keys and values can be either in numeric format,
such as tagKeys/{tag_key_id} and tagValues/{tag_value_id} or in
namespaced format such as {org_id|project_id}/{tag_key_short_name} and
{tag_value_short_name}. The field is ignored (both PUT &
PATCH) when empty.
ResourcePolicies
public RepeatedField<string> ResourcePolicies { get; }
Resource policies (names, not URLs) applied to instances created from
these properties.
Note that for MachineImage, this is not supported yet.
Scheduling
public Scheduling Scheduling { get; set; }
Specifies the scheduling options for the instances that are created from
these properties.
ServiceAccounts
public RepeatedField<ServiceAccount> ServiceAccounts { get; }
A list of service accounts with specified scopes. Access tokens for these
service accounts are available to the instances that are created from
these properties. Use metadata queries to obtain the access tokens for
these instances.
ShieldedInstanceConfig
public ShieldedInstanceConfig ShieldedInstanceConfig { get; set; }
Note that for MachineImage, this is not supported yet.
public Tags Tags { get; set; }
A list of tags to apply to the instances that are created from these
properties. The tags identify valid sources or targets for network
firewalls. The setTags method can modify this list of tags. Each tag within
the list must comply with RFC1035.
| Property Value |
| Type |
Description |
Tags |
|
WorkloadIdentityConfig
public WorkloadIdentityConfig WorkloadIdentityConfig { get; set; }