Class InstanceProperties (1.4.0)

InstanceProperties(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Attributes

NameDescription
advanced_machine_features google.cloud.compute_v1.types.AdvancedMachineFeatures
Controls for advanced machine-related behavior features. Note that for MachineImage, this is not supported yet. This field is a member of oneof_ _advanced_machine_features.
can_ip_forward bool
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 to false. See the Enable IP forwarding documentation for more information. This field is a member of oneof_ _can_ip_forward.
confidential_instance_config google.cloud.compute_v1.types.ConfidentialInstanceConfig
Specifies the Confidential Instance options. Note that for MachineImage, this is not supported yet. This field is a member of oneof_ _confidential_instance_config.
description str
An optional text description for the instances that are created from these properties. This field is a member of oneof_ _description.
disks Sequence[google.cloud.compute_v1.types.AttachedDisk]
An array of disks that are associated with the instances that are created from these properties.
guest_accelerators Sequence[google.cloud.compute_v1.types.AcceleratorConfig]
A list of guest accelerator cards' type and count to use for instances created from these properties.
labels Mapping[str, str]
Labels to apply to instances that are created from these properties.
machine_type str
The machine type to use for instances that are created from these properties. This field is a member of oneof_ _machine_type.
metadata google.cloud.compute_v1.types.Metadata
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. See Project and instance metadata for more information. This field is a member of oneof_ _metadata.
min_cpu_platform str
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 as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge". For more information, read Specifying a Minimum CPU Platform. This field is a member of oneof_ _min_cpu_platform.
network_interfaces Sequence[google.cloud.compute_v1.types.NetworkInterface]
An array of network access configurations for this interface.
network_performance_config google.cloud.compute_v1.types.NetworkPerformanceConfig
Note that for MachineImage, this is not supported yet. This field is a member of oneof_ _network_performance_config.
private_ipv6_google_access str
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. This field is a member of oneof_ _private_ipv6_google_access.
reservation_affinity google.cloud.compute_v1.types.ReservationAffinity
Specifies the reservations that instances can consume from. Note that for MachineImage, this is not supported yet. This field is a member of oneof_ _reservation_affinity.
resource_manager_tags Mapping[str, str]
Resource manager tags to be bound to the instance. Tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.
resource_policies Sequence[str]
Resource policies (names, not URLs) applied to instances created from these properties. Note that for MachineImage, this is not supported yet.
scheduling google.cloud.compute_v1.types.Scheduling
Specifies the scheduling options for the instances that are created from these properties. This field is a member of oneof_ _scheduling.
service_accounts Sequence[google.cloud.compute_v1.types.ServiceAccount]
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.
shielded_instance_config google.cloud.compute_v1.types.ShieldedInstanceConfig
Note that for MachineImage, this is not supported yet. This field is a member of oneof_ _shielded_instance_config.
tags google.cloud.compute_v1.types.Tags
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. This field is a member of oneof_ _tags.

Classes

LabelsEntry

LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

Parameters
NameDescription
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, .Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.

PrivateIpv6GoogleAccess

PrivateIpv6GoogleAccess(value)

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.

ResourceManagerTagsEntry

ResourceManagerTagsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

Parameters
NameDescription
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, .Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.