public sealed class ComputeInstanceBackupProperties : IMessage<ComputeInstanceBackupProperties>, IEquatable<ComputeInstanceBackupProperties>, IDeepCloneable<ComputeInstanceBackupProperties>, IBufferMessage, IMessage
Reference documentation and code samples for the Backup and DR Service v1 API class ComputeInstanceBackupProperties.
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
https://cloud.google.com/vpc/docs/using-routes#canipforward
documentation for more information.
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 https://cloud.google.com/compute/docs/metadata/overview for more
information.
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
https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.
public RepeatedField<ServiceAccount> ServiceAccount { get; }
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.
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 (https://www.ietf.org/rfc/rfc1035.txt).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eComputeInstanceBackupProperties\u003c/code\u003e class in the Google Cloud Backup and DR Service v1 API represents the backup properties of a Compute Engine instance.\u003c/p\u003e\n"],["\u003cp\u003eThis class offers various properties, including \u003ccode\u003eCanIpForward\u003c/code\u003e, \u003ccode\u003eDescription\u003c/code\u003e, \u003ccode\u003eDisk\u003c/code\u003e, \u003ccode\u003eGuestAccelerator\u003c/code\u003e, and others, allowing the configuration of instances created from these properties.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eComputeInstanceBackupProperties\u003c/code\u003e class is 2.1.0, and earlier versions (2.0.0, 1.2.0, 1.1.0, 1.0.0-beta02) are also available.\u003c/p\u003e\n"],["\u003cp\u003eInstances created from these properties can be customized with labels, metadata, network configurations, scheduling options, service accounts, and tags.\u003c/p\u003e\n"],["\u003cp\u003eThe properties can define things such as the machine type, minimum CPU platform, and key revocation action type for the instance being created.\u003c/p\u003e\n"]]],[],null,["# Backup and DR Service v1 API - Class ComputeInstanceBackupProperties (2.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.0 (latest)](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.ComputeInstanceBackupProperties)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/2.1.0/Google.Cloud.BackupDR.V1.ComputeInstanceBackupProperties)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/2.0.0/Google.Cloud.BackupDR.V1.ComputeInstanceBackupProperties)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/1.2.0/Google.Cloud.BackupDR.V1.ComputeInstanceBackupProperties)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/1.1.0/Google.Cloud.BackupDR.V1.ComputeInstanceBackupProperties)\n- [1.0.0-beta02](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/1.0.0-beta02/Google.Cloud.BackupDR.V1.ComputeInstanceBackupProperties) \n\n public sealed class ComputeInstanceBackupProperties : IMessage\u003cComputeInstanceBackupProperties\u003e, IEquatable\u003cComputeInstanceBackupProperties\u003e, IDeepCloneable\u003cComputeInstanceBackupProperties\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Backup and DR Service v1 API class ComputeInstanceBackupProperties.\n\nComputeInstanceBackupProperties represents Compute Engine instance backup\nproperties. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ComputeInstanceBackupProperties \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ComputeInstanceBackupProperties](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.ComputeInstanceBackupProperties), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ComputeInstanceBackupProperties](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.ComputeInstanceBackupProperties), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ComputeInstanceBackupProperties](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.ComputeInstanceBackupProperties), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.BackupDR.V1](/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.BackupDR.V1.dll\n\nConstructors\n------------\n\n### ComputeInstanceBackupProperties()\n\n public ComputeInstanceBackupProperties()\n\n### ComputeInstanceBackupProperties(ComputeInstanceBackupProperties)\n\n public ComputeInstanceBackupProperties(ComputeInstanceBackupProperties other)\n\nProperties\n----------\n\n### CanIpForward\n\n public bool CanIpForward { get; set; }\n\nEnables instances created based on these properties to send packets with\nsource IP addresses other than their own and receive packets with\ndestination IP addresses other than their own. If these instances will be\nused as an IP gateway or it will be set as the next-hop in a Route\nresource, specify `true`. If unsure, leave this set to `false`. See the\n\u003chttps://cloud.google.com/vpc/docs/using-routes#canipforward\u003e\ndocumentation for more information.\n\n### Description\n\n public string Description { get; set; }\n\nAn optional text description for the instances that are created from these\nproperties.\n\n### Disk\n\n public RepeatedField\u003cAttachedDisk\u003e Disk { get; }\n\nAn array of disks that are associated with the instances that are created\nfrom these properties.\n\n### GuestAccelerator\n\n public RepeatedField\u003cAcceleratorConfig\u003e GuestAccelerator { get; }\n\nA list of guest accelerator cards' type and count to use for instances\ncreated from these properties.\n\n### HasCanIpForward\n\n public bool HasCanIpForward { get; }\n\nGets whether the \"can_ip_forward\" field is set\n\n### HasDescription\n\n public bool HasDescription { get; }\n\nGets whether the \"description\" field is set\n\n### HasKeyRevocationActionType\n\n public bool HasKeyRevocationActionType { get; }\n\nGets whether the \"key_revocation_action_type\" field is set\n\n### HasMachineType\n\n public bool HasMachineType { get; }\n\nGets whether the \"machine_type\" field is set\n\n### HasMinCpuPlatform\n\n public bool HasMinCpuPlatform { get; }\n\nGets whether the \"min_cpu_platform\" field is set\n\n### HasSourceInstance\n\n public bool HasSourceInstance { get; }\n\nGets whether the \"source_instance\" field is set\n\n### KeyRevocationActionType\n\n public KeyRevocationActionType KeyRevocationActionType { get; set; }\n\nKeyRevocationActionType of the instance. Supported options are \"STOP\" and\n\"NONE\". The default value is \"NONE\" if it is not specified.\n\n### Labels\n\n public MapField\u003cstring, string\u003e Labels { get; }\n\nLabels to apply to instances that are created from these properties.\n\n### MachineType\n\n public string MachineType { get; set; }\n\nThe machine type to use for instances that are created from these\nproperties.\n\n### Metadata\n\n public Metadata Metadata { get; set; }\n\nThe metadata key/value pairs to assign to instances that are created from\nthese properties. These pairs can consist of custom metadata or predefined\nkeys. See \u003chttps://cloud.google.com/compute/docs/metadata/overview\u003e for more\ninformation.\n\n### MinCpuPlatform\n\n public string MinCpuPlatform { get; set; }\n\nMinimum cpu/platform to be used by instances. The instance may be\nscheduled on the specified or newer cpu/platform. Applicable values are the\nfriendly names of CPU platforms, such as\n`minCpuPlatform: Intel Haswell` or `minCpuPlatform: Intel Sandy Bridge`.\nFor more information, read\n\u003chttps://cloud.google.com/compute/docs/instances/specify-min-cpu-platform\u003e.\n\n### NetworkInterface\n\n public RepeatedField\u003cNetworkInterface\u003e NetworkInterface { get; }\n\nAn array of network access configurations for this interface.\n\n### Scheduling\n\n public Scheduling Scheduling { get; set; }\n\nSpecifies the scheduling options for the instances that are created from\nthese properties.\n\n### ServiceAccount\n\n public RepeatedField\u003cServiceAccount\u003e ServiceAccount { get; }\n\nA list of service accounts with specified scopes. Access tokens for these\nservice accounts are available to the instances that are created from\nthese properties. Use metadata queries to obtain the access tokens for\nthese instances.\n\n### SourceInstance\n\n public string SourceInstance { get; set; }\n\nThe source instance used to create this backup. This can be a partial or\nfull URL to the resource. For example, the following are valid values:\n-\u003chttps://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance\u003e\n-projects/project/zones/zone/instances/instance\n\n### Tags\n\n public Tags Tags { get; set; }\n\nA list of tags to apply to the instances that are created from these\nproperties. The tags identify valid sources or targets for network\nfirewalls. The setTags method can modify this list of tags. Each tag within\nthe list must comply with RFC1035 (\u003chttps://www.ietf.org/rfc/rfc1035.txt\u003e)."]]