google_notebooks_instance

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 AcceleratorConfig

type AcceleratorConfig struct {
	// CoreCount: number, required
	CoreCount terra.NumberValue `hcl:"core_count,attr" validate:"required"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
}

type AcceleratorConfigAttributes

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

func (AcceleratorConfigAttributes) CoreCount

func (AcceleratorConfigAttributes) InternalRef

func (ac AcceleratorConfigAttributes) InternalRef() (terra.Reference, error)

func (AcceleratorConfigAttributes) InternalTokens

func (ac AcceleratorConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AcceleratorConfigAttributes) InternalWithRef

func (AcceleratorConfigAttributes) Type

type AcceleratorConfigState

type AcceleratorConfigState struct {
	CoreCount float64 `json:"core_count"`
	Type      string  `json:"type"`
}

type Args

type Args struct {
	// BootDiskSizeGb: number, optional
	BootDiskSizeGb terra.NumberValue `hcl:"boot_disk_size_gb,attr"`
	// BootDiskType: string, optional
	BootDiskType terra.StringValue `hcl:"boot_disk_type,attr"`
	// CreateTime: string, optional
	CreateTime terra.StringValue `hcl:"create_time,attr"`
	// CustomGpuDriverPath: string, optional
	CustomGpuDriverPath terra.StringValue `hcl:"custom_gpu_driver_path,attr"`
	// DataDiskSizeGb: number, optional
	DataDiskSizeGb terra.NumberValue `hcl:"data_disk_size_gb,attr"`
	// DataDiskType: string, optional
	DataDiskType terra.StringValue `hcl:"data_disk_type,attr"`
	// DesiredState: string, optional
	DesiredState terra.StringValue `hcl:"desired_state,attr"`
	// DiskEncryption: string, optional
	DiskEncryption terra.StringValue `hcl:"disk_encryption,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// InstallGpuDriver: bool, optional
	InstallGpuDriver terra.BoolValue `hcl:"install_gpu_driver,attr"`
	// InstanceOwners: list of string, optional
	InstanceOwners terra.ListValue[terra.StringValue] `hcl:"instance_owners,attr"`
	// KmsKey: string, optional
	KmsKey terra.StringValue `hcl:"kms_key,attr"`
	// Labels: map of string, optional
	Labels terra.MapValue[terra.StringValue] `hcl:"labels,attr"`
	// Location: string, required
	Location terra.StringValue `hcl:"location,attr" validate:"required"`
	// MachineType: string, required
	MachineType terra.StringValue `hcl:"machine_type,attr" validate:"required"`
	// Metadata: map of string, optional
	Metadata terra.MapValue[terra.StringValue] `hcl:"metadata,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Network: string, optional
	Network terra.StringValue `hcl:"network,attr"`
	// NicType: string, optional
	NicType terra.StringValue `hcl:"nic_type,attr"`
	// NoProxyAccess: bool, optional
	NoProxyAccess terra.BoolValue `hcl:"no_proxy_access,attr"`
	// NoPublicIp: bool, optional
	NoPublicIp terra.BoolValue `hcl:"no_public_ip,attr"`
	// NoRemoveDataDisk: bool, optional
	NoRemoveDataDisk terra.BoolValue `hcl:"no_remove_data_disk,attr"`
	// PostStartupScript: string, optional
	PostStartupScript terra.StringValue `hcl:"post_startup_script,attr"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// ServiceAccount: string, optional
	ServiceAccount terra.StringValue `hcl:"service_account,attr"`
	// ServiceAccountScopes: list of string, optional
	ServiceAccountScopes terra.ListValue[terra.StringValue] `hcl:"service_account_scopes,attr"`
	// Subnet: string, optional
	Subnet terra.StringValue `hcl:"subnet,attr"`
	// Tags: list of string, optional
	Tags terra.ListValue[terra.StringValue] `hcl:"tags,attr"`
	// UpdateTime: string, optional
	UpdateTime terra.StringValue `hcl:"update_time,attr"`
	// AcceleratorConfig: optional
	AcceleratorConfig *AcceleratorConfig `hcl:"accelerator_config,block"`
	// ContainerImage: optional
	ContainerImage *ContainerImage `hcl:"container_image,block"`
	// ReservationAffinity: optional
	ReservationAffinity *ReservationAffinity `hcl:"reservation_affinity,block"`
	// ShieldedInstanceConfig: optional
	ShieldedInstanceConfig *ShieldedInstanceConfig `hcl:"shielded_instance_config,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
	// VmImage: optional
	VmImage *VmImage `hcl:"vm_image,block"`
}

Args contains the configurations for google_notebooks_instance.

type ContainerImage

type ContainerImage struct {
	// Repository: string, required
	Repository terra.StringValue `hcl:"repository,attr" validate:"required"`
	// Tag: string, optional
	Tag terra.StringValue `hcl:"tag,attr"`
}

type ContainerImageAttributes

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

func (ContainerImageAttributes) InternalRef

func (ci ContainerImageAttributes) InternalRef() (terra.Reference, error)

func (ContainerImageAttributes) InternalTokens

func (ci ContainerImageAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ContainerImageAttributes) InternalWithRef

func (ContainerImageAttributes) Repository

func (ci ContainerImageAttributes) Repository() terra.StringValue

func (ContainerImageAttributes) Tag

type ContainerImageState

type ContainerImageState struct {
	Repository string `json:"repository"`
	Tag        string `json:"tag"`
}

type ReservationAffinity

type ReservationAffinity struct {
	// ConsumeReservationType: string, required
	ConsumeReservationType terra.StringValue `hcl:"consume_reservation_type,attr" validate:"required"`
	// Key: string, optional
	Key terra.StringValue `hcl:"key,attr"`
	// Values: list of string, optional
	Values terra.ListValue[terra.StringValue] `hcl:"values,attr"`
}

type ReservationAffinityAttributes

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

func (ReservationAffinityAttributes) ConsumeReservationType

func (ra ReservationAffinityAttributes) ConsumeReservationType() terra.StringValue

func (ReservationAffinityAttributes) InternalRef

func (ra ReservationAffinityAttributes) InternalRef() (terra.Reference, error)

func (ReservationAffinityAttributes) InternalTokens

func (ra ReservationAffinityAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ReservationAffinityAttributes) InternalWithRef

func (ReservationAffinityAttributes) Key

func (ReservationAffinityAttributes) Values

type ReservationAffinityState

type ReservationAffinityState struct {
	ConsumeReservationType string   `json:"consume_reservation_type"`
	Key                    string   `json:"key"`
	Values                 []string `json:"values"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gni *Resource) Attributes() googleNotebooksInstanceAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gni *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gni *Resource) State() (*googleNotebooksInstanceState, bool)

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

