google_bigquery_job

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"`
	// JobId: string, required
	JobId terra.StringValue `hcl:"job_id,attr" validate:"required"`
	// JobTimeoutMs: string, optional
	JobTimeoutMs terra.StringValue `hcl:"job_timeout_ms,attr"`
	// Labels: map of string, optional
	Labels terra.MapValue[terra.StringValue] `hcl:"labels,attr"`
	// Location: string, optional
	Location terra.StringValue `hcl:"location,attr"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// Copy: optional
	Copy *Copy `hcl:"copy,block"`
	// Extract: optional
	Extract *Extract `hcl:"extract,block"`
	// Load: optional
	Load *Load `hcl:"load,block"`
	// Query: optional
	Query *Query `hcl:"query,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_bigquery_job.

type Copy

type Copy struct {
	// CreateDisposition: string, optional
	CreateDisposition terra.StringValue `hcl:"create_disposition,attr"`
	// WriteDisposition: string, optional
	WriteDisposition terra.StringValue `hcl:"write_disposition,attr"`
	// CopyDestinationEncryptionConfiguration: optional
	DestinationEncryptionConfiguration *CopyDestinationEncryptionConfiguration `hcl:"destination_encryption_configuration,block"`
	// CopyDestinationTable: optional
	DestinationTable *CopyDestinationTable `hcl:"destination_table,block"`
	// CopySourceTables: min=1
	SourceTables []CopySourceTables `hcl:"source_tables,block" validate:"min=1"`
}

type CopyAttributes

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

func (CopyAttributes) CreateDisposition

func (c CopyAttributes) CreateDisposition() terra.StringValue

func (CopyAttributes) DestinationEncryptionConfiguration

func (c CopyAttributes) DestinationEncryptionConfiguration() terra.ListValue[CopyDestinationEncryptionConfigurationAttributes]

func (CopyAttributes) DestinationTable

func (CopyAttributes) InternalRef

func (c CopyAttributes) InternalRef() (terra.Reference, error)

func (CopyAttributes) InternalTokens

func (c CopyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CopyAttributes) InternalWithRef

func (c CopyAttributes) InternalWithRef(ref terra.Reference) CopyAttributes

func (CopyAttributes) SourceTables

func (CopyAttributes) WriteDisposition

func (c CopyAttributes) WriteDisposition() terra.StringValue

type CopyDestinationEncryptionConfiguration

type CopyDestinationEncryptionConfiguration struct {
	// KmsKeyName: string, required
	KmsKeyName terra.StringValue `hcl:"kms_key_name,attr" validate:"required"`
}

type CopyDestinationEncryptionConfigurationAttributes

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

func (CopyDestinationEncryptionConfigurationAttributes) InternalRef

func (CopyDestinationEncryptionConfigurationAttributes) InternalTokens

func (CopyDestinationEncryptionConfigurationAttributes) InternalWithRef

func (CopyDestinationEncryptionConfigurationAttributes) KmsKeyName

func (CopyDestinationEncryptionConfigurationAttributes) KmsKeyVersion

type CopyDestinationEncryptionConfigurationState

type CopyDestinationEncryptionConfigurationState struct {
	KmsKeyName    string `json:"kms_key_name"`
	KmsKeyVersion string `json:"kms_key_version"`
}

type CopyDestinationTable

type CopyDestinationTable struct {
	// DatasetId: string, optional
	DatasetId terra.StringValue `hcl:"dataset_id,attr"`
	// ProjectId: string, optional
	ProjectId terra.StringValue `hcl:"project_id,attr"`
	// TableId: string, required
	TableId terra.StringValue `hcl:"table_id,attr" validate:"required"`
}

type CopyDestinationTableAttributes

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

func (CopyDestinationTableAttributes) DatasetId

func (CopyDestinationTableAttributes) InternalRef

func (CopyDestinationTableAttributes) InternalTokens

func (dt CopyDestinationTableAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CopyDestinationTableAttributes) InternalWithRef

func (CopyDestinationTableAttributes) ProjectId

func (CopyDestinationTableAttributes) TableId

type CopyDestinationTableState

type CopyDestinationTableState struct {
	DatasetId string `json:"dataset_id"`
	ProjectId string `json:"project_id"`
	TableId   string `json:"table_id"`
}

type CopySourceTables

