google_dataplex_asset

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 {
	// DataplexZone: string, required
	DataplexZone terra.StringValue `hcl:"dataplex_zone,attr" validate:"required"`
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// DisplayName: string, optional
	DisplayName terra.StringValue `hcl:"display_name,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Labels: map of string, optional
	Labels terra.MapValue[terra.StringValue] `hcl:"labels,attr"`
	// Lake: string, required
	Lake terra.StringValue `hcl:"lake,attr" validate:"required"`
	// 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"`
	// DiscoverySpec: required
	DiscoverySpec *DiscoverySpec `hcl:"discovery_spec,block" validate:"required"`
	// ResourceSpec: required
	ResourceSpec *ResourceSpec `hcl:"resource_spec,block" validate:"required"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_dataplex_asset.

type DiscoverySpec

type DiscoverySpec struct {
	// Enabled: bool, required
	Enabled terra.BoolValue `hcl:"enabled,attr" validate:"required"`
	// ExcludePatterns: list of string, optional
	ExcludePatterns terra.ListValue[terra.StringValue] `hcl:"exclude_patterns,attr"`
	// IncludePatterns: list of string, optional
	IncludePatterns terra.ListValue[terra.StringValue] `hcl:"include_patterns,attr"`
	// Schedule: string, optional
	Schedule terra.StringValue `hcl:"schedule,attr"`
	// DiscoverySpecCsvOptions: optional
	CsvOptions *DiscoverySpecCsvOptions `hcl:"csv_options,block"`
	// DiscoverySpecJsonOptions: optional
	JsonOptions *DiscoverySpecJsonOptions `hcl:"json_options,block"`
}

type DiscoverySpecAttributes

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

func (DiscoverySpecAttributes) CsvOptions

func (DiscoverySpecAttributes) Enabled

func (DiscoverySpecAttributes) ExcludePatterns

func (DiscoverySpecAttributes) IncludePatterns

func (DiscoverySpecAttributes) InternalRef

func (ds DiscoverySpecAttributes) InternalRef() (terra.Reference, error)

func (DiscoverySpecAttributes) InternalTokens

func (ds DiscoverySpecAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DiscoverySpecAttributes) InternalWithRef

func (DiscoverySpecAttributes) JsonOptions

func (DiscoverySpecAttributes) Schedule

type DiscoverySpecCsvOptions

type DiscoverySpecCsvOptions struct {
	// Delimiter: string, optional
	Delimiter terra.StringValue `hcl:"delimiter,attr"`
	// DisableTypeInference: bool, optional
	DisableTypeInference terra.BoolValue `hcl:"disable_type_inference,attr"`
	// Encoding: string, optional
	Encoding terra.StringValue `hcl:"encoding,attr"`
	// HeaderRows: number, optional
	HeaderRows terra.NumberValue `hcl:"header_rows,attr"`
}

type DiscoverySpecCsvOptionsAttributes

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

func (DiscoverySpecCsvOptionsAttributes) Delimiter

func (DiscoverySpecCsvOptionsAttributes) DisableTypeInference

func (co DiscoverySpecCsvOptionsAttributes) DisableTypeInference() terra.BoolValue

func (DiscoverySpecCsvOptionsAttributes) Encoding

func (DiscoverySpecCsvOptionsAttributes) HeaderRows

func (DiscoverySpecCsvOptionsAttributes) InternalRef

func (DiscoverySpecCsvOptionsAttributes) InternalTokens

func (co DiscoverySpecCsvOptionsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DiscoverySpecCsvOptionsAttributes) InternalWithRef

type DiscoverySpecCsvOptionsState

type DiscoverySpecCsvOptionsState struct {
	Delimiter            string  `json:"delimiter"`
	DisableTypeInference bool    `json:"disable_type_inference"`
	Encoding             string  `json:"encoding"`
	HeaderRows           float64 `json:"header_rows"`
}

type DiscoverySpecJsonOptions

type DiscoverySpecJsonOptions struct {
	// DisableTypeInference: bool, optional
	DisableTypeInference terra.BoolValue `hcl:"disable_type_inference,attr"`
	// Encoding: string, optional
	Encoding terra.StringValue `hcl:"encoding,attr"`
}

type DiscoverySpecJsonOptionsAttributes

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

func (DiscoverySpecJsonOptionsAttributes) DisableTypeInference

func (jo DiscoverySpecJsonOptionsAttributes) DisableTypeInference() terra.BoolValue

func (DiscoverySpecJsonOptionsAttributes) Encoding

func (DiscoverySpecJsonOptionsAttributes) InternalRef

func (DiscoverySpecJsonOptionsAttributes) InternalTokens

func (DiscoverySpecJsonOptionsAttributes) InternalWithRef

type DiscoverySpecJsonOptionsState

type DiscoverySpecJsonOptionsState struct {
	DisableTypeInference bool   `json:"disable_type_inference"`
	Encoding             string `json:"encoding"`
}

type DiscoverySpecState

type DiscoverySpecState struct {
	Enabled         bool                            `json:"enabled"`
	ExcludePatterns []string                        `json:"exclude_patterns"`
	IncludePatterns []string                        `json:"include_patterns"`
	Schedule        string                          `json:"schedule"`
	CsvOptions      []DiscoverySpecCsvOptionsState  `json:"csv_options"`
	JsonOptions     []DiscoverySpecJsonOptionsState `json:"json_options"`
}

type DiscoveryStatusAttributes

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

func (DiscoveryStatusAttributes) InternalRef

func (ds DiscoveryStatusAttributes) InternalRef() (terra.Reference, error)

func (DiscoveryStatusAttributes) InternalTokens

func (ds DiscoveryStatusAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DiscoveryStatusAttributes) InternalWithRef

func (DiscoveryStatusAttributes) LastRunDuration

func (ds DiscoveryStatusAttributes) LastRunDuration() terra.StringValue

func (DiscoveryStatusAttributes) LastRunTime

func (ds DiscoveryStatusAttributes) LastRunTime() terra.StringValue

func (DiscoveryStatusAttributes) Message

func (DiscoveryStatusAttributes) State

func (DiscoveryStatusAttributes) Stats

func (DiscoveryStatusAttributes) UpdateTime

type DiscoveryStatusState

type DiscoveryStatusState struct {
	LastRunDuration string                      `json:"last_run_duration"`
	LastRunTime     string                      `json:"last_run_time"`
	Message         string                      `json:"message"`
	State           string                      `json:"state"`
	UpdateTime      string                      `json:"update_time"`
	Stats           []DiscoveryStatusStatsState `json:"stats"`
}

type DiscoveryStatusStatsAttributes

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

func (DiscoveryStatusStatsAttributes) DataItems

func (DiscoveryStatusStatsAttributes) DataSize

func (DiscoveryStatusStatsAttributes) Filesets

func (DiscoveryStatusStatsAttributes) InternalRef

func (DiscoveryStatusStatsAttributes) InternalTokens

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

func (DiscoveryStatusStatsAttributes) InternalWithRef

func (DiscoveryStatusStatsAttributes) Tables

type DiscoveryStatusStatsState

type DiscoveryStatusStatsState struct {
	DataItems float64 `json:"data_items"`
	DataSize  float64 `json:"data_size"`
	Filesets  float64 `json:"filesets"`
	Tables    float64 `json:"tables"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gda *Resource) Attributes() googleDataplexAssetAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gda *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gda *Resource) State() (*googleDataplexAssetState, bool)

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

