backupdr

package
v0.203.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2024 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Overview

Package backupdr provides access to the Backup and DR Service API.

For product documentation, see: https://cloud.google.com/backup-disaster-recovery

Library status

These client libraries are officially supported by Google. However, this library is considered complete and is in maintenance mode. This means that we will address critical bugs and security issues but will not add any new features.

When possible, we recommend using our newer [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) that are still actively being worked and iterated on.

Creating a client

Usage example:

import "google.golang.org/api/backupdr/v1"
...
ctx := context.Background()
backupdrService, err := backupdr.NewService(ctx)

In this example, Google Application Default Credentials are used for authentication. For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.

Other authentication options

To use an API key for authentication (note: some APIs do not support API keys), use google.golang.org/api/option.WithAPIKey:

backupdrService, err := backupdr.NewService(ctx, option.WithAPIKey("AIza..."))

To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow, use google.golang.org/api/option.WithTokenSource:

config := &oauth2.Config{...}
// ...
token, err := config.Exchange(ctx, ...)
backupdrService, err := backupdr.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))

See google.golang.org/api/option.ClientOption for details on options.

Index

Constants

View Source
const (
	// See, edit, configure, and delete your Google Cloud data and see the email
	// address for your Google Account.
	CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
)

OAuth2 scopes used by this API.

Variables

This section is empty.

Functions

This section is empty.

Types

type AbandonBackupRequest added in v0.188.0

type AbandonBackupRequest struct {
	// RequestId: Optional. An optional request ID to identify requests. Specify a
	// unique request ID so that if you must retry your request, the server will
	// know to ignore the request if it has already been completed. The server will
	// guarantee that for at least 60 minutes since the first request. For example,
	// consider a situation where you make an initial request and the request times
	// out. If you make the request again with the same request ID, the server can
	// check if original operation with the same request ID was received, and if
	// so, will ignore the second request. This prevents clients from accidentally
	// creating duplicate commitments. The request ID must be a valid UUID with the
	// exception that zero UUID is not supported
	// (00000000-0000-0000-0000-000000000000).
	RequestId string `json:"requestId,omitempty"`
	// ForceSendFields is a list of field names (e.g. "RequestId") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "RequestId") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

AbandonBackupRequest: request message for AbandonBackup.

func (AbandonBackupRequest) MarshalJSON added in v0.188.0

func (s AbandonBackupRequest) MarshalJSON() ([]byte, error)

type AcceleratorConfig added in v0.188.0

type AcceleratorConfig struct {
	// AcceleratorCount: Optional. The number of the guest accelerator cards
	// exposed to this instance.
	AcceleratorCount int64 `json:"acceleratorCount,omitempty"`
	// AcceleratorType: Optional. Full or partial URL of the accelerator type
	// resource to attach to this instance.
	AcceleratorType string `json:"acceleratorType,omitempty"`
	// ForceSendFields is a list of field names (e.g. "AcceleratorCount") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AcceleratorCount") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

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

func (AcceleratorConfig) MarshalJSON added in v0.188.0

func (s AcceleratorConfig) MarshalJSON() ([]byte, error)

type AccessConfig added in v0.188.0

type AccessConfig struct {
	// ExternalIpv6: Optional. The external IPv6 address of this access
	// configuration.
	ExternalIpv6 string `json:"externalIpv6,omitempty"`
	// ExternalIpv6PrefixLength: Optional. The prefix length of the external IPv6
	// range.
	ExternalIpv6PrefixLength int64 `json:"externalIpv6PrefixLength,omitempty"`
	// Name: Optional. The name of this access configuration.
	Name string `json:"name,omitempty"`
	// NatIP: Optional. The external IP address of this access configuration.
	NatIP string `json:"natIP,omitempty"`
	// NetworkTier: Optional. This signifies the networking tier used for
	// configuring this access
	//
	// Possible values:
	//   "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.
	NetworkTier string `json:"networkTier,omitempty"`
	// PublicPtrDomainName: Optional. The DNS domain name for the public PTR
	// record.
	PublicPtrDomainName string `json:"publicPtrDomainName,omitempty"`
	// SetPublicPtr: 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.
	SetPublicPtr bool `json:"setPublicPtr,omitempty"`
	// Type: Optional. In accessConfigs (IPv4), the default and only option is
	// ONE_TO_ONE_NAT. In ipv6AccessConfigs, the default and only option is
	// DIRECT_IPV6.
	//
	// Possible values:
	//   "ACCESS_TYPE_UNSPECIFIED" - Default value. This value is unused.
	//   "ONE_TO_ONE_NAT" - ONE_TO_ONE_NAT
	//   "DIRECT_IPV6" - Direct IPv6 access.
	Type string `json:"type,omitempty"`
	// ForceSendFields is a list of field names (e.g. "ExternalIpv6") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "ExternalIpv6") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

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

func (AccessConfig) MarshalJSON added in v0.188.0

func (s AccessConfig) MarshalJSON() ([]byte, error)

type AdvancedMachineFeatures added in v0.192.0

type AdvancedMachineFeatures struct {
	// EnableNestedVirtualization: Optional. Whether to enable nested
	// virtualization or not (default is false).
	EnableNestedVirtualization bool `json:"enableNestedVirtualization,omitempty"`
	// EnableUefiNetworking: Optional. Whether to enable UEFI networking for
	// instance creation.
	EnableUefiNetworking bool `json:"enableUefiNetworking,omitempty"`
	// ThreadsPerCore: Optional. The number of threads per physical core. To
	// disable simultaneous multithreading (SMT) set this to 1. If unset, the
	// maximum number of threads supported per core by the underlying processor is
	// assumed.
	ThreadsPerCore int64 `json:"threadsPerCore,omitempty"`
	// VisibleCoreCount: Optional. The number of physical cores to expose to an
	// instance. Multiply by the number of threads per core to compute the total
	// number of virtual CPUs to expose to the instance. If unset, the number of
	// cores is inferred from the instance's nominal CPU count and the underlying
	// platform's SMT width.
	VisibleCoreCount int64 `json:"visibleCoreCount,omitempty"`
	// ForceSendFields is a list of field names (e.g. "EnableNestedVirtualization")
	// to unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "EnableNestedVirtualization") to
	// include in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

AdvancedMachineFeatures: Specifies options for controlling advanced machine features.

func (AdvancedMachineFeatures) MarshalJSON added in v0.192.0

func (s AdvancedMachineFeatures) MarshalJSON() ([]byte, error)

type AliasIpRange added in v0.188.0

type AliasIpRange struct {
	// IpCidrRange: Optional. The IP alias ranges to allocate for this interface.
	IpCidrRange string `json:"ipCidrRange,omitempty"`
	// SubnetworkRangeName: 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.
	SubnetworkRangeName string `json:"subnetworkRangeName,omitempty"`
	// ForceSendFields is a list of field names (e.g. "IpCidrRange") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "IpCidrRange") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

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

func (AliasIpRange) MarshalJSON added in v0.188.0

func (s AliasIpRange) MarshalJSON() ([]byte, error)

type AllocationAffinity added in v0.192.0

type AllocationAffinity struct {
	// ConsumeReservationType: Optional. Specifies the type of reservation from
	// which this instance can consume
	//
	// Possible values:
	//   "TYPE_UNSPECIFIED" - Default value. This value is unused.
	//   "NO_RESERVATION" - Do not consume from any allocated capacity.
	//   "ANY_RESERVATION" - Consume any allocation available.
	//   "SPECIFIC_RESERVATION" - Must consume from a specific reservation. Must
	// specify key value fields for specifying the reservations.
	ConsumeReservationType string `json:"consumeReservationType,omitempty"`
	// Key: Optional. Corresponds to the label key of a reservation resource.
	Key string `json:"key,omitempty"`
	// Values: Optional. Corresponds to the label values of a reservation resource.
	Values []string `json:"values,omitempty"`
	// ForceSendFields is a list of field names (e.g. "ConsumeReservationType") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "ConsumeReservationType") to
	// include in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

AllocationAffinity: Specifies the reservations that this instance can consume from.

func (AllocationAffinity) MarshalJSON added in v0.192.0

func (s AllocationAffinity) MarshalJSON() ([]byte, error)

type AssetLocation added in v0.191.0

type AssetLocation struct {
	// CcfeRmsPath: Spanner path of the CCFE RMS database. It is only applicable
	// for CCFE tenants that use CCFE RMS for storing resource metadata.
	CcfeRmsPath string `json:"ccfeRmsPath,omitempty"`
	// Expected: Defines the customer expectation around ZI/ZS for this asset and
	// ZI/ZS state of the region at the time of asset creation.
	Expected *IsolationExpectations `json:"expected,omitempty"`
	// ExtraParameters: Defines extra parameters required for specific asset types.
	ExtraParameters []*ExtraParameter `json:"extraParameters,omitempty"`
	// LocationData: Contains all kinds of physical location definitions for this
	// asset.
	LocationData []*LocationData `json:"locationData,omitempty"`
	// ParentAsset: Defines parents assets if any in order to allow later
	// generation of child_asset_location data via child assets.
	ParentAsset []*CloudAsset `json:"parentAsset,omitempty"`
	// ForceSendFields is a list of field names (e.g. "CcfeRmsPath") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "CcfeRmsPath") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

AssetLocation: Provides the mapping of a cloud asset to a direct physical location or to a proxy that defines the location on its behalf.

func (AssetLocation) MarshalJSON added in v0.191.0

func (s AssetLocation) MarshalJSON() ([]byte, error)

type AttachedDisk added in v0.188.0

type AttachedDisk struct {
	// AutoDelete: Optional. Specifies whether the disk will be auto-deleted when
	// the instance is deleted (but not when the disk is detached from the
	// instance).
	AutoDelete bool `json:"autoDelete,omitempty"`
	// Boot: Optional. Indicates that this is a boot disk. The virtual machine will
	// use the first partition of the disk for its root filesystem.
	Boot bool `json:"boot,omitempty"`
	// DeviceName: Optional. This is used as an identifier for the disks. This is
	// the unique name has to provided to modify disk parameters like disk_name and
	// replica_zones (in case of RePDs)
	DeviceName string `json:"deviceName,omitempty"`
	// DiskEncryptionKey: Optional. Encrypts or decrypts a disk using a
	// customer-supplied encryption key.
	DiskEncryptionKey *CustomerEncryptionKey `json:"diskEncryptionKey,omitempty"`
	// DiskInterface: Optional. Specifies the disk interface to use for attaching
	// this disk.
	//
	// Possible values:
	//   "DISK_INTERFACE_UNSPECIFIED" - Default value, which is unused.
	//   "SCSI" - SCSI Disk Interface.
	//   "NVME" - NVME Disk Interface.
	//   "NVDIMM" - NVDIMM Disk Interface.
	//   "ISCSI" - ISCSI Disk Interface.
	DiskInterface string `json:"diskInterface,omitempty"`
	// DiskSizeGb: Optional. The size of the disk in GB.
	DiskSizeGb int64 `json:"diskSizeGb,omitempty,string"`
	// DiskType: Optional. Output only. The URI of the disk type resource. For
	// example: projects/project/zones/zone/diskTypes/pd-standard or pd-ssd
	DiskType string `json:"diskType,omitempty"`
	// DiskTypeDeprecated: Specifies the type of the disk.
	//
	// Possible values:
	//   "DISK_TYPE_UNSPECIFIED" - Default value, which is unused.
	//   "SCRATCH" - A scratch disk type.
	//   "PERSISTENT" - A persistent disk type.
	DiskTypeDeprecated string `json:"diskTypeDeprecated,omitempty"`
	// GuestOsFeature: Optional. A list of features to enable on the guest
	// operating system. Applicable only for bootable images.
	GuestOsFeature []*GuestOsFeature `json:"guestOsFeature,omitempty"`
	// Index: Optional. A zero-based index to this disk, where 0 is reserved for
	// the boot disk.
	Index int64 `json:"index,omitempty,string"`
	// InitializeParams: Optional. Specifies the parameters to initialize this
	// disk.
	InitializeParams *InitializeParams `json:"initializeParams,omitempty"`
	// Kind: Optional. Type of the resource.
	Kind string `json:"kind,omitempty"`
	// License: Optional. Any valid publicly visible licenses.
	License []string `json:"license,omitempty"`
	// Mode: Optional. The mode in which to attach this disk.
	//
	// Possible values:
	//   "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.
	Mode string `json:"mode,omitempty"`
	// SavedState: Optional. Output only. The state of the disk.
	//
	// Possible values:
	//   "DISK_SAVED_STATE_UNSPECIFIED" - Default Disk state has not been
	// preserved.
	//   "PRESERVED" - Disk state has been preserved.
	SavedState string `json:"savedState,omitempty"`
	// Source: Optional. Specifies a valid partial or full URL to an existing
	// Persistent Disk resource.
	Source string `json:"source,omitempty"`
	// Type: Optional. Specifies the type of the disk.
	//
	// Possible values:
	//   "DISK_TYPE_UNSPECIFIED" - Default value, which is unused.
	//   "SCRATCH" - A scratch disk type.
	//   "PERSISTENT" - A persistent disk type.
	Type string `json:"type,omitempty"`
	// ForceSendFields is a list of field names (e.g. "AutoDelete") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AutoDelete") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

AttachedDisk: An instance-attached disk resource.

func (AttachedDisk) MarshalJSON added in v0.188.0

func (s AttachedDisk) MarshalJSON() ([]byte, error)

type AuditConfig

type AuditConfig struct {
	// AuditLogConfigs: The configuration for logging of each type of permission.
	AuditLogConfigs []*AuditLogConfig `json:"auditLogConfigs,omitempty"`
	// Service: Specifies a service that will be enabled for audit logging. For
	// example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices`
	// is a special value that covers all services.
	Service string `json:"service,omitempty"`
	// ForceSendFields is a list of field names (e.g. "AuditLogConfigs") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AuditLogConfigs") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

AuditConfig: Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { "log_type": "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `jose@example.com` from DATA_READ logging, and `aliya@example.com` from DATA_WRITE logging.

func (AuditConfig) MarshalJSON

func (s AuditConfig) MarshalJSON() ([]byte, error)

type AuditLogConfig

type AuditLogConfig struct {
	// ExemptedMembers: Specifies the identities that do not cause logging for this
	// type of permission. Follows the same format of Binding.members.
	ExemptedMembers []string `json:"exemptedMembers,omitempty"`
	// LogType: The log type that this config enables.
	//
	// Possible values:
	//   "LOG_TYPE_UNSPECIFIED" - Default case. Should never be this.
	//   "ADMIN_READ" - Admin reads. Example: CloudIAM getIamPolicy
	//   "DATA_WRITE" - Data writes. Example: CloudSQL Users create
	//   "DATA_READ" - Data reads. Example: CloudSQL Users list
	LogType string `json:"logType,omitempty"`
	// ForceSendFields is a list of field names (e.g. "ExemptedMembers") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "ExemptedMembers") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

AuditLogConfig: Provides the configuration for logging a type of permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ logging.

func (AuditLogConfig) MarshalJSON

func (s AuditLogConfig) MarshalJSON() ([]byte, error)

type Backup added in v0.188.0

type Backup struct {
	// BackupApplianceBackupProperties: Output only. Backup Appliance specific
	// backup properties.
	BackupApplianceBackupProperties *BackupApplianceBackupProperties `json:"backupApplianceBackupProperties,omitempty"`
	// BackupApplianceLocks: Optional. The list of BackupLocks taken by the
	// accessor Backup Appliance.
	BackupApplianceLocks []*BackupLock `json:"backupApplianceLocks,omitempty"`
	// BackupType: Output only. Type of the backup, unspecified, scheduled or
	// ondemand.
	//
	// Possible values:
	//   "BACKUP_TYPE_UNSPECIFIED" - Backup type is unspecified.
	//   "SCHEDULED" - Scheduled backup.
	//   "ON_DEMAND" - On demand backup.
	BackupType string `json:"backupType,omitempty"`
	// ComputeInstanceBackupProperties: Output only. Compute Engine specific backup
	// properties.
	ComputeInstanceBackupProperties *ComputeInstanceBackupProperties `json:"computeInstanceBackupProperties,omitempty"`
	// ConsistencyTime: Output only. The point in time when this backup was
	// captured from the source.
	ConsistencyTime string `json:"consistencyTime,omitempty"`
	// CreateTime: Output only. The time when the instance was created.
	CreateTime string `json:"createTime,omitempty"`
	// Description: Output only. The description of the Backup instance (2048
	// characters or less).
	Description string `json:"description,omitempty"`
	// EnforcedRetentionEndTime: Optional. The backup can not be deleted before
	// this time.
	EnforcedRetentionEndTime string `json:"enforcedRetentionEndTime,omitempty"`
	// Etag: Optional. Server specified ETag to prevent updates from overwriting
	// each other.
	Etag string `json:"etag,omitempty"`
	// ExpireTime: Optional. When this backup is automatically expired.
	ExpireTime string `json:"expireTime,omitempty"`
	// GcpBackupPlanInfo: Output only. Configuration for a Google Cloud resource.
	GcpBackupPlanInfo *GCPBackupPlanInfo `json:"gcpBackupPlanInfo,omitempty"`
	// Labels: Optional. Resource labels to represent user provided metadata. No
	// labels currently defined.
	Labels map[string]string `json:"labels,omitempty"`
	// Name: Output only. Identifier. Name of the backup to create. It must have
	// the
	// format"projects//locations//backupVaults//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.
	Name string `json:"name,omitempty"`
	// ResourceSizeBytes: Output only. source resource size in bytes at the time of
	// the backup.
	ResourceSizeBytes int64 `json:"resourceSizeBytes,omitempty,string"`
	// ServiceLocks: Output only. The list of BackupLocks taken by the service to
	// prevent the deletion of the backup.
	ServiceLocks []*BackupLock `json:"serviceLocks,omitempty"`
	// State: Output only. The Backup resource instance state.
	//
	// Possible values:
	//   "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.
	State string `json:"state,omitempty"`
	// UpdateTime: Output only. The time when the instance was updated.
	UpdateTime string `json:"updateTime,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g.
	// "BackupApplianceBackupProperties") to unconditionally include in API
	// requests. By default, fields with empty or default values are omitted from
	// API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "BackupApplianceBackupProperties")
	// to include in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Backup: Message describing a Backup object.

func (Backup) MarshalJSON added in v0.188.0

func (s Backup) MarshalJSON() ([]byte, error)

type BackupApplianceBackupConfig added in v0.188.0

type BackupApplianceBackupConfig struct {
	// ApplicationName: The name of the application.
	ApplicationName string `json:"applicationName,omitempty"`
	// BackupApplianceId: The ID of the backup appliance.
	BackupApplianceId int64 `json:"backupApplianceId,omitempty,string"`
	// BackupApplianceName: The name of the backup appliance.
	BackupApplianceName string `json:"backupApplianceName,omitempty"`
	// HostName: The name of the host where the application is running.
	HostName string `json:"hostName,omitempty"`
	// SlaId: The ID of the SLA of this application.
	SlaId int64 `json:"slaId,omitempty,string"`
	// SlpName: The name of the SLP associated with the application.
	SlpName string `json:"slpName,omitempty"`
	// SltName: The name of the SLT associated with the application.
	SltName string `json:"sltName,omitempty"`
	// ForceSendFields is a list of field names (e.g. "ApplicationName") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "ApplicationName") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

BackupApplianceBackupConfig: BackupApplianceBackupConfig captures the backup configuration for applications that are protected by Backup Appliances.

func (BackupApplianceBackupConfig) MarshalJSON added in v0.188.0

func (s BackupApplianceBackupConfig) MarshalJSON() ([]byte, error)

type BackupApplianceBackupProperties added in v0.188.0

type BackupApplianceBackupProperties struct {
	// FinalizeTime: Output only. The time when this backup object was finalized
	// (if none, backup is not finalized).
	FinalizeTime string `json:"finalizeTime,omitempty"`
	// GenerationId: Output only. The numeric generation ID of the backup
	// (monotonically increasing).
	GenerationId int64 `json:"generationId,omitempty"`
	// RecoveryRangeEndTime: Optional. The latest timestamp of data available in
	// this Backup.
	RecoveryRangeEndTime string `json:"recoveryRangeEndTime,omitempty"`
	// RecoveryRangeStartTime: Optional. The earliest timestamp of data available
	// in this Backup.
	RecoveryRangeStartTime string `json:"recoveryRangeStartTime,omitempty"`
	// ForceSendFields is a list of field names (e.g. "FinalizeTime") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "FinalizeTime") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

BackupApplianceBackupProperties: BackupApplianceBackupProperties represents BackupDR backup appliance's properties.

func (BackupApplianceBackupProperties) MarshalJSON added in v0.188.0

func (s BackupApplianceBackupProperties) MarshalJSON() ([]byte, error)

type BackupApplianceLockInfo added in v0.188.0

type BackupApplianceLockInfo struct {
	// BackupApplianceId: Required. The ID of the backup/recovery appliance that
	// created this lock.
	BackupApplianceId int64 `json:"backupApplianceId,omitempty,string"`
	// BackupApplianceName: Required. The name of the backup/recovery appliance
	// that created this lock.
	BackupApplianceName string `json:"backupApplianceName,omitempty"`
	// BackupImage: The image name that depends on this Backup.
	BackupImage string `json:"backupImage,omitempty"`
	// JobName: The job name on the backup/recovery appliance that created this
	// lock.
	JobName string `json:"jobName,omitempty"`
	// LockReason: 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.
	LockReason string `json:"lockReason,omitempty"`
	// SlaId: The SLA on the backup/recovery appliance that owns the lock.
	SlaId int64 `json:"slaId,omitempty,string"`
	// ForceSendFields is a list of field names (e.g. "BackupApplianceId") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "BackupApplianceId") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

BackupApplianceLockInfo: BackupApplianceLockInfo contains metadata about the backupappliance that created the lock.

func (BackupApplianceLockInfo) MarshalJSON added in v0.188.0

func (s BackupApplianceLockInfo) MarshalJSON() ([]byte, error)

type BackupConfigInfo added in v0.188.0

type BackupConfigInfo struct {
	// BackupApplianceBackupConfig: Configuration for an application backed up by a
	// Backup Appliance.
	BackupApplianceBackupConfig *BackupApplianceBackupConfig `json:"backupApplianceBackupConfig,omitempty"`
	// GcpBackupConfig: Configuration for a Google Cloud resource.
	GcpBackupConfig *GcpBackupConfig `json:"gcpBackupConfig,omitempty"`
	// LastBackupError: Output only. If the last backup failed, this field has the
	// error message.
	LastBackupError *Status `json:"lastBackupError,omitempty"`
	// LastBackupState: Output only. The status of the last backup to this
	// BackupVault
	//
	// Possible values:
	//   "LAST_BACKUP_STATE_UNSPECIFIED" - Status not set.
	//   "FIRST_BACKUP_PENDING" - The first backup has not yet completed
	//   "SUCCEEDED" - The most recent backup was successful
	//   "FAILED" - The most recent backup failed
	//   "PERMISSION_DENIED" - The most recent backup could not be run/failed
	// because of the lack of permissions
	LastBackupState string `json:"lastBackupState,omitempty"`
	// LastSuccessfulBackupConsistencyTime: Output only. If the last backup were
	// successful, this field has the consistency date.
	LastSuccessfulBackupConsistencyTime string `json:"lastSuccessfulBackupConsistencyTime,omitempty"`
	// ForceSendFields is a list of field names (e.g.
	// "BackupApplianceBackupConfig") to unconditionally include in API requests.
	// By default, fields with empty or default values are omitted from API
	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
	// for more details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "BackupApplianceBackupConfig") to
	// include in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

BackupConfigInfo: BackupConfigInfo has information about how the resource is configured for Backup and about the most recent backup to this vault.

func (BackupConfigInfo) MarshalJSON added in v0.188.0

func (s BackupConfigInfo) MarshalJSON() ([]byte, error)

type BackupLock added in v0.188.0

type BackupLock struct {
	// BackupApplianceLockInfo: If the client is a backup and recovery appliance,
	// this contains metadata about why the lock exists.
	BackupApplianceLockInfo *BackupApplianceLockInfo `json:"backupApplianceLockInfo,omitempty"`
	// LockUntilTime: Required. The time after which this lock is not considered
	// valid and will no longer protect the Backup from deletion.
	LockUntilTime string `json:"lockUntilTime,omitempty"`
	// ServiceLockInfo: Output only. Contains metadata about the lock exist for
	// Google Cloud native backups.
	ServiceLockInfo *ServiceLockInfo `json:"serviceLockInfo,omitempty"`
	// ForceSendFields is a list of field names (e.g. "BackupApplianceLockInfo") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "BackupApplianceLockInfo") to
	// include in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

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

func (BackupLock) MarshalJSON added in v0.188.0

func (s BackupLock) MarshalJSON() ([]byte, error)

type BackupPlan added in v0.192.0

type BackupPlan struct {
	// BackupRules: Required. The backup rules for this `BackupPlan`. There must be
	// at least one `BackupRule` message.
	BackupRules []*BackupRule `json:"backupRules,omitempty"`
	// BackupVault: Required. Resource name of backup vault which will be used as
	// storage location for backups. Format:
	// projects/{project}/locations/{location}/backupVaults/{backupvault}
	BackupVault string `json:"backupVault,omitempty"`
	// BackupVaultServiceAccount: Output only. The Google Cloud Platform Service
	// Account to be used by the BackupVault for taking backups. Specify the email
	// address of the Backup Vault Service Account.
	BackupVaultServiceAccount string `json:"backupVaultServiceAccount,omitempty"`
	// CreateTime: Output only. When the `BackupPlan` was created.
	CreateTime string `json:"createTime,omitempty"`
	// Description: Optional. The description of the `BackupPlan` resource. The
	// description allows for additional details about `BackupPlan` and its use
	// cases to be provided. An example description is the following: "This is a
	// backup plan that performs a daily backup at 6pm and retains data for 3
	// months". The description must be at most 2048 characters.
	Description string `json:"description,omitempty"`
	// Etag: Optional. `etag` is returned from the service in the response. As a
	// user of the service, you may provide an etag value in this field to prevent
	// stale resources.
	Etag string `json:"etag,omitempty"`
	// Labels: Optional. This collection of key/value pairs allows for custom
	// labels to be supplied by the user. Example, {"tag": "Weekly"}.
	Labels map[string]string `json:"labels,omitempty"`
	// Name: Output only. Identifier. The resource name of the `BackupPlan`.
	// Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}`
	Name string `json:"name,omitempty"`
	// ResourceType: Required. The resource type to which the `BackupPlan` will be
	// applied. Examples include, "compute.googleapis.com/Instance" and
	// "storage.googleapis.com/Bucket".
	ResourceType string `json:"resourceType,omitempty"`
	// State: Output only. The `State` for the `BackupPlan`.
	//
	// Possible values:
	//   "STATE_UNSPECIFIED" - State not set.
	//   "CREATING" - The resource is being created.
	//   "ACTIVE" - The resource has been created and is fully usable.
	//   "DELETING" - The resource is being deleted.
	//   "INACTIVE" - The resource has been created but is not usable.
	State string `json:"state,omitempty"`
	// UpdateTime: Output only. When the `BackupPlan` was last updated.
	UpdateTime string `json:"updateTime,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "BackupRules") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "BackupRules") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

BackupPlan: A `BackupPlan` specifies some common fields, such as `description` as well as one or more `BackupRule` messages. Each `BackupRule` has a retention policy and defines a schedule by which the system is to perform backup workloads.

func (BackupPlan) MarshalJSON added in v0.192.0

func (s BackupPlan) MarshalJSON() ([]byte, error)

type BackupPlanAssociation added in v0.192.0

type BackupPlanAssociation struct {
	// BackupPlan: Required. Resource name of backup plan which needs to be applied
	// on workload. Format:
	// projects/{project}/locations/{location}/backupPlans/{backupPlanId}
	BackupPlan string `json:"backupPlan,omitempty"`
	// CreateTime: Output only. The time when the instance was created.
	CreateTime string `json:"createTime,omitempty"`
	// DataSource: Output only. Output Only. Resource name of data source which
	// will be used as storage location for backups taken. Format :
	// projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSource
	// s/{datasource}
	DataSource string `json:"dataSource,omitempty"`
	// Name: Output only. Identifier. The resource name of BackupPlanAssociation in
	// below format Format :
	// projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAss
	// ociationId}
	Name string `json:"name,omitempty"`
	// Resource: Required. Immutable. Resource name of workload on which backupplan
	// is applied
	Resource string `json:"resource,omitempty"`
	// ResourceType: Optional. Resource type of workload on which backupplan is
	// applied
	ResourceType string `json:"resourceType,omitempty"`
	// RulesConfigInfo: Output only. The config info related to backup rules.
	RulesConfigInfo []*RuleConfigInfo `json:"rulesConfigInfo,omitempty"`
	// State: Output only. The BackupPlanAssociation resource state.
	//
	// Possible values:
	//   "STATE_UNSPECIFIED" - State not set.
	//   "CREATING" - The resource is being created.
	//   "ACTIVE" - The resource has been created and is fully usable.
	//   "DELETING" - The resource is being deleted.
	//   "INACTIVE" - The resource has been created but is not usable.
	//   "UPDATING" - The resource is being updated.
	State string `json:"state,omitempty"`
	// UpdateTime: Output only. The time when the instance was updated.
	UpdateTime string `json:"updateTime,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "BackupPlan") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "BackupPlan") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

BackupPlanAssociation: A BackupPlanAssociation represents a single BackupPlanAssociation which contains details like workload, backup plan etc

func (BackupPlanAssociation) MarshalJSON added in v0.192.0

func (s BackupPlanAssociation) MarshalJSON() ([]byte, error)

type BackupRule added in v0.192.0

type BackupRule struct {
	// BackupRetentionDays: Required. Configures the duration for which backup data
	// will be kept. It is defined in “days”. The value should be greater than
	// or equal to minimum enforced retention of the backup vault.
	BackupRetentionDays int64 `json:"backupRetentionDays,omitempty"`
	// RuleId: Required. Immutable. The unique id of this `BackupRule`. The
	// `rule_id` is unique per `BackupPlan`.The `rule_id` must start with a
	// lowercase letter followed by up to 62 lowercase letters, numbers, or
	// hyphens. Pattern, /a-z{,62}/.
	RuleId string `json:"ruleId,omitempty"`
	// StandardSchedule: Required. Defines a schedule that runs within the confines
	// of a defined window of time.
	StandardSchedule *StandardSchedule `json:"standardSchedule,omitempty"`
	// ForceSendFields is a list of field names (e.g. "BackupRetentionDays") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "BackupRetentionDays") to include
	// in API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

BackupRule: `BackupRule` binds the backup schedule to a retention policy.

func (BackupRule) MarshalJSON added in v0.192.0

func (s BackupRule) MarshalJSON() ([]byte, error)

type BackupVault added in v0.188.0

type BackupVault struct {
	// AccessRestriction: Optional. Note: This field is added for future use case
	// and will not be supported in the current release. Optional. Access
	// restriction for the backup vault. Default value is WITHIN_ORGANIZATION if
	// not provided during creation.
	//
	// Possible values:
	//   "ACCESS_RESTRICTION_UNSPECIFIED" - Access restriction not set.
	//   "WITHIN_PROJECT" - Access to or from resources outside your current
	// project will be denied.
	//   "WITHIN_ORGANIZATION" - Access to or from resources outside your current
	// organization will be denied.
	//   "UNRESTRICTED" - No access restriction.
	AccessRestriction string `json:"accessRestriction,omitempty"`
	// Annotations: Optional. User annotations. See
	// https://google.aip.dev/128#annotations Stores small amounts of arbitrary
	// data.
	Annotations map[string]string `json:"annotations,omitempty"`
	// BackupCount: Output only. The number of backups in this backup vault.
	BackupCount int64 `json:"backupCount,omitempty,string"`
	// BackupMinimumEnforcedRetentionDuration: Required. The default and minimum
	// enforced retention for each backup within the backup vault. The enforced
	// retention for each backup can be extended.
	BackupMinimumEnforcedRetentionDuration string `json:"backupMinimumEnforcedRetentionDuration,omitempty"`
	// CreateTime: Output only. The time when the instance was created.
	CreateTime string `json:"createTime,omitempty"`
	// Deletable: Output only. Set to true when there are no backups nested under
	// this resource.
	Deletable bool `json:"deletable,omitempty"`
	// Description: Optional. The description of the BackupVault instance (2048
	// characters or less).
	Description string `json:"description,omitempty"`
	// EffectiveTime: Optional. Time after which the BackupVault resource is
	// locked.
	EffectiveTime string `json:"effectiveTime,omitempty"`
	// Etag: Optional. Server specified ETag for the backup vault resource to
	// prevent simultaneous updates from overwiting each other.
	Etag string `json:"etag,omitempty"`
	// Labels: Optional. Resource labels to represent user provided metadata. No
	// labels currently defined:
	Labels map[string]string `json:"labels,omitempty"`
	// Name: Output only. Identifier. Name of the backup vault to create. It must
	// have the
	// format"projects/{project}/locations/{location}/backupVaults/{backupvault}".
	//  `{backupvault}` cannot be changed after creation. It must be between 3-63
	// characters long and must be unique within the project and location.
	Name string `json:"name,omitempty"`
	// ServiceAccount: Output only. Service account used by the BackupVault Service
	// for this BackupVault. The user should grant this account permissions in
	// their workload project to enable the service to run backups and restores
	// there.
	ServiceAccount string `json:"serviceAccount,omitempty"`
	// State: Output only. The BackupVault resource instance state.
	//
	// Possible values:
	//   "STATE_UNSPECIFIED" - State not set.
	//   "CREATING" - The backup vault is being created.
	//   "ACTIVE" - The backup vault has been created and is fully usable.
	//   "DELETING" - The backup vault is being deleted.
	//   "ERROR" - The backup vault is experiencing an issue and might be unusable.
	State string `json:"state,omitempty"`
	// TotalStoredBytes: Output only. Total size of the storage used by all backup
	// resources.
	TotalStoredBytes int64 `json:"totalStoredBytes,omitempty,string"`
	// Uid: Output only. Output only Immutable after resource creation until
	// resource deletion.
	Uid string `json:"uid,omitempty"`
	// UpdateTime: Output only. The time when the instance was updated.
	UpdateTime string `json:"updateTime,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "AccessRestriction") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AccessRestriction") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

BackupVault: Message describing a BackupVault object.

func (BackupVault) MarshalJSON added in v0.188.0

func (s BackupVault) MarshalJSON() ([]byte, error)

type BackupWindow added in v0.192.0

type BackupWindow struct {
	// EndHourOfDay: Required. The hour of day (1-24) when the window end for e.g.
	// if value of end hour of day is 10 that mean backup window end time is 10:00.
	// End hour of day should be greater than start hour of day. 0 <=
	// start_hour_of_day < end_hour_of_day <= 24 End hour of day is not include in
	// backup window that mean if end_hour_of_day= 10 jobs should start before
	// 10:00.
	EndHourOfDay int64 `json:"endHourOfDay,omitempty"`
	// StartHourOfDay: Required. The hour of day (0-23) when the window starts for
	// e.g. if value of start hour of day is 6 that mean backup window start at
	// 6:00.
	StartHourOfDay int64 `json:"startHourOfDay,omitempty"`
	// ForceSendFields is a list of field names (e.g. "EndHourOfDay") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "EndHourOfDay") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

BackupWindow: `BackupWindow` defines a window of the day during which backup jobs will run.

func (BackupWindow) MarshalJSON added in v0.192.0

func (s BackupWindow) MarshalJSON() ([]byte, error)

type Binding

type Binding struct {
	// Condition: The condition that is associated with this binding. If the
	// condition evaluates to `true`, then this binding applies to the current
	// request. If the condition evaluates to `false`, then this binding does not
	// apply to the current request. However, a different role binding might grant
	// the same role to one or more of the principals in this binding. To learn
	// which resources support conditions in their IAM policies, see the IAM
	// documentation
	// (https://cloud.google.com/iam/help/conditions/resource-policies).
	Condition *Expr `json:"condition,omitempty"`
	// Members: Specifies the principals requesting access for a Google Cloud
	// resource. `members` can have the following values: * `allUsers`: A special
	// identifier that represents anyone who is on the internet; with or without a
	// Google account. * `allAuthenticatedUsers`: A special identifier that
	// represents anyone who is authenticated with a Google account or a service
	// account. Does not include identities that come from external identity
	// providers (IdPs) through identity federation. * `user:{emailid}`: An email
	// address that represents a specific Google account. For example,
	// `alice@example.com` . * `serviceAccount:{emailid}`: An email address that
	// represents a Google service account. For example,
	// `my-other-app@appspot.gserviceaccount.com`. *
	// `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
	// identifier for a Kubernetes service account
	// (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).
	// For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. *
	// `group:{emailid}`: An email address that represents a Google group. For
	// example, `admins@example.com`. * `domain:{domain}`: The G Suite domain
	// (primary) that represents all the users of that domain. For example,
	// `google.com` or `example.com`. *
	// `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/sub
	// ject/{subject_attribute_value}`: A single identity in a workforce identity
	// pool. *
	// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/
	// group/{group_id}`: All workforce identities in a group. *
	// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/
	// attribute.{attribute_name}/{attribute_value}`: All workforce identities with
	// a specific attribute value. *
	// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/
	// *`: All identities in a workforce identity pool. *
	// `principal://iam.googleapis.com/projects/{project_number}/locations/global/wo
	// rkloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single
	// identity in a workload identity pool. *
	// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global
	// /workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool
	// group. *
	// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global
	// /workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}
	// `: All identities in a workload identity pool with a certain attribute. *
	// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global
	// /workloadIdentityPools/{pool_id}/*`: All identities in a workload identity
	// pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus
	// unique identifier) representing a user that has been recently deleted. For
	// example, `alice@example.com?uid=123456789012345678901`. If the user is
	// recovered, this value reverts to `user:{emailid}` and the recovered user
	// retains the role in the binding. *
	// `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
	// unique identifier) representing a service account that has been recently
	// deleted. For example,
	// `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the
	// service account is undeleted, this value reverts to
	// `serviceAccount:{emailid}` and the undeleted service account retains the
	// role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email
	// address (plus unique identifier) representing a Google group that has been
	// recently deleted. For example,
	// `admins@example.com?uid=123456789012345678901`. If the group is recovered,
	// this value reverts to `group:{emailid}` and the recovered group retains the
	// role in the binding. *
	// `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool
	// _id}/subject/{subject_attribute_value}`: Deleted single identity in a
	// workforce identity pool. For example,
	// `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-po
	// ol-id/subject/my-subject-attribute-value`.
	Members []string `json:"members,omitempty"`
	// Role: Role that is assigned to the list of `members`, or principals. For
	// example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview
	// of the IAM roles and permissions, see the IAM documentation
	// (https://cloud.google.com/iam/docs/roles-overview). For a list of the
	// available pre-defined roles, see here
	// (https://cloud.google.com/iam/docs/understanding-roles).
	Role string `json:"role,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Condition") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Condition") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Binding: Associates `members`, or principals, with a `role`.

func (Binding) MarshalJSON

func (s Binding) MarshalJSON() ([]byte, error)

type BlobstoreLocation added in v0.191.0

type BlobstoreLocation struct {
	PolicyId []string `json:"policyId,omitempty"`
	// ForceSendFields is a list of field names (e.g. "PolicyId") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "PolicyId") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

BlobstoreLocation: Policy ID that identified data placement in Blobstore as per go/blobstore-user-guide#data-metadata-placement-and-failure-domains

func (BlobstoreLocation) MarshalJSON added in v0.191.0

func (s BlobstoreLocation) MarshalJSON() ([]byte, error)

type CancelOperationRequest

type CancelOperationRequest struct {
}

CancelOperationRequest: The request message for Operations.CancelOperation.

type CloudAsset added in v0.191.0

type CloudAsset struct {
	AssetName string `json:"assetName,omitempty"`
	AssetType string `json:"assetType,omitempty"`
	// ForceSendFields is a list of field names (e.g. "AssetName") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AssetName") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (CloudAsset) MarshalJSON added in v0.191.0

func (s CloudAsset) MarshalJSON() ([]byte, error)

type CloudAssetComposition added in v0.191.0

type CloudAssetComposition struct {
	ChildAsset []*CloudAsset `json:"childAsset,omitempty"`
	// ForceSendFields is a list of field names (e.g. "ChildAsset") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "ChildAsset") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (CloudAssetComposition) MarshalJSON added in v0.191.0

func (s CloudAssetComposition) MarshalJSON() ([]byte, error)

type ComputeInstanceBackupProperties added in v0.188.0

type ComputeInstanceBackupProperties struct {
	// CanIpForward: 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.
	CanIpForward bool `json:"canIpForward,omitempty"`
	// Description: An optional text description for the instances that are created
	// from these properties.
	Description string `json:"description,omitempty"`
	// Disk: An array of disks that are associated with the instances that are
	// created from these properties.
	Disk []*AttachedDisk `json:"disk,omitempty"`
	// GuestAccelerator: A list of guest accelerator cards' type and count to use
	// for instances created from these properties.
	GuestAccelerator []*AcceleratorConfig `json:"guestAccelerator,omitempty"`
	// KeyRevocationActionType: KeyRevocationActionType of the instance. Supported
	// options are "STOP" and "NONE". The default value is "NONE" if it is not
	// specified.
	//
	// Possible values:
	//   "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.
	KeyRevocationActionType string `json:"keyRevocationActionType,omitempty"`
	// Labels: Labels to apply to instances that are created from these properties.
	Labels map[string]string `json:"labels,omitempty"`
	// MachineType: The machine type to use for instances that are created from
	// these properties.
	MachineType string `json:"machineType,omitempty"`
	// 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.
	Metadata *Metadata `json:"metadata,omitempty"`
	// MinCpuPlatform: 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.
	MinCpuPlatform string `json:"minCpuPlatform,omitempty"`
	// NetworkInterface: An array of network access configurations for this
	// interface.
	NetworkInterface []*NetworkInterface `json:"networkInterface,omitempty"`
	// Scheduling: Specifies the scheduling options for the instances that are
	// created from these properties.
	Scheduling *Scheduling `json:"scheduling,omitempty"`
	// 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.
	ServiceAccount []*ServiceAccount `json:"serviceAccount,omitempty"`
	// SourceInstance: 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
	SourceInstance string `json:"sourceInstance,omitempty"`
	// 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).
	Tags *Tags `json:"tags,omitempty"`
	// ForceSendFields is a list of field names (e.g. "CanIpForward") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "CanIpForward") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ComputeInstanceBackupProperties: ComputeInstanceBackupProperties represents Compute Engine instance backup properties.

func (ComputeInstanceBackupProperties) MarshalJSON added in v0.188.0

func (s ComputeInstanceBackupProperties) MarshalJSON() ([]byte, error)

type ComputeInstanceDataSourceProperties added in v0.188.0

type ComputeInstanceDataSourceProperties struct {
	// Description: The description of the Compute Engine instance.
	Description string `json:"description,omitempty"`
	// MachineType: The machine type of the instance.
	MachineType string `json:"machineType,omitempty"`
	// Name: Name of the compute instance backed up by the datasource.
	Name string `json:"name,omitempty"`
	// TotalDiskCount: The total number of disks attached to the Instance.
	TotalDiskCount int64 `json:"totalDiskCount,omitempty,string"`
	// TotalDiskSizeGb: The sum of all the disk sizes.
	TotalDiskSizeGb int64 `json:"totalDiskSizeGb,omitempty,string"`
	// ForceSendFields is a list of field names (e.g. "Description") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Description") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ComputeInstanceDataSourceProperties: ComputeInstanceDataSourceProperties represents the properties of a ComputeEngine resource that are stored in the DataSource.

func (ComputeInstanceDataSourceProperties) MarshalJSON added in v0.188.0

func (s ComputeInstanceDataSourceProperties) MarshalJSON() ([]byte, error)

type ComputeInstanceRestoreProperties added in v0.192.0

type ComputeInstanceRestoreProperties struct {
	// AdvancedMachineFeatures: Optional. Controls for advanced machine-related
	// behavior features.
	AdvancedMachineFeatures *AdvancedMachineFeatures `json:"advancedMachineFeatures,omitempty"`
	// CanIpForward: Optional. Allows this instance to send and receive packets
	// with non-matching destination or source IPs.
	CanIpForward bool `json:"canIpForward,omitempty"`
	// ConfidentialInstanceConfig: Optional. Controls Confidential compute options
	// on the instance
	ConfidentialInstanceConfig *ConfidentialInstanceConfig `json:"confidentialInstanceConfig,omitempty"`
	// DeletionProtection: Optional. Whether the resource should be protected
	// against deletion.
	DeletionProtection bool `json:"deletionProtection,omitempty"`
	// Description: Optional. An optional description of this resource. Provide
	// this property when you create the resource.
	Description string `json:"description,omitempty"`
	// Disks: Optional. Array of disks associated with this instance. Persistent
	// disks must be created before you can assign them.
	Disks []*AttachedDisk `json:"disks,omitempty"`
	// DisplayDevice: Optional. Enables display device for the instance.
	DisplayDevice *DisplayDevice `json:"displayDevice,omitempty"`
	// GuestAccelerators: Optional. A list of the type and count of accelerator
	// cards attached to the instance.
	GuestAccelerators []*AcceleratorConfig `json:"guestAccelerators,omitempty"`
	// Hostname: 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.
	Hostname string `json:"hostname,omitempty"`
	// InstanceEncryptionKey: Optional. Encrypts suspended data for an instance
	// with a customer-managed encryption key.
	InstanceEncryptionKey *CustomerEncryptionKey `json:"instanceEncryptionKey,omitempty"`
	// KeyRevocationActionType: Optional. KeyRevocationActionType of the instance.
	//
	// Possible values:
	//   "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.
	KeyRevocationActionType string `json:"keyRevocationActionType,omitempty"`
	// Labels: Optional. Labels to apply to this instance.
	Labels map[string]string `json:"labels,omitempty"`
	// MachineType: Optional. Full or partial URL of the machine type resource to
	// use for this instance.
	MachineType string `json:"machineType,omitempty"`
	// Metadata: Optional. This includes custom metadata and predefined keys.
	Metadata *Metadata `json:"metadata,omitempty"`
	// MinCpuPlatform: Optional. Minimum CPU platform to use for this instance.
	MinCpuPlatform string `json:"minCpuPlatform,omitempty"`
	// Name: Required. Name of the compute instance.
	Name string `json:"name,omitempty"`
	// NetworkInterfaces: 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.
	NetworkInterfaces []*NetworkInterface `json:"networkInterfaces,omitempty"`
	// NetworkPerformanceConfig: Optional. Configure network performance such as
	// egress bandwidth tier.
	NetworkPerformanceConfig *NetworkPerformanceConfig `json:"networkPerformanceConfig,omitempty"`
	// Params: Input only. Additional params passed with the request, but not
	// persisted as part of resource payload.
	Params *InstanceParams `json:"params,omitempty"`
	// PrivateIpv6GoogleAccess: Optional. The private IPv6 google access type for
	// the VM. If not specified, use INHERIT_FROM_SUBNETWORK as default.
	//
	// Possible values:
	//   "INSTANCE_PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED" - Default value. This
	// value is unused.
	//   "INHERIT_FROM_SUBNETWORK" - Each network interface inherits
	// PrivateIpv6GoogleAccess from its subnetwork.
	//   "ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE" - Outbound private IPv6 access from
	// VMs in this subnet to Google services. If specified, the subnetwork who is
	// attached to the instance's default network interface will be assigned an
	// internal IPv6 prefix if it doesn't have before.
	//   "ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLE" - Bidirectional private IPv6
	// access to/from Google services. If specified, the subnetwork who is attached
	// to the instance's default network interface will be assigned an internal
	// IPv6 prefix if it doesn't have before.
	PrivateIpv6GoogleAccess string `json:"privateIpv6GoogleAccess,omitempty"`
	// ReservationAffinity: Optional. Specifies the reservations that this instance
	// can consume from.
	ReservationAffinity *AllocationAffinity `json:"reservationAffinity,omitempty"`
	// ResourcePolicies: Optional. Resource policies applied to this instance.
	ResourcePolicies []string `json:"resourcePolicies,omitempty"`
	// Scheduling: Optional. Sets the scheduling options for this instance.
	Scheduling *Scheduling `json:"scheduling,omitempty"`
	// ServiceAccounts: Optional. A list of service accounts, with their specified
	// scopes, authorized for this instance. Only one service account per VM
	// instance is supported.
	ServiceAccounts []*ServiceAccount `json:"serviceAccounts,omitempty"`
	// 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.
	Tags *Tags `json:"tags,omitempty"`
	// ForceSendFields is a list of field names (e.g. "AdvancedMachineFeatures") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AdvancedMachineFeatures") to
	// include in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

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

func (ComputeInstanceRestoreProperties) MarshalJSON added in v0.192.0

func (s ComputeInstanceRestoreProperties) MarshalJSON() ([]byte, error)

type ComputeInstanceTargetEnvironment added in v0.192.0

type ComputeInstanceTargetEnvironment struct {
	// Project: Required. Target project for the Compute Engine instance.
	Project string `json:"project,omitempty"`
	// Zone: Required. The zone of the Compute Engine instance.
	Zone string `json:"zone,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Project") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Project") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ComputeInstanceTargetEnvironment: ComputeInstanceTargetEnvironment represents Compute Engine target environment to be used during restore.

func (ComputeInstanceTargetEnvironment) MarshalJSON added in v0.192.0

func (s ComputeInstanceTargetEnvironment) MarshalJSON() ([]byte, error)

type ConfidentialInstanceConfig added in v0.192.0

type ConfidentialInstanceConfig struct {
	// EnableConfidentialCompute: Optional. Defines whether the instance should
	// have confidential compute enabled.
	EnableConfidentialCompute bool `json:"enableConfidentialCompute,omitempty"`
	// ForceSendFields is a list of field names (e.g. "EnableConfidentialCompute")
	// to unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "EnableConfidentialCompute") to
	// include in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ConfidentialInstanceConfig: A set of Confidential Instance options.

func (ConfidentialInstanceConfig) MarshalJSON added in v0.192.0

func (s ConfidentialInstanceConfig) MarshalJSON() ([]byte, error)

type CustomerEncryptionKey added in v0.188.0

type CustomerEncryptionKey struct {
	// KmsKeyName: Optional. The name of the encryption key that is stored in
	// Google Cloud KMS.
	KmsKeyName string `json:"kmsKeyName,omitempty"`
	// KmsKeyServiceAccount: 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.
	KmsKeyServiceAccount string `json:"kmsKeyServiceAccount,omitempty"`
	// RawKey: Optional. Specifies a 256-bit customer-supplied encryption key.
	RawKey string `json:"rawKey,omitempty"`
	// RsaEncryptedKey: Optional. RSA-wrapped 2048-bit customer-supplied encryption
	// key to either encrypt or decrypt this resource.
	RsaEncryptedKey string `json:"rsaEncryptedKey,omitempty"`
	// ForceSendFields is a list of field names (e.g. "KmsKeyName") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "KmsKeyName") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

CustomerEncryptionKey: A customer-supplied encryption key.

func (CustomerEncryptionKey) MarshalJSON added in v0.188.0

func (s CustomerEncryptionKey) MarshalJSON() ([]byte, error)

type DataSource added in v0.188.0

type DataSource struct {
	// BackupConfigInfo: Output only. Details of how the resource is configured for
	// backup.
	BackupConfigInfo *BackupConfigInfo `json:"backupConfigInfo,omitempty"`
	// BackupCount: Number of backups in the data source.
	BackupCount int64 `json:"backupCount,omitempty,string"`
	// ConfigState: Output only. The backup configuration state.
	//
	// Possible values:
	//   "BACKUP_CONFIG_STATE_UNSPECIFIED" - The possible states of backup
	// configuration. Status not set.
	//   "ACTIVE" - The data source is actively protected (i.e. there is a
	// BackupPlanAssociation or Appliance SLA pointing to it)
	//   "PASSIVE" - The data source is no longer protected (but may have backups
	// under it)
	ConfigState string `json:"configState,omitempty"`
	// CreateTime: Output only. The time when the instance was created.
	CreateTime string `json:"createTime,omitempty"`
	// DataSourceBackupApplianceApplication: The backed up resource is a backup
	// appliance application.
	DataSourceBackupApplianceApplication *DataSourceBackupApplianceApplication `json:"dataSourceBackupApplianceApplication,omitempty"`
	// DataSourceGcpResource: The backed up resource is a Google Cloud resource.
	// The word 'DataSource' was included in the names to indicate that this is the
	// representation of the Google Cloud resource used within the DataSource
	// object.
	DataSourceGcpResource *DataSourceGcpResource `json:"dataSourceGcpResource,omitempty"`
	// Etag: Server specified ETag for the ManagementServer resource to prevent
	// simultaneous updates from overwiting each other.
	Etag string `json:"etag,omitempty"`
	// Labels: Optional. Resource labels to represent user provided metadata. No
	// labels currently defined:
	Labels map[string]string `json:"labels,omitempty"`
	// Name: Output only. Identifier. Name of the datasource to create. It must
	// have the
	// format"projects/{project}/locations/{location}/backupVaults/{backupvault}/da
	// taSources/{datasource}". `{datasource}` cannot be changed after creation.
	// It must be between 3-63 characters long and must be unique within the backup
	// vault.
	Name string `json:"name,omitempty"`
	// State: Output only. The DataSource resource instance state.
	//
	// Possible values:
	//   "STATE_UNSPECIFIED" - State not set.
	//   "CREATING" - The data source is being created.
	//   "ACTIVE" - The data source has been created and is fully usable.
	//   "DELETING" - The data source is being deleted.
	//   "ERROR" - The data source is experiencing an issue and might be unusable.
	State string `json:"state,omitempty"`
	// TotalStoredBytes: The number of bytes (metadata and data) stored in this
	// datasource.
	TotalStoredBytes int64 `json:"totalStoredBytes,omitempty,string"`
	// UpdateTime: Output only. The time when the instance was updated.
	UpdateTime string `json:"updateTime,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "BackupConfigInfo") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "BackupConfigInfo") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

DataSource: Message describing a DataSource object. Datasource object used to represent Datasource details for both admin and basic view.

func (DataSource) MarshalJSON added in v0.188.0

func (s DataSource) MarshalJSON() ([]byte, error)

type DataSourceBackupApplianceApplication added in v0.188.0

type DataSourceBackupApplianceApplication struct {
	// ApplianceId: Appliance Id of the Backup Appliance.
	ApplianceId int64 `json:"applianceId,omitempty,string"`
	// ApplicationId: The appid field of the application within the Backup
	// Appliance.
	ApplicationId int64 `json:"applicationId,omitempty,string"`
	// ApplicationName: The name of the Application as known to the Backup
	// Appliance.
	ApplicationName string `json:"applicationName,omitempty"`
	// BackupAppliance: Appliance name.
	BackupAppliance string `json:"backupAppliance,omitempty"`
	// HostId: Hostid of the application host.
	HostId int64 `json:"hostId,omitempty,string"`
	// Hostname: Hostname of the host where the application is running.
	Hostname string `json:"hostname,omitempty"`
	// Type: The type of the application. e.g. VMBackup
	Type string `json:"type,omitempty"`
	// ForceSendFields is a list of field names (e.g. "ApplianceId") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "ApplianceId") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

DataSourceBackupApplianceApplication: BackupApplianceApplication describes a Source Resource when it is an application backed up by a BackupAppliance.

func (DataSourceBackupApplianceApplication) MarshalJSON added in v0.188.0

func (s DataSourceBackupApplianceApplication) MarshalJSON() ([]byte, error)

type DataSourceGcpResource added in v0.188.0

type DataSourceGcpResource struct {
	// ComputeInstanceDatasourceProperties: ComputeInstanceDataSourceProperties has
	// a subset of Compute Instance properties that are useful at the Datasource
	// level.
	ComputeInstanceDatasourceProperties *ComputeInstanceDataSourceProperties `json:"computeInstanceDatasourceProperties,omitempty"`
	// GcpResourcename: Output only. Full resource pathname URL of the source
	// Google Cloud resource.
	GcpResourcename string `json:"gcpResourcename,omitempty"`
	// Location: Location of the resource: //"global"/"unspecified".
	Location string `json:"location,omitempty"`
	// Type: The type of the Google Cloud resource. Use the Unified Resource Type,
	// eg. compute.googleapis.com/Instance.
	Type string `json:"type,omitempty"`
	// ForceSendFields is a list of field names (e.g.
	// "ComputeInstanceDatasourceProperties") to unconditionally include in API
	// requests. By default, fields with empty or default values are omitted from
	// API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g.
	// "ComputeInstanceDatasourceProperties") to include in API requests with the
	// JSON null value. By default, fields with empty values are omitted from API
	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields for
	// more details.
	NullFields []string `json:"-"`
}

DataSourceGcpResource: DataSourceGcpResource is used for protected resources that are Google Cloud Resources. This name is easeier to understand than GcpResourceDataSource or GcpDataSourceResource

func (DataSourceGcpResource) MarshalJSON added in v0.188.0

func (s DataSourceGcpResource) MarshalJSON() ([]byte, error)

type DirectLocationAssignment added in v0.191.0

type DirectLocationAssignment struct {
	Location []*LocationAssignment `json:"location,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Location") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Location") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (DirectLocationAssignment) MarshalJSON added in v0.191.0

func (s DirectLocationAssignment) MarshalJSON() ([]byte, error)

type DisplayDevice added in v0.192.0

type DisplayDevice struct {
	// EnableDisplay: Optional. Enables display for the Compute Engine VM
	EnableDisplay bool `json:"enableDisplay,omitempty"`
	// ForceSendFields is a list of field names (e.g. "EnableDisplay") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "EnableDisplay") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

DisplayDevice: A set of Display Device options

func (DisplayDevice) MarshalJSON added in v0.192.0

func (s DisplayDevice) MarshalJSON() ([]byte, error)

type Empty

type Empty struct {
	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
}

Empty: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }

type Entry added in v0.188.0

type Entry struct {
	// Key: Optional. Key for the metadata entry.
	Key string `json:"key,omitempty"`
	// Value: 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).
	Value string `json:"value,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Key") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Key") to include in API requests
	// with the JSON null value. By default, fields with empty values are omitted
	// from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

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

func (Entry) MarshalJSON added in v0.188.0

func (s Entry) MarshalJSON() ([]byte, error)

type Expr

type Expr struct {
	// Description: Optional. Description of the expression. This is a longer text
	// which describes the expression, e.g. when hovered over it in a UI.
	Description string `json:"description,omitempty"`
	// Expression: Textual representation of an expression in Common Expression
	// Language syntax.
	Expression string `json:"expression,omitempty"`
	// Location: Optional. String indicating the location of the expression for
	// error reporting, e.g. a file name and a position in the file.
	Location string `json:"location,omitempty"`
	// Title: Optional. Title for the expression, i.e. a short string describing
	// its purpose. This can be used e.g. in UIs which allow to enter the
	// expression.
	Title string `json:"title,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Description") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Description") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Expr: Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.

func (Expr) MarshalJSON

func (s Expr) MarshalJSON() ([]byte, error)

type ExtraParameter added in v0.191.0

type ExtraParameter struct {
	// RegionalMigDistributionPolicy: Details about zones used by regional
	// compute.googleapis.com/InstanceGroupManager to create instances.
	RegionalMigDistributionPolicy *RegionalMigDistributionPolicy `json:"regionalMigDistributionPolicy,omitempty"`
	// ForceSendFields is a list of field names (e.g.
	// "RegionalMigDistributionPolicy") to unconditionally include in API requests.
	// By default, fields with empty or default values are omitted from API
	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
	// for more details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "RegionalMigDistributionPolicy")
	// to include in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ExtraParameter: Defines parameters that should only be used for specific asset types.

func (ExtraParameter) MarshalJSON added in v0.191.0

func (s ExtraParameter) MarshalJSON() ([]byte, error)

type FetchAccessTokenRequest added in v0.188.0

type FetchAccessTokenRequest struct {
	// GenerationId: Required. The generation of the backup to update.
	GenerationId int64 `json:"generationId,omitempty"`
	// ForceSendFields is a list of field names (e.g. "GenerationId") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "GenerationId") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

FetchAccessTokenRequest: Request message for FetchAccessToken.

func (FetchAccessTokenRequest) MarshalJSON added in v0.188.0

func (s FetchAccessTokenRequest) MarshalJSON() ([]byte, error)

type FetchAccessTokenResponse added in v0.188.0

type FetchAccessTokenResponse struct {
	// ExpireTime: The token is valid until this time.
	ExpireTime string `json:"expireTime,omitempty"`
	// ReadLocation: The location in bucket that can be used for reading.
	ReadLocation string `json:"readLocation,omitempty"`
	// Token: The downscoped token that was created.
	Token string `json:"token,omitempty"`
	// WriteLocation: The location in bucket that can be used for writing.
	WriteLocation string `json:"writeLocation,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "ExpireTime") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "ExpireTime") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

FetchAccessTokenResponse: Response message for FetchAccessToken.

func (FetchAccessTokenResponse) MarshalJSON added in v0.188.0

func (s FetchAccessTokenResponse) MarshalJSON() ([]byte, error)

type FetchUsableBackupVaultsResponse added in v0.188.0

type FetchUsableBackupVaultsResponse struct {
	// BackupVaults: The list of BackupVault instances in the project for the
	// specified location. If the '{location}' value in the request is "-", the
	// response contains a list of instances from all locations. In case any
	// location is unreachable, the response will only return backup vaults in
	// reachable locations and the 'unreachable' field will be populated with a
	// list of unreachable locations.
	BackupVaults []*BackupVault `json:"backupVaults,omitempty"`
	// NextPageToken: A token identifying a page of results the server should
	// return.
	NextPageToken string `json:"nextPageToken,omitempty"`
	// Unreachable: Locations that could not be reached.
	Unreachable []string `json:"unreachable,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "BackupVaults") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "BackupVaults") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

FetchUsableBackupVaultsResponse: Response message for fetching usable BackupVaults.

func (FetchUsableBackupVaultsResponse) MarshalJSON added in v0.188.0

func (s FetchUsableBackupVaultsResponse) MarshalJSON() ([]byte, error)

type FinalizeBackupRequest added in v0.188.0

type FinalizeBackupRequest struct {
	// BackupId: Required. Resource ID of the Backup resource to be finalized. This
	// must be the same backup_id that was used in the InitiateBackupRequest.
	BackupId string `json:"backupId,omitempty"`
	// ConsistencyTime: The point in time when this backup was captured from the
	// source. This will be assigned to the consistency_time field of the newly
	// created Backup.
	ConsistencyTime string `json:"consistencyTime,omitempty"`
	// Description: This will be assigned to the description field of the newly
	// created Backup.
	Description string `json:"description,omitempty"`
	// RecoveryRangeEndTime: The latest timestamp of data available in this Backup.
	// This will be set on the newly created Backup.
	RecoveryRangeEndTime string `json:"recoveryRangeEndTime,omitempty"`
	// RecoveryRangeStartTime: The earliest timestamp of data available in this
	// Backup. This will set on the newly created Backup.
	RecoveryRangeStartTime string `json:"recoveryRangeStartTime,omitempty"`
	// RequestId: Optional. An optional request ID to identify requests. Specify a
	// unique request ID so that if you must retry your request, the server will
	// know to ignore the request if it has already been completed. The server will
	// guarantee that for at least 60 minutes after the first request. For example,
	// consider a situation where you make an initial request and the request times
	// out. If you make the request again with the same request ID, the server can
	// check if original operation with the same request ID was received, and if
	// so, will ignore the second request. This prevents clients from accidentally
	// creating duplicate commitments. The request ID must be a valid UUID with the
	// exception that zero UUID is not supported
	// (00000000-0000-0000-0000-000000000000).
	RequestId string `json:"requestId,omitempty"`
	// RetentionDuration: The ExpireTime on the backup will be set to FinalizeTime
	// plus this duration. If the resulting ExpireTime is less than
	// EnforcedRetentionEndTime, then ExpireTime is set to
	// EnforcedRetentionEndTime.
	RetentionDuration string `json:"retentionDuration,omitempty"`
	// ForceSendFields is a list of field names (e.g. "BackupId") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "BackupId") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

FinalizeBackupRequest: Message for finalizing a Backup.

func (FinalizeBackupRequest) MarshalJSON added in v0.188.0

func (s FinalizeBackupRequest) MarshalJSON() ([]byte, error)

type GCPBackupPlanInfo added in v0.188.0

type GCPBackupPlanInfo struct {
	// BackupPlan: Resource name of backup plan by which workload is protected at
	// the time of the backup. Format:
	// projects/{project}/locations/{location}/backupPlans/{backupPlanId}
	BackupPlan string `json:"backupPlan,omitempty"`
	// BackupPlanRuleId: The rule id of the backup plan which triggered this backup
	// in case of scheduled backup or used for
	BackupPlanRuleId string `json:"backupPlanRuleId,omitempty"`
	// ForceSendFields is a list of field names (e.g. "BackupPlan") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "BackupPlan") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

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

func (GCPBackupPlanInfo) MarshalJSON added in v0.188.0

func (s GCPBackupPlanInfo) MarshalJSON() ([]byte, error)

type GcpBackupConfig added in v0.188.0

type GcpBackupConfig struct {
	// BackupPlan: The name of the backup plan.
	BackupPlan string `json:"backupPlan,omitempty"`
	// BackupPlanAssociation: The name of the backup plan association.
	BackupPlanAssociation string `json:"backupPlanAssociation,omitempty"`
	// BackupPlanDescription: The description of the backup plan.
	BackupPlanDescription string `json:"backupPlanDescription,omitempty"`
	// BackupPlanRules: The names of the backup plan rules which point to this
	// backupvault
	BackupPlanRules []string `json:"backupPlanRules,omitempty"`
	// ForceSendFields is a list of field names (e.g. "BackupPlan") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "BackupPlan") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

GcpBackupConfig: GcpBackupConfig captures the Backup configuration details for Google Cloud resources. All Google Cloud resources regardless of type are protected with backup plan associations.

func (GcpBackupConfig) MarshalJSON added in v0.188.0

func (s GcpBackupConfig) MarshalJSON() ([]byte, error)

type GcpResource added in v0.200.0

type GcpResource struct {
	// GcpResourcename: Name of the Google Cloud resource.
	GcpResourcename string `json:"gcpResourcename,omitempty"`
	// Location: Location of the resource: //"global"/"unspecified".
	Location string `json:"location,omitempty"`
	// Type: Type of the resource. Use the Unified Resource Type, eg.
	// compute.googleapis.com/Instance.
	Type string `json:"type,omitempty"`
	// ForceSendFields is a list of field names (e.g. "GcpResourcename") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "GcpResourcename") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

GcpResource: Minimum details to identify a Google Cloud resource

func (GcpResource) MarshalJSON added in v0.200.0

func (s GcpResource) MarshalJSON() ([]byte, error)

type GuestOsFeature added in v0.188.0

type GuestOsFeature struct {
	// Type: The ID of a supported feature.
	//
	// Possible values:
	//   "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.
	Type string `json:"type,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Type") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Type") to include in API requests
	// with the JSON null value. By default, fields with empty values are omitted
	// from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

GuestOsFeature: Feature type of the Guest OS.

func (GuestOsFeature) MarshalJSON added in v0.188.0

func (s GuestOsFeature) MarshalJSON() ([]byte, error)

type InitializeParams added in v0.188.0

type InitializeParams struct {
	// DiskName: Optional. Specifies the disk name. If not specified, the default
	// is to use the name of the instance.
	DiskName string `json:"diskName,omitempty"`
	// ReplicaZones: Optional. URL of the zone where the disk should be created.
	// Required for each regional disk associated with the instance.
	ReplicaZones []string `json:"replicaZones,omitempty"`
	// ForceSendFields is a list of field names (e.g. "DiskName") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "DiskName") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

InitializeParams: Specifies the parameters to initialize this disk.

func (InitializeParams) MarshalJSON added in v0.188.0

func (s InitializeParams) MarshalJSON() ([]byte, error)

type InitiateBackupRequest added in v0.188.0

type InitiateBackupRequest struct {
	// BackupId: Required. Resource ID of the Backup resource.
	BackupId string `json:"backupId,omitempty"`
	// RequestId: Optional. An optional request ID to identify requests. Specify a
	// unique request ID so that if you must retry your request, the server will
	// know to ignore the request if it has already been completed. The server will
	// guarantee that for at least 60 minutes since the first request. For example,
	// consider a situation where you make an initial request and the request times
	// out. If you make the request again with the same request ID, the server can
	// check if original operation with the same request ID was received, and if
	// so, will ignore the second request. This prevents clients from accidentally
	// creating duplicate commitments. The request ID must be a valid UUID with the
	// exception that zero UUID is not supported
	// (00000000-0000-0000-0000-000000000000).
	RequestId string `json:"requestId,omitempty"`
	// ForceSendFields is a list of field names (e.g. "BackupId") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "BackupId") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

InitiateBackupRequest: request message for InitiateBackup.

func (InitiateBackupRequest) MarshalJSON added in v0.188.0

func (s InitiateBackupRequest) MarshalJSON() ([]byte, error)

type InitiateBackupResponse added in v0.188.0

type InitiateBackupResponse struct {
	// Backup: The name of the backup that was created.
	Backup string `json:"backup,omitempty"`
	// BaseBackupGenerationId: The generation id of the base backup. It is needed
	// for the incremental backups.
	BaseBackupGenerationId int64 `json:"baseBackupGenerationId,omitempty"`
	// NewBackupGenerationId: The generation id of the new backup.
	NewBackupGenerationId int64 `json:"newBackupGenerationId,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Backup") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Backup") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

InitiateBackupResponse: Response message for InitiateBackup.

func (InitiateBackupResponse) MarshalJSON added in v0.188.0

func (s InitiateBackupResponse) MarshalJSON() ([]byte, error)

type InstanceParams added in v0.192.0

type InstanceParams struct {
	// ResourceManagerTags: Optional. Resource manager tags to be bound to the
	// instance.
	ResourceManagerTags map[string]string `json:"resourceManagerTags,omitempty"`
	// ForceSendFields is a list of field names (e.g. "ResourceManagerTags") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "ResourceManagerTags") to include
	// in API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

InstanceParams: Additional instance params.

func (InstanceParams) MarshalJSON added in v0.192.0

func (s InstanceParams) MarshalJSON() ([]byte, error)

type IsolationExpectations added in v0.191.0

type IsolationExpectations struct {
	// RequirementOverride: Explicit overrides for ZI and ZS requirements to be
	// used for resources that should be excluded from ZI/ZS verification logic.
	RequirementOverride *RequirementOverride `json:"requirementOverride,omitempty"`
	// Possible values:
	//   "ZI_UNSPECIFIED"
	//   "ZI_UNKNOWN" - To be used if tracking is not available
	//   "ZI_NOT_REQUIRED"
	//   "ZI_PREFERRED"
	//   "ZI_REQUIRED"
	ZiOrgPolicy string `json:"ziOrgPolicy,omitempty"`
	// Possible values:
	//   "ZI_REGION_POLICY_UNSPECIFIED"
	//   "ZI_REGION_POLICY_UNKNOWN" - To be used if tracking is not available
	//   "ZI_REGION_POLICY_NOT_SET"
	//   "ZI_REGION_POLICY_FAIL_OPEN"
	//   "ZI_REGION_POLICY_FAIL_CLOSED"
	ZiRegionPolicy string `json:"ziRegionPolicy,omitempty"`
	// Possible values:
	//   "ZI_REGION_UNSPECIFIED"
	//   "ZI_REGION_UNKNOWN" - To be used if tracking is not available
	//   "ZI_REGION_NOT_ENABLED"
	//   "ZI_REGION_ENABLED"
	ZiRegionState string `json:"ziRegionState,omitempty"`
	// ZoneIsolation: Deprecated: use zi_org_policy, zi_region_policy and
	// zi_region_state instead for setting ZI expectations as per
	// go/zicy-publish-physical-location.
	//
	// Possible values:
	//   "ZI_UNSPECIFIED"
	//   "ZI_UNKNOWN" - To be used if tracking is not available
	//   "ZI_NOT_REQUIRED"
	//   "ZI_PREFERRED"
	//   "ZI_REQUIRED"
	ZoneIsolation string `json:"zoneIsolation,omitempty"`
	// ZoneSeparation: Deprecated: use zs_org_policy, and zs_region_stateinstead
	// for setting Zs expectations as per go/zicy-publish-physical-location.
	//
	// Possible values:
	//   "ZS_UNSPECIFIED"
	//   "ZS_UNKNOWN" - To be used if tracking is not available
	//   "ZS_NOT_REQUIRED"
	//   "ZS_REQUIRED"
	ZoneSeparation string `json:"zoneSeparation,omitempty"`
	// Possible values:
	//   "ZS_UNSPECIFIED"
	//   "ZS_UNKNOWN" - To be used if tracking is not available
	//   "ZS_NOT_REQUIRED"
	//   "ZS_REQUIRED"
	ZsOrgPolicy string `json:"zsOrgPolicy,omitempty"`
	// Possible values:
	//   "ZS_REGION_UNSPECIFIED"
	//   "ZS_REGION_UNKNOWN" - To be used if tracking of the asset ZS-bit is not
	// available
	//   "ZS_REGION_NOT_ENABLED"
	//   "ZS_REGION_ENABLED"
	ZsRegionState string `json:"zsRegionState,omitempty"`
	// ForceSendFields is a list of field names (e.g. "RequirementOverride") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "RequirementOverride") to include
	// in API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (IsolationExpectations) MarshalJSON added in v0.191.0

func (s IsolationExpectations) MarshalJSON() ([]byte, error)

type ListBackupPlanAssociationsResponse added in v0.192.0

type ListBackupPlanAssociationsResponse struct {
	// BackupPlanAssociations: The list of Backup Plan Associations in the project
	// for the specified location. If the `{location}` value in the request is "-",
	// the response contains a list of instances from all locations. In case any
	// location is unreachable, the response will only return backup plan
	// associations in reachable locations and the 'unreachable' field will be
	// populated with a list of unreachable locations.
	BackupPlanAssociations []*BackupPlanAssociation `json:"backupPlanAssociations,omitempty"`
	// NextPageToken: A token identifying a page of results the server should
	// return.
	NextPageToken string `json:"nextPageToken,omitempty"`
	// Unreachable: Locations that could not be reached.
	Unreachable []string `json:"unreachable,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "BackupPlanAssociations") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "BackupPlanAssociations") to
	// include in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ListBackupPlanAssociationsResponse: Response message for List BackupPlanAssociation

func (ListBackupPlanAssociationsResponse) MarshalJSON added in v0.192.0

func (s ListBackupPlanAssociationsResponse) MarshalJSON() ([]byte, error)

type ListBackupPlansResponse added in v0.192.0

type ListBackupPlansResponse struct {
	// BackupPlans: The list of `BackupPlans` in the project for the specified
	// location. If the `{location}` value in the request is "-", the response
	// contains a list of resources from all locations. In case any location is
	// unreachable, the response will only return backup plans in reachable
	// locations and the 'unreachable' field will be populated with a list of
	// unreachable locations. BackupPlan
	BackupPlans []*BackupPlan `json:"backupPlans,omitempty"`
	// NextPageToken: A token which may be sent as page_token in a subsequent
	// `ListBackupPlans` call to retrieve the next page of results. If this field
	// is omitted or empty, then there are no more results to return.
	NextPageToken string `json:"nextPageToken,omitempty"`
	// Unreachable: Locations that could not be reached.
	Unreachable []string `json:"unreachable,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "BackupPlans") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "BackupPlans") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ListBackupPlansResponse: The response message for getting a list of `BackupPlan`.

func (ListBackupPlansResponse) MarshalJSON added in v0.192.0

func (s ListBackupPlansResponse) MarshalJSON() ([]byte, error)

type ListBackupVaultsResponse added in v0.188.0

type ListBackupVaultsResponse struct {
	// BackupVaults: The list of BackupVault instances in the project for the
	// specified location. If the '{location}' value in the request is "-", the
	// response contains a list of instances from all locations. In case any
	// location is unreachable, the response will only return backup vaults in
	// reachable locations and the 'unreachable' field will be populated with a
	// list of unreachable locations.
	BackupVaults []*BackupVault `json:"backupVaults,omitempty"`
	// NextPageToken: A token identifying a page of results the server should
	// return.
	NextPageToken string `json:"nextPageToken,omitempty"`
	// Unreachable: Locations that could not be reached.
	Unreachable []string `json:"unreachable,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "BackupVaults") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "BackupVaults") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ListBackupVaultsResponse: Response message for listing BackupVaults.

func (ListBackupVaultsResponse) MarshalJSON added in v0.188.0

func (s ListBackupVaultsResponse) MarshalJSON() ([]byte, error)

type ListBackupsResponse added in v0.188.0

type ListBackupsResponse struct {
	// Backups: The list of Backup instances in the project for the specified
	// location. If the '{location}' value in the request is "-", the response
	// contains a list of instances from all locations. In case any location is
	// unreachable, the response will only return data sources in reachable
	// locations and the 'unreachable' field will be populated with a list of
	// unreachable locations.
	Backups []*Backup `json:"backups,omitempty"`
	// NextPageToken: A token identifying a page of results the server should
	// return.
	NextPageToken string `json:"nextPageToken,omitempty"`
	// Unreachable: Locations that could not be reached.
	Unreachable []string `json:"unreachable,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Backups") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Backups") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ListBackupsResponse: Response message for listing Backups.

func (ListBackupsResponse) MarshalJSON added in v0.188.0

func (s ListBackupsResponse) MarshalJSON() ([]byte, error)

type ListDataSourcesResponse added in v0.188.0

type ListDataSourcesResponse struct {
	// DataSources: The list of DataSource instances in the project for the
	// specified location. If the '{location}' value in the request is "-", the
	// response contains a list of instances from all locations. In case any
	// location is unreachable, the response will only return data sources in
	// reachable locations and the 'unreachable' field will be populated with a
	// list of unreachable locations.
	DataSources []*DataSource `json:"dataSources,omitempty"`
	// NextPageToken: A token identifying a page of results the server should
	// return.
	NextPageToken string `json:"nextPageToken,omitempty"`
	// Unreachable: Locations that could not be reached.
	Unreachable []string `json:"unreachable,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "DataSources") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "DataSources") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ListDataSourcesResponse: Response message for listing DataSources.

func (ListDataSourcesResponse) MarshalJSON added in v0.188.0

func (s ListDataSourcesResponse) MarshalJSON() ([]byte, error)

type ListLocationsResponse

type ListLocationsResponse struct {
	// Locations: A list of locations that matches the specified filter in the
	// request.
	Locations []*Location `json:"locations,omitempty"`
	// NextPageToken: The standard List next-page token.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Locations") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Locations") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ListLocationsResponse: The response message for Locations.ListLocations.

func (ListLocationsResponse) MarshalJSON

func (s ListLocationsResponse) MarshalJSON() ([]byte, error)

type ListManagementServersResponse

type ListManagementServersResponse struct {
	// ManagementServers: The list of ManagementServer instances in the project for
	// the specified location. If the '{location}' value in the request is "-", the
	// response contains a list of instances from all locations. In case any
	// location is unreachable, the response will only return management servers in
	// reachable locations and the 'unreachable' field will be populated with a
	// list of unreachable locations.
	ManagementServers []*ManagementServer `json:"managementServers,omitempty"`
	// NextPageToken: A token identifying a page of results the server should
	// return.
	NextPageToken string `json:"nextPageToken,omitempty"`
	// Unreachable: Locations that could not be reached.
	Unreachable []string `json:"unreachable,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "ManagementServers") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "ManagementServers") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ListManagementServersResponse: Response message for listing management servers.

func (ListManagementServersResponse) MarshalJSON

func (s ListManagementServersResponse) MarshalJSON() ([]byte, error)

type ListOperationsResponse

type ListOperationsResponse struct {
	// NextPageToken: The standard List next-page token.
	NextPageToken string `json:"nextPageToken,omitempty"`
	// Operations: A list of operations that matches the specified filter in the
	// request.
	Operations []*Operation `json:"operations,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ListOperationsResponse: The response message for Operations.ListOperations.

func (ListOperationsResponse) MarshalJSON

func (s ListOperationsResponse) MarshalJSON() ([]byte, error)

type Location

type Location struct {
	// DisplayName: The friendly name for this location, typically a nearby city
	// name. For example, "Tokyo".
	DisplayName string `json:"displayName,omitempty"`
	// Labels: Cross-service attributes for the location. For example
	// {"cloud.googleapis.com/region": "us-east1"}
	Labels map[string]string `json:"labels,omitempty"`
	// LocationId: The canonical id for this location. For example: "us-east1".
	LocationId string `json:"locationId,omitempty"`
	// Metadata: Service-specific metadata. For example the available capacity at
	// the given location.
	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
	// Name: Resource name for the location, which may vary between
	// implementations. For example:
	// "projects/example-project/locations/us-east1"
	Name string `json:"name,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "DisplayName") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "DisplayName") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Location: A resource that represents a Google Cloud location.

func (Location) MarshalJSON

func (s Location) MarshalJSON() ([]byte, error)

type LocationAssignment added in v0.191.0

type LocationAssignment struct {
	Location string `json:"location,omitempty"`
	// Possible values:
	//   "UNSPECIFIED"
	//   "CLUSTER" - 1-10: Physical failure domains.
	//   "POP"
	//   "CLOUD_ZONE" - 11-20: Logical failure domains.
	//   "CLOUD_REGION"
	//   "MULTI_REGION_GEO"
	//   "MULTI_REGION_JURISDICTION"
	//   "GLOBAL"
	//   "OTHER"
	LocationType string `json:"locationType,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Location") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Location") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (LocationAssignment) MarshalJSON added in v0.191.0

func (s LocationAssignment) MarshalJSON() ([]byte, error)

type LocationData added in v0.191.0

type LocationData struct {
	BlobstoreLocation  *BlobstoreLocation        `json:"blobstoreLocation,omitempty"`
	ChildAssetLocation *CloudAssetComposition    `json:"childAssetLocation,omitempty"`
	DirectLocation     *DirectLocationAssignment `json:"directLocation,omitempty"`
	GcpProjectProxy    *TenantProjectProxy       `json:"gcpProjectProxy,omitempty"`
	PlacerLocation     *PlacerLocation           `json:"placerLocation,omitempty"`
	SpannerLocation    *SpannerLocation          `json:"spannerLocation,omitempty"`
	// ForceSendFields is a list of field names (e.g. "BlobstoreLocation") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "BlobstoreLocation") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (LocationData) MarshalJSON added in v0.191.0

func (s LocationData) MarshalJSON() ([]byte, error)

type ManagementServer

type ManagementServer struct {
	// BaProxyUri: Output only. The hostname or ip address of the exposed AGM
	// endpoints, used by BAs to connect to BA proxy.
	BaProxyUri []string `json:"baProxyUri,omitempty"`
	// CreateTime: Output only. The time when the instance was created.
	CreateTime string `json:"createTime,omitempty"`
	// Description: Optional. The description of the ManagementServer instance
	// (2048 characters or less).
	Description string `json:"description,omitempty"`
	// Etag: Optional. Server specified ETag for the ManagementServer resource to
	// prevent simultaneous updates from overwiting each other.
	Etag string `json:"etag,omitempty"`
	// Labels: Optional. Resource labels to represent user provided metadata.
	// Labels currently defined: 1. migrate_from_go= If set to true, the MS is
	// created in migration ready mode.
	Labels map[string]string `json:"labels,omitempty"`
	// ManagementUri: Output only. The hostname or ip address of the exposed AGM
	// endpoints, used by clients to connect to AGM/RD graphical user interface and
	// APIs.
	ManagementUri *ManagementURI `json:"managementUri,omitempty"`
	// Name: Output only. Identifier. The resource name.
	Name string `json:"name,omitempty"`
	// Networks: Required. VPC networks to which the ManagementServer instance is
	// connected. For this version, only a single network is supported.
	Networks []*NetworkConfig `json:"networks,omitempty"`
	// Oauth2ClientId: Output only. The OAuth 2.0 client id is required to make API
	// calls to the BackupDR instance API of this ManagementServer. This is the
	// value that should be provided in the 'aud' field of the OIDC ID Token (see
	// openid specification
	// https://openid.net/specs/openid-connect-core-1_0.html#IDToken).
	Oauth2ClientId string `json:"oauth2ClientId,omitempty"`
	// SatisfiesPzi: Output only. Reserved for future use.
	SatisfiesPzi bool `json:"satisfiesPzi,omitempty"`
	// SatisfiesPzs: Output only. Reserved for future use.
	SatisfiesPzs bool `json:"satisfiesPzs,omitempty"`
	// State: Output only. The ManagementServer state.
	//
	// Possible values:
	//   "INSTANCE_STATE_UNSPECIFIED" - State not set.
	//   "CREATING" - The instance is being created.
	//   "READY" - The instance has been created and is fully usable.
	//   "UPDATING" - The instance configuration is being updated. Certain kinds of
	// updates may cause the instance to become unusable while the update is in
	// progress.
	//   "DELETING" - The instance is being deleted.
	//   "REPAIRING" - The instance is being repaired and may be unstable.
	//   "MAINTENANCE" - Maintenance is being performed on this instance.
	//   "ERROR" - The instance is experiencing an issue and might be unusable. You
	// can get further details from the statusMessage field of Instance resource.
	State string `json:"state,omitempty"`
	// Type: Optional. The type of the ManagementServer resource.
	//
	// Possible values:
	//   "INSTANCE_TYPE_UNSPECIFIED" - Instance type is not mentioned.
	//   "BACKUP_RESTORE" - Instance for backup and restore management (i.e., AGM).
	Type string `json:"type,omitempty"`
	// UpdateTime: Output only. The time when the instance was updated.
	UpdateTime string `json:"updateTime,omitempty"`
	// WorkforceIdentityBasedManagementUri: Output only. The hostnames of the
	// exposed AGM endpoints for both types of user i.e. 1p and 3p, used to connect
	// AGM/RM UI.
	WorkforceIdentityBasedManagementUri *WorkforceIdentityBasedManagementURI `json:"workforceIdentityBasedManagementUri,omitempty"`
	// WorkforceIdentityBasedOauth2ClientId: Output only. The OAuth client IDs for
	// both types of user i.e. 1p and 3p.
	WorkforceIdentityBasedOauth2ClientId *WorkforceIdentityBasedOAuth2ClientID `json:"workforceIdentityBasedOauth2ClientId,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "BaProxyUri") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "BaProxyUri") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ManagementServer: ManagementServer describes a single BackupDR ManagementServer instance.

func (ManagementServer) MarshalJSON

func (s ManagementServer) MarshalJSON() ([]byte, error)

type ManagementURI

type ManagementURI struct {
	// Api: Output only. The ManagementServer AGM/RD API URL.
	Api string `json:"api,omitempty"`
	// WebUi: Output only. The ManagementServer AGM/RD WebUI URL.
	WebUi string `json:"webUi,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Api") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Api") to include in API requests
	// with the JSON null value. By default, fields with empty values are omitted
	// from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ManagementURI: ManagementURI for the Management Server resource.

func (ManagementURI) MarshalJSON

func (s ManagementURI) MarshalJSON() ([]byte, error)

type Metadata added in v0.188.0

type Metadata struct {
	// Items: Optional. Array of key/value pairs. The total size of all keys and
	// values must be less than 512 KB.
	Items []*Entry `json:"items,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Items") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Items") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Metadata: A metadata key/value entry.

func (Metadata) MarshalJSON added in v0.188.0

func (s Metadata) MarshalJSON() ([]byte, error)

type NetworkConfig

type NetworkConfig struct {
	// Network: Optional. The resource name of the Google Compute Engine VPC
	// network to which the ManagementServer instance is connected.
	Network string `json:"network,omitempty"`
	// PeeringMode: Optional. The network connect mode of the ManagementServer
	// instance. For this version, only PRIVATE_SERVICE_ACCESS is supported.
	//
	// Possible values:
	//   "PEERING_MODE_UNSPECIFIED" - Peering mode not set.
	//   "PRIVATE_SERVICE_ACCESS" - Connect using Private Service Access to the
	// Management Server. Private services access provides an IP address range for
	// multiple Google Cloud services, including Cloud BackupDR.
	PeeringMode string `json:"peeringMode,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Network") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Network") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

NetworkConfig: Network configuration for ManagementServer instance.

func (NetworkConfig) MarshalJSON

func (s NetworkConfig) MarshalJSON() ([]byte, error)

type NetworkInterface added in v0.188.0

type NetworkInterface struct {
	// AccessConfigs: 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.
	AccessConfigs []*AccessConfig `json:"accessConfigs,omitempty"`
	// AliasIpRanges: Optional. An array of alias IP ranges for this network
	// interface. You can only specify this field for network interfaces in VPC
	// networks.
	AliasIpRanges []*AliasIpRange `json:"aliasIpRanges,omitempty"`
	// InternalIpv6PrefixLength: Optional. The prefix length of the primary
	// internal IPv6 range.
	InternalIpv6PrefixLength int64 `json:"internalIpv6PrefixLength,omitempty"`
	// Ipv6AccessConfigs: 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.
	Ipv6AccessConfigs []*AccessConfig `json:"ipv6AccessConfigs,omitempty"`
	// 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.
	//
	// Possible values:
	//   "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.
	Ipv6AccessType string `json:"ipv6AccessType,omitempty"`
	// Ipv6Address: 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.
	Ipv6Address string `json:"ipv6Address,omitempty"`
	// Name: Output only. [Output Only] The name of the network interface, which is
	// generated by the server.
	Name string `json:"name,omitempty"`
	// Network: Optional. URL of the VPC network resource for this instance.
	Network string `json:"network,omitempty"`
	// NetworkAttachment: Optional. The URL of the network attachment that this
	// interface should connect to in the following format:
	// projects/{project_number}/regions/{region_name}/networkAttachments/{network_a
	// ttachment_name}.
	NetworkAttachment string `json:"networkAttachment,omitempty"`
	// NetworkIP: 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.
	NetworkIP string `json:"networkIP,omitempty"`
	// NicType: Optional. The type of vNIC to be used on this interface. This may
	// be gVNIC or VirtioNet.
	//
	// Possible values:
	//   "NIC_TYPE_UNSPECIFIED" - Default should be NIC_TYPE_UNSPECIFIED.
	//   "VIRTIO_NET" - VIRTIO
	//   "GVNIC" - GVNIC
	NicType string `json:"nicType,omitempty"`
	// QueueCount: 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.
	QueueCount int64 `json:"queueCount,omitempty"`
	// StackType: The stack type for this network interface.
	//
	// Possible values:
	//   "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.
	StackType string `json:"stackType,omitempty"`
	// Subnetwork: Optional. The URL of the Subnetwork resource for this instance.
	Subnetwork string `json:"subnetwork,omitempty"`
	// ForceSendFields is a list of field names (e.g. "AccessConfigs") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AccessConfigs") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

NetworkInterface: A network interface resource attached to an instance. s

func (NetworkInterface) MarshalJSON added in v0.188.0

func (s NetworkInterface) MarshalJSON() ([]byte, error)

type NetworkPerformanceConfig added in v0.192.0

type NetworkPerformanceConfig struct {
	// TotalEgressBandwidthTier: Optional. The tier of the total egress bandwidth.
	//
	// Possible values:
	//   "TIER_UNSPECIFIED" - This value is unused.
	//   "DEFAULT" - Default network performance config.
	//   "TIER_1" - Tier 1 network performance config.
	TotalEgressBandwidthTier string `json:"totalEgressBandwidthTier,omitempty"`
	// ForceSendFields is a list of field names (e.g. "TotalEgressBandwidthTier")
	// to unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "TotalEgressBandwidthTier") to
	// include in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

NetworkPerformanceConfig: Network performance configuration.

func (NetworkPerformanceConfig) MarshalJSON added in v0.192.0

func (s NetworkPerformanceConfig) MarshalJSON() ([]byte, error)

type NodeAffinity added in v0.188.0

type NodeAffinity struct {
	// Key: Optional. Corresponds to the label key of Node resource.
	Key string `json:"key,omitempty"`
	// Operator: Optional. Defines the operation of node selection.
	//
	// Possible values:
	//   "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.
	Operator string `json:"operator,omitempty"`
	// Values: Optional. Corresponds to the label values of Node resource.
	Values []string `json:"values,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Key") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Key") to include in API requests
	// with the JSON null value. By default, fields with empty values are omitted
	// from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

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

func (NodeAffinity) MarshalJSON added in v0.188.0

func (s NodeAffinity) MarshalJSON() ([]byte, error)

type Operation

type Operation struct {
	// Done: If the value is `false`, it means the operation is still in progress.
	// If `true`, the operation is completed, and either `error` or `response` is
	// available.
	Done bool `json:"done,omitempty"`
	// Error: The error result of the operation in case of failure or cancellation.
	Error *Status `json:"error,omitempty"`
	// Metadata: Service-specific metadata associated with the operation. It
	// typically contains progress information and common metadata such as create
	// time. Some services might not provide such metadata. Any method that returns
	// a long-running operation should document the metadata type, if any.
	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
	// Name: The server-assigned name, which is only unique within the same service
	// that originally returns it. If you use the default HTTP mapping, the `name`
	// should be a resource name ending with `operations/{unique_id}`.
	Name string `json:"name,omitempty"`
	// Response: The normal, successful response of the operation. If the original
	// method returns no data on success, such as `Delete`, the response is
	// `google.protobuf.Empty`. If the original method is standard
	// `Get`/`Create`/`Update`, the response should be the resource. For other
	// methods, the response should have the type `XxxResponse`, where `Xxx` is the
	// original method name. For example, if the original method name is
	// `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
	Response googleapi.RawMessage `json:"response,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Done") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Done") to include in API requests
	// with the JSON null value. By default, fields with empty values are omitted
	// from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Operation: This resource represents a long-running operation that is the result of a network API call.

func (Operation) MarshalJSON

func (s Operation) MarshalJSON() ([]byte, error)

type OperationMetadata

type OperationMetadata struct {
	// AdditionalInfo: Output only. AdditionalInfo contains additional Info related
	// to backup plan association resource.
	AdditionalInfo map[string]string `json:"additionalInfo,omitempty"`
	// ApiVersion: Output only. API version used to start the operation.
	ApiVersion string `json:"apiVersion,omitempty"`
	// CreateTime: Output only. The time the operation was created.
	CreateTime string `json:"createTime,omitempty"`
	// EndTime: Output only. The time the operation finished running.
	EndTime string `json:"endTime,omitempty"`
	// RequestedCancellation: Output only. Identifies whether the user has
	// requested cancellation of the operation. Operations that have successfully
	// been cancelled have Operation.error value with a google.rpc.Status.code of
	// 1, corresponding to 'Code.CANCELLED'.
	RequestedCancellation bool `json:"requestedCancellation,omitempty"`
	// StatusMessage: Output only. Human-readable status of the operation, if any.
	StatusMessage string `json:"statusMessage,omitempty"`
	// Target: Output only. Server-defined resource path for the target of the
	// operation.
	Target string `json:"target,omitempty"`
	// Verb: Output only. Name of the verb executed by the operation.
	Verb string `json:"verb,omitempty"`
	// ForceSendFields is a list of field names (e.g. "AdditionalInfo") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AdditionalInfo") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

OperationMetadata: Represents the metadata of the long-running operation.

func (OperationMetadata) MarshalJSON

func (s OperationMetadata) MarshalJSON() ([]byte, error)

type PlacerLocation added in v0.191.0

type PlacerLocation struct {
	// PlacerConfig: Directory with a config related to it in placer (e.g.
	// "/placer/prod/home/my-root/my-dir")
	PlacerConfig string `json:"placerConfig,omitempty"`
	// ForceSendFields is a list of field names (e.g. "PlacerConfig") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "PlacerConfig") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

PlacerLocation: Message describing that the location of the customer resource is tied to placer allocations

func (PlacerLocation) MarshalJSON added in v0.191.0

func (s PlacerLocation) MarshalJSON() ([]byte, error)

type Policy

type Policy struct {
	// AuditConfigs: Specifies cloud audit logging configuration for this policy.
	AuditConfigs []*AuditConfig `json:"auditConfigs,omitempty"`
	// Bindings: Associates a list of `members`, or principals, with a `role`.
	// Optionally, may specify a `condition` that determines how and when the
	// `bindings` are applied. Each of the `bindings` must contain at least one
	// principal. The `bindings` in a `Policy` can refer to up to 1,500 principals;
	// up to 250 of these principals can be Google groups. Each occurrence of a
	// principal counts towards these limits. For example, if the `bindings` grant
	// 50 different roles to `user:alice@example.com`, and not to any other
	// principal, then you can add another 1,450 principals to the `bindings` in
	// the `Policy`.
	Bindings []*Binding `json:"bindings,omitempty"`
	// Etag: `etag` is used for optimistic concurrency control as a way to help
	// prevent simultaneous updates of a policy from overwriting each other. It is
	// strongly suggested that systems make use of the `etag` in the
	// read-modify-write cycle to perform policy updates in order to avoid race
	// conditions: An `etag` is returned in the response to `getIamPolicy`, and
	// systems are expected to put that etag in the request to `setIamPolicy` to
	// ensure that their change will be applied to the same version of the policy.
	// **Important:** If you use IAM Conditions, you must include the `etag` field
	// whenever you call `setIamPolicy`. If you omit this field, then IAM allows
	// you to overwrite a version `3` policy with a version `1` policy, and all of
	// the conditions in the version `3` policy are lost.
	Etag string `json:"etag,omitempty"`
	// Version: Specifies the format of the policy. Valid values are `0`, `1`, and
	// `3`. Requests that specify an invalid value are rejected. Any operation that
	// affects conditional role bindings must specify version `3`. This requirement
	// applies to the following operations: * Getting a policy that includes a
	// conditional role binding * Adding a conditional role binding to a policy *
	// Changing a conditional role binding in a policy * Removing any role binding,
	// with or without a condition, from a policy that includes conditions
	// **Important:** If you use IAM Conditions, you must include the `etag` field
	// whenever you call `setIamPolicy`. If you omit this field, then IAM allows
	// you to overwrite a version `3` policy with a version `1` policy, and all of
	// the conditions in the version `3` policy are lost. If a policy does not
	// include any conditions, operations on that policy may specify any valid
	// version or leave the field unset. To learn which resources support
	// conditions in their IAM policies, see the IAM documentation
	// (https://cloud.google.com/iam/help/conditions/resource-policies).
	Version int64 `json:"version,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "AuditConfigs") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AuditConfigs") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Policy: An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 } ``` **YAML example:** ``` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the IAM documentation (https://cloud.google.com/iam/docs/).

func (Policy) MarshalJSON

func (s Policy) MarshalJSON() ([]byte, error)

type ProjectsLocationsBackupPlanAssociationsCreateCall added in v0.192.0

type ProjectsLocationsBackupPlanAssociationsCreateCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsBackupPlanAssociationsCreateCall) BackupPlanAssociationId added in v0.192.0

BackupPlanAssociationId sets the optional parameter "backupPlanAssociationId": Required. The name of the backup plan association to create. The name must be unique for the specified project and location.

func (*ProjectsLocationsBackupPlanAssociationsCreateCall) Context added in v0.192.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsBackupPlanAssociationsCreateCall) Do added in v0.192.0

Do executes the "backupdr.projects.locations.backupPlanAssociations.create" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsBackupPlanAssociationsCreateCall) Fields added in v0.192.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsBackupPlanAssociationsCreateCall) Header added in v0.192.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsBackupPlanAssociationsCreateCall) RequestId added in v0.192.0

RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

type ProjectsLocationsBackupPlanAssociationsDeleteCall added in v0.192.0

type ProjectsLocationsBackupPlanAssociationsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsBackupPlanAssociationsDeleteCall) Context added in v0.192.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsBackupPlanAssociationsDeleteCall) Do added in v0.192.0

Do executes the "backupdr.projects.locations.backupPlanAssociations.delete" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsBackupPlanAssociationsDeleteCall) Fields added in v0.192.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsBackupPlanAssociationsDeleteCall) Header added in v0.192.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsBackupPlanAssociationsDeleteCall) RequestId added in v0.192.0

RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

type ProjectsLocationsBackupPlanAssociationsGetCall added in v0.192.0

type ProjectsLocationsBackupPlanAssociationsGetCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsBackupPlanAssociationsGetCall) Context added in v0.192.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsBackupPlanAssociationsGetCall) Do added in v0.192.0

Do executes the "backupdr.projects.locations.backupPlanAssociations.get" call. Any non-2xx status code is an error. Response headers are in either *BackupPlanAssociation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsBackupPlanAssociationsGetCall) Fields added in v0.192.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsBackupPlanAssociationsGetCall) Header added in v0.192.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsBackupPlanAssociationsGetCall) IfNoneMatch added in v0.192.0

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

type ProjectsLocationsBackupPlanAssociationsListCall added in v0.192.0

type ProjectsLocationsBackupPlanAssociationsListCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsBackupPlanAssociationsListCall) Context added in v0.192.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsBackupPlanAssociationsListCall) Do added in v0.192.0

Do executes the "backupdr.projects.locations.backupPlanAssociations.list" call. Any non-2xx status code is an error. Response headers are in either *ListBackupPlanAssociationsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsBackupPlanAssociationsListCall) Fields added in v0.192.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsBackupPlanAssociationsListCall) Filter added in v0.192.0

Filter sets the optional parameter "filter": Filtering results

func (*ProjectsLocationsBackupPlanAssociationsListCall) Header added in v0.192.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsBackupPlanAssociationsListCall) IfNoneMatch added in v0.192.0

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*ProjectsLocationsBackupPlanAssociationsListCall) PageSize added in v0.192.0

PageSize sets the optional parameter "pageSize": Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.

func (*ProjectsLocationsBackupPlanAssociationsListCall) PageToken added in v0.192.0

PageToken sets the optional parameter "pageToken": A token identifying a page of results the server should return.

func (*ProjectsLocationsBackupPlanAssociationsListCall) Pages added in v0.192.0

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type ProjectsLocationsBackupPlanAssociationsService added in v0.192.0

type ProjectsLocationsBackupPlanAssociationsService struct {
	// contains filtered or unexported fields
}

func NewProjectsLocationsBackupPlanAssociationsService added in v0.192.0

func NewProjectsLocationsBackupPlanAssociationsService(s *Service) *ProjectsLocationsBackupPlanAssociationsService

func (*ProjectsLocationsBackupPlanAssociationsService) Create added in v0.192.0

Create: Create a BackupPlanAssociation

  • parent: The backup plan association project and location in the format `projects/{project_id}/locations/{location}`. In Cloud BackupDR locations map to GCP regions, for example **us-central1**.

func (*ProjectsLocationsBackupPlanAssociationsService) Delete added in v0.192.0

Delete: Deletes a single BackupPlanAssociation.

  • name: Name of the backup plan association resource, in the format `projects/{project}/locations/{location}/backupPlanAssociations/{backupPlan AssociationId}`.

func (*ProjectsLocationsBackupPlanAssociationsService) Get added in v0.192.0

Get: Gets details of a single BackupPlanAssociation.

  • name: Name of the backup plan association resource, in the format `projects/{project}/locations/{location}/backupPlanAssociations/{backupPlan AssociationId}`.

func (*ProjectsLocationsBackupPlanAssociationsService) List added in v0.192.0

List: Lists BackupPlanAssociations in a given project and location.

  • parent: The project and location for which to retrieve backup Plan Associations information, in the format `projects/{project_id}/locations/{location}`. In Cloud BackupDR, locations map to GCP regions, for example **us-central1**. To retrieve backup plan associations for all locations, use "-" for the `{location}` value.

func (*ProjectsLocationsBackupPlanAssociationsService) TriggerBackup added in v0.192.0

TriggerBackup: Triggers a new Backup.

  • name: Name of the backup plan association resource, in the format `projects/{project}/locations/{location}/backupPlanAssociations/{backupPlan AssociationId}`.

type ProjectsLocationsBackupPlanAssociationsTriggerBackupCall added in v0.192.0

type ProjectsLocationsBackupPlanAssociationsTriggerBackupCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsBackupPlanAssociationsTriggerBackupCall) Context added in v0.192.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsBackupPlanAssociationsTriggerBackupCall) Do added in v0.192.0

Do executes the "backupdr.projects.locations.backupPlanAssociations.triggerBackup" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsBackupPlanAssociationsTriggerBackupCall) Fields added in v0.192.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsBackupPlanAssociationsTriggerBackupCall) Header added in v0.192.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsBackupPlansCreateCall added in v0.192.0

type ProjectsLocationsBackupPlansCreateCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsBackupPlansCreateCall) BackupPlanId added in v0.192.0

BackupPlanId sets the optional parameter "backupPlanId": Required. The name of the `BackupPlan` to create. The name must be unique for the specified project and location.The name must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens. Pattern, /a-z{,62}/.

func (*ProjectsLocationsBackupPlansCreateCall) Context added in v0.192.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsBackupPlansCreateCall) Do added in v0.192.0

Do executes the "backupdr.projects.locations.backupPlans.create" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsBackupPlansCreateCall) Fields added in v0.192.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsBackupPlansCreateCall) Header added in v0.192.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsBackupPlansCreateCall) RequestId added in v0.192.0

RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

type ProjectsLocationsBackupPlansDeleteCall added in v0.192.0

type ProjectsLocationsBackupPlansDeleteCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsBackupPlansDeleteCall) Context added in v0.192.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsBackupPlansDeleteCall) Do added in v0.192.0

Do executes the "backupdr.projects.locations.backupPlans.delete" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsBackupPlansDeleteCall) Fields added in v0.192.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsBackupPlansDeleteCall) Header added in v0.192.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsBackupPlansDeleteCall) RequestId added in v0.192.0

RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

type ProjectsLocationsBackupPlansGetCall added in v0.192.0

type ProjectsLocationsBackupPlansGetCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsBackupPlansGetCall) Context added in v0.192.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsBackupPlansGetCall) Do added in v0.192.0

Do executes the "backupdr.projects.locations.backupPlans.get" call. Any non-2xx status code is an error. Response headers are in either *BackupPlan.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsBackupPlansGetCall) Fields added in v0.192.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsBackupPlansGetCall) Header added in v0.192.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsBackupPlansGetCall) IfNoneMatch added in v0.192.0

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

type ProjectsLocationsBackupPlansListCall added in v0.192.0

type ProjectsLocationsBackupPlansListCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsBackupPlansListCall) Context added in v0.192.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsBackupPlansListCall) Do added in v0.192.0

