Class SourceInstanceProperties (1.16.1)

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

DEPRECATED: Please use compute#instanceProperties instead. New properties will not be added to this field.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

NameDescription
can_ip_forward bool
Enables instances created based on this machine image 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.
deletion_protection bool
Whether the instance created from this machine image should be protected against deletion. This field is a member of oneof_ _deletion_protection.
description str
An optional text description for the instances that are created from this machine image. This field is a member of oneof_ _description.
disks MutableSequence[google.cloud.compute_v1.types.SavedAttachedDisk]
An array of disks that are associated with the instances that are created from this machine image.
guest_accelerators MutableSequence[google.cloud.compute_v1.types.AcceleratorConfig]
A list of guest accelerator cards' type and count to use for instances created from this machine image.
key_revocation_action_type str
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. This field is a member of oneof_ _key_revocation_action_type.
labels MutableMapping[str, str]
Labels to apply to instances that are created from this machine image.
machine_type str
The machine type to use for instances that are created from this machine image. 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 this machine image. 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 created from this machine image. 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 MutableSequence[google.cloud.compute_v1.types.NetworkInterface]
An array of network access configurations for this interface.
scheduling google.cloud.compute_v1.types.Scheduling
Specifies the scheduling options for the instances that are created from this machine image. This field is a member of oneof_ _scheduling.
service_accounts MutableSequence[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 this machine image. Use metadata queries to obtain the access tokens for these instances.
tags google.cloud.compute_v1.types.Tags
A list of tags to apply to the instances that are created from this machine image. 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

KeyRevocationActionType

KeyRevocationActionType(value)

KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified.

Values: UNDEFINED_KEY_REVOCATION_ACTION_TYPE (0): A value indicating that the enum field is not set. KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED (467110106): Default value. This value is unused. NONE (2402104): Indicates user chose no operation. STOP (2555906): Indicates user chose to opt for VM shutdown on key revocation.

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.