google_firebaserules_ruleset

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 {
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// Source: required
	Source *Source `hcl:"source,block" validate:"required"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_firebaserules_ruleset.

type MetadataAttributes

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

func (MetadataAttributes) InternalRef

func (m MetadataAttributes) InternalRef() (terra.Reference, error)

func (MetadataAttributes) InternalTokens

func (m MetadataAttributes) InternalTokens() (hclwrite.Tokens, error)

func (MetadataAttributes) InternalWithRef

func (m MetadataAttributes) InternalWithRef(ref terra.Reference) MetadataAttributes

func (MetadataAttributes) Services

type MetadataState

type MetadataState struct {
	Services []string `json:"services"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gfr *Resource) Attributes() googleFirebaserulesRulesetAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gfr *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gfr *Resource) State() (*googleFirebaserulesRulesetState, bool)

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

func (*Resource) StateMust

func (gfr *Resource) StateMust() *googleFirebaserulesRulesetState

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

func (*Resource) Type

func (gfr *Resource) Type() string

Type returns the Terraform object type for Resource.

type Source

type Source struct {
	// Language: string, optional
	Language terra.StringValue `hcl:"language,attr"`
	// SourceFiles: min=1
	Files []SourceFiles `hcl:"files,block" validate:"min=1"`
}

type SourceAttributes

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

func (SourceAttributes) Files

func (SourceAttributes) InternalRef

func (s SourceAttributes) InternalRef() (terra.Reference, error)

func (SourceAttributes) InternalTokens

func (s SourceAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SourceAttributes) InternalWithRef

func (s SourceAttributes) InternalWithRef(ref terra.Reference) SourceAttributes

func (SourceAttributes) Language

func (s SourceAttributes) Language() terra.StringValue

type SourceFiles

type SourceFiles struct {
	// Content: string, required
	Content terra.StringValue `hcl:"content,attr" validate:"required"`
	// Fingerprint: string, optional
	Fingerprint terra.StringValue `hcl:"fingerprint,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
}

type SourceFilesAttributes

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

func (SourceFilesAttributes) Content

func (SourceFilesAttributes) Fingerprint

func (f SourceFilesAttributes) Fingerprint() terra.StringValue

func (SourceFilesAttributes) InternalRef

func (f SourceFilesAttributes) InternalRef() (terra.Reference, error)

func (SourceFilesAttributes) InternalTokens

func (f SourceFilesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SourceFilesAttributes) InternalWithRef

func (SourceFilesAttributes) Name

type SourceFilesState

type SourceFilesState struct {
	Content     string `json:"content"`
	Fingerprint string `json:"fingerprint"`
	Name        string `json:"name"`
}

type SourceState

type SourceState struct {
	Language string             `json:"language"`
	Files    []SourceFilesState `json:"files"`
}

type Timeouts

type Timeouts struct {
	// Create: string, optional
	Create terra.StringValue `hcl:"create,attr"`
	// Delete: string, optional
	Delete terra.StringValue `hcl:"delete,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

type TimeoutsState

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

Jump to

Keyboard shortcuts

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