type CopySourceTables struct {
	// DatasetId: string, optional
	DatasetId terra.StringValue `hcl:"dataset_id,attr"`
	// ProjectId: string, optional
	ProjectId terra.StringValue `hcl:"project_id,attr"`
	// TableId: string, required
	TableId terra.StringValue `hcl:"table_id,attr" validate:"required"`
}

type CopySourceTablesAttributes

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

func (CopySourceTablesAttributes) DatasetId

func (CopySourceTablesAttributes) InternalRef

func (st CopySourceTablesAttributes) InternalRef() (terra.Reference, error)

func (CopySourceTablesAttributes) InternalTokens

func (st CopySourceTablesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CopySourceTablesAttributes) InternalWithRef

func (CopySourceTablesAttributes) ProjectId

func (CopySourceTablesAttributes) TableId

type CopySourceTablesState

type CopySourceTablesState struct {
	DatasetId string `json:"dataset_id"`
	ProjectId string `json:"project_id"`
	TableId   string `json:"table_id"`
}

type CopyState

type CopyState struct {
	CreateDisposition                  string                                        `json:"create_disposition"`
	WriteDisposition                   string                                        `json:"write_disposition"`
	DestinationEncryptionConfiguration []CopyDestinationEncryptionConfigurationState `json:"destination_encryption_configuration"`
	DestinationTable                   []CopyDestinationTableState                   `json:"destination_table"`
	SourceTables                       []CopySourceTablesState                       `json:"source_tables"`
}

type Extract

type Extract struct {
	// Compression: string, optional
	Compression terra.StringValue `hcl:"compression,attr"`
	// DestinationFormat: string, optional
	DestinationFormat terra.StringValue `hcl:"destination_format,attr"`
	// DestinationUris: list of string, required
	DestinationUris terra.ListValue[terra.StringValue] `hcl:"destination_uris,attr" validate:"required"`
	// FieldDelimiter: string, optional
	FieldDelimiter terra.StringValue `hcl:"field_delimiter,attr"`
	// PrintHeader: bool, optional
	PrintHeader terra.BoolValue `hcl:"print_header,attr"`
	// UseAvroLogicalTypes: bool, optional
	UseAvroLogicalTypes terra.BoolValue `hcl:"use_avro_logical_types,attr"`
	// ExtractSourceModel: optional
	SourceModel *ExtractSourceModel `hcl:"source_model,block"`
	// ExtractSourceTable: optional
	SourceTable *ExtractSourceTable `hcl:"source_table,block"`
}

type ExtractAttributes

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

func (ExtractAttributes) Compression

func (e ExtractAttributes) Compression() terra.StringValue

func (ExtractAttributes) DestinationFormat

func (e ExtractAttributes) DestinationFormat() terra.StringValue

func (ExtractAttributes) DestinationUris

func (e ExtractAttributes) DestinationUris() terra.ListValue[terra.StringValue]

func (ExtractAttributes) FieldDelimiter

func (e ExtractAttributes) FieldDelimiter() terra.StringValue

func (ExtractAttributes) InternalRef

func (e ExtractAttributes) InternalRef() (terra.Reference, error)

func (ExtractAttributes) InternalTokens

func (e ExtractAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ExtractAttributes) InternalWithRef

func (e ExtractAttributes) InternalWithRef(ref terra.Reference) ExtractAttributes

func (ExtractAttributes) PrintHeader

func (e ExtractAttributes) PrintHeader() terra.BoolValue

func (ExtractAttributes) SourceModel

func (ExtractAttributes) SourceTable

func (ExtractAttributes) UseAvroLogicalTypes

func (e ExtractAttributes) UseAvroLogicalTypes() terra.BoolValue

type ExtractSourceModel

type ExtractSourceModel struct {
	// DatasetId: string, required
	DatasetId terra.StringValue `hcl:"dataset_id,attr" validate:"required"`
	// ModelId: string, required
	ModelId terra.StringValue `hcl:"model_id,attr" validate:"required"`
	// ProjectId: string, required
	ProjectId terra.StringValue `hcl:"project_id,attr" validate:"required"`
}

type ExtractSourceModelAttributes

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

func (ExtractSourceModelAttributes) DatasetId

func (ExtractSourceModelAttributes) InternalRef

func (sm ExtractSourceModelAttributes) InternalRef() (terra.Reference, error)

func (ExtractSourceModelAttributes) InternalTokens

func (sm ExtractSourceModelAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ExtractSourceModelAttributes) InternalWithRef

func (ExtractSourceModelAttributes) ModelId

