datasource_serverclass

package
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ServerclassDataSourceSchema

func ServerclassDataSourceSchema(ctx context.Context) schema.Schema

Types

type OnDemandPricingType

type OnDemandPricingType struct {
	basetypes.ObjectType
}

func (OnDemandPricingType) Equal

func (t OnDemandPricingType) Equal(o attr.Type) bool

func (OnDemandPricingType) String

func (t OnDemandPricingType) String() string

func (OnDemandPricingType) ValueFromObject

func (OnDemandPricingType) ValueFromTerraform

func (t OnDemandPricingType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (OnDemandPricingType) ValueType

func (t OnDemandPricingType) ValueType(ctx context.Context) attr.Value

type OnDemandPricingValue

type OnDemandPricingValue struct {
	Cost     basetypes.StringValue `tfsdk:"cost"`
	Interval basetypes.StringValue `tfsdk:"interval"`
	// contains filtered or unexported fields
}

func NewOnDemandPricingValue

func NewOnDemandPricingValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (OnDemandPricingValue, diag.Diagnostics)

func NewOnDemandPricingValueMust

func NewOnDemandPricingValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) OnDemandPricingValue

func NewOnDemandPricingValueNull

func NewOnDemandPricingValueNull() OnDemandPricingValue

func NewOnDemandPricingValueUnknown

func NewOnDemandPricingValueUnknown() OnDemandPricingValue

func (OnDemandPricingValue) AttributeTypes

func (v OnDemandPricingValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (OnDemandPricingValue) Equal

func (v OnDemandPricingValue) Equal(o attr.Value) bool

func (OnDemandPricingValue) IsNull

func (v OnDemandPricingValue) IsNull() bool

func (OnDemandPricingValue) IsUnknown

func (v OnDemandPricingValue) IsUnknown() bool

func (OnDemandPricingValue) String

func (v OnDemandPricingValue) String() string

func (OnDemandPricingValue) ToObjectValue

func (OnDemandPricingValue) ToTerraformValue

func (v OnDemandPricingValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (OnDemandPricingValue) Type

type ResourcesType

type ResourcesType struct {
	basetypes.ObjectType
}

func (ResourcesType) Equal

func (t ResourcesType) Equal(o attr.Type) bool

func (ResourcesType) String

func (t ResourcesType) String() string

func (ResourcesType) ValueFromObject

func (ResourcesType) ValueFromTerraform

func (t ResourcesType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (ResourcesType) ValueType

func (t ResourcesType) ValueType(ctx context.Context) attr.Value

type ResourcesValue

type ResourcesValue struct {
	Cpu    basetypes.StringValue `tfsdk:"cpu"`
	Memory basetypes.StringValue `tfsdk:"memory"`
	// contains filtered or unexported fields
}

func NewResourcesValue

func NewResourcesValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (ResourcesValue, diag.Diagnostics)

func NewResourcesValueMust

func NewResourcesValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) ResourcesValue

func NewResourcesValueNull

func NewResourcesValueNull() ResourcesValue

func NewResourcesValueUnknown

func NewResourcesValueUnknown() ResourcesValue

func (ResourcesValue) AttributeTypes

func (v ResourcesValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (ResourcesValue) Equal

func (v ResourcesValue) Equal(o attr.Value) bool

func (ResourcesValue) IsNull

func (v ResourcesValue) IsNull() bool

func (ResourcesValue) IsUnknown

func (v ResourcesValue) IsUnknown() bool

func (ResourcesValue) String

func (v ResourcesValue) String() string

func (ResourcesValue) ToObjectValue

func (ResourcesValue) ToTerraformValue

func (v ResourcesValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (ResourcesValue) Type

func (v ResourcesValue) Type(ctx context.Context) attr.Type

type ServerclassModel

type ServerclassModel struct {
	Availability        types.String             `tfsdk:"availability"`
	Category            types.String             `tfsdk:"category"`
	DisplayName         types.String             `tfsdk:"display_name"`
	FlavorType          types.String             `tfsdk:"flavor_type"`
	Name                types.String             `tfsdk:"name"`
	OnDemandPricing     OnDemandPricingValue     `tfsdk:"on_demand_pricing"`
	Region              types.String             `tfsdk:"region"`
	Resources           ResourcesValue           `tfsdk:"resources"`
	ServerclassProvider ServerclassProviderValue `tfsdk:"serverclass_provider"`
	Status              StatusValue              `tfsdk:"status"`
}

type ServerclassProviderType

type ServerclassProviderType struct {
	basetypes.ObjectType
}

func (ServerclassProviderType) Equal

func (ServerclassProviderType) String

func (t ServerclassProviderType) String() string

func (ServerclassProviderType) ValueFromObject

func (ServerclassProviderType) ValueFromTerraform

func (t ServerclassProviderType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (ServerclassProviderType) ValueType

type ServerclassProviderValue

type ServerclassProviderValue struct {
	FlavorId     basetypes.StringValue `tfsdk:"flavor_id"`
	ProviderType basetypes.StringValue `tfsdk:"provider_type"`
	// contains filtered or unexported fields
}

func NewServerclassProviderValue

func NewServerclassProviderValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (ServerclassProviderValue, diag.Diagnostics)

func NewServerclassProviderValueMust

func NewServerclassProviderValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) ServerclassProviderValue

func NewServerclassProviderValueNull

func NewServerclassProviderValueNull() ServerclassProviderValue

func NewServerclassProviderValueUnknown

func NewServerclassProviderValueUnknown() ServerclassProviderValue

func (ServerclassProviderValue) AttributeTypes

func (v ServerclassProviderValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (ServerclassProviderValue) Equal

func (ServerclassProviderValue) IsNull

func (v ServerclassProviderValue) IsNull() bool

func (ServerclassProviderValue) IsUnknown

func (v ServerclassProviderValue) IsUnknown() bool

func (ServerclassProviderValue) String

func (v ServerclassProviderValue) String() string

func (ServerclassProviderValue) ToObjectValue

func (ServerclassProviderValue) ToTerraformValue

func (v ServerclassProviderValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (ServerclassProviderValue) Type

type SpotPricingType

type SpotPricingType struct {
	basetypes.ObjectType
}

func (SpotPricingType) Equal

func (t SpotPricingType) Equal(o attr.Type) bool

func (SpotPricingType) String

func (t SpotPricingType) String() string

func (SpotPricingType) ValueFromObject

func (SpotPricingType) ValueFromTerraform

func (t SpotPricingType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (SpotPricingType) ValueType

func (t SpotPricingType) ValueType(ctx context.Context) attr.Value

type SpotPricingValue

type SpotPricingValue struct {
	HammerPricePerHour basetypes.StringValue `tfsdk:"hammer_price_per_hour"`
	MarketPricePerHour basetypes.StringValue `tfsdk:"market_price_per_hour"`
	// contains filtered or unexported fields
}

func NewSpotPricingValue

func NewSpotPricingValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (SpotPricingValue, diag.Diagnostics)

func NewSpotPricingValueMust

func NewSpotPricingValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) SpotPricingValue

func NewSpotPricingValueNull

func NewSpotPricingValueNull() SpotPricingValue

func NewSpotPricingValueUnknown

func NewSpotPricingValueUnknown() SpotPricingValue

func (SpotPricingValue) AttributeTypes

func (v SpotPricingValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (SpotPricingValue) Equal

func (v SpotPricingValue) Equal(o attr.Value) bool

func (SpotPricingValue) IsNull

func (v SpotPricingValue) IsNull() bool

func (SpotPricingValue) IsUnknown

func (v SpotPricingValue) IsUnknown() bool

func (SpotPricingValue) String

func (v SpotPricingValue) String() string

func (SpotPricingValue) ToObjectValue

func (SpotPricingValue) ToTerraformValue

func (v SpotPricingValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (SpotPricingValue) Type

type StatusType

type StatusType struct {
	basetypes.ObjectType
}

func (StatusType) Equal

func (t StatusType) Equal(o attr.Type) bool

func (StatusType) String

func (t StatusType) String() string

func (StatusType) ValueFromObject

func (StatusType) ValueFromTerraform

func (t StatusType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (StatusType) ValueType

func (t StatusType) ValueType(ctx context.Context) attr.Value

type StatusValue

type StatusValue struct {
	Available   basetypes.Int64Value  `tfsdk:"available"`
	Capacity    basetypes.Int64Value  `tfsdk:"capacity"`
	LastAuction basetypes.Int64Value  `tfsdk:"last_auction"`
	Reserved    basetypes.Int64Value  `tfsdk:"reserved"`
	SpotPricing basetypes.ObjectValue `tfsdk:"spot_pricing"`
	// contains filtered or unexported fields
}

func NewStatusValue

func NewStatusValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (StatusValue, diag.Diagnostics)

func NewStatusValueMust

func NewStatusValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) StatusValue

func NewStatusValueNull

func NewStatusValueNull() StatusValue

func NewStatusValueUnknown

func NewStatusValueUnknown() StatusValue

func (StatusValue) AttributeTypes

func (v StatusValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (StatusValue) Equal

func (v StatusValue) Equal(o attr.Value) bool

func (StatusValue) IsNull

func (v StatusValue) IsNull() bool

func (StatusValue) IsUnknown

func (v StatusValue) IsUnknown() bool

func (StatusValue) String

func (v StatusValue) String() string

func (StatusValue) ToObjectValue

func (StatusValue) ToTerraformValue

func (v StatusValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (StatusValue) Type

func (v StatusValue) Type(ctx context.Context) attr.Type

Jump to

Keyboard shortcuts

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