google_compute_region_commitment

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 {
	// AutoRenew: bool, optional
	AutoRenew terra.BoolValue `hcl:"auto_renew,attr"`
	// Category: string, optional
	Category terra.StringValue `hcl:"category,attr"`
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Plan: string, required
	Plan terra.StringValue `hcl:"plan,attr" validate:"required"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// Region: string, optional
	Region terra.StringValue `hcl:"region,attr"`
	// Type: string, optional
	Type terra.StringValue `hcl:"type,attr"`
	// LicenseResource: optional
	LicenseResource *LicenseResource `hcl:"license_resource,block"`
	// Resources: min=0
	Resources []Resources `hcl:"resources,block" validate:"min=0"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_compute_region_commitment.

type LicenseResource

type LicenseResource struct {
	// Amount: string, optional
	Amount terra.StringValue `hcl:"amount,attr"`
	// CoresPerLicense: string, optional
	CoresPerLicense terra.StringValue `hcl:"cores_per_license,attr"`
	// License: string, required
	License terra.StringValue `hcl:"license,attr" validate:"required"`
}

type LicenseResourceAttributes

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

func (LicenseResourceAttributes) Amount

func (LicenseResourceAttributes) CoresPerLicense

func (lr LicenseResourceAttributes) CoresPerLicense() terra.StringValue

func (LicenseResourceAttributes) InternalRef

func (lr LicenseResourceAttributes) InternalRef() (terra.Reference, error)

func (LicenseResourceAttributes) InternalTokens

func (lr LicenseResourceAttributes) InternalTokens() (hclwrite.Tokens, error)

func (LicenseResourceAttributes) InternalWithRef

func (LicenseResourceAttributes) License

type LicenseResourceState

type LicenseResourceState struct {
	Amount          string `json:"amount"`
	CoresPerLicense string `json:"cores_per_license"`
	License         string `json:"license"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gcrc *Resource) Attributes() googleComputeRegionCommitmentAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gcrc *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gcrc *Resource) State() (*googleComputeRegionCommitmentState, bool)

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

func (*Resource) StateMust

func (gcrc *Resource) StateMust() *googleComputeRegionCommitmentState

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

func (*Resource) Type

func (gcrc *Resource) Type() string

Type returns the Terraform object type for Resource.

type Resources

type Resources struct {
	// AcceleratorType: string, optional
	AcceleratorType terra.StringValue `hcl:"accelerator_type,attr"`
	// Amount: string, optional
	Amount terra.StringValue `hcl:"amount,attr"`
	// Type: string, optional
	Type terra.StringValue `hcl:"type,attr"`
}

type ResourcesAttributes

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

func (ResourcesAttributes) AcceleratorType

func (r ResourcesAttributes) AcceleratorType() terra.StringValue

func (ResourcesAttributes) Amount

func (ResourcesAttributes) InternalRef

func (r ResourcesAttributes) InternalRef() (terra.Reference, error)

func (ResourcesAttributes) InternalTokens

func (r ResourcesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ResourcesAttributes) InternalWithRef

func (r ResourcesAttributes) InternalWithRef(ref terra.Reference) ResourcesAttributes

func (ResourcesAttributes) Type

type ResourcesState

type ResourcesState struct {
	AcceleratorType string `json:"accelerator_type"`
	Amount          string `json:"amount"`
	Type            string `json:"type"`
}

type Timeouts

type Timeouts struct {
	// Create: string, optional
	Create terra.StringValue `hcl:"create,attr"`
	// Delete: string, optional
	Delete terra.StringValue `hcl:"delete,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

type TimeoutsState

type TimeoutsState struct {
	Create string `json:"create"`
	Delete string `json:"delete"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL