google_compute_node_group

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"`
	// InitialSize: number, optional
	InitialSize terra.NumberValue `hcl:"initial_size,attr"`
	// MaintenanceInterval: string, optional
	MaintenanceInterval terra.StringValue `hcl:"maintenance_interval,attr"`
	// MaintenancePolicy: string, optional
	MaintenancePolicy terra.StringValue `hcl:"maintenance_policy,attr"`
	// Name: string, optional
	Name terra.StringValue `hcl:"name,attr"`
	// NodeTemplate: string, required
	NodeTemplate terra.StringValue `hcl:"node_template,attr" validate:"required"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// Zone: string, optional
	Zone terra.StringValue `hcl:"zone,attr"`
	// AutoscalingPolicy: optional
	AutoscalingPolicy *AutoscalingPolicy `hcl:"autoscaling_policy,block"`
	// MaintenanceWindow: optional
	MaintenanceWindow *MaintenanceWindow `hcl:"maintenance_window,block"`
	// ShareSettings: optional
	ShareSettings *ShareSettings `hcl:"share_settings,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_compute_node_group.

type AutoscalingPolicy

type AutoscalingPolicy struct {
	// MaxNodes: number, optional
	MaxNodes terra.NumberValue `hcl:"max_nodes,attr"`
	// MinNodes: number, optional
	MinNodes terra.NumberValue `hcl:"min_nodes,attr"`
	// Mode: string, optional
	Mode terra.StringValue `hcl:"mode,attr"`
}

type AutoscalingPolicyAttributes

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

func (AutoscalingPolicyAttributes) InternalRef

func (ap AutoscalingPolicyAttributes) InternalRef() (terra.Reference, error)

func (AutoscalingPolicyAttributes) InternalTokens

func (ap AutoscalingPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AutoscalingPolicyAttributes) InternalWithRef

func (AutoscalingPolicyAttributes) MaxNodes

func (AutoscalingPolicyAttributes) MinNodes

func (AutoscalingPolicyAttributes) Mode

type AutoscalingPolicyState

type AutoscalingPolicyState struct {
	MaxNodes float64 `json:"max_nodes"`
	MinNodes float64 `json:"min_nodes"`
	Mode     string  `json:"mode"`
}

type MaintenanceWindow

type MaintenanceWindow struct {
	// StartTime: string, required
	StartTime terra.StringValue `hcl:"start_time,attr" validate:"required"`
}

type MaintenanceWindowAttributes

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

func (MaintenanceWindowAttributes) InternalRef

func (mw MaintenanceWindowAttributes) InternalRef() (terra.Reference, error)

func (MaintenanceWindowAttributes) InternalTokens

func (mw MaintenanceWindowAttributes) InternalTokens() (hclwrite.Tokens, error)

func (MaintenanceWindowAttributes) InternalWithRef

func (MaintenanceWindowAttributes) StartTime

type MaintenanceWindowState

type MaintenanceWindowState struct {
	StartTime string `json:"start_time"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gcng *Resource) Attributes() googleComputeNodeGroupAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gcng *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gcng *Resource) State() (*googleComputeNodeGroupState, bool)

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

func (*Resource) StateMust

func (gcng *Resource) StateMust() *googleComputeNodeGroupState

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

func (*Resource) Type

func (gcng *Resource) Type() string

Type returns the Terraform object type for Resource.

type ShareSettings

type ShareSettings struct {
	// ShareType: string, required
	ShareType terra.StringValue `hcl:"share_type,attr" validate:"required"`
	// ShareSettingsProjectMap: min=0
	ProjectMap []ShareSettingsProjectMap `hcl:"project_map,block" validate:"min=0"`
}

type ShareSettingsAttributes

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

func (ShareSettingsAttributes) InternalRef

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

func (ShareSettingsAttributes) InternalTokens

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

func (ShareSettingsAttributes) InternalWithRef

func (ShareSettingsAttributes) ProjectMap

func (ShareSettingsAttributes) ShareType

func (ss ShareSettingsAttributes) ShareType() terra.StringValue

type ShareSettingsProjectMap

type ShareSettingsProjectMap struct {
	// Id: string, required
	Id terra.StringValue `hcl:"id,attr" validate:"required"`
	// ProjectId: string, required
	ProjectId terra.StringValue `hcl:"project_id,attr" validate:"required"`
}

type ShareSettingsProjectMapAttributes

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

func (ShareSettingsProjectMapAttributes) Id

func (ShareSettingsProjectMapAttributes) InternalRef

func (ShareSettingsProjectMapAttributes) InternalTokens

func (pm ShareSettingsProjectMapAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ShareSettingsProjectMapAttributes) InternalWithRef

func (ShareSettingsProjectMapAttributes) ProjectId

type ShareSettingsProjectMapState

type ShareSettingsProjectMapState struct {
	Id        string `json:"id"`
	ProjectId string `json:"project_id"`
}

type ShareSettingsState

type ShareSettingsState struct {
	ShareType  string                         `json:"share_type"`
	ProjectMap []ShareSettingsProjectMapState `json:"project_map"`
}

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