func (ExtractSourceModelAttributes) ProjectId

type ExtractSourceModelState

type ExtractSourceModelState struct {
	DatasetId string `json:"dataset_id"`
	ModelId   string `json:"model_id"`
	ProjectId string `json:"project_id"`
}

type ExtractSourceTable

type ExtractSourceTable struct {
	// DatasetId: string, optional
	DatasetId terra.StringValue `hcl:"dataset_id,attr"`
	// ProjectId: string, optional
	ProjectId terra.StringValue `hcl:"project_id,attr"`
	// TableId: string, required
	TableId terra.StringValue `hcl:"table_id,attr" validate:"required"`
}

type ExtractSourceTableAttributes

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

func (ExtractSourceTableAttributes) DatasetId

func (ExtractSourceTableAttributes) InternalRef

func (st ExtractSourceTableAttributes) InternalRef() (terra.Reference, error)

func (ExtractSourceTableAttributes) InternalTokens

func (st ExtractSourceTableAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ExtractSourceTableAttributes) InternalWithRef

func (ExtractSourceTableAttributes) ProjectId

func (ExtractSourceTableAttributes) TableId

type ExtractSourceTableState

type ExtractSourceTableState struct {
	DatasetId string `json:"dataset_id"`
	ProjectId string `json:"project_id"`
	TableId   string `json:"table_id"`
}

type ExtractState

type ExtractState struct {
	Compression         string                    `json:"compression"`
	DestinationFormat   string                    `json:"destination_format"`
	DestinationUris     []string                  `json:"destination_uris"`
	FieldDelimiter      string                    `json:"field_delimiter"`
	PrintHeader         bool                      `json:"print_header"`
	UseAvroLogicalTypes bool                      `json:"use_avro_logical_types"`
	SourceModel         []ExtractSourceModelState `json:"source_model"`
	SourceTable         []ExtractSourceTableState `json:"source_table"`
}

type Load

type Load struct {
	// AllowJaggedRows: bool, optional
	AllowJaggedRows terra.BoolValue `hcl:"allow_jagged_rows,attr"`
	// AllowQuotedNewlines: bool, optional
	AllowQuotedNewlines terra.BoolValue `hcl:"allow_quoted_newlines,attr"`
	// Autodetect: bool, optional
	Autodetect terra.BoolValue `hcl:"autodetect,attr"`
	// CreateDisposition: string, optional
	CreateDisposition terra.StringValue `hcl:"create_disposition,attr"`
	// Encoding: string, optional
	Encoding terra.StringValue `hcl:"encoding,attr"`
	// FieldDelimiter: string, optional
	FieldDelimiter terra.StringValue `hcl:"field_delimiter,attr"`
	// IgnoreUnknownValues: bool, optional
	IgnoreUnknownValues terra.BoolValue `hcl:"ignore_unknown_values,attr"`
	// JsonExtension: string, optional
	JsonExtension terra.StringValue `hcl:"json_extension,attr"`
	// MaxBadRecords: number, optional
	MaxBadRecords terra.NumberValue `hcl:"max_bad_records,attr"`
	// NullMarker: string, optional
	NullMarker terra.StringValue `hcl:"null_marker,attr"`
	// ProjectionFields: list of string, optional
	ProjectionFields terra.ListValue[terra.StringValue] `hcl:"projection_fields,attr"`
	// Quote: string, optional
	Quote terra.StringValue `hcl:"quote,attr"`
	// SchemaUpdateOptions: list of string, optional
	SchemaUpdateOptions terra.ListValue[terra.StringValue] `hcl:"schema_update_options,attr"`
	// SkipLeadingRows: number, optional
	SkipLeadingRows terra.NumberValue `hcl:"skip_leading_rows,attr"`
	// SourceFormat: string, optional
	SourceFormat terra.StringValue `hcl:"source_format,attr"`
	// SourceUris: list of string, required
	SourceUris terra.ListValue[terra.StringValue] `hcl:"source_uris,attr" validate:"required"`
	// WriteDisposition: string, optional
	WriteDisposition terra.StringValue `hcl:"write_disposition,attr"`
	// LoadDestinationEncryptionConfiguration: optional
	DestinationEncryptionConfiguration *LoadDestinationEncryptionConfiguration `hcl:"destination_encryption_configuration,block"`
	// LoadDestinationTable: required
	DestinationTable *LoadDestinationTable `hcl:"destination_table,block" validate:"required"`
	// LoadParquetOptions: optional
	ParquetOptions *LoadParquetOptions `hcl:"parquet_options,block"`
	// LoadTimePartitioning: optional
	TimePartitioning *LoadTimePartitioning `hcl:"time_partitioning,block"`
}

