instance_types

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: Apache-2.0 Imports: 16 Imported by: 3 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const RegionNameUsSva2 = shared.RegionNameUsSva2

Equals "us-sva-2"

View Source
const RegionNameUsWdc1 = shared.RegionNameUsWdc1

Equals "us-wdc-1"

View Source
const ResourceStatusCreating = shared.ResourceStatusCreating

Equals "creating"

View Source
const ResourceStatusDeleted = shared.ResourceStatusDeleted

Equals "deleted"

View Source
const ResourceStatusDeleting = shared.ResourceStatusDeleting

Equals "deleting"

View Source
const ResourceStatusError = shared.ResourceStatusError

Equals "error"

View Source
const ResourceStatusPending = shared.ResourceStatusPending

Equals "pending"

View Source
const ResourceStatusReady = shared.ResourceStatusReady

Equals "ready"

View Source
const ResourceStatusUpdating = shared.ResourceStatusUpdating

Equals "updating"

View Source
const VMMetricUnitBytes = shared.VMMetricUnitBytes

Equals "bytes"

View Source
const VMMetricUnitBytesPerSecond = shared.VMMetricUnitBytesPerSecond

Equals "bytes_per_second"

View Source
const VMMetricUnitCores = shared.VMMetricUnitCores

Equals "cores"

View Source
const VMMetricUnitOperationsPerSecond = shared.VMMetricUnitOperationsPerSecond

Equals "operations_per_second"

View Source
const VMMetricUnitRatio = shared.VMMetricUnitRatio

Equals "ratio"

Variables

This section is empty.

Functions

This section is empty.

Types

type CostQuote

type CostQuote = shared.CostQuote

Cost quote returned by POST /cost. current_summary and updated_summary hold the org billing summary now and with this resource; omitted when the caller cannot view billing.

This is an alias to an internal type.

type CostQuoteUpdate

type CostQuoteUpdate = shared.CostQuoteUpdate

Cost quote returned by PATCH /:id/cost: current-state quote, post-update quote, and signed diff. current_summary and updated_summary omitted when the caller cannot view billing.

This is an alias to an internal type.

type CostQuoteUpdateAfter

type CostQuoteUpdateAfter = shared.CostQuoteUpdateAfter

Quote for the proposed (post-update) resource state.

This is an alias to an internal type.

type CostQuoteUpdateAfterUsageDimension

type CostQuoteUpdateAfterUsageDimension = shared.CostQuoteUpdateAfterUsageDimension

Priced row for a single usage dimension emitted by a resource.

This is an alias to an internal type.

type CostQuoteUpdateBefore

type CostQuoteUpdateBefore = shared.CostQuoteUpdateBefore

Quote for the proposed (post-update) resource state.

This is an alias to an internal type.

type CostQuoteUpdateBeforeUsageDimension

type CostQuoteUpdateBeforeUsageDimension = shared.CostQuoteUpdateBeforeUsageDimension

Priced row for a single usage dimension emitted by a resource.

This is an alias to an internal type.

type CostQuoteUpdateDiff

type CostQuoteUpdateDiff = shared.CostQuoteUpdateDiff

Per-dimension and total deltas: after minus before.

This is an alias to an internal type.

type CostQuoteUpdateDiffUsageDimension

type CostQuoteUpdateDiffUsageDimension = shared.CostQuoteUpdateDiffUsageDimension

Per-dimension diff entry. Both before and after are always present.

This is an alias to an internal type.

type CostQuoteUpdateDiffUsageDimensionAfter

type CostQuoteUpdateDiffUsageDimensionAfter = shared.CostQuoteUpdateDiffUsageDimensionAfter

Priced row after the update. Always present.

This is an alias to an internal type.

type CostQuoteUpdateDiffUsageDimensionBefore

type CostQuoteUpdateDiffUsageDimensionBefore = shared.CostQuoteUpdateDiffUsageDimensionBefore

Priced row after the update. Always present.

This is an alias to an internal type.

type CostQuoteUsageDimension

type CostQuoteUsageDimension = shared.CostQuoteUsageDimension

Priced row for a single usage dimension emitted by a resource.

This is an alias to an internal type.

type Error

type Error = apierror.Error

type InstanceType

type InstanceType struct {
	Chipset string `json:"chipset" api:"required"`
	// When the Instance Type was created.
	CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
	Family    string    `json:"family" api:"required"`
	MemoryGB  int64     `json:"memory_gb" api:"required"`
	Name      string    `json:"name" api:"required"`
	// Network bandwidth in Gbps.
	NetworkBandwidthGbps float64 `json:"network_bandwidth_gbps" api:"required"`
	// Region the resource is in.
	//
	// Any of "us-sva-2", "us-wdc-1".
	Region shared.RegionName `json:"region" api:"required"`
	Series string            `json:"series" api:"required"`
	// When the Instance Type was updated.
	UpdatedAt time.Time `json:"updated_at" api:"required" format:"date-time"`
	Vcpu      int64     `json:"vcpu" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Chipset              respjson.Field
		CreatedAt            respjson.Field
		Family               respjson.Field
		MemoryGB             respjson.Field
		Name                 respjson.Field
		NetworkBandwidthGbps respjson.Field
		Region               respjson.Field
		Series               respjson.Field
		UpdatedAt            respjson.Field
		Vcpu                 respjson.Field
		ExtraFields          map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

Instance type.

func (InstanceType) RawJSON

func (r InstanceType) RawJSON() string

Returns the unmodified JSON received from the API

func (*InstanceType) UnmarshalJSON

func (r *InstanceType) UnmarshalJSON(data []byte) error

type InstanceTypeGetParamsRegion

type InstanceTypeGetParamsRegion string
const (
	InstanceTypeGetParamsRegionUsSva2 InstanceTypeGetParamsRegion = "us-sva-2"
	InstanceTypeGetParamsRegionUsWdc1 InstanceTypeGetParamsRegion = "us-wdc-1"
)

type InstanceTypeList

type InstanceTypeList struct {
	Items []InstanceType `json:"items" api:"required"`
	// Pagination response details.
	Pagination shared.Pagination `json:"pagination" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Items       respjson.Field
		Pagination  respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

func (InstanceTypeList) RawJSON

func (r InstanceTypeList) RawJSON() string

Returns the unmodified JSON received from the API

func (*InstanceTypeList) UnmarshalJSON

func (r *InstanceTypeList) UnmarshalJSON(data []byte) error

type InstanceTypeListParams

type InstanceTypeListParams struct {
	// Filter by chipset
	Chipset param.Opt[string] `query:"chipset,omitzero" json:"-"`
	// Pagination cursor returned by a previous request. Only valid for the same
	// filters and sort order.
	Cursor param.Opt[string] `query:"cursor,omitzero" json:"-"`
	// Filter by family
	Family param.Opt[string] `query:"family,omitzero" json:"-"`
	// Maximum number of items to return
	Limit param.Opt[int64] `query:"limit,omitzero" json:"-"`
	// Only Instance Types with at most this much memory, in GB
	MemoryGBMax param.Opt[int64] `query:"memory_gb_max,omitzero" json:"-"`
	// Only Instance Types with at least this much memory, in GB
	MemoryGBMin param.Opt[int64] `query:"memory_gb_min,omitzero" json:"-"`
	// Filter by a case-insensitive substring of the Instance Type name
	Name param.Opt[string] `query:"name,omitzero" json:"-"`
	// Only Instance Types with at most this much network bandwidth, in Gbps
	NetworkBandwidthGbpsMax param.Opt[float64] `query:"network_bandwidth_gbps_max,omitzero" json:"-"`
	// Only Instance Types with at least this much network bandwidth, in Gbps
	NetworkBandwidthGbpsMin param.Opt[float64] `query:"network_bandwidth_gbps_min,omitzero" json:"-"`
	// Filter by region
	Region param.Opt[string] `query:"region,omitzero" json:"-"`
	// Filter by series
	Series param.Opt[string] `query:"series,omitzero" json:"-"`
	// Comma-separated sort terms in precedence order, each field:asc or field:desc.
	// Fields: series, family, name, vcpu, memory_gb, network_bandwidth_gbps
	Sort param.Opt[string] `query:"sort,omitzero" json:"-"`
	// Only Instance Types with at most this many vCPUs
	VcpuMax param.Opt[int64] `query:"vcpu_max,omitzero" json:"-"`
	// Only Instance Types with at least this many vCPUs
	VcpuMin param.Opt[int64] `query:"vcpu_min,omitzero" json:"-"`
	// contains filtered or unexported fields
}

func (InstanceTypeListParams) URLQuery

func (r InstanceTypeListParams) URLQuery() (v url.Values, err error)

URLQuery serializes InstanceTypeListParams's query parameters as `url.Values`.

type InstanceTypeService

type InstanceTypeService struct {
	Options []option.RequestOption
}

InstanceTypeService contains methods and other services that help with interacting with the Nirvana Labs API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewInstanceTypeService method instead.

func NewInstanceTypeService

func NewInstanceTypeService(opts ...option.RequestOption) (r InstanceTypeService)

NewInstanceTypeService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*InstanceTypeService) Get

Get an instance type by region and name

func (*InstanceTypeService) List

List instance types

func (*InstanceTypeService) ListAutoPaging

List instance types

type OrganizationBillingSummary

type OrganizationBillingSummary = shared.OrganizationBillingSummary

Forward-looking billing summary for an organization. All costs are run-rate projections from the organization's current active usage ("≈ $X/mo at current usage").

This is an alias to an internal type.

type Pagination

type Pagination = shared.Pagination

Pagination response details.

This is an alias to an internal type.

type RegionName

type RegionName = shared.RegionName

Region the resource is in.

This is an alias to an internal type.

type ResourceStatus

type ResourceStatus = shared.ResourceStatus

Status of the resource.

This is an alias to an internal type.

type SourceIPRuleParam

type SourceIPRuleParam = shared.SourceIPRuleParam

IP filter rules.

This is an alias to an internal type.

type SourceIPRuleResponse

type SourceIPRuleResponse = shared.SourceIPRuleResponse

IP filter rules.

This is an alias to an internal type.

type VMMetricUnit

type VMMetricUnit = shared.VMMetricUnit

Unit the values are expressed in.

This is an alias to an internal type.

Jump to

Keyboard shortcuts

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