REST Resource: projects.locations.backupVaults.dataSources.backups

Resource: Backup

Message describing a Backup object.

JSON representation
{
  "name": string,
  "labels": {
    string: string,
    ...
  },
  "state": enum (State),
  "serviceLocks": [
    {
      object (BackupLock)
    }
  ],
  "backupApplianceLocks": [
    {
      object (BackupLock)
    }
  ],
  "backupType": enum (BackupType),
  "resourceSizeBytes": string,
  "description": string,
  "createTime": string,
  "updateTime": string,
  "enforcedRetentionEndTime": string,
  "expireTime": string,
  "consistencyTime": string,
  "etag": string,

  // Union field backup_properties can be only one of the following:
  "computeInstanceBackupProperties": {
    object (ComputeInstanceBackupProperties)
  },
  "backupApplianceBackupProperties": {
    object (BackupApplianceBackupProperties)
  }
  // End of list of possible types for union field backup_properties.

  // Union field plan_info can be only one of the following:
  "gcpBackupPlanInfo": {
    object (GCPBackupPlanInfo)
  }
  // End of list of possible types for union field plan_info.
}
Fields
name

string

Output only. Identifier. Name of the backup to create. It must have the format"projects/<project>/locations/<location>/backupVaults/<backupvault>/dataSources/{datasource}/backups/{backup}". {backup} cannot be changed after creation. It must be between 3-63 characters long and must be unique within the datasource.

labels

map (key: string, value: string)

Optional. Resource labels to represent user provided metadata. No labels currently defined.

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

state

enum (State)

Output only. The Backup resource instance state.

serviceLocks[]

object (BackupLock)

Output only. The list of BackupLocks taken by the service to prevent the deletion of the backup.

backupApplianceLocks[]

object (BackupLock)

Optional. The list of BackupLocks taken by the accessor Backup Appliance.

backupType

enum (BackupType)

Output only. Type of the backup, unspecified, scheduled or ondemand.

resourceSizeBytes

string (int64 format)

Output only. source resource size in bytes at the time of the backup.

description

string

Output only. The description of the Backup instance (2048 characters or less).

createTime

string (Timestamp format)

Output only. The time when the instance was created.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

updateTime

string (Timestamp format)

Output only. The time when the instance was updated.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

enforcedRetentionEndTime

string (Timestamp format)

Optional. The backup can not be deleted before this time.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

expireTime

string (Timestamp format)

Optional. When this backup is automatically expired.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

consistencyTime

string (Timestamp format)

Output only. The point in time when this backup was captured from the source.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

etag

string

Optional. Server specified ETag to prevent updates from overwriting each other.

Union field backup_properties. Workload specific backup properties. backup_properties can be only one of the following:
computeInstanceBackupProperties

object (ComputeInstanceBackupProperties)

Output only. Compute Engine specific backup properties.

backupApplianceBackupProperties

object (BackupApplianceBackupProperties)

Output only. Backup Appliance specific backup properties.

Union field plan_info. Configuration Info has the resource format-specific configuration. plan_info can be only one of the following:
gcpBackupPlanInfo

object (GCPBackupPlanInfo)

Output only. Configuration for a Google Cloud resource.

State

Holds the state of the backup resource.

Enums
STATE_UNSPECIFIED State not set.
CREATING The backup is being created.
ACTIVE The backup has been created and is fully usable.
DELETING The backup is being deleted.
ERROR The backup is experiencing an issue and might be unusable.

BackupLock

BackupLock represents a single lock on a Backup resource. An unexpired lock on a Backup prevents the Backup from being deleted.

JSON representation
{
  "lockUntilTime": string,

  // Union field ClientLockInfo can be only one of the following:
  "backupApplianceLockInfo": {
    object (BackupApplianceLockInfo)
  },
  "serviceLockInfo": {
    object (ServiceLockInfo)
  }
  // End of list of possible types for union field ClientLockInfo.
}
Fields
lockUntilTime

string (Timestamp format)

Required. The time after which this lock is not considered valid and will no longer protect the Backup from deletion.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

Union field ClientLockInfo. Metadata about the owner and reason for the lock. ClientLockInfo can be only one of the following:
backupApplianceLockInfo

