google_gke_backup_restore_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 {
	// BackupPlan: string, required
	BackupPlan terra.StringValue `hcl:"backup_plan,attr" validate:"required"`
	// Cluster: string, required
	Cluster terra.StringValue `hcl:"cluster,attr" validate:"required"`
	// 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"`
	// RestoreConfig: required
	RestoreConfig *RestoreConfig `hcl:"restore_config,block" validate:"required"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_gke_backup_restore_plan.

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_restore_plan.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (ggbrp *Resource) Attributes() googleGkeBackupRestorePlanAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (ggbrp *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (ggbrp *Resource) State() (*googleGkeBackupRestorePlanState, bool)

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

func (*Resource) StateMust

func (ggbrp *Resource) StateMust() *googleGkeBackupRestorePlanState

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

func (*Resource) Type

func (ggbrp *Resource) Type() string

Type returns the Terraform object type for Resource.

type RestoreConfig

type RestoreConfig struct {
	// AllNamespaces: bool, optional
	AllNamespaces terra.BoolValue `hcl:"all_namespaces,attr"`
	// ClusterResourceConflictPolicy: string, optional
	ClusterResourceConflictPolicy terra.StringValue `hcl:"cluster_resource_conflict_policy,attr"`
	// NamespacedResourceRestoreMode: string, optional
	NamespacedResourceRestoreMode terra.StringValue `hcl:"namespaced_resource_restore_mode,attr"`
	// NoNamespaces: bool, optional
	NoNamespaces terra.BoolValue `hcl:"no_namespaces,attr"`
	// VolumeDataRestorePolicy: string, optional
	VolumeDataRestorePolicy terra.StringValue `hcl:"volume_data_restore_policy,attr"`
	// RestoreConfigClusterResourceRestoreScope: optional
	ClusterResourceRestoreScope *RestoreConfigClusterResourceRestoreScope `hcl:"cluster_resource_restore_scope,block"`
	// RestoreConfigExcludedNamespaces: optional
	ExcludedNamespaces *RestoreConfigExcludedNamespaces `hcl:"excluded_namespaces,block"`
	// RestoreConfigSelectedApplications: optional
	SelectedApplications *RestoreConfigSelectedApplications `hcl:"selected_applications,block"`
	// RestoreConfigSelectedNamespaces: optional
	SelectedNamespaces *RestoreConfigSelectedNamespaces `hcl:"selected_namespaces,block"`
	// RestoreConfigTransformationRules: min=0
	TransformationRules []RestoreConfigTransformationRules `hcl:"transformation_rules,block" validate:"min=0"`
}

type RestoreConfigAttributes

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

func (RestoreConfigAttributes) AllNamespaces

func (rc RestoreConfigAttributes) AllNamespaces() terra.BoolValue

func (RestoreConfigAttributes) ClusterResourceConflictPolicy

func (rc RestoreConfigAttributes) ClusterResourceConflictPolicy() terra.StringValue

func (RestoreConfigAttributes) ClusterResourceRestoreScope

func (RestoreConfigAttributes) ExcludedNamespaces

func (RestoreConfigAttributes) InternalRef

func (rc RestoreConfigAttributes) InternalRef() (terra.Reference, error)

func (RestoreConfigAttributes) InternalTokens

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

func (RestoreConfigAttributes) InternalWithRef

func (RestoreConfigAttributes) NamespacedResourceRestoreMode

func (rc RestoreConfigAttributes) NamespacedResourceRestoreMode() terra.StringValue

func (RestoreConfigAttributes) NoNamespaces

func (rc RestoreConfigAttributes) NoNamespaces() terra.BoolValue

func (RestoreConfigAttributes) SelectedApplications

func (RestoreConfigAttributes) SelectedNamespaces

func (RestoreConfigAttributes) TransformationRules

func (RestoreConfigAttributes) VolumeDataRestorePolicy

func (rc RestoreConfigAttributes) VolumeDataRestorePolicy() terra.StringValue

type RestoreConfigClusterResourceRestoreScope

type RestoreConfigClusterResourceRestoreScope struct {
	// AllGroupKinds: bool, optional
	AllGroupKinds terra.BoolValue `hcl:"all_group_kinds,attr"`
	// NoGroupKinds: bool, optional
	NoGroupKinds terra.BoolValue `hcl:"no_group_kinds,attr"`
	// RestoreConfigClusterResourceRestoreScopeExcludedGroupKinds: min=0
	ExcludedGroupKinds []RestoreConfigClusterResourceRestoreScopeExcludedGroupKinds `hcl:"excluded_group_kinds,block" validate:"min=0"`
	// RestoreConfigClusterResourceRestoreScopeSelectedGroupKinds: min=0
	SelectedGroupKinds []RestoreConfigClusterResourceRestoreScopeSelectedGroupKinds `hcl:"selected_group_kinds,block" validate:"min=0"`
}

type RestoreConfigClusterResourceRestoreScopeAttributes

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

func (RestoreConfigClusterResourceRestoreScopeAttributes) AllGroupKinds

func (RestoreConfigClusterResourceRestoreScopeAttributes) InternalRef

func (RestoreConfigClusterResourceRestoreScopeAttributes) InternalTokens

func (RestoreConfigClusterResourceRestoreScopeAttributes) InternalWithRef

func (RestoreConfigClusterResourceRestoreScopeAttributes) NoGroupKinds

type RestoreConfigClusterResourceRestoreScopeExcludedGroupKinds

type RestoreConfigClusterResourceRestoreScopeExcludedGroupKinds struct {
	// ResourceGroup: string, optional
	ResourceGroup terra.StringValue `hcl:"resource_group,attr"`
	// ResourceKind: string, optional
	ResourceKind terra.StringValue `hcl:"resource_kind,attr"`
}

type RestoreConfigClusterResourceRestoreScopeExcludedGroupKindsAttributes

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

func (RestoreConfigClusterResourceRestoreScopeExcludedGroupKindsAttributes) InternalRef

func (RestoreConfigClusterResourceRestoreScopeExcludedGroupKindsAttributes) InternalTokens

func (RestoreConfigClusterResourceRestoreScopeExcludedGroupKindsAttributes) InternalWithRef

func (RestoreConfigClusterResourceRestoreScopeExcludedGroupKindsAttributes) ResourceGroup

func (RestoreConfigClusterResourceRestoreScopeExcludedGroupKindsAttributes) ResourceKind

type RestoreConfigClusterResourceRestoreScopeExcludedGroupKindsState

type RestoreConfigClusterResourceRestoreScopeExcludedGroupKindsState struct {
	ResourceGroup string `json:"resource_group"`
	ResourceKind  string `json:"resource_kind"`
}

type RestoreConfigClusterResourceRestoreScopeSelectedGroupKinds

type RestoreConfigClusterResourceRestoreScopeSelectedGroupKinds struct {
	// ResourceGroup: string, optional
	ResourceGroup terra.StringValue `hcl:"resource_group,attr"`
	// ResourceKind: string, optional
	ResourceKind terra.StringValue `hcl:"resource_kind,attr"`
}

type RestoreConfigClusterResourceRestoreScopeSelectedGroupKindsAttributes

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

func (RestoreConfigClusterResourceRestoreScopeSelectedGroupKindsAttributes) InternalRef

func (RestoreConfigClusterResourceRestoreScopeSelectedGroupKindsAttributes) InternalTokens

func (RestoreConfigClusterResourceRestoreScopeSelectedGroupKindsAttributes) InternalWithRef

func (RestoreConfigClusterResourceRestoreScopeSelectedGroupKindsAttributes) ResourceGroup

func (RestoreConfigClusterResourceRestoreScopeSelectedGroupKindsAttributes) ResourceKind

type RestoreConfigClusterResourceRestoreScopeSelectedGroupKindsState

type RestoreConfigClusterResourceRestoreScopeSelectedGroupKindsState struct {
	ResourceGroup string `json:"resource_group"`
	ResourceKind  string `json:"resource_kind"`
}

type RestoreConfigClusterResourceRestoreScopeState

type RestoreConfigClusterResourceRestoreScopeState struct {
	AllGroupKinds      bool                                                              `json:"all_group_kinds"`
	NoGroupKinds       bool                                                              `json:"no_group_kinds"`
	ExcludedGroupKinds []RestoreConfigClusterResourceRestoreScopeExcludedGroupKindsState `json:"excluded_group_kinds"`
	SelectedGroupKinds []RestoreConfigClusterResourceRestoreScopeSelectedGroupKindsState `json:"selected_group_kinds"`
}

type RestoreConfigExcludedNamespaces

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

type RestoreConfigExcludedNamespacesAttributes

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

func (RestoreConfigExcludedNamespacesAttributes) InternalRef

func (RestoreConfigExcludedNamespacesAttributes) InternalTokens

func (RestoreConfigExcludedNamespacesAttributes) InternalWithRef

func (RestoreConfigExcludedNamespacesAttributes) Namespaces

type RestoreConfigExcludedNamespacesState

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

type RestoreConfigSelectedApplications

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

type RestoreConfigSelectedApplicationsAttributes

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

func (RestoreConfigSelectedApplicationsAttributes) InternalRef

func (RestoreConfigSelectedApplicationsAttributes) InternalTokens

func (RestoreConfigSelectedApplicationsAttributes) InternalWithRef

type RestoreConfigSelectedApplicationsNamespacedNames

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

type RestoreConfigSelectedApplicationsNamespacedNamesAttributes

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

func (RestoreConfigSelectedApplicationsNamespacedNamesAttributes) InternalRef

func (RestoreConfigSelectedApplicationsNamespacedNamesAttributes) InternalTokens

func (RestoreConfigSelectedApplicationsNamespacedNamesAttributes) InternalWithRef

func (RestoreConfigSelectedApplicationsNamespacedNamesAttributes) Name

func (RestoreConfigSelectedApplicationsNamespacedNamesAttributes) Namespace

type RestoreConfigSelectedApplicationsNamespacedNamesState

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

type RestoreConfigSelectedApplicationsState

type RestoreConfigSelectedApplicationsState struct {
	NamespacedNames []RestoreConfigSelectedApplicationsNamespacedNamesState `json:"namespaced_names"`
}

type RestoreConfigSelectedNamespaces

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

type RestoreConfigSelectedNamespacesAttributes

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

func (RestoreConfigSelectedNamespacesAttributes) InternalRef

func (RestoreConfigSelectedNamespacesAttributes) InternalTokens

func (RestoreConfigSelectedNamespacesAttributes) InternalWithRef

func (RestoreConfigSelectedNamespacesAttributes) Namespaces

type RestoreConfigSelectedNamespacesState

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

type RestoreConfigState

type RestoreConfigState struct {
	AllNamespaces                 bool                                            `json:"all_namespaces"`
	ClusterResourceConflictPolicy string                                          `json:"cluster_resource_conflict_policy"`
	NamespacedResourceRestoreMode string                                          `json:"namespaced_resource_restore_mode"`
	NoNamespaces                  bool                                            `json:"no_namespaces"`
	VolumeDataRestorePolicy       string                                          `json:"volume_data_restore_policy"`
	ClusterResourceRestoreScope   []RestoreConfigClusterResourceRestoreScopeState `json:"cluster_resource_restore_scope"`
	ExcludedNamespaces            []RestoreConfigExcludedNamespacesState          `json:"excluded_namespaces"`
	SelectedApplications          []RestoreConfigSelectedApplicationsState        `json:"selected_applications"`
	SelectedNamespaces            []RestoreConfigSelectedNamespacesState          `json:"selected_namespaces"`
	TransformationRules           []RestoreConfigTransformationRulesState         `json:"transformation_rules"`
}

type RestoreConfigTransformationRules

type RestoreConfigTransformationRules struct {
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// RestoreConfigTransformationRulesFieldActions: min=1
	FieldActions []RestoreConfigTransformationRulesFieldActions `hcl:"field_actions,block" validate:"min=1"`
	// RestoreConfigTransformationRulesResourceFilter: optional
	ResourceFilter *RestoreConfigTransformationRulesResourceFilter `hcl:"resource_filter,block"`
}

type RestoreConfigTransformationRulesAttributes

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

func (RestoreConfigTransformationRulesAttributes) Description

func (RestoreConfigTransformationRulesAttributes) FieldActions

func (RestoreConfigTransformationRulesAttributes) InternalRef

func (RestoreConfigTransformationRulesAttributes) InternalTokens

func (RestoreConfigTransformationRulesAttributes) InternalWithRef

type RestoreConfigTransformationRulesFieldActions

type RestoreConfigTransformationRulesFieldActions struct {
	// FromPath: string, optional
	FromPath terra.StringValue `hcl:"from_path,attr"`
	// Op: string, required
	Op terra.StringValue `hcl:"op,attr" validate:"required"`
	// Path: string, optional
	Path terra.StringValue `hcl:"path,attr"`
	// Value: string, optional
	Value terra.StringValue `hcl:"value,attr"`
}

type RestoreConfigTransformationRulesFieldActionsAttributes

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

func (RestoreConfigTransformationRulesFieldActionsAttributes) FromPath

func (RestoreConfigTransformationRulesFieldActionsAttributes) InternalRef

func (RestoreConfigTransformationRulesFieldActionsAttributes) InternalTokens

func (RestoreConfigTransformationRulesFieldActionsAttributes) InternalWithRef

func (RestoreConfigTransformationRulesFieldActionsAttributes) Op

func (RestoreConfigTransformationRulesFieldActionsAttributes) Path

func (RestoreConfigTransformationRulesFieldActionsAttributes) Value

type RestoreConfigTransformationRulesFieldActionsState

type RestoreConfigTransformationRulesFieldActionsState struct {
	FromPath string `json:"from_path"`
	Op       string `json:"op"`
	Path     string `json:"path"`
	Value    string `json:"value"`
}

type RestoreConfigTransformationRulesResourceFilter

type RestoreConfigTransformationRulesResourceFilter struct {
	// JsonPath: string, optional
	JsonPath terra.StringValue `hcl:"json_path,attr"`
	// Namespaces: list of string, optional
	Namespaces terra.ListValue[terra.StringValue] `hcl:"namespaces,attr"`
	// RestoreConfigTransformationRulesResourceFilterGroupKinds: min=0
	GroupKinds []RestoreConfigTransformationRulesResourceFilterGroupKinds `hcl:"group_kinds,block" validate:"min=0"`
}

type RestoreConfigTransformationRulesResourceFilterAttributes

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

func (RestoreConfigTransformationRulesResourceFilterAttributes) InternalRef

func (RestoreConfigTransformationRulesResourceFilterAttributes) InternalTokens

func (RestoreConfigTransformationRulesResourceFilterAttributes) InternalWithRef

func (RestoreConfigTransformationRulesResourceFilterAttributes) JsonPath

func (RestoreConfigTransformationRulesResourceFilterAttributes) Namespaces

type RestoreConfigTransformationRulesResourceFilterGroupKinds

type RestoreConfigTransformationRulesResourceFilterGroupKinds struct {
	// ResourceGroup: string, optional
	ResourceGroup terra.StringValue `hcl:"resource_group,attr"`
	// ResourceKind: string, optional
	ResourceKind terra.StringValue `hcl:"resource_kind,attr"`
}

type RestoreConfigTransformationRulesResourceFilterGroupKindsAttributes

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

func (RestoreConfigTransformationRulesResourceFilterGroupKindsAttributes) InternalRef

func (RestoreConfigTransformationRulesResourceFilterGroupKindsAttributes) InternalTokens

func (RestoreConfigTransformationRulesResourceFilterGroupKindsAttributes) InternalWithRef

func (RestoreConfigTransformationRulesResourceFilterGroupKindsAttributes) ResourceGroup

func (RestoreConfigTransformationRulesResourceFilterGroupKindsAttributes) ResourceKind

type RestoreConfigTransformationRulesResourceFilterGroupKindsState

type RestoreConfigTransformationRulesResourceFilterGroupKindsState struct {
	ResourceGroup string `json:"resource_group"`
	ResourceKind  string `json:"resource_kind"`
}

type RestoreConfigTransformationRulesResourceFilterState

type RestoreConfigTransformationRulesResourceFilterState struct {
	JsonPath   string                                                          `json:"json_path"`
	Namespaces []string                                                        `json:"namespaces"`
	GroupKinds []RestoreConfigTransformationRulesResourceFilterGroupKindsState `json:"group_kinds"`
}

type RestoreConfigTransformationRulesState

type RestoreConfigTransformationRulesState struct {
	Description    string                                                `json:"description"`
	FieldActions   []RestoreConfigTransformationRulesFieldActionsState   `json:"field_actions"`
	ResourceFilter []RestoreConfigTransformationRulesResourceFilterState `json:"resource_filter"`
}

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