Documentation ¶
Index ¶
- func PossibleValuesForAbsoluteMarker() []string
- func PossibleValuesForDataStoreTypes() []string
- func PossibleValuesForDayOfWeek() []string
- func PossibleValuesForMonth() []string
- func PossibleValuesForWeekNumber() []string
- func ValidateBackupPoliciesID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateBackupVaultID(input interface{}, key string) (warnings []string, errors []error)
- type AbsoluteDeleteOption
- type AbsoluteMarker
- type AdhocBasedTaggingCriteria
- type AdhocBasedTriggerContext
- type AzureBackupParams
- type AzureBackupRule
- type AzureRetentionRule
- type BackupCriteria
- type BackupParameters
- type BackupPoliciesClient
- func (c BackupPoliciesClient) CreateOrUpdate(ctx context.Context, id BackupPoliciesId, input BaseBackupPolicyResource) (result CreateOrUpdateOperationResponse, err error)
- func (c BackupPoliciesClient) Delete(ctx context.Context, id BackupPoliciesId) (result DeleteOperationResponse, err error)
- func (c BackupPoliciesClient) Get(ctx context.Context, id BackupPoliciesId) (result GetOperationResponse, err error)
- func (c BackupPoliciesClient) List(ctx context.Context, id BackupVaultId) (resp ListOperationResponse, err error)
- func (c BackupPoliciesClient) ListComplete(ctx context.Context, id BackupVaultId) (ListCompleteResult, error)
- func (c BackupPoliciesClient) ListCompleteMatchingPredicate(ctx context.Context, id BackupVaultId, ...) (resp ListCompleteResult, err error)
- type BackupPoliciesId
- type BackupPolicy
- type BackupSchedule
- type BackupVaultId
- type BaseBackupPolicy
- type BaseBackupPolicyResource
- type BaseBackupPolicyResourceOperationPredicate
- type BasePolicyRule
- type CopyOnExpiryOption
- type CopyOption
- type CreateOrUpdateOperationResponse
- type CustomCopyOption
- type DataStoreInfoBase
- type DataStoreTypes
- type Day
- type DayOfWeek
- type DeleteOperationResponse
- type DeleteOption
- type GetOperationResponse
- type ImmediateCopyOption
- type ListCompleteResult
- type ListOperationResponse
- type Month
- type RetentionTag
- type ScheduleBasedBackupCriteria
- type ScheduleBasedTriggerContext
- type SourceLifeCycle
- type TaggingCriteria
- type TargetCopySetting
- type TriggerContext
- type WeekNumber
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForAbsoluteMarker ¶
func PossibleValuesForAbsoluteMarker() []string
func PossibleValuesForDataStoreTypes ¶
func PossibleValuesForDataStoreTypes() []string
func PossibleValuesForDayOfWeek ¶
func PossibleValuesForDayOfWeek() []string
func PossibleValuesForMonth ¶
func PossibleValuesForMonth() []string
func PossibleValuesForWeekNumber ¶
func PossibleValuesForWeekNumber() []string
func ValidateBackupPoliciesID ¶
ValidateBackupPoliciesID checks that 'input' can be parsed as a Backup Policies ID
func ValidateBackupVaultID ¶
ValidateBackupVaultID checks that 'input' can be parsed as a Backup Vault ID
Types ¶
type AbsoluteDeleteOption ¶
type AbsoluteDeleteOption struct { // Fields inherited from DeleteOption Duration string `json:"duration"` }
func (AbsoluteDeleteOption) MarshalJSON ¶
func (s AbsoluteDeleteOption) MarshalJSON() ([]byte, error)
type AbsoluteMarker ¶
type AbsoluteMarker string
const ( AbsoluteMarkerAllBackup AbsoluteMarker = "AllBackup" AbsoluteMarkerFirstOfDay AbsoluteMarker = "FirstOfDay" AbsoluteMarkerFirstOfMonth AbsoluteMarker = "FirstOfMonth" AbsoluteMarkerFirstOfWeek AbsoluteMarker = "FirstOfWeek" AbsoluteMarkerFirstOfYear AbsoluteMarker = "FirstOfYear" )
type AdhocBasedTaggingCriteria ¶
type AdhocBasedTaggingCriteria struct {
TagInfo *RetentionTag `json:"tagInfo,omitempty"`
}
type AdhocBasedTriggerContext ¶
type AdhocBasedTriggerContext struct {
TaggingCriteria AdhocBasedTaggingCriteria `json:"taggingCriteria"`
}
func (AdhocBasedTriggerContext) MarshalJSON ¶
func (s AdhocBasedTriggerContext) MarshalJSON() ([]byte, error)
type AzureBackupParams ¶
type AzureBackupParams struct {
BackupType string `json:"backupType"`
}
func (AzureBackupParams) MarshalJSON ¶
func (s AzureBackupParams) MarshalJSON() ([]byte, error)
type AzureBackupRule ¶
type AzureBackupRule struct { BackupParameters BackupParameters `json:"backupParameters"` DataStore DataStoreInfoBase `json:"dataStore"` Trigger TriggerContext `json:"trigger"` // Fields inherited from BasePolicyRule Name string `json:"name"` }
func (AzureBackupRule) MarshalJSON ¶
func (s AzureBackupRule) MarshalJSON() ([]byte, error)
func (*AzureBackupRule) UnmarshalJSON ¶
func (s *AzureBackupRule) UnmarshalJSON(bytes []byte) error
type AzureRetentionRule ¶
type AzureRetentionRule struct { IsDefault *bool `json:"isDefault,omitempty"` Lifecycles []SourceLifeCycle `json:"lifecycles"` // Fields inherited from BasePolicyRule Name string `json:"name"` }
func (AzureRetentionRule) MarshalJSON ¶
func (s AzureRetentionRule) MarshalJSON() ([]byte, error)
type BackupCriteria ¶
type BackupCriteria interface { }
type BackupParameters ¶
type BackupParameters interface { }
type BackupPoliciesClient ¶
type BackupPoliciesClient struct { Client autorest.Client // contains filtered or unexported fields }
func NewBackupPoliciesClientWithBaseURI ¶
func NewBackupPoliciesClientWithBaseURI(endpoint string) BackupPoliciesClient
func (BackupPoliciesClient) CreateOrUpdate ¶
func (c BackupPoliciesClient) CreateOrUpdate(ctx context.Context, id BackupPoliciesId, input BaseBackupPolicyResource) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (BackupPoliciesClient) Delete ¶
func (c BackupPoliciesClient) Delete(ctx context.Context, id BackupPoliciesId) (result DeleteOperationResponse, err error)
Delete ...
func (BackupPoliciesClient) Get ¶
func (c BackupPoliciesClient) Get(ctx context.Context, id BackupPoliciesId) (result GetOperationResponse, err error)
Get ...
func (BackupPoliciesClient) List ¶
func (c BackupPoliciesClient) List(ctx context.Context, id BackupVaultId) (resp ListOperationResponse, err error)
List ...
func (BackupPoliciesClient) ListComplete ¶
func (c BackupPoliciesClient) ListComplete(ctx context.Context, id BackupVaultId) (ListCompleteResult, error)
ListComplete retrieves all of the results into a single object
func (BackupPoliciesClient) ListCompleteMatchingPredicate ¶
func (c BackupPoliciesClient) ListCompleteMatchingPredicate(ctx context.Context, id BackupVaultId, predicate BaseBackupPolicyResourceOperationPredicate) (resp ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate
type BackupPoliciesId ¶
type BackupPoliciesId struct { SubscriptionId string ResourceGroupName string VaultName string BackupPolicyName string }
BackupPoliciesId is a struct representing the Resource ID for a Backup Policies
func NewBackupPoliciesID ¶
func NewBackupPoliciesID(subscriptionId string, resourceGroupName string, vaultName string, backupPolicyName string) BackupPoliciesId
NewBackupPoliciesID returns a new BackupPoliciesId struct
func ParseBackupPoliciesID ¶
func ParseBackupPoliciesID(input string) (*BackupPoliciesId, error)
ParseBackupPoliciesID parses 'input' into a BackupPoliciesId
func ParseBackupPoliciesIDInsensitively ¶
func ParseBackupPoliciesIDInsensitively(input string) (*BackupPoliciesId, error)
ParseBackupPoliciesIDInsensitively parses 'input' case-insensitively into a BackupPoliciesId note: this method should only be used for API response data and not user input
func (BackupPoliciesId) ID ¶
func (id BackupPoliciesId) ID() string
ID returns the formatted Backup Policies ID
func (BackupPoliciesId) Segments ¶
func (id BackupPoliciesId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Backup Policies ID
func (BackupPoliciesId) String ¶
func (id BackupPoliciesId) String() string
String returns a human-readable description of this Backup Policies ID
type BackupPolicy ¶
type BackupPolicy struct { PolicyRules []BasePolicyRule `json:"policyRules"` // Fields inherited from BaseBackupPolicy DatasourceTypes []string `json:"datasourceTypes"` }
func (BackupPolicy) MarshalJSON ¶
func (s BackupPolicy) MarshalJSON() ([]byte, error)
func (*BackupPolicy) UnmarshalJSON ¶
func (s *BackupPolicy) UnmarshalJSON(bytes []byte) error
type BackupSchedule ¶
type BackupVaultId ¶
BackupVaultId is a struct representing the Resource ID for a Backup Vault
func NewBackupVaultID ¶
func NewBackupVaultID(subscriptionId string, resourceGroupName string, vaultName 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 BaseBackupPolicy ¶
type BaseBackupPolicy interface { }
type BaseBackupPolicyResource ¶
type BaseBackupPolicyResource struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties BaseBackupPolicy `json:"properties"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
func (*BaseBackupPolicyResource) UnmarshalJSON ¶
func (s *BaseBackupPolicyResource) UnmarshalJSON(bytes []byte) error
type BaseBackupPolicyResourceOperationPredicate ¶
func (BaseBackupPolicyResourceOperationPredicate) Matches ¶
func (p BaseBackupPolicyResourceOperationPredicate) Matches(input BaseBackupPolicyResource) bool
type BasePolicyRule ¶
type BasePolicyRule interface { }
type CopyOnExpiryOption ¶
type CopyOnExpiryOption struct { }
func (CopyOnExpiryOption) MarshalJSON ¶
func (s CopyOnExpiryOption) MarshalJSON() ([]byte, error)
type CopyOption ¶
type CopyOption interface { }
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response Model *BaseBackupPolicyResource }
type CustomCopyOption ¶
type CustomCopyOption struct {
Duration *string `json:"duration,omitempty"`
}
func (CustomCopyOption) MarshalJSON ¶
func (s CustomCopyOption) MarshalJSON() ([]byte, error)
type DataStoreInfoBase ¶
type DataStoreInfoBase struct { DataStoreType DataStoreTypes `json:"dataStoreType"` ObjectType string `json:"objectType"` }
type DataStoreTypes ¶
type DataStoreTypes string
const ( DataStoreTypesArchiveStore DataStoreTypes = "ArchiveStore" DataStoreTypesOperationalStore DataStoreTypes = "OperationalStore" DataStoreTypesVaultStore DataStoreTypes = "VaultStore" )
type DeleteOperationResponse ¶
type DeleteOption ¶
type DeleteOption interface { }
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response Model *BaseBackupPolicyResource }
type ImmediateCopyOption ¶
type ImmediateCopyOption struct { }
func (ImmediateCopyOption) MarshalJSON ¶
func (s ImmediateCopyOption) MarshalJSON() ([]byte, error)
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []BaseBackupPolicyResource
}
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response Model *[]BaseBackupPolicyResource // 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 Month ¶
type Month string
const ( MonthApril Month = "April" MonthAugust Month = "August" MonthDecember Month = "December" MonthFebruary Month = "February" MonthJanuary Month = "January" MonthJuly Month = "July" MonthJune Month = "June" MonthMarch Month = "March" MonthMay Month = "May" MonthNovember Month = "November" MonthOctober Month = "October" MonthSeptember Month = "September" )
type RetentionTag ¶
type ScheduleBasedBackupCriteria ¶
type ScheduleBasedBackupCriteria struct { AbsoluteCriteria *[]AbsoluteMarker `json:"absoluteCriteria,omitempty"` DaysOfMonth *[]Day `json:"daysOfMonth,omitempty"` DaysOfTheWeek *[]DayOfWeek `json:"daysOfTheWeek,omitempty"` MonthsOfYear *[]Month `json:"monthsOfYear,omitempty"` ScheduleTimes *[]string `json:"scheduleTimes,omitempty"` WeeksOfTheMonth *[]WeekNumber `json:"weeksOfTheMonth,omitempty"` }
func (ScheduleBasedBackupCriteria) MarshalJSON ¶
func (s ScheduleBasedBackupCriteria) MarshalJSON() ([]byte, error)
type ScheduleBasedTriggerContext ¶
type ScheduleBasedTriggerContext struct { Schedule BackupSchedule `json:"schedule"` TaggingCriteria []TaggingCriteria `json:"taggingCriteria"` }
func (ScheduleBasedTriggerContext) MarshalJSON ¶
func (s ScheduleBasedTriggerContext) MarshalJSON() ([]byte, error)
type SourceLifeCycle ¶
type SourceLifeCycle struct { DeleteAfter DeleteOption `json:"deleteAfter"` SourceDataStore DataStoreInfoBase `json:"sourceDataStore"` TargetDataStoreCopySettings *[]TargetCopySetting `json:"targetDataStoreCopySettings,omitempty"` }
func (*SourceLifeCycle) UnmarshalJSON ¶
func (s *SourceLifeCycle) UnmarshalJSON(bytes []byte) error
type TaggingCriteria ¶
type TaggingCriteria struct { Criteria *[]BackupCriteria `json:"criteria,omitempty"` IsDefault bool `json:"isDefault"` TagInfo RetentionTag `json:"tagInfo"` TaggingPriority int64 `json:"taggingPriority"` }
func (*TaggingCriteria) UnmarshalJSON ¶
func (s *TaggingCriteria) UnmarshalJSON(bytes []byte) error
type TargetCopySetting ¶
type TargetCopySetting struct { CopyAfter CopyOption `json:"copyAfter"` DataStore DataStoreInfoBase `json:"dataStore"` }
func (*TargetCopySetting) UnmarshalJSON ¶
func (s *TargetCopySetting) UnmarshalJSON(bytes []byte) error
type TriggerContext ¶
type TriggerContext interface { }
type WeekNumber ¶
type WeekNumber string
const ( WeekNumberFirst WeekNumber = "First" WeekNumberFourth WeekNumber = "Fourth" WeekNumberLast WeekNumber = "Last" WeekNumberSecond WeekNumber = "Second" WeekNumberThird WeekNumber = "Third" )
Source Files ¶
- client.go
- constants.go
- id_backuppolicies.go
- id_backupvault.go
- method_createorupdate_autorest.go
- method_delete_autorest.go
- method_get_autorest.go
- method_list_autorest.go
- model_absolutedeleteoption.go
- model_adhocbasedtaggingcriteria.go
- model_adhocbasedtriggercontext.go
- model_azurebackupparams.go
- model_azurebackuprule.go
- model_azureretentionrule.go
- model_backupcriteria.go
- model_backupparameters.go
- model_backuppolicy.go
- model_backupschedule.go
- model_basebackuppolicy.go
- model_basebackuppolicyresource.go
- model_basepolicyrule.go
- model_copyonexpiryoption.go
- model_copyoption.go
- model_customcopyoption.go
- model_datastoreinfobase.go
- model_day.go
- model_deleteoption.go
- model_immediatecopyoption.go
- model_retentiontag.go
- model_schedulebasedbackupcriteria.go
- model_schedulebasedtriggercontext.go
- model_sourcelifecycle.go
- model_taggingcriteria.go
- model_targetcopysetting.go
- model_triggercontext.go
- predicates.go
- version.go