type LoadAttributes

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

func (LoadAttributes) AllowJaggedRows

func (l LoadAttributes) AllowJaggedRows() terra.BoolValue

func (LoadAttributes) AllowQuotedNewlines

func (l LoadAttributes) AllowQuotedNewlines() terra.BoolValue

func (LoadAttributes) Autodetect

func (l LoadAttributes) Autodetect() terra.BoolValue

func (LoadAttributes) CreateDisposition

func (l LoadAttributes) CreateDisposition() terra.StringValue

func (LoadAttributes) DestinationEncryptionConfiguration

func (l LoadAttributes) DestinationEncryptionConfiguration() terra.ListValue[LoadDestinationEncryptionConfigurationAttributes]

func (LoadAttributes) DestinationTable

func (LoadAttributes) Encoding

func (l LoadAttributes) Encoding() terra.StringValue

func (LoadAttributes) FieldDelimiter

func (l LoadAttributes) FieldDelimiter() terra.StringValue

func (LoadAttributes) IgnoreUnknownValues

func (l LoadAttributes) IgnoreUnknownValues() terra.BoolValue

func (LoadAttributes) InternalRef

func (l LoadAttributes) InternalRef() (terra.Reference, error)

func (LoadAttributes) InternalTokens

func (l LoadAttributes) InternalTokens() (hclwrite.Tokens, error)

func (LoadAttributes) InternalWithRef

func (l LoadAttributes) InternalWithRef(ref terra.Reference) LoadAttributes

func (LoadAttributes) JsonExtension

func (l LoadAttributes) JsonExtension() terra.StringValue

func (LoadAttributes) MaxBadRecords

func (l LoadAttributes) MaxBadRecords() terra.NumberValue

func (LoadAttributes) NullMarker

func (l LoadAttributes) NullMarker() terra.StringValue

func (LoadAttributes) ParquetOptions

func (LoadAttributes) ProjectionFields

func (l LoadAttributes) ProjectionFields() terra.ListValue[terra.StringValue]

func (LoadAttributes) Quote

func (l LoadAttributes) Quote() terra.StringValue

func (LoadAttributes) SchemaUpdateOptions

func (l LoadAttributes) SchemaUpdateOptions() terra.ListValue[terra.StringValue]

func (LoadAttributes) SkipLeadingRows

func (l LoadAttributes) SkipLeadingRows() terra.NumberValue

func (LoadAttributes) SourceFormat

func (l LoadAttributes) SourceFormat() terra.StringValue

func (LoadAttributes) SourceUris

func (LoadAttributes) TimePartitioning

func (LoadAttributes) WriteDisposition

func (l LoadAttributes) WriteDisposition() terra.StringValue

type LoadDestinationEncryptionConfiguration

type LoadDestinationEncryptionConfiguration struct {
	// KmsKeyName: string, required
	KmsKeyName terra.StringValue `hcl:"kms_key_name,attr" validate:"required"`
}

type LoadDestinationEncryptionConfigurationAttributes

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

func (LoadDestinationEncryptionConfigurationAttributes) InternalRef

func (LoadDestinationEncryptionConfigurationAttributes) InternalTokens

func (LoadDestinationEncryptionConfigurationAttributes) InternalWithRef

func (LoadDestinationEncryptionConfigurationAttributes) KmsKeyName

func (LoadDestinationEncryptionConfigurationAttributes) KmsKeyVersion

type LoadDestinationEncryptionConfigurationState

type LoadDestinationEncryptionConfigurationState struct {
	KmsKeyName    string `json:"kms_key_name"`
	KmsKeyVersion string `json:"kms_key_version"`
}

type LoadDestinationTable

type LoadDestinationTable struct {
	// DatasetId: string, optional
	DatasetId terra.StringValue `hcl:"dataset_id,attr"`
	// ProjectId: string, optional
	ProjectId terra.StringValue `hcl:"project_id,attr"`
	// TableId: string, required
	TableId terra.StringValue `hcl:"table_id,attr" validate:"required"`
}

type LoadDestinationTableAttributes

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

func (LoadDestinationTableAttributes) DatasetId

func (LoadDestinationTableAttributes) InternalRef