object (BackupApplianceLockInfo)

If the client is a backup and recovery appliance, this contains metadata about why the lock exists.

serviceLockInfo

object (ServiceLockInfo)

Output only. Contains metadata about the lock exist for Google Cloud native backups.

BackupApplianceLockInfo

BackupApplianceLockInfo contains metadata about the backupappliance that created the lock.

JSON representation
{
  "backupApplianceId": string,
  "backupApplianceName": string,
  "lockReason": string,

  // Union field lock_source can be only one of the following:
  "jobName": string,
  "backupImage": string,
  "slaId": string
  // End of list of possible types for union field lock_source.
}
Fields
backupApplianceId

string (int64 format)

Required. The ID of the backup/recovery appliance that created this lock.

backupApplianceName

string

Required. The name of the backup/recovery appliance that created this lock.

lockReason

string

Required. The reason for the lock: e.g. MOUNT/RESTORE/BACKUP/etc. The value of this string is only meaningful to the client and it is not interpreted by the BackupVault service.

Union field lock_source. The information about this lock. lock_source can be only one of the following:
jobName

string

The job name on the backup/recovery appliance that created this lock.

backupImage

string

The image name that depends on this Backup.

slaId

string (int64 format)

The SLA on the backup/recovery appliance that owns the lock.

ServiceLockInfo

ServiceLockInfo represents the details of a lock taken by the service on a Backup resource.

JSON representation
{
  "operation": string
}
Fields
operation

string

Output only. The name of the operation that created this lock. The lock will automatically be released when the operation completes.

ComputeInstanceBackupProperties

ComputeInstanceBackupProperties represents Compute Engine instance backup properties.

JSON representation
{
  "networkInterface": [
    {
      object (NetworkInterface)
    }
  ],
  "disk": [
    {
      object (AttachedDisk)
    }
  ],
  "serviceAccount": [
    {
      object (ServiceAccount)
    }
  ],
  "guestAccelerator": [
    {
      object (AcceleratorConfig)
    }
  ],
  "labels": {
    string: string,
    ...
  },
  "description": string,
  "tags": {
    object (Tags)
  },
  "machineType": string,
  "canIpForward": boolean,
  "metadata": {
    object (Metadata)
  },
  "scheduling": {
    object (Scheduling)
  },
  "minCpuPlatform": string,
  "keyRevocationActionType": enum (KeyRevocationActionType),
  "sourceInstance": string
}
Fields
networkInterface[]

object (NetworkInterface)

An array of network access configurations for this interface.

disk[]

object (AttachedDisk)

An array of disks that are associated with the instances that are created from these properties.

serviceAccount[]

