Documentation ¶
Index ¶
- Constants
- Variables
- func CheckCopySettingsToUseOldAPI(tfList []any, isCreate bool) (bool, error)
- func DataSource() *schema.Resource
- func ExpandCopySetting(tfMap map[string]any) *admin.DiskBackupCopySetting20240805
- func ExpandCopySettings(tfList []any) *[]admin.DiskBackupCopySetting20240805
- func ExpandPolicyItems(items []any, frequencyType string) *[]admin.DiskBackupApiPolicyItem
- func FlattenCopySettings(copySettingList []admin.DiskBackupCopySetting20240805) []map[string]any
- func FlattenExport(roles *admin.DiskBackupSnapshotSchedule20240805) []map[string]any
- func FlattenPolicyItem(items []admin.DiskBackupApiPolicyItem, frequencyType string) []map[string]any
- func Resource() *schema.Resource
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
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 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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.