Skip to content
Docs

Shared

ModelsExpand Collapse
type CostQuote struct{…}

Cost quote returned by POST /cost.

Currency string

Currency the quote is denominated in. Always “USD” in v1.

MonthlyTotal string

Arbitrary-precision decimal serialized as a string (e.g. “58.40”).

formatdecimal
PricedAt Time

Timestamp the quote was priced at.

formatdate-time
UsageDimensions []CostQuoteUsageDimension

Priced rows, one per usage dimension emitted by the resource.

Dimension string

Usage dimension being priced (e.g. compute_vcpu, storage_abs_gb).

DimensionDisplayName string

User-facing label for the dimension (e.g. “vCPU (hours)”).

MonthlyAmount string

Arbitrary-precision decimal serialized as a string (e.g. “58.40”).

formatdecimal
Quantity int64

Quantity of the dimension being priced.

UnitPrice string

Arbitrary-precision decimal serialized as a string (e.g. “58.40”).

formatdecimal
type CostQuoteUpdate struct{…}

Cost quote returned by PATCH /:id/cost: the current-state quote, the post-update quote, and the signed diff.

After CostQuoteUpdateAfter

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

MonthlyTotal string

Arbitrary-precision decimal serialized as a string (e.g. “58.40”).

formatdecimal
UsageDimensions []CostQuoteUpdateAfterUsageDimension

Priced rows, one per usage dimension emitted by the resource.

Dimension string

Usage dimension being priced (e.g. compute_vcpu, storage_abs_gb).

DimensionDisplayName string

User-facing label for the dimension (e.g. “vCPU (hours)”).

MonthlyAmount string

Arbitrary-precision decimal serialized as a string (e.g. “58.40”).

formatdecimal
Quantity int64

Quantity of the dimension being priced.

UnitPrice string

Arbitrary-precision decimal serialized as a string (e.g. “58.40”).

formatdecimal
Before CostQuoteUpdateBefore

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

MonthlyTotal string

Arbitrary-precision decimal serialized as a string (e.g. “58.40”).

formatdecimal
UsageDimensions []CostQuoteUpdateBeforeUsageDimension

Priced rows, one per usage dimension emitted by the resource.

Dimension string

Usage dimension being priced (e.g. compute_vcpu, storage_abs_gb).

DimensionDisplayName string

User-facing label for the dimension (e.g. “vCPU (hours)”).

MonthlyAmount string

Arbitrary-precision decimal serialized as a string (e.g. “58.40”).

formatdecimal
Quantity int64

Quantity of the dimension being priced.

UnitPrice string

Arbitrary-precision decimal serialized as a string (e.g. “58.40”).

formatdecimal
Currency string

Currency the quote is denominated in. Always “USD” in v1.

Diff CostQuoteUpdateDiff

Per-dimension and total deltas: after minus before.

MonthlyTotalDelta string

Arbitrary-precision decimal serialized as a string (e.g. “58.40”).

formatdecimal
UsageDimensions []CostQuoteUpdateDiffUsageDimension

Per-dimension diff entries. Includes every dimension touched by the update.

After CostQuoteUpdateDiffUsageDimensionAfter

Priced row after the update. Always present.

MonthlyAmount string

Arbitrary-precision decimal serialized as a string (e.g. “58.40”).

formatdecimal
Quantity int64
UnitPrice string

Arbitrary-precision decimal serialized as a string (e.g. “58.40”).

formatdecimal
Before CostQuoteUpdateDiffUsageDimensionBefore

Priced row after the update. Always present.

MonthlyAmount string

Arbitrary-precision decimal serialized as a string (e.g. “58.40”).

formatdecimal
Quantity int64
UnitPrice string

Arbitrary-precision decimal serialized as a string (e.g. “58.40”).

formatdecimal
Dimension string

Usage dimension being priced (e.g. compute_vcpu, storage_abs_gb).

DimensionDisplayName string

User-facing label for the dimension (e.g. “vCPU (hours)”).

MonthlyAmountDelta string

Arbitrary-precision decimal serialized as a string (e.g. “58.40”).

formatdecimal
PricedAt Time

Timestamp the quote was priced at.

formatdate-time
type RegionName string

Region the resource is in.

type ResourceStatus string

Status of the resource.

One of the following:
const ResourceStatusPending ResourceStatus = "pending"
const ResourceStatusCreating ResourceStatus = "creating"
const ResourceStatusUpdating ResourceStatus = "updating"
const ResourceStatusReady ResourceStatus = "ready"
const ResourceStatusDeleting ResourceStatus = "deleting"
const ResourceStatusDeleted ResourceStatus = "deleted"
const ResourceStatusError ResourceStatus = "error"
type SourceIPRule struct{…}

IP filter rules.

Allowed []stringOptional

List of IPv4 CIDR addresses to allow.

Blocked []stringOptional

List of IPv4 CIDR addresses to deny.

type SourceIPRuleResponse struct{…}

IP filter rules.

Allowed []string

List of IPv4 CIDR addresses to allow.

Blocked []string

List of IPv4 CIDR addresses to deny.