cloudbackupschedule

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Hourly  = "hourly"
	Daily   = "daily"
	Weekly  = "weekly"
	Monthly = "monthly"
	Yearly  = "yearly"

	ErrorOperationNotPermitted        = "error operation not permitted"
	AsymmetricShardsUnsupportedAction = "" /* 338-byte string literal not displayed */

	DeprecationOldSchemaAction          = "" /* 209-byte string literal not displayed */
	AsymmetricShardsUnsupportedAPIError = "ASYMMETRIC_SHARD_BACKUP_UNSUPPORTED"
)
View Source
const (
	AsymmetricShardsUnsupportedActionDS = "" /* 361-byte string literal not displayed */
)

Variables

View Source
var DeprecationMsgOldSchema = fmt.Sprintf("%s %s", fmt.Sprintf(constant.DeprecationParamWithReplacement, "`copy_settings.#.zone_id`"), DeprecationOldSchemaAction)

Functions

func CheckCopySettingsToUseOldAPI added in v1.18.0

func CheckCopySettingsToUseOldAPI(tfList []any, isCreate bool) (bool, error)

CheckCopySettingsToUseOldAPI verifies that all elements in tfList use either `replication_spec_id` or `zone_id` Returns an error if any element has both `replication_spec_id` and `zone_id` set during create and returns a bool if the old API should be used or not

func DataSource

func DataSource() *schema.Resource

func ExpandCopySetting added in v1.18.0

func ExpandCopySetting(tfMap map[string]any) *admin.DiskBackupCopySetting20240805

func ExpandCopySettings added in v1.18.0

func ExpandCopySettings(tfList []any) *[]admin.DiskBackupCopySetting20240805

func ExpandPolicyItems added in v1.18.0

func ExpandPolicyItems(items []any, frequencyType string) *[]admin.DiskBackupApiPolicyItem

func FlattenCopySettings added in v1.18.0

func FlattenCopySettings(copySettingList []admin.DiskBackupCopySetting20240805) []map[string]any

func FlattenExport added in v1.18.0

func FlattenExport(roles *admin.DiskBackupSnapshotSchedule20240805) []map[string]any

func FlattenPolicyItem added in v1.18.0

func FlattenPolicyItem(items []admin.DiskBackupApiPolicyItem, frequencyType string) []map[string]any

func Resource

func Resource() *schema.Resource

Types

This section is empty.

Jump to

Keyboard shortcuts

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