backup

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package backup implements the Azure ARM Backup service API version 2016-06-01.

Open API 2.0 Specs for Azure RecoveryServices Backup service

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Backup
	DefaultBaseURI = "https://management.azure.com"
)

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

Types

type AzureBackupServerEngine

type AzureBackupServerEngine struct {
	// FriendlyName - The friendly name of the backup engine.
	FriendlyName *string `json:"friendlyName,omitempty"`
	// BackupManagementType - The type of backup management associated with the backup engine. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL'
	BackupManagementType ManagementType `json:"backupManagementType,omitempty"`
	// RegistrationStatus - The status of the backup engine registration with the Recovery Services vault.
	RegistrationStatus *string `json:"registrationStatus,omitempty"`
	// HealthStatus - The backup status of the backup engine.
	HealthStatus *string `json:"healthStatus,omitempty"`
	// CanReRegister - The flag indicating whether the backup engine be registered again, once the engine has been initially registered.
	CanReRegister *bool `json:"canReRegister,omitempty"`
	// BackupEngineID - The ID of the backup engine.
	BackupEngineID *string `json:"backupEngineId,omitempty"`
	// BackupEngineType - Possible values include: 'BackupEngineTypeBackupEngineBase', 'BackupEngineTypeAzureBackupServerEngine', 'BackupEngineTypeDpmBackupEngine'
	BackupEngineType EngineType `json:"backupEngineType,omitempty"`
}

AzureBackupServerEngine the backup engine type when Azure Backup Server is used to manage the backups.

func (AzureBackupServerEngine) AsAzureBackupServerEngine

func (abse AzureBackupServerEngine) AsAzureBackupServerEngine() (*AzureBackupServerEngine, bool)

AsAzureBackupServerEngine is the BasicEngineBase implementation for AzureBackupServerEngine.

func (AzureBackupServerEngine) AsBasicEngineBase

func (abse AzureBackupServerEngine) AsBasicEngineBase() (BasicEngineBase, bool)

AsBasicEngineBase is the BasicEngineBase implementation for AzureBackupServerEngine.

func (AzureBackupServerEngine) AsDpmBackupEngine

func (abse AzureBackupServerEngine) AsDpmBackupEngine() (*DpmBackupEngine, bool)

AsDpmBackupEngine is the BasicEngineBase implementation for AzureBackupServerEngine.

func (AzureBackupServerEngine) AsEngineBase

func (abse AzureBackupServerEngine) AsEngineBase() (*EngineBase, bool)

AsEngineBase is the BasicEngineBase implementation for AzureBackupServerEngine.

func (AzureBackupServerEngine) MarshalJSON

func (abse AzureBackupServerEngine) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AzureBackupServerEngine.

type AzureIaaSClassicComputeVMContainer

type AzureIaaSClassicComputeVMContainer struct {
	// VirtualMachineID - The fully qualified Resource Manager URL of the virtual machine represented by this Azure IaaS VM container.
	VirtualMachineID *string `json:"virtualMachineId,omitempty"`
	// VirtualMachineVersion - Specifies whether the container represents a classic or a Resource Manager-deployed virtual machine.
	VirtualMachineVersion *string `json:"virtualMachineVersion,omitempty"`
	// ResourceGroup - The resource group name associated with the Recovery Services vault.
	ResourceGroup *string `json:"resourceGroup,omitempty"`
	// FriendlyName - Friendly name of the container.
	FriendlyName *string `json:"friendlyName,omitempty"`
	// BackupManagementType - The backup management type for the container. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL'
	BackupManagementType ManagementType `json:"backupManagementType,omitempty"`
	// RegistrationStatus - The container's registration status with the Recovery Services vault.
	RegistrationStatus *string `json:"registrationStatus,omitempty"`
	// HealthStatus - The status of the container's health.
	HealthStatus *string `json:"healthStatus,omitempty"`
	// ContainerType - READ-ONLY; The type assigned to the container. The values to use for each of these properties are:<br/> 1. Compute Azure VM is Microsoft.Compute/virtualMachines<br/> 2. Classic Compute Azure VM is Microsoft.ClassicCompute/virtualMachines<br/> 3. Windows machines (like Azure Backup Server and DPM) is Windows<br/> 4. Azure SQL instance is AzureSqlContainer.
	ContainerType *string `json:"containerType,omitempty"`
	// ProtectableObjectType - Possible values include: 'ProtectableObjectTypeProtectionContainer', 'ProtectableObjectTypeAzureSQLContainer', 'ProtectableObjectTypeIaaSVMContainer', 'ProtectableObjectTypeMABWindowsContainer', 'ProtectableObjectTypeMicrosoftComputevirtualMachines', 'ProtectableObjectTypeMicrosoftClassicComputevirtualMachines'
	ProtectableObjectType ProtectableObjectType `json:"protectableObjectType,omitempty"`
}

AzureIaaSClassicComputeVMContainer iaaS VM workload-specific backup item representing a classic-deployed virtual machine.

func (AzureIaaSClassicComputeVMContainer) AsAzureIaaSClassicComputeVMContainer

func (aisccvc AzureIaaSClassicComputeVMContainer) AsAzureIaaSClassicComputeVMContainer() (*AzureIaaSClassicComputeVMContainer, bool)

AsAzureIaaSClassicComputeVMContainer is the BasicProtectionContainer implementation for AzureIaaSClassicComputeVMContainer.

func (AzureIaaSClassicComputeVMContainer) AsAzureIaaSComputeVMContainer

func (aisccvc AzureIaaSClassicComputeVMContainer) AsAzureIaaSComputeVMContainer() (*AzureIaaSComputeVMContainer, bool)

AsAzureIaaSComputeVMContainer is the BasicProtectionContainer implementation for AzureIaaSClassicComputeVMContainer.

func (AzureIaaSClassicComputeVMContainer) AsAzureSQLContainer

func (aisccvc AzureIaaSClassicComputeVMContainer) AsAzureSQLContainer() (*AzureSQLContainer, bool)

AsAzureSQLContainer is the BasicProtectionContainer implementation for AzureIaaSClassicComputeVMContainer.

func (AzureIaaSClassicComputeVMContainer) AsBasicIaaSVMContainer

func (aisccvc AzureIaaSClassicComputeVMContainer) AsBasicIaaSVMContainer() (BasicIaaSVMContainer, bool)

AsBasicIaaSVMContainer is the BasicProtectionContainer implementation for AzureIaaSClassicComputeVMContainer.

func (AzureIaaSClassicComputeVMContainer) AsBasicProtectionContainer

func (aisccvc AzureIaaSClassicComputeVMContainer) AsBasicProtectionContainer() (BasicProtectionContainer, bool)

AsBasicProtectionContainer is the BasicProtectionContainer implementation for AzureIaaSClassicComputeVMContainer.

func (AzureIaaSClassicComputeVMContainer) AsIaaSVMContainer

func (aisccvc AzureIaaSClassicComputeVMContainer) AsIaaSVMContainer() (*IaaSVMContainer, bool)

AsIaaSVMContainer is the BasicProtectionContainer implementation for AzureIaaSClassicComputeVMContainer.

func (AzureIaaSClassicComputeVMContainer) AsMabContainer

func (aisccvc AzureIaaSClassicComputeVMContainer) AsMabContainer() (*MabContainer, bool)

AsMabContainer is the BasicProtectionContainer implementation for AzureIaaSClassicComputeVMContainer.

func (AzureIaaSClassicComputeVMContainer) AsProtectionContainer

func (aisccvc AzureIaaSClassicComputeVMContainer) AsProtectionContainer() (*ProtectionContainer, bool)

AsProtectionContainer is the BasicProtectionContainer implementation for AzureIaaSClassicComputeVMContainer.

func (AzureIaaSClassicComputeVMContainer) MarshalJSON

func (aisccvc AzureIaaSClassicComputeVMContainer) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AzureIaaSClassicComputeVMContainer.

type AzureIaaSClassicComputeVMProtectableItem

type AzureIaaSClassicComputeVMProtectableItem struct {
	// VirtualMachineID - The fully qualified Resource Manager ID of the virtual machine.
	VirtualMachineID *string `json:"virtualMachineId,omitempty"`
	// BackupManagementType - The backup management type.
	BackupManagementType *string `json:"backupManagementType,omitempty"`
	// FriendlyName - The friendly name of the backup item.
	FriendlyName *string `json:"friendlyName,omitempty"`
	// ProtectionState - The state of the back up item. Possible values include: 'ProtectionStatusInvalid', 'ProtectionStatusNotProtected', 'ProtectionStatusProtecting', 'ProtectionStatusProtected'
	ProtectionState ProtectionStatus `json:"protectionState,omitempty"`
	// ProtectableItemType - Possible values include: 'ProtectableItemTypeWorkloadProtectableItem', 'ProtectableItemTypeIaaSVMProtectableItem', 'ProtectableItemTypeMicrosoftComputevirtualMachines', 'ProtectableItemTypeMicrosoftClassicComputevirtualMachines'
	ProtectableItemType ProtectableItemType `json:"protectableItemType,omitempty"`
}

AzureIaaSClassicComputeVMProtectableItem iaaS VM workload-specific backup item representing a classic VM.

func (AzureIaaSClassicComputeVMProtectableItem) AsAzureIaaSClassicComputeVMProtectableItem

func (aisccvpi AzureIaaSClassicComputeVMProtectableItem) AsAzureIaaSClassicComputeVMProtectableItem() (*AzureIaaSClassicComputeVMProtectableItem, bool)

AsAzureIaaSClassicComputeVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSClassicComputeVMProtectableItem.

func (AzureIaaSClassicComputeVMProtectableItem) AsAzureIaaSComputeVMProtectableItem

func (aisccvpi AzureIaaSClassicComputeVMProtectableItem) AsAzureIaaSComputeVMProtectableItem() (*AzureIaaSComputeVMProtectableItem, bool)

AsAzureIaaSComputeVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSClassicComputeVMProtectableItem.

func (AzureIaaSClassicComputeVMProtectableItem) AsBasicIaaSVMProtectableItem

func (aisccvpi AzureIaaSClassicComputeVMProtectableItem) AsBasicIaaSVMProtectableItem() (BasicIaaSVMProtectableItem, bool)

AsBasicIaaSVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSClassicComputeVMProtectableItem.

func (AzureIaaSClassicComputeVMProtectableItem) AsBasicWorkloadProtectableItem

func (aisccvpi AzureIaaSClassicComputeVMProtectableItem) AsBasicWorkloadProtectableItem() (BasicWorkloadProtectableItem, bool)

AsBasicWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSClassicComputeVMProtectableItem.

func (AzureIaaSClassicComputeVMProtectableItem) AsIaaSVMProtectableItem

func (aisccvpi AzureIaaSClassicComputeVMProtectableItem) AsIaaSVMProtectableItem() (*IaaSVMProtectableItem, bool)

AsIaaSVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSClassicComputeVMProtectableItem.

func (AzureIaaSClassicComputeVMProtectableItem) AsWorkloadProtectableItem

func (aisccvpi AzureIaaSClassicComputeVMProtectableItem) AsWorkloadProtectableItem() (*WorkloadProtectableItem, bool)

AsWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSClassicComputeVMProtectableItem.

func (AzureIaaSClassicComputeVMProtectableItem) MarshalJSON

func (aisccvpi AzureIaaSClassicComputeVMProtectableItem) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AzureIaaSClassicComputeVMProtectableItem.

type AzureIaaSClassicComputeVMProtectedItem

type AzureIaaSClassicComputeVMProtectedItem struct {
	// FriendlyName - The friendly name of the VM represented by this backup item.
	FriendlyName *string `json:"friendlyName,omitempty"`
	// VirtualMachineID - The fully qualified Resource Manager ID of the virtual machine represented by this item.
	VirtualMachineID *string `json:"virtualMachineId,omitempty"`
	// ProtectionStatus - The backup status of this backup item.
	ProtectionStatus *string `json:"protectionStatus,omitempty"`
	// ProtectionState - The backup state of this backup item. Possible values include: 'ProtectionStateInvalid', 'ProtectionStateIRPending', 'ProtectionStateProtected', 'ProtectionStateProtectionError', 'ProtectionStateProtectionStopped', 'ProtectionStateProtectionPaused'
	ProtectionState ProtectionState `json:"protectionState,omitempty"`
	// LastBackupStatus - The last backup operation status. The possible values are: Healthy or Unhealthy.
	LastBackupStatus *string `json:"lastBackupStatus,omitempty"`
	// LastBackupTime - The timestamp of the last backup operation for this backup item.
	LastBackupTime *date.Time `json:"lastBackupTime,omitempty"`
	// ExtendedInfo - Additional information for this backup item.
	ExtendedInfo *AzureIaaSVMProtectedItemExtendedInfo `json:"extendedInfo,omitempty"`
	// BackupManagementType - The backup management type associated with the backup item. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL'
	BackupManagementType ManagementType `json:"backupManagementType,omitempty"`
	// WorkloadType - The workload type for this item. Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSQLDb', 'SQLDB', 'Exchange', 'Sharepoint', 'DPMUnknown'
	WorkloadType DataSourceType `json:"workloadType,omitempty"`
	// SourceResourceID - The ID of the resource to be backed up.
	SourceResourceID *string `json:"sourceResourceId,omitempty"`
	// PolicyID - The ID of the backup policy associated with this backup item.
	PolicyID *string `json:"policyId,omitempty"`
	// LastRecoveryPoint - The timestamp when the most recent backup copy was created for this backup item.
	LastRecoveryPoint *date.Time `json:"lastRecoveryPoint,omitempty"`
	// ProtectedItemType - Possible values include: 'ProtectedItemTypeProtectedItem', 'ProtectedItemTypeAzureIaaSVMProtectedItem', 'ProtectedItemTypeMabFileFolderProtectedItem', 'ProtectedItemTypeMicrosoftSqlserversdatabases', 'ProtectedItemTypeMicrosoftComputevirtualMachines', 'ProtectedItemTypeMicrosoftClassicComputevirtualMachines'
	ProtectedItemType ProtectedItemType `json:"protectedItemType,omitempty"`
}

AzureIaaSClassicComputeVMProtectedItem iaaS VM workload-specific backup item representing the classic VM.

func (AzureIaaSClassicComputeVMProtectedItem) AsAzureIaaSClassicComputeVMProtectedItem

func (aisccvpi AzureIaaSClassicComputeVMProtectedItem) AsAzureIaaSClassicComputeVMProtectedItem() (*AzureIaaSClassicComputeVMProtectedItem, bool)

AsAzureIaaSClassicComputeVMProtectedItem is the BasicProtectedItem implementation for AzureIaaSClassicComputeVMProtectedItem.

func (AzureIaaSClassicComputeVMProtectedItem) AsAzureIaaSComputeVMProtectedItem

func (aisccvpi AzureIaaSClassicComputeVMProtectedItem) AsAzureIaaSComputeVMProtectedItem() (*AzureIaaSComputeVMProtectedItem, bool)

AsAzureIaaSComputeVMProtectedItem is the BasicProtectedItem implementation for AzureIaaSClassicComputeVMProtectedItem.

func (AzureIaaSClassicComputeVMProtectedItem) AsAzureIaaSVMProtectedItem

func (aisccvpi AzureIaaSClassicComputeVMProtectedItem) AsAzureIaaSVMProtectedItem() (*AzureIaaSVMProtectedItem, bool)

AsAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for AzureIaaSClassicComputeVMProtectedItem.

func (AzureIaaSClassicComputeVMProtectedItem) AsAzureSQLProtectedItem

func (aisccvpi AzureIaaSClassicComputeVMProtectedItem) AsAzureSQLProtectedItem() (*AzureSQLProtectedItem, bool)

AsAzureSQLProtectedItem is the BasicProtectedItem implementation for AzureIaaSClassicComputeVMProtectedItem.

func (AzureIaaSClassicComputeVMProtectedItem) AsBasicAzureIaaSVMProtectedItem

func (aisccvpi AzureIaaSClassicComputeVMProtectedItem) AsBasicAzureIaaSVMProtectedItem() (BasicAzureIaaSVMProtectedItem, bool)

AsBasicAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for AzureIaaSClassicComputeVMProtectedItem.

func (AzureIaaSClassicComputeVMProtectedItem) AsBasicProtectedItem

func (aisccvpi AzureIaaSClassicComputeVMProtectedItem) AsBasicProtectedItem() (BasicProtectedItem, bool)

AsBasicProtectedItem is the BasicProtectedItem implementation for AzureIaaSClassicComputeVMProtectedItem.

func (AzureIaaSClassicComputeVMProtectedItem) AsMabFileFolderProtectedItem

func (aisccvpi AzureIaaSClassicComputeVMProtectedItem) AsMabFileFolderProtectedItem() (*MabFileFolderProtectedItem, bool)

AsMabFileFolderProtectedItem is the BasicProtectedItem implementation for AzureIaaSClassicComputeVMProtectedItem.

func (AzureIaaSClassicComputeVMProtectedItem) AsProtectedItem

func (aisccvpi AzureIaaSClassicComputeVMProtectedItem) AsProtectedItem() (*ProtectedItem, bool)

AsProtectedItem is the BasicProtectedItem implementation for AzureIaaSClassicComputeVMProtectedItem.

func (AzureIaaSClassicComputeVMProtectedItem) MarshalJSON

func (aisccvpi AzureIaaSClassicComputeVMProtectedItem) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AzureIaaSClassicComputeVMProtectedItem.

type AzureIaaSComputeVMContainer

type AzureIaaSComputeVMContainer struct {
	// VirtualMachineID - The fully qualified Resource Manager URL of the virtual machine represented by this Azure IaaS VM container.
	VirtualMachineID *string `json:"virtualMachineId,omitempty"`
	// VirtualMachineVersion - Specifies whether the container represents a classic or a Resource Manager-deployed virtual machine.
	VirtualMachineVersion *string `json:"virtualMachineVersion,omitempty"`
	// ResourceGroup - The resource group name associated with the Recovery Services vault.
	ResourceGroup *string `json:"resourceGroup,omitempty"`
	// FriendlyName - Friendly name of the container.
	FriendlyName *string `json:"friendlyName,omitempty"`
	// BackupManagementType - The backup management type for the container. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL'
	BackupManagementType ManagementType `json:"backupManagementType,omitempty"`
	// RegistrationStatus - The container's registration status with the Recovery Services vault.
	RegistrationStatus *string `json:"registrationStatus,omitempty"`
	// HealthStatus - The status of the container's health.
	HealthStatus *string `json:"healthStatus,omitempty"`
	// ContainerType - READ-ONLY; The type assigned to the container. The values to use for each of these properties are:<br/> 1. Compute Azure VM is Microsoft.Compute/virtualMachines<br/> 2. Classic Compute Azure VM is Microsoft.ClassicCompute/virtualMachines<br/> 3. Windows machines (like Azure Backup Server and DPM) is Windows<br/> 4. Azure SQL instance is AzureSqlContainer.
	ContainerType *string `json:"containerType,omitempty"`
	// ProtectableObjectType - Possible values include: 'ProtectableObjectTypeProtectionContainer', 'ProtectableObjectTypeAzureSQLContainer', 'ProtectableObjectTypeIaaSVMContainer', 'ProtectableObjectTypeMABWindowsContainer', 'ProtectableObjectTypeMicrosoftComputevirtualMachines', 'ProtectableObjectTypeMicrosoftClassicComputevirtualMachines'
	ProtectableObjectType ProtectableObjectType `json:"protectableObjectType,omitempty"`
}

AzureIaaSComputeVMContainer iaaS VM workload-specific backup item representing a Resource Manager-deployed virtual machine.

func (AzureIaaSComputeVMContainer) AsAzureIaaSClassicComputeVMContainer

func (aiscvc AzureIaaSComputeVMContainer) AsAzureIaaSClassicComputeVMContainer() (*AzureIaaSClassicComputeVMContainer, bool)

AsAzureIaaSClassicComputeVMContainer is the BasicProtectionContainer implementation for AzureIaaSComputeVMContainer.

func (AzureIaaSComputeVMContainer) AsAzureIaaSComputeVMContainer

func (aiscvc AzureIaaSComputeVMContainer) AsAzureIaaSComputeVMContainer() (*AzureIaaSComputeVMContainer, bool)

AsAzureIaaSComputeVMContainer is the BasicProtectionContainer implementation for AzureIaaSComputeVMContainer.

func (AzureIaaSComputeVMContainer) AsAzureSQLContainer

func (aiscvc AzureIaaSComputeVMContainer) AsAzureSQLContainer() (*AzureSQLContainer, bool)

AsAzureSQLContainer is the BasicProtectionContainer implementation for AzureIaaSComputeVMContainer.

func (AzureIaaSComputeVMContainer) AsBasicIaaSVMContainer

func (aiscvc AzureIaaSComputeVMContainer) AsBasicIaaSVMContainer() (BasicIaaSVMContainer, bool)

AsBasicIaaSVMContainer is the BasicProtectionContainer implementation for AzureIaaSComputeVMContainer.

func (AzureIaaSComputeVMContainer) AsBasicProtectionContainer

func (aiscvc AzureIaaSComputeVMContainer) AsBasicProtectionContainer() (BasicProtectionContainer, bool)

AsBasicProtectionContainer is the BasicProtectionContainer implementation for AzureIaaSComputeVMContainer.

func (AzureIaaSComputeVMContainer) AsIaaSVMContainer

func (aiscvc AzureIaaSComputeVMContainer) AsIaaSVMContainer() (*IaaSVMContainer, bool)

AsIaaSVMContainer is the BasicProtectionContainer implementation for AzureIaaSComputeVMContainer.

func (AzureIaaSComputeVMContainer) AsMabContainer

func (aiscvc AzureIaaSComputeVMContainer) AsMabContainer() (*MabContainer, bool)

AsMabContainer is the BasicProtectionContainer implementation for AzureIaaSComputeVMContainer.

func (AzureIaaSComputeVMContainer) AsProtectionContainer

func (aiscvc AzureIaaSComputeVMContainer) AsProtectionContainer() (*ProtectionContainer, bool)

AsProtectionContainer is the BasicProtectionContainer implementation for AzureIaaSComputeVMContainer.

func (AzureIaaSComputeVMContainer) MarshalJSON

func (aiscvc AzureIaaSComputeVMContainer) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AzureIaaSComputeVMContainer.

type AzureIaaSComputeVMProtectableItem

type AzureIaaSComputeVMProtectableItem struct {
	// VirtualMachineID - The fully qualified Resource Manager ID of the virtual machine.
	VirtualMachineID *string `json:"virtualMachineId,omitempty"`
	// BackupManagementType - The backup management type.
	BackupManagementType *string `json:"backupManagementType,omitempty"`
	// FriendlyName - The friendly name of the backup item.
	FriendlyName *string `json:"friendlyName,omitempty"`
	// ProtectionState - The state of the back up item. Possible values include: 'ProtectionStatusInvalid', 'ProtectionStatusNotProtected', 'ProtectionStatusProtecting', 'ProtectionStatusProtected'
	ProtectionState ProtectionStatus `json:"protectionState,omitempty"`
	// ProtectableItemType - Possible values include: 'ProtectableItemTypeWorkloadProtectableItem', 'ProtectableItemTypeIaaSVMProtectableItem', 'ProtectableItemTypeMicrosoftComputevirtualMachines', 'ProtectableItemTypeMicrosoftClassicComputevirtualMachines'
	ProtectableItemType ProtectableItemType `json:"protectableItemType,omitempty"`
}

AzureIaaSComputeVMProtectableItem iaaS VM workload-specific backup item representing a Resource Manager VM.

func (AzureIaaSComputeVMProtectableItem) AsAzureIaaSClassicComputeVMProtectableItem

func (aiscvpi AzureIaaSComputeVMProtectableItem) AsAzureIaaSClassicComputeVMProtectableItem() (*AzureIaaSClassicComputeVMProtectableItem, bool)

AsAzureIaaSClassicComputeVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSComputeVMProtectableItem.

func (AzureIaaSComputeVMProtectableItem) AsAzureIaaSComputeVMProtectableItem

func (aiscvpi AzureIaaSComputeVMProtectableItem) AsAzureIaaSComputeVMProtectableItem() (*AzureIaaSComputeVMProtectableItem, bool)

AsAzureIaaSComputeVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSComputeVMProtectableItem.

func (AzureIaaSComputeVMProtectableItem) AsBasicIaaSVMProtectableItem

func (aiscvpi AzureIaaSComputeVMProtectableItem) AsBasicIaaSVMProtectableItem() (BasicIaaSVMProtectableItem, bool)

AsBasicIaaSVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSComputeVMProtectableItem.

func (AzureIaaSComputeVMProtectableItem) AsBasicWorkloadProtectableItem

func (aiscvpi AzureIaaSComputeVMProtectableItem) AsBasicWorkloadProtectableItem() (BasicWorkloadProtectableItem, bool)

AsBasicWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSComputeVMProtectableItem.

func (AzureIaaSComputeVMProtectableItem) AsIaaSVMProtectableItem

func (aiscvpi AzureIaaSComputeVMProtectableItem) AsIaaSVMProtectableItem() (*IaaSVMProtectableItem, bool)

AsIaaSVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSComputeVMProtectableItem.

func (AzureIaaSComputeVMProtectableItem) AsWorkloadProtectableItem

func (aiscvpi AzureIaaSComputeVMProtectableItem) AsWorkloadProtectableItem() (*WorkloadProtectableItem, bool)

AsWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSComputeVMProtectableItem.

func (AzureIaaSComputeVMProtectableItem) MarshalJSON

func (aiscvpi AzureIaaSComputeVMProtectableItem) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AzureIaaSComputeVMProtectableItem.

type AzureIaaSComputeVMProtectedItem

type AzureIaaSComputeVMProtectedItem struct {
	// FriendlyName - The friendly name of the VM represented by this backup item.
	FriendlyName *string `json:"friendlyName,omitempty"`
	// VirtualMachineID - The fully qualified Resource Manager ID of the virtual machine represented by this item.
	VirtualMachineID *string `json:"virtualMachineId,omitempty"`
	// ProtectionStatus - The backup status of this backup item.
	ProtectionStatus *string `json:"protectionStatus,omitempty"`
	// ProtectionState - The backup state of this backup item. Possible values include: 'ProtectionStateInvalid', 'ProtectionStateIRPending', 'ProtectionStateProtected', 'ProtectionStateProtectionError', 'ProtectionStateProtectionStopped', 'ProtectionStateProtectionPaused'
	ProtectionState ProtectionState `json:"protectionState,omitempty"`
	// LastBackupStatus - The last backup operation status. The possible values are: Healthy or Unhealthy.
	LastBackupStatus *string `json:"lastBackupStatus,omitempty"`
	// LastBackupTime - The timestamp of the last backup operation for this backup item.
	LastBackupTime *date.Time `json:"lastBackupTime,omitempty"`
	// ExtendedInfo - Additional information for this backup item.
	ExtendedInfo *AzureIaaSVMProtectedItemExtendedInfo `json:"extendedInfo,omitempty"`
	// BackupManagementType - The backup management type associated with the backup item. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL'
	BackupManagementType ManagementType `json:"backupManagementType,omitempty"`
	// WorkloadType - The workload type for this item. Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSQLDb', 'SQLDB', 'Exchange', 'Sharepoint', 'DPMUnknown'
	WorkloadType DataSourceType `json:"workloadType,omitempty"`
	// SourceResourceID - The ID of the resource to be backed up.
	SourceResourceID *string `json:"sourceResourceId,omitempty"`
	// PolicyID - The ID of the backup policy associated with this backup item.
	PolicyID *string `json:"policyId,omitempty"`
	// LastRecoveryPoint - The timestamp when the most recent backup copy was created for this backup item.
	LastRecoveryPoint *date.Time `json:"lastRecoveryPoint,omitempty"`
	// ProtectedItemType - Possible values include: 'ProtectedItemTypeProtectedItem', 'ProtectedItemTypeAzureIaaSVMProtectedItem', 'ProtectedItemTypeMabFileFolderProtectedItem', 'ProtectedItemTypeMicrosoftSqlserversdatabases', 'ProtectedItemTypeMicrosoftComputevirtualMachines', 'ProtectedItemTypeMicrosoftClassicComputevirtualMachines'
	ProtectedItemType ProtectedItemType `json:"protectedItemType,omitempty"`
}

AzureIaaSComputeVMProtectedItem iaaS VM workload-specific backup item representing the Resource Manager VM.

func (AzureIaaSComputeVMProtectedItem) AsAzureIaaSClassicComputeVMProtectedItem

func (aiscvpi AzureIaaSComputeVMProtectedItem) AsAzureIaaSClassicComputeVMProtectedItem() (*AzureIaaSClassicComputeVMProtectedItem, bool)

AsAzureIaaSClassicComputeVMProtectedItem is the BasicProtectedItem implementation for AzureIaaSComputeVMProtectedItem.

func (AzureIaaSComputeVMProtectedItem) AsAzureIaaSComputeVMProtectedItem

func (aiscvpi AzureIaaSComputeVMProtectedItem) AsAzureIaaSComputeVMProtectedItem() (*AzureIaaSComputeVMProtectedItem, bool)

AsAzureIaaSComputeVMProtectedItem is the BasicProtectedItem implementation for AzureIaaSComputeVMProtectedItem.

func (AzureIaaSComputeVMProtectedItem) AsAzureIaaSVMProtectedItem

func (aiscvpi AzureIaaSComputeVMProtectedItem) AsAzureIaaSVMProtectedItem() (*AzureIaaSVMProtectedItem, bool)

AsAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for AzureIaaSComputeVMProtectedItem.

func (AzureIaaSComputeVMProtectedItem) AsAzureSQLProtectedItem

func (aiscvpi AzureIaaSComputeVMProtectedItem) AsAzureSQLProtectedItem() (*AzureSQLProtectedItem, bool)

AsAzureSQLProtectedItem is the BasicProtectedItem implementation for AzureIaaSComputeVMProtectedItem.

func (AzureIaaSComputeVMProtectedItem) AsBasicAzureIaaSVMProtectedItem

func (aiscvpi AzureIaaSComputeVMProtectedItem) AsBasicAzureIaaSVMProtectedItem() (BasicAzureIaaSVMProtectedItem, bool)

AsBasicAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for AzureIaaSComputeVMProtectedItem.

func (AzureIaaSComputeVMProtectedItem) AsBasicProtectedItem

func (aiscvpi AzureIaaSComputeVMProtectedItem) AsBasicProtectedItem() (BasicProtectedItem, bool)

AsBasicProtectedItem is the BasicProtectedItem implementation for AzureIaaSComputeVMProtectedItem.

func (AzureIaaSComputeVMProtectedItem) AsMabFileFolderProtectedItem

func (aiscvpi AzureIaaSComputeVMProtectedItem) AsMabFileFolderProtectedItem() (*MabFileFolderProtectedItem, bool)

AsMabFileFolderProtectedItem is the BasicProtectedItem implementation for AzureIaaSComputeVMProtectedItem.

func (AzureIaaSComputeVMProtectedItem) AsProtectedItem

func (aiscvpi AzureIaaSComputeVMProtectedItem) AsProtectedItem() (*ProtectedItem, bool)

AsProtectedItem is the BasicProtectedItem implementation for AzureIaaSComputeVMProtectedItem.

func (AzureIaaSComputeVMProtectedItem) MarshalJSON

func (aiscvpi AzureIaaSComputeVMProtectedItem) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AzureIaaSComputeVMProtectedItem.

type AzureIaaSVMErrorInfo

type AzureIaaSVMErrorInfo struct {
	// ErrorCode - Error code.
	ErrorCode *int32 `json:"errorCode,omitempty"`
	// ErrorTitle - Title: typically, the entity associated the error.
	ErrorTitle *string `json:"errorTitle,omitempty"`
	// ErrorString - Localized error string.
	ErrorString *string `json:"errorString,omitempty"`
	// Recommendations - List of localized recommendations for the error string.
	Recommendations *[]string `json:"recommendations,omitempty"`
}

AzureIaaSVMErrorInfo azure IaaS VM workload-specific error information.

type AzureIaaSVMJob

type AzureIaaSVMJob struct {
	// Duration - The time that elapsed during the execution of this job.
	Duration *string `json:"duration,omitempty"`
	// ActionsInfo - Gets or sets the state, or actions, applicable on this job. Examples of the actions are: Cancel or Retry.
	ActionsInfo *[]JobSupportedAction `json:"actionsInfo,omitempty"`
	// ErrorDetails - Error details about this job.
	ErrorDetails *[]AzureIaaSVMErrorInfo `json:"errorDetails,omitempty"`
	// VirtualMachineVersion - Specifies whether the backup item is a Classic VM or a Resource Manager VM.
	VirtualMachineVersion *string `json:"virtualMachineVersion,omitempty"`
	// ExtendedInfo - Additional information for this job.
	ExtendedInfo *AzureIaaSVMJobExtendedInfo `json:"extendedInfo,omitempty"`
	// EntityFriendlyName - The friendly name of the entity on which the current job is executing.
	EntityFriendlyName *string `json:"entityFriendlyName,omitempty"`
	// BackupManagementType - The backup management type for the current job. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL'
	BackupManagementType ManagementType `json:"backupManagementType,omitempty"`
	// Operation - The operation name.
	Operation *string `json:"operation,omitempty"`
	// Status - The job status.
	Status *string `json:"status,omitempty"`
	// StartTime - The start time.
	StartTime *date.Time `json:"startTime,omitempty"`
	// EndTime - The end time.
	EndTime *date.Time `json:"endTime,omitempty"`
	// ActivityID - ActivityId of job.
	ActivityID *string `json:"activityId,omitempty"`
	// JobType - Possible values include: 'JobTypeJob', 'JobTypeAzureIaaSVMJob', 'JobTypeDpmJob', 'JobTypeMabJob'
	JobType JobType `json:"jobType,omitempty"`
}

AzureIaaSVMJob the Azure IaaS VM workload-specific job object.

func (AzureIaaSVMJob) AsAzureIaaSVMJob

func (aisj AzureIaaSVMJob) AsAzureIaaSVMJob() (*AzureIaaSVMJob, bool)

AsAzureIaaSVMJob is the BasicJob implementation for AzureIaaSVMJob.

func (AzureIaaSVMJob) AsBasicJob

func (aisj AzureIaaSVMJob) AsBasicJob() (BasicJob, bool)

AsBasicJob is the BasicJob implementation for AzureIaaSVMJob.

func (AzureIaaSVMJob) AsDpmJob

func (aisj AzureIaaSVMJob) AsDpmJob() (*DpmJob, bool)

AsDpmJob is the BasicJob implementation for AzureIaaSVMJob.

func (AzureIaaSVMJob) AsJob

func (aisj AzureIaaSVMJob) AsJob() (*Job, bool)

AsJob is the BasicJob implementation for AzureIaaSVMJob.

func (AzureIaaSVMJob) AsMabJob

func (aisj AzureIaaSVMJob) AsMabJob() (*MabJob, bool)

AsMabJob is the BasicJob implementation for AzureIaaSVMJob.

func (AzureIaaSVMJob) MarshalJSON

func (aisj AzureIaaSVMJob) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AzureIaaSVMJob.

type AzureIaaSVMJobExtendedInfo

type AzureIaaSVMJobExtendedInfo struct {
	// TasksList - List of tasks associated with this job.
	TasksList *[]AzureIaaSVMJobTaskDetails `json:"tasksList,omitempty"`
	// PropertyBag - Job properties.
	PropertyBag map[string]*string `json:"propertyBag"`
	// ProgressPercentage - Indicates progress of the job. Null if it has not started or completed.
	ProgressPercentage *float64 `json:"progressPercentage,omitempty"`
	// DynamicErrorMessage - Non-localized error message for job execution.
	DynamicErrorMessage *string `json:"dynamicErrorMessage,omitempty"`
}

AzureIaaSVMJobExtendedInfo additional information for the Azure IaaS VM workload-specific job.

func (AzureIaaSVMJobExtendedInfo) MarshalJSON

func (aisjei AzureIaaSVMJobExtendedInfo) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AzureIaaSVMJobExtendedInfo.

type AzureIaaSVMJobTaskDetails

type AzureIaaSVMJobTaskDetails struct {
	// TaskID - The task display name.
	TaskID *string `json:"taskId,omitempty"`
	// StartTime - The start time.
	StartTime *date.Time `json:"startTime,omitempty"`
	// EndTime - The end time.
	EndTime *date.Time `json:"endTime,omitempty"`
	// InstanceID - The instance ID.
	InstanceID *string `json:"instanceId,omitempty"`
	// Duration - The time elapsed for the task.
	Duration *string `json:"duration,omitempty"`
	// Status - The status.
	Status *string `json:"status,omitempty"`
	// ProgressPercentage - The progress of the task, as a percentage.
	ProgressPercentage *float64 `json:"progressPercentage,omitempty"`
}

AzureIaaSVMJobTaskDetails azure IaaS VM workload-specific job task details.

type AzureIaaSVMProtectedItem

type AzureIaaSVMProtectedItem struct {
	// FriendlyName - The friendly name of the VM represented by this backup item.
	FriendlyName *string `json:"friendlyName,omitempty"`
	// VirtualMachineID - The fully qualified Resource Manager ID of the virtual machine represented by this item.
	VirtualMachineID *string `json:"virtualMachineId,omitempty"`
	// ProtectionStatus - The backup status of this backup item.
	ProtectionStatus *string `json:"protectionStatus,omitempty"`
	// ProtectionState - The backup state of this backup item. Possible values include: 'ProtectionStateInvalid', 'ProtectionStateIRPending', 'ProtectionStateProtected', 'ProtectionStateProtectionError', 'ProtectionStateProtectionStopped', 'ProtectionStateProtectionPaused'
	ProtectionState ProtectionState `json:"protectionState,omitempty"`
	// LastBackupStatus - The last backup operation status. The possible values are: Healthy or Unhealthy.
	LastBackupStatus *string `json:"lastBackupStatus,omitempty"`
	// LastBackupTime - The timestamp of the last backup operation for this backup item.
	LastBackupTime *date.Time `json:"lastBackupTime,omitempty"`
	// ExtendedInfo - Additional information for this backup item.
	ExtendedInfo *AzureIaaSVMProtectedItemExtendedInfo `json:"extendedInfo,omitempty"`
	// BackupManagementType - The backup management type associated with the backup item. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL'
	BackupManagementType ManagementType `json:"backupManagementType,omitempty"`
	// WorkloadType - The workload type for this item. Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSQLDb', 'SQLDB', 'Exchange', 'Sharepoint', 'DPMUnknown'
	WorkloadType DataSourceType `json:"workloadType,omitempty"`
	// SourceResourceID - The ID of the resource to be backed up.
	SourceResourceID *string `json:"sourceResourceId,omitempty"`
	// PolicyID - The ID of the backup policy associated with this backup item.
	PolicyID *string `json:"policyId,omitempty"`
	// LastRecoveryPoint - The timestamp when the most recent backup copy was created for this backup item.
	LastRecoveryPoint *date.Time `json:"lastRecoveryPoint,omitempty"`
	// ProtectedItemType - Possible values include: 'ProtectedItemTypeProtectedItem', 'ProtectedItemTypeAzureIaaSVMProtectedItem', 'ProtectedItemTypeMabFileFolderProtectedItem', 'ProtectedItemTypeMicrosoftSqlserversdatabases', 'ProtectedItemTypeMicrosoftComputevirtualMachines', 'ProtectedItemTypeMicrosoftClassicComputevirtualMachines'
	ProtectedItemType ProtectedItemType `json:"protectedItemType,omitempty"`
}

AzureIaaSVMProtectedItem this Azure VM workload-specific (also known as IaaS VM workload-specific) backup item has been backed up.

func (AzureIaaSVMProtectedItem) AsAzureIaaSClassicComputeVMProtectedItem

func (aispi AzureIaaSVMProtectedItem) AsAzureIaaSClassicComputeVMProtectedItem() (*AzureIaaSClassicComputeVMProtectedItem, bool)

AsAzureIaaSClassicComputeVMProtectedItem is the BasicProtectedItem implementation for AzureIaaSVMProtectedItem.

func (AzureIaaSVMProtectedItem) AsAzureIaaSComputeVMProtectedItem

func (aispi AzureIaaSVMProtectedItem) AsAzureIaaSComputeVMProtectedItem() (*AzureIaaSComputeVMProtectedItem, bool)

AsAzureIaaSComputeVMProtectedItem is the BasicProtectedItem implementation for AzureIaaSVMProtectedItem.

func (AzureIaaSVMProtectedItem) AsAzureIaaSVMProtectedItem

func (aispi AzureIaaSVMProtectedItem) AsAzureIaaSVMProtectedItem() (*AzureIaaSVMProtectedItem, bool)

AsAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for AzureIaaSVMProtectedItem.

func (AzureIaaSVMProtectedItem) AsAzureSQLProtectedItem

func (aispi AzureIaaSVMProtectedItem) AsAzureSQLProtectedItem() (*AzureSQLProtectedItem, bool)

AsAzureSQLProtectedItem is the BasicProtectedItem implementation for AzureIaaSVMProtectedItem.

func (AzureIaaSVMProtectedItem) AsBasicAzureIaaSVMProtectedItem

func (aispi AzureIaaSVMProtectedItem) AsBasicAzureIaaSVMProtectedItem() (BasicAzureIaaSVMProtectedItem, bool)

AsBasicAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for AzureIaaSVMProtectedItem.

func (AzureIaaSVMProtectedItem) AsBasicProtectedItem

func (aispi AzureIaaSVMProtectedItem) AsBasicProtectedItem() (BasicProtectedItem, bool)

AsBasicProtectedItem is the BasicProtectedItem implementation for AzureIaaSVMProtectedItem.

func (AzureIaaSVMProtectedItem) AsMabFileFolderProtectedItem

func (aispi AzureIaaSVMProtectedItem) AsMabFileFolderProtectedItem() (*MabFileFolderProtectedItem, bool)

AsMabFileFolderProtectedItem is the BasicProtectedItem implementation for AzureIaaSVMProtectedItem.

func (AzureIaaSVMProtectedItem) AsProtectedItem

func (aispi AzureIaaSVMProtectedItem) AsProtectedItem() (*ProtectedItem, bool)

AsProtectedItem is the BasicProtectedItem implementation for AzureIaaSVMProtectedItem.

func (AzureIaaSVMProtectedItem) MarshalJSON

func (aispi AzureIaaSVMProtectedItem) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AzureIaaSVMProtectedItem.

type AzureIaaSVMProtectedItemExtendedInfo

type AzureIaaSVMProtectedItemExtendedInfo struct {
	// OldestRecoveryPoint - The oldest backup copy available for this backup item.
	OldestRecoveryPoint *date.Time `json:"oldestRecoveryPoint,omitempty"`
	// RecoveryPointCount - The number of backup copies available for this backup item.
	RecoveryPointCount *int32 `json:"recoveryPointCount,omitempty"`
	// PolicyInconsistent - Specifies if the backup policy associated with the backup item is inconsistent.
	PolicyInconsistent *bool `json:"policyInconsistent,omitempty"`
}

AzureIaaSVMProtectedItemExtendedInfo additional information for the Azure VM (also known as IaaS VM)-specific backup item.

type AzureIaaSVMProtectionPolicy

type AzureIaaSVMProtectionPolicy struct {
	// SchedulePolicy - The backup schedule specified as part of backup policy.
	SchedulePolicy BasicSchedulePolicy `json:"schedulePolicy,omitempty"`
	// RetentionPolicy - The retention policy with the details on backup copy retention ranges.
	RetentionPolicy BasicRetentionPolicy `json:"retentionPolicy,omitempty"`
	// ProtectedItemsCount - The number of items associated with this policy.
	ProtectedItemsCount *int32 `json:"protectedItemsCount,omitempty"`
	// BackupManagementType - Possible values include: 'BackupManagementTypeProtectionPolicy', 'BackupManagementTypeAzureIaasVM', 'BackupManagementTypeMAB', 'BackupManagementTypeAzureSQL'
	BackupManagementType ManagementTypeBasicProtectionPolicy `json:"backupManagementType,omitempty"`
}

AzureIaaSVMProtectionPolicy azure VM (also known as IaaS VM) workload-specific backup policy.

func (AzureIaaSVMProtectionPolicy) AsAzureIaaSVMProtectionPolicy

func (aispp AzureIaaSVMProtectionPolicy) AsAzureIaaSVMProtectionPolicy() (*AzureIaaSVMProtectionPolicy, bool)

AsAzureIaaSVMProtectionPolicy is the BasicProtectionPolicy implementation for AzureIaaSVMProtectionPolicy.

func (AzureIaaSVMProtectionPolicy) AsAzureSQLProtectionPolicy

func (aispp AzureIaaSVMProtectionPolicy) AsAzureSQLProtectionPolicy() (*AzureSQLProtectionPolicy, bool)

AsAzureSQLProtectionPolicy is the BasicProtectionPolicy implementation for AzureIaaSVMProtectionPolicy.

func (AzureIaaSVMProtectionPolicy) AsBasicProtectionPolicy

func (aispp AzureIaaSVMProtectionPolicy) AsBasicProtectionPolicy() (BasicProtectionPolicy, bool)

AsBasicProtectionPolicy is the BasicProtectionPolicy implementation for AzureIaaSVMProtectionPolicy.

func (AzureIaaSVMProtectionPolicy) AsMabProtectionPolicy

func (aispp AzureIaaSVMProtectionPolicy) AsMabProtectionPolicy() (*MabProtectionPolicy, bool)

AsMabProtectionPolicy is the BasicProtectionPolicy implementation for AzureIaaSVMProtectionPolicy.

func (AzureIaaSVMProtectionPolicy) AsProtectionPolicy

func (aispp AzureIaaSVMProtectionPolicy) AsProtectionPolicy() (*ProtectionPolicy, bool)

AsProtectionPolicy is the BasicProtectionPolicy implementation for AzureIaaSVMProtectionPolicy.

func (AzureIaaSVMProtectionPolicy) MarshalJSON

func (aispp AzureIaaSVMProtectionPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AzureIaaSVMProtectionPolicy.

func (*AzureIaaSVMProtectionPolicy) UnmarshalJSON

func (aispp *AzureIaaSVMProtectionPolicy) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AzureIaaSVMProtectionPolicy struct.

type AzureSQLContainer

type AzureSQLContainer struct {
	// FriendlyName - Friendly name of the container.
	FriendlyName *string `json:"friendlyName,omitempty"`
	// BackupManagementType - The backup management type for the container. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL'
	BackupManagementType ManagementType `json:"backupManagementType,omitempty"`
	// RegistrationStatus - The container's registration status with the Recovery Services vault.
	RegistrationStatus *string `json:"registrationStatus,omitempty"`
	// HealthStatus - The status of the container's health.
	HealthStatus *string `json:"healthStatus,omitempty"`
	// ContainerType - READ-ONLY; The type assigned to the container. The values to use for each of these properties are:<br/> 1. Compute Azure VM is Microsoft.Compute/virtualMachines<br/> 2. Classic Compute Azure VM is Microsoft.ClassicCompute/virtualMachines<br/> 3. Windows machines (like Azure Backup Server and DPM) is Windows<br/> 4. Azure SQL instance is AzureSqlContainer.
	ContainerType *string `json:"containerType,omitempty"`
	// ProtectableObjectType - Possible values include: 'ProtectableObjectTypeProtectionContainer', 'ProtectableObjectTypeAzureSQLContainer', 'ProtectableObjectTypeIaaSVMContainer', 'ProtectableObjectTypeMABWindowsContainer', 'ProtectableObjectTypeMicrosoftComputevirtualMachines', 'ProtectableObjectTypeMicrosoftClassicComputevirtualMachines'
	ProtectableObjectType ProtectableObjectType `json:"protectableObjectType,omitempty"`
}

AzureSQLContainer azure SQL workload-specific container.

func (AzureSQLContainer) AsAzureIaaSClassicComputeVMContainer

func (asc AzureSQLContainer) AsAzureIaaSClassicComputeVMContainer() (*AzureIaaSClassicComputeVMContainer, bool)

AsAzureIaaSClassicComputeVMContainer is the BasicProtectionContainer implementation for AzureSQLContainer.

func (AzureSQLContainer) AsAzureIaaSComputeVMContainer

func (asc AzureSQLContainer) AsAzureIaaSComputeVMContainer() (*AzureIaaSComputeVMContainer, bool)

AsAzureIaaSComputeVMContainer is the BasicProtectionContainer implementation for AzureSQLContainer.

func (AzureSQLContainer) AsAzureSQLContainer

func (asc AzureSQLContainer) AsAzureSQLContainer() (*AzureSQLContainer, bool)

AsAzureSQLContainer is the BasicProtectionContainer implementation for AzureSQLContainer.

func (AzureSQLContainer) AsBasicIaaSVMContainer

func (asc AzureSQLContainer) AsBasicIaaSVMContainer() (BasicIaaSVMContainer, bool)

AsBasicIaaSVMContainer is the BasicProtectionContainer implementation for AzureSQLContainer.

func (AzureSQLContainer) AsBasicProtectionContainer

func (asc AzureSQLContainer) AsBasicProtectionContainer() (BasicProtectionContainer, bool)

AsBasicProtectionContainer is the BasicProtectionContainer implementation for AzureSQLContainer.

func (AzureSQLContainer) AsIaaSVMContainer

func (asc AzureSQLContainer) AsIaaSVMContainer() (*IaaSVMContainer, bool)

AsIaaSVMContainer is the BasicProtectionContainer implementation for AzureSQLContainer.

func (AzureSQLContainer) AsMabContainer

func (asc AzureSQLContainer) AsMabContainer() (*MabContainer, bool)

AsMabContainer is the BasicProtectionContainer implementation for AzureSQLContainer.

func (AzureSQLContainer) AsProtectionContainer

func (asc AzureSQLContainer) AsProtectionContainer() (*ProtectionContainer, bool)

AsProtectionContainer is the BasicProtectionContainer implementation for AzureSQLContainer.

func (AzureSQLContainer) MarshalJSON

func (asc AzureSQLContainer) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AzureSQLContainer.

type AzureSQLProtectedItem

type AzureSQLProtectedItem struct {
	// ProtectedItemDataID - The internal ID of a backup item. The internal ID is used by the Azure SQL Backup engine to contact Recovery Services.
	ProtectedItemDataID *string `json:"protectedItemDataId,omitempty"`
	// ProtectionState - The backup state of the backup item. Possible values include: 'ProtectedItemStateInvalid', 'ProtectedItemStateIRPending', 'ProtectedItemStateProtected', 'ProtectedItemStateProtectionError', 'ProtectedItemStateProtectionStopped', 'ProtectedItemStateProtectionPaused'
	ProtectionState ProtectedItemState `json:"protectionState,omitempty"`
	// ExtendedInfo - Additional information for this backup item.
	ExtendedInfo *AzureSQLProtectedItemExtendedInfo `json:"extendedInfo,omitempty"`
	// BackupManagementType - The backup management type associated with the backup item. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL'
	BackupManagementType ManagementType `json:"backupManagementType,omitempty"`
	// WorkloadType - The workload type for this item. Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSQLDb', 'SQLDB', 'Exchange', 'Sharepoint', 'DPMUnknown'
	WorkloadType DataSourceType `json:"workloadType,omitempty"`
	// SourceResourceID - The ID of the resource to be backed up.
	SourceResourceID *string `json:"sourceResourceId,omitempty"`
	// PolicyID - The ID of the backup policy associated with this backup item.
	PolicyID *string `json:"policyId,omitempty"`
	// LastRecoveryPoint - The timestamp when the most recent backup copy was created for this backup item.
	LastRecoveryPoint *date.Time `json:"lastRecoveryPoint,omitempty"`
	// ProtectedItemType - Possible values include: 'ProtectedItemTypeProtectedItem', 'ProtectedItemTypeAzureIaaSVMProtectedItem', 'ProtectedItemTypeMabFileFolderProtectedItem', 'ProtectedItemTypeMicrosoftSqlserversdatabases', 'ProtectedItemTypeMicrosoftComputevirtualMachines', 'ProtectedItemTypeMicrosoftClassicComputevirtualMachines'
	ProtectedItemType ProtectedItemType `json:"protectedItemType,omitempty"`
}

AzureSQLProtectedItem this is an Azure SQL workload-specific backup item.

func (AzureSQLProtectedItem) AsAzureIaaSClassicComputeVMProtectedItem

func (aspi AzureSQLProtectedItem) AsAzureIaaSClassicComputeVMProtectedItem() (*AzureIaaSClassicComputeVMProtectedItem, bool)

AsAzureIaaSClassicComputeVMProtectedItem is the BasicProtectedItem implementation for AzureSQLProtectedItem.

func (AzureSQLProtectedItem) AsAzureIaaSComputeVMProtectedItem

func (aspi AzureSQLProtectedItem) AsAzureIaaSComputeVMProtectedItem() (*AzureIaaSComputeVMProtectedItem, bool)

AsAzureIaaSComputeVMProtectedItem is the BasicProtectedItem implementation for AzureSQLProtectedItem.

func (AzureSQLProtectedItem) AsAzureIaaSVMProtectedItem

func (aspi AzureSQLProtectedItem) AsAzureIaaSVMProtectedItem() (*AzureIaaSVMProtectedItem, bool)

AsAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for AzureSQLProtectedItem.

func (AzureSQLProtectedItem) AsAzureSQLProtectedItem

func (aspi AzureSQLProtectedItem) AsAzureSQLProtectedItem() (*AzureSQLProtectedItem, bool)

AsAzureSQLProtectedItem is the BasicProtectedItem implementation for AzureSQLProtectedItem.

func (AzureSQLProtectedItem) AsBasicAzureIaaSVMProtectedItem

func (aspi AzureSQLProtectedItem) AsBasicAzureIaaSVMProtectedItem() (BasicAzureIaaSVMProtectedItem, bool)

AsBasicAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for AzureSQLProtectedItem.

func (AzureSQLProtectedItem) AsBasicProtectedItem

func (aspi AzureSQLProtectedItem) AsBasicProtectedItem() (BasicProtectedItem, bool)

AsBasicProtectedItem is the BasicProtectedItem implementation for AzureSQLProtectedItem.

func (AzureSQLProtectedItem) AsMabFileFolderProtectedItem

func (aspi AzureSQLProtectedItem) AsMabFileFolderProtectedItem() (*MabFileFolderProtectedItem, bool)

AsMabFileFolderProtectedItem is the BasicProtectedItem implementation for AzureSQLProtectedItem.

func (AzureSQLProtectedItem) AsProtectedItem

func (aspi AzureSQLProtectedItem) AsProtectedItem() (*ProtectedItem, bool)

AsProtectedItem is the BasicProtectedItem implementation for AzureSQLProtectedItem.

func (AzureSQLProtectedItem) MarshalJSON

func (aspi AzureSQLProtectedItem) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AzureSQLProtectedItem.

type AzureSQLProtectedItemExtendedInfo

type AzureSQLProtectedItemExtendedInfo struct {
	// OldestRecoveryPoint - The oldest backup copy available for this item in the service.
	OldestRecoveryPoint *date.Time `json:"oldestRecoveryPoint,omitempty"`
	// RecoveryPointCount - The number of available backup copies for this backup item.
	RecoveryPointCount *int32 `json:"recoveryPointCount,omitempty"`
	// PolicyState - The state of the backup policy associated with this backup item.
	PolicyState *string `json:"policyState,omitempty"`
}

AzureSQLProtectedItemExtendedInfo additional information for the Azure SQL specific backup item.

type AzureSQLProtectionPolicy

type AzureSQLProtectionPolicy struct {
	// RetentionPolicy - The retention policy details.
	RetentionPolicy BasicRetentionPolicy `json:"retentionPolicy,omitempty"`
	// ProtectedItemsCount - The number of items associated with this policy.
	ProtectedItemsCount *int32 `json:"protectedItemsCount,omitempty"`
	// BackupManagementType - Possible values include: 'BackupManagementTypeProtectionPolicy', 'BackupManagementTypeAzureIaasVM', 'BackupManagementTypeMAB', 'BackupManagementTypeAzureSQL'
	BackupManagementType ManagementTypeBasicProtectionPolicy `json:"backupManagementType,omitempty"`
}

AzureSQLProtectionPolicy the Azure SQL workload-specific backup policy.

func (AzureSQLProtectionPolicy) AsAzureIaaSVMProtectionPolicy

func (aspp AzureSQLProtectionPolicy) AsAzureIaaSVMProtectionPolicy() (*AzureIaaSVMProtectionPolicy, bool)

AsAzureIaaSVMProtectionPolicy is the BasicProtectionPolicy implementation for AzureSQLProtectionPolicy.

func (AzureSQLProtectionPolicy) AsAzureSQLProtectionPolicy

func (aspp AzureSQLProtectionPolicy) AsAzureSQLProtectionPolicy() (*AzureSQLProtectionPolicy, bool)

AsAzureSQLProtectionPolicy is the BasicProtectionPolicy implementation for AzureSQLProtectionPolicy.

func (AzureSQLProtectionPolicy) AsBasicProtectionPolicy

func (aspp AzureSQLProtectionPolicy) AsBasicProtectionPolicy() (BasicProtectionPolicy, bool)

AsBasicProtectionPolicy is the BasicProtectionPolicy implementation for AzureSQLProtectionPolicy.

func (AzureSQLProtectionPolicy) AsMabProtectionPolicy

func (aspp AzureSQLProtectionPolicy) AsMabProtectionPolicy() (*MabProtectionPolicy, bool)

AsMabProtectionPolicy is the BasicProtectionPolicy implementation for AzureSQLProtectionPolicy.

func (AzureSQLProtectionPolicy) AsProtectionPolicy

func (aspp AzureSQLProtectionPolicy) AsProtectionPolicy() (*ProtectionPolicy, bool)

AsProtectionPolicy is the BasicProtectionPolicy implementation for AzureSQLProtectionPolicy.

func (AzureSQLProtectionPolicy) MarshalJSON

func (aspp AzureSQLProtectionPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AzureSQLProtectionPolicy.

func (*AzureSQLProtectionPolicy) UnmarshalJSON

func (aspp *AzureSQLProtectionPolicy) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AzureSQLProtectionPolicy struct.

type BEKDetails

type BEKDetails struct {
	// SecretURL - Secret refers to Bitlocker Encryption Key (BEK). The Secret can be unlocked by the key (or KEK).
	SecretURL *string `json:"secretUrl,omitempty"`
	// SecretVaultID - ID of the Key Vault where this Secret is stored.
	SecretVaultID *string `json:"secretVaultId,omitempty"`
	// SecretData - Bitlocker Encryption Key (BEK) data.
	SecretData *string `json:"secretData,omitempty"`
}

BEKDetails BEK is Bitlocker Encryption Key.

type BMSBackupEngineQueryObject

type BMSBackupEngineQueryObject struct {
	// BackupManagementType - The backup management type associated with the backup engine. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL'
	BackupManagementType ManagementType `json:"backupManagementType,omitempty"`
}

BMSBackupEngineQueryObject the query parameters used to GET the list of backup engines.

type BMSContainerQueryObject

type BMSContainerQueryObject struct {
	// BackupManagementType - The backup management type for this container. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL'
	BackupManagementType ManagementType `json:"backupManagementType,omitempty"`
	// Status - The status of the container's registration with the Recovery Services vault.
	Status *string `json:"status,omitempty"`
	// FriendlyName - The friendly name of the container.
	FriendlyName *string `json:"friendlyName,omitempty"`
}

BMSContainerQueryObject the query filters that can be used with the list containers API.

type BMSPOQueryObject

type BMSPOQueryObject struct {
	// BackupManagementType - The backup management type. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL'
	BackupManagementType ManagementType `json:"backupManagementType,omitempty"`
	// Status - The backup status query parameter.
	Status *string `json:"status,omitempty"`
	// FriendlyName - The friendly name for the item.
	FriendlyName *string `json:"friendlyName,omitempty"`
}

BMSPOQueryObject filters the list of backup items.

type BMSRPQueryObject

type BMSRPQueryObject struct {
	// StartDate - Use backup copies created after this time.
	StartDate *date.Time `json:"startDate,omitempty"`
	// EndDate - Use backup copies created before this time.
	EndDate *date.Time `json:"endDate,omitempty"`
}

BMSRPQueryObject filters the list of backup copies based on the property.

type BackupsClient

type BackupsClient struct {
	BaseClient
}

BackupsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service

func NewBackupsClient

func NewBackupsClient(subscriptionID string) BackupsClient

NewBackupsClient creates an instance of the BackupsClient client.

func NewBackupsClientWithBaseURI

func NewBackupsClientWithBaseURI(baseURI string, subscriptionID string) BackupsClient

NewBackupsClientWithBaseURI creates an instance of the BackupsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (BackupsClient) Trigger

func (client BackupsClient) Trigger(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, resourceBackupRequest RequestResource) (result autorest.Response, err error)

Trigger triggers the backup job for the specified backup item. This is an asynchronous operation. To know the status of the operation, call GetProtectedItemOperationResult API. Parameters: vaultName - the name of the Recovery Services vault. resourceGroupName - the name of the resource group associated with the Recovery Services vault. fabricName - the fabric name associated with the backup item. containerName - the container name associated with the backup item. protectedItemName - the name of backup item used in this POST operation. resourceBackupRequest - the resource backup request.

func (BackupsClient) TriggerPreparer

func (client BackupsClient) TriggerPreparer(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, resourceBackupRequest RequestResource) (*http.Request, error)

TriggerPreparer prepares the Trigger request.

func (BackupsClient) TriggerResponder

func (client BackupsClient) TriggerResponder(resp *http.Response) (result autorest.Response, err error)

TriggerResponder handles the response to the Trigger request. The method always closes the http.Response Body.

func (BackupsClient) TriggerSender

func (client BackupsClient) TriggerSender(req *http.Request) (*http.Response, error)

TriggerSender sends the Trigger request. The method will close the http.Response Body if it receives an error.

type BaseClient

type BaseClient struct {
	autorest.Client
	BaseURI        string
	SubscriptionID string
}

BaseClient is the base client for Backup.

func New

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

type BasicAzureIaaSVMProtectedItem

type BasicAzureIaaSVMProtectedItem interface {
	AsAzureIaaSComputeVMProtectedItem() (*AzureIaaSComputeVMProtectedItem, bool)
	AsAzureIaaSClassicComputeVMProtectedItem() (*AzureIaaSClassicComputeVMProtectedItem, bool)
	AsAzureIaaSVMProtectedItem() (*AzureIaaSVMProtectedItem, bool)
}

BasicAzureIaaSVMProtectedItem this Azure VM workload-specific (also known as IaaS VM workload-specific) backup item has been backed up.

type BasicEngineBase

type BasicEngineBase interface {
	AsAzureBackupServerEngine() (*AzureBackupServerEngine, bool)
	AsDpmBackupEngine() (*DpmBackupEngine, bool)
	AsEngineBase() (*EngineBase, bool)
}

BasicEngineBase the base backup engine class. All workload-specific backup engines derive from this class.

type BasicILRRequest

type BasicILRRequest interface {
	AsIaasVMILRRegistrationRequest() (*IaasVMILRRegistrationRequest, bool)
	AsILRRequest() (*ILRRequest, bool)
}

BasicILRRequest parameters to restore file or folders API.

type BasicIaaSVMContainer

type BasicIaaSVMContainer interface {
	AsAzureIaaSComputeVMContainer() (*AzureIaaSComputeVMContainer, bool)
	AsAzureIaaSClassicComputeVMContainer() (*AzureIaaSClassicComputeVMContainer, bool)
	AsIaaSVMContainer() (*IaaSVMContainer, bool)
}

BasicIaaSVMContainer iaaS VM workload-specific container.

type BasicIaaSVMProtectableItem

type BasicIaaSVMProtectableItem interface {
	AsAzureIaaSComputeVMProtectableItem() (*AzureIaaSComputeVMProtectableItem, bool)
	AsAzureIaaSClassicComputeVMProtectableItem() (*AzureIaaSClassicComputeVMProtectableItem, bool)
	AsIaaSVMProtectableItem() (*IaaSVMProtectableItem, bool)
}

BasicIaaSVMProtectableItem this Azure VM workload-specific (also known as IaaS VM workload-specific) backup item can be backed up.

type BasicJob

type BasicJob interface {
	AsAzureIaaSVMJob() (*AzureIaaSVMJob, bool)
	AsDpmJob() (*DpmJob, bool)
	AsMabJob() (*MabJob, bool)
	AsJob() (*Job, bool)
}

BasicJob defines workload-agnostic properties for a job.

type BasicOperationResultInfoBase

type BasicOperationResultInfoBase interface {
	AsOperationResultInfo() (*OperationResultInfo, bool)
	AsExportJobsOperationResultInfo() (*ExportJobsOperationResultInfo, bool)
	AsOperationResultInfoBase() (*OperationResultInfoBase, bool)
}

BasicOperationResultInfoBase the base class for operation result information.

type BasicOperationStatusExtendedInfo

type BasicOperationStatusExtendedInfo interface {
	AsOperationStatusJobExtendedInfo() (*OperationStatusJobExtendedInfo, bool)
	AsOperationStatusProvisionILRExtendedInfo() (*OperationStatusProvisionILRExtendedInfo, bool)
	AsOperationStatusJobsExtendedInfo() (*OperationStatusJobsExtendedInfo, bool)
	AsOperationStatusExtendedInfo() (*OperationStatusExtendedInfo, bool)
}

BasicOperationStatusExtendedInfo the base class for additional information about the operation status.

type BasicProtectedItem

type BasicProtectedItem interface {
	AsAzureIaaSVMProtectedItem() (*AzureIaaSVMProtectedItem, bool)
	AsBasicAzureIaaSVMProtectedItem() (BasicAzureIaaSVMProtectedItem, bool)
	AsMabFileFolderProtectedItem() (*MabFileFolderProtectedItem, bool)
	AsAzureSQLProtectedItem() (*AzureSQLProtectedItem, bool)
	AsAzureIaaSComputeVMProtectedItem() (*AzureIaaSComputeVMProtectedItem, bool)
	AsAzureIaaSClassicComputeVMProtectedItem() (*AzureIaaSClassicComputeVMProtectedItem, bool)
	AsProtectedItem() (*ProtectedItem, bool)
}

BasicProtectedItem the base class for backup items.

type BasicProtectionContainer

type BasicProtectionContainer interface {
	AsAzureSQLContainer() (*AzureSQLContainer, bool)
	AsIaaSVMContainer() (*IaaSVMContainer, bool)
	AsBasicIaaSVMContainer() (BasicIaaSVMContainer, bool)
	AsMabContainer() (*MabContainer, bool)
	AsAzureIaaSComputeVMContainer() (*AzureIaaSComputeVMContainer, bool)
	AsAzureIaaSClassicComputeVMContainer() (*AzureIaaSClassicComputeVMContainer, bool)
	AsProtectionContainer() (*ProtectionContainer, bool)
}

BasicProtectionContainer the base class for a container with backup items. Containers with specific workloads are derived from this class.

type BasicProtectionPolicy

type BasicProtectionPolicy interface {
	AsAzureIaaSVMProtectionPolicy() (*AzureIaaSVMProtectionPolicy, bool)
	AsMabProtectionPolicy() (*MabProtectionPolicy, bool)
	AsAzureSQLProtectionPolicy() (*AzureSQLProtectionPolicy, bool)
	AsProtectionPolicy() (*ProtectionPolicy, bool)
}

BasicProtectionPolicy the base class for a backup policy. Workload-specific backup policies are derived from this class.

type BasicRecoveryPoint

type BasicRecoveryPoint interface {
	AsIaasVMRecoveryPoint() (*IaasVMRecoveryPoint, bool)
	AsGenericRecoveryPoint() (*GenericRecoveryPoint, bool)
	AsRecoveryPoint() (*RecoveryPoint, bool)
}

BasicRecoveryPoint the base class for backup copies. Workload-specific backup copies are derived from this class.

type BasicRequest

type BasicRequest interface {
	AsIaasVMBackupRequest() (*IaasVMBackupRequest, bool)
	AsRequest() (*Request, bool)
}

BasicRequest the base class for a backup request. Workload-specific backup requests are derived from this class.

type BasicRestoreRequest

type BasicRestoreRequest interface {
	AsIaasVMRestoreRequest() (*IaasVMRestoreRequest, bool)
	AsRestoreRequest() (*RestoreRequest, bool)
}

BasicRestoreRequest the base class for restore requests. Workload-specific restore requests are derived from this class.

type BasicRetentionPolicy

type BasicRetentionPolicy interface {
	AsSimpleRetentionPolicy() (*SimpleRetentionPolicy, bool)
	AsLongTermRetentionPolicy() (*LongTermRetentionPolicy, bool)
	AsRetentionPolicy() (*RetentionPolicy, bool)
}

BasicRetentionPolicy the base class for retention policy.

type BasicSchedulePolicy

type BasicSchedulePolicy interface {
	AsLongTermSchedulePolicy() (*LongTermSchedulePolicy, bool)
	AsSimpleSchedulePolicy() (*SimpleSchedulePolicy, bool)
	AsSchedulePolicy() (*SchedulePolicy, bool)
}

BasicSchedulePolicy the base class for backup schedules.

type BasicWorkloadProtectableItem

type BasicWorkloadProtectableItem interface {
	AsIaaSVMProtectableItem() (*IaaSVMProtectableItem, bool)
	AsBasicIaaSVMProtectableItem() (BasicIaaSVMProtectableItem, bool)
	AsAzureIaaSComputeVMProtectableItem() (*AzureIaaSComputeVMProtectableItem, bool)
	AsAzureIaaSClassicComputeVMProtectableItem() (*AzureIaaSClassicComputeVMProtectableItem, bool)
	AsWorkloadProtectableItem() (*WorkloadProtectableItem, bool)
}

BasicWorkloadProtectableItem the base class for backup item. Workload-specific backup items are derived from this class.

type ClientScriptForConnect

type ClientScriptForConnect struct {
	// ScriptContent - File content of the client script for file or folder restore.
	ScriptContent *string `json:"scriptContent,omitempty"`
	// ScriptExtension - File extension of the client script for the file or folder restore. Some examples of the extension are: .ps1 and .sh.
	ScriptExtension *string `json:"scriptExtension,omitempty"`
	// OsType - The operating system platform ("Windows" or "Linux") for which this file or folder restore client script works.
	OsType *string `json:"osType,omitempty"`
}

ClientScriptForConnect client script details for the file or folder restore.

type DailyRetentionFormat

type DailyRetentionFormat struct {
	// DaysOfTheMonth - List of days of the month.
	DaysOfTheMonth *[]Day `json:"daysOfTheMonth,omitempty"`
}

DailyRetentionFormat daily retention format.

type DailyRetentionSchedule

type DailyRetentionSchedule struct {
	// RetentionTimes - The retention times of retention policy.
	RetentionTimes *[]date.Time `json:"retentionTimes,omitempty"`
	// RetentionDuration - The retention duration of retention policy.
	RetentionDuration *RetentionDuration `json:"retentionDuration,omitempty"`
}

DailyRetentionSchedule daily retention schedule.

type DataSourceType

type DataSourceType string

DataSourceType enumerates the values for data source type.

const (
	// AzureSQLDb ...
	AzureSQLDb DataSourceType = "AzureSqlDb"
	// DPMUnknown ...
	DPMUnknown DataSourceType = "DPMUnknown"
	// Exchange ...
	Exchange DataSourceType = "Exchange"
	// FileFolder ...
	FileFolder DataSourceType = "FileFolder"
	// Invalid ...
	Invalid DataSourceType = "Invalid"
	// Sharepoint ...
	Sharepoint DataSourceType = "Sharepoint"
	// SQLDB ...
	SQLDB DataSourceType = "SQLDB"
	// VM ...
	VM DataSourceType = "VM"
)

func PossibleDataSourceTypeValues

func PossibleDataSourceTypeValues() []DataSourceType

PossibleDataSourceTypeValues returns an array of possible values for the DataSourceType const type.

type Day

type Day struct {
	Date   *int32 `json:"date,omitempty"`
	IsLast *bool  `json:"isLast,omitempty"`
}

Day day of the week.

type DayOfWeek

type DayOfWeek string

DayOfWeek enumerates the values for day of week.

const (
	// Friday ...
	Friday DayOfWeek = "Friday"
	// Monday ...
	Monday DayOfWeek = "Monday"
	// Saturday ...
	Saturday DayOfWeek = "Saturday"
	// Sunday ...
	Sunday DayOfWeek = "Sunday"
	// Thursday ...
	Thursday DayOfWeek = "Thursday"
	// Tuesday ...
	Tuesday DayOfWeek = "Tuesday"
	// Wednesday ...
	Wednesday DayOfWeek = "Wednesday"
)

func PossibleDayOfWeekValues

func PossibleDayOfWeekValues() []DayOfWeek

PossibleDayOfWeekValues returns an array of possible values for the DayOfWeek const type.

type DpmBackupEngine

type DpmBackupEngine struct {
	// FriendlyName - The friendly name of the backup engine.
	FriendlyName *string `json:"friendlyName,omitempty"`
	// BackupManagementType - The type of backup management associated with the backup engine. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL'
	BackupManagementType ManagementType `json:"backupManagementType,omitempty"`
	// RegistrationStatus - The status of the backup engine registration with the Recovery Services vault.
	RegistrationStatus *string `json:"registrationStatus,omitempty"`
	// HealthStatus - The backup status of the backup engine.
	HealthStatus *string `json:"healthStatus,omitempty"`
	// CanReRegister - The flag indicating whether the backup engine be registered again, once the engine has been initially registered.
	CanReRegister *bool `json:"canReRegister,omitempty"`
	// BackupEngineID - The ID of the backup engine.
	BackupEngineID *string `json:"backupEngineId,omitempty"`
	// BackupEngineType - Possible values include: 'BackupEngineTypeBackupEngineBase', 'BackupEngineTypeAzureBackupServerEngine', 'BackupEngineTypeDpmBackupEngine'
	BackupEngineType EngineType `json:"backupEngineType,omitempty"`
}

DpmBackupEngine the backup engine type when Data Protection Manager (DPM) is used to manage backups.

func (DpmBackupEngine) AsAzureBackupServerEngine

func (dbe DpmBackupEngine) AsAzureBackupServerEngine() (*AzureBackupServerEngine, bool)

AsAzureBackupServerEngine is the BasicEngineBase implementation for DpmBackupEngine.

func (DpmBackupEngine) AsBasicEngineBase

func (dbe DpmBackupEngine) AsBasicEngineBase() (BasicEngineBase, bool)

AsBasicEngineBase is the BasicEngineBase implementation for DpmBackupEngine.

func (DpmBackupEngine) AsDpmBackupEngine

func (dbe DpmBackupEngine) AsDpmBackupEngine() (*DpmBackupEngine, bool)

AsDpmBackupEngine is the BasicEngineBase implementation for DpmBackupEngine.

func (DpmBackupEngine) AsEngineBase

func (dbe DpmBackupEngine) AsEngineBase() (*EngineBase, bool)

AsEngineBase is the BasicEngineBase implementation for DpmBackupEngine.

func (DpmBackupEngine) MarshalJSON

func (dbe DpmBackupEngine) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DpmBackupEngine.

type DpmErrorInfo

type DpmErrorInfo struct {
	// ErrorString - Localized error string.
	ErrorString *string `json:"errorString,omitempty"`
	// Recommendations - The list of localized recommendations for the error string.
	Recommendations *[]string `json:"recommendations,omitempty"`
}

DpmErrorInfo DPM workload-specific error information.

type DpmJob

type DpmJob struct {
	// Duration - The time elapsed for the job.
	Duration *string `json:"duration,omitempty"`
	// DpmServerName - DPM server name managing the backup item or backup job.
	DpmServerName *string `json:"dpmServerName,omitempty"`
	// ContainerName - The name of the cluster or server protecting the current backup item, if any.
	ContainerName *string `json:"containerName,omitempty"`
	// ContainerType - The type of container.
	ContainerType *string `json:"containerType,omitempty"`
	// WorkloadType - The type of backup item.
	WorkloadType *string `json:"workloadType,omitempty"`
	// ActionsInfo - The state or actions applicable on this job, such as Cancel or Retry.
	ActionsInfo *[]JobSupportedAction `json:"actionsInfo,omitempty"`
	// ErrorDetails - The errors.
	ErrorDetails *[]DpmErrorInfo `json:"errorDetails,omitempty"`
	// ExtendedInfo - Additional information for this job.
	ExtendedInfo *DpmJobExtendedInfo `json:"extendedInfo,omitempty"`
	// EntityFriendlyName - The friendly name of the entity on which the current job is executing.
	EntityFriendlyName *string `json:"entityFriendlyName,omitempty"`
	// BackupManagementType - The backup management type for the current job. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL'
	BackupManagementType ManagementType `json:"backupManagementType,omitempty"`
	// Operation - The operation name.
	Operation *string `json:"operation,omitempty"`
	// Status - The job status.
	Status *string `json:"status,omitempty"`
	// StartTime - The start time.
	StartTime *date.Time `json:"startTime,omitempty"`
	// EndTime - The end time.
	EndTime *date.Time `json:"endTime,omitempty"`
	// ActivityID - ActivityId of job.
	ActivityID *string `json:"activityId,omitempty"`
	// JobType - Possible values include: 'JobTypeJob', 'JobTypeAzureIaaSVMJob', 'JobTypeDpmJob', 'JobTypeMabJob'
	JobType JobType `json:"jobType,omitempty"`
}

DpmJob the DPM workload-specific job object.

func (DpmJob) AsAzureIaaSVMJob

func (dj DpmJob) AsAzureIaaSVMJob() (*AzureIaaSVMJob, bool)

AsAzureIaaSVMJob is the BasicJob implementation for DpmJob.

func (DpmJob) AsBasicJob

func (dj DpmJob) AsBasicJob() (BasicJob, bool)

AsBasicJob is the BasicJob implementation for DpmJob.

func (DpmJob) AsDpmJob

func (dj DpmJob) AsDpmJob() (*DpmJob, bool)

AsDpmJob is the BasicJob implementation for DpmJob.

func (DpmJob) AsJob

func (dj DpmJob) AsJob() (*Job, bool)

AsJob is the BasicJob implementation for DpmJob.

func (DpmJob) AsMabJob

func (dj DpmJob) AsMabJob() (*MabJob, bool)

AsMabJob is the BasicJob implementation for DpmJob.

func (DpmJob) MarshalJSON

func (dj DpmJob) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DpmJob.

type DpmJobExtendedInfo

type DpmJobExtendedInfo struct {
	// TasksList - List of tasks associated with this job.
	TasksList *[]DpmJobTaskDetails `json:"tasksList,omitempty"`
	// PropertyBag - The job properties.
	PropertyBag map[string]*string `json:"propertyBag"`
	// DynamicErrorMessage - Non-localized error message on job execution.
	DynamicErrorMessage *string `json:"dynamicErrorMessage,omitempty"`
}

DpmJobExtendedInfo additional information on the DPM workload-specific job.

func (DpmJobExtendedInfo) MarshalJSON

func (djei DpmJobExtendedInfo) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DpmJobExtendedInfo.

type DpmJobTaskDetails

type DpmJobTaskDetails struct {
	// TaskID - The task display name.
	TaskID *string `json:"taskId,omitempty"`
	// StartTime - The start time.
	StartTime *date.Time `json:"startTime,omitempty"`
	// EndTime - The end time.
	EndTime *date.Time `json:"endTime,omitempty"`
	// Duration - The time elapsed for task.
	Duration *string `json:"duration,omitempty"`
	// Status - The status.
	Status *string `json:"status,omitempty"`
}

DpmJobTaskDetails DPM workload-specific job task details.

type EncryptionDetails

type EncryptionDetails struct {
	// EncryptionEnabled - Identifies whether the backup copy represents an encrypted VM at the time of backup.
	EncryptionEnabled *bool `json:"encryptionEnabled,omitempty"`
	// KekURL - URL of the Key Encryption Key (KEK).
	KekURL *string `json:"kekUrl,omitempty"`
	// SecretKeyURL - URL of the Bitlocker Encryption Key (BEK).
	SecretKeyURL *string `json:"secretKeyUrl,omitempty"`
	// KekVaultID - The ID of Key Vault where the Key Encryption Key (KEK) is stored.
	KekVaultID *string `json:"kekVaultId,omitempty"`
	// SecretKeyVaultID - The ID of Key Vault where the Bitlocker Encryption Key (BEK), or Secret, is stored.
	SecretKeyVaultID *string `json:"secretKeyVaultId,omitempty"`
}

EncryptionDetails details needed if the VM was encrypted at the time of backup.

type EngineBase

type EngineBase struct {
	// FriendlyName - The friendly name of the backup engine.
	FriendlyName *string `json:"friendlyName,omitempty"`
	// BackupManagementType - The type of backup management associated with the backup engine. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL'
	BackupManagementType ManagementType `json:"backupManagementType,omitempty"`
	// RegistrationStatus - The status of the backup engine registration with the Recovery Services vault.
	RegistrationStatus *string `json:"registrationStatus,omitempty"`
	// HealthStatus - The backup status of the backup engine.
	HealthStatus *string `json:"healthStatus,omitempty"`
	// CanReRegister - The flag indicating whether the backup engine be registered again, once the engine has been initially registered.
	CanReRegister *bool `json:"canReRegister,omitempty"`
	// BackupEngineID - The ID of the backup engine.
	BackupEngineID *string `json:"backupEngineId,omitempty"`
	// BackupEngineType - Possible values include: 'BackupEngineTypeBackupEngineBase', 'BackupEngineTypeAzureBackupServerEngine', 'BackupEngineTypeDpmBackupEngine'
	BackupEngineType EngineType `json:"backupEngineType,omitempty"`
}

EngineBase the base backup engine class. All workload-specific backup engines derive from this class.

func (EngineBase) AsAzureBackupServerEngine

func (eb EngineBase) AsAzureBackupServerEngine() (*AzureBackupServerEngine, bool)

AsAzureBackupServerEngine is the BasicEngineBase implementation for EngineBase.

func (EngineBase) AsBasicEngineBase

func (eb EngineBase) AsBasicEngineBase() (BasicEngineBase, bool)

AsBasicEngineBase is the BasicEngineBase implementation for EngineBase.

func (EngineBase) AsDpmBackupEngine

func (eb EngineBase) AsDpmBackupEngine() (*DpmBackupEngine, bool)

AsDpmBackupEngine is the BasicEngineBase implementation for EngineBase.

func (EngineBase) AsEngineBase

func (eb EngineBase) AsEngineBase() (*EngineBase, bool)

AsEngineBase is the BasicEngineBase implementation for EngineBase.

func (EngineBase) MarshalJSON

func (eb EngineBase) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EngineBase.

type EngineBaseResource

type EngineBaseResource struct {
	Properties BasicEngineBase `json:"properties,omitempty"`
	// ID - Resource ID represents the complete path to the resource.
	ID *string `json:"id,omitempty"`
	// Name - Resource name associated with the resource.
	Name *string `json:"name,omitempty"`
	// Type - Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
	Type *string `json:"type,omitempty"`
	// Location - Resource location.
	Location *string `json:"location,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
	// ETag - Optional ETag.
	ETag *string `json:"eTag,omitempty"`
}

EngineBaseResource the base backup engine class. All workload-specific backup engines derive from this class.

func (EngineBaseResource) MarshalJSON

func (ebr EngineBaseResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EngineBaseResource.

func (*EngineBaseResource) UnmarshalJSON

func (ebr *EngineBaseResource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for EngineBaseResource struct.

type EngineBaseResourceList

type EngineBaseResourceList struct {
	autorest.Response `json:"-"`
	// Value - List of resources.
	Value *[]EngineBaseResource `json:"value,omitempty"`
	// NextLink - The URI to GET the next page of resources. Call ListNext() gets the next page of resources.
	NextLink *string `json:"nextLink,omitempty"`
}

EngineBaseResourceList list of BackupEngineBase resources

func (EngineBaseResourceList) IsEmpty

func (ebrl EngineBaseResourceList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type EngineBaseResourceListIterator

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

EngineBaseResourceListIterator provides access to a complete listing of EngineBaseResource values.

func NewEngineBaseResourceListIterator

func NewEngineBaseResourceListIterator(page EngineBaseResourceListPage) EngineBaseResourceListIterator

Creates a new instance of the EngineBaseResourceListIterator type.

func (*EngineBaseResourceListIterator) Next

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*EngineBaseResourceListIterator) NextWithContext

func (iter *EngineBaseResourceListIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (EngineBaseResourceListIterator) NotDone

func (iter EngineBaseResourceListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (EngineBaseResourceListIterator) Response

Response returns the raw server response from the last page request.

func (EngineBaseResourceListIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type EngineBaseResourceListPage

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

EngineBaseResourceListPage contains a page of EngineBaseResource values.

func NewEngineBaseResourceListPage

Creates a new instance of the EngineBaseResourceListPage type.

func (*EngineBaseResourceListPage) Next

func (page *EngineBaseResourceListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*EngineBaseResourceListPage) NextWithContext

func (page *EngineBaseResourceListPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (EngineBaseResourceListPage) NotDone

func (page EngineBaseResourceListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (EngineBaseResourceListPage) Response

Response returns the raw server response from the last page request.

func (EngineBaseResourceListPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type EngineType

type EngineType string

EngineType enumerates the values for engine type.

const (
	// BackupEngineTypeAzureBackupServerEngine ...
	BackupEngineTypeAzureBackupServerEngine EngineType = "AzureBackupServerEngine"
	// BackupEngineTypeBackupEngineBase ...
	BackupEngineTypeBackupEngineBase EngineType = "BackupEngineBase"
	// BackupEngineTypeDpmBackupEngine ...
	BackupEngineTypeDpmBackupEngine EngineType = "DpmBackupEngine"
)

func PossibleEngineTypeValues

func PossibleEngineTypeValues() []EngineType

PossibleEngineTypeValues returns an array of possible values for the EngineType const type.

type EnginesClient

type EnginesClient struct {
	BaseClient
}

EnginesClient is the open API 2.0 Specs for Azure RecoveryServices Backup service

func NewEnginesClient

func NewEnginesClient(subscriptionID string) EnginesClient

NewEnginesClient creates an instance of the EnginesClient client.

func NewEnginesClientWithBaseURI

func NewEnginesClientWithBaseURI(baseURI string, subscriptionID string) EnginesClient

NewEnginesClientWithBaseURI creates an instance of the EnginesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (EnginesClient) Get

func (client EnginesClient) Get(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result EngineBaseResourceListPage, err error)

Get the backup management servers registered to a Recovery Services vault. This returns a pageable list of servers. Parameters: vaultName - the name of the Recovery Services vault. resourceGroupName - the name of the resource group associated with the Recovery Services vault. filter - use this filter to choose the specific backup management server. backupManagementType { AzureIaasVM, MAB, DPM, AzureBackupServer, AzureSql }. skipToken - the Skip Token filter.

func (EnginesClient) GetComplete

func (client EnginesClient) GetComplete(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result EngineBaseResourceListIterator, err error)

GetComplete enumerates all values, automatically crossing page boundaries as required.

func (EnginesClient) GetPreparer

func (client EnginesClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (*http.Request, error)

GetPreparer prepares the Get request.

func (EnginesClient) GetResponder

func (client EnginesClient) GetResponder(resp *http.Response) (result EngineBaseResourceList, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (EnginesClient) GetSender

func (client EnginesClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

type ExportJobsOperationResultInfo

type ExportJobsOperationResultInfo struct {
	// BlobURL - The URL of the blob. The serialized string, which is the list of jobs, is exported to this URL.
	BlobURL *string `json:"blobUrl,omitempty"`
	// BlobSasKey - The Shared Access Signatures (SAS) key used to access the blob. The key expires after 15 minutes.
	BlobSasKey *string `json:"blobSasKey,omitempty"`
	// ObjectType - Possible values include: 'ObjectTypeOperationResultInfoBase', 'ObjectTypeOperationResultInfo', 'ObjectTypeExportJobsOperationResultInfo'
	ObjectType ObjectTypeBasicOperationResultInfoBase `json:"objectType,omitempty"`
}

ExportJobsOperationResultInfo this class is used to send blob details after exporting jobs.

func (ExportJobsOperationResultInfo) AsBasicOperationResultInfoBase

func (ejori ExportJobsOperationResultInfo) AsBasicOperationResultInfoBase() (BasicOperationResultInfoBase, bool)

AsBasicOperationResultInfoBase is the BasicOperationResultInfoBase implementation for ExportJobsOperationResultInfo.

func (ExportJobsOperationResultInfo) AsExportJobsOperationResultInfo

func (ejori ExportJobsOperationResultInfo) AsExportJobsOperationResultInfo() (*ExportJobsOperationResultInfo, bool)

AsExportJobsOperationResultInfo is the BasicOperationResultInfoBase implementation for ExportJobsOperationResultInfo.

func (ExportJobsOperationResultInfo) AsOperationResultInfo

func (ejori ExportJobsOperationResultInfo) AsOperationResultInfo() (*OperationResultInfo, bool)

AsOperationResultInfo is the BasicOperationResultInfoBase implementation for ExportJobsOperationResultInfo.

func (ExportJobsOperationResultInfo) AsOperationResultInfoBase

func (ejori ExportJobsOperationResultInfo) AsOperationResultInfoBase() (*OperationResultInfoBase, bool)

AsOperationResultInfoBase is the BasicOperationResultInfoBase implementation for ExportJobsOperationResultInfo.

func (ExportJobsOperationResultInfo) MarshalJSON

func (ejori ExportJobsOperationResultInfo) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ExportJobsOperationResultInfo.

type ExportJobsOperationResultsClient

type ExportJobsOperationResultsClient struct {
	BaseClient
}

ExportJobsOperationResultsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service

func NewExportJobsOperationResultsClient

func NewExportJobsOperationResultsClient(subscriptionID string) ExportJobsOperationResultsClient

NewExportJobsOperationResultsClient creates an instance of the ExportJobsOperationResultsClient client.

func NewExportJobsOperationResultsClientWithBaseURI

func NewExportJobsOperationResultsClientWithBaseURI(baseURI string, subscriptionID string) ExportJobsOperationResultsClient

NewExportJobsOperationResultsClientWithBaseURI creates an instance of the ExportJobsOperationResultsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ExportJobsOperationResultsClient) Get

func (client ExportJobsOperationResultsClient) Get(ctx context.Context, vaultName string, resourceGroupName string, operationID string) (result OperationResultInfoBaseResource, err error)

Get gets the result of the operation triggered by the ExportJob API. Parameters: vaultName - the name of the Recovery Services vault. resourceGroupName - the name of the resource group associated with the Recovery Services vault. operationID - the ID associated with the export job.

func (ExportJobsOperationResultsClient) GetPreparer

func (client ExportJobsOperationResultsClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string, operationID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ExportJobsOperationResultsClient) GetResponder

func (client ExportJobsOperationResultsClient) GetResponder(resp *http.Response) (result OperationResultInfoBaseResource, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ExportJobsOperationResultsClient) GetSender

func (client ExportJobsOperationResultsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

type GenericRecoveryPoint

type GenericRecoveryPoint struct {
	// FriendlyName - Friendly name of the backup copy.
	FriendlyName *string `json:"friendlyName,omitempty"`
	// RecoveryPointType - Type of the backup copy.
	RecoveryPointType *string `json:"recoveryPointType,omitempty"`
	// RecoveryPointTime - The time when this backup copy was created.
	RecoveryPointTime *date.Time `json:"recoveryPointTime,omitempty"`
	// RecoveryPointAdditionalInfo - Additional information associated with this backup copy.
	RecoveryPointAdditionalInfo *string `json:"recoveryPointAdditionalInfo,omitempty"`
	// ObjectType - Possible values include: 'ObjectTypeRecoveryPoint', 'ObjectTypeIaasVMRecoveryPoint', 'ObjectTypeGenericRecoveryPoint'
	ObjectType ObjectTypeBasicRecoveryPoint `json:"objectType,omitempty"`
}

GenericRecoveryPoint generic backup copy.

func (GenericRecoveryPoint) AsBasicRecoveryPoint

func (grp GenericRecoveryPoint) AsBasicRecoveryPoint() (BasicRecoveryPoint, bool)

AsBasicRecoveryPoint is the BasicRecoveryPoint implementation for GenericRecoveryPoint.

func (GenericRecoveryPoint) AsGenericRecoveryPoint

func (grp GenericRecoveryPoint) AsGenericRecoveryPoint() (*GenericRecoveryPoint, bool)

AsGenericRecoveryPoint is the BasicRecoveryPoint implementation for GenericRecoveryPoint.

func (GenericRecoveryPoint) AsIaasVMRecoveryPoint

func (grp GenericRecoveryPoint) AsIaasVMRecoveryPoint() (*IaasVMRecoveryPoint, bool)

AsIaasVMRecoveryPoint is the BasicRecoveryPoint implementation for GenericRecoveryPoint.

func (GenericRecoveryPoint) AsRecoveryPoint

func (grp GenericRecoveryPoint) AsRecoveryPoint() (*RecoveryPoint, bool)

AsRecoveryPoint is the BasicRecoveryPoint implementation for GenericRecoveryPoint.

func (GenericRecoveryPoint) MarshalJSON

func (grp GenericRecoveryPoint) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for GenericRecoveryPoint.

type GetProtectedItemQueryObject

type GetProtectedItemQueryObject struct {
	// Expand - Specifies if the additional information should be provided for this item.
	Expand *string `json:"expand,omitempty"`
}

GetProtectedItemQueryObject this object filters the list of backup items.

type HTTPStatusCode

type HTTPStatusCode string

HTTPStatusCode enumerates the values for http status code.

const (
	// Accepted ...
	Accepted HTTPStatusCode = "Accepted"
	// Ambiguous ...
	Ambiguous HTTPStatusCode = "Ambiguous"
	// BadGateway ...
	BadGateway HTTPStatusCode = "BadGateway"
	// BadRequest ...
	BadRequest HTTPStatusCode = "BadRequest"
	// Conflict ...
	Conflict HTTPStatusCode = "Conflict"
	// Continue ...
	Continue HTTPStatusCode = "Continue"
	// Created ...
	Created HTTPStatusCode = "Created"
	// ExpectationFailed ...
	ExpectationFailed HTTPStatusCode = "ExpectationFailed"
	// Forbidden ...
	Forbidden HTTPStatusCode = "Forbidden"
	// Found ...
	Found HTTPStatusCode = "Found"
	// GatewayTimeout ...
	GatewayTimeout HTTPStatusCode = "GatewayTimeout"
	// Gone ...
	Gone HTTPStatusCode = "Gone"
	// HTTPVersionNotSupported ...
	HTTPVersionNotSupported HTTPStatusCode = "HttpVersionNotSupported"
	// InternalServerError ...
	InternalServerError HTTPStatusCode = "InternalServerError"
	// LengthRequired ...
	LengthRequired HTTPStatusCode = "LengthRequired"
	// MethodNotAllowed ...
	MethodNotAllowed HTTPStatusCode = "MethodNotAllowed"
	// Moved ...
	Moved HTTPStatusCode = "Moved"
	// MovedPermanently ...
	MovedPermanently HTTPStatusCode = "MovedPermanently"
	// MultipleChoices ...
	MultipleChoices HTTPStatusCode = "MultipleChoices"
	// NoContent ...
	NoContent HTTPStatusCode = "NoContent"
	// NonAuthoritativeInformation ...
	NonAuthoritativeInformation HTTPStatusCode = "NonAuthoritativeInformation"
	// NotAcceptable ...
	NotAcceptable HTTPStatusCode = "NotAcceptable"
	// NotFound ...
	NotFound HTTPStatusCode = "NotFound"
	// NotImplemented ...
	NotImplemented HTTPStatusCode = "NotImplemented"
	// NotModified ...
	NotModified HTTPStatusCode = "NotModified"
	// OK ...
	OK HTTPStatusCode = "OK"
	// PartialContent ...
	PartialContent HTTPStatusCode = "PartialContent"
	// PaymentRequired ...
	PaymentRequired HTTPStatusCode = "PaymentRequired"
	// PreconditionFailed ...
	PreconditionFailed HTTPStatusCode = "PreconditionFailed"
	// ProxyAuthenticationRequired ...
	ProxyAuthenticationRequired HTTPStatusCode = "ProxyAuthenticationRequired"
	// Redirect ...
	Redirect HTTPStatusCode = "Redirect"
	// RedirectKeepVerb ...
	RedirectKeepVerb HTTPStatusCode = "RedirectKeepVerb"
	// RedirectMethod ...
	RedirectMethod HTTPStatusCode = "RedirectMethod"
	// RequestedRangeNotSatisfiable ...
	RequestedRangeNotSatisfiable HTTPStatusCode = "RequestedRangeNotSatisfiable"
	// RequestEntityTooLarge ...
	RequestEntityTooLarge HTTPStatusCode = "RequestEntityTooLarge"
	// RequestTimeout ...
	RequestTimeout HTTPStatusCode = "RequestTimeout"
	// RequestURITooLong ...
	RequestURITooLong HTTPStatusCode = "RequestUriTooLong"
	// ResetContent ...
	ResetContent HTTPStatusCode = "ResetContent"
	// SeeOther ...
	SeeOther HTTPStatusCode = "SeeOther"
	// ServiceUnavailable ...
	ServiceUnavailable HTTPStatusCode = "ServiceUnavailable"
	// SwitchingProtocols ...
	SwitchingProtocols HTTPStatusCode = "SwitchingProtocols"
	// TemporaryRedirect ...
	TemporaryRedirect HTTPStatusCode = "TemporaryRedirect"
	// Unauthorized ...
	Unauthorized HTTPStatusCode = "Unauthorized"
	// UnsupportedMediaType ...
	UnsupportedMediaType HTTPStatusCode = "UnsupportedMediaType"
	// Unused ...
	Unused HTTPStatusCode = "Unused"
	// UpgradeRequired ...
	UpgradeRequired HTTPStatusCode = "UpgradeRequired"
	// UseProxy ...
	UseProxy HTTPStatusCode = "UseProxy"
)

func PossibleHTTPStatusCodeValues

func PossibleHTTPStatusCodeValues() []HTTPStatusCode

PossibleHTTPStatusCodeValues returns an array of possible values for the HTTPStatusCode const type.

type ILRRequest

type ILRRequest struct {
	// ObjectType - Possible values include: 'ObjectTypeILRRequest', 'ObjectTypeIaasVMILRRegistrationRequest'
	ObjectType ObjectTypeBasicILRRequest `json:"objectType,omitempty"`
}

ILRRequest parameters to restore file or folders API.

func (ILRRequest) AsBasicILRRequest

func (ir ILRRequest) AsBasicILRRequest() (BasicILRRequest, bool)

AsBasicILRRequest is the BasicILRRequest implementation for ILRRequest.

func (ILRRequest) AsILRRequest

func (ir ILRRequest) AsILRRequest() (*ILRRequest, bool)

AsILRRequest is the BasicILRRequest implementation for ILRRequest.

func (ILRRequest) AsIaasVMILRRegistrationRequest

func (ir ILRRequest) AsIaasVMILRRegistrationRequest() (*IaasVMILRRegistrationRequest, bool)

AsIaasVMILRRegistrationRequest is the BasicILRRequest implementation for ILRRequest.

func (ILRRequest) MarshalJSON

func (ir ILRRequest) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ILRRequest.

type ILRRequestResource

type ILRRequestResource struct {
	Properties BasicILRRequest `json:"properties,omitempty"`
	// ID - Resource ID represents the complete path to the resource.
	ID *string `json:"id,omitempty"`
	// Name - Resource name associated with the resource.
	Name *string `json:"name,omitempty"`
	// Type - Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
	Type *string `json:"type,omitempty"`
	// Location - Resource location.
	Location *string `json:"location,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
	// ETag - Optional ETag.
	ETag *string `json:"eTag,omitempty"`
}

ILRRequestResource the parameters to restore files or folders.

func (ILRRequestResource) MarshalJSON

func (irr ILRRequestResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ILRRequestResource.

func (*ILRRequestResource) UnmarshalJSON

func (irr *ILRRequestResource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ILRRequestResource struct.

type IaaSVMContainer

type IaaSVMContainer struct {
	// VirtualMachineID - The fully qualified Resource Manager URL of the virtual machine represented by this Azure IaaS VM container.
	VirtualMachineID *string `json:"virtualMachineId,omitempty"`
	// VirtualMachineVersion - Specifies whether the container represents a classic or a Resource Manager-deployed virtual machine.
	VirtualMachineVersion *string `json:"virtualMachineVersion,omitempty"`
	// ResourceGroup - The resource group name associated with the Recovery Services vault.
	ResourceGroup *string `json:"resourceGroup,omitempty"`
	// FriendlyName - Friendly name of the container.
	FriendlyName *string `json:"friendlyName,omitempty"`
	// BackupManagementType - The backup management type for the container. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL'
	BackupManagementType ManagementType `json:"backupManagementType,omitempty"`
	// RegistrationStatus - The container's registration status with the Recovery Services vault.
	RegistrationStatus *string `json:"registrationStatus,omitempty"`
	// HealthStatus - The status of the container's health.
	HealthStatus *string `json:"healthStatus,omitempty"`
	// ContainerType - READ-ONLY; The type assigned to the container. The values to use for each of these properties are:<br/> 1. Compute Azure VM is Microsoft.Compute/virtualMachines<br/> 2. Classic Compute Azure VM is Microsoft.ClassicCompute/virtualMachines<br/> 3. Windows machines (like Azure Backup Server and DPM) is Windows<br/> 4. Azure SQL instance is AzureSqlContainer.
	ContainerType *string `json:"containerType,omitempty"`
	// ProtectableObjectType - Possible values include: 'ProtectableObjectTypeProtectionContainer', 'ProtectableObjectTypeAzureSQLContainer', 'ProtectableObjectTypeIaaSVMContainer', 'ProtectableObjectTypeMABWindowsContainer', 'ProtectableObjectTypeMicrosoftComputevirtualMachines', 'ProtectableObjectTypeMicrosoftClassicComputevirtualMachines'
	ProtectableObjectType ProtectableObjectType `json:"protectableObjectType,omitempty"`
}

IaaSVMContainer iaaS VM workload-specific container.

func (IaaSVMContainer) AsAzureIaaSClassicComputeVMContainer

func (isc IaaSVMContainer) AsAzureIaaSClassicComputeVMContainer() (*AzureIaaSClassicComputeVMContainer, bool)

AsAzureIaaSClassicComputeVMContainer is the BasicProtectionContainer implementation for IaaSVMContainer.

func (IaaSVMContainer) AsAzureIaaSComputeVMContainer

func (isc IaaSVMContainer) AsAzureIaaSComputeVMContainer() (*AzureIaaSComputeVMContainer, bool)

AsAzureIaaSComputeVMContainer is the BasicProtectionContainer implementation for IaaSVMContainer.

func (IaaSVMContainer) AsAzureSQLContainer

func (isc IaaSVMContainer) AsAzureSQLContainer() (*AzureSQLContainer, bool)

AsAzureSQLContainer is the BasicProtectionContainer implementation for IaaSVMContainer.

func (IaaSVMContainer) AsBasicIaaSVMContainer

func (isc IaaSVMContainer) AsBasicIaaSVMContainer() (BasicIaaSVMContainer, bool)

AsBasicIaaSVMContainer is the BasicProtectionContainer implementation for IaaSVMContainer.

func (IaaSVMContainer) AsBasicProtectionContainer

func (isc IaaSVMContainer) AsBasicProtectionContainer() (BasicProtectionContainer, bool)

AsBasicProtectionContainer is the BasicProtectionContainer implementation for IaaSVMContainer.

func (IaaSVMContainer) AsIaaSVMContainer

func (isc IaaSVMContainer) AsIaaSVMContainer() (*IaaSVMContainer, bool)

AsIaaSVMContainer is the BasicProtectionContainer implementation for IaaSVMContainer.

func (IaaSVMContainer) AsMabContainer

func (isc IaaSVMContainer) AsMabContainer() (*MabContainer, bool)

AsMabContainer is the BasicProtectionContainer implementation for IaaSVMContainer.

func (IaaSVMContainer) AsProtectionContainer

func (isc IaaSVMContainer) AsProtectionContainer() (*ProtectionContainer, bool)

AsProtectionContainer is the BasicProtectionContainer implementation for IaaSVMContainer.

func (IaaSVMContainer) MarshalJSON

func (isc IaaSVMContainer) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for IaaSVMContainer.

type IaaSVMProtectableItem

type IaaSVMProtectableItem struct {
	// VirtualMachineID - The fully qualified Resource Manager ID of the virtual machine.
	VirtualMachineID *string `json:"virtualMachineId,omitempty"`
	// BackupManagementType - The backup management type.
	BackupManagementType *string `json:"backupManagementType,omitempty"`
	// FriendlyName - The friendly name of the backup item.
	FriendlyName *string `json:"friendlyName,omitempty"`
	// ProtectionState - The state of the back up item. Possible values include: 'ProtectionStatusInvalid', 'ProtectionStatusNotProtected', 'ProtectionStatusProtecting', 'ProtectionStatusProtected'
	ProtectionState ProtectionStatus `json:"protectionState,omitempty"`
	// ProtectableItemType - Possible values include: 'ProtectableItemTypeWorkloadProtectableItem', 'ProtectableItemTypeIaaSVMProtectableItem', 'ProtectableItemTypeMicrosoftComputevirtualMachines', 'ProtectableItemTypeMicrosoftClassicComputevirtualMachines'
	ProtectableItemType ProtectableItemType `json:"protectableItemType,omitempty"`
}

IaaSVMProtectableItem this Azure VM workload-specific (also known as IaaS VM workload-specific) backup item can be backed up.

func (IaaSVMProtectableItem) AsAzureIaaSClassicComputeVMProtectableItem

func (ispi IaaSVMProtectableItem) AsAzureIaaSClassicComputeVMProtectableItem() (*AzureIaaSClassicComputeVMProtectableItem, bool)

AsAzureIaaSClassicComputeVMProtectableItem is the BasicWorkloadProtectableItem implementation for IaaSVMProtectableItem.

func (IaaSVMProtectableItem) AsAzureIaaSComputeVMProtectableItem

func (ispi IaaSVMProtectableItem) AsAzureIaaSComputeVMProtectableItem() (*AzureIaaSComputeVMProtectableItem, bool)

AsAzureIaaSComputeVMProtectableItem is the BasicWorkloadProtectableItem implementation for IaaSVMProtectableItem.

func (IaaSVMProtectableItem) AsBasicIaaSVMProtectableItem

func (ispi IaaSVMProtectableItem) AsBasicIaaSVMProtectableItem() (BasicIaaSVMProtectableItem, bool)

AsBasicIaaSVMProtectableItem is the BasicWorkloadProtectableItem implementation for IaaSVMProtectableItem.

func (IaaSVMProtectableItem) AsBasicWorkloadProtectableItem

func (ispi IaaSVMProtectableItem) AsBasicWorkloadProtectableItem() (BasicWorkloadProtectableItem, bool)

AsBasicWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for IaaSVMProtectableItem.

func (IaaSVMProtectableItem) AsIaaSVMProtectableItem

func (ispi IaaSVMProtectableItem) AsIaaSVMProtectableItem() (*IaaSVMProtectableItem, bool)

AsIaaSVMProtectableItem is the BasicWorkloadProtectableItem implementation for IaaSVMProtectableItem.

func (IaaSVMProtectableItem) AsWorkloadProtectableItem

func (ispi IaaSVMProtectableItem) AsWorkloadProtectableItem() (*WorkloadProtectableItem, bool)

AsWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for IaaSVMProtectableItem.

func (IaaSVMProtectableItem) MarshalJSON

func (ispi IaaSVMProtectableItem) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for IaaSVMProtectableItem.

type IaasVMBackupRequest

type IaasVMBackupRequest struct {
	// RecoveryPointExpiryTimeInUTC - The backup copy will expire after the time specified. The time is in UTC format.
	RecoveryPointExpiryTimeInUTC *date.Time `json:"recoveryPointExpiryTimeInUTC,omitempty"`
	// ObjectType - Possible values include: 'ObjectTypeBackupRequest', 'ObjectTypeIaasVMBackupRequest'
	ObjectType ObjectTypeBasicRequest `json:"objectType,omitempty"`
}

IaasVMBackupRequest this is an Azure VM (also known as IaaS VM) workload-specific backup request.

func (IaasVMBackupRequest) AsBasicRequest

func (ivbr IaasVMBackupRequest) AsBasicRequest() (BasicRequest, bool)

AsBasicRequest is the BasicRequest implementation for IaasVMBackupRequest.

func (IaasVMBackupRequest) AsIaasVMBackupRequest

func (ivbr IaasVMBackupRequest) AsIaasVMBackupRequest() (*IaasVMBackupRequest, bool)

AsIaasVMBackupRequest is the BasicRequest implementation for IaasVMBackupRequest.

func (IaasVMBackupRequest) AsRequest

func (ivbr IaasVMBackupRequest) AsRequest() (*Request, bool)

AsRequest is the BasicRequest implementation for IaasVMBackupRequest.

func (IaasVMBackupRequest) MarshalJSON

func (ivbr IaasVMBackupRequest) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for IaasVMBackupRequest.

type IaasVMILRRegistrationRequest

type IaasVMILRRegistrationRequest struct {
	// RecoveryPointID - The ID of the IaaS VM recovery point used to restore the files or folders.
	RecoveryPointID *string `json:"recoveryPointId,omitempty"`
	// VirtualMachineID - The fully qualified Resource Manager ID of the VM used to restore the files or folders.
	VirtualMachineID *string `json:"virtualMachineId,omitempty"`
	// InitiatorName - The iSCSI initiator name.
	InitiatorName *string `json:"initiatorName,omitempty"`
	// RenewExistingRegistration - Whether to renew the existing registration with the iSCSI server.
	RenewExistingRegistration *bool `json:"renewExistingRegistration,omitempty"`
	// ObjectType - Possible values include: 'ObjectTypeILRRequest', 'ObjectTypeIaasVMILRRegistrationRequest'
	ObjectType ObjectTypeBasicILRRequest `json:"objectType,omitempty"`
}

IaasVMILRRegistrationRequest restore files or folders from a backup copy, or recovery point, of an IaaS (or Azure) VM.

func (IaasVMILRRegistrationRequest) AsBasicILRRequest

func (ivrr IaasVMILRRegistrationRequest) AsBasicILRRequest() (BasicILRRequest, bool)

AsBasicILRRequest is the BasicILRRequest implementation for IaasVMILRRegistrationRequest.

func (IaasVMILRRegistrationRequest) AsILRRequest

func (ivrr IaasVMILRRegistrationRequest) AsILRRequest() (*ILRRequest, bool)

AsILRRequest is the BasicILRRequest implementation for IaasVMILRRegistrationRequest.

func (IaasVMILRRegistrationRequest) AsIaasVMILRRegistrationRequest

func (ivrr IaasVMILRRegistrationRequest) AsIaasVMILRRegistrationRequest() (*IaasVMILRRegistrationRequest, bool)

AsIaasVMILRRegistrationRequest is the BasicILRRequest implementation for IaasVMILRRegistrationRequest.

func (IaasVMILRRegistrationRequest) MarshalJSON

func (ivrr IaasVMILRRegistrationRequest) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for IaasVMILRRegistrationRequest.

type IaasVMRecoveryPoint

type IaasVMRecoveryPoint struct {
	// RecoveryPointType - Type of the backup copy.
	RecoveryPointType *string `json:"recoveryPointType,omitempty"`
	// RecoveryPointTime - The date and time when the backup copy was created.
	RecoveryPointTime *date.Time `json:"recoveryPointTime,omitempty"`
	// RecoveryPointAdditionalInfo - Additional information associated with this backup copy.
	RecoveryPointAdditionalInfo *string `json:"recoveryPointAdditionalInfo,omitempty"`
	// SourceVMStorageType - The storage type for the VM whose backup copy was created.
	SourceVMStorageType *string `json:"sourceVMStorageType,omitempty"`
	// IsSourceVMEncrypted - Identifies whether the VM was encrypted when the backup copy is created.
	IsSourceVMEncrypted *bool `json:"isSourceVMEncrypted,omitempty"`
	// KeyAndSecret - Required details for recovering an encrypted VM. Applicable only when IsSourceVMEncrypted is true.
	KeyAndSecret *KeyAndSecretDetails `json:"keyAndSecret,omitempty"`
	// IsInstantILRSessionActive - Answer to the question - Is the session to recover items from this backup copy still active.
	IsInstantILRSessionActive *bool `json:"isInstantILRSessionActive,omitempty"`
	// ObjectType - Possible values include: 'ObjectTypeRecoveryPoint', 'ObjectTypeIaasVMRecoveryPoint', 'ObjectTypeGenericRecoveryPoint'
	ObjectType ObjectTypeBasicRecoveryPoint `json:"objectType,omitempty"`
}

IaasVMRecoveryPoint azure VM (also known as IaaS VM) workload-specific backup copy.

func (IaasVMRecoveryPoint) AsBasicRecoveryPoint

func (ivrp IaasVMRecoveryPoint) AsBasicRecoveryPoint() (BasicRecoveryPoint, bool)

AsBasicRecoveryPoint is the BasicRecoveryPoint implementation for IaasVMRecoveryPoint.

func (IaasVMRecoveryPoint) AsGenericRecoveryPoint

func (ivrp IaasVMRecoveryPoint) AsGenericRecoveryPoint() (*GenericRecoveryPoint, bool)

AsGenericRecoveryPoint is the BasicRecoveryPoint implementation for IaasVMRecoveryPoint.

func (IaasVMRecoveryPoint) AsIaasVMRecoveryPoint

func (ivrp IaasVMRecoveryPoint) AsIaasVMRecoveryPoint() (*IaasVMRecoveryPoint, bool)

AsIaasVMRecoveryPoint is the BasicRecoveryPoint implementation for IaasVMRecoveryPoint.

func (IaasVMRecoveryPoint) AsRecoveryPoint

func (ivrp IaasVMRecoveryPoint) AsRecoveryPoint() (*RecoveryPoint, bool)

AsRecoveryPoint is the BasicRecoveryPoint implementation for IaasVMRecoveryPoint.

func (IaasVMRecoveryPoint) MarshalJSON

func (ivrp IaasVMRecoveryPoint) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for IaasVMRecoveryPoint.

type IaasVMRestoreRequest

type IaasVMRestoreRequest struct {
	// RecoveryPointID - The ID of the backup copy to be recovered.
	RecoveryPointID *string `json:"recoveryPointId,omitempty"`
	// RecoveryType - The type of this recovery. Possible values include: 'RecoveryTypeInvalid', 'RecoveryTypeOriginalLocation', 'RecoveryTypeAlternateLocation', 'RecoveryTypeRestoreDisks'
	RecoveryType RecoveryType `json:"recoveryType,omitempty"`
	// SourceResourceID - The fully qualified Resource Manager ID of the VM being recovered.
	SourceResourceID *string `json:"sourceResourceId,omitempty"`
	// TargetVirtualMachineID - The complete Resource Manager ID of the VM that will be created.
	//             For example: /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}
	TargetVirtualMachineID *string `json:"targetVirtualMachineId,omitempty"`
	// TargetResourceGroupID - The Resource Manager ID of the resource group you're creating for this VM and other artifacts.
	//     For example: /subscriptions/{subId}/resourcegroups/{rg}
	TargetResourceGroupID *string `json:"targetResourceGroupId,omitempty"`
	// StorageAccountID - The fully qualified Resource Manager ID of the storage account where the VM will be restored.
	StorageAccountID *string `json:"storageAccountId,omitempty"`
	// VirtualNetworkID - This is the virtual network ID of the vnet that is attached to the virtual machine.
	//             Your join action permissions are validated during the linked access.
	VirtualNetworkID *string `json:"virtualNetworkId,omitempty"`
	// SubnetID - Subnet ID is the identifier for the VM to be restored. For Classic VMs the subnet ID would be {VnetID}/Subnet/{SubnetName}, and for the Resource Manager VMs, the subnet ID would be the Resource Manager resource ID used to represent the subnet.
	SubnetID *string `json:"subnetId,omitempty"`
	// TargetDomainNameID - The fully qualified Resource Manager ID of the domain name to be associated with the VM being restored. Use the Resource Manager ID to identify the domain, only for Classic-deployed virtual machines.
	TargetDomainNameID *string `json:"targetDomainNameId,omitempty"`
	// Region - The region where the virtual machine is restored.
	Region *string `json:"region,omitempty"`
	// AffinityGroup - The affinity group associated with the VM to be restored. Affinity groups are used only for Classic-deployed virtual machines.
	AffinityGroup *string `json:"affinityGroup,omitempty"`
	// CreateNewCloudService - Asks the question if a new cloud service should be created while restoring the VM. If the answer is false, the VM is restored to the same cloud service.
	CreateNewCloudService *bool `json:"createNewCloudService,omitempty"`
	// EncryptionDetails - If the VM was encrypted at the time of backup, these details are needed.
	EncryptionDetails *EncryptionDetails `json:"encryptionDetails,omitempty"`
	// ObjectType - Possible values include: 'ObjectTypeRestoreRequest', 'ObjectTypeIaasVMRestoreRequest'
	ObjectType ObjectTypeBasicRestoreRequest `json:"objectType,omitempty"`
}

IaasVMRestoreRequest iaaS VM workload-specific restore.

func (IaasVMRestoreRequest) AsBasicRestoreRequest

func (ivrr IaasVMRestoreRequest) AsBasicRestoreRequest() (BasicRestoreRequest, bool)

AsBasicRestoreRequest is the BasicRestoreRequest implementation for IaasVMRestoreRequest.

func (IaasVMRestoreRequest) AsIaasVMRestoreRequest

func (ivrr IaasVMRestoreRequest) AsIaasVMRestoreRequest() (*IaasVMRestoreRequest, bool)

AsIaasVMRestoreRequest is the BasicRestoreRequest implementation for IaasVMRestoreRequest.

func (IaasVMRestoreRequest) AsRestoreRequest

func (ivrr IaasVMRestoreRequest) AsRestoreRequest() (*RestoreRequest, bool)

AsRestoreRequest is the BasicRestoreRequest implementation for IaasVMRestoreRequest.

func (IaasVMRestoreRequest) MarshalJSON

func (ivrr IaasVMRestoreRequest) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for IaasVMRestoreRequest.

type InstantItemRecoveryTarget

type InstantItemRecoveryTarget struct {
	// ClientScripts - List of client scripts.
	ClientScripts *[]ClientScriptForConnect `json:"clientScripts,omitempty"`
}

InstantItemRecoveryTarget target details for the file or folder restore.

type ItemLevelRecoveryConnectionsClient

type ItemLevelRecoveryConnectionsClient struct {
	BaseClient
}

ItemLevelRecoveryConnectionsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service

func NewItemLevelRecoveryConnectionsClient

func NewItemLevelRecoveryConnectionsClient(subscriptionID string) ItemLevelRecoveryConnectionsClient

NewItemLevelRecoveryConnectionsClient creates an instance of the ItemLevelRecoveryConnectionsClient client.

func NewItemLevelRecoveryConnectionsClientWithBaseURI

func NewItemLevelRecoveryConnectionsClientWithBaseURI(baseURI string, subscriptionID string) ItemLevelRecoveryConnectionsClient

NewItemLevelRecoveryConnectionsClientWithBaseURI creates an instance of the ItemLevelRecoveryConnectionsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ItemLevelRecoveryConnectionsClient) Provision

func (client ItemLevelRecoveryConnectionsClient) Provision(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, recoveryPointID string, resourceILRRequest ILRRequestResource) (result autorest.Response, err error)

Provision provisions a script which invokes an iSCSI connection to the backup data. Executing this script opens File Explorer which displays the recoverable files and folders. This is an asynchronous operation. To get the provisioning status, call GetProtectedItemOperationResult API. Parameters: vaultName - the name of the Recovery Services vault. resourceGroupName - the name of the resource group associated with the Recovery Services vault. fabricName - the fabric name associated with the backup items. containerName - the container name associated with the backup items. protectedItemName - the name of the backup item whose files or folders are to be restored. recoveryPointID - the recovery point ID for backup data. The iSCSI connection will be provisioned for this backup data. resourceILRRequest - the resource Item Level Recovery (ILR) request.

func (ItemLevelRecoveryConnectionsClient) ProvisionPreparer

func (client ItemLevelRecoveryConnectionsClient) ProvisionPreparer(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, recoveryPointID string, resourceILRRequest ILRRequestResource) (*http.Request, error)

ProvisionPreparer prepares the Provision request.

func (ItemLevelRecoveryConnectionsClient) ProvisionResponder

func (client ItemLevelRecoveryConnectionsClient) ProvisionResponder(resp *http.Response) (result autorest.Response, err error)

ProvisionResponder handles the response to the Provision request. The method always closes the http.Response Body.

func (ItemLevelRecoveryConnectionsClient) ProvisionSender

func (client ItemLevelRecoveryConnectionsClient) ProvisionSender(req *http.Request) (*http.Response, error)

ProvisionSender sends the Provision request. The method will close the http.Response Body if it receives an error.

func (ItemLevelRecoveryConnectionsClient) Revoke

func (client ItemLevelRecoveryConnectionsClient) Revoke(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, recoveryPointID string) (result autorest.Response, err error)

Revoke revokes an iSCSI connection which can be used to download a script. Executing this script opens a file explorer displaying all recoverable files and folders. This is an asynchronous operation. Parameters: vaultName - the name of the Recovery Services vault. resourceGroupName - the name of the resource group associated with the Recovery Services vault. fabricName - the fabric name associated with the backup items. The value allowed is Azure. containerName - the container name associated with the backup items. protectedItemName - the name of the backup items whose files or folders will be restored. recoveryPointID - the string that identifies the recovery point. The iSCSI connection will be revoked for this protected data.

func (ItemLevelRecoveryConnectionsClient) RevokePreparer

func (client ItemLevelRecoveryConnectionsClient) RevokePreparer(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, recoveryPointID string) (*http.Request, error)

RevokePreparer prepares the Revoke request.

func (ItemLevelRecoveryConnectionsClient) RevokeResponder

func (client ItemLevelRecoveryConnectionsClient) RevokeResponder(resp *http.Response) (result autorest.Response, err error)

RevokeResponder handles the response to the Revoke request. The method always closes the http.Response Body.

func (ItemLevelRecoveryConnectionsClient) RevokeSender

func (client ItemLevelRecoveryConnectionsClient) RevokeSender(req *http.Request) (*http.Response, error)

RevokeSender sends the Revoke request. The method will close the http.Response Body if it receives an error.

type ItemType

type ItemType string

ItemType enumerates the values for item type.

const (
	// ItemTypeAzureSQLDb ...
	ItemTypeAzureSQLDb ItemType = "AzureSqlDb"
	// ItemTypeDPMUnknown ...
	ItemTypeDPMUnknown ItemType = "DPMUnknown"
	// ItemTypeExchange ...
	ItemTypeExchange ItemType = "Exchange"
	// ItemTypeFileFolder ...
	ItemTypeFileFolder ItemType = "FileFolder"
	// ItemTypeInvalid ...
	ItemTypeInvalid ItemType = "Invalid"
	// ItemTypeSharepoint ...
	ItemTypeSharepoint ItemType = "Sharepoint"
	// ItemTypeSQLDB ...
	ItemTypeSQLDB ItemType = "SQLDB"
	// ItemTypeVM ...
	ItemTypeVM ItemType = "VM"
)

func PossibleItemTypeValues

func PossibleItemTypeValues() []ItemType

PossibleItemTypeValues returns an array of possible values for the ItemType const type.

type Job

type Job struct {
	// EntityFriendlyName - The friendly name of the entity on which the current job is executing.
	EntityFriendlyName *string `json:"entityFriendlyName,omitempty"`
	// BackupManagementType - The backup management type for the current job. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL'
	BackupManagementType ManagementType `json:"backupManagementType,omitempty"`
	// Operation - The operation name.
	Operation *string `json:"operation,omitempty"`
	// Status - The job status.
	Status *string `json:"status,omitempty"`
	// StartTime - The start time.
	StartTime *date.Time `json:"startTime,omitempty"`
	// EndTime - The end time.
	EndTime *date.Time `json:"endTime,omitempty"`
	// ActivityID - ActivityId of job.
	ActivityID *string `json:"activityId,omitempty"`
	// JobType - Possible values include: 'JobTypeJob', 'JobTypeAzureIaaSVMJob', 'JobTypeDpmJob', 'JobTypeMabJob'
	JobType JobType `json:"jobType,omitempty"`
}

Job defines workload-agnostic properties for a job.

func (Job) AsAzureIaaSVMJob

func (j Job) AsAzureIaaSVMJob() (*AzureIaaSVMJob, bool)

AsAzureIaaSVMJob is the BasicJob implementation for Job.

func (Job) AsBasicJob

func (j Job) AsBasicJob() (BasicJob, bool)

AsBasicJob is the BasicJob implementation for Job.

func (Job) AsDpmJob

func (j Job) AsDpmJob() (*DpmJob, bool)

AsDpmJob is the BasicJob implementation for Job.

func (Job) AsJob

func (j Job) AsJob() (*Job, bool)

AsJob is the BasicJob implementation for Job.

func (Job) AsMabJob

func (j Job) AsMabJob() (*MabJob, bool)

AsMabJob is the BasicJob implementation for Job.

func (Job) MarshalJSON

func (j Job) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Job.

type JobCancellationsClient

type JobCancellationsClient struct {
	BaseClient
}

JobCancellationsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service

func NewJobCancellationsClient

func NewJobCancellationsClient(subscriptionID string) JobCancellationsClient

NewJobCancellationsClient creates an instance of the JobCancellationsClient client.

func NewJobCancellationsClientWithBaseURI

func NewJobCancellationsClientWithBaseURI(baseURI string, subscriptionID string) JobCancellationsClient

NewJobCancellationsClientWithBaseURI creates an instance of the JobCancellationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (JobCancellationsClient) Trigger

func (client JobCancellationsClient) Trigger(ctx context.Context, vaultName string, resourceGroupName string, jobName string) (result autorest.Response, err error)

Trigger cancels the job. This is an asynchronous operation. To know the status of the cancellation, call the GetCancelOperationResult API. Parameters: vaultName - the name of the Recovery Services vault. resourceGroupName - the name of the resource group associated with the Recovery Services vault. jobName - name of the job to cancel.

func (JobCancellationsClient) TriggerPreparer

func (client JobCancellationsClient) TriggerPreparer(ctx context.Context, vaultName string, resourceGroupName string, jobName string) (*http.Request, error)

TriggerPreparer prepares the Trigger request.

func (JobCancellationsClient) TriggerResponder

func (client JobCancellationsClient) TriggerResponder(resp *http.Response) (result autorest.Response, err error)

TriggerResponder handles the response to the Trigger request. The method always closes the http.Response Body.

func (JobCancellationsClient) TriggerSender

func (client JobCancellationsClient) TriggerSender(req *http.Request) (*http.Response, error)

TriggerSender sends the Trigger request. The method will close the http.Response Body if it receives an error.

type JobDetailsClient

type JobDetailsClient struct {
	BaseClient
}

JobDetailsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service

func NewJobDetailsClient

func NewJobDetailsClient(subscriptionID string) JobDetailsClient

NewJobDetailsClient creates an instance of the JobDetailsClient client.

func NewJobDetailsClientWithBaseURI

func NewJobDetailsClientWithBaseURI(baseURI string, subscriptionID string) JobDetailsClient

NewJobDetailsClientWithBaseURI creates an instance of the JobDetailsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (JobDetailsClient) Get

func (client JobDetailsClient) Get(ctx context.Context, vaultName string, resourceGroupName string, jobName string) (result JobResource, err error)

Get gets extended information associated with the job. Parameters: vaultName - the name of the Recovery Services vault. resourceGroupName - the name of the resource group associated with the Recovery Services vault. jobName - name of the job associated with this GET operation.

func (JobDetailsClient) GetPreparer

func (client JobDetailsClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string, jobName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (JobDetailsClient) GetResponder

func (client JobDetailsClient) GetResponder(resp *http.Response) (result JobResource, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (JobDetailsClient) GetSender

func (client JobDetailsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

type JobOperationResultsClient

type JobOperationResultsClient struct {
	BaseClient
}

JobOperationResultsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service

func NewJobOperationResultsClient

func NewJobOperationResultsClient(subscriptionID string) JobOperationResultsClient

NewJobOperationResultsClient creates an instance of the JobOperationResultsClient client.

func NewJobOperationResultsClientWithBaseURI

func NewJobOperationResultsClientWithBaseURI(baseURI string, subscriptionID string) JobOperationResultsClient

NewJobOperationResultsClientWithBaseURI creates an instance of the JobOperationResultsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (JobOperationResultsClient) Get

func (client JobOperationResultsClient) Get(ctx context.Context, vaultName string, resourceGroupName string, jobName string, operationID string) (result autorest.Response, err error)

Get gets the result of the operation. Parameters: vaultName - the name of the Recovery Services vault. resourceGroupName - the name of the resource group associated with the Recovery Services vault. jobName - job name associated with this GET operation. operationID - operationID associated with this GET operation.

func (JobOperationResultsClient) GetPreparer

func (client JobOperationResultsClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string, jobName string, operationID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (JobOperationResultsClient) GetResponder

func (client JobOperationResultsClient) GetResponder(resp *http.Response) (result autorest.Response, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (JobOperationResultsClient) GetSender

func (client JobOperationResultsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

type JobOperationType

type JobOperationType string

JobOperationType enumerates the values for job operation type.

const (
	// JobOperationTypeBackup ...
	JobOperationTypeBackup JobOperationType = "Backup"
	// JobOperationTypeConfigureBackup ...
	JobOperationTypeConfigureBackup JobOperationType = "ConfigureBackup"
	// JobOperationTypeDeleteBackupData ...
	JobOperationTypeDeleteBackupData JobOperationType = "DeleteBackupData"
	// JobOperationTypeDisableBackup ...
	JobOperationTypeDisableBackup JobOperationType = "DisableBackup"
	// JobOperationTypeInvalid ...
	JobOperationTypeInvalid JobOperationType = "Invalid"
	// JobOperationTypeRestore ...
	JobOperationTypeRestore JobOperationType = "Restore"
)

func PossibleJobOperationTypeValues

func PossibleJobOperationTypeValues() []JobOperationType

PossibleJobOperationTypeValues returns an array of possible values for the JobOperationType const type.

type JobQueryObject

type JobQueryObject struct {
	// Status - Status of the job. Possible values include: 'JobStatusInvalid', 'JobStatusInProgress', 'JobStatusCompleted', 'JobStatusFailed', 'JobStatusCompletedWithWarnings', 'JobStatusCancelled', 'JobStatusCancelling'
	Status JobStatus `json:"status,omitempty"`
	// BackupManagementType - Type of backup management for the job. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL'
	BackupManagementType ManagementType `json:"backupManagementType,omitempty"`
	// Operation - The type of operation. Possible values include: 'JobOperationTypeInvalid', 'JobOperationTypeConfigureBackup', 'JobOperationTypeBackup', 'JobOperationTypeRestore', 'JobOperationTypeDisableBackup', 'JobOperationTypeDeleteBackupData'
	Operation JobOperationType `json:"operation,omitempty"`
	// JobID - The ID of the job. Each jobID is unique.
	JobID *string `json:"jobId,omitempty"`
	// StartTime - The time when the job starts. The value is in UTC.
	StartTime *date.Time `json:"startTime,omitempty"`
	// EndTime - The time when the job ends. The value is in UTC.
	EndTime *date.Time `json:"endTime,omitempty"`
}

JobQueryObject the filters to list the jobs.

type JobResource

type JobResource struct {
	autorest.Response `json:"-"`
	Properties        BasicJob `json:"properties,omitempty"`
	// ID - Resource ID represents the complete path to the resource.
	ID *string `json:"id,omitempty"`
	// Name - Resource name associated with the resource.
	Name *string `json:"name,omitempty"`
	// Type - Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
	Type *string `json:"type,omitempty"`
	// Location - Resource location.
	Location *string `json:"location,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
	// ETag - Optional ETag.
	ETag *string `json:"eTag,omitempty"`
}

JobResource defines the workload-agnostic properties for a job.

func (JobResource) MarshalJSON

func (jr JobResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for JobResource.

func (*JobResource) UnmarshalJSON

func (jr *JobResource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for JobResource struct.

type JobResourceList

type JobResourceList struct {
	autorest.Response `json:"-"`
	// Value - List of resources.
	Value *[]JobResource `json:"value,omitempty"`
	// NextLink - The URI to GET the next page of resources. Call ListNext() gets the next page of resources.
	NextLink *string `json:"nextLink,omitempty"`
}

JobResourceList list of Job resources.

func (JobResourceList) IsEmpty

func (jrl JobResourceList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type JobResourceListIterator

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

JobResourceListIterator provides access to a complete listing of JobResource values.

func NewJobResourceListIterator

func NewJobResourceListIterator(page JobResourceListPage) JobResourceListIterator

Creates a new instance of the JobResourceListIterator type.

func (*JobResourceListIterator) Next

func (iter *JobResourceListIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*JobResourceListIterator) NextWithContext

func (iter *JobResourceListIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (JobResourceListIterator) NotDone

func (iter JobResourceListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (JobResourceListIterator) Response

func (iter JobResourceListIterator) Response() JobResourceList

Response returns the raw server response from the last page request.

func (JobResourceListIterator) Value

func (iter JobResourceListIterator) Value() JobResource

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type JobResourceListPage

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

JobResourceListPage contains a page of JobResource values.

func NewJobResourceListPage

func NewJobResourceListPage(cur JobResourceList, getNextPage func(context.Context, JobResourceList) (JobResourceList, error)) JobResourceListPage

Creates a new instance of the JobResourceListPage type.

func (*JobResourceListPage) Next

func (page *JobResourceListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*JobResourceListPage) NextWithContext

func (page *JobResourceListPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (JobResourceListPage) NotDone

func (page JobResourceListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (JobResourceListPage) Response

func (page JobResourceListPage) Response() JobResourceList

Response returns the raw server response from the last page request.

func (JobResourceListPage) Values

func (page JobResourceListPage) Values() []JobResource

Values returns the slice of values for the current page or nil if there are no values.

type JobStatus

type JobStatus string

JobStatus enumerates the values for job status.

const (
	// JobStatusCancelled ...
	JobStatusCancelled JobStatus = "Cancelled"
	// JobStatusCancelling ...
	JobStatusCancelling JobStatus = "Cancelling"
	// JobStatusCompleted ...
	JobStatusCompleted JobStatus = "Completed"
	// JobStatusCompletedWithWarnings ...
	JobStatusCompletedWithWarnings JobStatus = "CompletedWithWarnings"
	// JobStatusFailed ...
	JobStatusFailed JobStatus = "Failed"
	// JobStatusInProgress ...
	JobStatusInProgress JobStatus = "InProgress"
	// JobStatusInvalid ...
	JobStatusInvalid JobStatus = "Invalid"
)

func PossibleJobStatusValues

func PossibleJobStatusValues() []JobStatus

PossibleJobStatusValues returns an array of possible values for the JobStatus const type.

type JobSupportedAction

type JobSupportedAction string

JobSupportedAction enumerates the values for job supported action.

const (
	// JobSupportedActionCancellable ...
	JobSupportedActionCancellable JobSupportedAction = "Cancellable"
	// JobSupportedActionInvalid ...
	JobSupportedActionInvalid JobSupportedAction = "Invalid"
	// JobSupportedActionRetriable ...
	JobSupportedActionRetriable JobSupportedAction = "Retriable"
)

func PossibleJobSupportedActionValues

func PossibleJobSupportedActionValues() []JobSupportedAction

PossibleJobSupportedActionValues returns an array of possible values for the JobSupportedAction const type.

type JobType

type JobType string

JobType enumerates the values for job type.

const (
	// JobTypeAzureIaaSVMJob ...
	JobTypeAzureIaaSVMJob JobType = "AzureIaaSVMJob"
	// JobTypeDpmJob ...
	JobTypeDpmJob JobType = "DpmJob"
	// JobTypeJob ...
	JobTypeJob JobType = "Job"
	// JobTypeMabJob ...
	JobTypeMabJob JobType = "MabJob"
)

func PossibleJobTypeValues

func PossibleJobTypeValues() []JobType

PossibleJobTypeValues returns an array of possible values for the JobType const type.

type JobsClient

type JobsClient struct {
	BaseClient
}

JobsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service

func NewJobsClient

func NewJobsClient(subscriptionID string) JobsClient

NewJobsClient creates an instance of the JobsClient client.

func NewJobsClientWithBaseURI

func NewJobsClientWithBaseURI(baseURI string, subscriptionID string) JobsClient

NewJobsClientWithBaseURI creates an instance of the JobsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (JobsClient) Export

func (client JobsClient) Export(ctx context.Context, vaultName string, resourceGroupName string, filter string) (result autorest.Response, err error)

Export exports all jobs for a given Shared Access Signatures (SAS) URL. The SAS URL expires within 15 minutes of its creation. Parameters: vaultName - the name of the Recovery Services vault. resourceGroupName - the name of the resource group associated with the Recovery Services vault. filter - the OData filter options. status eq { InProgress , Completed , Failed , CompletedWithWarnings , Cancelled , Cancelling } and backupManagementType eq {AzureIaasVM, MAB, DPM, AzureBackupServer, AzureSql } and operation eq { ConfigureBackup , Backup , Restore , DisableBackup , DeleteBackupData } and jobId eq {guid} and startTime eq { yyyy-mm-dd hh:mm:ss PM } and endTime eq { yyyy-mm-dd hh:mm:ss PM }.

func (JobsClient) ExportPreparer

func (client JobsClient) ExportPreparer(ctx context.Context, vaultName string, resourceGroupName string, filter string) (*http.Request, error)

ExportPreparer prepares the Export request.

func (JobsClient) ExportResponder

func (client JobsClient) ExportResponder(resp *http.Response) (result autorest.Response, err error)

ExportResponder handles the response to the Export request. The method always closes the http.Response Body.

func (JobsClient) ExportSender

func (client JobsClient) ExportSender(req *http.Request) (*http.Response, error)

ExportSender sends the Export request. The method will close the http.Response Body if it receives an error.

func (JobsClient) List

func (client JobsClient) List(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result JobResourceListPage, err error)

List provides a pageable list of jobs. Parameters: vaultName - the name of the Recovery Services vault. resourceGroupName - the name of the resource group associated with the Recovery Services vault. filter - the following equation can be used to filter the list of jobs based on status, type, start date, and end date. status eq { InProgress , Completed , Failed , CompletedWithWarnings , Cancelled , Cancelling } and backupManagementType eq {AzureIaasVM, MAB, DPM, AzureBackupServer, AzureSql } and operation eq { ConfigureBackup , Backup , Restore , DisableBackup , DeleteBackupData } and jobId eq {guid} and startTime eq { yyyy-mm-dd hh:mm:ss PM } and endTime eq { yyyy-mm-dd hh:mm:ss PM }. skipToken - the Skip Token filter.

func (JobsClient) ListComplete

func (client JobsClient) ListComplete(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result JobResourceListIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (JobsClient) ListPreparer

func (client JobsClient) ListPreparer(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (*http.Request, error)

ListPreparer prepares the List request.

func (JobsClient) ListResponder

func (client JobsClient) ListResponder(resp *http.Response) (result JobResourceList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (JobsClient) ListSender

func (client JobsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type KEKDetails

type KEKDetails struct {
	// KeyURL - Key refers to the Key Encryption Key (KEK). The KEK is the Key to unlock the Secret.
	KeyURL *string `json:"keyUrl,omitempty"`
	// KeyVaultID - Key Vault ID identifies where the KEK is stored.
	KeyVaultID *string `json:"keyVaultId,omitempty"`
	// KeyBackupData - Key Backup Data refers to Key Encryption Key (KEK) data.
	KeyBackupData *string `json:"keyBackupData,omitempty"`
}

KEKDetails the Key Encryption Key (KEK) is the encryption key for the Bitlocker Encryption Key (BEK).

type KeyAndSecretDetails

type KeyAndSecretDetails struct {
	// KekDetails - The Key Encryption Key (KEK) is the encryption key for the Bitlocker Encryption Key (BEK).
	KekDetails *KEKDetails `json:"kekDetails,omitempty"`
	// BekDetails - BEK is Bitlocker Encryption Key.
	BekDetails *BEKDetails `json:"bekDetails,omitempty"`
}

KeyAndSecretDetails BEK stands for Bitlocker Encryption Key. KEK stands for Key Encryption Key. KEK is the encryption key used to protect the Secret for the BEK If the VM is encrypted, then the service stores the following details : 1. Secret(BEK) - Url + Backup Data + vaultID. 2. Key(KEK) - Url + Backup Data + vaultID. It is possible for the BEK and KEK to have different vaultIDs.

type LongTermRetentionPolicy

type LongTermRetentionPolicy struct {
	// DailySchedule - Daily retention schedule of the backup policy.
	DailySchedule *DailyRetentionSchedule `json:"dailySchedule,omitempty"`
	// WeeklySchedule - Weekly retention schedule of the backup policy.
	WeeklySchedule *WeeklyRetentionSchedule `json:"weeklySchedule,omitempty"`
	// MonthlySchedule - Monthly retention schedule of the backup policy.
	MonthlySchedule *MonthlyRetentionSchedule `json:"monthlySchedule,omitempty"`
	// YearlySchedule - Yearly retention schedule of the backup policy.
	YearlySchedule *YearlyRetentionSchedule `json:"yearlySchedule,omitempty"`
	// RetentionPolicyType - Possible values include: 'RetentionPolicyTypeRetentionPolicy', 'RetentionPolicyTypeSimpleRetentionPolicy', 'RetentionPolicyTypeLongTermRetentionPolicy'
	RetentionPolicyType RetentionPolicyType `json:"retentionPolicyType,omitempty"`
}

LongTermRetentionPolicy long-term retention policy.

func (LongTermRetentionPolicy) AsBasicRetentionPolicy

func (ltrp LongTermRetentionPolicy) AsBasicRetentionPolicy() (BasicRetentionPolicy, bool)

AsBasicRetentionPolicy is the BasicRetentionPolicy implementation for LongTermRetentionPolicy.

func (LongTermRetentionPolicy) AsLongTermRetentionPolicy

func (ltrp LongTermRetentionPolicy) AsLongTermRetentionPolicy() (*LongTermRetentionPolicy, bool)

AsLongTermRetentionPolicy is the BasicRetentionPolicy implementation for LongTermRetentionPolicy.

func (LongTermRetentionPolicy) AsRetentionPolicy

func (ltrp LongTermRetentionPolicy) AsRetentionPolicy() (*RetentionPolicy, bool)

AsRetentionPolicy is the BasicRetentionPolicy implementation for LongTermRetentionPolicy.

func (LongTermRetentionPolicy) AsSimpleRetentionPolicy

func (ltrp LongTermRetentionPolicy) AsSimpleRetentionPolicy() (*SimpleRetentionPolicy, bool)

AsSimpleRetentionPolicy is the BasicRetentionPolicy implementation for LongTermRetentionPolicy.

func (LongTermRetentionPolicy) MarshalJSON

func (ltrp LongTermRetentionPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for LongTermRetentionPolicy.

type LongTermSchedulePolicy

type LongTermSchedulePolicy struct {
	// SchedulePolicyType - Possible values include: 'SchedulePolicyTypeSchedulePolicy', 'SchedulePolicyTypeLongTermSchedulePolicy', 'SchedulePolicyTypeSimpleSchedulePolicy'
	SchedulePolicyType SchedulePolicyType `json:"schedulePolicyType,omitempty"`
}

LongTermSchedulePolicy long-term policy schedule.

func (LongTermSchedulePolicy) AsBasicSchedulePolicy

func (ltsp LongTermSchedulePolicy) AsBasicSchedulePolicy() (BasicSchedulePolicy, bool)

AsBasicSchedulePolicy is the BasicSchedulePolicy implementation for LongTermSchedulePolicy.

func (LongTermSchedulePolicy) AsLongTermSchedulePolicy

func (ltsp LongTermSchedulePolicy) AsLongTermSchedulePolicy() (*LongTermSchedulePolicy, bool)

AsLongTermSchedulePolicy is the BasicSchedulePolicy implementation for LongTermSchedulePolicy.

func (LongTermSchedulePolicy) AsSchedulePolicy

func (ltsp LongTermSchedulePolicy) AsSchedulePolicy() (*SchedulePolicy, bool)

AsSchedulePolicy is the BasicSchedulePolicy implementation for LongTermSchedulePolicy.

func (LongTermSchedulePolicy) AsSimpleSchedulePolicy

func (ltsp LongTermSchedulePolicy) AsSimpleSchedulePolicy() (*SimpleSchedulePolicy, bool)

AsSimpleSchedulePolicy is the BasicSchedulePolicy implementation for LongTermSchedulePolicy.

func (LongTermSchedulePolicy) MarshalJSON

func (ltsp LongTermSchedulePolicy) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for LongTermSchedulePolicy.

type MabContainer

type MabContainer struct {
	// CanReRegister - The container can be registered one more time.
	CanReRegister *bool `json:"canReRegister,omitempty"`
	// ContainerID - The ID for the container.
	ContainerID *int64 `json:"containerId,omitempty"`
	// ProtectedItemCount - The number of backup items in the container.
	ProtectedItemCount *int64 `json:"protectedItemCount,omitempty"`
	// AgentVersion - The version of the agent used with this container.
	AgentVersion *string `json:"agentVersion,omitempty"`
	// ExtendedInfo - Additional information for the container.
	ExtendedInfo *MabContainerExtendedInfo `json:"extendedInfo,omitempty"`
	// FriendlyName - Friendly name of the container.
	FriendlyName *string `json:"friendlyName,omitempty"`
	// BackupManagementType - The backup management type for the container. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL'
	BackupManagementType ManagementType `json:"backupManagementType,omitempty"`
	// RegistrationStatus - The container's registration status with the Recovery Services vault.
	RegistrationStatus *string `json:"registrationStatus,omitempty"`
	// HealthStatus - The status of the container's health.
	HealthStatus *string `json:"healthStatus,omitempty"`
	// ContainerType - READ-ONLY; The type assigned to the container. The values to use for each of these properties are:<br/> 1. Compute Azure VM is Microsoft.Compute/virtualMachines<br/> 2. Classic Compute Azure VM is Microsoft.ClassicCompute/virtualMachines<br/> 3. Windows machines (like Azure Backup Server and DPM) is Windows<br/> 4. Azure SQL instance is AzureSqlContainer.
	ContainerType *string `json:"containerType,omitempty"`
	// ProtectableObjectType - Possible values include: 'ProtectableObjectTypeProtectionContainer', 'ProtectableObjectTypeAzureSQLContainer', 'ProtectableObjectTypeIaaSVMContainer', 'ProtectableObjectTypeMABWindowsContainer', 'ProtectableObjectTypeMicrosoftComputevirtualMachines', 'ProtectableObjectTypeMicrosoftClassicComputevirtualMachines'
	ProtectableObjectType ProtectableObjectType `json:"protectableObjectType,omitempty"`
}

MabContainer the container associated with items backed up using Azure Backup Server.

func (MabContainer) AsAzureIaaSClassicComputeVMContainer

func (mc MabContainer) AsAzureIaaSClassicComputeVMContainer() (*AzureIaaSClassicComputeVMContainer, bool)

AsAzureIaaSClassicComputeVMContainer is the BasicProtectionContainer implementation for MabContainer.

func (MabContainer) AsAzureIaaSComputeVMContainer

func (mc MabContainer) AsAzureIaaSComputeVMContainer() (*AzureIaaSComputeVMContainer, bool)

AsAzureIaaSComputeVMContainer is the BasicProtectionContainer implementation for MabContainer.

func (MabContainer) AsAzureSQLContainer

func (mc MabContainer) AsAzureSQLContainer() (*AzureSQLContainer, bool)

AsAzureSQLContainer is the BasicProtectionContainer implementation for MabContainer.

func (MabContainer) AsBasicIaaSVMContainer

func (mc MabContainer) AsBasicIaaSVMContainer() (BasicIaaSVMContainer, bool)

AsBasicIaaSVMContainer is the BasicProtectionContainer implementation for MabContainer.

func (MabContainer) AsBasicProtectionContainer

func (mc MabContainer) AsBasicProtectionContainer() (BasicProtectionContainer, bool)

AsBasicProtectionContainer is the BasicProtectionContainer implementation for MabContainer.

func (MabContainer) AsIaaSVMContainer

func (mc MabContainer) AsIaaSVMContainer() (*IaaSVMContainer, bool)

AsIaaSVMContainer is the BasicProtectionContainer implementation for MabContainer.

func (MabContainer) AsMabContainer

func (mc MabContainer) AsMabContainer() (*MabContainer, bool)

AsMabContainer is the BasicProtectionContainer implementation for MabContainer.

func (MabContainer) AsProtectionContainer

func (mc MabContainer) AsProtectionContainer() (*ProtectionContainer, bool)

AsProtectionContainer is the BasicProtectionContainer implementation for MabContainer.

func (MabContainer) MarshalJSON

func (mc MabContainer) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for MabContainer.

type MabContainerExtendedInfo

type MabContainerExtendedInfo struct {
	// LastRefreshedAt - The time stamp when this container was refreshed.
	LastRefreshedAt *date.Time `json:"lastRefreshedAt,omitempty"`
	// BackupItemType - The type of backup items associated with this container. Possible values include: 'ItemTypeInvalid', 'ItemTypeVM', 'ItemTypeFileFolder', 'ItemTypeAzureSQLDb', 'ItemTypeSQLDB', 'ItemTypeExchange', 'ItemTypeSharepoint', 'ItemTypeDPMUnknown'
	BackupItemType ItemType `json:"backupItemType,omitempty"`
	// BackupItems - The list of backup items associated with this container.
	BackupItems *[]string `json:"backupItems,omitempty"`
	// PolicyName - The backup policy associated with this container.
	PolicyName *string `json:"policyName,omitempty"`
	// LastBackupStatus - The latest backup status of this container.
	LastBackupStatus *string `json:"lastBackupStatus,omitempty"`
}

MabContainerExtendedInfo additional information for the container.

type MabErrorInfo

type MabErrorInfo struct {
	// ErrorString - Localized error string.
	ErrorString *string `json:"errorString,omitempty"`
	// Recommendations - List of localized recommendations.
	Recommendations *[]string `json:"recommendations,omitempty"`
}

MabErrorInfo azure Backup Server workload-specific error information.

type MabFileFolderProtectedItem

type MabFileFolderProtectedItem struct {
	// FriendlyName - The friendly name of this backup item.
	FriendlyName *string `json:"friendlyName,omitempty"`
	// ComputerName - The name of the computer associated with this backup item.
	ComputerName *string `json:"computerName,omitempty"`
	// LastBackupStatus - The status of last backup operation.
	LastBackupStatus *string `json:"lastBackupStatus,omitempty"`
	// ProtectionState - The states for this property are: Protected, ProtectionStopped, IRPending, or ProtectionError.
	ProtectionState              *string `json:"protectionState,omitempty"`
	IsScheduledForDeferredDelete *bool   `json:"isScheduledForDeferredDelete,omitempty"`
	// ExtendedInfo - Additional information for this backup item.
	ExtendedInfo *MabFileFolderProtectedItemExtendedInfo `json:"extendedInfo,omitempty"`
	// BackupManagementType - The backup management type associated with the backup item. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL'
	BackupManagementType ManagementType `json:"backupManagementType,omitempty"`
	// WorkloadType - The workload type for this item. Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSQLDb', 'SQLDB', 'Exchange', 'Sharepoint', 'DPMUnknown'
	WorkloadType DataSourceType `json:"workloadType,omitempty"`
	// SourceResourceID - The ID of the resource to be backed up.
	SourceResourceID *string `json:"sourceResourceId,omitempty"`
	// PolicyID - The ID of the backup policy associated with this backup item.
	PolicyID *string `json:"policyId,omitempty"`
	// LastRecoveryPoint - The timestamp when the most recent backup copy was created for this backup item.
	LastRecoveryPoint *date.Time `json:"lastRecoveryPoint,omitempty"`
	// ProtectedItemType - Possible values include: 'ProtectedItemTypeProtectedItem', 'ProtectedItemTypeAzureIaaSVMProtectedItem', 'ProtectedItemTypeMabFileFolderProtectedItem', 'ProtectedItemTypeMicrosoftSqlserversdatabases', 'ProtectedItemTypeMicrosoftComputevirtualMachines', 'ProtectedItemTypeMicrosoftClassicComputevirtualMachines'
	ProtectedItemType ProtectedItemType `json:"protectedItemType,omitempty"`
}

MabFileFolderProtectedItem this is a file or folder workload-specific backup item.

func (MabFileFolderProtectedItem) AsAzureIaaSClassicComputeVMProtectedItem

func (mffpi MabFileFolderProtectedItem) AsAzureIaaSClassicComputeVMProtectedItem() (*AzureIaaSClassicComputeVMProtectedItem, bool)

AsAzureIaaSClassicComputeVMProtectedItem is the BasicProtectedItem implementation for MabFileFolderProtectedItem.

func (MabFileFolderProtectedItem) AsAzureIaaSComputeVMProtectedItem

func (mffpi MabFileFolderProtectedItem) AsAzureIaaSComputeVMProtectedItem() (*AzureIaaSComputeVMProtectedItem, bool)

AsAzureIaaSComputeVMProtectedItem is the BasicProtectedItem implementation for MabFileFolderProtectedItem.

func (MabFileFolderProtectedItem) AsAzureIaaSVMProtectedItem

func (mffpi MabFileFolderProtectedItem) AsAzureIaaSVMProtectedItem() (*AzureIaaSVMProtectedItem, bool)

AsAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for MabFileFolderProtectedItem.

func (MabFileFolderProtectedItem) AsAzureSQLProtectedItem

func (mffpi MabFileFolderProtectedItem) AsAzureSQLProtectedItem() (*AzureSQLProtectedItem, bool)

AsAzureSQLProtectedItem is the BasicProtectedItem implementation for MabFileFolderProtectedItem.

func (MabFileFolderProtectedItem) AsBasicAzureIaaSVMProtectedItem

func (mffpi MabFileFolderProtectedItem) AsBasicAzureIaaSVMProtectedItem() (BasicAzureIaaSVMProtectedItem, bool)

AsBasicAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for MabFileFolderProtectedItem.

func (MabFileFolderProtectedItem) AsBasicProtectedItem

func (mffpi MabFileFolderProtectedItem) AsBasicProtectedItem() (BasicProtectedItem, bool)

AsBasicProtectedItem is the BasicProtectedItem implementation for MabFileFolderProtectedItem.

func (MabFileFolderProtectedItem) AsMabFileFolderProtectedItem

func (mffpi MabFileFolderProtectedItem) AsMabFileFolderProtectedItem() (*MabFileFolderProtectedItem, bool)

AsMabFileFolderProtectedItem is the BasicProtectedItem implementation for MabFileFolderProtectedItem.

func (MabFileFolderProtectedItem) AsProtectedItem

func (mffpi MabFileFolderProtectedItem) AsProtectedItem() (*ProtectedItem, bool)

AsProtectedItem is the BasicProtectedItem implementation for MabFileFolderProtectedItem.

func (MabFileFolderProtectedItem) MarshalJSON

func (mffpi MabFileFolderProtectedItem) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for MabFileFolderProtectedItem.

type MabFileFolderProtectedItemExtendedInfo

type MabFileFolderProtectedItemExtendedInfo struct {
	// LastRefreshedAt - The last day and time the agent synced with the service.
	LastRefreshedAt *date.Time `json:"lastRefreshedAt,omitempty"`
	// OldestRecoveryPoint - The oldest backup copy available.
	OldestRecoveryPoint *date.Time `json:"oldestRecoveryPoint,omitempty"`
	// RecoveryPointCount - The number of backup copies associated with the backup item.
	RecoveryPointCount *int32 `json:"recoveryPointCount,omitempty"`
}

MabFileFolderProtectedItemExtendedInfo additional information for the backup item.

type MabJob

type MabJob struct {
	// Duration - The time required for the job to run.
	Duration *string `json:"duration,omitempty"`
	// ActionsInfo - The state or actions applicable on jobs such as Cancel or Retry.
	ActionsInfo *[]JobSupportedAction `json:"actionsInfo,omitempty"`
	// MabServerName - The name of server protecting the data store.
	MabServerName *string `json:"mabServerName,omitempty"`
	// MabServerType - Server type of the Azure Backup Server container. Possible values include: 'MabServerTypeInvalid', 'MabServerTypeUnknown', 'MabServerTypeIaasVMContainer', 'MabServerTypeIaasVMServiceContainer', 'MabServerTypeDPMContainer', 'MabServerTypeDPMVenusContainer', 'MabServerTypeMABContainer', 'MabServerTypeClusterResource', 'MabServerTypeAzureSQLContainer', 'MabServerTypeWindowsServer', 'MabServerTypeWindows'
	MabServerType MabServerType `json:"mabServerType,omitempty"`
	// WorkloadType - Workload type of backup item. Possible values include: 'WorkloadTypeInvalid', 'WorkloadTypeVM', 'WorkloadTypeFileFolder', 'WorkloadTypeAzureSQLDb', 'WorkloadTypeSQLDB', 'WorkloadTypeExchange', 'WorkloadTypeSharepoint', 'WorkloadTypeDPMUnknown'
	WorkloadType WorkloadType `json:"workloadType,omitempty"`
	// ErrorDetails - The errors.
	ErrorDetails *[]MabErrorInfo `json:"errorDetails,omitempty"`
	// ExtendedInfo - Additional information on the job.
	ExtendedInfo *MabJobExtendedInfo `json:"extendedInfo,omitempty"`
	// EntityFriendlyName - The friendly name of the entity on which the current job is executing.
	EntityFriendlyName *string `json:"entityFriendlyName,omitempty"`
	// BackupManagementType - The backup management type for the current job. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL'
	BackupManagementType ManagementType `json:"backupManagementType,omitempty"`
	// Operation - The operation name.
	Operation *string `json:"operation,omitempty"`
	// Status - The job status.
	Status *string `json:"status,omitempty"`
	// StartTime - The start time.
	StartTime *date.Time `json:"startTime,omitempty"`
	// EndTime - The end time.
	EndTime *date.Time `json:"endTime,omitempty"`
	// ActivityID - ActivityId of job.
	ActivityID *string `json:"activityId,omitempty"`
	// JobType - Possible values include: 'JobTypeJob', 'JobTypeAzureIaaSVMJob', 'JobTypeDpmJob', 'JobTypeMabJob'
	JobType JobType `json:"jobType,omitempty"`
}

MabJob the Azure Backup Server workload-specific job.

func (MabJob) AsAzureIaaSVMJob

func (mj MabJob) AsAzureIaaSVMJob() (*AzureIaaSVMJob, bool)

AsAzureIaaSVMJob is the BasicJob implementation for MabJob.

func (MabJob) AsBasicJob

func (mj MabJob) AsBasicJob() (BasicJob, bool)

AsBasicJob is the BasicJob implementation for MabJob.

func (MabJob) AsDpmJob

func (mj MabJob) AsDpmJob() (*DpmJob, bool)

AsDpmJob is the BasicJob implementation for MabJob.

func (MabJob) AsJob

func (mj MabJob) AsJob() (*Job, bool)

AsJob is the BasicJob implementation for MabJob.

func (MabJob) AsMabJob

func (mj MabJob) AsMabJob() (*MabJob, bool)

AsMabJob is the BasicJob implementation for MabJob.

func (MabJob) MarshalJSON

func (mj MabJob) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for MabJob.

type MabJobExtendedInfo

type MabJobExtendedInfo struct {
	// TasksList - List of tasks for this job.
	TasksList *[]MabJobTaskDetails `json:"tasksList,omitempty"`
	// PropertyBag - The job properties.
	PropertyBag map[string]*string `json:"propertyBag"`
	// DynamicErrorMessage - Non-localized error message specific to this job.
	DynamicErrorMessage *string `json:"dynamicErrorMessage,omitempty"`
}

MabJobExtendedInfo additional information for the Azure Backup Server workload-specific job.

func (MabJobExtendedInfo) MarshalJSON

func (mjei MabJobExtendedInfo) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for MabJobExtendedInfo.

type MabJobTaskDetails

type MabJobTaskDetails struct {
	// TaskID - The task display name.
	TaskID *string `json:"taskId,omitempty"`
	// StartTime - The start time.
	StartTime *date.Time `json:"startTime,omitempty"`
	// EndTime - The end time.
	EndTime *date.Time `json:"endTime,omitempty"`
	// Duration - Time elapsed for task.
	Duration *string `json:"duration,omitempty"`
	// Status - The status.
	Status *string `json:"status,omitempty"`
}

MabJobTaskDetails azure Backup Server workload-specific job task details.

type MabProtectionPolicy

type MabProtectionPolicy struct {
	// SchedulePolicy - The schedule specified in the backup policy.
	SchedulePolicy BasicSchedulePolicy `json:"schedulePolicy,omitempty"`
	// RetentionPolicy - The details specified in the Retention policy.
	RetentionPolicy BasicRetentionPolicy `json:"retentionPolicy,omitempty"`
	// ProtectedItemsCount - The number of items associated with this policy.
	ProtectedItemsCount *int32 `json:"protectedItemsCount,omitempty"`
	// BackupManagementType - Possible values include: 'BackupManagementTypeProtectionPolicy', 'BackupManagementTypeAzureIaasVM', 'BackupManagementTypeMAB', 'BackupManagementTypeAzureSQL'
	BackupManagementType ManagementTypeBasicProtectionPolicy `json:"backupManagementType,omitempty"`
}

MabProtectionPolicy the backup policy for the file or folder container.

func (MabProtectionPolicy) AsAzureIaaSVMProtectionPolicy

func (mpp MabProtectionPolicy) AsAzureIaaSVMProtectionPolicy() (*AzureIaaSVMProtectionPolicy, bool)

AsAzureIaaSVMProtectionPolicy is the BasicProtectionPolicy implementation for MabProtectionPolicy.

func (MabProtectionPolicy) AsAzureSQLProtectionPolicy

func (mpp MabProtectionPolicy) AsAzureSQLProtectionPolicy() (*AzureSQLProtectionPolicy, bool)

AsAzureSQLProtectionPolicy is the BasicProtectionPolicy implementation for MabProtectionPolicy.

func (MabProtectionPolicy) AsBasicProtectionPolicy

func (mpp MabProtectionPolicy) AsBasicProtectionPolicy() (BasicProtectionPolicy, bool)

AsBasicProtectionPolicy is the BasicProtectionPolicy implementation for MabProtectionPolicy.

func (MabProtectionPolicy) AsMabProtectionPolicy

func (mpp MabProtectionPolicy) AsMabProtectionPolicy() (*MabProtectionPolicy, bool)

AsMabProtectionPolicy is the BasicProtectionPolicy implementation for MabProtectionPolicy.

func (MabProtectionPolicy) AsProtectionPolicy

func (mpp MabProtectionPolicy) AsProtectionPolicy() (*ProtectionPolicy, bool)

AsProtectionPolicy is the BasicProtectionPolicy implementation for MabProtectionPolicy.

func (MabProtectionPolicy) MarshalJSON

func (mpp MabProtectionPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for MabProtectionPolicy.

func (*MabProtectionPolicy) UnmarshalJSON

func (mpp *MabProtectionPolicy) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for MabProtectionPolicy struct.

type MabServerType

type MabServerType string

MabServerType enumerates the values for mab server type.

const (
	// MabServerTypeAzureSQLContainer ...
	MabServerTypeAzureSQLContainer MabServerType = "AzureSqlContainer"
	// MabServerTypeClusterResource ...
	MabServerTypeClusterResource MabServerType = "ClusterResource"
	// MabServerTypeDPMContainer ...
	MabServerTypeDPMContainer MabServerType = "DPMContainer"
	// MabServerTypeDPMVenusContainer ...
	MabServerTypeDPMVenusContainer MabServerType = "DPMVenusContainer"
	// MabServerTypeIaasVMContainer ...
	MabServerTypeIaasVMContainer MabServerType = "IaasVMContainer"
	// MabServerTypeIaasVMServiceContainer ...
	MabServerTypeIaasVMServiceContainer MabServerType = "IaasVMServiceContainer"
	// MabServerTypeInvalid ...
	MabServerTypeInvalid MabServerType = "Invalid"
	// MabServerTypeMABContainer ...
	MabServerTypeMABContainer MabServerType = "MABContainer"
	// MabServerTypeUnknown ...
	MabServerTypeUnknown MabServerType = "Unknown"
	// MabServerTypeWindows ...
	MabServerTypeWindows MabServerType = "Windows"
	// MabServerTypeWindowsServer ...
	MabServerTypeWindowsServer MabServerType = "WindowsServer"
)

func PossibleMabServerTypeValues

func PossibleMabServerTypeValues() []MabServerType

PossibleMabServerTypeValues returns an array of possible values for the MabServerType const type.

type ManagementType

type ManagementType string

ManagementType enumerates the values for management type.

const (
	// ManagementTypeAzureBackupServer ...
	ManagementTypeAzureBackupServer ManagementType = "AzureBackupServer"
	// ManagementTypeAzureIaasVM ...
	ManagementTypeAzureIaasVM ManagementType = "AzureIaasVM"
	// ManagementTypeAzureSQL ...
	ManagementTypeAzureSQL ManagementType = "AzureSql"
	// ManagementTypeDPM ...
	ManagementTypeDPM ManagementType = "DPM"
	// ManagementTypeInvalid ...
	ManagementTypeInvalid ManagementType = "Invalid"
	// ManagementTypeMAB ...
	ManagementTypeMAB ManagementType = "MAB"
)

func PossibleManagementTypeValues

func PossibleManagementTypeValues() []ManagementType

PossibleManagementTypeValues returns an array of possible values for the ManagementType const type.

type ManagementTypeBasicProtectionPolicy

type ManagementTypeBasicProtectionPolicy string

ManagementTypeBasicProtectionPolicy enumerates the values for management type basic protection policy.

const (
	// BackupManagementTypeAzureIaasVM ...
	BackupManagementTypeAzureIaasVM ManagementTypeBasicProtectionPolicy = "AzureIaasVM"
	// BackupManagementTypeAzureSQL ...
	BackupManagementTypeAzureSQL ManagementTypeBasicProtectionPolicy = "AzureSql"
	// BackupManagementTypeMAB ...
	BackupManagementTypeMAB ManagementTypeBasicProtectionPolicy = "MAB"
	// BackupManagementTypeProtectionPolicy ...
	BackupManagementTypeProtectionPolicy ManagementTypeBasicProtectionPolicy = "ProtectionPolicy"
)

func PossibleManagementTypeBasicProtectionPolicyValues

func PossibleManagementTypeBasicProtectionPolicyValues() []ManagementTypeBasicProtectionPolicy

PossibleManagementTypeBasicProtectionPolicyValues returns an array of possible values for the ManagementTypeBasicProtectionPolicy const type.

type MonthOfYear

type MonthOfYear string

MonthOfYear enumerates the values for month of year.

const (
	// MonthOfYearApril ...
	MonthOfYearApril MonthOfYear = "April"
	// MonthOfYearAugust ...
	MonthOfYearAugust MonthOfYear = "August"
	// MonthOfYearDecember ...
	MonthOfYearDecember MonthOfYear = "December"
	// MonthOfYearFebruary ...
	MonthOfYearFebruary MonthOfYear = "February"
	// MonthOfYearInvalid ...
	MonthOfYearInvalid MonthOfYear = "Invalid"
	// MonthOfYearJanuary ...
	MonthOfYearJanuary MonthOfYear = "January"
	// MonthOfYearJuly ...
	MonthOfYearJuly MonthOfYear = "July"
	// MonthOfYearJune ...
	MonthOfYearJune MonthOfYear = "June"
	// MonthOfYearMarch ...
	MonthOfYearMarch MonthOfYear = "March"
	// MonthOfYearMay ...
	MonthOfYearMay MonthOfYear = "May"
	// MonthOfYearNovember ...
	MonthOfYearNovember MonthOfYear = "November"
	// MonthOfYearOctober ...
	MonthOfYearOctober MonthOfYear = "October"
	// MonthOfYearSeptember ...
	MonthOfYearSeptember MonthOfYear = "September"
)

func PossibleMonthOfYearValues

func PossibleMonthOfYearValues() []MonthOfYear

PossibleMonthOfYearValues returns an array of possible values for the MonthOfYear const type.

type MonthlyRetentionSchedule

type MonthlyRetentionSchedule struct {
	// RetentionScheduleFormatType - Retention schedule format type for monthly retention policy. Possible values include: 'RetentionScheduleFormatInvalid', 'RetentionScheduleFormatDaily', 'RetentionScheduleFormatWeekly'
	RetentionScheduleFormatType RetentionScheduleFormat `json:"retentionScheduleFormatType,omitempty"`
	// RetentionScheduleDaily - Daily retention format for the monthly retention policy.
	RetentionScheduleDaily *DailyRetentionFormat `json:"retentionScheduleDaily,omitempty"`
	// RetentionScheduleWeekly - Weekly retention format for the monthly retention policy.
	RetentionScheduleWeekly *WeeklyRetentionFormat `json:"retentionScheduleWeekly,omitempty"`
	// RetentionTimes - Retention times of the retention policy.
	RetentionTimes *[]date.Time `json:"retentionTimes,omitempty"`
	// RetentionDuration - Retention duration of the retention policy.
	RetentionDuration *RetentionDuration `json:"retentionDuration,omitempty"`
}

MonthlyRetentionSchedule the monthly retention schedule.

type ObjectType

type ObjectType string

ObjectType enumerates the values for object type.

const (
	// ObjectTypeOperationStatusExtendedInfo ...
	ObjectTypeOperationStatusExtendedInfo ObjectType = "OperationStatusExtendedInfo"
	// ObjectTypeOperationStatusJobExtendedInfo ...
	ObjectTypeOperationStatusJobExtendedInfo ObjectType = "OperationStatusJobExtendedInfo"
	// ObjectTypeOperationStatusJobsExtendedInfo ...
	ObjectTypeOperationStatusJobsExtendedInfo ObjectType = "OperationStatusJobsExtendedInfo"
	// ObjectTypeOperationStatusProvisionILRExtendedInfo ...
	ObjectTypeOperationStatusProvisionILRExtendedInfo ObjectType = "OperationStatusProvisionILRExtendedInfo"
)

func PossibleObjectTypeValues

func PossibleObjectTypeValues() []ObjectType

PossibleObjectTypeValues returns an array of possible values for the ObjectType const type.

type ObjectTypeBasicILRRequest

type ObjectTypeBasicILRRequest string

ObjectTypeBasicILRRequest enumerates the values for object type basic ilr request.

const (
	// ObjectTypeIaasVMILRRegistrationRequest ...
	ObjectTypeIaasVMILRRegistrationRequest ObjectTypeBasicILRRequest = "IaasVMILRRegistrationRequest"
	// ObjectTypeILRRequest ...
	ObjectTypeILRRequest ObjectTypeBasicILRRequest = "ILRRequest"
)

func PossibleObjectTypeBasicILRRequestValues

func PossibleObjectTypeBasicILRRequestValues() []ObjectTypeBasicILRRequest

PossibleObjectTypeBasicILRRequestValues returns an array of possible values for the ObjectTypeBasicILRRequest const type.

type ObjectTypeBasicOperationResultInfoBase

type ObjectTypeBasicOperationResultInfoBase string

ObjectTypeBasicOperationResultInfoBase enumerates the values for object type basic operation result info base.

const (
	// ObjectTypeExportJobsOperationResultInfo ...
	ObjectTypeExportJobsOperationResultInfo ObjectTypeBasicOperationResultInfoBase = "ExportJobsOperationResultInfo"
	// ObjectTypeOperationResultInfo ...
	ObjectTypeOperationResultInfo ObjectTypeBasicOperationResultInfoBase = "OperationResultInfo"
	// ObjectTypeOperationResultInfoBase ...
	ObjectTypeOperationResultInfoBase ObjectTypeBasicOperationResultInfoBase = "OperationResultInfoBase"
)

func PossibleObjectTypeBasicOperationResultInfoBaseValues

func PossibleObjectTypeBasicOperationResultInfoBaseValues() []ObjectTypeBasicOperationResultInfoBase

PossibleObjectTypeBasicOperationResultInfoBaseValues returns an array of possible values for the ObjectTypeBasicOperationResultInfoBase const type.

type ObjectTypeBasicRecoveryPoint

type ObjectTypeBasicRecoveryPoint string

ObjectTypeBasicRecoveryPoint enumerates the values for object type basic recovery point.

const (
	// ObjectTypeGenericRecoveryPoint ...
	ObjectTypeGenericRecoveryPoint ObjectTypeBasicRecoveryPoint = "GenericRecoveryPoint"
	// ObjectTypeIaasVMRecoveryPoint ...
	ObjectTypeIaasVMRecoveryPoint ObjectTypeBasicRecoveryPoint = "IaasVMRecoveryPoint"
	// ObjectTypeRecoveryPoint ...
	ObjectTypeRecoveryPoint ObjectTypeBasicRecoveryPoint = "RecoveryPoint"
)

func PossibleObjectTypeBasicRecoveryPointValues

func PossibleObjectTypeBasicRecoveryPointValues() []ObjectTypeBasicRecoveryPoint

PossibleObjectTypeBasicRecoveryPointValues returns an array of possible values for the ObjectTypeBasicRecoveryPoint const type.

type ObjectTypeBasicRequest

type ObjectTypeBasicRequest string

ObjectTypeBasicRequest enumerates the values for object type basic request.

const (
	// ObjectTypeBackupRequest ...
	ObjectTypeBackupRequest ObjectTypeBasicRequest = "BackupRequest"
	// ObjectTypeIaasVMBackupRequest ...
	ObjectTypeIaasVMBackupRequest ObjectTypeBasicRequest = "IaasVMBackupRequest"
)

func PossibleObjectTypeBasicRequestValues

func PossibleObjectTypeBasicRequestValues() []ObjectTypeBasicRequest

PossibleObjectTypeBasicRequestValues returns an array of possible values for the ObjectTypeBasicRequest const type.

type ObjectTypeBasicRestoreRequest

type ObjectTypeBasicRestoreRequest string

ObjectTypeBasicRestoreRequest enumerates the values for object type basic restore request.

const (
	// ObjectTypeIaasVMRestoreRequest ...
	ObjectTypeIaasVMRestoreRequest ObjectTypeBasicRestoreRequest = "IaasVMRestoreRequest"
	// ObjectTypeRestoreRequest ...
	ObjectTypeRestoreRequest ObjectTypeBasicRestoreRequest = "RestoreRequest"
)

func PossibleObjectTypeBasicRestoreRequestValues

func PossibleObjectTypeBasicRestoreRequestValues() []ObjectTypeBasicRestoreRequest

PossibleObjectTypeBasicRestoreRequestValues returns an array of possible values for the ObjectTypeBasicRestoreRequest const type.

type OperationResultInfo

type OperationResultInfo struct {
	// JobList - List of jobs created by this operation.
	JobList *[]string `json:"jobList,omitempty"`
	// ObjectType - Possible values include: 'ObjectTypeOperationResultInfoBase', 'ObjectTypeOperationResultInfo', 'ObjectTypeExportJobsOperationResultInfo'
	ObjectType ObjectTypeBasicOperationResultInfoBase `json:"objectType,omitempty"`
}

OperationResultInfo information about the result of the operation.

func (OperationResultInfo) AsBasicOperationResultInfoBase

func (ori OperationResultInfo) AsBasicOperationResultInfoBase() (BasicOperationResultInfoBase, bool)

AsBasicOperationResultInfoBase is the BasicOperationResultInfoBase implementation for OperationResultInfo.

func (OperationResultInfo) AsExportJobsOperationResultInfo

func (ori OperationResultInfo) AsExportJobsOperationResultInfo() (*ExportJobsOperationResultInfo, bool)

AsExportJobsOperationResultInfo is the BasicOperationResultInfoBase implementation for OperationResultInfo.

func (OperationResultInfo) AsOperationResultInfo

func (ori OperationResultInfo) AsOperationResultInfo() (*OperationResultInfo, bool)

AsOperationResultInfo is the BasicOperationResultInfoBase implementation for OperationResultInfo.

func (OperationResultInfo) AsOperationResultInfoBase

func (ori OperationResultInfo) AsOperationResultInfoBase() (*OperationResultInfoBase, bool)

AsOperationResultInfoBase is the BasicOperationResultInfoBase implementation for OperationResultInfo.

func (OperationResultInfo) MarshalJSON

func (ori OperationResultInfo) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for OperationResultInfo.

type OperationResultInfoBase

type OperationResultInfoBase struct {
	// ObjectType - Possible values include: 'ObjectTypeOperationResultInfoBase', 'ObjectTypeOperationResultInfo', 'ObjectTypeExportJobsOperationResultInfo'
	ObjectType ObjectTypeBasicOperationResultInfoBase `json:"objectType,omitempty"`
}

OperationResultInfoBase the base class for operation result information.

func (OperationResultInfoBase) AsBasicOperationResultInfoBase

func (orib OperationResultInfoBase) AsBasicOperationResultInfoBase() (BasicOperationResultInfoBase, bool)

AsBasicOperationResultInfoBase is the BasicOperationResultInfoBase implementation for OperationResultInfoBase.

func (OperationResultInfoBase) AsExportJobsOperationResultInfo

func (orib OperationResultInfoBase) AsExportJobsOperationResultInfo() (*ExportJobsOperationResultInfo, bool)

AsExportJobsOperationResultInfo is the BasicOperationResultInfoBase implementation for OperationResultInfoBase.

func (OperationResultInfoBase) AsOperationResultInfo

func (orib OperationResultInfoBase) AsOperationResultInfo() (*OperationResultInfo, bool)

AsOperationResultInfo is the BasicOperationResultInfoBase implementation for OperationResultInfoBase.

func (OperationResultInfoBase) AsOperationResultInfoBase

func (orib OperationResultInfoBase) AsOperationResultInfoBase() (*OperationResultInfoBase, bool)

AsOperationResultInfoBase is the BasicOperationResultInfoBase implementation for OperationResultInfoBase.

func (OperationResultInfoBase) MarshalJSON

func (orib OperationResultInfoBase) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for OperationResultInfoBase.

type OperationResultInfoBaseResource

type OperationResultInfoBaseResource struct {
	autorest.Response `json:"-"`
	Properties        BasicOperationResultInfoBase `json:"properties,omitempty"`
	// StatusCode - The HTTP status code of the operation. Possible values include: 'Continue', 'SwitchingProtocols', 'OK', 'Created', 'Accepted', 'NonAuthoritativeInformation', 'NoContent', 'ResetContent', 'PartialContent', 'MultipleChoices', 'Ambiguous', 'MovedPermanently', 'Moved', 'Found', 'Redirect', 'SeeOther', 'RedirectMethod', 'NotModified', 'UseProxy', 'Unused', 'TemporaryRedirect', 'RedirectKeepVerb', 'BadRequest', 'Unauthorized', 'PaymentRequired', 'Forbidden', 'NotFound', 'MethodNotAllowed', 'NotAcceptable', 'ProxyAuthenticationRequired', 'RequestTimeout', 'Conflict', 'Gone', 'LengthRequired', 'PreconditionFailed', 'RequestEntityTooLarge', 'RequestURITooLong', 'UnsupportedMediaType', 'RequestedRangeNotSatisfiable', 'ExpectationFailed', 'UpgradeRequired', 'InternalServerError', 'NotImplemented', 'BadGateway', 'ServiceUnavailable', 'GatewayTimeout', 'HTTPVersionNotSupported'
	StatusCode HTTPStatusCode `json:"statusCode,omitempty"`
	// Headers - The HTTP headers associated with this operation.
	Headers map[string][]string `json:"Headers"`
}

OperationResultInfoBaseResource base class for operation result information.

func (OperationResultInfoBaseResource) MarshalJSON

func (oribr OperationResultInfoBaseResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for OperationResultInfoBaseResource.

func (*OperationResultInfoBaseResource) UnmarshalJSON

func (oribr *OperationResultInfoBaseResource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for OperationResultInfoBaseResource struct.

type OperationResultsClient

type OperationResultsClient struct {
	BaseClient
}

OperationResultsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service

func NewOperationResultsClient

func NewOperationResultsClient(subscriptionID string) OperationResultsClient

NewOperationResultsClient creates an instance of the OperationResultsClient client.

func NewOperationResultsClientWithBaseURI

func NewOperationResultsClientWithBaseURI(baseURI string, subscriptionID string) OperationResultsClient

NewOperationResultsClientWithBaseURI creates an instance of the OperationResultsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (OperationResultsClient) Get

func (client OperationResultsClient) Get(ctx context.Context, vaultName string, resourceGroupName string, operationID string) (result autorest.Response, err error)

Get provides the status of the delete operations, for example, deleting a backup item. Once the operation starts, the response status code is Accepted. The response status code remains in this state until the operation reaches completion. On successful completion, the status code changes to OK. This method expects OperationID as an argument. OperationID is part of the Location header of the operation response. Parameters: vaultName - the name of the Recovery Services vault. resourceGroupName - the name of the resource group associated with the Recovery Services vault. operationID - the ID of the operation.

func (OperationResultsClient) GetPreparer

func (client OperationResultsClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string, operationID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (OperationResultsClient) GetResponder

func (client OperationResultsClient) GetResponder(resp *http.Response) (result autorest.Response, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (OperationResultsClient) GetSender

func (client OperationResultsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

type OperationStatus

type OperationStatus struct {
	autorest.Response `json:"-"`
	// ID - ID of the operation.
	ID *string `json:"id,omitempty"`
	// Name - Name of the operation.
	Name *string `json:"name,omitempty"`
	// Status - Operation status. Possible values include: 'OperationStatusValuesInvalid', 'OperationStatusValuesInProgress', 'OperationStatusValuesSucceeded', 'OperationStatusValuesFailed', 'OperationStatusValuesCanceled'
	Status OperationStatusValues `json:"status,omitempty"`
	// StartTime - The operation start time. The format of the time is ISO-8601.
	StartTime *date.Time `json:"startTime,omitempty"`
	// EndTime - The operation end time. The format of the time is ISO-8601.
	EndTime *date.Time `json:"endTime,omitempty"`
	// Error - Error information related to this operation.
	Error *OperationStatusError `json:"error,omitempty"`
	// Properties - Additional information associated with this operation.
	Properties BasicOperationStatusExtendedInfo `json:"properties,omitempty"`
}

OperationStatus operation status.

func (*OperationStatus) UnmarshalJSON

func (osVar *OperationStatus) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for OperationStatus struct.

type OperationStatusError

type OperationStatusError struct {
	// Code - The error code for the failed operation.
	Code *string `json:"code,omitempty"`
	// Message - The error message for the failed operation.
	Message *string `json:"message,omitempty"`
}

OperationStatusError error information associated with the operation status call.

type OperationStatusExtendedInfo

type OperationStatusExtendedInfo struct {
	// ObjectType - Possible values include: 'ObjectTypeOperationStatusExtendedInfo', 'ObjectTypeOperationStatusJobExtendedInfo', 'ObjectTypeOperationStatusProvisionILRExtendedInfo', 'ObjectTypeOperationStatusJobsExtendedInfo'
	ObjectType ObjectType `json:"objectType,omitempty"`
}

OperationStatusExtendedInfo the base class for additional information about the operation status.

func (OperationStatusExtendedInfo) AsBasicOperationStatusExtendedInfo

func (osei OperationStatusExtendedInfo) AsBasicOperationStatusExtendedInfo() (BasicOperationStatusExtendedInfo, bool)

AsBasicOperationStatusExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusExtendedInfo.

func (OperationStatusExtendedInfo) AsOperationStatusExtendedInfo

func (osei OperationStatusExtendedInfo) AsOperationStatusExtendedInfo() (*OperationStatusExtendedInfo, bool)

AsOperationStatusExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusExtendedInfo.

func (OperationStatusExtendedInfo) AsOperationStatusJobExtendedInfo

func (osei OperationStatusExtendedInfo) AsOperationStatusJobExtendedInfo() (*OperationStatusJobExtendedInfo, bool)

AsOperationStatusJobExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusExtendedInfo.

func (OperationStatusExtendedInfo) AsOperationStatusJobsExtendedInfo

func (osei OperationStatusExtendedInfo) AsOperationStatusJobsExtendedInfo() (*OperationStatusJobsExtendedInfo, bool)

AsOperationStatusJobsExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusExtendedInfo.

func (OperationStatusExtendedInfo) AsOperationStatusProvisionILRExtendedInfo

func (osei OperationStatusExtendedInfo) AsOperationStatusProvisionILRExtendedInfo() (*OperationStatusProvisionILRExtendedInfo, bool)

AsOperationStatusProvisionILRExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusExtendedInfo.

func (OperationStatusExtendedInfo) MarshalJSON

func (osei OperationStatusExtendedInfo) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for OperationStatusExtendedInfo.

type OperationStatusJobExtendedInfo

type OperationStatusJobExtendedInfo struct {
	// JobID - ID of the job created for this backup item.
	JobID *string `json:"jobId,omitempty"`
	// ObjectType - Possible values include: 'ObjectTypeOperationStatusExtendedInfo', 'ObjectTypeOperationStatusJobExtendedInfo', 'ObjectTypeOperationStatusProvisionILRExtendedInfo', 'ObjectTypeOperationStatusJobsExtendedInfo'
	ObjectType ObjectType `json:"objectType,omitempty"`
}

OperationStatusJobExtendedInfo extended information about the operation status job.

func (OperationStatusJobExtendedInfo) AsBasicOperationStatusExtendedInfo

func (osjei OperationStatusJobExtendedInfo) AsBasicOperationStatusExtendedInfo() (BasicOperationStatusExtendedInfo, bool)

AsBasicOperationStatusExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusJobExtendedInfo.

func (OperationStatusJobExtendedInfo) AsOperationStatusExtendedInfo

func (osjei OperationStatusJobExtendedInfo) AsOperationStatusExtendedInfo() (*OperationStatusExtendedInfo, bool)

AsOperationStatusExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusJobExtendedInfo.

func (OperationStatusJobExtendedInfo) AsOperationStatusJobExtendedInfo

func (osjei OperationStatusJobExtendedInfo) AsOperationStatusJobExtendedInfo() (*OperationStatusJobExtendedInfo, bool)

AsOperationStatusJobExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusJobExtendedInfo.

func (OperationStatusJobExtendedInfo) AsOperationStatusJobsExtendedInfo

func (osjei OperationStatusJobExtendedInfo) AsOperationStatusJobsExtendedInfo() (*OperationStatusJobsExtendedInfo, bool)

AsOperationStatusJobsExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusJobExtendedInfo.

func (OperationStatusJobExtendedInfo) AsOperationStatusProvisionILRExtendedInfo

func (osjei OperationStatusJobExtendedInfo) AsOperationStatusProvisionILRExtendedInfo() (*OperationStatusProvisionILRExtendedInfo, bool)

AsOperationStatusProvisionILRExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusJobExtendedInfo.

func (OperationStatusJobExtendedInfo) MarshalJSON

func (osjei OperationStatusJobExtendedInfo) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for OperationStatusJobExtendedInfo.

type OperationStatusJobsExtendedInfo

type OperationStatusJobsExtendedInfo struct {
	// JobIds - IDs of the jobs created for the backup item.
	JobIds *[]string `json:"jobIds,omitempty"`
	// FailedJobsError - Stores all the failed jobs along with the corresponding error codes.
	FailedJobsError map[string]*string `json:"failedJobsError"`
	// ObjectType - Possible values include: 'ObjectTypeOperationStatusExtendedInfo', 'ObjectTypeOperationStatusJobExtendedInfo', 'ObjectTypeOperationStatusProvisionILRExtendedInfo', 'ObjectTypeOperationStatusJobsExtendedInfo'
	ObjectType ObjectType `json:"objectType,omitempty"`
}

OperationStatusJobsExtendedInfo operation status extended info for the job list.

func (OperationStatusJobsExtendedInfo) AsBasicOperationStatusExtendedInfo

func (osjei OperationStatusJobsExtendedInfo) AsBasicOperationStatusExtendedInfo() (BasicOperationStatusExtendedInfo, bool)

AsBasicOperationStatusExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusJobsExtendedInfo.

func (OperationStatusJobsExtendedInfo) AsOperationStatusExtendedInfo

func (osjei OperationStatusJobsExtendedInfo) AsOperationStatusExtendedInfo() (*OperationStatusExtendedInfo, bool)

AsOperationStatusExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusJobsExtendedInfo.

func (OperationStatusJobsExtendedInfo) AsOperationStatusJobExtendedInfo

func (osjei OperationStatusJobsExtendedInfo) AsOperationStatusJobExtendedInfo() (*OperationStatusJobExtendedInfo, bool)

AsOperationStatusJobExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusJobsExtendedInfo.

func (OperationStatusJobsExtendedInfo) AsOperationStatusJobsExtendedInfo

func (osjei OperationStatusJobsExtendedInfo) AsOperationStatusJobsExtendedInfo() (*OperationStatusJobsExtendedInfo, bool)

AsOperationStatusJobsExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusJobsExtendedInfo.

func (OperationStatusJobsExtendedInfo) AsOperationStatusProvisionILRExtendedInfo

func (osjei OperationStatusJobsExtendedInfo) AsOperationStatusProvisionILRExtendedInfo() (*OperationStatusProvisionILRExtendedInfo, bool)

AsOperationStatusProvisionILRExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusJobsExtendedInfo.

func (OperationStatusJobsExtendedInfo) MarshalJSON

func (osjei OperationStatusJobsExtendedInfo) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for OperationStatusJobsExtendedInfo.

type OperationStatusProvisionILRExtendedInfo

type OperationStatusProvisionILRExtendedInfo struct {
	// RecoveryTarget - Target details for the file or folder restore.
	RecoveryTarget *InstantItemRecoveryTarget `json:"recoveryTarget,omitempty"`
	// ObjectType - Possible values include: 'ObjectTypeOperationStatusExtendedInfo', 'ObjectTypeOperationStatusJobExtendedInfo', 'ObjectTypeOperationStatusProvisionILRExtendedInfo', 'ObjectTypeOperationStatusJobsExtendedInfo'
	ObjectType ObjectType `json:"objectType,omitempty"`
}

OperationStatusProvisionILRExtendedInfo extended information about the Item Level Recovery (ILR) provision action, operation status.

func (OperationStatusProvisionILRExtendedInfo) AsBasicOperationStatusExtendedInfo

func (ospiei OperationStatusProvisionILRExtendedInfo) AsBasicOperationStatusExtendedInfo() (BasicOperationStatusExtendedInfo, bool)

AsBasicOperationStatusExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusProvisionILRExtendedInfo.

func (OperationStatusProvisionILRExtendedInfo) AsOperationStatusExtendedInfo

func (ospiei OperationStatusProvisionILRExtendedInfo) AsOperationStatusExtendedInfo() (*OperationStatusExtendedInfo, bool)

AsOperationStatusExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusProvisionILRExtendedInfo.

func (OperationStatusProvisionILRExtendedInfo) AsOperationStatusJobExtendedInfo

func (ospiei OperationStatusProvisionILRExtendedInfo) AsOperationStatusJobExtendedInfo() (*OperationStatusJobExtendedInfo, bool)

AsOperationStatusJobExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusProvisionILRExtendedInfo.

func (OperationStatusProvisionILRExtendedInfo) AsOperationStatusJobsExtendedInfo

func (ospiei OperationStatusProvisionILRExtendedInfo) AsOperationStatusJobsExtendedInfo() (*OperationStatusJobsExtendedInfo, bool)

AsOperationStatusJobsExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusProvisionILRExtendedInfo.

func (OperationStatusProvisionILRExtendedInfo) AsOperationStatusProvisionILRExtendedInfo

func (ospiei OperationStatusProvisionILRExtendedInfo) AsOperationStatusProvisionILRExtendedInfo() (*OperationStatusProvisionILRExtendedInfo, bool)

AsOperationStatusProvisionILRExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusProvisionILRExtendedInfo.

func (OperationStatusProvisionILRExtendedInfo) MarshalJSON

func (ospiei OperationStatusProvisionILRExtendedInfo) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for OperationStatusProvisionILRExtendedInfo.

type OperationStatusValues

type OperationStatusValues string

OperationStatusValues enumerates the values for operation status values.

const (
	// OperationStatusValuesCanceled ...
	OperationStatusValuesCanceled OperationStatusValues = "Canceled"
	// OperationStatusValuesFailed ...
	OperationStatusValuesFailed OperationStatusValues = "Failed"
	// OperationStatusValuesInProgress ...
	OperationStatusValuesInProgress OperationStatusValues = "InProgress"
	// OperationStatusValuesInvalid ...
	OperationStatusValuesInvalid OperationStatusValues = "Invalid"
	// OperationStatusValuesSucceeded ...
	OperationStatusValuesSucceeded OperationStatusValues = "Succeeded"
)

func PossibleOperationStatusValuesValues

func PossibleOperationStatusValuesValues() []OperationStatusValues

PossibleOperationStatusValuesValues returns an array of possible values for the OperationStatusValues const type.

type OperationStatusesClient

type OperationStatusesClient struct {
	BaseClient
}

OperationStatusesClient is the open API 2.0 Specs for Azure RecoveryServices Backup service

func NewOperationStatusesClient

func NewOperationStatusesClient(subscriptionID string) OperationStatusesClient

NewOperationStatusesClient creates an instance of the OperationStatusesClient client.

func NewOperationStatusesClientWithBaseURI

func NewOperationStatusesClientWithBaseURI(baseURI string, subscriptionID string) OperationStatusesClient

NewOperationStatusesClientWithBaseURI creates an instance of the OperationStatusesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (OperationStatusesClient) Get

func (client OperationStatusesClient) Get(ctx context.Context, vaultName string, resourceGroupName string, operationID string) (result OperationStatus, err error)

Get gets the status of an operation such as triggering a backup or restore. The status can be In progress, Completed or Failed. You can refer to the OperationStatus enum for all the possible states of an operation. Some operations create jobs. This method returns the list of jobs when the operation is complete. Parameters: vaultName - the name of the Recovery Services vault. resourceGroupName - the name of the resource group associated with the Recovery Services vault. operationID - the ID of the operation.

func (OperationStatusesClient) GetPreparer

func (client OperationStatusesClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string, operationID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (OperationStatusesClient) GetResponder

func (client OperationStatusesClient) GetResponder(resp *http.Response) (result OperationStatus, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (OperationStatusesClient) GetSender

func (client OperationStatusesClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

type OperationWorkerResponse

type OperationWorkerResponse struct {
	// StatusCode - The HTTP status code of the operation. Possible values include: 'Continue', 'SwitchingProtocols', 'OK', 'Created', 'Accepted', 'NonAuthoritativeInformation', 'NoContent', 'ResetContent', 'PartialContent', 'MultipleChoices', 'Ambiguous', 'MovedPermanently', 'Moved', 'Found', 'Redirect', 'SeeOther', 'RedirectMethod', 'NotModified', 'UseProxy', 'Unused', 'TemporaryRedirect', 'RedirectKeepVerb', 'BadRequest', 'Unauthorized', 'PaymentRequired', 'Forbidden', 'NotFound', 'MethodNotAllowed', 'NotAcceptable', 'ProxyAuthenticationRequired', 'RequestTimeout', 'Conflict', 'Gone', 'LengthRequired', 'PreconditionFailed', 'RequestEntityTooLarge', 'RequestURITooLong', 'UnsupportedMediaType', 'RequestedRangeNotSatisfiable', 'ExpectationFailed', 'UpgradeRequired', 'InternalServerError', 'NotImplemented', 'BadGateway', 'ServiceUnavailable', 'GatewayTimeout', 'HTTPVersionNotSupported'
	StatusCode HTTPStatusCode `json:"statusCode,omitempty"`
	// Headers - The HTTP headers associated with this operation.
	Headers map[string][]string `json:"Headers"`
}

OperationWorkerResponse the base class for operation result responses.

func (OperationWorkerResponse) MarshalJSON

func (owr OperationWorkerResponse) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for OperationWorkerResponse.

type ProtectableItemType

type ProtectableItemType string

ProtectableItemType enumerates the values for protectable item type.

const (
	// ProtectableItemTypeIaaSVMProtectableItem ...
	ProtectableItemTypeIaaSVMProtectableItem ProtectableItemType = "IaaSVMProtectableItem"
	// ProtectableItemTypeMicrosoftClassicComputevirtualMachines ...
	ProtectableItemTypeMicrosoftClassicComputevirtualMachines ProtectableItemType = "Microsoft.ClassicCompute/virtualMachines"
	// ProtectableItemTypeMicrosoftComputevirtualMachines ...
	ProtectableItemTypeMicrosoftComputevirtualMachines ProtectableItemType = "Microsoft.Compute/virtualMachines"
	// ProtectableItemTypeWorkloadProtectableItem ...
	ProtectableItemTypeWorkloadProtectableItem ProtectableItemType = "WorkloadProtectableItem"
)

func PossibleProtectableItemTypeValues

func PossibleProtectableItemTypeValues() []ProtectableItemType

PossibleProtectableItemTypeValues returns an array of possible values for the ProtectableItemType const type.

type ProtectableItemsClient

type ProtectableItemsClient struct {
	BaseClient
}

ProtectableItemsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service

func NewProtectableItemsClient

func NewProtectableItemsClient(subscriptionID string) ProtectableItemsClient

NewProtectableItemsClient creates an instance of the ProtectableItemsClient client.

func NewProtectableItemsClientWithBaseURI

func NewProtectableItemsClientWithBaseURI(baseURI string, subscriptionID string) ProtectableItemsClient

NewProtectableItemsClientWithBaseURI creates an instance of the ProtectableItemsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ProtectableItemsClient) List

func (client ProtectableItemsClient) List(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result WorkloadProtectableItemResourceListPage, err error)

List based on the query filter and the pagination parameters, this operation provides a pageable list of objects within the subscription that can be protected. Parameters: vaultName - the name of the Recovery Services vault. resourceGroupName - the name of the resource group associated with the Recovery Services vault. filter - using the following query filters, you can sort a specific backup item based on: type of backup item, status, name of the item, and more. providerType eq { AzureIaasVM, MAB, DPM, AzureBackupServer, AzureSql } and status eq { NotProtected , Protecting , Protected } and friendlyName {name} and skipToken eq {string which provides the next set of list} and topToken eq {int} and backupManagementType eq { AzureIaasVM, MAB, DPM, AzureBackupServer, AzureSql }. skipToken - the Skip Token filter.

func (ProtectableItemsClient) ListComplete

func (client ProtectableItemsClient) ListComplete(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result WorkloadProtectableItemResourceListIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (ProtectableItemsClient) ListPreparer

func (client ProtectableItemsClient) ListPreparer(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (*http.Request, error)

ListPreparer prepares the List request.

func (ProtectableItemsClient) ListResponder

func (client ProtectableItemsClient) ListResponder(resp *http.Response) (result WorkloadProtectableItemResourceList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (ProtectableItemsClient) ListSender

func (client ProtectableItemsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type ProtectableObjectType

type ProtectableObjectType string

ProtectableObjectType enumerates the values for protectable object type.

const (
	// ProtectableObjectTypeAzureSQLContainer ...
	ProtectableObjectTypeAzureSQLContainer ProtectableObjectType = "AzureSqlContainer"
	// ProtectableObjectTypeIaaSVMContainer ...
	ProtectableObjectTypeIaaSVMContainer ProtectableObjectType = "IaaSVMContainer"
	// ProtectableObjectTypeMABWindowsContainer ...
	ProtectableObjectTypeMABWindowsContainer ProtectableObjectType = "MABWindowsContainer"
	// ProtectableObjectTypeMicrosoftClassicComputevirtualMachines ...
	ProtectableObjectTypeMicrosoftClassicComputevirtualMachines ProtectableObjectType = "Microsoft.ClassicCompute/virtualMachines"
	// ProtectableObjectTypeMicrosoftComputevirtualMachines ...
	ProtectableObjectTypeMicrosoftComputevirtualMachines ProtectableObjectType = "Microsoft.Compute/virtualMachines"
	// ProtectableObjectTypeProtectionContainer ...
	ProtectableObjectTypeProtectionContainer ProtectableObjectType = "ProtectionContainer"
)

func PossibleProtectableObjectTypeValues

func PossibleProtectableObjectTypeValues() []ProtectableObjectType

PossibleProtectableObjectTypeValues returns an array of possible values for the ProtectableObjectType const type.

type ProtectedItem

type ProtectedItem struct {
	// BackupManagementType - The backup management type associated with the backup item. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL'
	BackupManagementType ManagementType `json:"backupManagementType,omitempty"`
	// WorkloadType - The workload type for this item. Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSQLDb', 'SQLDB', 'Exchange', 'Sharepoint', 'DPMUnknown'
	WorkloadType DataSourceType `json:"workloadType,omitempty"`
	// SourceResourceID - The ID of the resource to be backed up.
	SourceResourceID *string `json:"sourceResourceId,omitempty"`
	// PolicyID - The ID of the backup policy associated with this backup item.
	PolicyID *string `json:"policyId,omitempty"`
	// LastRecoveryPoint - The timestamp when the most recent backup copy was created for this backup item.
	LastRecoveryPoint *date.Time `json:"lastRecoveryPoint,omitempty"`
	// ProtectedItemType - Possible values include: 'ProtectedItemTypeProtectedItem', 'ProtectedItemTypeAzureIaaSVMProtectedItem', 'ProtectedItemTypeMabFileFolderProtectedItem', 'ProtectedItemTypeMicrosoftSqlserversdatabases', 'ProtectedItemTypeMicrosoftComputevirtualMachines', 'ProtectedItemTypeMicrosoftClassicComputevirtualMachines'
	ProtectedItemType ProtectedItemType `json:"protectedItemType,omitempty"`
}

ProtectedItem the base class for backup items.

func (ProtectedItem) AsAzureIaaSClassicComputeVMProtectedItem

func (pi ProtectedItem) AsAzureIaaSClassicComputeVMProtectedItem() (*AzureIaaSClassicComputeVMProtectedItem, bool)

AsAzureIaaSClassicComputeVMProtectedItem is the BasicProtectedItem implementation for ProtectedItem.

func (ProtectedItem) AsAzureIaaSComputeVMProtectedItem

func (pi ProtectedItem) AsAzureIaaSComputeVMProtectedItem() (*AzureIaaSComputeVMProtectedItem, bool)

AsAzureIaaSComputeVMProtectedItem is the BasicProtectedItem implementation for ProtectedItem.

func (ProtectedItem) AsAzureIaaSVMProtectedItem

func (pi ProtectedItem) AsAzureIaaSVMProtectedItem() (*AzureIaaSVMProtectedItem, bool)

AsAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for ProtectedItem.

func (ProtectedItem) AsAzureSQLProtectedItem

func (pi ProtectedItem) AsAzureSQLProtectedItem() (*AzureSQLProtectedItem, bool)

AsAzureSQLProtectedItem is the BasicProtectedItem implementation for ProtectedItem.

func (ProtectedItem) AsBasicAzureIaaSVMProtectedItem

func (pi ProtectedItem) AsBasicAzureIaaSVMProtectedItem() (BasicAzureIaaSVMProtectedItem, bool)

AsBasicAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for ProtectedItem.

func (ProtectedItem) AsBasicProtectedItem

func (pi ProtectedItem) AsBasicProtectedItem() (BasicProtectedItem, bool)

AsBasicProtectedItem is the BasicProtectedItem implementation for ProtectedItem.

func (ProtectedItem) AsMabFileFolderProtectedItem

func (pi ProtectedItem) AsMabFileFolderProtectedItem() (*MabFileFolderProtectedItem, bool)

AsMabFileFolderProtectedItem is the BasicProtectedItem implementation for ProtectedItem.

func (ProtectedItem) AsProtectedItem

func (pi ProtectedItem) AsProtectedItem() (*ProtectedItem, bool)

AsProtectedItem is the BasicProtectedItem implementation for ProtectedItem.

func (ProtectedItem) MarshalJSON

func (pi ProtectedItem) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ProtectedItem.

type ProtectedItemOperationResultsClient

type ProtectedItemOperationResultsClient struct {
	BaseClient
}

ProtectedItemOperationResultsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service

func NewProtectedItemOperationResultsClient

func NewProtectedItemOperationResultsClient(subscriptionID string) ProtectedItemOperationResultsClient

NewProtectedItemOperationResultsClient creates an instance of the ProtectedItemOperationResultsClient client.

func NewProtectedItemOperationResultsClientWithBaseURI

func NewProtectedItemOperationResultsClientWithBaseURI(baseURI string, subscriptionID string) ProtectedItemOperationResultsClient

NewProtectedItemOperationResultsClientWithBaseURI creates an instance of the ProtectedItemOperationResultsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ProtectedItemOperationResultsClient) Get

func (client ProtectedItemOperationResultsClient) Get(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, operationID string) (result ProtectedItemResource, err error)

Get gets the result of any operation on the backup item. Parameters: vaultName - the name of the Recovery Services vault. resourceGroupName - the name of the resource group associated with the Recovery Services vault. fabricName - the fabric name associated with the backup item. containerName - the container name associated with the backup item. protectedItemName - the name of backup item used in this GET operation. operationID - the OperationID used in this GET operation.

func (ProtectedItemOperationResultsClient) GetPreparer

func (client ProtectedItemOperationResultsClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, operationID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ProtectedItemOperationResultsClient) GetResponder

func (client ProtectedItemOperationResultsClient) GetResponder(resp *http.Response) (result ProtectedItemResource, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ProtectedItemOperationResultsClient) GetSender

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

type ProtectedItemOperationStatusesClient

type ProtectedItemOperationStatusesClient struct {
	BaseClient
}

ProtectedItemOperationStatusesClient is the open API 2.0 Specs for Azure RecoveryServices Backup service

func NewProtectedItemOperationStatusesClient

func NewProtectedItemOperationStatusesClient(subscriptionID string) ProtectedItemOperationStatusesClient

NewProtectedItemOperationStatusesClient creates an instance of the ProtectedItemOperationStatusesClient client.

func NewProtectedItemOperationStatusesClientWithBaseURI

func NewProtectedItemOperationStatusesClientWithBaseURI(baseURI string, subscriptionID string) ProtectedItemOperationStatusesClient

NewProtectedItemOperationStatusesClientWithBaseURI creates an instance of the ProtectedItemOperationStatusesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ProtectedItemOperationStatusesClient) Get

func (client ProtectedItemOperationStatusesClient) Get(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, operationID string) (result OperationStatus, err error)

Get gets the status of an operation such as triggering a backup or restore. The status can be: In progress, Completed, or Failed. You can refer to the OperationStatus enum for all the possible states of the operation. Some operations create jobs. This method returns the list of jobs associated with the operation. Parameters: vaultName - the name of the Recovery Services vault. resourceGroupName - the name of the resource group associated with the Recovery Services vault. fabricName - the fabric name associated with the backup item. containerName - the container name associated with the backup item. protectedItemName - the name of backup item used in this GET operation. operationID - the OperationID used in this GET operation.

func (ProtectedItemOperationStatusesClient) GetPreparer

func (client ProtectedItemOperationStatusesClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, operationID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ProtectedItemOperationStatusesClient) GetResponder

func (client ProtectedItemOperationStatusesClient) GetResponder(resp *http.Response) (result OperationStatus, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ProtectedItemOperationStatusesClient) GetSender

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

type ProtectedItemQueryObject

type ProtectedItemQueryObject struct {
	// BackupManagementType - The backup management type associated with an item. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL'
	BackupManagementType ManagementType `json:"backupManagementType,omitempty"`
	// ItemType - The workload type associated with an item. Possible values include: 'Invalid', 'VM', 'FileFolder', 'AzureSQLDb', 'SQLDB', 'Exchange', 'Sharepoint', 'DPMUnknown'
	ItemType DataSourceType `json:"itemType,omitempty"`
	// PolicyName - The name of the backup policy associated with the item.
	PolicyName *string `json:"policyName,omitempty"`
	// ContainerName - The name of the container.
	ContainerName *string `json:"containerName,omitempty"`
}

ProtectedItemQueryObject filters the list of backup items.

type ProtectedItemResource

type ProtectedItemResource struct {
	autorest.Response `json:"-"`
	Properties        BasicProtectedItem `json:"properties,omitempty"`
	// ID - Resource ID represents the complete path to the resource.
	ID *string `json:"id,omitempty"`
	// Name - Resource name associated with the resource.
	Name *string `json:"name,omitempty"`
	// Type - Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
	Type *string `json:"type,omitempty"`
	// Location - Resource location.
	Location *string `json:"location,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
	// ETag - Optional ETag.
	ETag *string `json:"eTag,omitempty"`
}

ProtectedItemResource the base class for backup items.

func (ProtectedItemResource) MarshalJSON

func (pir ProtectedItemResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ProtectedItemResource.

func (*ProtectedItemResource) UnmarshalJSON

func (pir *ProtectedItemResource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ProtectedItemResource struct.

type ProtectedItemResourceList

type ProtectedItemResourceList struct {
	autorest.Response `json:"-"`
	// Value - The list of resources.
	Value *[]ProtectedItemResource `json:"value,omitempty"`
	// NextLink - The URI to GET the next page of resources. Call ListNext() gets the next page of resources.
	NextLink *string `json:"nextLink,omitempty"`
}

ProtectedItemResourceList the list of ProtectedItem resources.

func (ProtectedItemResourceList) IsEmpty

func (pirl ProtectedItemResourceList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ProtectedItemResourceListIterator

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

ProtectedItemResourceListIterator provides access to a complete listing of ProtectedItemResource values.

func NewProtectedItemResourceListIterator

func NewProtectedItemResourceListIterator(page ProtectedItemResourceListPage) ProtectedItemResourceListIterator

Creates a new instance of the ProtectedItemResourceListIterator type.

func (*ProtectedItemResourceListIterator) Next

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ProtectedItemResourceListIterator) NextWithContext

func (iter *ProtectedItemResourceListIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ProtectedItemResourceListIterator) NotDone

func (iter ProtectedItemResourceListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ProtectedItemResourceListIterator) Response

Response returns the raw server response from the last page request.

func (ProtectedItemResourceListIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ProtectedItemResourceListPage

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

ProtectedItemResourceListPage contains a page of ProtectedItemResource values.

func NewProtectedItemResourceListPage

Creates a new instance of the ProtectedItemResourceListPage type.

func (*ProtectedItemResourceListPage) Next

func (page *ProtectedItemResourceListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ProtectedItemResourceListPage) NextWithContext

func (page *ProtectedItemResourceListPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ProtectedItemResourceListPage) NotDone

func (page ProtectedItemResourceListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ProtectedItemResourceListPage) Response

Response returns the raw server response from the last page request.

func (ProtectedItemResourceListPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type ProtectedItemState

type ProtectedItemState string

ProtectedItemState enumerates the values for protected item state.

const (
	// ProtectedItemStateInvalid ...
	ProtectedItemStateInvalid ProtectedItemState = "Invalid"
	// ProtectedItemStateIRPending ...
	ProtectedItemStateIRPending ProtectedItemState = "IRPending"
	// ProtectedItemStateProtected ...
	ProtectedItemStateProtected ProtectedItemState = "Protected"
	// ProtectedItemStateProtectionError ...
	ProtectedItemStateProtectionError ProtectedItemState = "ProtectionError"
	// ProtectedItemStateProtectionPaused ...
	ProtectedItemStateProtectionPaused ProtectedItemState = "ProtectionPaused"
	// ProtectedItemStateProtectionStopped ...
	ProtectedItemStateProtectionStopped ProtectedItemState = "ProtectionStopped"
)

func PossibleProtectedItemStateValues

func PossibleProtectedItemStateValues() []ProtectedItemState

PossibleProtectedItemStateValues returns an array of possible values for the ProtectedItemState const type.

type ProtectedItemType

type ProtectedItemType string

ProtectedItemType enumerates the values for protected item type.

const (
	// ProtectedItemTypeAzureIaaSVMProtectedItem ...
	ProtectedItemTypeAzureIaaSVMProtectedItem ProtectedItemType = "AzureIaaSVMProtectedItem"
	// ProtectedItemTypeMabFileFolderProtectedItem ...
	ProtectedItemTypeMabFileFolderProtectedItem ProtectedItemType = "MabFileFolderProtectedItem"
	// ProtectedItemTypeMicrosoftClassicComputevirtualMachines ...
	ProtectedItemTypeMicrosoftClassicComputevirtualMachines ProtectedItemType = "Microsoft.ClassicCompute/virtualMachines"
	// ProtectedItemTypeMicrosoftComputevirtualMachines ...
	ProtectedItemTypeMicrosoftComputevirtualMachines ProtectedItemType = "Microsoft.Compute/virtualMachines"
	// ProtectedItemTypeMicrosoftSqlserversdatabases ...
	ProtectedItemTypeMicrosoftSqlserversdatabases ProtectedItemType = "Microsoft.Sql/servers/databases"
	// ProtectedItemTypeProtectedItem ...
	ProtectedItemTypeProtectedItem ProtectedItemType = "ProtectedItem"
)

func PossibleProtectedItemTypeValues

func PossibleProtectedItemTypeValues() []ProtectedItemType

PossibleProtectedItemTypeValues returns an array of possible values for the ProtectedItemType const type.

type ProtectedItemsClient

type ProtectedItemsClient struct {
	BaseClient
}

ProtectedItemsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service

func NewProtectedItemsClient

func NewProtectedItemsClient(subscriptionID string) ProtectedItemsClient

NewProtectedItemsClient creates an instance of the ProtectedItemsClient client.

func NewProtectedItemsClientWithBaseURI

func NewProtectedItemsClientWithBaseURI(baseURI string, subscriptionID string) ProtectedItemsClient

NewProtectedItemsClientWithBaseURI creates an instance of the ProtectedItemsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ProtectedItemsClient) CreateOrUpdate

func (client ProtectedItemsClient) CreateOrUpdate(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, resourceProtectedItem ProtectedItemResource) (result autorest.Response, err error)

CreateOrUpdate this operation enables an item to be backed up, or modifies the existing backup policy information for an item that has been backed up. This is an asynchronous operation. To learn the status of the operation, call the GetItemOperationResult API. Parameters: vaultName - the name of the Recovery Services vault. resourceGroupName - the name of the resource group associated with the Recovery Services vault. fabricName - the fabric name associated with the backup item. containerName - the container name associated with the backup item. protectedItemName - the name of the backup item. resourceProtectedItem - the resource backup item.

func (ProtectedItemsClient) CreateOrUpdatePreparer

func (client ProtectedItemsClient) CreateOrUpdatePreparer(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, resourceProtectedItem ProtectedItemResource) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ProtectedItemsClient) CreateOrUpdateResponder

func (client ProtectedItemsClient) CreateOrUpdateResponder(resp *http.Response) (result autorest.Response, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (ProtectedItemsClient) CreateOrUpdateSender

func (client ProtectedItemsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (ProtectedItemsClient) Delete

func (client ProtectedItemsClient) Delete(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string) (result autorest.Response, err error)

Delete used to disable the backup job for an item within a container. This is an asynchronous operation. To learn the status of the request, call the GetItemOperationResult API. Parameters: vaultName - the name of the Recovery Services vault. resourceGroupName - the name of the resource group associated with the Recovery Services vault. fabricName - the fabric name associated with the backup item. containerName - the container name associated with the backup item. protectedItemName - the backup item to be deleted.

func (ProtectedItemsClient) DeletePreparer

func (client ProtectedItemsClient) DeletePreparer(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ProtectedItemsClient) DeleteResponder

func (client ProtectedItemsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ProtectedItemsClient) DeleteSender

func (client ProtectedItemsClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ProtectedItemsClient) Get

func (client ProtectedItemsClient) Get(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, filter string) (result ProtectedItemResource, err error)

Get provides the details of the backup item. This is an asynchronous operation. To know the status of the operation, call the GetItemOperationResult API. Parameters: vaultName - the name of the Recovery Services vault. resourceGroupName - the name of the resource group associated with the Recovery Services vault. fabricName - the fabric name associated with the backup item. containerName - the container name associated with the backup item. protectedItemName - the backup item name used in this GET operation. filter - expand eq {extendedInfo}. This filter enables you to choose (or filter) specific items in the list of backup items.

func (ProtectedItemsClient) GetPreparer

func (client ProtectedItemsClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, filter string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ProtectedItemsClient) GetResponder

func (client ProtectedItemsClient) GetResponder(resp *http.Response) (result ProtectedItemResource, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ProtectedItemsClient) GetSender

func (client ProtectedItemsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ProtectedItemsClient) List

func (client ProtectedItemsClient) List(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result ProtectedItemResourceListPage, err error)

List provides a pageable list of all items in a subscription, that can be protected. Parameters: vaultName - the name of the Recovery Services vault. resourceGroupName - the name of the resource group associated with the Recovery Services vault. filter - itemType eq { VM , FileFolder , AzureSqlDb , SQLDB , Exchange , Sharepoint , DPMUnknown } and providerType eq { AzureIaasVM, MAB, DPM, AzureBackupServer, AzureSql } and policyName eq {policyName} and containerName eq {containername} and backupManagementType eq { AzureIaasVM, MAB, DPM, AzureBackupServer, AzureSql }. skipToken - the Skip Token filter.

func (ProtectedItemsClient) ListComplete

func (client ProtectedItemsClient) ListComplete(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (result ProtectedItemResourceListIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (ProtectedItemsClient) ListPreparer

func (client ProtectedItemsClient) ListPreparer(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (*http.Request, error)

ListPreparer prepares the List request.

func (ProtectedItemsClient) ListResponder

func (client ProtectedItemsClient) ListResponder(resp *http.Response) (result ProtectedItemResourceList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (ProtectedItemsClient) ListSender

func (client ProtectedItemsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type ProtectionContainer

type ProtectionContainer struct {
	// FriendlyName - Friendly name of the container.
	FriendlyName *string `json:"friendlyName,omitempty"`
	// BackupManagementType - The backup management type for the container. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL'
	BackupManagementType ManagementType `json:"backupManagementType,omitempty"`
	// RegistrationStatus - The container's registration status with the Recovery Services vault.
	RegistrationStatus *string `json:"registrationStatus,omitempty"`
	// HealthStatus - The status of the container's health.
	HealthStatus *string `json:"healthStatus,omitempty"`
	// ContainerType - READ-ONLY; The type assigned to the container. The values to use for each of these properties are:<br/> 1. Compute Azure VM is Microsoft.Compute/virtualMachines<br/> 2. Classic Compute Azure VM is Microsoft.ClassicCompute/virtualMachines<br/> 3. Windows machines (like Azure Backup Server and DPM) is Windows<br/> 4. Azure SQL instance is AzureSqlContainer.
	ContainerType *string `json:"containerType,omitempty"`
	// ProtectableObjectType - Possible values include: 'ProtectableObjectTypeProtectionContainer', 'ProtectableObjectTypeAzureSQLContainer', 'ProtectableObjectTypeIaaSVMContainer', 'ProtectableObjectTypeMABWindowsContainer', 'ProtectableObjectTypeMicrosoftComputevirtualMachines', 'ProtectableObjectTypeMicrosoftClassicComputevirtualMachines'
	ProtectableObjectType ProtectableObjectType `json:"protectableObjectType,omitempty"`
}

ProtectionContainer the base class for a container with backup items. Containers with specific workloads are derived from this class.

func (ProtectionContainer) AsAzureIaaSClassicComputeVMContainer

func (pc ProtectionContainer) AsAzureIaaSClassicComputeVMContainer() (*AzureIaaSClassicComputeVMContainer, bool)

AsAzureIaaSClassicComputeVMContainer is the BasicProtectionContainer implementation for ProtectionContainer.

func (ProtectionContainer) AsAzureIaaSComputeVMContainer

func (pc ProtectionContainer) AsAzureIaaSComputeVMContainer() (*AzureIaaSComputeVMContainer, bool)

AsAzureIaaSComputeVMContainer is the BasicProtectionContainer implementation for ProtectionContainer.

func (ProtectionContainer) AsAzureSQLContainer

func (pc ProtectionContainer) AsAzureSQLContainer() (*AzureSQLContainer, bool)

AsAzureSQLContainer is the BasicProtectionContainer implementation for ProtectionContainer.

func (ProtectionContainer) AsBasicIaaSVMContainer

func (pc ProtectionContainer) AsBasicIaaSVMContainer() (BasicIaaSVMContainer, bool)

AsBasicIaaSVMContainer is the BasicProtectionContainer implementation for ProtectionContainer.

func (ProtectionContainer) AsBasicProtectionContainer

func (pc ProtectionContainer) AsBasicProtectionContainer() (BasicProtectionContainer, bool)

AsBasicProtectionContainer is the BasicProtectionContainer implementation for ProtectionContainer.

func (ProtectionContainer) AsIaaSVMContainer

func (pc ProtectionContainer) AsIaaSVMContainer() (*IaaSVMContainer, bool)

AsIaaSVMContainer is the BasicProtectionContainer implementation for ProtectionContainer.

func (ProtectionContainer) AsMabContainer

func (pc ProtectionContainer) AsMabContainer() (*MabContainer, bool)

AsMabContainer is the BasicProtectionContainer implementation for ProtectionContainer.

func (ProtectionContainer) AsProtectionContainer

func (pc ProtectionContainer) AsProtectionContainer() (*ProtectionContainer, bool)

AsProtectionContainer is the BasicProtectionContainer implementation for ProtectionContainer.

func (ProtectionContainer) MarshalJSON

func (pc ProtectionContainer) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ProtectionContainer.

type ProtectionContainerOperationResultsClient

type ProtectionContainerOperationResultsClient struct {
	BaseClient
}

ProtectionContainerOperationResultsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service

func NewProtectionContainerOperationResultsClient

func NewProtectionContainerOperationResultsClient(subscriptionID string) ProtectionContainerOperationResultsClient

NewProtectionContainerOperationResultsClient creates an instance of the ProtectionContainerOperationResultsClient client.

func NewProtectionContainerOperationResultsClientWithBaseURI

func NewProtectionContainerOperationResultsClientWithBaseURI(baseURI string, subscriptionID string) ProtectionContainerOperationResultsClient

NewProtectionContainerOperationResultsClientWithBaseURI creates an instance of the ProtectionContainerOperationResultsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ProtectionContainerOperationResultsClient) Get

func (client ProtectionContainerOperationResultsClient) Get(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, operationID string) (result ProtectionContainerResource, err error)

Get gets the result of any operation on the container. Parameters: vaultName - the name of the Recovery Services vault. resourceGroupName - the name of the resource group associated with the Recovery Services vault. fabricName - the fabric name associated with the container. containerName - the container name used for this GET operation. operationID - the operation ID used for this GET operation.

func (ProtectionContainerOperationResultsClient) GetPreparer

func (client ProtectionContainerOperationResultsClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, operationID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ProtectionContainerOperationResultsClient) GetResponder

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ProtectionContainerOperationResultsClient) GetSender

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

type ProtectionContainerRefreshOperationResultsClient

type ProtectionContainerRefreshOperationResultsClient struct {
	BaseClient
}

ProtectionContainerRefreshOperationResultsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service

func NewProtectionContainerRefreshOperationResultsClient

func NewProtectionContainerRefreshOperationResultsClient(subscriptionID string) ProtectionContainerRefreshOperationResultsClient

NewProtectionContainerRefreshOperationResultsClient creates an instance of the ProtectionContainerRefreshOperationResultsClient client.

func NewProtectionContainerRefreshOperationResultsClientWithBaseURI

func NewProtectionContainerRefreshOperationResultsClientWithBaseURI(baseURI string, subscriptionID string) ProtectionContainerRefreshOperationResultsClient

NewProtectionContainerRefreshOperationResultsClientWithBaseURI creates an instance of the ProtectionContainerRefreshOperationResultsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ProtectionContainerRefreshOperationResultsClient) Get

func (client ProtectionContainerRefreshOperationResultsClient) Get(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, operationID string) (result autorest.Response, err error)

Get provides the result of the refresh operation triggered by the BeginRefresh operation. Parameters: vaultName - the name of the Recovery Services vault. resourceGroupName - the name of the resource group associated with the Recovery Services vault. fabricName - the fabric name associated with the container. operationID - the operation ID used for this GET operation.

func (ProtectionContainerRefreshOperationResultsClient) GetPreparer

func (client ProtectionContainerRefreshOperationResultsClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, operationID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ProtectionContainerRefreshOperationResultsClient) GetResponder

func (client ProtectionContainerRefreshOperationResultsClient) GetResponder(resp *http.Response) (result autorest.Response, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ProtectionContainerRefreshOperationResultsClient) GetSender

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

type ProtectionContainerResource

type ProtectionContainerResource struct {
	autorest.Response `json:"-"`
	Properties        BasicProtectionContainer `json:"properties,omitempty"`
	// ID - Resource ID represents the complete path to the resource.
	ID *string `json:"id,omitempty"`
	// Name - Resource name associated with the resource.
	Name *string `json:"name,omitempty"`
	// Type - Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
	Type *string `json:"type,omitempty"`
	// Location - Resource location.
	Location *string `json:"location,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
	// ETag - Optional ETag.
	ETag *string `json:"eTag,omitempty"`
}

ProtectionContainerResource base class for a container with backup items. Containers with specific workloads are derived from this class.

func (ProtectionContainerResource) MarshalJSON

func (pcr ProtectionContainerResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ProtectionContainerResource.

func (*ProtectionContainerResource) UnmarshalJSON

func (pcr *ProtectionContainerResource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ProtectionContainerResource struct.

type ProtectionContainerResourceList

type ProtectionContainerResourceList struct {
	autorest.Response `json:"-"`
	// Value - The list of resources.
	Value *[]ProtectionContainerResource `json:"value,omitempty"`
	// NextLink - The URI to GET the next page of resources. Call ListNext() gets the next page of resources.
	NextLink *string `json:"nextLink,omitempty"`
}

ProtectionContainerResourceList the list of ProtectionContainer resources.

type ProtectionContainersClient

type ProtectionContainersClient struct {
	BaseClient
}

ProtectionContainersClient is the open API 2.0 Specs for Azure RecoveryServices Backup service

func NewProtectionContainersClient

func NewProtectionContainersClient(subscriptionID string) ProtectionContainersClient

NewProtectionContainersClient creates an instance of the ProtectionContainersClient client.

func NewProtectionContainersClientWithBaseURI

func NewProtectionContainersClientWithBaseURI(baseURI string, subscriptionID string) ProtectionContainersClient

NewProtectionContainersClientWithBaseURI creates an instance of the ProtectionContainersClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ProtectionContainersClient) Get

func (client ProtectionContainersClient) Get(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string) (result ProtectionContainerResource, err error)

Get gets details of the specific container registered to your Recovery Services vault. Parameters: vaultName - the name of the Recovery Services vault. resourceGroupName - the name of the resource group associated with the Recovery Services vault. fabricName - the fabric name associated with the container. containerName - the container name used for this GET operation.

func (ProtectionContainersClient) GetPreparer

func (client ProtectionContainersClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ProtectionContainersClient) GetResponder

func (client ProtectionContainersClient) GetResponder(resp *http.Response) (result ProtectionContainerResource, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ProtectionContainersClient) GetSender

func (client ProtectionContainersClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ProtectionContainersClient) List

func (client ProtectionContainersClient) List(ctx context.Context, vaultName string, resourceGroupName string, filter string) (result ProtectionContainerResourceList, err error)

List lists the containers registered to the Recovery Services vault. Parameters: vaultName - the name of the Recovery Services vault. resourceGroupName - the name of the resource group associated with the Recovery Services vault. filter - the following equation is used to sort or filter the containers registered to the vault. providerType eq {AzureIaasVM, MAB, DPM, AzureBackupServer, AzureSql} and status eq {Unknown, NotRegistered, Registered, Registering} and friendlyName eq {containername} and backupManagementType eq {AzureIaasVM, MAB, DPM, AzureBackupServer, AzureSql}.

func (ProtectionContainersClient) ListPreparer

func (client ProtectionContainersClient) ListPreparer(ctx context.Context, vaultName string, resourceGroupName string, filter string) (*http.Request, error)

ListPreparer prepares the List request.

func (ProtectionContainersClient) ListResponder

func (client ProtectionContainersClient) ListResponder(resp *http.Response) (result ProtectionContainerResourceList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (ProtectionContainersClient) ListSender

func (client ProtectionContainersClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (ProtectionContainersClient) Refresh

func (client ProtectionContainersClient) Refresh(ctx context.Context, vaultName string, resourceGroupName string, fabricName string) (result autorest.Response, err error)

Refresh discovers the containers in the subscription that can be protected in a Recovery Services vault. This is an asynchronous operation. To learn the status of the operation, use the GetRefreshOperationResult API. Parameters: vaultName - the name of the Recovery Services vault. resourceGroupName - the name of the resource group associated with the Recovery Services vault. fabricName - the fabric name associated with the container.

func (ProtectionContainersClient) RefreshPreparer

func (client ProtectionContainersClient) RefreshPreparer(ctx context.Context, vaultName string, resourceGroupName string, fabricName string) (*http.Request, error)

RefreshPreparer prepares the Refresh request.

func (ProtectionContainersClient) RefreshResponder

func (client ProtectionContainersClient) RefreshResponder(resp *http.Response) (result autorest.Response, err error)

RefreshResponder handles the response to the Refresh request. The method always closes the http.Response Body.

func (ProtectionContainersClient) RefreshSender

func (client ProtectionContainersClient) RefreshSender(req *http.Request) (*http.Response, error)

RefreshSender sends the Refresh request. The method will close the http.Response Body if it receives an error.

func (ProtectionContainersClient) Unregister

func (client ProtectionContainersClient) Unregister(ctx context.Context, resourceGroupName string, vaultName string, identityName string) (result autorest.Response, err error)

Unregister unregisters the given container from your Recovery Services vault. Parameters: resourceGroupName - the name of the resource group associated with the Recovery Services vault. vaultName - the name of the Recovery Services vault. identityName - name of the protection container to unregister.

func (ProtectionContainersClient) UnregisterPreparer

func (client ProtectionContainersClient) UnregisterPreparer(ctx context.Context, resourceGroupName string, vaultName string, identityName string) (*http.Request, error)

UnregisterPreparer prepares the Unregister request.

func (ProtectionContainersClient) UnregisterResponder

func (client ProtectionContainersClient) UnregisterResponder(resp *http.Response) (result autorest.Response, err error)

UnregisterResponder handles the response to the Unregister request. The method always closes the http.Response Body.

func (ProtectionContainersClient) UnregisterSender

func (client ProtectionContainersClient) UnregisterSender(req *http.Request) (*http.Response, error)

UnregisterSender sends the Unregister request. The method will close the http.Response Body if it receives an error.

type ProtectionPoliciesClient

type ProtectionPoliciesClient struct {
	BaseClient
}

ProtectionPoliciesClient is the open API 2.0 Specs for Azure RecoveryServices Backup service

func NewProtectionPoliciesClient

func NewProtectionPoliciesClient(subscriptionID string) ProtectionPoliciesClient

NewProtectionPoliciesClient creates an instance of the ProtectionPoliciesClient client.

func NewProtectionPoliciesClientWithBaseURI

func NewProtectionPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ProtectionPoliciesClient

NewProtectionPoliciesClientWithBaseURI creates an instance of the ProtectionPoliciesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ProtectionPoliciesClient) CreateOrUpdate

func (client ProtectionPoliciesClient) CreateOrUpdate(ctx context.Context, vaultName string, resourceGroupName string, policyName string, resourceProtectionPolicy ProtectionPolicyResource) (result ProtectionPolicyResource, err error)

CreateOrUpdate creates or modifies a backup policy. This is an asynchronous operation. Use the GetPolicyOperationResult API to Get the operation status. Parameters: vaultName - the name of the Recovery Services vault. resourceGroupName - the name of the resource group associated with the Recovery Services vault. policyName - the backup policy to be created. resourceProtectionPolicy - the resource backup policy.

func (ProtectionPoliciesClient) CreateOrUpdatePreparer

func (client ProtectionPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, vaultName string, resourceGroupName string, policyName string, resourceProtectionPolicy ProtectionPolicyResource) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ProtectionPoliciesClient) CreateOrUpdateResponder

func (client ProtectionPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result ProtectionPolicyResource, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (ProtectionPoliciesClient) CreateOrUpdateSender

func (client ProtectionPoliciesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (ProtectionPoliciesClient) Delete

func (client ProtectionPoliciesClient) Delete(ctx context.Context, vaultName string, resourceGroupName string, policyName string) (result autorest.Response, err error)

Delete deletes the specified backup policy from your Recovery Services vault. This is an asynchronous operation. Use the GetPolicyOperationResult API to Get the operation status. Parameters: vaultName - the name of the Recovery Services vault. resourceGroupName - the name of the resource group associated with the Recovery Services vault. policyName - the name of the backup policy to be deleted.

func (ProtectionPoliciesClient) DeletePreparer

func (client ProtectionPoliciesClient) DeletePreparer(ctx context.Context, vaultName string, resourceGroupName string, policyName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ProtectionPoliciesClient) DeleteResponder

func (client ProtectionPoliciesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ProtectionPoliciesClient) DeleteSender

func (client ProtectionPoliciesClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ProtectionPoliciesClient) Get

func (client ProtectionPoliciesClient) Get(ctx context.Context, vaultName string, resourceGroupName string, policyName string) (result ProtectionPolicyResource, err error)

Get gets the details of the backup policy associated with the Recovery Services vault. This is an asynchronous operation. Use the GetPolicyOperationResult API to Get the operation status. Parameters: vaultName - the name of the Recovery Services vault. resourceGroupName - the name of the resource group associated with the Recovery Services vault. policyName - the backup policy name used in this GET operation.

func (ProtectionPoliciesClient) GetPreparer

func (client ProtectionPoliciesClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string, policyName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ProtectionPoliciesClient) GetResponder

func (client ProtectionPoliciesClient) GetResponder(resp *http.Response) (result ProtectionPolicyResource, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ProtectionPoliciesClient) GetSender

func (client ProtectionPoliciesClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ProtectionPoliciesClient) List

func (client ProtectionPoliciesClient) List(ctx context.Context, vaultName string, resourceGroupName string, filter string) (result ProtectionPolicyResourceList, err error)

List lists the backup policies associated with the Recovery Services vault. The API provides parameters to Get scoped results. Parameters: vaultName - the name of the Recovery Services vault. resourceGroupName - the name of the resource group associated with the Recovery Services vault. filter - the following equation can be used to filter the list of backup policies. backupManagementType eq {AzureIaasVM, MAB, DPM, AzureBackupServer, AzureSql}.

func (ProtectionPoliciesClient) ListPreparer

func (client ProtectionPoliciesClient) ListPreparer(ctx context.Context, vaultName string, resourceGroupName string, filter string) (*http.Request, error)

ListPreparer prepares the List request.

func (ProtectionPoliciesClient) ListResponder

func (client ProtectionPoliciesClient) ListResponder(resp *http.Response) (result ProtectionPolicyResourceList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (ProtectionPoliciesClient) ListSender

func (client ProtectionPoliciesClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type ProtectionPolicy

type ProtectionPolicy struct {
	// ProtectedItemsCount - The number of items associated with this policy.
	ProtectedItemsCount *int32 `json:"protectedItemsCount,omitempty"`
	// BackupManagementType - Possible values include: 'BackupManagementTypeProtectionPolicy', 'BackupManagementTypeAzureIaasVM', 'BackupManagementTypeMAB', 'BackupManagementTypeAzureSQL'
	BackupManagementType ManagementTypeBasicProtectionPolicy `json:"backupManagementType,omitempty"`
}

ProtectionPolicy the base class for a backup policy. Workload-specific backup policies are derived from this class.

func (ProtectionPolicy) AsAzureIaaSVMProtectionPolicy

func (pp ProtectionPolicy) AsAzureIaaSVMProtectionPolicy() (*AzureIaaSVMProtectionPolicy, bool)

AsAzureIaaSVMProtectionPolicy is the BasicProtectionPolicy implementation for ProtectionPolicy.

func (ProtectionPolicy) AsAzureSQLProtectionPolicy

func (pp ProtectionPolicy) AsAzureSQLProtectionPolicy() (*AzureSQLProtectionPolicy, bool)

AsAzureSQLProtectionPolicy is the BasicProtectionPolicy implementation for ProtectionPolicy.

func (ProtectionPolicy) AsBasicProtectionPolicy

func (pp ProtectionPolicy) AsBasicProtectionPolicy() (BasicProtectionPolicy, bool)

AsBasicProtectionPolicy is the BasicProtectionPolicy implementation for ProtectionPolicy.

func (ProtectionPolicy) AsMabProtectionPolicy

func (pp ProtectionPolicy) AsMabProtectionPolicy() (*MabProtectionPolicy, bool)

AsMabProtectionPolicy is the BasicProtectionPolicy implementation for ProtectionPolicy.

func (ProtectionPolicy) AsProtectionPolicy

func (pp ProtectionPolicy) AsProtectionPolicy() (*ProtectionPolicy, bool)

AsProtectionPolicy is the BasicProtectionPolicy implementation for ProtectionPolicy.

func (ProtectionPolicy) MarshalJSON

func (pp ProtectionPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ProtectionPolicy.

type ProtectionPolicyOperationResultsClient

type ProtectionPolicyOperationResultsClient struct {
	BaseClient
}

ProtectionPolicyOperationResultsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service

func NewProtectionPolicyOperationResultsClient

func NewProtectionPolicyOperationResultsClient(subscriptionID string) ProtectionPolicyOperationResultsClient

NewProtectionPolicyOperationResultsClient creates an instance of the ProtectionPolicyOperationResultsClient client.

func NewProtectionPolicyOperationResultsClientWithBaseURI

func NewProtectionPolicyOperationResultsClientWithBaseURI(baseURI string, subscriptionID string) ProtectionPolicyOperationResultsClient

NewProtectionPolicyOperationResultsClientWithBaseURI creates an instance of the ProtectionPolicyOperationResultsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ProtectionPolicyOperationResultsClient) Get

func (client ProtectionPolicyOperationResultsClient) Get(ctx context.Context, vaultName string, resourceGroupName string, policyName string, operationID string) (result ProtectionPolicyResource, err error)

Get provides the result of an operation. Parameters: vaultName - the name of the Recovery Services vault. resourceGroupName - the name of the resource group associated with the Recovery Services vault. policyName - the backup policy name used in this GET operation. operationID - the ID associated with this GET operation.

func (ProtectionPolicyOperationResultsClient) GetPreparer

func (client ProtectionPolicyOperationResultsClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string, policyName string, operationID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ProtectionPolicyOperationResultsClient) GetResponder

func (client ProtectionPolicyOperationResultsClient) GetResponder(resp *http.Response) (result ProtectionPolicyResource, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ProtectionPolicyOperationResultsClient) GetSender

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

type ProtectionPolicyOperationStatusesClient

type ProtectionPolicyOperationStatusesClient struct {
	BaseClient
}

ProtectionPolicyOperationStatusesClient is the open API 2.0 Specs for Azure RecoveryServices Backup service

func NewProtectionPolicyOperationStatusesClient

func NewProtectionPolicyOperationStatusesClient(subscriptionID string) ProtectionPolicyOperationStatusesClient

NewProtectionPolicyOperationStatusesClient creates an instance of the ProtectionPolicyOperationStatusesClient client.

func NewProtectionPolicyOperationStatusesClientWithBaseURI

func NewProtectionPolicyOperationStatusesClientWithBaseURI(baseURI string, subscriptionID string) ProtectionPolicyOperationStatusesClient

NewProtectionPolicyOperationStatusesClientWithBaseURI creates an instance of the ProtectionPolicyOperationStatusesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ProtectionPolicyOperationStatusesClient) Get

func (client ProtectionPolicyOperationStatusesClient) Get(ctx context.Context, vaultName string, resourceGroupName string, policyName string, operationID string) (result OperationStatus, err error)

Get provides the status of the asynchronous operations like backup or restore. The status can be: in progress, completed, or failed. You can refer to the Operation Status enumeration for the possible states of an operation. Some operations create jobs. This method returns the list of jobs associated with the operation. Parameters: vaultName - the name of the Recovery Services vault. resourceGroupName - the name of the resource group associated with the Recovery Services vault. policyName - the backup policy name used in this GET operation. operationID - the ID associated with this GET operation.

func (ProtectionPolicyOperationStatusesClient) GetPreparer

func (client ProtectionPolicyOperationStatusesClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string, policyName string, operationID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ProtectionPolicyOperationStatusesClient) GetResponder

func (client ProtectionPolicyOperationStatusesClient) GetResponder(resp *http.Response) (result OperationStatus, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ProtectionPolicyOperationStatusesClient) GetSender

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

type ProtectionPolicyQueryObject

type ProtectionPolicyQueryObject struct {
	// BackupManagementType - The backup management type associated with the backup policy. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL'
	BackupManagementType ManagementType `json:"backupManagementType,omitempty"`
}

ProtectionPolicyQueryObject this object filters the list of backup policies.

type ProtectionPolicyResource

type ProtectionPolicyResource struct {
	autorest.Response `json:"-"`
	Properties        BasicProtectionPolicy `json:"properties,omitempty"`
	// ID - Resource ID represents the complete path to the resource.
	ID *string `json:"id,omitempty"`
	// Name - Resource name associated with the resource.
	Name *string `json:"name,omitempty"`
	// Type - Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
	Type *string `json:"type,omitempty"`
	// Location - Resource location.
	Location *string `json:"location,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
	// ETag - Optional ETag.
	ETag *string `json:"eTag,omitempty"`
}

ProtectionPolicyResource the base class for backup policy. Workload-specific backup policies are derived from this class.

func (ProtectionPolicyResource) MarshalJSON

func (ppr ProtectionPolicyResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ProtectionPolicyResource.

func (*ProtectionPolicyResource) UnmarshalJSON

func (ppr *ProtectionPolicyResource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ProtectionPolicyResource struct.

type ProtectionPolicyResourceList

type ProtectionPolicyResourceList struct {
	autorest.Response `json:"-"`
	// Value - The list of resources.
	Value *[]ProtectionPolicyResource `json:"value,omitempty"`
	// NextLink - The URI to GET the next page of resources. Call ListNext() gets the next page of resources.
	NextLink *string `json:"nextLink,omitempty"`
}

ProtectionPolicyResourceList the list of ProtectionPolicy resources.

type ProtectionState

type ProtectionState string

ProtectionState enumerates the values for protection state.

const (
	// ProtectionStateInvalid ...
	ProtectionStateInvalid ProtectionState = "Invalid"
	// ProtectionStateIRPending ...
	ProtectionStateIRPending ProtectionState = "IRPending"
	// ProtectionStateProtected ...
	ProtectionStateProtected ProtectionState = "Protected"
	// ProtectionStateProtectionError ...
	ProtectionStateProtectionError ProtectionState = "ProtectionError"
	// ProtectionStateProtectionPaused ...
	ProtectionStateProtectionPaused ProtectionState = "ProtectionPaused"
	// ProtectionStateProtectionStopped ...
	ProtectionStateProtectionStopped ProtectionState = "ProtectionStopped"
)

func PossibleProtectionStateValues

func PossibleProtectionStateValues() []ProtectionState

PossibleProtectionStateValues returns an array of possible values for the ProtectionState const type.

type ProtectionStatus

type ProtectionStatus string

ProtectionStatus enumerates the values for protection status.

const (
	// ProtectionStatusInvalid ...
	ProtectionStatusInvalid ProtectionStatus = "Invalid"
	// ProtectionStatusNotProtected ...
	ProtectionStatusNotProtected ProtectionStatus = "NotProtected"
	// ProtectionStatusProtected ...
	ProtectionStatusProtected ProtectionStatus = "Protected"
	// ProtectionStatusProtecting ...
	ProtectionStatusProtecting ProtectionStatus = "Protecting"
)

func PossibleProtectionStatusValues

func PossibleProtectionStatusValues() []ProtectionStatus

PossibleProtectionStatusValues returns an array of possible values for the ProtectionStatus const type.

type RecoveryPoint

type RecoveryPoint struct {
	// ObjectType - Possible values include: 'ObjectTypeRecoveryPoint', 'ObjectTypeIaasVMRecoveryPoint', 'ObjectTypeGenericRecoveryPoint'
	ObjectType ObjectTypeBasicRecoveryPoint `json:"objectType,omitempty"`
}

RecoveryPoint the base class for backup copies. Workload-specific backup copies are derived from this class.

func (RecoveryPoint) AsBasicRecoveryPoint

func (rp RecoveryPoint) AsBasicRecoveryPoint() (BasicRecoveryPoint, bool)

AsBasicRecoveryPoint is the BasicRecoveryPoint implementation for RecoveryPoint.

func (RecoveryPoint) AsGenericRecoveryPoint

func (rp RecoveryPoint) AsGenericRecoveryPoint() (*GenericRecoveryPoint, bool)

AsGenericRecoveryPoint is the BasicRecoveryPoint implementation for RecoveryPoint.

func (RecoveryPoint) AsIaasVMRecoveryPoint

func (rp RecoveryPoint) AsIaasVMRecoveryPoint() (*IaasVMRecoveryPoint, bool)

AsIaasVMRecoveryPoint is the BasicRecoveryPoint implementation for RecoveryPoint.

func (RecoveryPoint) AsRecoveryPoint

func (rp RecoveryPoint) AsRecoveryPoint() (*RecoveryPoint, bool)

AsRecoveryPoint is the BasicRecoveryPoint implementation for RecoveryPoint.

func (RecoveryPoint) MarshalJSON

func (rp RecoveryPoint) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RecoveryPoint.

type RecoveryPointResource

type RecoveryPointResource struct {
	autorest.Response `json:"-"`
	Properties        BasicRecoveryPoint `json:"properties,omitempty"`
	// ID - Resource ID represents the complete path to the resource.
	ID *string `json:"id,omitempty"`
	// Name - Resource name associated with the resource.
	Name *string `json:"name,omitempty"`
	// Type - Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
	Type *string `json:"type,omitempty"`
	// Location - Resource location.
	Location *string `json:"location,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
	// ETag - Optional ETag.
	ETag *string `json:"eTag,omitempty"`
}

RecoveryPointResource the base class for backup copies. Workload-specific backup copies are derived from this class.

func (RecoveryPointResource) MarshalJSON

func (rpr RecoveryPointResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RecoveryPointResource.

func (*RecoveryPointResource) UnmarshalJSON

func (rpr *RecoveryPointResource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for RecoveryPointResource struct.

type RecoveryPointResourceList

type RecoveryPointResourceList struct {
	autorest.Response `json:"-"`
	// Value - The list of resources.
	Value *[]RecoveryPointResource `json:"value,omitempty"`
	// NextLink - The URI to GET the next page of resources. Call ListNext() gets the next page of resources.
	NextLink *string `json:"nextLink,omitempty"`
}

RecoveryPointResourceList the list of RecoveryPoint resources.

type RecoveryPointsClient

type RecoveryPointsClient struct {
	BaseClient
}

RecoveryPointsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service

func NewRecoveryPointsClient

func NewRecoveryPointsClient(subscriptionID string) RecoveryPointsClient

NewRecoveryPointsClient creates an instance of the RecoveryPointsClient client.

func NewRecoveryPointsClientWithBaseURI

func NewRecoveryPointsClientWithBaseURI(baseURI string, subscriptionID string) RecoveryPointsClient

NewRecoveryPointsClientWithBaseURI creates an instance of the RecoveryPointsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (RecoveryPointsClient) Get

func (client RecoveryPointsClient) Get(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, recoveryPointID string) (result RecoveryPointResource, err error)

Get provides the backup data for the RecoveryPointID. This is an asynchronous operation. To learn the status of the operation, call the GetProtectedItemOperationResult API. Parameters: vaultName - the name of the Recovery Services vault. resourceGroupName - the name of the resource group associated with the Recovery Services vault. fabricName - the fabric name associated with backup item. containerName - the container name associated with backup item. protectedItemName - the name of the backup item used in this GET operation. recoveryPointID - the RecoveryPointID associated with this GET operation.

func (RecoveryPointsClient) GetPreparer

func (client RecoveryPointsClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, recoveryPointID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (RecoveryPointsClient) GetResponder

func (client RecoveryPointsClient) GetResponder(resp *http.Response) (result RecoveryPointResource, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (RecoveryPointsClient) GetSender

func (client RecoveryPointsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (RecoveryPointsClient) List

func (client RecoveryPointsClient) List(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, filter string) (result RecoveryPointResourceList, err error)

List lists the recovery points, or backup copies, for the specified backup item. Parameters: vaultName - the name of the Recovery Services vault. resourceGroupName - the name of the resource group associated with the Recovery Services vault. fabricName - the fabric name associated with the backup item. containerName - the container name associated with the backup item. protectedItemName - the name of backup item used in this GET operation. filter - startDate eq {yyyy-mm-dd hh:mm:ss PM} and endDate { yyyy-mm-dd hh:mm:ss PM}.

func (RecoveryPointsClient) ListPreparer

func (client RecoveryPointsClient) ListPreparer(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, filter string) (*http.Request, error)

ListPreparer prepares the List request.

func (RecoveryPointsClient) ListResponder

func (client RecoveryPointsClient) ListResponder(resp *http.Response) (result RecoveryPointResourceList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (RecoveryPointsClient) ListSender

func (client RecoveryPointsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type RecoveryType

type RecoveryType string

RecoveryType enumerates the values for recovery type.

const (
	// RecoveryTypeAlternateLocation ...
	RecoveryTypeAlternateLocation RecoveryType = "AlternateLocation"
	// RecoveryTypeInvalid ...
	RecoveryTypeInvalid RecoveryType = "Invalid"
	// RecoveryTypeOriginalLocation ...
	RecoveryTypeOriginalLocation RecoveryType = "OriginalLocation"
	// RecoveryTypeRestoreDisks ...
	RecoveryTypeRestoreDisks RecoveryType = "RestoreDisks"
)

func PossibleRecoveryTypeValues

func PossibleRecoveryTypeValues() []RecoveryType

PossibleRecoveryTypeValues returns an array of possible values for the RecoveryType const type.

type Request

type Request struct {
	// ObjectType - Possible values include: 'ObjectTypeBackupRequest', 'ObjectTypeIaasVMBackupRequest'
	ObjectType ObjectTypeBasicRequest `json:"objectType,omitempty"`
}

Request the base class for a backup request. Workload-specific backup requests are derived from this class.

func (Request) AsBasicRequest

func (r Request) AsBasicRequest() (BasicRequest, bool)

AsBasicRequest is the BasicRequest implementation for Request.

func (Request) AsIaasVMBackupRequest

func (r Request) AsIaasVMBackupRequest() (*IaasVMBackupRequest, bool)

AsIaasVMBackupRequest is the BasicRequest implementation for Request.

func (Request) AsRequest

func (r Request) AsRequest() (*Request, bool)

AsRequest is the BasicRequest implementation for Request.

func (Request) MarshalJSON

func (r Request) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Request.

type RequestResource

type RequestResource struct {
	Properties BasicRequest `json:"properties,omitempty"`
	// ID - Resource ID represents the complete path to the resource.
	ID *string `json:"id,omitempty"`
	// Name - Resource name associated with the resource.
	Name *string `json:"name,omitempty"`
	// Type - Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
	Type *string `json:"type,omitempty"`
	// Location - Resource location.
	Location *string `json:"location,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
	// ETag - Optional ETag.
	ETag *string `json:"eTag,omitempty"`
}

RequestResource base class for the backup request. Workload-specific backup requests are derived from this class.

func (RequestResource) MarshalJSON

func (rr RequestResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RequestResource.

func (*RequestResource) UnmarshalJSON

func (rr *RequestResource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for RequestResource struct.

type Resource

type Resource struct {
	// ID - Resource ID represents the complete path to the resource.
	ID *string `json:"id,omitempty"`
	// Name - Resource name associated with the resource.
	Name *string `json:"name,omitempty"`
	// Type - Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
	Type *string `json:"type,omitempty"`
	// Location - Resource location.
	Location *string `json:"location,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
	// ETag - Optional ETag.
	ETag *string `json:"eTag,omitempty"`
}

Resource base for all resources.

func (Resource) MarshalJSON

func (r Resource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Resource.

type ResourceList

type ResourceList struct {
	// NextLink - The URI to GET the next page of resources. Call ListNext() gets the next page of resources.
	NextLink *string `json:"nextLink,omitempty"`
}

ResourceList base for all lists of resources.

type RestoreRequest

type RestoreRequest struct {
	// ObjectType - Possible values include: 'ObjectTypeRestoreRequest', 'ObjectTypeIaasVMRestoreRequest'
	ObjectType ObjectTypeBasicRestoreRequest `json:"objectType,omitempty"`
}

RestoreRequest the base class for restore requests. Workload-specific restore requests are derived from this class.

func (RestoreRequest) AsBasicRestoreRequest

func (rr RestoreRequest) AsBasicRestoreRequest() (BasicRestoreRequest, bool)

AsBasicRestoreRequest is the BasicRestoreRequest implementation for RestoreRequest.

func (RestoreRequest) AsIaasVMRestoreRequest

func (rr RestoreRequest) AsIaasVMRestoreRequest() (*IaasVMRestoreRequest, bool)

AsIaasVMRestoreRequest is the BasicRestoreRequest implementation for RestoreRequest.

func (RestoreRequest) AsRestoreRequest

func (rr RestoreRequest) AsRestoreRequest() (*RestoreRequest, bool)

AsRestoreRequest is the BasicRestoreRequest implementation for RestoreRequest.

func (RestoreRequest) MarshalJSON

func (rr RestoreRequest) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RestoreRequest.

type RestoreRequestResource

type RestoreRequestResource struct {
	Properties BasicRestoreRequest `json:"properties,omitempty"`
	// ID - Resource ID represents the complete path to the resource.
	ID *string `json:"id,omitempty"`
	// Name - Resource name associated with the resource.
	Name *string `json:"name,omitempty"`
	// Type - Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
	Type *string `json:"type,omitempty"`
	// Location - Resource location.
	Location *string `json:"location,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
	// ETag - Optional ETag.
	ETag *string `json:"eTag,omitempty"`
}

RestoreRequestResource the base class for a restore request. Workload-specific restore requests are derived from this class.

func (RestoreRequestResource) MarshalJSON

func (rrr RestoreRequestResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RestoreRequestResource.

func (*RestoreRequestResource) UnmarshalJSON

func (rrr *RestoreRequestResource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for RestoreRequestResource struct.

type RestoresClient

type RestoresClient struct {
	BaseClient
}

RestoresClient is the open API 2.0 Specs for Azure RecoveryServices Backup service

func NewRestoresClient

func NewRestoresClient(subscriptionID string) RestoresClient

NewRestoresClient creates an instance of the RestoresClient client.

func NewRestoresClientWithBaseURI

func NewRestoresClientWithBaseURI(baseURI string, subscriptionID string) RestoresClient

NewRestoresClientWithBaseURI creates an instance of the RestoresClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (RestoresClient) Trigger

func (client RestoresClient) Trigger(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, recoveryPointID string, resourceRestoreRequest RestoreRequestResource) (result autorest.Response, err error)

Trigger restores the specified backup data. This is an asynchronous operation. To know the status of this API call, use GetProtectedItemOperationResult API. Parameters: vaultName - the name of the Recovery Services vault. resourceGroupName - the name of the resource group associated with the Recovery Services vault. fabricName - the fabric name associated with the backup items. containerName - the container name associated with the backup items. protectedItemName - the backup item to be restored. recoveryPointID - the recovery point ID for the backup data to be restored. resourceRestoreRequest - the resource restore request.

func (RestoresClient) TriggerPreparer

func (client RestoresClient) TriggerPreparer(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string, protectedItemName string, recoveryPointID string, resourceRestoreRequest RestoreRequestResource) (*http.Request, error)

TriggerPreparer prepares the Trigger request.

func (RestoresClient) TriggerResponder

func (client RestoresClient) TriggerResponder(resp *http.Response) (result autorest.Response, err error)

TriggerResponder handles the response to the Trigger request. The method always closes the http.Response Body.

func (RestoresClient) TriggerSender

func (client RestoresClient) TriggerSender(req *http.Request) (*http.Response, error)

TriggerSender sends the Trigger request. The method will close the http.Response Body if it receives an error.

type RetentionDuration

type RetentionDuration struct {
	// Count - Count of the duration types. Retention duration is determined by the combining the Count times and durationType.
	//    For example, if Count = 3 and durationType = Weeks, then the retention duration is three weeks.
	Count *int32 `json:"count,omitempty"`
	// DurationType - The retention duration type of the retention policy. Possible values include: 'RetentionDurationTypeInvalid', 'RetentionDurationTypeDays', 'RetentionDurationTypeWeeks', 'RetentionDurationTypeMonths', 'RetentionDurationTypeYears'
	DurationType RetentionDurationType `json:"durationType,omitempty"`
}

RetentionDuration retention duration.

type RetentionDurationType

type RetentionDurationType string

RetentionDurationType enumerates the values for retention duration type.

const (
	// RetentionDurationTypeDays ...
	RetentionDurationTypeDays RetentionDurationType = "Days"
	// RetentionDurationTypeInvalid ...
	RetentionDurationTypeInvalid RetentionDurationType = "Invalid"
	// RetentionDurationTypeMonths ...
	RetentionDurationTypeMonths RetentionDurationType = "Months"
	// RetentionDurationTypeWeeks ...
	RetentionDurationTypeWeeks RetentionDurationType = "Weeks"
	// RetentionDurationTypeYears ...
	RetentionDurationTypeYears RetentionDurationType = "Years"
)

func PossibleRetentionDurationTypeValues

func PossibleRetentionDurationTypeValues() []RetentionDurationType

PossibleRetentionDurationTypeValues returns an array of possible values for the RetentionDurationType const type.

type RetentionPolicy

type RetentionPolicy struct {
	// RetentionPolicyType - Possible values include: 'RetentionPolicyTypeRetentionPolicy', 'RetentionPolicyTypeSimpleRetentionPolicy', 'RetentionPolicyTypeLongTermRetentionPolicy'
	RetentionPolicyType RetentionPolicyType `json:"retentionPolicyType,omitempty"`
}

RetentionPolicy the base class for retention policy.

func (RetentionPolicy) AsBasicRetentionPolicy

func (rp RetentionPolicy) AsBasicRetentionPolicy() (BasicRetentionPolicy, bool)

AsBasicRetentionPolicy is the BasicRetentionPolicy implementation for RetentionPolicy.

func (RetentionPolicy) AsLongTermRetentionPolicy

func (rp RetentionPolicy) AsLongTermRetentionPolicy() (*LongTermRetentionPolicy, bool)

AsLongTermRetentionPolicy is the BasicRetentionPolicy implementation for RetentionPolicy.

func (RetentionPolicy) AsRetentionPolicy

func (rp RetentionPolicy) AsRetentionPolicy() (*RetentionPolicy, bool)

AsRetentionPolicy is the BasicRetentionPolicy implementation for RetentionPolicy.

func (RetentionPolicy) AsSimpleRetentionPolicy

func (rp RetentionPolicy) AsSimpleRetentionPolicy() (*SimpleRetentionPolicy, bool)

AsSimpleRetentionPolicy is the BasicRetentionPolicy implementation for RetentionPolicy.

func (RetentionPolicy) MarshalJSON

func (rp RetentionPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RetentionPolicy.

type RetentionPolicyType

type RetentionPolicyType string

RetentionPolicyType enumerates the values for retention policy type.

const (
	// RetentionPolicyTypeLongTermRetentionPolicy ...
	RetentionPolicyTypeLongTermRetentionPolicy RetentionPolicyType = "LongTermRetentionPolicy"
	// RetentionPolicyTypeRetentionPolicy ...
	RetentionPolicyTypeRetentionPolicy RetentionPolicyType = "RetentionPolicy"
	// RetentionPolicyTypeSimpleRetentionPolicy ...
	RetentionPolicyTypeSimpleRetentionPolicy RetentionPolicyType = "SimpleRetentionPolicy"
)

func PossibleRetentionPolicyTypeValues

func PossibleRetentionPolicyTypeValues() []RetentionPolicyType

PossibleRetentionPolicyTypeValues returns an array of possible values for the RetentionPolicyType const type.

type RetentionScheduleFormat

type RetentionScheduleFormat string

RetentionScheduleFormat enumerates the values for retention schedule format.

const (
	// RetentionScheduleFormatDaily ...
	RetentionScheduleFormatDaily RetentionScheduleFormat = "Daily"
	// RetentionScheduleFormatInvalid ...
	RetentionScheduleFormatInvalid RetentionScheduleFormat = "Invalid"
	// RetentionScheduleFormatWeekly ...
	RetentionScheduleFormatWeekly RetentionScheduleFormat = "Weekly"
)

func PossibleRetentionScheduleFormatValues

func PossibleRetentionScheduleFormatValues() []RetentionScheduleFormat

PossibleRetentionScheduleFormatValues returns an array of possible values for the RetentionScheduleFormat const type.

type SchedulePolicy

type SchedulePolicy struct {
	// SchedulePolicyType - Possible values include: 'SchedulePolicyTypeSchedulePolicy', 'SchedulePolicyTypeLongTermSchedulePolicy', 'SchedulePolicyTypeSimpleSchedulePolicy'
	SchedulePolicyType SchedulePolicyType `json:"schedulePolicyType,omitempty"`
}

SchedulePolicy the base class for backup schedules.

func (SchedulePolicy) AsBasicSchedulePolicy

func (sp SchedulePolicy) AsBasicSchedulePolicy() (BasicSchedulePolicy, bool)

AsBasicSchedulePolicy is the BasicSchedulePolicy implementation for SchedulePolicy.

func (SchedulePolicy) AsLongTermSchedulePolicy

func (sp SchedulePolicy) AsLongTermSchedulePolicy() (*LongTermSchedulePolicy, bool)

AsLongTermSchedulePolicy is the BasicSchedulePolicy implementation for SchedulePolicy.

func (SchedulePolicy) AsSchedulePolicy

func (sp SchedulePolicy) AsSchedulePolicy() (*SchedulePolicy, bool)

AsSchedulePolicy is the BasicSchedulePolicy implementation for SchedulePolicy.

func (SchedulePolicy) AsSimpleSchedulePolicy

func (sp SchedulePolicy) AsSimpleSchedulePolicy() (*SimpleSchedulePolicy, bool)

AsSimpleSchedulePolicy is the BasicSchedulePolicy implementation for SchedulePolicy.

func (SchedulePolicy) MarshalJSON

func (sp SchedulePolicy) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SchedulePolicy.

type SchedulePolicyType

type SchedulePolicyType string

SchedulePolicyType enumerates the values for schedule policy type.

const (
	// SchedulePolicyTypeLongTermSchedulePolicy ...
	SchedulePolicyTypeLongTermSchedulePolicy SchedulePolicyType = "LongTermSchedulePolicy"
	// SchedulePolicyTypeSchedulePolicy ...
	SchedulePolicyTypeSchedulePolicy SchedulePolicyType = "SchedulePolicy"
	// SchedulePolicyTypeSimpleSchedulePolicy ...
	SchedulePolicyTypeSimpleSchedulePolicy SchedulePolicyType = "SimpleSchedulePolicy"
)

func PossibleSchedulePolicyTypeValues

func PossibleSchedulePolicyTypeValues() []SchedulePolicyType

PossibleSchedulePolicyTypeValues returns an array of possible values for the SchedulePolicyType const type.

type ScheduleRunType

type ScheduleRunType string

ScheduleRunType enumerates the values for schedule run type.

const (
	// ScheduleRunTypeDaily ...
	ScheduleRunTypeDaily ScheduleRunType = "Daily"
	// ScheduleRunTypeInvalid ...
	ScheduleRunTypeInvalid ScheduleRunType = "Invalid"
	// ScheduleRunTypeWeekly ...
	ScheduleRunTypeWeekly ScheduleRunType = "Weekly"
)

func PossibleScheduleRunTypeValues

func PossibleScheduleRunTypeValues() []ScheduleRunType

PossibleScheduleRunTypeValues returns an array of possible values for the ScheduleRunType const type.

type SimpleRetentionPolicy

type SimpleRetentionPolicy struct {
	// RetentionDuration - Retention duration of the protection policy.
	RetentionDuration *RetentionDuration `json:"retentionDuration,omitempty"`
	// RetentionPolicyType - Possible values include: 'RetentionPolicyTypeRetentionPolicy', 'RetentionPolicyTypeSimpleRetentionPolicy', 'RetentionPolicyTypeLongTermRetentionPolicy'
	RetentionPolicyType RetentionPolicyType `json:"retentionPolicyType,omitempty"`
}

SimpleRetentionPolicy simple policy retention.

func (SimpleRetentionPolicy) AsBasicRetentionPolicy

func (srp SimpleRetentionPolicy) AsBasicRetentionPolicy() (BasicRetentionPolicy, bool)

AsBasicRetentionPolicy is the BasicRetentionPolicy implementation for SimpleRetentionPolicy.

func (SimpleRetentionPolicy) AsLongTermRetentionPolicy

func (srp SimpleRetentionPolicy) AsLongTermRetentionPolicy() (*LongTermRetentionPolicy, bool)

AsLongTermRetentionPolicy is the BasicRetentionPolicy implementation for SimpleRetentionPolicy.

func (SimpleRetentionPolicy) AsRetentionPolicy

func (srp SimpleRetentionPolicy) AsRetentionPolicy() (*RetentionPolicy, bool)

AsRetentionPolicy is the BasicRetentionPolicy implementation for SimpleRetentionPolicy.

func (SimpleRetentionPolicy) AsSimpleRetentionPolicy

func (srp SimpleRetentionPolicy) AsSimpleRetentionPolicy() (*SimpleRetentionPolicy, bool)

AsSimpleRetentionPolicy is the BasicRetentionPolicy implementation for SimpleRetentionPolicy.

func (SimpleRetentionPolicy) MarshalJSON

func (srp SimpleRetentionPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SimpleRetentionPolicy.

type SimpleSchedulePolicy

type SimpleSchedulePolicy struct {
	// ScheduleRunFrequency - Defines the frequency interval (daily or weekly) for the schedule policy. Possible values include: 'ScheduleRunTypeInvalid', 'ScheduleRunTypeDaily', 'ScheduleRunTypeWeekly'
	ScheduleRunFrequency ScheduleRunType `json:"scheduleRunFrequency,omitempty"`
	// ScheduleRunDays - This list is the days of the week when the schedule runs.
	ScheduleRunDays *[]DayOfWeek `json:"scheduleRunDays,omitempty"`
	// ScheduleRunTimes - List of times, during a day, when the schedule runs.
	ScheduleRunTimes *[]date.Time `json:"scheduleRunTimes,omitempty"`
	// ScheduleWeeklyFrequency - The number of times per week the schedule runs.
	ScheduleWeeklyFrequency *int32 `json:"scheduleWeeklyFrequency,omitempty"`
	// SchedulePolicyType - Possible values include: 'SchedulePolicyTypeSchedulePolicy', 'SchedulePolicyTypeLongTermSchedulePolicy', 'SchedulePolicyTypeSimpleSchedulePolicy'
	SchedulePolicyType SchedulePolicyType `json:"schedulePolicyType,omitempty"`
}

SimpleSchedulePolicy simple policy schedule.

func (SimpleSchedulePolicy) AsBasicSchedulePolicy

func (ssp SimpleSchedulePolicy) AsBasicSchedulePolicy() (BasicSchedulePolicy, bool)

AsBasicSchedulePolicy is the BasicSchedulePolicy implementation for SimpleSchedulePolicy.

func (SimpleSchedulePolicy) AsLongTermSchedulePolicy

func (ssp SimpleSchedulePolicy) AsLongTermSchedulePolicy() (*LongTermSchedulePolicy, bool)

AsLongTermSchedulePolicy is the BasicSchedulePolicy implementation for SimpleSchedulePolicy.

func (SimpleSchedulePolicy) AsSchedulePolicy

func (ssp SimpleSchedulePolicy) AsSchedulePolicy() (*SchedulePolicy, bool)

AsSchedulePolicy is the BasicSchedulePolicy implementation for SimpleSchedulePolicy.

func (SimpleSchedulePolicy) AsSimpleSchedulePolicy

func (ssp SimpleSchedulePolicy) AsSimpleSchedulePolicy() (*SimpleSchedulePolicy, bool)

AsSimpleSchedulePolicy is the BasicSchedulePolicy implementation for SimpleSchedulePolicy.

func (SimpleSchedulePolicy) MarshalJSON

func (ssp SimpleSchedulePolicy) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SimpleSchedulePolicy.

type WeekOfMonth

type WeekOfMonth string

WeekOfMonth enumerates the values for week of month.

const (
	// First ...
	First WeekOfMonth = "First"
	// Fourth ...
	Fourth WeekOfMonth = "Fourth"
	// Last ...
	Last WeekOfMonth = "Last"
	// Second ...
	Second WeekOfMonth = "Second"
	// Third ...
	Third WeekOfMonth = "Third"
)

func PossibleWeekOfMonthValues

func PossibleWeekOfMonthValues() []WeekOfMonth

PossibleWeekOfMonthValues returns an array of possible values for the WeekOfMonth const type.

type WeeklyRetentionFormat

type WeeklyRetentionFormat struct {
	// DaysOfTheWeek - List of days of the week.
	DaysOfTheWeek *[]DayOfWeek `json:"daysOfTheWeek,omitempty"`
	// WeeksOfTheMonth - List of weeks of the month.
	WeeksOfTheMonth *[]WeekOfMonth `json:"weeksOfTheMonth,omitempty"`
}

WeeklyRetentionFormat weekly retention format.

type WeeklyRetentionSchedule

type WeeklyRetentionSchedule struct {
	// DaysOfTheWeek - List of the days of the week for the weekly retention policy.
	DaysOfTheWeek *[]DayOfWeek `json:"daysOfTheWeek,omitempty"`
	// RetentionTimes - Retention times of the retention policy.
	RetentionTimes *[]date.Time `json:"retentionTimes,omitempty"`
	// RetentionDuration - Retention duration of retention policy.
	RetentionDuration *RetentionDuration `json:"retentionDuration,omitempty"`
}

WeeklyRetentionSchedule weekly retention schedule.

type WorkloadProtectableItem

type WorkloadProtectableItem struct {
	// BackupManagementType - The backup management type.
	BackupManagementType *string `json:"backupManagementType,omitempty"`
	// FriendlyName - The friendly name of the backup item.
	FriendlyName *string `json:"friendlyName,omitempty"`
	// ProtectionState - The state of the back up item. Possible values include: 'ProtectionStatusInvalid', 'ProtectionStatusNotProtected', 'ProtectionStatusProtecting', 'ProtectionStatusProtected'
	ProtectionState ProtectionStatus `json:"protectionState,omitempty"`
	// ProtectableItemType - Possible values include: 'ProtectableItemTypeWorkloadProtectableItem', 'ProtectableItemTypeIaaSVMProtectableItem', 'ProtectableItemTypeMicrosoftComputevirtualMachines', 'ProtectableItemTypeMicrosoftClassicComputevirtualMachines'
	ProtectableItemType ProtectableItemType `json:"protectableItemType,omitempty"`
}

WorkloadProtectableItem the base class for backup item. Workload-specific backup items are derived from this class.

func (WorkloadProtectableItem) AsAzureIaaSClassicComputeVMProtectableItem

func (wpi WorkloadProtectableItem) AsAzureIaaSClassicComputeVMProtectableItem() (*AzureIaaSClassicComputeVMProtectableItem, bool)

AsAzureIaaSClassicComputeVMProtectableItem is the BasicWorkloadProtectableItem implementation for WorkloadProtectableItem.

func (WorkloadProtectableItem) AsAzureIaaSComputeVMProtectableItem

func (wpi WorkloadProtectableItem) AsAzureIaaSComputeVMProtectableItem() (*AzureIaaSComputeVMProtectableItem, bool)

AsAzureIaaSComputeVMProtectableItem is the BasicWorkloadProtectableItem implementation for WorkloadProtectableItem.

func (WorkloadProtectableItem) AsBasicIaaSVMProtectableItem

func (wpi WorkloadProtectableItem) AsBasicIaaSVMProtectableItem() (BasicIaaSVMProtectableItem, bool)

AsBasicIaaSVMProtectableItem is the BasicWorkloadProtectableItem implementation for WorkloadProtectableItem.

func (WorkloadProtectableItem) AsBasicWorkloadProtectableItem

func (wpi WorkloadProtectableItem) AsBasicWorkloadProtectableItem() (BasicWorkloadProtectableItem, bool)

AsBasicWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for WorkloadProtectableItem.

func (WorkloadProtectableItem) AsIaaSVMProtectableItem

func (wpi WorkloadProtectableItem) AsIaaSVMProtectableItem() (*IaaSVMProtectableItem, bool)

AsIaaSVMProtectableItem is the BasicWorkloadProtectableItem implementation for WorkloadProtectableItem.

func (WorkloadProtectableItem) AsWorkloadProtectableItem

func (wpi WorkloadProtectableItem) AsWorkloadProtectableItem() (*WorkloadProtectableItem, bool)

AsWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for WorkloadProtectableItem.

func (WorkloadProtectableItem) MarshalJSON

func (wpi WorkloadProtectableItem) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for WorkloadProtectableItem.

type WorkloadProtectableItemResource

type WorkloadProtectableItemResource struct {
	Properties BasicWorkloadProtectableItem `json:"properties,omitempty"`
	// ID - Resource ID represents the complete path to the resource.
	ID *string `json:"id,omitempty"`
	// Name - Resource name associated with the resource.
	Name *string `json:"name,omitempty"`
	// Type - Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
	Type *string `json:"type,omitempty"`
	// Location - Resource location.
	Location *string `json:"location,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
	// ETag - Optional ETag.
	ETag *string `json:"eTag,omitempty"`
}

WorkloadProtectableItemResource the base class for the backup item. Workload-specific backup items are derived from this class.

func (WorkloadProtectableItemResource) MarshalJSON

func (wpir WorkloadProtectableItemResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for WorkloadProtectableItemResource.

func (*WorkloadProtectableItemResource) UnmarshalJSON

func (wpir *WorkloadProtectableItemResource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for WorkloadProtectableItemResource struct.

type WorkloadProtectableItemResourceList

type WorkloadProtectableItemResourceList struct {
	autorest.Response `json:"-"`
	// Value - List of resources.
	Value *[]WorkloadProtectableItemResource `json:"value,omitempty"`
	// NextLink - The URI to GET the next page of resources. Call ListNext() gets the next page of resources.
	NextLink *string `json:"nextLink,omitempty"`
}

WorkloadProtectableItemResourceList the list of WorkloadProtectableItem resources.

func (WorkloadProtectableItemResourceList) IsEmpty

func (wpirl WorkloadProtectableItemResourceList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type WorkloadProtectableItemResourceListIterator

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

WorkloadProtectableItemResourceListIterator provides access to a complete listing of WorkloadProtectableItemResource values.

func NewWorkloadProtectableItemResourceListIterator

func NewWorkloadProtectableItemResourceListIterator(page WorkloadProtectableItemResourceListPage) WorkloadProtectableItemResourceListIterator

Creates a new instance of the WorkloadProtectableItemResourceListIterator type.

func (*WorkloadProtectableItemResourceListIterator) Next

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*WorkloadProtectableItemResourceListIterator) NextWithContext

func (iter *WorkloadProtectableItemResourceListIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (WorkloadProtectableItemResourceListIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (WorkloadProtectableItemResourceListIterator) Response

Response returns the raw server response from the last page request.

func (WorkloadProtectableItemResourceListIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type WorkloadProtectableItemResourceListPage

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

WorkloadProtectableItemResourceListPage contains a page of WorkloadProtectableItemResource values.

func NewWorkloadProtectableItemResourceListPage

Creates a new instance of the WorkloadProtectableItemResourceListPage type.

func (*WorkloadProtectableItemResourceListPage) Next

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*WorkloadProtectableItemResourceListPage) NextWithContext

func (page *WorkloadProtectableItemResourceListPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (WorkloadProtectableItemResourceListPage) NotDone

NotDone returns true if the page enumeration should be started or is not yet complete.

func (WorkloadProtectableItemResourceListPage) Response

Response returns the raw server response from the last page request.

func (WorkloadProtectableItemResourceListPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type WorkloadType

type WorkloadType string

WorkloadType enumerates the values for workload type.

const (
	// WorkloadTypeAzureSQLDb ...
	WorkloadTypeAzureSQLDb WorkloadType = "AzureSqlDb"
	// WorkloadTypeDPMUnknown ...
	WorkloadTypeDPMUnknown WorkloadType = "DPMUnknown"
	// WorkloadTypeExchange ...
	WorkloadTypeExchange WorkloadType = "Exchange"
	// WorkloadTypeFileFolder ...
	WorkloadTypeFileFolder WorkloadType = "FileFolder"
	// WorkloadTypeInvalid ...
	WorkloadTypeInvalid WorkloadType = "Invalid"
	// WorkloadTypeSharepoint ...
	WorkloadTypeSharepoint WorkloadType = "Sharepoint"
	// WorkloadTypeSQLDB ...
	WorkloadTypeSQLDB WorkloadType = "SQLDB"
	// WorkloadTypeVM ...
	WorkloadTypeVM WorkloadType = "VM"
)

func PossibleWorkloadTypeValues

func PossibleWorkloadTypeValues() []WorkloadType

PossibleWorkloadTypeValues returns an array of possible values for the WorkloadType const type.

type YearlyRetentionSchedule

type YearlyRetentionSchedule struct {
	// RetentionScheduleFormatType - Retention schedule format for the yearly retention policy. Possible values include: 'RetentionScheduleFormatInvalid', 'RetentionScheduleFormatDaily', 'RetentionScheduleFormatWeekly'
	RetentionScheduleFormatType RetentionScheduleFormat `json:"retentionScheduleFormatType,omitempty"`
	// MonthsOfYear - List of the months of year for the yearly retention policy.
	MonthsOfYear *[]MonthOfYear `json:"monthsOfYear,omitempty"`
	// RetentionScheduleDaily - Daily retention format for the yearly retention policy.
	RetentionScheduleDaily *DailyRetentionFormat `json:"retentionScheduleDaily,omitempty"`
	// RetentionScheduleWeekly - Weekly retention format for the yearly retention policy.
	RetentionScheduleWeekly *WeeklyRetentionFormat `json:"retentionScheduleWeekly,omitempty"`
	// RetentionTimes - Retention times for the retention policy.
	RetentionTimes *[]date.Time `json:"retentionTimes,omitempty"`
	// RetentionDuration - Retention duration for the retention policy.
	RetentionDuration *RetentionDuration `json:"retentionDuration,omitempty"`
}

YearlyRetentionSchedule yearly retention schedule.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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