backuppolicies

package
v0.20241023.1122425 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies Documentation

The backuppolicies SDK allows for interaction with Azure Resource Manager dataprotection (API Version 2024-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/2024-04-01/backuppolicies"

Client Initialization

client := backuppolicies.NewBackupPoliciesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: BackupPoliciesClient.CreateOrUpdate

ctx := context.TODO()
id := backuppolicies.NewBackupPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "backupVaultName", "backupPolicyName")

payload := backuppolicies.BaseBackupPolicyResource{
	// ...
}


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

Example Usage: BackupPoliciesClient.Delete

ctx := context.TODO()
id := backuppolicies.NewBackupPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "backupVaultName", "backupPolicyName")

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

Example Usage: BackupPoliciesClient.Get

ctx := context.TODO()
id := backuppolicies.NewBackupPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "backupVaultName", "backupPolicyName")

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: BackupPoliciesClient.List

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

// 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
}

Documentation

Index

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 ValidateBackupPolicyID

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

ValidateBackupPolicyID checks that 'input' can be parsed as a Backup Policy 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 AbsoluteDeleteOption

type AbsoluteDeleteOption struct {
	Duration   string `json:"duration"`
	ObjectType string `json:"objectType"`
}

func (AbsoluteDeleteOption) DeleteOption added in v0.20240920.1135249

func (s AbsoluteDeleteOption) DeleteOption() BaseDeleteOptionImpl

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"
)

func (*AbsoluteMarker) UnmarshalJSON

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

type AdhocBasedTaggingCriteria

type AdhocBasedTaggingCriteria struct {
	TagInfo *RetentionTag `json:"tagInfo,omitempty"`
}

type AdhocBasedTriggerContext

type AdhocBasedTriggerContext struct {
	TaggingCriteria AdhocBasedTaggingCriteria `json:"taggingCriteria"`

	ObjectType string `json:"objectType"`
}

func (AdhocBasedTriggerContext) MarshalJSON

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

func (AdhocBasedTriggerContext) TriggerContext added in v0.20240920.1135249

type AzureBackupParams

type AzureBackupParams struct {
	BackupType string `json:"backupType"`

	ObjectType string `json:"objectType"`
}

func (AzureBackupParams) BackupParameters added in v0.20240920.1135249

func (s AzureBackupParams) BackupParameters() BaseBackupParametersImpl

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"`

	Name       string `json:"name"`
	ObjectType string `json:"objectType"`
}

func (AzureBackupRule) BasePolicyRule added in v0.20240920.1135249

func (s AzureBackupRule) BasePolicyRule() BaseBasePolicyRuleImpl

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"`

	Name       string `json:"name"`
	ObjectType string `json:"objectType"`
}

func (AzureRetentionRule) BasePolicyRule added in v0.20240920.1135249

func (s AzureRetentionRule) BasePolicyRule() BaseBasePolicyRuleImpl

func (AzureRetentionRule) MarshalJSON

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

type BackupCriteria

type BackupCriteria interface {
	BackupCriteria() BaseBackupCriteriaImpl
}

func UnmarshalBackupCriteriaImplementation added in v0.20240920.1135249

func UnmarshalBackupCriteriaImplementation(input []byte) (BackupCriteria, error)

type BackupParameters

type BackupParameters interface {
	BackupParameters() BaseBackupParametersImpl
}

func UnmarshalBackupParametersImplementation added in v0.20240920.1135249

func UnmarshalBackupParametersImplementation(input []byte) (BackupParameters, error)

type BackupPoliciesClient

type BackupPoliciesClient struct {
	Client *resourcemanager.Client
}

func NewBackupPoliciesClientWithBaseURI

func NewBackupPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*BackupPoliciesClient, error)

func (BackupPoliciesClient) CreateOrUpdate

CreateOrUpdate ...

func (BackupPoliciesClient) Delete

Delete ...

func (BackupPoliciesClient) Get

Get ...

func (BackupPoliciesClient) List

List ...

func (BackupPoliciesClient) ListComplete

ListComplete retrieves all the results into a single object

func (BackupPoliciesClient) ListCompleteMatchingPredicate

func (c BackupPoliciesClient) ListCompleteMatchingPredicate(ctx context.Context, id BackupVaultId, predicate BaseBackupPolicyResourceOperationPredicate) (result ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

type BackupPolicy

type BackupPolicy struct {
	PolicyRules []BasePolicyRule `json:"policyRules"`

	DatasourceTypes []string `json:"datasourceTypes"`
	ObjectType      string   `json:"objectType"`
}

func (BackupPolicy) BaseBackupPolicy added in v0.20240920.1135249

func (s BackupPolicy) BaseBackupPolicy() BaseBaseBackupPolicyImpl

func (BackupPolicy) MarshalJSON

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

func (*BackupPolicy) UnmarshalJSON

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

type BackupPolicyId

type BackupPolicyId struct {
	SubscriptionId    string
	ResourceGroupName string
	BackupVaultName   string
	BackupPolicyName  string
}

BackupPolicyId is a struct representing the Resource ID for a Backup Policy

func NewBackupPolicyID

func NewBackupPolicyID(subscriptionId string, resourceGroupName string, backupVaultName string, backupPolicyName string) BackupPolicyId

NewBackupPolicyID returns a new BackupPolicyId struct

func ParseBackupPolicyID

func ParseBackupPolicyID(input string) (*BackupPolicyId, error)

ParseBackupPolicyID parses 'input' into a BackupPolicyId

func ParseBackupPolicyIDInsensitively

func ParseBackupPolicyIDInsensitively(input string) (*BackupPolicyId, error)

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

func (*BackupPolicyId) FromParseResult

func (id *BackupPolicyId) FromParseResult(input resourceids.ParseResult) error

func (BackupPolicyId) ID

func (id BackupPolicyId) ID() string

ID returns the formatted Backup Policy ID

func (BackupPolicyId) Segments

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

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

func (BackupPolicyId) String

func (id BackupPolicyId) String() string

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

type BackupSchedule

type BackupSchedule struct {
	RepeatingTimeIntervals []string `json:"repeatingTimeIntervals"`
	TimeZone               *string  `json:"timeZone,omitempty"`
}

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) FromParseResult

func (id *BackupVaultId) FromParseResult(input resourceids.ParseResult) error

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 BaseBackupCriteriaImpl added in v0.20240920.1135249

type BaseBackupCriteriaImpl struct {
	ObjectType string `json:"objectType"`
}

func (BaseBackupCriteriaImpl) BackupCriteria added in v0.20240920.1135249

type BaseBackupParametersImpl added in v0.20240920.1135249

type BaseBackupParametersImpl struct {
	ObjectType string `json:"objectType"`
}

func (BaseBackupParametersImpl) BackupParameters added in v0.20240920.1135249

type BaseBackupPolicy

type BaseBackupPolicy interface {
	BaseBackupPolicy() BaseBaseBackupPolicyImpl
}

func UnmarshalBaseBackupPolicyImplementation added in v0.20240920.1135249

func UnmarshalBaseBackupPolicyImplementation(input []byte) (BaseBackupPolicy, error)

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

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

func (BaseBackupPolicyResourceOperationPredicate) Matches

type BaseBaseBackupPolicyImpl added in v0.20240920.1135249

type BaseBaseBackupPolicyImpl struct {
	DatasourceTypes []string `json:"datasourceTypes"`
	ObjectType      string   `json:"objectType"`
}

func (BaseBaseBackupPolicyImpl) BaseBackupPolicy added in v0.20240920.1135249

type BaseBasePolicyRuleImpl added in v0.20240920.1135249

type BaseBasePolicyRuleImpl struct {
	Name       string `json:"name"`
	ObjectType string `json:"objectType"`
}

func (BaseBasePolicyRuleImpl) BasePolicyRule added in v0.20240920.1135249

type BaseCopyOptionImpl added in v0.20240920.1135249

type BaseCopyOptionImpl struct {
	ObjectType string `json:"objectType"`
}

func (BaseCopyOptionImpl) CopyOption added in v0.20240920.1135249

func (s BaseCopyOptionImpl) CopyOption() BaseCopyOptionImpl

type BaseDeleteOptionImpl added in v0.20240920.1135249

type BaseDeleteOptionImpl struct {
	Duration   string `json:"duration"`
	ObjectType string `json:"objectType"`
}

func (BaseDeleteOptionImpl) DeleteOption added in v0.20240920.1135249

func (s BaseDeleteOptionImpl) DeleteOption() BaseDeleteOptionImpl

type BasePolicyRule

type BasePolicyRule interface {
	BasePolicyRule() BaseBasePolicyRuleImpl
}

func UnmarshalBasePolicyRuleImplementation added in v0.20240920.1135249

func UnmarshalBasePolicyRuleImplementation(input []byte) (BasePolicyRule, error)

type BaseTriggerContextImpl added in v0.20240920.1135249

type BaseTriggerContextImpl struct {
	ObjectType string `json:"objectType"`
}

func (BaseTriggerContextImpl) TriggerContext added in v0.20240920.1135249

type CopyOnExpiryOption

type CopyOnExpiryOption struct {
	ObjectType string `json:"objectType"`
}

func (CopyOnExpiryOption) CopyOption added in v0.20240920.1135249

func (s CopyOnExpiryOption) CopyOption() BaseCopyOptionImpl

func (CopyOnExpiryOption) MarshalJSON

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

type CopyOption

type CopyOption interface {
	CopyOption() BaseCopyOptionImpl
}

func UnmarshalCopyOptionImplementation added in v0.20240920.1135249

func UnmarshalCopyOptionImplementation(input []byte) (CopyOption, error)

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *BaseBackupPolicyResource
}

type CustomCopyOption

type CustomCopyOption struct {
	Duration *string `json:"duration,omitempty"`

	ObjectType string `json:"objectType"`
}

func (CustomCopyOption) CopyOption added in v0.20240920.1135249

func (s CustomCopyOption) CopyOption() BaseCopyOptionImpl

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"
)

func (*DataStoreTypes) UnmarshalJSON

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

type Day

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

type DayOfWeek

type DayOfWeek string
const (
	DayOfWeekFriday    DayOfWeek = "Friday"
	DayOfWeekMonday    DayOfWeek = "Monday"
	DayOfWeekSaturday  DayOfWeek = "Saturday"
	DayOfWeekSunday    DayOfWeek = "Sunday"
	DayOfWeekThursday  DayOfWeek = "Thursday"
	DayOfWeekTuesday   DayOfWeek = "Tuesday"
	DayOfWeekWednesday DayOfWeek = "Wednesday"
)

func (*DayOfWeek) UnmarshalJSON

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

type DeleteOperationResponse

type DeleteOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type DeleteOption

type DeleteOption interface {
	DeleteOption() BaseDeleteOptionImpl
}

func UnmarshalDeleteOptionImplementation added in v0.20240920.1135249

func UnmarshalDeleteOptionImplementation(input []byte) (DeleteOption, error)

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *BaseBackupPolicyResource
}

type ImmediateCopyOption

type ImmediateCopyOption struct {
	ObjectType string `json:"objectType"`
}

func (ImmediateCopyOption) CopyOption added in v0.20240920.1135249

func (s ImmediateCopyOption) CopyOption() BaseCopyOptionImpl

func (ImmediateCopyOption) MarshalJSON

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

type ListCompleteResult

type ListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []BaseBackupPolicyResource
}

type ListCustomPager added in v0.20240628.1153531

type ListCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListCustomPager) NextPageLink() *odata.Link

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]BaseBackupPolicyResource
}

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"
)

func (*Month) UnmarshalJSON

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

type RawBackupCriteriaImpl

type RawBackupCriteriaImpl struct {
	Type   string
	Values map[string]interface{}
	// contains filtered or unexported fields
}

RawBackupCriteriaImpl 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 (RawBackupCriteriaImpl) BackupCriteria added in v0.20240920.1135249

func (s RawBackupCriteriaImpl) BackupCriteria() BaseBackupCriteriaImpl

type RawBackupParametersImpl

type RawBackupParametersImpl struct {
	Type   string
	Values map[string]interface{}
	// contains filtered or unexported fields
}

RawBackupParametersImpl 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 (RawBackupParametersImpl) BackupParameters added in v0.20240920.1135249

type RawBaseBackupPolicyImpl

type RawBaseBackupPolicyImpl struct {
	Type   string
	Values map[string]interface{}
	// contains filtered or unexported fields
}

RawBaseBackupPolicyImpl 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 (RawBaseBackupPolicyImpl) BaseBackupPolicy added in v0.20240920.1135249

type RawBasePolicyRuleImpl

type RawBasePolicyRuleImpl struct {
	Type   string
	Values map[string]interface{}
	// contains filtered or unexported fields
}

RawBasePolicyRuleImpl 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 (RawBasePolicyRuleImpl) BasePolicyRule added in v0.20240920.1135249

func (s RawBasePolicyRuleImpl) BasePolicyRule() BaseBasePolicyRuleImpl

type RawCopyOptionImpl

type RawCopyOptionImpl struct {
	Type   string
	Values map[string]interface{}
	// contains filtered or unexported fields
}

RawCopyOptionImpl 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 (RawCopyOptionImpl) CopyOption added in v0.20240920.1135249

func (s RawCopyOptionImpl) CopyOption() BaseCopyOptionImpl

type RawDeleteOptionImpl

type RawDeleteOptionImpl struct {
	Type   string
	Values map[string]interface{}
	// contains filtered or unexported fields
}

RawDeleteOptionImpl 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 (RawDeleteOptionImpl) DeleteOption added in v0.20240920.1135249

func (s RawDeleteOptionImpl) DeleteOption() BaseDeleteOptionImpl

type RawTriggerContextImpl

type RawTriggerContextImpl struct {
	Type   string
	Values map[string]interface{}
	// contains filtered or unexported fields
}

RawTriggerContextImpl 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 (RawTriggerContextImpl) TriggerContext added in v0.20240920.1135249

func (s RawTriggerContextImpl) TriggerContext() BaseTriggerContextImpl

type RetentionTag

type RetentionTag struct {
	ETag    *string `json:"eTag,omitempty"`
	Id      *string `json:"id,omitempty"`
	TagName string  `json:"tagName"`
}

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"`

	ObjectType string `json:"objectType"`
}

func (ScheduleBasedBackupCriteria) BackupCriteria added in v0.20240920.1135249

func (ScheduleBasedBackupCriteria) MarshalJSON

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

type ScheduleBasedTriggerContext

type ScheduleBasedTriggerContext struct {
	Schedule        BackupSchedule    `json:"schedule"`
	TaggingCriteria []TaggingCriteria `json:"taggingCriteria"`

	ObjectType string `json:"objectType"`
}

func (ScheduleBasedTriggerContext) MarshalJSON

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

func (ScheduleBasedTriggerContext) TriggerContext added in v0.20240920.1135249

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 {
	TriggerContext() BaseTriggerContextImpl
}

func UnmarshalTriggerContextImplementation added in v0.20240920.1135249

func UnmarshalTriggerContextImplementation(input []byte) (TriggerContext, error)

type WeekNumber

type WeekNumber string
const (
	WeekNumberFirst  WeekNumber = "First"
	WeekNumberFourth WeekNumber = "Fourth"
	WeekNumberLast   WeekNumber = "Last"
	WeekNumberSecond WeekNumber = "Second"
	WeekNumberThird  WeekNumber = "Third"
)

func (*WeekNumber) UnmarshalJSON

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

Jump to

Keyboard shortcuts

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