Do executes the "backupdr.projects.locations.backupPlans.list" call. Any non-2xx status code is an error. Response headers are in either *ListBackupPlansResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsBackupPlansListCall) Fields added in v0.192.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsBackupPlansListCall) Filter added in v0.192.0

Filter sets the optional parameter "filter": Field match expression used to filter the results.

func (*ProjectsLocationsBackupPlansListCall) Header added in v0.192.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsBackupPlansListCall) IfNoneMatch added in v0.192.0

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*ProjectsLocationsBackupPlansListCall) OrderBy added in v0.192.0

OrderBy sets the optional parameter "orderBy": Field by which to sort the results.

func (*ProjectsLocationsBackupPlansListCall) PageSize added in v0.192.0

PageSize sets the optional parameter "pageSize": The maximum number of `BackupPlans` to return in a single response. If not specified, a default value will be chosen by the service. Note that the response may include a partial list and a caller should only rely on the response's next_page_token to determine if there are more instances left to be queried.

func (*ProjectsLocationsBackupPlansListCall) PageToken added in v0.192.0

PageToken sets the optional parameter "pageToken": The value of next_page_token received from a previous `ListBackupPlans` call. Provide this to retrieve the subsequent page in a multi-page list of results. When paginating, all other parameters provided to `ListBackupPlans` must match the call that provided the page token.

func (*ProjectsLocationsBackupPlansListCall) Pages added in v0.192.0

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type ProjectsLocationsBackupPlansService added in v0.192.0

type ProjectsLocationsBackupPlansService struct {
	// contains filtered or unexported fields
}

func NewProjectsLocationsBackupPlansService added in v0.192.0

func NewProjectsLocationsBackupPlansService(s *Service) *ProjectsLocationsBackupPlansService

func (*ProjectsLocationsBackupPlansService) Create added in v0.192.0

Create: Create a BackupPlan

  • parent: The `BackupPlan` project and location in the format `projects/{project}/locations/{location}`. In Cloud BackupDR locations map to GCP regions, for example **us-central1**.

func (*ProjectsLocationsBackupPlansService) Delete added in v0.192.0

Delete: Deletes a single BackupPlan.

  • name: The resource name of the `BackupPlan` to delete. Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}`.

func (*ProjectsLocationsBackupPlansService) Get added in v0.192.0

Get: Gets details of a single BackupPlan.

  • name: The resource name of the `BackupPlan` to retrieve. Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}`.

func (*ProjectsLocationsBackupPlansService) List added in v0.192.0

List: Lists BackupPlans in a given project and location.

  • parent: The project and location for which to retrieve `BackupPlans` information. Format: `projects/{project}/locations/{location}`. In Cloud BackupDR, locations map to GCP regions, for e.g. **us-central1**. To retrieve backup plans for all locations, use "-" for the `{location}` value.

type ProjectsLocationsBackupVaultsCreateCall added in v0.188.0

type ProjectsLocationsBackupVaultsCreateCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsBackupVaultsCreateCall) BackupVaultId added in v0.188.0

BackupVaultId sets the optional parameter "backupVaultId": Required. ID of the requesting object If auto-generating ID server-side, remove this field and backup_vault_id from the method_signature of Create RPC

func (*ProjectsLocationsBackupVaultsCreateCall) Context added in v0.188.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsBackupVaultsCreateCall) Do added in v0.188.0

Do executes the "backupdr.projects.locations.backupVaults.create" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsBackupVaultsCreateCall) Fields added in v0.188.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsBackupVaultsCreateCall) Header added in v0.188.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsBackupVaultsCreateCall) RequestId added in v0.188.0

RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

func (*ProjectsLocationsBackupVaultsCreateCall) ValidateOnly added in v0.188.0

ValidateOnly sets the optional parameter "validateOnly": Only validate the request, but do not perform mutations. The default is 'false'.

type ProjectsLocationsBackupVaultsDataSourcesAbandonBackupCall added in v0.188.0

type ProjectsLocationsBackupVaultsDataSourcesAbandonBackupCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsBackupVaultsDataSourcesAbandonBackupCall) Context added in v0.188.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsBackupVaultsDataSourcesAbandonBackupCall) Do added in v0.188.0

Do executes the "backupdr.projects.locations.backupVaults.dataSources.abandonBackup" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsBackupVaultsDataSourcesAbandonBackupCall) Fields added in v0.188.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsBackupVaultsDataSourcesAbandonBackupCall) Header added in v0.188.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsBackupVaultsDataSourcesBackupsDeleteCall added in v0.188.0

type ProjectsLocationsBackupVaultsDataSourcesBackupsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsBackupVaultsDataSourcesBackupsDeleteCall) Context added in v0.188.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsBackupVaultsDataSourcesBackupsDeleteCall) Do added in v0.188.0

Do executes the "backupdr.projects.locations.backupVaults.dataSources.backups.delete" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsBackupVaultsDataSourcesBackupsDeleteCall) Fields added in v0.188.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsBackupVaultsDataSourcesBackupsDeleteCall) Header added in v0.188.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsBackupVaultsDataSourcesBackupsDeleteCall) RequestId added in v0.188.0

RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

type ProjectsLocationsBackupVaultsDataSourcesBackupsGetCall added in v0.188.0

type ProjectsLocationsBackupVaultsDataSourcesBackupsGetCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsBackupVaultsDataSourcesBackupsGetCall) Context added in v0.188.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsBackupVaultsDataSourcesBackupsGetCall) Do added in v0.188.0

Do executes the "backupdr.projects.locations.backupVaults.dataSources.backups.get" call. Any non-2xx status code is an error. Response headers are in either *Backup.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsBackupVaultsDataSourcesBackupsGetCall) Fields added in v0.188.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsBackupVaultsDataSourcesBackupsGetCall) Header added in v0.188.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsBackupVaultsDataSourcesBackupsGetCall) IfNoneMatch added in v0.188.0

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*ProjectsLocationsBackupVaultsDataSourcesBackupsGetCall) View added in v0.198.0

View sets the optional parameter "view": Reserved for future use to provide a BASIC & FULL view of Backup resource.

Possible values:

"BACKUP_VIEW_UNSPECIFIED" - If the value is not set, the default 'FULL'

view is used.

"BACKUP_VIEW_BASIC" - Includes basic data about the Backup, but not the

full contents.

"BACKUP_VIEW_FULL" - Includes all data about the Backup. This is the

default value (for both ListBackups and GetBackup).

type ProjectsLocationsBackupVaultsDataSourcesBackupsListCall added in v0.188.0

type ProjectsLocationsBackupVaultsDataSourcesBackupsListCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsBackupVaultsDataSourcesBackupsListCall) Context added in v0.188.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsBackupVaultsDataSourcesBackupsListCall) Do added in v0.188.0

Do executes the "backupdr.projects.locations.backupVaults.dataSources.backups.list" call. Any non-2xx status code is an error. Response headers are in either *ListBackupsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsBackupVaultsDataSourcesBackupsListCall) Fields added in v0.188.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsBackupVaultsDataSourcesBackupsListCall) Filter added in v0.188.0

Filter sets the optional parameter "filter": Filtering results.

func (*ProjectsLocationsBackupVaultsDataSourcesBackupsListCall) Header added in v0.188.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsBackupVaultsDataSourcesBackupsListCall) IfNoneMatch added in v0.188.0

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*ProjectsLocationsBackupVaultsDataSourcesBackupsListCall) OrderBy added in v0.188.0

OrderBy sets the optional parameter "orderBy": Hint for how to order the results.

func (*ProjectsLocationsBackupVaultsDataSourcesBackupsListCall) PageSize added in v0.188.0

PageSize sets the optional parameter "pageSize": Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.

func (*ProjectsLocationsBackupVaultsDataSourcesBackupsListCall) PageToken added in v0.188.0

PageToken sets the optional parameter "pageToken": A token identifying a page of results the server should return.

func (*ProjectsLocationsBackupVaultsDataSourcesBackupsListCall) Pages added in v0.188.0

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

func (*ProjectsLocationsBackupVaultsDataSourcesBackupsListCall) View added in v0.198.0

View sets the optional parameter "view": Reserved for future use to provide a BASIC & FULL view of Backup resource.

Possible values:

"BACKUP_VIEW_UNSPECIFIED" - If the value is not set, the default 'FULL'

view is used.

"BACKUP_VIEW_BASIC" - Includes basic data about the Backup, but not the

full contents.

"BACKUP_VIEW_FULL" - Includes all data about the Backup. This is the

default value (for both ListBackups and GetBackup).

type ProjectsLocationsBackupVaultsDataSourcesBackupsPatchCall added in v0.188.0

type ProjectsLocationsBackupVaultsDataSourcesBackupsPatchCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsBackupVaultsDataSourcesBackupsPatchCall) Context added in v0.188.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsBackupVaultsDataSourcesBackupsPatchCall) Do added in v0.188.0

Do executes the "backupdr.projects.locations.backupVaults.dataSources.backups.patch" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsBackupVaultsDataSourcesBackupsPatchCall) Fields added in v0.188.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsBackupVaultsDataSourcesBackupsPatchCall) Header added in v0.188.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsBackupVaultsDataSourcesBackupsPatchCall) RequestId added in v0.188.0

RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

func (*ProjectsLocationsBackupVaultsDataSourcesBackupsPatchCall) UpdateMask added in v0.188.0

UpdateMask sets the optional parameter "updateMask": Required. Field mask is used to specify the fields to be overwritten in the Backup resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then the request will fail.

type ProjectsLocationsBackupVaultsDataSourcesBackupsRestoreCall added in v0.192.0

type ProjectsLocationsBackupVaultsDataSourcesBackupsRestoreCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsBackupVaultsDataSourcesBackupsRestoreCall) Context added in v0.192.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsBackupVaultsDataSourcesBackupsRestoreCall) Do added in v0.192.0

Do executes the "backupdr.projects.locations.backupVaults.dataSources.backups.restore" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsBackupVaultsDataSourcesBackupsRestoreCall) Fields added in v0.192.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsBackupVaultsDataSourcesBackupsRestoreCall) Header added in v0.192.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsBackupVaultsDataSourcesBackupsService added in v0.188.0

type ProjectsLocationsBackupVaultsDataSourcesBackupsService struct {
	// contains filtered or unexported fields
}

func NewProjectsLocationsBackupVaultsDataSourcesBackupsService added in v0.188.0

func NewProjectsLocationsBackupVaultsDataSourcesBackupsService(s *Service) *ProjectsLocationsBackupVaultsDataSourcesBackupsService

func (*ProjectsLocationsBackupVaultsDataSourcesBackupsService) Delete added in v0.188.0

Delete: Deletes a Backup.

- name: Name of the resource.

func (*ProjectsLocationsBackupVaultsDataSourcesBackupsService) Get added in v0.188.0

Get: Gets details of a Backup.

  • name: Name of the data source resource name, in the format 'projects/{project_id}/locations/{location}/backupVaults/{backupVault}/data Sources/{datasource}/backups/{backup}'.

func (*ProjectsLocationsBackupVaultsDataSourcesBackupsService) List added in v0.188.0

List: Lists Backups in a given project and location.

  • parent: The project and location for which to retrieve backup information, in the format 'projects/{project_id}/locations/{location}'. In Cloud Backup and DR, locations map to Google Cloud regions, for example **us-central1**. To retrieve data sources for all locations, use "-" for the '{location}' value.

func (*ProjectsLocationsBackupVaultsDataSourcesBackupsService) Patch added in v0.188.0

Patch: Updates the settings of a Backup.

  • name: Output only. Identifier. Name of the backup to create. It must have the format"projects//locations//backupVaults//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.

func (*ProjectsLocationsBackupVaultsDataSourcesBackupsService) Restore added in v0.192.0

Restore: Restore from a Backup

  • name: The resource name of the Backup instance, in the format 'projects/*/locations/*/backupVaults/*/dataSources/*/backups/'.

type ProjectsLocationsBackupVaultsDataSourcesFetchAccessTokenCall added in v0.188.0

type ProjectsLocationsBackupVaultsDataSourcesFetchAccessTokenCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsBackupVaultsDataSourcesFetchAccessTokenCall) Context added in v0.188.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsBackupVaultsDataSourcesFetchAccessTokenCall) Do added in v0.188.0

Do executes the "backupdr.projects.locations.backupVaults.dataSources.fetchAccessToken" call. Any non-2xx status code is an error. Response headers are in either *FetchAccessTokenResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsBackupVaultsDataSourcesFetchAccessTokenCall) Fields added in v0.188.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsBackupVaultsDataSourcesFetchAccessTokenCall) Header added in v0.188.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsBackupVaultsDataSourcesFinalizeBackupCall added in v0.188.0

type ProjectsLocationsBackupVaultsDataSourcesFinalizeBackupCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsBackupVaultsDataSourcesFinalizeBackupCall) Context added in v0.188.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsBackupVaultsDataSourcesFinalizeBackupCall) Do added in v0.188.0

Do executes the "backupdr.projects.locations.backupVaults.dataSources.finalizeBackup" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsBackupVaultsDataSourcesFinalizeBackupCall) Fields added in v0.188.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsBackupVaultsDataSourcesFinalizeBackupCall) Header added in v0.188.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsBackupVaultsDataSourcesGetCall added in v0.188.0

type ProjectsLocationsBackupVaultsDataSourcesGetCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsBackupVaultsDataSourcesGetCall) Context added in v0.188.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsBackupVaultsDataSourcesGetCall) Do added in v0.188.0

Do executes the "backupdr.projects.locations.backupVaults.dataSources.get" call. Any non-2xx status code is an error. Response headers are in either *DataSource.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsBackupVaultsDataSourcesGetCall) Fields added in v0.188.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsBackupVaultsDataSourcesGetCall) Header added in v0.188.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsBackupVaultsDataSourcesGetCall) IfNoneMatch added in v0.188.0

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

type ProjectsLocationsBackupVaultsDataSourcesInitiateBackupCall added in v0.188.0

type ProjectsLocationsBackupVaultsDataSourcesInitiateBackupCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsBackupVaultsDataSourcesInitiateBackupCall) Context added in v0.188.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsBackupVaultsDataSourcesInitiateBackupCall) Do added in v0.188.0

Do executes the "backupdr.projects.locations.backupVaults.dataSources.initiateBackup" call. Any non-2xx status code is an error. Response headers are in either *InitiateBackupResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsBackupVaultsDataSourcesInitiateBackupCall) Fields added in v0.188.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsBackupVaultsDataSourcesInitiateBackupCall) Header added in v0.188.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsBackupVaultsDataSourcesListCall added in v0.188.0

type ProjectsLocationsBackupVaultsDataSourcesListCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsBackupVaultsDataSourcesListCall) Context added in v0.188.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsBackupVaultsDataSourcesListCall) Do added in v0.188.0

Do executes the "backupdr.projects.locations.backupVaults.dataSources.list" call. Any non-2xx status code is an error. Response headers are in either *ListDataSourcesResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsBackupVaultsDataSourcesListCall) Fields added in v0.188.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsBackupVaultsDataSourcesListCall) Filter added in v0.188.0

Filter sets the optional parameter "filter": Filtering results.

func (*ProjectsLocationsBackupVaultsDataSourcesListCall) Header added in v0.188.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsBackupVaultsDataSourcesListCall) IfNoneMatch added in v0.188.0

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*ProjectsLocationsBackupVaultsDataSourcesListCall) OrderBy added in v0.188.0

OrderBy sets the optional parameter "orderBy": Hint for how to order the results.

func (*ProjectsLocationsBackupVaultsDataSourcesListCall) PageSize added in v0.188.0

PageSize sets the optional parameter "pageSize": Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.

func (*ProjectsLocationsBackupVaultsDataSourcesListCall) PageToken added in v0.188.0

PageToken sets the optional parameter "pageToken": A token identifying a page of results the server should return.

func (*ProjectsLocationsBackupVaultsDataSourcesListCall) Pages added in v0.188.0

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type ProjectsLocationsBackupVaultsDataSourcesPatchCall added in v0.188.0

type ProjectsLocationsBackupVaultsDataSourcesPatchCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsBackupVaultsDataSourcesPatchCall) AllowMissing added in v0.188.0

AllowMissing sets the optional parameter "allowMissing": Enable upsert.

func (*ProjectsLocationsBackupVaultsDataSourcesPatchCall) Context added in v0.188.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsBackupVaultsDataSourcesPatchCall) Do added in v0.188.0

Do executes the "backupdr.projects.locations.backupVaults.dataSources.patch" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsBackupVaultsDataSourcesPatchCall) Fields added in v0.188.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsBackupVaultsDataSourcesPatchCall) Header added in v0.188.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsBackupVaultsDataSourcesPatchCall) RequestId added in v0.188.0

RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

func (*ProjectsLocationsBackupVaultsDataSourcesPatchCall) UpdateMask added in v0.188.0

UpdateMask sets the optional parameter "updateMask": Required. Field mask is used to specify the fields to be overwritten in the DataSource resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then the request will fail.

type ProjectsLocationsBackupVaultsDataSourcesRemoveCall added in v0.188.0

type ProjectsLocationsBackupVaultsDataSourcesRemoveCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsBackupVaultsDataSourcesRemoveCall) Context added in v0.188.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsBackupVaultsDataSourcesRemoveCall) Do added in v0.188.0

Do executes the "backupdr.projects.locations.backupVaults.dataSources.remove" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsBackupVaultsDataSourcesRemoveCall) Fields added in v0.188.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsBackupVaultsDataSourcesRemoveCall) Header added in v0.188.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsBackupVaultsDataSourcesService added in v0.188.0

type ProjectsLocationsBackupVaultsDataSourcesService struct {
	Backups *ProjectsLocationsBackupVaultsDataSourcesBackupsService
	// contains filtered or unexported fields
}

func NewProjectsLocationsBackupVaultsDataSourcesService added in v0.188.0

func NewProjectsLocationsBackupVaultsDataSourcesService(s *Service) *ProjectsLocationsBackupVaultsDataSourcesService

func (*ProjectsLocationsBackupVaultsDataSourcesService) AbandonBackup added in v0.188.0

AbandonBackup: Internal only. Abandons a backup.

  • dataSource: The resource name of the instance, in the format 'projects/*/locations/*/backupVaults/*/dataSources/'.

func (*ProjectsLocationsBackupVaultsDataSourcesService) FetchAccessToken added in v0.188.0

FetchAccessToken: Internal only. Fetch access token for a given data source.

  • name: The resource name for the location for which static IPs should be returned. Must be in the format 'projects/*/locations/*/backupVaults/*/dataSources'.

func (*ProjectsLocationsBackupVaultsDataSourcesService) FinalizeBackup added in v0.188.0

FinalizeBackup: Internal only. Finalize a backup that was started by a call to InitiateBackup.

  • dataSource: The resource name of the instance, in the format 'projects/*/locations/*/backupVaults/*/dataSources/'.

func (*ProjectsLocationsBackupVaultsDataSourcesService) Get added in v0.188.0

Get: Gets details of a DataSource.

  • name: Name of the data source resource name, in the format 'projects/{project_id}/locations/{location}/backupVaults/{resource_name}/da taSource/{resource_name}'.

func (*ProjectsLocationsBackupVaultsDataSourcesService) InitiateBackup added in v0.188.0

InitiateBackup: Internal only. Initiates a backup.

  • dataSource: The resource name of the instance, in the format 'projects/*/locations/*/backupVaults/*/dataSources/'.

func (*ProjectsLocationsBackupVaultsDataSourcesService) List added in v0.188.0

List: Lists DataSources in a given project and location.

  • parent: The project and location for which to retrieve data sources information, in the format 'projects/{project_id}/locations/{location}'. In Cloud Backup and DR, locations map to Google Cloud regions, for example **us-central1**. To retrieve data sources for all locations, use "-" for the '{location}' value.

func (*ProjectsLocationsBackupVaultsDataSourcesService) Patch added in v0.188.0

Patch: Updates the settings of a DataSource.

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

func (*ProjectsLocationsBackupVaultsDataSourcesService) Remove added in v0.188.0

Remove: Deletes a DataSource. This is a custom method instead of a standard delete method because external clients will not delete DataSources except for BackupDR backup appliances.

- name: Name of the resource.

func (*ProjectsLocationsBackupVaultsDataSourcesService) SetInternalStatus added in v0.188.0

SetInternalStatus: Sets the internal status of a DataSource.

  • dataSource: The resource name of the instance, in the format 'projects/*/locations/*/backupVaults/*/dataSources/'.

type ProjectsLocationsBackupVaultsDataSourcesSetInternalStatusCall added in v0.188.0

type ProjectsLocationsBackupVaultsDataSourcesSetInternalStatusCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsBackupVaultsDataSourcesSetInternalStatusCall) Context added in v0.188.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsBackupVaultsDataSourcesSetInternalStatusCall) Do added in v0.188.0

Do executes the "backupdr.projects.locations.backupVaults.dataSources.setInternalStatus" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsBackupVaultsDataSourcesSetInternalStatusCall) Fields added in v0.188.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsBackupVaultsDataSourcesSetInternalStatusCall) Header added in v0.188.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsBackupVaultsDeleteCall added in v0.188.0

type ProjectsLocationsBackupVaultsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsBackupVaultsDeleteCall) AllowMissing added in v0.188.0

AllowMissing sets the optional parameter "allowMissing": If true and the BackupVault is not found, the request will succeed but no action will be taken.

func (*ProjectsLocationsBackupVaultsDeleteCall) Context added in v0.188.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsBackupVaultsDeleteCall) Do added in v0.188.0

Do executes the "backupdr.projects.locations.backupVaults.delete" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsBackupVaultsDeleteCall) Etag added in v0.188.0

Etag sets the optional parameter "etag": The current etag of the backup vault. If an etag is provided and does not match the current etag of the connection, deletion will be blocked.

func (*ProjectsLocationsBackupVaultsDeleteCall) Fields added in v0.188.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsBackupVaultsDeleteCall) Force added in v0.188.0

Force sets the optional parameter "force": If set to true, any data source from this backup vault will also be deleted.

func (*ProjectsLocationsBackupVaultsDeleteCall) Header added in v0.188.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsBackupVaultsDeleteCall) IgnoreBackupPlanReferences added in v0.202.0

func (c *ProjectsLocationsBackupVaultsDeleteCall) IgnoreBackupPlanReferences(ignoreBackupPlanReferences bool) *ProjectsLocationsBackupVaultsDeleteCall

IgnoreBackupPlanReferences sets the optional parameter "ignoreBackupPlanReferences": If set to true, backupvault deletion will proceed even if there are backup plans referencing the backupvault. The default is 'false'.

func (*ProjectsLocationsBackupVaultsDeleteCall) RequestId added in v0.188.0

RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

func (*ProjectsLocationsBackupVaultsDeleteCall) ValidateOnly added in v0.188.0

ValidateOnly sets the optional parameter "validateOnly": Only validate the request, but do not perform mutations. The default is 'false'.

type ProjectsLocationsBackupVaultsFetchUsableCall added in v0.188.0

type ProjectsLocationsBackupVaultsFetchUsableCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsBackupVaultsFetchUsableCall) Context added in v0.188.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsBackupVaultsFetchUsableCall) Do added in v0.188.0

Do executes the "backupdr.projects.locations.backupVaults.fetchUsable" call. Any non-2xx status code is an error. Response headers are in either *FetchUsableBackupVaultsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsBackupVaultsFetchUsableCall) Fields added in v0.188.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsBackupVaultsFetchUsableCall) Filter added in v0.188.0

Filter sets the optional parameter "filter": Filtering results.

func (*ProjectsLocationsBackupVaultsFetchUsableCall) Header added in v0.188.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsBackupVaultsFetchUsableCall) IfNoneMatch added in v0.188.0

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*ProjectsLocationsBackupVaultsFetchUsableCall) OrderBy added in v0.188.0

OrderBy sets the optional parameter "orderBy": Hint for how to order the results.

func (*ProjectsLocationsBackupVaultsFetchUsableCall) PageSize added in v0.188.0

PageSize sets the optional parameter "pageSize": Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.

func (*ProjectsLocationsBackupVaultsFetchUsableCall) PageToken added in v0.188.0

PageToken sets the optional parameter "pageToken": A token identifying a page of results the server should return.

func (*ProjectsLocationsBackupVaultsFetchUsableCall) Pages added in v0.188.0

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type ProjectsLocationsBackupVaultsGetCall added in v0.188.0

type ProjectsLocationsBackupVaultsGetCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsBackupVaultsGetCall) Context added in v0.188.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsBackupVaultsGetCall) Do added in v0.188.0

Do executes the "backupdr.projects.locations.backupVaults.get" call. Any non-2xx status code is an error. Response headers are in either *BackupVault.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsBackupVaultsGetCall) Fields added in v0.188.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsBackupVaultsGetCall) Header added in v0.188.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsBackupVaultsGetCall) IfNoneMatch added in v0.188.0

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*ProjectsLocationsBackupVaultsGetCall) View added in v0.198.0

View sets the optional parameter "view": Reserved for future use to provide a BASIC & FULL view of Backup Vault

Possible values:

"BACKUP_VAULT_VIEW_UNSPECIFIED" - If the value is not set, the default

'FULL' view is used.

"BACKUP_VAULT_VIEW_BASIC" - Includes basic data about the Backup Vault,

but not the full contents.

"BACKUP_VAULT_VIEW_FULL" - Includes all data about the Backup Vault. This

is the default value (for both ListBackupVaults and GetBackupVault).

type ProjectsLocationsBackupVaultsListCall added in v0.188.0

type ProjectsLocationsBackupVaultsListCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsBackupVaultsListCall) Context added in v0.188.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsBackupVaultsListCall) Do added in v0.188.0

Do executes the "backupdr.projects.locations.backupVaults.list" call. Any non-2xx status code is an error. Response headers are in either *ListBackupVaultsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsBackupVaultsListCall) Fields added in v0.188.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsBackupVaultsListCall) Filter added in v0.188.0

Filter sets the optional parameter "filter": Filtering results.

func (*ProjectsLocationsBackupVaultsListCall) Header added in v0.188.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsBackupVaultsListCall) IfNoneMatch added in v0.188.0

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*ProjectsLocationsBackupVaultsListCall) OrderBy added in v0.188.0

OrderBy sets the optional parameter "orderBy": Hint for how to order the results.

func (*ProjectsLocationsBackupVaultsListCall) PageSize added in v0.188.0

PageSize sets the optional parameter "pageSize": Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.

func (*ProjectsLocationsBackupVaultsListCall) PageToken added in v0.188.0

PageToken sets the optional parameter "pageToken": A token identifying a page of results the server should return.

func (*ProjectsLocationsBackupVaultsListCall) Pages added in v0.188.0

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

func (*ProjectsLocationsBackupVaultsListCall) View added in v0.198.0

View sets the optional parameter "view": Reserved for future use to provide a BASIC & FULL view of Backup Vault.

Possible values:

"BACKUP_VAULT_VIEW_UNSPECIFIED" - If the value is not set, the default

'FULL' view is used.

"BACKUP_VAULT_VIEW_BASIC" - Includes basic data about the Backup Vault,

but not the full contents.

"BACKUP_VAULT_VIEW_FULL" - Includes all data about the Backup Vault. This

is the default value (for both ListBackupVaults and GetBackupVault).

type ProjectsLocationsBackupVaultsPatchCall added in v0.188.0

type ProjectsLocationsBackupVaultsPatchCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsBackupVaultsPatchCall) Context added in v0.188.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsBackupVaultsPatchCall) Do added in v0.188.0

Do executes the "backupdr.projects.locations.backupVaults.patch" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsBackupVaultsPatchCall) Fields added in v0.188.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsBackupVaultsPatchCall) Force added in v0.190.0

Force sets the optional parameter "force": If set to true, will not check plan duration against backup vault enforcement duration.

func (*ProjectsLocationsBackupVaultsPatchCall) Header added in v0.188.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsBackupVaultsPatchCall) RequestId added in v0.188.0

RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

func (*ProjectsLocationsBackupVaultsPatchCall) UpdateMask added in v0.188.0

UpdateMask sets the optional parameter "updateMask": Required. Field mask is used to specify the fields to be overwritten in the BackupVault resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then the request will fail.

func (*ProjectsLocationsBackupVaultsPatchCall) ValidateOnly added in v0.188.0

ValidateOnly sets the optional parameter "validateOnly": Only validate the request, but do not perform mutations. The default is 'false'.

type ProjectsLocationsBackupVaultsService added in v0.155.0

type ProjectsLocationsBackupVaultsService struct {
	DataSources *ProjectsLocationsBackupVaultsDataSourcesService
	// contains filtered or unexported fields
}

func NewProjectsLocationsBackupVaultsService added in v0.155.0

func NewProjectsLocationsBackupVaultsService(s *Service) *ProjectsLocationsBackupVaultsService

func (*ProjectsLocationsBackupVaultsService) Create added in v0.188.0

Create: Creates a new BackupVault in a given project and location.

- parent: Value for parent.

func (*ProjectsLocationsBackupVaultsService) Delete added in v0.188.0

Delete: Deletes a BackupVault.

- name: Name of the resource.

func (*ProjectsLocationsBackupVaultsService) FetchUsable added in v0.188.0

FetchUsable: FetchUsableBackupVaults lists usable BackupVaults in a given project and location. Usable BackupVault are the ones that user has backupdr.backupVaults.get permission.

  • parent: The project and location for which to retrieve backupvault stores information, in the format 'projects/{project_id}/locations/{location}'. In Cloud Backup and DR, locations map to Google Cloud regions, for example **us-central1**. To retrieve backupvault stores for all locations, use "-" for the '{location}' value.

func (*ProjectsLocationsBackupVaultsService) Get added in v0.188.0

Get: Gets details of a BackupVault.

  • name: Name of the backupvault store resource name, in the format 'projects/{project_id}/locations/{location}/backupVaults/{resource_name}'.

func (*ProjectsLocationsBackupVaultsService) List added in v0.188.0

List: Lists BackupVaults in a given project and location.

  • parent: The project and location for which to retrieve backupvault stores information, in the format 'projects/{project_id}/locations/{location}'. In Cloud Backup and DR, locations map to Google Cloud regions, for example **us-central1**. To retrieve backupvault stores for all locations, use "-" for the '{location}' value.

func (*ProjectsLocationsBackupVaultsService) Patch added in v0.188.0

Patch: Updates the settings of a BackupVault.

  • name: Output only. Identifier. Name of the backup vault to create. It must have the format"projects/{project}/locations/{location}/backupVaults/{backupvault}" `. `{backupvault}` cannot be changed after creation. It must be between 3-63 characters long and must be unique within the project and location.

func (*ProjectsLocationsBackupVaultsService) TestIamPermissions added in v0.155.0

TestIamPermissions: Returns the caller's permissions on a BackupVault resource. A caller is not required to have Google IAM permission to make this request.

type ProjectsLocationsBackupVaultsTestIamPermissionsCall added in v0.155.0

type ProjectsLocationsBackupVaultsTestIamPermissionsCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsBackupVaultsTestIamPermissionsCall) Context added in v0.155.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsBackupVaultsTestIamPermissionsCall) Do added in v0.155.0

Do executes the "backupdr.projects.locations.backupVaults.testIamPermissions" call. Any non-2xx status code is an error. Response headers are in either *TestIamPermissionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsBackupVaultsTestIamPermissionsCall) Fields added in v0.155.0

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsBackupVaultsTestIamPermissionsCall) Header added in v0.155.0

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsGetCall

type ProjectsLocationsGetCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsGetCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsGetCall) Do

Do executes the "backupdr.projects.locations.get" call. Any non-2xx status code is an error. Response headers are in either *Location.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsGetCall) Header

func (c *ProjectsLocationsGetCall) Header() http.Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsGetCall) IfNoneMatch

func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

type ProjectsLocationsListCall

type ProjectsLocationsListCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsListCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsListCall) Do

Do executes the "backupdr.projects.locations.list" call. Any non-2xx status code is an error. Response headers are in either *ListLocationsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsListCall) Filter

Filter sets the optional parameter "filter": A filter to narrow down results to a preferred subset. The filtering language accepts strings like "displayName=tokyo", and is documented in more detail in AIP-160 (https://google.aip.dev/160).

func (*ProjectsLocationsListCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsListCall) IfNoneMatch

func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*ProjectsLocationsListCall) PageSize

PageSize sets the optional parameter "pageSize": The maximum number of results to return. If not set, the service selects a default.

func (*ProjectsLocationsListCall) PageToken

PageToken sets the optional parameter "pageToken": A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.

func (*ProjectsLocationsListCall) Pages

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type ProjectsLocationsManagementServersCreateCall

type ProjectsLocationsManagementServersCreateCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsManagementServersCreateCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsManagementServersCreateCall) Do

Do executes the "backupdr.projects.locations.managementServers.create" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsManagementServersCreateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsManagementServersCreateCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsManagementServersCreateCall) ManagementServerId

ManagementServerId sets the optional parameter "managementServerId": Required. The name of the management server to create. The name must be unique for the specified project and location.

func (*ProjectsLocationsManagementServersCreateCall) RequestId

RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

type ProjectsLocationsManagementServersDeleteCall

type ProjectsLocationsManagementServersDeleteCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsManagementServersDeleteCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsManagementServersDeleteCall) Do

Do executes the "backupdr.projects.locations.managementServers.delete" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsManagementServersDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsManagementServersDeleteCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsManagementServersDeleteCall) RequestId

RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

type ProjectsLocationsManagementServersGetCall

type ProjectsLocationsManagementServersGetCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsManagementServersGetCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsManagementServersGetCall) Do

Do executes the "backupdr.projects.locations.managementServers.get" call. Any non-2xx status code is an error. Response headers are in either *ManagementServer.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsManagementServersGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsManagementServersGetCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsManagementServersGetCall) IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

type ProjectsLocationsManagementServersGetIamPolicyCall

type ProjectsLocationsManagementServersGetIamPolicyCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsManagementServersGetIamPolicyCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsManagementServersGetIamPolicyCall) Do

Do executes the "backupdr.projects.locations.managementServers.getIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsManagementServersGetIamPolicyCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsManagementServersGetIamPolicyCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsManagementServersGetIamPolicyCall) IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*ProjectsLocationsManagementServersGetIamPolicyCall) OptionsRequestedPolicyVersion

func (c *ProjectsLocationsManagementServersGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsManagementServersGetIamPolicyCall

OptionsRequestedPolicyVersion sets the optional parameter "options.requestedPolicyVersion": The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).

type ProjectsLocationsManagementServersListCall

type ProjectsLocationsManagementServersListCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsManagementServersListCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsManagementServersListCall) Do

Do executes the "backupdr.projects.locations.managementServers.list" call. Any non-2xx status code is an error. Response headers are in either *ListManagementServersResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsManagementServersListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsManagementServersListCall) Filter

Filter sets the optional parameter "filter": Filtering results.

func (*ProjectsLocationsManagementServersListCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsManagementServersListCall) IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*ProjectsLocationsManagementServersListCall) OrderBy

OrderBy sets the optional parameter "orderBy": Hint for how to order the results.

func (*ProjectsLocationsManagementServersListCall) PageSize

PageSize sets the optional parameter "pageSize": Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.

func (*ProjectsLocationsManagementServersListCall) PageToken

PageToken sets the optional parameter "pageToken": A token identifying a page of results the server should return.

func (*ProjectsLocationsManagementServersListCall) Pages

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type ProjectsLocationsManagementServersService

type ProjectsLocationsManagementServersService struct {
	// contains filtered or unexported fields
}

func NewProjectsLocationsManagementServersService

func NewProjectsLocationsManagementServersService(s *Service) *ProjectsLocationsManagementServersService

func (*ProjectsLocationsManagementServersService) Create

Create: Creates a new ManagementServer in a given project and location.

  • parent: The management server project and location in the format 'projects/{project_id}/locations/{location}'. In Cloud Backup and DR locations map to Google Cloud regions, for example **us-central1**.

func (*ProjectsLocationsManagementServersService) Delete

Delete: Deletes a single ManagementServer.

- name: Name of the resource.

func (*ProjectsLocationsManagementServersService) Get

Get: Gets details of a single ManagementServer.

  • name: Name of the management server resource name, in the format 'projects/{project_id}/locations/{location}/managementServers/{resource_nam e}'.

func (*ProjectsLocationsManagementServersService) GetIamPolicy

GetIamPolicy: Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.

func (*ProjectsLocationsManagementServersService) List

List: Lists ManagementServers in a given project and location.

  • parent: The project and location for which to retrieve management servers information, in the format 'projects/{project_id}/locations/{location}'. In Cloud BackupDR, locations map to Google Cloud regions, for example **us-central1**. To retrieve management servers for all locations, use "-" for the '{location}' value.

func (*ProjectsLocationsManagementServersService) SetIamPolicy

SetIamPolicy: Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.

func (*ProjectsLocationsManagementServersService) TestIamPermissions

TestIamPermissions: Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.

type ProjectsLocationsManagementServersSetIamPolicyCall

type ProjectsLocationsManagementServersSetIamPolicyCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsManagementServersSetIamPolicyCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsManagementServersSetIamPolicyCall) Do

Do executes the "backupdr.projects.locations.managementServers.setIamPolicy" call. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsManagementServersSetIamPolicyCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsManagementServersSetIamPolicyCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsManagementServersTestIamPermissionsCall

type ProjectsLocationsManagementServersTestIamPermissionsCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsManagementServersTestIamPermissionsCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsManagementServersTestIamPermissionsCall) Do

Do executes the "backupdr.projects.locations.managementServers.testIamPermissions" call. Any non-2xx status code is an error. Response headers are in either *TestIamPermissionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsManagementServersTestIamPermissionsCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsManagementServersTestIamPermissionsCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsOperationsCancelCall

type ProjectsLocationsOperationsCancelCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsOperationsCancelCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsOperationsCancelCall) Do

Do executes the "backupdr.projects.locations.operations.cancel" call. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsOperationsCancelCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsOperationsCancelCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsOperationsDeleteCall

type ProjectsLocationsOperationsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsOperationsDeleteCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsOperationsDeleteCall) Do

Do executes the "backupdr.projects.locations.operations.delete" call. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsOperationsDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsOperationsDeleteCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

type ProjectsLocationsOperationsGetCall

type ProjectsLocationsOperationsGetCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsOperationsGetCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsOperationsGetCall) Do

Do executes the "backupdr.projects.locations.operations.get" call. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsOperationsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsOperationsGetCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsOperationsGetCall) IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

type ProjectsLocationsOperationsListCall

type ProjectsLocationsOperationsListCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsLocationsOperationsListCall) Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsOperationsListCall) Do

Do executes the "backupdr.projects.locations.operations.list" call. Any non-2xx status code is an error. Response headers are in either *ListOperationsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsOperationsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.

func (*ProjectsLocationsOperationsListCall) Filter

Filter sets the optional parameter "filter": The standard list filter.

func (*ProjectsLocationsOperationsListCall) Header

Header returns a http.Header that can be modified by the caller to add headers to the request.

func (*ProjectsLocationsOperationsListCall) IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.

func (*ProjectsLocationsOperationsListCall) PageSize

PageSize sets the optional parameter "pageSize": The standard list page size.

func (*ProjectsLocationsOperationsListCall) PageToken

PageToken sets the optional parameter "pageToken": The standard list page token.

func (*ProjectsLocationsOperationsListCall) Pages

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type ProjectsLocationsOperationsService

type ProjectsLocationsOperationsService struct {
	// contains filtered or unexported fields
}

func NewProjectsLocationsOperationsService

func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService

func (*ProjectsLocationsOperationsService) Cancel

Cancel: Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.

- name: The name of the operation resource to be cancelled.

func (*ProjectsLocationsOperationsService) Delete

Delete: Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.

- name: The name of the operation resource to be deleted.

func (*ProjectsLocationsOperationsService) Get

Get: Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.

- name: The name of the operation resource.

func (*ProjectsLocationsOperationsService) List

List: Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.

- name: The name of the operation's parent resource.

type ProjectsLocationsService

type ProjectsLocationsService struct {
	BackupPlanAssociations *ProjectsLocationsBackupPlanAssociationsService

	BackupPlans *ProjectsLocationsBackupPlansService

	BackupVaults *ProjectsLocationsBackupVaultsService

	ManagementServers *ProjectsLocationsManagementServersService

	Operations *ProjectsLocationsOperationsService
	// contains filtered or unexported fields
}

func NewProjectsLocationsService

func NewProjectsLocationsService(s *Service) *ProjectsLocationsService

func (*ProjectsLocationsService) Get

Get: Gets information about a location.

- name: Resource name for the location.

func (*ProjectsLocationsService) List

List: Lists information about the supported locations for this service.

- name: The resource that owns the locations collection, if applicable.

type ProjectsService

type ProjectsService struct {
	Locations *ProjectsLocationsService
	// contains filtered or unexported fields
}

func NewProjectsService

func NewProjectsService(s *Service) *ProjectsService

type RegionalMigDistributionPolicy added in v0.191.0

type RegionalMigDistributionPolicy struct {
	// TargetShape: The shape in which the group converges around distribution of
	// resources. Instance of proto2 enum
	TargetShape int64 `json:"targetShape,omitempty"`
	// Zones: Cloud zones used by regional MIG to create instances.
	Zones []*ZoneConfiguration `json:"zones,omitempty"`
	// ForceSendFields is a list of field names (e.g. "TargetShape") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "TargetShape") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

RegionalMigDistributionPolicy: To be used for specifying the intended distribution of regional compute.googleapis.com/InstanceGroupManager instances

func (RegionalMigDistributionPolicy) MarshalJSON added in v0.191.0

func (s RegionalMigDistributionPolicy) MarshalJSON() ([]byte, error)

type RemoveDataSourceRequest added in v0.188.0

type RemoveDataSourceRequest struct {
	// RequestId: Optional. An optional request ID to identify requests. Specify a
	// unique request ID so that if you must retry your request, the server will
	// know to ignore the request if it has already been completed. The server will
	// guarantee that for at least 60 minutes after the first request. For example,
	// consider a situation where you make an initial request and the request times
	// out. If you make the request again with the same request ID, the server can
	// check if original operation with the same request ID was received, and if
	// so, will ignore the second request. This prevents clients from accidentally
	// creating duplicate commitments. The request ID must be a valid UUID with the
	// exception that zero UUID is not supported
	// (00000000-0000-0000-0000-000000000000).
	RequestId string `json:"requestId,omitempty"`
	// ForceSendFields is a list of field names (e.g. "RequestId") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "RequestId") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

RemoveDataSourceRequest: Message for deleting a DataSource.

func (RemoveDataSourceRequest) MarshalJSON added in v0.188.0

func (s RemoveDataSourceRequest) MarshalJSON() ([]byte, error)

type RequirementOverride added in v0.191.0

type RequirementOverride struct {
	// Possible values:
	//   "ZI_UNSPECIFIED"
	//   "ZI_UNKNOWN" - To be used if tracking is not available
	//   "ZI_NOT_REQUIRED"
	//   "ZI_PREFERRED"
	//   "ZI_REQUIRED"
	ZiOverride string `json:"ziOverride,omitempty"`
	// Possible values:
	//   "ZS_UNSPECIFIED"
	//   "ZS_UNKNOWN" - To be used if tracking is not available
	//   "ZS_NOT_REQUIRED"
	//   "ZS_REQUIRED"
	ZsOverride string `json:"zsOverride,omitempty"`
	// ForceSendFields is a list of field names (e.g. "ZiOverride") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "ZiOverride") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (RequirementOverride) MarshalJSON added in v0.191.0

func (s RequirementOverride) MarshalJSON() ([]byte, error)

type RestoreBackupRequest added in v0.192.0

type RestoreBackupRequest struct {
	// ComputeInstanceRestoreProperties: Compute Engine instance properties to be
	// overridden during restore.
	ComputeInstanceRestoreProperties *ComputeInstanceRestoreProperties `json:"computeInstanceRestoreProperties,omitempty"`
	// ComputeInstanceTargetEnvironment: Compute Engine target environment to be
	// used during restore.
	ComputeInstanceTargetEnvironment *ComputeInstanceTargetEnvironment `json:"computeInstanceTargetEnvironment,omitempty"`
	// RequestId: Optional. An optional request ID to identify requests. Specify a
	// unique request ID so that if you must retry your request, the server will
	// know to ignore the request if it has already been completed. The server will
	// guarantee that for at least 60 minutes after the first request. For example,
	// consider a situation where you make an initial request and the request times
	// out. If you make the request again with the same request ID, the server can
	// check if original operation with the same request ID was received, and if
	// so, will ignore the second request. This prevents clients from accidentally
	// creating duplicate commitments. The request ID must be a valid UUID with the
	// exception that zero UUID is not supported
	// (00000000-0000-0000-0000-000000000000).
	RequestId string `json:"requestId,omitempty"`
	// ForceSendFields is a list of field names (e.g.
	// "ComputeInstanceRestoreProperties") to unconditionally include in API
	// requests. By default, fields with empty or default values are omitted from
	// API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g.
	// "ComputeInstanceRestoreProperties") to include in API requests with the JSON
	// null value. By default, fields with empty values are omitted from API
	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields for
	// more details.
	NullFields []string `json:"-"`
}

RestoreBackupRequest: Request message for restoring from a Backup.

func (RestoreBackupRequest) MarshalJSON added in v0.192.0

func (s RestoreBackupRequest) MarshalJSON() ([]byte, error)

type RestoreBackupResponse added in v0.200.0

type RestoreBackupResponse struct {
	// TargetResource: Details of the target resource created/modified as part of
	// restore.
	TargetResource *TargetResource `json:"targetResource,omitempty"`
	// ForceSendFields is a list of field names (e.g. "TargetResource") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "TargetResource") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

RestoreBackupResponse: Response message for restoring from a Backup.

func (RestoreBackupResponse) MarshalJSON added in v0.200.0

func (s RestoreBackupResponse) MarshalJSON() ([]byte, error)

type RuleConfigInfo added in v0.192.0

type RuleConfigInfo struct {
	// LastBackupError: Output only. Output Only. google.rpc.Status object to store
	// the last backup error.
	LastBackupError *Status `json:"lastBackupError,omitempty"`
	// LastBackupState: Output only. The last backup state for rule.
	//
	// Possible values:
	//   "LAST_BACKUP_STATE_UNSPECIFIED" - State not set.
	//   "FIRST_BACKUP_PENDING" - The first backup is pending.
	//   "PERMISSION_DENIED" - The most recent backup could not be run/failed
	// because of the lack of permissions.
	//   "SUCCEEDED" - The last backup operation succeeded.
	//   "FAILED" - The last backup operation failed.
	LastBackupState string `json:"lastBackupState,omitempty"`
	// LastSuccessfulBackupConsistencyTime: Output only. The point in time when the
	// last successful backup was captured from the source.
	LastSuccessfulBackupConsistencyTime string `json:"lastSuccessfulBackupConsistencyTime,omitempty"`
	// RuleId: Output only. Output Only. Backup Rule id fetched from backup plan.
	RuleId string `json:"ruleId,omitempty"`
	// ForceSendFields is a list of field names (e.g. "LastBackupError") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "LastBackupError") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

RuleConfigInfo: Message for rules config info.

func (RuleConfigInfo) MarshalJSON added in v0.192.0

func (s RuleConfigInfo) MarshalJSON() ([]byte, error)

type Scheduling added in v0.188.0

type Scheduling struct {
	// AutomaticRestart: Optional. Specifies whether the instance should be
	// automatically restarted if it is terminated by Compute Engine (not
	// terminated by a user).
	AutomaticRestart bool `json:"automaticRestart,omitempty"`
	// InstanceTerminationAction: Optional. Specifies the termination action for
	// the instance.
	//
	// Possible values:
	//   "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.
	InstanceTerminationAction string `json:"instanceTerminationAction,omitempty"`
	// LocalSsdRecoveryTimeout: 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.
	LocalSsdRecoveryTimeout *SchedulingDuration `json:"localSsdRecoveryTimeout,omitempty"`
	// MinNodeCpus: Optional. The minimum number of virtual CPUs this instance will
	// consume when running on a sole-tenant node.
	MinNodeCpus int64 `json:"minNodeCpus,omitempty"`
	// NodeAffinities: Optional. A set of node affinity and anti-affinity
	// configurations. Overrides reservationAffinity.
	NodeAffinities []*NodeAffinity `json:"nodeAffinities,omitempty"`
	// OnHostMaintenance: Optional. Defines the maintenance behavior for this
	// instance.
	//
	// Possible values:
	//   "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.
	OnHostMaintenance string `json:"onHostMaintenance,omitempty"`
	// Preemptible: Optional. Defines whether the instance is preemptible.
	Preemptible bool `json:"preemptible,omitempty"`
	// ProvisioningModel: Optional. Specifies the provisioning model of the
	// instance.
	//
	// Possible values:
	//   "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.
	ProvisioningModel string `json:"provisioningModel,omitempty"`
	// ForceSendFields is a list of field names (e.g. "AutomaticRestart") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "AutomaticRestart") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Scheduling: Sets the scheduling options for an Instance.

func (Scheduling) MarshalJSON added in v0.188.0

func (s Scheduling) MarshalJSON() ([]byte, error)

type SchedulingDuration added in v0.188.0

type SchedulingDuration struct {
	// Nanos: Optional. Span of time that's a fraction of a second at nanosecond
	// resolution.
	Nanos int64 `json:"nanos,omitempty"`
	// Seconds: Optional. Span of time at a resolution of a second.
	Seconds int64 `json:"seconds,omitempty,string"`
	// ForceSendFields is a list of field names (e.g. "Nanos") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Nanos") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

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.

func (SchedulingDuration) MarshalJSON added in v0.188.0

func (s SchedulingDuration) MarshalJSON() ([]byte, error)

type Service

type Service struct {
	BasePath  string // API endpoint base URL
	UserAgent string // optional additional User-Agent fragment

	Projects *ProjectsService
	// contains filtered or unexported fields
}

func New deprecated

func New(client *http.Client) (*Service, error)

New creates a new Service. It uses the provided http.Client for requests.

Deprecated: please use NewService instead. To provide a custom HTTP client, use option.WithHTTPClient. If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.

func NewService

func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error)

NewService creates a new Service.

type ServiceAccount added in v0.188.0

type ServiceAccount struct {
	// Email: Optional. Email address of the service account.
	Email string `json:"email,omitempty"`
	// Scopes: Optional. The list of scopes to be made available for this service
	// account.
	Scopes []string `json:"scopes,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Email") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Email") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

ServiceAccount: A service account.

func (ServiceAccount) MarshalJSON added in v0.188.0

func (s ServiceAccount) MarshalJSON() ([]byte, error)

type ServiceLockInfo added in v0.188.0

type ServiceLockInfo struct {
	// Operation: Output only. The name of the operation that created this lock.
	// The lock will automatically be released when the operation completes.
	Operation string `json:"operation,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Operation") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Operation") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

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

func (ServiceLockInfo) MarshalJSON added in v0.188.0

func (s ServiceLockInfo) MarshalJSON() ([]byte, error)

type SetIamPolicyRequest

type SetIamPolicyRequest struct {
	// Policy: REQUIRED: The complete policy to be applied to the `resource`. The
	// size of the policy is limited to a few 10s of KB. An empty policy is a valid
	// policy but certain Google Cloud services (such as Projects) might reject
	// them.
	Policy *Policy `json:"policy,omitempty"`
	// UpdateMask: OPTIONAL: A FieldMask specifying which fields of the policy to
	// modify. Only the fields in the mask will be modified. If no mask is
	// provided, the following default mask is used: `paths: "bindings, etag"
	UpdateMask string `json:"updateMask,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Policy") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Policy") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

SetIamPolicyRequest: Request message for `SetIamPolicy` method.

func (SetIamPolicyRequest) MarshalJSON

func (s SetIamPolicyRequest) MarshalJSON() ([]byte, error)

type SetInternalStatusRequest added in v0.188.0

type SetInternalStatusRequest struct {
	// BackupConfigState: Required. Output only. The new BackupConfigState to set
	// for the DataSource.
	//
	// Possible values:
	//   "BACKUP_CONFIG_STATE_UNSPECIFIED" - The possible states of backup
	// configuration. Status not set.
	//   "ACTIVE" - The data source is actively protected (i.e. there is a
	// BackupPlanAssociation or Appliance SLA pointing to it)
	//   "PASSIVE" - The data source is no longer protected (but may have backups
	// under it)
	BackupConfigState string `json:"backupConfigState,omitempty"`
	// RequestId: Optional. An optional request ID to identify requests. Specify a
	// unique request ID so that if you must retry your request, the server will
	// know to ignore the request if it has already been completed. The server will
	// guarantee that for at least 60 minutes after the first request. The request
	// ID must be a valid UUID with the exception that zero UUID is not supported
	// (00000000-0000-0000-0000-000000000000).
	RequestId string `json:"requestId,omitempty"`
	// Value: Required. The value required for this method to work. This field must
	// be the 32-byte SHA256 hash of the DataSourceID. The DataSourceID used here
	// is only the final piece of the fully qualified resource path for this
	// DataSource (i.e. the part after '.../dataSources/'). This field exists to
	// make this method difficult to call since it is intended for use only by
	// Backup Appliances.
	Value string `json:"value,omitempty"`
	// ForceSendFields is a list of field names (e.g. "BackupConfigState") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "BackupConfigState") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

SetInternalStatusRequest: Request message for SetStatusInternal method.

func (SetInternalStatusRequest) MarshalJSON added in v0.188.0

func (s SetInternalStatusRequest) MarshalJSON() ([]byte, error)

type SetInternalStatusResponse added in v0.200.0

type SetInternalStatusResponse struct {
}

SetInternalStatusResponse: Response message from SetStatusInternal method.

type SpannerLocation added in v0.191.0

type SpannerLocation struct {
	// BackupName: Set of backups used by the resource with name in the same format
	// as what is available at http://table/spanner_automon.backup_metadata
	BackupName []string `json:"backupName,omitempty"`
	// DbName: Set of databases used by the resource in format /span//
	DbName []string `json:"dbName,omitempty"`
	// ForceSendFields is a list of field names (e.g. "BackupName") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "BackupName") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (SpannerLocation) MarshalJSON added in v0.191.0

func (s SpannerLocation) MarshalJSON() ([]byte, error)

type StandardSchedule added in v0.192.0

type StandardSchedule struct {
	// BackupWindow: Required. A BackupWindow defines the window of day during
	// which backup jobs will run. Jobs are queued at the beginning of the window
	// and will be marked as `NOT_RUN` if they do not start by the end of the
	// window. Note: running jobs will not be cancelled at the end of the window.
	BackupWindow *BackupWindow `json:"backupWindow,omitempty"`
	// DaysOfMonth: Optional. Specifies days of months like 1, 5, or 14 on which
	// jobs will run. Values for `days_of_month` are only applicable for
	// `recurrence_type`, `MONTHLY` and `YEARLY`. A validation error will occur if
	// other values are supplied.
	DaysOfMonth []int64 `json:"daysOfMonth,omitempty"`
	// DaysOfWeek: Optional. Specifies days of week like, MONDAY or TUESDAY, on
	// which jobs will run. This is required for `recurrence_type`, `WEEKLY` and is
	// not applicable otherwise. A validation error will occur if a value is
	// supplied and `recurrence_type` is not `WEEKLY`.
	//
	// Possible values:
	//   "DAY_OF_WEEK_UNSPECIFIED" - The day of the week is unspecified.
	//   "MONDAY" - Monday
	//   "TUESDAY" - Tuesday
	//   "WEDNESDAY" - Wednesday
	//   "THURSDAY" - Thursday
	//   "FRIDAY" - Friday
	//   "SATURDAY" - Saturday
	//   "SUNDAY" - Sunday
	DaysOfWeek []string `json:"daysOfWeek,omitempty"`
	// HourlyFrequency: Optional. Specifies frequency for hourly backups. A hourly
	// frequency of 2 means jobs will run every 2 hours from start time till end
	// time defined. This is required for `recurrence_type`, `HOURLY` and is not
	// applicable otherwise. A validation error will occur if a value is supplied
	// and `recurrence_type` is not `HOURLY`. Value of hourly frequency should be
	// between 6 and 23. Reason for limit : We found that there is bandwidth
	// limitation of 3GB/S for GMI while taking a backup and 5GB/S while doing a
	// restore. Given the amount of parallel backups and restore we are targeting,
	// this will potentially take the backup time to mins and hours (in worst case
	// scenario).
	HourlyFrequency int64 `json:"hourlyFrequency,omitempty"`
	// Months: Optional. Specifies the months of year, like `FEBRUARY` and/or
	// `MAY`, on which jobs will run. This field is only applicable when
	// `recurrence_type` is `YEARLY`. A validation error will occur if other values
	// are supplied.
	//
	// Possible values:
	//   "MONTH_UNSPECIFIED" - The unspecified month.
	//   "JANUARY" - The month of January.
	//   "FEBRUARY" - The month of February.
	//   "MARCH" - The month of March.
	//   "APRIL" - The month of April.
	//   "MAY" - The month of May.
	//   "JUNE" - The month of June.
	//   "JULY" - The month of July.
	//   "AUGUST" - The month of August.
	//   "SEPTEMBER" - The month of September.
	//   "OCTOBER" - The month of October.
	//   "NOVEMBER" - The month of November.
	//   "DECEMBER" - The month of December.
	Months []string `json:"months,omitempty"`
	// RecurrenceType: Required. Specifies the `RecurrenceType` for the schedule.
	//
	// Possible values:
	//   "RECURRENCE_TYPE_UNSPECIFIED" - recurrence type not set
	//   "HOURLY" - The `BackupRule` is to be applied hourly.
	//   "DAILY" - The `BackupRule` is to be applied daily.
	//   "WEEKLY" - The `BackupRule` is to be applied weekly.
	//   "MONTHLY" - The `BackupRule` is to be applied monthly.
	//   "YEARLY" - The `BackupRule` is to be applied yearly.
	RecurrenceType string `json:"recurrenceType,omitempty"`
	// TimeZone: Required. The time zone to be used when interpreting the schedule.
	// The value of this field must be a time zone name from the IANA tz database.
	// See https://en.wikipedia.org/wiki/List_of_tz_database_time_zones for the
	// list of valid timezone names. For e.g., Europe/Paris.
	TimeZone string `json:"timeZone,omitempty"`
	// WeekDayOfMonth: Optional. Specifies a week day of the month like, FIRST
	// SUNDAY or LAST MONDAY, on which jobs will run. This will be specified by two
	// fields in `WeekDayOfMonth`, one for the day, e.g. `MONDAY`, and one for the
	// week, e.g. `LAST`. This field is only applicable for `recurrence_type`,
	// `MONTHLY` and `YEARLY`. A validation error will occur if other values are
	// supplied.
	WeekDayOfMonth *WeekDayOfMonth `json:"weekDayOfMonth,omitempty"`
	// ForceSendFields is a list of field names (e.g. "BackupWindow") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "BackupWindow") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

StandardSchedule: `StandardSchedule` defines a schedule that run within the confines of a defined window of days. We can define recurrence type for schedule as HOURLY, DAILY, WEEKLY, MONTHLY or YEARLY.

func (StandardSchedule) MarshalJSON added in v0.192.0

func (s StandardSchedule) MarshalJSON() ([]byte, error)

type Status

type Status struct {
	// Code: The status code, which should be an enum value of google.rpc.Code.
	Code int64 `json:"code,omitempty"`
	// Details: A list of messages that carry the error details. There is a common
	// set of message types for APIs to use.
	Details []googleapi.RawMessage `json:"details,omitempty"`
	// Message: A developer-facing error message, which should be in English. Any
	// user-facing error message should be localized and sent in the
	// google.rpc.Status.details field, or localized by the client.
	Message string `json:"message,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Code") to include in API requests
	// with the JSON null value. By default, fields with empty values are omitted
	// from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Status: The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors).

func (Status) MarshalJSON

func (s Status) MarshalJSON() ([]byte, error)

type Tags added in v0.188.0

type Tags struct {
	// Items: Optional. An array of tags. Each tag must be 1-63 characters long,
	// and comply with RFC1035.
	Items []string `json:"items,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Items") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Items") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

Tags: A set of instance tags.

func (Tags) MarshalJSON added in v0.188.0

func (s Tags) MarshalJSON() ([]byte, error)

type TargetResource added in v0.200.0

type TargetResource struct {
	// GcpResource: Details of the native Google Cloud resource created as part of
	// restore.
	GcpResource *GcpResource `json:"gcpResource,omitempty"`
	// ForceSendFields is a list of field names (e.g. "GcpResource") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "GcpResource") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

TargetResource: Details of the target resource created/modified as part of restore.

func (TargetResource) MarshalJSON added in v0.200.0

func (s TargetResource) MarshalJSON() ([]byte, error)

type TenantProjectProxy added in v0.191.0

type TenantProjectProxy struct {
	ProjectNumbers []string `json:"projectNumbers,omitempty"`
	// ForceSendFields is a list of field names (e.g. "ProjectNumbers") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "ProjectNumbers") to include in
	// API requests with the JSON null value. By default, fields with empty values
	// are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (TenantProjectProxy) MarshalJSON added in v0.191.0

func (s TenantProjectProxy) MarshalJSON() ([]byte, error)

type TestIamPermissionsRequest

type TestIamPermissionsRequest struct {
	// Permissions: The set of permissions to check for the `resource`. Permissions
	// with wildcards (such as `*` or `storage.*`) are not allowed. For more
	// information see IAM Overview
	// (https://cloud.google.com/iam/docs/overview#permissions).
	Permissions []string `json:"permissions,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Permissions") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Permissions") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

TestIamPermissionsRequest: Request message for `TestIamPermissions` method.

func (TestIamPermissionsRequest) MarshalJSON

func (s TestIamPermissionsRequest) MarshalJSON() ([]byte, error)

type TestIamPermissionsResponse

type TestIamPermissionsResponse struct {
	// Permissions: A subset of `TestPermissionsRequest.permissions` that the
	// caller is allowed.
	Permissions []string `json:"permissions,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
	// ForceSendFields is a list of field names (e.g. "Permissions") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Permissions") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

TestIamPermissionsResponse: Response message for `TestIamPermissions` method.

func (TestIamPermissionsResponse) MarshalJSON

func (s TestIamPermissionsResponse) MarshalJSON() ([]byte, error)

type TriggerBackupRequest added in v0.192.0

type TriggerBackupRequest struct {
	// RequestId: Optional. An optional request ID to identify requests. Specify a
	// unique request ID so that if you must retry your request, the server will
	// know to ignore the request if it has already been completed. The server will
	// guarantee that for at least 60 minutes after the first request. For example,
	// consider a situation where you make an initial request and the request times
	// out. If you make the request again with the same request ID, the server can
	// check if original operation with the same request ID was received, and if
	// so, will ignore the second request. This prevents clients from accidentally
	// creating duplicate commitments. The request ID must be a valid UUID with the
	// exception that zero UUID is not supported
	// (00000000-0000-0000-0000-000000000000).
	RequestId string `json:"requestId,omitempty"`
	// RuleId: Required. backup rule_id for which a backup needs to be triggered.
	RuleId string `json:"ruleId,omitempty"`
	// ForceSendFields is a list of field names (e.g. "RequestId") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "RequestId") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

TriggerBackupRequest: Request message for triggering a backup.

func (TriggerBackupRequest) MarshalJSON added in v0.192.0

func (s TriggerBackupRequest) MarshalJSON() ([]byte, error)

type WeekDayOfMonth added in v0.192.0

type WeekDayOfMonth struct {
	// DayOfWeek: Required. Specifies the day of the week.
	//
	// Possible values:
	//   "DAY_OF_WEEK_UNSPECIFIED" - The day of the week is unspecified.
	//   "MONDAY" - Monday
	//   "TUESDAY" - Tuesday
	//   "WEDNESDAY" - Wednesday
	//   "THURSDAY" - Thursday
	//   "FRIDAY" - Friday
	//   "SATURDAY" - Saturday
	//   "SUNDAY" - Sunday
	DayOfWeek string `json:"dayOfWeek,omitempty"`
	// WeekOfMonth: Required. Specifies the week of the month.
	//
	// Possible values:
	//   "WEEK_OF_MONTH_UNSPECIFIED" - The zero value. Do not use.
	//   "FIRST" - The first week of the month.
	//   "SECOND" - The second week of the month.
	//   "THIRD" - The third week of the month.
	//   "FOURTH" - The fourth week of the month.
	//   "LAST" - The last week of the month.
	WeekOfMonth string `json:"weekOfMonth,omitempty"`
	// ForceSendFields is a list of field names (e.g. "DayOfWeek") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "DayOfWeek") to include in API
	// requests with the JSON null value. By default, fields with empty values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

WeekDayOfMonth: `WeekDayOfMonth` defines the week day of the month on which the backups will run. The message combines a `WeekOfMonth` and `DayOfWeek` to produce values like `FIRST`/`MONDAY` or `LAST`/`FRIDAY`.

func (WeekDayOfMonth) MarshalJSON added in v0.192.0

func (s WeekDayOfMonth) MarshalJSON() ([]byte, error)

type WorkforceIdentityBasedManagementURI added in v0.151.0

type WorkforceIdentityBasedManagementURI struct {
	// FirstPartyManagementUri: Output only. First party Management URI for Google
	// Identities.
	FirstPartyManagementUri string `json:"firstPartyManagementUri,omitempty"`
	// ThirdPartyManagementUri: Output only. Third party Management URI for
	// External Identity Providers.
	ThirdPartyManagementUri string `json:"thirdPartyManagementUri,omitempty"`
	// ForceSendFields is a list of field names (e.g. "FirstPartyManagementUri") to
	// unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "FirstPartyManagementUri") to
	// include in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

WorkforceIdentityBasedManagementURI: ManagementURI depending on the Workforce Identity i.e. either 1p or 3p.

func (WorkforceIdentityBasedManagementURI) MarshalJSON added in v0.151.0

func (s WorkforceIdentityBasedManagementURI) MarshalJSON() ([]byte, error)

type WorkforceIdentityBasedOAuth2ClientID added in v0.151.0

type WorkforceIdentityBasedOAuth2ClientID struct {
	// FirstPartyOauth2ClientId: Output only. First party OAuth Client ID for
	// Google Identities.
	FirstPartyOauth2ClientId string `json:"firstPartyOauth2ClientId,omitempty"`
	// ThirdPartyOauth2ClientId: Output only. Third party OAuth Client ID for
	// External Identity Providers.
	ThirdPartyOauth2ClientId string `json:"thirdPartyOauth2ClientId,omitempty"`
	// ForceSendFields is a list of field names (e.g. "FirstPartyOauth2ClientId")
	// to unconditionally include in API requests. By default, fields with empty or
	// default values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "FirstPartyOauth2ClientId") to
	// include in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

WorkforceIdentityBasedOAuth2ClientID: OAuth Client ID depending on the Workforce Identity i.e. either 1p or 3p,

func (WorkforceIdentityBasedOAuth2ClientID) MarshalJSON added in v0.151.0

func (s WorkforceIdentityBasedOAuth2ClientID) MarshalJSON() ([]byte, error)

type ZoneConfiguration added in v0.191.0

type ZoneConfiguration struct {
	Zone string `json:"zone,omitempty"`
	// ForceSendFields is a list of field names (e.g. "Zone") to unconditionally
	// include in API requests. By default, fields with empty or default values are
	// omitted from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
	// details.
	ForceSendFields []string `json:"-"`
	// NullFields is a list of field names (e.g. "Zone") to include in API requests
	// with the JSON null value. By default, fields with empty values are omitted
	// from API requests. See
	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
	NullFields []string `json:"-"`
}

func (ZoneConfiguration) MarshalJSON added in v0.191.0

func (s ZoneConfiguration) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL