google_bigquery_routine

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 {
	// DataGovernanceType: string, optional
	DataGovernanceType terra.StringValue `hcl:"data_governance_type,attr"`
	// DatasetId: string, required
	DatasetId terra.StringValue `hcl:"dataset_id,attr" validate:"required"`
	// DefinitionBody: string, required
	DefinitionBody terra.StringValue `hcl:"definition_body,attr" validate:"required"`
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// DeterminismLevel: string, optional
	DeterminismLevel terra.StringValue `hcl:"determinism_level,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// ImportedLibraries: list of string, optional
	ImportedLibraries terra.ListValue[terra.StringValue] `hcl:"imported_libraries,attr"`
	// Language: string, optional
	Language terra.StringValue `hcl:"language,attr"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// ReturnTableType: string, optional
	ReturnTableType terra.StringValue `hcl:"return_table_type,attr"`
	// ReturnType: string, optional
	ReturnType terra.StringValue `hcl:"return_type,attr"`
	// RoutineId: string, required
	RoutineId terra.StringValue `hcl:"routine_id,attr" validate:"required"`
	// RoutineType: string, required
	RoutineType terra.StringValue `hcl:"routine_type,attr" validate:"required"`
	// Arguments: min=0
	Arguments []Arguments `hcl:"arguments,block" validate:"min=0"`
	// RemoteFunctionOptions: optional
	RemoteFunctionOptions *RemoteFunctionOptions `hcl:"remote_function_options,block"`
	// SparkOptions: optional
	SparkOptions *SparkOptions `hcl:"spark_options,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_bigquery_routine.

type Arguments

type Arguments struct {
	// ArgumentKind: string, optional
	ArgumentKind terra.StringValue `hcl:"argument_kind,attr"`
	// DataType: string, optional
	DataType terra.StringValue `hcl:"data_type,attr"`
	// Mode: string, optional
	Mode terra.StringValue `hcl:"mode,attr"`
	// Name: string, optional
	Name terra.StringValue `hcl:"name,attr"`
}

type ArgumentsAttributes

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

func (ArgumentsAttributes) ArgumentKind

func (a ArgumentsAttributes) ArgumentKind() terra.StringValue

func (ArgumentsAttributes) DataType

func (a ArgumentsAttributes) DataType() terra.StringValue

func (ArgumentsAttributes) InternalRef

func (a ArgumentsAttributes) InternalRef() (terra.Reference, error)

func (ArgumentsAttributes) InternalTokens

func (a ArgumentsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ArgumentsAttributes) InternalWithRef

func (a ArgumentsAttributes) InternalWithRef(ref terra.Reference) ArgumentsAttributes

func (ArgumentsAttributes) Mode

func (ArgumentsAttributes) Name

type ArgumentsState

type ArgumentsState struct {
	ArgumentKind string `json:"argument_kind"`
	DataType     string `json:"data_type"`
	Mode         string `json:"mode"`
	Name         string `json:"name"`
}

type RemoteFunctionOptions

type RemoteFunctionOptions struct {
	// Connection: string, optional
	Connection terra.StringValue `hcl:"connection,attr"`
	// Endpoint: string, optional
	Endpoint terra.StringValue `hcl:"endpoint,attr"`
	// MaxBatchingRows: string, optional
	MaxBatchingRows terra.StringValue `hcl:"max_batching_rows,attr"`
	// UserDefinedContext: map of string, optional
	UserDefinedContext terra.MapValue[terra.StringValue] `hcl:"user_defined_context,attr"`
}

type RemoteFunctionOptionsAttributes

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

func (RemoteFunctionOptionsAttributes) Connection

func (RemoteFunctionOptionsAttributes) Endpoint

func (RemoteFunctionOptionsAttributes) InternalRef

func (RemoteFunctionOptionsAttributes) InternalTokens

func (rfo RemoteFunctionOptionsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RemoteFunctionOptionsAttributes) InternalWithRef

func (RemoteFunctionOptionsAttributes) MaxBatchingRows

func (rfo RemoteFunctionOptionsAttributes) MaxBatchingRows() terra.StringValue

func (RemoteFunctionOptionsAttributes) UserDefinedContext

type RemoteFunctionOptionsState

type RemoteFunctionOptionsState struct {
	Connection         string            `json:"connection"`
	Endpoint           string            `json:"endpoint"`
	MaxBatchingRows    string            `json:"max_batching_rows"`
	UserDefinedContext map[string]string `json:"user_defined_context"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gbr *Resource) Attributes() googleBigqueryRoutineAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gbr *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gbr *Resource) State() (*googleBigqueryRoutineState, bool)

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

