google_filestore_instance

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 {
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// KmsKeyName: string, optional
	KmsKeyName terra.StringValue `hcl:"kms_key_name,attr"`
	// Labels: map of string, optional
	Labels terra.MapValue[terra.StringValue] `hcl:"labels,attr"`
	// Location: string, optional
	Location terra.StringValue `hcl:"location,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// Tier: string, required
	Tier terra.StringValue `hcl:"tier,attr" validate:"required"`
	// Zone: string, optional
	Zone terra.StringValue `hcl:"zone,attr"`
	// FileShares: required
	FileShares *FileShares `hcl:"file_shares,block" validate:"required"`
	// Networks: min=1
	Networks []Networks `hcl:"networks,block" validate:"min=1"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_filestore_instance.

type DataArgs

type DataArgs struct {
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Location: string, optional
	Location terra.StringValue `hcl:"location,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
}

DataArgs contains the configurations for google_filestore_instance.

type DataFileSharesAttributes

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

func (DataFileSharesAttributes) CapacityGb

func (fs DataFileSharesAttributes) CapacityGb() terra.NumberValue

func (DataFileSharesAttributes) InternalRef

func (fs DataFileSharesAttributes) InternalRef() (terra.Reference, error)

func (DataFileSharesAttributes) InternalTokens

func (fs DataFileSharesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataFileSharesAttributes) InternalWithRef

func (DataFileSharesAttributes) Name

func (DataFileSharesAttributes) NfsExportOptions

func (DataFileSharesAttributes) SourceBackup

func (fs DataFileSharesAttributes) SourceBackup() terra.StringValue

type DataFileSharesNfsExportOptionsAttributes

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

func (DataFileSharesNfsExportOptionsAttributes) AccessMode

func (DataFileSharesNfsExportOptionsAttributes) AnonGid

func (DataFileSharesNfsExportOptionsAttributes) AnonUid

func (DataFileSharesNfsExportOptionsAttributes) InternalRef

func (DataFileSharesNfsExportOptionsAttributes) InternalTokens

func (DataFileSharesNfsExportOptionsAttributes) InternalWithRef

func (DataFileSharesNfsExportOptionsAttributes) IpRanges

func (DataFileSharesNfsExportOptionsAttributes) SquashMode

type DataFileSharesNfsExportOptionsState

type DataFileSharesNfsExportOptionsState struct {
	AccessMode string   `json:"access_mode"`
	AnonGid    float64  `json:"anon_gid"`
	AnonUid    float64  `json:"anon_uid"`
	IpRanges   []string `json:"ip_ranges"`
	SquashMode string   `json:"squash_mode"`
}

type DataFileSharesState

type DataFileSharesState struct {
	CapacityGb       float64                               `json:"capacity_gb"`
	Name             string                                `json:"name"`
	SourceBackup     string                                `json:"source_backup"`
	NfsExportOptions []DataFileSharesNfsExportOptionsState `json:"nfs_export_options"`
}

type DataNetworksAttributes

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

func (DataNetworksAttributes) ConnectMode

func (n DataNetworksAttributes) ConnectMode() terra.StringValue

func (DataNetworksAttributes) InternalRef

func (n DataNetworksAttributes) InternalRef() (terra.Reference, error)

func (DataNetworksAttributes) InternalTokens

func (n DataNetworksAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataNetworksAttributes) InternalWithRef

func (DataNetworksAttributes) IpAddresses

func (DataNetworksAttributes) Modes

func (DataNetworksAttributes) Network

func (DataNetworksAttributes) ReservedIpRange

func (n DataNetworksAttributes) ReservedIpRange() terra.StringValue

type DataNetworksState

type DataNetworksState struct {
	ConnectMode     string   `json:"connect_mode"`
	IpAddresses     []string `json:"ip_addresses"`
	Modes           []string `json:"modes"`
	Network         string   `json:"network"`
	ReservedIpRange string   `json:"reserved_ip_range"`
}

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource google_filestore_instance.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (gfi *DataSource) Attributes() dataGoogleFilestoreInstanceAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

func (gfi *DataSource) Configuration() interface{}

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (gfi *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (gfi *DataSource) LocalName() string

LocalName returns the local name for DataSource.

type FileShares

type FileShares struct {
	// CapacityGb: number, required
	CapacityGb terra.NumberValue `hcl:"capacity_gb,attr" validate:"required"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// SourceBackup: string, optional
	SourceBackup terra.StringValue `hcl:"source_backup,attr"`
	// FileSharesNfsExportOptions: min=0,max=10
	NfsExportOptions []FileSharesNfsExportOptions `hcl:"nfs_export_options,block" validate:"min=0,max=10"`
}

type FileSharesAttributes

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

func (FileSharesAttributes) CapacityGb

func (fs FileSharesAttributes) CapacityGb() terra.NumberValue

func (FileSharesAttributes) InternalRef

func (fs FileSharesAttributes) InternalRef() (terra.Reference, error)

func (FileSharesAttributes) InternalTokens

func (fs FileSharesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (FileSharesAttributes) InternalWithRef

func (fs FileSharesAttributes) InternalWithRef(ref terra.Reference) FileSharesAttributes

func (FileSharesAttributes) Name

func (FileSharesAttributes) NfsExportOptions

func (FileSharesAttributes) SourceBackup

func (fs FileSharesAttributes) SourceBackup() terra.StringValue

type FileSharesNfsExportOptions

type FileSharesNfsExportOptions struct {
	// AccessMode: string, optional
	AccessMode terra.StringValue `hcl:"access_mode,attr"`
	// AnonGid: number, optional
	AnonGid terra.NumberValue `hcl:"anon_gid,attr"`
	// AnonUid: number, optional
	AnonUid terra.NumberValue `hcl:"anon_uid,attr"`
	// IpRanges: list of string, optional
	IpRanges terra.ListValue[terra.StringValue] `hcl:"ip_ranges,attr"`
	// SquashMode: string, optional
	SquashMode terra.StringValue `hcl:"squash_mode,attr"`
}

type FileSharesNfsExportOptionsAttributes

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

func (FileSharesNfsExportOptionsAttributes) AccessMode

func (FileSharesNfsExportOptionsAttributes) AnonGid

func (FileSharesNfsExportOptionsAttributes) AnonUid

func (FileSharesNfsExportOptionsAttributes) InternalRef

func (FileSharesNfsExportOptionsAttributes) InternalTokens

func (FileSharesNfsExportOptionsAttributes) InternalWithRef

func (FileSharesNfsExportOptionsAttributes) IpRanges

func (FileSharesNfsExportOptionsAttributes) SquashMode

type FileSharesNfsExportOptionsState

type FileSharesNfsExportOptionsState struct {
	AccessMode string   `json:"access_mode"`
	AnonGid    float64  `json:"anon_gid"`
	AnonUid    float64  `json:"anon_uid"`
	IpRanges   []string `json:"ip_ranges"`
	SquashMode string   `json:"squash_mode"`
}

type FileSharesState

type FileSharesState struct {
	CapacityGb       float64                           `json:"capacity_gb"`
	Name             string                            `json:"name"`
	SourceBackup     string                            `json:"source_backup"`
	NfsExportOptions []FileSharesNfsExportOptionsState `json:"nfs_export_options"`
}

type Networks

type Networks struct {
	// ConnectMode: string, optional
	ConnectMode terra.StringValue `hcl:"connect_mode,attr"`
	// Modes: list of string, required
	Modes terra.ListValue[terra.StringValue] `hcl:"modes,attr" validate:"required"`
	// Network: string, required
	Network terra.StringValue `hcl:"network,attr" validate:"required"`
	// ReservedIpRange: string, optional
	ReservedIpRange terra.StringValue `hcl:"reserved_ip_range,attr"`
}

type NetworksAttributes

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

func (NetworksAttributes) ConnectMode

func (n NetworksAttributes) ConnectMode() terra.StringValue

func (NetworksAttributes) InternalRef

func (n NetworksAttributes) InternalRef() (terra.Reference, error)

func (NetworksAttributes) InternalTokens

func (n NetworksAttributes) InternalTokens() (hclwrite.Tokens, error)

func (NetworksAttributes) InternalWithRef

func (n NetworksAttributes) InternalWithRef(ref terra.Reference) NetworksAttributes

func (NetworksAttributes) IpAddresses

func (NetworksAttributes) Modes

func (NetworksAttributes) Network

func (n NetworksAttributes) Network() terra.StringValue

func (NetworksAttributes) ReservedIpRange

func (n NetworksAttributes) ReservedIpRange() terra.StringValue

type NetworksState

type NetworksState struct {
	ConnectMode     string   `json:"connect_mode"`
	IpAddresses     []string `json:"ip_addresses"`
	Modes           []string `json:"modes"`
	Network         string   `json:"network"`
	ReservedIpRange string   `json:"reserved_ip_range"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gfi *Resource) Attributes() googleFilestoreInstanceAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gfi *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gfi *Resource) State() (*googleFilestoreInstanceState, bool)

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

func (*Resource) StateMust

func (gfi *Resource) StateMust() *googleFilestoreInstanceState

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

func (*Resource) Type

func (gfi *Resource) Type() string

Type returns the Terraform object type for Resource.

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