Documentation ¶
Index ¶
- type Args
- type DataArgs
- type DataShareSettingsAttributes
- func (ss DataShareSettingsAttributes) InternalRef() (terra.Reference, error)
- func (ss DataShareSettingsAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (ss DataShareSettingsAttributes) InternalWithRef(ref terra.Reference) DataShareSettingsAttributes
- func (ss DataShareSettingsAttributes) ProjectMap() terra.SetValue[DataShareSettingsProjectMapAttributes]
- func (ss DataShareSettingsAttributes) ShareType() terra.StringValue
- type DataShareSettingsProjectMapAttributes
- func (pm DataShareSettingsProjectMapAttributes) Id() terra.StringValue
- func (pm DataShareSettingsProjectMapAttributes) InternalRef() (terra.Reference, error)
- func (pm DataShareSettingsProjectMapAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (pm DataShareSettingsProjectMapAttributes) InternalWithRef(ref terra.Reference) DataShareSettingsProjectMapAttributes
- func (pm DataShareSettingsProjectMapAttributes) ProjectId() terra.StringValue
- type DataShareSettingsProjectMapState
- type DataShareSettingsState
- type DataSource
- type DataSpecificReservationAttributes
- func (sr DataSpecificReservationAttributes) Count() terra.NumberValue
- func (sr DataSpecificReservationAttributes) InUseCount() terra.NumberValue
- func (sr DataSpecificReservationAttributes) InstanceProperties() terra.ListValue[DataSpecificReservationInstancePropertiesAttributes]
- func (sr DataSpecificReservationAttributes) InternalRef() (terra.Reference, error)
- func (sr DataSpecificReservationAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (sr DataSpecificReservationAttributes) InternalWithRef(ref terra.Reference) DataSpecificReservationAttributes
- type DataSpecificReservationInstancePropertiesAttributes
- func (ip DataSpecificReservationInstancePropertiesAttributes) GuestAccelerators() ...
- func (ip DataSpecificReservationInstancePropertiesAttributes) InternalRef() (terra.Reference, error)
- func (ip DataSpecificReservationInstancePropertiesAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (ip DataSpecificReservationInstancePropertiesAttributes) InternalWithRef(ref terra.Reference) DataSpecificReservationInstancePropertiesAttributes
- func (ip DataSpecificReservationInstancePropertiesAttributes) LocalSsds() terra.ListValue[DataSpecificReservationInstancePropertiesLocalSsdsAttributes]
- func (ip DataSpecificReservationInstancePropertiesAttributes) MachineType() terra.StringValue
- func (ip DataSpecificReservationInstancePropertiesAttributes) MinCpuPlatform() terra.StringValue
- type DataSpecificReservationInstancePropertiesGuestAcceleratorsAttributes
- func (ga DataSpecificReservationInstancePropertiesGuestAcceleratorsAttributes) AcceleratorCount() terra.NumberValue
- func (ga DataSpecificReservationInstancePropertiesGuestAcceleratorsAttributes) AcceleratorType() terra.StringValue
- func (ga DataSpecificReservationInstancePropertiesGuestAcceleratorsAttributes) InternalRef() (terra.Reference, error)
- func (ga DataSpecificReservationInstancePropertiesGuestAcceleratorsAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (ga DataSpecificReservationInstancePropertiesGuestAcceleratorsAttributes) InternalWithRef(ref terra.Reference) DataSpecificReservationInstancePropertiesGuestAcceleratorsAttributes
- type DataSpecificReservationInstancePropertiesGuestAcceleratorsState
- type DataSpecificReservationInstancePropertiesLocalSsdsAttributes
- func (ls DataSpecificReservationInstancePropertiesLocalSsdsAttributes) DiskSizeGb() terra.NumberValue
- func (ls DataSpecificReservationInstancePropertiesLocalSsdsAttributes) Interface() terra.StringValue
- func (ls DataSpecificReservationInstancePropertiesLocalSsdsAttributes) InternalRef() (terra.Reference, error)
- func (ls DataSpecificReservationInstancePropertiesLocalSsdsAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (ls DataSpecificReservationInstancePropertiesLocalSsdsAttributes) InternalWithRef(ref terra.Reference) DataSpecificReservationInstancePropertiesLocalSsdsAttributes
- type DataSpecificReservationInstancePropertiesLocalSsdsState
- type DataSpecificReservationInstancePropertiesState
- type DataSpecificReservationState
- type Resource
- func (gcr *Resource) Attributes() googleComputeReservationAttributes
- func (gcr *Resource) Configuration() interface{}
- func (gcr *Resource) DependOn() terra.Reference
- func (gcr *Resource) Dependencies() terra.Dependencies
- func (gcr *Resource) ImportState(state io.Reader) error
- func (gcr *Resource) LifecycleManagement() *terra.Lifecycle
- func (gcr *Resource) LocalName() string
- func (gcr *Resource) State() (*googleComputeReservationState, bool)
- func (gcr *Resource) StateMust() *googleComputeReservationState
- func (gcr *Resource) Type() string
- type ShareSettings
- type ShareSettingsAttributes
- func (ss ShareSettingsAttributes) InternalRef() (terra.Reference, error)
- func (ss ShareSettingsAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (ss ShareSettingsAttributes) InternalWithRef(ref terra.Reference) ShareSettingsAttributes
- func (ss ShareSettingsAttributes) ProjectMap() terra.SetValue[ShareSettingsProjectMapAttributes]
- func (ss ShareSettingsAttributes) ShareType() terra.StringValue
- type ShareSettingsProjectMap
- type ShareSettingsProjectMapAttributes
- func (pm ShareSettingsProjectMapAttributes) Id() terra.StringValue
- func (pm ShareSettingsProjectMapAttributes) InternalRef() (terra.Reference, error)
- func (pm ShareSettingsProjectMapAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (pm ShareSettingsProjectMapAttributes) InternalWithRef(ref terra.Reference) ShareSettingsProjectMapAttributes
- func (pm ShareSettingsProjectMapAttributes) ProjectId() terra.StringValue
- type ShareSettingsProjectMapState
- type ShareSettingsState
- type SpecificReservation
- type SpecificReservationAttributes
- func (sr SpecificReservationAttributes) Count() terra.NumberValue
- func (sr SpecificReservationAttributes) InUseCount() terra.NumberValue
- func (sr SpecificReservationAttributes) InstanceProperties() terra.ListValue[SpecificReservationInstancePropertiesAttributes]
- func (sr SpecificReservationAttributes) InternalRef() (terra.Reference, error)
- func (sr SpecificReservationAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (sr SpecificReservationAttributes) InternalWithRef(ref terra.Reference) SpecificReservationAttributes
- type SpecificReservationInstanceProperties
- type SpecificReservationInstancePropertiesAttributes
- func (ip SpecificReservationInstancePropertiesAttributes) GuestAccelerators() ...
- func (ip SpecificReservationInstancePropertiesAttributes) InternalRef() (terra.Reference, error)
- func (ip SpecificReservationInstancePropertiesAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (ip SpecificReservationInstancePropertiesAttributes) InternalWithRef(ref terra.Reference) SpecificReservationInstancePropertiesAttributes
- func (ip SpecificReservationInstancePropertiesAttributes) LocalSsds() terra.ListValue[SpecificReservationInstancePropertiesLocalSsdsAttributes]
- func (ip SpecificReservationInstancePropertiesAttributes) MachineType() terra.StringValue
- func (ip SpecificReservationInstancePropertiesAttributes) MinCpuPlatform() terra.StringValue
- type SpecificReservationInstancePropertiesGuestAccelerators
- type SpecificReservationInstancePropertiesGuestAcceleratorsAttributes
- func (ga SpecificReservationInstancePropertiesGuestAcceleratorsAttributes) AcceleratorCount() terra.NumberValue
- func (ga SpecificReservationInstancePropertiesGuestAcceleratorsAttributes) AcceleratorType() terra.StringValue
- func (ga SpecificReservationInstancePropertiesGuestAcceleratorsAttributes) InternalRef() (terra.Reference, error)
- func (ga SpecificReservationInstancePropertiesGuestAcceleratorsAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (ga SpecificReservationInstancePropertiesGuestAcceleratorsAttributes) InternalWithRef(ref terra.Reference) SpecificReservationInstancePropertiesGuestAcceleratorsAttributes
- type SpecificReservationInstancePropertiesGuestAcceleratorsState
- type SpecificReservationInstancePropertiesLocalSsds
- type SpecificReservationInstancePropertiesLocalSsdsAttributes
- func (ls SpecificReservationInstancePropertiesLocalSsdsAttributes) DiskSizeGb() terra.NumberValue
- func (ls SpecificReservationInstancePropertiesLocalSsdsAttributes) Interface() terra.StringValue
- func (ls SpecificReservationInstancePropertiesLocalSsdsAttributes) InternalRef() (terra.Reference, error)
- func (ls SpecificReservationInstancePropertiesLocalSsdsAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (ls SpecificReservationInstancePropertiesLocalSsdsAttributes) InternalWithRef(ref terra.Reference) SpecificReservationInstancePropertiesLocalSsdsAttributes
- type SpecificReservationInstancePropertiesLocalSsdsState
- type SpecificReservationInstancePropertiesState
- type SpecificReservationState
- type Timeouts
- type TimeoutsAttributes
- func (t TimeoutsAttributes) Create() terra.StringValue
- func (t TimeoutsAttributes) Delete() terra.StringValue
- func (t TimeoutsAttributes) InternalRef() (terra.Reference, error)
- func (t TimeoutsAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (t TimeoutsAttributes) InternalWithRef(ref terra.Reference) TimeoutsAttributes
- func (t TimeoutsAttributes) Update() terra.StringValue
- type TimeoutsState
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"` // Name: string, required Name terra.StringValue `hcl:"name,attr" validate:"required"` // Project: string, optional Project terra.StringValue `hcl:"project,attr"` // SpecificReservationRequired: bool, optional SpecificReservationRequired terra.BoolValue `hcl:"specific_reservation_required,attr"` // Zone: string, required Zone terra.StringValue `hcl:"zone,attr" validate:"required"` ShareSettings *ShareSettings `hcl:"share_settings,block"` // SpecificReservation: required SpecificReservation *SpecificReservation `hcl:"specific_reservation,block" validate:"required"` // Timeouts: optional Timeouts *Timeouts `hcl:"timeouts,block"` }
Args contains the configurations for google_compute_reservation.
type DataArgs ¶
type DataArgs struct { // Id: string, optional Id terra.StringValue `hcl:"id,attr"` // Name: string, required Name terra.StringValue `hcl:"name,attr" validate:"required"` // Project: string, optional Project terra.StringValue `hcl:"project,attr"` // Zone: string, required Zone terra.StringValue `hcl:"zone,attr" validate:"required"` }
DataArgs contains the configurations for google_compute_reservation.
type DataShareSettingsAttributes ¶
type DataShareSettingsAttributes struct {
// contains filtered or unexported fields
}
func (DataShareSettingsAttributes) InternalRef ¶
func (ss DataShareSettingsAttributes) InternalRef() (terra.Reference, error)
func (DataShareSettingsAttributes) InternalTokens ¶
func (ss DataShareSettingsAttributes) InternalTokens() (hclwrite.Tokens, error)
func (DataShareSettingsAttributes) InternalWithRef ¶
func (ss DataShareSettingsAttributes) InternalWithRef(ref terra.Reference) DataShareSettingsAttributes
func (DataShareSettingsAttributes) ProjectMap ¶
func (ss DataShareSettingsAttributes) ProjectMap() terra.SetValue[DataShareSettingsProjectMapAttributes]
func (DataShareSettingsAttributes) ShareType ¶
func (ss DataShareSettingsAttributes) ShareType() terra.StringValue
type DataShareSettingsProjectMapAttributes ¶
type DataShareSettingsProjectMapAttributes struct {
// contains filtered or unexported fields
}
func (DataShareSettingsProjectMapAttributes) Id ¶
func (pm DataShareSettingsProjectMapAttributes) Id() terra.StringValue
func (DataShareSettingsProjectMapAttributes) InternalRef ¶
func (pm DataShareSettingsProjectMapAttributes) InternalRef() (terra.Reference, error)
func (DataShareSettingsProjectMapAttributes) InternalTokens ¶
func (pm DataShareSettingsProjectMapAttributes) InternalTokens() (hclwrite.Tokens, error)
func (DataShareSettingsProjectMapAttributes) InternalWithRef ¶
func (pm DataShareSettingsProjectMapAttributes) InternalWithRef(ref terra.Reference) DataShareSettingsProjectMapAttributes
func (DataShareSettingsProjectMapAttributes) ProjectId ¶
func (pm DataShareSettingsProjectMapAttributes) ProjectId() terra.StringValue
type DataShareSettingsProjectMapState ¶
type DataShareSettingsProjectMapState struct {}
type DataShareSettingsState ¶
type DataShareSettingsState struct {}
type DataSource ¶
DataSource represents the Terraform data resource google_compute_reservation.
func Data ¶
func Data(name string, args DataArgs) *DataSource
Data creates a new instance of DataSource.
func (*DataSource) Attributes ¶
func (gcr *DataSource) Attributes() dataGoogleComputeReservationAttributes
Attributes returns the attributes for DataSource.
func (*DataSource) Configuration ¶
func (gcr *DataSource) Configuration() interface{}
Configuration returns the configuration (args) for DataSource.
func (*DataSource) DataSource ¶
func (gcr *DataSource) DataSource() string
DataSource returns the Terraform object type for DataSource.
func (*DataSource) LocalName ¶
func (gcr *DataSource) LocalName() string
LocalName returns the local name for DataSource.
type DataSpecificReservationAttributes ¶
type DataSpecificReservationAttributes struct {
// contains filtered or unexported fields
}
func (DataSpecificReservationAttributes) Count ¶
func (sr DataSpecificReservationAttributes) Count() terra.NumberValue
func (DataSpecificReservationAttributes) InUseCount ¶
func (sr DataSpecificReservationAttributes) InUseCount() terra.NumberValue
func (DataSpecificReservationAttributes) InstanceProperties ¶
func (sr DataSpecificReservationAttributes) InstanceProperties() terra.ListValue[DataSpecificReservationInstancePropertiesAttributes]
func (DataSpecificReservationAttributes) InternalRef ¶
func (sr DataSpecificReservationAttributes) InternalRef() (terra.Reference, error)
func (DataSpecificReservationAttributes) InternalTokens ¶
func (sr DataSpecificReservationAttributes) InternalTokens() (hclwrite.Tokens, error)
func (DataSpecificReservationAttributes) InternalWithRef ¶
func (sr DataSpecificReservationAttributes) InternalWithRef(ref terra.Reference) DataSpecificReservationAttributes
type DataSpecificReservationInstancePropertiesAttributes ¶
type DataSpecificReservationInstancePropertiesAttributes struct {
// contains filtered or unexported fields
}
func (DataSpecificReservationInstancePropertiesAttributes) GuestAccelerators ¶
func (ip DataSpecificReservationInstancePropertiesAttributes) GuestAccelerators() terra.ListValue[DataSpecificReservationInstancePropertiesGuestAcceleratorsAttributes]
func (DataSpecificReservationInstancePropertiesAttributes) InternalRef ¶
func (ip DataSpecificReservationInstancePropertiesAttributes) InternalRef() (terra.Reference, error)
func (DataSpecificReservationInstancePropertiesAttributes) InternalTokens ¶
func (ip DataSpecificReservationInstancePropertiesAttributes) InternalTokens() (hclwrite.Tokens, error)
func (DataSpecificReservationInstancePropertiesAttributes) InternalWithRef ¶
func (ip DataSpecificReservationInstancePropertiesAttributes) InternalWithRef(ref terra.Reference) DataSpecificReservationInstancePropertiesAttributes
func (DataSpecificReservationInstancePropertiesAttributes) MachineType ¶
func (ip DataSpecificReservationInstancePropertiesAttributes) MachineType() terra.StringValue
func (DataSpecificReservationInstancePropertiesAttributes) MinCpuPlatform ¶
func (ip DataSpecificReservationInstancePropertiesAttributes) MinCpuPlatform() terra.StringValue
type DataSpecificReservationInstancePropertiesGuestAcceleratorsAttributes ¶
type DataSpecificReservationInstancePropertiesGuestAcceleratorsAttributes struct {
// contains filtered or unexported fields
}
func (DataSpecificReservationInstancePropertiesGuestAcceleratorsAttributes) AcceleratorCount ¶
func (ga DataSpecificReservationInstancePropertiesGuestAcceleratorsAttributes) AcceleratorCount() terra.NumberValue
func (DataSpecificReservationInstancePropertiesGuestAcceleratorsAttributes) AcceleratorType ¶
func (ga DataSpecificReservationInstancePropertiesGuestAcceleratorsAttributes) AcceleratorType() terra.StringValue
func (DataSpecificReservationInstancePropertiesGuestAcceleratorsAttributes) InternalRef ¶
func (ga DataSpecificReservationInstancePropertiesGuestAcceleratorsAttributes) InternalRef() (terra.Reference, error)
func (DataSpecificReservationInstancePropertiesGuestAcceleratorsAttributes) InternalTokens ¶
func (ga DataSpecificReservationInstancePropertiesGuestAcceleratorsAttributes) InternalTokens() (hclwrite.Tokens, error)
func (DataSpecificReservationInstancePropertiesGuestAcceleratorsAttributes) InternalWithRef ¶
type DataSpecificReservationInstancePropertiesLocalSsdsAttributes ¶
type DataSpecificReservationInstancePropertiesLocalSsdsAttributes struct {
// contains filtered or unexported fields
}
func (DataSpecificReservationInstancePropertiesLocalSsdsAttributes) DiskSizeGb ¶
func (ls DataSpecificReservationInstancePropertiesLocalSsdsAttributes) DiskSizeGb() terra.NumberValue
func (DataSpecificReservationInstancePropertiesLocalSsdsAttributes) Interface ¶
func (ls DataSpecificReservationInstancePropertiesLocalSsdsAttributes) Interface() terra.StringValue
func (DataSpecificReservationInstancePropertiesLocalSsdsAttributes) InternalRef ¶
func (ls DataSpecificReservationInstancePropertiesLocalSsdsAttributes) InternalRef() (terra.Reference, error)
func (DataSpecificReservationInstancePropertiesLocalSsdsAttributes) InternalTokens ¶
func (ls DataSpecificReservationInstancePropertiesLocalSsdsAttributes) InternalTokens() (hclwrite.Tokens, error)
func (DataSpecificReservationInstancePropertiesLocalSsdsAttributes) InternalWithRef ¶
func (ls DataSpecificReservationInstancePropertiesLocalSsdsAttributes) InternalWithRef(ref terra.Reference) DataSpecificReservationInstancePropertiesLocalSsdsAttributes
type DataSpecificReservationInstancePropertiesState ¶
type DataSpecificReservationInstancePropertiesState struct { MachineType string `json:"machine_type"` MinCpuPlatform string `json:"min_cpu_platform"` GuestAccelerators []DataSpecificReservationInstancePropertiesGuestAcceleratorsState `json:"guest_accelerators"` LocalSsds []DataSpecificReservationInstancePropertiesLocalSsdsState `json:"local_ssds"` }
type DataSpecificReservationState ¶
type DataSpecificReservationState struct { Count float64 `json:"count"` InUseCount float64 `json:"in_use_count"` InstanceProperties []DataSpecificReservationInstancePropertiesState `json:"instance_properties"` }
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_reservation.
func (*Resource) Attributes ¶
func (gcr *Resource) Attributes() googleComputeReservationAttributes
Attributes returns the attributes for Resource.
func (*Resource) Configuration ¶
func (gcr *Resource) Configuration() interface{}
Configuration returns the configuration (args) for Resource.
func (*Resource) Dependencies ¶
func (gcr *Resource) Dependencies() terra.Dependencies
Dependencies returns the list of resources Resource depends_on.
func (*Resource) ImportState ¶
ImportState imports the given attribute values into Resource's state.
func (*Resource) LifecycleManagement ¶
LifecycleManagement returns the lifecycle block for Resource.
type ShareSettings ¶
type ShareSettings struct { terra.StringValue `hcl:"share_type,attr"` ProjectMap []ShareSettingsProjectMap `hcl:"project_map,block" validate:"min=0"` }ShareType
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 (ss ShareSettingsAttributes) InternalWithRef(ref terra.Reference) ShareSettingsAttributes
func (ShareSettingsAttributes) ProjectMap ¶
func (ss ShareSettingsAttributes) ProjectMap() terra.SetValue[ShareSettingsProjectMapAttributes]
func (ShareSettingsAttributes) ShareType ¶
func (ss ShareSettingsAttributes) ShareType() terra.StringValue
type ShareSettingsProjectMap ¶
type ShareSettingsProjectMap struct { terra.StringValue `hcl:"id,attr" validate:"required"` ProjectId terra.StringValue `hcl:"project_id,attr"` }Id
type ShareSettingsProjectMapAttributes ¶
type ShareSettingsProjectMapAttributes struct {
// contains filtered or unexported fields
}
func (ShareSettingsProjectMapAttributes) Id ¶
func (pm ShareSettingsProjectMapAttributes) Id() terra.StringValue
func (ShareSettingsProjectMapAttributes) InternalRef ¶
func (pm ShareSettingsProjectMapAttributes) InternalRef() (terra.Reference, error)
func (ShareSettingsProjectMapAttributes) InternalTokens ¶
func (pm ShareSettingsProjectMapAttributes) InternalTokens() (hclwrite.Tokens, error)
func (ShareSettingsProjectMapAttributes) InternalWithRef ¶
func (pm ShareSettingsProjectMapAttributes) InternalWithRef(ref terra.Reference) ShareSettingsProjectMapAttributes
func (ShareSettingsProjectMapAttributes) ProjectId ¶
func (pm ShareSettingsProjectMapAttributes) ProjectId() terra.StringValue
type ShareSettingsProjectMapState ¶
type ShareSettingsProjectMapState struct {}
type ShareSettingsState ¶
type ShareSettingsState struct {}
type SpecificReservation ¶
type SpecificReservation struct { // Count: number, required Count terra.NumberValue `hcl:"count,attr" validate:"required"` // SpecificReservationInstanceProperties: required InstanceProperties *SpecificReservationInstanceProperties `hcl:"instance_properties,block" validate:"required"` }
type SpecificReservationAttributes ¶
type SpecificReservationAttributes struct {
// contains filtered or unexported fields
}
func (SpecificReservationAttributes) Count ¶
func (sr SpecificReservationAttributes) Count() terra.NumberValue
func (SpecificReservationAttributes) InUseCount ¶
func (sr SpecificReservationAttributes) InUseCount() terra.NumberValue
func (SpecificReservationAttributes) InstanceProperties ¶
func (sr SpecificReservationAttributes) InstanceProperties() terra.ListValue[SpecificReservationInstancePropertiesAttributes]
func (SpecificReservationAttributes) InternalRef ¶
func (sr SpecificReservationAttributes) InternalRef() (terra.Reference, error)
func (SpecificReservationAttributes) InternalTokens ¶
func (sr SpecificReservationAttributes) InternalTokens() (hclwrite.Tokens, error)
func (SpecificReservationAttributes) InternalWithRef ¶
func (sr SpecificReservationAttributes) InternalWithRef(ref terra.Reference) SpecificReservationAttributes
type SpecificReservationInstanceProperties ¶
type SpecificReservationInstanceProperties struct { // MachineType: string, required MachineType terra.StringValue `hcl:"machine_type,attr" validate:"required"` // MinCpuPlatform: string, optional MinCpuPlatform terra.StringValue `hcl:"min_cpu_platform,attr"` // SpecificReservationInstancePropertiesGuestAccelerators: min=0 GuestAccelerators []SpecificReservationInstancePropertiesGuestAccelerators `hcl:"guest_accelerators,block" validate:"min=0"` // SpecificReservationInstancePropertiesLocalSsds: min=0 LocalSsds []SpecificReservationInstancePropertiesLocalSsds `hcl:"local_ssds,block" validate:"min=0"` }
type SpecificReservationInstancePropertiesAttributes ¶
type SpecificReservationInstancePropertiesAttributes struct {
// contains filtered or unexported fields
}
func (SpecificReservationInstancePropertiesAttributes) GuestAccelerators ¶
func (ip SpecificReservationInstancePropertiesAttributes) GuestAccelerators() terra.ListValue[SpecificReservationInstancePropertiesGuestAcceleratorsAttributes]
func (SpecificReservationInstancePropertiesAttributes) InternalRef ¶
func (ip SpecificReservationInstancePropertiesAttributes) InternalRef() (terra.Reference, error)
func (SpecificReservationInstancePropertiesAttributes) InternalTokens ¶
func (ip SpecificReservationInstancePropertiesAttributes) InternalTokens() (hclwrite.Tokens, error)
func (SpecificReservationInstancePropertiesAttributes) InternalWithRef ¶
func (ip SpecificReservationInstancePropertiesAttributes) InternalWithRef(ref terra.Reference) SpecificReservationInstancePropertiesAttributes
func (SpecificReservationInstancePropertiesAttributes) MachineType ¶
func (ip SpecificReservationInstancePropertiesAttributes) MachineType() terra.StringValue
func (SpecificReservationInstancePropertiesAttributes) MinCpuPlatform ¶
func (ip SpecificReservationInstancePropertiesAttributes) MinCpuPlatform() terra.StringValue
type SpecificReservationInstancePropertiesGuestAccelerators ¶
type SpecificReservationInstancePropertiesGuestAccelerators struct { // AcceleratorCount: number, required AcceleratorCount terra.NumberValue `hcl:"accelerator_count,attr" validate:"required"` // AcceleratorType: string, required AcceleratorType terra.StringValue `hcl:"accelerator_type,attr" validate:"required"` }
type SpecificReservationInstancePropertiesGuestAcceleratorsAttributes ¶
type SpecificReservationInstancePropertiesGuestAcceleratorsAttributes struct {
// contains filtered or unexported fields
}
func (SpecificReservationInstancePropertiesGuestAcceleratorsAttributes) AcceleratorCount ¶
func (ga SpecificReservationInstancePropertiesGuestAcceleratorsAttributes) AcceleratorCount() terra.NumberValue
func (SpecificReservationInstancePropertiesGuestAcceleratorsAttributes) AcceleratorType ¶
func (ga SpecificReservationInstancePropertiesGuestAcceleratorsAttributes) AcceleratorType() terra.StringValue
func (SpecificReservationInstancePropertiesGuestAcceleratorsAttributes) InternalRef ¶
func (ga SpecificReservationInstancePropertiesGuestAcceleratorsAttributes) InternalRef() (terra.Reference, error)
func (SpecificReservationInstancePropertiesGuestAcceleratorsAttributes) InternalTokens ¶
func (ga SpecificReservationInstancePropertiesGuestAcceleratorsAttributes) InternalTokens() (hclwrite.Tokens, error)
func (SpecificReservationInstancePropertiesGuestAcceleratorsAttributes) InternalWithRef ¶
type SpecificReservationInstancePropertiesLocalSsds ¶
type SpecificReservationInstancePropertiesLocalSsds struct { // DiskSizeGb: number, required DiskSizeGb terra.NumberValue `hcl:"disk_size_gb,attr" validate:"required"` // Interface: string, optional Interface terra.StringValue `hcl:"interface,attr"` }
type SpecificReservationInstancePropertiesLocalSsdsAttributes ¶
type SpecificReservationInstancePropertiesLocalSsdsAttributes struct {
// contains filtered or unexported fields
}
func (SpecificReservationInstancePropertiesLocalSsdsAttributes) DiskSizeGb ¶
func (ls SpecificReservationInstancePropertiesLocalSsdsAttributes) DiskSizeGb() terra.NumberValue
func (SpecificReservationInstancePropertiesLocalSsdsAttributes) Interface ¶
func (ls SpecificReservationInstancePropertiesLocalSsdsAttributes) Interface() terra.StringValue
func (SpecificReservationInstancePropertiesLocalSsdsAttributes) InternalRef ¶
func (ls SpecificReservationInstancePropertiesLocalSsdsAttributes) InternalRef() (terra.Reference, error)
func (SpecificReservationInstancePropertiesLocalSsdsAttributes) InternalTokens ¶
func (ls SpecificReservationInstancePropertiesLocalSsdsAttributes) InternalTokens() (hclwrite.Tokens, error)
func (SpecificReservationInstancePropertiesLocalSsdsAttributes) InternalWithRef ¶
func (ls SpecificReservationInstancePropertiesLocalSsdsAttributes) InternalWithRef(ref terra.Reference) SpecificReservationInstancePropertiesLocalSsdsAttributes
type SpecificReservationInstancePropertiesState ¶
type SpecificReservationInstancePropertiesState struct { MachineType string `json:"machine_type"` MinCpuPlatform string `json:"min_cpu_platform"` GuestAccelerators []SpecificReservationInstancePropertiesGuestAcceleratorsState `json:"guest_accelerators"` LocalSsds []SpecificReservationInstancePropertiesLocalSsdsState `json:"local_ssds"` }
type SpecificReservationState ¶
type SpecificReservationState struct { Count float64 `json:"count"` InUseCount float64 `json:"in_use_count"` InstanceProperties []SpecificReservationInstancePropertiesState `json:"instance_properties"` }
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 (t TimeoutsAttributes) Create() terra.StringValue
func (TimeoutsAttributes) Delete ¶
func (t TimeoutsAttributes) Delete() terra.StringValue
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 ¶
func (t TimeoutsAttributes) Update() terra.StringValue