google_storage_insights_report_config

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 {
	// DisplayName: string, optional
	DisplayName terra.StringValue `hcl:"display_name,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Location: string, required
	Location terra.StringValue `hcl:"location,attr" validate:"required"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// CsvOptions: required
	CsvOptions *CsvOptions `hcl:"csv_options,block" validate:"required"`
	// FrequencyOptions: optional
	FrequencyOptions *FrequencyOptions `hcl:"frequency_options,block"`
	// ObjectMetadataReportOptions: optional
	ObjectMetadataReportOptions *ObjectMetadataReportOptions `hcl:"object_metadata_report_options,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_storage_insights_report_config.

type CsvOptions

type CsvOptions struct {
	// Delimiter: string, optional
	Delimiter terra.StringValue `hcl:"delimiter,attr"`
	// HeaderRequired: bool, optional
	HeaderRequired terra.BoolValue `hcl:"header_required,attr"`
	// RecordSeparator: string, optional
	RecordSeparator terra.StringValue `hcl:"record_separator,attr"`
}

type CsvOptionsAttributes

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

func (CsvOptionsAttributes) Delimiter

func (co CsvOptionsAttributes) Delimiter() terra.StringValue

func (CsvOptionsAttributes) HeaderRequired

func (co CsvOptionsAttributes) HeaderRequired() terra.BoolValue

func (CsvOptionsAttributes) InternalRef

func (co CsvOptionsAttributes) InternalRef() (terra.Reference, error)

func (CsvOptionsAttributes) InternalTokens

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

func (CsvOptionsAttributes) InternalWithRef

func (co CsvOptionsAttributes) InternalWithRef(ref terra.Reference) CsvOptionsAttributes

func (CsvOptionsAttributes) RecordSeparator

func (co CsvOptionsAttributes) RecordSeparator() terra.StringValue

type CsvOptionsState

type CsvOptionsState struct {
	Delimiter       string `json:"delimiter"`
	HeaderRequired  bool   `json:"header_required"`
	RecordSeparator string `json:"record_separator"`
}

type FrequencyOptions

type FrequencyOptions struct {
	// Frequency: string, required
	Frequency terra.StringValue `hcl:"frequency,attr" validate:"required"`
	// FrequencyOptionsEndDate: required
	EndDate *FrequencyOptionsEndDate `hcl:"end_date,block" validate:"required"`
	// FrequencyOptionsStartDate: required
	StartDate *FrequencyOptionsStartDate `hcl:"start_date,block" validate:"required"`
}

type FrequencyOptionsAttributes

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

func (FrequencyOptionsAttributes) EndDate

func (FrequencyOptionsAttributes) Frequency

func (FrequencyOptionsAttributes) InternalRef

func (fo FrequencyOptionsAttributes) InternalRef() (terra.Reference, error)

func (FrequencyOptionsAttributes) InternalTokens

func (fo FrequencyOptionsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (FrequencyOptionsAttributes) InternalWithRef

func (FrequencyOptionsAttributes) StartDate

type FrequencyOptionsEndDate

type FrequencyOptionsEndDate struct {
	// Day: number, required
	Day terra.NumberValue `hcl:"day,attr" validate:"required"`
	// Month: number, required
	Month terra.NumberValue `hcl:"month,attr" validate:"required"`
	// Year: number, required
	Year terra.NumberValue `hcl:"year,attr" validate:"required"`
}

type FrequencyOptionsEndDateAttributes

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

func (FrequencyOptionsEndDateAttributes) Day

func (FrequencyOptionsEndDateAttributes) InternalRef

func (FrequencyOptionsEndDateAttributes) InternalTokens

func (ed FrequencyOptionsEndDateAttributes) InternalTokens() (hclwrite.Tokens, error)

func (FrequencyOptionsEndDateAttributes) InternalWithRef

func (FrequencyOptionsEndDateAttributes) Month

func (FrequencyOptionsEndDateAttributes) Year

type FrequencyOptionsEndDateState

type FrequencyOptionsEndDateState struct {
	Day   float64 `json:"day"`
	Month float64 `json:"month"`
	Year  float64 `json:"year"`
}

type FrequencyOptionsStartDate

type FrequencyOptionsStartDate struct {
	// Day: number, required
	Day terra.NumberValue `hcl:"day,attr" validate:"required"`
	// Month: number, required
	Month terra.NumberValue `hcl:"month,attr" validate:"required"`
	// Year: number, required
	Year terra.NumberValue `hcl:"year,attr" validate:"required"`
}

type FrequencyOptionsStartDateAttributes

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

func (FrequencyOptionsStartDateAttributes) Day

func (FrequencyOptionsStartDateAttributes) InternalRef

func (FrequencyOptionsStartDateAttributes) InternalTokens

func (FrequencyOptionsStartDateAttributes) InternalWithRef

func (FrequencyOptionsStartDateAttributes) Month

func (FrequencyOptionsStartDateAttributes) Year

type FrequencyOptionsStartDateState

type FrequencyOptionsStartDateState struct {
	Day   float64 `json:"day"`
	Month float64 `json:"month"`
	Year  float64 `json:"year"`
}

type FrequencyOptionsState

type FrequencyOptionsState struct {
	Frequency string                           `json:"frequency"`
	EndDate   []FrequencyOptionsEndDateState   `json:"end_date"`
	StartDate []FrequencyOptionsStartDateState `json:"start_date"`
}

type ObjectMetadataReportOptions

type ObjectMetadataReportOptions struct {
	// MetadataFields: list of string, required
	MetadataFields terra.ListValue[terra.StringValue] `hcl:"metadata_fields,attr" validate:"required"`
	// ObjectMetadataReportOptionsStorageDestinationOptions: required
	StorageDestinationOptions *ObjectMetadataReportOptionsStorageDestinationOptions `hcl:"storage_destination_options,block" validate:"required"`
	// ObjectMetadataReportOptionsStorageFilters: optional
	StorageFilters *ObjectMetadataReportOptionsStorageFilters `hcl:"storage_filters,block"`
}

type ObjectMetadataReportOptionsAttributes

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

func (ObjectMetadataReportOptionsAttributes) InternalRef

func (ObjectMetadataReportOptionsAttributes) InternalTokens

func (ObjectMetadataReportOptionsAttributes) InternalWithRef

func (ObjectMetadataReportOptionsAttributes) MetadataFields

func (ObjectMetadataReportOptionsAttributes) StorageFilters

type ObjectMetadataReportOptionsState

type ObjectMetadataReportOptionsState struct {
	MetadataFields            []string                                                    `json:"metadata_fields"`
	StorageDestinationOptions []ObjectMetadataReportOptionsStorageDestinationOptionsState `json:"storage_destination_options"`
	StorageFilters            []ObjectMetadataReportOptionsStorageFiltersState            `json:"storage_filters"`
}

type ObjectMetadataReportOptionsStorageDestinationOptions

type ObjectMetadataReportOptionsStorageDestinationOptions struct {
	// Bucket: string, required
	Bucket terra.StringValue `hcl:"bucket,attr" validate:"required"`
	// DestinationPath: string, optional
	DestinationPath terra.StringValue `hcl:"destination_path,attr"`
}

type ObjectMetadataReportOptionsStorageDestinationOptionsAttributes

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

func (ObjectMetadataReportOptionsStorageDestinationOptionsAttributes) Bucket

func (ObjectMetadataReportOptionsStorageDestinationOptionsAttributes) DestinationPath

func (ObjectMetadataReportOptionsStorageDestinationOptionsAttributes) InternalRef

func (ObjectMetadataReportOptionsStorageDestinationOptionsAttributes) InternalTokens

func (ObjectMetadataReportOptionsStorageDestinationOptionsAttributes) InternalWithRef

type ObjectMetadataReportOptionsStorageDestinationOptionsState

type ObjectMetadataReportOptionsStorageDestinationOptionsState struct {
	Bucket          string `json:"bucket"`
	DestinationPath string `json:"destination_path"`
}

type ObjectMetadataReportOptionsStorageFilters

type ObjectMetadataReportOptionsStorageFilters struct {
	// Bucket: string, optional
	Bucket terra.StringValue `hcl:"bucket,attr"`
}

type ObjectMetadataReportOptionsStorageFiltersAttributes

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

func (ObjectMetadataReportOptionsStorageFiltersAttributes) Bucket

func (ObjectMetadataReportOptionsStorageFiltersAttributes) InternalRef

func (ObjectMetadataReportOptionsStorageFiltersAttributes) InternalTokens

func (ObjectMetadataReportOptionsStorageFiltersAttributes) InternalWithRef

type ObjectMetadataReportOptionsStorageFiltersState

type ObjectMetadataReportOptionsStorageFiltersState struct {
	Bucket string `json:"bucket"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gsirc *Resource) Attributes() googleStorageInsightsReportConfigAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gsirc *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gsirc *Resource) State() (*googleStorageInsightsReportConfigState, bool)

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

func (*Resource) StateMust

func (gsirc *Resource) StateMust() *googleStorageInsightsReportConfigState

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

func (*Resource) Type

func (gsirc *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