func (LoadDestinationTableAttributes) InternalTokens

func (dt LoadDestinationTableAttributes) InternalTokens() (hclwrite.Tokens, error)

func (LoadDestinationTableAttributes) InternalWithRef

func (LoadDestinationTableAttributes) ProjectId

func (LoadDestinationTableAttributes) TableId

type LoadDestinationTableState

type LoadDestinationTableState struct {
	DatasetId string `json:"dataset_id"`
	ProjectId string `json:"project_id"`
	TableId   string `json:"table_id"`
}

type LoadParquetOptions

type LoadParquetOptions struct {
	// EnableListInference: bool, optional
	EnableListInference terra.BoolValue `hcl:"enable_list_inference,attr"`
	// EnumAsString: bool, optional
	EnumAsString terra.BoolValue `hcl:"enum_as_string,attr"`
}

type LoadParquetOptionsAttributes

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

func (LoadParquetOptionsAttributes) EnableListInference

func (po LoadParquetOptionsAttributes) EnableListInference() terra.BoolValue

func (LoadParquetOptionsAttributes) EnumAsString

func (po LoadParquetOptionsAttributes) EnumAsString() terra.BoolValue

func (LoadParquetOptionsAttributes) InternalRef

func (po LoadParquetOptionsAttributes) InternalRef() (terra.Reference, error)

func (LoadParquetOptionsAttributes) InternalTokens