func (*Resource) StateMust

func (gbr *Resource) StateMust() *googleBigqueryRoutineState

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

func (*Resource) Type

func (gbr *Resource) Type() string

Type returns the Terraform object type for Resource.

type SparkOptions

type SparkOptions struct {
	// ArchiveUris: list of string, optional
	ArchiveUris terra.ListValue[terra.StringValue] `hcl:"archive_uris,attr"`
	// Connection: string, optional
	Connection terra.StringValue `hcl:"connection,attr"`
	// ContainerImage: string, optional
	ContainerImage terra.StringValue `hcl:"container_image,attr"`
	// FileUris: list of string, optional
	FileUris terra.ListValue[terra.StringValue] `hcl:"file_uris,attr"`
	// JarUris: list of string, optional
	JarUris terra.ListValue[terra.StringValue] `hcl:"jar_uris,attr"`
	// MainClass: string, optional
	MainClass terra.StringValue `hcl:"main_class,attr"`
	// MainFileUri: string, optional
	MainFileUri terra.StringValue `hcl:"main_file_uri,attr"`
	// Properties: map of string, optional
	Properties terra.MapValue[terra.StringValue] `hcl:"properties,attr"`
	// PyFileUris: list of string, optional
	PyFileUris terra.ListValue[terra.StringValue] `hcl:"py_file_uris,attr"`
	// RuntimeVersion: string, optional
	RuntimeVersion terra.StringValue `hcl:"runtime_version,attr"`
}

type SparkOptionsAttributes

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

func (SparkOptionsAttributes) ArchiveUris

func (SparkOptionsAttributes) Connection

func (so SparkOptionsAttributes) Connection() terra.StringValue

func (SparkOptionsAttributes) ContainerImage

func (so SparkOptionsAttributes) ContainerImage() terra.StringValue

func (SparkOptionsAttributes) FileUris

func (SparkOptionsAttributes) InternalRef

func (so SparkOptionsAttributes) InternalRef() (terra.Reference, error)

func (SparkOptionsAttributes) InternalTokens

func (so SparkOptionsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SparkOptionsAttributes) InternalWithRef

func (SparkOptionsAttributes) JarUris

func (SparkOptionsAttributes) MainClass

func (so SparkOptionsAttributes) MainClass() terra.StringValue

func (SparkOptionsAttributes) MainFileUri

func (so SparkOptionsAttributes) MainFileUri() terra.StringValue

func (SparkOptionsAttributes) Properties

func (SparkOptionsAttributes) PyFileUris

func (SparkOptionsAttributes) RuntimeVersion

func (so SparkOptionsAttributes) RuntimeVersion() terra.StringValue

type SparkOptionsState

type SparkOptionsState struct {
	ArchiveUris    []string          `json:"archive_uris"`
	Connection     string            `json:"connection"`
	ContainerImage string            `json:"container_image"`
	FileUris       []string          `json:"file_uris"`
	JarUris        []string          `json:"jar_uris"`
	MainClass      string            `json:"main_class"`
	MainFileUri    string            `json:"main_file_uri"`
	Properties     map[string]string `json:"properties"`
	PyFileUris     []string          `json:"py_file_uris"`
	RuntimeVersion string            `json:"runtime_version"`
}

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