# Class InstanceProperties (0.12.0)

0.12.0 (latest) 0.11.0 0.4.0 0.3.0 0.2.0 0.1.8

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

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

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `advanced_machine_features` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-compute-v1beta/latest/google.cloud.compute_v1beta.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 tofalse. See theEnable IP forwarding documentation for more information. This field is a member of `oneof`_ `_can_ip_forward`. |
| `confidential_instance_config` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-compute-v1beta/latest/google.cloud.compute_v1beta.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` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/google-cloud-compute-v1beta/latest/google.cloud.compute_v1beta.types.AttachedDisk]` An array of disks that are associated with the instances that are created from these properties. |
| `display_device` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-compute-v1beta/latest/google.cloud.compute_v1beta.types.DisplayDevice` Display Device properties to enable support for remote display products like: Teradici, VNC and TeamViewer Note that for MachineImage, this is not supported yet. This field is a member of `oneof`_ `_display_device`. |
| `guest_accelerators` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/google-cloud-compute-v1beta/latest/google.cloud.compute_v1beta.types.AcceleratorConfig]` A list of guest accelerator cards' type and count to use for instances created from these properties. |
| `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 these properties. |
| `machine_type` | `str` 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`. This field is a member of `oneof`_ `_machine_type`. |
| `metadata` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-compute-v1beta/latest/google.cloud.compute_v1beta.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. SeeProject 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 asminCpuPlatform: "Intel Haswell" orminCpuPlatform: "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[https://docs.cloud.google.com/python/docs/reference/google-cloud-compute-v1beta/latest/google.cloud.compute_v1beta.types.NetworkInterface]` An array of network access configurations for this interface. |
| `network_performance_config` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-compute-v1beta/latest/google.cloud.compute_v1beta.types.NetworkPerformanceConfig` Note that for MachineImage, this is not supported yet. This field is a member of `oneof`_ `_network_performance_config`. |
| `partner_metadata` | `MutableMapping[str, https://docs.cloud.google.com/python/docs/reference/google-cloud-compute-v1beta/latest/google.cloud.compute_v1beta.types.StructuredEntries]` Partner Metadata assigned to the instance properties. A map from a subdomain (namespace) to entries map. |
| `post_key_revocation_action_type` | `str` PostKeyRevocationActionType of the instance. Check the PostKeyRevocationActionType enum for the list of possible values. This field is a member of `oneof`_ `_post_key_revocation_action_type`. |
| `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` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-compute-v1beta/latest/google.cloud.compute_v1beta.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` | `MutableMapping[str, str]` 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. |
| `resource_policies` | `MutableSequence[str]` Resource policies (names, not URLs) applied to instances created from these properties. Note that for MachineImage, this is not supported yet. |
| `scheduling` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-compute-v1beta/latest/google.cloud.compute_v1beta.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` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/google-cloud-compute-v1beta/latest/google.cloud.compute_v1beta.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` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-compute-v1beta/latest/google.cloud.compute_v1beta.types.ShieldedInstanceConfig` Note that for MachineImage, this is not supported yet. This field is a member of `oneof`_ `_shielded_instance_config`. |
| `shielded_vm_config` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-compute-v1beta/latest/google.cloud.compute_v1beta.types.ShieldedVmConfig` Specifies the Shielded VM options for the instances that are created from these properties. This field is a member of `oneof`_ `_shielded_vm_config`. |
| `tags` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-compute-v1beta/latest/google.cloud.compute_v1beta.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`. |
| `workload_identity_config` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-compute-v1beta/latest/google.cloud.compute_v1beta.types.WorkloadIdentityConfig` This field is a member of `oneof`_ `_workload_identity_config`. |

## Classes

### KeyRevocationActionType

    KeyRevocationActionType(value)

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

### LabelsEntry

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

The abstract base class for a message.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `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. |

### PartnerMetadataEntry

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

The abstract base class for a message.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `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. |

### PostKeyRevocationActionType

    PostKeyRevocationActionType(value)

PostKeyRevocationActionType of the instance.

### 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** ||
|---|---|
| **Name** | **Description** |
| `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. |