google_migration_center_preference_set

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"`
	// 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"`
	// PreferenceSetId: string, required
	PreferenceSetId terra.StringValue `hcl:"preference_set_id,attr" validate:"required"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
	// VirtualMachinePreferences: optional
	VirtualMachinePreferences *VirtualMachinePreferences `hcl:"virtual_machine_preferences,block"`
}

Args contains the configurations for google_migration_center_preference_set.

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gmcps *Resource) Attributes() googleMigrationCenterPreferenceSetAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gmcps *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gmcps *Resource) State() (*googleMigrationCenterPreferenceSetState, bool)

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

func (*Resource) StateMust

func (gmcps *Resource) StateMust() *googleMigrationCenterPreferenceSetState

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

func (*Resource) Type

func (gmcps *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"`
}

type VirtualMachinePreferences

type VirtualMachinePreferences struct {
	// CommitmentPlan: string, optional
	CommitmentPlan terra.StringValue `hcl:"commitment_plan,attr"`
	// SizingOptimizationStrategy: string, optional
	SizingOptimizationStrategy terra.StringValue `hcl:"sizing_optimization_strategy,attr"`
	// TargetProduct: string, optional
	TargetProduct terra.StringValue `hcl:"target_product,attr"`
	// VirtualMachinePreferencesComputeEnginePreferences: optional
	ComputeEnginePreferences *VirtualMachinePreferencesComputeEnginePreferences `hcl:"compute_engine_preferences,block"`
	// VirtualMachinePreferencesRegionPreferences: optional
	RegionPreferences *VirtualMachinePreferencesRegionPreferences `hcl:"region_preferences,block"`
	// VirtualMachinePreferencesSoleTenancyPreferences: optional
	SoleTenancyPreferences *VirtualMachinePreferencesSoleTenancyPreferences `hcl:"sole_tenancy_preferences,block"`
	// VirtualMachinePreferencesVmwareEnginePreferences: optional
	VmwareEnginePreferences *VirtualMachinePreferencesVmwareEnginePreferences `hcl:"vmware_engine_preferences,block"`
}

type VirtualMachinePreferencesAttributes

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

func (VirtualMachinePreferencesAttributes) CommitmentPlan

func (VirtualMachinePreferencesAttributes) InternalRef

func (VirtualMachinePreferencesAttributes) InternalTokens

func (vmp VirtualMachinePreferencesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (VirtualMachinePreferencesAttributes) InternalWithRef

func (VirtualMachinePreferencesAttributes) RegionPreferences

func (VirtualMachinePreferencesAttributes) SizingOptimizationStrategy

func (vmp VirtualMachinePreferencesAttributes) SizingOptimizationStrategy() terra.StringValue

func (VirtualMachinePreferencesAttributes) SoleTenancyPreferences

func (VirtualMachinePreferencesAttributes) TargetProduct

func (VirtualMachinePreferencesAttributes) VmwareEnginePreferences

type VirtualMachinePreferencesComputeEnginePreferences

type VirtualMachinePreferencesComputeEnginePreferences struct {
	// LicenseType: string, optional
	LicenseType terra.StringValue `hcl:"license_type,attr"`
	// VirtualMachinePreferencesComputeEnginePreferencesMachinePreferences: optional
	MachinePreferences *VirtualMachinePreferencesComputeEnginePreferencesMachinePreferences `hcl:"machine_preferences,block"`
}

type VirtualMachinePreferencesComputeEnginePreferencesAttributes

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

func (VirtualMachinePreferencesComputeEnginePreferencesAttributes) InternalRef

func (VirtualMachinePreferencesComputeEnginePreferencesAttributes) InternalTokens

func (VirtualMachinePreferencesComputeEnginePreferencesAttributes) InternalWithRef

func (VirtualMachinePreferencesComputeEnginePreferencesAttributes) LicenseType

type VirtualMachinePreferencesComputeEnginePreferencesMachinePreferences

type VirtualMachinePreferencesComputeEnginePreferencesMachinePreferences struct {
	// VirtualMachinePreferencesComputeEnginePreferencesMachinePreferencesAllowedMachineSeries: min=0
	AllowedMachineSeries []VirtualMachinePreferencesComputeEnginePreferencesMachinePreferencesAllowedMachineSeries `hcl:"allowed_machine_series,block" validate:"min=0"`
}

type VirtualMachinePreferencesComputeEnginePreferencesMachinePreferencesAllowedMachineSeries

type VirtualMachinePreferencesComputeEnginePreferencesMachinePreferencesAllowedMachineSeries struct {
	// Code: string, optional
	Code terra.StringValue `hcl:"code,attr"`
}

type VirtualMachinePreferencesComputeEnginePreferencesMachinePreferencesAllowedMachineSeriesAttributes

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

func (VirtualMachinePreferencesComputeEnginePreferencesMachinePreferencesAllowedMachineSeriesAttributes) Code

func (VirtualMachinePreferencesComputeEnginePreferencesMachinePreferencesAllowedMachineSeriesAttributes) InternalRef

func (VirtualMachinePreferencesComputeEnginePreferencesMachinePreferencesAllowedMachineSeriesAttributes) InternalTokens

type VirtualMachinePreferencesComputeEnginePreferencesMachinePreferencesAllowedMachineSeriesState

type VirtualMachinePreferencesComputeEnginePreferencesMachinePreferencesAllowedMachineSeriesState struct {
	Code string `json:"code"`
}

type VirtualMachinePreferencesComputeEnginePreferencesMachinePreferencesAttributes

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

func (VirtualMachinePreferencesComputeEnginePreferencesMachinePreferencesAttributes) InternalRef

func (VirtualMachinePreferencesComputeEnginePreferencesMachinePreferencesAttributes) InternalTokens

type VirtualMachinePreferencesComputeEnginePreferencesMachinePreferencesState

type VirtualMachinePreferencesComputeEnginePreferencesMachinePreferencesState struct {
	AllowedMachineSeries []VirtualMachinePreferencesComputeEnginePreferencesMachinePreferencesAllowedMachineSeriesState `json:"allowed_machine_series"`
}

type VirtualMachinePreferencesComputeEnginePreferencesState

type VirtualMachinePreferencesComputeEnginePreferencesState struct {
	LicenseType        string                                                                     `json:"license_type"`
	MachinePreferences []VirtualMachinePreferencesComputeEnginePreferencesMachinePreferencesState `json:"machine_preferences"`
}

type VirtualMachinePreferencesRegionPreferences

type VirtualMachinePreferencesRegionPreferences struct {
	// PreferredRegions: list of string, optional
	PreferredRegions terra.ListValue[terra.StringValue] `hcl:"preferred_regions,attr"`
}

type VirtualMachinePreferencesRegionPreferencesAttributes

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

func (VirtualMachinePreferencesRegionPreferencesAttributes) InternalRef

func (VirtualMachinePreferencesRegionPreferencesAttributes) InternalTokens

func (VirtualMachinePreferencesRegionPreferencesAttributes) InternalWithRef

func (VirtualMachinePreferencesRegionPreferencesAttributes) PreferredRegions

type VirtualMachinePreferencesRegionPreferencesState

type VirtualMachinePreferencesRegionPreferencesState struct {
	PreferredRegions []string `json:"preferred_regions"`
}

type VirtualMachinePreferencesSoleTenancyPreferences

type VirtualMachinePreferencesSoleTenancyPreferences struct {
	// CommitmentPlan: string, optional
	CommitmentPlan terra.StringValue `hcl:"commitment_plan,attr"`
	// CpuOvercommitRatio: number, optional
	CpuOvercommitRatio terra.NumberValue `hcl:"cpu_overcommit_ratio,attr"`
	// HostMaintenancePolicy: string, optional
	HostMaintenancePolicy terra.StringValue `hcl:"host_maintenance_policy,attr"`
	// VirtualMachinePreferencesSoleTenancyPreferencesNodeTypes: min=0
	NodeTypes []VirtualMachinePreferencesSoleTenancyPreferencesNodeTypes `hcl:"node_types,block" validate:"min=0"`
}

type VirtualMachinePreferencesSoleTenancyPreferencesAttributes

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

func (VirtualMachinePreferencesSoleTenancyPreferencesAttributes) CommitmentPlan

func (VirtualMachinePreferencesSoleTenancyPreferencesAttributes) CpuOvercommitRatio

func (VirtualMachinePreferencesSoleTenancyPreferencesAttributes) HostMaintenancePolicy

func (VirtualMachinePreferencesSoleTenancyPreferencesAttributes) InternalRef

func (VirtualMachinePreferencesSoleTenancyPreferencesAttributes) InternalTokens

func (VirtualMachinePreferencesSoleTenancyPreferencesAttributes) InternalWithRef

type VirtualMachinePreferencesSoleTenancyPreferencesNodeTypes

type VirtualMachinePreferencesSoleTenancyPreferencesNodeTypes struct {
	// NodeName: string, optional
	NodeName terra.StringValue `hcl:"node_name,attr"`
}

type VirtualMachinePreferencesSoleTenancyPreferencesNodeTypesAttributes

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

func (VirtualMachinePreferencesSoleTenancyPreferencesNodeTypesAttributes) InternalRef

func (VirtualMachinePreferencesSoleTenancyPreferencesNodeTypesAttributes) InternalTokens

func (VirtualMachinePreferencesSoleTenancyPreferencesNodeTypesAttributes) InternalWithRef

func (VirtualMachinePreferencesSoleTenancyPreferencesNodeTypesAttributes) NodeName

type VirtualMachinePreferencesSoleTenancyPreferencesNodeTypesState

type VirtualMachinePreferencesSoleTenancyPreferencesNodeTypesState struct {
	NodeName string `json:"node_name"`
}

type VirtualMachinePreferencesSoleTenancyPreferencesState

type VirtualMachinePreferencesSoleTenancyPreferencesState struct {
	CommitmentPlan        string                                                          `json:"commitment_plan"`
	CpuOvercommitRatio    float64                                                         `json:"cpu_overcommit_ratio"`
	HostMaintenancePolicy string                                                          `json:"host_maintenance_policy"`
	NodeTypes             []VirtualMachinePreferencesSoleTenancyPreferencesNodeTypesState `json:"node_types"`
}

type VirtualMachinePreferencesState

type VirtualMachinePreferencesState struct {
	CommitmentPlan             string                                                   `json:"commitment_plan"`
	SizingOptimizationStrategy string                                                   `json:"sizing_optimization_strategy"`
	TargetProduct              string                                                   `json:"target_product"`
	ComputeEnginePreferences   []VirtualMachinePreferencesComputeEnginePreferencesState `json:"compute_engine_preferences"`
	RegionPreferences          []VirtualMachinePreferencesRegionPreferencesState        `json:"region_preferences"`
	SoleTenancyPreferences     []VirtualMachinePreferencesSoleTenancyPreferencesState   `json:"sole_tenancy_preferences"`
	VmwareEnginePreferences    []VirtualMachinePreferencesVmwareEnginePreferencesState  `json:"vmware_engine_preferences"`
}

type VirtualMachinePreferencesVmwareEnginePreferences

type VirtualMachinePreferencesVmwareEnginePreferences struct {
	// CommitmentPlan: string, optional
	CommitmentPlan terra.StringValue `hcl:"commitment_plan,attr"`
	// CpuOvercommitRatio: number, optional
	CpuOvercommitRatio terra.NumberValue `hcl:"cpu_overcommit_ratio,attr"`
	// MemoryOvercommitRatio: number, optional
	MemoryOvercommitRatio terra.NumberValue `hcl:"memory_overcommit_ratio,attr"`
	// StorageDeduplicationCompressionRatio: number, optional
	StorageDeduplicationCompressionRatio terra.NumberValue `hcl:"storage_deduplication_compression_ratio,attr"`
}

type VirtualMachinePreferencesVmwareEnginePreferencesAttributes

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

func (VirtualMachinePreferencesVmwareEnginePreferencesAttributes) CommitmentPlan

func (VirtualMachinePreferencesVmwareEnginePreferencesAttributes) CpuOvercommitRatio

func (VirtualMachinePreferencesVmwareEnginePreferencesAttributes) InternalRef

func (VirtualMachinePreferencesVmwareEnginePreferencesAttributes) InternalTokens

func (VirtualMachinePreferencesVmwareEnginePreferencesAttributes) InternalWithRef

func (VirtualMachinePreferencesVmwareEnginePreferencesAttributes) MemoryOvercommitRatio

func (VirtualMachinePreferencesVmwareEnginePreferencesAttributes) StorageDeduplicationCompressionRatio

func (vep VirtualMachinePreferencesVmwareEnginePreferencesAttributes) StorageDeduplicationCompressionRatio() terra.NumberValue

type VirtualMachinePreferencesVmwareEnginePreferencesState

type VirtualMachinePreferencesVmwareEnginePreferencesState struct {
	CommitmentPlan                       string  `json:"commitment_plan"`
	CpuOvercommitRatio                   float64 `json:"cpu_overcommit_ratio"`
	MemoryOvercommitRatio                float64 `json:"memory_overcommit_ratio"`
	StorageDeduplicationCompressionRatio float64 `json:"storage_deduplication_compression_ratio"`
}

Jump to

Keyboard shortcuts

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