object (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.

guestAccelerator[]

object (AcceleratorConfig)

A list of guest accelerator cards' type and count to use for instances created from these properties.

labels

map (key: string, value: string)

Labels to apply to instances that are created from these properties.

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

description

string

An optional text description for the instances that are created from these properties.

tags

object (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 (https://www.ietf.org/rfc/rfc1035.txt).

machineType

string

The machine type to use for instances that are created from these properties.

canIpForward

boolean

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.

metadata

object (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. See https://cloud.google.com/compute/docs/metadata/overview for more information.

scheduling

object (Scheduling)

Specifies the scheduling options for the instances that are created from these properties.

minCpuPlatform

string

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.

keyRevocationActionType

enum (KeyRevocationActionType)

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

sourceInstance

string

The source instance used to create this backup. This can be a partial or full URL to the resource. For example, the following are valid values: -https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance -projects/project/zones/zone/instances/instance

Tags

A set of instance tags.

JSON representation
{
  "items": [
    string
  ]
}
Fields
items[]

string

Optional. An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.

NetworkInterface

A network interface resource attached to an instance. s

JSON representation
{
  "accessConfigs": [
    {
      object (AccessConfig)
    }
  ],
  "ipv6AccessConfigs": [
    {
      object (AccessConfig)
    }
  ],
  "aliasIpRanges": [
    {
      object (AliasIpRange)
    }
  ],
  "network": string,
  "subnetwork": string,
  "networkIP": string,
  "ipv6Address": string,
  "internalIpv6PrefixLength": integer,
  "name": string,
  "stackType": enum (StackType),
  "ipv6AccessType": enum (Ipv6AccessType),
  "queueCount": integer,
  "nicType": enum (NicType),
  "networkAttachment": string
}
Fields
accessConfigs[]

object (AccessConfig)

Optional. An array of configurations for this interface. Currently, only one access config,ONE_TO_ONE_NAT is supported. If there are no accessConfigs specified, then this instance will have no external internet access.

ipv6AccessConfigs[]

object (AccessConfig)

Optional. An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.

aliasIpRanges[]

object (AliasIpRange)

Optional. An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.

network

string

Optional. URL of the VPC network resource for this instance.

subnetwork

string

Optional. The URL of the Subnetwork resource for this instance.

networkIP

string

Optional. An IPv4 internal IP address to assign to the instance for this network interface. If not specified by the user, an unused internal IP is assigned by the system.

ipv6Address

string

Optional. An IPv6 internal network address for this network interface. To use a static internal IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork.

internalIpv6PrefixLength

integer

Optional. The prefix length of the primary internal IPv6 range.

name

string

Output only. [Output Only] The name of the network interface, which is generated by the server.

stackType

enum (StackType)

The stack type for this network interface.

ipv6AccessType

enum (Ipv6AccessType)

Optional. [Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork.

queueCount

integer

Optional. The networking queue count that's specified by users for the network interface. Both Rx and Tx queues will be set to this number. It'll be empty if not specified by the users.

nicType

enum (NicType)

Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.

networkAttachment

string

Optional. The URL of the network attachment that this interface should connect to in the following format: projects/{projectNumber}/regions/{region_name}/networkAttachments/{network_attachment_name}.

AccessConfig

An access configuration attached to an instance's network interface. Only one access config per instance is supported.

JSON representation
{
  "type": enum (AccessType),
  "name": string,
  "natIP": string,
  "externalIpv6": string,
  "externalIpv6PrefixLength": integer,
  "setPublicPtr": boolean,
  "publicPtrDomainName": string,
  "networkTier": enum (NetworkTier)
}
Fields
type

enum (AccessType)

Optional. In accessConfigs (IPv4), the default and only option is ONE_TO_ONE_NAT. In ipv6AccessConfigs, the default and only option is DIRECT_IPV6.

name

string

Optional. The name of this access configuration.

natIP

string

Optional. The external IP address of this access configuration.

externalIpv6

string

Optional. The external IPv6 address of this access configuration.

externalIpv6PrefixLength

integer

Optional. The prefix length of the external IPv6 range.

setPublicPtr

boolean

Optional. Specifies whether a public DNS 'PTR' record should be created to map the external IP address of the instance to a DNS domain name.

publicPtrDomainName

string

Optional. The DNS domain name for the public PTR record.

networkTier

enum (NetworkTier)

Optional. This signifies the networking tier used for configuring this access

AccessType

The type of configuration.

Enums
ACCESS_TYPE_UNSPECIFIED Default value. This value is unused.
ONE_TO_ONE_NAT ONE_TO_ONE_NAT
DIRECT_IPV6 Direct IPv6 access.

NetworkTier

Network tier property used by addresses, instances and forwarding rules.

Enums
NETWORK_TIER_UNSPECIFIED Default value. This value is unused.
PREMIUM High quality, Google-grade network tier, support for all networking products.
STANDARD Public internet quality, only limited support for other networking products.

AliasIpRange

An alias IP range attached to an instance's network interface.

JSON representation
{
  "ipCidrRange": string,
  "subnetworkRangeName": string
}
Fields
ipCidrRange

string

Optional. The IP alias ranges to allocate for this interface.

subnetworkRangeName

string

Optional. The name of a subnetwork secondary IP range from which to allocate an IP alias range. If not specified, the primary range of the subnetwork is used.

StackType

Stack type for this network interface.

Enums
STACK_TYPE_UNSPECIFIED Default should be STACK_TYPE_UNSPECIFIED.
IPV4_ONLY The network interface will be assigned IPv4 address.
IPV4_IPV6 The network interface can have both IPv4 and IPv6 addresses.

Ipv6AccessType

IPv6 access type for this network interface.

Enums
UNSPECIFIED_IPV6_ACCESS_TYPE IPv6 access type not set. Means this network interface hasn't been turned on IPv6 yet.
INTERNAL This network interface can have internal IPv6.
EXTERNAL This network interface can have external IPv6.

NicType

Nic type for this network interface.

Enums
NIC_TYPE_UNSPECIFIED Default should be NIC_TYPE_UNSPECIFIED.
VIRTIO_NET VIRTIO
GVNIC GVNIC

AttachedDisk

An instance-attached disk resource.

JSON representation
{
  "license": [
    string
  ],
  "guestOsFeature": [
    {
      object (GuestOsFeature)
    }
  ],
  "initializeParams": {
    object (InitializeParams)
  },
  "deviceName": string,
  "kind": string,
  "diskTypeDeprecated": enum (DiskType),
  "mode": enum (DiskMode),
  "source": string,
  "index": string,
  "boot": boolean,
  "autoDelete": boolean,
  "diskInterface": enum (DiskInterface),
  "diskEncryptionKey": {
    object (CustomerEncryptionKey)
  },
  "diskSizeGb": string,
  "savedState": enum (DiskSavedState),
  "diskType": string,
  "type": enum (DiskType)
}
Fields
license[]

string

Optional. Any valid publicly visible licenses.

guestOsFeature[]

object (GuestOsFeature)

Optional. A list of features to enable on the guest operating system. Applicable only for bootable images.

initializeParams

object (InitializeParams)

Optional. Specifies the parameters to initialize this disk.

deviceName

string

Optional. This is used as an identifier for the disks. This is the unique name has to provided to modify disk parameters like diskName and replicaZones (in case of RePDs)

kind

string

Optional. Type of the resource.

diskTypeDeprecated
(deprecated)

enum (DiskType)

Specifies the type of the disk.

mode

enum (DiskMode)

Optional. The mode in which to attach this disk.

source

string

Optional. Specifies a valid partial or full URL to an existing Persistent Disk resource.

index

string (int64 format)

Optional. A zero-based index to this disk, where 0 is reserved for the boot disk.

boot

boolean

Optional. Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.

autoDelete

boolean

Optional. Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).

diskInterface

enum (DiskInterface)

Optional. Specifies the disk interface to use for attaching this disk.

diskEncryptionKey

object (CustomerEncryptionKey)

Optional. Encrypts or decrypts a disk using a customer-supplied encryption key.

diskSizeGb

string (int64 format)

Optional. The size of the disk in GB.

savedState

enum (DiskSavedState)

Optional. Output only. The state of the disk.

diskType

string

Optional. Output only. The URI of the disk type resource. For example: projects/project/zones/zone/diskTypes/pd-standard or pd-ssd

type

enum (DiskType)

Optional. Specifies the type of the disk.

InitializeParams

Specifies the parameters to initialize this disk.

JSON representation
{
  "replicaZones": [
    string
  ],
  "diskName": string
}
Fields
replicaZones[]

string

Optional. URL of the zone where the disk should be created. Required for each regional disk associated with the instance.

diskName

string

Optional. Specifies the disk name. If not specified, the default is to use the name of the instance.

DiskType

List of the Disk Types.

Enums
DISK_TYPE_UNSPECIFIED Default value, which is unused.
SCRATCH A scratch disk type.
PERSISTENT A persistent disk type.

DiskMode

List of the Disk Modes.

Enums
DISK_MODE_UNSPECIFIED Default value, which is unused.
READ_WRITE Attaches this disk in read-write mode. Only one virtual machine at a time can be attached to a disk in read-write mode.
READ_ONLY Attaches this disk in read-only mode. Multiple virtual machines can use a disk in read-only mode at a time.
LOCKED The disk is locked for administrative reasons. Nobody else can use the disk. This mode is used (for example) when taking a snapshot of a disk to prevent mounting the disk while it is being snapshotted.

DiskInterface

List of the Disk Interfaces.

Enums
DISK_INTERFACE_UNSPECIFIED Default value, which is unused.
SCSI SCSI Disk Interface.
NVME NVME Disk Interface.
NVDIMM NVDIMM Disk Interface.
ISCSI ISCSI Disk Interface.

GuestOsFeature

Feature type of the Guest OS.

JSON representation
{
  "type": enum (FeatureType)
}
Fields
type

enum (FeatureType)

The ID of a supported feature.

FeatureType

List of the Feature Types.

Enums
FEATURE_TYPE_UNSPECIFIED Default value, which is unused.
VIRTIO_SCSI_MULTIQUEUE VIRTIO_SCSI_MULTIQUEUE feature type.
WINDOWS WINDOWS feature type.
MULTI_IP_SUBNET MULTI_IP_SUBNET feature type.
UEFI_COMPATIBLE UEFI_COMPATIBLE feature type.
SECURE_BOOT SECURE_BOOT feature type.
GVNIC GVNIC feature type.
SEV_CAPABLE SEV_CAPABLE feature type.
BARE_METAL_LINUX_COMPATIBLE BARE_METAL_LINUX_COMPATIBLE feature type.
SUSPEND_RESUME_COMPATIBLE SUSPEND_RESUME_COMPATIBLE feature type.
SEV_LIVE_MIGRATABLE SEV_LIVE_MIGRATABLE feature type.
SEV_SNP_CAPABLE SEV_SNP_CAPABLE feature type.
TDX_CAPABLE TDX_CAPABLE feature type.
IDPF IDPF feature type.
SEV_LIVE_MIGRATABLE_V2 SEV_LIVE_MIGRATABLE_V2 feature type.

CustomerEncryptionKey

A customer-supplied encryption key.

JSON representation
{

  // Union field key can be only one of the following:
  "rawKey": string,
  "rsaEncryptedKey": string,
  "kmsKeyName": string
  // End of list of possible types for union field key.
  "kmsKeyServiceAccount": string
}
Fields
Union field key. The key to use for encryption. key can be only one of the following:
rawKey

string

Optional. Specifies a 256-bit customer-supplied encryption key.

rsaEncryptedKey

string

Optional. RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.

kmsKeyName

string

Optional. The name of the encryption key that is stored in Google Cloud KMS.

kmsKeyServiceAccount

string

Optional. The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.

DiskSavedState

List of the states of the Disk.

Enums
DISK_SAVED_STATE_UNSPECIFIED Default Disk state has not been preserved.
PRESERVED Disk state has been preserved.

Metadata

A metadata key/value entry.

JSON representation
{
  "items": [
    {
      object (Entry)
    }
  ]
}
Fields
items[]

object (Entry)

Optional. Array of key/value pairs. The total size of all keys and values must be less than 512 KB.

Entry

A key/value pair to be used for storing metadata.

JSON representation
{
  "key": string,
  "value": string
}
Fields
key

string

Optional. Key for the metadata entry.

value

string

Optional. Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 262144 bytes (256 KiB).

ServiceAccount

A service account.

JSON representation
{
  "scopes": [
    string
  ],
  "email": string
}
Fields
scopes[]

string

Optional. The list of scopes to be made available for this service account.

email

string

Optional. Email address of the service account.

Scheduling

Sets the scheduling options for an Instance.

JSON representation
{
  "nodeAffinities": [
    {
      object (NodeAffinity)
    }
  ],
  "onHostMaintenance": enum (OnHostMaintenance),
  "automaticRestart": boolean,
  "preemptible": boolean,
  "minNodeCpus": integer,
  "provisioningModel": enum (ProvisioningModel),
  "instanceTerminationAction": enum (InstanceTerminationAction),
  "localSsdRecoveryTimeout": {
    object (SchedulingDuration)
  }
}
Fields
nodeAffinities[]

object (NodeAffinity)

Optional. A set of node affinity and anti-affinity configurations. Overrides reservationAffinity.

onHostMaintenance

enum (OnHostMaintenance)

Optional. Defines the maintenance behavior for this instance.

automaticRestart

boolean

Optional. Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user).

preemptible

boolean

Optional. Defines whether the instance is preemptible.

minNodeCpus

integer

Optional. The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.

provisioningModel

enum (ProvisioningModel)

Optional. Specifies the provisioning model of the instance.

instanceTerminationAction

enum (InstanceTerminationAction)

Optional. Specifies the termination action for the instance.

localSsdRecoveryTimeout

object (SchedulingDuration)

Optional. Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour.

OnHostMaintenance

Defines the maintenance behavior for this instance=

Enums
ON_HOST_MAINTENANCE_UNSPECIFIED Default value. This value is unused.
TERMINATE Tells Compute Engine to terminate and (optionally) restart the instance away from the maintenance activity.
MIGRATE Default, Allows Compute Engine to automatically migrate instances out of the way of maintenance events.

NodeAffinity

Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled.

JSON representation
{
  "values": [
    string
  ],
  "key": string,
  "operator": enum (Operator)
}
Fields
values[]

string

Optional. Corresponds to the label values of Node resource.

key

string

Optional. Corresponds to the label key of Node resource.

operator

enum (Operator)

Optional. Defines the operation of node selection.

Operator

Defines the type of node selections.

Enums
OPERATOR_UNSPECIFIED Default value. This value is unused.
IN Requires Compute Engine to seek for matched nodes.
NOT_IN Requires Compute Engine to avoid certain nodes.

ProvisioningModel

Defines the provisioning model for an instance.

Enums
PROVISIONING_MODEL_UNSPECIFIED Default value. This value is not used.
STANDARD Standard provisioning with user controlled runtime, no discounts.
SPOT Heavily discounted, no guaranteed runtime.

InstanceTerminationAction

Defines the supported termination actions for an instance.

Enums
INSTANCE_TERMINATION_ACTION_UNSPECIFIED Default value. This value is unused.
DELETE Delete the VM.
STOP Stop the VM without storing in-memory content. default action.

SchedulingDuration

A SchedulingDuration represents a fixed-length span of time represented as a count of seconds and fractions of seconds at nanosecond resolution. It is independent of any calendar and concepts like "day" or "month". Range is approximately 10,000 years.

JSON representation
{
  "seconds": string,
  "nanos": integer
}
Fields
seconds

string (int64 format)

Optional. Span of time at a resolution of a second.

nanos

integer

Optional. Span of time that's a fraction of a second at nanosecond resolution.

AcceleratorConfig

A specification of the type and number of accelerator cards attached to the instance.

JSON representation
{
  "acceleratorType": string,
  "acceleratorCount": integer
}
Fields
acceleratorType

string

Optional. Full or partial URL of the accelerator type resource to attach to this instance.

acceleratorCount

integer

Optional. The number of the guest accelerator cards exposed to this instance.

KeyRevocationActionType

Specifies whether the virtual machine instance will be shut down on key revocation. It is currently used in instance, instance properties and GMI protos

Enums
KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED Default value. This value is unused.
NONE Indicates user chose no operation.
STOP Indicates user chose to opt for VM shutdown on key revocation.

BackupApplianceBackupProperties

BackupApplianceBackupProperties represents BackupDR backup appliance's properties.

JSON representation
{
  "generationId": integer,
  "finalizeTime": string,
  "recoveryRangeStartTime": string,
  "recoveryRangeEndTime": string
}
Fields
generationId

integer

Output only. The numeric generation ID of the backup (monotonically increasing).

finalizeTime

string (Timestamp format)

Output only. The time when this backup object was finalized (if none, backup is not finalized).

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

recoveryRangeStartTime

string (Timestamp format)

Optional. The earliest timestamp of data available in this Backup.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

recoveryRangeEndTime

string (Timestamp format)

Optional. The latest timestamp of data available in this Backup.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

BackupType

Type of the backup, scheduled or ondemand.

Enums
BACKUP_TYPE_UNSPECIFIED Backup type is unspecified.
SCHEDULED Scheduled backup.
ON_DEMAND On demand backup.

GCPBackupPlanInfo

GCPBackupPlanInfo captures the plan configuration details of Google Cloud resources at the time of backup.

JSON representation
{
  "backupPlan": string,
  "backupPlanRuleId": string
}
Fields
backupPlan

string

Resource name of backup plan by which workload is protected at the time of the backup. Format: projects/{project}/locations/{location}/backupPlans/{backupPlanId}

backupPlanRuleId

string

The rule id of the backup plan which triggered this backup in case of scheduled backup or used for

Methods

delete

Deletes a Backup.

get

Gets details of a Backup.

list

Lists Backups in a given project and location.

patch

Updates the settings of a Backup.

restore

Restore from a Backup