func (*Resource) StateMust

func (gni *Resource) StateMust() *googleNotebooksInstanceState

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

func (*Resource) Type

func (gni *Resource) Type() string

Type returns the Terraform object type for Resource.

type ShieldedInstanceConfig

type ShieldedInstanceConfig struct {
	// EnableIntegrityMonitoring: bool, optional
	EnableIntegrityMonitoring terra.BoolValue `hcl:"enable_integrity_monitoring,attr"`
	// EnableSecureBoot: bool, optional
	EnableSecureBoot terra.BoolValue `hcl:"enable_secure_boot,attr"`
	// EnableVtpm: bool, optional
	EnableVtpm terra.BoolValue `hcl:"enable_vtpm,attr"`
}

type ShieldedInstanceConfigAttributes

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

func (ShieldedInstanceConfigAttributes) EnableIntegrityMonitoring

func (sic ShieldedInstanceConfigAttributes) EnableIntegrityMonitoring() terra.BoolValue

func (ShieldedInstanceConfigAttributes) EnableSecureBoot

func (sic ShieldedInstanceConfigAttributes) EnableSecureBoot() terra.BoolValue

func (ShieldedInstanceConfigAttributes) EnableVtpm

func (ShieldedInstanceConfigAttributes) InternalRef

func (ShieldedInstanceConfigAttributes) InternalTokens

func (sic ShieldedInstanceConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ShieldedInstanceConfigAttributes) InternalWithRef

type ShieldedInstanceConfigState

type ShieldedInstanceConfigState struct {
	EnableIntegrityMonitoring bool `json:"enable_integrity_monitoring"`
	EnableSecureBoot          bool `json:"enable_secure_boot"`
	EnableVtpm                bool `json:"enable_vtpm"`
}

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"`
}

type VmImage

type VmImage struct {
	// ImageFamily: string, optional
	ImageFamily terra.StringValue `hcl:"image_family,attr"`
	// ImageName: string, optional
	ImageName terra.StringValue `hcl:"image_name,attr"`
	// Project: string, required
	Project terra.StringValue `hcl:"project,attr" validate:"required"`
}

type VmImageAttributes

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

func (VmImageAttributes) ImageFamily

func (vi VmImageAttributes) ImageFamily() terra.StringValue

func (VmImageAttributes) ImageName

func (vi VmImageAttributes) ImageName() terra.StringValue

func (VmImageAttributes) InternalRef

func (vi VmImageAttributes) InternalRef() (terra.Reference, error)

func (VmImageAttributes) InternalTokens

func (vi VmImageAttributes) InternalTokens() (hclwrite.Tokens, error)

func (VmImageAttributes) InternalWithRef

func (vi VmImageAttributes) InternalWithRef(ref terra.Reference) VmImageAttributes

func (VmImageAttributes) Project

func (vi VmImageAttributes) Project() terra.StringValue

type VmImageState

type VmImageState struct {
	ImageFamily string `json:"image_family"`
	ImageName   string `json:"image_name"`
	Project     string `json:"project"`
}

Jump to

Keyboard shortcuts

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