common

package
v4.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Module dataprotection.v4.common of Nutanix Virtual Machine Management APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupType added in v4.1.1

type BackupType int

The backup type specifies the criteria for identifying the files to be backed up. This property should be specified to the application-consistent recovery points for Windows VMs/agents. The following backup types are supported for the application-consistent recovery points: 1. FULL_BACKUP - All files are backed up irrespective of their last backup date/time and state. Also, this backup type updates the backup history of every file that was involved in the recovery point. 2. COPY_BACKUP - All files are backed up regardless of their last backup date/time and state. However, this backup type does not update the backup history of individual files involved in the recovery point.

const (
	BACKUPTYPE_UNKNOWN     BackupType = 0
	BACKUPTYPE_REDACTED    BackupType = 1
	BACKUPTYPE_FULL_BACKUP BackupType = 2
	BACKUPTYPE_COPY_BACKUP BackupType = 3
)

func (BackupType) GetName added in v4.1.1

func (e BackupType) GetName() string

Returns the name of the enum

func (*BackupType) MarshalJSON added in v4.1.1

func (e *BackupType) MarshalJSON() ([]byte, error)

func (BackupType) Ref added in v4.1.1

func (e BackupType) Ref() *BackupType

func (*BackupType) UnmarshalJSON added in v4.1.1

func (e *BackupType) UnmarshalJSON(b []byte) error

type BaseRecoveryPoint

type BaseRecoveryPoint struct {
	ObjectType_ *string `json:"$objectType,omitempty"`

	Reserved_ map[string]interface{} `json:"$reserved,omitempty"`

	UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"`
	/*
	  The UTC date and time in ISO-8601 format when the Recovery point is created.
	*/
	CreationTime *time.Time `json:"creationTime,omitempty"`
	/*
	  The UTC date and time in ISO-8601 format when the current Recovery point expires and will be garbage collected.
	*/
	ExpirationTime *time.Time `json:"expirationTime,omitempty"`
	/*
	  A globally unique identifier of an instance that is suitable for external consumption.
	*/
	ExtId *string `json:"extId,omitempty"`
	/*
	  A HATEOAS style link for the response.  Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
	*/
	Links []import1.ApiLink `json:"links,omitempty"`
	/*
	  Location agnostic identifier of the Recovery point.
	*/
	LocationAgnosticId *string `json:"locationAgnosticId,omitempty"`
	/*
	  The name of the Recovery point.
	*/
	Name *string `json:"name,omitempty"`

	RecoveryPointType *RecoveryPointType `json:"recoveryPointType,omitempty"`

	Status *RecoveryPointStatus `json:"status,omitempty"`
	/*
	  A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this ID to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server).
	*/
	TenantId *string `json:"tenantId,omitempty"`
}

A model that represents common properties of a Recovery point resources

func NewBaseRecoveryPoint

func NewBaseRecoveryPoint() *BaseRecoveryPoint

func (*BaseRecoveryPoint) MarshalJSON added in v4.1.1

func (p *BaseRecoveryPoint) MarshalJSON() ([]byte, error)

func (*BaseRecoveryPoint) UnmarshalJSON added in v4.1.1

func (p *BaseRecoveryPoint) UnmarshalJSON(b []byte) error

type BaseVmRecoveryPoint added in v4.1.1

type BaseVmRecoveryPoint struct {
	ObjectType_ *string `json:"$objectType,omitempty"`

	Reserved_ map[string]interface{} `json:"$reserved,omitempty"`

	UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"`
	/*

	 */
	ApplicationConsistentPropertiesItemDiscriminator_ *string `json:"$applicationConsistentPropertiesItemDiscriminator,omitempty"`
	/*
	  User-defined application-consistent properties for the recovery point.
	*/
	ApplicationConsistentProperties *OneOfBaseVmRecoveryPointApplicationConsistentProperties `json:"applicationConsistentProperties,omitempty"`
	/*
	  External identifier of the Consistency group which the VM was part of at the time of recovery point creation.
	*/
	ConsistencyGroupExtId *string `json:"consistencyGroupExtId,omitempty"`
	/*
	  The UTC date and time in ISO-8601 format when the Recovery point is created.
	*/
	CreationTime *time.Time `json:"creationTime,omitempty"`

	DiskRecoveryPoints []DiskRecoveryPoint `json:"diskRecoveryPoints,omitempty"`
	/*
	  The UTC date and time in ISO-8601 format when the current Recovery point expires and will be garbage collected.
	*/
	ExpirationTime *time.Time `json:"expirationTime,omitempty"`
	/*
	  A globally unique identifier of an instance that is suitable for external consumption.
	*/
	ExtId *string `json:"extId,omitempty"`
	/*
	  A HATEOAS style link for the response.  Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
	*/
	Links []import1.ApiLink `json:"links,omitempty"`
	/*
	  Location agnostic identifier of the Recovery point.
	*/
	LocationAgnosticId *string `json:"locationAgnosticId,omitempty"`
	/*
	  The name of the Recovery point.
	*/
	Name *string `json:"name,omitempty"`

	RecoveryPointType *RecoveryPointType `json:"recoveryPointType,omitempty"`

	Status *RecoveryPointStatus `json:"status,omitempty"`
	/*
	  A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this ID to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server).
	*/
	TenantId *string `json:"tenantId,omitempty"`
	/*
	  Category key-value pairs associated with the VM at the time of recovery point creation. The category key and value are separated by '/'. For example, a category with key 'dept' and value 'hr' is displayed as 'dept/hr'.
	*/
	VmCategories []string `json:"vmCategories,omitempty"`
	/*
	  VM external identifier which is captured as a part of this recovery point.
	*/
	VmExtId *string `json:"vmExtId,omitempty"`
}

A model that represents common properties of a VM Recovery point resources

func NewBaseVmRecoveryPoint added in v4.1.1

func NewBaseVmRecoveryPoint() *BaseVmRecoveryPoint

func (*BaseVmRecoveryPoint) GetApplicationConsistentProperties added in v4.1.1

func (p *BaseVmRecoveryPoint) GetApplicationConsistentProperties() interface{}

func (*BaseVmRecoveryPoint) MarshalJSON added in v4.1.1

func (p *BaseVmRecoveryPoint) MarshalJSON() ([]byte, error)

func (*BaseVmRecoveryPoint) SetApplicationConsistentProperties added in v4.1.1

func (p *BaseVmRecoveryPoint) SetApplicationConsistentProperties(v interface{}) error

func (*BaseVmRecoveryPoint) UnmarshalJSON added in v4.1.1

func (p *BaseVmRecoveryPoint) UnmarshalJSON(b []byte) error

type DiskRecoveryPoint added in v4.1.1

type DiskRecoveryPoint struct {
	ObjectType_ *string `json:"$objectType,omitempty"`

	Reserved_ map[string]interface{} `json:"$reserved,omitempty"`

	UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"`
	/*
	  Disk external identifier which is captured as a part of this recovery point.
	*/
	DiskExtId *string `json:"diskExtId,omitempty"`
	/*
	  Disk recovery point identifier.
	*/
	DiskRecoveryPointExtId *string `json:"diskRecoveryPointExtId,omitempty"`
}

A model that represents the disk recovery point properties.

func NewDiskRecoveryPoint added in v4.1.1

func NewDiskRecoveryPoint() *DiskRecoveryPoint

func (*DiskRecoveryPoint) MarshalJSON added in v4.1.1

func (p *DiskRecoveryPoint) MarshalJSON() ([]byte, error)

func (*DiskRecoveryPoint) UnmarshalJSON added in v4.1.1

func (p *DiskRecoveryPoint) UnmarshalJSON(b []byte) error

type FileDetail

type FileDetail struct {
	Path        *string `json:"-"`
	ObjectType_ *string `json:"-"`
}

func NewFileDetail

func NewFileDetail() *FileDetail

type OneOfBaseVmRecoveryPointApplicationConsistentProperties added in v4.1.1

type OneOfBaseVmRecoveryPointApplicationConsistentProperties struct {
	Discriminator *string `json:"-"`
	ObjectType_   *string `json:"-"`
	// contains filtered or unexported fields
}

func NewOneOfBaseVmRecoveryPointApplicationConsistentProperties added in v4.1.1

func NewOneOfBaseVmRecoveryPointApplicationConsistentProperties() *OneOfBaseVmRecoveryPointApplicationConsistentProperties

func (*OneOfBaseVmRecoveryPointApplicationConsistentProperties) GetValue added in v4.1.1

func (*OneOfBaseVmRecoveryPointApplicationConsistentProperties) MarshalJSON added in v4.1.1

func (*OneOfBaseVmRecoveryPointApplicationConsistentProperties) SetValue added in v4.1.1

func (*OneOfBaseVmRecoveryPointApplicationConsistentProperties) UnmarshalJSON added in v4.1.1

type RecoveryPointStatus

type RecoveryPointStatus int

The status of the Recovery point, which indicates whether this Recovery point is fit to be consumed.

const (
	RECOVERYPOINTSTATUS_UNKNOWN  RecoveryPointStatus = 0
	RECOVERYPOINTSTATUS_REDACTED RecoveryPointStatus = 1
	RECOVERYPOINTSTATUS_COMPLETE RecoveryPointStatus = 2
)

func (RecoveryPointStatus) GetName

func (e RecoveryPointStatus) GetName() string

Returns the name of the enum

func (*RecoveryPointStatus) MarshalJSON

func (e *RecoveryPointStatus) MarshalJSON() ([]byte, error)

func (RecoveryPointStatus) Ref

func (*RecoveryPointStatus) UnmarshalJSON

func (e *RecoveryPointStatus) UnmarshalJSON(b []byte) error

type RecoveryPointType

type RecoveryPointType int

Type of the Recovery point.

const (
	RECOVERYPOINTTYPE_UNKNOWN                RecoveryPointType = 0
	RECOVERYPOINTTYPE_REDACTED               RecoveryPointType = 1
	RECOVERYPOINTTYPE_CRASH_CONSISTENT       RecoveryPointType = 2
	RECOVERYPOINTTYPE_APPLICATION_CONSISTENT RecoveryPointType = 3
)

func (RecoveryPointType) GetName

func (e RecoveryPointType) GetName() string

Returns the name of the enum

func (*RecoveryPointType) MarshalJSON

func (e *RecoveryPointType) MarshalJSON() ([]byte, error)

func (RecoveryPointType) Ref

func (*RecoveryPointType) UnmarshalJSON

func (e *RecoveryPointType) UnmarshalJSON(b []byte) error

type VssProperties added in v4.1.1

type VssProperties struct {
	ObjectType_ *string `json:"$objectType,omitempty"`

	Reserved_ map[string]interface{} `json:"$reserved,omitempty"`

	UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"`

	BackupType *BackupType `json:"backupType"`
	/*
	  Indicates whether the given set of VSS writers' UUIDs should be included or excluded from the application consistent recovery point. By default, the value is set to false, indicating that all listed VSS writers' UUIDs will be excluded.
	*/
	ShouldIncludeWriters *bool `json:"shouldIncludeWriters,omitempty"`
	/*
	  Indicates whether to store the VSS metadata if the user is interested in application-specific backup/restore. The VSS metadata consists of VSS writers and requester metadata details. These are compressed into a cabinet file(.cab file) during a VSS backup operation. This cabinet file must be saved to the backup media during a backup operation, as it is required during the restore operation.
	*/
	ShouldStoreVssMetadata *bool `json:"shouldStoreVssMetadata,omitempty"`
	/*
	  List of VSS writer UUIDs that are used in an application consistent recovery point. The default values are the system and the registry writer UUIDs.
	*/
	Writers []string `json:"writers,omitempty"`
}

For Windows VMs/agents, application-consistent recovery points are selected using the Windows-specific Volume Shadow Copy Service (VSS). The enclosed properties, also called VSS properties, are used by the Windows platform to decide the type of application-consistent recovery points to consider.

func NewVssProperties added in v4.1.1

func NewVssProperties() *VssProperties

func (*VssProperties) MarshalJSON added in v4.1.1

func (p *VssProperties) MarshalJSON() ([]byte, error)

func (*VssProperties) UnmarshalJSON added in v4.1.1

func (p *VssProperties) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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