func (po LoadParquetOptionsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (LoadParquetOptionsAttributes) InternalWithRef

type LoadParquetOptionsState

type LoadParquetOptionsState struct {
	EnableListInference bool `json:"enable_list_inference"`
	EnumAsString        bool `json:"enum_as_string"`
}

type LoadState

type LoadState struct {
	AllowJaggedRows                    bool                                          `json:"allow_jagged_rows"`
	AllowQuotedNewlines                bool                                          `json:"allow_quoted_newlines"`
	Autodetect                         bool                                          `json:"autodetect"`
	CreateDisposition                  string                                        `json:"create_disposition"`
	Encoding                           string                                        `json:"encoding"`
	FieldDelimiter                     string                                        `json:"field_delimiter"`
	IgnoreUnknownValues                bool                                          `json:"ignore_unknown_values"`
	JsonExtension                      string                                        `json:"json_extension"`
	MaxBadRecords                      float64                                       `json:"max_bad_records"`
	NullMarker                         string                                        `json:"null_marker"`
	ProjectionFields                   []string                                      `json:"projection_fields"`
	Quote                              string                                        `json:"quote"`
	SchemaUpdateOptions                []string                                      `json:"schema_update_options"`
	SkipLeadingRows                    float64                                       `json:"skip_leading_rows"`
	SourceFormat                       string                                        `json:"source_format"`
	SourceUris                         []string                                      `json:"source_uris"`
	WriteDisposition                   string                                        `json:"write_disposition"`
	DestinationEncryptionConfiguration []LoadDestinationEncryptionConfigurationState `json:"destination_encryption_configuration"`
	DestinationTable                   []LoadDestinationTableState                   `json:"destination_table"`
	ParquetOptions                     []LoadParquetOptionsState                     `json:"parquet_options"`
	TimePartitioning                   []LoadTimePartitioningState                   `json:"time_partitioning"`
}

type LoadTimePartitioning

type LoadTimePartitioning struct {
	// ExpirationMs: string, optional
	ExpirationMs terra.StringValue `hcl:"expiration_ms,attr"`
	// Field: string, optional
	Field terra.StringValue `hcl:"field,attr"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
}

type LoadTimePartitioningAttributes

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

func (LoadTimePartitioningAttributes) ExpirationMs

func (LoadTimePartitioningAttributes) Field

func (LoadTimePartitioningAttributes) InternalRef

func (LoadTimePartitioningAttributes) InternalTokens

func (tp LoadTimePartitioningAttributes) InternalTokens() (hclwrite.Tokens, error)

func (LoadTimePartitioningAttributes) InternalWithRef

func (LoadTimePartitioningAttributes) Type

type LoadTimePartitioningState

type LoadTimePartitioningState struct {
	ExpirationMs string `json:"expiration_ms"`
	Field        string `json:"field"`
	Type         string `json:"type"`
}

type Query

type Query struct {
	// AllowLargeResults: bool, optional
	AllowLargeResults terra.BoolValue `hcl:"allow_large_results,attr"`
	// CreateDisposition: string, optional
	CreateDisposition terra.StringValue `hcl:"create_disposition,attr"`
	// FlattenResults: bool, optional
	FlattenResults terra.BoolValue `hcl:"flatten_results,attr"`
	// MaximumBillingTier: number, optional
	MaximumBillingTier terra.NumberValue `hcl:"maximum_billing_tier,attr"`
	// MaximumBytesBilled: string, optional
	MaximumBytesBilled terra.StringValue `hcl:"maximum_bytes_billed,attr"`
	// ParameterMode: string, optional
	ParameterMode terra.StringValue `hcl:"parameter_mode,attr"`
	// Priority: string, optional
	Priority terra.StringValue `hcl:"priority,attr"`
	// Query: string, required
	Query terra.StringValue `hcl:"query,attr" validate:"required"`
	// SchemaUpdateOptions: list of string, optional
	SchemaUpdateOptions terra.ListValue[terra.StringValue] `hcl:"schema_update_options,attr"`
	// UseLegacySql: bool, optional
	UseLegacySql terra.BoolValue `hcl:"use_legacy_sql,attr"`
	// UseQueryCache: bool, optional
	UseQueryCache terra.BoolValue `hcl:"use_query_cache,attr"`
	// WriteDisposition: string, optional
	WriteDisposition terra.StringValue `hcl:"write_disposition,attr"`
	// QueryDefaultDataset: optional
	DefaultDataset *QueryDefaultDataset `hcl:"default_dataset,block"`
	// QueryDestinationEncryptionConfiguration: optional
	DestinationEncryptionConfiguration *QueryDestinationEncryptionConfiguration `hcl:"destination_encryption_configuration,block"`
	// QueryDestinationTable: optional
	DestinationTable *QueryDestinationTable `hcl:"destination_table,block"`
	// QueryScriptOptions: optional
	ScriptOptions *QueryScriptOptions `hcl:"script_options,block"`
	// QueryUserDefinedFunctionResources: min=0
	UserDefinedFunctionResources []QueryUserDefinedFunctionResources `hcl:"user_defined_function_resources,block" validate:"min=0"`
}

type QueryAttributes

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

func (QueryAttributes) AllowLargeResults

func (q QueryAttributes) AllowLargeResults() terra.BoolValue

func (QueryAttributes) CreateDisposition

func (q QueryAttributes) CreateDisposition() terra.StringValue

func (QueryAttributes) DefaultDataset

func (QueryAttributes) DestinationEncryptionConfiguration

func (q QueryAttributes) DestinationEncryptionConfiguration() terra.ListValue[QueryDestinationEncryptionConfigurationAttributes]

func (QueryAttributes) DestinationTable

func (QueryAttributes) FlattenResults

func (q QueryAttributes) FlattenResults() terra.BoolValue

func (QueryAttributes) InternalRef

func (q QueryAttributes) InternalRef() (terra.Reference, error)

func (QueryAttributes) InternalTokens

func (q QueryAttributes) InternalTokens() (hclwrite.Tokens, error)

func (QueryAttributes) InternalWithRef

func (q QueryAttributes) InternalWithRef(ref terra.Reference) QueryAttributes

func (QueryAttributes) MaximumBillingTier

func (q QueryAttributes) MaximumBillingTier() terra.NumberValue

func (QueryAttributes) MaximumBytesBilled

func (q QueryAttributes) MaximumBytesBilled() terra.StringValue

func (QueryAttributes) ParameterMode

func (q QueryAttributes) ParameterMode() terra.StringValue

func (QueryAttributes) Priority

func (q QueryAttributes) Priority() terra.StringValue

func (QueryAttributes) Query

func (q QueryAttributes) Query() terra.StringValue

func (QueryAttributes) SchemaUpdateOptions

func (q QueryAttributes) SchemaUpdateOptions() terra.ListValue[terra.StringValue]

func (QueryAttributes) ScriptOptions

func (QueryAttributes) UseLegacySql

func (q QueryAttributes) UseLegacySql() terra.BoolValue

func (QueryAttributes) UseQueryCache

func (q QueryAttributes) UseQueryCache() terra.BoolValue

func (QueryAttributes) UserDefinedFunctionResources

func (QueryAttributes) WriteDisposition

func (q QueryAttributes) WriteDisposition() terra.StringValue

type QueryDefaultDataset

type QueryDefaultDataset struct {
	// DatasetId: string, required
	DatasetId terra.StringValue `hcl:"dataset_id,attr" validate:"required"`
	// ProjectId: string, optional
	ProjectId terra.StringValue `hcl:"project_id,attr"`
}

type QueryDefaultDatasetAttributes

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

func (QueryDefaultDatasetAttributes) DatasetId

func (QueryDefaultDatasetAttributes) InternalRef

func (dd QueryDefaultDatasetAttributes) InternalRef() (terra.Reference, error)

func (QueryDefaultDatasetAttributes) InternalTokens

func (dd QueryDefaultDatasetAttributes) InternalTokens() (hclwrite.Tokens, error)

func (QueryDefaultDatasetAttributes) InternalWithRef

func (QueryDefaultDatasetAttributes) ProjectId

type QueryDefaultDatasetState

type QueryDefaultDatasetState struct {
	DatasetId string `json:"dataset_id"`
	ProjectId string `json:"project_id"`
}

type QueryDestinationEncryptionConfiguration

type QueryDestinationEncryptionConfiguration struct {
	// KmsKeyName: string, required
	KmsKeyName terra.StringValue `hcl:"kms_key_name,attr" validate:"required"`
}

type QueryDestinationEncryptionConfigurationAttributes

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

func (QueryDestinationEncryptionConfigurationAttributes) InternalRef

func (QueryDestinationEncryptionConfigurationAttributes) InternalTokens

func (QueryDestinationEncryptionConfigurationAttributes) InternalWithRef

func (QueryDestinationEncryptionConfigurationAttributes) KmsKeyName

func (QueryDestinationEncryptionConfigurationAttributes) KmsKeyVersion

type QueryDestinationEncryptionConfigurationState

type QueryDestinationEncryptionConfigurationState struct {
	KmsKeyName    string `json:"kms_key_name"`
	KmsKeyVersion string `json:"kms_key_version"`
}

type QueryDestinationTable

type QueryDestinationTable struct {
	// DatasetId: string, optional
	DatasetId terra.StringValue `hcl:"dataset_id,attr"`
	// ProjectId: string, optional
	ProjectId terra.StringValue `hcl:"project_id,attr"`
	// TableId: string, required
	TableId terra.StringValue `hcl:"table_id,attr" validate:"required"`
}

type QueryDestinationTableAttributes

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

func (QueryDestinationTableAttributes) DatasetId

func (QueryDestinationTableAttributes) InternalRef

func (QueryDestinationTableAttributes) InternalTokens

func (dt QueryDestinationTableAttributes) InternalTokens() (hclwrite.Tokens, error)

func (QueryDestinationTableAttributes) InternalWithRef

func (QueryDestinationTableAttributes) ProjectId

func (QueryDestinationTableAttributes) TableId

type QueryDestinationTableState

type QueryDestinationTableState struct {
	DatasetId string `json:"dataset_id"`
	ProjectId string `json:"project_id"`
	TableId   string `json:"table_id"`
}

type QueryScriptOptions

type QueryScriptOptions struct {
	// KeyResultStatement: string, optional
	KeyResultStatement terra.StringValue `hcl:"key_result_statement,attr"`
	// StatementByteBudget: string, optional
	StatementByteBudget terra.StringValue `hcl:"statement_byte_budget,attr"`
	// StatementTimeoutMs: string, optional
	StatementTimeoutMs terra.StringValue `hcl:"statement_timeout_ms,attr"`
}

type QueryScriptOptionsAttributes

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

func (QueryScriptOptionsAttributes) InternalRef

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

func (QueryScriptOptionsAttributes) InternalTokens

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

func (QueryScriptOptionsAttributes) InternalWithRef

func (QueryScriptOptionsAttributes) KeyResultStatement

func (so QueryScriptOptionsAttributes) KeyResultStatement() terra.StringValue

func (QueryScriptOptionsAttributes) StatementByteBudget

func (so QueryScriptOptionsAttributes) StatementByteBudget() terra.StringValue

func (QueryScriptOptionsAttributes) StatementTimeoutMs

func (so QueryScriptOptionsAttributes) StatementTimeoutMs() terra.StringValue

type QueryScriptOptionsState

type QueryScriptOptionsState struct {
	KeyResultStatement  string `json:"key_result_statement"`
	StatementByteBudget string `json:"statement_byte_budget"`
	StatementTimeoutMs  string `json:"statement_timeout_ms"`
}

type QueryState

type QueryState struct {
	AllowLargeResults                  bool                                           `json:"allow_large_results"`
	CreateDisposition                  string                                         `json:"create_disposition"`
	FlattenResults                     bool                                           `json:"flatten_results"`
	MaximumBillingTier                 float64                                        `json:"maximum_billing_tier"`
	MaximumBytesBilled                 string                                         `json:"maximum_bytes_billed"`
	ParameterMode                      string                                         `json:"parameter_mode"`
	Priority                           string                                         `json:"priority"`
	Query                              string                                         `json:"query"`
	SchemaUpdateOptions                []string                                       `json:"schema_update_options"`
	UseLegacySql                       bool                                           `json:"use_legacy_sql"`
	UseQueryCache                      bool                                           `json:"use_query_cache"`
	WriteDisposition                   string                                         `json:"write_disposition"`
	DefaultDataset                     []QueryDefaultDatasetState                     `json:"default_dataset"`
	DestinationEncryptionConfiguration []QueryDestinationEncryptionConfigurationState `json:"destination_encryption_configuration"`
	DestinationTable                   []QueryDestinationTableState                   `json:"destination_table"`
	ScriptOptions                      []QueryScriptOptionsState                      `json:"script_options"`
	UserDefinedFunctionResources       []QueryUserDefinedFunctionResourcesState       `json:"user_defined_function_resources"`
}

type QueryUserDefinedFunctionResources

type QueryUserDefinedFunctionResources struct {
	// InlineCode: string, optional
	InlineCode terra.StringValue `hcl:"inline_code,attr"`
	// ResourceUri: string, optional
	ResourceUri terra.StringValue `hcl:"resource_uri,attr"`
}

type QueryUserDefinedFunctionResourcesAttributes

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

func (QueryUserDefinedFunctionResourcesAttributes) InlineCode

func (QueryUserDefinedFunctionResourcesAttributes) InternalRef

func (QueryUserDefinedFunctionResourcesAttributes) InternalTokens

func (QueryUserDefinedFunctionResourcesAttributes) InternalWithRef

func (QueryUserDefinedFunctionResourcesAttributes) ResourceUri

type QueryUserDefinedFunctionResourcesState

type QueryUserDefinedFunctionResourcesState struct {
	InlineCode  string `json:"inline_code"`
	ResourceUri string `json:"resource_uri"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gbj *Resource) Attributes() googleBigqueryJobAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gbj *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gbj *Resource) State() (*googleBigqueryJobState, bool)

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

func (*Resource) StateMust

func (gbj *Resource) StateMust() *googleBigqueryJobState

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

func (*Resource) Type

func (gbj *Resource) Type() string

Type returns the Terraform object type for Resource.

type StatusAttributes

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

func (StatusAttributes) ErrorResult

func (StatusAttributes) Errors

func (StatusAttributes) InternalRef

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

func (StatusAttributes) InternalTokens

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

func (StatusAttributes) InternalWithRef

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

func (StatusAttributes) State

type StatusErrorResultAttributes

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

func (StatusErrorResultAttributes) InternalRef

func (er StatusErrorResultAttributes) InternalRef() (terra.Reference, error)

func (StatusErrorResultAttributes) InternalTokens

func (er StatusErrorResultAttributes) InternalTokens() (hclwrite.Tokens, error)

func (StatusErrorResultAttributes) InternalWithRef

func (StatusErrorResultAttributes) Location

func (StatusErrorResultAttributes) Message

func (StatusErrorResultAttributes) Reason

type StatusErrorResultState

type StatusErrorResultState struct {
	Location string `json:"location"`
	Message  string `json:"message"`
	Reason   string `json:"reason"`
}

type StatusErrorsAttributes

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

func (StatusErrorsAttributes) InternalRef

func (e StatusErrorsAttributes) InternalRef() (terra.Reference, error)

func (StatusErrorsAttributes) InternalTokens

func (e StatusErrorsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (StatusErrorsAttributes) InternalWithRef

func (StatusErrorsAttributes) Location

func (StatusErrorsAttributes) Message

func (StatusErrorsAttributes) Reason

type StatusErrorsState

type StatusErrorsState struct {
	Location string `json:"location"`
	Message  string `json:"message"`
	Reason   string `json:"reason"`
}

type StatusState

type StatusState struct {
	State       string                   `json:"state"`
	ErrorResult []StatusErrorResultState `json:"error_result"`
	Errors      []StatusErrorsState      `json:"errors"`
}

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