Documentation ¶
Index ¶
- func PossibleValuesForBackupType() []string
- func ValidateProtectedItemID(input interface{}, key string) (warnings []string, errors []error)
- type AzureFileShareBackupRequest
- type AzureWorkloadBackupRequest
- type BackupRequest
- type BackupRequestResource
- type BackupType
- type BackupsClient
- type BaseBackupRequestImpl
- type IaasVMBackupRequest
- type ProtectedItemId
- type RawBackupRequestImpl
- type TriggerOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForBackupType ¶
func PossibleValuesForBackupType() []string
func ValidateProtectedItemID ¶
ValidateProtectedItemID checks that 'input' can be parsed as a Protected Item ID
Types ¶
type AzureFileShareBackupRequest ¶
type AzureFileShareBackupRequest struct {}
func (AzureFileShareBackupRequest) BackupRequest ¶
func (s AzureFileShareBackupRequest) BackupRequest() BaseBackupRequestImpl
func (AzureFileShareBackupRequest) MarshalJSON ¶
func (s AzureFileShareBackupRequest) MarshalJSON() ([]byte, error)
type AzureWorkloadBackupRequest ¶
type AzureWorkloadBackupRequest struct { BackupType *BackupType `json:"backupType,omitempty"` EnableCompression *bool `json:"enableCompression,omitempty"` RecoveryPointExpiryTimeInUTC *string `json:"recoveryPointExpiryTimeInUTC,omitempty"` ObjectType string `json:"objectType"` }
func (AzureWorkloadBackupRequest) BackupRequest ¶
func (s AzureWorkloadBackupRequest) BackupRequest() BaseBackupRequestImpl
func (AzureWorkloadBackupRequest) MarshalJSON ¶
func (s AzureWorkloadBackupRequest) MarshalJSON() ([]byte, error)
type BackupRequest ¶
type BackupRequest interface {
BackupRequest() BaseBackupRequestImpl
}
func UnmarshalBackupRequestImplementation ¶
func UnmarshalBackupRequestImplementation(input []byte) (BackupRequest, error)
type BackupRequestResource ¶
type BackupRequestResource struct { ETag *string `json:"eTag,omitempty"` Id *string `json:"id,omitempty"` Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` Properties BackupRequest `json:"properties"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
func (*BackupRequestResource) UnmarshalJSON ¶
func (s *BackupRequestResource) UnmarshalJSON(bytes []byte) error
type BackupType ¶
type BackupType string
const ( BackupTypeCopyOnlyFull BackupType = "CopyOnlyFull" BackupTypeDifferential BackupType = "Differential" BackupTypeFull BackupType = "Full" BackupTypeIncremental BackupType = "Incremental" BackupTypeInvalid BackupType = "Invalid" BackupTypeLog BackupType = "Log" BackupTypeSnapshotCopyOnlyFull BackupType = "SnapshotCopyOnlyFull" BackupTypeSnapshotFull BackupType = "SnapshotFull" )
type BackupsClient ¶
func NewBackupsClientWithBaseURI ¶
func NewBackupsClientWithBaseURI(endpoint string) BackupsClient
func (BackupsClient) Trigger ¶
func (c BackupsClient) Trigger(ctx context.Context, id ProtectedItemId, input BackupRequestResource) (result TriggerOperationResponse, err error)
Trigger ...
type BaseBackupRequestImpl ¶
type BaseBackupRequestImpl struct {
ObjectType string `json:"objectType"`
}
func (BaseBackupRequestImpl) BackupRequest ¶
func (s BaseBackupRequestImpl) BackupRequest() BaseBackupRequestImpl
type IaasVMBackupRequest ¶
type IaasVMBackupRequest struct { RecoveryPointExpiryTimeInUTC *string `json:"recoveryPointExpiryTimeInUTC,omitempty"` ObjectType string `json:"objectType"` }
func (IaasVMBackupRequest) BackupRequest ¶
func (s IaasVMBackupRequest) BackupRequest() BaseBackupRequestImpl
func (IaasVMBackupRequest) MarshalJSON ¶
func (s IaasVMBackupRequest) MarshalJSON() ([]byte, error)
type ProtectedItemId ¶
type ProtectedItemId struct { SubscriptionId string ResourceGroupName string VaultName string BackupFabricName string ProtectionContainerName string ProtectedItemName string }
ProtectedItemId is a struct representing the Resource ID for a Protected Item
func NewProtectedItemID ¶
func NewProtectedItemID(subscriptionId string, resourceGroupName string, vaultName string, backupFabricName string, protectionContainerName string, protectedItemName string) ProtectedItemId
NewProtectedItemID returns a new ProtectedItemId struct
func ParseProtectedItemID ¶
func ParseProtectedItemID(input string) (*ProtectedItemId, error)
ParseProtectedItemID parses 'input' into a ProtectedItemId
func ParseProtectedItemIDInsensitively ¶
func ParseProtectedItemIDInsensitively(input string) (*ProtectedItemId, error)
ParseProtectedItemIDInsensitively parses 'input' case-insensitively into a ProtectedItemId note: this method should only be used for API response data and not user input
func (*ProtectedItemId) FromParseResult ¶
func (id *ProtectedItemId) FromParseResult(input resourceids.ParseResult) error
func (ProtectedItemId) ID ¶
func (id ProtectedItemId) ID() string
ID returns the formatted Protected Item ID
func (ProtectedItemId) Segments ¶
func (id ProtectedItemId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Protected Item ID
func (ProtectedItemId) String ¶
func (id ProtectedItemId) String() string
String returns a human-readable description of this Protected Item ID
type RawBackupRequestImpl ¶
type RawBackupRequestImpl struct { Type string Values map[string]interface{} // contains filtered or unexported fields }
RawBackupRequestImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).
func (RawBackupRequestImpl) BackupRequest ¶
func (s RawBackupRequestImpl) BackupRequest() BaseBackupRequestImpl