func (*Resource) StateMust

func (gda *Resource) StateMust() *googleDataplexAssetState

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

func (*Resource) Type

func (gda *Resource) Type() string

Type returns the Terraform object type for Resource.

type ResourceSpec

type ResourceSpec struct {
	// Name: string, optional
	Name terra.StringValue `hcl:"name,attr"`
	// ReadAccessMode: string, optional
	ReadAccessMode terra.StringValue `hcl:"read_access_mode,attr"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
}

type ResourceSpecAttributes

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

func (ResourceSpecAttributes) InternalRef

func (rs ResourceSpecAttributes) InternalRef() (terra.Reference, error)

func (ResourceSpecAttributes) InternalTokens

func (rs ResourceSpecAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ResourceSpecAttributes) InternalWithRef

func (ResourceSpecAttributes) Name

func (ResourceSpecAttributes) ReadAccessMode

func (rs ResourceSpecAttributes) ReadAccessMode() terra.StringValue

func (ResourceSpecAttributes) Type

type ResourceSpecState

type ResourceSpecState struct {
	Name           string `json:"name"`
	ReadAccessMode string `json:"read_access_mode"`
	Type           string `json:"type"`
}

type ResourceStatusAttributes

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

func (ResourceStatusAttributes) InternalRef

func (rs ResourceStatusAttributes) InternalRef() (terra.Reference, error)

func (ResourceStatusAttributes) InternalTokens

func (rs ResourceStatusAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ResourceStatusAttributes) InternalWithRef

func (ResourceStatusAttributes) Message

func (ResourceStatusAttributes) State

func (ResourceStatusAttributes) UpdateTime

func (rs ResourceStatusAttributes) UpdateTime() terra.StringValue

type ResourceStatusState

type ResourceStatusState struct {
	Message    string `json:"message"`
	State      string `json:"state"`
	UpdateTime string `json:"update_time"`
}

type SecurityStatusAttributes

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

func (SecurityStatusAttributes) InternalRef

func (ss SecurityStatusAttributes) InternalRef() (terra.Reference, error)

func (SecurityStatusAttributes) InternalTokens

func (ss SecurityStatusAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SecurityStatusAttributes) InternalWithRef

func (SecurityStatusAttributes) Message

func (SecurityStatusAttributes) State

func (SecurityStatusAttributes) UpdateTime

func (ss SecurityStatusAttributes) UpdateTime() terra.StringValue

type SecurityStatusState

type SecurityStatusState struct {
	Message    string `json:"message"`
	State      string `json:"state"`
	UpdateTime string `json:"update_time"`
}

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