const ( // DefaultBaseURI is the default URI used for the service Backup DefaultBaseURI = "https://management.azure.com" )
func UserAgent() string
UserAgent returns the UserAgent string to use when sending http.Requests.
func Version() string
Version returns the semantic version (see http://semver.org) of the client.
AzureBackupServerEngine the backup engine type when Azure Backup Server is used to manage the backups.
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"` }
func (abse AzureBackupServerEngine) AsAzureBackupServerEngine() (*AzureBackupServerEngine, bool)
AsAzureBackupServerEngine is the BasicEngineBase implementation for AzureBackupServerEngine.
func (abse AzureBackupServerEngine) AsBasicEngineBase() (BasicEngineBase, bool)
AsBasicEngineBase is the BasicEngineBase implementation for AzureBackupServerEngine.
func (abse AzureBackupServerEngine) AsDpmBackupEngine() (*DpmBackupEngine, bool)
AsDpmBackupEngine is the BasicEngineBase implementation for AzureBackupServerEngine.
func (abse AzureBackupServerEngine) AsEngineBase() (*EngineBase, bool)
AsEngineBase is the BasicEngineBase implementation for AzureBackupServerEngine.
func (abse AzureBackupServerEngine) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AzureBackupServerEngine.
AzureIaaSClassicComputeVMContainer iaaS VM workload-specific backup item representing a classic-deployed virtual machine.
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"` }
func (aisccvc AzureIaaSClassicComputeVMContainer) AsAzureIaaSClassicComputeVMContainer() (*AzureIaaSClassicComputeVMContainer, bool)
AsAzureIaaSClassicComputeVMContainer is the BasicProtectionContainer implementation for AzureIaaSClassicComputeVMContainer.
func (aisccvc AzureIaaSClassicComputeVMContainer) AsAzureIaaSComputeVMContainer() (*AzureIaaSComputeVMContainer, bool)
AsAzureIaaSComputeVMContainer is the BasicProtectionContainer implementation for AzureIaaSClassicComputeVMContainer.
func (aisccvc AzureIaaSClassicComputeVMContainer) AsAzureSQLContainer() (*AzureSQLContainer, bool)
AsAzureSQLContainer is the BasicProtectionContainer implementation for AzureIaaSClassicComputeVMContainer.
func (aisccvc AzureIaaSClassicComputeVMContainer) AsBasicIaaSVMContainer() (BasicIaaSVMContainer, bool)
AsBasicIaaSVMContainer is the BasicProtectionContainer implementation for AzureIaaSClassicComputeVMContainer.
func (aisccvc AzureIaaSClassicComputeVMContainer) AsBasicProtectionContainer() (BasicProtectionContainer, bool)
AsBasicProtectionContainer is the BasicProtectionContainer implementation for AzureIaaSClassicComputeVMContainer.
func (aisccvc AzureIaaSClassicComputeVMContainer) AsIaaSVMContainer() (*IaaSVMContainer, bool)
AsIaaSVMContainer is the BasicProtectionContainer implementation for AzureIaaSClassicComputeVMContainer.
func (aisccvc AzureIaaSClassicComputeVMContainer) AsMabContainer() (*MabContainer, bool)
AsMabContainer is the BasicProtectionContainer implementation for AzureIaaSClassicComputeVMContainer.
func (aisccvc AzureIaaSClassicComputeVMContainer) AsProtectionContainer() (*ProtectionContainer, bool)
AsProtectionContainer is the BasicProtectionContainer implementation for AzureIaaSClassicComputeVMContainer.
func (aisccvc AzureIaaSClassicComputeVMContainer) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AzureIaaSClassicComputeVMContainer.
AzureIaaSClassicComputeVMProtectableItem iaaS VM workload-specific backup item representing a classic VM.
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"` }
func (aisccvpi AzureIaaSClassicComputeVMProtectableItem) AsAzureIaaSClassicComputeVMProtectableItem() (*AzureIaaSClassicComputeVMProtectableItem, bool)
AsAzureIaaSClassicComputeVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSClassicComputeVMProtectableItem.
func (aisccvpi AzureIaaSClassicComputeVMProtectableItem) AsAzureIaaSComputeVMProtectableItem() (*AzureIaaSComputeVMProtectableItem, bool)
AsAzureIaaSComputeVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSClassicComputeVMProtectableItem.
func (aisccvpi AzureIaaSClassicComputeVMProtectableItem) AsBasicIaaSVMProtectableItem() (BasicIaaSVMProtectableItem, bool)
AsBasicIaaSVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSClassicComputeVMProtectableItem.
func (aisccvpi AzureIaaSClassicComputeVMProtectableItem) AsBasicWorkloadProtectableItem() (BasicWorkloadProtectableItem, bool)
AsBasicWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSClassicComputeVMProtectableItem.
func (aisccvpi AzureIaaSClassicComputeVMProtectableItem) AsIaaSVMProtectableItem() (*IaaSVMProtectableItem, bool)
AsIaaSVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSClassicComputeVMProtectableItem.
func (aisccvpi AzureIaaSClassicComputeVMProtectableItem) AsWorkloadProtectableItem() (*WorkloadProtectableItem, bool)
AsWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSClassicComputeVMProtectableItem.
func (aisccvpi AzureIaaSClassicComputeVMProtectableItem) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AzureIaaSClassicComputeVMProtectableItem.
AzureIaaSClassicComputeVMProtectedItem iaaS VM workload-specific backup item representing the classic VM.
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"` }
func (aisccvpi AzureIaaSClassicComputeVMProtectedItem) AsAzureIaaSClassicComputeVMProtectedItem() (*AzureIaaSClassicComputeVMProtectedItem, bool)
AsAzureIaaSClassicComputeVMProtectedItem is the BasicProtectedItem implementation for AzureIaaSClassicComputeVMProtectedItem.
func (aisccvpi AzureIaaSClassicComputeVMProtectedItem) AsAzureIaaSComputeVMProtectedItem() (*AzureIaaSComputeVMProtectedItem, bool)
AsAzureIaaSComputeVMProtectedItem is the BasicProtectedItem implementation for AzureIaaSClassicComputeVMProtectedItem.
func (aisccvpi AzureIaaSClassicComputeVMProtectedItem) AsAzureIaaSVMProtectedItem() (*AzureIaaSVMProtectedItem, bool)
AsAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for AzureIaaSClassicComputeVMProtectedItem.
func (aisccvpi AzureIaaSClassicComputeVMProtectedItem) AsAzureSQLProtectedItem() (*AzureSQLProtectedItem, bool)
AsAzureSQLProtectedItem is the BasicProtectedItem implementation for AzureIaaSClassicComputeVMProtectedItem.
func (aisccvpi AzureIaaSClassicComputeVMProtectedItem) AsBasicAzureIaaSVMProtectedItem() (BasicAzureIaaSVMProtectedItem, bool)
AsBasicAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for AzureIaaSClassicComputeVMProtectedItem.
func (aisccvpi AzureIaaSClassicComputeVMProtectedItem) AsBasicProtectedItem() (BasicProtectedItem, bool)
AsBasicProtectedItem is the BasicProtectedItem implementation for AzureIaaSClassicComputeVMProtectedItem.
func (aisccvpi AzureIaaSClassicComputeVMProtectedItem) AsMabFileFolderProtectedItem() (*MabFileFolderProtectedItem, bool)
AsMabFileFolderProtectedItem is the BasicProtectedItem implementation for AzureIaaSClassicComputeVMProtectedItem.
func (aisccvpi AzureIaaSClassicComputeVMProtectedItem) AsProtectedItem() (*ProtectedItem, bool)
AsProtectedItem is the BasicProtectedItem implementation for AzureIaaSClassicComputeVMProtectedItem.
func (aisccvpi AzureIaaSClassicComputeVMProtectedItem) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AzureIaaSClassicComputeVMProtectedItem.
AzureIaaSComputeVMContainer iaaS VM workload-specific backup item representing a Resource Manager-deployed virtual machine.
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"` }
func (aiscvc AzureIaaSComputeVMContainer) AsAzureIaaSClassicComputeVMContainer() (*AzureIaaSClassicComputeVMContainer, bool)
AsAzureIaaSClassicComputeVMContainer is the BasicProtectionContainer implementation for AzureIaaSComputeVMContainer.
func (aiscvc AzureIaaSComputeVMContainer) AsAzureIaaSComputeVMContainer() (*AzureIaaSComputeVMContainer, bool)
AsAzureIaaSComputeVMContainer is the BasicProtectionContainer implementation for AzureIaaSComputeVMContainer.
func (aiscvc AzureIaaSComputeVMContainer) AsAzureSQLContainer() (*AzureSQLContainer, bool)
AsAzureSQLContainer is the BasicProtectionContainer implementation for AzureIaaSComputeVMContainer.
func (aiscvc AzureIaaSComputeVMContainer) AsBasicIaaSVMContainer() (BasicIaaSVMContainer, bool)
AsBasicIaaSVMContainer is the BasicProtectionContainer implementation for AzureIaaSComputeVMContainer.
func (aiscvc AzureIaaSComputeVMContainer) AsBasicProtectionContainer() (BasicProtectionContainer, bool)
AsBasicProtectionContainer is the BasicProtectionContainer implementation for AzureIaaSComputeVMContainer.
func (aiscvc AzureIaaSComputeVMContainer) AsIaaSVMContainer() (*IaaSVMContainer, bool)
AsIaaSVMContainer is the BasicProtectionContainer implementation for AzureIaaSComputeVMContainer.
func (aiscvc AzureIaaSComputeVMContainer) AsMabContainer() (*MabContainer, bool)
AsMabContainer is the BasicProtectionContainer implementation for AzureIaaSComputeVMContainer.
func (aiscvc AzureIaaSComputeVMContainer) AsProtectionContainer() (*ProtectionContainer, bool)
AsProtectionContainer is the BasicProtectionContainer implementation for AzureIaaSComputeVMContainer.
func (aiscvc AzureIaaSComputeVMContainer) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AzureIaaSComputeVMContainer.
AzureIaaSComputeVMProtectableItem iaaS VM workload-specific backup item representing a Resource Manager VM.
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"` }
func (aiscvpi AzureIaaSComputeVMProtectableItem) AsAzureIaaSClassicComputeVMProtectableItem() (*AzureIaaSClassicComputeVMProtectableItem, bool)
AsAzureIaaSClassicComputeVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSComputeVMProtectableItem.
func (aiscvpi AzureIaaSComputeVMProtectableItem) AsAzureIaaSComputeVMProtectableItem() (*AzureIaaSComputeVMProtectableItem, bool)
AsAzureIaaSComputeVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSComputeVMProtectableItem.
func (aiscvpi AzureIaaSComputeVMProtectableItem) AsBasicIaaSVMProtectableItem() (BasicIaaSVMProtectableItem, bool)
AsBasicIaaSVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSComputeVMProtectableItem.
func (aiscvpi AzureIaaSComputeVMProtectableItem) AsBasicWorkloadProtectableItem() (BasicWorkloadProtectableItem, bool)
AsBasicWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSComputeVMProtectableItem.
func (aiscvpi AzureIaaSComputeVMProtectableItem) AsIaaSVMProtectableItem() (*IaaSVMProtectableItem, bool)
AsIaaSVMProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSComputeVMProtectableItem.
func (aiscvpi AzureIaaSComputeVMProtectableItem) AsWorkloadProtectableItem() (*WorkloadProtectableItem, bool)
AsWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for AzureIaaSComputeVMProtectableItem.
func (aiscvpi AzureIaaSComputeVMProtectableItem) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AzureIaaSComputeVMProtectableItem.
AzureIaaSComputeVMProtectedItem iaaS VM workload-specific backup item representing the Resource Manager VM.
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"` }
func (aiscvpi AzureIaaSComputeVMProtectedItem) AsAzureIaaSClassicComputeVMProtectedItem() (*AzureIaaSClassicComputeVMProtectedItem, bool)
AsAzureIaaSClassicComputeVMProtectedItem is the BasicProtectedItem implementation for AzureIaaSComputeVMProtectedItem.
func (aiscvpi AzureIaaSComputeVMProtectedItem) AsAzureIaaSComputeVMProtectedItem() (*AzureIaaSComputeVMProtectedItem, bool)
AsAzureIaaSComputeVMProtectedItem is the BasicProtectedItem implementation for AzureIaaSComputeVMProtectedItem.
func (aiscvpi AzureIaaSComputeVMProtectedItem) AsAzureIaaSVMProtectedItem() (*AzureIaaSVMProtectedItem, bool)
AsAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for AzureIaaSComputeVMProtectedItem.
func (aiscvpi AzureIaaSComputeVMProtectedItem) AsAzureSQLProtectedItem() (*AzureSQLProtectedItem, bool)
AsAzureSQLProtectedItem is the BasicProtectedItem implementation for AzureIaaSComputeVMProtectedItem.
func (aiscvpi AzureIaaSComputeVMProtectedItem) AsBasicAzureIaaSVMProtectedItem() (BasicAzureIaaSVMProtectedItem, bool)
AsBasicAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for AzureIaaSComputeVMProtectedItem.
func (aiscvpi AzureIaaSComputeVMProtectedItem) AsBasicProtectedItem() (BasicProtectedItem, bool)
AsBasicProtectedItem is the BasicProtectedItem implementation for AzureIaaSComputeVMProtectedItem.
func (aiscvpi AzureIaaSComputeVMProtectedItem) AsMabFileFolderProtectedItem() (*MabFileFolderProtectedItem, bool)
AsMabFileFolderProtectedItem is the BasicProtectedItem implementation for AzureIaaSComputeVMProtectedItem.
func (aiscvpi AzureIaaSComputeVMProtectedItem) AsProtectedItem() (*ProtectedItem, bool)
AsProtectedItem is the BasicProtectedItem implementation for AzureIaaSComputeVMProtectedItem.
func (aiscvpi AzureIaaSComputeVMProtectedItem) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AzureIaaSComputeVMProtectedItem.
AzureIaaSVMErrorInfo azure IaaS VM workload-specific error information.
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"` }
AzureIaaSVMJob the Azure IaaS VM workload-specific job object.
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"` }
func (aisj AzureIaaSVMJob) AsAzureIaaSVMJob() (*AzureIaaSVMJob, bool)
AsAzureIaaSVMJob is the BasicJob implementation for AzureIaaSVMJob.
func (aisj AzureIaaSVMJob) AsBasicJob() (BasicJob, bool)
AsBasicJob is the BasicJob implementation for AzureIaaSVMJob.
func (aisj AzureIaaSVMJob) AsDpmJob() (*DpmJob, bool)
AsDpmJob is the BasicJob implementation for AzureIaaSVMJob.
func (aisj AzureIaaSVMJob) AsJob() (*Job, bool)
AsJob is the BasicJob implementation for AzureIaaSVMJob.
func (aisj AzureIaaSVMJob) AsMabJob() (*MabJob, bool)
AsMabJob is the BasicJob implementation for AzureIaaSVMJob.
func (aisj AzureIaaSVMJob) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AzureIaaSVMJob.
AzureIaaSVMJobExtendedInfo additional information for the Azure IaaS VM workload-specific job.
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"` }
func (aisjei AzureIaaSVMJobExtendedInfo) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AzureIaaSVMJobExtendedInfo.
AzureIaaSVMJobTaskDetails azure IaaS VM workload-specific job task details.
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"` }
AzureIaaSVMProtectedItem this Azure VM workload-specific (also known as IaaS VM workload-specific) backup item has been backed up.
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"` }
func (aispi AzureIaaSVMProtectedItem) AsAzureIaaSClassicComputeVMProtectedItem() (*AzureIaaSClassicComputeVMProtectedItem, bool)
AsAzureIaaSClassicComputeVMProtectedItem is the BasicProtectedItem implementation for AzureIaaSVMProtectedItem.
func (aispi AzureIaaSVMProtectedItem) AsAzureIaaSComputeVMProtectedItem() (*AzureIaaSComputeVMProtectedItem, bool)
AsAzureIaaSComputeVMProtectedItem is the BasicProtectedItem implementation for AzureIaaSVMProtectedItem.
func (aispi AzureIaaSVMProtectedItem) AsAzureIaaSVMProtectedItem() (*AzureIaaSVMProtectedItem, bool)
AsAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for AzureIaaSVMProtectedItem.
func (aispi AzureIaaSVMProtectedItem) AsAzureSQLProtectedItem() (*AzureSQLProtectedItem, bool)
AsAzureSQLProtectedItem is the BasicProtectedItem implementation for AzureIaaSVMProtectedItem.
func (aispi AzureIaaSVMProtectedItem) AsBasicAzureIaaSVMProtectedItem() (BasicAzureIaaSVMProtectedItem, bool)
AsBasicAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for AzureIaaSVMProtectedItem.
func (aispi AzureIaaSVMProtectedItem) AsBasicProtectedItem() (BasicProtectedItem, bool)
AsBasicProtectedItem is the BasicProtectedItem implementation for AzureIaaSVMProtectedItem.
func (aispi AzureIaaSVMProtectedItem) AsMabFileFolderProtectedItem() (*MabFileFolderProtectedItem, bool)
AsMabFileFolderProtectedItem is the BasicProtectedItem implementation for AzureIaaSVMProtectedItem.
func (aispi AzureIaaSVMProtectedItem) AsProtectedItem() (*ProtectedItem, bool)
AsProtectedItem is the BasicProtectedItem implementation for AzureIaaSVMProtectedItem.
func (aispi AzureIaaSVMProtectedItem) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AzureIaaSVMProtectedItem.
AzureIaaSVMProtectedItemExtendedInfo additional information for the Azure VM (also known as IaaS VM)-specific backup item.
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"` }
AzureIaaSVMProtectionPolicy azure VM (also known as IaaS VM) workload-specific backup policy.
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"` }
func (aispp AzureIaaSVMProtectionPolicy) AsAzureIaaSVMProtectionPolicy() (*AzureIaaSVMProtectionPolicy, bool)
AsAzureIaaSVMProtectionPolicy is the BasicProtectionPolicy implementation for AzureIaaSVMProtectionPolicy.
func (aispp AzureIaaSVMProtectionPolicy) AsAzureSQLProtectionPolicy() (*AzureSQLProtectionPolicy, bool)
AsAzureSQLProtectionPolicy is the BasicProtectionPolicy implementation for AzureIaaSVMProtectionPolicy.
func (aispp AzureIaaSVMProtectionPolicy) AsBasicProtectionPolicy() (BasicProtectionPolicy, bool)
AsBasicProtectionPolicy is the BasicProtectionPolicy implementation for AzureIaaSVMProtectionPolicy.
func (aispp AzureIaaSVMProtectionPolicy) AsMabProtectionPolicy() (*MabProtectionPolicy, bool)
AsMabProtectionPolicy is the BasicProtectionPolicy implementation for AzureIaaSVMProtectionPolicy.
func (aispp AzureIaaSVMProtectionPolicy) AsProtectionPolicy() (*ProtectionPolicy, bool)
AsProtectionPolicy is the BasicProtectionPolicy implementation for AzureIaaSVMProtectionPolicy.
func (aispp AzureIaaSVMProtectionPolicy) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AzureIaaSVMProtectionPolicy.
func (aispp *AzureIaaSVMProtectionPolicy) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for AzureIaaSVMProtectionPolicy struct.
AzureSQLContainer azure SQL workload-specific container.
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"` }
func (asc AzureSQLContainer) AsAzureIaaSClassicComputeVMContainer() (*AzureIaaSClassicComputeVMContainer, bool)
AsAzureIaaSClassicComputeVMContainer is the BasicProtectionContainer implementation for AzureSQLContainer.
func (asc AzureSQLContainer) AsAzureIaaSComputeVMContainer() (*AzureIaaSComputeVMContainer, bool)
AsAzureIaaSComputeVMContainer is the BasicProtectionContainer implementation for AzureSQLContainer.
func (asc AzureSQLContainer) AsAzureSQLContainer() (*AzureSQLContainer, bool)
AsAzureSQLContainer is the BasicProtectionContainer implementation for AzureSQLContainer.
func (asc AzureSQLContainer) AsBasicIaaSVMContainer() (BasicIaaSVMContainer, bool)
AsBasicIaaSVMContainer is the BasicProtectionContainer implementation for AzureSQLContainer.
func (asc AzureSQLContainer) AsBasicProtectionContainer() (BasicProtectionContainer, bool)
AsBasicProtectionContainer is the BasicProtectionContainer implementation for AzureSQLContainer.
func (asc AzureSQLContainer) AsIaaSVMContainer() (*IaaSVMContainer, bool)
AsIaaSVMContainer is the BasicProtectionContainer implementation for AzureSQLContainer.
func (asc AzureSQLContainer) AsMabContainer() (*MabContainer, bool)
AsMabContainer is the BasicProtectionContainer implementation for AzureSQLContainer.
func (asc AzureSQLContainer) AsProtectionContainer() (*ProtectionContainer, bool)
AsProtectionContainer is the BasicProtectionContainer implementation for AzureSQLContainer.
func (asc AzureSQLContainer) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AzureSQLContainer.
AzureSQLProtectedItem this is an Azure SQL workload-specific backup item.
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"` }
func (aspi AzureSQLProtectedItem) AsAzureIaaSClassicComputeVMProtectedItem() (*AzureIaaSClassicComputeVMProtectedItem, bool)
AsAzureIaaSClassicComputeVMProtectedItem is the BasicProtectedItem implementation for AzureSQLProtectedItem.
func (aspi AzureSQLProtectedItem) AsAzureIaaSComputeVMProtectedItem() (*AzureIaaSComputeVMProtectedItem, bool)
AsAzureIaaSComputeVMProtectedItem is the BasicProtectedItem implementation for AzureSQLProtectedItem.
func (aspi AzureSQLProtectedItem) AsAzureIaaSVMProtectedItem() (*AzureIaaSVMProtectedItem, bool)
AsAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for AzureSQLProtectedItem.
func (aspi AzureSQLProtectedItem) AsAzureSQLProtectedItem() (*AzureSQLProtectedItem, bool)
AsAzureSQLProtectedItem is the BasicProtectedItem implementation for AzureSQLProtectedItem.
func (aspi AzureSQLProtectedItem) AsBasicAzureIaaSVMProtectedItem() (BasicAzureIaaSVMProtectedItem, bool)
AsBasicAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for AzureSQLProtectedItem.
func (aspi AzureSQLProtectedItem) AsBasicProtectedItem() (BasicProtectedItem, bool)
AsBasicProtectedItem is the BasicProtectedItem implementation for AzureSQLProtectedItem.
func (aspi AzureSQLProtectedItem) AsMabFileFolderProtectedItem() (*MabFileFolderProtectedItem, bool)
AsMabFileFolderProtectedItem is the BasicProtectedItem implementation for AzureSQLProtectedItem.
func (aspi AzureSQLProtectedItem) AsProtectedItem() (*ProtectedItem, bool)
AsProtectedItem is the BasicProtectedItem implementation for AzureSQLProtectedItem.
func (aspi AzureSQLProtectedItem) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AzureSQLProtectedItem.
AzureSQLProtectedItemExtendedInfo additional information for the Azure SQL specific backup item.
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"` }
AzureSQLProtectionPolicy the Azure SQL workload-specific backup policy.
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"` }
func (aspp AzureSQLProtectionPolicy) AsAzureIaaSVMProtectionPolicy() (*AzureIaaSVMProtectionPolicy, bool)
AsAzureIaaSVMProtectionPolicy is the BasicProtectionPolicy implementation for AzureSQLProtectionPolicy.
func (aspp AzureSQLProtectionPolicy) AsAzureSQLProtectionPolicy() (*AzureSQLProtectionPolicy, bool)
AsAzureSQLProtectionPolicy is the BasicProtectionPolicy implementation for AzureSQLProtectionPolicy.
func (aspp AzureSQLProtectionPolicy) AsBasicProtectionPolicy() (BasicProtectionPolicy, bool)
AsBasicProtectionPolicy is the BasicProtectionPolicy implementation for AzureSQLProtectionPolicy.
func (aspp AzureSQLProtectionPolicy) AsMabProtectionPolicy() (*MabProtectionPolicy, bool)
AsMabProtectionPolicy is the BasicProtectionPolicy implementation for AzureSQLProtectionPolicy.
func (aspp AzureSQLProtectionPolicy) AsProtectionPolicy() (*ProtectionPolicy, bool)
AsProtectionPolicy is the BasicProtectionPolicy implementation for AzureSQLProtectionPolicy.
func (aspp AzureSQLProtectionPolicy) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AzureSQLProtectionPolicy.
func (aspp *AzureSQLProtectionPolicy) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for AzureSQLProtectionPolicy struct.
BEKDetails BEK is Bitlocker Encryption Key.
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"` }
BMSBackupEngineQueryObject the query parameters used to GET the list of backup engines.
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"` }
BMSContainerQueryObject the query filters that can be used with the list containers API.
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"` }
BMSPOQueryObject filters the list of backup items.
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"` }
BMSRPQueryObject filters the list of backup copies based on the property.
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"` }
BackupsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service
type BackupsClient struct { BaseClient }
func NewBackupsClient(subscriptionID string) BackupsClient
NewBackupsClient creates an instance of the BackupsClient client.
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 (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 (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 (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 (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.
BaseClient is the base client for Backup.
type BaseClient struct { autorest.Client BaseURI string SubscriptionID string }
func New(subscriptionID string) BaseClient
New creates an instance of the BaseClient client.
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).
BasicAzureIaaSVMProtectedItem this Azure VM workload-specific (also known as IaaS VM workload-specific) backup item has been backed up.
type BasicAzureIaaSVMProtectedItem interface { AsAzureIaaSComputeVMProtectedItem() (*AzureIaaSComputeVMProtectedItem, bool) AsAzureIaaSClassicComputeVMProtectedItem() (*AzureIaaSClassicComputeVMProtectedItem, bool) AsAzureIaaSVMProtectedItem() (*AzureIaaSVMProtectedItem, bool) }
BasicEngineBase the base backup engine class. All workload-specific backup engines derive from this class.
type BasicEngineBase interface { AsAzureBackupServerEngine() (*AzureBackupServerEngine, bool) AsDpmBackupEngine() (*DpmBackupEngine, bool) AsEngineBase() (*EngineBase, bool) }
BasicILRRequest parameters to restore file or folders API.
type BasicILRRequest interface { AsIaasVMILRRegistrationRequest() (*IaasVMILRRegistrationRequest, bool) AsILRRequest() (*ILRRequest, bool) }
BasicIaaSVMContainer iaaS VM workload-specific container.
type BasicIaaSVMContainer interface { AsAzureIaaSComputeVMContainer() (*AzureIaaSComputeVMContainer, bool) AsAzureIaaSClassicComputeVMContainer() (*AzureIaaSClassicComputeVMContainer, bool) AsIaaSVMContainer() (*IaaSVMContainer, bool) }
BasicIaaSVMProtectableItem this Azure VM workload-specific (also known as IaaS VM workload-specific) backup item can be backed up.
type BasicIaaSVMProtectableItem interface { AsAzureIaaSComputeVMProtectableItem() (*AzureIaaSComputeVMProtectableItem, bool) AsAzureIaaSClassicComputeVMProtectableItem() (*AzureIaaSClassicComputeVMProtectableItem, bool) AsIaaSVMProtectableItem() (*IaaSVMProtectableItem, bool) }
BasicJob defines workload-agnostic properties for a job.
type BasicJob interface { AsAzureIaaSVMJob() (*AzureIaaSVMJob, bool) AsDpmJob() (*DpmJob, bool) AsMabJob() (*MabJob, bool) AsJob() (*Job, bool) }
BasicOperationResultInfoBase the base class for operation result information.
type BasicOperationResultInfoBase interface { AsOperationResultInfo() (*OperationResultInfo, bool) AsExportJobsOperationResultInfo() (*ExportJobsOperationResultInfo, bool) AsOperationResultInfoBase() (*OperationResultInfoBase, bool) }
BasicOperationStatusExtendedInfo the base class for additional information about the operation status.
type BasicOperationStatusExtendedInfo interface { AsOperationStatusJobExtendedInfo() (*OperationStatusJobExtendedInfo, bool) AsOperationStatusProvisionILRExtendedInfo() (*OperationStatusProvisionILRExtendedInfo, bool) AsOperationStatusJobsExtendedInfo() (*OperationStatusJobsExtendedInfo, bool) AsOperationStatusExtendedInfo() (*OperationStatusExtendedInfo, bool) }
BasicProtectedItem the base class for backup items.
type BasicProtectedItem interface { AsAzureIaaSVMProtectedItem() (*AzureIaaSVMProtectedItem, bool) AsBasicAzureIaaSVMProtectedItem() (BasicAzureIaaSVMProtectedItem, bool) AsMabFileFolderProtectedItem() (*MabFileFolderProtectedItem, bool) AsAzureSQLProtectedItem() (*AzureSQLProtectedItem, bool) AsAzureIaaSComputeVMProtectedItem() (*AzureIaaSComputeVMProtectedItem, bool) AsAzureIaaSClassicComputeVMProtectedItem() (*AzureIaaSClassicComputeVMProtectedItem, bool) AsProtectedItem() (*ProtectedItem, bool) }
BasicProtectionContainer the base class for a container with backup items. Containers with specific workloads are derived from this class.
type BasicProtectionContainer interface { AsAzureSQLContainer() (*AzureSQLContainer, bool) AsIaaSVMContainer() (*IaaSVMContainer, bool) AsBasicIaaSVMContainer() (BasicIaaSVMContainer, bool) AsMabContainer() (*MabContainer, bool) AsAzureIaaSComputeVMContainer() (*AzureIaaSComputeVMContainer, bool) AsAzureIaaSClassicComputeVMContainer() (*AzureIaaSClassicComputeVMContainer, bool) AsProtectionContainer() (*ProtectionContainer, bool) }
BasicProtectionPolicy the base class for a backup policy. Workload-specific backup policies are derived from this class.
type BasicProtectionPolicy interface { AsAzureIaaSVMProtectionPolicy() (*AzureIaaSVMProtectionPolicy, bool) AsMabProtectionPolicy() (*MabProtectionPolicy, bool) AsAzureSQLProtectionPolicy() (*AzureSQLProtectionPolicy, bool) AsProtectionPolicy() (*ProtectionPolicy, bool) }
BasicRecoveryPoint the base class for backup copies. Workload-specific backup copies are derived from this class.
type BasicRecoveryPoint interface { AsIaasVMRecoveryPoint() (*IaasVMRecoveryPoint, bool) AsGenericRecoveryPoint() (*GenericRecoveryPoint, bool) AsRecoveryPoint() (*RecoveryPoint, bool) }
BasicRequest the base class for a backup request. Workload-specific backup requests are derived from this class.
type BasicRequest interface { AsIaasVMBackupRequest() (*IaasVMBackupRequest, bool) AsRequest() (*Request, bool) }
BasicRestoreRequest the base class for restore requests. Workload-specific restore requests are derived from this class.
type BasicRestoreRequest interface { AsIaasVMRestoreRequest() (*IaasVMRestoreRequest, bool) AsRestoreRequest() (*RestoreRequest, bool) }
BasicRetentionPolicy the base class for retention policy.
type BasicRetentionPolicy interface { AsSimpleRetentionPolicy() (*SimpleRetentionPolicy, bool) AsLongTermRetentionPolicy() (*LongTermRetentionPolicy, bool) AsRetentionPolicy() (*RetentionPolicy, bool) }
BasicSchedulePolicy the base class for backup schedules.
type BasicSchedulePolicy interface { AsLongTermSchedulePolicy() (*LongTermSchedulePolicy, bool) AsSimpleSchedulePolicy() (*SimpleSchedulePolicy, bool) AsSchedulePolicy() (*SchedulePolicy, bool) }
BasicWorkloadProtectableItem the base class for backup item. Workload-specific backup items are derived from this class.
type BasicWorkloadProtectableItem interface { AsIaaSVMProtectableItem() (*IaaSVMProtectableItem, bool) AsBasicIaaSVMProtectableItem() (BasicIaaSVMProtectableItem, bool) AsAzureIaaSComputeVMProtectableItem() (*AzureIaaSComputeVMProtectableItem, bool) AsAzureIaaSClassicComputeVMProtectableItem() (*AzureIaaSClassicComputeVMProtectableItem, bool) AsWorkloadProtectableItem() (*WorkloadProtectableItem, bool) }
ClientScriptForConnect client script details for the file or folder restore.
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"` }
DailyRetentionFormat daily retention format.
type DailyRetentionFormat struct { // DaysOfTheMonth - List of days of the month. DaysOfTheMonth *[]Day `json:"daysOfTheMonth,omitempty"` }
DailyRetentionSchedule daily retention schedule.
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"` }
DataSourceType enumerates the values for data source type.
type DataSourceType string
const ( // AzureSQLDb ... AzureSQLDb DataSourceType = "AzureSqlDb" // DPMUnknown ... DPMUnknown DataSourceType = "DPMUnknown" // Exchange ... Exchange DataSourceType = "Exchange" // FileFolder ... FileFolder DataSourceType = "FileFolder" // Invalid ... Invalid DataSourceType = "Invalid" // Sharepoint ... DataSourceType = "Sharepoint" // SQLDB ... SQLDB DataSourceType = "SQLDB" // VM ... VM DataSourceType = "VM" )
func PossibleDataSourceTypeValues() []DataSourceType
PossibleDataSourceTypeValues returns an array of possible values for the DataSourceType const type.
Day day of the week.
type Day struct { Date *int32 `json:"date,omitempty"` IsLast *bool `json:"isLast,omitempty"` }
DayOfWeek enumerates the values for day of week.
type DayOfWeek string
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() []DayOfWeek
PossibleDayOfWeekValues returns an array of possible values for the DayOfWeek const type.
DpmBackupEngine the backup engine type when Data Protection Manager (DPM) is used to manage backups.
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"` }
func (dbe DpmBackupEngine) AsAzureBackupServerEngine() (*AzureBackupServerEngine, bool)
AsAzureBackupServerEngine is the BasicEngineBase implementation for DpmBackupEngine.
func (dbe DpmBackupEngine) AsBasicEngineBase() (BasicEngineBase, bool)
AsBasicEngineBase is the BasicEngineBase implementation for DpmBackupEngine.
func (dbe DpmBackupEngine) AsDpmBackupEngine() (*DpmBackupEngine, bool)
AsDpmBackupEngine is the BasicEngineBase implementation for DpmBackupEngine.
func (dbe DpmBackupEngine) AsEngineBase() (*EngineBase, bool)
AsEngineBase is the BasicEngineBase implementation for DpmBackupEngine.
func (dbe DpmBackupEngine) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DpmBackupEngine.
DpmErrorInfo DPM workload-specific error information.
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"` }
DpmJob the DPM workload-specific job object.
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"` }
func (dj DpmJob) AsAzureIaaSVMJob() (*AzureIaaSVMJob, bool)
AsAzureIaaSVMJob is the BasicJob implementation for DpmJob.
func (dj DpmJob) AsBasicJob() (BasicJob, bool)
AsBasicJob is the BasicJob implementation for DpmJob.
func (dj DpmJob) AsDpmJob() (*DpmJob, bool)
AsDpmJob is the BasicJob implementation for DpmJob.
func (dj DpmJob) AsJob() (*Job, bool)
AsJob is the BasicJob implementation for DpmJob.
func (dj DpmJob) AsMabJob() (*MabJob, bool)
AsMabJob is the BasicJob implementation for DpmJob.
func (dj DpmJob) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DpmJob.
DpmJobExtendedInfo additional information on the DPM workload-specific job.
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"` }
func (djei DpmJobExtendedInfo) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DpmJobExtendedInfo.
DpmJobTaskDetails DPM workload-specific job task details.
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"` }
EncryptionDetails details needed if the VM was encrypted at the time of backup.
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"` }
EngineBase the base backup engine class. All workload-specific backup engines derive from this class.
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"` }
func (eb EngineBase) AsAzureBackupServerEngine() (*AzureBackupServerEngine, bool)
AsAzureBackupServerEngine is the BasicEngineBase implementation for EngineBase.
func (eb EngineBase) AsBasicEngineBase() (BasicEngineBase, bool)
AsBasicEngineBase is the BasicEngineBase implementation for EngineBase.
func (eb EngineBase) AsDpmBackupEngine() (*DpmBackupEngine, bool)
AsDpmBackupEngine is the BasicEngineBase implementation for EngineBase.
func (eb EngineBase) AsEngineBase() (*EngineBase, bool)
AsEngineBase is the BasicEngineBase implementation for EngineBase.
func (eb EngineBase) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for EngineBase.
EngineBaseResource the base backup engine class. All workload-specific backup engines derive from this class.
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"` }
func (ebr EngineBaseResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for EngineBaseResource.
func (ebr *EngineBaseResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for EngineBaseResource struct.
EngineBaseResourceList list of BackupEngineBase resources
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"` }
func (ebrl EngineBaseResourceList) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
EngineBaseResourceListIterator provides access to a complete listing of EngineBaseResource values.
type EngineBaseResourceListIterator struct {
// contains filtered or unexported fields
}
func NewEngineBaseResourceListIterator(page EngineBaseResourceListPage) EngineBaseResourceListIterator
Creates a new instance of the EngineBaseResourceListIterator type.
func (iter *EngineBaseResourceListIterator) 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 (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 (iter EngineBaseResourceListIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter EngineBaseResourceListIterator) Response() EngineBaseResourceList
Response returns the raw server response from the last page request.
func (iter EngineBaseResourceListIterator) Value() EngineBaseResource
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
EngineBaseResourceListPage contains a page of EngineBaseResource values.
type EngineBaseResourceListPage struct {
// contains filtered or unexported fields
}
func NewEngineBaseResourceListPage(cur EngineBaseResourceList, getNextPage func(context.Context, EngineBaseResourceList) (EngineBaseResourceList, error)) EngineBaseResourceListPage
Creates a new instance of the EngineBaseResourceListPage type.
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 (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 (page EngineBaseResourceListPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page EngineBaseResourceListPage) Response() EngineBaseResourceList
Response returns the raw server response from the last page request.
func (page EngineBaseResourceListPage) Values() []EngineBaseResource
Values returns the slice of values for the current page or nil if there are no values.
EngineType enumerates the values for engine type.
type EngineType string
const ( // BackupEngineTypeAzureBackupServerEngine ... BackupEngineTypeAzureBackupServerEngine EngineType = "AzureBackupServerEngine" // BackupEngineTypeBackupEngineBase ... BackupEngineTypeBackupEngineBase EngineType = "BackupEngineBase" // BackupEngineTypeDpmBackupEngine ... BackupEngineTypeDpmBackupEngine EngineType = "DpmBackupEngine" )
func PossibleEngineTypeValues() []EngineType
PossibleEngineTypeValues returns an array of possible values for the EngineType const type.
EnginesClient is the open API 2.0 Specs for Azure RecoveryServices Backup service
type EnginesClient struct { BaseClient }
func NewEnginesClient(subscriptionID string) EnginesClient
NewEnginesClient creates an instance of the EnginesClient client.
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 (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 (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 (client EnginesClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (*http.Request, error)
GetPreparer prepares the Get request.
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 (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.
ExportJobsOperationResultInfo this class is used to send blob details after exporting jobs.
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"` }
func (ejori ExportJobsOperationResultInfo) AsBasicOperationResultInfoBase() (BasicOperationResultInfoBase, bool)
AsBasicOperationResultInfoBase is the BasicOperationResultInfoBase implementation for ExportJobsOperationResultInfo.
func (ejori ExportJobsOperationResultInfo) AsExportJobsOperationResultInfo() (*ExportJobsOperationResultInfo, bool)
AsExportJobsOperationResultInfo is the BasicOperationResultInfoBase implementation for ExportJobsOperationResultInfo.
func (ejori ExportJobsOperationResultInfo) AsOperationResultInfo() (*OperationResultInfo, bool)
AsOperationResultInfo is the BasicOperationResultInfoBase implementation for ExportJobsOperationResultInfo.
func (ejori ExportJobsOperationResultInfo) AsOperationResultInfoBase() (*OperationResultInfoBase, bool)
AsOperationResultInfoBase is the BasicOperationResultInfoBase implementation for ExportJobsOperationResultInfo.
func (ejori ExportJobsOperationResultInfo) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ExportJobsOperationResultInfo.
ExportJobsOperationResultsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service
type ExportJobsOperationResultsClient struct { BaseClient }
func NewExportJobsOperationResultsClient(subscriptionID string) ExportJobsOperationResultsClient
NewExportJobsOperationResultsClient creates an instance of the ExportJobsOperationResultsClient client.
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 (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 (client ExportJobsOperationResultsClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string, operationID string) (*http.Request, error)
GetPreparer prepares the Get request.
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 (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.
GenericRecoveryPoint generic backup copy.
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"` }
func (grp GenericRecoveryPoint) AsBasicRecoveryPoint() (BasicRecoveryPoint, bool)
AsBasicRecoveryPoint is the BasicRecoveryPoint implementation for GenericRecoveryPoint.
func (grp GenericRecoveryPoint) AsGenericRecoveryPoint() (*GenericRecoveryPoint, bool)
AsGenericRecoveryPoint is the BasicRecoveryPoint implementation for GenericRecoveryPoint.
func (grp GenericRecoveryPoint) AsIaasVMRecoveryPoint() (*IaasVMRecoveryPoint, bool)
AsIaasVMRecoveryPoint is the BasicRecoveryPoint implementation for GenericRecoveryPoint.
func (grp GenericRecoveryPoint) AsRecoveryPoint() (*RecoveryPoint, bool)
AsRecoveryPoint is the BasicRecoveryPoint implementation for GenericRecoveryPoint.
func (grp GenericRecoveryPoint) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for GenericRecoveryPoint.
GetProtectedItemQueryObject this object filters the list of backup items.
type GetProtectedItemQueryObject struct { // Expand - Specifies if the additional information should be provided for this item. Expand *string `json:"expand,omitempty"` }
HTTPStatusCode enumerates the values for http status code.
type HTTPStatusCode string
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 ... HTTPStatusCode = "ServiceUnavailable" // SwitchingProtocols ... SwitchingProtocols HTTPStatusCode = "SwitchingProtocols" // TemporaryRedirect ... TemporaryRedirect HTTPStatusCode = "TemporaryRedirect" // Unauthorized ... HTTPStatusCode = "Unauthorized" // UnsupportedMediaType ... UnsupportedMediaType HTTPStatusCode = "UnsupportedMediaType" // Unused ... Unused HTTPStatusCode = "Unused" // UpgradeRequired ... UpgradeRequired HTTPStatusCode = "UpgradeRequired" // UseProxy ... UseProxy HTTPStatusCode = "UseProxy" )
func PossibleHTTPStatusCodeValues() []HTTPStatusCode
PossibleHTTPStatusCodeValues returns an array of possible values for the HTTPStatusCode const type.
ILRRequest parameters to restore file or folders API.
type ILRRequest struct { // ObjectType - Possible values include: 'ObjectTypeILRRequest', 'ObjectTypeIaasVMILRRegistrationRequest' ObjectType ObjectTypeBasicILRRequest `json:"objectType,omitempty"` }
func (ir ILRRequest) AsBasicILRRequest() (BasicILRRequest, bool)
AsBasicILRRequest is the BasicILRRequest implementation for ILRRequest.
func (ir ILRRequest) AsILRRequest() (*ILRRequest, bool)
AsILRRequest is the BasicILRRequest implementation for ILRRequest.
func (ir ILRRequest) AsIaasVMILRRegistrationRequest() (*IaasVMILRRegistrationRequest, bool)
AsIaasVMILRRegistrationRequest is the BasicILRRequest implementation for ILRRequest.
func (ir ILRRequest) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ILRRequest.
ILRRequestResource the parameters to restore files or folders.
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"` }
func (irr ILRRequestResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ILRRequestResource.
func (irr *ILRRequestResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ILRRequestResource struct.
IaaSVMContainer iaaS VM workload-specific container.
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"` }
func (isc IaaSVMContainer) AsAzureIaaSClassicComputeVMContainer() (*AzureIaaSClassicComputeVMContainer, bool)
AsAzureIaaSClassicComputeVMContainer is the BasicProtectionContainer implementation for IaaSVMContainer.
func (isc IaaSVMContainer) AsAzureIaaSComputeVMContainer() (*AzureIaaSComputeVMContainer, bool)
AsAzureIaaSComputeVMContainer is the BasicProtectionContainer implementation for IaaSVMContainer.
func (isc IaaSVMContainer) AsAzureSQLContainer() (*AzureSQLContainer, bool)
AsAzureSQLContainer is the BasicProtectionContainer implementation for IaaSVMContainer.
func (isc IaaSVMContainer) AsBasicIaaSVMContainer() (BasicIaaSVMContainer, bool)
AsBasicIaaSVMContainer is the BasicProtectionContainer implementation for IaaSVMContainer.
func (isc IaaSVMContainer) AsBasicProtectionContainer() (BasicProtectionContainer, bool)
AsBasicProtectionContainer is the BasicProtectionContainer implementation for IaaSVMContainer.
func (isc IaaSVMContainer) AsIaaSVMContainer() (*IaaSVMContainer, bool)
AsIaaSVMContainer is the BasicProtectionContainer implementation for IaaSVMContainer.
func (isc IaaSVMContainer) AsMabContainer() (*MabContainer, bool)
AsMabContainer is the BasicProtectionContainer implementation for IaaSVMContainer.
func (isc IaaSVMContainer) AsProtectionContainer() (*ProtectionContainer, bool)
AsProtectionContainer is the BasicProtectionContainer implementation for IaaSVMContainer.
func (isc IaaSVMContainer) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for IaaSVMContainer.
IaaSVMProtectableItem this Azure VM workload-specific (also known as IaaS VM workload-specific) backup item can be backed up.
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"` }
func (ispi IaaSVMProtectableItem) AsAzureIaaSClassicComputeVMProtectableItem() (*AzureIaaSClassicComputeVMProtectableItem, bool)
AsAzureIaaSClassicComputeVMProtectableItem is the BasicWorkloadProtectableItem implementation for IaaSVMProtectableItem.
func (ispi IaaSVMProtectableItem) AsAzureIaaSComputeVMProtectableItem() (*AzureIaaSComputeVMProtectableItem, bool)
AsAzureIaaSComputeVMProtectableItem is the BasicWorkloadProtectableItem implementation for IaaSVMProtectableItem.
func (ispi IaaSVMProtectableItem) AsBasicIaaSVMProtectableItem() (BasicIaaSVMProtectableItem, bool)
AsBasicIaaSVMProtectableItem is the BasicWorkloadProtectableItem implementation for IaaSVMProtectableItem.
func (ispi IaaSVMProtectableItem) AsBasicWorkloadProtectableItem() (BasicWorkloadProtectableItem, bool)
AsBasicWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for IaaSVMProtectableItem.
func (ispi IaaSVMProtectableItem) AsIaaSVMProtectableItem() (*IaaSVMProtectableItem, bool)
AsIaaSVMProtectableItem is the BasicWorkloadProtectableItem implementation for IaaSVMProtectableItem.
func (ispi IaaSVMProtectableItem) AsWorkloadProtectableItem() (*WorkloadProtectableItem, bool)
AsWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for IaaSVMProtectableItem.
func (ispi IaaSVMProtectableItem) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for IaaSVMProtectableItem.
IaasVMBackupRequest this is an Azure VM (also known as IaaS VM) workload-specific backup request.
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"` }
func (ivbr IaasVMBackupRequest) AsBasicRequest() (BasicRequest, bool)
AsBasicRequest is the BasicRequest implementation for IaasVMBackupRequest.
func (ivbr IaasVMBackupRequest) AsIaasVMBackupRequest() (*IaasVMBackupRequest, bool)
AsIaasVMBackupRequest is the BasicRequest implementation for IaasVMBackupRequest.
func (ivbr IaasVMBackupRequest) AsRequest() (*Request, bool)
AsRequest is the BasicRequest implementation for IaasVMBackupRequest.
func (ivbr IaasVMBackupRequest) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for IaasVMBackupRequest.
IaasVMILRRegistrationRequest restore files or folders from a backup copy, or recovery point, of an IaaS (or Azure) VM.
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"` }
func (ivrr IaasVMILRRegistrationRequest) AsBasicILRRequest() (BasicILRRequest, bool)
AsBasicILRRequest is the BasicILRRequest implementation for IaasVMILRRegistrationRequest.
func (ivrr IaasVMILRRegistrationRequest) AsILRRequest() (*ILRRequest, bool)
AsILRRequest is the BasicILRRequest implementation for IaasVMILRRegistrationRequest.
func (ivrr IaasVMILRRegistrationRequest) AsIaasVMILRRegistrationRequest() (*IaasVMILRRegistrationRequest, bool)
AsIaasVMILRRegistrationRequest is the BasicILRRequest implementation for IaasVMILRRegistrationRequest.
func (ivrr IaasVMILRRegistrationRequest) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for IaasVMILRRegistrationRequest.
IaasVMRecoveryPoint azure VM (also known as IaaS VM) workload-specific backup copy.
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"` }
func (ivrp IaasVMRecoveryPoint) AsBasicRecoveryPoint() (BasicRecoveryPoint, bool)
AsBasicRecoveryPoint is the BasicRecoveryPoint implementation for IaasVMRecoveryPoint.
func (ivrp IaasVMRecoveryPoint) AsGenericRecoveryPoint() (*GenericRecoveryPoint, bool)
AsGenericRecoveryPoint is the BasicRecoveryPoint implementation for IaasVMRecoveryPoint.
func (ivrp IaasVMRecoveryPoint) AsIaasVMRecoveryPoint() (*IaasVMRecoveryPoint, bool)
AsIaasVMRecoveryPoint is the BasicRecoveryPoint implementation for IaasVMRecoveryPoint.
func (ivrp IaasVMRecoveryPoint) AsRecoveryPoint() (*RecoveryPoint, bool)
AsRecoveryPoint is the BasicRecoveryPoint implementation for IaasVMRecoveryPoint.
func (ivrp IaasVMRecoveryPoint) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for IaasVMRecoveryPoint.
IaasVMRestoreRequest iaaS VM workload-specific restore.
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"` }
func (ivrr IaasVMRestoreRequest) AsBasicRestoreRequest() (BasicRestoreRequest, bool)
AsBasicRestoreRequest is the BasicRestoreRequest implementation for IaasVMRestoreRequest.
func (ivrr IaasVMRestoreRequest) AsIaasVMRestoreRequest() (*IaasVMRestoreRequest, bool)
AsIaasVMRestoreRequest is the BasicRestoreRequest implementation for IaasVMRestoreRequest.
func (ivrr IaasVMRestoreRequest) AsRestoreRequest() (*RestoreRequest, bool)
AsRestoreRequest is the BasicRestoreRequest implementation for IaasVMRestoreRequest.
func (ivrr IaasVMRestoreRequest) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for IaasVMRestoreRequest.
InstantItemRecoveryTarget target details for the file or folder restore.
type InstantItemRecoveryTarget struct { // ClientScripts - List of client scripts. ClientScripts *[]ClientScriptForConnect `json:"clientScripts,omitempty"` }
ItemLevelRecoveryConnectionsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service
type ItemLevelRecoveryConnectionsClient struct { BaseClient }
func NewItemLevelRecoveryConnectionsClient(subscriptionID string) ItemLevelRecoveryConnectionsClient
NewItemLevelRecoveryConnectionsClient creates an instance of the ItemLevelRecoveryConnectionsClient client.
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 (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 (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 (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 (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 (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 (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 (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 (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.
ItemType enumerates the values for item type.
type ItemType string
const ( // ItemTypeAzureSQLDb ... ItemTypeAzureSQLDb ItemType = "AzureSqlDb" // ItemTypeDPMUnknown ... ItemTypeDPMUnknown ItemType = "DPMUnknown" // ItemTypeExchange ... ItemTypeExchange ItemType = "Exchange" // ItemTypeFileFolder ... ItemTypeFileFolder ItemType = "FileFolder" // ItemTypeInvalid ... ItemTypeInvalid ItemType = "Invalid" // ItemTypeSharepoint ... ItemType = "Sharepoint" // ItemTypeSQLDB ... ItemTypeSQLDB ItemType = "SQLDB" // ItemTypeVM ... ItemTypeVM ItemType = "VM" )
func PossibleItemTypeValues() []ItemType
PossibleItemTypeValues returns an array of possible values for the ItemType const type.
Job defines workload-agnostic properties for a 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"` }
func (j Job) AsAzureIaaSVMJob() (*AzureIaaSVMJob, bool)
AsAzureIaaSVMJob is the BasicJob implementation for Job.
func (j Job) AsBasicJob() (BasicJob, bool)
AsBasicJob is the BasicJob implementation for Job.
func (j Job) AsDpmJob() (*DpmJob, bool)
AsDpmJob is the BasicJob implementation for Job.
func (j Job) AsJob() (*Job, bool)
AsJob is the BasicJob implementation for Job.
func (j Job) AsMabJob() (*MabJob, bool)
AsMabJob is the BasicJob implementation for Job.
func (j Job) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Job.
JobCancellationsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service
type JobCancellationsClient struct { BaseClient }
func NewJobCancellationsClient(subscriptionID string) JobCancellationsClient
NewJobCancellationsClient creates an instance of the JobCancellationsClient client.
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 (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 (client JobCancellationsClient) TriggerPreparer(ctx context.Context, vaultName string, resourceGroupName string, jobName string) (*http.Request, error)
TriggerPreparer prepares the Trigger request.
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 (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.
JobDetailsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service
type JobDetailsClient struct { BaseClient }
func NewJobDetailsClient(subscriptionID string) JobDetailsClient
NewJobDetailsClient creates an instance of the JobDetailsClient client.
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 (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 (client JobDetailsClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string, jobName string) (*http.Request, error)
GetPreparer prepares the Get request.
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 (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.
JobOperationResultsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service
type JobOperationResultsClient struct { BaseClient }
func NewJobOperationResultsClient(subscriptionID string) JobOperationResultsClient
NewJobOperationResultsClient creates an instance of the JobOperationResultsClient client.
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 (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 (client JobOperationResultsClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string, jobName string, operationID string) (*http.Request, error)
GetPreparer prepares the Get request.
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 (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.
JobOperationType enumerates the values for job operation type.
type JobOperationType string
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() []JobOperationType
PossibleJobOperationTypeValues returns an array of possible values for the JobOperationType const type.
JobQueryObject the filters to list the jobs.
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"` }
JobResource defines the workload-agnostic properties for a job.
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"` }
func (jr JobResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for JobResource.
func (jr *JobResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for JobResource struct.
JobResourceList list of Job resources.
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"` }
func (jrl JobResourceList) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
JobResourceListIterator provides access to a complete listing of JobResource values.
type JobResourceListIterator struct {
// contains filtered or unexported fields
}
func NewJobResourceListIterator(page JobResourceListPage) JobResourceListIterator
Creates a new instance of the JobResourceListIterator type.
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 (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 (iter JobResourceListIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter JobResourceListIterator) Response() JobResourceList
Response returns the raw server response from the last page request.
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.
JobResourceListPage contains a page of JobResource values.
type JobResourceListPage struct {
// contains filtered or unexported fields
}
func NewJobResourceListPage(cur JobResourceList, getNextPage func(context.Context, JobResourceList) (JobResourceList, error)) JobResourceListPage
Creates a new instance of the JobResourceListPage type.
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 (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 (page JobResourceListPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page JobResourceListPage) Response() JobResourceList
Response returns the raw server response from the last page request.
func (page JobResourceListPage) Values() []JobResource
Values returns the slice of values for the current page or nil if there are no values.
JobStatus enumerates the values for job status.
type JobStatus string
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() []JobStatus
PossibleJobStatusValues returns an array of possible values for the JobStatus const type.
JobSupportedAction enumerates the values for job supported action.
type JobSupportedAction string
const ( // JobSupportedActionCancellable ... JobSupportedActionCancellable JobSupportedAction = "Cancellable" // JobSupportedActionInvalid ... JobSupportedActionInvalid JobSupportedAction = "Invalid" // JobSupportedActionRetriable ... JobSupportedActionRetriable JobSupportedAction = "Retriable" )
func PossibleJobSupportedActionValues() []JobSupportedAction
PossibleJobSupportedActionValues returns an array of possible values for the JobSupportedAction const type.
JobType enumerates the values for job type.
type JobType string
const ( // JobTypeAzureIaaSVMJob ... JobTypeAzureIaaSVMJob JobType = "AzureIaaSVMJob" // JobTypeDpmJob ... JobTypeDpmJob JobType = "DpmJob" // JobTypeJob ... JobTypeJob JobType = "Job" // JobTypeMabJob ... JobTypeMabJob JobType = "MabJob" )
func PossibleJobTypeValues() []JobType
PossibleJobTypeValues returns an array of possible values for the JobType const type.
JobsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service
type JobsClient struct { BaseClient }
func NewJobsClient(subscriptionID string) JobsClient
NewJobsClient creates an instance of the JobsClient client.
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 (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 (client JobsClient) ExportPreparer(ctx context.Context, vaultName string, resourceGroupName string, filter string) (*http.Request, error)
ExportPreparer prepares the Export request.
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 (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 (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 (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 (client JobsClient) ListPreparer(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (*http.Request, error)
ListPreparer prepares the List request.
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 (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.
KEKDetails the Key Encryption Key (KEK) is the encryption key for the Bitlocker Encryption Key (BEK).
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"` }
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 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"` }
LongTermRetentionPolicy long-term retention policy.
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"` }
func (ltrp LongTermRetentionPolicy) AsBasicRetentionPolicy() (BasicRetentionPolicy, bool)
AsBasicRetentionPolicy is the BasicRetentionPolicy implementation for LongTermRetentionPolicy.
func (ltrp LongTermRetentionPolicy) AsLongTermRetentionPolicy() (*LongTermRetentionPolicy, bool)
AsLongTermRetentionPolicy is the BasicRetentionPolicy implementation for LongTermRetentionPolicy.
func (ltrp LongTermRetentionPolicy) AsRetentionPolicy() (*RetentionPolicy, bool)
AsRetentionPolicy is the BasicRetentionPolicy implementation for LongTermRetentionPolicy.
func (ltrp LongTermRetentionPolicy) AsSimpleRetentionPolicy() (*SimpleRetentionPolicy, bool)
AsSimpleRetentionPolicy is the BasicRetentionPolicy implementation for LongTermRetentionPolicy.
func (ltrp LongTermRetentionPolicy) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for LongTermRetentionPolicy.
LongTermSchedulePolicy long-term policy schedule.
type LongTermSchedulePolicy struct { // SchedulePolicyType - Possible values include: 'SchedulePolicyTypeSchedulePolicy', 'SchedulePolicyTypeLongTermSchedulePolicy', 'SchedulePolicyTypeSimpleSchedulePolicy' SchedulePolicyType SchedulePolicyType `json:"schedulePolicyType,omitempty"` }
func (ltsp LongTermSchedulePolicy) AsBasicSchedulePolicy() (BasicSchedulePolicy, bool)
AsBasicSchedulePolicy is the BasicSchedulePolicy implementation for LongTermSchedulePolicy.
func (ltsp LongTermSchedulePolicy) AsLongTermSchedulePolicy() (*LongTermSchedulePolicy, bool)
AsLongTermSchedulePolicy is the BasicSchedulePolicy implementation for LongTermSchedulePolicy.
func (ltsp LongTermSchedulePolicy) AsSchedulePolicy() (*SchedulePolicy, bool)
AsSchedulePolicy is the BasicSchedulePolicy implementation for LongTermSchedulePolicy.
func (ltsp LongTermSchedulePolicy) AsSimpleSchedulePolicy() (*SimpleSchedulePolicy, bool)
AsSimpleSchedulePolicy is the BasicSchedulePolicy implementation for LongTermSchedulePolicy.
func (ltsp LongTermSchedulePolicy) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for LongTermSchedulePolicy.
MabContainer the container associated with items backed up using Azure Backup Server.
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"` }
func (mc MabContainer) AsAzureIaaSClassicComputeVMContainer() (*AzureIaaSClassicComputeVMContainer, bool)
AsAzureIaaSClassicComputeVMContainer is the BasicProtectionContainer implementation for MabContainer.
func (mc MabContainer) AsAzureIaaSComputeVMContainer() (*AzureIaaSComputeVMContainer, bool)
AsAzureIaaSComputeVMContainer is the BasicProtectionContainer implementation for MabContainer.
func (mc MabContainer) AsAzureSQLContainer() (*AzureSQLContainer, bool)
AsAzureSQLContainer is the BasicProtectionContainer implementation for MabContainer.
func (mc MabContainer) AsBasicIaaSVMContainer() (BasicIaaSVMContainer, bool)
AsBasicIaaSVMContainer is the BasicProtectionContainer implementation for MabContainer.
func (mc MabContainer) AsBasicProtectionContainer() (BasicProtectionContainer, bool)
AsBasicProtectionContainer is the BasicProtectionContainer implementation for MabContainer.
func (mc MabContainer) AsIaaSVMContainer() (*IaaSVMContainer, bool)
AsIaaSVMContainer is the BasicProtectionContainer implementation for MabContainer.
func (mc MabContainer) AsMabContainer() (*MabContainer, bool)
AsMabContainer is the BasicProtectionContainer implementation for MabContainer.
func (mc MabContainer) AsProtectionContainer() (*ProtectionContainer, bool)
AsProtectionContainer is the BasicProtectionContainer implementation for MabContainer.
func (mc MabContainer) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MabContainer.
MabContainerExtendedInfo additional information for the container.
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"` }
MabErrorInfo azure Backup Server workload-specific error information.
type MabErrorInfo struct { // ErrorString - Localized error string. ErrorString *string `json:"errorString,omitempty"` // Recommendations - List of localized recommendations. Recommendations *[]string `json:"recommendations,omitempty"` }
MabFileFolderProtectedItem this is a file or folder workload-specific backup item.
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"` }
func (mffpi MabFileFolderProtectedItem) AsAzureIaaSClassicComputeVMProtectedItem() (*AzureIaaSClassicComputeVMProtectedItem, bool)
AsAzureIaaSClassicComputeVMProtectedItem is the BasicProtectedItem implementation for MabFileFolderProtectedItem.
func (mffpi MabFileFolderProtectedItem) AsAzureIaaSComputeVMProtectedItem() (*AzureIaaSComputeVMProtectedItem, bool)
AsAzureIaaSComputeVMProtectedItem is the BasicProtectedItem implementation for MabFileFolderProtectedItem.
func (mffpi MabFileFolderProtectedItem) AsAzureIaaSVMProtectedItem() (*AzureIaaSVMProtectedItem, bool)
AsAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for MabFileFolderProtectedItem.
func (mffpi MabFileFolderProtectedItem) AsAzureSQLProtectedItem() (*AzureSQLProtectedItem, bool)
AsAzureSQLProtectedItem is the BasicProtectedItem implementation for MabFileFolderProtectedItem.
func (mffpi MabFileFolderProtectedItem) AsBasicAzureIaaSVMProtectedItem() (BasicAzureIaaSVMProtectedItem, bool)
AsBasicAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for MabFileFolderProtectedItem.
func (mffpi MabFileFolderProtectedItem) AsBasicProtectedItem() (BasicProtectedItem, bool)
AsBasicProtectedItem is the BasicProtectedItem implementation for MabFileFolderProtectedItem.
func (mffpi MabFileFolderProtectedItem) AsMabFileFolderProtectedItem() (*MabFileFolderProtectedItem, bool)
AsMabFileFolderProtectedItem is the BasicProtectedItem implementation for MabFileFolderProtectedItem.
func (mffpi MabFileFolderProtectedItem) AsProtectedItem() (*ProtectedItem, bool)
AsProtectedItem is the BasicProtectedItem implementation for MabFileFolderProtectedItem.
func (mffpi MabFileFolderProtectedItem) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MabFileFolderProtectedItem.
MabFileFolderProtectedItemExtendedInfo additional information for the backup item.
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"` }
MabJob the Azure Backup Server workload-specific job.
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"` }
func (mj MabJob) AsAzureIaaSVMJob() (*AzureIaaSVMJob, bool)
AsAzureIaaSVMJob is the BasicJob implementation for MabJob.
func (mj MabJob) AsBasicJob() (BasicJob, bool)
AsBasicJob is the BasicJob implementation for MabJob.
func (mj MabJob) AsDpmJob() (*DpmJob, bool)
AsDpmJob is the BasicJob implementation for MabJob.
func (mj MabJob) AsJob() (*Job, bool)
AsJob is the BasicJob implementation for MabJob.
func (mj MabJob) AsMabJob() (*MabJob, bool)
AsMabJob is the BasicJob implementation for MabJob.
func (mj MabJob) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MabJob.
MabJobExtendedInfo additional information for the Azure Backup Server workload-specific job.
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"` }
func (mjei MabJobExtendedInfo) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MabJobExtendedInfo.
MabJobTaskDetails azure Backup Server workload-specific job task details.
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"` }
MabProtectionPolicy the backup policy for the file or folder container.
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"` }
func (mpp MabProtectionPolicy) AsAzureIaaSVMProtectionPolicy() (*AzureIaaSVMProtectionPolicy, bool)
AsAzureIaaSVMProtectionPolicy is the BasicProtectionPolicy implementation for MabProtectionPolicy.
func (mpp MabProtectionPolicy) AsAzureSQLProtectionPolicy() (*AzureSQLProtectionPolicy, bool)
AsAzureSQLProtectionPolicy is the BasicProtectionPolicy implementation for MabProtectionPolicy.
func (mpp MabProtectionPolicy) AsBasicProtectionPolicy() (BasicProtectionPolicy, bool)
AsBasicProtectionPolicy is the BasicProtectionPolicy implementation for MabProtectionPolicy.
func (mpp MabProtectionPolicy) AsMabProtectionPolicy() (*MabProtectionPolicy, bool)
AsMabProtectionPolicy is the BasicProtectionPolicy implementation for MabProtectionPolicy.
func (mpp MabProtectionPolicy) AsProtectionPolicy() (*ProtectionPolicy, bool)
AsProtectionPolicy is the BasicProtectionPolicy implementation for MabProtectionPolicy.
func (mpp MabProtectionPolicy) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MabProtectionPolicy.
func (mpp *MabProtectionPolicy) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for MabProtectionPolicy struct.
MabServerType enumerates the values for mab server type.
type MabServerType string
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() []MabServerType
PossibleMabServerTypeValues returns an array of possible values for the MabServerType const type.
ManagementType enumerates the values for management type.
type ManagementType string
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() []ManagementType
PossibleManagementTypeValues returns an array of possible values for the ManagementType const type.
ManagementTypeBasicProtectionPolicy enumerates the values for management type basic protection policy.
type ManagementTypeBasicProtectionPolicy string
const ( // BackupManagementTypeAzureIaasVM ... BackupManagementTypeAzureIaasVM ManagementTypeBasicProtectionPolicy = "AzureIaasVM" // BackupManagementTypeAzureSQL ... BackupManagementTypeAzureSQL ManagementTypeBasicProtectionPolicy = "AzureSql" // BackupManagementTypeMAB ... BackupManagementTypeMAB ManagementTypeBasicProtectionPolicy = "MAB" // BackupManagementTypeProtectionPolicy ... BackupManagementTypeProtectionPolicy ManagementTypeBasicProtectionPolicy = "ProtectionPolicy" )
func PossibleManagementTypeBasicProtectionPolicyValues() []ManagementTypeBasicProtectionPolicy
PossibleManagementTypeBasicProtectionPolicyValues returns an array of possible values for the ManagementTypeBasicProtectionPolicy const type.
MonthOfYear enumerates the values for month of year.
type MonthOfYear string
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() []MonthOfYear
PossibleMonthOfYearValues returns an array of possible values for the MonthOfYear const type.
MonthlyRetentionSchedule the monthly retention schedule.
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"` }
ObjectType enumerates the values for object type.
type ObjectType string
const ( // ObjectTypeOperationStatusExtendedInfo ... ObjectTypeOperationStatusExtendedInfo ObjectType = "OperationStatusExtendedInfo" // ObjectTypeOperationStatusJobExtendedInfo ... ObjectTypeOperationStatusJobExtendedInfo ObjectType = "OperationStatusJobExtendedInfo" // ObjectTypeOperationStatusJobsExtendedInfo ... ObjectTypeOperationStatusJobsExtendedInfo ObjectType = "OperationStatusJobsExtendedInfo" // ObjectTypeOperationStatusProvisionILRExtendedInfo ... ObjectTypeOperationStatusProvisionILRExtendedInfo ObjectType = "OperationStatusProvisionILRExtendedInfo" )
func PossibleObjectTypeValues() []ObjectType
PossibleObjectTypeValues returns an array of possible values for the ObjectType const type.
ObjectTypeBasicILRRequest enumerates the values for object type basic ilr request.
type ObjectTypeBasicILRRequest string
const ( // ObjectTypeIaasVMILRRegistrationRequest ... ObjectTypeIaasVMILRRegistrationRequest ObjectTypeBasicILRRequest = "IaasVMILRRegistrationRequest" // ObjectTypeILRRequest ... ObjectTypeILRRequest ObjectTypeBasicILRRequest = "ILRRequest" )
func PossibleObjectTypeBasicILRRequestValues() []ObjectTypeBasicILRRequest
PossibleObjectTypeBasicILRRequestValues returns an array of possible values for the ObjectTypeBasicILRRequest const type.
ObjectTypeBasicOperationResultInfoBase enumerates the values for object type basic operation result info base.
type ObjectTypeBasicOperationResultInfoBase string
const ( // ObjectTypeExportJobsOperationResultInfo ... ObjectTypeExportJobsOperationResultInfo ObjectTypeBasicOperationResultInfoBase = "ExportJobsOperationResultInfo" // ObjectTypeOperationResultInfo ... ObjectTypeOperationResultInfo ObjectTypeBasicOperationResultInfoBase = "OperationResultInfo" // ObjectTypeOperationResultInfoBase ... ObjectTypeOperationResultInfoBase ObjectTypeBasicOperationResultInfoBase = "OperationResultInfoBase" )
func PossibleObjectTypeBasicOperationResultInfoBaseValues() []ObjectTypeBasicOperationResultInfoBase
PossibleObjectTypeBasicOperationResultInfoBaseValues returns an array of possible values for the ObjectTypeBasicOperationResultInfoBase const type.
ObjectTypeBasicRecoveryPoint enumerates the values for object type basic recovery point.
type ObjectTypeBasicRecoveryPoint string
const ( // ObjectTypeGenericRecoveryPoint ... ObjectTypeGenericRecoveryPoint ObjectTypeBasicRecoveryPoint = "GenericRecoveryPoint" // ObjectTypeIaasVMRecoveryPoint ... ObjectTypeIaasVMRecoveryPoint ObjectTypeBasicRecoveryPoint = "IaasVMRecoveryPoint" // ObjectTypeRecoveryPoint ... ObjectTypeRecoveryPoint ObjectTypeBasicRecoveryPoint = "RecoveryPoint" )
func PossibleObjectTypeBasicRecoveryPointValues() []ObjectTypeBasicRecoveryPoint
PossibleObjectTypeBasicRecoveryPointValues returns an array of possible values for the ObjectTypeBasicRecoveryPoint const type.
ObjectTypeBasicRequest enumerates the values for object type basic request.
type ObjectTypeBasicRequest string
const ( // ObjectTypeBackupRequest ... ObjectTypeBackupRequest ObjectTypeBasicRequest = "BackupRequest" // ObjectTypeIaasVMBackupRequest ... ObjectTypeIaasVMBackupRequest ObjectTypeBasicRequest = "IaasVMBackupRequest" )
func PossibleObjectTypeBasicRequestValues() []ObjectTypeBasicRequest
PossibleObjectTypeBasicRequestValues returns an array of possible values for the ObjectTypeBasicRequest const type.
ObjectTypeBasicRestoreRequest enumerates the values for object type basic restore request.
type ObjectTypeBasicRestoreRequest string
const ( // ObjectTypeIaasVMRestoreRequest ... ObjectTypeIaasVMRestoreRequest ObjectTypeBasicRestoreRequest = "IaasVMRestoreRequest" // ObjectTypeRestoreRequest ... ObjectTypeRestoreRequest ObjectTypeBasicRestoreRequest = "RestoreRequest" )
func PossibleObjectTypeBasicRestoreRequestValues() []ObjectTypeBasicRestoreRequest
PossibleObjectTypeBasicRestoreRequestValues returns an array of possible values for the ObjectTypeBasicRestoreRequest const type.
OperationResultInfo information about the result of the operation.
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"` }
func (ori OperationResultInfo) AsBasicOperationResultInfoBase() (BasicOperationResultInfoBase, bool)
AsBasicOperationResultInfoBase is the BasicOperationResultInfoBase implementation for OperationResultInfo.
func (ori OperationResultInfo) AsExportJobsOperationResultInfo() (*ExportJobsOperationResultInfo, bool)
AsExportJobsOperationResultInfo is the BasicOperationResultInfoBase implementation for OperationResultInfo.
func (ori OperationResultInfo) AsOperationResultInfo() (*OperationResultInfo, bool)
AsOperationResultInfo is the BasicOperationResultInfoBase implementation for OperationResultInfo.
func (ori OperationResultInfo) AsOperationResultInfoBase() (*OperationResultInfoBase, bool)
AsOperationResultInfoBase is the BasicOperationResultInfoBase implementation for OperationResultInfo.
func (ori OperationResultInfo) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for OperationResultInfo.
OperationResultInfoBase the base class for operation result information.
type OperationResultInfoBase struct { // ObjectType - Possible values include: 'ObjectTypeOperationResultInfoBase', 'ObjectTypeOperationResultInfo', 'ObjectTypeExportJobsOperationResultInfo' ObjectType ObjectTypeBasicOperationResultInfoBase `json:"objectType,omitempty"` }
func (orib OperationResultInfoBase) AsBasicOperationResultInfoBase() (BasicOperationResultInfoBase, bool)
AsBasicOperationResultInfoBase is the BasicOperationResultInfoBase implementation for OperationResultInfoBase.
func (orib OperationResultInfoBase) AsExportJobsOperationResultInfo() (*ExportJobsOperationResultInfo, bool)
AsExportJobsOperationResultInfo is the BasicOperationResultInfoBase implementation for OperationResultInfoBase.
func (orib OperationResultInfoBase) AsOperationResultInfo() (*OperationResultInfo, bool)
AsOperationResultInfo is the BasicOperationResultInfoBase implementation for OperationResultInfoBase.
func (orib OperationResultInfoBase) AsOperationResultInfoBase() (*OperationResultInfoBase, bool)
AsOperationResultInfoBase is the BasicOperationResultInfoBase implementation for OperationResultInfoBase.
func (orib OperationResultInfoBase) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for OperationResultInfoBase.
OperationResultInfoBaseResource base class for operation result information.
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"` }
func (oribr OperationResultInfoBaseResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for OperationResultInfoBaseResource.
func (oribr *OperationResultInfoBaseResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for OperationResultInfoBaseResource struct.
OperationResultsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service
type OperationResultsClient struct { BaseClient }
func NewOperationResultsClient(subscriptionID string) OperationResultsClient
NewOperationResultsClient creates an instance of the OperationResultsClient client.
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 (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 (client OperationResultsClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string, operationID string) (*http.Request, error)
GetPreparer prepares the Get request.
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 (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.
OperationStatus operation status.
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"` }
func (osVar *OperationStatus) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for OperationStatus struct.
OperationStatusError error information associated with the operation status call.
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"` }
OperationStatusExtendedInfo the base class for additional information about the operation status.
type OperationStatusExtendedInfo struct { // ObjectType - Possible values include: 'ObjectTypeOperationStatusExtendedInfo', 'ObjectTypeOperationStatusJobExtendedInfo', 'ObjectTypeOperationStatusProvisionILRExtendedInfo', 'ObjectTypeOperationStatusJobsExtendedInfo' ObjectType ObjectType `json:"objectType,omitempty"` }
func (osei OperationStatusExtendedInfo) AsBasicOperationStatusExtendedInfo() (BasicOperationStatusExtendedInfo, bool)
AsBasicOperationStatusExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusExtendedInfo.
func (osei OperationStatusExtendedInfo) AsOperationStatusExtendedInfo() (*OperationStatusExtendedInfo, bool)
AsOperationStatusExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusExtendedInfo.
func (osei OperationStatusExtendedInfo) AsOperationStatusJobExtendedInfo() (*OperationStatusJobExtendedInfo, bool)
AsOperationStatusJobExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusExtendedInfo.
func (osei OperationStatusExtendedInfo) AsOperationStatusJobsExtendedInfo() (*OperationStatusJobsExtendedInfo, bool)
AsOperationStatusJobsExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusExtendedInfo.
func (osei OperationStatusExtendedInfo) AsOperationStatusProvisionILRExtendedInfo() (*OperationStatusProvisionILRExtendedInfo, bool)
AsOperationStatusProvisionILRExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusExtendedInfo.
func (osei OperationStatusExtendedInfo) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for OperationStatusExtendedInfo.
OperationStatusJobExtendedInfo extended information about the operation status job.
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"` }
func (osjei OperationStatusJobExtendedInfo) AsBasicOperationStatusExtendedInfo() (BasicOperationStatusExtendedInfo, bool)
AsBasicOperationStatusExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusJobExtendedInfo.
func (osjei OperationStatusJobExtendedInfo) AsOperationStatusExtendedInfo() (*OperationStatusExtendedInfo, bool)
AsOperationStatusExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusJobExtendedInfo.
func (osjei OperationStatusJobExtendedInfo) AsOperationStatusJobExtendedInfo() (*OperationStatusJobExtendedInfo, bool)
AsOperationStatusJobExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusJobExtendedInfo.
func (osjei OperationStatusJobExtendedInfo) AsOperationStatusJobsExtendedInfo() (*OperationStatusJobsExtendedInfo, bool)
AsOperationStatusJobsExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusJobExtendedInfo.
func (osjei OperationStatusJobExtendedInfo) AsOperationStatusProvisionILRExtendedInfo() (*OperationStatusProvisionILRExtendedInfo, bool)
AsOperationStatusProvisionILRExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusJobExtendedInfo.
func (osjei OperationStatusJobExtendedInfo) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for OperationStatusJobExtendedInfo.
OperationStatusJobsExtendedInfo operation status extended info for the job list.
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"` }
func (osjei OperationStatusJobsExtendedInfo) AsBasicOperationStatusExtendedInfo() (BasicOperationStatusExtendedInfo, bool)
AsBasicOperationStatusExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusJobsExtendedInfo.
func (osjei OperationStatusJobsExtendedInfo) AsOperationStatusExtendedInfo() (*OperationStatusExtendedInfo, bool)
AsOperationStatusExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusJobsExtendedInfo.
func (osjei OperationStatusJobsExtendedInfo) AsOperationStatusJobExtendedInfo() (*OperationStatusJobExtendedInfo, bool)
AsOperationStatusJobExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusJobsExtendedInfo.
func (osjei OperationStatusJobsExtendedInfo) AsOperationStatusJobsExtendedInfo() (*OperationStatusJobsExtendedInfo, bool)
AsOperationStatusJobsExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusJobsExtendedInfo.
func (osjei OperationStatusJobsExtendedInfo) AsOperationStatusProvisionILRExtendedInfo() (*OperationStatusProvisionILRExtendedInfo, bool)
AsOperationStatusProvisionILRExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusJobsExtendedInfo.
func (osjei OperationStatusJobsExtendedInfo) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for OperationStatusJobsExtendedInfo.
OperationStatusProvisionILRExtendedInfo extended information about the Item Level Recovery (ILR) provision action, operation status.
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"` }
func (ospiei OperationStatusProvisionILRExtendedInfo) AsBasicOperationStatusExtendedInfo() (BasicOperationStatusExtendedInfo, bool)
AsBasicOperationStatusExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusProvisionILRExtendedInfo.
func (ospiei OperationStatusProvisionILRExtendedInfo) AsOperationStatusExtendedInfo() (*OperationStatusExtendedInfo, bool)
AsOperationStatusExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusProvisionILRExtendedInfo.
func (ospiei OperationStatusProvisionILRExtendedInfo) AsOperationStatusJobExtendedInfo() (*OperationStatusJobExtendedInfo, bool)
AsOperationStatusJobExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusProvisionILRExtendedInfo.
func (ospiei OperationStatusProvisionILRExtendedInfo) AsOperationStatusJobsExtendedInfo() (*OperationStatusJobsExtendedInfo, bool)
AsOperationStatusJobsExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusProvisionILRExtendedInfo.
func (ospiei OperationStatusProvisionILRExtendedInfo) AsOperationStatusProvisionILRExtendedInfo() (*OperationStatusProvisionILRExtendedInfo, bool)
AsOperationStatusProvisionILRExtendedInfo is the BasicOperationStatusExtendedInfo implementation for OperationStatusProvisionILRExtendedInfo.
func (ospiei OperationStatusProvisionILRExtendedInfo) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for OperationStatusProvisionILRExtendedInfo.
OperationStatusValues enumerates the values for operation status values.
type OperationStatusValues string
const ( // OperationStatusValuesCanceled ... OperationStatusValuesCanceled OperationStatusValues = "Canceled" // OperationStatusValuesFailed ... OperationStatusValuesFailed OperationStatusValues = "Failed" // OperationStatusValuesInProgress ... OperationStatusValuesInProgress OperationStatusValues = "InProgress" // OperationStatusValuesInvalid ... OperationStatusValuesInvalid OperationStatusValues = "Invalid" // OperationStatusValuesSucceeded ... OperationStatusValuesSucceeded OperationStatusValues = "Succeeded" )
func PossibleOperationStatusValuesValues() []OperationStatusValues
PossibleOperationStatusValuesValues returns an array of possible values for the OperationStatusValues const type.
OperationStatusesClient is the open API 2.0 Specs for Azure RecoveryServices Backup service
type OperationStatusesClient struct { BaseClient }
func NewOperationStatusesClient(subscriptionID string) OperationStatusesClient
NewOperationStatusesClient creates an instance of the OperationStatusesClient client.
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 (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 (client OperationStatusesClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string, operationID string) (*http.Request, error)
GetPreparer prepares the Get request.
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 (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.
OperationWorkerResponse the base class for operation result responses.
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"` }
func (owr OperationWorkerResponse) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for OperationWorkerResponse.
ProtectableItemType enumerates the values for protectable item type.
type ProtectableItemType string
const ( // ProtectableItemTypeIaaSVMProtectableItem ... ProtectableItemTypeIaaSVMProtectableItem ProtectableItemType = "IaaSVMProtectableItem" // ProtectableItemTypeMicrosoftClassicComputevirtualMachines ... ProtectableItemTypeMicrosoftClassicComputevirtualMachines ProtectableItemType = "Microsoft.ClassicCompute/virtualMachines" // ProtectableItemTypeMicrosoftComputevirtualMachines ... ProtectableItemTypeMicrosoftComputevirtualMachines ProtectableItemType = "Microsoft.Compute/virtualMachines" // ProtectableItemTypeWorkloadProtectableItem ... ProtectableItemTypeWorkloadProtectableItem ProtectableItemType = "WorkloadProtectableItem" )
func PossibleProtectableItemTypeValues() []ProtectableItemType
PossibleProtectableItemTypeValues returns an array of possible values for the ProtectableItemType const type.
ProtectableItemsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service
type ProtectableItemsClient struct { BaseClient }
func NewProtectableItemsClient(subscriptionID string) ProtectableItemsClient
NewProtectableItemsClient creates an instance of the ProtectableItemsClient client.
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 (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 (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 (client ProtectableItemsClient) ListPreparer(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (*http.Request, error)
ListPreparer prepares the List request.
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 (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.
ProtectableObjectType enumerates the values for protectable object type.
type ProtectableObjectType string
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() []ProtectableObjectType
PossibleProtectableObjectTypeValues returns an array of possible values for the ProtectableObjectType const type.
ProtectedItem the base class for backup items.
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"` }
func (pi ProtectedItem) AsAzureIaaSClassicComputeVMProtectedItem() (*AzureIaaSClassicComputeVMProtectedItem, bool)
AsAzureIaaSClassicComputeVMProtectedItem is the BasicProtectedItem implementation for ProtectedItem.
func (pi ProtectedItem) AsAzureIaaSComputeVMProtectedItem() (*AzureIaaSComputeVMProtectedItem, bool)
AsAzureIaaSComputeVMProtectedItem is the BasicProtectedItem implementation for ProtectedItem.
func (pi ProtectedItem) AsAzureIaaSVMProtectedItem() (*AzureIaaSVMProtectedItem, bool)
AsAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for ProtectedItem.
func (pi ProtectedItem) AsAzureSQLProtectedItem() (*AzureSQLProtectedItem, bool)
AsAzureSQLProtectedItem is the BasicProtectedItem implementation for ProtectedItem.
func (pi ProtectedItem) AsBasicAzureIaaSVMProtectedItem() (BasicAzureIaaSVMProtectedItem, bool)
AsBasicAzureIaaSVMProtectedItem is the BasicProtectedItem implementation for ProtectedItem.
func (pi ProtectedItem) AsBasicProtectedItem() (BasicProtectedItem, bool)
AsBasicProtectedItem is the BasicProtectedItem implementation for ProtectedItem.
func (pi ProtectedItem) AsMabFileFolderProtectedItem() (*MabFileFolderProtectedItem, bool)
AsMabFileFolderProtectedItem is the BasicProtectedItem implementation for ProtectedItem.
func (pi ProtectedItem) AsProtectedItem() (*ProtectedItem, bool)
AsProtectedItem is the BasicProtectedItem implementation for ProtectedItem.
func (pi ProtectedItem) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ProtectedItem.
ProtectedItemOperationResultsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service
type ProtectedItemOperationResultsClient struct { BaseClient }
func NewProtectedItemOperationResultsClient(subscriptionID string) ProtectedItemOperationResultsClient
NewProtectedItemOperationResultsClient creates an instance of the ProtectedItemOperationResultsClient client.
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 (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 (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 (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 (client ProtectedItemOperationResultsClient) 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.
ProtectedItemOperationStatusesClient is the open API 2.0 Specs for Azure RecoveryServices Backup service
type ProtectedItemOperationStatusesClient struct { BaseClient }
func NewProtectedItemOperationStatusesClient(subscriptionID string) ProtectedItemOperationStatusesClient
NewProtectedItemOperationStatusesClient creates an instance of the ProtectedItemOperationStatusesClient client.
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 (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 (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 (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 (client ProtectedItemOperationStatusesClient) 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.
ProtectedItemQueryObject filters the list of backup items.
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"` }
ProtectedItemResource the base class for backup items.
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"` }
func (pir ProtectedItemResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ProtectedItemResource.
func (pir *ProtectedItemResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ProtectedItemResource struct.
ProtectedItemResourceList the list of ProtectedItem resources.
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"` }
func (pirl ProtectedItemResourceList) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
ProtectedItemResourceListIterator provides access to a complete listing of ProtectedItemResource values.
type ProtectedItemResourceListIterator struct {
// contains filtered or unexported fields
}
func NewProtectedItemResourceListIterator(page ProtectedItemResourceListPage) ProtectedItemResourceListIterator
Creates a new instance of the ProtectedItemResourceListIterator type.
func (iter *ProtectedItemResourceListIterator) 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 (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 (iter ProtectedItemResourceListIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter ProtectedItemResourceListIterator) Response() ProtectedItemResourceList
Response returns the raw server response from the last page request.
func (iter ProtectedItemResourceListIterator) Value() ProtectedItemResource
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
ProtectedItemResourceListPage contains a page of ProtectedItemResource values.
type ProtectedItemResourceListPage struct {
// contains filtered or unexported fields
}
func NewProtectedItemResourceListPage(cur ProtectedItemResourceList, getNextPage func(context.Context, ProtectedItemResourceList) (ProtectedItemResourceList, error)) ProtectedItemResourceListPage
Creates a new instance of the ProtectedItemResourceListPage type.
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 (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 (page ProtectedItemResourceListPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page ProtectedItemResourceListPage) Response() ProtectedItemResourceList
Response returns the raw server response from the last page request.
func (page ProtectedItemResourceListPage) Values() []ProtectedItemResource
Values returns the slice of values for the current page or nil if there are no values.
ProtectedItemState enumerates the values for protected item state.
type ProtectedItemState string
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() []ProtectedItemState
PossibleProtectedItemStateValues returns an array of possible values for the ProtectedItemState const type.
ProtectedItemType enumerates the values for protected item type.
type ProtectedItemType string
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() []ProtectedItemType
PossibleProtectedItemTypeValues returns an array of possible values for the ProtectedItemType const type.
ProtectedItemsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service
type ProtectedItemsClient struct { BaseClient }
func NewProtectedItemsClient(subscriptionID string) ProtectedItemsClient
NewProtectedItemsClient creates an instance of the ProtectedItemsClient client.
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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (client ProtectedItemsClient) ListPreparer(ctx context.Context, vaultName string, resourceGroupName string, filter string, skipToken string) (*http.Request, error)
ListPreparer prepares the List request.
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 (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.
ProtectionContainer the base class for a container with backup items. Containers with specific workloads are derived from this class.
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"` }
func (pc ProtectionContainer) AsAzureIaaSClassicComputeVMContainer() (*AzureIaaSClassicComputeVMContainer, bool)
AsAzureIaaSClassicComputeVMContainer is the BasicProtectionContainer implementation for ProtectionContainer.
func (pc ProtectionContainer) AsAzureIaaSComputeVMContainer() (*AzureIaaSComputeVMContainer, bool)
AsAzureIaaSComputeVMContainer is the BasicProtectionContainer implementation for ProtectionContainer.
func (pc ProtectionContainer) AsAzureSQLContainer() (*AzureSQLContainer, bool)
AsAzureSQLContainer is the BasicProtectionContainer implementation for ProtectionContainer.
func (pc ProtectionContainer) AsBasicIaaSVMContainer() (BasicIaaSVMContainer, bool)
AsBasicIaaSVMContainer is the BasicProtectionContainer implementation for ProtectionContainer.
func (pc ProtectionContainer) AsBasicProtectionContainer() (BasicProtectionContainer, bool)
AsBasicProtectionContainer is the BasicProtectionContainer implementation for ProtectionContainer.
func (pc ProtectionContainer) AsIaaSVMContainer() (*IaaSVMContainer, bool)
AsIaaSVMContainer is the BasicProtectionContainer implementation for ProtectionContainer.
func (pc ProtectionContainer) AsMabContainer() (*MabContainer, bool)
AsMabContainer is the BasicProtectionContainer implementation for ProtectionContainer.
func (pc ProtectionContainer) AsProtectionContainer() (*ProtectionContainer, bool)
AsProtectionContainer is the BasicProtectionContainer implementation for ProtectionContainer.
func (pc ProtectionContainer) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ProtectionContainer.
ProtectionContainerOperationResultsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service
type ProtectionContainerOperationResultsClient struct { BaseClient }
func NewProtectionContainerOperationResultsClient(subscriptionID string) ProtectionContainerOperationResultsClient
NewProtectionContainerOperationResultsClient creates an instance of the ProtectionContainerOperationResultsClient client.
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 (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 (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 (client ProtectionContainerOperationResultsClient) 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 (client ProtectionContainerOperationResultsClient) 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.
ProtectionContainerRefreshOperationResultsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service
type ProtectionContainerRefreshOperationResultsClient struct { BaseClient }
func NewProtectionContainerRefreshOperationResultsClient(subscriptionID string) ProtectionContainerRefreshOperationResultsClient
NewProtectionContainerRefreshOperationResultsClient creates an instance of the ProtectionContainerRefreshOperationResultsClient client.
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 (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 (client ProtectionContainerRefreshOperationResultsClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, operationID string) (*http.Request, error)
GetPreparer prepares the Get request.
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 (client ProtectionContainerRefreshOperationResultsClient) 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.
ProtectionContainerResource base class for a container with backup items. Containers with specific workloads are derived from this class.
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"` }
func (pcr ProtectionContainerResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ProtectionContainerResource.
func (pcr *ProtectionContainerResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ProtectionContainerResource struct.
ProtectionContainerResourceList the list of ProtectionContainer resources.
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"` }
ProtectionContainersClient is the open API 2.0 Specs for Azure RecoveryServices Backup service
type ProtectionContainersClient struct { BaseClient }
func NewProtectionContainersClient(subscriptionID string) ProtectionContainersClient
NewProtectionContainersClient creates an instance of the ProtectionContainersClient client.
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 (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 (client ProtectionContainersClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string, fabricName string, containerName string) (*http.Request, error)
GetPreparer prepares the Get request.
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 (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 (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 (client ProtectionContainersClient) ListPreparer(ctx context.Context, vaultName string, resourceGroupName string, filter string) (*http.Request, error)
ListPreparer prepares the List request.
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 (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 (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 (client ProtectionContainersClient) RefreshPreparer(ctx context.Context, vaultName string, resourceGroupName string, fabricName string) (*http.Request, error)
RefreshPreparer prepares the Refresh request.
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 (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 (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 (client ProtectionContainersClient) UnregisterPreparer(ctx context.Context, resourceGroupName string, vaultName string, identityName string) (*http.Request, error)
UnregisterPreparer prepares the Unregister request.
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 (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.
ProtectionPoliciesClient is the open API 2.0 Specs for Azure RecoveryServices Backup service
type ProtectionPoliciesClient struct { BaseClient }
func NewProtectionPoliciesClient(subscriptionID string) ProtectionPoliciesClient
NewProtectionPoliciesClient creates an instance of the ProtectionPoliciesClient client.
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 (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 (client ProtectionPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, vaultName string, resourceGroupName string, policyName string, resourceProtectionPolicy ProtectionPolicyResource) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
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 (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 (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 (client ProtectionPoliciesClient) DeletePreparer(ctx context.Context, vaultName string, resourceGroupName string, policyName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
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 (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 (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 (client ProtectionPoliciesClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string, policyName string) (*http.Request, error)
GetPreparer prepares the Get request.
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 (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 (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 (client ProtectionPoliciesClient) ListPreparer(ctx context.Context, vaultName string, resourceGroupName string, filter string) (*http.Request, error)
ListPreparer prepares the List request.
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 (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.
ProtectionPolicy the base class for a backup policy. Workload-specific backup policies are derived from this class.
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"` }
func (pp ProtectionPolicy) AsAzureIaaSVMProtectionPolicy() (*AzureIaaSVMProtectionPolicy, bool)
AsAzureIaaSVMProtectionPolicy is the BasicProtectionPolicy implementation for ProtectionPolicy.
func (pp ProtectionPolicy) AsAzureSQLProtectionPolicy() (*AzureSQLProtectionPolicy, bool)
AsAzureSQLProtectionPolicy is the BasicProtectionPolicy implementation for ProtectionPolicy.
func (pp ProtectionPolicy) AsBasicProtectionPolicy() (BasicProtectionPolicy, bool)
AsBasicProtectionPolicy is the BasicProtectionPolicy implementation for ProtectionPolicy.
func (pp ProtectionPolicy) AsMabProtectionPolicy() (*MabProtectionPolicy, bool)
AsMabProtectionPolicy is the BasicProtectionPolicy implementation for ProtectionPolicy.
func (pp ProtectionPolicy) AsProtectionPolicy() (*ProtectionPolicy, bool)
AsProtectionPolicy is the BasicProtectionPolicy implementation for ProtectionPolicy.
func (pp ProtectionPolicy) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ProtectionPolicy.
ProtectionPolicyOperationResultsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service
type ProtectionPolicyOperationResultsClient struct { BaseClient }
func NewProtectionPolicyOperationResultsClient(subscriptionID string) ProtectionPolicyOperationResultsClient
NewProtectionPolicyOperationResultsClient creates an instance of the ProtectionPolicyOperationResultsClient client.
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 (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 (client ProtectionPolicyOperationResultsClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string, policyName string, operationID string) (*http.Request, error)
GetPreparer prepares the Get request.
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 (client ProtectionPolicyOperationResultsClient) 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.
ProtectionPolicyOperationStatusesClient is the open API 2.0 Specs for Azure RecoveryServices Backup service
type ProtectionPolicyOperationStatusesClient struct { BaseClient }
func NewProtectionPolicyOperationStatusesClient(subscriptionID string) ProtectionPolicyOperationStatusesClient
NewProtectionPolicyOperationStatusesClient creates an instance of the ProtectionPolicyOperationStatusesClient client.
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 (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 (client ProtectionPolicyOperationStatusesClient) GetPreparer(ctx context.Context, vaultName string, resourceGroupName string, policyName string, operationID string) (*http.Request, error)
GetPreparer prepares the Get request.
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 (client ProtectionPolicyOperationStatusesClient) 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.
ProtectionPolicyQueryObject this object filters the list of backup policies.
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"` }
ProtectionPolicyResource the base class for backup policy. Workload-specific backup policies are derived from this class.
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"` }
func (ppr ProtectionPolicyResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ProtectionPolicyResource.
func (ppr *ProtectionPolicyResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ProtectionPolicyResource struct.
ProtectionPolicyResourceList the list of ProtectionPolicy resources.
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"` }
ProtectionState enumerates the values for protection state.
type ProtectionState string
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() []ProtectionState
PossibleProtectionStateValues returns an array of possible values for the ProtectionState const type.
ProtectionStatus enumerates the values for protection status.
type ProtectionStatus string
const ( // ProtectionStatusInvalid ... ProtectionStatusInvalid ProtectionStatus = "Invalid" // ProtectionStatusNotProtected ... ProtectionStatusNotProtected ProtectionStatus = "NotProtected" // ProtectionStatusProtected ... ProtectionStatusProtected ProtectionStatus = "Protected" // ProtectionStatusProtecting ... ProtectionStatusProtecting ProtectionStatus = "Protecting" )
func PossibleProtectionStatusValues() []ProtectionStatus
PossibleProtectionStatusValues returns an array of possible values for the ProtectionStatus const type.
RecoveryPoint the base class for backup copies. Workload-specific backup copies are derived from this class.
type RecoveryPoint struct { // ObjectType - Possible values include: 'ObjectTypeRecoveryPoint', 'ObjectTypeIaasVMRecoveryPoint', 'ObjectTypeGenericRecoveryPoint' ObjectType ObjectTypeBasicRecoveryPoint `json:"objectType,omitempty"` }
func (rp RecoveryPoint) AsBasicRecoveryPoint() (BasicRecoveryPoint, bool)
AsBasicRecoveryPoint is the BasicRecoveryPoint implementation for RecoveryPoint.
func (rp RecoveryPoint) AsGenericRecoveryPoint() (*GenericRecoveryPoint, bool)
AsGenericRecoveryPoint is the BasicRecoveryPoint implementation for RecoveryPoint.
func (rp RecoveryPoint) AsIaasVMRecoveryPoint() (*IaasVMRecoveryPoint, bool)
AsIaasVMRecoveryPoint is the BasicRecoveryPoint implementation for RecoveryPoint.
func (rp RecoveryPoint) AsRecoveryPoint() (*RecoveryPoint, bool)
AsRecoveryPoint is the BasicRecoveryPoint implementation for RecoveryPoint.
func (rp RecoveryPoint) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for RecoveryPoint.
RecoveryPointResource the base class for backup copies. Workload-specific backup copies are derived from this class.
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"` }
func (rpr RecoveryPointResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for RecoveryPointResource.
func (rpr *RecoveryPointResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for RecoveryPointResource struct.
RecoveryPointResourceList the list of RecoveryPoint resources.
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"` }
RecoveryPointsClient is the open API 2.0 Specs for Azure RecoveryServices Backup service
type RecoveryPointsClient struct { BaseClient }
func NewRecoveryPointsClient(subscriptionID string) RecoveryPointsClient
NewRecoveryPointsClient creates an instance of the RecoveryPointsClient client.
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 (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 (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 (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 (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 (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 (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 (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 (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.
RecoveryType enumerates the values for recovery type.
type RecoveryType string
const ( // RecoveryTypeAlternateLocation ... RecoveryTypeAlternateLocation RecoveryType = "AlternateLocation" // RecoveryTypeInvalid ... RecoveryTypeInvalid RecoveryType = "Invalid" // RecoveryTypeOriginalLocation ... RecoveryTypeOriginalLocation RecoveryType = "OriginalLocation" // RecoveryTypeRestoreDisks ... RecoveryTypeRestoreDisks RecoveryType = "RestoreDisks" )
func PossibleRecoveryTypeValues() []RecoveryType
PossibleRecoveryTypeValues returns an array of possible values for the RecoveryType const type.
Request the base class for a backup request. Workload-specific backup requests are derived from this class.
type Request struct { // ObjectType - Possible values include: 'ObjectTypeBackupRequest', 'ObjectTypeIaasVMBackupRequest' ObjectType ObjectTypeBasicRequest `json:"objectType,omitempty"` }
func (r Request) AsBasicRequest() (BasicRequest, bool)
AsBasicRequest is the BasicRequest implementation for Request.
func (r Request) AsIaasVMBackupRequest() (*IaasVMBackupRequest, bool)
AsIaasVMBackupRequest is the BasicRequest implementation for Request.
func (r Request) AsRequest() (*Request, bool)
AsRequest is the BasicRequest implementation for Request.
func (r Request) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Request.
RequestResource base class for the backup request. Workload-specific backup requests are derived from this class.
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"` }
func (rr RequestResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for RequestResource.
func (rr *RequestResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for RequestResource struct.
Resource base for all resources.
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"` }
func (r Resource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Resource.
ResourceList base for all lists of resources.
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"` }
RestoreRequest the base class for restore requests. Workload-specific restore requests are derived from this class.
type RestoreRequest struct { // ObjectType - Possible values include: 'ObjectTypeRestoreRequest', 'ObjectTypeIaasVMRestoreRequest' ObjectType ObjectTypeBasicRestoreRequest `json:"objectType,omitempty"` }
func (rr RestoreRequest) AsBasicRestoreRequest() (BasicRestoreRequest, bool)
AsBasicRestoreRequest is the BasicRestoreRequest implementation for RestoreRequest.
func (rr RestoreRequest) AsIaasVMRestoreRequest() (*IaasVMRestoreRequest, bool)
AsIaasVMRestoreRequest is the BasicRestoreRequest implementation for RestoreRequest.
func (rr RestoreRequest) AsRestoreRequest() (*RestoreRequest, bool)
AsRestoreRequest is the BasicRestoreRequest implementation for RestoreRequest.
func (rr RestoreRequest) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for RestoreRequest.
RestoreRequestResource the base class for a restore request. Workload-specific restore requests are derived from this class.
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"` }
func (rrr RestoreRequestResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for RestoreRequestResource.
func (rrr *RestoreRequestResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for RestoreRequestResource struct.
RestoresClient is the open API 2.0 Specs for Azure RecoveryServices Backup service
type RestoresClient struct { BaseClient }
func NewRestoresClient(subscriptionID string) RestoresClient
NewRestoresClient creates an instance of the RestoresClient client.
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 (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 (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 (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 (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.
RetentionDuration retention duration.
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"` }
RetentionDurationType enumerates the values for retention duration type.
type RetentionDurationType string
const ( // RetentionDurationTypeDays ... RetentionDurationTypeDays RetentionDurationType = "Days" // RetentionDurationTypeInvalid ... RetentionDurationTypeInvalid RetentionDurationType = "Invalid" // RetentionDurationTypeMonths ... RetentionDurationTypeMonths RetentionDurationType = "Months" // RetentionDurationTypeWeeks ... RetentionDurationTypeWeeks RetentionDurationType = "Weeks" // RetentionDurationTypeYears ... RetentionDurationTypeYears RetentionDurationType = "Years" )
func PossibleRetentionDurationTypeValues() []RetentionDurationType
PossibleRetentionDurationTypeValues returns an array of possible values for the RetentionDurationType const type.
RetentionPolicy the base class for retention policy.
type RetentionPolicy struct { // RetentionPolicyType - Possible values include: 'RetentionPolicyTypeRetentionPolicy', 'RetentionPolicyTypeSimpleRetentionPolicy', 'RetentionPolicyTypeLongTermRetentionPolicy' RetentionPolicyType RetentionPolicyType `json:"retentionPolicyType,omitempty"` }
func (rp RetentionPolicy) AsBasicRetentionPolicy() (BasicRetentionPolicy, bool)
AsBasicRetentionPolicy is the BasicRetentionPolicy implementation for RetentionPolicy.
func (rp RetentionPolicy) AsLongTermRetentionPolicy() (*LongTermRetentionPolicy, bool)
AsLongTermRetentionPolicy is the BasicRetentionPolicy implementation for RetentionPolicy.
func (rp RetentionPolicy) AsRetentionPolicy() (*RetentionPolicy, bool)
AsRetentionPolicy is the BasicRetentionPolicy implementation for RetentionPolicy.
func (rp RetentionPolicy) AsSimpleRetentionPolicy() (*SimpleRetentionPolicy, bool)
AsSimpleRetentionPolicy is the BasicRetentionPolicy implementation for RetentionPolicy.
func (rp RetentionPolicy) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for RetentionPolicy.
RetentionPolicyType enumerates the values for retention policy type.
type RetentionPolicyType string
const ( // RetentionPolicyTypeLongTermRetentionPolicy ... RetentionPolicyTypeLongTermRetentionPolicy RetentionPolicyType = "LongTermRetentionPolicy" // RetentionPolicyTypeRetentionPolicy ... RetentionPolicyTypeRetentionPolicy RetentionPolicyType = "RetentionPolicy" // RetentionPolicyTypeSimpleRetentionPolicy ... RetentionPolicyTypeSimpleRetentionPolicy RetentionPolicyType = "SimpleRetentionPolicy" )
func PossibleRetentionPolicyTypeValues() []RetentionPolicyType
PossibleRetentionPolicyTypeValues returns an array of possible values for the RetentionPolicyType const type.
RetentionScheduleFormat enumerates the values for retention schedule format.
type RetentionScheduleFormat string
const ( // RetentionScheduleFormatDaily ... RetentionScheduleFormatDaily RetentionScheduleFormat = "Daily" // RetentionScheduleFormatInvalid ... RetentionScheduleFormatInvalid RetentionScheduleFormat = "Invalid" // RetentionScheduleFormatWeekly ... RetentionScheduleFormatWeekly RetentionScheduleFormat = "Weekly" )
func PossibleRetentionScheduleFormatValues() []RetentionScheduleFormat
PossibleRetentionScheduleFormatValues returns an array of possible values for the RetentionScheduleFormat const type.
SchedulePolicy the base class for backup schedules.
type SchedulePolicy struct { // SchedulePolicyType - Possible values include: 'SchedulePolicyTypeSchedulePolicy', 'SchedulePolicyTypeLongTermSchedulePolicy', 'SchedulePolicyTypeSimpleSchedulePolicy' SchedulePolicyType SchedulePolicyType `json:"schedulePolicyType,omitempty"` }
func (sp SchedulePolicy) AsBasicSchedulePolicy() (BasicSchedulePolicy, bool)
AsBasicSchedulePolicy is the BasicSchedulePolicy implementation for SchedulePolicy.
func (sp SchedulePolicy) AsLongTermSchedulePolicy() (*LongTermSchedulePolicy, bool)
AsLongTermSchedulePolicy is the BasicSchedulePolicy implementation for SchedulePolicy.
func (sp SchedulePolicy) AsSchedulePolicy() (*SchedulePolicy, bool)
AsSchedulePolicy is the BasicSchedulePolicy implementation for SchedulePolicy.
func (sp SchedulePolicy) AsSimpleSchedulePolicy() (*SimpleSchedulePolicy, bool)
AsSimpleSchedulePolicy is the BasicSchedulePolicy implementation for SchedulePolicy.
func (sp SchedulePolicy) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SchedulePolicy.
SchedulePolicyType enumerates the values for schedule policy type.
type SchedulePolicyType string
const ( // SchedulePolicyTypeLongTermSchedulePolicy ... SchedulePolicyTypeLongTermSchedulePolicy SchedulePolicyType = "LongTermSchedulePolicy" // SchedulePolicyTypeSchedulePolicy ... SchedulePolicyTypeSchedulePolicy SchedulePolicyType = "SchedulePolicy" // SchedulePolicyTypeSimpleSchedulePolicy ... SchedulePolicyTypeSimpleSchedulePolicy SchedulePolicyType = "SimpleSchedulePolicy" )
func PossibleSchedulePolicyTypeValues() []SchedulePolicyType
PossibleSchedulePolicyTypeValues returns an array of possible values for the SchedulePolicyType const type.
ScheduleRunType enumerates the values for schedule run type.
type ScheduleRunType string
const ( // ScheduleRunTypeDaily ... ScheduleRunTypeDaily ScheduleRunType = "Daily" // ScheduleRunTypeInvalid ... ScheduleRunTypeInvalid ScheduleRunType = "Invalid" // ScheduleRunTypeWeekly ... ScheduleRunTypeWeekly ScheduleRunType = "Weekly" )
func PossibleScheduleRunTypeValues() []ScheduleRunType
PossibleScheduleRunTypeValues returns an array of possible values for the ScheduleRunType const type.
SimpleRetentionPolicy simple policy retention.
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"` }
func (srp SimpleRetentionPolicy) AsBasicRetentionPolicy() (BasicRetentionPolicy, bool)
AsBasicRetentionPolicy is the BasicRetentionPolicy implementation for SimpleRetentionPolicy.
func (srp SimpleRetentionPolicy) AsLongTermRetentionPolicy() (*LongTermRetentionPolicy, bool)
AsLongTermRetentionPolicy is the BasicRetentionPolicy implementation for SimpleRetentionPolicy.
func (srp SimpleRetentionPolicy) AsRetentionPolicy() (*RetentionPolicy, bool)
AsRetentionPolicy is the BasicRetentionPolicy implementation for SimpleRetentionPolicy.
func (srp SimpleRetentionPolicy) AsSimpleRetentionPolicy() (*SimpleRetentionPolicy, bool)
AsSimpleRetentionPolicy is the BasicRetentionPolicy implementation for SimpleRetentionPolicy.
func (srp SimpleRetentionPolicy) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SimpleRetentionPolicy.
SimpleSchedulePolicy simple policy schedule.
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"` }
func (ssp SimpleSchedulePolicy) AsBasicSchedulePolicy() (BasicSchedulePolicy, bool)
AsBasicSchedulePolicy is the BasicSchedulePolicy implementation for SimpleSchedulePolicy.
func (ssp SimpleSchedulePolicy) AsLongTermSchedulePolicy() (*LongTermSchedulePolicy, bool)
AsLongTermSchedulePolicy is the BasicSchedulePolicy implementation for SimpleSchedulePolicy.
func (ssp SimpleSchedulePolicy) AsSchedulePolicy() (*SchedulePolicy, bool)
AsSchedulePolicy is the BasicSchedulePolicy implementation for SimpleSchedulePolicy.
func (ssp SimpleSchedulePolicy) AsSimpleSchedulePolicy() (*SimpleSchedulePolicy, bool)
AsSimpleSchedulePolicy is the BasicSchedulePolicy implementation for SimpleSchedulePolicy.
func (ssp SimpleSchedulePolicy) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SimpleSchedulePolicy.
WeekOfMonth enumerates the values for week of month.
type WeekOfMonth string
const ( // First ... First WeekOfMonth = "First" // Fourth ... Fourth WeekOfMonth = "Fourth" // Last ... Last WeekOfMonth = "Last" // Second ... Second WeekOfMonth = "Second" // Third ... Third WeekOfMonth = "Third" )
func PossibleWeekOfMonthValues() []WeekOfMonth
PossibleWeekOfMonthValues returns an array of possible values for the WeekOfMonth const type.
WeeklyRetentionFormat weekly retention format.
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"` }
WeeklyRetentionSchedule weekly retention schedule.
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"` }
WorkloadProtectableItem the base class for backup item. Workload-specific backup items are derived from this class.
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"` }
func (wpi WorkloadProtectableItem) AsAzureIaaSClassicComputeVMProtectableItem() (*AzureIaaSClassicComputeVMProtectableItem, bool)
AsAzureIaaSClassicComputeVMProtectableItem is the BasicWorkloadProtectableItem implementation for WorkloadProtectableItem.
func (wpi WorkloadProtectableItem) AsAzureIaaSComputeVMProtectableItem() (*AzureIaaSComputeVMProtectableItem, bool)
AsAzureIaaSComputeVMProtectableItem is the BasicWorkloadProtectableItem implementation for WorkloadProtectableItem.
func (wpi WorkloadProtectableItem) AsBasicIaaSVMProtectableItem() (BasicIaaSVMProtectableItem, bool)
AsBasicIaaSVMProtectableItem is the BasicWorkloadProtectableItem implementation for WorkloadProtectableItem.
func (wpi WorkloadProtectableItem) AsBasicWorkloadProtectableItem() (BasicWorkloadProtectableItem, bool)
AsBasicWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for WorkloadProtectableItem.
func (wpi WorkloadProtectableItem) AsIaaSVMProtectableItem() (*IaaSVMProtectableItem, bool)
AsIaaSVMProtectableItem is the BasicWorkloadProtectableItem implementation for WorkloadProtectableItem.
func (wpi WorkloadProtectableItem) AsWorkloadProtectableItem() (*WorkloadProtectableItem, bool)
AsWorkloadProtectableItem is the BasicWorkloadProtectableItem implementation for WorkloadProtectableItem.
func (wpi WorkloadProtectableItem) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for WorkloadProtectableItem.
WorkloadProtectableItemResource the base class for the backup item. Workload-specific backup items are derived from this class.
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"` }
func (wpir WorkloadProtectableItemResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for WorkloadProtectableItemResource.
func (wpir *WorkloadProtectableItemResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for WorkloadProtectableItemResource struct.
WorkloadProtectableItemResourceList the list of WorkloadProtectableItem resources.
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"` }
func (wpirl WorkloadProtectableItemResourceList) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
WorkloadProtectableItemResourceListIterator provides access to a complete listing of WorkloadProtectableItemResource values.
type WorkloadProtectableItemResourceListIterator struct {
// contains filtered or unexported fields
}
func NewWorkloadProtectableItemResourceListIterator(page WorkloadProtectableItemResourceListPage) WorkloadProtectableItemResourceListIterator
Creates a new instance of the WorkloadProtectableItemResourceListIterator type.
func (iter *WorkloadProtectableItemResourceListIterator) 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 (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 (iter WorkloadProtectableItemResourceListIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter WorkloadProtectableItemResourceListIterator) Response() WorkloadProtectableItemResourceList
Response returns the raw server response from the last page request.
func (iter WorkloadProtectableItemResourceListIterator) Value() WorkloadProtectableItemResource
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
WorkloadProtectableItemResourceListPage contains a page of WorkloadProtectableItemResource values.
type WorkloadProtectableItemResourceListPage struct {
// contains filtered or unexported fields
}
func NewWorkloadProtectableItemResourceListPage(cur WorkloadProtectableItemResourceList, getNextPage func(context.Context, WorkloadProtectableItemResourceList) (WorkloadProtectableItemResourceList, error)) WorkloadProtectableItemResourceListPage
Creates a new instance of the WorkloadProtectableItemResourceListPage type.
func (page *WorkloadProtectableItemResourceListPage) 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 (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 (page WorkloadProtectableItemResourceListPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page WorkloadProtectableItemResourceListPage) Response() WorkloadProtectableItemResourceList
Response returns the raw server response from the last page request.
func (page WorkloadProtectableItemResourceListPage) Values() []WorkloadProtectableItemResource
Values returns the slice of values for the current page or nil if there are no values.
WorkloadType enumerates the values for workload type.
type WorkloadType string
const ( // WorkloadTypeAzureSQLDb ... WorkloadTypeAzureSQLDb WorkloadType = "AzureSqlDb" // WorkloadTypeDPMUnknown ... WorkloadTypeDPMUnknown WorkloadType = "DPMUnknown" // WorkloadTypeExchange ... WorkloadTypeExchange WorkloadType = "Exchange" // WorkloadTypeFileFolder ... WorkloadTypeFileFolder WorkloadType = "FileFolder" // WorkloadTypeInvalid ... WorkloadTypeInvalid WorkloadType = "Invalid" // WorkloadTypeSharepoint ... WorkloadType = "Sharepoint" // WorkloadTypeSQLDB ... WorkloadTypeSQLDB WorkloadType = "SQLDB" // WorkloadTypeVM ... WorkloadTypeVM WorkloadType = "VM" )
func PossibleWorkloadTypeValues() []WorkloadType
PossibleWorkloadTypeValues returns an array of possible values for the WorkloadType const type.
YearlyRetentionSchedule yearly retention schedule.
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"` }