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 \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. Name of the compute instance.
↳ advanced_machine_features
↳ can_ip_forward
bool
Optional. Allows this instance to send and receive packets with non-matching destination or source IPs.
↳ confidential_instance_config
↳ 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< AttachedDisk
>
Optional. Array of disks associated with this instance. Persistent disks must be created before you can assign them.
↳ display_device
↳ guest_accelerators
array< 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
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
↳ machine_type
string
Optional. Full or partial URL of the machine type resource to use for this instance.
↳ metadata
↳ min_cpu_platform
string
Optional. Minimum CPU platform to use for this instance.
↳ network_interfaces
array< 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.
↳ network_performance_config
↳ params
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
↳ resource_policies
array
Optional. Resource policies applied to this instance.
↳ scheduling
↳ service_accounts
array< 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
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.
string
hasName
clearName
setName
Required. Name of the compute instance.
var
string
$this
getAdvancedMachineFeatures
Optional. Controls for advanced machine-related behavior features.
hasAdvancedMachineFeatures
clearAdvancedMachineFeatures
setAdvancedMachineFeatures
Optional. Controls for advanced machine-related behavior features.
$this
getCanIpForward
Optional. Allows this instance to send and receive packets with non-matching destination or source IPs.
bool
hasCanIpForward
clearCanIpForward
setCanIpForward
Optional. Allows this instance to send and receive packets with non-matching destination or source IPs.
var
bool
$this
getConfidentialInstanceConfig
Optional. Controls Confidential compute options on the instance
hasConfidentialInstanceConfig
clearConfidentialInstanceConfig
setConfidentialInstanceConfig
Optional. Controls Confidential compute options on the instance
$this
getDeletionProtection
Optional. Whether the resource should be protected against deletion.
bool
hasDeletionProtection
clearDeletionProtection
setDeletionProtection
Optional. Whether the resource should be protected against deletion.
var
bool
$this
getDescription
Optional. An optional description of this resource. Provide this property when you create the resource.
string
hasDescription
clearDescription
setDescription
Optional. An optional description of this resource. Provide this property when you create the resource.
var
string
$this
getDisks
Optional. Array of disks associated with this instance. Persistent disks must be created before you can assign them.
setDisks
Optional. Array of disks associated with this instance. Persistent disks must be created before you can assign them.
$this
getDisplayDevice
Optional. Enables display device for the instance.
hasDisplayDevice
clearDisplayDevice
setDisplayDevice
Optional. Enables display device for the instance.
$this
getGuestAccelerators
Optional. A list of the type and count of accelerator cards attached to the instance.
setGuestAccelerators
Optional. A list of the type and count of accelerator cards attached to the instance.
$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.
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.
var
string
$this
getInstanceEncryptionKey
Optional. Encrypts suspended data for an instance with a customer-managed encryption key.
hasInstanceEncryptionKey
clearInstanceEncryptionKey
setInstanceEncryptionKey
Optional. Encrypts suspended data for an instance with a customer-managed encryption key.
$this
getKeyRevocationActionType
Optional. KeyRevocationActionType of the instance.
int
hasKeyRevocationActionType
clearKeyRevocationActionType
setKeyRevocationActionType
Optional. KeyRevocationActionType of the instance.
var
int
$this
getLabels
Optional. Labels to apply to this instance.
setLabels
Optional. Labels to apply to this instance.
$this
getMachineType
Optional. Full or partial URL of the machine type resource to use for this instance.
string
hasMachineType
clearMachineType
setMachineType
Optional. Full or partial URL of the machine type resource to use for this instance.
var
string
$this
getMetadata
Optional. This includes custom metadata and predefined keys.
hasMetadata
clearMetadata
setMetadata
Optional. This includes custom metadata and predefined keys.
$this
getMinCpuPlatform
Optional. Minimum CPU platform to use for this instance.
string
hasMinCpuPlatform
clearMinCpuPlatform
setMinCpuPlatform
Optional. Minimum CPU platform to use for this instance.
var
string
$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.
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.
$this
getNetworkPerformanceConfig
Optional. Configure network performance such as egress bandwidth tier.
hasNetworkPerformanceConfig
clearNetworkPerformanceConfig
setNetworkPerformanceConfig
Optional. Configure network performance such as egress bandwidth tier.
$this
getParams
Input only. Additional params passed with the request, but not persisted as part of resource payload.
hasParams
clearParams
setParams
Input only. Additional params passed with the request, but not persisted as part of resource payload.
$this
getPrivateIpv6GoogleAccess
Optional. The private IPv6 google access type for the VM.
If not specified, use INHERIT_FROM_SUBNETWORK as default.
int
hasPrivateIpv6GoogleAccess
clearPrivateIpv6GoogleAccess
setPrivateIpv6GoogleAccess
Optional. The private IPv6 google access type for the VM.
If not specified, use INHERIT_FROM_SUBNETWORK as default.
var
int
$this
getAllocationAffinity
Optional. Specifies the reservations that this instance can consume from.
hasAllocationAffinity
clearAllocationAffinity
setAllocationAffinity
Optional. Specifies the reservations that this instance can consume from.
$this
getResourcePolicies
Optional. Resource policies applied to this instance.
setResourcePolicies
Optional. Resource policies applied to this instance.
var
string[]
$this
getScheduling
Optional. Sets the scheduling options for this instance.
hasScheduling
clearScheduling
setScheduling
Optional. Sets the scheduling options for this instance.
$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.
setServiceAccounts
Optional. A list of service accounts, with their specified scopes, authorized for this instance. Only one service account per VM instance is supported.
$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.
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.
$this