google_gke_backup_backup_plan

package
v0.0.0-...-4deecce Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	// Cluster: string, required
	Cluster terra.StringValue `hcl:"cluster,attr" validate:"required"`
	// Deactivated: bool, optional
	Deactivated terra.BoolValue `hcl:"deactivated,attr"`
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Labels: map of string, optional
	Labels terra.MapValue[terra.StringValue] `hcl:"labels,attr"`
	// Location: string, required
	Location terra.StringValue `hcl:"location,attr" validate:"required"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// BackupConfig: optional
	BackupConfig *BackupConfig `hcl:"backup_config,block"`
	// BackupSchedule: optional
	BackupSchedule *BackupSchedule `hcl:"backup_schedule,block"`
	// RetentionPolicy: optional
	RetentionPolicy *RetentionPolicy `hcl:"retention_policy,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_gke_backup_backup_plan.

type BackupConfig

type BackupConfig struct {
	// AllNamespaces: bool, optional
	AllNamespaces terra.BoolValue `hcl:"all_namespaces,attr"`
	// IncludeSecrets: bool, optional
	IncludeSecrets terra.BoolValue `hcl:"include_secrets,attr"`
	// IncludeVolumeData: bool, optional
	IncludeVolumeData terra.BoolValue `hcl:"include_volume_data,attr"`
	// BackupConfigEncryptionKey: optional
	EncryptionKey *BackupConfigEncryptionKey `hcl:"encryption_key,block"`
	// BackupConfigSelectedApplications: optional
	SelectedApplications *BackupConfigSelectedApplications `hcl:"selected_applications,block"`
	// BackupConfigSelectedNamespaces: optional
	SelectedNamespaces *BackupConfigSelectedNamespaces `hcl:"selected_namespaces,block"`
}

type BackupConfigAttributes

type BackupConfigAttributes struct {
	// contains filtered or unexported fields
}

func (BackupConfigAttributes) AllNamespaces

func (bc BackupConfigAttributes) AllNamespaces() terra.BoolValue

func (BackupConfigAttributes) EncryptionKey

func (BackupConfigAttributes) IncludeSecrets

func (bc BackupConfigAttributes) IncludeSecrets() terra.BoolValue

func (BackupConfigAttributes) IncludeVolumeData

func (bc BackupConfigAttributes) IncludeVolumeData() terra.BoolValue

func (BackupConfigAttributes) InternalRef

func (bc BackupConfigAttributes) InternalRef() (terra.Reference, error)

func (BackupConfigAttributes) InternalTokens

func (bc BackupConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (BackupConfigAttributes) InternalWithRef

func (BackupConfigAttributes) SelectedApplications

func (BackupConfigAttributes) SelectedNamespaces

type BackupConfigEncryptionKey

type BackupConfigEncryptionKey struct {
	// GcpKmsEncryptionKey: string, required
	GcpKmsEncryptionKey terra.StringValue `hcl:"gcp_kms_encryption_key,attr" validate:"required"`
}

type BackupConfigEncryptionKeyAttributes

type BackupConfigEncryptionKeyAttributes struct {
	// contains filtered or unexported fields
}

func (BackupConfigEncryptionKeyAttributes) GcpKmsEncryptionKey

func (ek BackupConfigEncryptionKeyAttributes) GcpKmsEncryptionKey() terra.StringValue

func (BackupConfigEncryptionKeyAttributes) InternalRef

func (BackupConfigEncryptionKeyAttributes) InternalTokens

func (BackupConfigEncryptionKeyAttributes) InternalWithRef

type BackupConfigEncryptionKeyState

type BackupConfigEncryptionKeyState struct {
	GcpKmsEncryptionKey string `json:"gcp_kms_encryption_key"`
}

type BackupConfigSelectedApplications

type BackupConfigSelectedApplications struct {
	// BackupConfigSelectedApplicationsNamespacedNames: min=1
	NamespacedNames []BackupConfigSelectedApplicationsNamespacedNames `hcl:"namespaced_names,block" validate:"min=1"`
}

type BackupConfigSelectedApplicationsAttributes

type BackupConfigSelectedApplicationsAttributes struct {
	// contains filtered or unexported fields
}

func (BackupConfigSelectedApplicationsAttributes) InternalRef

func (BackupConfigSelectedApplicationsAttributes) InternalTokens

func (BackupConfigSelectedApplicationsAttributes) InternalWithRef

type BackupConfigSelectedApplicationsNamespacedNames

type BackupConfigSelectedApplicationsNamespacedNames struct {
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Namespace: string, required
	Namespace terra.StringValue `hcl:"namespace,attr" validate:"required"`
}

type BackupConfigSelectedApplicationsNamespacedNamesAttributes

type BackupConfigSelectedApplicationsNamespacedNamesAttributes struct {
	// contains filtered or unexported fields
}

func (BackupConfigSelectedApplicationsNamespacedNamesAttributes) InternalRef

func (BackupConfigSelectedApplicationsNamespacedNamesAttributes) InternalTokens

func (BackupConfigSelectedApplicationsNamespacedNamesAttributes) InternalWithRef

func (BackupConfigSelectedApplicationsNamespacedNamesAttributes) Name

func (BackupConfigSelectedApplicationsNamespacedNamesAttributes) Namespace

type BackupConfigSelectedApplicationsNamespacedNamesState

type BackupConfigSelectedApplicationsNamespacedNamesState struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
}

type BackupConfigSelectedApplicationsState

type BackupConfigSelectedApplicationsState struct {
	NamespacedNames []BackupConfigSelectedApplicationsNamespacedNamesState `json:"namespaced_names"`
}

type BackupConfigSelectedNamespaces

type BackupConfigSelectedNamespaces struct {
	// Namespaces: list of string, required
	Namespaces terra.ListValue[terra.StringValue] `hcl:"namespaces,attr" validate:"required"`
}

type BackupConfigSelectedNamespacesAttributes

type BackupConfigSelectedNamespacesAttributes struct {
	// contains filtered or unexported fields
}

func (BackupConfigSelectedNamespacesAttributes) InternalRef

func (BackupConfigSelectedNamespacesAttributes) InternalTokens

func (BackupConfigSelectedNamespacesAttributes) InternalWithRef

func (BackupConfigSelectedNamespacesAttributes) Namespaces

type BackupConfigSelectedNamespacesState

type BackupConfigSelectedNamespacesState struct {
	Namespaces []string `json:"namespaces"`
}

type BackupConfigState

type BackupConfigState struct {
	AllNamespaces        bool                                    `json:"all_namespaces"`
	IncludeSecrets       bool                                    `json:"include_secrets"`
	IncludeVolumeData    bool                                    `json:"include_volume_data"`
	EncryptionKey        []BackupConfigEncryptionKeyState        `json:"encryption_key"`
	SelectedApplications []BackupConfigSelectedApplicationsState `json:"selected_applications"`
	SelectedNamespaces   []BackupConfigSelectedNamespacesState   `json:"selected_namespaces"`
}

type BackupSchedule

type BackupSchedule struct {
	// CronSchedule: string, optional
	CronSchedule terra.StringValue `hcl:"cron_schedule,attr"`
	// Paused: bool, optional
	Paused terra.BoolValue `hcl:"paused,attr"`
	// BackupScheduleRpoConfig: optional
	RpoConfig *BackupScheduleRpoConfig `hcl:"rpo_config,block"`
}

type BackupScheduleAttributes

type BackupScheduleAttributes struct {
	// contains filtered or unexported fields
}

func (BackupScheduleAttributes) CronSchedule

func (bs BackupScheduleAttributes) CronSchedule() terra.StringValue

func (BackupScheduleAttributes) InternalRef

func (bs BackupScheduleAttributes) InternalRef() (terra.Reference, error)

func (BackupScheduleAttributes) InternalTokens

func (bs BackupScheduleAttributes) InternalTokens() (hclwrite.Tokens, error)

func (BackupScheduleAttributes) InternalWithRef

func (BackupScheduleAttributes) Paused

func (BackupScheduleAttributes) RpoConfig

type BackupScheduleRpoConfig

type BackupScheduleRpoConfig struct {
	// TargetRpoMinutes: number, required
	TargetRpoMinutes terra.NumberValue `hcl:"target_rpo_minutes,attr" validate:"required"`
	// BackupScheduleRpoConfigExclusionWindows: min=0
	ExclusionWindows []BackupScheduleRpoConfigExclusionWindows `hcl:"exclusion_windows,block" validate:"min=0"`
}

type BackupScheduleRpoConfigAttributes

type BackupScheduleRpoConfigAttributes struct {
	// contains filtered or unexported fields
}

func (BackupScheduleRpoConfigAttributes) ExclusionWindows

func (BackupScheduleRpoConfigAttributes) InternalRef

func (BackupScheduleRpoConfigAttributes) InternalTokens

func (rc BackupScheduleRpoConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (BackupScheduleRpoConfigAttributes) InternalWithRef

func (BackupScheduleRpoConfigAttributes) TargetRpoMinutes

func (rc BackupScheduleRpoConfigAttributes) TargetRpoMinutes() terra.NumberValue

type BackupScheduleRpoConfigExclusionWindows

type BackupScheduleRpoConfigExclusionWindows struct {
	// Daily: bool, optional
	Daily terra.BoolValue `hcl:"daily,attr"`
	// Duration: string, required
	Duration terra.StringValue `hcl:"duration,attr" validate:"required"`
	// BackupScheduleRpoConfigExclusionWindowsDaysOfWeek: optional
	DaysOfWeek *BackupScheduleRpoConfigExclusionWindowsDaysOfWeek `hcl:"days_of_week,block"`
	// BackupScheduleRpoConfigExclusionWindowsSingleOccurrenceDate: optional
	SingleOccurrenceDate *BackupScheduleRpoConfigExclusionWindowsSingleOccurrenceDate `hcl:"single_occurrence_date,block"`
	// BackupScheduleRpoConfigExclusionWindowsStartTime: required
	StartTime *BackupScheduleRpoConfigExclusionWindowsStartTime `hcl:"start_time,block" validate:"required"`
}

type BackupScheduleRpoConfigExclusionWindowsAttributes

type BackupScheduleRpoConfigExclusionWindowsAttributes struct {
	// contains filtered or unexported fields
}

func (BackupScheduleRpoConfigExclusionWindowsAttributes) Daily

func (BackupScheduleRpoConfigExclusionWindowsAttributes) Duration

func (BackupScheduleRpoConfigExclusionWindowsAttributes) InternalRef

func (BackupScheduleRpoConfigExclusionWindowsAttributes) InternalTokens

func (BackupScheduleRpoConfigExclusionWindowsAttributes) InternalWithRef

type BackupScheduleRpoConfigExclusionWindowsDaysOfWeek

type BackupScheduleRpoConfigExclusionWindowsDaysOfWeek struct {
	// DaysOfWeek: list of string, optional
	DaysOfWeek terra.ListValue[terra.StringValue] `hcl:"days_of_week,attr"`
}

type BackupScheduleRpoConfigExclusionWindowsDaysOfWeekAttributes

type BackupScheduleRpoConfigExclusionWindowsDaysOfWeekAttributes struct {
	// contains filtered or unexported fields
}

func (BackupScheduleRpoConfigExclusionWindowsDaysOfWeekAttributes) DaysOfWeek

func (BackupScheduleRpoConfigExclusionWindowsDaysOfWeekAttributes) InternalRef

func (BackupScheduleRpoConfigExclusionWindowsDaysOfWeekAttributes) InternalTokens

func (BackupScheduleRpoConfigExclusionWindowsDaysOfWeekAttributes) InternalWithRef

type BackupScheduleRpoConfigExclusionWindowsDaysOfWeekState

type BackupScheduleRpoConfigExclusionWindowsDaysOfWeekState struct {
	DaysOfWeek []string `json:"days_of_week"`
}

type BackupScheduleRpoConfigExclusionWindowsSingleOccurrenceDate

type BackupScheduleRpoConfigExclusionWindowsSingleOccurrenceDate struct {
	// Day: number, optional
	Day terra.NumberValue `hcl:"day,attr"`
	// Month: number, optional
	Month terra.NumberValue `hcl:"month,attr"`
	// Year: number, optional
	Year terra.NumberValue `hcl:"year,attr"`
}

type BackupScheduleRpoConfigExclusionWindowsSingleOccurrenceDateAttributes

type BackupScheduleRpoConfigExclusionWindowsSingleOccurrenceDateAttributes struct {
	// contains filtered or unexported fields
}

func (BackupScheduleRpoConfigExclusionWindowsSingleOccurrenceDateAttributes) Day

func (BackupScheduleRpoConfigExclusionWindowsSingleOccurrenceDateAttributes) InternalRef

func (BackupScheduleRpoConfigExclusionWindowsSingleOccurrenceDateAttributes) InternalTokens

func (BackupScheduleRpoConfigExclusionWindowsSingleOccurrenceDateAttributes) InternalWithRef

func (BackupScheduleRpoConfigExclusionWindowsSingleOccurrenceDateAttributes) Month

func (BackupScheduleRpoConfigExclusionWindowsSingleOccurrenceDateAttributes) Year

type BackupScheduleRpoConfigExclusionWindowsSingleOccurrenceDateState

type BackupScheduleRpoConfigExclusionWindowsSingleOccurrenceDateState struct {
	Day   float64 `json:"day"`
	Month float64 `json:"month"`
	Year  float64 `json:"year"`
}

type BackupScheduleRpoConfigExclusionWindowsStartTime

type BackupScheduleRpoConfigExclusionWindowsStartTime struct {
	// Hours: number, optional
	Hours terra.NumberValue `hcl:"hours,attr"`
	// Minutes: number, optional
	Minutes terra.NumberValue `hcl:"minutes,attr"`
	// Nanos: number, optional
	Nanos terra.NumberValue `hcl:"nanos,attr"`
	// Seconds: number, optional
	Seconds terra.NumberValue `hcl:"seconds,attr"`
}

type BackupScheduleRpoConfigExclusionWindowsStartTimeAttributes

type BackupScheduleRpoConfigExclusionWindowsStartTimeAttributes struct {
	// contains filtered or unexported fields
}

func (BackupScheduleRpoConfigExclusionWindowsStartTimeAttributes) Hours

func (BackupScheduleRpoConfigExclusionWindowsStartTimeAttributes) InternalRef

func (BackupScheduleRpoConfigExclusionWindowsStartTimeAttributes) InternalTokens

func (BackupScheduleRpoConfigExclusionWindowsStartTimeAttributes) InternalWithRef

func (BackupScheduleRpoConfigExclusionWindowsStartTimeAttributes) Minutes

func (BackupScheduleRpoConfigExclusionWindowsStartTimeAttributes) Nanos

func (BackupScheduleRpoConfigExclusionWindowsStartTimeAttributes) Seconds

type BackupScheduleRpoConfigExclusionWindowsStartTimeState

type BackupScheduleRpoConfigExclusionWindowsStartTimeState struct {
	Hours   float64 `json:"hours"`
	Minutes float64 `json:"minutes"`
	Nanos   float64 `json:"nanos"`
	Seconds float64 `json:"seconds"`
}

type BackupScheduleRpoConfigExclusionWindowsState

type BackupScheduleRpoConfigExclusionWindowsState struct {
	Daily                bool                                                               `json:"daily"`
	Duration             string                                                             `json:"duration"`
	DaysOfWeek           []BackupScheduleRpoConfigExclusionWindowsDaysOfWeekState           `json:"days_of_week"`
	SingleOccurrenceDate []BackupScheduleRpoConfigExclusionWindowsSingleOccurrenceDateState `json:"single_occurrence_date"`
	StartTime            []BackupScheduleRpoConfigExclusionWindowsStartTimeState            `json:"start_time"`
}

type BackupScheduleRpoConfigState

type BackupScheduleRpoConfigState struct {
	TargetRpoMinutes float64                                        `json:"target_rpo_minutes"`
	ExclusionWindows []BackupScheduleRpoConfigExclusionWindowsState `json:"exclusion_windows"`
}

type BackupScheduleState

type BackupScheduleState struct {
	CronSchedule string                         `json:"cron_schedule"`
	Paused       bool                           `json:"paused"`
	RpoConfig    []BackupScheduleRpoConfigState `json:"rpo_config"`
}

type Resource

type Resource struct {
	Name string
	Args Args

	DependsOn terra.Dependencies
	Lifecycle *terra.Lifecycle
	// contains filtered or unexported fields
}

Resource represents the Terraform resource google_gke_backup_backup_plan.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (ggbbp *Resource) Attributes() googleGkeBackupBackupPlanAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

func (ggbbp *Resource) Configuration() interface{}

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

func (ggbbp *Resource) DependOn() terra.Reference

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

func (ggbbp *Resource) Dependencies() terra.Dependencies

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

func (ggbbp *Resource) ImportState(state io.Reader) error

ImportState imports the given attribute values into Resource's state.

func (*Resource) LifecycleManagement

func (ggbbp *Resource) LifecycleManagement() *terra.Lifecycle

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (ggbbp *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (ggbbp *Resource) State() (*googleGkeBackupBackupPlanState, bool)

State returns the state and a bool indicating if Resource has state.

func (*Resource) StateMust

func (ggbbp *Resource) StateMust() *googleGkeBackupBackupPlanState

StateMust returns the state for Resource. Panics if the state is nil.

func (*Resource) Type

func (ggbbp *Resource) Type() string

Type returns the Terraform object type for Resource.

type RetentionPolicy

type RetentionPolicy struct {
	// BackupDeleteLockDays: number, optional
	BackupDeleteLockDays terra.NumberValue `hcl:"backup_delete_lock_days,attr"`
	// BackupRetainDays: number, optional
	BackupRetainDays terra.NumberValue `hcl:"backup_retain_days,attr"`
	// Locked: bool, optional
	Locked terra.BoolValue `hcl:"locked,attr"`
}

type RetentionPolicyAttributes

type RetentionPolicyAttributes struct {
	// contains filtered or unexported fields
}

func (RetentionPolicyAttributes) BackupDeleteLockDays

func (rp RetentionPolicyAttributes) BackupDeleteLockDays() terra.NumberValue

func (RetentionPolicyAttributes) BackupRetainDays

func (rp RetentionPolicyAttributes) BackupRetainDays() terra.NumberValue

func (RetentionPolicyAttributes) InternalRef

func (rp RetentionPolicyAttributes) InternalRef() (terra.Reference, error)

func (RetentionPolicyAttributes) InternalTokens

func (rp RetentionPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RetentionPolicyAttributes) InternalWithRef

func (RetentionPolicyAttributes) Locked

type RetentionPolicyState

type RetentionPolicyState struct {
	BackupDeleteLockDays float64 `json:"backup_delete_lock_days"`
	BackupRetainDays     float64 `json:"backup_retain_days"`
	Locked               bool    `json:"locked"`
}

type Timeouts

type Timeouts struct {
	// Create: string, optional
	Create terra.StringValue `hcl:"create,attr"`
	// Delete: string, optional
	Delete terra.StringValue `hcl:"delete,attr"`
	// Update: string, optional
	Update terra.StringValue `hcl:"update,attr"`
}

type TimeoutsAttributes

type TimeoutsAttributes struct {
	// contains filtered or unexported fields
}

func (TimeoutsAttributes) Create

func (TimeoutsAttributes) Delete

func (TimeoutsAttributes) InternalRef

func (t TimeoutsAttributes) InternalRef() (terra.Reference, error)

func (TimeoutsAttributes) InternalTokens

func (t TimeoutsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TimeoutsAttributes) InternalWithRef

func (t TimeoutsAttributes) InternalWithRef(ref terra.Reference) TimeoutsAttributes

func (TimeoutsAttributes) Update

type TimeoutsState

type TimeoutsState struct {
	Create string `json:"create"`
	Delete string `json:"delete"`
	Update string `json:"update"`
}

Jump to

Keyboard shortcuts

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