# Google Cloud Backup Dr V1 Client - Class ComputeInstanceRestoreProperties (0.13.0)

0.13.0 (latest) 0.12.1 0.11.1 0.10.0 0.9.0 0.8.1 0.7.0 0.6.2 0.5.1 0.4.2 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Google Cloud Backup Dr V1 Client class ComputeInstanceRestoreProperties.

ComputeInstanceRestoreProperties represents Compute Engine instance
properties to be overridden during restore.

Generated from protobuf message `google.cloud.backupdr.v1.ComputeInstanceRestoreProperties`

## Namespace

Google \\ Cloud \\ BackupDR \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. Name of the compute instance. |
| `↳ advanced_machine_features` | `https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.AdvancedMachineFeatures` Optional. Controls for advanced machine-related behavior features. |
| `↳ can_ip_forward` | `bool` Optional. Allows this instance to send and receive packets with non-matching destination or source IPs. |
| `↳ confidential_instance_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.ConfidentialInstanceConfig` Optional. Controls Confidential compute options on the instance |
| `↳ deletion_protection` | `bool` Optional. Whether the resource should be protected against deletion. |
| `↳ description` | `string` Optional. An optional description of this resource. Provide this property when you create the resource. |
| `↳ disks` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.AttachedDisk>` Optional. Array of disks associated with this instance. Persistent disks must be created before you can assign them. Source regional persistent disks will be restored with default replica zones if not specified. |
| `↳ display_device` | `https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.DisplayDevice` Optional. Enables display device for the instance. |
| `↳ guest_accelerators` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.AcceleratorConfig>` Optional. A list of the type and count of accelerator cards attached to the instance. |
| `↳ hostname` | `string` Optional. Specifies the hostname of the instance. The specified hostname must be RFC1035 compliant. If hostname is not specified, the default hostname is \[INSTANCE_NAME\].c.\[PROJECT_ID\].internal when using the global DNS, and \[INSTANCE_NAME\].\[ZONE\].c.\[PROJECT_ID\].internal when using zonal DNS. |
| `↳ instance_encryption_key` | `https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.CustomerEncryptionKey` Optional. Encrypts suspended data for an instance with a customer-managed encryption key. |
| `↳ key_revocation_action_type` | `int` Optional. KeyRevocationActionType of the instance. |
| `↳ labels` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Optional. Labels to apply to this instance. |
| `↳ machine_type` | `string` Optional. Full or partial URL of the machine type resource to use for this instance. |
| `↳ metadata` | `https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.Metadata` Optional. This includes custom metadata and predefined keys. |
| `↳ min_cpu_platform` | `string` Optional. Minimum CPU platform to use for this instance. |
| `↳ network_interfaces` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.NetworkInterface>` Optional. An array of network configurations for this instance. These specify how interfaces are configured to interact with other network services, such as connecting to the internet. Multiple interfaces are supported per instance. Required to restore in different project or region. |
| `↳ network_performance_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.NetworkPerformanceConfig` Optional. Configure network performance such as egress bandwidth tier. |
| `↳ params` | `https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.InstanceParams` Input only. Additional params passed with the request, but not persisted as part of resource payload. |
| `↳ private_ipv6_google_access` | `int` Optional. The private IPv6 google access type for the VM. If not specified, use INHERIT_FROM_SUBNETWORK as default. |
| `↳ allocation_affinity` | `https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.AllocationAffinity` Optional. Specifies the reservations that this instance can consume from. |
| `↳ resource_policies` | `string[]` Optional. Resource policies applied to this instance. By default, no resource policies will be applied. |
| `↳ scheduling` | `https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.Scheduling` Optional. Sets the scheduling options for this instance. |
| `↳ service_accounts` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.ServiceAccount>` Optional. A list of service accounts, with their specified scopes, authorized for this instance. Only one service account per VM instance is supported. |
| `↳ tags` | `https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.Tags` Optional. Tags to apply to this instance. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during instance creation. |

### getName

Required. Name of the compute instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasName

### clearName

### setName

Required. Name of the compute instance.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAdvancedMachineFeatures

Optional. Controls for advanced machine-related behavior features.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.AdvancedMachineFeatures|null` |   |

### hasAdvancedMachineFeatures

### clearAdvancedMachineFeatures

### setAdvancedMachineFeatures

Optional. Controls for advanced machine-related behavior features.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.AdvancedMachineFeatures` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCanIpForward

Optional. Allows this instance to send and receive packets with
non-matching destination or source IPs.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasCanIpForward

### clearCanIpForward

### setCanIpForward

Optional. Allows this instance to send and receive packets with
non-matching destination or source IPs.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getConfidentialInstanceConfig

Optional. Controls Confidential compute options on the instance

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.ConfidentialInstanceConfig|null` |   |

### hasConfidentialInstanceConfig

### clearConfidentialInstanceConfig

### setConfidentialInstanceConfig

Optional. Controls Confidential compute options on the instance

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.ConfidentialInstanceConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDeletionProtection

Optional. Whether the resource should be protected against deletion.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasDeletionProtection

### clearDeletionProtection

### setDeletionProtection

Optional. Whether the resource should be protected against deletion.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDescription

Optional. An optional description of this resource. Provide this property
when you create the resource.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasDescription

### clearDescription

### setDescription

Optional. An optional description of this resource. Provide this property
when you create the resource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDisks

Optional. Array of disks associated with this instance. Persistent disks
must be created before you can assign them. Source regional persistent
disks will be restored with default replica zones if not specified.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.AttachedDisk>` |   |

### setDisks

Optional. Array of disks associated with this instance. Persistent disks
must be created before you can assign them. Source regional persistent
disks will be restored with default replica zones if not specified.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.AttachedDisk>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDisplayDevice

Optional. Enables display device for the instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.DisplayDevice|null` |   |

### hasDisplayDevice

### clearDisplayDevice

### setDisplayDevice

Optional. Enables display device for the instance.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.DisplayDevice` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getGuestAccelerators

Optional. A list of the type and count of accelerator cards attached to the
instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.AcceleratorConfig>` |   |

### setGuestAccelerators

Optional. A list of the type and count of accelerator cards attached to the
instance.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.AcceleratorConfig>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getHostname

Optional. Specifies the hostname of the instance. The specified hostname
must be RFC1035 compliant. If hostname is not specified, the default
hostname is \[INSTANCE_NAME\].c.\[PROJECT_ID\].internal when using the global
DNS, and \[INSTANCE_NAME\].\[ZONE\].c.\[PROJECT_ID\].internal when using zonal
DNS.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasHostname

### clearHostname

### setHostname

Optional. Specifies the hostname of the instance. The specified hostname
must be RFC1035 compliant. If hostname is not specified, the default
hostname is \[INSTANCE_NAME\].c.\[PROJECT_ID\].internal when using the global
DNS, and \[INSTANCE_NAME\].\[ZONE\].c.\[PROJECT_ID\].internal when using zonal
DNS.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getInstanceEncryptionKey

Optional. Encrypts suspended data for an instance with a
customer-managed encryption key.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.CustomerEncryptionKey|null` |   |

### hasInstanceEncryptionKey

### clearInstanceEncryptionKey

### setInstanceEncryptionKey

Optional. Encrypts suspended data for an instance with a
customer-managed encryption key.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.CustomerEncryptionKey` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getKeyRevocationActionType

Optional. KeyRevocationActionType of the instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### hasKeyRevocationActionType

### clearKeyRevocationActionType

### setKeyRevocationActionType

Optional. KeyRevocationActionType of the instance.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getLabels

Optional. Labels to apply to this instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |   |

### setLabels

Optional. Labels to apply to this instance.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getMachineType

Optional. Full or partial URL of the machine type resource to use for this
instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasMachineType

### clearMachineType

### setMachineType

Optional. Full or partial URL of the machine type resource to use for this
instance.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getMetadata

Optional. This includes custom metadata and predefined keys.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.Metadata|null` |   |

### hasMetadata

### clearMetadata

### setMetadata

Optional. This includes custom metadata and predefined keys.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.Metadata` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getMinCpuPlatform

Optional. Minimum CPU platform to use for this instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasMinCpuPlatform

### clearMinCpuPlatform

### setMinCpuPlatform

Optional. Minimum CPU platform to use for this instance.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getNetworkInterfaces

Optional. An array of network configurations for this instance. These
specify how interfaces are configured to interact with other network
services, such as connecting to the internet. Multiple interfaces are
supported per instance. Required to restore in different project or region.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.NetworkInterface>` |   |

### setNetworkInterfaces

Optional. An array of network configurations for this instance. These
specify how interfaces are configured to interact with other network
services, such as connecting to the internet. Multiple interfaces are
supported per instance. Required to restore in different project or region.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.NetworkInterface>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getNetworkPerformanceConfig

Optional. Configure network performance such as egress bandwidth tier.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.NetworkPerformanceConfig|null` |   |

### hasNetworkPerformanceConfig

### clearNetworkPerformanceConfig

### setNetworkPerformanceConfig

Optional. Configure network performance such as egress bandwidth tier.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.NetworkPerformanceConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getParams

Input only. Additional params passed with the request, but not persisted
as part of resource payload.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.InstanceParams|null` |   |

### hasParams

### clearParams

### setParams

Input only. Additional params passed with the request, but not persisted
as part of resource payload.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.InstanceParams` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPrivateIpv6GoogleAccess

Optional. The private IPv6 google access type for the VM.

If not specified, use INHERIT_FROM_SUBNETWORK as default.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### hasPrivateIpv6GoogleAccess

### clearPrivateIpv6GoogleAccess

### setPrivateIpv6GoogleAccess

Optional. The private IPv6 google access type for the VM.

If not specified, use INHERIT_FROM_SUBNETWORK as default.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAllocationAffinity

Optional. Specifies the reservations that this instance can consume from.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.AllocationAffinity|null` |   |

### hasAllocationAffinity

### clearAllocationAffinity

### setAllocationAffinity

Optional. Specifies the reservations that this instance can consume from.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.AllocationAffinity` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getResourcePolicies

Optional. Resource policies applied to this instance.

By default, no resource policies will be applied.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setResourcePolicies

Optional. Resource policies applied to this instance.

By default, no resource policies will be applied.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getScheduling

Optional. Sets the scheduling options for this instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.Scheduling|null` |   |

### hasScheduling

### clearScheduling

### setScheduling

Optional. Sets the scheduling options for this instance.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.Scheduling` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getServiceAccounts

Optional. A list of service accounts, with their specified scopes,
authorized for this instance. Only one service account per VM instance is
supported.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.ServiceAccount>` |   |

### setServiceAccounts

Optional. A list of service accounts, with their specified scopes,
authorized for this instance. Only one service account per VM instance is
supported.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.ServiceAccount>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getTags

Optional. Tags to apply to this instance. Tags are used to identify valid
sources or targets for network firewalls and are specified by the client
during instance creation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.Tags|null` |   |

### hasTags

### clearTags

### setTags

Optional. Tags to apply to this instance. Tags are used to identify valid
sources or targets for network firewalls and are specified by the client
during instance creation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-backupdr/latest/V1.Tags` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |