backupinstances

package
v0.20230204.1123804 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 License: MPL-2.0 Imports: 11 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances Documentation

The backupinstances SDK allows for interaction with the Azure Resource Manager Service dataprotection (API Version 2022-04-01).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances"

Client Initialization

client := backupinstances.NewBackupInstancesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: BackupInstancesClient.AdhocBackup

ctx := context.TODO()
id := backupinstances.NewBackupInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "backupVaultValue", "backupInstanceValue")

payload := backupinstances.TriggerBackupRequest{
	// ...
}


if err := client.AdhocBackupThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: BackupInstancesClient.CreateOrUpdate

ctx := context.TODO()
id := backupinstances.NewBackupInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "backupVaultValue", "backupInstanceValue")

payload := backupinstances.BackupInstanceResource{
	// ...
}


if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: BackupInstancesClient.Delete

ctx := context.TODO()
id := backupinstances.NewBackupInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "backupVaultValue", "backupInstanceValue")

if err := client.DeleteThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: BackupInstancesClient.Get

ctx := context.TODO()
id := backupinstances.NewBackupInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "backupVaultValue", "backupInstanceValue")

read, err := client.Get(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: BackupInstancesClient.List

ctx := context.TODO()
id := backupinstances.NewBackupVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "backupVaultValue")

// alternatively `client.List(ctx, id)` can be used to do batched pagination
items, err := client.ListComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: BackupInstancesClient.ResumeBackups

ctx := context.TODO()
id := backupinstances.NewBackupInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "backupVaultValue", "backupInstanceValue")

if err := client.ResumeBackupsThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: BackupInstancesClient.ResumeProtection

ctx := context.TODO()
id := backupinstances.NewBackupInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "backupVaultValue", "backupInstanceValue")

if err := client.ResumeProtectionThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: BackupInstancesClient.StopProtection

ctx := context.TODO()
id := backupinstances.NewBackupInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "backupVaultValue", "backupInstanceValue")

if err := client.StopProtectionThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: BackupInstancesClient.SuspendBackups

ctx := context.TODO()
id := backupinstances.NewBackupInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "backupVaultValue", "backupInstanceValue")

if err := client.SuspendBackupsThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: BackupInstancesClient.SyncBackupInstance

ctx := context.TODO()
id := backupinstances.NewBackupInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "backupVaultValue", "backupInstanceValue")

payload := backupinstances.SyncBackupInstanceRequest{
	// ...
}


if err := client.SyncBackupInstanceThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: BackupInstancesClient.TriggerRehydrate

ctx := context.TODO()
id := backupinstances.NewBackupInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "backupVaultValue", "backupInstanceValue")

payload := backupinstances.AzureBackupRehydrationRequest{
	// ...
}


if err := client.TriggerRehydrateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: BackupInstancesClient.TriggerRestore

ctx := context.TODO()
id := backupinstances.NewBackupInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "backupVaultValue", "backupInstanceValue")

payload := backupinstances.AzureBackupRestoreRequest{
	// ...
}


if err := client.TriggerRestoreThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: BackupInstancesClient.ValidateForBackup

ctx := context.TODO()
id := backupinstances.NewBackupVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "backupVaultValue")

payload := backupinstances.ValidateForBackupRequest{
	// ...
}


if err := client.ValidateForBackupThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: BackupInstancesClient.ValidateForRestore

ctx := context.TODO()
id := backupinstances.NewBackupInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "backupVaultValue", "backupInstanceValue")

payload := backupinstances.ValidateRestoreRequestObject{
	// ...
}


if err := client.ValidateForRestoreThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForCurrentProtectionState

func PossibleValuesForCurrentProtectionState() []string

func PossibleValuesForDataStoreTypes

func PossibleValuesForDataStoreTypes() []string

func PossibleValuesForRecoveryOption

func PossibleValuesForRecoveryOption() []string

func PossibleValuesForRehydrationPriority

func PossibleValuesForRehydrationPriority() []string

func PossibleValuesForRestoreTargetLocationType

func PossibleValuesForRestoreTargetLocationType() []string

func PossibleValuesForSecretStoreType

func PossibleValuesForSecretStoreType() []string

func PossibleValuesForSourceDataStoreType

func PossibleValuesForSourceDataStoreType() []string

func PossibleValuesForStatus

func PossibleValuesForStatus() []string

func PossibleValuesForSyncType

func PossibleValuesForSyncType() []string

func PossibleValuesForValidationType

func PossibleValuesForValidationType() []string

func ValidateBackupInstanceID

func ValidateBackupInstanceID(input interface{}, key string) (warnings []string, errors []error)

ValidateBackupInstanceID checks that 'input' can be parsed as a Backup Instance ID

func ValidateBackupVaultID

func ValidateBackupVaultID(input interface{}, key string) (warnings []string, errors []error)

ValidateBackupVaultID checks that 'input' can be parsed as a Backup Vault ID

Types

type AdHocBackupRuleOptions

type AdHocBackupRuleOptions struct {
	RuleName      string                   `json:"ruleName"`
	TriggerOption AdhocBackupTriggerOption `json:"triggerOption"`
}

type AdhocBackupOperationResponse

type AdhocBackupOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type AdhocBackupTriggerOption

type AdhocBackupTriggerOption struct {
	RetentionTagOverride *string `json:"retentionTagOverride,omitempty"`
}

type AuthCredentials

type AuthCredentials interface {
}

type AzureBackupRecoveryPointBasedRestoreRequest

type AzureBackupRecoveryPointBasedRestoreRequest struct {
	RecoveryPointId string `json:"recoveryPointId"`

	// Fields inherited from AzureBackupRestoreRequest
	RestoreTargetInfo   RestoreTargetInfoBase `json:"restoreTargetInfo"`
	SourceDataStoreType SourceDataStoreType   `json:"sourceDataStoreType"`
	SourceResourceId    *string               `json:"sourceResourceId,omitempty"`
}

func (AzureBackupRecoveryPointBasedRestoreRequest) MarshalJSON

func (*AzureBackupRecoveryPointBasedRestoreRequest) UnmarshalJSON added in v0.20220704.1074157

func (s *AzureBackupRecoveryPointBasedRestoreRequest) UnmarshalJSON(bytes []byte) error

type AzureBackupRecoveryTimeBasedRestoreRequest

type AzureBackupRecoveryTimeBasedRestoreRequest struct {
	RecoveryPointTime string `json:"recoveryPointTime"`

	// Fields inherited from AzureBackupRestoreRequest
	RestoreTargetInfo   RestoreTargetInfoBase `json:"restoreTargetInfo"`
	SourceDataStoreType SourceDataStoreType   `json:"sourceDataStoreType"`
	SourceResourceId    *string               `json:"sourceResourceId,omitempty"`
}

func (AzureBackupRecoveryTimeBasedRestoreRequest) MarshalJSON

func (*AzureBackupRecoveryTimeBasedRestoreRequest) UnmarshalJSON added in v0.20220704.1074157

func (s *AzureBackupRecoveryTimeBasedRestoreRequest) UnmarshalJSON(bytes []byte) error

type AzureBackupRehydrationRequest

type AzureBackupRehydrationRequest struct {
	RecoveryPointId              string               `json:"recoveryPointId"`
	RehydrationPriority          *RehydrationPriority `json:"rehydrationPriority,omitempty"`
	RehydrationRetentionDuration string               `json:"rehydrationRetentionDuration"`
}

type AzureBackupRestoreRequest

type AzureBackupRestoreRequest interface {
}

type AzureBackupRestoreWithRehydrationRequest added in v0.20221116.1175352

type AzureBackupRestoreWithRehydrationRequest struct {
	RecoveryPointId              string              `json:"recoveryPointId"`
	RehydrationPriority          RehydrationPriority `json:"rehydrationPriority"`
	RehydrationRetentionDuration string              `json:"rehydrationRetentionDuration"`

	// Fields inherited from AzureBackupRestoreRequest
	RestoreTargetInfo   RestoreTargetInfoBase `json:"restoreTargetInfo"`
	SourceDataStoreType SourceDataStoreType   `json:"sourceDataStoreType"`
	SourceResourceId    *string               `json:"sourceResourceId,omitempty"`
}

func (AzureBackupRestoreWithRehydrationRequest) MarshalJSON added in v0.20221116.1175352

func (*AzureBackupRestoreWithRehydrationRequest) UnmarshalJSON added in v0.20221116.1175352

func (s *AzureBackupRestoreWithRehydrationRequest) UnmarshalJSON(bytes []byte) error

type AzureOperationalStoreParameters

type AzureOperationalStoreParameters struct {
	ResourceGroupId *string `json:"resourceGroupId,omitempty"`

	// Fields inherited from DataStoreParameters
	DataStoreType DataStoreTypes `json:"dataStoreType"`
}

func (AzureOperationalStoreParameters) MarshalJSON

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

type BackupInstance

type BackupInstance struct {
	CurrentProtectionState    *CurrentProtectionState  `json:"currentProtectionState,omitempty"`
	DataSourceInfo            Datasource               `json:"dataSourceInfo"`
	DataSourceSetInfo         *DatasourceSet           `json:"dataSourceSetInfo,omitempty"`
	DatasourceAuthCredentials AuthCredentials          `json:"datasourceAuthCredentials"`
	FriendlyName              *string                  `json:"friendlyName,omitempty"`
	ObjectType                string                   `json:"objectType"`
	PolicyInfo                PolicyInfo               `json:"policyInfo"`
	ProtectionErrorDetails    *UserFacingError         `json:"protectionErrorDetails,omitempty"`
	ProtectionStatus          *ProtectionStatusDetails `json:"protectionStatus,omitempty"`
	ProvisioningState         *string                  `json:"provisioningState,omitempty"`
	ValidationType            *ValidationType          `json:"validationType,omitempty"`
}

func (*BackupInstance) UnmarshalJSON

func (s *BackupInstance) UnmarshalJSON(bytes []byte) error

type BackupInstanceId

type BackupInstanceId struct {
	SubscriptionId     string
	ResourceGroupName  string
	BackupVaultName    string
	BackupInstanceName string
}

BackupInstanceId is a struct representing the Resource ID for a Backup Instance

func NewBackupInstanceID

func NewBackupInstanceID(subscriptionId string, resourceGroupName string, backupVaultName string, backupInstanceName string) BackupInstanceId

NewBackupInstanceID returns a new BackupInstanceId struct

func ParseBackupInstanceID

func ParseBackupInstanceID(input string) (*BackupInstanceId, error)

ParseBackupInstanceID parses 'input' into a BackupInstanceId

func ParseBackupInstanceIDInsensitively

func ParseBackupInstanceIDInsensitively(input string) (*BackupInstanceId, error)

ParseBackupInstanceIDInsensitively parses 'input' case-insensitively into a BackupInstanceId note: this method should only be used for API response data and not user input

func (BackupInstanceId) ID

func (id BackupInstanceId) ID() string

ID returns the formatted Backup Instance ID

func (BackupInstanceId) Segments

func (id BackupInstanceId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Backup Instance ID

func (BackupInstanceId) String

func (id BackupInstanceId) String() string

String returns a human-readable description of this Backup Instance ID

type BackupInstanceResource

type BackupInstanceResource struct {
	Id         *string                `json:"id,omitempty"`
	Name       *string                `json:"name,omitempty"`
	Properties *BackupInstance        `json:"properties,omitempty"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

type BackupInstanceResourceOperationPredicate

type BackupInstanceResourceOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (BackupInstanceResourceOperationPredicate) Matches

type BackupInstancesClient

type BackupInstancesClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewBackupInstancesClientWithBaseURI

func NewBackupInstancesClientWithBaseURI(endpoint string) BackupInstancesClient

func (BackupInstancesClient) AdhocBackup

AdhocBackup ...

func (BackupInstancesClient) AdhocBackupThenPoll

func (c BackupInstancesClient) AdhocBackupThenPoll(ctx context.Context, id BackupInstanceId, input TriggerBackupRequest) error

AdhocBackupThenPoll performs AdhocBackup then polls until it's completed

func (BackupInstancesClient) CreateOrUpdate

CreateOrUpdate ...

func (BackupInstancesClient) CreateOrUpdateThenPoll

func (c BackupInstancesClient) CreateOrUpdateThenPoll(ctx context.Context, id BackupInstanceId, input BackupInstanceResource) error

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (BackupInstancesClient) Delete

Delete ...

func (BackupInstancesClient) DeleteThenPoll

func (c BackupInstancesClient) DeleteThenPoll(ctx context.Context, id BackupInstanceId) error

DeleteThenPoll performs Delete then polls until it's completed

func (BackupInstancesClient) Get

Get ...

func (BackupInstancesClient) List

List ...

func (BackupInstancesClient) ListComplete

ListComplete retrieves all of the results into a single object

func (BackupInstancesClient) ListCompleteMatchingPredicate

func (c BackupInstancesClient) ListCompleteMatchingPredicate(ctx context.Context, id BackupVaultId, predicate BackupInstanceResourceOperationPredicate) (resp ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (BackupInstancesClient) ResumeBackups

ResumeBackups ...

func (BackupInstancesClient) ResumeBackupsThenPoll

func (c BackupInstancesClient) ResumeBackupsThenPoll(ctx context.Context, id BackupInstanceId) error

ResumeBackupsThenPoll performs ResumeBackups then polls until it's completed

func (BackupInstancesClient) ResumeProtection

ResumeProtection ...

func (BackupInstancesClient) ResumeProtectionThenPoll

func (c BackupInstancesClient) ResumeProtectionThenPoll(ctx context.Context, id BackupInstanceId) error

ResumeProtectionThenPoll performs ResumeProtection then polls until it's completed

func (BackupInstancesClient) StopProtection

StopProtection ...

func (BackupInstancesClient) StopProtectionThenPoll

func (c BackupInstancesClient) StopProtectionThenPoll(ctx context.Context, id BackupInstanceId) error

StopProtectionThenPoll performs StopProtection then polls until it's completed

func (BackupInstancesClient) SuspendBackups

SuspendBackups ...

func (BackupInstancesClient) SuspendBackupsThenPoll

func (c BackupInstancesClient) SuspendBackupsThenPoll(ctx context.Context, id BackupInstanceId) error

SuspendBackupsThenPoll performs SuspendBackups then polls until it's completed

func (BackupInstancesClient) SyncBackupInstance

SyncBackupInstance ...

func (BackupInstancesClient) SyncBackupInstanceThenPoll

func (c BackupInstancesClient) SyncBackupInstanceThenPoll(ctx context.Context, id BackupInstanceId, input SyncBackupInstanceRequest) error

SyncBackupInstanceThenPoll performs SyncBackupInstance then polls until it's completed

func (BackupInstancesClient) TriggerRehydrate

TriggerRehydrate ...

func (BackupInstancesClient) TriggerRehydrateThenPoll

func (c BackupInstancesClient) TriggerRehydrateThenPoll(ctx context.Context, id BackupInstanceId, input AzureBackupRehydrationRequest) error

TriggerRehydrateThenPoll performs TriggerRehydrate then polls until it's completed

func (BackupInstancesClient) TriggerRestore

TriggerRestore ...

func (BackupInstancesClient) TriggerRestoreThenPoll

func (c BackupInstancesClient) TriggerRestoreThenPoll(ctx context.Context, id BackupInstanceId, input AzureBackupRestoreRequest) error

TriggerRestoreThenPoll performs TriggerRestore then polls until it's completed

func (BackupInstancesClient) ValidateForBackup

ValidateForBackup ...

func (BackupInstancesClient) ValidateForBackupThenPoll

func (c BackupInstancesClient) ValidateForBackupThenPoll(ctx context.Context, id BackupVaultId, input ValidateForBackupRequest) error

ValidateForBackupThenPoll performs ValidateForBackup then polls until it's completed

func (BackupInstancesClient) ValidateForRestore

ValidateForRestore ...

func (BackupInstancesClient) ValidateForRestoreThenPoll

func (c BackupInstancesClient) ValidateForRestoreThenPoll(ctx context.Context, id BackupInstanceId, input ValidateRestoreRequestObject) error

ValidateForRestoreThenPoll performs ValidateForRestore then polls until it's completed

type BackupVaultId

type BackupVaultId struct {
	SubscriptionId    string
	ResourceGroupName string
	BackupVaultName   string
}

BackupVaultId is a struct representing the Resource ID for a Backup Vault

func NewBackupVaultID

func NewBackupVaultID(subscriptionId string, resourceGroupName string, backupVaultName string) BackupVaultId

NewBackupVaultID returns a new BackupVaultId struct

func ParseBackupVaultID

func ParseBackupVaultID(input string) (*BackupVaultId, error)

ParseBackupVaultID parses 'input' into a BackupVaultId

func ParseBackupVaultIDInsensitively

func ParseBackupVaultIDInsensitively(input string) (*BackupVaultId, error)

ParseBackupVaultIDInsensitively parses 'input' case-insensitively into a BackupVaultId note: this method should only be used for API response data and not user input

func (BackupVaultId) ID

func (id BackupVaultId) ID() string

ID returns the formatted Backup Vault ID

func (BackupVaultId) Segments

func (id BackupVaultId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Backup Vault ID

func (BackupVaultId) String

func (id BackupVaultId) String() string

String returns a human-readable description of this Backup Vault ID

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type CurrentProtectionState

type CurrentProtectionState string
const (
	CurrentProtectionStateBackupSchedulesSuspended    CurrentProtectionState = "BackupSchedulesSuspended"
	CurrentProtectionStateConfiguringProtection       CurrentProtectionState = "ConfiguringProtection"
	CurrentProtectionStateConfiguringProtectionFailed CurrentProtectionState = "ConfiguringProtectionFailed"
	CurrentProtectionStateInvalid                     CurrentProtectionState = "Invalid"
	CurrentProtectionStateNotProtected                CurrentProtectionState = "NotProtected"
	CurrentProtectionStateProtectionConfigured        CurrentProtectionState = "ProtectionConfigured"
	CurrentProtectionStateProtectionError             CurrentProtectionState = "ProtectionError"
	CurrentProtectionStateProtectionStopped           CurrentProtectionState = "ProtectionStopped"
	CurrentProtectionStateRetentionSchedulesSuspended CurrentProtectionState = "RetentionSchedulesSuspended"
	CurrentProtectionStateSoftDeleted                 CurrentProtectionState = "SoftDeleted"
	CurrentProtectionStateSoftDeleting                CurrentProtectionState = "SoftDeleting"
	CurrentProtectionStateUpdatingProtection          CurrentProtectionState = "UpdatingProtection"
)

type DataStoreParameters

type DataStoreParameters interface {
}

type DataStoreTypes

type DataStoreTypes string
const (
	DataStoreTypesArchiveStore     DataStoreTypes = "ArchiveStore"
	DataStoreTypesOperationalStore DataStoreTypes = "OperationalStore"
	DataStoreTypesVaultStore       DataStoreTypes = "VaultStore"
)

type Datasource

type Datasource struct {
	DatasourceType   *string `json:"datasourceType,omitempty"`
	ObjectType       *string `json:"objectType,omitempty"`
	ResourceID       string  `json:"resourceID"`
	ResourceLocation *string `json:"resourceLocation,omitempty"`
	ResourceName     *string `json:"resourceName,omitempty"`
	ResourceType     *string `json:"resourceType,omitempty"`
	ResourceUri      *string `json:"resourceUri,omitempty"`
}

type DatasourceSet

type DatasourceSet struct {
	DatasourceType   *string `json:"datasourceType,omitempty"`
	ObjectType       *string `json:"objectType,omitempty"`
	ResourceID       string  `json:"resourceID"`
	ResourceLocation *string `json:"resourceLocation,omitempty"`
	ResourceName     *string `json:"resourceName,omitempty"`
	ResourceType     *string `json:"resourceType,omitempty"`
	ResourceUri      *string `json:"resourceUri,omitempty"`
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	Model        *BackupInstanceResource
}

type InnerError

type InnerError struct {
	AdditionalInfo     *map[string]string `json:"additionalInfo,omitempty"`
	Code               *string            `json:"code,omitempty"`
	EmbeddedInnerError *InnerError        `json:"embeddedInnerError,omitempty"`
}

type ItemLevelRestoreCriteria

type ItemLevelRestoreCriteria interface {
}

type ItemLevelRestoreTargetInfo

type ItemLevelRestoreTargetInfo struct {
	DatasourceAuthCredentials AuthCredentials            `json:"datasourceAuthCredentials"`
	DatasourceInfo            Datasource                 `json:"datasourceInfo"`
	DatasourceSetInfo         *DatasourceSet             `json:"datasourceSetInfo,omitempty"`
	RestoreCriteria           []ItemLevelRestoreCriteria `json:"restoreCriteria"`

	// Fields inherited from RestoreTargetInfoBase
	RecoveryOption  RecoveryOption `json:"recoveryOption"`
	RestoreLocation *string        `json:"restoreLocation,omitempty"`
}

func (ItemLevelRestoreTargetInfo) MarshalJSON

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

func (*ItemLevelRestoreTargetInfo) UnmarshalJSON

func (s *ItemLevelRestoreTargetInfo) UnmarshalJSON(bytes []byte) error

type KubernetesPVRestoreCriteria

type KubernetesPVRestoreCriteria struct {
	Name             *string `json:"name,omitempty"`
	StorageClassName *string `json:"storageClassName,omitempty"`
}

func (KubernetesPVRestoreCriteria) MarshalJSON

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

type KubernetesStorageClassRestoreCriteria

type KubernetesStorageClassRestoreCriteria struct {
	Provisioner              *string `json:"provisioner,omitempty"`
	SelectedStorageClassName *string `json:"selectedStorageClassName,omitempty"`
}

func (KubernetesStorageClassRestoreCriteria) MarshalJSON

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

type ListCompleteResult

type ListCompleteResult struct {
	Items []BackupInstanceResource
}

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]BackupInstanceResource
	// contains filtered or unexported fields
}

func (ListOperationResponse) HasMore

func (r ListOperationResponse) HasMore() bool

func (ListOperationResponse) LoadMore

func (r ListOperationResponse) LoadMore(ctx context.Context) (resp ListOperationResponse, err error)

type OperationExtendedInfo

type OperationExtendedInfo interface {
}

type OperationJobExtendedInfo

type OperationJobExtendedInfo struct {
	JobId *string `json:"jobId,omitempty"`
}

func (OperationJobExtendedInfo) MarshalJSON

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

type PolicyInfo

type PolicyInfo struct {
	PolicyId         string            `json:"policyId"`
	PolicyParameters *PolicyParameters `json:"policyParameters,omitempty"`
	PolicyVersion    *string           `json:"policyVersion,omitempty"`
}

type PolicyParameters

type PolicyParameters struct {
	DataStoreParametersList *[]DataStoreParameters `json:"dataStoreParametersList,omitempty"`
}

func (*PolicyParameters) UnmarshalJSON

func (s *PolicyParameters) UnmarshalJSON(bytes []byte) error

type ProtectionStatusDetails

type ProtectionStatusDetails struct {
	ErrorDetails *UserFacingError `json:"errorDetails,omitempty"`
	Status       *Status          `json:"status,omitempty"`
}

type RangeBasedItemLevelRestoreCriteria

type RangeBasedItemLevelRestoreCriteria struct {
	MaxMatchingValue *string `json:"maxMatchingValue,omitempty"`
	MinMatchingValue *string `json:"minMatchingValue,omitempty"`
}

func (RangeBasedItemLevelRestoreCriteria) MarshalJSON

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

type RecoveryOption

type RecoveryOption string
const (
	RecoveryOptionFailIfExists RecoveryOption = "FailIfExists"
)

type RehydrationPriority

type RehydrationPriority string
const (
	RehydrationPriorityHigh     RehydrationPriority = "High"
	RehydrationPriorityInvalid  RehydrationPriority = "Invalid"
	RehydrationPriorityStandard RehydrationPriority = "Standard"
)

type RestoreFilesTargetInfo

type RestoreFilesTargetInfo struct {
	TargetDetails TargetDetails `json:"targetDetails"`

	// Fields inherited from RestoreTargetInfoBase
	RecoveryOption  RecoveryOption `json:"recoveryOption"`
	RestoreLocation *string        `json:"restoreLocation,omitempty"`
}

func (RestoreFilesTargetInfo) MarshalJSON

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

type RestoreTargetInfo

type RestoreTargetInfo struct {
	DatasourceAuthCredentials AuthCredentials `json:"datasourceAuthCredentials"`
	DatasourceInfo            Datasource      `json:"datasourceInfo"`
	DatasourceSetInfo         *DatasourceSet  `json:"datasourceSetInfo,omitempty"`

	// Fields inherited from RestoreTargetInfoBase
	RecoveryOption  RecoveryOption `json:"recoveryOption"`
	RestoreLocation *string        `json:"restoreLocation,omitempty"`
}

func (RestoreTargetInfo) MarshalJSON

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

func (*RestoreTargetInfo) UnmarshalJSON

func (s *RestoreTargetInfo) UnmarshalJSON(bytes []byte) error

type RestoreTargetInfoBase

type RestoreTargetInfoBase interface {
}

type RestoreTargetLocationType

type RestoreTargetLocationType string
const (
	RestoreTargetLocationTypeAzureBlobs RestoreTargetLocationType = "AzureBlobs"
	RestoreTargetLocationTypeAzureFiles RestoreTargetLocationType = "AzureFiles"
	RestoreTargetLocationTypeInvalid    RestoreTargetLocationType = "Invalid"
)

type ResumeBackupsOperationResponse

type ResumeBackupsOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type ResumeProtectionOperationResponse

type ResumeProtectionOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type SecretStoreBasedAuthCredentials

type SecretStoreBasedAuthCredentials struct {
	SecretStoreResource *SecretStoreResource `json:"secretStoreResource,omitempty"`
}

func (SecretStoreBasedAuthCredentials) MarshalJSON

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

type SecretStoreResource

type SecretStoreResource struct {
	SecretStoreType SecretStoreType `json:"secretStoreType"`
	Uri             *string         `json:"uri,omitempty"`
	Value           *string         `json:"value,omitempty"`
}

type SecretStoreType

type SecretStoreType string
const (
	SecretStoreTypeAzureKeyVault SecretStoreType = "AzureKeyVault"
	SecretStoreTypeInvalid       SecretStoreType = "Invalid"
)

type SourceDataStoreType

type SourceDataStoreType string
const (
	SourceDataStoreTypeArchiveStore  SourceDataStoreType = "ArchiveStore"
	SourceDataStoreTypeSnapshotStore SourceDataStoreType = "SnapshotStore"
	SourceDataStoreTypeVaultStore    SourceDataStoreType = "VaultStore"
)

type Status

type Status string
const (
	StatusConfiguringProtection       Status = "ConfiguringProtection"
	StatusConfiguringProtectionFailed Status = "ConfiguringProtectionFailed"
	StatusProtectionConfigured        Status = "ProtectionConfigured"
	StatusProtectionStopped           Status = "ProtectionStopped"
	StatusSoftDeleted                 Status = "SoftDeleted"
	StatusSoftDeleting                Status = "SoftDeleting"
)

type StopProtectionOperationResponse

type StopProtectionOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type SuspendBackupsOperationResponse

type SuspendBackupsOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type SyncBackupInstanceOperationResponse

type SyncBackupInstanceOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type SyncBackupInstanceRequest

type SyncBackupInstanceRequest struct {
	SyncType *SyncType `json:"syncType,omitempty"`
}

type SyncType

type SyncType string
const (
	SyncTypeDefault     SyncType = "Default"
	SyncTypeForceResync SyncType = "ForceResync"
)

type TargetDetails

type TargetDetails struct {
	FilePrefix                string                    `json:"filePrefix"`
	RestoreTargetLocationType RestoreTargetLocationType `json:"restoreTargetLocationType"`
	Url                       string                    `json:"url"`
}

type TriggerBackupRequest

type TriggerBackupRequest struct {
	BackupRuleOptions AdHocBackupRuleOptions `json:"backupRuleOptions"`
}

type TriggerRehydrateOperationResponse

type TriggerRehydrateOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type TriggerRestoreOperationResponse

type TriggerRestoreOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type UserFacingError

type UserFacingError struct {
	Code              *string            `json:"code,omitempty"`
	Details           *[]UserFacingError `json:"details,omitempty"`
	InnerError        *InnerError        `json:"innerError,omitempty"`
	IsRetryable       *bool              `json:"isRetryable,omitempty"`
	IsUserError       *bool              `json:"isUserError,omitempty"`
	Message           *string            `json:"message,omitempty"`
	Properties        *map[string]string `json:"properties,omitempty"`
	RecommendedAction *[]string          `json:"recommendedAction,omitempty"`
	Target            *string            `json:"target,omitempty"`
}

type ValidateForBackupOperationResponse

type ValidateForBackupOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type ValidateForBackupRequest

type ValidateForBackupRequest struct {
	BackupInstance BackupInstance `json:"backupInstance"`
}

type ValidateForRestoreOperationResponse

type ValidateForRestoreOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type ValidateRestoreRequestObject

type ValidateRestoreRequestObject struct {
	RestoreRequestObject AzureBackupRestoreRequest `json:"restoreRequestObject"`
}

func (*ValidateRestoreRequestObject) UnmarshalJSON

func (s *ValidateRestoreRequestObject) UnmarshalJSON(bytes []byte) error

type ValidationType

type ValidationType string
const (
	ValidationTypeDeepValidation    ValidationType = "DeepValidation"
	ValidationTypeShallowValidation ValidationType = "ShallowValidation"
)

Source Files

Jump to

Keyboard shortcuts

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