noderings

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: Apache-2.0 Imports: 16 Imported by: ? 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.

README

noderings-go

ci live Go Reference Go version OpenSSF Scorecard

The official Go SDK for the NodeRings API. It covers the whole public API: virtual machines, DNS, firewalls, snapshots and backups, game servers, IP address management, the marketplace, billing, access control, support tickets, and the provider side for hosts who sell on NodeRings. That is 485 operations in 69 services, all typed.

go get github.com/noderings/noderings-go

Requires Go 1.24 or later.

Quick start

client, err := noderings.NewClient(os.Getenv("NODERINGS_TOKEN"))
if err != nil {
	log.Fatal(err)
}
ctx := context.Background()

// Every virtual machine, page by page.
for vm, err := range client.VirtualMachine.ListVirtualMachinesAll(ctx, nil) {
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(vm.Hostname, vm.OperationStatus, vm.IPv4)
}

// Order a server and wait until it runs.
created, err := client.VirtualMachine.CreateVirtualMachine(ctx, &noderings.CreateVirtualMachineRequest{
	Hostname:  "web-1",
	PlanID:    planID,   // from client.Marketplace.ListProviders
	RegionID:  regionID,
	Distro:    noderings.DistroUbuntu2604,
	SSHKeyIDs: []string{sshKeyID},
})
if err != nil {
	log.Fatal(err)
}
vm, err := client.WaitForVirtualMachineStatus(ctx, created.VirtualMachine.ID, nil, noderings.OperationStatusStarted)

// Give it a DNS name.
_, err = client.DNSRecord.UpsertDNSRecord(ctx, zoneID, &noderings.UpsertDNSRecordBody{
	Record: &noderings.DNSRecord{Name: "web-1", Type: "A", TTL: 300, Rdata: []string{vm.IPv4}},
})

examples/quickstart is a complete program, and the package documentation has more examples.

Authentication

Create a service account in the NodeRings console under Organization → Access Control → Service accounts, give it the permissions your program needs, and pass its token to NewClient. Keep the token out of source code; read it from the environment or a secret store.

Option Use
WithOrganization(id) Act in another organization the token can access (the X-Organization-ID header). By default the token's own organization is used.
WithBaseURL(url) Another API endpoint. The default is https://api.noderings.com.
WithHTTPClient(c) Your own *http.Client (proxy, timeouts, transport).
WithUserAgent(s) Add your product to the User-Agent.
WithRetries(n, min, max) Retry count and backoff (default 3, 500 ms, 10 s).
WithLogger(l) A *slog.Logger for one debug line per request. Tokens and bodies are never logged.

A few user-account operations (sign-in, MFA, linked identities, the OAuth authorize step) only work with a signed-in user's session, not with a service account token.

Services

Every area of the API is a field of Client, and every method is one API operation, named as in the API description.

Area Services
Compute VirtualMachine (create, start, stop, restart, reinstall, delete, tags, firewall, backups, extra IPs, console), Snapshot, Backup, VMTemplate, CloudInitUserData, CloudInitTemplate, InstantApp, Metadata (distro catalog)
Game servers GameServer (46 operations: lifecycle, files, databases, backups, schedules, allocations), GameServerTemplate
DNS DNSZone, DNSRecord, DNSSEC, Domain
Network Firewall (rulesets, rules, address groups), IPAM
Marketplace Marketplace (regions, plan codes, offers, plans), Region, Plan, ClientProviderReview
Billing Subscription, Addon, Invoice, Payment, PaymentMethod, Refund, Credit, Coupon, UsageReport, ExchangeRate
Organization and access Organization, User, ServiceAccount, Group, Role, Permission, Invite, Secret, EnvironmentVariable, OAuth2
Monitoring Monitoring, BusinessMonitoring, Metric, MetricsCredential, ClientDashboard
Support Ticket, Chat, Roadmap
Providers (hosts selling on NodeRings) ProviderPlan, ProviderStorefront, ProviderCustomer, ProviderDashboard, ProviderDashboardPlansTab, ProviderReview, ProviderNetwork, ProviderConnect, ProviderOnboarding, ProviderTicketNotification, PayoutConfiguration, PayoutInvoice, ManualPayout, LiveValidation, Preflight, Platform, Node, NodePlacement, Agent, HookScript

For an operation the SDK does not have yet, client.Do(ctx, method, path, query, body, &out) sends a request with the same authentication, retries and error handling.

How it works

Types. Every request and response is a Go struct with the API's JSON names. Enums are typed string constants (noderings.DistroUbuntu2604, noderings.OperationStatusStarted), timestamps are *time.Time, and 64-bit numbers, which the API sends as strings, are plain int64. Booleans in request bodies are *bool, so false can be sent: StopVM: noderings.Ptr(false).

Paging. List operations that take page and pageSize have an ...All variant returning an iterator over every result. It reads 100 rows per page (the API's maximum) and stops when you break out of the loop. noderings.Collect turns an iterator into a slice.

Errors. API errors are *noderings.Error with the HTTP status, the API's status code, its message and structured details. Helpers cover the common checks: IsNotFound, IsAlreadyExists, IsUnauthenticated, IsPermissionDenied, IsInvalidArgument, IsRateLimited, IsQuotaExceeded (a plan limit such as the number of servers, with Reason() like VM_LIMIT_REACHED) and IsBusy (another operation on the resource is still running).

Retries. A request is retried when the API rate-limits it (HTTP 429, unless a plan quota is used up, honoring Retry-After), and on connection errors and HTTP 502, 503 and 504 when it is safe to repeat: reads, PUT, DELETE, and creates that carry an idempotency key.

Idempotency. Creates that take an idempotency key (virtual machines, game servers) get a new UUID automatically, written back into your request struct. Send the same struct again to retry a create that may have gone through, and no second server is ordered.

Waiting. WaitForVirtualMachineStatus, WaitForVirtualMachineDeleted and the general WaitForVirtualMachine poll until a condition holds, with an interval and timeout.

Testing

Suite What it checks
go test ./... Calls every one of the 485 generated methods against a fake API and checks the HTTP method, the path and its escaping, every query parameter's name, the body and the auth headers against the API description. Also covers retries, Retry-After, errors, idempotency keys, iterators, waiting, 64-bit and enum encoding.
go test -tags live Against the real API: every read that needs no ID, checked for fields the description lacks; SSH keys, a DNS zone with records, firewall rulesets and rules, and cloud-init data created and deleted. With NODERINGS_TEST_BILLED=1, a virtual machine is created, started, stopped, tagged, snapshotted, given a firewall and deleted.

The live suite runs nightly in CI. See CONTRIBUTING.md.

Versioning

The SDK is generated from api/openapi.json by internal/gen. A weekly job fetches the published description and opens a pull request when it changed. Releases follow semantic versioning; while the version is 0.x, a minor release can rename a field when the API itself renames it, and CHANGELOG.md says so.

Not included: the payment-provider webhook endpoint (it receives calls, it does not make them) and NodeRings staff-only enforcement endpoints.

Terraform provider · Pulumi · Ansible · external-dns webhook · cert-manager webhook · Prometheus service discovery

License

Apache 2.0

Documentation

Overview

Package noderings is the Go SDK for the NodeRings API: virtual machines, DNS, firewalls, snapshots and backups, game servers, the marketplace, billing, and the provider (seller) side of NodeRings.

Create a client with a service account token and call the service for the part of the API you need:

client, err := noderings.NewClient(os.Getenv("NODERINGS_TOKEN"))
if err != nil { ... }
vms, err := client.VirtualMachine.ListVirtualMachines(ctx, nil)

Every API area is a field of Client (VirtualMachine, DNSZone, DNSRecord, Firewall, Marketplace, ProviderPlan, and so on). Each method calls one API operation; list operations that page also have an ...All method that returns an iterator over every result.

Example
package main

import (
	"context"
	"fmt"
	"log"
	"os"

	"github.com/noderings/noderings-go"
)

func main() {
	client, err := noderings.NewClient(os.Getenv("NODERINGS_TOKEN"))
	if err != nil {
		log.Fatal(err)
	}
	ctx := context.Background()

	// Every virtual machine in the organization, page by page.
	for vm, err := range client.VirtualMachine.ListVirtualMachinesAll(ctx, nil) {
		if err != nil {
			log.Fatal(err)
		}
		fmt.Println(vm.Hostname, vm.OperationStatus, vm.IPv4)
	}
}

Index

Examples

Constants

View Source
const DefaultBaseURL = "https://api.noderings.com"

DefaultBaseURL is the public NodeRings API.

View Source
const Version = "0.1.0"

Version is the SDK version, sent in the User-Agent header.

Variables

This section is empty.

Functions

func Collect

func Collect[T any](seq iter.Seq2[T, error]) ([]T, error)

Collect reads an iterator, such as ListVirtualMachinesAll, into a slice. It stops at the first error and returns the items read so far with it.

func IsAlreadyExists

func IsAlreadyExists(err error) bool

IsAlreadyExists reports whether err means the resource already exists.

func IsBusy

func IsBusy(err error) bool

IsBusy reports whether the API refused an action because another operation on the resource is still running ("operation in progress"). Such calls succeed when retried a little later.

func IsInvalidArgument

func IsInvalidArgument(err error) bool

IsInvalidArgument reports whether the request was rejected as invalid.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound reports whether err means the resource does not exist.

Example

Errors carry the API's status code; helpers check the common cases.

package main

import (
	"context"
	"fmt"
	"log"
	"os"

	"github.com/noderings/noderings-go"
)

func main() {
	client, _ := noderings.NewClient(os.Getenv("NODERINGS_TOKEN"))
	_, err := client.VirtualMachine.GetVirtualMachine(context.Background(), "00000000-0000-0000-0000-000000000000")
	switch {
	case noderings.IsNotFound(err):
		fmt.Println("no such virtual machine")
	case noderings.IsQuotaExceeded(err):
		fmt.Println("plan limit reached")
	case err != nil:
		log.Fatal(err)
	}
}

func IsPermissionDenied

func IsPermissionDenied(err error) bool

IsPermissionDenied reports whether the token lacks a permission.

func IsQuotaExceeded

func IsQuotaExceeded(err error) bool

IsQuotaExceeded reports whether a plan quota, such as the number of virtual machines, is used up.

func IsRateLimited

func IsRateLimited(err error) bool

IsRateLimited reports whether the API asked to slow down (HTTP 429) and the cause is not an exhausted plan quota.

func IsUnauthenticated

func IsUnauthenticated(err error) bool

IsUnauthenticated reports whether the token was missing or rejected.

func NewIdempotencyKey

func NewIdempotencyKey() string

NewIdempotencyKey returns a random UUID (version 4). Creates that take an idempotency key get one automatically; set your own when you need to retry a create after your program restarts.

func Ptr

func Ptr[T any](v T) *T

Ptr returns a pointer to v, for optional fields such as *bool:

&noderings.DeleteDNSZoneParams{Force: noderings.Ptr(true)}

Types

type AcceptInviteParams

type AcceptInviteParams struct {
	InviteID string
}

AcceptInviteParams are the query parameters of InviteService.AcceptInvite.

type AddAddonToSubscriptionBody

type AddAddonToSubscriptionBody struct {
	AddonID      string `json:"addonId,omitempty"`
	AddonPriceID string `json:"addonPriceId,omitempty"`
	Quantity     int32  `json:"quantity,omitempty"`
}

AddAddonToSubscriptionBody is the API's AddonServiceAddAddonToSubscriptionBody object.

type AddAddonToSubscriptionResponse

type AddAddonToSubscriptionResponse struct {
	AddonSubscription *AddonSubscription `json:"addonSubscription,omitempty"`
}

AddAddonToSubscriptionResponse is the API's v1AddAddonToSubscriptionResponse object.

type AddInternalCommentBody

type AddInternalCommentBody struct {
	Comment string `json:"comment,omitempty"`
}

AddInternalCommentBody is the API's TicketServiceAddInternalCommentBody object.

type AddInternalCommentResponse

type AddInternalCommentResponse struct {
	Comment *TicketInternalComment `json:"comment,omitempty"`
}

AddInternalCommentResponse is the API's v1AddInternalCommentResponse object.

type AddReplyToTicketBody

type AddReplyToTicketBody struct {
	ReplyMessage string `json:"replyMessage,omitempty"`
}

AddReplyToTicketBody is the API's TicketServiceAddReplyToTicketBody object.

type AddReservedIPBody

type AddReservedIPBody struct {
	IPAddress string `json:"ipAddress,omitempty"`
}

AddReservedIPBody: IP Reservation

type AddReservedPrefixBody

type AddReservedPrefixBody struct {
	CIDR string `json:"cidr,omitempty"`
}

AddReservedPrefixBody is the API's IPAMServiceAddReservedPrefixBody object.

type AddServiceAccountToGroupRequest

type AddServiceAccountToGroupRequest struct {
	GroupID           string   `json:"groupId,omitempty"`
	ServiceAccountIDs []string `json:"serviceAccountIds,omitempty"`
}

AddServiceAccountToGroupRequest is the API's v1AddServiceAccountToGroupRequest object.

type AddUserToGroupRequest

type AddUserToGroupRequest struct {
	GroupID string   `json:"groupId,omitempty"`
	UserIDs []string `json:"userIds,omitempty"`
}

AddUserToGroupRequest is the API's v1AddUserToGroupRequest object.

type AdditionalIPAddress

type AdditionalIPAddress struct {
	// Read-only: set by the API.
	Gateway string `json:"gateway,omitempty"`
	// Read-only: set by the API.
	IPAddress string `json:"ipAddress,omitempty"`
	// Read-only: set by the API.
	PrefixLength string `json:"prefixLength,omitempty"`
}

AdditionalIPAddress: AdditionalIPAddress is an extra IPv4 allocated from the VM's primary prefix.

type Addon

type Addon struct {
	AddonCategory        AssetCategory  `json:"addonCategory,omitempty"`
	AddonPrices          []AddonPrice   `json:"addonPrices,omitempty"`
	AddonType            AddonType      `json:"addonType,omitempty"`
	AutoAttach           bool           `json:"autoAttach,omitempty"`
	Code                 string         `json:"code,omitempty"`
	CompatibleAssetTypes []string       `json:"compatibleAssetTypes,omitempty"`
	CompatiblePlanCodes  []string       `json:"compatiblePlanCodes,omitempty"`
	Description          string         `json:"description,omitempty"`
	ExternalID           string         `json:"externalId,omitempty"`
	ID                   string         `json:"id,omitempty"`
	IsPublic             bool           `json:"isPublic,omitempty"`
	IsTemplate           bool           `json:"isTemplate,omitempty"`
	Metadata             map[string]any `json:"metadata,omitempty"`
	Name                 string         `json:"name,omitempty"`
	RequiresApproval     bool           `json:"requiresApproval,omitempty"`
	Status               Protov1Status  `json:"status,omitempty"`
	TenantID             string         `json:"tenantId,omitempty"`
	Timestamps           *Timestamps    `json:"timestamps,omitempty"`
}

Addon is the API's v1Addon object.

type AddonInput

type AddonInput struct {
	Code  string             `json:"code,omitempty"`
	Usage map[string]float64 `json:"usage,omitempty"`
}

AddonInput is the API's v1AddonInput object.

type AddonPrice

type AddonPrice struct {
	AddonID           string            `json:"addonId,omitempty"`
	BillingInterval   int32             `json:"billingInterval,omitempty"`
	BillingPeriod     BillingPeriod     `json:"billingPeriod,omitempty"`
	ChargeTiming      ChargeTiming      `json:"chargeTiming,omitempty"`
	Currency          string            `json:"currency,omitempty"`
	EffectiveFrom     *time.Time        `json:"effectiveFrom,omitempty"`
	EffectiveUntil    *time.Time        `json:"effectiveUntil,omitempty"`
	ExternalID        string            `json:"externalId,omitempty"`
	ID                string            `json:"id,omitempty"`
	Kind              AddonPriceKind    `json:"kind,omitempty"`
	MaxQuantity       int32             `json:"maxQuantity,omitempty"`
	MaximumCharge     string            `json:"maximumCharge,omitempty"`
	Metadata          map[string]any    `json:"metadata,omitempty"`
	MetricAggregation MetricAggregation `json:"metricAggregation,omitempty"`
	MetricName        string            `json:"metricName,omitempty"`
	MinQuantity       int32             `json:"minQuantity,omitempty"`
	// Decimal string with 6 decimal places precision
	MinimumCharge  string         `json:"minimumCharge,omitempty"`
	PricingFormula map[string]any `json:"pricingFormula,omitempty"`
	PricingModel   PricingModel   `json:"pricingModel,omitempty"`
	Prorate        bool           `json:"prorate,omitempty"`
	Status         Protov1Status  `json:"status,omitempty"`
	Timestamps     *Timestamps    `json:"timestamps,omitempty"`
	UnitAmount     string         `json:"unitAmount,omitempty"`
	UnitName       string         `json:"unitName,omitempty"`
}

AddonPrice: DEPRECATED: AddonPrice is deprecated. Use PlanPrice with product_type=PRODUCT_TYPE_ADDON instead. This message is kept for backward compatibility but should not be used for new code.

type AddonPriceKind

type AddonPriceKind string

AddonPriceKind is an API enum.

const (
	AddonPriceKindUnspecified  AddonPriceKind = "ADDON_PRICE_KIND_UNSPECIFIED"
	AddonPriceKindOneTime      AddonPriceKind = "ADDON_PRICE_KIND_ONE_TIME"
	AddonPriceKindSubscription AddonPriceKind = "ADDON_PRICE_KIND_SUBSCRIPTION"
	AddonPriceKindUsageBased   AddonPriceKind = "ADDON_PRICE_KIND_USAGE_BASED"
)

Values of AddonPriceKind.

type AddonPriceOverride

type AddonPriceOverride struct {
	AddonCode  string `json:"addonCode,omitempty"`
	UnitAmount string `json:"unitAmount,omitempty"`
}

AddonPriceOverride: AddonPriceOverride allows providers to set custom prices for addons when creating plans. If an addon_code is specified here, the override price will be used instead of copying from template. Only accepts unit_amount_minor (price). Currency comes from plan level.

type AddonService

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

AddonService calls the NodeRings AddonService API.

func (*AddonService) AddAddonToSubscription

func (s *AddonService) AddAddonToSubscription(ctx context.Context, subscriptionID string, body *AddAddonToSubscriptionBody) (*AddAddonToSubscriptionResponse, error)

AddAddonToSubscription: Add an addon to a subscription

It calls POST /v1/subscriptions/{subscriptionId}/addons.

func (*AddonService) CreateAddon

func (s *AddonService) CreateAddon(ctx context.Context, body *CreateAddonRequest) (*SuccessResponse, error)

CreateAddon: Create an addon from a template addon

It calls POST /v1/addons.

func (*AddonService) DeleteAddon

func (s *AddonService) DeleteAddon(ctx context.Context, id string) (*SuccessResponse, error)

DeleteAddon: Delete an addon (soft delete)

It calls DELETE /v1/addons/{id}.

func (*AddonService) GetAddon

func (s *AddonService) GetAddon(ctx context.Context, id string) (*GetAddonResponse, error)

GetAddon: Get a specific addon with its prices

It calls GET /v1/addons/{id}.

func (*AddonService) ListAddonSubscriptions

func (s *AddonService) ListAddonSubscriptions(ctx context.Context, subscriptionID string, params *ListAddonSubscriptionsParams) (*ListAddonSubscriptionsResponse, error)

ListAddonSubscriptions: List addon subscriptions for a subscription

It calls GET /v1/subscriptions/{subscriptionId}/addons.

func (*AddonService) ListAddons

func (s *AddonService) ListAddons(ctx context.Context, params *ListAddonsParams) (*ListAddonsResponse, error)

ListAddons: List available addons

It calls GET /v1/addons.

func (*AddonService) ListAddonsAll

func (s *AddonService) ListAddonsAll(ctx context.Context, params *ListAddonsParams) iter.Seq2[Addon, error]

ListAddonsAll returns an iterator over every result of ListAddons, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*AddonService) RemoveAddon

func (s *AddonService) RemoveAddon(ctx context.Context, addonSubscriptionID string, params *RemoveAddonParams) (*RemoveAddonResponse, error)

RemoveAddon: Remove an addon from a subscription. cancel_immediately=false keeps the add-on (and IP/backup) until the parent subscription period ends; the renewal task then deprovisions it.

It calls DELETE /v1/addon-subscriptions/{addonSubscriptionId}.

func (*AddonService) UndoCancelAddon

func (s *AddonService) UndoCancelAddon(ctx context.Context, addonSubscriptionID string, body *UndoCancelAddonBody) (*RemoveAddonResponse, error)

UndoCancelAddon: UndoCancelAddon clears cancel_at_period_end so the add-on renews with the VM.

It calls POST /v1/addon-subscriptions/{addonSubscriptionId}:undo-cancel.

func (*AddonService) UpdateAddon

func (s *AddonService) UpdateAddon(ctx context.Context, id string, body *UpdateAddonBody) (*SuccessResponse, error)

UpdateAddon: Update an addon (allows changing price and currency)

It calls PATCH /v1/addons/{id}.

type AddonStatus

type AddonStatus string

AddonStatus is an API enum.

const (
	AddonStatusUnspecified       AddonStatus = "ADDON_STATUS_UNSPECIFIED"
	AddonStatusActive            AddonStatus = "ADDON_STATUS_ACTIVE"
	AddonStatusCanceled          AddonStatus = "ADDON_STATUS_CANCELED"
	AddonStatusPaused            AddonStatus = "ADDON_STATUS_PAUSED"
	AddonStatusPendingActivation AddonStatus = "ADDON_STATUS_PENDING_ACTIVATION"
)

Values of AddonStatus.

type AddonSubscription

type AddonSubscription struct {
	AddonCode         string         `json:"addonCode,omitempty"`
	AddonID           string         `json:"addonId,omitempty"`
	AddonName         string         `json:"addonName,omitempty"`
	AddonPriceID      string         `json:"addonPriceId,omitempty"`
	AddonStatus       AddonStatus    `json:"addonStatus,omitempty"`
	AddonType         AddonType      `json:"addonType,omitempty"`
	CancelAtPeriodEnd bool           `json:"cancelAtPeriodEnd,omitempty"`
	CanceledAt        *time.Time     `json:"canceledAt,omitempty"`
	Currency          string         `json:"currency,omitempty"`
	EndDate           *time.Time     `json:"endDate,omitempty"`
	ExternalID        string         `json:"externalId,omitempty"`
	ID                string         `json:"id,omitempty"`
	Metadata          map[string]any `json:"metadata,omitempty"`
	PricingModel      PricingModel   `json:"pricingModel,omitempty"`
	Quantity          int32          `json:"quantity,omitempty"`
	StartDate         *time.Time     `json:"startDate,omitempty"`
	Status            Protov1Status  `json:"status,omitempty"`
	SubscriptionID    string         `json:"subscriptionId,omitempty"`
	SubscriptionName  string         `json:"subscriptionName,omitempty"`
	Timestamps        *Timestamps    `json:"timestamps,omitempty"`
	// Catalog unit amount for the bound addon price (decimal string). Empty when unknown.
	UnitAmount string `json:"unitAmount,omitempty"`
}

AddonSubscription is the API's v1AddonSubscription object.

type AddonType

type AddonType string

AddonType is an API enum.

const (
	AddonTypeUnspecified  AddonType = "ADDON_TYPE_UNSPECIFIED"
	AddonTypeBackup       AddonType = "ADDON_TYPE_BACKUP"
	AddonTypeSnapshot     AddonType = "ADDON_TYPE_SNAPSHOT"
	AddonTypeAdditionalIP AddonType = "ADDON_TYPE_ADDITIONAL_IP"
)

Values of AddonType.

type Agent

type Agent struct {
	AgentPublicIP       string             `json:"agentPublicIp,omitempty"`
	Description         string             `json:"description,omitempty"`
	GatewayRegion       AgentGatewayRegion `json:"gatewayRegion,omitempty"`
	GwServerServicePort int32              `json:"gwServerServicePort,omitempty"`
	// - PLATFORM_DRIVER_PTERODACTYL: Game-server platform. Not a value of the organization hypervisor driver.
	HypervisorDriver    PlatformDriver      `json:"hypervisorDriver,omitempty"`
	ID                  string              `json:"id,omitempty"`
	InboundPeeringError string              `json:"inboundPeeringError,omitempty"`
	InboundPeeringState InboundPeeringState `json:"inboundPeeringState,omitempty"`
	Metadata            map[string]any      `json:"metadata,omitempty"`
	Name                string              `json:"name,omitempty"`
	OrganizationID      string              `json:"organizationId,omitempty"`
	Provisioned         bool                `json:"provisioned,omitempty"`
	ServiceStatus       ServiceStatus       `json:"serviceStatus,omitempty"`
	Status              Protov1Status       `json:"status,omitempty"`
	Timestamps          *Timestamps         `json:"timestamps,omitempty"`
}

Agent is the API's v1Agent object.

type AgentGatewayRegion

type AgentGatewayRegion string

AgentGatewayRegion is an API enum.

const (
	AgentGatewayRegionUnspecified AgentGatewayRegion = "AGENT_GATEWAY_REGION_UNSPECIFIED"
	AgentGatewayRegionAms01       AgentGatewayRegion = "AGENT_GATEWAY_REGION_AMS01"
)

Values of AgentGatewayRegion.

type AgentService

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

AgentService calls the NodeRings AgentService API.

func (*AgentService) CreateAgent

func (s *AgentService) CreateAgent(ctx context.Context, body *CreateAgentRequest) (*GetAgentResponse, error)

CreateAgent calls POST /v1/agents.

func (*AgentService) DeleteAgent

func (s *AgentService) DeleteAgent(ctx context.Context, id string) (*SuccessResponse, error)

DeleteAgent calls DELETE /v1/agents/{id}.

func (*AgentService) GenerateInstallCommand

GenerateInstallCommand calls POST /v1/agents/{id}:generateInstallCommand.

func (*AgentService) GeneratePeeringConfig

GeneratePeeringConfig calls POST /v1/agents/{id}:generatePeeringConfig.

func (*AgentService) GetAgent

func (s *AgentService) GetAgent(ctx context.Context, id string) (*GetAgentResponse, error)

GetAgent calls GET /v1/agents/{id}.

func (*AgentService) ListAgents

func (s *AgentService) ListAgents(ctx context.Context, params *ListAgentsParams) (*ListAgentsResponse, error)

ListAgents calls GET /v1/agents.

func (*AgentService) ListAgentsAll

func (s *AgentService) ListAgentsAll(ctx context.Context, params *ListAgentsParams) iter.Seq2[GetAgentResponse, error]

ListAgentsAll returns an iterator over every result of ListAgents, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*AgentService) UpdateAgent

func (s *AgentService) UpdateAgent(ctx context.Context, id string, body *UpdateAgentBody) (*UpdateAgentResponse, error)

UpdateAgent calls PATCH /v1/agents/{id}.

func (*AgentService) UploadInboundPeeringConfig

UploadInboundPeeringConfig calls POST /v1/agents/{id}:uploadInboundPeeringConfig.

type AggregationType

type AggregationType string

AggregationType is an API enum.

const (
	AggregationTypeUnspecified      AggregationType = "AGGREGATION_TYPE_UNSPECIFIED"
	AggregationTypeSum              AggregationType = "AGGREGATION_TYPE_SUM"
	AggregationTypeMax              AggregationType = "AGGREGATION_TYPE_MAX"
	AggregationTypeMin              AggregationType = "AGGREGATION_TYPE_MIN"
	AggregationTypeAvg              AggregationType = "AGGREGATION_TYPE_AVG"
	AggregationTypeCount            AggregationType = "AGGREGATION_TYPE_COUNT"
	AggregationTypeLastDuringPeriod AggregationType = "AGGREGATION_TYPE_LAST_DURING_PERIOD"
)

Values of AggregationType.

type AllocationStrategy

type AllocationStrategy string

AllocationStrategy is an API enum.

const (
	AllocationStrategyUnspecified    AllocationStrategy = "ALLOCATION_STRATEGY_UNSPECIFIED"
	AllocationStrategySequential     AllocationStrategy = "ALLOCATION_STRATEGY_SEQUENTIAL"
	AllocationStrategyRandom         AllocationStrategy = "ALLOCATION_STRATEGY_RANDOM"
	AllocationStrategyFirstAvailable AllocationStrategy = "ALLOCATION_STRATEGY_FIRST_AVAILABLE"
	AllocationStrategyLastAvailable  AllocationStrategy = "ALLOCATION_STRATEGY_LAST_AVAILABLE"
)

Values of AllocationStrategy.

type ArchiveFilesBody

type ArchiveFilesBody struct {
	Files []string `json:"files,omitempty"`
	Root  string   `json:"root,omitempty"`
}

ArchiveFilesBody is the API's GameServerServiceArchiveFilesBody object.

type ArchiveFilesResponse

type ArchiveFilesResponse struct {
	Name string `json:"name,omitempty"`
}

ArchiveFilesResponse is the API's v1ArchiveFilesResponse object.

type AssetCategory

type AssetCategory string

AssetCategory is an API enum.

const (
	AssetCategoryUnspecified AssetCategory = "ASSET_CATEGORY_UNSPECIFIED"
	AssetCategoryCompute     AssetCategory = "ASSET_CATEGORY_COMPUTE"
	AssetCategoryStorage     AssetCategory = "ASSET_CATEGORY_STORAGE"
	AssetCategoryNetwork     AssetCategory = "ASSET_CATEGORY_NETWORK"
	AssetCategorySecurity    AssetCategory = "ASSET_CATEGORY_SECURITY"
	AssetCategoryManagement  AssetCategory = "ASSET_CATEGORY_MANAGEMENT"
	AssetCategoryMonitoring  AssetCategory = "ASSET_CATEGORY_MONITORING"
	AssetCategorySupport     AssetCategory = "ASSET_CATEGORY_SUPPORT"
	AssetCategoryOther       AssetCategory = "ASSET_CATEGORY_OTHER"
)

Values of AssetCategory.

type AssetType

type AssetType string

AssetType is an API enum.

const (
	AssetTypeUnspecified AssetType = "ASSET_TYPE_UNSPECIFIED"
	AssetTypeVM          AssetType = "ASSET_TYPE_VM"
	AssetTypeContainer   AssetType = "ASSET_TYPE_CONTAINER"
	AssetTypeStorage     AssetType = "ASSET_TYPE_STORAGE"
	AssetTypeGameserver  AssetType = "ASSET_TYPE_GAMESERVER"
	AssetTypeCdn         AssetType = "ASSET_TYPE_CDN"
	AssetTypeIPAddress   AssetType = "ASSET_TYPE_IP_ADDRESS"
	AssetTypeDNS         AssetType = "ASSET_TYPE_DNS"
	AssetTypeGPU         AssetType = "ASSET_TYPE_GPU"
	AssetTypeGeneric     AssetType = "ASSET_TYPE_GENERIC"
)

Values of AssetType.

type AssignAgentBody

type AssignAgentBody struct {
	AgentID string `json:"agentId,omitempty"`
}

AssignAgentBody is the API's PlatformServiceAssignAgentBody object.

type AssignNetworkToNodeBody

type AssignNetworkToNodeBody struct {
	NodeIDs []string `json:"nodeIds,omitempty"`
}

AssignNetworkToNodeBody: Node-Network assignment

type AssignPermissionToRoleRequest

type AssignPermissionToRoleRequest struct {
	PermissionIDs []string `json:"permissionIds,omitempty"`
	RoleID        string   `json:"roleId,omitempty"`
}

AssignPermissionToRoleRequest is the API's v1AssignPermissionToRoleRequest object.

type AssignableNodeView

type AssignableNodeView struct {
	CatalogBrand string `json:"catalogBrand,omitempty"`
	CatalogModel string `json:"catalogModel,omitempty"`
	// Compute product hosted by a node. Exclusive: a node is shared XOR dedicated
	// (docs/README-DEDICATED-CPU-CORES.md, design decision D1).
	//
	//  - NODE_COMPUTE_TYPE_SHARED: Shared vCPU hosting (CPU oversubscription allowed). Default.
	//  - NODE_COMPUTE_TYPE_DEDICATED: Dedicated pinned CPU cores (no CPU overallocation).
	ComputeType NodeComputeType `json:"computeType,omitempty"`
	CPUModel    string          `json:"cpuModel,omitempty"`
	ID          string          `json:"id,omitempty"`
	Name        string          `json:"name,omitempty"`
	RegionID    string          `json:"regionId,omitempty"`
}

AssignableNodeView is the API's v1AssignableNodeView object.

type AttachPaymentMethodRequest

type AttachPaymentMethodRequest struct {
	// Create an off-session SetupIntent and return its client secret. The
	// browser confirms the card, then calls again with setup_intent_id.
	CreateSetupIntent *bool `json:"createSetupIntent,omitempty"`
	// Optional: custom metadata
	Metadata map[string]any `json:"metadata,omitempty"`
	// Payment method details.
	// Provide one of: payment_method_id, payment_method_token, setup_intent_id,
	// or create_setup_intent.
	//
	// Optional: Payment method ID (if using existing)
	PaymentMethodID    string `json:"paymentMethodId,omitempty"`
	PaymentMethodToken string `json:"paymentMethodToken,omitempty"`
	// Whether to set as default payment method
	SetAsDefault *bool `json:"setAsDefault,omitempty"`
	// Confirmed SetupIntent (seti_...) after the browser finishes 3D Secure.
	SetupIntentID  string `json:"setupIntentId,omitempty"`
	SubscriptionID string `json:"subscriptionId,omitempty"`
}

AttachPaymentMethodRequest: Payment method messages

type AttachPaymentMethodResponse

type AttachPaymentMethodResponse struct {
	// Present when create_setup_intent was set. Pass to stripe.confirmCardSetup.
	ClientSecret   string         `json:"clientSecret,omitempty"`
	PaymentMethod  *PaymentMethod `json:"paymentMethod,omitempty"`
	RequiresAction bool           `json:"requiresAction,omitempty"`
	SetupIntentID  string         `json:"setupIntentId,omitempty"`
}

AttachPaymentMethodResponse is the API's v1AttachPaymentMethodResponse object.

type AttachVMFirewallBody

type AttachVMFirewallBody struct {
	RulesetID string `json:"rulesetId,omitempty"`
}

AttachVMFirewallBody is the API's VirtualMachineServiceAttachVMFirewallBody object.

type AuthorizeParams

type AuthorizeParams struct {
	ClientID     string
	ResponseType string
	RedirectURI  string
	Scope        string
	// CSRF protection
	State string
	// PKCE challenge
	CodeChallenge string
	// Only S256, not plain
	CodeChallengeMethod string
}

AuthorizeParams are the query parameters of OAuth2Service.Authorize.

type AuthorizeResponse

type AuthorizeResponse struct {
	AuthorizationURL string `json:"authorizationUrl,omitempty"`
	Code             string `json:"code,omitempty"`
	State            string `json:"state,omitempty"`
}

AuthorizeResponse is the API's v1AuthorizeResponse object.

type AvailablePlanCode

type AvailablePlanCode struct {
	BillingType BillingType `json:"billingType,omitempty"`
	// - COMPUTE_CATEGORY_SHARED_COMPUTE: Shared compute (shared resources, cost-effective)
	//  - COMPUTE_CATEGORY_DEDICATED_COMPUTE: Dedicated compute (dedicated resources, higher performance)
	ComputeCategory ComputeCategory `json:"computeCategory,omitempty"`
	// - COMPUTE_TYPE_GENERAL_COMPUTE: GC - General Compute (balanced performance)
	//  - COMPUTE_TYPE_HIGH_FREQUENCY: HF - High Frequency (CPU-optimized, high clock speeds)
	//  - COMPUTE_TYPE_HIGH_PERFORMANCE: HP - High Performance (next-gen CPUs, NVMe storage)
	//  - COMPUTE_TYPE_GENERAL_PURPOSE: GP - General Purpose (balanced dedicated resources)
	//  - COMPUTE_TYPE_CPU_OPTIMIZED: CPU - CPU Optimized (high CPU-to-memory ratio)
	//  - COMPUTE_TYPE_MEMORY_OPTIMIZED: MEM - Memory Optimized (high memory-to-CPU ratio)
	//  - COMPUTE_TYPE_STORAGE_OPTIMIZED: STO - Storage Optimized (high storage capacity)
	//  - COMPUTE_TYPE_VERY_HIGH_FREQUENCY: VHF - Very High Frequency (highest clock dedicated CPUs)
	//  - COMPUTE_TYPE_GAME_SERVER: GS - Game Server (per-CPU SKU dedicated plans, e.g. DC-GS-9950X-*)
	ComputeType ComputeType `json:"computeType,omitempty"`
	PlanCode    string      `json:"planCode,omitempty"`
}

AvailablePlanCode: Available plan code information (deduplicated)

type Backup

type Backup struct {
	// Read-only: set by the API.
	AddonID string `json:"addonId,omitempty"`
	// Read-only: set by the API.
	BackupID     string       `json:"backupId,omitempty"`
	BackupStatus BackupStatus `json:"backupStatus,omitempty"`
	// Read-only: set by the API.
	CreatedAt *time.Time `json:"createdAt,omitempty"`
	// Read-only: set by the API.
	ID       string         `json:"id,omitempty"`
	Metadata map[string]any `json:"metadata,omitempty"`
	// Read-only: set by the API.
	Name            string                `json:"name,omitempty"`
	OperationStatus BackupOperationStatus `json:"operationStatus,omitempty"`
	RestoreStatus   RestoreStatus         `json:"restoreStatus,omitempty"`
	// Read-only: set by the API.
	RestoredAt *time.Time `json:"restoredAt,omitempty"`
	// Read-only: set by the API.
	SizeBytes  int64         `json:"sizeBytes,omitempty,string"`
	Status     Protov1Status `json:"status,omitempty"`
	Timestamps *Timestamps   `json:"timestamps,omitempty"`
	// Read-only: set by the API.
	VirtualMachineID string `json:"virtualMachineId,omitempty"`
}

Backup: Backup represents a backup of a virtual machine

type BackupOperationStatus

type BackupOperationStatus string

BackupOperationStatus is an API enum.

const (
	BackupOperationStatusUnspecified BackupOperationStatus = "BACKUP_OPERATION_STATUS_UNSPECIFIED"
	BackupOperationStatusPending     BackupOperationStatus = "BACKUP_OPERATION_STATUS_PENDING"
	BackupOperationStatusProcessing  BackupOperationStatus = "BACKUP_OPERATION_STATUS_PROCESSING"
	BackupOperationStatusCompleted   BackupOperationStatus = "BACKUP_OPERATION_STATUS_COMPLETED"
	BackupOperationStatusFailed      BackupOperationStatus = "BACKUP_OPERATION_STATUS_FAILED"
)

Values of BackupOperationStatus.

type BackupRestoreBackupBody

type BackupRestoreBackupBody struct {
	StartAfterRestore *bool `json:"startAfterRestore,omitempty"`
}

BackupRestoreBackupBody is the API's v1BackupServiceRestoreBackupBody object.

type BackupService

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

BackupService calls the NodeRings BackupService API.

func (*BackupService) DeleteBackup

func (s *BackupService) DeleteBackup(ctx context.Context, vmID string, backupID string) (*SuccessResponse, error)

DeleteBackup calls DELETE /v1/virtual-machines/{vmId}/backups/{backupId}.

func (*BackupService) GetBackup

func (s *BackupService) GetBackup(ctx context.Context, vmID string, backupID string) (*GetBackupResponse, error)

GetBackup calls GET /v1/virtual-machines/{vmId}/backups/{backupId}.

func (*BackupService) ListBackups

func (s *BackupService) ListBackups(ctx context.Context, vmID string, params *ListBackupsParams) (*ListBackupsResponse, error)

ListBackups calls GET /v1/virtual-machines/{vmId}/backups.

func (*BackupService) ListBackupsAll

func (s *BackupService) ListBackupsAll(ctx context.Context, vmID string, params *ListBackupsParams) iter.Seq2[Backup, error]

ListBackupsAll returns an iterator over every result of ListBackups, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*BackupService) RestoreBackup

func (s *BackupService) RestoreBackup(ctx context.Context, vmID string, backupID string, body *BackupRestoreBackupBody) (*SuccessResponse, error)

RestoreBackup calls POST /v1/virtual-machines/{vmId}/backups/{backupId}/restore.

type BackupStatus

type BackupStatus string

BackupStatus is an API enum.

const (
	BackupStatusUnspecified BackupStatus = "BACKUP_STATUS_UNSPECIFIED"
	BackupStatusActive      BackupStatus = "BACKUP_STATUS_ACTIVE"
	BackupStatusDeleted     BackupStatus = "BACKUP_STATUS_DELETED"
	BackupStatusExpired     BackupStatus = "BACKUP_STATUS_EXPIRED"
	BackupStatusUnknown     BackupStatus = "BACKUP_STATUS_UNKNOWN"
)

Values of BackupStatus.

type BackupStorageCompression

type BackupStorageCompression string

BackupStorageCompression: Proxmox vzdump --compress (must not be UNSPECIFIED on create/update node).

const (
	BackupStorageCompressionUnspecified BackupStorageCompression = "BACKUP_STORAGE_COMPRESSION_UNSPECIFIED"
	BackupStorageCompressionNone        BackupStorageCompression = "BACKUP_STORAGE_COMPRESSION_NONE"
	BackupStorageCompressionLzo         BackupStorageCompression = "BACKUP_STORAGE_COMPRESSION_LZO"
	BackupStorageCompressionGzip        BackupStorageCompression = "BACKUP_STORAGE_COMPRESSION_GZIP"
	BackupStorageCompressionZstd        BackupStorageCompression = "BACKUP_STORAGE_COMPRESSION_ZSTD"
)

Values of BackupStorageCompression.

type BanOrganizationBody

type BanOrganizationBody struct {
	Message string `json:"message,omitempty"`
	// Why a VM or purchase was seized/blocked.
	Reason ComplianceReason `json:"reason,omitempty"`
}

BanOrganizationBody is the API's EnforcementServiceBanOrganizationBody object.

type BanUserBody

type BanUserBody struct {
	Message string `json:"message,omitempty"`
	// Why a VM or purchase was seized/blocked.
	Reason ComplianceReason `json:"reason,omitempty"`
}

BanUserBody is the API's EnforcementServiceBanUserBody object.

type BatchRecordUsageRequest

type BatchRecordUsageRequest struct {
	Records []RecordUsageRequest `json:"records,omitempty"`
}

BatchRecordUsageRequest is the API's v1BatchRecordUsageRequest object.

type BatchRecordUsageResponse

type BatchRecordUsageResponse struct {
	CreatedCount   int32         `json:"createdCount,omitempty"`
	DuplicateCount int32         `json:"duplicateCount,omitempty"`
	ErrorMessages  []string      `json:"errorMessages,omitempty"`
	FailedCount    int32         `json:"failedCount,omitempty"`
	UsageRecords   []UsageRecord `json:"usageRecords,omitempty"`
}

BatchRecordUsageResponse is the API's v1BatchRecordUsageResponse object.

type BillingPeriod

type BillingPeriod string

BillingPeriod is an API enum.

const (
	BillingPeriodUnspecified BillingPeriod = "BILLING_PERIOD_UNSPECIFIED"
	BillingPeriodHour        BillingPeriod = "BILLING_PERIOD_HOUR"
	BillingPeriodDay         BillingPeriod = "BILLING_PERIOD_DAY"
	BillingPeriodWeek        BillingPeriod = "BILLING_PERIOD_WEEK"
	BillingPeriodMonth       BillingPeriod = "BILLING_PERIOD_MONTH"
	BillingPeriodQuarter     BillingPeriod = "BILLING_PERIOD_QUARTER"
	BillingPeriodYear        BillingPeriod = "BILLING_PERIOD_YEAR"
)

Values of BillingPeriod.

type BillingType

type BillingType string

BillingType is an API enum.

const (
	BillingTypeUnspecified  BillingType = "BILLING_TYPE_UNSPECIFIED"
	BillingTypeSubscription BillingType = "BILLING_TYPE_SUBSCRIPTION"
	BillingTypeUsage        BillingType = "BILLING_TYPE_USAGE"
	BillingTypeFree         BillingType = "BILLING_TYPE_FREE"
	BillingTypePercentage   BillingType = "BILLING_TYPE_PERCENTAGE"
)

Values of BillingType.

type BlockOrganizationPurchasesBody

type BlockOrganizationPurchasesBody struct {
	Message                string `json:"message,omitempty"`
	ProviderOrganizationID string `json:"providerOrganizationId,omitempty"`
	// Why a VM or purchase was seized/blocked.
	Reason ComplianceReason `json:"reason,omitempty"`
}

BlockOrganizationPurchasesBody is the API's EnforcementServiceBlockOrganizationPurchasesBody object.

type BlockProviderCustomerPurchasesBody

type BlockProviderCustomerPurchasesBody struct {
	Message string `json:"message,omitempty"`
	// Why a VM or purchase was seized/blocked.
	Reason ComplianceReason `json:"reason,omitempty"`
}

BlockProviderCustomerPurchasesBody is the API's ProviderCustomerServiceBlockProviderCustomerPurchasesBody object.

type BusinessMonitoringService

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

BusinessMonitoringService calls the NodeRings BusinessMonitoringService API.

func (*BusinessMonitoringService) CreateBusinessMonitoringLaunch

CreateBusinessMonitoringLaunch calls POST /v1/monitoring/business/launch.

func (*BusinessMonitoringService) RotateBusinessMonitoringDatasourceToken

func (s *BusinessMonitoringService) RotateBusinessMonitoringDatasourceToken(ctx context.Context, body *RotateMonitoringDatasourceTokenRequest) (*SuccessResponse, error)

RotateBusinessMonitoringDatasourceToken calls POST /v1/monitoring/business/datasource-token:rotate.

type CPUType

type CPUType string

CPUType is an API enum.

const (
	CPUTypeUnspecified CPUType = "CPU_TYPE_UNSPECIFIED"
	CPUTypeIntel       CPUType = "CPU_TYPE_INTEL"
	CPUTypeAmd         CPUType = "CPU_TYPE_AMD"
	CPUTypeArm         CPUType = "CPU_TYPE_ARM"
)

Values of CPUType.

type CalculatePlanPricingRequest

type CalculatePlanPricingRequest struct {
	CalcConfig *PricingCalculationConfig `json:"calcConfig,omitempty"`
	Instances  []ResourceInstanceInput   `json:"instances,omitempty"`
	PlanConfig *PlanPricingConfig        `json:"planConfig,omitempty"`
}

CalculatePlanPricingRequest is the API's v1CalculatePlanPricingRequest object.

type CalculatePlanPricingResponse

type CalculatePlanPricingResponse struct {
	CouponValue      string             `json:"couponValue,omitempty"`
	Currency         string             `json:"currency,omitempty"`
	Debug            map[string]any     `json:"debug,omitempty"`
	DiscountPercent  float64            `json:"discountPercent,omitempty"`
	Discounted       string             `json:"discounted,omitempty"`
	LineItems        []PricingLineItem  `json:"lineItems,omitempty"`
	OverageCost      string             `json:"overageCost,omitempty"`
	PooledAllowances map[string]float64 `json:"pooledAllowances,omitempty"`
	PooledUsage      map[string]float64 `json:"pooledUsage,omitempty"`
	// Decimal string with 6 decimal places precision
	Subtotal string `json:"subtotal,omitempty"`
	Tax      string `json:"tax,omitempty"`
	Total    string `json:"total,omitempty"`
}

CalculatePlanPricingResponse is the API's v1CalculatePlanPricingResponse object.

type CancelRenewalRequest

type CancelRenewalRequest struct {
	SubscriptionID string `json:"subscriptionId,omitempty"`
}

CancelRenewalRequest is the API's v1CancelRenewalRequest object.

type CancelResponse

type CancelResponse struct {
	Subscription *Subscription `json:"subscription,omitempty"`
}

CancelResponse is the API's v1CancelResponse object.

type CaseType

type CaseType string

CaseType is an API enum.

const (
	CaseTypeUnspecified         CaseType = "CASE_TYPE_UNSPECIFIED"
	CaseTypeBilling             CaseType = "CASE_TYPE_BILLING"
	CaseTypeGeneral             CaseType = "CASE_TYPE_GENERAL"
	CaseTypeTroubleshooting     CaseType = "CASE_TYPE_TROUBLESHOOTING"
	CaseTypeOutage              CaseType = "CASE_TYPE_OUTAGE"
	CaseTypeAbuse               CaseType = "CASE_TYPE_ABUSE"
	CaseTypeConfigurationChange CaseType = "CASE_TYPE_CONFIGURATION_CHANGE"
)

Values of CaseType.

type ChangeGameServerGameBody

type ChangeGameServerGameBody struct {
	AcceptEULA  *bool             `json:"acceptEula,omitempty"`
	Environment map[string]string `json:"environment,omitempty"`
	TemplateID  string            `json:"templateId,omitempty"`
}

ChangeGameServerGameBody is the API's GameServerServiceChangeGameServerGameBody object.

type ChangePasswordRequest

type ChangePasswordRequest struct {
	NewPassword string `json:"newPassword,omitempty"`
	OldPassword string `json:"oldPassword,omitempty"`
}

ChangePasswordRequest is the API's v1ChangePasswordRequest object.

type ChargeTiming

type ChargeTiming string

ChargeTiming is an API enum.

const (
	ChargeTimingUnspecified ChargeTiming = "CHARGE_TIMING_UNSPECIFIED"
	ChargeTimingInAdvance   ChargeTiming = "CHARGE_TIMING_IN_ADVANCE"
	ChargeTimingInArrears   ChargeTiming = "CHARGE_TIMING_IN_ARREARS"
)

Values of ChargeTiming.

type ChatMessage

type ChatMessage struct {
	Content        string         `json:"content,omitempty"`
	FunctionCallID string         `json:"functionCallId,omitempty"`
	FunctionCalls  []FunctionCall `json:"functionCalls,omitempty"`
	Role           string         `json:"role,omitempty"`
}

ChatMessage is the API's v1ChatMessage object.

type ChatRequest

type ChatRequest struct {
	ConversationID string `json:"conversationId,omitempty"`
	Message        string `json:"message,omitempty"`
}

ChatRequest: Firewall rule definitions (address-book only) ChatService messages

type ChatResponse

type ChatResponse struct {
	ConversationID  string           `json:"conversationId,omitempty"`
	FunctionCalls   []FunctionCall   `json:"functionCalls,omitempty"`
	FunctionResults []FunctionResult `json:"functionResults,omitempty"`
	Message         string           `json:"message,omitempty"`
	SessionToken    string           `json:"sessionToken,omitempty"`
	Title           string           `json:"title,omitempty"`
}

ChatResponse is the API's v1ChatResponse object.

type ChatService

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

ChatService calls the NodeRings ChatService API.

func (*ChatService) Chat

func (s *ChatService) Chat(ctx context.Context, body *ChatRequest) (*ChatResponse, error)

Chat: Chat provides a non-streaming chat endpoint

It calls POST /v1/chat.

func (*ChatService) ChatAnonymous

func (s *ChatService) ChatAnonymous(ctx context.Context, body *ChatRequest) (*ChatResponse, error)

ChatAnonymous: ChatAnonymous provides a non-streaming chat endpoint for anonymous users Session ID is extracted from the cookie header (managed by the frontend)

It calls POST /v1/chat/anonymous.

func (*ChatService) DeleteConversation

func (s *ChatService) DeleteConversation(ctx context.Context, conversationID string) (*SuccessResponse, error)

DeleteConversation: DeleteConversation marks a conversation as deleted (soft delete)

It calls DELETE /v1/chat/conversations/{conversationId}.

func (*ChatService) GetConversationHistory

func (s *ChatService) GetConversationHistory(ctx context.Context, conversationID string) (*GetConversationHistoryResponse, error)

GetConversationHistory: GetConversationHistory returns the full message history for a conversation

It calls GET /v1/chat/conversations/{conversationId}/history.

func (*ChatService) ListConversations

func (s *ChatService) ListConversations(ctx context.Context) (*ListConversationsResponse, error)

ListConversations: ListConversations returns all conversation IDs for the authenticated user

It calls GET /v1/chat/conversations.

type CheckDNSGeoRecordBody

type CheckDNSGeoRecordBody struct {
	Continent string `json:"continent,omitempty"`
	Country   string `json:"country,omitempty"`
	Name      string `json:"name,omitempty"`
	Region    string `json:"region,omitempty"`
	Type      string `json:"type,omitempty"`
}

CheckDNSGeoRecordBody is the API's DnsRecordServiceCheckDnsGeoRecordBody object.

type CheckDNSGeoRecordResponse

type CheckDNSGeoRecordResponse struct {
	MatchedBy   string `json:"matchedBy,omitempty"`
	MatchedCode string `json:"matchedCode,omitempty"`
	Rdata       string `json:"rdata,omitempty"`
}

CheckDNSGeoRecordResponse is the API's v1CheckDnsGeoRecordResponse object.

type CheckDNSSECDSBody

type CheckDNSSECDSBody struct {
}

CheckDNSSECDSBody is the API's DnssecServiceCheckDnssecDsBody object.

type CheckDNSZoneDelegationBody

type CheckDNSZoneDelegationBody struct {
}

CheckDNSZoneDelegationBody is the API's DnsZoneServiceCheckDnsZoneDelegationBody object.

type City

type City struct {
	ID   string `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
}

City is the API's v1City object.

type CityCountry

type CityCountry struct {
	CityName    string `json:"cityName,omitempty"`
	CountryName string `json:"countryName,omitempty"`
	ID          string `json:"id,omitempty"`
}

CityCountry is the API's v1CityCountry object.

type ClearAllPrefixReservedIPsBody

type ClearAllPrefixReservedIPsBody struct {
}

ClearAllPrefixReservedIPsBody is the API's IPAMServiceClearAllPrefixReservedIPsBody object.

type Client

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

Client calls the NodeRings API. It is safe for concurrent use. Create one with NewClient and reuse it.

func NewClient

func NewClient(token string, opts ...Option) (*Client, error)

NewClient returns a client that authenticates with token, a NodeRings service account token.

Requests are retried when the API is rate limiting (HTTP 429, unless a plan quota is exhausted), and on connection errors and HTTP 502, 503 and 504 when the request is safe to repeat: reads, PUT and DELETE, and creates that carry an idempotency key.

func (*Client) Do

func (c *Client) Do(ctx context.Context, method, path string, query url.Values, body, out any) error

Do sends a request to any API path, for operations the SDK does not cover yet. body is encoded as JSON when not nil and the response is decoded into out when out is not nil.

func (*Client) WaitForVirtualMachine

func (c *Client) WaitForVirtualMachine(ctx context.Context, id string, opts *WaitOptions, done func(*VirtualMachine) bool) (*VirtualMachine, error)

WaitForVirtualMachine polls a virtual machine until done returns true and returns the last state read. A NotFound error is returned as is, so waiting for a deletion can check IsNotFound.

func (*Client) WaitForVirtualMachineDeleted

func (c *Client) WaitForVirtualMachineDeleted(ctx context.Context, id string, opts *WaitOptions) error

WaitForVirtualMachineDeleted waits until the virtual machine is gone.

func (*Client) WaitForVirtualMachineStatus

func (c *Client) WaitForVirtualMachineStatus(ctx context.Context, id string, opts *WaitOptions, statuses ...OperationStatus) (*VirtualMachine, error)

WaitForVirtualMachineStatus waits until the virtual machine is in one of the given statuses, for example OperationStatusStarted.

type ClientDashboardService

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

ClientDashboardService calls the NodeRings ClientDashboardService API.

func (*ClientDashboardService) GetClientDashboardBilling

func (s *ClientDashboardService) GetClientDashboardBilling(ctx context.Context) (*GetClientDashboardBillingResponse, error)

GetClientDashboardBilling calls GET /v1/client/dashboard/billing.

func (*ClientDashboardService) GetClientDashboardSummary

func (s *ClientDashboardService) GetClientDashboardSummary(ctx context.Context) (*GetClientDashboardSummaryResponse, error)

GetClientDashboardSummary calls GET /v1/client/dashboard/summary.

type ClientDashboardSpendBucket

type ClientDashboardSpendBucket struct {
	// Add-on charges (additional IP, backups, snapshots, ...), fixed or metered.
	AddonAmount string `json:"addonAmount,omitempty"`
	// Bandwidth overage beyond the plan's included allowance (egress/ingress).
	BandwidthAmount string `json:"bandwidthAmount,omitempty"`
	// "YYYY-MM-DD" for daily buckets; RFC3339 hour start (UTC) for hourly buckets.
	BucketStart string `json:"bucketStart,omitempty"`
	// Fixed-price plan charges (billed in advance).
	FixedAmount string `json:"fixedAmount,omitempty"`
	// True when any amount in this bucket is an accrual estimate (not yet invoiced).
	HasEstimated bool                       `json:"hasEstimated,omitempty"`
	Items        []ClientDashboardSpendItem `json:"items,omitempty"`
	// Metered plan usage (compute hours etc.), paid or estimated.
	UsageAmount string `json:"usageAmount,omitempty"`
}

ClientDashboardSpendBucket: Categorized spend for one UTC calendar day or one UTC hour. Paid invoice lines land in the bucket of their paid_at time; un-invoiced metered usage lands in the bucket of its usage timestamp as an estimate.

type ClientDashboardSpendItem

type ClientDashboardSpendItem struct {
	Amount string `json:"amount,omitempty"`
	// "fixed" | "usage": how this product is billed.
	BillingType string `json:"billingType,omitempty"`
	// "fixed" | "usage" | "bandwidth" | "addon": chart stacking category.
	Category string `json:"category,omitempty"`
	// Secondary detail: "hostname · provider", metered quantity ("12.50 GB"), etc.
	Detail string `json:"detail,omitempty"`
	// True for accrued metered usage priced from plan/addon prices but not yet invoiced.
	Estimated bool `json:"estimated,omitempty"`
	// Display label: plan code, add-on name, or bandwidth metric label.
	Label string `json:"label,omitempty"`
}

ClientDashboardSpendItem: One product-level line inside a spend bucket (used for chart tooltips / detail).

type ClientDashboardSpendingWindow

type ClientDashboardSpendingWindow struct {
	Currency        string `json:"currency,omitempty"`
	TotalAddonSpend string `json:"totalAddonSpend,omitempty"`
	TotalPlanSpend  string `json:"totalPlanSpend,omitempty"`
	TotalSpend      string `json:"totalSpend,omitempty"`
	WindowDays      int32  `json:"windowDays,omitempty"`
}

ClientDashboardSpendingWindow: Rolling spend for the authenticated client org (paid invoices where this org is tenant). UTC calendar windows.

type ClientDashboardUsageRollup

type ClientDashboardUsageRollup struct {
	// Estimated charge for quantity_total priced with the subscription's plan/addon price
	// (free units and block overage applied). Empty when no price could be resolved.
	EstimatedAmount string `json:"estimatedAmount,omitempty"`
	MetricName      string `json:"metricName,omitempty"`
	MetricUnit      string `json:"metricUnit,omitempty"`
	PeriodEnd       string `json:"periodEnd,omitempty"`
	PlanName        string `json:"planName,omitempty"`
	QuantityTotal   string `json:"quantityTotal,omitempty"`
	SubscriptionID  string `json:"subscriptionId,omitempty"`
}

ClientDashboardUsageRollup: Aggregated metered usage for the billing period overlapping "now" (compute, bandwidth overage, add-ons).

type ClientDashboardVirtualMachinesSummary

type ClientDashboardVirtualMachinesSummary struct {
	// Active + inactive VMs for this client org (not soft-deleted / not expired).
	TotalCount int32 `json:"totalCount,omitempty"`
}

ClientDashboardVirtualMachinesSummary is the API's v1ClientDashboardVirtualMachinesSummary object.

type ClientProviderReview

type ClientProviderReview struct {
	Comment                string     `json:"comment,omitempty"`
	CreateTime             *time.Time `json:"createTime,omitempty"`
	ID                     string     `json:"id,omitempty"`
	ProviderOrganizationID string     `json:"providerOrganizationId,omitempty"`
	ProviderRepliedAt      *time.Time `json:"providerRepliedAt,omitempty"`
	ProviderReply          string     `json:"providerReply,omitempty"`
	StarRating             int32      `json:"starRating,omitempty"`
	UpdateTime             *time.Time `json:"updateTime,omitempty"`
	VirtualMachineID       string     `json:"virtualMachineId,omitempty"`
}

ClientProviderReview: Client-side provider reviews (client org rates provider after a VM purchase; one per VM)

type ClientProviderReviewAssetItem

type ClientProviderReviewAssetItem struct {
	CanSubmitReview          bool                  `json:"canSubmitReview,omitempty"`
	HasSubmitted             bool                  `json:"hasSubmitted,omitempty"`
	Hostname                 string                `json:"hostname,omitempty"`
	ProviderOrganizationID   string                `json:"providerOrganizationId,omitempty"`
	ProviderOrganizationName string                `json:"providerOrganizationName,omitempty"`
	Review                   *ClientProviderReview `json:"review,omitempty"`
	ReviewAvailableAt        *time.Time            `json:"reviewAvailableAt,omitempty"`
	// Set when can_submit_review is false and has_submitted is false (e.g. usage-based 24h window).
	ReviewBlockedReason   string `json:"reviewBlockedReason,omitempty"`
	VirtualMachineDeleted bool   `json:"virtualMachineDeleted,omitempty"`
	VirtualMachineID      string `json:"virtualMachineId,omitempty"`
}

ClientProviderReviewAssetItem is the API's v1ClientProviderReviewAssetItem object.

type ClientProviderReviewService

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

ClientProviderReviewService calls the NodeRings ClientProviderReviewService API.

func (*ClientProviderReviewService) CreateClientReview

CreateClientReview calls POST /v1/provider-reviews.

func (*ClientProviderReviewService) DeleteClientReview

func (s *ClientProviderReviewService) DeleteClientReview(ctx context.Context, reviewID string) (*SuccessResponse, error)

DeleteClientReview calls DELETE /v1/provider-reviews/{reviewId}.

func (*ClientProviderReviewService) GetClientReviewForVirtualMachine

func (s *ClientProviderReviewService) GetClientReviewForVirtualMachine(ctx context.Context, virtualMachineID string) (*GetClientReviewForVirtualMachineResponse, error)

GetClientReviewForVirtualMachine calls GET /v1/provider-reviews/virtual-machines/{virtualMachineId}.

func (*ClientProviderReviewService) ListClientProviderReviewAssets

ListClientProviderReviewAssets calls GET /v1/client/provider-review-assets.

func (*ClientProviderReviewService) ListClientProviderReviewAssetsAll

ListClientProviderReviewAssetsAll returns an iterator over every result of ListClientProviderReviewAssets, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*ClientProviderReviewService) UpdateClientReview

UpdateClientReview calls PATCH /v1/provider-reviews/{reviewId}.

type CloudInitTemplate

type CloudInitTemplate struct {
	ID             string         `json:"id,omitempty"`
	IsTemplate     bool           `json:"isTemplate,omitempty"`
	Metadata       map[string]any `json:"metadata,omitempty"`
	Name           string         `json:"name,omitempty"`
	NetworkData    string         `json:"networkData,omitempty"`
	OrganizationID string         `json:"organizationId,omitempty"`
	Status         Protov1Status  `json:"status,omitempty"`
	Storage        string         `json:"storage,omitempty"`
	Timestamps     *Timestamps    `json:"timestamps,omitempty"`
	UserData       string         `json:"userData,omitempty"`
	VendorData     string         `json:"vendorData,omitempty"`
}

CloudInitTemplate is the API's v1CloudInitTemplate object.

type CloudInitTemplateService

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

CloudInitTemplateService calls the NodeRings CloudInitTemplateService API.

func (*CloudInitTemplateService) CreateCloudInitTemplate

CreateCloudInitTemplate calls POST /v1/cloudinittemplate.

func (*CloudInitTemplateService) DeleteCloudInitTemplate

func (s *CloudInitTemplateService) DeleteCloudInitTemplate(ctx context.Context, id string) (*SuccessResponse, error)

DeleteCloudInitTemplate calls DELETE /v1/cloudinittemplate/{id}.

func (*CloudInitTemplateService) GetCloudInitTemplate

GetCloudInitTemplate calls GET /v1/cloudinittemplate/{id}.

func (*CloudInitTemplateService) ListCloudInitTemplates

ListCloudInitTemplates calls GET /v1/cloudinittemplates.

func (*CloudInitTemplateService) ListCloudInitTemplatesAll

ListCloudInitTemplatesAll returns an iterator over every result of ListCloudInitTemplates, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*CloudInitTemplateService) UpdateCloudInitTemplate

UpdateCloudInitTemplate calls PATCH /v1/cloudinittemplate/{id}.

type CloudInitUserData

type CloudInitUserData struct {
	Description string `json:"description,omitempty"`
	// Read-only: set by the API.
	ID   string `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
	// Read-only: set by the API.
	OrganizationID string        `json:"organizationId,omitempty"`
	Status         Protov1Status `json:"status,omitempty"`
	Timestamps     *Timestamps   `json:"timestamps,omitempty"`
	UserData       string        `json:"userData,omitempty"`
	// Read-only: set by the API.
	ValidationWarnings []CloudInitValidationWarning `json:"validationWarnings,omitempty"`
}

CloudInitUserData: CloudInitUserData is a client-scoped saved cloud-init user_data Jinja profile.

type CloudInitUserDataService

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

CloudInitUserDataService calls the NodeRings CloudInitUserDataService API.

func (*CloudInitUserDataService) CreateCloudInitUserData

CreateCloudInitUserData calls POST /v1/cloudinituserdata.

func (*CloudInitUserDataService) DeleteCloudInitUserData

func (s *CloudInitUserDataService) DeleteCloudInitUserData(ctx context.Context, id string) (*SuccessResponse, error)

DeleteCloudInitUserData calls DELETE /v1/cloudinituserdata/{id}.

func (*CloudInitUserDataService) GetCloudInitUserData

func (s *CloudInitUserDataService) GetCloudInitUserData(ctx context.Context, id string) (*CloudInitUserData, error)

GetCloudInitUserData calls GET /v1/cloudinituserdata/{id}.

func (*CloudInitUserDataService) ListCloudInitUserData

ListCloudInitUserData calls GET /v1/cloudinituserdata.

func (*CloudInitUserDataService) ListCloudInitUserDataAll

ListCloudInitUserDataAll returns an iterator over every result of ListCloudInitUserData, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*CloudInitUserDataService) UpdateCloudInitUserData

func (s *CloudInitUserDataService) UpdateCloudInitUserData(ctx context.Context, id string, body *UpdateCloudInitUserDataBody) (*CloudInitUserData, error)

UpdateCloudInitUserData calls PATCH /v1/cloudinituserdata/{id}.

type CloudInitValidationWarning

type CloudInitValidationWarning struct {
	Code    string `json:"code,omitempty"`
	Key     string `json:"key,omitempty"`
	Line    int32  `json:"line,omitempty"`
	Message string `json:"message,omitempty"`
}

CloudInitValidationWarning: CloudInitValidationWarning is a non-blocking issue found when saving a user_data profile.

type Code

type Code int

Code is a gRPC status code, as the API puts it in error bodies.

const (
	CodeOK                 Code = 0
	CodeCanceled           Code = 1
	CodeUnknown            Code = 2
	CodeInvalidArgument    Code = 3
	CodeDeadlineExceeded   Code = 4
	CodeNotFound           Code = 5
	CodeAlreadyExists      Code = 6
	CodePermissionDenied   Code = 7
	CodeResourceExhausted  Code = 8
	CodeFailedPrecondition Code = 9
	CodeAborted            Code = 10
	CodeOutOfRange         Code = 11
	CodeUnimplemented      Code = 12
	CodeInternal           Code = 13
	CodeUnavailable        Code = 14
	CodeDataLoss           Code = 15
	CodeUnauthenticated    Code = 16
)

Status codes the API uses.

func ErrorCode

func ErrorCode(err error) Code

ErrorCode returns the API status code of err, or CodeUnknown when err is not an *Error (or CodeOK when err is nil).

type CompleteConnectOAuthRequest

type CompleteConnectOAuthRequest struct {
	Code  string `json:"code,omitempty"`
	State string `json:"state,omitempty"`
}

CompleteConnectOAuthRequest is the API's v1CompleteConnectOAuthRequest object.

type CompleteConnectOAuthResponse

type CompleteConnectOAuthResponse struct {
	Account            *ConnectAccount `json:"account,omitempty"`
	OnboardingURL      string          `json:"onboardingUrl,omitempty"`
	RequiresOnboarding bool            `json:"requiresOnboarding,omitempty"`
}

CompleteConnectOAuthResponse is the API's v1CompleteConnectOAuthResponse object.

type CompleteSSOLinkRequest

type CompleteSSOLinkRequest struct {
	Password string `json:"password,omitempty"`
	Ticket   string `json:"ticket,omitempty"`
}

CompleteSSOLinkRequest is the API's v1CompleteSSOLinkRequest object.

type ComplianceActor

type ComplianceActor string

ComplianceActor: Who placed a compliance hold or purchase block.

const (
	ComplianceActorUnspecified ComplianceActor = "COMPLIANCE_ACTOR_UNSPECIFIED"
	ComplianceActorProvider    ComplianceActor = "COMPLIANCE_ACTOR_PROVIDER"
	ComplianceActorPlatform    ComplianceActor = "COMPLIANCE_ACTOR_PLATFORM"
)

Values of ComplianceActor.

type ComplianceReason

type ComplianceReason string

ComplianceReason: Why a VM or purchase was seized/blocked.

const (
	ComplianceReasonUnspecified ComplianceReason = "COMPLIANCE_REASON_UNSPECIFIED"
	ComplianceReasonFraud       ComplianceReason = "COMPLIANCE_REASON_FRAUD"
	ComplianceReasonAbuse       ComplianceReason = "COMPLIANCE_REASON_ABUSE"
	ComplianceReasonCopyright   ComplianceReason = "COMPLIANCE_REASON_COPYRIGHT"
	ComplianceReasonOther       ComplianceReason = "COMPLIANCE_REASON_OTHER"
)

Values of ComplianceReason.

type ComponentVersion

type ComponentVersion struct {
	// Optional SHA-256 hex digest of the download artifact.
	ChecksumSha256 string `json:"checksumSha256,omitempty"`
	// Optional download URL override; CLI derives GitHub URLs when empty.
	DownloadURL string `json:"downloadUrl,omitempty"`
	// Optional minimum acceptable local version for skip-install checks.
	MinVersion string `json:"minVersion,omitempty"`
	Name       string `json:"name,omitempty"`
	// Exact version / tag to install (e.g. "v1.31.5+k3s1", "v3.30.2").
	Version string `json:"version,omitempty"`
}

ComponentVersion: ComponentVersion describes a pinned installable platform component.

type ComputeCategory

type ComputeCategory string

ComputeCategory: - COMPUTE_CATEGORY_SHARED_COMPUTE: Shared compute (shared resources, cost-effective)

  • COMPUTE_CATEGORY_DEDICATED_COMPUTE: Dedicated compute (dedicated resources, higher performance)
const (
	ComputeCategoryUnspecified      ComputeCategory = "COMPUTE_CATEGORY_UNSPECIFIED"
	ComputeCategorySharedCompute    ComputeCategory = "COMPUTE_CATEGORY_SHARED_COMPUTE"
	ComputeCategoryDedicatedCompute ComputeCategory = "COMPUTE_CATEGORY_DEDICATED_COMPUTE"
)

Values of ComputeCategory.

type ComputeType

type ComputeType string

ComputeType: - COMPUTE_TYPE_GENERAL_COMPUTE: GC - General Compute (balanced performance)

  • COMPUTE_TYPE_HIGH_FREQUENCY: HF - High Frequency (CPU-optimized, high clock speeds)
  • COMPUTE_TYPE_HIGH_PERFORMANCE: HP - High Performance (next-gen CPUs, NVMe storage)
  • COMPUTE_TYPE_GENERAL_PURPOSE: GP - General Purpose (balanced dedicated resources)
  • COMPUTE_TYPE_CPU_OPTIMIZED: CPU - CPU Optimized (high CPU-to-memory ratio)
  • COMPUTE_TYPE_MEMORY_OPTIMIZED: MEM - Memory Optimized (high memory-to-CPU ratio)
  • COMPUTE_TYPE_STORAGE_OPTIMIZED: STO - Storage Optimized (high storage capacity)
  • COMPUTE_TYPE_VERY_HIGH_FREQUENCY: VHF - Very High Frequency (highest clock dedicated CPUs)
  • COMPUTE_TYPE_GAME_SERVER: GS - Game Server (per-CPU SKU dedicated plans, e.g. DC-GS-9950X-*)
const (
	ComputeTypeUnspecified       ComputeType = "COMPUTE_TYPE_UNSPECIFIED"
	ComputeTypeGeneralCompute    ComputeType = "COMPUTE_TYPE_GENERAL_COMPUTE"
	ComputeTypeHighFrequency     ComputeType = "COMPUTE_TYPE_HIGH_FREQUENCY"
	ComputeTypeHighPerformance   ComputeType = "COMPUTE_TYPE_HIGH_PERFORMANCE"
	ComputeTypeGeneralPurpose    ComputeType = "COMPUTE_TYPE_GENERAL_PURPOSE"
	ComputeTypeCPUOptimized      ComputeType = "COMPUTE_TYPE_CPU_OPTIMIZED"
	ComputeTypeMemoryOptimized   ComputeType = "COMPUTE_TYPE_MEMORY_OPTIMIZED"
	ComputeTypeStorageOptimized  ComputeType = "COMPUTE_TYPE_STORAGE_OPTIMIZED"
	ComputeTypeVeryHighFrequency ComputeType = "COMPUTE_TYPE_VERY_HIGH_FREQUENCY"
	ComputeTypeGameServer        ComputeType = "COMPUTE_TYPE_GAME_SERVER"
)

Values of ComputeType.

type ConfirmTicketAttachmentUploadRequest

type ConfirmTicketAttachmentUploadRequest struct {
	UploadToken string `json:"uploadToken,omitempty"`
}

ConfirmTicketAttachmentUploadRequest is the API's v1ConfirmTicketAttachmentUploadRequest object.

type ConnectAccount

type ConnectAccount struct {
	ChargesEnabled bool           `json:"chargesEnabled,omitempty"`
	Country        string         `json:"country,omitempty"`
	CreatedAt      *time.Time     `json:"createdAt,omitempty"`
	Email          string         `json:"email,omitempty"`
	ID             string         `json:"id,omitempty"`
	Metadata       map[string]any `json:"metadata,omitempty"`
	OnboardingURL  string         `json:"onboardingUrl,omitempty"`
	PayoutsEnabled bool           `json:"payoutsEnabled,omitempty"`
	// Account status: "active", "pending", "restricted", etc.
	Status string `json:"status,omitempty"`
	// Missing fields when tax settings are pending (e.g. head_office).
	TaxSettingsMissingFields []string `json:"taxSettingsMissingFields,omitempty"`
	// Stripe Tax Settings status for the connected account (active|pending|unknown).
	TaxSettingsStatus string `json:"taxSettingsStatus,omitempty"`
	Type              string `json:"type,omitempty"`
}

ConnectAccount is the API's v1ConnectAccount object.

type ConnectTaxAddress

type ConnectTaxAddress struct {
	City       string `json:"city,omitempty"`
	Country    string `json:"country,omitempty"`
	Line1      string `json:"line1,omitempty"`
	Line2      string `json:"line2,omitempty"`
	PostalCode string `json:"postalCode,omitempty"`
	State      string `json:"state,omitempty"`
}

ConnectTaxAddress: Structured address for Connect tax head office.

type ConnectTaxRegistration

type ConnectTaxRegistration struct {
	ActiveFrom       int64  `json:"activeFrom,omitempty,string"`
	Country          string `json:"country,omitempty"`
	ExpiresAt        int64  `json:"expiresAt,omitempty,string"`
	ID               string `json:"id,omitempty"`
	RegistrationType string `json:"registrationType,omitempty"`
	State            string `json:"state,omitempty"`
	Status           string `json:"status,omitempty"`
}

ConnectTaxRegistration is the API's v1ConnectTaxRegistration object.

type ConnectTaxSettingsDetails

type ConnectTaxSettingsDetails struct {
	DefaultTaxBehavior string `json:"defaultTaxBehavior,omitempty"`
	DefaultTaxCode     string `json:"defaultTaxCode,omitempty"`
	// Structured address for Connect tax head office.
	HeadOffice    *ConnectTaxAddress `json:"headOffice,omitempty"`
	MissingFields []string           `json:"missingFields,omitempty"`
	Status        string             `json:"status,omitempty"`
}

ConnectTaxSettingsDetails is the API's v1ConnectTaxSettingsDetails object.

type ConversationInfo

type ConversationInfo struct {
	ConversationID string `json:"conversationId,omitempty"`
	Title          string `json:"title,omitempty"`
}

ConversationInfo is the API's v1ConversationInfo object.

type ConvertCurrencyRequest

type ConvertCurrencyRequest struct {
	TargetCurrency string `json:"targetCurrency,omitempty"`
	UsdAmount      string `json:"usdAmount,omitempty"`
}

ConvertCurrencyRequest is the API's v1ConvertCurrencyRequest object.

type ConvertCurrencyResponse

type ConvertCurrencyResponse struct {
	ConvertedAmount string `json:"convertedAmount,omitempty"`
	ExchangeRate    string `json:"exchangeRate,omitempty"`
	SourceCurrency  string `json:"sourceCurrency,omitempty"`
	TargetCurrency  string `json:"targetCurrency,omitempty"`
}

ConvertCurrencyResponse is the API's v1ConvertCurrencyResponse object.

type CopyFileBody

type CopyFileBody struct {
	Location string `json:"location,omitempty"`
}

CopyFileBody is the API's GameServerServiceCopyFileBody object.

type Country

type Country struct {
	Cities []City `json:"cities,omitempty"`
	Name   string `json:"name,omitempty"`
}

Country: Country, City, Datacenter hierarchy messages

type Coupon

type Coupon struct {
	// ISO currency to decimal amount for fixed coupons. Never converted.
	AmountsOff map[string]string `json:"amountsOff,omitempty"`
	// Invoice line kinds: base, addon, usage.
	AppliesTo []string `json:"appliesTo,omitempty"`
	// Plan asset_category values that qualify, such as compute. Empty means any.
	AssetCategories []string `json:"assetCategories,omitempty"`
	// Plan asset_type values that qualify, such as vm or gameserver. Empty means any.
	AssetTypes []string `json:"assetTypes,omitempty"`
	// USD top-up needed before a redeemed credit lot can be spent. Only set for
	// credit coupons that require one.
	CreditMinTopup string `json:"creditMinTopup,omitempty"`
	// Days a redeemed credit lot stays valid. Only set for credit coupons.
	CreditValidDays int32  `json:"creditValidDays,omitempty"`
	Description     string `json:"description,omitempty"`
	// - COUPON_DISCOUNT_TYPE_CREDIT: A code that grants promotional credit instead of discounting a subscription.
	DiscountType CouponDiscountType `json:"discountType,omitempty"`
	// - COUPON_DURATION_ONCE: Discounts the next invoice only.
	//  - COUPON_DURATION_REPEATING: Discounts duration_in_periods invoices, or every invoice for duration_days.
	Duration              CouponDuration `json:"duration,omitempty"`
	DurationDays          int32          `json:"durationDays,omitempty"`
	DurationInPeriods     int32          `json:"durationInPeriods,omitempty"`
	FirstTimeCustomerOnly bool           `json:"firstTimeCustomerOnly,omitempty"`
	// - COUPON_FUNDING_PLATFORM: The platform funds the discount. The code applies across providers, and
	// each provider still receives the amount they were owed.
	FundedBy CouponFunding `json:"fundedBy,omitempty"`
	HighRisk bool          `json:"highRisk,omitempty"`
	ID       string        `json:"id,omitempty"`
	// ISO currency to per-invoice cap for percentage coupons.
	MaxDiscountAmounts map[string]string `json:"maxDiscountAmounts,omitempty"`
	// 0 means unlimited.
	MaxRedemptions  int32  `json:"maxRedemptions,omitempty"`
	Name            string `json:"name,omitempty"`
	OncePerCustomer bool   `json:"oncePerCustomer,omitempty"`
	// Decimal string in (0, 100] for percentage coupons.
	PercentOff       string        `json:"percentOff,omitempty"`
	PlanIDs          []string      `json:"planIds,omitempty"`
	Status           Protov1Status `json:"status,omitempty"`
	TimesRedeemed    int32         `json:"timesRedeemed,omitempty"`
	Timestamps       *Timestamps   `json:"timestamps,omitempty"`
	UsageMetricCodes []string      `json:"usageMetricCodes,omitempty"`
	ValidFrom        *time.Time    `json:"validFrom,omitempty"`
	ValidUntil       *time.Time    `json:"validUntil,omitempty"`
}

Coupon: A discount. Codes customers type live in CouponCode. Provider coupons apply to that provider's plans. Platform coupons apply across providers.

type CouponApplicationStatus

type CouponApplicationStatus string

CouponApplicationStatus is an API enum.

const (
	CouponApplicationStatusUnspecified CouponApplicationStatus = "COUPON_APPLICATION_STATUS_UNSPECIFIED"
	CouponApplicationStatusActive      CouponApplicationStatus = "COUPON_APPLICATION_STATUS_ACTIVE"
	CouponApplicationStatusExhausted   CouponApplicationStatus = "COUPON_APPLICATION_STATUS_EXHAUSTED"
	CouponApplicationStatusRemoved     CouponApplicationStatus = "COUPON_APPLICATION_STATUS_REMOVED"
	CouponApplicationStatusRevoked     CouponApplicationStatus = "COUPON_APPLICATION_STATUS_REVOKED"
	CouponApplicationStatusReversed    CouponApplicationStatus = "COUPON_APPLICATION_STATUS_REVERSED"
)

Values of CouponApplicationStatus.

type CouponCode

type CouponCode struct {
	BatchID        string   `json:"batchId,omitempty"`
	Campaign       string   `json:"campaign,omitempty"`
	Channel        string   `json:"channel,omitempty"`
	Code           string   `json:"code,omitempty"`
	CouponID       string   `json:"couponId,omitempty"`
	CustomerOrgIDs []string `json:"customerOrgIds,omitempty"`
	ID             string   `json:"id,omitempty"`
	// 0 means unlimited.
	MaxRedemptions int32         `json:"maxRedemptions,omitempty"`
	Status         Protov1Status `json:"status,omitempty"`
	TimesRedeemed  int32         `json:"timesRedeemed,omitempty"`
	Timestamps     *Timestamps   `json:"timestamps,omitempty"`
	ValidFrom      *time.Time    `json:"validFrom,omitempty"`
	ValidUntil     *time.Time    `json:"validUntil,omitempty"`
}

CouponCode is the API's v1CouponCode object.

type CouponCodeBatch

type CouponCodeBatch struct {
	Campaign             string                `json:"campaign,omitempty"`
	Channel              string                `json:"channel,omitempty"`
	CompletedAt          *time.Time            `json:"completedAt,omitempty"`
	CouponID             string                `json:"couponId,omitempty"`
	ExportCount          int32                 `json:"exportCount,omitempty"`
	FailureReason        string                `json:"failureReason,omitempty"`
	GeneratedCount       int32                 `json:"generatedCount,omitempty"`
	ID                   string                `json:"id,omitempty"`
	LastExportedAt       *time.Time            `json:"lastExportedAt,omitempty"`
	LastExportedByUserID string                `json:"lastExportedByUserId,omitempty"`
	MaxRedemptions       int32                 `json:"maxRedemptions,omitempty"`
	Prefix               string                `json:"prefix,omitempty"`
	RequestedCount       int32                 `json:"requestedCount,omitempty"`
	Status               CouponCodeBatchStatus `json:"status,omitempty"`
	Timestamps           *Timestamps           `json:"timestamps,omitempty"`
	ValidUntil           *time.Time            `json:"validUntil,omitempty"`
}

CouponCodeBatch is the API's v1CouponCodeBatch object.

type CouponCodeBatchStatus

type CouponCodeBatchStatus string

CouponCodeBatchStatus is an API enum.

const (
	CouponCodeBatchStatusUnspecified CouponCodeBatchStatus = "COUPON_CODE_BATCH_STATUS_UNSPECIFIED"
	CouponCodeBatchStatusQueued      CouponCodeBatchStatus = "COUPON_CODE_BATCH_STATUS_QUEUED"
	CouponCodeBatchStatusRunning     CouponCodeBatchStatus = "COUPON_CODE_BATCH_STATUS_RUNNING"
	CouponCodeBatchStatusCompleted   CouponCodeBatchStatus = "COUPON_CODE_BATCH_STATUS_COMPLETED"
	CouponCodeBatchStatusFailed      CouponCodeBatchStatus = "COUPON_CODE_BATCH_STATUS_FAILED"
)

Values of CouponCodeBatchStatus.

type CouponDiscountType

type CouponDiscountType string

CouponDiscountType: - COUPON_DISCOUNT_TYPE_CREDIT: A code that grants promotional credit instead of discounting a subscription.

const (
	CouponDiscountTypeUnspecified CouponDiscountType = "COUPON_DISCOUNT_TYPE_UNSPECIFIED"
	CouponDiscountTypePercentage  CouponDiscountType = "COUPON_DISCOUNT_TYPE_PERCENTAGE"
	CouponDiscountTypeFixed       CouponDiscountType = "COUPON_DISCOUNT_TYPE_FIXED"
	CouponDiscountTypeCredit      CouponDiscountType = "COUPON_DISCOUNT_TYPE_CREDIT"
)

Values of CouponDiscountType.

type CouponDuration

type CouponDuration string

CouponDuration: - COUPON_DURATION_ONCE: Discounts the next invoice only.

  • COUPON_DURATION_REPEATING: Discounts duration_in_periods invoices, or every invoice for duration_days.
const (
	CouponDurationUnspecified CouponDuration = "COUPON_DURATION_UNSPECIFIED"
	CouponDurationOnce        CouponDuration = "COUPON_DURATION_ONCE"
	CouponDurationRepeating   CouponDuration = "COUPON_DURATION_REPEATING"
	CouponDurationForever     CouponDuration = "COUPON_DURATION_FOREVER"
)

Values of CouponDuration.

type CouponFunding

type CouponFunding string

CouponFunding: - COUPON_FUNDING_PLATFORM: The platform funds the discount. The code applies across providers, and each provider still receives the amount they were owed.

const (
	CouponFundingUnspecified CouponFunding = "COUPON_FUNDING_UNSPECIFIED"
	CouponFundingProvider    CouponFunding = "COUPON_FUNDING_PROVIDER"
	CouponFundingPlatform    CouponFunding = "COUPON_FUNDING_PLATFORM"
)

Values of CouponFunding.

type CouponInput

type CouponInput struct {
	Code string `json:"code,omitempty"`
}

CouponInput: Optional code on a resource create request.

type CouponRedemption

type CouponRedemption struct {
	ApplicationID          string     `json:"applicationId,omitempty"`
	AppliedAt              *time.Time `json:"appliedAt,omitempty"`
	AssetType              string     `json:"assetType,omitempty"`
	ClientOrganizationID   string     `json:"clientOrganizationId,omitempty"`
	ClientOrganizationName string     `json:"clientOrganizationName,omitempty"`
	Code                   string     `json:"code,omitempty"`
	CouponID               string     `json:"couponId,omitempty"`
	Currency               string     `json:"currency,omitempty"`
	DiscountAmount         string     `json:"discountAmount,omitempty"`
	ID                     string     `json:"id,omitempty"`
	InvoiceID              string     `json:"invoiceId,omitempty"`
	SubscriptionID         string     `json:"subscriptionId,omitempty"`
}

CouponRedemption is the API's v1CouponRedemption object.

type CouponReportGroupBy

type CouponReportGroupBy string

CouponReportGroupBy is an API enum.

const (
	CouponReportGroupByUnspecified CouponReportGroupBy = "COUPON_REPORT_GROUP_BY_UNSPECIFIED"
	CouponReportGroupByCode        CouponReportGroupBy = "COUPON_REPORT_GROUP_BY_CODE"
	CouponReportGroupByCampaign    CouponReportGroupBy = "COUPON_REPORT_GROUP_BY_CAMPAIGN"
	CouponReportGroupByChannel     CouponReportGroupBy = "COUPON_REPORT_GROUP_BY_CHANNEL"
	CouponReportGroupByAssetType   CouponReportGroupBy = "COUPON_REPORT_GROUP_BY_ASSET_TYPE"
)

Values of CouponReportGroupBy.

type CouponReportRow

type CouponReportRow struct {
	AvgDaysToChurn float64 `json:"avgDaysToChurn,omitempty"`
	// Redeemed subscriptions that canceled, and the average days from
	// redemption to cancellation.
	Churned        int32   `json:"churned,omitempty"`
	ConversionRate float64 `json:"conversionRate,omitempty"`
	// Ended applications whose subscription then paid a full-price invoice.
	Converted     int32  `json:"converted,omitempty"`
	Currency      string `json:"currency,omitempty"`
	DiscountTotal string `json:"discountTotal,omitempty"`
	// Applications whose discount has ended (exhausted, removed, or revoked).
	DiscountsEnded int32 `json:"discountsEnded,omitempty"`
	// Code, campaign, channel, or asset type; empty when not grouped.
	GroupKey    string `json:"groupKey,omitempty"`
	Redemptions int32  `json:"redemptions,omitempty"`
	Retained30D int32  `json:"retained30d,omitempty"`
	Retained90D int32  `json:"retained90d,omitempty"`
	// Ended at least 30 days ago, and of those still subscribed 30 days later.
	Retention30DEligible  int32   `json:"retention30dEligible,omitempty"`
	Retention30DRate      float64 `json:"retention30dRate,omitempty"`
	Retention90DEligible  int32   `json:"retention90dEligible,omitempty"`
	Retention90DRate      float64 `json:"retention90dRate,omitempty"`
	RevenueAfterDiscount  string  `json:"revenueAfterDiscount,omitempty"`
	RevenueDuringDiscount string  `json:"revenueDuringDiscount,omitempty"`
	UniqueCustomers       int32   `json:"uniqueCustomers,omitempty"`
}

CouponReportRow: Attribution and ROI figures for one group of coupon applications in one currency. Amounts are decimal strings; revenue is net of the discount and counts paid invoices only.

type CouponService

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

CouponService calls the NodeRings CouponService API.

func (*CouponService) CreateCoupon

CreateCoupon calls POST /v1/coupons.

func (*CouponService) CreateCouponCode

func (s *CouponService) CreateCouponCode(ctx context.Context, couponID string, body *CreateCouponCodeBody) (*CouponCode, error)

CreateCouponCode calls POST /v1/coupons/{couponId}/codes.

func (*CouponService) DeactivateCoupon

func (s *CouponService) DeactivateCoupon(ctx context.Context, id string, body *DeactivateCouponBody) (*Coupon, error)

DeactivateCoupon: Blocks new attachments; customers keep the periods they were promised.

It calls POST /v1/coupons/{id}:deactivate.

func (*CouponService) ExportCouponCodes

func (s *CouponService) ExportCouponCodes(ctx context.Context, couponID string, params *ExportCouponCodesParams) (*ExportCouponCodesResponse, error)

ExportCouponCodes calls GET /v1/coupons/{couponId}/codes:export.

func (*CouponService) GenerateCouponCodes

func (s *CouponService) GenerateCouponCodes(ctx context.Context, couponID string, body *GenerateCouponCodesBody) (*GenerateCouponCodesResponse, error)

GenerateCouponCodes calls POST /v1/coupons/{couponId}/codes:generate.

func (*CouponService) GetCoupon

func (s *CouponService) GetCoupon(ctx context.Context, id string) (*Coupon, error)

GetCoupon calls GET /v1/coupons/{id}.

func (*CouponService) GetCouponCodeBatch

func (s *CouponService) GetCouponCodeBatch(ctx context.Context, couponID string, batchID string) (*CouponCodeBatch, error)

GetCouponCodeBatch calls GET /v1/coupons/{couponId}/code-batches/{batchId}.

func (*CouponService) GetCouponReport

func (s *CouponService) GetCouponReport(ctx context.Context, couponID string, params *GetCouponReportParams) (*GetCouponReportResponse, error)

GetCouponReport: Attribution and ROI figures, grouped by code, campaign, channel, or asset type.

It calls GET /v1/coupons/{couponId}/report.

func (*CouponService) GetSubscriptionCoupon

func (s *CouponService) GetSubscriptionCoupon(ctx context.Context, subscriptionID string) (*GetSubscriptionCouponResponse, error)

GetSubscriptionCoupon calls GET /v1/subscriptions/{subscriptionId}/coupon.

func (*CouponService) ListCouponCodeBatches

func (s *CouponService) ListCouponCodeBatches(ctx context.Context, couponID string, params *ListCouponCodeBatchesParams) (*ListCouponCodeBatchesResponse, error)

ListCouponCodeBatches calls GET /v1/coupons/{couponId}/code-batches.

func (*CouponService) ListCouponCodeBatchesAll

func (s *CouponService) ListCouponCodeBatchesAll(ctx context.Context, couponID string, params *ListCouponCodeBatchesParams) iter.Seq2[CouponCodeBatch, error]

ListCouponCodeBatchesAll returns an iterator over every result of ListCouponCodeBatches, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*CouponService) ListCouponCodes

func (s *CouponService) ListCouponCodes(ctx context.Context, couponID string, params *ListCouponCodesParams) (*ListCouponCodesResponse, error)

ListCouponCodes calls GET /v1/coupons/{couponId}/codes.

func (*CouponService) ListCouponCodesAll

func (s *CouponService) ListCouponCodesAll(ctx context.Context, couponID string, params *ListCouponCodesParams) iter.Seq2[CouponCode, error]

ListCouponCodesAll returns an iterator over every result of ListCouponCodes, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*CouponService) ListCouponRedemptions

func (s *CouponService) ListCouponRedemptions(ctx context.Context, couponID string, params *ListCouponRedemptionsParams) (*ListCouponRedemptionsResponse, error)

ListCouponRedemptions calls GET /v1/coupons/{couponId}/redemptions.

func (*CouponService) ListCouponRedemptionsAll

func (s *CouponService) ListCouponRedemptionsAll(ctx context.Context, couponID string, params *ListCouponRedemptionsParams) iter.Seq2[CouponRedemption, error]

ListCouponRedemptionsAll returns an iterator over every result of ListCouponRedemptions, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*CouponService) ListCoupons

func (s *CouponService) ListCoupons(ctx context.Context, params *ListCouponsParams) (*ListCouponsResponse, error)

ListCoupons calls GET /v1/coupons.

func (*CouponService) ListCouponsAll

func (s *CouponService) ListCouponsAll(ctx context.Context, params *ListCouponsParams) iter.Seq2[Coupon, error]

ListCouponsAll returns an iterator over every result of ListCoupons, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*CouponService) ListHighRiskCoupons

ListHighRiskCoupons: Platform admins only: high-risk coupons across all providers, most redeemed first.

It calls GET /v1/admin/coupons/high-risk.

func (*CouponService) ListHighRiskCouponsAll

func (s *CouponService) ListHighRiskCouponsAll(ctx context.Context, params *ListHighRiskCouponsParams) iter.Seq2[HighRiskCoupon, error]

ListHighRiskCouponsAll returns an iterator over every result of ListHighRiskCoupons, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*CouponService) PreviewCoupon

PreviewCoupon: Checks a code against a plan without attaching it.

It calls POST /v1/coupons:preview.

func (*CouponService) RedeemCoupon

func (s *CouponService) RedeemCoupon(ctx context.Context, subscriptionID string, body *RedeemCouponBody) (*SubscriptionCoupon, error)

RedeemCoupon calls POST /v1/subscriptions/{subscriptionId}/coupon.

func (*CouponService) RemoveCoupon

func (s *CouponService) RemoveCoupon(ctx context.Context, subscriptionID string) (*SubscriptionCoupon, error)

RemoveCoupon calls DELETE /v1/subscriptions/{subscriptionId}/coupon.

func (*CouponService) RevokeCoupon

func (s *CouponService) RevokeCoupon(ctx context.Context, id string, body *RevokeCouponBody) (*RevokeCouponResponse, error)

RevokeCoupon: Ends the discount for every customer from their next invoice.

It calls POST /v1/coupons/{id}:revoke.

func (*CouponService) UpdateCoupon

func (s *CouponService) UpdateCoupon(ctx context.Context, id string, body *UpdateCouponBody) (*Coupon, error)

UpdateCoupon calls PATCH /v1/coupons/{id}.

func (*CouponService) UpdateCouponCode

func (s *CouponService) UpdateCouponCode(ctx context.Context, id string, body *UpdateCouponCodeBody) (*CouponCode, error)

UpdateCouponCode calls PATCH /v1/coupon-codes/{id}.

type CrStatus

type CrStatus string

CrStatus is an API enum.

const (
	CrStatusUnspecified CrStatus = "CR_STATUS_UNSPECIFIED"
	CrStatusPending     CrStatus = "CR_STATUS_PENDING"
	CrStatusProcessing  CrStatus = "CR_STATUS_PROCESSING"
	CrStatusApplied     CrStatus = "CR_STATUS_APPLIED"
	CrStatusFailed      CrStatus = "CR_STATUS_FAILED"
)

Values of CrStatus.

type CreateAddonRequest

type CreateAddonRequest struct {
	AddonID  string `json:"addonId,omitempty"`
	Currency string `json:"currency,omitempty"`
	// Decimal string with 6 decimal places precision
	MaximumCharge string `json:"maximumCharge,omitempty"`
	// Decimal string with 6 decimal places precision
	MinimumCharge   string  `json:"minimumCharge,omitempty"`
	PercentageValue float64 `json:"percentageValue,omitempty"`
	// Decimal string with 6 decimal places precision
	UnitAmount string `json:"unitAmount,omitempty"`
	// Decimal string with 6 decimal places precision
	ZeroBaseFallbackAmount string `json:"zeroBaseFallbackAmount,omitempty"`
}

CreateAddonRequest is the API's v1CreateAddonRequest object.

type CreateAgentRequest

type CreateAgentRequest struct {
	AgentPublicIP string             `json:"agentPublicIp,omitempty"`
	Description   string             `json:"description,omitempty"`
	GatewayRegion AgentGatewayRegion `json:"gatewayRegion,omitempty"`
	// - PLATFORM_DRIVER_PTERODACTYL: Game-server platform. Not a value of the organization hypervisor driver.
	HypervisorDriver PlatformDriver `json:"hypervisorDriver,omitempty"`
	Name             string         `json:"name,omitempty"`
}

CreateAgentRequest is the API's v1CreateAgentRequest object.

type CreateAllocationBody

type CreateAllocationBody struct {
}

CreateAllocationBody is the API's GameServerServiceCreateAllocationBody object.

type CreateBackupBody

type CreateBackupBody struct {
	Name string `json:"name,omitempty"`
}

CreateBackupBody is the API's GameServerServiceCreateBackupBody object.

type CreateClientReviewRequest

type CreateClientReviewRequest struct {
	Comment          string `json:"comment,omitempty"`
	StarRating       int32  `json:"starRating,omitempty"`
	VirtualMachineID string `json:"virtualMachineId,omitempty"`
}

CreateClientReviewRequest is the API's v1CreateClientReviewRequest object.

type CreateClientReviewResponse

type CreateClientReviewResponse struct {
	Review *ClientProviderReview `json:"review,omitempty"`
}

CreateClientReviewResponse is the API's v1CreateClientReviewResponse object.

type CreateCloudInitTemplateRequest

type CreateCloudInitTemplateRequest struct {
	Name        string `json:"name,omitempty"`
	NetworkData string `json:"networkData,omitempty"`
	Storage     string `json:"storage,omitempty"`
	UserData    string `json:"userData,omitempty"`
	VendorData  string `json:"vendorData,omitempty"`
}

CreateCloudInitTemplateRequest is the API's v1CreateCloudInitTemplateRequest object.

type CreateCloudInitUserDataRequest

type CreateCloudInitUserDataRequest struct {
	Description string `json:"description,omitempty"`
	Name        string `json:"name,omitempty"`
	UserData    string `json:"userData,omitempty"`
}

CreateCloudInitUserDataRequest is the API's v1CreateCloudInitUserDataRequest object.

type CreateConnectAccountRequest

type CreateConnectAccountRequest struct {
	Country  string         `json:"country,omitempty"`
	Email    string         `json:"email,omitempty"`
	Metadata map[string]any `json:"metadata,omitempty"`
	Type     string         `json:"type,omitempty"`
}

CreateConnectAccountRequest: Connect Account messages

type CreateConnectAccountResponse

type CreateConnectAccountResponse struct {
	Account            *ConnectAccount `json:"account,omitempty"`
	OnboardingURL      string          `json:"onboardingUrl,omitempty"`
	RequiresOnboarding bool            `json:"requiresOnboarding,omitempty"`
}

CreateConnectAccountResponse is the API's v1CreateConnectAccountResponse object.

type CreateConnectTaxRegistrationRequest

type CreateConnectTaxRegistrationRequest struct {
	Country          string `json:"country,omitempty"`
	RegistrationType string `json:"registrationType,omitempty"`
	State            string `json:"state,omitempty"`
}

CreateConnectTaxRegistrationRequest is the API's v1CreateConnectTaxRegistrationRequest object.

type CreateConnectTaxRegistrationResponse

type CreateConnectTaxRegistrationResponse struct {
	Registration *ConnectTaxRegistration `json:"registration,omitempty"`
}

CreateConnectTaxRegistrationResponse is the API's v1CreateConnectTaxRegistrationResponse object.

type CreateConnectTaxSessionResponse

type CreateConnectTaxSessionResponse struct {
	// Stripe AccountSession client_secret for Connect.js embedded tax components.
	// Deprecated: prefer Get/UpdateConnectTaxSettings and tax registration RPCs.
	ClientSecret             string   `json:"clientSecret,omitempty"`
	TaxSettingsMissingFields []string `json:"taxSettingsMissingFields,omitempty"`
	TaxSettingsStatus        string   `json:"taxSettingsStatus,omitempty"`
}

CreateConnectTaxSessionResponse is the API's v1CreateConnectTaxSessionResponse object.

type CreateCouponCodeBody

type CreateCouponCodeBody struct {
	Campaign string `json:"campaign,omitempty"`
	Channel  string `json:"channel,omitempty"`
	// Leave empty to generate a random code.
	Code           string     `json:"code,omitempty"`
	CustomerOrgIDs []string   `json:"customerOrgIds,omitempty"`
	MaxRedemptions int32      `json:"maxRedemptions,omitempty"`
	NoExpiry       *bool      `json:"noExpiry,omitempty"`
	ValidFrom      *time.Time `json:"validFrom,omitempty"`
	ValidUntil     *time.Time `json:"validUntil,omitempty"`
}

CreateCouponCodeBody is the API's CouponServiceCreateCouponCodeBody object.

type CreateCouponRequest

type CreateCouponRequest struct {
	// Required when the terms are effectively free or unlimited.
	AcknowledgeHighRisk *bool             `json:"acknowledgeHighRisk,omitempty"`
	AmountsOff          map[string]string `json:"amountsOff,omitempty"`
	AppliesTo           []string          `json:"appliesTo,omitempty"`
	AssetCategories     []string          `json:"assetCategories,omitempty"`
	AssetTypes          []string          `json:"assetTypes,omitempty"`
	// Optional first shared code created with the coupon.
	Code string `json:"code,omitempty"`
	// USD a client must top up before a redeemed credit lot can be spent.
	// Empty means no top-up is needed.
	CreditMinTopup string `json:"creditMinTopup,omitempty"`
	// Lot lifetime after a credit code is redeemed. Defaults to 90.
	CreditValidDays int32  `json:"creditValidDays,omitempty"`
	Description     string `json:"description,omitempty"`
	// - COUPON_DISCOUNT_TYPE_CREDIT: A code that grants promotional credit instead of discounting a subscription.
	DiscountType CouponDiscountType `json:"discountType,omitempty"`
	// - COUPON_DURATION_ONCE: Discounts the next invoice only.
	//  - COUPON_DURATION_REPEATING: Discounts duration_in_periods invoices, or every invoice for duration_days.
	Duration              CouponDuration    `json:"duration,omitempty"`
	DurationDays          int32             `json:"durationDays,omitempty"`
	DurationInPeriods     int32             `json:"durationInPeriods,omitempty"`
	FirstTimeCustomerOnly *bool             `json:"firstTimeCustomerOnly,omitempty"`
	MaxDiscountAmounts    map[string]string `json:"maxDiscountAmounts,omitempty"`
	MaxRedemptions        int32             `json:"maxRedemptions,omitempty"`
	Name                  string            `json:"name,omitempty"`
	NoExpiry              *bool             `json:"noExpiry,omitempty"`
	// Defaults to true.
	OncePerCustomer  *bool      `json:"oncePerCustomer,omitempty"`
	PercentOff       string     `json:"percentOff,omitempty"`
	PlanIDs          []string   `json:"planIds,omitempty"`
	UsageMetricCodes []string   `json:"usageMetricCodes,omitempty"`
	ValidFrom        *time.Time `json:"validFrom,omitempty"`
	// Defaults to the configured validity window unless no_expiry is set.
	ValidUntil *time.Time `json:"validUntil,omitempty"`
}

CreateCouponRequest is the API's v1CreateCouponRequest object.

type CreateCouponResponse

type CreateCouponResponse struct {
	Code *CouponCode `json:"code,omitempty"`
	// A discount. Codes customers type live in CouponCode. Provider coupons apply
	// to that provider's plans. Platform coupons apply across providers.
	Coupon *Coupon `json:"coupon,omitempty"`
}

CreateCouponResponse is the API's v1CreateCouponResponse object.

type CreateDNSZoneRequest

type CreateDNSZoneRequest struct {
	Name string `json:"name,omitempty"`
	// Records the customer kept from the live-scan review. Empty means create a blank zone.
	Records []DNSRecord `json:"records,omitempty"`
}

CreateDNSZoneRequest is the API's v1CreateDnsZoneRequest object.

type CreateDNSZoneResponse

type CreateDNSZoneResponse struct {
	// DnsZone is a hosted authoritative zone. Vanilla records live in PowerDNS, not Ent.
	Zone *DNSZone `json:"zone,omitempty"`
}

CreateDNSZoneResponse is the API's v1CreateDnsZoneResponse object.

type CreateDatabaseBody

type CreateDatabaseBody struct {
	Database string `json:"database,omitempty"`
	Remote   string `json:"remote,omitempty"`
}

CreateDatabaseBody is the API's GameServerServiceCreateDatabaseBody object.

type CreateDomainRequest

type CreateDomainRequest struct {
	Name             string           `json:"name,omitempty"`
	VerificationType VerificationType `json:"verificationType,omitempty"`
}

CreateDomainRequest is the API's v1CreateDomainRequest object.

type CreateEnvironmentVariableRequest

type CreateEnvironmentVariableRequest struct {
	Key   string `json:"key,omitempty"`
	Value string `json:"value,omitempty"`
}

CreateEnvironmentVariableRequest is the API's v1CreateEnvironmentVariableRequest object.

type CreateEnvironmentVariableResponse

type CreateEnvironmentVariableResponse struct {
	EnvironmentVariable *EnvironmentVariable `json:"environmentVariable,omitempty"`
	Success             bool                 `json:"success,omitempty"`
}

CreateEnvironmentVariableResponse: CreateEnvironmentVariableResponse returns the environment variable that was created. Field 1 matches SuccessResponse, so clients built against the old response keep working.

type CreateFirewallAddressGroupRequest

type CreateFirewallAddressGroupRequest struct {
	// FirewallAddressGroupInput is the client-provided payload for create/update.
	// Clients must not provide id/timestamps (those are server-controlled).
	Group *FirewallAddressGroupInput `json:"group,omitempty"`
}

CreateFirewallAddressGroupRequest is the API's v1CreateFirewallAddressGroupRequest object.

type CreateFirewallAddressGroupResponse

type CreateFirewallAddressGroupResponse struct {
	Group   *FirewallAddressGroup `json:"group,omitempty"`
	Success bool                  `json:"success,omitempty"`
}

CreateFirewallAddressGroupResponse: CreateFirewallAddressGroupResponse returns the address group that was created. Field 1 matches SuccessResponse, so clients built against the old response keep working.

type CreateFirewallRuleBody

type CreateFirewallRuleBody struct {
	// FirewallRuleInput is the client-provided rule payload for create/update.
	// Clients must not provide id/ruleset_id/timestamps (those are server-controlled).
	Rule *FirewallRuleInput `json:"rule,omitempty"`
}

CreateFirewallRuleBody is the API's FirewallServiceCreateFirewallRuleBody object.

type CreateFirewallRuleResponse

type CreateFirewallRuleResponse struct {
	// FirewallRuleResource is a first-class rule resource that belongs to a FirewallRuleSet.
	Rule    *FirewallRuleResource `json:"rule,omitempty"`
	Success bool                  `json:"success,omitempty"`
}

CreateFirewallRuleResponse: CreateFirewallRuleResponse returns the rule that was created. Field 1 matches SuccessResponse, so clients built against the old response keep working.

type CreateFirewallRuleSetRequest

type CreateFirewallRuleSetRequest struct {
	Ruleset *FirewallRuleSetInput `json:"ruleset,omitempty"`
}

CreateFirewallRuleSetRequest is the API's v1CreateFirewallRuleSetRequest object.

type CreateFirewallRuleSetResponse

type CreateFirewallRuleSetResponse struct {
	Ruleset *FirewallRuleSet `json:"ruleset,omitempty"`
	Success bool             `json:"success,omitempty"`
}

CreateFirewallRuleSetResponse: CreateFirewallRuleSetResponse returns the ruleset that was created. Field 1 matches SuccessResponse, so clients built against the old response keep working.

type CreateFolderBody

type CreateFolderBody struct {
	Name string `json:"name,omitempty"`
	Root string `json:"root,omitempty"`
}

CreateFolderBody is the API's GameServerServiceCreateFolderBody object.

type CreateGameServerRequest

type CreateGameServerRequest struct {
	// accept_eula is the customer's agreement. Required when the egg has the EULA mark.
	AcceptEULA *bool `json:"acceptEula,omitempty"`
	// environment overrides egg defaults. Only user-editable variables are accepted.
	Environment            map[string]string `json:"environment,omitempty"`
	IdempotencyKey         string            `json:"idempotencyKey,omitempty"`
	Name                   string            `json:"name,omitempty"`
	PlanID                 string            `json:"planId,omitempty"`
	ProviderOrganizationID string            `json:"providerOrganizationId,omitempty"`
	RegionID               string            `json:"regionId,omitempty"`
	TemplateID             string            `json:"templateId,omitempty"`
	VersionValue           string            `json:"versionValue,omitempty"`
}

CreateGameServerRequest is the API's v1CreateGameServerRequest object.

type CreateGroupRequest

type CreateGroupRequest struct {
	Description string   `json:"description,omitempty"`
	GroupRoles  []string `json:"groupRoles,omitempty"`
	Name        string   `json:"name,omitempty"`
}

CreateGroupRequest is the API's v1CreateGroupRequest object.

type CreateGroupResponse

type CreateGroupResponse struct {
	Group   *Group `json:"group,omitempty"`
	Success bool   `json:"success,omitempty"`
}

CreateGroupResponse: CreateGroupResponse returns the group that was created. Field 1 matches SuccessResponse, so clients built against the old response keep working.

type CreateInviteRequest

type CreateInviteRequest struct {
	GroupID       string   `json:"groupId,omitempty"`
	InviteeEmails []string `json:"inviteeEmails,omitempty"`
	RoleID        string   `json:"roleId,omitempty"`
}

CreateInviteRequest is the API's v1CreateInviteRequest object.

type CreateManualPayoutRequest

type CreateManualPayoutRequest struct {
	AccountHolderName string `json:"accountHolderName,omitempty"`
	AccountNumber     string `json:"accountNumber,omitempty"`
	BankName          string `json:"bankName,omitempty"`
	Bic               string `json:"bic,omitempty"`
	Country           string `json:"country,omitempty"`
	Iban              string `json:"iban,omitempty"`
	Notes             string `json:"notes,omitempty"`
	RoutingNumber     string `json:"routingNumber,omitempty"`
}

CreateManualPayoutRequest: Manual Payout messages

type CreateManualPayoutResponse

type CreateManualPayoutResponse struct {
	Payout *ManualPayout `json:"payout,omitempty"`
}

CreateManualPayoutResponse is the API's v1CreateManualPayoutResponse object.

type CreateMetricsWriteCredentialRequest

type CreateMetricsWriteCredentialRequest struct {
	// Optional: omit or leave empty when the credential is not tied to an agent.
	AgentID string `json:"agentId,omitempty"`
	// Optional expiry; omit for non-expiring machine tokens.
	ExpiresAt *time.Time `json:"expiresAt,omitempty"`
	Name      string     `json:"name,omitempty"`
}

CreateMetricsWriteCredentialRequest is the API's v1CreateMetricsWriteCredentialRequest object.

type CreateMetricsWriteCredentialResponse

type CreateMetricsWriteCredentialResponse struct {
	Credential *MetricsWriteCredential `json:"credential,omitempty"`
	// Plaintext token returned only on create/rotate. Store securely; it is not retrievable again.
	Token string `json:"token,omitempty"`
}

CreateMetricsWriteCredentialResponse is the API's v1CreateMetricsWriteCredentialResponse object.

type CreateMonitoringLaunchRequest

type CreateMonitoringLaunchRequest struct {
	// Optional relative Grafana path to open, e.g. "/d/nr-vm/virtual-machine?var-resource=NR-..".
	// Validated server side; only /d/, /dashboards and /explore paths are accepted.
	Next string `json:"next,omitempty"`
	// Optional VM or game server id (client orgs): open its dashboard.
	ResourceID string `json:"resourceId,omitempty"`
}

CreateMonitoringLaunchRequest is the API's v1CreateMonitoringLaunchRequest object.

type CreateMonitoringLaunchResponse

type CreateMonitoringLaunchResponse struct {
	ExpiresAt *time.Time `json:"expiresAt,omitempty"`
	URL       string     `json:"url,omitempty"`
}

CreateMonitoringLaunchResponse is the API's v1CreateMonitoringLaunchResponse object.

type CreateNetworkRequest

type CreateNetworkRequest struct {
	Description string   `json:"description,omitempty"`
	DNSServers  []string `json:"dnsServers,omitempty"`
	// First 3 octets for MAC allocation within this network (e.g. BC:24:11). Default: BC:24:11.
	MacAddressPrefix string `json:"macAddressPrefix,omitempty"`
	Name             string `json:"name,omitempty"`
}

CreateNetworkRequest: Network management

type CreateNodeRequest

type CreateNodeRequest struct {
	// Proxmox vzdump --compress (must not be UNSPECIFIED on create/update node).
	BackupStorageCompression BackupStorageCompression `json:"backupStorageCompression,omitempty"`
	BackupStorageDestination string                   `json:"backupStorageDestination,omitempty"`
	// Compute product hosted by a node. Exclusive: a node is shared XOR dedicated
	// (docs/README-DEDICATED-CPU-CORES.md, design decision D1).
	//
	//  - NODE_COMPUTE_TYPE_SHARED: Shared vCPU hosting (CPU oversubscription allowed). Default.
	//  - NODE_COMPUTE_TYPE_DEDICATED: Dedicated pinned CPU cores (no CPU overallocation).
	ComputeType               NodeComputeType `json:"computeType,omitempty"`
	CPUOverallocatePercent    int32           `json:"cpuOverallocatePercent,omitempty"`
	MaintenanceMode           *bool           `json:"maintenanceMode,omitempty"`
	MemoryOverallocatePercent int32           `json:"memoryOverallocatePercent,omitempty"`
	// Optional node metadata (VirtFusion hypervisor_id / group_id live under metadata.virtfusion).
	Metadata map[string]any `json:"metadata,omitempty"`
	Name     string         `json:"name,omitempty"`
	// Node provisioning settings (server-side defaults applied when omitted)
	// Proxmox Linux bridge for VM primary NIC. Default: vmbr0.
	NetworkBridge string `json:"networkBridge,omitempty"`
	// Proxmox NIC model for primary NIC. Default: virtio.
	NetworkModel string `json:"networkModel,omitempty"`
	// Proxmox net device key for primary NIC (net0, net1, ...). Default: net0.
	NetworkName string `json:"networkName,omitempty"`
	// 802.1Q VLAN tag on primary NIC (Proxmox tag=); 0 = untagged.
	NetworkVlanID              int32  `json:"networkVlanId,omitempty"`
	PanelNodeID                int32  `json:"panelNodeId,omitempty"`
	PlatformID                 string `json:"platformId,omitempty"`
	PterodactylLocationID      int32  `json:"pterodactylLocationId,omitempty"`
	RegionID                   string `json:"regionId,omitempty"`
	StorageOverallocatePercent int32  `json:"storageOverallocatePercent,omitempty"`
	// Raw topology paste (output of the documented lscpu/sysfs command block).
	// Required when compute_type is dedicated; ignored otherwise.
	TopologyPaste        string `json:"topologyPaste,omitempty"`
	VMStorageDestination string `json:"vmStorageDestination,omitempty"`
	VmidSeed             int32  `json:"vmidSeed,omitempty"`
	WingsNodeName        string `json:"wingsNodeName,omitempty"`
}

CreateNodeRequest is the API's v1CreateNodeRequest object.

type CreateNotificationSettingResponse

type CreateNotificationSettingResponse struct {
	NotificationSetting *NotificationSetting `json:"notificationSetting,omitempty"`
}

CreateNotificationSettingResponse is the API's v1CreateNotificationSettingResponse object.

type CreateNotificationTemplateResponse

type CreateNotificationTemplateResponse struct {
	NotificationTemplate *NotificationTemplate `json:"notificationTemplate,omitempty"`
}

CreateNotificationTemplateResponse is the API's v1CreateNotificationTemplateResponse object.

type CreateOAuth2ClientRequest

type CreateOAuth2ClientRequest struct {
	ClientType   string   `json:"clientType,omitempty"`
	Description  string   `json:"description,omitempty"`
	Name         string   `json:"name,omitempty"`
	RedirectUris []string `json:"redirectUris,omitempty"`
	RequiresPkce *bool    `json:"requiresPkce,omitempty"`
	Scopes       []string `json:"scopes,omitempty"`
}

CreateOAuth2ClientRequest is the API's v1CreateOAuth2ClientRequest object.

type CreateOAuth2ClientResponse

type CreateOAuth2ClientResponse struct {
	ClientID     string   `json:"clientId,omitempty"`
	ClientSecret string   `json:"clientSecret,omitempty"`
	Name         string   `json:"name,omitempty"`
	RedirectUris []string `json:"redirectUris,omitempty"`
	Scopes       []string `json:"scopes,omitempty"`
}

CreateOAuth2ClientResponse is the API's v1CreateOAuth2ClientResponse object.

type CreateOrganizationRequest

type CreateOrganizationRequest struct {
	ASN int64 `json:"asn,omitempty,string"`
	// DDoS partner slug (e.g. none, in-house, gcore, akamai, voxility). Provider orgs only.
	DDoSProvider string `json:"ddosProvider,omitempty"`
	Description  string `json:"description,omitempty"`
	// - PLATFORM_DRIVER_PTERODACTYL: Game-server platform. Not a value of the organization hypervisor driver.
	HypervisorDriver PlatformDriver `json:"hypervisorDriver,omitempty"`
	Name             string         `json:"name,omitempty"`
	ProviderLogoURL  string         `json:"providerLogoUrl,omitempty"`
	// Required for provider organizations (http/https; scheme optional in input: server normalizes).
	ProviderWebsiteURL string           `json:"providerWebsiteUrl,omitempty"`
	Type               OrganizationType `json:"type,omitempty"`
}

CreateOrganizationRequest is the API's v1CreateOrganizationRequest object.

type CreatePlanRequest

type CreatePlanRequest struct {
	// Plan CPU/network scheduling overrides written into metadata.specifications.
	// Proxmox cpulimit= (max CPU time); 0 = unlimited. Omitted = template value / 0.
	CPULimit int32 `json:"cpuLimit,omitempty"`
	// Proxmox cpuunits= fair-share weight. Omitted = template value / 1024.
	CPUUnits int32  `json:"cpuUnits,omitempty"`
	Currency string `json:"currency,omitempty"`
	// Plan metadata. VirtFusion package_id lives under metadata.virtfusion.package_id.
	Metadata map[string]any `json:"metadata,omitempty"`
	// Primary NIC rate limit in MB/s (Proxmox rate=); 0 = unlimited.
	NetworkRateLimitMbs float64 `json:"networkRateLimitMbs,omitempty"`
	// Nodes this plan may sell on (must be catalog-eligible for the template).
	// Required: at least one node_id (validated in Go).
	NodeIDs []string `json:"nodeIds,omitempty"`
	// Provider choice when client prepaid credits are exhausted.
	// Values: "suspend" (default), "continue_with_dunning".
	OnCreditExhaustion string              `json:"onCreditExhaustion,omitempty"`
	PlanID             string              `json:"planId,omitempty"`
	PlanPrices         []PlanPriceOverride `json:"planPrices,omitempty"`
	// Region where this plan is offered (exactly one per plan).
	RegionID string `json:"regionId,omitempty"`
}

CreatePlanRequest is the API's v1CreatePlanRequest object.

type CreatePlatformRequest

type CreatePlatformRequest struct {
	AgentID string `json:"agentId,omitempty"`
	// VirtFusion/SolusVM only. Rejected when the org driver is Proxmox.
	AssignCustomerIPv6 *bool `json:"assignCustomerIpv6,omitempty"`
	// - PLATFORM_DRIVER_PTERODACTYL: Game-server platform. Not a value of the organization hypervisor driver.
	Driver      PlatformDriver `json:"driver,omitempty"`
	EndpointURL string         `json:"endpointUrl,omitempty"`
	Name        string         `json:"name,omitempty"`
	// Panel base URL. Required when pterodactyl is true. A bare IP is stored as http://ip.
	PanelURL string `json:"panelUrl,omitempty"`
	// When true, this platform is Pterodactyl. A hypervisor driver is not required.
	Pterodactyl *bool `json:"pterodactyl,omitempty"`
}

CreatePlatformRequest is the API's v1CreatePlatformRequest object.

type CreatePrefixRequest

type CreatePrefixRequest struct {
	AllocationStrategy       AllocationStrategy `json:"allocationStrategy,omitempty"`
	CIDR                     string             `json:"cidr,omitempty"`
	Description              string             `json:"description,omitempty"`
	Gateway                  string             `json:"gateway,omitempty"`
	NetworkID                string             `json:"networkId,omitempty"`
	ReservedIPs              []string           `json:"reservedIps,omitempty"`
	VMAssignmentPrefixLength int32              `json:"vmAssignmentPrefixLength,omitempty"`
}

CreatePrefixRequest: Prefix management

type CreateProviderReviewReplyBody

type CreateProviderReviewReplyBody struct {
	ReplyMessage string `json:"replyMessage,omitempty"`
}

CreateProviderReviewReplyBody: Create first public provider reply to a client review.

type CreateProviderReviewReplyResponse

type CreateProviderReviewReplyResponse struct {
	// Provider UI: list and respond to client reviews (no VM identifiers: anonymous to provider).
	Review *ProviderReviewListItem `json:"review,omitempty"`
}

CreateProviderReviewReplyResponse is the API's v1CreateProviderReviewReplyResponse object.

type CreateRegionRequest

type CreateRegionRequest struct {
	CityCountryID string `json:"cityCountryId,omitempty"`
	DatacenterID  string `json:"datacenterId,omitempty"`
}

CreateRegionRequest is the API's v1CreateRegionRequest object.

type CreateRoadmapFeatureRequestCommentBody

type CreateRoadmapFeatureRequestCommentBody struct {
	Body string `json:"body,omitempty"`
}

CreateRoadmapFeatureRequestCommentBody is the API's RoadmapServiceCreateRoadmapFeatureRequestCommentBody object.

type CreateRoadmapFeatureRequestCommentResponse

type CreateRoadmapFeatureRequestCommentResponse struct {
	Comment *RoadmapFeatureRequestComment `json:"comment,omitempty"`
}

CreateRoadmapFeatureRequestCommentResponse is the API's v1CreateRoadmapFeatureRequestCommentResponse object.

type CreateRoleRequest

type CreateRoleRequest struct {
	Description string   `json:"description,omitempty"`
	GroupIDs    []string `json:"groupIds,omitempty"`
	Name        string   `json:"name,omitempty"`
	Permissions []string `json:"permissions,omitempty"`
}

CreateRoleRequest is the API's v1CreateRoleRequest object.

type CreateRoleResponse

type CreateRoleResponse struct {
	Role    *Role `json:"role,omitempty"`
	Success bool  `json:"success,omitempty"`
}

CreateRoleResponse: CreateRoleResponse returns the role that was created. Field 1 matches SuccessResponse, so clients built against the old response keep working.

type CreateSSHKeyRequest

type CreateSSHKeyRequest struct {
	Name      string `json:"name,omitempty"`
	PublicKey string `json:"publicKey,omitempty"`
}

CreateSSHKeyRequest is the API's v1CreateSSHKeyRequest object.

type CreateSSHKeyResponse

type CreateSSHKeyResponse struct {
	SSHKey *SSHKey `json:"sshKey,omitempty"`
}

CreateSSHKeyResponse is the API's v1CreateSSHKeyResponse object.

type CreateScheduleBody

type CreateScheduleBody struct {
	DayOfMonth string `json:"dayOfMonth,omitempty"`
	DayOfWeek  string `json:"dayOfWeek,omitempty"`
	Hour       string `json:"hour,omitempty"`
	// Omitted means the schedule is created enabled.
	IsActive       *bool  `json:"isActive,omitempty"`
	Minute         string `json:"minute,omitempty"`
	Month          string `json:"month,omitempty"`
	Name           string `json:"name,omitempty"`
	OnlyWhenOnline *bool  `json:"onlyWhenOnline,omitempty"`
}

CreateScheduleBody is the API's GameServerServiceCreateScheduleBody object.

type CreateScheduleTaskBody

type CreateScheduleTaskBody struct {
	Action            string `json:"action,omitempty"`
	ContinueOnFailure *bool  `json:"continueOnFailure,omitempty"`
	Payload           string `json:"payload,omitempty"`
	TimeOffset        int32  `json:"timeOffset,omitempty"`
}

CreateScheduleTaskBody is the API's GameServerServiceCreateScheduleTaskBody object.

type CreateSecretRequest

type CreateSecretRequest struct {
	Key   string `json:"key,omitempty"`
	Value string `json:"value,omitempty"`
}

CreateSecretRequest is the API's v1CreateSecretRequest object.

type CreateSecretResponse

type CreateSecretResponse struct {
	Secret *Secret `json:"secret,omitempty"`
}

CreateSecretResponse is the API's v1CreateSecretResponse object.

type CreateServiceAccountRequest

type CreateServiceAccountRequest struct {
	AllowedIPs  []string `json:"allowedIps,omitempty"`
	Description string   `json:"description,omitempty"`
	Name        string   `json:"name,omitempty"`
}

CreateServiceAccountRequest: Service Account messages

type CreateSnapshotBody

type CreateSnapshotBody struct {
	Description string `json:"description,omitempty"`
}

CreateSnapshotBody is the API's SnapshotServiceCreateSnapshotBody object.

type CreateSnapshotResponse

type CreateSnapshotResponse struct {
	Snapshot *Snapshot `json:"snapshot,omitempty"`
	Success  bool      `json:"success,omitempty"`
}

CreateSnapshotResponse: CreateSnapshotResponse returns the snapshot record that was created. Field 1 matches SuccessResponse, so clients built against the old response keep working.

type CreateTicketAttachmentUploadBody

type CreateTicketAttachmentUploadBody struct {
	FileName string `json:"fileName,omitempty"`
	FileSize int64  `json:"fileSize,omitempty,string"`
	MimeType string `json:"mimeType,omitempty"`
}

CreateTicketAttachmentUploadBody is the API's TicketServiceCreateTicketAttachmentUploadBody object.

type CreateTicketAttachmentUploadResponse

type CreateTicketAttachmentUploadResponse struct {
	Attachment  *TicketAttachment `json:"attachment,omitempty"`
	UploadToken string            `json:"uploadToken,omitempty"`
}

CreateTicketAttachmentUploadResponse is the API's v1CreateTicketAttachmentUploadResponse object.

type CreateTicketRequest

type CreateTicketRequest struct {
	TemplateID        string            `json:"templateId,omitempty"`
	TemplateVariables map[string]string `json:"templateVariables,omitempty"`
	Ticket            *Ticket           `json:"ticket,omitempty"`
}

CreateTicketRequest is the API's v1CreateTicketRequest object.

type CreateTicketResponse

type CreateTicketResponse struct {
	Ticket *Ticket `json:"ticket,omitempty"`
}

CreateTicketResponse is the API's v1CreateTicketResponse object.

type CreateTicketTemplateRequest

type CreateTicketTemplateRequest struct {
	TicketTemplate *TicketTemplateInput `json:"ticketTemplate,omitempty"`
}

CreateTicketTemplateRequest is the API's v1CreateTicketTemplateRequest object.

type CreateVMTemplateRequest

type CreateVMTemplateRequest struct {
	CloudInitTemplateID string `json:"cloudInitTemplateId,omitempty"`
	// - DISTRO_UBUNTU_22_04: Ubuntu distributions
	//  - DISTRO_FEDORA_43: Fedora distributions
	//  - DISTRO_DEBIAN_12: Debian distributions
	//  - DISTRO_CENTOS_9: CentOS distributions
	//  - DISTRO_ROCKY_9: Rocky Linux distributions
	//  - DISTRO_ALMALINUX_9: AlmaLinux distributions
	Distro Distro `json:"distro,omitempty"`
	Name   string `json:"name,omitempty"`
	NodeID string `json:"nodeId,omitempty"`
	// Proxmox cpu= guest CPU model for VMs using this template. Default: host.
	ProxmoxCPUType string `json:"proxmoxCpuType,omitempty"`
	TemplateID     int32  `json:"templateId,omitempty"`
}

CreateVMTemplateRequest is the API's v1CreateVMTemplateRequest object.

type CreateVirtualMachineRequest

type CreateVirtualMachineRequest struct {
	// Saved client cloud-init user_data profile ID. Replaces provider user_data at VM create.
	CloudInitUserDataID string `json:"cloudInitUserDataId,omitempty"`
	// Optional code on a resource create request.
	Coupon *CouponInput `json:"coupon,omitempty"`
	// - DISTRO_UBUNTU_22_04: Ubuntu distributions
	//  - DISTRO_FEDORA_43: Fedora distributions
	//  - DISTRO_DEBIAN_12: Debian distributions
	//  - DISTRO_CENTOS_9: CentOS distributions
	//  - DISTRO_ROCKY_9: Rocky Linux distributions
	//  - DISTRO_ALMALINUX_9: AlmaLinux distributions
	Distro   Distro `json:"distro,omitempty"`
	Hostname string `json:"hostname,omitempty"`
	// Client-generated UUID for idempotent create retries. Required for all creates.
	IdempotencyKey string `json:"idempotencyKey,omitempty"`
	// Platform Instant App ID. Replaces provider user_data. Mutually exclusive with
	// user_data and cloud_init_user_data_id. Requires password or ssh_key_ids.
	InstantAppID string `json:"instantAppId,omitempty"`
	// Optional Instant App form overrides (schema from InstantApp.metadata.variables).
	// Unknown keys are rejected. Omitted keys use catalog defaults.
	InstantAppVariables map[string]string `json:"instantAppVariables,omitempty"`
	// Password for VM access. Either user_data, ssh_key_ids, or password must be provided, but only one.
	Password string `json:"password,omitempty"`
	PlanID   string `json:"planId,omitempty"`
	RegionID string `json:"regionId,omitempty"`
	// SSH key IDs to use for VM access (one or more). Either user_data, ssh_key_ids, or password must be provided, but only one.
	SSHKeyIDs []string `json:"sshKeyIds,omitempty"`
	Tags      []string `json:"tags,omitempty"`
	// User data for CloudInit. Either user_data, ssh_key_ids, password, or cloud_init_user_data_id must be provided, but only one.
	UserData string `json:"userData,omitempty"`
}

CreateVirtualMachineRequest is the API's v1CreateVirtualMachineRequest object.

type CreateVirtualMachineResponse

type CreateVirtualMachineResponse struct {
	Success bool `json:"success,omitempty"`
	// VirtualMachine represents a managed virtual machine resource.
	VirtualMachine *VirtualMachine `json:"virtualMachine,omitempty"`
}

CreateVirtualMachineResponse: CreateVirtualMachineResponse returns the virtual machine that was created. Field 1 matches SuccessResponse, so clients built against the old response keep working.

type CreditLedgerEntryProto

type CreditLedgerEntryProto struct {
	Amount         string     `json:"amount,omitempty"`
	BalanceAfter   string     `json:"balanceAfter,omitempty"`
	CreatedAt      *time.Time `json:"createdAt,omitempty"`
	CreditSource   string     `json:"creditSource,omitempty"`
	Currency       string     `json:"currency,omitempty"`
	EntryType      string     `json:"entryType,omitempty"`
	ID             string     `json:"id,omitempty"`
	IdempotencyKey string     `json:"idempotencyKey,omitempty"`
	ReasonCode     string     `json:"reasonCode,omitempty"`
	ReservedAfter  string     `json:"reservedAfter,omitempty"`
}

CreditLedgerEntryProto is the API's v1CreditLedgerEntryProto object.

type CreditLedgerEntryType

type CreditLedgerEntryType string

CreditLedgerEntryType: CreditLedgerEntryType mirrors the ent enum for proto filtering.

const (
	CreditLedgerEntryTypeUnspecified        CreditLedgerEntryType = "CREDIT_LEDGER_ENTRY_TYPE_UNSPECIFIED"
	CreditLedgerEntryTypePurchase           CreditLedgerEntryType = "CREDIT_LEDGER_ENTRY_TYPE_PURCHASE"
	CreditLedgerEntryTypePromotional        CreditLedgerEntryType = "CREDIT_LEDGER_ENTRY_TYPE_PROMOTIONAL"
	CreditLedgerEntryTypeProvisionReserve   CreditLedgerEntryType = "CREDIT_LEDGER_ENTRY_TYPE_PROVISION_RESERVE"
	CreditLedgerEntryTypeProvisionRelease   CreditLedgerEntryType = "CREDIT_LEDGER_ENTRY_TYPE_PROVISION_RELEASE"
	CreditLedgerEntryTypeUsageHold          CreditLedgerEntryType = "CREDIT_LEDGER_ENTRY_TYPE_USAGE_HOLD"
	CreditLedgerEntryTypeHoldRelease        CreditLedgerEntryType = "CREDIT_LEDGER_ENTRY_TYPE_HOLD_RELEASE"
	CreditLedgerEntryTypeInvoiceSettlement  CreditLedgerEntryType = "CREDIT_LEDGER_ENTRY_TYPE_INVOICE_SETTLEMENT"
	CreditLedgerEntryTypeChargebackReversal CreditLedgerEntryType = "CREDIT_LEDGER_ENTRY_TYPE_CHARGEBACK_REVERSAL"
	CreditLedgerEntryTypeExpiry             CreditLedgerEntryType = "CREDIT_LEDGER_ENTRY_TYPE_EXPIRY"
	CreditLedgerEntryTypeForfeiture         CreditLedgerEntryType = "CREDIT_LEDGER_ENTRY_TYPE_FORFEITURE"
	CreditLedgerEntryTypeManualAdjustment   CreditLedgerEntryType = "CREDIT_LEDGER_ENTRY_TYPE_MANUAL_ADJUSTMENT"
)

Values of CreditLedgerEntryType.

type CreditService

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

CreditService calls the NodeRings CreditService API.

func (*CreditService) GetCreditBalance

func (s *CreditService) GetCreditBalance(ctx context.Context) (*GetCreditBalanceResponse, error)

GetCreditBalance calls GET /v1/credits/balance.

func (*CreditService) ListCreditLedgerEntries

ListCreditLedgerEntries calls GET /v1/credits/ledger.

func (*CreditService) ListCreditLedgerEntriesAll

func (s *CreditService) ListCreditLedgerEntriesAll(ctx context.Context, params *ListCreditLedgerEntriesParams) iter.Seq2[CreditLedgerEntryProto, error]

ListCreditLedgerEntriesAll returns an iterator over every result of ListCreditLedgerEntries, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*CreditService) ListPromoCreditGrants

ListPromoCreditGrants calls GET /v1/credits/promo.

func (*CreditService) ListPromoCreditGrantsAll

func (s *CreditService) ListPromoCreditGrantsAll(ctx context.Context, params *ListPromoCreditGrantsParams) iter.Seq2[PromoCreditGrant, error]

ListPromoCreditGrantsAll returns an iterator over every result of ListPromoCreditGrants, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*CreditService) PurchaseCredits

PurchaseCredits calls POST /v1/credits:purchase.

func (*CreditService) RedeemPromoCode

RedeemPromoCode calls POST /v1/credits:redeemPromoCode.

type DNSGeoLocation

type DNSGeoLocation struct {
	Code      string   `json:"code,omitempty"`
	Continent string   `json:"continent,omitempty"`
	Kind      string   `json:"kind,omitempty"`
	Latitude  float64  `json:"latitude,omitempty"`
	Longitude float64  `json:"longitude,omitempty"`
	Members   []string `json:"members,omitempty"`
	Name      string   `json:"name,omitempty"`
	Parent    string   `json:"parent,omitempty"`
}

DNSGeoLocation is the API's v1DnsGeoLocation object.

type DNSGeoRecord

type DNSGeoRecord struct {
	Continents   map[string]string `json:"continents,omitempty"`
	Countries    map[string]string `json:"countries,omitempty"`
	DefaultRdata string            `json:"defaultRdata,omitempty"`
	Name         string            `json:"name,omitempty"`
	Regions      map[string]string `json:"regions,omitempty"`
	TTL          int64             `json:"ttl,omitempty"`
	Type         string            `json:"type,omitempty"`
}

DNSGeoRecord is the API's v1DnsGeoRecord object.

type DNSRecord

type DNSRecord struct {
	Name  string   `json:"name,omitempty"`
	Rdata []string `json:"rdata,omitempty"`
	// Read-only: set by the API.
	System *bool  `json:"system,omitempty"`
	TTL    int64  `json:"ttl,omitempty"`
	Type   string `json:"type,omitempty"`
}

DNSRecord is the API's v1DnsRecord object.

type DNSRecordService

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

DNSRecordService calls the NodeRings DnsRecordService API.

func (*DNSRecordService) CheckDNSGeoRecord

func (s *DNSRecordService) CheckDNSGeoRecord(ctx context.Context, zoneID string, body *CheckDNSGeoRecordBody) (*CheckDNSGeoRecordResponse, error)

CheckDNSGeoRecord calls POST /v1/dns/zones/{zoneId}/geo-records:check.

func (*DNSRecordService) DeleteDNSGeoRecord

func (s *DNSRecordService) DeleteDNSGeoRecord(ctx context.Context, zoneID string, params *DeleteDNSGeoRecordParams) (*SuccessResponse, error)

DeleteDNSGeoRecord calls DELETE /v1/dns/zones/{zoneId}/geo-records.

func (*DNSRecordService) DeleteDNSRecord

func (s *DNSRecordService) DeleteDNSRecord(ctx context.Context, zoneID string, params *DeleteDNSRecordParams) (*SuccessResponse, error)

DeleteDNSRecord calls DELETE /v1/dns/zones/{zoneId}/records.

func (*DNSRecordService) GetDNSGeoRecord

func (s *DNSRecordService) GetDNSGeoRecord(ctx context.Context, zoneID string, params *GetDNSGeoRecordParams) (*DNSGeoRecord, error)

GetDNSGeoRecord calls GET /v1/dns/zones/{zoneId}/geo-records:get.

func (*DNSRecordService) ListDNSGeoLocations

ListDNSGeoLocations calls GET /v1/dns/geo-locations.

func (*DNSRecordService) ListDNSGeoRecords

func (s *DNSRecordService) ListDNSGeoRecords(ctx context.Context, zoneID string) (*ListDNSGeoRecordsResponse, error)

ListDNSGeoRecords calls GET /v1/dns/zones/{zoneId}/geo-records.

func (*DNSRecordService) ListDNSRecords

func (s *DNSRecordService) ListDNSRecords(ctx context.Context, zoneID string, params *ListDNSRecordsParams) (*ListDNSRecordsResponse, error)

ListDNSRecords calls GET /v1/dns/zones/{zoneId}/records.

func (*DNSRecordService) ListDNSRecordsAll

func (s *DNSRecordService) ListDNSRecordsAll(ctx context.Context, zoneID string, params *ListDNSRecordsParams) iter.Seq2[DNSRecord, error]

ListDNSRecordsAll returns an iterator over every result of ListDNSRecords, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*DNSRecordService) UpsertDNSGeoRecord

func (s *DNSRecordService) UpsertDNSGeoRecord(ctx context.Context, zoneID string, body *UpsertDNSGeoRecordBody) (*DNSGeoRecord, error)

UpsertDNSGeoRecord calls PUT /v1/dns/zones/{zoneId}/geo-records.

func (*DNSRecordService) UpsertDNSRecord

func (s *DNSRecordService) UpsertDNSRecord(ctx context.Context, zoneID string, body *UpsertDNSRecordBody) (*DNSRecord, error)

UpsertDNSRecord calls PUT /v1/dns/zones/{zoneId}/records.

Example

Point a name at an address. Upsert replaces every value of the name and type.

package main

import (
	"context"
	"log"
	"os"

	"github.com/noderings/noderings-go"
)

func main() {
	client, _ := noderings.NewClient(os.Getenv("NODERINGS_TOKEN"))
	_, err := client.DNSRecord.UpsertDNSRecord(context.Background(), "your-zone-id", &noderings.UpsertDNSRecordBody{
		Record: &noderings.DNSRecord{Name: "www", Type: "A", TTL: 300, Rdata: []string{"203.0.113.10"}},
	})
	if err != nil {
		log.Fatal(err)
	}
}

type DNSSECInfo

type DNSSECInfo struct {
	// Read-only: set by the API.
	Algorithm string `json:"algorithm,omitempty"`
	// Read-only: set by the API.
	DigestType int64 `json:"digestType,omitempty"`
	// Read-only: set by the API.
	Dnskey string `json:"dnskey,omitempty"`
	// Read-only: set by the API.
	DS string `json:"ds,omitempty"`
	// Read-only: set by the API.
	DSAtParent bool `json:"dsAtParent,omitempty"`
	// Read-only: set by the API.
	KeyTag int64      `json:"keyTag,omitempty"`
	Mode   DNSSECMode `json:"mode,omitempty"`
	// Read-only: set by the API.
	NsecMode string `json:"nsecMode,omitempty"`
}

DNSSECInfo is the API's v1DnssecInfo object.

type DNSSECMode

type DNSSECMode string

DNSSECMode is an API enum.

const (
	DNSSECModeUnspecified     DNSSECMode = "DNSSEC_MODE_UNSPECIFIED"
	DNSSECModeUnsigned        DNSSECMode = "DNSSEC_MODE_UNSIGNED"
	DNSSECModeSignedDSPending DNSSECMode = "DNSSEC_MODE_SIGNED_DS_PENDING"
	DNSSECModeSignedActive    DNSSECMode = "DNSSEC_MODE_SIGNED_ACTIVE"
)

Values of DNSSECMode.

type DNSSECService

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

DNSSECService calls the NodeRings DnssecService API.

func (*DNSSECService) CheckDNSSECDS

func (s *DNSSECService) CheckDNSSECDS(ctx context.Context, zoneID string, body *CheckDNSSECDSBody) (*DNSSECInfo, error)

CheckDNSSECDS calls POST /v1/dns/zones/{zoneId}/dnssec/check-ds.

func (*DNSSECService) DisableDNSSEC

func (s *DNSSECService) DisableDNSSEC(ctx context.Context, zoneID string, body *DisableDNSSECBody) (*DNSSECInfo, error)

DisableDNSSEC calls POST /v1/dns/zones/{zoneId}/dnssec/disable.

func (*DNSSECService) EnableDNSSEC

func (s *DNSSECService) EnableDNSSEC(ctx context.Context, zoneID string, body *EnableDNSSECBody) (*DNSSECInfo, error)

EnableDNSSEC calls POST /v1/dns/zones/{zoneId}/dnssec/enable.

func (*DNSSECService) GetDNSSEC

func (s *DNSSECService) GetDNSSEC(ctx context.Context, zoneID string) (*DNSSECInfo, error)

GetDNSSEC calls GET /v1/dns/zones/{zoneId}/dnssec.

type DNSZone

type DNSZone struct {
	// Read-only: set by the API.
	AssignedNameservers []string `json:"assignedNameservers,omitempty"`
	// Read-only: set by the API.
	DelegationOk bool       `json:"delegationOk,omitempty"`
	DNSSECMode   DNSSECMode `json:"dnssecMode,omitempty"`
	// Read-only: set by the API.
	GeoEnabled bool `json:"geoEnabled,omitempty"`
	// Read-only: set by the API.
	ID   string `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
	// Read-only: set by the API.
	OrganizationID string       `json:"organizationId,omitempty"`
	State          DNSZoneState `json:"state,omitempty"`
	Timestamps     *Timestamps  `json:"timestamps,omitempty"`
	// Read-only: set by the API.
	UnicastNameservers []string `json:"unicastNameservers,omitempty"`
}

DNSZone: DnsZone is a hosted authoritative zone. Vanilla records live in PowerDNS, not Ent.

type DNSZoneService

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

DNSZoneService calls the NodeRings DnsZoneService API.

func (*DNSZoneService) CheckDNSZoneDelegation

func (s *DNSZoneService) CheckDNSZoneDelegation(ctx context.Context, id string, body *CheckDNSZoneDelegationBody) (*GetDNSZoneResponse, error)

CheckDNSZoneDelegation calls POST /v1/dns/zones/{id}/check-delegation.

func (*DNSZoneService) CreateDNSZone

CreateDNSZone calls POST /v1/dns/zones.

func (*DNSZoneService) DeleteDNSZone

func (s *DNSZoneService) DeleteDNSZone(ctx context.Context, id string, params *DeleteDNSZoneParams) (*SuccessResponse, error)

DeleteDNSZone calls DELETE /v1/dns/zones/{id}.

func (*DNSZoneService) ExportDNSZone

func (s *DNSZoneService) ExportDNSZone(ctx context.Context, id string) (*ExportDNSZoneResponse, error)

ExportDNSZone calls GET /v1/dns/zones/{id}/export.

func (*DNSZoneService) GetDNSZone

func (s *DNSZoneService) GetDNSZone(ctx context.Context, id string) (*GetDNSZoneResponse, error)

GetDNSZone calls GET /v1/dns/zones/{id}.

func (*DNSZoneService) ImportDNSRecords

func (s *DNSZoneService) ImportDNSRecords(ctx context.Context, zoneID string, body *ImportDNSRecordsBody) (*SuccessResponse, error)

ImportDNSRecords calls POST /v1/dns/zones/{zoneId}/records:import.

func (*DNSZoneService) ImportDNSZone

func (s *DNSZoneService) ImportDNSZone(ctx context.Context, id string, body *ImportDNSZoneBody) (*SuccessResponse, error)

ImportDNSZone calls POST /v1/dns/zones/{id}/import.

func (*DNSZoneService) ListDNSZones

func (s *DNSZoneService) ListDNSZones(ctx context.Context, params *ListDNSZonesParams) (*ListDNSZonesResponse, error)

ListDNSZones calls GET /v1/dns/zones.

func (*DNSZoneService) ListDNSZonesAll

func (s *DNSZoneService) ListDNSZonesAll(ctx context.Context, params *ListDNSZonesParams) iter.Seq2[DNSZone, error]

ListDNSZonesAll returns an iterator over every result of ListDNSZones, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*DNSZoneService) ScanDNSZoneRecords

ScanDNSZoneRecords calls GET /v1/dns/scan.

func (*DNSZoneService) ScanDNSZoneRecords2

func (s *DNSZoneService) ScanDNSZoneRecords2(ctx context.Context, zoneID string, params *ScanDNSZoneRecords2Params) (*ScanDNSZoneRecordsResponse, error)

ScanDNSZoneRecords2 calls GET /v1/dns/zones/{zoneId}/scan.

type DNSZoneState

type DNSZoneState string

DNSZoneState is an API enum.

const (
	DNSZoneStateUnspecified DNSZoneState = "DNS_ZONE_STATE_UNSPECIFIED"
	DNSZoneStatePendingNs   DNSZoneState = "DNS_ZONE_STATE_PENDING_NS"
	DNSZoneStateActive      DNSZoneState = "DNS_ZONE_STATE_ACTIVE"
	DNSZoneStateDisabled    DNSZoneState = "DNS_ZONE_STATE_DISABLED"
	DNSZoneStateDeleting    DNSZoneState = "DNS_ZONE_STATE_DELETING"
)

Values of DNSZoneState.

type DashboardAssetSalesDayBucket

type DashboardAssetSalesDayBucket struct {
	// Total assets sold that day (today equals VM count; available for future multi-product rollups).
	Count               int32  `json:"count,omitempty"`
	Day                 string `json:"day,omitempty"`
	VirtualMachineCount int32  `json:"virtualMachineCount,omitempty"`
}

DashboardAssetSalesDayBucket is the API's v1DashboardAssetSalesDayBucket object.

type DashboardBillingCommercialHealth

type DashboardBillingCommercialHealth struct {
	DistinctPayingTenantCount      int32  `json:"distinctPayingTenantCount,omitempty"`
	OutstandingOpenAmount          string `json:"outstandingOpenAmount,omitempty"`
	OutstandingOpenInvoiceCount    int32  `json:"outstandingOpenInvoiceCount,omitempty"`
	OutstandingPastDueAmount       string `json:"outstandingPastDueAmount,omitempty"`
	OutstandingPastDueInvoiceCount int32  `json:"outstandingPastDueInvoiceCount,omitempty"`
	PaidInvoiceCount               int32  `json:"paidInvoiceCount,omitempty"`
}

DashboardBillingCommercialHealth is the API's v1DashboardBillingCommercialHealth object.

type DashboardBillingCustomerRevenue

type DashboardBillingCustomerRevenue struct {
	// Primary owner contact email for the client org (billing dashboard display).
	ContactEmail     string `json:"contactEmail,omitempty"`
	OrganizationID   string `json:"organizationId,omitempty"`
	OrganizationName string `json:"organizationName,omitempty"`
	TotalAmount      string `json:"totalAmount,omitempty"`
}

DashboardBillingCustomerRevenue is the API's v1DashboardBillingCustomerRevenue object.

type DashboardBillingProductSlice

type DashboardBillingProductSlice struct {
	Amount       string `json:"amount,omitempty"`
	ProductKey   string `json:"productKey,omitempty"`
	ProductLabel string `json:"productLabel,omitempty"`
}

DashboardBillingProductSlice: Billing dashboard tab: revenue from paid invoices attributed to this provider's catalog.

type DashboardBillingSalesDayBucket

type DashboardBillingSalesDayBucket struct {
	AddonSlices []DashboardBillingProductSlice `json:"addonSlices,omitempty"`
	Day         string                         `json:"day,omitempty"`
	PlanSlices  []DashboardBillingProductSlice `json:"planSlices,omitempty"`
	// Same plan revenue as plan_slices, grouped by catalog plan code (SKU) instead of tier/category family.
	PlanSlicesByPlanCode []DashboardBillingProductSlice `json:"planSlicesByPlanCode,omitempty"`
	// Prior window (same length, ending the day before current window): parallel day label and total sales.
	PriorPeriodDay         string `json:"priorPeriodDay,omitempty"`
	PriorPeriodTotalAmount string `json:"priorPeriodTotalAmount,omitempty"`
}

DashboardBillingSalesDayBucket is the API's v1DashboardBillingSalesDayBucket object.

type DashboardCustomerAcquisitionDayBucket

type DashboardCustomerAcquisitionDayBucket struct {
	Day          string `json:"day,omitempty"`
	NewCustomers int32  `json:"newCustomers,omitempty"`
}

DashboardCustomerAcquisitionDayBucket: Per UTC calendar day: distinct client orgs whose first-ever VM with this provider was created that day (UTC).

type DashboardIPAMAssignmentIPFamily

type DashboardIPAMAssignmentIPFamily string

DashboardIPAMAssignmentIPFamily is an API enum.

const (
	DashboardIPAMAssignmentIPFamilyUnspecified DashboardIPAMAssignmentIPFamily = "DASHBOARD_IPAM_ASSIGNMENT_IP_FAMILY_UNSPECIFIED"
	DashboardIPAMAssignmentIPFamilyIPv4        DashboardIPAMAssignmentIPFamily = "DASHBOARD_IPAM_ASSIGNMENT_IP_FAMILY_IPV4"
	DashboardIPAMAssignmentIPFamilyIPv6        DashboardIPAMAssignmentIPFamily = "DASHBOARD_IPAM_ASSIGNMENT_IP_FAMILY_IPV6"
)

Values of DashboardIPAMAssignmentIPFamily.

type DashboardIPAMAssignmentRow

type DashboardIPAMAssignmentRow struct {
	ClientOrganizationID   string `json:"clientOrganizationId,omitempty"`
	IPAddress              string `json:"ipAddress,omitempty"`
	NetworkID              string `json:"networkId,omitempty"`
	NodeID                 string `json:"nodeId,omitempty"`
	NodeName               string `json:"nodeName,omitempty"`
	PlatformID             string `json:"platformId,omitempty"`
	VirtualMachineHostname string `json:"virtualMachineHostname,omitempty"`
	VirtualMachineID       string `json:"virtualMachineId,omitempty"`
}

DashboardIPAMAssignmentRow is the API's v1DashboardIpamAssignmentRow object.

type DashboardIPAMNetworkPrefixSummary

type DashboardIPAMNetworkPrefixSummary struct {
	ActiveAllocations        int64    `json:"activeAllocations,omitempty,string"`
	AllocatedSampleIPs       []string `json:"allocatedSampleIps,omitempty"`
	AvailableEstimate        int64    `json:"availableEstimate,omitempty,string"`
	CapacityIsOpenEnded      bool     `json:"capacityIsOpenEnded,omitempty"`
	CapacityUnitLabel        string   `json:"capacityUnitLabel,omitempty"`
	CIDR                     string   `json:"cidr,omitempty"`
	GatewayIP                string   `json:"gatewayIp,omitempty"`
	IsIPv6                   bool     `json:"isIpv6,omitempty"`
	PrefixID                 string   `json:"prefixId,omitempty"`
	ReservedCount            int64    `json:"reservedCount,omitempty,string"`
	ReservedIPs              []string `json:"reservedIps,omitempty"`
	ReservedPrefixes         []string `json:"reservedPrefixes,omitempty"`
	UsableTotal              int64    `json:"usableTotal,omitempty,string"`
	UtilizationPercent       float64  `json:"utilizationPercent,omitempty"`
	VMAssignmentPrefixLength int32    `json:"vmAssignmentPrefixLength,omitempty"`
}

DashboardIPAMNetworkPrefixSummary: usable_total: assignable pool (structural hosts minus reserved list and in-prefix gateway when not duplicated in reserved). utilization_percent = active_allocations / usable_total. reserved_count is len(reserved_ips) for display only.

type DashboardIPAMNetworkRollup

type DashboardIPAMNetworkRollup struct {
	ActiveAllocationsTotal       int64                               `json:"activeAllocationsTotal,omitempty,string"`
	DashboardVirtualMachineCount int32                               `json:"dashboardVirtualMachineCount,omitempty"`
	Description                  string                              `json:"description,omitempty"`
	DNSServers                   []string                            `json:"dnsServers,omitempty"`
	Name                         string                              `json:"name,omitempty"`
	NetworkID                    string                              `json:"networkId,omitempty"`
	NodeCount                    int32                               `json:"nodeCount,omitempty"`
	Nodes                        []DashboardIPAMNodeRollup           `json:"nodes,omitempty"`
	PrefixCount                  int32                               `json:"prefixCount,omitempty"`
	PrefixSummaries              []DashboardIPAMNetworkPrefixSummary `json:"prefixSummaries,omitempty"`
}

DashboardIPAMNetworkRollup is the API's v1DashboardIpamNetworkRollup object.

type DashboardIPAMNodeRollup

type DashboardIPAMNodeRollup struct {
	NodeID       string `json:"nodeId,omitempty"`
	NodeName     string `json:"nodeName,omitempty"`
	PlatformID   string `json:"platformId,omitempty"`
	PlatformName string `json:"platformName,omitempty"`
}

DashboardIPAMNodeRollup is the API's v1DashboardIpamNodeRollup object.

type DashboardSummaryAddonBreakdown

type DashboardSummaryAddonBreakdown struct {
	ActiveSubscriptionCount int32       `json:"activeSubscriptionCount,omitempty"`
	AddonID                 string      `json:"addonId,omitempty"`
	BillingType             BillingType `json:"billingType,omitempty"`
	Code                    string      `json:"code,omitempty"`
	Name                    string      `json:"name,omitempty"`
}

DashboardSummaryAddonBreakdown is the API's v1DashboardSummaryAddonBreakdown object.

type DashboardSummaryPlanBreakdown

type DashboardSummaryPlanBreakdown struct {
	ActiveSubscriptionCount int32       `json:"activeSubscriptionCount,omitempty"`
	BillingType             BillingType `json:"billingType,omitempty"`
	Code                    string      `json:"code,omitempty"`
	Name                    string      `json:"name,omitempty"`
	PlanID                  string      `json:"planId,omitempty"`
}

DashboardSummaryPlanBreakdown is the API's v1DashboardSummaryPlanBreakdown object.

type DashboardSummaryRegionBreakdown

type DashboardSummaryRegionBreakdown struct {
	ActiveCustomerCount       int32  `json:"activeCustomerCount,omitempty"`
	ActiveVMCount             int32  `json:"activeVmCount,omitempty"`
	IPAddressesFreeTotal      int64  `json:"ipAddressesFreeTotal,omitempty,string"`
	IPAddressesIPv4FreeTotal  int64  `json:"ipAddressesIpv4FreeTotal,omitempty,string"`
	IPAddressesIPv4TakenTotal int64  `json:"ipAddressesIpv4TakenTotal,omitempty,string"`
	IPAddressesIPv6FreeTotal  int64  `json:"ipAddressesIpv6FreeTotal,omitempty,string"`
	IPAddressesIPv6TakenTotal int64  `json:"ipAddressesIpv6TakenTotal,omitempty,string"`
	IPAddressesTakenTotal     int64  `json:"ipAddressesTakenTotal,omitempty,string"`
	NodeCount                 int32  `json:"nodeCount,omitempty"`
	RegionID                  string `json:"regionId,omitempty"`
	RegionLabel               string `json:"regionLabel,omitempty"`
}

DashboardSummaryRegionBreakdown is the API's v1DashboardSummaryRegionBreakdown object.

type DashboardSummaryTickets

type DashboardSummaryTickets struct {
	EscalatedLast7D                        int32 `json:"escalatedLast7d,omitempty"`
	OpenLast7D                             int32 `json:"openLast7d,omitempty"`
	OpenNeedingProviderFirstResponseLast7D int32 `json:"openNeedingProviderFirstResponseLast7d,omitempty"`
	SLAFirstResponseBreaches               int32 `json:"slaFirstResponseBreaches,omitempty"`
	// Deprecated: ticket SLA is first-response only. Always 0; kept for wire compatibility.
	SLAResolutionBreaches int32 `json:"slaResolutionBreaches,omitempty"`
	TotalInWindow         int32 `json:"totalInWindow,omitempty"`
}

DashboardSummaryTickets is the API's v1DashboardSummaryTickets object.

type DashboardTicketStatisticsByCaseType

type DashboardTicketStatisticsByCaseType struct {
	CaseType CaseType `json:"caseType,omitempty"`
	Count    int32    `json:"count,omitempty"`
}

DashboardTicketStatisticsByCaseType is the API's v1DashboardTicketStatisticsByCaseType object.

type DashboardTicketStatisticsByPriority

type DashboardTicketStatisticsByPriority struct {
	Count    int32          `json:"count,omitempty"`
	Priority TicketPriority `json:"priority,omitempty"`
}

DashboardTicketStatisticsByPriority is the API's v1DashboardTicketStatisticsByPriority object.

type DashboardTicketStatisticsByStatus

type DashboardTicketStatisticsByStatus struct {
	Count        int32        `json:"count,omitempty"`
	TicketStatus TicketStatus `json:"ticketStatus,omitempty"`
}

DashboardTicketStatisticsByStatus is the API's v1DashboardTicketStatisticsByStatus object.

type DashboardTicketStatisticsDayBucket

type DashboardTicketStatisticsDayBucket struct {
	Count int32  `json:"count,omitempty"`
	Day   string `json:"day,omitempty"`
}

DashboardTicketStatisticsDayBucket is the API's v1DashboardTicketStatisticsDayBucket object.

type DashboardVirtualMachineRow

type DashboardVirtualMachineRow struct {
	ClientContactEmail   string `json:"clientContactEmail,omitempty"`
	ClientOrganizationID string `json:"clientOrganizationId,omitempty"`
	// Who placed a compliance hold or purchase block.
	ComplianceActor   ComplianceActor `json:"complianceActor,omitempty"`
	ComplianceHeld    bool            `json:"complianceHeld,omitempty"`
	ComplianceMessage string          `json:"complianceMessage,omitempty"`
	// Why a VM or purchase was seized/blocked.
	ComplianceReason ComplianceReason `json:"complianceReason,omitempty"`
	CPU              int32            `json:"cpu,omitempty"`
	// - DISTRO_UBUNTU_22_04: Ubuntu distributions
	//  - DISTRO_FEDORA_43: Fedora distributions
	//  - DISTRO_DEBIAN_12: Debian distributions
	//  - DISTRO_CENTOS_9: CentOS distributions
	//  - DISTRO_ROCKY_9: Rocky Linux distributions
	//  - DISTRO_ALMALINUX_9: AlmaLinux distributions
	Distro      Distro `json:"distro,omitempty"`
	Hostname    string `json:"hostname,omitempty"`
	ID          string `json:"id,omitempty"`
	IPv4Address string `json:"ipv4Address,omitempty"`
	IPv6Address string `json:"ipv6Address,omitempty"`
	// Allocated MAC address (provider-only visibility; never exposed on client VM APIs).
	MacAddress string `json:"macAddress,omitempty"`
	MemoryMb   int32  `json:"memoryMb,omitempty"`
	StorageMb  int32  `json:"storageMb,omitempty"`
}

DashboardVirtualMachineRow is the API's v1DashboardVirtualMachineRow object.

type Datacenter

type Datacenter struct {
	ID   string `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
}

Datacenter is the API's v1Datacenter object.

type DatacenterInfo

type DatacenterInfo struct {
	ID   string `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
}

DatacenterInfo is the API's v1DatacenterInfo object.

type DeactivateCouponBody

type DeactivateCouponBody struct {
}

DeactivateCouponBody is the API's CouponServiceDeactivateCouponBody object.

type DeclineInviteParams

type DeclineInviteParams struct {
	InviteID string
}

DeclineInviteParams are the query parameters of InviteService.DeclineInvite.

type DeleteBackupParams

type DeleteBackupParams struct {
	// Restore only. When true, the panel deletes every file before extracting the backup.
	Truncate *bool
}

DeleteBackupParams are the query parameters of GameServerService.DeleteBackup.

type DeleteDNSGeoRecordParams

type DeleteDNSGeoRecordParams struct {
	Name string
	Type string
}

DeleteDNSGeoRecordParams are the query parameters of DNSRecordService.DeleteDNSGeoRecord.

type DeleteDNSRecordParams

type DeleteDNSRecordParams struct {
	Name string
	Type string
}

DeleteDNSRecordParams are the query parameters of DNSRecordService.DeleteDNSRecord.

type DeleteDNSZoneParams

type DeleteDNSZoneParams struct {
	Force *bool
}

DeleteDNSZoneParams are the query parameters of DNSZoneService.DeleteDNSZone.

type DeleteFilesBody

type DeleteFilesBody struct {
	Files []string `json:"files,omitempty"`
	Root  string   `json:"root,omitempty"`
}

DeleteFilesBody is the API's GameServerServiceDeleteFilesBody object.

type DeleteFirewallRuleSetParams

type DeleteFirewallRuleSetParams struct {
	Force *bool
}

DeleteFirewallRuleSetParams are the query parameters of FirewallService.DeleteFirewallRuleSet.

type DeletePlanLiveValidationParams

type DeletePlanLiveValidationParams struct {
	NodeID string
}

DeletePlanLiveValidationParams are the query parameters of LiveValidationService.DeletePlanLiveValidation.

type DeletePlatformVirtualMachineBody

type DeletePlatformVirtualMachineBody struct {
}

DeletePlatformVirtualMachineBody is the API's EnforcementServiceDeletePlatformVirtualMachineBody object.

type DeleteProviderReviewReplyResponse

type DeleteProviderReviewReplyResponse struct {
	// Provider UI: list and respond to client reviews (no VM identifiers: anonymous to provider).
	Review *ProviderReviewListItem `json:"review,omitempty"`
}

DeleteProviderReviewReplyResponse is the API's v1DeleteProviderReviewReplyResponse object.

type DeleteRoadmapFeatureRequestCommentResponse

type DeleteRoadmapFeatureRequestCommentResponse struct {
	Success bool `json:"success,omitempty"`
}

DeleteRoadmapFeatureRequestCommentResponse is the API's v1DeleteRoadmapFeatureRequestCommentResponse object.

type DetachVMFirewallBody

type DetachVMFirewallBody struct {
	RulesetID string `json:"rulesetId,omitempty"`
}

DetachVMFirewallBody is the API's VirtualMachineServiceDetachVMFirewallBody object.

type DisableAdditionalIPBody

type DisableAdditionalIPBody struct {
	CancelImmediately *bool `json:"cancelImmediately,omitempty"`
	// Specific additional IPv4 to release. When empty, the most recently added address is removed.
	IPAddress string `json:"ipAddress,omitempty"`
}

DisableAdditionalIPBody: DisableAdditionalIPRequest removes one additional IPv4 and updates billing quantity.

type DisableBackupBody

type DisableBackupBody struct {
	AddonID           string `json:"addonId,omitempty"`
	CancelImmediately *bool  `json:"cancelImmediately,omitempty"`
}

DisableBackupBody: DisableBackupRequest disables backup addon for a virtual machine

type DisableDNSSECBody

type DisableDNSSECBody struct {
	Force *bool `json:"force,omitempty"`
}

DisableDNSSECBody is the API's DnssecServiceDisableDnssecBody object.

type DisableMFARequest

type DisableMFARequest struct {
	// Current TOTP or an unused recovery code.
	Code string `json:"code,omitempty"`
	// Required when the user has a local password.
	Password string `json:"password,omitempty"`
}

DisableMFARequest is the API's v1DisableMfaRequest object.

type Distro

type Distro string

Distro: - DISTRO_UBUNTU_22_04: Ubuntu distributions

  • DISTRO_FEDORA_43: Fedora distributions
  • DISTRO_DEBIAN_12: Debian distributions
  • DISTRO_CENTOS_9: CentOS distributions
  • DISTRO_ROCKY_9: Rocky Linux distributions
  • DISTRO_ALMALINUX_9: AlmaLinux distributions
const (
	DistroUnspecified Distro = "DISTRO_UNSPECIFIED"
	DistroUbuntu2204  Distro = "DISTRO_UBUNTU_22_04"
	DistroUbuntu2404  Distro = "DISTRO_UBUNTU_24_04"
	DistroUbuntu2604  Distro = "DISTRO_UBUNTU_26_04"
	DistroFedora43    Distro = "DISTRO_FEDORA_43"
	DistroFedora44    Distro = "DISTRO_FEDORA_44"
	DistroDebian12    Distro = "DISTRO_DEBIAN_12"
	DistroDebian13    Distro = "DISTRO_DEBIAN_13"
	DistroCentos9     Distro = "DISTRO_CENTOS_9"
	DistroCentos10    Distro = "DISTRO_CENTOS_10"
	DistroRocky9      Distro = "DISTRO_ROCKY_9"
	DistroRocky10     Distro = "DISTRO_ROCKY_10"
	DistroAlmalinux9  Distro = "DISTRO_ALMALINUX_9"
	DistroAlmalinux10 Distro = "DISTRO_ALMALINUX_10"
)

Values of Distro.

type DistroCatalogEntry

type DistroCatalogEntry struct {
	// - DISTRO_UBUNTU_22_04: Ubuntu distributions
	//  - DISTRO_FEDORA_43: Fedora distributions
	//  - DISTRO_DEBIAN_12: Debian distributions
	//  - DISTRO_CENTOS_9: CentOS distributions
	//  - DISTRO_ROCKY_9: Rocky Linux distributions
	//  - DISTRO_ALMALINUX_9: AlmaLinux distributions
	Distro Distro `json:"distro,omitempty"`
	// Family groups versions in the OS picker (ubuntu, debian, fedora, centos, alma, rocky).
	Family string `json:"family,omitempty"`
	// IsDefault marks the version selected when the customer picks this family.
	IsDefault bool `json:"isDefault,omitempty"`
	// Label is the full display name, such as "Ubuntu 24.04 LTS".
	Label string `json:"label,omitempty"`
	// Name is the customer-facing family name, such as "Ubuntu" or "CentOS Stream".
	Name string `json:"name,omitempty"`
	// Version is the version label shown next to the family, such as "24.04 LTS".
	Version string `json:"version,omitempty"`
}

DistroCatalogEntry: DistroCatalogEntry is one guest operating system the marketplace can install.

type DockerImageChoice

type DockerImageChoice struct {
	Image string `json:"image,omitempty"`
	Name  string `json:"name,omitempty"`
}

DockerImageChoice is the API's v1DockerImageChoice object.

type Domain

type Domain struct {
	ID               string           `json:"id,omitempty"`
	IsVerified       bool             `json:"isVerified,omitempty"`
	Metadata         map[string]any   `json:"metadata,omitempty"`
	Name             string           `json:"name,omitempty"`
	OrganizationID   string           `json:"organizationId,omitempty"`
	Status           Protov1Status    `json:"status,omitempty"`
	Timestamps       *Timestamps      `json:"timestamps,omitempty"`
	VerificationType VerificationType `json:"verificationType,omitempty"`
}

Domain is the API's v1Domain object.

type DomainService

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

DomainService calls the NodeRings DomainService API.

func (*DomainService) CreateDomain

func (s *DomainService) CreateDomain(ctx context.Context, body *CreateDomainRequest) (*SuccessResponse, error)

CreateDomain calls POST /v1/domain.

func (*DomainService) DeleteDomain

func (s *DomainService) DeleteDomain(ctx context.Context, id string) (*SuccessResponse, error)

DeleteDomain calls DELETE /v1/domain/{id}.

func (*DomainService) GetDomain

func (s *DomainService) GetDomain(ctx context.Context) (*GetDomainResponse, error)

GetDomain calls GET /v1/domain.

func (*DomainService) VerifyDomain

func (s *DomainService) VerifyDomain(ctx context.Context, id string) (*SuccessResponse, error)

VerifyDomain calls GET /v1/domain/verify/{id}.

type DownloadFileParams

type DownloadFileParams struct {
	Path string
}

DownloadFileParams are the query parameters of GameServerService.DownloadFile.

type DownloadFileResponse

type DownloadFileResponse struct {
	Content []byte `json:"content,omitempty"`
}

DownloadFileResponse is the API's v1DownloadFileResponse object.

type DownloadTicketAttachmentResponse

type DownloadTicketAttachmentResponse struct {
	AttachmentID string `json:"attachmentId,omitempty"`
	FileContent  []byte `json:"fileContent,omitempty"`
	FileName     string `json:"fileName,omitempty"`
	FileSize     int64  `json:"fileSize,omitempty,string"`
	MimeType     string `json:"mimeType,omitempty"`
}

DownloadTicketAttachmentResponse is the API's v1DownloadTicketAttachmentResponse object.

type DuplicateGameServerTemplateBody

type DuplicateGameServerTemplateBody struct {
	Name string `json:"name,omitempty"`
}

DuplicateGameServerTemplateBody is the API's GameServerTemplateServiceDuplicateGameServerTemplateBody object.

type EffectivePermissions

type EffectivePermissions struct {
	Permissions []Permission `json:"permissions,omitempty"`
	TotalCount  int32        `json:"totalCount,omitempty"`
}

EffectivePermissions is the API's v1EffectivePermissions object.

type EggVariable

type EggVariable struct {
	DefaultValue string `json:"defaultValue,omitempty"`
	Description  string `json:"description,omitempty"`
	EnvVariable  string `json:"envVariable,omitempty"`
	// help_text explains where the customer finds the value.
	HelpText string `json:"helpText,omitempty"`
	// help_url is a page that shows the value, when one is known.
	HelpURL string `json:"helpUrl,omitempty"`
	// is_required is true when the panel rules contain required.
	IsRequired   bool   `json:"isRequired,omitempty"`
	Name         string `json:"name,omitempty"`
	Rules        string `json:"rules,omitempty"`
	UserEditable bool   `json:"userEditable,omitempty"`
	UserViewable bool   `json:"userViewable,omitempty"`
}

EggVariable: EggVariable is one panel variable the customer can see while ordering a game.

type EnableAdditionalIPBody

type EnableAdditionalIPBody struct {
}

EnableAdditionalIPBody: EnableAdditionalIPRequest adds one additional IPv4 (same prefix as VM primary) and bills via ADDITIONAL-IP addon.

type EnableAdditionalIPResponse

type EnableAdditionalIPResponse struct {
	// AdditionalIPAddress is an extra IPv4 allocated from the VM's primary prefix.
	Allocation *AdditionalIPAddress `json:"allocation,omitempty"`
	// Human-readable billing summary for the UI.
	BillingMessage string `json:"billingMessage,omitempty"`
	Currency       string `json:"currency,omitempty"`
	// Monthly list price per additional IP (fixed billing). Empty for usage-based VMs.
	MonthlyUnitPrice string `json:"monthlyUnitPrice,omitempty"`
	// Prorated amount charged now for the remaining VM billing period (fixed billing).
	ProratedChargeAmount string `json:"proratedChargeAmount,omitempty"`
	TotalAdditionalIPs   int32  `json:"totalAdditionalIps,omitempty"`
}

EnableAdditionalIPResponse: EnableAdditionalIPResponse returns the newly allocated address.

type EnableBackupBody

type EnableBackupBody struct {
	AddonID string `json:"addonId,omitempty"`
}

EnableBackupBody: EnableBackupRequest enables backup addon for a virtual machine

type EnableDNSSECBody

type EnableDNSSECBody struct {
}

EnableDNSSECBody is the API's DnssecServiceEnableDnssecBody object.

type EndUser

type EndUser string

EndUser is an API enum.

const (
	EndUserUnspecified EndUser = "END_USER_UNSPECIFIED"
	EndUserClient      EndUser = "END_USER_CLIENT"
	EndUserProvider    EndUser = "END_USER_PROVIDER"
	EndUserAll         EndUser = "END_USER_ALL"
	EndUserUser        EndUser = "END_USER_USER"
)

Values of EndUser.

type EnrollMFATOTPRequest

type EnrollMFATOTPRequest struct {
}

EnrollMFATOTPRequest is the API's v1EnrollMfaTotpRequest object.

type EnrollMFATOTPResponse

type EnrollMFATOTPResponse struct {
	OtpauthURL string `json:"otpauthUrl,omitempty"`
	// Base32 TOTP secret for manual entry / backup. Shown once during enrollment.
	Secret string `json:"secret,omitempty"`
}

EnrollMFATOTPResponse is the API's v1EnrollMfaTotpResponse object.

type EnvironmentVariable

type EnvironmentVariable struct {
	ID           string         `json:"id,omitempty"`
	Key          string         `json:"key,omitempty"`
	Metadata     map[string]any `json:"metadata,omitempty"`
	Organization string         `json:"organization,omitempty"`
	Status       Protov1Status  `json:"status,omitempty"`
	Timestamps   *Timestamps    `json:"timestamps,omitempty"`
	User         string         `json:"user,omitempty"`
	Value        string         `json:"value,omitempty"`
}

EnvironmentVariable is the API's v1EnvironmentVariable object.

type EnvironmentVariableService

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

EnvironmentVariableService calls the NodeRings EnvironmentVariableService API.

func (*EnvironmentVariableService) CreateEnvironmentVariable

CreateEnvironmentVariable calls POST /v1/environment-variables.

func (*EnvironmentVariableService) DeleteEnvironmentVariable

func (s *EnvironmentVariableService) DeleteEnvironmentVariable(ctx context.Context, id string) (*SuccessResponse, error)

DeleteEnvironmentVariable calls DELETE /v1/environment-variables/{id}.

func (*EnvironmentVariableService) GetEnvironmentVariable

GetEnvironmentVariable calls GET /v1/environment-variables/{id}.

func (*EnvironmentVariableService) ListEnvironmentVariables

ListEnvironmentVariables calls GET /v1/environment-variables.

func (*EnvironmentVariableService) ListEnvironmentVariablesAll

ListEnvironmentVariablesAll returns an iterator over every result of ListEnvironmentVariables, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*EnvironmentVariableService) UpdateEnvironmentVariable

func (s *EnvironmentVariableService) UpdateEnvironmentVariable(ctx context.Context, id string, body *UpdateEnvironmentVariableBody) (*SuccessResponse, error)

UpdateEnvironmentVariable calls PATCH /v1/environment-variables/{id}.

type Error

type Error struct {
	// StatusCode is the HTTP status code.
	StatusCode int
	// Code is the API's gRPC status code.
	Code Code
	// Message is the API's message, meant for people.
	Message string
	// Details are the structured details of the error, for example
	// google.rpc.ErrorInfo with a reason such as VM_LIMIT_REACHED.
	Details []ErrorDetail
	// Method and Path identify the request.
	Method, Path string
}

Error is an error returned by the NodeRings API.

func (*Error) Error

func (e *Error) Error() string

func (*Error) IsQuotaExceeded

func (e *Error) IsQuotaExceeded() bool

IsQuotaExceeded reports whether a plan quota is used up (a reason ending in LIMIT_REACHED), as opposed to a short-term rate limit.

func (*Error) Reason

func (e *Error) Reason() string

Reason returns the reason of the first google.rpc.ErrorInfo detail, or "".

type ErrorDetail

type ErrorDetail struct {
	Type     string            `json:"@type"`
	Reason   string            `json:"reason,omitempty"`
	Domain   string            `json:"domain,omitempty"`
	Metadata map[string]string `json:"metadata,omitempty"`
	// Raw is the whole detail as sent by the API.
	Raw json.RawMessage `json:"-"`
}

ErrorDetail is one entry of an error's details.

type ExchangeRateService

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

ExchangeRateService calls the NodeRings ExchangeRateService API.

func (*ExchangeRateService) ConvertCurrency

ConvertCurrency: Convert an amount from USD to a target currency

It calls POST /v1/exchange-rate/convert.

func (*ExchangeRateService) GetAllExchangeRates

func (s *ExchangeRateService) GetAllExchangeRates(ctx context.Context) (*GetAllExchangeRatesResponse, error)

GetAllExchangeRates: Get all exchange rates at once (returns map of currency codes to rates)

It calls GET /v1/exchange-rate/rates.

func (*ExchangeRateService) GetExchangeRate

func (s *ExchangeRateService) GetExchangeRate(ctx context.Context, currencyCode string) (*GetExchangeRateResponse, error)

GetExchangeRate: Get the current exchange rate for a specific currency (from USD)

It calls GET /v1/exchange-rate/rate/{currencyCode}.

func (*ExchangeRateService) ListSupportedCurrencies

func (s *ExchangeRateService) ListSupportedCurrencies(ctx context.Context) (*ListSupportedCurrenciesResponse, error)

ListSupportedCurrencies: List all supported currency codes

It calls GET /v1/exchange-rate/currencies.

type ExchangeSSOCodeRequest

type ExchangeSSOCodeRequest struct {
	Code string `json:"code,omitempty"`
}

ExchangeSSOCodeRequest is the API's v1ExchangeSSOCodeRequest object.

type ExecuteScheduleBody

type ExecuteScheduleBody struct {
}

ExecuteScheduleBody is the API's GameServerServiceExecuteScheduleBody object.

type ExpireConnectTaxRegistrationBody

type ExpireConnectTaxRegistrationBody struct {
}

ExpireConnectTaxRegistrationBody is the API's ProviderConnectServiceExpireConnectTaxRegistrationBody object.

type ExpireConnectTaxRegistrationResponse

type ExpireConnectTaxRegistrationResponse struct {
	Registration *ConnectTaxRegistration `json:"registration,omitempty"`
}

ExpireConnectTaxRegistrationResponse is the API's v1ExpireConnectTaxRegistrationResponse object.

type ExportCouponCodesParams

type ExportCouponCodesParams struct {
	BatchID string
}

ExportCouponCodesParams are the query parameters of CouponService.ExportCouponCodes.

type ExportCouponCodesResponse

type ExportCouponCodesResponse struct {
	Count int32 `json:"count,omitempty"`
	// CSV with a header row: code,status,times_redeemed,max_redemptions,valid_until,campaign,channel.
	Csv      string `json:"csv,omitempty"`
	Filename string `json:"filename,omitempty"`
}

ExportCouponCodesResponse is the API's v1ExportCouponCodesResponse object.

type ExportDNSZoneResponse

type ExportDNSZoneResponse struct {
	ZoneText string `json:"zoneText,omitempty"`
}

ExportDNSZoneResponse is the API's v1ExportDnsZoneResponse object.

type FirewallAction

type FirewallAction string

FirewallAction is an API enum.

const (
	FirewallActionUnspecified FirewallAction = "FIREWALL_ACTION_UNSPECIFIED"
	FirewallActionAccept      FirewallAction = "FIREWALL_ACTION_ACCEPT"
	FirewallActionDrop        FirewallAction = "FIREWALL_ACTION_DROP"
)

Values of FirewallAction.

type FirewallAddressGroup

type FirewallAddressGroup struct {
	// Read-only: set by the API.
	ID   string `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
	// CIDR prefixes. Can contain mixed IPv4 and IPv6 addresses.
	// Supports "all IPs" via 0.0.0.0/0 or ::/0.
	Prefixes   []FirewallIPPrefix `json:"prefixes,omitempty"`
	Timestamps *Timestamps        `json:"timestamps,omitempty"`
}

FirewallAddressGroup is the API's v1FirewallAddressGroup object.

type FirewallAddressGroupInput

type FirewallAddressGroupInput struct {
	Name string `json:"name,omitempty"`
	// CIDR prefixes. Can contain mixed IPv4 and IPv6 addresses.
	// Supports "all IPs" via 0.0.0.0/0 or ::/0.
	Prefixes []FirewallIPPrefix `json:"prefixes,omitempty"`
}

FirewallAddressGroupInput: FirewallAddressGroupInput is the client-provided payload for create/update. Clients must not provide id/timestamps (those are server-controlled).

type FirewallDirection

type FirewallDirection string

FirewallDirection is an API enum.

const (
	FirewallDirectionUnspecified FirewallDirection = "FIREWALL_DIRECTION_UNSPECIFIED"
	FirewallDirectionIngress     FirewallDirection = "FIREWALL_DIRECTION_INGRESS"
	FirewallDirectionEgress      FirewallDirection = "FIREWALL_DIRECTION_EGRESS"
)

Values of FirewallDirection.

type FirewallIPPrefix

type FirewallIPPrefix struct {
	// IPv4 or IPv6 address. May be "0.0.0.0" (v4 default route) or "::" (v6 default route).
	IP string `json:"ip,omitempty"`
	// Prefix length. IPv4: 0-32. IPv6: 0-128. Enforced by backend based on derived family.
	Prefix int64 `json:"prefix,omitempty"`
}

FirewallIPPrefix: FirewallIPPrefix represents a single CIDR prefix as separate fields. The backend will normalize/store it as a CIDR string (e.g., "10.0.0.0/24", "0.0.0.0/0", "::/0").

type FirewallProtocol

type FirewallProtocol string

FirewallProtocol is an API enum.

const (
	FirewallProtocolUnspecified    FirewallProtocol = "FIREWALL_PROTOCOL_UNSPECIFIED"
	FirewallProtocolTCP            FirewallProtocol = "FIREWALL_PROTOCOL_TCP"
	FirewallProtocolUDP            FirewallProtocol = "FIREWALL_PROTOCOL_UDP"
	FirewallProtocolSCTP           FirewallProtocol = "FIREWALL_PROTOCOL_SCTP"
	FirewallProtocolIPv6           FirewallProtocol = "FIREWALL_PROTOCOL_IPV6"
	FirewallProtocolICMP           FirewallProtocol = "FIREWALL_PROTOCOL_ICMP"
	FirewallProtocolIcmpv6         FirewallProtocol = "FIREWALL_PROTOCOL_ICMPV6"
	FirewallProtocolEsp            FirewallProtocol = "FIREWALL_PROTOCOL_ESP"
	FirewallProtocolAh             FirewallProtocol = "FIREWALL_PROTOCOL_AH"
	FirewallProtocolIpsec          FirewallProtocol = "FIREWALL_PROTOCOL_IPSEC"
	FirewallProtocolGre            FirewallProtocol = "FIREWALL_PROTOCOL_GRE"
	FirewallProtocolIpip           FirewallProtocol = "FIREWALL_PROTOCOL_IPIP"
	FirewallProtocolVxlan          FirewallProtocol = "FIREWALL_PROTOCOL_VXLAN"
	FirewallProtocolL2Tp           FirewallProtocol = "FIREWALL_PROTOCOL_L2TP"
	FirewallProtocolGeneve         FirewallProtocol = "FIREWALL_PROTOCOL_GENEVE"
	FirewallProtocolAny            FirewallProtocol = "FIREWALL_PROTOCOL_ANY"
	FirewallProtocolIgmp           FirewallProtocol = "FIREWALL_PROTOCOL_IGMP"
	FirewallProtocolGgp            FirewallProtocol = "FIREWALL_PROTOCOL_GGP"
	FirewallProtocolIpencap        FirewallProtocol = "FIREWALL_PROTOCOL_IPENCAP"
	FirewallProtocolSt             FirewallProtocol = "FIREWALL_PROTOCOL_ST"
	FirewallProtocolEgp            FirewallProtocol = "FIREWALL_PROTOCOL_EGP"
	FirewallProtocolIgp            FirewallProtocol = "FIREWALL_PROTOCOL_IGP"
	FirewallProtocolPup            FirewallProtocol = "FIREWALL_PROTOCOL_PUP"
	FirewallProtocolHmp            FirewallProtocol = "FIREWALL_PROTOCOL_HMP"
	FirewallProtocolXnsIdp         FirewallProtocol = "FIREWALL_PROTOCOL_XNS_IDP"
	FirewallProtocolRdp            FirewallProtocol = "FIREWALL_PROTOCOL_RDP"
	FirewallProtocolIsoTp4         FirewallProtocol = "FIREWALL_PROTOCOL_ISO_TP4"
	FirewallProtocolDccp           FirewallProtocol = "FIREWALL_PROTOCOL_DCCP"
	FirewallProtocolXtp            FirewallProtocol = "FIREWALL_PROTOCOL_XTP"
	FirewallProtocolDdp            FirewallProtocol = "FIREWALL_PROTOCOL_DDP"
	FirewallProtocolIdprCmtp       FirewallProtocol = "FIREWALL_PROTOCOL_IDPR_CMTP"
	FirewallProtocolIPv6Route      FirewallProtocol = "FIREWALL_PROTOCOL_IPV6_ROUTE"
	FirewallProtocolIPv6Frag       FirewallProtocol = "FIREWALL_PROTOCOL_IPV6_FRAG"
	FirewallProtocolIdrp           FirewallProtocol = "FIREWALL_PROTOCOL_IDRP"
	FirewallProtocolRsvp           FirewallProtocol = "FIREWALL_PROTOCOL_RSVP"
	FirewallProtocolSkip           FirewallProtocol = "FIREWALL_PROTOCOL_SKIP"
	FirewallProtocolIPv6ICMP       FirewallProtocol = "FIREWALL_PROTOCOL_IPV6_ICMP"
	FirewallProtocolIPv6Nonxt      FirewallProtocol = "FIREWALL_PROTOCOL_IPV6_NONXT"
	FirewallProtocolIPv6Opts       FirewallProtocol = "FIREWALL_PROTOCOL_IPV6_OPTS"
	FirewallProtocolVmtp           FirewallProtocol = "FIREWALL_PROTOCOL_VMTP"
	FirewallProtocolEigrp          FirewallProtocol = "FIREWALL_PROTOCOL_EIGRP"
	FirewallProtocolOspf           FirewallProtocol = "FIREWALL_PROTOCOL_OSPF"
	FirewallProtocolAx25           FirewallProtocol = "FIREWALL_PROTOCOL_AX_25"
	FirewallProtocolEtherip        FirewallProtocol = "FIREWALL_PROTOCOL_ETHERIP"
	FirewallProtocolEncap          FirewallProtocol = "FIREWALL_PROTOCOL_ENCAP"
	FirewallProtocolPim            FirewallProtocol = "FIREWALL_PROTOCOL_PIM"
	FirewallProtocolIpcomp         FirewallProtocol = "FIREWALL_PROTOCOL_IPCOMP"
	FirewallProtocolVrrp           FirewallProtocol = "FIREWALL_PROTOCOL_VRRP"
	FirewallProtocolIsis           FirewallProtocol = "FIREWALL_PROTOCOL_ISIS"
	FirewallProtocolFc             FirewallProtocol = "FIREWALL_PROTOCOL_FC"
	FirewallProtocolMobilityHeader FirewallProtocol = "FIREWALL_PROTOCOL_MOBILITY_HEADER"
	FirewallProtocolUdplite        FirewallProtocol = "FIREWALL_PROTOCOL_UDPLITE"
	FirewallProtocolMplsInIP       FirewallProtocol = "FIREWALL_PROTOCOL_MPLS_IN_IP"
	FirewallProtocolHip            FirewallProtocol = "FIREWALL_PROTOCOL_HIP"
	FirewallProtocolShim6          FirewallProtocol = "FIREWALL_PROTOCOL_SHIM6"
	FirewallProtocolWesp           FirewallProtocol = "FIREWALL_PROTOCOL_WESP"
	FirewallProtocolRohc           FirewallProtocol = "FIREWALL_PROTOCOL_ROHC"
)

Values of FirewallProtocol.

type FirewallRuleAddressGroups

type FirewallRuleAddressGroups struct {
	AddressGroupIDs []string `json:"addressGroupIds,omitempty"`
}

FirewallRuleAddressGroups: FirewallRuleAddressGroups contains address group UUIDs. Can be one or more.

type FirewallRuleDestination

type FirewallRuleDestination struct {
	// FirewallRuleAddressGroups contains address group UUIDs. Can be one or more.
	AddressGroupIDs *FirewallRuleAddressGroups `json:"addressGroupIds,omitempty"`
	// FirewallRuleIPs contains IP addresses in CIDR format. Can be one or more.
	IPs *FirewallRuleIPs `json:"ips,omitempty"`
	// FirewallRuleVMTags contains VM tags. Can be one or more.
	VMTags *FirewallRuleVMTags `json:"vmTags,omitempty"`
}

FirewallRuleDestination: FirewallRuleDestination defines the destination specification for a firewall rule. All fields are optional, but at least one must be set. Multiple fields can be combined.

type FirewallRuleIPs

type FirewallRuleIPs struct {
	IPs []string `json:"ips,omitempty"`
}

FirewallRuleIPs: FirewallRuleIPs contains IP addresses in CIDR format. Can be one or more.

type FirewallRuleInput

type FirewallRuleInput struct {
	Action FirewallAction `json:"action,omitempty"`
	// FirewallRuleDestination defines the destination specification for a firewall rule.
	// All fields are optional, but at least one must be set. Multiple fields can be combined.
	Destination      *FirewallRuleDestination `json:"destination,omitempty"`
	DestinationPorts string                   `json:"destinationPorts,omitempty"`
	Direction        FirewallDirection        `json:"direction,omitempty"`
	Protocol         FirewallProtocol         `json:"protocol,omitempty"`
	// FirewallRuleSource defines the source specification for a firewall rule.
	// All fields are optional, but at least one must be set. Multiple fields can be combined.
	Source      *FirewallRuleSource `json:"source,omitempty"`
	SourcePorts string              `json:"sourcePorts,omitempty"`
}

FirewallRuleInput: FirewallRuleInput is the client-provided rule payload for create/update. Clients must not provide id/ruleset_id/timestamps (those are server-controlled).

type FirewallRulePosition

type FirewallRulePosition string

FirewallRulePosition is an API enum.

const (
	FirewallRulePositionUnspecified FirewallRulePosition = "FIREWALL_RULE_POSITION_UNSPECIFIED"
	FirewallRulePositionBefore      FirewallRulePosition = "FIREWALL_RULE_POSITION_BEFORE"
	FirewallRulePositionAfter       FirewallRulePosition = "FIREWALL_RULE_POSITION_AFTER"
)

Values of FirewallRulePosition.

type FirewallRuleResource

type FirewallRuleResource struct {
	// Read-only: set by the API.
	ID string `json:"id,omitempty"`
	// Position of the rule (0, 1, 2, 3...). Sequential position indicating order. Auto-assigned by the system.
	//
	// Read-only: set by the API.
	Position int64 `json:"position,omitempty"`
	// FirewallRuleInput is the client-provided rule payload for create/update.
	// Clients must not provide id/ruleset_id/timestamps (those are server-controlled).
	Rule *FirewallRuleInput `json:"rule,omitempty"`
	// Read-only: set by the API.
	RulesetID  string      `json:"rulesetId,omitempty"`
	Timestamps *Timestamps `json:"timestamps,omitempty"`
}

FirewallRuleResource: FirewallRuleResource is a first-class rule resource that belongs to a FirewallRuleSet.

type FirewallRuleSet

type FirewallRuleSet struct {
	// Number of virtual machines currently attached to this ruleset.
	//
	// Read-only: set by the API.
	AttachedVMCount int32 `json:"attachedVmCount,omitempty"`
	// Hostnames of virtual machines attached to this ruleset (sorted).
	//
	// Read-only: set by the API.
	AttachedVMHostnames []string `json:"attachedVmHostnames,omitempty"`
	// Read-only: set by the API.
	ID   string `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
	// Number of rules in this ruleset (ingress and egress combined).
	//
	// Read-only: set by the API.
	RuleCount  int32       `json:"ruleCount,omitempty"`
	Timestamps *Timestamps `json:"timestamps,omitempty"`
}

FirewallRuleSet is the API's v1FirewallRuleSet object.

type FirewallRuleSetAttachmentFilter

type FirewallRuleSetAttachmentFilter string

FirewallRuleSetAttachmentFilter: FirewallRuleSetAttachmentFilter filters rulesets by whether any VM is attached.

  • FIREWALL_RULESET_ATTACHMENT_FILTER_UNSPECIFIED: All rulesets
  • FIREWALL_RULESET_ATTACHMENT_FILTER_ATTACHED: Rulesets with at least one VM attached
  • FIREWALL_RULESET_ATTACHMENT_FILTER_UNATTACHED: Rulesets with no VMs attached
const (
	FirewallRuleSetAttachmentFilterUnspecified FirewallRuleSetAttachmentFilter = "FIREWALL_RULESET_ATTACHMENT_FILTER_UNSPECIFIED"
	FirewallRuleSetAttachmentFilterAttached    FirewallRuleSetAttachmentFilter = "FIREWALL_RULESET_ATTACHMENT_FILTER_ATTACHED"
	FirewallRuleSetAttachmentFilterUnattached  FirewallRuleSetAttachmentFilter = "FIREWALL_RULESET_ATTACHMENT_FILTER_UNATTACHED"
)

Values of FirewallRuleSetAttachmentFilter.

type FirewallRuleSetInput

type FirewallRuleSetInput struct {
	Name string `json:"name,omitempty"`
}

FirewallRuleSetInput is the API's v1FirewallRuleSetInput object.

type FirewallRuleSource

type FirewallRuleSource struct {
	// FirewallRuleAddressGroups contains address group UUIDs. Can be one or more.
	AddressGroupIDs *FirewallRuleAddressGroups `json:"addressGroupIds,omitempty"`
	// FirewallRuleIPs contains IP addresses in CIDR format. Can be one or more.
	IPs *FirewallRuleIPs `json:"ips,omitempty"`
	// FirewallRuleVMTags contains VM tags. Can be one or more.
	VMTags *FirewallRuleVMTags `json:"vmTags,omitempty"`
}

FirewallRuleSource: FirewallRuleSource defines the source specification for a firewall rule. All fields are optional, but at least one must be set. Multiple fields can be combined.

type FirewallRuleVMTags

type FirewallRuleVMTags struct {
	Tags []string `json:"tags,omitempty"`
}

FirewallRuleVMTags: FirewallRuleVMTags contains VM tags. Can be one or more.

type FirewallService

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

FirewallService calls the NodeRings FirewallService API.

func (*FirewallService) CreateFirewallAddressGroup

CreateFirewallAddressGroup calls POST /v1/firewall/address-groups.

func (*FirewallService) CreateFirewallRule

func (s *FirewallService) CreateFirewallRule(ctx context.Context, rulesetID string, body *CreateFirewallRuleBody) (*CreateFirewallRuleResponse, error)

CreateFirewallRule calls POST /v1/firewall/rulesets/{rulesetId}/rules.

func (*FirewallService) CreateFirewallRuleSet

CreateFirewallRuleSet calls POST /v1/firewall/rulesets.

func (*FirewallService) DeleteFirewallAddressGroup

func (s *FirewallService) DeleteFirewallAddressGroup(ctx context.Context, id string) (*SuccessResponse, error)

DeleteFirewallAddressGroup calls DELETE /v1/firewall/address-groups/{id}.

func (*FirewallService) DeleteFirewallRule

func (s *FirewallService) DeleteFirewallRule(ctx context.Context, id string) (*SuccessResponse, error)

DeleteFirewallRule calls DELETE /v1/firewall/rules/{id}.

func (*FirewallService) DeleteFirewallRuleSet

func (s *FirewallService) DeleteFirewallRuleSet(ctx context.Context, id string, params *DeleteFirewallRuleSetParams) (*SuccessResponse, error)

DeleteFirewallRuleSet calls DELETE /v1/firewall/rulesets/{id}.

func (*FirewallService) GetFirewallAddressGroup

func (s *FirewallService) GetFirewallAddressGroup(ctx context.Context, id string) (*FirewallAddressGroup, error)

GetFirewallAddressGroup calls GET /v1/firewall/address-groups/{id}.

func (*FirewallService) GetFirewallRule

func (s *FirewallService) GetFirewallRule(ctx context.Context, id string, params *GetFirewallRuleParams) (*FirewallRuleResource, error)

GetFirewallRule calls GET /v1/firewall/rules/{id}.

func (*FirewallService) GetFirewallRuleSet

func (s *FirewallService) GetFirewallRuleSet(ctx context.Context, id string) (*FirewallRuleSet, error)

GetFirewallRuleSet calls GET /v1/firewall/rulesets/{id}.

func (*FirewallService) ListFirewallAddressGroups

ListFirewallAddressGroups calls GET /v1/firewall/address-groups.

func (*FirewallService) ListFirewallAddressGroupsAll

func (s *FirewallService) ListFirewallAddressGroupsAll(ctx context.Context, params *ListFirewallAddressGroupsParams) iter.Seq2[FirewallAddressGroup, error]

ListFirewallAddressGroupsAll returns an iterator over every result of ListFirewallAddressGroups, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*FirewallService) ListFirewallRuleSets

ListFirewallRuleSets calls GET /v1/firewall/rulesets.

func (*FirewallService) ListFirewallRuleSetsAll

func (s *FirewallService) ListFirewallRuleSetsAll(ctx context.Context, params *ListFirewallRuleSetsParams) iter.Seq2[FirewallRuleSet, error]

ListFirewallRuleSetsAll returns an iterator over every result of ListFirewallRuleSets, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*FirewallService) ListFirewallRules

func (s *FirewallService) ListFirewallRules(ctx context.Context, rulesetID string, params *ListFirewallRulesParams) (*ListFirewallRulesResponse, error)

ListFirewallRules calls GET /v1/firewall/rulesets/{rulesetId}/rules.

func (*FirewallService) ListFirewallRulesAll

func (s *FirewallService) ListFirewallRulesAll(ctx context.Context, rulesetID string, params *ListFirewallRulesParams) iter.Seq2[FirewallRuleResource, error]

ListFirewallRulesAll returns an iterator over every result of ListFirewallRules, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*FirewallService) MoveFirewallRule

func (s *FirewallService) MoveFirewallRule(ctx context.Context, id string, body *MoveFirewallRuleBody) (*FirewallRuleResource, error)

MoveFirewallRule calls POST /v1/firewall/rules/{id}/move.

func (*FirewallService) UpdateFirewallAddressGroup

func (s *FirewallService) UpdateFirewallAddressGroup(ctx context.Context, id string, body *UpdateFirewallAddressGroupBody) (*FirewallAddressGroup, error)

UpdateFirewallAddressGroup calls PATCH /v1/firewall/address-groups/{id}.

func (*FirewallService) UpdateFirewallRule

func (s *FirewallService) UpdateFirewallRule(ctx context.Context, id string, body *UpdateFirewallRuleBody) (*FirewallRuleResource, error)

UpdateFirewallRule calls PATCH /v1/firewall/rules/{id}.

func (*FirewallService) UpdateFirewallRuleSet

func (s *FirewallService) UpdateFirewallRuleSet(ctx context.Context, id string, body *UpdateFirewallRuleSetBody) (*FirewallRuleSet, error)

UpdateFirewallRuleSet calls PATCH /v1/firewall/rulesets/{id}.

type ForgotPasswordRequest

type ForgotPasswordRequest struct {
	Email string `json:"email,omitempty"`
	// Cloudflare Turnstile token from the client widget (optional unless auth.turnstile is enabled).
	TurnstileToken string `json:"turnstileToken,omitempty"`
}

ForgotPasswordRequest is the API's v1ForgotPasswordRequest object.

type FunctionCall

type FunctionCall struct {
	Arguments string `json:"arguments,omitempty"`
	ID        string `json:"id,omitempty"`
	Name      string `json:"name,omitempty"`
}

FunctionCall is the API's v1FunctionCall object.

type FunctionResult

type FunctionResult struct {
	Content        string `json:"content,omitempty"`
	FunctionCallID string `json:"functionCallId,omitempty"`
	IsError        bool   `json:"isError,omitempty"`
}

FunctionResult is the API's v1FunctionResult object.

type GameServer

type GameServer struct {
	AllocationAlias string `json:"allocationAlias,omitempty"`
	AllocationIP    string `json:"allocationIp,omitempty"`
	// allocation_limit is how many extra ports this plan allows besides the one created with the server. From 1 to 99.
	AllocationLimit int32 `json:"allocationLimit,omitempty"`
	AllocationPort  int32 `json:"allocationPort,omitempty"`
	// backup_limit is how many backups this plan allows. From 1 to 99.
	BackupLimit int32 `json:"backupLimit,omitempty"`
	// database_limit is how many databases this plan allows. From 1 to 99.
	DatabaseLimit   int32           `json:"databaseLimit,omitempty"`
	GameName        string          `json:"gameName,omitempty"`
	Icon            string          `json:"icon,omitempty"`
	ID              string          `json:"id,omitempty"`
	LastError       string          `json:"lastError,omitempty"`
	Name            string          `json:"name,omitempty"`
	NodeID          string          `json:"nodeId,omitempty"`
	OrganizationID  string          `json:"organizationId,omitempty"`
	PanelIdentifier string          `json:"panelIdentifier,omitempty"`
	Phase           GameServerPhase `json:"phase,omitempty"`
	// BILLING_TYPE_SUBSCRIPTION is fixed price. The delete dialog uses this for the no-refund warning.
	PlanBillingType string      `json:"planBillingType,omitempty"`
	PlanCode        string      `json:"planCode,omitempty"`
	PlanID          string      `json:"planId,omitempty"`
	PowerState      string      `json:"powerState,omitempty"`
	ProviderName    string      `json:"providerName,omitempty"`
	RegionCity      string      `json:"regionCity,omitempty"`
	RegionCountry   string      `json:"regionCountry,omitempty"`
	RegionID        string      `json:"regionId,omitempty"`
	TemplateID      string      `json:"templateId,omitempty"`
	Timestamps      *Timestamps `json:"timestamps,omitempty"`
	Variant         string      `json:"variant,omitempty"`
	VersionValue    string      `json:"versionValue,omitempty"`
}

GameServer is the API's v1GameServer object.

type GameServerAllocation

type GameServerAllocation struct {
	Alias     string `json:"alias,omitempty"`
	ID        int32  `json:"id,omitempty"`
	IP        string `json:"ip,omitempty"`
	IsDefault bool   `json:"isDefault,omitempty"`
	Notes     string `json:"notes,omitempty"`
	Port      int32  `json:"port,omitempty"`
}

GameServerAllocation is the API's v1GameServerAllocation object.

type GameServerBackup

type GameServerBackup struct {
	Bytes        int64  `json:"bytes,omitempty,string"`
	CompletedAt  string `json:"completedAt,omitempty"`
	IsLocked     bool   `json:"isLocked,omitempty"`
	IsSuccessful bool   `json:"isSuccessful,omitempty"`
	Name         string `json:"name,omitempty"`
	UUID         string `json:"uuid,omitempty"`
}

GameServerBackup is the API's v1GameServerBackup object.

type GameServerDatabase

type GameServerDatabase struct {
	ConnectionsFrom string `json:"connectionsFrom,omitempty"`
	Host            string `json:"host,omitempty"`
	ID              string `json:"id,omitempty"`
	Jdbc            string `json:"jdbc,omitempty"`
	Name            string `json:"name,omitempty"`
	Password        string `json:"password,omitempty"`
	Port            int32  `json:"port,omitempty"`
	Username        string `json:"username,omitempty"`
}

GameServerDatabase is the API's v1GameServerDatabase object.

type GameServerFile

type GameServerFile struct {
	IsFile bool   `json:"isFile,omitempty"`
	Mime   string `json:"mime,omitempty"`
	Name   string `json:"name,omitempty"`
	Size   int64  `json:"size,omitempty,string"`
}

GameServerFile is the API's v1GameServerFile object.

type GameServerMatchStatus

type GameServerMatchStatus string

GameServerMatchStatus is an API enum.

const (
	GameServerMatchStatusUnspecified GameServerMatchStatus = "GAME_SERVER_MATCH_STATUS_UNSPECIFIED"
	GameServerMatchStatusMatched     GameServerMatchStatus = "GAME_SERVER_MATCH_STATUS_MATCHED"
	GameServerMatchStatusUnmapped    GameServerMatchStatus = "GAME_SERVER_MATCH_STATUS_UNMAPPED"
	GameServerMatchStatusAmbiguous   GameServerMatchStatus = "GAME_SERVER_MATCH_STATUS_AMBIGUOUS"
)

Values of GameServerMatchStatus.

type GameServerPhase

type GameServerPhase string

GameServerPhase is an API enum.

const (
	GameServerPhaseUnspecified GameServerPhase = "GAME_SERVER_PHASE_UNSPECIFIED"
	GameServerPhasePending     GameServerPhase = "GAME_SERVER_PHASE_PENDING"
	GameServerPhaseReady       GameServerPhase = "GAME_SERVER_PHASE_READY"
	GameServerPhaseError       GameServerPhase = "GAME_SERVER_PHASE_ERROR"
	GameServerPhaseFailed      GameServerPhase = "GAME_SERVER_PHASE_FAILED"
)

Values of GameServerPhase.

type GameServerResources

type GameServerResources struct {
	CPUAbsolute    float64 `json:"cpuAbsolute,omitempty"`
	DiskBytes      int64   `json:"diskBytes,omitempty,string"`
	MemoryBytes    int64   `json:"memoryBytes,omitempty,string"`
	NetworkRxBytes int64   `json:"networkRxBytes,omitempty,string"`
	NetworkTxBytes int64   `json:"networkTxBytes,omitempty,string"`
	State          string  `json:"state,omitempty"`
	UptimeMillis   int64   `json:"uptimeMillis,omitempty,string"`
}

GameServerResources is the API's v1GameServerResources object.

type GameServerRestoreBackupBody

type GameServerRestoreBackupBody struct {
	// Restore only. When true, the panel deletes every file before extracting the backup.
	Truncate *bool `json:"truncate,omitempty"`
}

GameServerRestoreBackupBody is the API's v1GameServerServiceRestoreBackupBody object.

type GameServerSchedule

type GameServerSchedule struct {
	DayOfMonth     string                   `json:"dayOfMonth,omitempty"`
	DayOfWeek      string                   `json:"dayOfWeek,omitempty"`
	Hour           string                   `json:"hour,omitempty"`
	ID             string                   `json:"id,omitempty"`
	IsActive       bool                     `json:"isActive,omitempty"`
	IsProcessing   bool                     `json:"isProcessing,omitempty"`
	LastRunAt      string                   `json:"lastRunAt,omitempty"`
	Minute         string                   `json:"minute,omitempty"`
	Month          string                   `json:"month,omitempty"`
	Name           string                   `json:"name,omitempty"`
	NextRunAt      string                   `json:"nextRunAt,omitempty"`
	OnlyWhenOnline bool                     `json:"onlyWhenOnline,omitempty"`
	Tasks          []GameServerScheduleTask `json:"tasks,omitempty"`
}

GameServerSchedule is the API's v1GameServerSchedule object.

type GameServerScheduleTask

type GameServerScheduleTask struct {
	Action            string `json:"action,omitempty"`
	ContinueOnFailure bool   `json:"continueOnFailure,omitempty"`
	ID                string `json:"id,omitempty"`
	Payload           string `json:"payload,omitempty"`
	SequenceID        int32  `json:"sequenceId,omitempty"`
	TimeOffset        int32  `json:"timeOffset,omitempty"`
}

GameServerScheduleTask is the API's v1GameServerScheduleTask object.

type GameServerService

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

GameServerService calls the NodeRings GameServerService API.

func (*GameServerService) ArchiveFiles

ArchiveFiles calls POST /v1/game-servers/{id}/files:archive.

func (*GameServerService) ChangeGameServerGame

func (s *GameServerService) ChangeGameServerGame(ctx context.Context, id string, body *ChangeGameServerGameBody) (*GameServer, error)

ChangeGameServerGame calls POST /v1/game-servers/{id}:changeGame.

func (*GameServerService) CopyFile

func (s *GameServerService) CopyFile(ctx context.Context, id string, body *CopyFileBody) (*SuccessResponse, error)

CopyFile calls POST /v1/game-servers/{id}/files:copy.

func (*GameServerService) CreateAllocation

func (s *GameServerService) CreateAllocation(ctx context.Context, id string, body *CreateAllocationBody) (*GameServerAllocation, error)

CreateAllocation calls POST /v1/game-servers/{id}/allocations.

func (*GameServerService) CreateBackup

func (s *GameServerService) CreateBackup(ctx context.Context, id string, body *CreateBackupBody) (*GameServerBackup, error)

CreateBackup calls POST /v1/game-servers/{id}/backups.

func (*GameServerService) CreateDatabase

func (s *GameServerService) CreateDatabase(ctx context.Context, id string, body *CreateDatabaseBody) (*GameServerDatabase, error)

CreateDatabase calls POST /v1/game-servers/{id}/databases.

func (*GameServerService) CreateFolder

func (s *GameServerService) CreateFolder(ctx context.Context, id string, body *CreateFolderBody) (*SuccessResponse, error)

CreateFolder calls POST /v1/game-servers/{id}/files:folder.

func (*GameServerService) CreateGameServer

func (s *GameServerService) CreateGameServer(ctx context.Context, body *CreateGameServerRequest) (*GameServer, error)

CreateGameServer calls POST /v1/game-servers. If body.IdempotencyKey is empty, a new UUID is set on body before the request, so a retry of the same body cannot create a second resource.

func (*GameServerService) CreateSchedule

func (s *GameServerService) CreateSchedule(ctx context.Context, id string, body *CreateScheduleBody) (*GameServerSchedule, error)

CreateSchedule calls POST /v1/game-servers/{id}/schedules.

func (*GameServerService) CreateScheduleTask

func (s *GameServerService) CreateScheduleTask(ctx context.Context, id string, scheduleID string, body *CreateScheduleTaskBody) (*SuccessResponse, error)

CreateScheduleTask calls POST /v1/game-servers/{id}/schedules/{scheduleId}/tasks.

func (*GameServerService) DeleteAllocation

func (s *GameServerService) DeleteAllocation(ctx context.Context, id string, allocationID string) (*SuccessResponse, error)

DeleteAllocation calls DELETE /v1/game-servers/{id}/allocations/{allocationId}.

func (*GameServerService) DeleteBackup

func (s *GameServerService) DeleteBackup(ctx context.Context, id string, backupUUID string, params *DeleteBackupParams) (*SuccessResponse, error)

DeleteBackup calls DELETE /v1/game-servers/{id}/backups/{backupUuid}.

func (*GameServerService) DeleteDatabase

func (s *GameServerService) DeleteDatabase(ctx context.Context, id string, databaseID string) (*SuccessResponse, error)

DeleteDatabase calls DELETE /v1/game-servers/{id}/databases/{databaseId}.

func (*GameServerService) DeleteFiles

func (s *GameServerService) DeleteFiles(ctx context.Context, id string, body *DeleteFilesBody) (*SuccessResponse, error)

DeleteFiles calls POST /v1/game-servers/{id}/files:delete.

func (*GameServerService) DeleteGameServer

func (s *GameServerService) DeleteGameServer(ctx context.Context, id string) (*SuccessResponse, error)

DeleteGameServer calls DELETE /v1/game-servers/{id}.

func (*GameServerService) DeleteSchedule

func (s *GameServerService) DeleteSchedule(ctx context.Context, id string, scheduleID string) (*SuccessResponse, error)

DeleteSchedule calls DELETE /v1/game-servers/{id}/schedules/{scheduleId}.

func (*GameServerService) DeleteScheduleTask

func (s *GameServerService) DeleteScheduleTask(ctx context.Context, id string, scheduleID string, taskID string) (*SuccessResponse, error)

DeleteScheduleTask calls DELETE /v1/game-servers/{id}/schedules/{scheduleId}/tasks/{taskId}.

func (*GameServerService) DownloadFile

DownloadFile calls GET /v1/game-servers/{id}/files/download.

func (*GameServerService) ExecuteSchedule

func (s *GameServerService) ExecuteSchedule(ctx context.Context, id string, scheduleID string, body *ExecuteScheduleBody) (*SuccessResponse, error)

ExecuteSchedule calls POST /v1/game-servers/{id}/schedules/{scheduleId}:execute.

func (*GameServerService) GetGameServer

func (s *GameServerService) GetGameServer(ctx context.Context, id string) (*GameServer, error)

GetGameServer calls GET /v1/game-servers/{id}.

func (*GameServerService) GetGameServerResources

func (s *GameServerService) GetGameServerResources(ctx context.Context, id string) (*GameServerResources, error)

GetGameServerResources calls GET /v1/game-servers/{id}/resources.

func (*GameServerService) GetStartup

func (s *GameServerService) GetStartup(ctx context.Context, id string) (*GetStartupResponse, error)

GetStartup calls GET /v1/game-servers/{id}/startup.

func (*GameServerService) ListAllocations

ListAllocations calls GET /v1/game-servers/{id}/allocations.

func (*GameServerService) ListBackups

ListBackups calls GET /v1/game-servers/{id}/backups.

func (*GameServerService) ListDatabases

func (s *GameServerService) ListDatabases(ctx context.Context, id string) (*ListDatabasesResponse, error)

ListDatabases calls GET /v1/game-servers/{id}/databases.

func (*GameServerService) ListFiles

func (s *GameServerService) ListFiles(ctx context.Context, id string, params *ListFilesParams) (*ListFilesResponse, error)

ListFiles calls GET /v1/game-servers/{id}/files.

func (*GameServerService) ListGameServers

ListGameServers calls GET /v1/game-servers.

func (*GameServerService) ListOrderGames

ListOrderGames calls GET /v1/game-servers:order-games.

func (*GameServerService) ListSchedules

func (s *GameServerService) ListSchedules(ctx context.Context, id string) (*ListSchedulesResponse, error)

ListSchedules calls GET /v1/game-servers/{id}/schedules.

func (*GameServerService) LockBackup

func (s *GameServerService) LockBackup(ctx context.Context, id string, backupUUID string, body *LockBackupBody) (*SuccessResponse, error)

LockBackup calls POST /v1/game-servers/{id}/backups/{backupUuid}:lock.

func (*GameServerService) OpenConsole

OpenConsole calls POST /v1/game-servers/{id}:console.

func (*GameServerService) PowerGameServer

func (s *GameServerService) PowerGameServer(ctx context.Context, id string, body *PowerGameServerBody) (*GameServer, error)

PowerGameServer calls POST /v1/game-servers/{id}:power.

func (*GameServerService) ReadFile

func (s *GameServerService) ReadFile(ctx context.Context, id string, params *ReadFileParams) (*ReadFileResponse, error)

ReadFile calls GET /v1/game-servers/{id}/files/content.

func (*GameServerService) ReinstallGameServer

func (s *GameServerService) ReinstallGameServer(ctx context.Context, id string, body *ReinstallGameServerBody) (*GameServer, error)

ReinstallGameServer calls POST /v1/game-servers/{id}:reinstall.

func (*GameServerService) RenameFile

func (s *GameServerService) RenameFile(ctx context.Context, id string, body *RenameFileBody) (*SuccessResponse, error)

RenameFile calls POST /v1/game-servers/{id}/files:rename.

func (*GameServerService) RenameGameServer

func (s *GameServerService) RenameGameServer(ctx context.Context, id string, body *RenameGameServerBody) (*GameServer, error)

RenameGameServer calls POST /v1/game-servers/{id}:rename.

func (*GameServerService) RestoreBackup

func (s *GameServerService) RestoreBackup(ctx context.Context, id string, backupUUID string, body *GameServerRestoreBackupBody) (*SuccessResponse, error)

RestoreBackup calls POST /v1/game-servers/{id}/backups/{backupUuid}:restore.

func (*GameServerService) RotateDatabasePassword

func (s *GameServerService) RotateDatabasePassword(ctx context.Context, id string, databaseID string, body *RotateDatabasePasswordBody) (*GameServerDatabase, error)

RotateDatabasePassword calls POST /v1/game-servers/{id}/databases/{databaseId}:rotate.

func (*GameServerService) SetPrimaryAllocation

func (s *GameServerService) SetPrimaryAllocation(ctx context.Context, id string, allocationID string, body *SetPrimaryAllocationBody) (*SuccessResponse, error)

SetPrimaryAllocation calls POST /v1/game-servers/{id}/allocations/{allocationId}:primary.

func (*GameServerService) UpdateAllocation

func (s *GameServerService) UpdateAllocation(ctx context.Context, id string, allocationID string, body *UpdateAllocationBody) (*GameServerAllocation, error)

UpdateAllocation calls POST /v1/game-servers/{id}/allocations/{allocationId}.

func (*GameServerService) UpdateDockerImage

func (s *GameServerService) UpdateDockerImage(ctx context.Context, id string, body *UpdateDockerImageBody) (*SuccessResponse, error)

UpdateDockerImage calls PUT /v1/game-servers/{id}/docker-image.

func (*GameServerService) UpdateSchedule

func (s *GameServerService) UpdateSchedule(ctx context.Context, id string, scheduleID string, body *UpdateScheduleBody) (*GameServerSchedule, error)

UpdateSchedule calls POST /v1/game-servers/{id}/schedules/{scheduleId}.

func (*GameServerService) UpdateScheduleTask

func (s *GameServerService) UpdateScheduleTask(ctx context.Context, id string, scheduleID string, taskID string, body *UpdateScheduleTaskBody) (*SuccessResponse, error)

UpdateScheduleTask calls POST /v1/game-servers/{id}/schedules/{scheduleId}/tasks/{taskId}.

func (*GameServerService) UpdateStartupVariable

func (s *GameServerService) UpdateStartupVariable(ctx context.Context, id string, body *UpdateStartupVariableBody) (*SuccessResponse, error)

UpdateStartupVariable calls PUT /v1/game-servers/{id}/startup.

func (*GameServerService) UploadFile

func (s *GameServerService) UploadFile(ctx context.Context, id string, body *UploadFileBody) (*SuccessResponse, error)

UploadFile calls POST /v1/game-servers/{id}/files:upload.

func (*GameServerService) WriteFile

func (s *GameServerService) WriteFile(ctx context.Context, id string, body *WriteFileBody) (*SuccessResponse, error)

WriteFile calls PUT /v1/game-servers/{id}/files.

type GameServerTemplate

type GameServerTemplate struct {
	CatalogKey  string                `json:"catalogKey,omitempty"`
	Confirmed   bool                  `json:"confirmed,omitempty"`
	DockerImage string                `json:"dockerImage,omitempty"`
	EggID       int32                 `json:"eggId,omitempty"`
	Hidden      bool                  `json:"hidden,omitempty"`
	Icon        string                `json:"icon,omitempty"`
	ID          string                `json:"id,omitempty"`
	MatchStatus GameServerMatchStatus `json:"matchStatus,omitempty"`
	Name        string                `json:"name,omitempty"`
	NestID      int32                 `json:"nestId,omitempty"`
	// Optional so a false value is still sent. Missing means the nest is offered.
	NestOrderingEnabled bool `json:"nestOrderingEnabled,omitempty"`
	// Optional so a false value is still sent. Missing means the egg is offered.
	OrderingEnabled bool   `json:"orderingEnabled,omitempty"`
	PlatformID      string `json:"platformId,omitempty"`
	Startup         string `json:"startup,omitempty"`
	SuggestedEggID  int32  `json:"suggestedEggId,omitempty"`
	SuggestedNestID int32  `json:"suggestedNestId,omitempty"`
	VersionVariable string `json:"versionVariable,omitempty"`
}

GameServerTemplate is the API's v1GameServerTemplate object.

type GameServerTemplateService

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

GameServerTemplateService calls the NodeRings GameServerTemplateService API.

func (*GameServerTemplateService) DuplicateGameServerTemplate

func (s *GameServerTemplateService) DuplicateGameServerTemplate(ctx context.Context, id string, body *DuplicateGameServerTemplateBody) (*GameServerTemplate, error)

DuplicateGameServerTemplate calls POST /v1/game-server-templates/{id}:duplicate.

func (*GameServerTemplateService) ImportGameServerTemplate

ImportGameServerTemplate calls POST /v1/game-server-templates:import.

func (*GameServerTemplateService) ListGameServerTemplates

ListGameServerTemplates calls GET /v1/game-server-templates.

func (*GameServerTemplateService) SetGameNestOrdering

SetGameNestOrdering calls POST /v1/game-server-templates:nest-ordering.

func (*GameServerTemplateService) UpdateGameServerTemplate

UpdateGameServerTemplate calls PATCH /v1/game-server-templates/{id}.

type GenerateCouponCodesBody

type GenerateCouponCodesBody struct {
	Campaign string `json:"campaign,omitempty"`
	Channel  string `json:"channel,omitempty"`
	Count    int32  `json:"count,omitempty"`
	// Uses per code. Defaults to 1 (single-use).
	MaxRedemptions int32 `json:"maxRedemptions,omitempty"`
	// Optional letters or digits put before each code as PREFIX-XXXXXXXXXX.
	Prefix     string     `json:"prefix,omitempty"`
	ValidUntil *time.Time `json:"validUntil,omitempty"`
}

GenerateCouponCodesBody is the API's CouponServiceGenerateCouponCodesBody object.

type GenerateCouponCodesResponse

type GenerateCouponCodesResponse struct {
	Batch   *CouponCodeBatch `json:"batch,omitempty"`
	BatchID string           `json:"batchId,omitempty"`
	// Requested count. Large batches are generated in the background; poll
	// GetCouponCodeBatch until batch.status is COMPLETED or FAILED.
	Count int32 `json:"count,omitempty"`
}

GenerateCouponCodesResponse is the API's v1GenerateCouponCodesResponse object.

type GenerateInstallCommandBody

type GenerateInstallCommandBody struct {
}

GenerateInstallCommandBody is the API's AgentServiceGenerateInstallCommandBody object.

type GenerateInstallCommandResponse

type GenerateInstallCommandResponse struct {
	Command string `json:"command,omitempty"`
	Token   string `json:"token,omitempty"`
}

GenerateInstallCommandResponse is the API's v1GenerateInstallCommandResponse object.

type GeneratePeeringConfigBody

type GeneratePeeringConfigBody struct {
}

GeneratePeeringConfigBody is the API's AgentServiceGeneratePeeringConfigBody object.

type GeneratePeeringConfigResponse

type GeneratePeeringConfigResponse struct {
	Config string `json:"config,omitempty"`
}

GeneratePeeringConfigResponse is the API's v1GeneratePeeringConfigResponse object.

type GenerateServiceAccountTokenResponse

type GenerateServiceAccountTokenResponse struct {
	CreatedAt *time.Time `json:"createdAt,omitempty"`
	ExpiresAt *time.Time `json:"expiresAt,omitempty"`
	Token     string     `json:"token,omitempty"`
	TokenID   string     `json:"tokenId,omitempty"`
	Warning   string     `json:"warning,omitempty"`
}

GenerateServiceAccountTokenResponse is the API's v1GenerateServiceAccountTokenResponse object.

type GenerateTokenBody

type GenerateTokenBody struct {
	ExpiresInDays int32  `json:"expiresInDays,omitempty"`
	Name          string `json:"name,omitempty"`
}

GenerateTokenBody is the API's ServiceAccountServiceGenerateTokenBody object.

type GetActiveSessionsResponse

type GetActiveSessionsResponse struct {
	Sessions []SessionInfo `json:"sessions,omitempty"`
}

GetActiveSessionsResponse is the API's v1GetActiveSessionsResponse object.

type GetAddonResponse

type GetAddonResponse struct {
	Addon       *Addon       `json:"addon,omitempty"`
	AddonPrices []AddonPrice `json:"addonPrices,omitempty"`
}

GetAddonResponse is the API's v1GetAddonResponse object.

type GetAgentResponse

type GetAgentResponse struct {
	Agent *Agent `json:"agent,omitempty"`
}

GetAgentResponse is the API's v1GetAgentResponse object.

type GetAllExchangeRatesResponse

type GetAllExchangeRatesResponse struct {
	LastUpdated int64             `json:"lastUpdated,omitempty,string"`
	Rates       map[string]string `json:"rates,omitempty"`
}

GetAllExchangeRatesResponse is the API's v1GetAllExchangeRatesResponse object.

type GetBackupResponse

type GetBackupResponse struct {
	Backup *Backup `json:"backup,omitempty"`
}

GetBackupResponse is the API's v1GetBackupResponse object.

type GetClientDashboardBillingResponse

type GetClientDashboardBillingResponse struct {
	Currency string `json:"currency,omitempty"`
	// Daily categorized spend, oldest first (fixed window ending today, UTC).
	SpendDays []ClientDashboardSpendBucket `json:"spendDays,omitempty"`
	// Hourly categorized spend for the last 24 hours, oldest first.
	SpendHours   []ClientDashboardSpendBucket `json:"spendHours,omitempty"`
	UsageRollups []ClientDashboardUsageRollup `json:"usageRollups,omitempty"`
}

GetClientDashboardBillingResponse is the API's v1GetClientDashboardBillingResponse object.

type GetClientDashboardSummaryResponse

type GetClientDashboardSummaryResponse struct {
	SpendingWindows []ClientDashboardSpendingWindow        `json:"spendingWindows,omitempty"`
	VirtualMachines *ClientDashboardVirtualMachinesSummary `json:"virtualMachines,omitempty"`
}

GetClientDashboardSummaryResponse: Client dashboard (buyer org): single read for Summary tab widgets.

type GetClientReviewForVirtualMachineResponse

type GetClientReviewForVirtualMachineResponse struct {
	CanSubmitReview   bool                  `json:"canSubmitReview,omitempty"`
	HasSubmitted      bool                  `json:"hasSubmitted,omitempty"`
	Review            *ClientProviderReview `json:"review,omitempty"`
	ReviewAvailableAt *time.Time            `json:"reviewAvailableAt,omitempty"`
	// Set when can_submit_review is false and has_submitted is false (e.g. usage-based 24h window).
	ReviewBlockedReason string `json:"reviewBlockedReason,omitempty"`
}

GetClientReviewForVirtualMachineResponse is the API's v1GetClientReviewForVirtualMachineResponse object.

type GetCloudInitTemplateResponse

type GetCloudInitTemplateResponse struct {
	CloudInitTemplate *CloudInitTemplate `json:"cloudInitTemplate,omitempty"`
}

GetCloudInitTemplateResponse is the API's v1GetCloudInitTemplateResponse object.

type GetConnectAccountResponse

type GetConnectAccountResponse struct {
	Account            *ConnectAccount `json:"account,omitempty"`
	OnboardingURL      string          `json:"onboardingUrl,omitempty"`
	RequiresOnboarding bool            `json:"requiresOnboarding,omitempty"`
}

GetConnectAccountResponse is the API's v1GetConnectAccountResponse object.

type GetConnectTaxSettingsResponse

type GetConnectTaxSettingsResponse struct {
	Settings *ConnectTaxSettingsDetails `json:"settings,omitempty"`
}

GetConnectTaxSettingsResponse is the API's v1GetConnectTaxSettingsResponse object.

type GetConversationHistoryResponse

type GetConversationHistoryResponse struct {
	ConversationID string        `json:"conversationId,omitempty"`
	Messages       []ChatMessage `json:"messages,omitempty"`
	Title          string        `json:"title,omitempty"`
}

GetConversationHistoryResponse is the API's v1GetConversationHistoryResponse object.

type GetCouponReportParams

type GetCouponReportParams struct {
	GroupBy CouponReportGroupBy
	// Narrow the report to one code, campaign, or channel.
	Code     string
	Campaign string
	Channel  string
	// Applications created in [start_time, end_time); open ends are unbounded.
	StartTime *time.Time
	EndTime   *time.Time
}

GetCouponReportParams are the query parameters of CouponService.GetCouponReport.

type GetCouponReportResponse

type GetCouponReportResponse struct {
	Consumed    string     `json:"consumed,omitempty"`
	CouponID    string     `json:"couponId,omitempty"`
	Expired     string     `json:"expired,omitempty"`
	GeneratedAt *time.Time `json:"generatedAt,omitempty"`
	// Set for credit coupons. Decimal USD strings.
	Granted     string `json:"granted,omitempty"`
	Outstanding string `json:"outstanding,omitempty"`
	// One row per group and currency. Currencies are never converted or summed.
	Rows []CouponReportRow `json:"rows,omitempty"`
}

GetCouponReportResponse is the API's v1GetCouponReportResponse object.

type GetCreditBalanceResponse

type GetCreditBalanceResponse struct {
	Available    string `json:"available,omitempty"`
	Balance      string `json:"balance,omitempty"`
	Currency     string `json:"currency,omitempty"`
	Frozen       bool   `json:"frozen,omitempty"`
	FrozenReason string `json:"frozenReason,omitempty"`
	// Unreserved promotional credit that can be applied to the next invoice.
	PromotionalAvailable string `json:"promotionalAvailable,omitempty"`
	// Promotional credit that expires within 7 days.
	PromotionalExpiringSoon string `json:"promotionalExpiringSoon,omitempty"`
	Reserved                string `json:"reserved,omitempty"`
}

GetCreditBalanceResponse is the API's v1GetCreditBalanceResponse object.

type GetDNSGeoRecordParams

type GetDNSGeoRecordParams struct {
	Name string
	Type string
}

GetDNSGeoRecordParams are the query parameters of DNSRecordService.GetDNSGeoRecord.

type GetDNSZoneResponse

type GetDNSZoneResponse struct {
	// DnsZone is a hosted authoritative zone. Vanilla records live in PowerDNS, not Ent.
	Zone *DNSZone `json:"zone,omitempty"`
}

GetDNSZoneResponse is the API's v1GetDnsZoneResponse object.

type GetDashboardAssetSalesTimeseriesParams

type GetDashboardAssetSalesTimeseriesParams struct {
	RangeDays int32
}

GetDashboardAssetSalesTimeseriesParams are the query parameters of ProviderDashboardService.GetDashboardAssetSalesTimeseries.

type GetDashboardAssetSalesTimeseriesResponse

type GetDashboardAssetSalesTimeseriesResponse struct {
	AssetsSoldPerDay []DashboardAssetSalesDayBucket `json:"assetsSoldPerDay,omitempty"`
}

GetDashboardAssetSalesTimeseriesResponse is the API's v1GetDashboardAssetSalesTimeseriesResponse object.

type GetDashboardBillingSalesParams

type GetDashboardBillingSalesParams struct {
	RangeDays          int32
	IncludePriorPeriod *bool
	// Revenue-by-customer table (1-based page). Omit for defaults (page 1, page size 25).
	RevenueByCustomerPage     int32
	RevenueByCustomerPageSize int32
	// Case-insensitive substring match on contact email, organization id, or organization name.
	RevenueByCustomerEmailFilter string
}

GetDashboardBillingSalesParams are the query parameters of ProviderDashboardService.GetDashboardBillingSales.

type GetDashboardBillingSalesResponse

type GetDashboardBillingSalesResponse struct {
	CommercialHealth  *DashboardBillingCommercialHealth `json:"commercialHealth,omitempty"`
	Currency          string                            `json:"currency,omitempty"`
	Days              []DashboardBillingSalesDayBucket  `json:"days,omitempty"`
	RevenueByCustomer []DashboardBillingCustomerRevenue `json:"revenueByCustomer,omitempty"`
	// Rows matching email filter (for pagination).
	RevenueByCustomerTotalCount int32 `json:"revenueByCustomerTotalCount,omitempty"`
	// Distinct customer orgs with revenue in the window (before email filter).
	RevenueByCustomerWindowTotal int32 `json:"revenueByCustomerWindowTotal,omitempty"`
	// Fixed = subscription + free plan lines + all add-ons; usage = usage-rated plan lines only.
	TotalFixedBillingSalesAmount string `json:"totalFixedBillingSalesAmount,omitempty"`
	TotalUsageBillingSalesAmount string `json:"totalUsageBillingSalesAmount,omitempty"`
}

GetDashboardBillingSalesResponse is the API's v1GetDashboardBillingSalesResponse object.

type GetDashboardCustomerAcquisitionTimeseriesParams

type GetDashboardCustomerAcquisitionTimeseriesParams struct {
	RangeDays int32
}

GetDashboardCustomerAcquisitionTimeseriesParams are the query parameters of ProviderDashboardService.GetDashboardCustomerAcquisitionTimeseries.

type GetDashboardCustomerAcquisitionTimeseriesResponse

type GetDashboardCustomerAcquisitionTimeseriesResponse struct {
	Buckets []DashboardCustomerAcquisitionDayBucket `json:"buckets,omitempty"`
}

GetDashboardCustomerAcquisitionTimeseriesResponse is the API's v1GetDashboardCustomerAcquisitionTimeseriesResponse object.

type GetDashboardSummaryResponse

type GetDashboardSummaryResponse struct {
	ActiveCustomerTotal int32                             `json:"activeCustomerTotal,omitempty"`
	ActiveVMTotal       int32                             `json:"activeVmTotal,omitempty"`
	AddonBreakdown      []DashboardSummaryAddonBreakdown  `json:"addonBreakdown,omitempty"`
	ByRegion            []DashboardSummaryRegionBreakdown `json:"byRegion,omitempty"`
	NodeTotal           int32                             `json:"nodeTotal,omitempty"`
	PlanBreakdown       []DashboardSummaryPlanBreakdown   `json:"planBreakdown,omitempty"`
	Tickets             *DashboardSummaryTickets          `json:"tickets,omitempty"`
}

GetDashboardSummaryResponse is the API's v1GetDashboardSummaryResponse object.

type GetDomainResponse

type GetDomainResponse struct {
	Domain *Domain `json:"domain,omitempty"`
}

GetDomainResponse is the API's v1GetDomainResponse object.

type GetEnvironmentVariableResponse

type GetEnvironmentVariableResponse struct {
	EnvironmentVariable *EnvironmentVariable `json:"environmentVariable,omitempty"`
}

GetEnvironmentVariableResponse is the API's v1GetEnvironmentVariableResponse object.

type GetExchangeRateResponse

type GetExchangeRateResponse struct {
	CurrencyCode string `json:"currencyCode,omitempty"`
	ExchangeRate string `json:"exchangeRate,omitempty"`
	LastUpdated  int64  `json:"lastUpdated,omitempty,string"`
}

GetExchangeRateResponse is the API's v1GetExchangeRateResponse object.

type GetFirewallRuleParams

type GetFirewallRuleParams struct {
	// Optional: Filter by direction. If not specified, returns the rule regardless of direction.
	Direction FirewallDirection
}

GetFirewallRuleParams are the query parameters of FirewallService.GetFirewallRule.

type GetGroupResponse

type GetGroupResponse struct {
	Group *Group `json:"group,omitempty"`
}

GetGroupResponse is the API's v1GetGroupResponse object.

type GetInstantApp2Params

type GetInstantApp2Params struct {
	// Exactly one of id or slug must be set.
	ID string
}

GetInstantApp2Params are the query parameters of InstantAppService.GetInstantApp2.

type GetInstantAppParams

type GetInstantAppParams struct {
	Slug string
}

GetInstantAppParams are the query parameters of InstantAppService.GetInstantApp.

type GetInvoiceResponse

type GetInvoiceResponse struct {
	Invoice      *Invoice      `json:"invoice,omitempty"`
	InvoiceLines []InvoiceLine `json:"invoiceLines,omitempty"`
}

GetInvoiceResponse is the API's v1GetInvoiceResponse object.

type GetMFAStatusResponse

type GetMFAStatusResponse struct {
	BackupCodesRemaining int32  `json:"backupCodesRemaining,omitempty"`
	Enabled              bool   `json:"enabled,omitempty"`
	FactorLabel          string `json:"factorLabel,omitempty"`
}

GetMFAStatusResponse is the API's v1GetMfaStatusResponse object.

type GetManualPayoutResponse

type GetManualPayoutResponse struct {
	Payout *ManualPayout `json:"payout,omitempty"`
}

GetManualPayoutResponse is the API's v1GetManualPayoutResponse object.

type GetMarketplacePlanResponse

type GetMarketplacePlanResponse struct {
	BillingType      BillingType  `json:"billingType,omitempty"`
	DiskGb           int32        `json:"diskGb,omitempty"`
	OrganizationID   string       `json:"organizationId,omitempty"`
	OrganizationName string       `json:"organizationName,omitempty"`
	PlanCode         string       `json:"planCode,omitempty"`
	PlanID           string       `json:"planId,omitempty"`
	PlanPrices       []PlanPrice  `json:"planPrices,omitempty"`
	PlanRegions      []PlanRegion `json:"planRegions,omitempty"`
	ProviderLogoURL  string       `json:"providerLogoUrl,omitempty"`
	RamGb            int32        `json:"ramGb,omitempty"`
	Rating           float32      `json:"rating,omitempty"`
	RegionCity       string       `json:"regionCity,omitempty"`
	RegionCountry    string       `json:"regionCountry,omitempty"`
	RegionID         string       `json:"regionId,omitempty"`
	TotalReviews     int32        `json:"totalReviews,omitempty"`
	Vcpus            int32        `json:"vcpus,omitempty"`
}

GetMarketplacePlanResponse: Resolved marketplace offer for VM create prefill (authenticated clients).

type GetMetricParams

type GetMetricParams struct {
	// Alternative to id
	Code string
}

GetMetricParams are the query parameters of MetricService.GetMetric.

type GetMetricResponse

type GetMetricResponse struct {
	Metric *Metric `json:"metric,omitempty"`
}

GetMetricResponse is the API's v1GetMetricResponse object.

type GetMyStorefrontResponse

type GetMyStorefrontResponse struct {
	Storefront *MyStorefront `json:"storefront,omitempty"`
}

GetMyStorefrontResponse is the API's v1GetMyStorefrontResponse object.

type GetNetworkResponse

type GetNetworkResponse struct {
	Network *Network `json:"network,omitempty"`
}

GetNetworkResponse is the API's v1GetNetworkResponse object.

type GetNodeCPUMapResponse

type GetNodeCPUMapResponse struct {
	// Compute product hosted by a node. Exclusive: a node is shared XOR dedicated
	// (docs/README-DEDICATED-CPU-CORES.md, design decision D1).
	//
	//  - NODE_COMPUTE_TYPE_SHARED: Shared vCPU hosting (CPU oversubscription allowed). Default.
	//  - NODE_COMPUTE_TYPE_DEDICATED: Dedicated pinned CPU cores (no CPU overallocation).
	ComputeType    NodeComputeType  `json:"computeType,omitempty"`
	CPUs           []NodeCPUMapCPU  `json:"cpus,omitempty"`
	LogicalCPUs    int32            `json:"logicalCpus,omitempty"`
	ModelName      string           `json:"modelName,omitempty"`
	NumaNodes      []NodeCPUMapNuma `json:"numaNodes,omitempty"`
	PhysicalCores  int32            `json:"physicalCores,omitempty"`
	SmtEnabled     bool             `json:"smtEnabled,omitempty"`
	Sockets        int32            `json:"sockets,omitempty"`
	ThreadsPerCore int32            `json:"threadsPerCore,omitempty"`
	// RFC3339 time the stored topology was collected/pasted.
	TopologyCollectedAt string `json:"topologyCollectedAt,omitempty"`
}

GetNodeCPUMapResponse is the API's v1GetNodeCPUMapResponse object.

type GetNodeNetworkResponse

type GetNodeNetworkResponse struct {
	Network *Network `json:"network,omitempty"`
}

GetNodeNetworkResponse is the API's v1GetNodeNetworkResponse object.

type GetNodePlacementPolicyResponse

type GetNodePlacementPolicyResponse struct {
	Policy *NodePlacementPolicy `json:"policy,omitempty"`
}

GetNodePlacementPolicyResponse is the API's v1GetNodePlacementPolicyResponse object.

type GetNodeResponse

type GetNodeResponse struct {
	Node *Node `json:"node,omitempty"`
}

GetNodeResponse is the API's v1GetNodeResponse object.

type GetNotificationSettingResponse

type GetNotificationSettingResponse struct {
	NotificationSetting *NotificationSetting `json:"notificationSetting,omitempty"`
}

GetNotificationSettingResponse is the API's v1GetNotificationSettingResponse object.

type GetNotificationTemplateResponse

type GetNotificationTemplateResponse struct {
	NotificationTemplate *NotificationTemplate `json:"notificationTemplate,omitempty"`
}

GetNotificationTemplateResponse is the API's v1GetNotificationTemplateResponse object.

type GetOrganizationResponse

type GetOrganizationResponse struct {
	Organization *Organization `json:"organization,omitempty"`
}

GetOrganizationResponse is the API's v1GetOrganizationResponse object.

type GetPaymentResponse

type GetPaymentResponse struct {
	Payment *Payment `json:"payment,omitempty"`
	Refunds []Refund `json:"refunds,omitempty"`
}

GetPaymentResponse is the API's v1GetPaymentResponse object.

type GetPayoutConfigurationResponse

type GetPayoutConfigurationResponse struct {
	Configuration *PayoutConfiguration `json:"configuration,omitempty"`
}

GetPayoutConfigurationResponse is the API's v1GetPayoutConfigurationResponse object.

type GetPayoutInvoiceResponse

type GetPayoutInvoiceResponse struct {
	Invoices      []Invoice      `json:"invoices,omitempty"`
	PayoutInvoice *PayoutInvoice `json:"payoutInvoice,omitempty"`
}

GetPayoutInvoiceResponse is the API's v1GetPayoutInvoiceResponse object.

type GetPlanLiveValidationParams

type GetPlanLiveValidationParams struct {
	NodeID string
}

GetPlanLiveValidationParams are the query parameters of LiveValidationService.GetPlanLiveValidation.

type GetPlanLiveValidationResponse

type GetPlanLiveValidationResponse struct {
	Validation *PlanLiveValidationView `json:"validation,omitempty"`
}

GetPlanLiveValidationResponse is the API's v1GetPlanLiveValidationResponse object.

type GetPlatformResponse

type GetPlatformResponse struct {
	Platform *Platform `json:"platform,omitempty"`
}

GetPlatformResponse is the API's v1GetPlatformResponse object.

type GetPrefixResponse

type GetPrefixResponse struct {
	Prefix *Prefix `json:"prefix,omitempty"`
}

GetPrefixResponse is the API's v1GetPrefixResponse object.

type GetPrefixUtilizationResponse

type GetPrefixUtilizationResponse struct {
	AllocatedCount      int32  `json:"allocatedCount,omitempty"`
	AvailableCount      int32  `json:"availableCount,omitempty"`
	CapacityIsOpenEnded bool   `json:"capacityIsOpenEnded,omitempty"`
	CapacityUnitLabel   string `json:"capacityUnitLabel,omitempty"`
	ReservedCount       int32  `json:"reservedCount,omitempty"`
	// Assignable pool: structurally assignable hosts minus explicit reserved list and one
	// in-prefix gateway slot when the gateway is not already listed as reserved. Out-of-prefix
	// gateways are ignored.
	TotalIPs                 int32   `json:"totalIps,omitempty"`
	UtilizationPercent       float64 `json:"utilizationPercent,omitempty"`
	VMAssignmentPrefixLength int32   `json:"vmAssignmentPrefixLength,omitempty"`
}

GetPrefixUtilizationResponse is the API's v1GetPrefixUtilizationResponse object.

type GetProviderCustomerBillingResponse

type GetProviderCustomerBillingResponse struct {
	// Sum of invoice totals with status void.
	CancelledAmount string `json:"cancelledAmount,omitempty"`
	// Sum of invoice totals with status uncollectible.
	CollectionsAmount string `json:"collectionsAmount,omitempty"`
	Currency          string `json:"currency,omitempty"`
	// Same as paid_amount (gross; not net of refunds).
	GrossRevenueAmount string `json:"grossRevenueAmount,omitempty"`
	// Succeeded Stripe Connect charges for this customer, or paid invoice totals without Connect.
	PaidAmount string `json:"paidAmount,omitempty"`
	// Stripe refunded amounts on this customer's charges, or succeeded invoice refunds without Connect.
	RefundedAmount string `json:"refundedAmount,omitempty"`
	// Sum of amount_due for open and past_due invoices.
	UnpaidDueAmount string `json:"unpaidDueAmount,omitempty"`
}

GetProviderCustomerBillingResponse: Billing KPIs for one client organization of the authenticated provider. When the provider has a Stripe Connect account, paid/refunded/gross are succeeded direct charges for this customer. Unpaid, cancelled, and collections remain invoice balances. Amounts are decimal strings with 2 places.

type GetProviderCustomerResponse

type GetProviderCustomerResponse struct {
	Customer *ProviderCustomerRow `json:"customer,omitempty"`
}

GetProviderCustomerResponse is the API's v1GetProviderCustomerResponse object.

type GetProviderCustomerStatsResponse

type GetProviderCustomerStatsResponse struct {
	ActiveCustomers   int32 `json:"activeCustomers,omitempty"`
	InactiveCustomers int32 `json:"inactiveCustomers,omitempty"`
	TotalActiveVMs    int32 `json:"totalActiveVms,omitempty"`
}

GetProviderCustomerStatsResponse is the API's v1GetProviderCustomerStatsResponse object.

type GetProviderOnboardingChecklistResponse

type GetProviderOnboardingChecklistResponse struct {
	CompletedCount int32 `json:"completedCount,omitempty"`
	// Provider self-serve onboarding checklist (provider orgs only).
	NextStep ProviderOnboardingStepCode `json:"nextStep,omitempty"`
	// True when the org has completed every step at least once (persisted latch).
	Onboarded bool `json:"onboarded,omitempty"`
	// Short copy for the wizard banner ("You created a region. Next: create a platform.").
	ProgressMessage string `json:"progressMessage,omitempty"`
	// Ordered checklist; empty when onboarded is true.
	Steps      []ProviderOnboardingStep `json:"steps,omitempty"`
	TotalCount int32                    `json:"totalCount,omitempty"`
}

GetProviderOnboardingChecklistResponse is the API's v1GetProviderOnboardingChecklistResponse object.

type GetProviderResponse

type GetProviderResponse struct {
	// GetProvider payload: nested ProviderInfo shares the same core fields as list rows; extended
	// fields are provider-wide (website, review breakdown, catalog plans, etc.).
	Provider *ProviderDetails `json:"provider,omitempty"`
}

GetProviderResponse is the API's v1GetProviderResponse object.

type GetProviderRevenueParams

type GetProviderRevenueParams struct {
	// Start date for revenue calculation (inclusive)
	StartDate *time.Time
	// End date for revenue calculation (inclusive)
	EndDate *time.Time
	// Filter by plan ID (optional)
	PlanID string
	// Filter by client organization ID (optional)
	ClientOrganizationID string
	// Include pending/processing payouts in calculations (default: true)
	IncludePending *bool
}

GetProviderRevenueParams are the query parameters of PayoutInvoiceService.GetProviderRevenue.

type GetProviderRevenueResponse

type GetProviderRevenueResponse struct {
	CompletedPayoutCount      int32                       `json:"completedPayoutCount,omitempty"`
	Currency                  string                      `json:"currency,omitempty"`
	DataSource                string                      `json:"dataSource,omitempty"`
	EndDate                   *time.Time                  `json:"endDate,omitempty"`
	FailedPayoutCount         int32                       `json:"failedPayoutCount,omitempty"`
	FailedTransactionCount    int32                       `json:"failedTransactionCount,omitempty"`
	HasMoreTransactions       bool                        `json:"hasMoreTransactions,omitempty"`
	PendingPayoutCount        int32                       `json:"pendingPayoutCount,omitempty"`
	SettlementCurrency        string                      `json:"settlementCurrency,omitempty"`
	StartDate                 *time.Time                  `json:"startDate,omitempty"`
	StripeWarning             string                      `json:"stripeWarning,omitempty"`
	SucceededTransactionCount int32                       `json:"succeededTransactionCount,omitempty"`
	TotalNetPayouts           string                      `json:"totalNetPayouts,omitempty"`
	TotalPlatformFees         string                      `json:"totalPlatformFees,omitempty"`
	TotalRevenue              string                      `json:"totalRevenue,omitempty"`
	Transactions              []ProviderStripeTransaction `json:"transactions,omitempty"`
	Waterfall                 *ProviderRevenueWaterfall   `json:"waterfall,omitempty"`
}

GetProviderRevenueResponse is the API's v1GetProviderRevenueResponse object.

type GetProviderTicketNotificationPolicyResponse

type GetProviderTicketNotificationPolicyResponse struct {
	Policy *ProviderTicketNotificationPolicy `json:"policy,omitempty"`
}

GetProviderTicketNotificationPolicyResponse is the API's v1GetProviderTicketNotificationPolicyResponse object.

type GetPublicStorefrontResponse

type GetPublicStorefrontResponse struct {
	Storefront *PublicStorefront `json:"storefront,omitempty"`
}

GetPublicStorefrontResponse is the API's v1GetPublicStorefrontResponse object.

type GetRefundResponse

type GetRefundResponse struct {
	Invoice *Invoice `json:"invoice,omitempty"`
	Payment *Payment `json:"payment,omitempty"`
	Refund  *Refund  `json:"refund,omitempty"`
}

GetRefundResponse is the API's v1GetRefundResponse object.

type GetRoadmapFeatureRequestResponse

type GetRoadmapFeatureRequestResponse struct {
	Request *RoadmapFeatureRequest `json:"request,omitempty"`
}

GetRoadmapFeatureRequestResponse is the API's v1GetRoadmapFeatureRequestResponse object.

type GetRoadmapStatsResponse

type GetRoadmapStatsResponse struct {
	ByProduct     []RoadmapProductStats `json:"byProduct,omitempty"`
	TotalRequests int32                 `json:"totalRequests,omitempty"`
	TotalVotes    int32                 `json:"totalVotes,omitempty"`
}

GetRoadmapStatsResponse is the API's v1GetRoadmapStatsResponse object.

type GetSMTPOutboundProviderPolicyResponse

type GetSMTPOutboundProviderPolicyResponse struct {
	Policy *SMTPOutboundProviderPolicy `json:"policy,omitempty"`
}

GetSMTPOutboundProviderPolicyResponse is the API's v1GetSmtpOutboundProviderPolicyResponse object.

type GetSSHKeyResponse

type GetSSHKeyResponse struct {
	SSHKey *SSHKey `json:"sshKey,omitempty"`
}

GetSSHKeyResponse is the API's v1GetSSHKeyResponse object.

type GetSecretResponse

type GetSecretResponse struct {
	Secret *Secret `json:"secret,omitempty"`
}

GetSecretResponse is the API's v1GetSecretResponse object.

type GetSnapshotResponse

type GetSnapshotResponse struct {
	Snapshot *Snapshot `json:"snapshot,omitempty"`
}

GetSnapshotResponse is the API's v1GetSnapshotResponse object.

type GetStartupResponse

type GetStartupResponse struct {
	DockerImage       string              `json:"dockerImage,omitempty"`
	DockerImages      []DockerImageChoice `json:"dockerImages,omitempty"`
	RawStartupCommand string              `json:"rawStartupCommand,omitempty"`
	StartupCommand    string              `json:"startupCommand,omitempty"`
	Variables         []StartupVariable   `json:"variables,omitempty"`
}

GetStartupResponse is the API's v1GetStartupResponse object.

type GetSubscriptionCouponResponse

type GetSubscriptionCouponResponse struct {
	// The coupon attached to one subscription.
	Coupon *SubscriptionCoupon `json:"coupon,omitempty"`
}

GetSubscriptionCouponResponse is the API's v1GetSubscriptionCouponResponse object.

type GetSubscriptionStatusResponse

type GetSubscriptionStatusResponse struct {
	Rules []Rules `json:"rules,omitempty"`
}

GetSubscriptionStatusResponse is the API's v1GetSubscriptionStatusResponse object.

type GetTicketResponse

type GetTicketResponse struct {
	OrganizationDetails map[string]OrganizationDetails `json:"organizationDetails,omitempty"`
	Thread              []TicketMessage                `json:"thread,omitempty"`
	Ticket              *Ticket                        `json:"ticket,omitempty"`
	UserDetails         map[string]UserDetails         `json:"userDetails,omitempty"`
}

GetTicketResponse is the API's v1GetTicketResponse object.

type GetUsageRecordResponse

type GetUsageRecordResponse struct {
	UsageRecord *UsageRecord `json:"usageRecord,omitempty"`
}

GetUsageRecordResponse is the API's v1GetUsageRecordResponse object.

type GetUsageReportParams

type GetUsageReportParams struct {
	// Required filters
	SubscriptionID string
	// Optional filters
	MetricID string
	// Billing period (if not provided, uses current billing period)
	BillingPeriodStart *time.Time
	BillingPeriodEnd   *time.Time
	// Options
	//
	// Include already billed records
	IncludeBilled *bool
}

GetUsageReportParams are the query parameters of UsageReportService.GetUsageReport.

type GetUsageReportResponse

type GetUsageReportResponse struct {
	Aggregates         []UsageAggregate `json:"aggregates,omitempty"`
	BillingPeriodEnd   *time.Time       `json:"billingPeriodEnd,omitempty"`
	BillingPeriodStart *time.Time       `json:"billingPeriodStart,omitempty"`
	TotalRecords       int32            `json:"totalRecords,omitempty"`
}

GetUsageReportResponse is the API's v1GetUsageReportResponse object.

type GetUserResponse

type GetUserResponse struct {
	User *User `json:"user,omitempty"`
}

GetUserResponse is the API's v1GetUserResponse object.

type GetVMTemplateResponse

type GetVMTemplateResponse struct {
	VMTemplate *VMTemplate `json:"vmTemplate,omitempty"`
}

GetVMTemplateResponse is the API's v1GetVMTemplateResponse object.

type GetVNCConsoleResponse

type GetVNCConsoleResponse struct {
	Password     string `json:"password,omitempty"`
	SessionID    string `json:"sessionId,omitempty"`
	Token        string `json:"token,omitempty"`
	WebsocketURL string `json:"websocketUrl,omitempty"`
}

GetVNCConsoleResponse is the API's v1GetVNCConsoleResponse object.

type Group

type Group struct {
	Description string         `json:"description,omitempty"`
	GroupRoles  []string       `json:"groupRoles,omitempty"`
	ID          string         `json:"id,omitempty"`
	Metadata    map[string]any `json:"metadata,omitempty"`
	Name        string         `json:"name,omitempty"`
	Status      Protov1Status  `json:"status,omitempty"`
	Timestamps  *Timestamps    `json:"timestamps,omitempty"`
	UserEmails  []string       `json:"userEmails,omitempty"`
}

Group is the API's v1Group object.

type GroupService

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

GroupService calls the NodeRings GroupService API.

func (*GroupService) AddServiceAccountToGroup

func (s *GroupService) AddServiceAccountToGroup(ctx context.Context, body *AddServiceAccountToGroupRequest) (*SuccessResponse, error)

AddServiceAccountToGroup calls POST /v1/groups/add-service-account.

func (*GroupService) AddUserToGroup

func (s *GroupService) AddUserToGroup(ctx context.Context, body *AddUserToGroupRequest) (*SuccessResponse, error)

AddUserToGroup calls POST /v1/groups/add-user.

func (*GroupService) CreateGroup

CreateGroup calls POST /v1/groups.

func (*GroupService) DeleteGroup

func (s *GroupService) DeleteGroup(ctx context.Context, id string) (*SuccessResponse, error)

DeleteGroup calls DELETE /v1/groups/{id}.

func (*GroupService) GetGroup

func (s *GroupService) GetGroup(ctx context.Context, id string) (*GetGroupResponse, error)

GetGroup calls GET /v1/groups/{id}.

func (*GroupService) ListGroups

func (s *GroupService) ListGroups(ctx context.Context, params *ListGroupsParams) (*ListGroupsResponse, error)

ListGroups calls GET /v1/groups.

func (*GroupService) ListGroupsAll

func (s *GroupService) ListGroupsAll(ctx context.Context, params *ListGroupsParams) iter.Seq2[Group, error]

ListGroupsAll returns an iterator over every result of ListGroups, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*GroupService) RemoveServiceAccountFromGroup

func (s *GroupService) RemoveServiceAccountFromGroup(ctx context.Context, params *RemoveServiceAccountFromGroupParams) (*SuccessResponse, error)

RemoveServiceAccountFromGroup calls DELETE /v1/groups/remove-service-account.

func (*GroupService) RemoveUserFromGroup

func (s *GroupService) RemoveUserFromGroup(ctx context.Context, params *RemoveUserFromGroupParams) (*SuccessResponse, error)

RemoveUserFromGroup calls DELETE /v1/groups/remove-user.

func (*GroupService) UpdateGroup

func (s *GroupService) UpdateGroup(ctx context.Context, id string, body *UpdateGroupBody) (*UpdateGroupResponse, error)

UpdateGroup calls PATCH /v1/groups/{id}.

type HandleWebhookBody

type HandleWebhookBody struct {
	Payload []byte `json:"payload,omitempty"`
}

HandleWebhookBody: Webhook messages

type HandleWebhookResponse

type HandleWebhookResponse struct {
	EventID string `json:"eventId,omitempty"`
	Message string `json:"message,omitempty"`
	Success bool   `json:"success,omitempty"`
}

HandleWebhookResponse is the API's v1HandleWebhookResponse object.

type HealthCheckResponse

type HealthCheckResponse struct {
	Status ServingStatus `json:"status,omitempty"`
}

HealthCheckResponse is the API's v1HealthCheckResponse object.

type HeldPayout

type HeldPayout struct {
	Currency string `json:"currency,omitempty"`
	// Unset for dispute holds.
	HeldUntil     *time.Time `json:"heldUntil,omitempty"`
	InvoiceID     string     `json:"invoiceId,omitempty"`
	InvoiceNumber string     `json:"invoiceNumber,omitempty"`
	PaidAt        *time.Time `json:"paidAt,omitempty"`
	// This provider's revenue on the invoice, as a decimal string.
	ProviderRevenue string `json:"providerRevenue,omitempty"`
	// - PAYOUT_HOLD_REASON_COUPON_FIRST_PURCHASE: Heavily discounted first purchase from a client.
	//  - PAYOUT_HOLD_REASON_CREDIT_FUNDED: Paid with prepaid credits.
	//  - PAYOUT_HOLD_REASON_DISPUTE: The client opened a dispute; held until it closes.
	Reason PayoutHoldReason `json:"reason,omitempty"`
}

HeldPayout: A paid client invoice whose provider payout is waiting on a hold.

type HighRiskCoupon

type HighRiskCoupon struct {
	// A discount. Codes customers type live in CouponCode. Provider coupons apply
	// to that provider's plans. Platform coupons apply across providers.
	Coupon                   *Coupon    `json:"coupon,omitempty"`
	LastRedeemedAt           *time.Time `json:"lastRedeemedAt,omitempty"`
	ProviderOrganizationID   string     `json:"providerOrganizationId,omitempty"`
	ProviderOrganizationName string     `json:"providerOrganizationName,omitempty"`
	// Applications in the last 7 days, excluding reversed ones.
	RedemptionsLast7Days int32 `json:"redemptionsLast7Days,omitempty"`
}

HighRiskCoupon: A high-risk coupon as seen by platform admins.

type HookScript

type HookScript struct {
	Enabled        bool          `json:"enabled,omitempty"`
	Hook           LifecycleHook `json:"hook,omitempty"`
	ID             string        `json:"id,omitempty"`
	OrganizationID string        `json:"organizationId,omitempty"`
	Script         string        `json:"script,omitempty"`
	Status         Protov1Status `json:"status,omitempty"`
	// LifecycleHook is the VM operation that triggers a provider hook script.
	Subject    HookSubject `json:"subject,omitempty"`
	Timestamps *Timestamps `json:"timestamps,omitempty"`
}

HookScript: HookScript is a provider-owned Python script run after a VM lifecycle event.

type HookScriptService

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

HookScriptService calls the NodeRings HookScriptService API.

func (*HookScriptService) DeleteHookScript

func (s *HookScriptService) DeleteHookScript(ctx context.Context, id string) (*SuccessResponse, error)

DeleteHookScript calls DELETE /v1/hook-scripts/{id}.

func (*HookScriptService) ListHookScripts

ListHookScripts calls GET /v1/hook-scripts.

func (*HookScriptService) ListHookScriptsAll

func (s *HookScriptService) ListHookScriptsAll(ctx context.Context, params *ListHookScriptsParams) iter.Seq2[HookScript, error]

ListHookScriptsAll returns an iterator over every result of ListHookScripts, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*HookScriptService) UpsertHookScript

func (s *HookScriptService) UpsertHookScript(ctx context.Context, body *UpsertHookScriptRequest) (*HookScript, error)

UpsertHookScript calls PUT /v1/hook-scripts.

type HookSubject

type HookSubject string

HookSubject: LifecycleHook is the VM operation that triggers a provider hook script.

const (
	HookSubjectUnspecified HookSubject = "HOOK_SUBJECT_UNSPECIFIED"
	HookSubjectVM          HookSubject = "HOOK_SUBJECT_VM"
	HookSubjectGameserver  HookSubject = "HOOK_SUBJECT_GAMESERVER"
)

Values of HookSubject.

type IPAMService

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

IPAMService calls the NodeRings IPAMService API.

func (*IPAMService) AddReservedIP

func (s *IPAMService) AddReservedIP(ctx context.Context, prefixID string, body *AddReservedIPBody) (*SuccessResponse, error)

AddReservedIP: IP Reservation (manage reserved_ips array in prefix)

It calls POST /v1/ipam/prefixes/{prefixId}/reserved-ips.

func (*IPAMService) AddReservedPrefix

func (s *IPAMService) AddReservedPrefix(ctx context.Context, prefixID string, body *AddReservedPrefixBody) (*SuccessResponse, error)

AddReservedPrefix calls POST /v1/ipam/prefixes/{prefixId}/reserved-prefixes.

func (*IPAMService) AssignNetworkToNode

func (s *IPAMService) AssignNetworkToNode(ctx context.Context, networkID string, body *AssignNetworkToNodeBody) (*SuccessResponse, error)

AssignNetworkToNode: Node-Network assignment

It calls POST /v1/ipam/networks/{networkId}/assign-node.

func (*IPAMService) ClearAllPrefixReservedIPs

func (s *IPAMService) ClearAllPrefixReservedIPs(ctx context.Context, prefixID string, body *ClearAllPrefixReservedIPsBody) (*SuccessResponse, error)

ClearAllPrefixReservedIPs calls POST /v1/ipam/prefixes/{prefixId}/reserved-ips/clear-all.

func (*IPAMService) CreateNetwork

func (s *IPAMService) CreateNetwork(ctx context.Context, body *CreateNetworkRequest) (*SuccessResponse, error)

CreateNetwork: IPAM Network management

It calls POST /v1/ipam/networks.

func (*IPAMService) CreatePrefix

func (s *IPAMService) CreatePrefix(ctx context.Context, body *CreatePrefixRequest) (*SuccessResponse, error)

CreatePrefix: Prefix management

It calls POST /v1/ipam/prefixes.

func (*IPAMService) DeleteNetwork

func (s *IPAMService) DeleteNetwork(ctx context.Context, id string) (*SuccessResponse, error)

DeleteNetwork calls DELETE /v1/ipam/networks/{id}.

func (*IPAMService) DeletePrefix

func (s *IPAMService) DeletePrefix(ctx context.Context, id string) (*SuccessResponse, error)

DeletePrefix calls DELETE /v1/ipam/prefixes/{id}.

func (*IPAMService) GetNetwork

func (s *IPAMService) GetNetwork(ctx context.Context, id string) (*GetNetworkResponse, error)

GetNetwork calls GET /v1/ipam/networks/{id}.

func (*IPAMService) GetNodeNetwork

func (s *IPAMService) GetNodeNetwork(ctx context.Context, nodeID string) (*GetNodeNetworkResponse, error)

GetNodeNetwork calls GET /v1/ipam/nodes/{nodeId}/network.

func (*IPAMService) GetPrefix

func (s *IPAMService) GetPrefix(ctx context.Context, id string) (*GetPrefixResponse, error)

GetPrefix calls GET /v1/ipam/prefixes/{id}.

func (*IPAMService) GetPrefixUtilization

func (s *IPAMService) GetPrefixUtilization(ctx context.Context, prefixID string) (*GetPrefixUtilizationResponse, error)

GetPrefixUtilization: Utility

It calls GET /v1/ipam/prefixes/{prefixId}/utilization.

func (*IPAMService) ListAllocations

func (s *IPAMService) ListAllocations(ctx context.Context, params *ListAllocationsParams) (*ListAllocationsResponse, error)

ListAllocations: IP Allocation (read-only - allocations are managed automatically)

It calls GET /v1/ipam/allocations.

func (*IPAMService) ListAllocationsAll

func (s *IPAMService) ListAllocationsAll(ctx context.Context, params *ListAllocationsParams) iter.Seq2[IPAllocation, error]

ListAllocationsAll returns an iterator over every result of ListAllocations, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*IPAMService) ListAvailableIPs

func (s *IPAMService) ListAvailableIPs(ctx context.Context, prefixID string, params *ListAvailableIPsParams) (*ListAvailableIPsResponse, error)

ListAvailableIPs calls GET /v1/ipam/prefixes/{prefixId}/available-ips.

func (*IPAMService) ListNetworkNodes

func (s *IPAMService) ListNetworkNodes(ctx context.Context, networkID string) (*ListNetworkNodesResponse, error)

ListNetworkNodes calls GET /v1/ipam/networks/{networkId}/nodes.

func (*IPAMService) ListNetworks

func (s *IPAMService) ListNetworks(ctx context.Context, params *ListNetworksParams) (*ListNetworksResponse, error)

ListNetworks calls GET /v1/ipam/networks.

func (*IPAMService) ListNetworksAll

func (s *IPAMService) ListNetworksAll(ctx context.Context, params *ListNetworksParams) iter.Seq2[Network, error]

ListNetworksAll returns an iterator over every result of ListNetworks, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*IPAMService) ListPrefixes

func (s *IPAMService) ListPrefixes(ctx context.Context, params *ListPrefixesParams) (*ListPrefixesResponse, error)

ListPrefixes calls GET /v1/ipam/prefixes.

func (*IPAMService) ListPrefixesAll

func (s *IPAMService) ListPrefixesAll(ctx context.Context, params *ListPrefixesParams) iter.Seq2[Prefix, error]

ListPrefixesAll returns an iterator over every result of ListPrefixes, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*IPAMService) RemoveReservedIP

func (s *IPAMService) RemoveReservedIP(ctx context.Context, prefixID string, ipAddress string) (*SuccessResponse, error)

RemoveReservedIP calls DELETE /v1/ipam/prefixes/{prefixId}/reserved-ips/{ipAddress}.

func (*IPAMService) RemoveReservedPrefix

func (s *IPAMService) RemoveReservedPrefix(ctx context.Context, prefixID string, params *RemoveReservedPrefixParams) (*SuccessResponse, error)

RemoveReservedPrefix calls DELETE /v1/ipam/prefixes/{prefixId}/reserved-prefixes.

func (*IPAMService) ReserveAllPrefixIPs

func (s *IPAMService) ReserveAllPrefixIPs(ctx context.Context, prefixID string, body *ReserveAllPrefixIPsBody) (*SuccessResponse, error)

ReserveAllPrefixIPs calls POST /v1/ipam/prefixes/{prefixId}/reserved-ips/reserve-all.

func (*IPAMService) UnassignNetworkFromNode

func (s *IPAMService) UnassignNetworkFromNode(ctx context.Context, nodeID string) (*SuccessResponse, error)

UnassignNetworkFromNode calls POST /v1/ipam/nodes/{nodeId}/unassign-network.

func (*IPAMService) UpdateNetwork

func (s *IPAMService) UpdateNetwork(ctx context.Context, id string, body *UpdateNetworkBody) (*UpdateNetworkResponse, error)

UpdateNetwork calls PATCH /v1/ipam/networks/{id}.

func (*IPAMService) UpdatePrefix

func (s *IPAMService) UpdatePrefix(ctx context.Context, id string, body *UpdatePrefixBody) (*UpdatePrefixResponse, error)

UpdatePrefix calls PATCH /v1/ipam/prefixes/{id}.

type IPAllocation

type IPAllocation struct {
	AllocatedCIDR  string `json:"allocatedCidr,omitempty"`
	AllocationKind string `json:"allocationKind,omitempty"`
	ID             string `json:"id,omitempty"`
	IPAddress      string `json:"ipAddress,omitempty"`
	OrganizationID string `json:"organizationId,omitempty"`
	// Prefix this IP allocation is from
	PrefixID         string             `json:"prefixId,omitempty"`
	Status           IPAllocationStatus `json:"status,omitempty"`
	Timestamps       *Timestamps        `json:"timestamps,omitempty"`
	VirtualMachineID string             `json:"virtualMachineId,omitempty"`
}

IPAllocation is the API's v1IPAllocation object.

type IPAllocationStatus

type IPAllocationStatus string

IPAllocationStatus is an API enum.

const (
	IPAllocationStatusUnspecified IPAllocationStatus = "IP_ALLOCATION_STATUS_UNSPECIFIED"
	IPAllocationStatusActive      IPAllocationStatus = "IP_ALLOCATION_STATUS_ACTIVE"
	IPAllocationStatusReleased    IPAllocationStatus = "IP_ALLOCATION_STATUS_RELEASED"
)

Values of IPAllocationStatus.

type ImportDNSRecordsBody

type ImportDNSRecordsBody struct {
	Records []DNSRecord `json:"records,omitempty"`
}

ImportDNSRecordsBody is the API's DnsZoneServiceImportDnsRecordsBody object.

type ImportDNSZoneBody

type ImportDNSZoneBody struct {
	ZoneText string `json:"zoneText,omitempty"`
}

ImportDNSZoneBody is the API's DnsZoneServiceImportDnsZoneBody object.

type ImportGameServerTemplateRequest

type ImportGameServerTemplateRequest struct {
	DockerImage string `json:"dockerImage,omitempty"`
	EggID       int32  `json:"eggId,omitempty"`
	Icon        string `json:"icon,omitempty"`
	Name        string `json:"name,omitempty"`
	NestID      int32  `json:"nestId,omitempty"`
	PlatformID  string `json:"platformId,omitempty"`
	Startup     string `json:"startup,omitempty"`
}

ImportGameServerTemplateRequest is the API's v1ImportGameServerTemplateRequest object.

type InboundPeeringState

type InboundPeeringState string

InboundPeeringState is an API enum.

const (
	InboundPeeringStateUnspecified InboundPeeringState = "INBOUND_PEERING_STATE_UNSPECIFIED"
	InboundPeeringStatePending     InboundPeeringState = "INBOUND_PEERING_STATE_PENDING"
	InboundPeeringStatePeering     InboundPeeringState = "INBOUND_PEERING_STATE_PEERING"
	InboundPeeringStateReady       InboundPeeringState = "INBOUND_PEERING_STATE_READY"
	InboundPeeringStateFailed      InboundPeeringState = "INBOUND_PEERING_STATE_FAILED"
)

Values of InboundPeeringState.

type InstantApp

type InstantApp struct {
	// Read-only: set by the API.
	Categories []string `json:"categories,omitempty"`
	// Read-only: set by the API.
	Description string `json:"description,omitempty"`
	// - DISTRO_UBUNTU_22_04: Ubuntu distributions
	//  - DISTRO_FEDORA_43: Fedora distributions
	//  - DISTRO_DEBIAN_12: Debian distributions
	//  - DISTRO_CENTOS_9: CentOS distributions
	//  - DISTRO_ROCKY_9: Rocky Linux distributions
	//  - DISTRO_ALMALINUX_9: AlmaLinux distributions
	Distro Distro `json:"distro,omitempty"`
	// Read-only: set by the API.
	DocumentationURL string `json:"documentationUrl,omitempty"`
	// Read-only: set by the API.
	Family string `json:"family,omitempty"`
	// Read-only: set by the API.
	IconURL string `json:"iconUrl,omitempty"`
	// Read-only: set by the API.
	ID string `json:"id,omitempty"`
	// Includes ports, credentials_path, estimated_ready_minutes, and optional variables[]
	// (Instant App form schema: name/label/type/required/default/…).
	//
	// Read-only: set by the API.
	Metadata map[string]any `json:"metadata,omitempty"`
	// Read-only: set by the API.
	MinDiskGb int32 `json:"minDiskGb,omitempty"`
	// Read-only: set by the API.
	MinRamGb int32 `json:"minRamGb,omitempty"`
	// Recommended minimums (plan specifications units); not enforced at create.
	//
	// Read-only: set by the API.
	MinVcpus int32 `json:"minVcpus,omitempty"`
	// Read-only: set by the API.
	Name string `json:"name,omitempty"`
	// Read-only: set by the API.
	Slug string `json:"slug,omitempty"`
	// Read-only: set by the API.
	SortOrder  int32         `json:"sortOrder,omitempty"`
	Status     Protov1Status `json:"status,omitempty"`
	Timestamps *Timestamps   `json:"timestamps,omitempty"`
	// Jinja cloud-init user_data template. Present on Get; omitted on List.
	//
	// Read-only: set by the API.
	UserData string `json:"userData,omitempty"`
	// Read-only: set by the API.
	Version string `json:"version,omitempty"`
}

InstantApp: InstantApp is a platform-owned curated app install (Jinja user_data bound to a Distro). user_data is returned on Get for catalog preview; List omits it to keep responses small. Create/reinstall always load user_data server-side from storage.

type InstantAppService

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

InstantAppService calls the NodeRings InstantAppService API.

func (*InstantAppService) GetInstantApp

func (s *InstantAppService) GetInstantApp(ctx context.Context, id string, params *GetInstantAppParams) (*InstantApp, error)

GetInstantApp calls GET /v1/instantapps/{id}.

func (*InstantAppService) GetInstantApp2

func (s *InstantAppService) GetInstantApp2(ctx context.Context, slug string, params *GetInstantApp2Params) (*InstantApp, error)

GetInstantApp2 calls GET /v1/instantapps/slug/{slug}.

func (*InstantAppService) ListInstantApps

ListInstantApps calls GET /v1/instantapps.

func (*InstantAppService) ListInstantAppsAll

func (s *InstantAppService) ListInstantAppsAll(ctx context.Context, params *ListInstantAppsParams) iter.Seq2[InstantApp, error]

ListInstantAppsAll returns an iterator over every result of ListInstantApps, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

type Int64s

type Int64s []int64

Int64s is a list of 64-bit integers, sent by the API as JSON strings.

func (Int64s) MarshalJSON

func (s Int64s) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (*Int64s) UnmarshalJSON

func (s *Int64s) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler. It accepts strings and numbers.

type Invite

type Invite struct {
	ExpiresAt        *time.Time     `json:"expiresAt,omitempty"`
	Group            string         `json:"group,omitempty"`
	ID               string         `json:"id,omitempty"`
	InviteStatus     InviteStatus   `json:"inviteStatus,omitempty"`
	InviteeEmail     string         `json:"inviteeEmail,omitempty"`
	Inviter          string         `json:"inviter,omitempty"`
	InviterEmail     string         `json:"inviterEmail,omitempty"`
	JoinedTime       *time.Time     `json:"joinedTime,omitempty"`
	Metadata         map[string]any `json:"metadata,omitempty"`
	Organization     string         `json:"organization,omitempty"`
	OrganizationName string         `json:"organizationName,omitempty"`
	Role             string         `json:"role,omitempty"`
	Status           Protov1Status  `json:"status,omitempty"`
	Timestamps       *Timestamps    `json:"timestamps,omitempty"`
}

Invite is the API's v1Invite object.

type InviteService

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

InviteService calls the NodeRings InviteService API.

func (*InviteService) AcceptInvite

func (s *InviteService) AcceptInvite(ctx context.Context, params *AcceptInviteParams) (*SuccessResponse, error)

AcceptInvite calls GET /v1/invites/accept.

func (*InviteService) CreateInvite

func (s *InviteService) CreateInvite(ctx context.Context, body *CreateInviteRequest) (*SuccessResponse, error)

CreateInvite calls POST /v1/invites.

func (*InviteService) DeclineInvite

func (s *InviteService) DeclineInvite(ctx context.Context, params *DeclineInviteParams) (*SuccessResponse, error)

DeclineInvite calls GET /v1/invites/decline.

func (*InviteService) DeleteInvite

func (s *InviteService) DeleteInvite(ctx context.Context, id string) (*SuccessResponse, error)

DeleteInvite calls DELETE /v1/invites/{id}.

func (*InviteService) ListInvites

func (s *InviteService) ListInvites(ctx context.Context, params *ListInvitesParams) (*ListInvitesResponse, error)

ListInvites calls GET /v1/invites.

func (*InviteService) ListInvitesAll

func (s *InviteService) ListInvitesAll(ctx context.Context, params *ListInvitesParams) iter.Seq2[Invite, error]

ListInvitesAll returns an iterator over every result of ListInvites, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*InviteService) ListMyInvites

func (s *InviteService) ListMyInvites(ctx context.Context, params *ListMyInvitesParams) (*ListMyInvitesResponse, error)

ListMyInvites calls GET /v1/invites/me.

func (*InviteService) ListMyInvitesAll

func (s *InviteService) ListMyInvitesAll(ctx context.Context, params *ListMyInvitesParams) iter.Seq2[Invite, error]

ListMyInvitesAll returns an iterator over every result of ListMyInvites, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*InviteService) ResendInvite

func (s *InviteService) ResendInvite(ctx context.Context, inviteID string) (*SuccessResponse, error)

ResendInvite calls POST /v1/invites/resend/{inviteId}.

func (*InviteService) UpdateInvite

func (s *InviteService) UpdateInvite(ctx context.Context, body *UpdateInviteRequest) (*SuccessResponse, error)

UpdateInvite calls PATCH /v1/invites.

type InviteStatus

type InviteStatus string

InviteStatus is an API enum.

const (
	InviteStatusUnspecified InviteStatus = "INVITE_STATUS_UNSPECIFIED"
	InviteStatusSent        InviteStatus = "INVITE_STATUS_SENT"
	InviteStatusAccepted    InviteStatus = "INVITE_STATUS_ACCEPTED"
	InviteStatusDeclined    InviteStatus = "INVITE_STATUS_DECLINED"
	InviteStatusExpired     InviteStatus = "INVITE_STATUS_EXPIRED"
)

Values of InviteStatus.

type Invoice

type Invoice struct {
	AmountDue string     `json:"amountDue,omitempty"`
	CreatedAt *time.Time `json:"createdAt,omitempty"`
	Currency  string     `json:"currency,omitempty"`
	// InvoiceParty is a billing party (seller/issuer or buyer/customer) shown on an
	// invoice. Provider/customer identity is snapshotted at invoice generation; the
	// platform issuer is resolved from server config.
	Customer      *InvoiceParty `json:"customer,omitempty"`
	DueDate       *time.Time    `json:"dueDate,omitempty"`
	ID            string        `json:"id,omitempty"`
	InvoiceNumber string        `json:"invoiceNumber,omitempty"`
	// InvoiceParty is a billing party (seller/issuer or buyer/customer) shown on an
	// invoice. Provider/customer identity is snapshotted at invoice generation; the
	// platform issuer is resolved from server config.
	Issuer         *InvoiceParty  `json:"issuer,omitempty"`
	Metadata       map[string]any `json:"metadata,omitempty"`
	PaidAt         *time.Time     `json:"paidAt,omitempty"`
	PeriodEnd      *time.Time     `json:"periodEnd,omitempty"`
	PeriodStart    *time.Time     `json:"periodStart,omitempty"`
	Status         InvoiceStatus  `json:"status,omitempty"`
	SubscriptionID string         `json:"subscriptionId,omitempty"`
	// for backward compatibility.
	//
	// Subscriptions aggregated into this invoice (many-to-many)
	SubscriptionIDs []string `json:"subscriptionIds,omitempty"`
	Subtotal        string   `json:"subtotal,omitempty"`
	TaxAmount       string   `json:"taxAmount,omitempty"`
	Total           string   `json:"total,omitempty"`
	TransactionID   string   `json:"transactionId,omitempty"`
}

Invoice is the API's v1Invoice object.

type InvoiceLine

type InvoiceLine struct {
	Amount         string `json:"amount,omitempty"`
	Description    string `json:"description,omitempty"`
	ID             string `json:"id,omitempty"`
	InvoiceID      string `json:"invoiceId,omitempty"`
	Quantity       string `json:"quantity,omitempty"`
	SubscriptionID string `json:"subscriptionId,omitempty"`
	UnitAmount     string `json:"unitAmount,omitempty"`
}

InvoiceLine is the API's v1InvoiceLine object.

type InvoiceParty

type InvoiceParty struct {
	Address      string `json:"address,omitempty"`
	AddressLine1 string `json:"addressLine1,omitempty"`
	AddressLine2 string `json:"addressLine2,omitempty"`
	City         string `json:"city,omitempty"`
	Country      string `json:"country,omitempty"`
	Email        string `json:"email,omitempty"`
	IsPlatform   bool   `json:"isPlatform,omitempty"`
	LegalName    string `json:"legalName,omitempty"`
	Name         string `json:"name,omitempty"`
	Phone        string `json:"phone,omitempty"`
	PostalCode   string `json:"postalCode,omitempty"`
	Region       string `json:"region,omitempty"`
	TaxID        string `json:"taxId,omitempty"`
	VATID        string `json:"vatId,omitempty"`
	Website      string `json:"website,omitempty"`
}

InvoiceParty: InvoiceParty is a billing party (seller/issuer or buyer/customer) shown on an invoice. Provider/customer identity is snapshotted at invoice generation; the platform issuer is resolved from server config.

type InvoiceService

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

InvoiceService calls the NodeRings InvoiceService API.

func (*InvoiceService) GetInvoice

func (s *InvoiceService) GetInvoice(ctx context.Context, invoiceID string) (*GetInvoiceResponse, error)

GetInvoice: GetInvoice retrieves a single invoice with line items

It calls GET /v1/invoices/{invoiceId}.

func (*InvoiceService) ListInvoices

func (s *InvoiceService) ListInvoices(ctx context.Context, params *ListInvoicesParams) (*ListInvoicesResponse, error)

ListInvoices: ListInvoices lists invoices for a subscription or organization

It calls GET /v1/invoices.

func (*InvoiceService) ListInvoicesAll

func (s *InvoiceService) ListInvoicesAll(ctx context.Context, params *ListInvoicesParams) iter.Seq2[Invoice, error]

ListInvoicesAll returns an iterator over every result of ListInvoices, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*InvoiceService) PayInvoice

func (s *InvoiceService) PayInvoice(ctx context.Context, invoiceID string, body *PayInvoiceBody) (*PayInvoiceResponse, error)

PayInvoice: PayInvoice charges the organization's default card for an open or past-due invoice and returns the updated invoice. Idempotent when the invoice is already paid.

It calls POST /v1/invoices/{invoiceId}:pay.

type InvoiceStatus

type InvoiceStatus string

InvoiceStatus is an API enum.

const (
	InvoiceStatusUnspecified   InvoiceStatus = "INVOICE_STATUS_UNSPECIFIED"
	InvoiceStatusDraft         InvoiceStatus = "INVOICE_STATUS_DRAFT"
	InvoiceStatusOpen          InvoiceStatus = "INVOICE_STATUS_OPEN"
	InvoiceStatusPaid          InvoiceStatus = "INVOICE_STATUS_PAID"
	InvoiceStatusPastDue       InvoiceStatus = "INVOICE_STATUS_PAST_DUE"
	InvoiceStatusVoid          InvoiceStatus = "INVOICE_STATUS_VOID"
	InvoiceStatusUncollectible InvoiceStatus = "INVOICE_STATUS_UNCOLLECTIBLE"
)

Values of InvoiceStatus.

type LastRestore

type LastRestore struct {
	// Read-only: set by the API.
	RestoredAt *time.Time `json:"restoredAt,omitempty"`
	// Read-only: set by the API.
	RestoredBy string `json:"restoredBy,omitempty"`
	// Read-only: set by the API.
	SnapshotName string `json:"snapshotName,omitempty"`
}

LastRestore: LastRestore represents the last restore operation for a snapshot

type LifecycleHook

type LifecycleHook string

LifecycleHook is an API enum.

const (
	LifecycleHookUnspecified LifecycleHook = "LIFECYCLE_HOOK_UNSPECIFIED"
	LifecycleHookCreated     LifecycleHook = "LIFECYCLE_HOOK_CREATED"
	LifecycleHookStarted     LifecycleHook = "LIFECYCLE_HOOK_STARTED"
	LifecycleHookStopped     LifecycleHook = "LIFECYCLE_HOOK_STOPPED"
	LifecycleHookDeleted     LifecycleHook = "LIFECYCLE_HOOK_DELETED"
	LifecycleHookRestarted   LifecycleHook = "LIFECYCLE_HOOK_RESTARTED"
	LifecycleHookReinstalled LifecycleHook = "LIFECYCLE_HOOK_REINSTALLED"
)

Values of LifecycleHook.

type LinkedIdentity

type LinkedIdentity struct {
	CreateTime *time.Time `json:"createTime,omitempty"`
	Email      string     `json:"email,omitempty"`
	Provider   string     `json:"provider,omitempty"`
}

LinkedIdentity is the API's v1LinkedIdentity object.

type ListAddonSubscriptionsParams

type ListAddonSubscriptionsParams struct {
	// Filter by status
	AddonStatus AddonStatus
}

ListAddonSubscriptionsParams are the query parameters of AddonService.ListAddonSubscriptions.

type ListAddonSubscriptionsResponse

type ListAddonSubscriptionsResponse struct {
	AddonSubscriptions []AddonSubscription `json:"addonSubscriptions,omitempty"`
	TotalCount         int32               `json:"totalCount,omitempty"`
}

ListAddonSubscriptionsResponse is the API's v1ListAddonSubscriptionsResponse object.

type ListAddonsParams

type ListAddonsParams struct {
	Page     int32
	PageSize int32
	// Filter by compatible with subscription
	SubscriptionID string
	// Filter by type
	AddonType AddonType
	// Filter by template status
	IsTemplate *bool
	// Filter by billing type (usage-based or fixed/subscription)
	//
	//  - BILLING_TYPE_PERCENTAGE: Percentage-based pricing (e.g., 30% of parent plan)
	BillingType BillingType
	// Search filter for addon name, code, or description
	Search string
}

ListAddonsParams are the query parameters of AddonService.ListAddons.

type ListAddonsResponse

type ListAddonsResponse struct {
	Addons     []Addon `json:"addons,omitempty"`
	TotalCount int32   `json:"totalCount,omitempty"`
}

ListAddonsResponse is the API's v1ListAddonsResponse object.

type ListAgentsParams

type ListAgentsParams struct {
	Page          int32
	PageSize      int32
	GatewayRegion AgentGatewayRegion
	Search        string
}

ListAgentsParams are the query parameters of AgentService.ListAgents.

type ListAgentsResponse

type ListAgentsResponse struct {
	Agents     []GetAgentResponse `json:"agents,omitempty"`
	TotalCount int32              `json:"totalCount,omitempty"`
}

ListAgentsResponse is the API's v1ListAgentsResponse object.

type ListAllocationsParams

type ListAllocationsParams struct {
	Page     int32
	PageSize int32
	// Filter by prefix ID (required for filtering allocations)
	PrefixID string
}

ListAllocationsParams are the query parameters of IPAMService.ListAllocations.

type ListAllocationsResponse

type ListAllocationsResponse struct {
	Allocations []IPAllocation `json:"allocations,omitempty"`
	Total       int32          `json:"total,omitempty"`
}

ListAllocationsResponse is the API's v1ListAllocationsResponse object.

type ListAssignableNodesForPlanParams

type ListAssignableNodesForPlanParams struct {
	// Optional: set for create-from-template. Empty when plan_id is used.
	TemplatePlanID string
	// Optional: set for edit existing plan. Empty when template_plan_id is used.
	PlanID   string
	RegionID string
}

ListAssignableNodesForPlanParams are the query parameters of ProviderPlanService.ListAssignableNodesForPlan.

type ListAssignableNodesForPlanResponse

type ListAssignableNodesForPlanResponse struct {
	Nodes []AssignableNodeView `json:"nodes,omitempty"`
}

ListAssignableNodesForPlanResponse is the API's v1ListAssignableNodesForPlanResponse object.

type ListAvailableAddonsParams

type ListAvailableAddonsParams struct {
	FilterProviderID string
	VMID             string
	FilterAddonType  AddonType
	// - BILLING_TYPE_PERCENTAGE: Percentage-based pricing (e.g., 30% of parent plan)
	FilterBillingType BillingType
	Search            string
	Page              int32
	PageSize          int32
}

ListAvailableAddonsParams are the query parameters of MarketplaceService.ListAvailableAddons.

type ListAvailableAddonsResponse

type ListAvailableAddonsResponse struct {
	Addons     []Addon `json:"addons,omitempty"`
	TotalCount int32   `json:"totalCount,omitempty"`
}

ListAvailableAddonsResponse is the API's v1ListAvailableAddonsResponse object.

type ListAvailableIPsParams

type ListAvailableIPsParams struct {
	// Limit number of IPs returned (default: 100)
	Limit int32
}

ListAvailableIPsParams are the query parameters of IPAMService.ListAvailableIPs.

type ListAvailableIPsResponse

type ListAvailableIPsResponse struct {
	AllocatedCount int32    `json:"allocatedCount,omitempty"`
	AvailableCount int32    `json:"availableCount,omitempty"`
	AvailableIPs   []string `json:"availableIps,omitempty"`
	ReservedCount  int32    `json:"reservedCount,omitempty"`
	TotalIPs       int32    `json:"totalIps,omitempty"`
}

ListAvailableIPsResponse is the API's v1ListAvailableIPsResponse object.

type ListAvailablePlansParams

type ListAvailablePlansParams struct {
	// Optional filters
	//
	// Filter by country name (case-insensitive)
	FilterCountry string
	// Filter by city name (case-insensitive)
	FilterCity string
	// Filter by billing type
	//
	//  - BILLING_TYPE_PERCENTAGE: Percentage-based pricing (e.g., 30% of parent plan)
	FilterBillingType BillingType
	// Filter by compute type
	//
	//  - COMPUTE_TYPE_GENERAL_COMPUTE: GC - General Compute (balanced performance)
	//  - COMPUTE_TYPE_HIGH_FREQUENCY: HF - High Frequency (CPU-optimized, high clock speeds)
	//  - COMPUTE_TYPE_HIGH_PERFORMANCE: HP - High Performance (next-gen CPUs, NVMe storage)
	//  - COMPUTE_TYPE_GENERAL_PURPOSE: GP - General Purpose (balanced dedicated resources)
	//  - COMPUTE_TYPE_CPU_OPTIMIZED: CPU - CPU Optimized (high CPU-to-memory ratio)
	//  - COMPUTE_TYPE_MEMORY_OPTIMIZED: MEM - Memory Optimized (high memory-to-CPU ratio)
	//  - COMPUTE_TYPE_STORAGE_OPTIMIZED: STO - Storage Optimized (high storage capacity)
	//  - COMPUTE_TYPE_VERY_HIGH_FREQUENCY: VHF - Very High Frequency (highest clock dedicated CPUs)
	//  - COMPUTE_TYPE_GAME_SERVER: GS - Game Server (per-CPU SKU dedicated plans, e.g. DC-GS-9950X-*)
	FilterComputeType ComputeType
	// Filter by compute category
	//
	//  - COMPUTE_CATEGORY_SHARED_COMPUTE: Shared compute (shared resources, cost-effective)
	//  - COMPUTE_CATEGORY_DEDICATED_COMPUTE: Dedicated compute (dedicated resources, higher performance)
	FilterComputeCategory ComputeCategory
	FilterAssetType       AssetType
}

ListAvailablePlansParams are the query parameters of MarketplaceService.ListAvailablePlans.

type ListAvailablePlansResponse

type ListAvailablePlansResponse struct {
	Plans      []AvailablePlanCode `json:"plans,omitempty"`
	TotalCount int32               `json:"totalCount,omitempty"`
}

ListAvailablePlansResponse is the API's v1ListAvailablePlansResponse object.

type ListAvailableRegionsParams

type ListAvailableRegionsParams struct {
	// When set, only cities that sell a marketplace-listable plan of this asset type.
	// Unspecified keeps every marketplace city (virtual machines and game servers).
	FilterAssetType AssetType
}

ListAvailableRegionsParams are the query parameters of MarketplaceService.ListAvailableRegions.

type ListAvailableRegionsResponse

type ListAvailableRegionsResponse struct {
	Regions    []RegionLocation `json:"regions,omitempty"`
	TotalCount int32            `json:"totalCount,omitempty"`
}

ListAvailableRegionsResponse is the API's v1ListAvailableRegionsResponse object.

type ListBackupsParams

type ListBackupsParams struct {
	Status   BackupStatus
	Page     int32
	PageSize int32
}

ListBackupsParams are the query parameters of BackupService.ListBackups.

type ListBackupsResponse

type ListBackupsResponse struct {
	Backups    []Backup `json:"backups,omitempty"`
	TotalCount int32    `json:"totalCount,omitempty"`
}

ListBackupsResponse is the API's v1ListBackupsResponse object.

type ListClientProviderReviewAssetsParams

type ListClientProviderReviewAssetsParams struct {
	Page     int32
	PageSize int32
	// Optional filter (hostname / provider name), case-insensitive substring.
	Search string
}

ListClientProviderReviewAssetsParams are the query parameters of ClientProviderReviewService.ListClientProviderReviewAssets.

type ListClientProviderReviewAssetsResponse

type ListClientProviderReviewAssetsResponse struct {
	Assets []ClientProviderReviewAssetItem `json:"assets,omitempty"`
	// Submitted reviews across all assets (not just this page).
	ReviewedAssetCount int32 `json:"reviewedAssetCount,omitempty"`
	TotalCount         int32 `json:"totalCount,omitempty"`
}

ListClientProviderReviewAssetsResponse is the API's v1ListClientProviderReviewAssetsResponse object.

type ListClientsParams

type ListClientsParams struct {
	Page     int32
	PageSize int32
}

ListClientsParams are the query parameters of OAuth2Service.ListClients.

type ListCloudInitTemplatesParams

type ListCloudInitTemplatesParams struct {
	Page     int32
	PageSize int32
	// If not set, returns both template and non-template. If true, returns only templates. If false, returns only non-templates.
	FilterIsTemplate *bool
}

ListCloudInitTemplatesParams are the query parameters of CloudInitTemplateService.ListCloudInitTemplates.

type ListCloudInitTemplatesResponse

type ListCloudInitTemplatesResponse struct {
	CloudInitTemplates []CloudInitTemplate `json:"cloudInitTemplates,omitempty"`
	TotalCount         int32               `json:"totalCount,omitempty"`
}

ListCloudInitTemplatesResponse is the API's v1ListCloudInitTemplatesResponse object.

type ListCloudInitUserDataParams

type ListCloudInitUserDataParams struct {
	Page     int32
	PageSize int32
}

ListCloudInitUserDataParams are the query parameters of CloudInitUserDataService.ListCloudInitUserData.

type ListCloudInitUserDataResponse

type ListCloudInitUserDataResponse struct {
	Profiles   []CloudInitUserData `json:"profiles,omitempty"`
	TotalCount int32               `json:"totalCount,omitempty"`
}

ListCloudInitUserDataResponse is the API's v1ListCloudInitUserDataResponse object.

type ListConnectTaxRegistrationsResponse

type ListConnectTaxRegistrationsResponse struct {
	Registrations []ConnectTaxRegistration `json:"registrations,omitempty"`
}

ListConnectTaxRegistrationsResponse is the API's v1ListConnectTaxRegistrationsResponse object.

type ListConversationsResponse

type ListConversationsResponse struct {
	Conversations []ConversationInfo `json:"conversations,omitempty"`
	TotalCount    int32              `json:"totalCount,omitempty"`
}

ListConversationsResponse is the API's v1ListConversationsResponse object.

type ListCountriesCitiesParams

type ListCountriesCitiesParams struct {
	Query    string
	Page     int32
	PageSize int32
}

ListCountriesCitiesParams are the query parameters of RegionService.ListCountriesCities.

type ListCountriesCitiesResponse

type ListCountriesCitiesResponse struct {
	Countries  []Country `json:"countries,omitempty"`
	TotalCount int32     `json:"totalCount,omitempty"`
}

ListCountriesCitiesResponse is the API's v1ListCountriesCitiesResponse object.

type ListCouponCodeBatchesParams

type ListCouponCodeBatchesParams struct {
	Page     int32
	PageSize int32
}

ListCouponCodeBatchesParams are the query parameters of CouponService.ListCouponCodeBatches.

type ListCouponCodeBatchesResponse

type ListCouponCodeBatchesResponse struct {
	Batches    []CouponCodeBatch `json:"batches,omitempty"`
	Page       int32             `json:"page,omitempty"`
	PageSize   int32             `json:"pageSize,omitempty"`
	TotalCount int32             `json:"totalCount,omitempty"`
}

ListCouponCodeBatchesResponse is the API's v1ListCouponCodeBatchesResponse object.

type ListCouponCodesParams

type ListCouponCodesParams struct {
	Page     int32
	PageSize int32
	BatchID  string
	Campaign string
	Channel  string
}

ListCouponCodesParams are the query parameters of CouponService.ListCouponCodes.

type ListCouponCodesResponse

type ListCouponCodesResponse struct {
	Codes      []CouponCode `json:"codes,omitempty"`
	Page       int32        `json:"page,omitempty"`
	PageSize   int32        `json:"pageSize,omitempty"`
	TotalCount int32        `json:"totalCount,omitempty"`
}

ListCouponCodesResponse is the API's v1ListCouponCodesResponse object.

type ListCouponRedemptionsParams

type ListCouponRedemptionsParams struct {
	Page      int32
	PageSize  int32
	AssetType string
}

ListCouponRedemptionsParams are the query parameters of CouponService.ListCouponRedemptions.

type ListCouponRedemptionsResponse

type ListCouponRedemptionsResponse struct {
	Page        int32              `json:"page,omitempty"`
	PageSize    int32              `json:"pageSize,omitempty"`
	Redemptions []CouponRedemption `json:"redemptions,omitempty"`
	TotalCount  int32              `json:"totalCount,omitempty"`
}

ListCouponRedemptionsResponse is the API's v1ListCouponRedemptionsResponse object.

type ListCouponsParams

type ListCouponsParams struct {
	Page      int32
	PageSize  int32
	AssetType string
	// Only coupons whose validity ends within 14 days.
	ExpiringSoon *bool
	Search       string
}

ListCouponsParams are the query parameters of CouponService.ListCoupons.

type ListCouponsResponse

type ListCouponsResponse struct {
	Coupons    []Coupon `json:"coupons,omitempty"`
	Page       int32    `json:"page,omitempty"`
	PageSize   int32    `json:"pageSize,omitempty"`
	TotalCount int32    `json:"totalCount,omitempty"`
}

ListCouponsResponse is the API's v1ListCouponsResponse object.

type ListCreditLedgerEntriesParams

type ListCreditLedgerEntriesParams struct {
	Page      int32
	PageSize  int32
	EntryType CreditLedgerEntryType
}

ListCreditLedgerEntriesParams are the query parameters of CreditService.ListCreditLedgerEntries.

type ListCreditLedgerEntriesResponse

type ListCreditLedgerEntriesResponse struct {
	Entries    []CreditLedgerEntryProto `json:"entries,omitempty"`
	Page       int32                    `json:"page,omitempty"`
	PageSize   int32                    `json:"pageSize,omitempty"`
	TotalCount int32                    `json:"totalCount,omitempty"`
}

ListCreditLedgerEntriesResponse is the API's v1ListCreditLedgerEntriesResponse object.

type ListDNSGeoLocationsParams

type ListDNSGeoLocationsParams struct {
	// Optional filter: continent, country, region, or group.
	Kind string
}

ListDNSGeoLocationsParams are the query parameters of DNSRecordService.ListDNSGeoLocations.

type ListDNSGeoLocationsResponse

type ListDNSGeoLocationsResponse struct {
	Locations []DNSGeoLocation `json:"locations,omitempty"`
}

ListDNSGeoLocationsResponse is the API's v1ListDnsGeoLocationsResponse object.

type ListDNSGeoRecordsResponse

type ListDNSGeoRecordsResponse struct {
	Records []DNSGeoRecord `json:"records,omitempty"`
}

ListDNSGeoRecordsResponse is the API's v1ListDnsGeoRecordsResponse object.

type ListDNSRecordsParams

type ListDNSRecordsParams struct {
	Name     string
	Type     string
	Page     int32
	PageSize int32
}

ListDNSRecordsParams are the query parameters of DNSRecordService.ListDNSRecords.

type ListDNSRecordsResponse

type ListDNSRecordsResponse struct {
	Page       int32       `json:"page,omitempty"`
	PageSize   int32       `json:"pageSize,omitempty"`
	Records    []DNSRecord `json:"records,omitempty"`
	TotalCount int32       `json:"totalCount,omitempty"`
	Types      []string    `json:"types,omitempty"`
}

ListDNSRecordsResponse is the API's v1ListDnsRecordsResponse object.

type ListDNSZonesParams

type ListDNSZonesParams struct {
	Page     int32
	PageSize int32
}

ListDNSZonesParams are the query parameters of DNSZoneService.ListDNSZones.

type ListDNSZonesResponse

type ListDNSZonesResponse struct {
	Page       int32     `json:"page,omitempty"`
	PageSize   int32     `json:"pageSize,omitempty"`
	TotalCount int32     `json:"totalCount,omitempty"`
	Zones      []DNSZone `json:"zones,omitempty"`
}

ListDNSZonesResponse is the API's v1ListDnsZonesResponse object.

type ListDashboardAddonCatalogStatsParams

type ListDashboardAddonCatalogStatsParams struct {
	AddonSearch            string
	AddonTypeFilter        string
	AddonBillingTypeFilter string
	Page                   int32
	PageSize               int32
}

ListDashboardAddonCatalogStatsParams are the query parameters of ProviderDashboardService.ListDashboardAddonCatalogStats.

type ListDashboardAddonCatalogStatsResponse

type ListDashboardAddonCatalogStatsResponse struct {
	AddonCatalog                   []ProviderDashboardAddonCatalogRow `json:"addonCatalog,omitempty"`
	AddonCatalogFilteredTotal      int32                              `json:"addonCatalogFilteredTotal,omitempty"`
	KpiActiveAddonSubscriptionsSum int32                              `json:"kpiActiveAddonSubscriptionsSum,omitempty"`
}

ListDashboardAddonCatalogStatsResponse is the API's v1ListDashboardAddonCatalogStatsResponse object.

type ListDashboardIPAMAssignmentsParams

type ListDashboardIPAMAssignmentsParams struct {
	NetworkID  string
	Search     string
	PlatformID string
	Page       int32
	PageSize   int32
	IPFamily   DashboardIPAMAssignmentIPFamily
}

ListDashboardIPAMAssignmentsParams are the query parameters of ProviderDashboardService.ListDashboardIPAMAssignments.

type ListDashboardIPAMAssignmentsResponse

type ListDashboardIPAMAssignmentsResponse struct {
	Assignments []DashboardIPAMAssignmentRow `json:"assignments,omitempty"`
	TotalCount  int32                        `json:"totalCount,omitempty"`
}

ListDashboardIPAMAssignmentsResponse is the API's v1ListDashboardIpamAssignmentsResponse object.

type ListDashboardIPAMParams

type ListDashboardIPAMParams struct {
	NetworkID                  string
	AllocatedSampleIPsPage     int32
	AllocatedSampleIPsPageSize int32
}

ListDashboardIPAMParams are the query parameters of ProviderDashboardService.ListDashboardIPAM.

type ListDashboardIPAMResponse

type ListDashboardIPAMResponse struct {
	AllocatedSampleIPsHasMore bool                         `json:"allocatedSampleIpsHasMore,omitempty"`
	Networks                  []DashboardIPAMNetworkRollup `json:"networks,omitempty"`
}

ListDashboardIPAMResponse is the API's v1ListDashboardIpamResponse object.

type ListDashboardInfrastructureParams

type ListDashboardInfrastructureParams struct {
	PlatformID string
	RegionID   string
	Page       int32
	PageSize   int32
}

ListDashboardInfrastructureParams are the query parameters of ProviderDashboardService.ListDashboardInfrastructure.

type ListDashboardInfrastructureResponse

type ListDashboardInfrastructureResponse struct {
	ByNode         []ProviderDashboardNodeRollup `json:"byNode,omitempty"`
	NodeTotalCount int32                         `json:"nodeTotalCount,omitempty"`
}

ListDashboardInfrastructureResponse is the API's v1ListDashboardInfrastructureResponse object.

type ListDashboardPlanSubscriptionStatsParams

type ListDashboardPlanSubscriptionStatsParams struct {
	PlanSearch            string
	PlanBillingTypeFilter string
	PlanAssetFilter       string
	PlansPage             int32
	PlansPageSize         int32
}

ListDashboardPlanSubscriptionStatsParams are the query parameters of ProviderDashboardService.ListDashboardPlanSubscriptionStats.

type ListDashboardPlanSubscriptionStatsResponse

type ListDashboardPlanSubscriptionStatsResponse struct {
	KpiActiveSubscriptionsSum int32                                   `json:"kpiActiveSubscriptionsSum,omitempty"`
	KpiPlanCount              int32                                   `json:"kpiPlanCount,omitempty"`
	KpiVMAssetsSum            int32                                   `json:"kpiVmAssetsSum,omitempty"`
	Plans                     []ProviderDashboardPlanSubscriptionStat `json:"plans,omitempty"`
	PlansFilteredTotal        int32                                   `json:"plansFilteredTotal,omitempty"`
}

ListDashboardPlanSubscriptionStatsResponse is the API's v1ListDashboardPlanSubscriptionStatsResponse object.

type ListDashboardTicketStatisticsParams

type ListDashboardTicketStatisticsParams struct {
	FromTime *time.Time
	ToTime   *time.Time
}

ListDashboardTicketStatisticsParams are the query parameters of ProviderDashboardService.ListDashboardTicketStatistics.

type ListDashboardTicketStatisticsResponse

type ListDashboardTicketStatisticsResponse struct {
	AverageFirstResponseTimeSeconds  int64                                 `json:"averageFirstResponseTimeSeconds,omitempty,string"`
	AverageResolutionTimeSeconds     int64                                 `json:"averageResolutionTimeSeconds,omitempty,string"`
	AwaitingReplyTickets             int32                                 `json:"awaitingReplyTickets,omitempty"`
	ByCaseType                       []DashboardTicketStatisticsByCaseType `json:"byCaseType,omitempty"`
	ByPriority                       []DashboardTicketStatisticsByPriority `json:"byPriority,omitempty"`
	ByStatus                         []DashboardTicketStatisticsByStatus   `json:"byStatus,omitempty"`
	ClosedTickets                    int32                                 `json:"closedTickets,omitempty"`
	OpenNeedingProviderFirstResponse int32                                 `json:"openNeedingProviderFirstResponse,omitempty"`
	OpenTickets                      int32                                 `json:"openTickets,omitempty"`
	SLACompliantTickets              int32                                 `json:"slaCompliantTickets,omitempty"`
	SLAFirstResponseBreachedTickets  int32                                 `json:"slaFirstResponseBreachedTickets,omitempty"`
	// Deprecated: ticket SLA is first-response only. Always 0; kept for wire compatibility.
	SLAResolutionBreachedTickets int32                                `json:"slaResolutionBreachedTickets,omitempty"`
	TicketsCreatedPerDay         []DashboardTicketStatisticsDayBucket `json:"ticketsCreatedPerDay,omitempty"`
	TotalTickets                 int32                                `json:"totalTickets,omitempty"`
}

ListDashboardTicketStatisticsResponse is the API's v1ListDashboardTicketStatisticsResponse object.

type ListDashboardVirtualMachinesParams

type ListDashboardVirtualMachinesParams struct {
	PlatformID            string
	RegionID              string
	NodeID                string
	CustomerEmailContains string
	VMPage                int32
	VMPageSize            int32
	VmtemplateID          string
}

ListDashboardVirtualMachinesParams are the query parameters of ProviderDashboardService.ListDashboardVirtualMachines.

type ListDashboardVirtualMachinesResponse

type ListDashboardVirtualMachinesResponse struct {
	DashboardVMCountTotal int32                        `json:"dashboardVmCountTotal,omitempty"`
	VirtualMachines       []DashboardVirtualMachineRow `json:"virtualMachines,omitempty"`
	// Distinct VM template IDs with at least one provider-scoped dashboard VM (unfiltered facet for sidebar).
	VmtemplateIDsWithVirtualMachines []string `json:"vmtemplateIdsWithVirtualMachines,omitempty"`
}

ListDashboardVirtualMachinesResponse is the API's v1ListDashboardVirtualMachinesResponse object.

type ListDatabasesResponse

type ListDatabasesResponse struct {
	Databases []GameServerDatabase `json:"databases,omitempty"`
}

ListDatabasesResponse is the API's v1ListDatabasesResponse object.

type ListDatacentersParams

type ListDatacentersParams struct {
	Query    string
	Page     int32
	PageSize int32
}

ListDatacentersParams are the query parameters of RegionService.ListDatacenters.

type ListDatacentersResponse

type ListDatacentersResponse struct {
	Datacenters []DatacenterInfo `json:"datacenters,omitempty"`
	TotalCount  int32            `json:"totalCount,omitempty"`
}

ListDatacentersResponse is the API's v1ListDatacentersResponse object.

type ListDistrosResponse

type ListDistrosResponse struct {
	Distros []DistroCatalogEntry `json:"distros,omitempty"`
}

ListDistrosResponse: ListDistrosResponse is the guest OS catalog.

type ListEffectivePermissionsParams

type ListEffectivePermissionsParams struct {
	UserIDs []string
}

ListEffectivePermissionsParams are the query parameters of PermissionService.ListEffectivePermissions.

type ListEffectivePermissionsResponse

type ListEffectivePermissionsResponse struct {
	EffectivePermissions map[string]EffectivePermissions `json:"effectivePermissions,omitempty"`
	TotalCount           int32                           `json:"totalCount,omitempty"`
}

ListEffectivePermissionsResponse is the API's v1ListEffectivePermissionsResponse object.

type ListEligibleNodesForPlanResponse

type ListEligibleNodesForPlanResponse struct {
	Nodes []PlanLiveValidationNodeView `json:"nodes,omitempty"`
}

ListEligibleNodesForPlanResponse is the API's v1ListEligibleNodesForPlanResponse object.

type ListEnvironmentVariablesParams

type ListEnvironmentVariablesParams struct {
	Page      int32
	PageSize  int32
	FilterKey string
}

ListEnvironmentVariablesParams are the query parameters of EnvironmentVariableService.ListEnvironmentVariables.

type ListEnvironmentVariablesResponse

type ListEnvironmentVariablesResponse struct {
	EnvironmentVariables []EnvironmentVariable `json:"environmentVariables,omitempty"`
	TotalCount           int32                 `json:"totalCount,omitempty"`
}

ListEnvironmentVariablesResponse is the API's v1ListEnvironmentVariablesResponse object.

type ListFilesParams

type ListFilesParams struct {
	Directory string
}

ListFilesParams are the query parameters of GameServerService.ListFiles.

type ListFilesResponse

type ListFilesResponse struct {
	Files []GameServerFile `json:"files,omitempty"`
}

ListFilesResponse is the API's v1ListFilesResponse object.

type ListFirewallAddressGroupsParams

type ListFirewallAddressGroupsParams struct {
	Page     int32
	PageSize int32
	// Note: family filter removed as address groups can now contain mixed IPv4/IPv6
	Name string
}

ListFirewallAddressGroupsParams are the query parameters of FirewallService.ListFirewallAddressGroups.

type ListFirewallAddressGroupsResponse

type ListFirewallAddressGroupsResponse struct {
	Groups     []FirewallAddressGroup `json:"groups,omitempty"`
	TotalCount int32                  `json:"totalCount,omitempty"`
}

ListFirewallAddressGroupsResponse is the API's v1ListFirewallAddressGroupsResponse object.

type ListFirewallRuleSetsParams

type ListFirewallRuleSetsParams struct {
	Page     int32
	PageSize int32
	Name     string
	// Optional: Filter by whether any virtual machine is attached to the ruleset.
	//
	//  - FIREWALL_RULESET_ATTACHMENT_FILTER_UNSPECIFIED: All rulesets
	//  - FIREWALL_RULESET_ATTACHMENT_FILTER_ATTACHED: Rulesets with at least one VM attached
	//  - FIREWALL_RULESET_ATTACHMENT_FILTER_UNATTACHED: Rulesets with no VMs attached
	FilterAttachment FirewallRuleSetAttachmentFilter
}

ListFirewallRuleSetsParams are the query parameters of FirewallService.ListFirewallRuleSets.

type ListFirewallRuleSetsResponse

type ListFirewallRuleSetsResponse struct {
	Rulesets   []FirewallRuleSet `json:"rulesets,omitempty"`
	TotalCount int32             `json:"totalCount,omitempty"`
}

ListFirewallRuleSetsResponse is the API's v1ListFirewallRuleSetsResponse object.

type ListFirewallRulesParams

type ListFirewallRulesParams struct {
	Page     int32
	PageSize int32
	// Optional: Filter by direction. If not specified, returns all rules regardless of direction.
	Direction FirewallDirection
}

ListFirewallRulesParams are the query parameters of FirewallService.ListFirewallRules.

type ListFirewallRulesResponse

type ListFirewallRulesResponse struct {
	Rules      []FirewallRuleResource `json:"rules,omitempty"`
	TotalCount int32                  `json:"totalCount,omitempty"`
}

ListFirewallRulesResponse is the API's v1ListFirewallRulesResponse object.

type ListGameServerAllocationsResponse

type ListGameServerAllocationsResponse struct {
	Allocations []GameServerAllocation `json:"allocations,omitempty"`
}

ListGameServerAllocationsResponse is the API's v1ListGameServerAllocationsResponse object.

type ListGameServerBackupsResponse

type ListGameServerBackupsResponse struct {
	Backups []GameServerBackup `json:"backups,omitempty"`
}

ListGameServerBackupsResponse is the API's v1ListGameServerBackupsResponse object.

type ListGameServerTemplatesParams

type ListGameServerTemplatesParams struct {
	PlatformID string
}

ListGameServerTemplatesParams are the query parameters of GameServerTemplateService.ListGameServerTemplates.

type ListGameServerTemplatesResponse

type ListGameServerTemplatesResponse struct {
	Templates []GameServerTemplate `json:"templates,omitempty"`
}

ListGameServerTemplatesResponse is the API's v1ListGameServerTemplatesResponse object.

type ListGameServersParams

type ListGameServersParams struct {
	PageSize int32
}

ListGameServersParams are the query parameters of GameServerService.ListGameServers.

type ListGameServersResponse

type ListGameServersResponse struct {
	GameServers []GameServer `json:"gameServers,omitempty"`
}

ListGameServersResponse is the API's v1ListGameServersResponse object.

type ListGroupsParams

type ListGroupsParams struct {
	Page         int32
	PageSize     int32
	FilterName   string
	FilterStatus Protov1Status
	Search       string
}

ListGroupsParams are the query parameters of GroupService.ListGroups.

type ListGroupsResponse

type ListGroupsResponse struct {
	Groups     []Group `json:"groups,omitempty"`
	TotalCount int32   `json:"totalCount,omitempty"`
}

ListGroupsResponse is the API's v1ListGroupsResponse object.

type ListHeldPayoutsParams

type ListHeldPayoutsParams struct {
	Page     int32
	PageSize int32
}

ListHeldPayoutsParams are the query parameters of PayoutInvoiceService.ListHeldPayouts.

type ListHeldPayoutsResponse

type ListHeldPayoutsResponse struct {
	HeldPayouts []HeldPayout `json:"heldPayouts,omitempty"`
	Page        int32        `json:"page,omitempty"`
	PageSize    int32        `json:"pageSize,omitempty"`
	TotalCount  int32        `json:"totalCount,omitempty"`
}

ListHeldPayoutsResponse is the API's v1ListHeldPayoutsResponse object.

type ListHighRiskCouponsParams

type ListHighRiskCouponsParams struct {
	Page                   int32
	PageSize               int32
	ProviderOrganizationID string
	// Also list inactive and banned coupons.
	IncludeInactive *bool
}

ListHighRiskCouponsParams are the query parameters of CouponService.ListHighRiskCoupons.

type ListHighRiskCouponsResponse

type ListHighRiskCouponsResponse struct {
	Coupons    []HighRiskCoupon `json:"coupons,omitempty"`
	Page       int32            `json:"page,omitempty"`
	PageSize   int32            `json:"pageSize,omitempty"`
	TotalCount int32            `json:"totalCount,omitempty"`
}

ListHighRiskCouponsResponse is the API's v1ListHighRiskCouponsResponse object.

type ListHookScriptsParams

type ListHookScriptsParams struct {
	Page     int32
	PageSize int32
	// Unspecified lists VM scripts, which is the previous behavior.
	Subject HookSubject
}

ListHookScriptsParams are the query parameters of HookScriptService.ListHookScripts.

type ListHookScriptsResponse

type ListHookScriptsResponse struct {
	HookScripts []HookScript `json:"hookScripts,omitempty"`
	Page        int32        `json:"page,omitempty"`
	PageSize    int32        `json:"pageSize,omitempty"`
	TotalCount  int32        `json:"totalCount,omitempty"`
}

ListHookScriptsResponse is the API's v1ListHookScriptsResponse object.

type ListInstantAppsParams

type ListInstantAppsParams struct {
	Page int32
	// -1 returns all apps (create/reinstall picker); otherwise 1..100.
	PageSize int32
	// Case-insensitive match on name or slug.
	Query string
	// Filter: app must include all listed categories when non-empty.
	Categories []string
	// - DISTRO_UBUNTU_22_04: Ubuntu distributions
	//  - DISTRO_FEDORA_43: Fedora distributions
	//  - DISTRO_DEBIAN_12: Debian distributions
	//  - DISTRO_CENTOS_9: CentOS distributions
	//  - DISTRO_ROCKY_9: Rocky Linux distributions
	//  - DISTRO_ALMALINUX_9: AlmaLinux distributions
	Distro Distro
}

ListInstantAppsParams are the query parameters of InstantAppService.ListInstantApps.

type ListInstantAppsResponse

type ListInstantAppsResponse struct {
	InstantApps []InstantApp `json:"instantApps,omitempty"`
	TotalCount  int32        `json:"totalCount,omitempty"`
}

ListInstantAppsResponse is the API's v1ListInstantAppsResponse object.

type ListInternalCommentsResponse

type ListInternalCommentsResponse struct {
	Comments []TicketInternalComment `json:"comments,omitempty"`
}

ListInternalCommentsResponse is the API's v1ListInternalCommentsResponse object.

type ListInvitesParams

type ListInvitesParams struct {
	Page        int32
	PageSize    int32
	FilterEmail string
	Search      string
}

ListInvitesParams are the query parameters of InviteService.ListInvites.

type ListInvitesResponse

type ListInvitesResponse struct {
	Invites    []Invite `json:"invites,omitempty"`
	TotalCount int32    `json:"totalCount,omitempty"`
}

ListInvitesResponse is the API's v1ListInvitesResponse object.

type ListInvoicesParams

type ListInvoicesParams struct {
	SubscriptionID string
	Status         InvoiceStatus
	Page           int32
	PageSize       int32
	OrderBy        string
}

ListInvoicesParams are the query parameters of InvoiceService.ListInvoices.

type ListInvoicesResponse

type ListInvoicesResponse struct {
	Invoices   []Invoice `json:"invoices,omitempty"`
	Page       int32     `json:"page,omitempty"`
	PageSize   int32     `json:"pageSize,omitempty"`
	TotalCount int32     `json:"totalCount,omitempty"`
}

ListInvoicesResponse is the API's v1ListInvoicesResponse object.

type ListLinkedIdentitiesResponse

type ListLinkedIdentitiesResponse struct {
	// True when the user has a local password (can unlink their last SSO identity).
	HasPassword bool             `json:"hasPassword,omitempty"`
	Identities  []LinkedIdentity `json:"identities,omitempty"`
	// True when the account was created by SSO sign-up.
	// Password set, change, and recovery stay disabled for that account.
	SSORegistered bool `json:"ssoRegistered,omitempty"`
}

ListLinkedIdentitiesResponse is the API's v1ListLinkedIdentitiesResponse object.

type ListMarketplaceProviderDirectoryParams

type ListMarketplaceProviderDirectoryParams struct {
	Page            int32
	PageSize        int32
	Search          string
	FilterAssetType AssetType
}

ListMarketplaceProviderDirectoryParams are the query parameters of MarketplaceService.ListMarketplaceProviderDirectory.

type ListMarketplaceProviderDirectoryResponse

type ListMarketplaceProviderDirectoryResponse struct {
	Page       int32          `json:"page,omitempty"`
	PageSize   int32          `json:"pageSize,omitempty"`
	Providers  []ProviderInfo `json:"providers,omitempty"`
	TotalCount int32          `json:"totalCount,omitempty"`
}

ListMarketplaceProviderDirectoryResponse is the API's v1ListMarketplaceProviderDirectoryResponse object.

type ListMetricsParams

type ListMetricsParams struct {
	Page         int32
	PageSize     int32
	BillableOnly *bool
}

ListMetricsParams are the query parameters of MetricService.ListMetrics.

type ListMetricsResponse

type ListMetricsResponse struct {
	Metrics    []Metric `json:"metrics,omitempty"`
	TotalCount int32    `json:"totalCount,omitempty"`
}

ListMetricsResponse is the API's v1ListMetricsResponse object.

type ListMetricsWriteCredentialsParams

type ListMetricsWriteCredentialsParams struct {
	// Optional: omit or leave empty to list credentials for the whole organization.
	AgentID        string
	IncludeRevoked *bool
	Page           int32
	// -1 means fetch all; otherwise 1..100.
	PageSize int32
}

ListMetricsWriteCredentialsParams are the query parameters of MetricsCredentialService.ListMetricsWriteCredentials.

type ListMetricsWriteCredentialsResponse

type ListMetricsWriteCredentialsResponse struct {
	Credentials []MetricsWriteCredential `json:"credentials,omitempty"`
	TotalCount  int32                    `json:"totalCount,omitempty"`
}

ListMetricsWriteCredentialsResponse is the API's v1ListMetricsWriteCredentialsResponse object.

type ListMyInvitesParams

type ListMyInvitesParams struct {
	Page     int32
	PageSize int32
}

ListMyInvitesParams are the query parameters of InviteService.ListMyInvites.

type ListMyInvitesResponse

type ListMyInvitesResponse struct {
	Invites    []Invite `json:"invites,omitempty"`
	TotalCount int32    `json:"totalCount,omitempty"`
}

ListMyInvitesResponse is the API's v1ListMyInvitesResponse object.

type ListNetworkNodesResponse

type ListNetworkNodesResponse struct {
	Nodes []Node `json:"nodes,omitempty"`
}

ListNetworkNodesResponse is the API's v1ListNetworkNodesResponse object.

type ListNetworksParams

type ListNetworksParams struct {
	Page     int32
	PageSize int32
}

ListNetworksParams are the query parameters of IPAMService.ListNetworks.

type ListNetworksResponse

type ListNetworksResponse struct {
	Networks []Network `json:"networks,omitempty"`
	Total    int32     `json:"total,omitempty"`
}

ListNetworksResponse is the API's v1ListNetworksResponse object.

type ListNodesParams

type ListNodesParams struct {
	Page     int32
	PageSize int32
	// Optional filter; UUID format validated in ListNodes when set.
	PlatformID    string
	ServiceStatus ServiceStatus
	Expand        []string
	Search        string
	RegionID      string
}

ListNodesParams are the query parameters of NodeService.ListNodes.

type ListNodesResponse

type ListNodesResponse struct {
	Nodes      []NodeWithExpandedRegion `json:"nodes,omitempty"`
	TotalCount int32                    `json:"totalCount,omitempty"`
}

ListNodesResponse is the API's v1ListNodesResponse object.

type ListNotificationSettingsResponse

type ListNotificationSettingsResponse struct {
	NotificationSettings []NotificationSetting `json:"notificationSettings,omitempty"`
	TotalCount           int32                 `json:"totalCount,omitempty"`
}

ListNotificationSettingsResponse is the API's v1ListNotificationSettingsResponse object.

type ListNotificationTemplatesResponse

type ListNotificationTemplatesResponse struct {
	NotificationTemplates []NotificationTemplate `json:"notificationTemplates,omitempty"`
	TotalCount            int32                  `json:"totalCount,omitempty"`
}

ListNotificationTemplatesResponse is the API's v1ListNotificationTemplatesResponse object.

type ListOAuth2ClientsResponse

type ListOAuth2ClientsResponse struct {
	Clients    []OAuth2Client `json:"clients,omitempty"`
	Page       int32          `json:"page,omitempty"`
	PageSize   int32          `json:"pageSize,omitempty"`
	TotalCount int32          `json:"totalCount,omitempty"`
}

ListOAuth2ClientsResponse is the API's v1ListOAuth2ClientsResponse object.

type ListOrderGamesParams

type ListOrderGamesParams struct {
	PlanID string
}

ListOrderGamesParams are the query parameters of GameServerService.ListOrderGames.

type ListOrderGamesResponse

type ListOrderGamesResponse struct {
	Games []OrderGame `json:"games,omitempty"`
}

ListOrderGamesResponse is the API's v1ListOrderGamesResponse object.

type ListOrganizationsParams

type ListOrganizationsParams struct {
	Page     int32
	PageSize int32
}

ListOrganizationsParams are the query parameters of OrganizationService.ListOrganizations.

type ListOrganizationsResponse

type ListOrganizationsResponse struct {
	Organizations []Organization `json:"organizations,omitempty"`
	TotalCount    int32          `json:"totalCount,omitempty"`
}

ListOrganizationsResponse is the API's v1ListOrganizationsResponse object.

type ListPaymentMethodsParams

type ListPaymentMethodsParams struct {
	// Filters
	//
	// Filter by subscription
	SubscriptionID string
	// Only return default payment method
	OnlyDefault *bool
	// Pagination
	Page     int32
	PageSize int32
}

ListPaymentMethodsParams are the query parameters of PaymentMethodService.ListPaymentMethods.

type ListPaymentMethodsResponse

type ListPaymentMethodsResponse struct {
	PaymentMethods []PaymentMethod `json:"paymentMethods,omitempty"`
	TotalCount     int32           `json:"totalCount,omitempty"`
}

ListPaymentMethodsResponse is the API's v1ListPaymentMethodsResponse object.

type ListPaymentsParams

type ListPaymentsParams struct {
	InvoiceID string
	Status    PaymentStatus
	Page      int32
	PageSize  int32
}

ListPaymentsParams are the query parameters of PaymentService.ListPayments.

type ListPaymentsResponse

type ListPaymentsResponse struct {
	Page       int32     `json:"page,omitempty"`
	PageSize   int32     `json:"pageSize,omitempty"`
	Payments   []Payment `json:"payments,omitempty"`
	TotalCount int32     `json:"totalCount,omitempty"`
}

ListPaymentsResponse is the API's v1ListPaymentsResponse object.

type ListPayoutInvoicesParams

type ListPayoutInvoicesParams struct {
	Page     int32
	PageSize int32
	// Filter by payout status
	Status PayoutStatus
}

ListPayoutInvoicesParams are the query parameters of PayoutInvoiceService.ListPayoutInvoices.

type ListPayoutInvoicesResponse

type ListPayoutInvoicesResponse struct {
	Page           int32           `json:"page,omitempty"`
	PageSize       int32           `json:"pageSize,omitempty"`
	PayoutInvoices []PayoutInvoice `json:"payoutInvoices,omitempty"`
	TotalCount     int32           `json:"totalCount,omitempty"`
}

ListPayoutInvoicesResponse is the API's v1ListPayoutInvoicesResponse object.

type ListPermissionsParams

type ListPermissionsParams struct {
	Page       int32
	PageSize   int32
	FilterName string
}

ListPermissionsParams are the query parameters of PermissionService.ListPermissions.

type ListPermissionsResponse

type ListPermissionsResponse struct {
	Permissions []Permission `json:"permissions,omitempty"`
	TotalCount  int32        `json:"totalCount,omitempty"`
}

ListPermissionsResponse is the API's v1ListPermissionsResponse object.

type ListPlanLiveValidationBenchmarksParams

type ListPlanLiveValidationBenchmarksParams struct {
	NodeID   string
	Page     int32
	PageSize int32
}

ListPlanLiveValidationBenchmarksParams are the query parameters of LiveValidationService.ListPlanLiveValidationBenchmarks.

type ListPlanLiveValidationBenchmarksResponse

type ListPlanLiveValidationBenchmarksResponse struct {
	Benchmarks []PlanLiveValidationBenchmarkView `json:"benchmarks,omitempty"`
}

ListPlanLiveValidationBenchmarksResponse is the API's v1ListPlanLiveValidationBenchmarksResponse object.

type ListPlanLiveValidationsParams

type ListPlanLiveValidationsParams struct {
	PlanID   string
	Search   string
	Page     int32
	PageSize int32
}

ListPlanLiveValidationsParams are the query parameters of LiveValidationService.ListPlanLiveValidations.

type ListPlanLiveValidationsResponse

type ListPlanLiveValidationsResponse struct {
	TotalCount  int32                    `json:"totalCount,omitempty"`
	Validations []PlanLiveValidationView `json:"validations,omitempty"`
}

ListPlanLiveValidationsResponse is the API's v1ListPlanLiveValidationsResponse object.

type ListPlansParams

type ListPlansParams struct {
	Page     int32
	PageSize int32
	// Filter to show only template plans (true) or only non-template plans
	// (false) If not specified, shows both template and non-template plans
	IsTemplate *bool
	// Filter by end user type (client, provider, or all)
	// If not specified, shows plans for all end user types based on organization
	// permissions
	EndUser EndUser
	// Search filter for plan name, code, or description
	Search string
	// Filter by asset type (vm, gameserver, etc.)
	AssetType AssetType
	// Filter by billing type (subscription, usage, etc.)
	// If not specified, shows plans for all billing types
	//
	//  - BILLING_TYPE_PERCENTAGE: Percentage-based pricing (e.g., 30% of parent plan)
	BillingType BillingType
	// Filter by compute type (optional). If provided, only plans with matching compute type in their name are returned.
	// Examples: "high performance", "high frequency", "general compute", "general purpose", "cpu optimized", "memory optimized", "storage optimized"
	// Filtering is case-insensitive.
	FilterComputeType string
	// Filter by plan code (optional). If provided, only plans with matching code are returned.
	// Filtering is case-insensitive.
	// Examples: "SC-GC-1C-1G-20", "DC-HF-4C-8G-160"
	// Filtering is case-insensitive.
	FilterCode string
}

ListPlansParams are the query parameters of PlanService.ListPlans.

type ListPlansResponse

type ListPlansResponse struct {
	Plans      []Plan `json:"plans,omitempty"`
	TotalCount int32  `json:"totalCount,omitempty"`
}

ListPlansResponse is the API's v1ListPlansResponse object.

type ListPlatformsParams

type ListPlatformsParams struct {
	Page          int32
	PageSize      int32
	ServiceStatus ServiceStatus
	Search        string
}

ListPlatformsParams are the query parameters of PlatformService.ListPlatforms.

type ListPlatformsResponse

type ListPlatformsResponse struct {
	Platforms  []Platform `json:"platforms,omitempty"`
	TotalCount int32      `json:"totalCount,omitempty"`
}

ListPlatformsResponse is the API's v1ListPlatformsResponse object.

type ListPrefixesParams

type ListPrefixesParams struct {
	Page            int32
	PageSize        int32
	FilterNetworkID string
}

ListPrefixesParams are the query parameters of IPAMService.ListPrefixes.

type ListPrefixesResponse

type ListPrefixesResponse struct {
	Prefixes []Prefix `json:"prefixes,omitempty"`
	Total    int32    `json:"total,omitempty"`
}

ListPrefixesResponse is the API's v1ListPrefixesResponse object.

type ListPreflightChecksParams

type ListPreflightChecksParams struct {
	PlanCode   string
	PlanID     string
	IssuesOnly *bool
	Page       int32
	PageSize   int32
}

ListPreflightChecksParams are the query parameters of PreflightService.ListPreflightChecks.

type ListPreflightChecksResponse

type ListPreflightChecksResponse struct {
	// Explicit presence: false when PLAN_MARKETPLACE_READY is disabled in config (interval may be omitted as 0).
	MarketplaceReadyCheckEnabled bool `json:"marketplaceReadyCheckEnabled,omitempty"`
	// Resolved from preflight.PLAN_MARKETPLACE_READY interval (seconds); for UI scheduling hints.
	MarketplaceReadyCheckIntervalSeconds int32               `json:"marketplaceReadyCheckIntervalSeconds,omitempty"`
	Plans                                []PlanPreflightView `json:"plans,omitempty"`
	TotalCount                           int32               `json:"totalCount,omitempty"`
}

ListPreflightChecksResponse is the API's v1ListPreflightChecksResponse object.

type ListPromoCreditGrantsParams

type ListPromoCreditGrantsParams struct {
	Page     int32
	PageSize int32
}

ListPromoCreditGrantsParams are the query parameters of CreditService.ListPromoCreditGrants.

type ListPromoCreditGrantsResponse

type ListPromoCreditGrantsResponse struct {
	Grants     []PromoCreditGrant `json:"grants,omitempty"`
	Page       int32              `json:"page,omitempty"`
	PageSize   int32              `json:"pageSize,omitempty"`
	TotalCount int32              `json:"totalCount,omitempty"`
}

ListPromoCreditGrantsResponse is the API's v1ListPromoCreditGrantsResponse object.

type ListProviderCustomerAssetsParams

type ListProviderCustomerAssetsParams struct {
	Page int32
	// Same rules as ListProviderCustomers.page_size.
	PageSize  int32
	Search    string
	AssetType ProviderCustomerAssetType
	// When set (not UNSPECIFIED), only assets matching this activity status are returned.
	ActivityStatus ProviderCustomerVMActivityStatus
	// When set to a non-empty UUID, only assets whose VM node is in this region are returned.
	RegionID string
}

ListProviderCustomerAssetsParams are the query parameters of ProviderCustomerService.ListProviderCustomerAssets.

type ListProviderCustomerAssetsResponse

type ListProviderCustomerAssetsResponse struct {
	Assets     []ProviderCustomerAssetRow `json:"assets,omitempty"`
	TotalCount int32                      `json:"totalCount,omitempty"`
}

ListProviderCustomerAssetsResponse is the API's v1ListProviderCustomerAssetsResponse object.

type ListProviderCustomersParams

type ListProviderCustomersParams struct {
	// 0-based page (default 0).
	Page int32
	// -1 = all matches (no server row cap; prefer paginated 1..100 for large data sets). Otherwise 1..100 per page (see ListVirtualMachinesRequest).
	PageSize int32
	// Case-insensitive match on client organization name or any member email (owners/members via roles & groups).
	Search string
	// Default / UNSPECIFIED means ALL (same as PROVIDER_CUSTOMER_ACTIVITY_FILTER_ALL).
	//
	//  - PROVIDER_CUSTOMER_ACTIVITY_FILTER_ALL: All customers (any VM history with this provider, including when every VM is soft-deleted).
	ActivityFilter ProviderCustomerActivityFilter
}

ListProviderCustomersParams are the query parameters of ProviderCustomerService.ListProviderCustomers.

type ListProviderCustomersResponse

type ListProviderCustomersResponse struct {
	Customers  []ProviderCustomerRow `json:"customers,omitempty"`
	TotalCount int32                 `json:"totalCount,omitempty"`
}

ListProviderCustomersResponse is the API's v1ListProviderCustomersResponse object.

type ListProviderReviewsParams

type ListProviderReviewsParams struct {
	Page     int32
	PageSize int32
	// Multi-select star filter (e.g. [5,4]); empty means any stars.
	StarRatings []int32
	// Case-insensitive substring match on review comment or provider reply; empty means no text filter.
	Search string
	// Inbox: 0 = awaiting provider reply / empty reply (default), 1 = replied only, 2 = all reviews.
	ReplyFilter int32
}

ListProviderReviewsParams are the query parameters of ProviderReviewService.ListProviderReviews.

type ListProviderReviewsResponse

type ListProviderReviewsResponse struct {
	ProviderAverageStar  float64                     `json:"providerAverageStar,omitempty"`
	ProviderStarSummary  []ProviderReviewStarSummary `json:"providerStarSummary,omitempty"`
	ProviderTotalReviews int32                       `json:"providerTotalReviews,omitempty"`
	Reviews              []ProviderReviewListItem    `json:"reviews,omitempty"`
	TotalCount           int32                       `json:"totalCount,omitempty"`
}

ListProviderReviewsResponse is the API's v1ListProviderReviewsResponse object.

type ListProvidersParams

type ListProvidersParams struct {
	Page     int32
	PageSize int32
	// Filter providers that offer this plan code (required)
	FilterPlanCode string
	// Filter by country name (required, case-insensitive)
	FilterCountry string
	// Filter by city name (required, case-insensitive)
	FilterCity string
	// Filter by billing type (subscription/fixed or usage-based)
	//
	//  - BILLING_TYPE_PERCENTAGE: Percentage-based pricing (e.g., 30% of parent plan)
	FilterBillingType BillingType
	// Search by organization name or description
	Search                  string
	FilterIPv6AvailableOnly *bool
	// How to order providers: default is newest first. When set, Recommendations (first
	// three in newest-first order) stay pinned; the rest are ordered by the displayed
	// list price for the selected plan and billing type.
	//
	//  - PROVIDER_PLAN_PRICE_SORT_LEAST_EXPENSIVE_FIRST: Ascending among non-recommended providers: lowest list price first
	// (usage: hourly, subscription: fixed monthly, free: 0)
	//  - PROVIDER_PLAN_PRICE_SORT_MOST_EXPENSIVE_FIRST: Descending among non-recommended providers: highest list price first
	PlanPriceSort ProviderPlanPriceSort
	// Only include providers where bandwidth egress is effectively unlimited for the selected plan
	// (same basis as UI badge: overage_price if > 0 else unit_amount; unlimited when effective $/GB == 0).
	FilterUnlimitedBandwidthOnly *bool
	// When set, only organizations whose ddos_provider is one of these slugs are included.
	// When empty, do not filter by DDoS. Mirrored by marketplace UI: all slugs "selected" = omit this.
	FilterDDoSProviders []string
}

ListProvidersParams are the query parameters of MarketplaceService.ListProviders.

type ListProvidersResponse

type ListProvidersResponse struct {
	Page       int32          `json:"page,omitempty"`
	PageSize   int32          `json:"pageSize,omitempty"`
	Providers  []ProviderInfo `json:"providers,omitempty"`
	TotalCount int32          `json:"totalCount,omitempty"`
}

ListProvidersResponse is the API's v1ListProvidersResponse object.

type ListPublicStorefrontsParams

type ListPublicStorefrontsParams struct {
	Page          int32
	PageSize      int32
	Search        string
	FilterCountry string
}

ListPublicStorefrontsParams are the query parameters of MarketplaceService.ListPublicStorefronts.

type ListPublicStorefrontsResponse

type ListPublicStorefrontsResponse struct {
	Page        int32                  `json:"page,omitempty"`
	PageSize    int32                  `json:"pageSize,omitempty"`
	Storefronts []PublicStorefrontCard `json:"storefronts,omitempty"`
	TotalCount  int32                  `json:"totalCount,omitempty"`
}

ListPublicStorefrontsResponse is the API's v1ListPublicStorefrontsResponse object.

type ListRefundsParams

type ListRefundsParams struct {
	PaymentID string
	InvoiceID string
	Status    RefundStatus
	Page      int32
	PageSize  int32
}

ListRefundsParams are the query parameters of RefundService.ListRefunds.

type ListRefundsResponse

type ListRefundsResponse struct {
	Page       int32    `json:"page,omitempty"`
	PageSize   int32    `json:"pageSize,omitempty"`
	Refunds    []Refund `json:"refunds,omitempty"`
	TotalCount int32    `json:"totalCount,omitempty"`
}

ListRefundsResponse is the API's v1ListRefundsResponse object.

type ListRegionsParams

type ListRegionsParams struct {
	Page       int32
	PageSize   int32
	Search     string
	PlatformID string
}

ListRegionsParams are the query parameters of RegionService.ListRegions.

type ListRegionsResponse

type ListRegionsResponse struct {
	Regions    []Region `json:"regions,omitempty"`
	TotalCount int32    `json:"totalCount,omitempty"`
}

ListRegionsResponse is the API's v1ListRegionsResponse object.

type ListRoadmapFeatureRequestCommentsParams

type ListRoadmapFeatureRequestCommentsParams struct {
	Page  int32
	Limit int32
}

ListRoadmapFeatureRequestCommentsParams are the query parameters of RoadmapService.ListRoadmapFeatureRequestComments.

type ListRoadmapFeatureRequestCommentsResponse

type ListRoadmapFeatureRequestCommentsResponse struct {
	Comments []RoadmapFeatureRequestComment `json:"comments,omitempty"`
	Total    int32                          `json:"total,omitempty"`
}

ListRoadmapFeatureRequestCommentsResponse is the API's v1ListRoadmapFeatureRequestCommentsResponse object.

type ListRoadmapFeatureRequestsParams

type ListRoadmapFeatureRequestsParams struct {
	Status      RoadmapRequestStatus
	ProductSlug string
	Search      string
	Sort        string
	Page        int32
	Limit       int32
}

ListRoadmapFeatureRequestsParams are the query parameters of RoadmapService.ListRoadmapFeatureRequests.

type ListRoadmapFeatureRequestsResponse

type ListRoadmapFeatureRequestsResponse struct {
	Requests []RoadmapFeatureRequest `json:"requests,omitempty"`
	Total    int32                   `json:"total,omitempty"`
}

ListRoadmapFeatureRequestsResponse is the API's v1ListRoadmapFeatureRequestsResponse object.

type ListRoadmapProductCategoriesResponse

type ListRoadmapProductCategoriesResponse struct {
	Products []RoadmapProductCategory `json:"products,omitempty"`
}

ListRoadmapProductCategoriesResponse is the API's v1ListRoadmapProductCategoriesResponse object.

type ListRolesParams

type ListRolesParams struct {
	Page       int32
	PageSize   int32
	FilterName string
	Search     string
}

ListRolesParams are the query parameters of RoleService.ListRoles.

type ListRolesResponse

type ListRolesResponse struct {
	Roles      []Role `json:"roles,omitempty"`
	TotalCount int32  `json:"totalCount,omitempty"`
}

ListRolesResponse is the API's v1ListRolesResponse object.

type ListSSHKeysParams

type ListSSHKeysParams struct {
	Page     int32
	PageSize int32
}

ListSSHKeysParams are the query parameters of SSHKeyService.ListSSHKeys.

type ListSSHKeysResponse

type ListSSHKeysResponse struct {
	Page       int32    `json:"page,omitempty"`
	PageSize   int32    `json:"pageSize,omitempty"`
	SSHKeys    []SSHKey `json:"sshKeys,omitempty"`
	TotalCount int32    `json:"totalCount,omitempty"`
}

ListSSHKeysResponse is the API's v1ListSSHKeysResponse object.

type ListSchedulesResponse

type ListSchedulesResponse struct {
	Schedules []GameServerSchedule `json:"schedules,omitempty"`
}

ListSchedulesResponse is the API's v1ListSchedulesResponse object.

type ListSecretsParams

type ListSecretsParams struct {
	Page     int32
	PageSize int32
}

ListSecretsParams are the query parameters of SecretService.ListSecrets.

type ListSecretsResponse

type ListSecretsResponse struct {
	Secrets    []Secret `json:"secrets,omitempty"`
	TotalCount int32    `json:"totalCount,omitempty"`
}

ListSecretsResponse is the API's v1ListSecretsResponse object.

type ListServiceAccountTokensResponse

type ListServiceAccountTokensResponse struct {
	Page       int32                     `json:"page,omitempty"`
	PageSize   int32                     `json:"pageSize,omitempty"`
	Tokens     []ServiceAccountTokenInfo `json:"tokens,omitempty"`
	TotalCount int32                     `json:"totalCount,omitempty"`
}

ListServiceAccountTokensResponse is the API's v1ListServiceAccountTokensResponse object.

type ListServiceAccountsParams

type ListServiceAccountsParams struct {
	IncludeInactive *bool
	Page            int32
	PageSize        int32
}

ListServiceAccountsParams are the query parameters of ServiceAccountService.ListServiceAccounts.

type ListServiceAccountsResponse

type ListServiceAccountsResponse struct {
	Page            int32                    `json:"page,omitempty"`
	PageSize        int32                    `json:"pageSize,omitempty"`
	ServiceAccounts []ServiceAccountResponse `json:"serviceAccounts,omitempty"`
	TotalCount      int32                    `json:"totalCount,omitempty"`
}

ListServiceAccountsResponse is the API's v1ListServiceAccountsResponse object.

type ListSnapshotsParams

type ListSnapshotsParams struct {
	Status   SnapshotStatus
	Page     int32
	PageSize int32
}

ListSnapshotsParams are the query parameters of SnapshotService.ListSnapshots.

type ListSnapshotsResponse

type ListSnapshotsResponse struct {
	Snapshots  []Snapshot `json:"snapshots,omitempty"`
	TotalCount int32      `json:"totalCount,omitempty"`
}

ListSnapshotsResponse is the API's v1ListSnapshotsResponse object.

type ListSubscriptionsParams

type ListSubscriptionsParams struct {
	Page       int32
	PageSize   int32
	OnlyActive *bool
}

ListSubscriptionsParams are the query parameters of SubscriptionService.ListSubscriptions.

type ListSubscriptionsResponse

type ListSubscriptionsResponse struct {
	Subscriptions []Subscription `json:"subscriptions,omitempty"`
	TotalCount    int32          `json:"totalCount,omitempty"`
}

ListSubscriptionsResponse is the API's v1ListSubscriptionsResponse object.

type ListSupportedCurrenciesResponse

type ListSupportedCurrenciesResponse struct {
	Currencies  []string `json:"currencies,omitempty"`
	LastUpdated int64    `json:"lastUpdated,omitempty,string"`
}

ListSupportedCurrenciesResponse is the API's v1ListSupportedCurrenciesResponse object.

type ListTicketAttachmentsResponse

type ListTicketAttachmentsResponse struct {
	Attachments []TicketAttachment `json:"attachments,omitempty"`
}

ListTicketAttachmentsResponse is the API's v1ListTicketAttachmentsResponse object.

type ListTicketTemplatesParams

type ListTicketTemplatesParams struct {
	Page     int32
	PageSize int32
}

ListTicketTemplatesParams are the query parameters of TicketService.ListTicketTemplates.

type ListTicketTemplatesResponse

type ListTicketTemplatesResponse struct {
	AvailableVariables []TicketTemplateVariableDefinition `json:"availableVariables,omitempty"`
	TicketTemplates    []TicketTemplate                   `json:"ticketTemplates,omitempty"`
	TotalCount         int32                              `json:"totalCount,omitempty"`
}

ListTicketTemplatesResponse is the API's v1ListTicketTemplatesResponse object.

type ListTicketsParams

type ListTicketsParams struct {
	Page               int32
	PageSize           int32
	FilterTicketStatus TicketStatus
	FilterCaseType     CaseType
	FilterPriority     TicketPriority
}

ListTicketsParams are the query parameters of TicketService.ListTickets.

type ListTicketsResponse

type ListTicketsResponse struct {
	OrganizationDetails map[string]OrganizationDetails `json:"organizationDetails,omitempty"`
	Tickets             []Ticket                       `json:"tickets,omitempty"`
	TotalCount          int32                          `json:"totalCount,omitempty"`
	UserDetails         map[string]UserDetails         `json:"userDetails,omitempty"`
}

ListTicketsResponse is the API's v1ListTicketsResponse object.

type ListTokensParams

type ListTokensParams struct {
	IncludeInactive *bool
	Page            int32
	PageSize        int32
}

ListTokensParams are the query parameters of ServiceAccountService.ListTokens.

type ListUsageRecordsParams

type ListUsageRecordsParams struct {
	// Filters
	SubscriptionID    string
	MetricID          string
	UsageRecordStatus UsageRecordStatus
	// Time range
	StartTime *time.Time
	EndTime   *time.Time
	// Pagination
	Page     int32
	PageSize int32
}

ListUsageRecordsParams are the query parameters of UsageReportService.ListUsageRecords.

type ListUsageRecordsResponse

type ListUsageRecordsResponse struct {
	TotalCount   int32         `json:"totalCount,omitempty"`
	UsageRecords []UsageRecord `json:"usageRecords,omitempty"`
}

ListUsageRecordsResponse is the API's v1ListUsageRecordsResponse object.

type ListUsersParams

type ListUsersParams struct {
	Page         int32
	PageSize     int32
	FilterEmail  string
	FilterStatus Protov1Status
	Search       string
}

ListUsersParams are the query parameters of UserService.ListUsers.

type ListUsersResponse

type ListUsersResponse struct {
	TotalCount int32  `json:"totalCount,omitempty"`
	Users      []User `json:"users,omitempty"`
}

ListUsersResponse is the API's v1ListUsersResponse object.

type ListVMTagsResponse

type ListVMTagsResponse struct {
	Tags       []string `json:"tags,omitempty"`
	TotalCount int32    `json:"totalCount,omitempty"`
}

ListVMTagsResponse is the API's v1ListVMTagsResponse object.

type ListVMTemplatesParams

type ListVMTemplatesParams struct {
	Page       int32
	PageSize   int32
	Search     string
	NodeID     string
	PlatformID string
	Distro     string
}

ListVMTemplatesParams are the query parameters of VMTemplateService.ListVMTemplates.

type ListVMTemplatesResponse

type ListVMTemplatesResponse struct {
	TotalCount int32 `json:"totalCount,omitempty"`
	// Page count when pagination packs whole node groups (never splits a node across pages).
	TotalPages  int32        `json:"totalPages,omitempty"`
	VMTemplates []VMTemplate `json:"vmTemplates,omitempty"`
}

ListVMTemplatesResponse is the API's v1ListVMTemplatesResponse object.

type ListVirtualMachineSMTPOutboundPoliciesParams

type ListVirtualMachineSMTPOutboundPoliciesParams struct {
	Page     int32
	PageSize int32
	// Case-insensitive substring match on hostname, customer contact email, or exact virtual machine UUID.
	Search string
}

ListVirtualMachineSMTPOutboundPoliciesParams are the query parameters of ProviderNetworkService.ListVirtualMachineSMTPOutboundPolicies.

type ListVirtualMachineSMTPOutboundPoliciesResponse

type ListVirtualMachineSMTPOutboundPoliciesResponse struct {
	Policies   []VirtualMachineSMTPOutboundPolicyView `json:"policies,omitempty"`
	TotalCount int32                                  `json:"totalCount,omitempty"`
}

ListVirtualMachineSMTPOutboundPoliciesResponse is the API's v1ListVirtualMachineSmtpOutboundPoliciesResponse object.

type ListVirtualMachinesParams

type ListVirtualMachinesParams struct {
	Page                  int32
	PageSize              int32
	FilterOperationStatus OperationStatus
}

ListVirtualMachinesParams are the query parameters of VirtualMachineService.ListVirtualMachines.

type ListVirtualMachinesResponse

type ListVirtualMachinesResponse struct {
	TotalCount      int32            `json:"totalCount,omitempty"`
	VirtualMachines []VirtualMachine `json:"virtualMachines,omitempty"`
}

ListVirtualMachinesResponse is the API's v1ListVirtualMachinesResponse object.

type LiveValidationCheckView

type LiveValidationCheckView struct {
	Code   string `json:"code,omitempty"`
	Note   string `json:"note,omitempty"`
	Passed bool   `json:"passed,omitempty"`
}

LiveValidationCheckView is the API's v1LiveValidationCheckView object.

type LiveValidationService

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

LiveValidationService calls the NodeRings LiveValidationService API.

func (*LiveValidationService) DeletePlanLiveValidation

func (s *LiveValidationService) DeletePlanLiveValidation(ctx context.Context, planID string, params *DeletePlanLiveValidationParams) (*SuccessResponse, error)

DeletePlanLiveValidation calls DELETE /v1/provider/plans/{planId}/live-validation.

func (*LiveValidationService) GetPlanLiveValidation

GetPlanLiveValidation calls GET /v1/provider/plans/{planId}/live-validation.

func (*LiveValidationService) ListEligibleNodesForPlan

func (s *LiveValidationService) ListEligibleNodesForPlan(ctx context.Context, planID string) (*ListEligibleNodesForPlanResponse, error)

ListEligibleNodesForPlan calls GET /v1/provider/plans/{planId}/live-validation/nodes.

func (*LiveValidationService) ListPlanLiveValidationBenchmarks

ListPlanLiveValidationBenchmarks calls GET /v1/provider/plans/{planId}/live-validation/benchmarks.

func (*LiveValidationService) ListPlanLiveValidationBenchmarksAll

ListPlanLiveValidationBenchmarksAll returns an iterator over every result of ListPlanLiveValidationBenchmarks, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*LiveValidationService) ListPlanLiveValidations

ListPlanLiveValidations calls GET /v1/provider/live-validations.

func (*LiveValidationService) ListPlanLiveValidationsAll

ListPlanLiveValidationsAll returns an iterator over every result of ListPlanLiveValidations, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*LiveValidationService) StartPlanLiveValidation

StartPlanLiveValidation calls POST /v1/provider/plans/{planId}/live-validation.

type LockBackupBody

type LockBackupBody struct {
	// Restore only. When true, the panel deletes every file before extracting the backup.
	Truncate *bool `json:"truncate,omitempty"`
}

LockBackupBody is the API's GameServerServiceLockBackupBody object.

type LoginMFAVerifyRequest

type LoginMFAVerifyRequest struct {
	// Authenticator TOTP code or a one-time recovery code.
	Code           string `json:"code,omitempty"`
	LoginSessionID string `json:"loginSessionId,omitempty"`
}

LoginMFAVerifyRequest is the API's v1LoginMfaVerifyRequest object.

type LoginRequest

type LoginRequest struct {
	Email    string `json:"email,omitempty"`
	Password string `json:"password,omitempty"`
	// Cloudflare Turnstile token from the client widget (optional unless auth.turnstile is enabled).
	TurnstileToken string `json:"turnstileToken,omitempty"`
}

LoginRequest is the API's v1LoginRequest object.

type LoginResponse

type LoginResponse struct {
	LoginSessionID string `json:"loginSessionId,omitempty"`
	// When true, token/organization_id are empty and login_session_id must be used with LoginMfaVerify.
	MFARequired    bool   `json:"mfaRequired,omitempty"`
	OrganizationID string `json:"organizationId,omitempty"`
	// Present when MFA is not required (or after LoginMfaVerify succeeds).
	Token string `json:"token,omitempty"`
}

LoginResponse is the API's v1LoginResponse object.

type LogoutRequest

type LogoutRequest struct {
	InvalidateAll *bool `json:"invalidateAll,omitempty"`
}

LogoutRequest is the API's v1LogoutRequest object.

type ManualPayout

type ManualPayout struct {
	AccountHolderName string     `json:"accountHolderName,omitempty"`
	AccountNumber     string     `json:"accountNumber,omitempty"`
	BankName          string     `json:"bankName,omitempty"`
	Bic               string     `json:"bic,omitempty"`
	Country           string     `json:"country,omitempty"`
	CreatedAt         *time.Time `json:"createdAt,omitempty"`
	Iban              string     `json:"iban,omitempty"`
	ID                string     `json:"id,omitempty"`
	IsVerified        bool       `json:"isVerified,omitempty"`
	Notes             string     `json:"notes,omitempty"`
	RoutingNumber     string     `json:"routingNumber,omitempty"`
	UpdatedAt         *time.Time `json:"updatedAt,omitempty"`
	VerificationNotes string     `json:"verificationNotes,omitempty"`
}

ManualPayout is the API's v1ManualPayout object.

type ManualPayoutService

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

ManualPayoutService calls the NodeRings ManualPayoutService API.

func (*ManualPayoutService) CreateManualPayout

CreateManualPayout calls POST /v1/provider/manual-payout.

func (*ManualPayoutService) DeleteManualPayout

func (s *ManualPayoutService) DeleteManualPayout(ctx context.Context) (*SuccessResponse, error)

DeleteManualPayout calls DELETE /v1/provider/manual-payout.

func (*ManualPayoutService) GetManualPayout

func (s *ManualPayoutService) GetManualPayout(ctx context.Context) (*GetManualPayoutResponse, error)

GetManualPayout calls GET /v1/provider/manual-payout.

type MarketplaceSearchParsedQuery

type MarketplaceSearchParsedQuery struct {
	FilterBillingType BillingType `json:"filterBillingType,omitempty"`
	FilterCity        string      `json:"filterCity,omitempty"`
	// - COMPUTE_CATEGORY_SHARED_COMPUTE: Shared compute (shared resources, cost-effective)
	//  - COMPUTE_CATEGORY_DEDICATED_COMPUTE: Dedicated compute (dedicated resources, higher performance)
	FilterComputeCategory ComputeCategory `json:"filterComputeCategory,omitempty"`
	// - COMPUTE_TYPE_GENERAL_COMPUTE: GC - General Compute (balanced performance)
	//  - COMPUTE_TYPE_HIGH_FREQUENCY: HF - High Frequency (CPU-optimized, high clock speeds)
	//  - COMPUTE_TYPE_HIGH_PERFORMANCE: HP - High Performance (next-gen CPUs, NVMe storage)
	//  - COMPUTE_TYPE_GENERAL_PURPOSE: GP - General Purpose (balanced dedicated resources)
	//  - COMPUTE_TYPE_CPU_OPTIMIZED: CPU - CPU Optimized (high CPU-to-memory ratio)
	//  - COMPUTE_TYPE_MEMORY_OPTIMIZED: MEM - Memory Optimized (high memory-to-CPU ratio)
	//  - COMPUTE_TYPE_STORAGE_OPTIMIZED: STO - Storage Optimized (high storage capacity)
	//  - COMPUTE_TYPE_VERY_HIGH_FREQUENCY: VHF - Very High Frequency (highest clock dedicated CPUs)
	//  - COMPUTE_TYPE_GAME_SERVER: GS - Game Server (per-CPU SKU dedicated plans, e.g. DC-GS-9950X-*)
	FilterComputeType ComputeType `json:"filterComputeType,omitempty"`
	FilterCountry     string      `json:"filterCountry,omitempty"`
	FilterPlanCode    string      `json:"filterPlanCode,omitempty"`
	MatchedTerms      []string    `json:"matchedTerms,omitempty"`
	MinDiskGb         int32       `json:"minDiskGb,omitempty"`
	MinRamGb          int32       `json:"minRamGb,omitempty"`
	MinVcpus          int32       `json:"minVcpus,omitempty"`
	// Parser implementation id, e.g. "word_matcher" or future "llm".
	Parser string `json:"parser,omitempty"`
}

MarketplaceSearchParsedQuery: Structured filters extracted from the user query (word matcher today; LLM later).

type MarketplaceSearchPlanPriceSummary

type MarketplaceSearchPlanPriceSummary struct {
	BillingPeriod BillingPeriod `json:"billingPeriod,omitempty"`
	Currency      string        `json:"currency,omitempty"`
	// Included free units (e.g. bandwidth GB). Used for bandwidth summaries in search.
	FreeUnits  int32          `json:"freeUnits,omitempty"`
	ID         string         `json:"id,omitempty"`
	Metadata   map[string]any `json:"metadata,omitempty"`
	MetricName string         `json:"metricName,omitempty"`
	// Overage unit price as decimal string (same precision as PlanPrice.overage_price).
	OveragePrice string `json:"overagePrice,omitempty"`
	// Percentage / formula pricing for add-ons (e.g. backup = % of VM price).
	PricingFormula map[string]any `json:"pricingFormula,omitempty"`
	PricingModel   PricingModel   `json:"pricingModel,omitempty"`
	ProductType    ProductType    `json:"productType,omitempty"`
	UnitAmount     string         `json:"unitAmount,omitempty"`
	UnitName       string         `json:"unitName,omitempty"`
}

MarketplaceSearchPlanPriceSummary is the API's v1MarketplaceSearchPlanPriceSummary object.

type MarketplaceSearchResult

type MarketplaceSearchResult struct {
	AddonPrices []MarketplaceSearchPlanPriceSummary `json:"addonPrices,omitempty"`
	// Bandwidth plan prices (egress/ingress) with free units + overage for search UI.
	BandwidthPrices  []MarketplaceSearchPlanPriceSummary `json:"bandwidthPrices,omitempty"`
	BillingType      BillingType                         `json:"billingType,omitempty"`
	DDoSProvider     string                              `json:"ddosProvider,omitempty"`
	DiskGb           int32                               `json:"diskGb,omitempty"`
	OrganizationID   string                              `json:"organizationId,omitempty"`
	OrganizationName string                              `json:"organizationName,omitempty"`
	PlanCode         string                              `json:"planCode,omitempty"`
	PlanID           string                              `json:"planId,omitempty"`
	PlanPrice        *MarketplaceSearchPlanPriceSummary  `json:"planPrice,omitempty"`
	ProviderLogoURL  string                              `json:"providerLogoUrl,omitempty"`
	RamGb            int32                               `json:"ramGb,omitempty"`
	Rating           float32                             `json:"rating,omitempty"`
	RegionCity       string                              `json:"regionCity,omitempty"`
	RegionCountry    string                              `json:"regionCountry,omitempty"`
	RegionID         string                              `json:"regionId,omitempty"`
	TotalReviews     int32                               `json:"totalReviews,omitempty"`
	Vcpus            int32                               `json:"vcpus,omitempty"`
}

MarketplaceSearchResult is the API's v1MarketplaceSearchResult object.

type MarketplaceService

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

MarketplaceService calls the NodeRings MarketplaceService API.

func (*MarketplaceService) GetMarketplacePlan

func (s *MarketplaceService) GetMarketplacePlan(ctx context.Context, planID string) (*GetMarketplacePlanResponse, error)

GetMarketplacePlan calls GET /v1/marketplace/plans/{planId}.

func (*MarketplaceService) GetProvider

func (s *MarketplaceService) GetProvider(ctx context.Context, providerID string) (*GetProviderResponse, error)

GetProvider calls GET /v1/marketplace/providers/{providerId}.

func (*MarketplaceService) GetPublicStorefront

func (s *MarketplaceService) GetPublicStorefront(ctx context.Context, slug string) (*GetPublicStorefrontResponse, error)

GetPublicStorefront calls GET /v1/public/storefronts/{slug}.

func (*MarketplaceService) GetPublicStorefrontByID

func (s *MarketplaceService) GetPublicStorefrontByID(ctx context.Context, providerID string) (*GetPublicStorefrontResponse, error)

GetPublicStorefrontByID calls GET /v1/public/storefronts/by-id/{providerId}.

func (*MarketplaceService) ListAvailableAddons

ListAvailableAddons calls GET /v1/marketplace/addons.

func (*MarketplaceService) ListAvailableAddonsAll

func (s *MarketplaceService) ListAvailableAddonsAll(ctx context.Context, params *ListAvailableAddonsParams) iter.Seq2[Addon, error]

ListAvailableAddonsAll returns an iterator over every result of ListAvailableAddons, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*MarketplaceService) ListAvailablePlans

ListAvailablePlans calls GET /v1/marketplace/plans.

func (*MarketplaceService) ListAvailableRegions

ListAvailableRegions calls GET /v1/marketplace/regions.

func (*MarketplaceService) ListMarketplaceProviderDirectory

ListMarketplaceProviderDirectory calls GET /v1/marketplace/provider-directory.

func (*MarketplaceService) ListMarketplaceProviderDirectoryAll

func (s *MarketplaceService) ListMarketplaceProviderDirectoryAll(ctx context.Context, params *ListMarketplaceProviderDirectoryParams) iter.Seq2[ProviderInfo, error]

ListMarketplaceProviderDirectoryAll returns an iterator over every result of ListMarketplaceProviderDirectory, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*MarketplaceService) ListProviders

ListProviders calls GET /v1/marketplace/providers.

func (*MarketplaceService) ListProvidersAll

func (s *MarketplaceService) ListProvidersAll(ctx context.Context, params *ListProvidersParams) iter.Seq2[ProviderInfo, error]

ListProvidersAll returns an iterator over every result of ListProviders, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*MarketplaceService) ListPublicStorefronts

ListPublicStorefronts calls GET /v1/public/storefronts.

func (*MarketplaceService) ListPublicStorefrontsAll

ListPublicStorefrontsAll returns an iterator over every result of ListPublicStorefronts, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*MarketplaceService) SearchMarketplace

SearchMarketplace calls POST /v1/marketplace/search.

type Metadata

type Metadata struct {
	BuildBranch    string `json:"buildBranch,omitempty"`
	BuildCommit    string `json:"buildCommit,omitempty"`
	BuildDate      string `json:"buildDate,omitempty"`
	BuildTag       string `json:"buildTag,omitempty"`
	Name           string `json:"name,omitempty"`
	Version        string `json:"version,omitempty"`
	VersionDetails string `json:"versionDetails,omitempty"`
}

Metadata is the API's v1Metadata object.

type MetadataService

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

MetadataService calls the NodeRings MetadataService API.

func (*MetadataService) GetPlatformVersions

func (s *MetadataService) GetPlatformVersions(ctx context.Context) (*PlatformVersions, error)

GetPlatformVersions: GetPlatformVersions returns pinned versions for k3s, k3d, calico, liqo, liqoctl, and helm.

It calls GET /v1/platform-versions.

func (*MetadataService) GetVersion

func (s *MetadataService) GetVersion(ctx context.Context) (*Metadata, error)

GetVersion calls GET /v1/version.

func (*MetadataService) HealthCheck

func (s *MetadataService) HealthCheck(ctx context.Context) (*HealthCheckResponse, error)

HealthCheck calls GET /v1/healthz.

func (*MetadataService) ListDistros

func (s *MetadataService) ListDistros(ctx context.Context) (*ListDistrosResponse, error)

ListDistros: ListDistros returns the guest OS catalog used by the virtual machine image picker.

It calls GET /v1/distros.

type Metric

type Metric struct {
	AggregationType AggregationType `json:"aggregationType,omitempty"`
	Billable        bool            `json:"billable,omitempty"`
	Code            string          `json:"code,omitempty"`
	Description     string          `json:"description,omitempty"`
	ExternalID      string          `json:"externalId,omitempty"`
	ID              string          `json:"id,omitempty"`
	Metadata        map[string]any  `json:"metadata,omitempty"`
	MetricType      MetricType      `json:"metricType,omitempty"`
	Name            string          `json:"name,omitempty"`
	Recurring       bool            `json:"recurring,omitempty"`
	RetentionDays   int32           `json:"retentionDays,omitempty"`
	Status          Protov1Status   `json:"status,omitempty"`
	Timestamps      *Timestamps     `json:"timestamps,omitempty"`
	Unit            string          `json:"unit,omitempty"`
	UnitPlural      string          `json:"unitPlural,omitempty"`
}

Metric is the API's v1Metric object.

type MetricAggregation

type MetricAggregation string

MetricAggregation is an API enum.

const (
	MetricAggregationUnspecified      MetricAggregation = "METRIC_AGGREGATION_UNSPECIFIED"
	MetricAggregationSum              MetricAggregation = "METRIC_AGGREGATION_SUM"
	MetricAggregationMax              MetricAggregation = "METRIC_AGGREGATION_MAX"
	MetricAggregationLastDuringPeriod MetricAggregation = "METRIC_AGGREGATION_LAST_DURING_PERIOD"
	MetricAggregationCount            MetricAggregation = "METRIC_AGGREGATION_COUNT"
)

Values of MetricAggregation.

type MetricService

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

MetricService calls the NodeRings MetricService API.

func (*MetricService) GetMetric

func (s *MetricService) GetMetric(ctx context.Context, id string, params *GetMetricParams) (*GetMetricResponse, error)

GetMetric: Get a specific metric by ID or code

It calls GET /v1/metrics/{id}.

func (*MetricService) ListMetrics

func (s *MetricService) ListMetrics(ctx context.Context, params *ListMetricsParams) (*ListMetricsResponse, error)

ListMetrics: List all available metrics

It calls GET /v1/metrics.

func (*MetricService) ListMetricsAll

func (s *MetricService) ListMetricsAll(ctx context.Context, params *ListMetricsParams) iter.Seq2[Metric, error]

ListMetricsAll returns an iterator over every result of ListMetrics, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

type MetricType

type MetricType string

MetricType is an API enum.

const (
	MetricTypeUnspecified MetricType = "METRIC_TYPE_UNSPECIFIED"
	MetricTypeCounter     MetricType = "METRIC_TYPE_COUNTER"
	MetricTypeGauge       MetricType = "METRIC_TYPE_GAUGE"
	MetricTypeHistogram   MetricType = "METRIC_TYPE_HISTOGRAM"
	MetricTypeSummary     MetricType = "METRIC_TYPE_SUMMARY"
)

Values of MetricType.

type MetricsCredentialService

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

MetricsCredentialService calls the NodeRings MetricsCredentialService API.

func (*MetricsCredentialService) CreateMetricsWriteCredential

CreateMetricsWriteCredential calls POST /v1/metrics-write-credentials.

func (*MetricsCredentialService) ListMetricsWriteCredentials

ListMetricsWriteCredentials calls GET /v1/metrics-write-credentials.

func (*MetricsCredentialService) ListMetricsWriteCredentialsAll

ListMetricsWriteCredentialsAll returns an iterator over every result of ListMetricsWriteCredentials, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*MetricsCredentialService) RevokeMetricsWriteCredential

func (s *MetricsCredentialService) RevokeMetricsWriteCredential(ctx context.Context, id string, body *RevokeMetricsWriteCredentialBody) (*SuccessResponse, error)

RevokeMetricsWriteCredential calls POST /v1/metrics-write-credentials/{id}:revoke.

func (*MetricsCredentialService) RotateMetricsWriteCredential

RotateMetricsWriteCredential calls POST /v1/metrics-write-credentials/{id}:rotate.

type MetricsWriteCredential

type MetricsWriteCredential struct {
	AgentID        string     `json:"agentId,omitempty"`
	CreateTime     *time.Time `json:"createTime,omitempty"`
	ExpiresAt      *time.Time `json:"expiresAt,omitempty"`
	ID             string     `json:"id,omitempty"`
	LastUsedAt     *time.Time `json:"lastUsedAt,omitempty"`
	Name           string     `json:"name,omitempty"`
	OrganizationID string     `json:"organizationId,omitempty"`
	PublicID       string     `json:"publicId,omitempty"`
	RevokedAt      *time.Time `json:"revokedAt,omitempty"`
	Scopes         []string   `json:"scopes,omitempty"`
}

MetricsWriteCredential is the API's v1MetricsWriteCredential object.

type MoneyAmount

type MoneyAmount struct {
	Amount   string `json:"amount,omitempty"`
	Currency string `json:"currency,omitempty"`
}

MoneyAmount is the API's v1MoneyAmount object.

type MonitoringService

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

MonitoringService calls the NodeRings MonitoringService API.

func (*MonitoringService) CreateMonitoringLaunch

CreateMonitoringLaunch: CreateMonitoringLaunch returns a one-time URL (valid for about a minute) that signs the caller into the organization's Grafana. Grafana role: Editor when the caller may also rotate the monitoring token, otherwise Viewer.

It calls POST /v1/monitoring/launch.

func (*MonitoringService) RotateMonitoringDatasourceToken

func (s *MonitoringService) RotateMonitoringDatasourceToken(ctx context.Context, body *RotateMonitoringDatasourceTokenRequest) (*SuccessResponse, error)

RotateMonitoringDatasourceToken: RotateMonitoringDatasourceToken replaces the organization's Grafana datasource token.

It calls POST /v1/monitoring/datasource-token:rotate.

type MoveFirewallRuleBody

type MoveFirewallRuleBody struct {
	Position     FirewallRulePosition `json:"position,omitempty"`
	TargetRuleID string               `json:"targetRuleId,omitempty"`
}

MoveFirewallRuleBody: MoveFirewallRuleRequest is used to reorder firewall rules via drag-and-drop. The rule specified by `id` will be moved to a position relative to `target_rule_id`. Rules can only be moved within the same direction (ingress/egress).

type MyStorefront

type MyStorefront struct {
	HighlightAllowlist  []string                      `json:"highlightAllowlist,omitempty"`
	LiveRevision        *StorefrontRevision           `json:"liveRevision,omitempty"`
	LiveSlug            string                        `json:"liveSlug,omitempty"`
	OptedIn             bool                          `json:"optedIn,omitempty"`
	ParticipationStatus StorefrontParticipationStatus `json:"participationStatus,omitempty"`
	SlugLocked          bool                          `json:"slugLocked,omitempty"`
	SuggestedSlug       string                        `json:"suggestedSlug,omitempty"`
	UnpublishedByOps    bool                          `json:"unpublishedByOps,omitempty"`
	WorkingRevision     *StorefrontRevision           `json:"workingRevision,omitempty"`
}

MyStorefront is the API's v1MyStorefront object.

type Network

type Network struct {
	Description string   `json:"description,omitempty"`
	DNSServers  []string `json:"dnsServers,omitempty"`
	ID          string   `json:"id,omitempty"`
	// First 3 octets for MAC allocation within this network (e.g. BC:24:11). Default: BC:24:11.
	MacAddressPrefix string         `json:"macAddressPrefix,omitempty"`
	Metadata         map[string]any `json:"metadata,omitempty"`
	Name             string         `json:"name,omitempty"`
	Nodes            []NetworkNode  `json:"nodes,omitempty"`
	OrganizationID   string         `json:"organizationId,omitempty"`
	Status           Protov1Status  `json:"status,omitempty"`
	Timestamps       *Timestamps    `json:"timestamps,omitempty"`
}

Network is the API's v1Network object.

type NetworkNode

type NetworkNode struct {
	ID   string `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
}

NetworkNode: NetworkNode represents a node connected to a network (simplified info)

type Node

type Node struct {
	// Proxmox vzdump --compress (must not be UNSPECIFIED on create/update node).
	BackupStorageCompression BackupStorageCompression `json:"backupStorageCompression,omitempty"`
	BackupStorageDestination string                   `json:"backupStorageDestination,omitempty"`
	// Compute product hosted by a node. Exclusive: a node is shared XOR dedicated
	// (docs/README-DEDICATED-CPU-CORES.md, design decision D1).
	//
	//  - NODE_COMPUTE_TYPE_SHARED: Shared vCPU hosting (CPU oversubscription allowed). Default.
	//  - NODE_COMPUTE_TYPE_DEDICATED: Dedicated pinned CPU cores (no CPU overallocation).
	ComputeType NodeComputeType `json:"computeType,omitempty"`
	// True when the host CPU model matches a cpu_catalog row with is_supported.
	// False when the model is missing, unmatched, or matched but not supported.
	CPUCatalogSupported    bool  `json:"cpuCatalogSupported,omitempty"`
	CPUOverallocatePercent int32 `json:"cpuOverallocatePercent,omitempty"`
	// True when a dedicated node has a parsed CPU topology document stored
	// (required before dedicated preflight can pass).
	HasCPUTopology            bool           `json:"hasCpuTopology,omitempty"`
	ID                        string         `json:"id,omitempty"`
	Inventory                 *NodeInventory `json:"inventory,omitempty"`
	MaintenanceMode           bool           `json:"maintenanceMode,omitempty"`
	MemoryOverallocatePercent int32          `json:"memoryOverallocatePercent,omitempty"`
	Metadata                  map[string]any `json:"metadata,omitempty"`
	Name                      string         `json:"name,omitempty"`
	// Node provisioning settings (copied into ProxmoxVM CR at generation time)
	// Proxmox Linux bridge for VM primary NIC (e.g. vmbr0). Default: vmbr0.
	NetworkBridge string `json:"networkBridge,omitempty"`
	// Network ID this node is assigned to (optional)
	NetworkID string `json:"networkId,omitempty"`
	// Proxmox NIC model for primary NIC (virtio, e1000, ...). Default: virtio.
	NetworkModel string `json:"networkModel,omitempty"`
	// Proxmox net device key for primary NIC (e.g. net0). Default: net0.
	NetworkName string `json:"networkName,omitempty"`
	// 802.1Q VLAN tag on primary NIC (Proxmox tag=); 0 = untagged.
	NetworkVlanID              int32         `json:"networkVlanId,omitempty"`
	OrganizationID             string        `json:"organizationId,omitempty"`
	PanelNodeID                int32         `json:"panelNodeId,omitempty"`
	Platform                   string        `json:"platform,omitempty"`
	PterodactylLocationID      int32         `json:"pterodactylLocationId,omitempty"`
	Region                     string        `json:"region,omitempty"`
	ServiceStatus              ServiceStatus `json:"serviceStatus,omitempty"`
	Status                     Protov1Status `json:"status,omitempty"`
	StorageOverallocatePercent int32         `json:"storageOverallocatePercent,omitempty"`
	Timestamps                 *Timestamps   `json:"timestamps,omitempty"`
	// Proxmox storage ID for new VM root disks (e.g. local-lvm).
	VMStorageDestination string `json:"vmStorageDestination,omitempty"`
	VmidSeed             int32  `json:"vmidSeed,omitempty"`
	// Wings node name on a Pterodactyl platform. Empty on a hypervisor node.
	WingsNodeName string `json:"wingsNodeName,omitempty"`
}

Node is the API's v1Node object.

type NodeCPUMapCPU

type NodeCPUMapCPU struct {
	// Physical core id (unique within a socket).
	Core int32 `json:"core,omitempty"`
	// Host logical CPU id (the affinity bit).
	CPU int32 `json:"cpu,omitempty"`
	// Occupancy status of one host logical CPU (affinity bit).
	//
	//  - NODE_CPU_STATUS_ALLOCATED_NR: Allocated to a NodeRings VM (vm_id/vm_hostname set).
	//  - NODE_CPU_STATUS_PINNED_FOREIGN: Pinned by a foreign (non-NodeRings) guest per exporter observation.
	//  - NODE_CPU_STATUS_DRIFT: DB expectation and exporter observation disagree for this CPU.
	CPUStatus NodeCPUStatus `json:"cpuStatus,omitempty"`
	Numa      int32         `json:"numa,omitempty"`
	// Full SMT sibling set including this CPU.
	Siblings   []int32 `json:"siblings,omitempty"`
	Socket     int32   `json:"socket,omitempty"`
	VMHostname string  `json:"vmHostname,omitempty"`
	// Set when cpu_status is ALLOCATED_NR.
	VMID string `json:"vmId,omitempty"`
}

NodeCPUMapCPU is the API's v1NodeCPUMapCPU object.

type NodeCPUMapNuma

type NodeCPUMapNuma struct {
	FreeCores int32 `json:"freeCores,omitempty"`
	ID        int32 `json:"id,omitempty"`
	// Memory attributed to NodeRings VMs placed on this NUMA node.
	MemoryAllocatedMb int64 `json:"memoryAllocatedMb,omitempty,string"`
	MemoryEstimated   bool  `json:"memoryEstimated,omitempty"`
	MemoryFreeMb      int64 `json:"memoryFreeMb,omitempty,string"`
	MemoryMb          int64 `json:"memoryMb,omitempty,string"`
	// Host reserve withheld from VMs on this NUMA node.
	MemoryReservedMb int64   `json:"memoryReservedMb,omitempty,string"`
	Sockets          []int32 `json:"sockets,omitempty"`
	// Logical CPU (vCPU) counts on this NUMA node — sellable capacity units.
	TotalCores int32 `json:"totalCores,omitempty"`
}

NodeCPUMapNuma is the API's v1NodeCPUMapNUMA object.

type NodeCPUStatus

type NodeCPUStatus string

NodeCPUStatus: Occupancy status of one host logical CPU (affinity bit).

  • NODE_CPU_STATUS_ALLOCATED_NR: Allocated to a NodeRings VM (vm_id/vm_hostname set).
  • NODE_CPU_STATUS_PINNED_FOREIGN: Pinned by a foreign (non-NodeRings) guest per exporter observation.
  • NODE_CPU_STATUS_DRIFT: DB expectation and exporter observation disagree for this CPU.
const (
	NodeCPUStatusUnspecified   NodeCPUStatus = "NODE_CPU_STATUS_UNSPECIFIED"
	NodeCPUStatusAvailable     NodeCPUStatus = "NODE_CPU_STATUS_AVAILABLE"
	NodeCPUStatusAllocatedNr   NodeCPUStatus = "NODE_CPU_STATUS_ALLOCATED_NR"
	NodeCPUStatusPinnedForeign NodeCPUStatus = "NODE_CPU_STATUS_PINNED_FOREIGN"
	NodeCPUStatusDrift         NodeCPUStatus = "NODE_CPU_STATUS_DRIFT"
)

Values of NodeCPUStatus.

type NodeComputeType

type NodeComputeType string

NodeComputeType: Compute product hosted by a node. Exclusive: a node is shared XOR dedicated (docs/README-DEDICATED-CPU-CORES.md, design decision D1).

  • NODE_COMPUTE_TYPE_SHARED: Shared vCPU hosting (CPU oversubscription allowed). Default.
  • NODE_COMPUTE_TYPE_DEDICATED: Dedicated pinned CPU cores (no CPU overallocation).
const (
	NodeComputeTypeUnspecified NodeComputeType = "NODE_COMPUTE_TYPE_UNSPECIFIED"
	NodeComputeTypeShared      NodeComputeType = "NODE_COMPUTE_TYPE_SHARED"
	NodeComputeTypeDedicated   NodeComputeType = "NODE_COMPUTE_TYPE_DEDICATED"
)

Values of NodeComputeType.

type NodeInventory

type NodeInventory struct {
	CPUCore          int32         `json:"cpuCore,omitempty"`
	CPUCoreAllocated int32         `json:"cpuCoreAllocated,omitempty"`
	CPUType          CPUType       `json:"cpuType,omitempty"`
	Memory           int32         `json:"memory,omitempty"`
	MemoryAllocated  int32         `json:"memoryAllocated,omitempty"`
	StoragePools     []StoragePool `json:"storagePools,omitempty"`
}

NodeInventory is the API's v1NodeInventory object.

type NodePlacementPolicy

type NodePlacementPolicy struct {
	DefaultStrategy NodePlacementStrategy         `json:"defaultStrategy,omitempty"`
	RegionOverrides []NodePlacementRegionOverride `json:"regionOverrides,omitempty"`
}

NodePlacementPolicy is the API's v1NodePlacementPolicy object.

type NodePlacementRegionOverride

type NodePlacementRegionOverride struct {
	RegionID string                `json:"regionId,omitempty"`
	Strategy NodePlacementStrategy `json:"strategy,omitempty"`
}

NodePlacementRegionOverride is the API's v1NodePlacementRegionOverride object.

type NodePlacementService

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

NodePlacementService calls the NodeRings NodePlacementService API.

func (*NodePlacementService) GetNodePlacementPolicy

func (s *NodePlacementService) GetNodePlacementPolicy(ctx context.Context) (*GetNodePlacementPolicyResponse, error)

GetNodePlacementPolicy calls GET /v1/node-placement-policy.

func (*NodePlacementService) UpdateNodePlacementPolicy

UpdateNodePlacementPolicy calls PUT /v1/node-placement-policy.

type NodePlacementStrategy

type NodePlacementStrategy string

NodePlacementStrategy is an API enum.

const (
	NodePlacementStrategyUnspecified      NodePlacementStrategy = "NODE_PLACEMENT_STRATEGY_UNSPECIFIED"
	NodePlacementStrategyFirstStable      NodePlacementStrategy = "NODE_PLACEMENT_STRATEGY_FIRST_STABLE"
	NodePlacementStrategyRoundRobin       NodePlacementStrategy = "NODE_PLACEMENT_STRATEGY_ROUND_ROBIN"
	NodePlacementStrategyLeastAssignedVMs NodePlacementStrategy = "NODE_PLACEMENT_STRATEGY_LEAST_ASSIGNED_VMS"
	NodePlacementStrategyRandom           NodePlacementStrategy = "NODE_PLACEMENT_STRATEGY_RANDOM"
)

Values of NodePlacementStrategy.

type NodeService

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

NodeService calls the NodeRings NodeService API.

func (*NodeService) CreateNode

func (s *NodeService) CreateNode(ctx context.Context, body *CreateNodeRequest) (*SuccessResponse, error)

CreateNode calls POST /v1/node.

func (*NodeService) DeleteNode

func (s *NodeService) DeleteNode(ctx context.Context, id string) (*SuccessResponse, error)

DeleteNode calls DELETE /v1/node/{id}.

func (*NodeService) GetNode

func (s *NodeService) GetNode(ctx context.Context, id string) (*GetNodeResponse, error)

GetNode calls GET /v1/node/{id}.

func (*NodeService) GetNodeCPUMap

func (s *NodeService) GetNodeCPUMap(ctx context.Context, id string) (*GetNodeCPUMapResponse, error)

GetNodeCPUMap: Dedicated CPU cores: full topology + per-CPU occupancy for the node topology board (docs/README-DEDICATED-CPU-CORES.md §6.3/§8.3).

It calls GET /v1/node/{id}/cpu-map.

func (*NodeService) ListNodes

func (s *NodeService) ListNodes(ctx context.Context, params *ListNodesParams) (*ListNodesResponse, error)

ListNodes calls GET /v1/nodes.

func (*NodeService) ListNodesAll

ListNodesAll returns an iterator over every result of ListNodes, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*NodeService) UpdateNode

func (s *NodeService) UpdateNode(ctx context.Context, id string, body *UpdateNodeBody) (*UpdateNodeResponse, error)

UpdateNode calls PATCH /v1/node/{id}.

func (*NodeService) ValidateNodeTopology

ValidateNodeTopology: Dedicated CPU cores: parse-preview of a topology paste without persisting.

It calls POST /v1/node/topology/validate.

type NodeWithExpandedRegion

type NodeWithExpandedRegion struct {
	ExpandedRegion *Region `json:"expandedRegion,omitempty"`
	Node           *Node   `json:"node,omitempty"`
}

NodeWithExpandedRegion is the API's v1NodeWithExpandedRegion object.

type NotificationSetting

type NotificationSetting struct {
	Enabled      bool           `json:"enabled,omitempty"`
	ID           string         `json:"id,omitempty"`
	Metadata     map[string]any `json:"metadata,omitempty"`
	Organization string         `json:"organization,omitempty"`
	Status       Protov1Status  `json:"status,omitempty"`
	Timestamps   *Timestamps    `json:"timestamps,omitempty"`
	Type         string         `json:"type,omitempty"`
	User         string         `json:"user,omitempty"`
}

NotificationSetting is the API's v1NotificationSetting object.

type NotificationTemplate

type NotificationTemplate struct {
	ContentType                   string         `json:"contentType,omitempty"`
	Description                   string         `json:"description,omitempty"`
	EmailBodyTemplate             string         `json:"emailBodyTemplate,omitempty"`
	EmailSubjectTemplate          string         `json:"emailSubjectTemplate,omitempty"`
	ID                            string         `json:"id,omitempty"`
	Metadata                      map[string]any `json:"metadata,omitempty"`
	Name                          string         `json:"name,omitempty"`
	PushNotificationBodyTemplate  string         `json:"pushNotificationBodyTemplate,omitempty"`
	PushNotificationTitleTemplate string         `json:"pushNotificationTitleTemplate,omitempty"`
	SmsBodyTemplate               string         `json:"smsBodyTemplate,omitempty"`
	Status                        Protov1Status  `json:"status,omitempty"`
	Timestamps                    *Timestamps    `json:"timestamps,omitempty"`
	WebhookBodyTemplate           string         `json:"webhookBodyTemplate,omitempty"`
}

NotificationTemplate is the API's v1NotificationTemplate object.

type OAuth2Client

type OAuth2Client struct {
	ClientID     string   `json:"clientId,omitempty"`
	ClientType   string   `json:"clientType,omitempty"`
	Description  string   `json:"description,omitempty"`
	IsActive     bool     `json:"isActive,omitempty"`
	Name         string   `json:"name,omitempty"`
	RedirectUris []string `json:"redirectUris,omitempty"`
	RequiresPkce bool     `json:"requiresPkce,omitempty"`
	Scopes       []string `json:"scopes,omitempty"`
}

OAuth2Client is the API's v1OAuth2Client object.

type OAuth2Service

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

OAuth2Service calls the NodeRings OAuth2Service API.

func (*OAuth2Service) Authorize

func (s *OAuth2Service) Authorize(ctx context.Context, params *AuthorizeParams) (*AuthorizeResponse, error)

Authorize: Authorize initiates the OAuth2 authorization flow

It calls GET /v1/oauth2/authorize.

func (*OAuth2Service) CreateClient

CreateClient: CreateClient creates a new OAuth2 client

It calls POST /v1/oauth2/clients.

func (*OAuth2Service) DeleteClient

func (s *OAuth2Service) DeleteClient(ctx context.Context, clientID string) (*SuccessResponse, error)

DeleteClient: DeleteClient deletes an OAuth2 client

It calls DELETE /v1/oauth2/clients/{clientId}.

func (*OAuth2Service) ListClients

ListClients: ListClients lists OAuth2 clients for the organization

It calls GET /v1/oauth2/clients.

func (*OAuth2Service) ListClientsAll

func (s *OAuth2Service) ListClientsAll(ctx context.Context, params *ListClientsParams) iter.Seq2[OAuth2Client, error]

ListClientsAll returns an iterator over every result of ListClients, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*OAuth2Service) RefreshToken

func (s *OAuth2Service) RefreshToken(ctx context.Context, body *RefreshTokenRequest) (*TokenResponse, error)

RefreshToken: RefreshToken exchanges refresh token for new access token

It calls POST /v1/oauth2/refresh.

func (*OAuth2Service) RevokeToken

func (s *OAuth2Service) RevokeToken(ctx context.Context, body *RevokeTokenRequest) (*SuccessResponse, error)

RevokeToken: RevokeToken revokes an access or refresh token

It calls POST /v1/oauth2/revoke.

func (*OAuth2Service) Token

func (s *OAuth2Service) Token(ctx context.Context, body *TokenRequest) (*TokenResponse, error)

Token: Token exchanges authorization code for access token

It calls POST /v1/oauth2/token.

type OpenConsoleBody

type OpenConsoleBody struct {
}

OpenConsoleBody is the API's GameServerServiceOpenConsoleBody object.

type OpenConsoleResponse

type OpenConsoleResponse struct {
	Ticket        string `json:"ticket,omitempty"`
	WebsocketPath string `json:"websocketPath,omitempty"`
}

OpenConsoleResponse is the API's v1OpenConsoleResponse object.

type OperationStatus

type OperationStatus string

OperationStatus is an API enum.

const (
	OperationStatusUnspecified  OperationStatus = "OPERATION_STATUS_UNSPECIFIED"
	OperationStatusCreated      OperationStatus = "OPERATION_STATUS_CREATED"
	OperationStatusStarted      OperationStatus = "OPERATION_STATUS_STARTED"
	OperationStatusStopped      OperationStatus = "OPERATION_STATUS_STOPPED"
	OperationStatusDeleted      OperationStatus = "OPERATION_STATUS_DELETED"
	OperationStatusRestarted    OperationStatus = "OPERATION_STATUS_RESTARTED"
	OperationStatusReinstalling OperationStatus = "OPERATION_STATUS_REINSTALLING"
)

Values of OperationStatus.

type Option

type Option func(*Client) error

Option configures a Client.

func WithBaseURL

func WithBaseURL(raw string) Option

WithBaseURL points the client at another API endpoint, for example a test environment. The default is DefaultBaseURL.

func WithHTTPClient

func WithHTTPClient(h *http.Client) Option

WithHTTPClient sets the HTTP client used for requests. The default has a 60-second timeout.

func WithLogger

func WithLogger(l *slog.Logger) Option

WithLogger logs one debug line per HTTP request (method, path, status, duration). Tokens and bodies are never logged.

func WithOrganization

func WithOrganization(id string) Option

WithOrganization sends every request in the given organization (the X-Organization-ID header). Without it the API uses the token's organization.

func WithRetries

func WithRetries(maxRetries int, minBackoff, maxBackoff time.Duration) Option

WithRetries sets how often a failed request is retried (default 3) and the first and largest wait between attempts (default 500 ms and 10 s). See Client for which requests are retried. Use 0 retries to turn retrying off.

func WithUserAgent

func WithUserAgent(ua string) Option

WithUserAgent adds a product token, such as "my-app/1.2", in front of the SDK's own User-Agent.

type OrderGame

type OrderGame struct {
	// eula is true when this egg stops until the player accepts the Minecraft EULA.
	EULA      bool          `json:"eula,omitempty"`
	Icon      string        `json:"icon,omitempty"`
	ID        string        `json:"id,omitempty"`
	Name      string        `json:"name,omitempty"`
	Variables []EggVariable `json:"variables,omitempty"`
}

OrderGame is the API's v1OrderGame object.

type Organization

type Organization struct {
	ASN int64 `json:"asn,omitempty,string"`
	// DDoS mitigation partner slug (e.g. "none"). Provider organizations only.
	DDoSProvider          string   `json:"ddosProvider,omitempty"`
	Description           string   `json:"description,omitempty"`
	Domains               []string `json:"domains,omitempty"`
	EnforceMFA            bool     `json:"enforceMfa,omitempty"`
	EnforceSSO            bool     `json:"enforceSso,omitempty"`
	EnforceVerifiedDomain bool     `json:"enforceVerifiedDomain,omitempty"`
	Groups                []string `json:"groups,omitempty"`
	// - PLATFORM_DRIVER_PTERODACTYL: Game-server platform. Not a value of the organization hypervisor driver.
	HypervisorDriver PlatformDriver `json:"hypervisorDriver,omitempty"`
	ID               string         `json:"id,omitempty"`
	// Provider marketplace / admin verification (first-class fields; not part of metadata).
	IsVerified bool           `json:"isVerified,omitempty"`
	Metadata   map[string]any `json:"metadata,omitempty"`
	Name       string         `json:"name,omitempty"`
	// True after the provider has completed the self-serve onboarding checklist once.
	Onboarded         bool     `json:"onboarded,omitempty"`
	OrganizationRoles []string `json:"organizationRoles,omitempty"`
	Owner             string   `json:"owner,omitempty"`
	ProviderLogoURL   string   `json:"providerLogoUrl,omitempty"`
	// Public storefront / company website (http or https). Provider organizations only.
	ProviderWebsiteURL string           `json:"providerWebsiteUrl,omitempty"`
	ReviewRequested    bool             `json:"reviewRequested,omitempty"`
	Status             Protov1Status    `json:"status,omitempty"`
	Subscriptions      []string         `json:"subscriptions,omitempty"`
	Timestamps         *Timestamps      `json:"timestamps,omitempty"`
	Type               OrganizationType `json:"type,omitempty"`
}

Organization: Organization object for providers and clients

type OrganizationDetails

type OrganizationDetails struct {
	Name    string `json:"name,omitempty"`
	OrgType string `json:"orgType,omitempty"`
}

OrganizationDetails: OrganizationDetails contains organization information

type OrganizationService

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

OrganizationService calls the NodeRings OrganizationService API.

func (*OrganizationService) CreateOrganization

func (s *OrganizationService) CreateOrganization(ctx context.Context, body *CreateOrganizationRequest) (*SuccessResponse, error)

CreateOrganization calls POST /v1/organizations.

func (*OrganizationService) DeleteOrganization

func (s *OrganizationService) DeleteOrganization(ctx context.Context) (*SuccessResponse, error)

DeleteOrganization calls DELETE /v1/organizations.

func (*OrganizationService) GetOrganization

func (s *OrganizationService) GetOrganization(ctx context.Context) (*GetOrganizationResponse, error)

GetOrganization calls GET /v1/organization.

func (*OrganizationService) ListOrganizations

ListOrganizations calls GET /v1/organizations.

func (*OrganizationService) ListOrganizationsAll

func (s *OrganizationService) ListOrganizationsAll(ctx context.Context, params *ListOrganizationsParams) iter.Seq2[Organization, error]

ListOrganizationsAll returns an iterator over every result of ListOrganizations, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*OrganizationService) UpdateOrganization

UpdateOrganization calls PATCH /v1/organizations.

type OrganizationType

type OrganizationType string

OrganizationType is an API enum.

const (
	OrganizationTypeUnspecified OrganizationType = "ORGANIZATION_TYPE_UNSPECIFIED"
	OrganizationTypeProvider    OrganizationType = "ORGANIZATION_TYPE_PROVIDER"
	OrganizationTypeClient      OrganizationType = "ORGANIZATION_TYPE_CLIENT"
)

Values of OrganizationType.

type PayInvoiceBody

type PayInvoiceBody struct {
}

PayInvoiceBody is the API's InvoiceServicePayInvoiceBody object.

type PayInvoiceResponse

type PayInvoiceResponse struct {
	Invoice       *Invoice      `json:"invoice,omitempty"`
	InvoiceLines  []InvoiceLine `json:"invoiceLines,omitempty"`
	PaymentStatus string        `json:"paymentStatus,omitempty"`
	TransactionID string        `json:"transactionId,omitempty"`
}

PayInvoiceResponse is the API's v1PayInvoiceResponse object.

type Payment

type Payment struct {
	Amount          string        `json:"amount,omitempty"`
	CreatedAt       *time.Time    `json:"createdAt,omitempty"`
	Currency        string        `json:"currency,omitempty"`
	FailureCode     string        `json:"failureCode,omitempty"`
	FailureReason   string        `json:"failureReason,omitempty"`
	ID              string        `json:"id,omitempty"`
	InvoiceID       string        `json:"invoiceId,omitempty"`
	PaymentMethodID string        `json:"paymentMethodId,omitempty"`
	PaymentProvider string        `json:"paymentProvider,omitempty"`
	PaymentStatus   PaymentStatus `json:"paymentStatus,omitempty"`
	ProcessedAt     *time.Time    `json:"processedAt,omitempty"`
	RefundAmount    string        `json:"refundAmount,omitempty"`
	RefundReason    string        `json:"refundReason,omitempty"`
	RefundedAt      *time.Time    `json:"refundedAt,omitempty"`
	Status          Protov1Status `json:"status,omitempty"`
	Timestamps      *Timestamps   `json:"timestamps,omitempty"`
	TransactionID   string        `json:"transactionId,omitempty"`
}

Payment: Payment represents a payment transaction for an invoice

type PaymentMethod

type PaymentMethod struct {
	// Card brand (for cards): "visa", "mastercard", etc.
	Brand       string         `json:"brand,omitempty"`
	CreatedAt   *time.Time     `json:"createdAt,omitempty"`
	CustomerID  string         `json:"customerId,omitempty"`
	ExpiryMonth int32          `json:"expiryMonth,omitempty"`
	ExpiryYear  int32          `json:"expiryYear,omitempty"`
	ID          string         `json:"id,omitempty"`
	IsDefault   bool           `json:"isDefault,omitempty"`
	Last4       string         `json:"last4,omitempty"`
	Metadata    map[string]any `json:"metadata,omitempty"`
	// Organization that owns this payment method
	OrganizationID                 string        `json:"organizationId,omitempty"`
	PaymentProviderPaymentMethodID string        `json:"paymentProviderPaymentMethodId,omitempty"`
	Status                         Protov1Status `json:"status,omitempty"`
	SubscriptionID                 string        `json:"subscriptionId,omitempty"`
	Timestamps                     *Timestamps   `json:"timestamps,omitempty"`
	// Payment method type: "card", "paypal", etc.
	Type string `json:"type,omitempty"`
}

PaymentMethod: PaymentMethod represents a payment method attached to a customer/organization

type PaymentMethodService

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

PaymentMethodService calls the NodeRings PaymentMethodService API.

func (*PaymentMethodService) AttachPaymentMethod

AttachPaymentMethod: Attach a payment method to a subscription/organization Works for both providers (platform subscriptions) and clients (provider plan subscriptions) Authorization: Check organization type and rule engine (subscription.payment_method.manage.enabled)

It calls POST /v1/payment-methods.

func (*PaymentMethodService) ListPaymentMethods

ListPaymentMethods: List payment methods for an organization/subscription Returns payment method details (type, last4, brand, expiry, is_default)

It calls GET /v1/payment-methods.

func (*PaymentMethodService) ListPaymentMethodsAll

func (s *PaymentMethodService) ListPaymentMethodsAll(ctx context.Context, params *ListPaymentMethodsParams) iter.Seq2[PaymentMethod, error]

ListPaymentMethodsAll returns an iterator over every result of ListPaymentMethods, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*PaymentMethodService) RemovePaymentMethod

func (s *PaymentMethodService) RemovePaymentMethod(ctx context.Context, paymentMethodID string) (*RemovePaymentMethodResponse, error)

RemovePaymentMethod: Remove a payment method Validation: - Providers: Cannot remove if only one method exists (except on free plan) - Clients: Cannot remove if only one method exists - Cannot remove if payment method is currently in use for active subscriptions

It calls DELETE /v1/payment-methods/{paymentMethodId}.

func (*PaymentMethodService) SetDefaultPaymentMethod

func (s *PaymentMethodService) SetDefaultPaymentMethod(ctx context.Context, paymentMethodID string, body *SetDefaultPaymentMethodBody) (*SetDefaultPaymentMethodResponse, error)

SetDefaultPaymentMethod: Set a payment method as the default payment method Validates payment method belongs to organization/subscription

It calls POST /v1/payment-methods/{paymentMethodId}:set-default.

type PaymentService

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

PaymentService calls the NodeRings PaymentService API.

func (*PaymentService) GetPayment

func (s *PaymentService) GetPayment(ctx context.Context, paymentID string) (*GetPaymentResponse, error)

GetPayment: GetPayment retrieves a single payment with refunds

It calls GET /v1/payments/{paymentId}.

func (*PaymentService) ListPayments

func (s *PaymentService) ListPayments(ctx context.Context, params *ListPaymentsParams) (*ListPaymentsResponse, error)

ListPayments: ListPayments lists payments for an invoice or organization

It calls GET /v1/payments.

func (*PaymentService) ListPaymentsAll

func (s *PaymentService) ListPaymentsAll(ctx context.Context, params *ListPaymentsParams) iter.Seq2[Payment, error]

ListPaymentsAll returns an iterator over every result of ListPayments, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

type PaymentStatus

type PaymentStatus string

PaymentStatus is an API enum.

const (
	PaymentStatusUnspecified       PaymentStatus = "PAYMENT_STATUS_UNSPECIFIED"
	PaymentStatusPending           PaymentStatus = "PAYMENT_STATUS_PENDING"
	PaymentStatusProcessing        PaymentStatus = "PAYMENT_STATUS_PROCESSING"
	PaymentStatusSucceeded         PaymentStatus = "PAYMENT_STATUS_SUCCEEDED"
	PaymentStatusFailed            PaymentStatus = "PAYMENT_STATUS_FAILED"
	PaymentStatusCanceled          PaymentStatus = "PAYMENT_STATUS_CANCELED"
	PaymentStatusRefunded          PaymentStatus = "PAYMENT_STATUS_REFUNDED"
	PaymentStatusPartiallyRefunded PaymentStatus = "PAYMENT_STATUS_PARTIALLY_REFUNDED"
)

Values of PaymentStatus.

type PayoutConfiguration

type PayoutConfiguration struct {
	Enabled          bool   `json:"enabled,omitempty"`
	ScheduleTime     string `json:"scheduleTime,omitempty"`
	ScheduleTimezone string `json:"scheduleTimezone,omitempty"`
	// - PAYOUT_SCHEDULE_TYPE_IMMEDIATE: Transfer immediately when payment succeeds
	//  - PAYOUT_SCHEDULE_TYPE_DAILY: Transfer once per day at specified time
	//  - PAYOUT_SCHEDULE_TYPE_WEEKLY: Transfer once per week at specified time
	//  - PAYOUT_SCHEDULE_TYPE_MONTHLY: Transfer once per month at specified time
	ScheduleType PayoutScheduleType `json:"scheduleType,omitempty"`
}

PayoutConfiguration is the API's v1PayoutConfiguration object.

type PayoutConfigurationService

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

PayoutConfigurationService calls the NodeRings PayoutConfigurationService API.

func (*PayoutConfigurationService) GetPayoutConfiguration

GetPayoutConfiguration calls GET /v1/provider/payout-configuration.

func (*PayoutConfigurationService) UpdatePayoutConfiguration

UpdatePayoutConfiguration calls PUT /v1/provider/payout-configuration.

type PayoutHoldReason

type PayoutHoldReason string

PayoutHoldReason: - PAYOUT_HOLD_REASON_COUPON_FIRST_PURCHASE: Heavily discounted first purchase from a client.

  • PAYOUT_HOLD_REASON_CREDIT_FUNDED: Paid with prepaid credits.
  • PAYOUT_HOLD_REASON_DISPUTE: The client opened a dispute; held until it closes.
const (
	PayoutHoldReasonUnspecified         PayoutHoldReason = "PAYOUT_HOLD_REASON_UNSPECIFIED"
	PayoutHoldReasonCouponFirstPurchase PayoutHoldReason = "PAYOUT_HOLD_REASON_COUPON_FIRST_PURCHASE"
	PayoutHoldReasonCreditFunded        PayoutHoldReason = "PAYOUT_HOLD_REASON_CREDIT_FUNDED"
	PayoutHoldReasonDispute             PayoutHoldReason = "PAYOUT_HOLD_REASON_DISPUTE"
)

Values of PayoutHoldReason.

type PayoutInvoice

type PayoutInvoice struct {
	Amount                 string         `json:"amount,omitempty"`
	CompletedAt            *time.Time     `json:"completedAt,omitempty"`
	ConnectAccountID       string         `json:"connectAccountId,omitempty"`
	Currency               string         `json:"currency,omitempty"`
	FailedAt               *time.Time     `json:"failedAt,omitempty"`
	FailureCode            string         `json:"failureCode,omitempty"`
	FailureReason          string         `json:"failureReason,omitempty"`
	ID                     string         `json:"id,omitempty"`
	InvoiceIDs             []string       `json:"invoiceIds,omitempty"`
	LastRetryAt            *time.Time     `json:"lastRetryAt,omitempty"`
	MaxRetries             int32          `json:"maxRetries,omitempty"`
	Metadata               map[string]any `json:"metadata,omitempty"`
	PaymentProvider        string         `json:"paymentProvider,omitempty"`
	PayoutStatus           PayoutStatus   `json:"payoutStatus,omitempty"`
	PlatformFeeAmount      string         `json:"platformFeeAmount,omitempty"`
	ProcessedAt            *time.Time     `json:"processedAt,omitempty"`
	ProviderOrganizationID string         `json:"providerOrganizationId,omitempty"`
	RetryCount             int32          `json:"retryCount,omitempty"`
	Status                 Protov1Status  `json:"status,omitempty"`
	Timestamps             *Timestamps    `json:"timestamps,omitempty"`
	TransferTransactionID  string         `json:"transferTransactionId,omitempty"`
}

PayoutInvoice is the API's v1PayoutInvoice object.

type PayoutInvoiceService

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

PayoutInvoiceService calls the NodeRings PayoutInvoiceService API.

func (*PayoutInvoiceService) GetPayoutInvoice

func (s *PayoutInvoiceService) GetPayoutInvoice(ctx context.Context, id string) (*GetPayoutInvoiceResponse, error)

GetPayoutInvoice calls GET /v1/provider/payout-invoices/{id}.

func (*PayoutInvoiceService) GetProviderRevenue

GetProviderRevenue calls GET /v1/provider/revenue.

func (*PayoutInvoiceService) ListHeldPayouts

ListHeldPayouts: Paid client invoices whose payout to this provider is on hold, soonest release first.

It calls GET /v1/provider/held-payouts.

func (*PayoutInvoiceService) ListHeldPayoutsAll

func (s *PayoutInvoiceService) ListHeldPayoutsAll(ctx context.Context, params *ListHeldPayoutsParams) iter.Seq2[HeldPayout, error]

ListHeldPayoutsAll returns an iterator over every result of ListHeldPayouts, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*PayoutInvoiceService) ListPayoutInvoices

ListPayoutInvoices calls GET /v1/provider/payout-invoices.

func (*PayoutInvoiceService) ListPayoutInvoicesAll

func (s *PayoutInvoiceService) ListPayoutInvoicesAll(ctx context.Context, params *ListPayoutInvoicesParams) iter.Seq2[PayoutInvoice, error]

ListPayoutInvoicesAll returns an iterator over every result of ListPayoutInvoices, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

type PayoutScheduleType

type PayoutScheduleType string

PayoutScheduleType: - PAYOUT_SCHEDULE_TYPE_IMMEDIATE: Transfer immediately when payment succeeds

  • PAYOUT_SCHEDULE_TYPE_DAILY: Transfer once per day at specified time
  • PAYOUT_SCHEDULE_TYPE_WEEKLY: Transfer once per week at specified time
  • PAYOUT_SCHEDULE_TYPE_MONTHLY: Transfer once per month at specified time
const (
	PayoutScheduleTypeUnspecified PayoutScheduleType = "PAYOUT_SCHEDULE_TYPE_UNSPECIFIED"
	PayoutScheduleTypeImmediate   PayoutScheduleType = "PAYOUT_SCHEDULE_TYPE_IMMEDIATE"
	PayoutScheduleTypeDaily       PayoutScheduleType = "PAYOUT_SCHEDULE_TYPE_DAILY"
	PayoutScheduleTypeWeekly      PayoutScheduleType = "PAYOUT_SCHEDULE_TYPE_WEEKLY"
	PayoutScheduleTypeMonthly     PayoutScheduleType = "PAYOUT_SCHEDULE_TYPE_MONTHLY"
)

Values of PayoutScheduleType.

type PayoutStatus

type PayoutStatus string

PayoutStatus is an API enum.

const (
	PayoutStatusUnspecified PayoutStatus = "PAYOUT_STATUS_UNSPECIFIED"
	PayoutStatusPending     PayoutStatus = "PAYOUT_STATUS_PENDING"
	PayoutStatusProcessing  PayoutStatus = "PAYOUT_STATUS_PROCESSING"
	PayoutStatusCompleted   PayoutStatus = "PAYOUT_STATUS_COMPLETED"
	PayoutStatusFailed      PayoutStatus = "PAYOUT_STATUS_FAILED"
	PayoutStatusCanceled    PayoutStatus = "PAYOUT_STATUS_CANCELED"
)

Values of PayoutStatus.

type Permission

type Permission struct {
	HTTPMethod  string `json:"httpMethod,omitempty"`
	ID          string `json:"id,omitempty"`
	MethodName  string `json:"methodName,omitempty"`
	Scope       string `json:"scope,omitempty"`
	ServiceName string `json:"serviceName,omitempty"`
}

Permission is the API's v1Permission object.

type PermissionService

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

PermissionService calls the NodeRings PermissionService API.

func (*PermissionService) AssignPermissionToRole

func (s *PermissionService) AssignPermissionToRole(ctx context.Context, body *AssignPermissionToRoleRequest) (*SuccessResponse, error)

AssignPermissionToRole calls POST /v1/permissions/assign-to-role.

func (*PermissionService) ListEffectivePermissions

ListEffectivePermissions calls GET /v1/permissions/effective.

func (*PermissionService) ListPermissions

ListPermissions calls GET /v1/permissions.

func (*PermissionService) ListPermissionsAll

func (s *PermissionService) ListPermissionsAll(ctx context.Context, params *ListPermissionsParams) iter.Seq2[Permission, error]

ListPermissionsAll returns an iterator over every result of ListPermissions, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*PermissionService) RemovePermissionFromRole

func (s *PermissionService) RemovePermissionFromRole(ctx context.Context, params *RemovePermissionFromRoleParams) (*SuccessResponse, error)

RemovePermissionFromRole calls DELETE /v1/permissions/remove-from-role.

type Plan

type Plan struct {
	AssetCategory     AssetCategory  `json:"assetCategory,omitempty"`
	AssetType         AssetType      `json:"assetType,omitempty"`
	AutoRenew         bool           `json:"autoRenew,omitempty"`
	BillingPeriod     BillingPeriod  `json:"billingPeriod,omitempty"`
	BillingType       BillingType    `json:"billingType,omitempty"`
	Code              string         `json:"code,omitempty"`
	Currency          string         `json:"currency,omitempty"`
	Description       string         `json:"description,omitempty"`
	EffectiveFrom     *time.Time     `json:"effectiveFrom,omitempty"`
	EffectiveUntil    *time.Time     `json:"effectiveUntil,omitempty"`
	EndUser           EndUser        `json:"endUser,omitempty"`
	ExternalBillingID string         `json:"externalBillingId,omitempty"`
	GracePeriodDays   int32          `json:"gracePeriodDays,omitempty"`
	ID                string         `json:"id,omitempty"`
	IsPublic          bool           `json:"isPublic,omitempty"`
	MaxSubscribers    int32          `json:"maxSubscribers,omitempty"`
	Metadata          map[string]any `json:"metadata,omitempty"`
	Name              string         `json:"name,omitempty"`
	// Nodes explicitly assigned to this plan (placement / preflight candidates).
	NodeIDs []string `json:"nodeIds,omitempty"`
	// Provider choice when client prepaid credits are exhausted.
	// Values: "suspend" (default), "continue_with_dunning". Relevant for usage-based Offerings.
	OnCreditExhaustion string `json:"onCreditExhaustion,omitempty"`
	// Name of the organization that owns this plan
	OrganizationName       string        `json:"organizationName,omitempty"`
	PlanCategory           PlanCategory  `json:"planCategory,omitempty"`
	PlanPrices             []PlanPrice   `json:"planPrices,omitempty"`
	PlanType               PlanType      `json:"planType,omitempty"`
	RegionIDs              []string      `json:"regionIds,omitempty"`
	RequiresManualApproval bool          `json:"requiresManualApproval,omitempty"`
	RulesetIDs             []string      `json:"rulesetIds,omitempty"`
	SetupFee               string        `json:"setupFee,omitempty"`
	SLAHours               int32         `json:"slaHours,omitempty"`
	Status                 Protov1Status `json:"status,omitempty"`
	SubscriptionIDs        []string      `json:"subscriptionIds,omitempty"`
	TemplatePlanID         string        `json:"templatePlanId,omitempty"`
	Timestamps             *Timestamps   `json:"timestamps,omitempty"`
	TrialAvailable         bool          `json:"trialAvailable,omitempty"`
	TrialDays              int32         `json:"trialDays,omitempty"`
}

Plan is the API's v1Plan object.

type PlanCategory

type PlanCategory string

PlanCategory is an API enum.

const (
	PlanCategoryUnspecified PlanCategory = "PLAN_CATEGORY_UNSPECIFIED"
	PlanCategoryFree        PlanCategory = "PLAN_CATEGORY_FREE"
	PlanCategoryStarter     PlanCategory = "PLAN_CATEGORY_STARTER"
	PlanCategoryPremium     PlanCategory = "PLAN_CATEGORY_PREMIUM"
	PlanCategoryCustom      PlanCategory = "PLAN_CATEGORY_CUSTOM"
)

Values of PlanCategory.

type PlanLiveValidationBenchmarkView

type PlanLiveValidationBenchmarkView struct {
	CPU        map[string]any `json:"cpu,omitempty"`
	CreateTime *time.Time     `json:"createTime,omitempty"`
	ID         string         `json:"id,omitempty"`
	Memory     map[string]any `json:"memory,omitempty"`
	Misc       map[string]any `json:"misc,omitempty"`
	Network    map[string]any `json:"network,omitempty"`
	NodeID     string         `json:"nodeId,omitempty"`
	NodeName   string         `json:"nodeName,omitempty"`
	Passed     bool           `json:"passed,omitempty"`
	PlanCode   string         `json:"planCode,omitempty"`
	PlanID     string         `json:"planId,omitempty"`
	Storage    map[string]any `json:"storage,omitempty"`
}

PlanLiveValidationBenchmarkView is the API's v1PlanLiveValidationBenchmarkView object.

type PlanLiveValidationNodeView

type PlanLiveValidationNodeView struct {
	NodeID     string `json:"nodeId,omitempty"`
	NodeName   string `json:"nodeName,omitempty"`
	RegionID   string `json:"regionId,omitempty"`
	RegionName string `json:"regionName,omitempty"`
}

PlanLiveValidationNodeView is the API's v1PlanLiveValidationNodeView object.

type PlanLiveValidationView

type PlanLiveValidationView struct {
	CheckedAt                *time.Time                `json:"checkedAt,omitempty"`
	Checks                   []LiveValidationCheckView `json:"checks,omitempty"`
	IncludeBenchmarking      bool                      `json:"includeBenchmarking,omitempty"`
	MarketplaceLiveValidated bool                      `json:"marketplaceLiveValidated,omitempty"`
	NodeID                   string                    `json:"nodeId,omitempty"`
	NodeName                 string                    `json:"nodeName,omitempty"`
	Passed                   bool                      `json:"passed,omitempty"`
	Phase                    string                    `json:"phase,omitempty"`
	PlanCode                 string                    `json:"planCode,omitempty"`
	PlanID                   string                    `json:"planId,omitempty"`
	RegionName               string                    `json:"regionName,omitempty"`
	StartedAt                *time.Time                `json:"startedAt,omitempty"`
	Status                   string                    `json:"status,omitempty"`
	SummaryNote              string                    `json:"summaryNote,omitempty"`
}

PlanLiveValidationView is the API's v1PlanLiveValidationView object.

type PlanPreflightView

type PlanPreflightView struct {
	BillingType      BillingType                   `json:"billingType,omitempty"`
	Infrastructure   []PreflightInfrastructureView `json:"infrastructure,omitempty"`
	MarketplaceReady bool                          `json:"marketplaceReady,omitempty"`
	PlanChecks       []PreflightCheckView          `json:"planChecks,omitempty"`
	PlanCode         string                        `json:"planCode,omitempty"`
	PlanID           string                        `json:"planId,omitempty"`
	PlanName         string                        `json:"planName,omitempty"`
	RegionLabels     []string                      `json:"regionLabels,omitempty"`
	SummaryIssues    []string                      `json:"summaryIssues,omitempty"`
	SummaryNote      string                        `json:"summaryNote,omitempty"`
}

PlanPreflightView is the API's v1PlanPreflightView object.

type PlanPrice

type PlanPrice struct {
	BillingInterval   int32             `json:"billingInterval,omitempty"`
	BillingPeriod     BillingPeriod     `json:"billingPeriod,omitempty"`
	ChargeTiming      ChargeTiming      `json:"chargeTiming,omitempty"`
	Currency          string            `json:"currency,omitempty"`
	EffectiveFrom     *time.Time        `json:"effectiveFrom,omitempty"`
	EffectiveUntil    *time.Time        `json:"effectiveUntil,omitempty"`
	ExternalID        string            `json:"externalId,omitempty"`
	FreeAmount        string            `json:"freeAmount,omitempty"`
	FreeUnits         int32             `json:"freeUnits,omitempty"`
	ID                string            `json:"id,omitempty"`
	MaxQuantity       int32             `json:"maxQuantity,omitempty"`
	MaximumCharge     string            `json:"maximumCharge,omitempty"`
	Metadata          map[string]any    `json:"metadata,omitempty"`
	Metered           bool              `json:"metered,omitempty"`
	MetricAggregation MetricAggregation `json:"metricAggregation,omitempty"`
	MetricIDs         []string          `json:"metricIds,omitempty"`
	MetricName        string            `json:"metricName,omitempty"`
	MinQuantity       int32             `json:"minQuantity,omitempty"`
	// Decimal string with 6 decimal places precision
	MinimumCharge           string         `json:"minimumCharge,omitempty"`
	OveragePrice            string         `json:"overagePrice,omitempty"`
	PackagePrice            string         `json:"packagePrice,omitempty"`
	PackageSize             int32          `json:"packageSize,omitempty"`
	ParentPlanID            string         `json:"parentPlanId,omitempty"`
	PlanPrices              []Plan         `json:"planPrices,omitempty"`
	PricingFormula          map[string]any `json:"pricingFormula,omitempty"`
	PricingModel            PricingModel   `json:"pricingModel,omitempty"`
	PricingTierIDs          []string       `json:"pricingTierIds,omitempty"`
	ProductType             ProductType    `json:"productType,omitempty"`
	Prorate                 bool           `json:"prorate,omitempty"`
	Status                  Protov1Status  `json:"status,omitempty"`
	SubscriptionTemplateIDs []string       `json:"subscriptionTemplateIds,omitempty"`
	TierMode                TierMode       `json:"tierMode,omitempty"`
	Timestamps              *Timestamps    `json:"timestamps,omitempty"`
	UnitAmount              string         `json:"unitAmount,omitempty"`
	UnitName                string         `json:"unitName,omitempty"`
	UnitQuantity            int32          `json:"unitQuantity,omitempty"`
}

PlanPrice is the API's v1PlanPrice object.

type PlanPriceInput

type PlanPriceInput struct {
	AddonCode         string             `json:"addonCode,omitempty"`
	BillingInterval   int32              `json:"billingInterval,omitempty"`
	BillingPeriod     BillingPeriod      `json:"billingPeriod,omitempty"`
	ChargeTiming      ChargeTiming       `json:"chargeTiming,omitempty"`
	FreeUnits         int32              `json:"freeUnits,omitempty"`
	MaximumCharge     string             `json:"maximumCharge,omitempty"`
	MetricAggregation MetricAggregation  `json:"metricAggregation,omitempty"`
	MetricName        string             `json:"metricName,omitempty"`
	MinimumCharge     string             `json:"minimumCharge,omitempty"`
	OveragePrice      string             `json:"overagePrice,omitempty"`
	PackagePrice      string             `json:"packagePrice,omitempty"`
	PackageSize       int32              `json:"packageSize,omitempty"`
	PricingFormula    map[string]any     `json:"pricingFormula,omitempty"`
	PricingModel      PricingModel       `json:"pricingModel,omitempty"`
	ProductType       ProductType        `json:"productType,omitempty"`
	Prorate           *bool              `json:"prorate,omitempty"`
	Tiers             []PricingTierInput `json:"tiers,omitempty"`
	// Decimal string with 6 decimal places precision
	UnitAmount   string `json:"unitAmount,omitempty"`
	UnitName     string `json:"unitName,omitempty"`
	UnitQuantity int32  `json:"unitQuantity,omitempty"`
}

PlanPriceInput is the API's v1PlanPriceInput object.

type PlanPriceOverride

type PlanPriceOverride struct {
	FreeUnits     int32  `json:"freeUnits,omitempty"`
	MaximumCharge string `json:"maximumCharge,omitempty"`
	MetricID      string `json:"metricId,omitempty"`
	MinimumCharge string `json:"minimumCharge,omitempty"`
	PlanPriceID   string `json:"planPriceId,omitempty"`
	UnitAmount    string `json:"unitAmount,omitempty"`
}

PlanPriceOverride: PlanPriceOverride allows overriding specific fields for plan prices when cloning. Either metric_id (for usage-based pricing) or plan_price_id (for fixed pricing) must be provided to identify which plan price to override.

type PlanPricingConfig

type PlanPricingConfig struct {
	AssetCategory string           `json:"assetCategory,omitempty"`
	AssetType     string           `json:"assetType,omitempty"`
	Currency      string           `json:"currency,omitempty"`
	PlanName      string           `json:"planName,omitempty"`
	Prices        []PlanPriceInput `json:"prices,omitempty"`
}

PlanPricingConfig is the API's v1PlanPricingConfig object.

type PlanRegion

type PlanRegion struct {
	City      string  `json:"city,omitempty"`
	Country   string  `json:"country,omitempty"`
	Latitude  float64 `json:"latitude,omitempty"`
	Longitude float64 `json:"longitude,omitempty"`
	RegionID  string  `json:"regionId,omitempty"`
}

PlanRegion: Plan region information (simplified for marketplace). Used by ListProviders (ProviderInfo.plan_regions), GetProvider (ProviderCatalogPlan.regions), and encoded by the same backend helpers as plan-linked region edges.

type PlanService

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

PlanService calls the NodeRings PlanService API.

func (*PlanService) ListPlans

func (s *PlanService) ListPlans(ctx context.Context, params *ListPlansParams) (*ListPlansResponse, error)

ListPlans calls GET /v1/plans.

func (*PlanService) ListPlansAll

func (s *PlanService) ListPlansAll(ctx context.Context, params *ListPlansParams) iter.Seq2[Plan, error]

ListPlansAll returns an iterator over every result of ListPlans, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*PlanService) Subscribe

func (s *PlanService) Subscribe(ctx context.Context, planID string, params *SubscribeParams) (*SubscribeResponse, error)

Subscribe calls POST /v1/plans/{planId}:subscribe.

type PlanType

type PlanType string

PlanType is an API enum.

const (
	PlanTypeUnspecified PlanType = "PLAN_TYPE_UNSPECIFIED"
	PlanTypeFree        PlanType = "PLAN_TYPE_FREE"
	PlanTypeTrial       PlanType = "PLAN_TYPE_TRIAL"
	PlanTypePaid        PlanType = "PLAN_TYPE_PAID"
	PlanTypeEnterprise  PlanType = "PLAN_TYPE_ENTERPRISE"
)

Values of PlanType.

type Platform

type Platform struct {
	AgentID string `json:"agentId,omitempty"`
	// VirtFusion/SolusVM: guests on this platform are offered panel-assigned IPv6.
	// Ignored for Proxmox (IPv6 is prefix-derived). Default false.
	AssignCustomerIPv6 bool `json:"assignCustomerIpv6,omitempty"`
	// - PLATFORM_DRIVER_PTERODACTYL: Game-server platform. Not a value of the organization hypervisor driver.
	Driver         PlatformDriver `json:"driver,omitempty"`
	EndpointURL    string         `json:"endpointUrl,omitempty"`
	ID             string         `json:"id,omitempty"`
	Kind           PlatformKind   `json:"kind,omitempty"`
	Metadata       map[string]any `json:"metadata,omitempty"`
	Name           string         `json:"name,omitempty"`
	OrganizationID string         `json:"organizationId,omitempty"`
	ServiceStatus  ServiceStatus  `json:"serviceStatus,omitempty"`
	Status         Protov1Status  `json:"status,omitempty"`
	Timestamps     *Timestamps    `json:"timestamps,omitempty"`
}

Platform is the API's v1Platform object.

type PlatformDriver

type PlatformDriver string

PlatformDriver: - PLATFORM_DRIVER_PTERODACTYL: Game-server platform. Not a value of the organization hypervisor driver.

const (
	PlatformDriverUnspecified PlatformDriver = "PLATFORM_DRIVER_UNSPECIFIED"
	PlatformDriverProxmox     PlatformDriver = "PLATFORM_DRIVER_PROXMOX"
	PlatformDriverVirtfusion  PlatformDriver = "PLATFORM_DRIVER_VIRTFUSION"
	PlatformDriverSolusvm     PlatformDriver = "PLATFORM_DRIVER_SOLUSVM"
	PlatformDriverPterodactyl PlatformDriver = "PLATFORM_DRIVER_PTERODACTYL"
)

Values of PlatformDriver.

type PlatformKind

type PlatformKind string

PlatformKind is an API enum.

const (
	PlatformKindUnspecified PlatformKind = "PLATFORM_KIND_UNSPECIFIED"
	PlatformKindHypervisor  PlatformKind = "PLATFORM_KIND_HYPERVISOR"
	PlatformKindPterodactyl PlatformKind = "PLATFORM_KIND_PTERODACTYL"
)

Values of PlatformKind.

type PlatformService

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

PlatformService calls the NodeRings PlatformService API.

func (*PlatformService) AssignAgent

func (s *PlatformService) AssignAgent(ctx context.Context, platformID string, body *AssignAgentBody) (*SuccessResponse, error)

AssignAgent calls POST /v1/platforms/{platformId}:AssignAgent.

func (*PlatformService) CreatePlatform

func (s *PlatformService) CreatePlatform(ctx context.Context, body *CreatePlatformRequest) (*SuccessResponse, error)

CreatePlatform calls POST /v1/platform.

func (*PlatformService) DeletePlatform

func (s *PlatformService) DeletePlatform(ctx context.Context, id string) (*SuccessResponse, error)

DeletePlatform calls DELETE /v1/platform/{id}.

func (*PlatformService) GetPlatform

func (s *PlatformService) GetPlatform(ctx context.Context, id string) (*GetPlatformResponse, error)

GetPlatform calls GET /v1/platform/{id}.

func (*PlatformService) ListPlatforms

ListPlatforms calls GET /v1/platforms.

func (*PlatformService) ListPlatformsAll

func (s *PlatformService) ListPlatformsAll(ctx context.Context, params *ListPlatformsParams) iter.Seq2[Platform, error]

ListPlatformsAll returns an iterator over every result of ListPlatforms, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*PlatformService) UnassignAgent

func (s *PlatformService) UnassignAgent(ctx context.Context, platformID string, body *UnassignAgentBody) (*SuccessResponse, error)

UnassignAgent calls POST /v1/platforms/{platformId}:UnassignAgent.

func (*PlatformService) UpdatePlatform

UpdatePlatform calls PATCH /v1/platform/{id}.

type PlatformVersions

type PlatformVersions struct {
	Components []ComponentVersion `json:"components,omitempty"`
	// Schema version for forward-compatible clients (currently "1").
	SchemaVersion string `json:"schemaVersion,omitempty"`
}

PlatformVersions: PlatformVersions is the install matrix for provider CLI tooling and cluster components.

type PowerGameServerBody

type PowerGameServerBody struct {
	Signal string `json:"signal,omitempty"`
}

PowerGameServerBody is the API's GameServerServicePowerGameServerBody object.

type Prefix

type Prefix struct {
	AllocationStrategy AllocationStrategy `json:"allocationStrategy,omitempty"`
	CIDR               string             `json:"cidr,omitempty"`
	Description        string             `json:"description,omitempty"`
	// Default gateway IP (e.g., 10.0.0.1). Must be within the prefix CIDR.
	Gateway  string         `json:"gateway,omitempty"`
	ID       string         `json:"id,omitempty"`
	Metadata map[string]any `json:"metadata,omitempty"`
	// Network this prefix belongs to (for DNS servers). Optional.
	NetworkID                string      `json:"networkId,omitempty"`
	OrganizationID           string      `json:"organizationId,omitempty"`
	ReservedIPs              []string    `json:"reservedIps,omitempty"`
	ReservedPrefixes         []string    `json:"reservedPrefixes,omitempty"`
	Timestamps               *Timestamps `json:"timestamps,omitempty"`
	VMAssignmentPrefixLength int32       `json:"vmAssignmentPrefixLength,omitempty"`
}

Prefix is the API's v1Prefix object.

type PreflightAgentView

type PreflightAgentView struct {
	Checks   []PreflightCheckView   `json:"checks,omitempty"`
	ID       string                 `json:"id,omitempty"`
	Name     string                 `json:"name,omitempty"`
	Platform *PreflightPlatformView `json:"platform,omitempty"`
}

PreflightAgentView is the API's v1PreflightAgentView object.

type PreflightCheckView

type PreflightCheckView struct {
	Code      string               `json:"code,omitempty"`
	Note      string               `json:"note,omitempty"`
	Passed    bool                 `json:"passed,omitempty"`
	SubChecks []PreflightCheckView `json:"subChecks,omitempty"`
}

PreflightCheckView is the API's v1PreflightCheckView object.

type PreflightInfrastructureView

type PreflightInfrastructureView struct {
	Agent  *PreflightAgentView `json:"agent,omitempty"`
	Passed bool                `json:"passed,omitempty"`
}

PreflightInfrastructureView is the API's v1PreflightInfrastructureView object.

type PreflightNodeView

type PreflightNodeView struct {
	Checks []PreflightCheckView `json:"checks,omitempty"`
	ID     string               `json:"id,omitempty"`
	Name   string               `json:"name,omitempty"`
}

PreflightNodeView is the API's v1PreflightNodeView object.

type PreflightPlatformView

type PreflightPlatformView struct {
	Checks []PreflightCheckView `json:"checks,omitempty"`
	ID     string               `json:"id,omitempty"`
	Name   string               `json:"name,omitempty"`
	Node   *PreflightNodeView   `json:"node,omitempty"`
}

PreflightPlatformView is the API's v1PreflightPlatformView object.

type PreflightService

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

PreflightService calls the NodeRings PreflightService API.

func (*PreflightService) ListPreflightChecks

ListPreflightChecks calls GET /v1/provider/preflight-checks.

func (*PreflightService) ListPreflightChecksAll

func (s *PreflightService) ListPreflightChecksAll(ctx context.Context, params *ListPreflightChecksParams) iter.Seq2[PlanPreflightView, error]

ListPreflightChecksAll returns an iterator over every result of ListPreflightChecks, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

type PreviewCouponRequest

type PreviewCouponRequest struct {
	BillingPeriod BillingPeriod `json:"billingPeriod,omitempty"`
	Code          string        `json:"code,omitempty"`
	PlanID        string        `json:"planId,omitempty"`
	Quantity      int32         `json:"quantity,omitempty"`
}

PreviewCouponRequest is the API's v1PreviewCouponRequest object.

type PreviewCouponResponse

type PreviewCouponResponse struct {
	AmountOff string `json:"amountOff,omitempty"`
	Code      string `json:"code,omitempty"`
	Currency  string `json:"currency,omitempty"`
	// - COUPON_DISCOUNT_TYPE_CREDIT: A code that grants promotional credit instead of discounting a subscription.
	DiscountType    CouponDiscountType `json:"discountType,omitempty"`
	DiscountedPrice string             `json:"discountedPrice,omitempty"`
	// Fixed price for the selected period, empty for usage-priced plans.
	OriginalPrice string `json:"originalPrice,omitempty"`
	PercentOff    string `json:"percentOff,omitempty"`
	// Server-rendered disclosure; show it verbatim.
	TermsSummary string `json:"termsSummary,omitempty"`
}

PreviewCouponResponse is the API's v1PreviewCouponResponse object.

type PreviewMyStorefrontResponse

type PreviewMyStorefrontResponse struct {
	// Public provider storefront (anonymous). Copy is always the latest approved revision.
	SourceStatus StorefrontRevisionStatus `json:"sourceStatus,omitempty"`
	Storefront   *PublicStorefront        `json:"storefront,omitempty"`
}

PreviewMyStorefrontResponse is the API's v1PreviewMyStorefrontResponse object.

type PreviewNotificationTemplateResponse

type PreviewNotificationTemplateResponse struct {
	PreviewEmailBody             string `json:"previewEmailBody,omitempty"`
	PreviewEmailSubject          string `json:"previewEmailSubject,omitempty"`
	PreviewPushNotificationBody  string `json:"previewPushNotificationBody,omitempty"`
	PreviewPushNotificationTitle string `json:"previewPushNotificationTitle,omitempty"`
	PreviewSmsBody               string `json:"previewSmsBody,omitempty"`
	PreviewWebhookBody           string `json:"previewWebhookBody,omitempty"`
}

PreviewNotificationTemplateResponse is the API's v1PreviewNotificationTemplateResponse object.

type PricingCalculationConfig

type PricingCalculationConfig struct {
	CapHours        float64            `json:"capHours,omitempty"`
	CouponValue     string             `json:"couponValue,omitempty"`
	DiscountPercent float64            `json:"discountPercent,omitempty"`
	OverageRates    map[string]float64 `json:"overageRates,omitempty"`
	TaxRate         float64            `json:"taxRate,omitempty"`
}

PricingCalculationConfig is the API's v1PricingCalculationConfig object.

type PricingLineItem

type PricingLineItem struct {
	Addons        string `json:"addons,omitempty"`
	Base          string `json:"base,omitempty"`
	Currency      string `json:"currency,omitempty"`
	InstanceLabel string `json:"instanceLabel,omitempty"`
	Quantity      int32  `json:"quantity,omitempty"`
	Subtotal      string `json:"subtotal,omitempty"`
}

PricingLineItem is the API's v1PricingLineItem object.

type PricingModel

type PricingModel string

PricingModel is an API enum.

const (
	PricingModelUnspecified PricingModel = "PRICING_MODEL_UNSPECIFIED"
	PricingModelFixed       PricingModel = "PRICING_MODEL_FIXED"
	PricingModelUsageBased  PricingModel = "PRICING_MODEL_USAGE_BASED"
	PricingModelTiered      PricingModel = "PRICING_MODEL_TIERED"
	PricingModelVolume      PricingModel = "PRICING_MODEL_VOLUME"
	PricingModelGraduated   PricingModel = "PRICING_MODEL_GRADUATED"
	PricingModelPackage     PricingModel = "PRICING_MODEL_PACKAGE"
	PricingModelHybrid      PricingModel = "PRICING_MODEL_HYBRID"
)

Values of PricingModel.

type PricingTierInput

type PricingTierInput struct {
	EndExclusive   float64  `json:"endExclusive,omitempty"`
	FlatFee        *bool    `json:"flatFee,omitempty"`
	FlatFeeAmount  string   `json:"flatFeeAmount,omitempty"`
	StartInclusive float64  `json:"startInclusive,omitempty"`
	TierName       string   `json:"tierName,omitempty"`
	TierOrder      int32    `json:"tierOrder,omitempty"`
	TierType       TierMode `json:"tierType,omitempty"`
	UnitAmount     string   `json:"unitAmount,omitempty"`
}

PricingTierInput is the API's v1PricingTierInput object.

type ProductType

type ProductType string

ProductType is an API enum.

const (
	ProductTypeUnspecified ProductType = "PRODUCT_TYPE_UNSPECIFIED"
	ProductTypePlan        ProductType = "PRODUCT_TYPE_PLAN"
	ProductTypeAddon       ProductType = "PRODUCT_TYPE_ADDON"
)

Values of ProductType.

type PromoCreditGrant

type PromoCreditGrant struct {
	Amount     string     `json:"amount,omitempty"`
	Code       string     `json:"code,omitempty"`
	CouponName string     `json:"couponName,omitempty"`
	ExpiresAt  *time.Time `json:"expiresAt,omitempty"`
	ID         string     `json:"id,omitempty"`
	Remaining  string     `json:"remaining,omitempty"`
	// USD top-up needed to activate a pending grant. Empty when none is needed.
	RequiredTopup string `json:"requiredTopup,omitempty"`
	Reserved      string `json:"reserved,omitempty"`
	Source        string `json:"source,omitempty"`
	Status        string `json:"status,omitempty"`
}

PromoCreditGrant is the API's v1PromoCreditGrant object.

type ProtobufNullValue

type ProtobufNullValue string

ProtobufNullValue: `NullValue` is a singleton enumeration to represent the null value for the `Value` type union.

The JSON representation for `NullValue` is JSON `null`.

  • NULL_VALUE: Null value.
const (
	ProtobufNullValueValue ProtobufNullValue = "NULL_VALUE"
)

Values of ProtobufNullValue.

type Protov1Status

type Protov1Status string

Protov1Status is an API enum.

const (
	Protov1StatusUnspecified Protov1Status = "STATUS_UNSPECIFIED"
	Protov1StatusActive      Protov1Status = "STATUS_ACTIVE"
	Protov1StatusInactive    Protov1Status = "STATUS_INACTIVE"
	Protov1StatusBanned      Protov1Status = "STATUS_BANNED"
	Protov1StatusSoftDeleted Protov1Status = "STATUS_SOFT_DELETED"
)

Values of Protov1Status.

type ProviderCatalogPlan

type ProviderCatalogPlan struct {
	AssetType   AssetType   `json:"assetType,omitempty"`
	BillingType BillingType `json:"billingType,omitempty"`
	// - COMPUTE_CATEGORY_SHARED_COMPUTE: Shared compute (shared resources, cost-effective)
	//  - COMPUTE_CATEGORY_DEDICATED_COMPUTE: Dedicated compute (dedicated resources, higher performance)
	ComputeCategory ComputeCategory `json:"computeCategory,omitempty"`
	// - COMPUTE_TYPE_GENERAL_COMPUTE: GC - General Compute (balanced performance)
	//  - COMPUTE_TYPE_HIGH_FREQUENCY: HF - High Frequency (CPU-optimized, high clock speeds)
	//  - COMPUTE_TYPE_HIGH_PERFORMANCE: HP - High Performance (next-gen CPUs, NVMe storage)
	//  - COMPUTE_TYPE_GENERAL_PURPOSE: GP - General Purpose (balanced dedicated resources)
	//  - COMPUTE_TYPE_CPU_OPTIMIZED: CPU - CPU Optimized (high CPU-to-memory ratio)
	//  - COMPUTE_TYPE_MEMORY_OPTIMIZED: MEM - Memory Optimized (high memory-to-CPU ratio)
	//  - COMPUTE_TYPE_STORAGE_OPTIMIZED: STO - Storage Optimized (high storage capacity)
	//  - COMPUTE_TYPE_VERY_HIGH_FREQUENCY: VHF - Very High Frequency (highest clock dedicated CPUs)
	//  - COMPUTE_TYPE_GAME_SERVER: GS - Game Server (per-CPU SKU dedicated plans, e.g. DC-GS-9950X-*)
	ComputeType     ComputeType  `json:"computeType,omitempty"`
	PlanCode        string       `json:"planCode,omitempty"`
	PlanDescription string       `json:"planDescription,omitempty"`
	PlanID          string       `json:"planId,omitempty"`
	PlanName        string       `json:"planName,omitempty"`
	PlanPrices      []PlanPrice  `json:"planPrices,omitempty"`
	Regions         []PlanRegion `json:"regions,omitempty"`
}

ProviderCatalogPlan: One public plan offering for a provider (GetProvider catalog). Reuses PlanRegion + PlanPrice from the same marketplace encoding as ListProviders rows.

type ProviderConnectService

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

ProviderConnectService calls the NodeRings ProviderConnectService API.

func (*ProviderConnectService) CompleteConnectOAuth

CompleteConnectOAuth: Completes Stripe Connect OAuth after Stripe redirects back with a code.

It calls POST /v1/provider/connect/oauth:complete.

func (*ProviderConnectService) CreateConnectAccount

CreateConnectAccount calls POST /v1/provider/connect/account.

func (*ProviderConnectService) CreateConnectTaxRegistration

CreateConnectTaxRegistration calls POST /v1/provider/connect/tax-registrations.

func (*ProviderConnectService) CreateConnectTaxSession

func (s *ProviderConnectService) CreateConnectTaxSession(ctx context.Context) (*CreateConnectTaxSessionResponse, error)

CreateConnectTaxSession: Creates a Stripe AccountSession client secret for Connect tax_settings / tax_registrations embedded components (legacy; prefer native tax RPCs).

It calls POST /v1/provider/connect/tax-session.

func (*ProviderConnectService) DisconnectConnectAccount

func (s *ProviderConnectService) DisconnectConnectAccount(ctx context.Context) (*SuccessResponse, error)

DisconnectConnectAccount calls DELETE /v1/provider/connect/account.

func (*ProviderConnectService) ExpireConnectTaxRegistration

ExpireConnectTaxRegistration calls POST /v1/provider/connect/tax-registrations/{id}/expire.

func (*ProviderConnectService) GetConnectAccount

GetConnectAccount calls GET /v1/provider/connect/account.

func (*ProviderConnectService) GetConnectTaxSettings

func (s *ProviderConnectService) GetConnectTaxSettings(ctx context.Context) (*GetConnectTaxSettingsResponse, error)

GetConnectTaxSettings calls GET /v1/provider/connect/tax-settings.

func (*ProviderConnectService) ListConnectTaxRegistrations

func (s *ProviderConnectService) ListConnectTaxRegistrations(ctx context.Context) (*ListConnectTaxRegistrationsResponse, error)

ListConnectTaxRegistrations calls GET /v1/provider/connect/tax-registrations.

func (*ProviderConnectService) StartConnectOAuth

StartConnectOAuth: Starts Stripe Connect OAuth so a provider can attach an existing Standard account.

It calls POST /v1/provider/connect/oauth:start.

func (*ProviderConnectService) UpdateConnectTaxSettings

UpdateConnectTaxSettings calls PUT /v1/provider/connect/tax-settings.

type ProviderCustomerActivityFilter

type ProviderCustomerActivityFilter string

ProviderCustomerActivityFilter: Active: at least one non-deleted VM from this provider. Inactive: all VMs from this provider are soft-deleted (delete_time set).

  • PROVIDER_CUSTOMER_ACTIVITY_FILTER_ALL: All customers (any VM history with this provider, including when every VM is soft-deleted).
const (
	ProviderCustomerActivityFilterUnspecified ProviderCustomerActivityFilter = "PROVIDER_CUSTOMER_ACTIVITY_FILTER_UNSPECIFIED"
	ProviderCustomerActivityFilterAll         ProviderCustomerActivityFilter = "PROVIDER_CUSTOMER_ACTIVITY_FILTER_ALL"
	ProviderCustomerActivityFilterActive      ProviderCustomerActivityFilter = "PROVIDER_CUSTOMER_ACTIVITY_FILTER_ACTIVE"
	ProviderCustomerActivityFilterInactive    ProviderCustomerActivityFilter = "PROVIDER_CUSTOMER_ACTIVITY_FILTER_INACTIVE"
)

Values of ProviderCustomerActivityFilter.

type ProviderCustomerAssetRow

type ProviderCustomerAssetRow struct {
	ActivityStatus ProviderCustomerVMActivityStatus `json:"activityStatus,omitempty"`
	AssetType      ProviderCustomerAssetType        `json:"assetType,omitempty"`
	// Who placed a compliance hold or purchase block.
	ComplianceActor   ComplianceActor `json:"complianceActor,omitempty"`
	ComplianceHeld    bool            `json:"complianceHeld,omitempty"`
	ComplianceMessage string          `json:"complianceMessage,omitempty"`
	// Why a VM or purchase was seized/blocked.
	ComplianceReason ComplianceReason `json:"complianceReason,omitempty"`
	CreatedAt        *time.Time       `json:"createdAt,omitempty"`
	// Set when the VM was deleted or terminated (soft-delete).
	DeleteTime  *time.Time `json:"deleteTime,omitempty"`
	DisplayName string     `json:"displayName,omitempty"`
	ID          string     `json:"id,omitempty"`
	IPv4        string     `json:"ipv4,omitempty"`
	IPv6        string     `json:"ipv6,omitempty"`
	// OS/distro label from the VM template (e.g. ubuntu-22).
	OS string `json:"os,omitempty"`
	// Plan code (e.g. DC-HF-32C-…) from the subscription plan.
	PlanCode string `json:"planCode,omitempty"`
	PlanName string `json:"planName,omitempty"`
	// Region label, e.g. "Frankfurt, DE".
	Region string `json:"region,omitempty"`
	// UUID of the node's region (same dimension as ListProviderCustomerAssetsRequest.region_id filter).
	RegionID string `json:"regionId,omitempty"`
	// Human-readable size, e.g. "2 vCPU · 4096 MB RAM · 80 GB disk".
	Spec string `json:"spec,omitempty"`
}

ProviderCustomerAssetRow is the API's v1ProviderCustomerAssetRow object.

type ProviderCustomerAssetType

type ProviderCustomerAssetType string

ProviderCustomerAssetType is an API enum.

const (
	ProviderCustomerAssetTypeUnspecified     ProviderCustomerAssetType = "PROVIDER_CUSTOMER_ASSET_TYPE_UNSPECIFIED"
	ProviderCustomerAssetTypeAll             ProviderCustomerAssetType = "PROVIDER_CUSTOMER_ASSET_TYPE_ALL"
	ProviderCustomerAssetTypeVirtualMachine  ProviderCustomerAssetType = "PROVIDER_CUSTOMER_ASSET_TYPE_VIRTUAL_MACHINE"
	ProviderCustomerAssetTypeDedicatedServer ProviderCustomerAssetType = "PROVIDER_CUSTOMER_ASSET_TYPE_DEDICATED_SERVER"
	ProviderCustomerAssetTypeGameServer      ProviderCustomerAssetType = "PROVIDER_CUSTOMER_ASSET_TYPE_GAME_SERVER"
)

Values of ProviderCustomerAssetType.

type ProviderCustomerRow

type ProviderCustomerRow struct {
	// Best-effort summary from organization metadata (billing/address keys).
	AddressSummary   string     `json:"addressSummary,omitempty"`
	Email            string     `json:"email,omitempty"`
	FirstName        string     `json:"firstName,omitempty"`
	LastLoginTime    *time.Time `json:"lastLoginTime,omitempty"`
	LastName         string     `json:"lastName,omitempty"`
	OrganizationID   string     `json:"organizationId,omitempty"`
	OrganizationName string     `json:"organizationName,omitempty"`
	// Default payment method brand when known (visa, mastercard, amex, paypal, …).
	PaymentMethodBrand string `json:"paymentMethodBrand,omitempty"`
	// Last 4 digits of the default card. Empty for non-card methods or if unknown.
	PaymentMethodLast4 string `json:"paymentMethodLast4,omitempty"`
	PurchasesBlocked   bool   `json:"purchasesBlocked,omitempty"`
	// Who placed a compliance hold or purchase block.
	PurchasesBlockedActor ComplianceActor                  `json:"purchasesBlockedActor,omitempty"`
	VMActivityStatus      ProviderCustomerVMActivityStatus `json:"vmActivityStatus,omitempty"`
}

ProviderCustomerRow is the API's v1ProviderCustomerRow object.

type ProviderCustomerService

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

ProviderCustomerService calls the NodeRings ProviderCustomerService API.

func (*ProviderCustomerService) BlockProviderCustomerPurchases

func (s *ProviderCustomerService) BlockProviderCustomerPurchases(ctx context.Context, clientOrganizationID string, body *BlockProviderCustomerPurchasesBody) (*SuccessResponse, error)

BlockProviderCustomerPurchases calls POST /v1/provider/customers/{clientOrganizationId}:block-purchases.

func (*ProviderCustomerService) GetProviderCustomer

func (s *ProviderCustomerService) GetProviderCustomer(ctx context.Context, clientOrganizationID string) (*GetProviderCustomerResponse, error)

GetProviderCustomer calls GET /v1/provider/customers/{clientOrganizationId}.

func (*ProviderCustomerService) GetProviderCustomerBilling

func (s *ProviderCustomerService) GetProviderCustomerBilling(ctx context.Context, clientOrganizationID string) (*GetProviderCustomerBillingResponse, error)

GetProviderCustomerBilling calls GET /v1/provider/customers/{clientOrganizationId}/billing.

func (*ProviderCustomerService) GetProviderCustomerStats

func (s *ProviderCustomerService) GetProviderCustomerStats(ctx context.Context) (*GetProviderCustomerStatsResponse, error)

GetProviderCustomerStats: Path must not be `/customers/stats`: some gateways match `/customers/{client_organization_id}` first and treat "stats" as a UUID field (validation error).

It calls GET /v1/provider/customer-stats.

func (*ProviderCustomerService) ListProviderCustomerAssets

func (s *ProviderCustomerService) ListProviderCustomerAssets(ctx context.Context, clientOrganizationID string, params *ListProviderCustomerAssetsParams) (*ListProviderCustomerAssetsResponse, error)

ListProviderCustomerAssets calls GET /v1/provider/customers/{clientOrganizationId}/assets.

func (*ProviderCustomerService) ListProviderCustomerAssetsAll

func (s *ProviderCustomerService) ListProviderCustomerAssetsAll(ctx context.Context, clientOrganizationID string, params *ListProviderCustomerAssetsParams) iter.Seq2[ProviderCustomerAssetRow, error]

ListProviderCustomerAssetsAll returns an iterator over every result of ListProviderCustomerAssets, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*ProviderCustomerService) ListProviderCustomers

ListProviderCustomers calls GET /v1/provider/customers.

func (*ProviderCustomerService) ListProviderCustomersAll

ListProviderCustomersAll returns an iterator over every result of ListProviderCustomers, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*ProviderCustomerService) RestartProviderCustomerVirtualMachine

func (s *ProviderCustomerService) RestartProviderCustomerVirtualMachine(ctx context.Context, clientOrganizationID string, virtualMachineID string, body *RestartProviderCustomerVirtualMachineBody) (*VirtualMachine, error)

RestartProviderCustomerVirtualMachine calls POST /v1/provider/customers/{clientOrganizationId}/virtual-machines/{virtualMachineId}:restart.

func (*ProviderCustomerService) StartProviderCustomerVirtualMachine

func (s *ProviderCustomerService) StartProviderCustomerVirtualMachine(ctx context.Context, clientOrganizationID string, virtualMachineID string, body *StartProviderCustomerVirtualMachineBody) (*VirtualMachine, error)

StartProviderCustomerVirtualMachine calls POST /v1/provider/customers/{clientOrganizationId}/virtual-machines/{virtualMachineId}:start.

func (*ProviderCustomerService) StopProviderCustomerVirtualMachine

func (s *ProviderCustomerService) StopProviderCustomerVirtualMachine(ctx context.Context, clientOrganizationID string, virtualMachineID string, body *StopProviderCustomerVirtualMachineBody) (*VirtualMachine, error)

StopProviderCustomerVirtualMachine calls POST /v1/provider/customers/{clientOrganizationId}/virtual-machines/{virtualMachineId}:stop.

func (*ProviderCustomerService) SuspendProviderCustomerVirtualMachine

func (s *ProviderCustomerService) SuspendProviderCustomerVirtualMachine(ctx context.Context, clientOrganizationID string, virtualMachineID string, body *SuspendProviderCustomerVirtualMachineBody) (*VirtualMachine, error)

SuspendProviderCustomerVirtualMachine calls POST /v1/provider/customers/{clientOrganizationId}/virtual-machines/{virtualMachineId}:suspend.

func (*ProviderCustomerService) UnblockProviderCustomerPurchases

func (s *ProviderCustomerService) UnblockProviderCustomerPurchases(ctx context.Context, clientOrganizationID string, body *UnblockProviderCustomerPurchasesBody) (*SuccessResponse, error)

UnblockProviderCustomerPurchases calls POST /v1/provider/customers/{clientOrganizationId}:unblock-purchases.

func (*ProviderCustomerService) UnblockProviderCustomerVirtualMachine

func (s *ProviderCustomerService) UnblockProviderCustomerVirtualMachine(ctx context.Context, clientOrganizationID string, virtualMachineID string, body *UnblockProviderCustomerVirtualMachineBody) (*VirtualMachine, error)

UnblockProviderCustomerVirtualMachine calls POST /v1/provider/customers/{clientOrganizationId}/virtual-machines/{virtualMachineId}:unblock.

type ProviderCustomerVMActivityStatus

type ProviderCustomerVMActivityStatus string

ProviderCustomerVMActivityStatus is an API enum.

const (
	ProviderCustomerVMActivityStatusUnspecified ProviderCustomerVMActivityStatus = "PROVIDER_CUSTOMER_VM_ACTIVITY_STATUS_UNSPECIFIED"
	ProviderCustomerVMActivityStatusActive      ProviderCustomerVMActivityStatus = "PROVIDER_CUSTOMER_VM_ACTIVITY_STATUS_ACTIVE"
	ProviderCustomerVMActivityStatusInactive    ProviderCustomerVMActivityStatus = "PROVIDER_CUSTOMER_VM_ACTIVITY_STATUS_INACTIVE"
)

Values of ProviderCustomerVMActivityStatus.

type ProviderDashboardAddonCatalogRow

type ProviderDashboardAddonCatalogRow struct {
	ActiveSubscriptionCount  int32        `json:"activeSubscriptionCount,omitempty"`
	AddonID                  string       `json:"addonId,omitempty"`
	AddonType                AddonType    `json:"addonType,omitempty"`
	BillingType              BillingType  `json:"billingType,omitempty"`
	Code                     string       `json:"code,omitempty"`
	DistinctCustomerOrgCount int32        `json:"distinctCustomerOrgCount,omitempty"`
	DistinctVMCount          int32        `json:"distinctVmCount,omitempty"`
	Name                     string       `json:"name,omitempty"`
	PricingModel             PricingModel `json:"pricingModel,omitempty"`
}

ProviderDashboardAddonCatalogRow is the API's v1ProviderDashboardAddonCatalogRow object.

type ProviderDashboardNodeRollup

type ProviderDashboardNodeRollup struct {
	CapacityCPUCores       int32 `json:"capacityCpuCores,omitempty"`
	CapacityMemoryMb       int64 `json:"capacityMemoryMb,omitempty,string"`
	CPUOverallocatePercent int32 `json:"cpuOverallocatePercent,omitempty"`
	// VirtFusion hypervisor_id or SolusVM compute_resource_id; used to join Prom series.
	HypervisorID               string `json:"hypervisorId,omitempty"`
	MemoryOverallocatePercent  int32  `json:"memoryOverallocatePercent,omitempty"`
	NodeCPUCoreAllocated       int32  `json:"nodeCpuCoreAllocated,omitempty"`
	NodeID                     string `json:"nodeId,omitempty"`
	NodeMemoryAllocatedMb      int64  `json:"nodeMemoryAllocatedMb,omitempty,string"`
	NodeName                   string `json:"nodeName,omitempty"`
	PlatformID                 string `json:"platformId,omitempty"`
	PlatformName               string `json:"platformName,omitempty"`
	RegionID                   string `json:"regionId,omitempty"`
	SoldCPUCores               int64  `json:"soldCpuCores,omitempty,string"`
	SoldMemoryMb               int64  `json:"soldMemoryMb,omitempty,string"`
	SoldStorageGb              int64  `json:"soldStorageGb,omitempty,string"`
	StorageOverallocatePercent int32  `json:"storageOverallocatePercent,omitempty"`
	VMCount                    int32  `json:"vmCount,omitempty"`
}

ProviderDashboardNodeRollup is the API's v1ProviderDashboardNodeRollup object.

type ProviderDashboardPlanSubscriptionStat

type ProviderDashboardPlanSubscriptionStat struct {
	ActiveSubscriptionCount  int32         `json:"activeSubscriptionCount,omitempty"`
	AssetType                AssetType     `json:"assetType,omitempty"`
	BillingPeriod            BillingPeriod `json:"billingPeriod,omitempty"`
	BillingType              BillingType   `json:"billingType,omitempty"`
	Code                     string        `json:"code,omitempty"`
	DistinctCustomerOrgCount int32         `json:"distinctCustomerOrgCount,omitempty"`
	Name                     string        `json:"name,omitempty"`
	PlanID                   string        `json:"planId,omitempty"`
	VMAssetCount             int32         `json:"vmAssetCount,omitempty"`
}

ProviderDashboardPlanSubscriptionStat is the API's v1ProviderDashboardPlanSubscriptionStat object.

type ProviderDashboardPlansTabService

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

ProviderDashboardPlansTabService calls the NodeRings ProviderDashboardPlansTabService API.

func (*ProviderDashboardPlansTabService) GetDashboardPlansTabStats

GetDashboardPlansTabStats calls GET /v1/provider/dashboard/plans-tab-stats.

type ProviderDashboardPlansTabStats

type ProviderDashboardPlansTabStats struct {
	KpiActiveAddonSubscriptionsSum int32 `json:"kpiActiveAddonSubscriptionsSum,omitempty"`
	KpiActiveSubscriptionsSum      int32 `json:"kpiActiveSubscriptionsSum,omitempty"`
	KpiPlanCount                   int32 `json:"kpiPlanCount,omitempty"`
	KpiVMAssetsSum                 int32 `json:"kpiVmAssetsSum,omitempty"`
}

ProviderDashboardPlansTabStats is the API's v1ProviderDashboardPlansTabStats object.

type ProviderDashboardService

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

ProviderDashboardService calls the NodeRings ProviderDashboardService API.

func (*ProviderDashboardService) GetDashboardAssetSalesTimeseries

GetDashboardAssetSalesTimeseries calls GET /v1/provider/dashboard/asset-sales-timeseries.

func (*ProviderDashboardService) GetDashboardBillingSales

GetDashboardBillingSales calls GET /v1/provider/dashboard/billing-sales.

func (*ProviderDashboardService) GetDashboardCustomerAcquisitionTimeseries

GetDashboardCustomerAcquisitionTimeseries calls GET /v1/provider/dashboard/customer-acquisition-timeseries.

func (*ProviderDashboardService) GetDashboardSummary

GetDashboardSummary calls GET /v1/provider/dashboard/summary.

func (*ProviderDashboardService) ListDashboardAddonCatalogStats

ListDashboardAddonCatalogStats calls GET /v1/provider/dashboard/addon-catalog-stats.

func (*ProviderDashboardService) ListDashboardAddonCatalogStatsAll

ListDashboardAddonCatalogStatsAll returns an iterator over every result of ListDashboardAddonCatalogStats, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*ProviderDashboardService) ListDashboardIPAM

ListDashboardIPAM calls GET /v1/provider/dashboard/ipam.

func (*ProviderDashboardService) ListDashboardIPAMAssignments

ListDashboardIPAMAssignments calls GET /v1/provider/dashboard/ipam/assignments.

func (*ProviderDashboardService) ListDashboardIPAMAssignmentsAll

ListDashboardIPAMAssignmentsAll returns an iterator over every result of ListDashboardIPAMAssignments, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*ProviderDashboardService) ListDashboardInfrastructure

ListDashboardInfrastructure calls GET /v1/provider/dashboard/infrastructure.

func (*ProviderDashboardService) ListDashboardInfrastructureAll

ListDashboardInfrastructureAll returns an iterator over every result of ListDashboardInfrastructure, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*ProviderDashboardService) ListDashboardPlanSubscriptionStats

ListDashboardPlanSubscriptionStats calls GET /v1/provider/dashboard/plan-subscription-stats.

func (*ProviderDashboardService) ListDashboardTicketStatistics

ListDashboardTicketStatistics calls GET /v1/provider/dashboard/tickets/statistics.

func (*ProviderDashboardService) ListDashboardVirtualMachines

ListDashboardVirtualMachines calls GET /v1/provider/dashboard/virtual-machines.

type ProviderDetails

type ProviderDetails struct {
	AvailablePlans           []ProviderCatalogPlan `json:"availablePlans,omitempty"`
	AvailableRegions         []string              `json:"availableRegions,omitempty"`
	AvgTicketResponseSeconds int64                 `json:"avgTicketResponseSeconds,omitempty,string"`
	DDoSSolution             string                `json:"ddosSolution,omitempty"`
	// True when any listed region would report ipv6_available_in_filtered_region.
	HasIPv6         bool                     `json:"hasIpv6,omitempty"`
	Provider        *ProviderInfo            `json:"provider,omitempty"`
	ReviewBreakdown *ProviderReviewBreakdown `json:"reviewBreakdown,omitempty"`
	Website         string                   `json:"website,omitempty"`
}

ProviderDetails: GetProvider payload: nested ProviderInfo shares the same core fields as list rows; extended fields are provider-wide (website, review breakdown, catalog plans, etc.).

type ProviderInfo

type ProviderInfo struct {
	// Capability strings from platformdriver (guest_firewall, instant_apps, …).
	Capabilities []string `json:"capabilities,omitempty"`
	// DDoS mitigation partner slug; "none" or empty means no DDoS vendor icon in marketplace.
	DDoSProvider                string `json:"ddosProvider,omitempty"`
	Description                 string `json:"description,omitempty"`
	HasCapacityInFilteredRegion bool   `json:"hasCapacityInFilteredRegion,omitempty"`
	// True when customers in the filtered region (country + city) are offered IPv6:
	// Proxmox = active IPv6 prefix on a network attached to a node there;
	// VirtFusion/SolusVM = a node there whose platform has assign_customer_ipv6.
	IPv6AvailableInFilteredRegion bool           `json:"ipv6AvailableInFilteredRegion,omitempty"`
	Metadata                      map[string]any `json:"metadata,omitempty"`
	OrganizationID                string         `json:"organizationId,omitempty"`
	OrganizationName              string         `json:"organizationName,omitempty"`
	PlanID                        string         `json:"planId,omitempty"`
	PlanPrices                    []PlanPrice    `json:"planPrices,omitempty"`
	PlanRegions                   []PlanRegion   `json:"planRegions,omitempty"`
	// - PLATFORM_DRIVER_PTERODACTYL: Game-server platform. Not a value of the organization hypervisor driver.
	PlatformDriver  PlatformDriver `json:"platformDriver,omitempty"`
	ProviderLogoURL string         `json:"providerLogoUrl,omitempty"`
	Rating          float32        `json:"rating,omitempty"`
	TotalReviews    int32          `json:"totalReviews,omitempty"`
}

ProviderInfo: Provider information for marketplace/discovery

type ProviderNetworkService

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

ProviderNetworkService calls the NodeRings ProviderNetworkService API.

func (*ProviderNetworkService) GetSMTPOutboundProviderPolicy

func (s *ProviderNetworkService) GetSMTPOutboundProviderPolicy(ctx context.Context) (*GetSMTPOutboundProviderPolicyResponse, error)

GetSMTPOutboundProviderPolicy calls GET /v1/provider/network/smtp-outbound-policy.

func (*ProviderNetworkService) ListVirtualMachineSMTPOutboundPolicies

ListVirtualMachineSMTPOutboundPolicies calls GET /v1/provider/network/smtp-outbound-policies.

func (*ProviderNetworkService) ListVirtualMachineSMTPOutboundPoliciesAll

ListVirtualMachineSMTPOutboundPoliciesAll returns an iterator over every result of ListVirtualMachineSMTPOutboundPolicies, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*ProviderNetworkService) UpdateSMTPOutboundProviderPolicy

UpdateSMTPOutboundProviderPolicy calls PUT /v1/provider/network/smtp-outbound-policy.

func (*ProviderNetworkService) UpdateVirtualMachineSMTPOutboundPolicy

func (s *ProviderNetworkService) UpdateVirtualMachineSMTPOutboundPolicy(ctx context.Context, virtualMachineID string, body *UpdateVirtualMachineSMTPOutboundPolicyBody) (*VirtualMachineSMTPOutboundPolicyView, error)

UpdateVirtualMachineSMTPOutboundPolicy calls PUT /v1/provider/network/smtp-outbound-policies/{virtualMachineId}.

type ProviderOnboardingService

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

ProviderOnboardingService calls the NodeRings ProviderOnboardingService API.

func (*ProviderOnboardingService) GetProviderOnboardingChecklist

func (s *ProviderOnboardingService) GetProviderOnboardingChecklist(ctx context.Context) (*GetProviderOnboardingChecklistResponse, error)

GetProviderOnboardingChecklist calls GET /v1/provider/onboarding/checklist.

type ProviderOnboardingStep

type ProviderOnboardingStep struct {
	// Deep-link path in the provider console (e.g. "/organization/settings").
	ActionPath string `json:"actionPath,omitempty"`
	// Provider self-serve onboarding checklist (provider orgs only).
	Code        ProviderOnboardingStepCode `json:"code,omitempty"`
	Completed   bool                       `json:"completed,omitempty"`
	Description string                     `json:"description,omitempty"`
	// Optional guidance when incomplete (e.g. agent/Proxmox metrics hint).
	Hint  string `json:"hint,omitempty"`
	Title string `json:"title,omitempty"`
}

ProviderOnboardingStep is the API's v1ProviderOnboardingStep object.

type ProviderOnboardingStepCode

type ProviderOnboardingStepCode string

ProviderOnboardingStepCode: Provider self-serve onboarding checklist (provider orgs only).

const (
	ProviderOnboardingStepCodeUnspecified      ProviderOnboardingStepCode = "PROVIDER_ONBOARDING_STEP_CODE_UNSPECIFIED"
	ProviderOnboardingStepCodeKYC              ProviderOnboardingStepCode = "PROVIDER_ONBOARDING_STEP_CODE_KYC"
	ProviderOnboardingStepCodeDomain           ProviderOnboardingStepCode = "PROVIDER_ONBOARDING_STEP_CODE_DOMAIN"
	ProviderOnboardingStepCodeStripeConnect    ProviderOnboardingStepCode = "PROVIDER_ONBOARDING_STEP_CODE_STRIPE_CONNECT"
	ProviderOnboardingStepCodeRegion           ProviderOnboardingStepCode = "PROVIDER_ONBOARDING_STEP_CODE_REGION"
	ProviderOnboardingStepCodePlatform         ProviderOnboardingStepCode = "PROVIDER_ONBOARDING_STEP_CODE_PLATFORM"
	ProviderOnboardingStepCodeNode             ProviderOnboardingStepCode = "PROVIDER_ONBOARDING_STEP_CODE_NODE"
	ProviderOnboardingStepCodeNodeMetrics      ProviderOnboardingStepCode = "PROVIDER_ONBOARDING_STEP_CODE_NODE_METRICS"
	ProviderOnboardingStepCodeCloudInit        ProviderOnboardingStepCode = "PROVIDER_ONBOARDING_STEP_CODE_CLOUD_INIT"
	ProviderOnboardingStepCodeVMTemplate       ProviderOnboardingStepCode = "PROVIDER_ONBOARDING_STEP_CODE_VM_TEMPLATE"
	ProviderOnboardingStepCodeNetwork          ProviderOnboardingStepCode = "PROVIDER_ONBOARDING_STEP_CODE_NETWORK"
	ProviderOnboardingStepCodeNodeNetwork      ProviderOnboardingStepCode = "PROVIDER_ONBOARDING_STEP_CODE_NODE_NETWORK"
	ProviderOnboardingStepCodePreflight        ProviderOnboardingStepCode = "PROVIDER_ONBOARDING_STEP_CODE_PREFLIGHT"
	ProviderOnboardingStepCodeLiveValidation   ProviderOnboardingStepCode = "PROVIDER_ONBOARDING_STEP_CODE_LIVE_VALIDATION"
	ProviderOnboardingStepCodeAgent            ProviderOnboardingStepCode = "PROVIDER_ONBOARDING_STEP_CODE_AGENT"
	ProviderOnboardingStepCodePrefixIPv4       ProviderOnboardingStepCode = "PROVIDER_ONBOARDING_STEP_CODE_PREFIX_IPV4"
	ProviderOnboardingStepCodePrefixIPv6       ProviderOnboardingStepCode = "PROVIDER_ONBOARDING_STEP_CODE_PREFIX_IPV6"
	ProviderOnboardingStepCodePlan             ProviderOnboardingStepCode = "PROVIDER_ONBOARDING_STEP_CODE_PLAN"
	ProviderOnboardingStepCodeAddons           ProviderOnboardingStepCode = "PROVIDER_ONBOARDING_STEP_CODE_ADDONS"
	ProviderOnboardingStepCodeFixedPriceAddons ProviderOnboardingStepCode = "PROVIDER_ONBOARDING_STEP_CODE_FIXED_PRICE_ADDONS"
)

Values of ProviderOnboardingStepCode.

type ProviderPlanPriceSort

type ProviderPlanPriceSort string

ProviderPlanPriceSort: Order for marketplace provider list by the plan price shown in the row (aligns with UI). When set, the first three providers from the default newest-first order stay pinned as Recommendations; only the remaining providers are ordered by list price.

  • PROVIDER_PLAN_PRICE_SORT_LEAST_EXPENSIVE_FIRST: Ascending among non-recommended providers: lowest list price first

(usage: hourly, subscription: fixed monthly, free: 0)

  • PROVIDER_PLAN_PRICE_SORT_MOST_EXPENSIVE_FIRST: Descending among non-recommended providers: highest list price first
const (
	ProviderPlanPriceSortUnspecified         ProviderPlanPriceSort = "PROVIDER_PLAN_PRICE_SORT_UNSPECIFIED"
	ProviderPlanPriceSortLeastExpensiveFirst ProviderPlanPriceSort = "PROVIDER_PLAN_PRICE_SORT_LEAST_EXPENSIVE_FIRST"
	ProviderPlanPriceSortMostExpensiveFirst  ProviderPlanPriceSort = "PROVIDER_PLAN_PRICE_SORT_MOST_EXPENSIVE_FIRST"
)

Values of ProviderPlanPriceSort.

type ProviderPlanService

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

ProviderPlanService calls the NodeRings ProviderPlanService API.

func (*ProviderPlanService) CalculatePlanPricing

CalculatePlanPricing calls POST /v1/plans:calculate.

func (*ProviderPlanService) CreatePlan

CreatePlan calls POST /v1/plans.

func (*ProviderPlanService) DeletePlan

func (s *ProviderPlanService) DeletePlan(ctx context.Context, id string) (*SuccessResponse, error)

DeletePlan calls DELETE /v1/plans/{id}.

func (*ProviderPlanService) ListAssignableNodesForPlan

ListAssignableNodesForPlan: Nodes the provider may assign to a plan (catalog-eligible for tier/category).

It calls GET /v1/provider/plans/assignable-nodes.

func (*ProviderPlanService) UpdatePlan

func (s *ProviderPlanService) UpdatePlan(ctx context.Context, id string, body *UpdatePlanBody) (*SuccessResponse, error)

UpdatePlan calls PATCH /v1/plans/{id}.

type ProviderRevenueWaterfall

type ProviderRevenueWaterfall struct {
	ChargeCurrency        string       `json:"chargeCurrency,omitempty"`
	CurrencyConversionFee *MoneyAmount `json:"currencyConversionFee,omitempty"`
	GrossSales            *MoneyAmount `json:"grossSales,omitempty"`
	GrossSalesSettled     *MoneyAmount `json:"grossSalesSettled,omitempty"`
	NetProfit             *MoneyAmount `json:"netProfit,omitempty"`
	PlatformFee           *MoneyAmount `json:"platformFee,omitempty"`
	PlatformFeeSettled    *MoneyAmount `json:"platformFeeSettled,omitempty"`
	Refunds               *MoneyAmount `json:"refunds,omitempty"`
	RefundsSettled        *MoneyAmount `json:"refundsSettled,omitempty"`
	SettlementCurrency    string       `json:"settlementCurrency,omitempty"`
	StripeProcessingFee   *MoneyAmount `json:"stripeProcessingFee,omitempty"`
}

ProviderRevenueWaterfall is the API's v1ProviderRevenueWaterfall object.

type ProviderReviewBreakdown

type ProviderReviewBreakdown struct {
	FiveStar  int32 `json:"fiveStar,omitempty"`
	FourStar  int32 `json:"fourStar,omitempty"`
	OneStar   int32 `json:"oneStar,omitempty"`
	ThreeStar int32 `json:"threeStar,omitempty"`
	TwoStar   int32 `json:"twoStar,omitempty"`
}

ProviderReviewBreakdown is the API's v1ProviderReviewBreakdown object.

type ProviderReviewListItem

type ProviderReviewListItem struct {
	Comment           string     `json:"comment,omitempty"`
	CreateTime        *time.Time `json:"createTime,omitempty"`
	ID                string     `json:"id,omitempty"`
	ProviderRepliedAt *time.Time `json:"providerRepliedAt,omitempty"`
	ProviderReply     string     `json:"providerReply,omitempty"`
	StarRating        int32      `json:"starRating,omitempty"`
	UpdateTime        *time.Time `json:"updateTime,omitempty"`
}

ProviderReviewListItem: Provider UI: list and respond to client reviews (no VM identifiers: anonymous to provider).

type ProviderReviewService

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

ProviderReviewService calls the NodeRings ProviderReviewService API.

func (*ProviderReviewService) CreateProviderReviewReply

CreateProviderReviewReply calls POST /v1/provider-reviews/{reviewId}/reply.

func (*ProviderReviewService) DeleteProviderReviewReply

func (s *ProviderReviewService) DeleteProviderReviewReply(ctx context.Context, reviewID string) (*DeleteProviderReviewReplyResponse, error)

DeleteProviderReviewReply calls DELETE /v1/provider-reviews/{reviewId}/reply.

func (*ProviderReviewService) ListProviderReviews

ListProviderReviews calls GET /v1/provider-reviews.

func (*ProviderReviewService) UpdateProviderReviewReply

UpdateProviderReviewReply calls PATCH /v1/provider-reviews/{reviewId}/reply.

type ProviderReviewStarSummary

type ProviderReviewStarSummary struct {
	ReviewCount int32 `json:"reviewCount,omitempty"`
	StarRating  int32 `json:"starRating,omitempty"`
}

ProviderReviewStarSummary is the API's v1ProviderReviewStarSummary object.

type ProviderStorefrontService

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

ProviderStorefrontService calls the NodeRings ProviderStorefrontService API.

func (*ProviderStorefrontService) GetMyStorefront

GetMyStorefront calls GET /v1/provider/storefront.

func (*ProviderStorefrontService) OptInStorefront

OptInStorefront calls POST /v1/provider/storefront/opt-in.

func (*ProviderStorefrontService) OptOutStorefront

OptOutStorefront calls POST /v1/provider/storefront/opt-out.

func (*ProviderStorefrontService) PreviewMyStorefront

PreviewMyStorefront calls GET /v1/provider/storefront/preview.

func (*ProviderStorefrontService) SubmitMyStorefront

SubmitMyStorefront calls POST /v1/provider/storefront/submit.

func (*ProviderStorefrontService) UpdateMyStorefront

UpdateMyStorefront calls PATCH /v1/provider/storefront.

type ProviderStripeActivityEvent

type ProviderStripeActivityEvent struct {
	At    *time.Time `json:"at,omitempty"`
	Label string     `json:"label,omitempty"`
}

ProviderStripeActivityEvent is the API's v1ProviderStripeActivityEvent object.

type ProviderStripePaymentMethodDetails

type ProviderStripePaymentMethodDetails struct {
	Brand         string `json:"brand,omitempty"`
	CardType      string `json:"cardType,omitempty"`
	ExpMonth      int32  `json:"expMonth,omitempty"`
	ExpYear       int32  `json:"expYear,omitempty"`
	Fingerprint   string `json:"fingerprint,omitempty"`
	ID            string `json:"id,omitempty"`
	Issuer        string `json:"issuer,omitempty"`
	Last4         string `json:"last4,omitempty"`
	OriginCountry string `json:"originCountry,omitempty"`
	OwnerName     string `json:"ownerName,omitempty"`
}

ProviderStripePaymentMethodDetails is the API's v1ProviderStripePaymentMethodDetails object.

type ProviderStripeTransaction

type ProviderStripeTransaction struct {
	Activity              []ProviderStripeActivityEvent       `json:"activity,omitempty"`
	Amount                *MoneyAmount                        `json:"amount,omitempty"`
	ApplicationFeeID      string                              `json:"applicationFeeId,omitempty"`
	ChargeID              string                              `json:"chargeId,omitempty"`
	CreatedAt             *time.Time                          `json:"createdAt,omitempty"`
	CurrencyConversionFee *MoneyAmount                        `json:"currencyConversionFee,omitempty"`
	CustomerID            string                              `json:"customerId,omitempty"`
	CustomerName          string                              `json:"customerName,omitempty"`
	DeclineReason         string                              `json:"declineReason,omitempty"`
	Description           string                              `json:"description,omitempty"`
	ExchangeRate          string                              `json:"exchangeRate,omitempty"`
	FeesTotalSettled      *MoneyAmount                        `json:"feesTotalSettled,omitempty"`
	NetAmount             *MoneyAmount                        `json:"netAmount,omitempty"`
	PaymentAmountSettled  *MoneyAmount                        `json:"paymentAmountSettled,omitempty"`
	PaymentIntentID       string                              `json:"paymentIntentId,omitempty"`
	PaymentMethodBrand    string                              `json:"paymentMethodBrand,omitempty"`
	PaymentMethodDetails  *ProviderStripePaymentMethodDetails `json:"paymentMethodDetails,omitempty"`
	PaymentMethodLast4    string                              `json:"paymentMethodLast4,omitempty"`
	PlatformFee           *MoneyAmount                        `json:"platformFee,omitempty"`
	PlatformFeeSettled    *MoneyAmount                        `json:"platformFeeSettled,omitempty"`
	RefundedAt            *time.Time                          `json:"refundedAt,omitempty"`
	SettlementMerchant    string                              `json:"settlementMerchant,omitempty"`
	StatementDescriptor   string                              `json:"statementDescriptor,omitempty"`
	Status                string                              `json:"status,omitempty"`
	StripeProcessingFee   *MoneyAmount                        `json:"stripeProcessingFee,omitempty"`
	TransferredTo         string                              `json:"transferredTo,omitempty"`
}

ProviderStripeTransaction is the API's v1ProviderStripeTransaction object.

type ProviderTicketNotificationPolicy

type ProviderTicketNotificationPolicy struct {
	DestinationEmail string `json:"destinationEmail,omitempty"`
	// Resolved mailbox used when destination_email is empty (support_email fallback).
	EffectiveDestinationEmail string   `json:"effectiveDestinationEmail,omitempty"`
	Enabled                   *bool    `json:"enabled,omitempty"`
	ExtraEmails               []string `json:"extraEmails,omitempty"`
	ID                        string   `json:"id,omitempty"`
	// True when NodeRings can accept helpdesk replies (inbound secret configured).
	InboundRepliesEnabled *bool          `json:"inboundRepliesEnabled,omitempty"`
	IncludeClientContact  *bool          `json:"includeClientContact,omitempty"`
	IncludeMessageBody    *bool          `json:"includeMessageBody,omitempty"`
	MinPriority           TicketPriority `json:"minPriority,omitempty"`
	NotifyOnClientReplied *bool          `json:"notifyOnClientReplied,omitempty"`
	NotifyOnClosed        *bool          `json:"notifyOnClosed,omitempty"`
	NotifyOnCreated       *bool          `json:"notifyOnCreated,omitempty"`
	NotifyOnEscalated     *bool          `json:"notifyOnEscalated,omitempty"`
}

ProviderTicketNotificationPolicy is the API's v1ProviderTicketNotificationPolicy object.

type ProviderTicketNotificationService

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

ProviderTicketNotificationService calls the NodeRings ProviderTicketNotificationService API.

func (*ProviderTicketNotificationService) GetProviderTicketNotificationPolicy

GetProviderTicketNotificationPolicy calls GET /v1/provider/ticket-notification-policy.

func (*ProviderTicketNotificationService) SendProviderTicketNotificationTest

func (s *ProviderTicketNotificationService) SendProviderTicketNotificationTest(ctx context.Context) (*SuccessResponse, error)

SendProviderTicketNotificationTest calls POST /v1/provider/ticket-notification-policy:send-test.

func (*ProviderTicketNotificationService) UpdateProviderTicketNotificationPolicy

UpdateProviderTicketNotificationPolicy calls PUT /v1/provider/ticket-notification-policy.

type PublicStorefront

type PublicStorefront struct {
	AboutHTML  string     `json:"aboutHtml,omitempty"`
	ApprovedAt *time.Time `json:"approvedAt,omitempty"`
	// GetProvider payload: nested ProviderInfo shares the same core fields as list rows; extended
	// fields are provider-wide (website, review breakdown, catalog plans, etc.).
	Catalog              *ProviderDetails `json:"catalog,omitempty"`
	CoverImageURL        string           `json:"coverImageUrl,omitempty"`
	Faqs                 []StorefrontFaq  `json:"faqs,omitempty"`
	FeaturedPlanIDs      []string         `json:"featuredPlanIds,omitempty"`
	HighlightCustom      string           `json:"highlightCustom,omitempty"`
	HighlightCustomLines []string         `json:"highlightCustomLines,omitempty"`
	HighlightKeys        []string         `json:"highlightKeys,omitempty"`
	// Approved storefront wordmark. Not the organization marketplace logo.
	LogoImageURL     string                   `json:"logoImageUrl,omitempty"`
	OrganizationName string                   `json:"organizationName,omitempty"`
	ProviderID       string                   `json:"providerId,omitempty"`
	Reviews          []StorefrontPublicReview `json:"reviews,omitempty"`
	Slug             string                   `json:"slug,omitempty"`
	SocialURLs       []string                 `json:"socialUrls,omitempty"`
	Tagline          string                   `json:"tagline,omitempty"`
}

PublicStorefront is the API's v1PublicStorefront object.

type PublicStorefrontCard

type PublicStorefrontCard struct {
	Cities           []string `json:"cities,omitempty"`
	OrganizationName string   `json:"organizationName,omitempty"`
	ProviderID       string   `json:"providerId,omitempty"`
	// Approved storefront wordmark. Not the organization marketplace logo.
	ProviderLogoURL string  `json:"providerLogoUrl,omitempty"`
	Rating          float32 `json:"rating,omitempty"`
	Slug            string  `json:"slug,omitempty"`
	Tagline         string  `json:"tagline,omitempty"`
	TotalReviews    int32   `json:"totalReviews,omitempty"`
	Website         string  `json:"website,omitempty"`
}

PublicStorefrontCard is the API's v1PublicStorefrontCard object.

type PurchaseCreditsRequest

type PurchaseCreditsRequest struct {
	Amount string `json:"amount,omitempty"`
	// Optional: payment method ID to charge. If omitted, the org's default
	// payment method is used.
	PaymentMethodID string `json:"paymentMethodId,omitempty"`
}

PurchaseCreditsRequest is the API's v1PurchaseCreditsRequest object.

type PurchaseCreditsResponse

type PurchaseCreditsResponse struct {
	ClientSecret     string `json:"clientSecret,omitempty"`
	CreditPurchaseID string `json:"creditPurchaseId,omitempty"`
	PaymentIntentID  string `json:"paymentIntentId,omitempty"`
	RequiresAction   bool   `json:"requiresAction,omitempty"`
}

PurchaseCreditsResponse is the API's v1PurchaseCreditsResponse object.

type ReadFileParams

type ReadFileParams struct {
	Path string
}

ReadFileParams are the query parameters of GameServerService.ReadFile.

type ReadFileResponse

type ReadFileResponse struct {
	Content []byte `json:"content,omitempty"`
}

ReadFileResponse is the API's v1ReadFileResponse object.

type RecordUsageRequest

type RecordUsageRequest struct {
	// For idempotent writes
	EventID    string         `json:"eventId,omitempty"`
	ExternalID string         `json:"externalId,omitempty"`
	MetricCode string         `json:"metricCode,omitempty"`
	MetricID   string         `json:"metricId,omitempty"`
	Properties map[string]any `json:"properties,omitempty"`
	// Decimal as string
	Quantity       string     `json:"quantity,omitempty"`
	SubscriptionID string     `json:"subscriptionId,omitempty"`
	Timestamp      *time.Time `json:"timestamp,omitempty"`
}

RecordUsageRequest is the API's v1RecordUsageRequest object.

type RecordUsageResponse

type RecordUsageResponse struct {
	IsDuplicate bool         `json:"isDuplicate,omitempty"`
	UsageRecord *UsageRecord `json:"usageRecord,omitempty"`
}

RecordUsageResponse is the API's v1RecordUsageResponse object.

type RedeemCouponBody

type RedeemCouponBody struct {
	Code string `json:"code,omitempty"`
}

RedeemCouponBody is the API's CouponServiceRedeemCouponBody object.

type RedeemPromoCodeRequest

type RedeemPromoCodeRequest struct {
	Code string `json:"code,omitempty"`
}

RedeemPromoCodeRequest is the API's v1RedeemPromoCodeRequest object.

type RedeemPromoCodeResponse

type RedeemPromoCodeResponse struct {
	Amount string `json:"amount,omitempty"`
	// For a pending grant, the deadline for the required top-up.
	ExpiresAt *time.Time `json:"expiresAt,omitempty"`
	GrantID   string     `json:"grantId,omitempty"`
	Remaining string     `json:"remaining,omitempty"`
	// USD top-up needed to activate a pending grant.
	RequiredTopup string `json:"requiredTopup,omitempty"`
	// active, or pending when the code needs a top-up first.
	Status string `json:"status,omitempty"`
}

RedeemPromoCodeResponse is the API's v1RedeemPromoCodeResponse object.

type RefreshTokenRequest

type RefreshTokenRequest struct {
	ClientID     string `json:"clientId,omitempty"`
	ClientSecret string `json:"clientSecret,omitempty"`
	RefreshToken string `json:"refreshToken,omitempty"`
}

RefreshTokenRequest is the API's v1RefreshTokenRequest object.

type Refund

type Refund struct {
	Amount        string     `json:"amount,omitempty"`
	CreatedAt     *time.Time `json:"createdAt,omitempty"`
	Currency      string     `json:"currency,omitempty"`
	FailureReason string     `json:"failureReason,omitempty"`
	ID            string     `json:"id,omitempty"`
	PaymentID     string     `json:"paymentId,omitempty"`
	// Payment provider name (e.g., 'stripe', 'paypal')
	PaymentProvider  string        `json:"paymentProvider,omitempty"`
	ProcessedAt      *time.Time    `json:"processedAt,omitempty"`
	ProviderRefundID string        `json:"providerRefundId,omitempty"`
	RefundStatus     RefundStatus  `json:"refundStatus,omitempty"`
	Status           Protov1Status `json:"status,omitempty"`
	Timestamps       *Timestamps   `json:"timestamps,omitempty"`
}

Refund: Refund represents a refund transaction for a payment

type RefundService

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

RefundService calls the NodeRings RefundService API.

func (*RefundService) GetRefund

func (s *RefundService) GetRefund(ctx context.Context, refundID string) (*GetRefundResponse, error)

GetRefund: GetRefund retrieves a single refund with payment and invoice details

It calls GET /v1/refunds/{refundId}.

func (*RefundService) ListRefunds

func (s *RefundService) ListRefunds(ctx context.Context, params *ListRefundsParams) (*ListRefundsResponse, error)

ListRefunds: ListRefunds lists refunds for a payment, invoice, or organization

It calls GET /v1/refunds.

func (*RefundService) ListRefundsAll

func (s *RefundService) ListRefundsAll(ctx context.Context, params *ListRefundsParams) iter.Seq2[Refund, error]

ListRefundsAll returns an iterator over every result of ListRefunds, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

type RefundStatus

type RefundStatus string

RefundStatus is an API enum.

const (
	RefundStatusUnspecified RefundStatus = "REFUND_STATUS_UNSPECIFIED"
	RefundStatusPending     RefundStatus = "REFUND_STATUS_PENDING"
	RefundStatusProcessing  RefundStatus = "REFUND_STATUS_PROCESSING"
	RefundStatusSucceeded   RefundStatus = "REFUND_STATUS_SUCCEEDED"
	RefundStatusFailed      RefundStatus = "REFUND_STATUS_FAILED"
	RefundStatusCanceled    RefundStatus = "REFUND_STATUS_CANCELED"
)

Values of RefundStatus.

type RegenerateMFABackupCodesRequest

type RegenerateMFABackupCodesRequest struct {
	Code string `json:"code,omitempty"`
}

RegenerateMFABackupCodesRequest is the API's v1RegenerateMfaBackupCodesRequest object.

type RegenerateMFABackupCodesResponse

type RegenerateMFABackupCodesResponse struct {
	BackupCodes []string `json:"backupCodes,omitempty"`
}

RegenerateMFABackupCodesResponse is the API's v1RegenerateMfaBackupCodesResponse object.

type Region

type Region struct {
	CityCountry    *CityCountry `json:"cityCountry,omitempty"`
	Datacenter     *Datacenter  `json:"datacenter,omitempty"`
	ID             string       `json:"id,omitempty"`
	OrganizationID string       `json:"organizationId,omitempty"`
	Timestamps     *Timestamps  `json:"timestamps,omitempty"`
}

Region is the API's v1Region object.

type RegionLocation

type RegionLocation struct {
	City    string `json:"city,omitempty"`
	Country string `json:"country,omitempty"`
}

RegionLocation: Region location information (deduplicated city+country combinations)

type RegionService

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

RegionService calls the NodeRings RegionService API.

func (*RegionService) CreateRegion

func (s *RegionService) CreateRegion(ctx context.Context, body *CreateRegionRequest) (*Region, error)

CreateRegion calls POST /v1/regions.

func (*RegionService) DeleteRegion

func (s *RegionService) DeleteRegion(ctx context.Context, id string) (*SuccessResponse, error)

DeleteRegion calls DELETE /v1/regions/{id}.

func (*RegionService) GetRegion

func (s *RegionService) GetRegion(ctx context.Context, id string) (*Region, error)

GetRegion calls GET /v1/regions/{id}.

func (*RegionService) ListCountriesCities

ListCountriesCities calls GET /v1/countries-cities.

func (*RegionService) ListCountriesCitiesAll

func (s *RegionService) ListCountriesCitiesAll(ctx context.Context, params *ListCountriesCitiesParams) iter.Seq2[Country, error]

ListCountriesCitiesAll returns an iterator over every result of ListCountriesCities, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*RegionService) ListDatacenters

func (s *RegionService) ListDatacenters(ctx context.Context, params *ListDatacentersParams) (*ListDatacentersResponse, error)

ListDatacenters calls GET /v1/datacenters.

func (*RegionService) ListDatacentersAll

func (s *RegionService) ListDatacentersAll(ctx context.Context, params *ListDatacentersParams) iter.Seq2[DatacenterInfo, error]

ListDatacentersAll returns an iterator over every result of ListDatacenters, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*RegionService) ListRegions

func (s *RegionService) ListRegions(ctx context.Context, params *ListRegionsParams) (*ListRegionsResponse, error)

ListRegions calls GET /v1/regions.

func (*RegionService) ListRegionsAll

func (s *RegionService) ListRegionsAll(ctx context.Context, params *ListRegionsParams) iter.Seq2[Region, error]

ListRegionsAll returns an iterator over every result of ListRegions, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

type RegisterUserRequest

type RegisterUserRequest struct {
	Email     string `json:"email,omitempty"`
	FirstName string `json:"firstName,omitempty"`
	LastName  string `json:"lastName,omitempty"`
	Password  string `json:"password,omitempty"`
	// Cloudflare Turnstile token from the client widget (optional unless auth.turnstile is enabled).
	TurnstileToken string `json:"turnstileToken,omitempty"`
}

RegisterUserRequest is the API's v1RegisterUserRequest object.

type ReinstallGameServerBody

type ReinstallGameServerBody struct {
}

ReinstallGameServerBody is the API's GameServerServiceReinstallGameServerBody object.

type ReinstallStatus

type ReinstallStatus string

ReinstallStatus is an API enum.

const (
	ReinstallStatusUnspecified  ReinstallStatus = "REINSTALL_STATUS_UNSPECIFIED"
	ReinstallStatusNone         ReinstallStatus = "REINSTALL_STATUS_NONE"
	ReinstallStatusRequested    ReinstallStatus = "REINSTALL_STATUS_REQUESTED"
	ReinstallStatusDeleting     ReinstallStatus = "REINSTALL_STATUS_DELETING"
	ReinstallStatusProvisioning ReinstallStatus = "REINSTALL_STATUS_PROVISIONING"
	ReinstallStatusCompleted    ReinstallStatus = "REINSTALL_STATUS_COMPLETED"
	ReinstallStatusFailed       ReinstallStatus = "REINSTALL_STATUS_FAILED"
)

Values of ReinstallStatus.

type ReinstallVirtualMachineBody

type ReinstallVirtualMachineBody struct {
	CloudInitUserDataID string `json:"cloudInitUserDataId,omitempty"`
	// - DISTRO_UBUNTU_22_04: Ubuntu distributions
	//  - DISTRO_FEDORA_43: Fedora distributions
	//  - DISTRO_DEBIAN_12: Debian distributions
	//  - DISTRO_CENTOS_9: CentOS distributions
	//  - DISTRO_ROCKY_9: Rocky Linux distributions
	//  - DISTRO_ALMALINUX_9: AlmaLinux distributions
	Distro   Distro `json:"distro,omitempty"`
	Hostname string `json:"hostname,omitempty"`
	// Platform Instant App. Same exclusivity rules as CreateVirtualMachineRequest.
	InstantAppID string `json:"instantAppId,omitempty"`
	// Optional Instant App form overrides (same rules as CreateVirtualMachineRequest).
	InstantAppVariables map[string]string `json:"instantAppVariables,omitempty"`
	Password            string            `json:"password,omitempty"`
	SSHKeyIDs           []string          `json:"sshKeyIds,omitempty"`
	UserData            string            `json:"userData,omitempty"`
}

ReinstallVirtualMachineBody is the API's VirtualMachineServiceReinstallVirtualMachineBody object.

type RemoveAddonParams

type RemoveAddonParams struct {
	// If false, cancels at period end
	CancelImmediately *bool
}

RemoveAddonParams are the query parameters of AddonService.RemoveAddon.

type RemoveAddonResponse

type RemoveAddonResponse struct {
	AddonSubscription *AddonSubscription `json:"addonSubscription,omitempty"`
}

RemoveAddonResponse is the API's v1RemoveAddonResponse object.

type RemovePaymentMethodResponse

type RemovePaymentMethodResponse struct {
	Success bool `json:"success,omitempty"`
}

RemovePaymentMethodResponse is the API's v1RemovePaymentMethodResponse object.

type RemovePermissionFromRoleParams

type RemovePermissionFromRoleParams struct {
	PermissionIDs []string
	RoleID        string
}

RemovePermissionFromRoleParams are the query parameters of PermissionService.RemovePermissionFromRole.

type RemoveReservedPrefixParams

type RemoveReservedPrefixParams struct {
	CIDR string
}

RemoveReservedPrefixParams are the query parameters of IPAMService.RemoveReservedPrefix.

type RemoveServiceAccountFromGroupParams

type RemoveServiceAccountFromGroupParams struct {
	GroupID           string
	ServiceAccountIDs []string
}

RemoveServiceAccountFromGroupParams are the query parameters of GroupService.RemoveServiceAccountFromGroup.

type RemoveUserFromGroupParams

type RemoveUserFromGroupParams struct {
	GroupID string
	UserIDs []string
}

RemoveUserFromGroupParams are the query parameters of GroupService.RemoveUserFromGroup.

type RenameFileBody

type RenameFileBody struct {
	Dest   string `json:"dest,omitempty"`
	Root   string `json:"root,omitempty"`
	Source string `json:"source,omitempty"`
}

RenameFileBody is the API's GameServerServiceRenameFileBody object.

type RenameGameServerBody

type RenameGameServerBody struct {
	Name string `json:"name,omitempty"`
}

RenameGameServerBody is the API's GameServerServiceRenameGameServerBody object.

type ReplaceRoleForGroupRequest

type ReplaceRoleForGroupRequest struct {
	GroupID string `json:"groupId,omitempty"`
	RoleID  string `json:"roleId,omitempty"`
}

ReplaceRoleForGroupRequest is the API's v1ReplaceRoleForGroupRequest object.

type ReplaceRoleForServiceAccountRequest

type ReplaceRoleForServiceAccountRequest struct {
	RoleID           string `json:"roleId,omitempty"`
	ServiceAccountID string `json:"serviceAccountId,omitempty"`
}

ReplaceRoleForServiceAccountRequest is the API's v1ReplaceRoleForServiceAccountRequest object.

type ReplaceRoleForUserRequest

type ReplaceRoleForUserRequest struct {
	RoleID string `json:"roleId,omitempty"`
	UserID string `json:"userId,omitempty"`
}

ReplaceRoleForUserRequest is the API's v1ReplaceRoleForUserRequest object.

type ResendVerificationEmailRequest

type ResendVerificationEmailRequest struct {
	Email string `json:"email,omitempty"`
	// Cloudflare Turnstile token from the client widget (optional unless auth.turnstile is enabled).
	TurnstileToken string `json:"turnstileToken,omitempty"`
}

ResendVerificationEmailRequest is the API's v1ResendVerificationEmailRequest object.

type ReserveAllPrefixIPsBody

type ReserveAllPrefixIPsBody struct {
}

ReserveAllPrefixIPsBody is the API's IPAMServiceReserveAllPrefixIPsBody object.

type ResetPasswordRequest

type ResetPasswordRequest struct {
	Email       string `json:"email,omitempty"`
	NewPassword string `json:"newPassword,omitempty"`
	ResetToken  string `json:"resetToken,omitempty"`
}

ResetPasswordRequest is the API's v1ResetPasswordRequest object.

type ResourceInstanceInput

type ResourceInstanceInput struct {
	Addons    []AddonInput       `json:"addons,omitempty"`
	HoursUsed float64            `json:"hoursUsed,omitempty"`
	Quantity  int32              `json:"quantity,omitempty"`
	Region    string             `json:"region,omitempty"`
	Usage     map[string]float64 `json:"usage,omitempty"`
}

ResourceInstanceInput is the API's v1ResourceInstanceInput object.

type RestartProviderCustomerVirtualMachineBody

type RestartProviderCustomerVirtualMachineBody struct {
}

RestartProviderCustomerVirtualMachineBody: Shared request body for Start/Stop/Restart customer VM RPCs (same fields; operation is the RPC). The server must verify the VM belongs to this provider and client org.

type RestartVirtualMachineBody

type RestartVirtualMachineBody struct {
}

RestartVirtualMachineBody: UpdateVMOperationStatusRequest is a unified request message for all VM operation status updates. The endpoint name (start, stop, restart) determines the operation.

type RestoreSnapshotBody

type RestoreSnapshotBody struct {
	SnapshotName string `json:"snapshotName,omitempty"`
	StopVM       *bool  `json:"stopVm,omitempty"`
}

RestoreSnapshotBody is the API's SnapshotServiceRestoreSnapshotBody object.

type RestoreStatus

type RestoreStatus string

RestoreStatus is an API enum.

const (
	RestoreStatusUnspecified RestoreStatus = "RESTORE_STATUS_UNSPECIFIED"
	RestoreStatusNone        RestoreStatus = "RESTORE_STATUS_NONE"
	RestoreStatusRequested   RestoreStatus = "RESTORE_STATUS_REQUESTED"
	RestoreStatusRestoring   RestoreStatus = "RESTORE_STATUS_RESTORING"
	RestoreStatusCompleted   RestoreStatus = "RESTORE_STATUS_COMPLETED"
	RestoreStatusFailed      RestoreStatus = "RESTORE_STATUS_FAILED"
)

Values of RestoreStatus.

type RetryPaymentRequest

type RetryPaymentRequest struct {
	PaymentMethodID string `json:"paymentMethodId,omitempty"`
	SubscriptionID  string `json:"subscriptionId,omitempty"`
}

RetryPaymentRequest is the API's v1RetryPaymentRequest object.

type RetryPaymentResponse

type RetryPaymentResponse struct {
	PaymentStatus string        `json:"paymentStatus,omitempty"`
	Subscription  *Subscription `json:"subscription,omitempty"`
	TaskID        string        `json:"taskId,omitempty"`
	TransactionID string        `json:"transactionId,omitempty"`
}

RetryPaymentResponse is the API's v1RetryPaymentResponse object.

type RevokeCouponBody

type RevokeCouponBody struct {
	// Must be true; revoking ends the discount for every customer.
	Confirm *bool `json:"confirm,omitempty"`
}

RevokeCouponBody is the API's CouponServiceRevokeCouponBody object.

type RevokeCouponResponse

type RevokeCouponResponse struct {
	// A discount. Codes customers type live in CouponCode. Provider coupons apply
	// to that provider's plans. Platform coupons apply across providers.
	Coupon              *Coupon `json:"coupon,omitempty"`
	RevokedApplications int32   `json:"revokedApplications,omitempty"`
}

RevokeCouponResponse is the API's v1RevokeCouponResponse object.

type RevokeMetricsWriteCredentialBody

type RevokeMetricsWriteCredentialBody struct {
}

RevokeMetricsWriteCredentialBody is the API's MetricsCredentialServiceRevokeMetricsWriteCredentialBody object.

type RevokeTokenRequest

type RevokeTokenRequest struct {
	ClientID      string `json:"clientId,omitempty"`
	Token         string `json:"token,omitempty"`
	TokenTypeHint string `json:"tokenTypeHint,omitempty"`
}

RevokeTokenRequest is the API's v1RevokeTokenRequest object.

type RoadmapFeatureRequest

type RoadmapFeatureRequest struct {
	AssigneeName      string                  `json:"assigneeName,omitempty"`
	AuthorDisplayName string                  `json:"authorDisplayName,omitempty"`
	CommentCount      int32                   `json:"commentCount,omitempty"`
	CreatedAt         *time.Time              `json:"createdAt,omitempty"`
	Description       string                  `json:"description,omitempty"`
	ID                string                  `json:"id,omitempty"`
	IsPinned          bool                    `json:"isPinned,omitempty"`
	Product           *RoadmapProductCategory `json:"product,omitempty"`
	Slug              string                  `json:"slug,omitempty"`
	Status            RoadmapRequestStatus    `json:"status,omitempty"`
	StatusChangedAt   *time.Time              `json:"statusChangedAt,omitempty"`
	Title             string                  `json:"title,omitempty"`
	UpvoteCount       int32                   `json:"upvoteCount,omitempty"`
	UserVote          RoadmapVoteType         `json:"userVote,omitempty"`
	VoteScore         int32                   `json:"voteScore,omitempty"`
}

RoadmapFeatureRequest is the API's v1RoadmapFeatureRequest object.

type RoadmapFeatureRequestComment

type RoadmapFeatureRequestComment struct {
	AuthorDisplayName string     `json:"authorDisplayName,omitempty"`
	Body              string     `json:"body,omitempty"`
	CanEdit           bool       `json:"canEdit,omitempty"`
	CreatedAt         *time.Time `json:"createdAt,omitempty"`
	ID                string     `json:"id,omitempty"`
	IsEdited          bool       `json:"isEdited,omitempty"`
	IsOwn             bool       `json:"isOwn,omitempty"`
	UpdatedAt         *time.Time `json:"updatedAt,omitempty"`
}

RoadmapFeatureRequestComment is the API's v1RoadmapFeatureRequestComment object.

type RoadmapProductCategory

type RoadmapProductCategory struct {
	Color       string `json:"color,omitempty"`
	Description string `json:"description,omitempty"`
	Icon        string `json:"icon,omitempty"`
	ID          string `json:"id,omitempty"`
	Name        string `json:"name,omitempty"`
	Slug        string `json:"slug,omitempty"`
	SortOrder   int32  `json:"sortOrder,omitempty"`
}

RoadmapProductCategory is the API's v1RoadmapProductCategory object.

type RoadmapProductStats

type RoadmapProductStats struct {
	Completed   int32  `json:"completed,omitempty"`
	InProgress  int32  `json:"inProgress,omitempty"`
	InReview    int32  `json:"inReview,omitempty"`
	Planned     int32  `json:"planned,omitempty"`
	ProductName string `json:"productName,omitempty"`
	ProductSlug string `json:"productSlug,omitempty"`
}

RoadmapProductStats is the API's v1RoadmapProductStats object.

type RoadmapRequestStatus

type RoadmapRequestStatus string

RoadmapRequestStatus is an API enum.

const (
	RoadmapRequestStatusUnspecified RoadmapRequestStatus = "ROADMAP_REQUEST_STATUS_UNSPECIFIED"
	RoadmapRequestStatusInReview    RoadmapRequestStatus = "ROADMAP_REQUEST_STATUS_IN_REVIEW"
	RoadmapRequestStatusPlanned     RoadmapRequestStatus = "ROADMAP_REQUEST_STATUS_PLANNED"
	RoadmapRequestStatusInProgress  RoadmapRequestStatus = "ROADMAP_REQUEST_STATUS_IN_PROGRESS"
	RoadmapRequestStatusCompleted   RoadmapRequestStatus = "ROADMAP_REQUEST_STATUS_COMPLETED"
	RoadmapRequestStatusDeclined    RoadmapRequestStatus = "ROADMAP_REQUEST_STATUS_DECLINED"
)

Values of RoadmapRequestStatus.

type RoadmapService

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

RoadmapService calls the NodeRings RoadmapService API.

func (*RoadmapService) CreateRoadmapFeatureRequestComment

CreateRoadmapFeatureRequestComment calls POST /v1/roadmap/requests/{slug}/comments.

func (*RoadmapService) DeleteRoadmapFeatureRequestComment

func (s *RoadmapService) DeleteRoadmapFeatureRequestComment(ctx context.Context, commentID string) (*DeleteRoadmapFeatureRequestCommentResponse, error)

DeleteRoadmapFeatureRequestComment calls DELETE /v1/roadmap/comments/{commentId}.

func (*RoadmapService) GetRoadmapFeatureRequest

func (s *RoadmapService) GetRoadmapFeatureRequest(ctx context.Context, slug string) (*GetRoadmapFeatureRequestResponse, error)

GetRoadmapFeatureRequest calls GET /v1/roadmap/requests/{slug}.

func (*RoadmapService) GetRoadmapStats

func (s *RoadmapService) GetRoadmapStats(ctx context.Context) (*GetRoadmapStatsResponse, error)

GetRoadmapStats calls GET /v1/roadmap/stats.

func (*RoadmapService) ListRoadmapFeatureRequestComments

ListRoadmapFeatureRequestComments calls GET /v1/roadmap/requests/{slug}/comments.

func (*RoadmapService) ListRoadmapFeatureRequests

ListRoadmapFeatureRequests calls GET /v1/roadmap/requests.

func (*RoadmapService) ListRoadmapProductCategories

func (s *RoadmapService) ListRoadmapProductCategories(ctx context.Context) (*ListRoadmapProductCategoriesResponse, error)

ListRoadmapProductCategories calls GET /v1/roadmap/products.

func (*RoadmapService) RemoveRoadmapFeatureRequestVote

func (s *RoadmapService) RemoveRoadmapFeatureRequestVote(ctx context.Context, slug string) (*VoteRoadmapFeatureRequestResponse, error)

RemoveRoadmapFeatureRequestVote calls DELETE /v1/roadmap/requests/{slug}/vote.

func (*RoadmapService) SubmitRoadmapFeatureRequest

SubmitRoadmapFeatureRequest calls POST /v1/roadmap/submit.

func (*RoadmapService) UpdateRoadmapFeatureRequestComment

func (s *RoadmapService) UpdateRoadmapFeatureRequestComment(ctx context.Context, commentID string, body *UpdateRoadmapFeatureRequestCommentBody) (*UpdateRoadmapFeatureRequestCommentResponse, error)

UpdateRoadmapFeatureRequestComment calls PATCH /v1/roadmap/comments/{commentId}.

func (*RoadmapService) VoteRoadmapFeatureRequest

VoteRoadmapFeatureRequest calls POST /v1/roadmap/requests/{slug}/vote.

type RoadmapVoteType

type RoadmapVoteType string

RoadmapVoteType is an API enum.

const (
	RoadmapVoteTypeUnspecified RoadmapVoteType = "ROADMAP_VOTE_TYPE_UNSPECIFIED"
	RoadmapVoteTypeUp          RoadmapVoteType = "ROADMAP_VOTE_TYPE_UP"
)

Values of RoadmapVoteType.

type Role

type Role struct {
	Description    string         `json:"description,omitempty"`
	GroupIDs       []string       `json:"groupIds,omitempty"`
	ID             string         `json:"id,omitempty"`
	IsBuiltin      bool           `json:"isBuiltin,omitempty"`
	Metadata       map[string]any `json:"metadata,omitempty"`
	Name           string         `json:"name,omitempty"`
	OrganizationID string         `json:"organizationId,omitempty"`
	Permissions    []string       `json:"permissions,omitempty"`
	Status         Protov1Status  `json:"status,omitempty"`
	Timestamps     *Timestamps    `json:"timestamps,omitempty"`
	Users          []UserSummary  `json:"users,omitempty"`
}

Role is the API's v1Role object.

type RoleService

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

RoleService calls the NodeRings RoleService API.

func (*RoleService) CreateRole

func (s *RoleService) CreateRole(ctx context.Context, body *CreateRoleRequest) (*CreateRoleResponse, error)

CreateRole calls POST /v1/roles.

func (*RoleService) DeleteRole

func (s *RoleService) DeleteRole(ctx context.Context, id string) (*SuccessResponse, error)

DeleteRole calls DELETE /v1/roles/{id}.

func (*RoleService) ListRoles

func (s *RoleService) ListRoles(ctx context.Context, params *ListRolesParams) (*ListRolesResponse, error)

ListRoles calls GET /v1/roles.

func (*RoleService) ListRolesAll

func (s *RoleService) ListRolesAll(ctx context.Context, params *ListRolesParams) iter.Seq2[Role, error]

ListRolesAll returns an iterator over every result of ListRoles, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*RoleService) ReplaceRoleForGroup

func (s *RoleService) ReplaceRoleForGroup(ctx context.Context, body *ReplaceRoleForGroupRequest) (*SuccessResponse, error)

ReplaceRoleForGroup calls PUT /v1/roles/replace-for-group.

func (*RoleService) ReplaceRoleForServiceAccount

func (s *RoleService) ReplaceRoleForServiceAccount(ctx context.Context, body *ReplaceRoleForServiceAccountRequest) (*SuccessResponse, error)

ReplaceRoleForServiceAccount calls PUT /v1/roles/replace-for-service-account.

func (*RoleService) ReplaceRoleForUser

func (s *RoleService) ReplaceRoleForUser(ctx context.Context, body *ReplaceRoleForUserRequest) (*SuccessResponse, error)

ReplaceRoleForUser calls PUT /v1/roles/replace-for-user.

func (*RoleService) UpdateRole

func (s *RoleService) UpdateRole(ctx context.Context, id string, body *UpdateRoleBody) (*UpdateRoleResponse, error)

UpdateRole calls PATCH /v1/roles/{id}.

type RotateDatabasePasswordBody

type RotateDatabasePasswordBody struct {
}

RotateDatabasePasswordBody is the API's GameServerServiceRotateDatabasePasswordBody object.

type RotateMetricsWriteCredentialBody

type RotateMetricsWriteCredentialBody struct {
}

RotateMetricsWriteCredentialBody is the API's MetricsCredentialServiceRotateMetricsWriteCredentialBody object.

type RotateMonitoringDatasourceTokenRequest

type RotateMonitoringDatasourceTokenRequest struct {
}

RotateMonitoringDatasourceTokenRequest is the API's v1RotateMonitoringDatasourceTokenRequest object.

type RuleEffect

type RuleEffect string

RuleEffect: - RULE_EFFECT_ENABLE: Feature toggle: true/false (use false to disable)

  • RULE_EFFECT_ENTITLE: Entitlement: granted
  • RULE_EFFECT_LIMIT: Limit: numeric ceiling
const (
	RuleEffectUnspecified RuleEffect = "RULE_EFFECT_UNSPECIFIED"
	RuleEffectEnable      RuleEffect = "RULE_EFFECT_ENABLE"
	RuleEffectEntitle     RuleEffect = "RULE_EFFECT_ENTITLE"
	RuleEffectLimit       RuleEffect = "RULE_EFFECT_LIMIT"
)

Values of RuleEffect.

type Rules

type Rules struct {
	BoolValue    bool  `json:"boolValue,omitempty"`
	CurrentUsage int64 `json:"currentUsage,omitempty,string"`
	// - RULE_EFFECT_ENABLE: Feature toggle: true/false (use false to disable)
	//  - RULE_EFFECT_ENTITLE: Entitlement: granted
	//  - RULE_EFFECT_LIMIT: Limit: numeric ceiling
	Effect     RuleEffect `json:"effect,omitempty"`
	Int64Value int64      `json:"int64Value,omitempty,string"`
	RuleKey    string     `json:"ruleKey,omitempty"`
}

Rules: RuleStatus represents the status of a rule from the ruleset

type SMTPOutboundProviderPolicy

type SMTPOutboundProviderPolicy struct {
	BlockByDefault bool `json:"blockByDefault,omitempty"`
}

SMTPOutboundProviderPolicy is the API's v1SmtpOutboundProviderPolicy object.

type SMTPOutboundVMAction

type SMTPOutboundVMAction string

SMTPOutboundVMAction is an API enum.

const (
	SMTPOutboundVMActionUnspecified SMTPOutboundVMAction = "SMTP_OUTBOUND_VM_ACTION_UNSPECIFIED"
	SMTPOutboundVMActionInherit     SMTPOutboundVMAction = "SMTP_OUTBOUND_VM_ACTION_INHERIT"
	SMTPOutboundVMActionAllow       SMTPOutboundVMAction = "SMTP_OUTBOUND_VM_ACTION_ALLOW"
	SMTPOutboundVMActionBlock       SMTPOutboundVMAction = "SMTP_OUTBOUND_VM_ACTION_BLOCK"
)

Values of SMTPOutboundVMAction.

type SSHKey

type SSHKey struct {
	Fingerprint string `json:"fingerprint,omitempty"`
	ID          string `json:"id,omitempty"`
	// rsa, ed25519, ecdsa, dsa, etc.
	KeyType        string      `json:"keyType,omitempty"`
	Name           string      `json:"name,omitempty"`
	OrganizationID string      `json:"organizationId,omitempty"`
	PublicKey      string      `json:"publicKey,omitempty"`
	Timestamps     *Timestamps `json:"timestamps,omitempty"`
}

SSHKey: SSH Key messages

type SSHKeyService

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

SSHKeyService calls the NodeRings SSHKeyService API.

func (*SSHKeyService) CreateSSHKey

CreateSSHKey calls POST /v1/ssh-keys.

func (*SSHKeyService) DeleteSSHKey

func (s *SSHKeyService) DeleteSSHKey(ctx context.Context, id string) (*SuccessResponse, error)

DeleteSSHKey calls DELETE /v1/ssh-keys/{id}.

func (*SSHKeyService) GetSSHKey

func (s *SSHKeyService) GetSSHKey(ctx context.Context, id string) (*GetSSHKeyResponse, error)

GetSSHKey calls GET /v1/ssh-keys/{id}.

func (*SSHKeyService) ListSSHKeys

func (s *SSHKeyService) ListSSHKeys(ctx context.Context, params *ListSSHKeysParams) (*ListSSHKeysResponse, error)

ListSSHKeys calls GET /v1/ssh-keys.

func (*SSHKeyService) ListSSHKeysAll

func (s *SSHKeyService) ListSSHKeysAll(ctx context.Context, params *ListSSHKeysParams) iter.Seq2[SSHKey, error]

ListSSHKeysAll returns an iterator over every result of ListSSHKeys, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

type ScanDNSZoneRecords2Params

type ScanDNSZoneRecords2Params struct {
	Name string
}

ScanDNSZoneRecords2Params are the query parameters of DNSZoneService.ScanDNSZoneRecords2.

type ScanDNSZoneRecordsParams

type ScanDNSZoneRecordsParams struct {
	Name   string
	ZoneID string
}

ScanDNSZoneRecordsParams are the query parameters of DNSZoneService.ScanDNSZoneRecords.

type ScanDNSZoneRecordsResponse

type ScanDNSZoneRecordsResponse struct {
	Records []DNSRecord `json:"records,omitempty"`
}

ScanDNSZoneRecordsResponse is the API's v1ScanDnsZoneRecordsResponse object.

type SearchMarketplaceRequest

type SearchMarketplaceRequest struct {
	FilterBillingType BillingType `json:"filterBillingType,omitempty"`
	Page              int32       `json:"page,omitempty"`
	PageSize          int32       `json:"pageSize,omitempty"`
	Query             string      `json:"query,omitempty"`
	// Cloudflare Turnstile token (required for anonymous callers when auth.turnstile.requireOnAnonymousMarketplaceSearch).
	TurnstileToken string `json:"turnstileToken,omitempty"`
}

SearchMarketplaceRequest: Natural-language marketplace search (anonymous landing page).

type SearchMarketplaceResponse

type SearchMarketplaceResponse struct {
	AppliedBillingType BillingType `json:"appliedBillingType,omitempty"`
	Page               int32       `json:"page,omitempty"`
	PageSize           int32       `json:"pageSize,omitempty"`
	// Structured filters extracted from the user query (word matcher today; LLM later).
	ParsedQuery *MarketplaceSearchParsedQuery `json:"parsedQuery,omitempty"`
	Results     []MarketplaceSearchResult     `json:"results,omitempty"`
	TotalCount  int32                         `json:"totalCount,omitempty"`
}

SearchMarketplaceResponse is the API's v1SearchMarketplaceResponse object.

type SearchTicketsRequest

type SearchTicketsRequest struct {
	FilterCaseType     CaseType       `json:"filterCaseType,omitempty"`
	FilterPriority     TicketPriority `json:"filterPriority,omitempty"`
	FilterTicketStatus TicketStatus   `json:"filterTicketStatus,omitempty"`
	IncludeHighlights  *bool          `json:"includeHighlights,omitempty"`
	Page               int32          `json:"page,omitempty"`
	PageSize           int32          `json:"pageSize,omitempty"`
	Query              string         `json:"query,omitempty"`
}

SearchTicketsRequest is the API's v1SearchTicketsRequest object.

type SearchTicketsResponse

type SearchTicketsResponse struct {
	Highlights          map[string]TicketSearchHighlight `json:"highlights,omitempty"`
	OrganizationDetails map[string]OrganizationDetails   `json:"organizationDetails,omitempty"`
	Tickets             []Ticket                         `json:"tickets,omitempty"`
	TotalCount          int32                            `json:"totalCount,omitempty"`
	UserDetails         map[string]UserDetails           `json:"userDetails,omitempty"`
}

SearchTicketsResponse is the API's v1SearchTicketsResponse object.

type Secret

type Secret struct {
	ID           string         `json:"id,omitempty"`
	Key          string         `json:"key,omitempty"`
	Metadata     map[string]any `json:"metadata,omitempty"`
	Organization string         `json:"organization,omitempty"`
	Status       Protov1Status  `json:"status,omitempty"`
	Timestamps   *Timestamps    `json:"timestamps,omitempty"`
	User         string         `json:"user,omitempty"`
}

Secret is the API's v1Secret object.

type SecretService

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

SecretService calls the NodeRings SecretService API.

func (*SecretService) CreateSecret

CreateSecret calls POST /v1/secrets.

func (*SecretService) DeleteSecret

func (s *SecretService) DeleteSecret(ctx context.Context, id string) (*SuccessResponse, error)

DeleteSecret calls DELETE /v1/secrets/{id}.

func (*SecretService) GetSecret

func (s *SecretService) GetSecret(ctx context.Context, id string) (*GetSecretResponse, error)

GetSecret calls GET /v1/secrets/{id}.

func (*SecretService) ListSecrets

func (s *SecretService) ListSecrets(ctx context.Context, params *ListSecretsParams) (*ListSecretsResponse, error)

ListSecrets calls GET /v1/secrets.

func (*SecretService) ListSecretsAll

func (s *SecretService) ListSecretsAll(ctx context.Context, params *ListSecretsParams) iter.Seq2[Secret, error]

ListSecretsAll returns an iterator over every result of ListSecrets, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*SecretService) UpdateSecret

func (s *SecretService) UpdateSecret(ctx context.Context, id string, body *UpdateSecretBody) (*SuccessResponse, error)

UpdateSecret calls PATCH /v1/secrets/{id}.

type ServiceAccountResponse

type ServiceAccountResponse struct {
	ActiveTokenCount int32      `json:"activeTokenCount,omitempty"`
	AllowedIPs       []string   `json:"allowedIps,omitempty"`
	CreatedAt        *time.Time `json:"createdAt,omitempty"`
	CreatedByUserID  string     `json:"createdByUserId,omitempty"`
	Description      string     `json:"description,omitempty"`
	GroupIDs         []string   `json:"groupIds,omitempty"`
	ID               string     `json:"id,omitempty"`
	IsActive         bool       `json:"isActive,omitempty"`
	LastUsedAt       *time.Time `json:"lastUsedAt,omitempty"`
	Name             string     `json:"name,omitempty"`
	OrganizationID   string     `json:"organizationId,omitempty"`
	RoleIDs          []string   `json:"roleIds,omitempty"`
	UpdatedAt        *time.Time `json:"updatedAt,omitempty"`
}

ServiceAccountResponse is the API's v1ServiceAccountResponse object.

type ServiceAccountService

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

ServiceAccountService calls the NodeRings ServiceAccountService API.

func (*ServiceAccountService) CreateServiceAccount

CreateServiceAccount calls POST /v1/service-accounts.

func (*ServiceAccountService) DeleteServiceAccount

func (s *ServiceAccountService) DeleteServiceAccount(ctx context.Context, id string) (*SuccessResponse, error)

DeleteServiceAccount calls DELETE /v1/service-accounts/{id}.

func (*ServiceAccountService) GenerateToken

func (s *ServiceAccountService) GenerateToken(ctx context.Context, serviceAccountID string, body *GenerateTokenBody) (*GenerateServiceAccountTokenResponse, error)

GenerateToken calls POST /v1/service-accounts/{serviceAccountId}/tokens.

func (*ServiceAccountService) GetServiceAccount

func (s *ServiceAccountService) GetServiceAccount(ctx context.Context, id string) (*ServiceAccountResponse, error)

GetServiceAccount calls GET /v1/service-accounts/{id}.

func (*ServiceAccountService) ListServiceAccounts

ListServiceAccounts calls GET /v1/service-accounts.

func (*ServiceAccountService) ListServiceAccountsAll

ListServiceAccountsAll returns an iterator over every result of ListServiceAccounts, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*ServiceAccountService) ListTokens

func (s *ServiceAccountService) ListTokens(ctx context.Context, serviceAccountID string, params *ListTokensParams) (*ListServiceAccountTokensResponse, error)

ListTokens calls GET /v1/service-accounts/{serviceAccountId}/tokens.

func (*ServiceAccountService) ListTokensAll

func (s *ServiceAccountService) ListTokensAll(ctx context.Context, serviceAccountID string, params *ListTokensParams) iter.Seq2[ServiceAccountTokenInfo, error]

ListTokensAll returns an iterator over every result of ListTokens, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*ServiceAccountService) RevokeToken

func (s *ServiceAccountService) RevokeToken(ctx context.Context, tokenID string) (*SuccessResponse, error)

RevokeToken calls DELETE /v1/service-accounts/tokens/{tokenId}.

func (*ServiceAccountService) UpdateServiceAccount

UpdateServiceAccount calls PATCH /v1/service-accounts/{id}.

type ServiceAccountTokenInfo

type ServiceAccountTokenInfo struct {
	CreatedAt       *time.Time `json:"createdAt,omitempty"`
	CreatedByUserID string     `json:"createdByUserId,omitempty"`
	ExpiresAt       *time.Time `json:"expiresAt,omitempty"`
	ExpiresInDays   int32      `json:"expiresInDays,omitempty"`
	LastUsedAt      *time.Time `json:"lastUsedAt,omitempty"`
	Name            string     `json:"name,omitempty"`
	Status          string     `json:"status,omitempty"`
	TokenID         string     `json:"tokenId,omitempty"`
}

ServiceAccountTokenInfo is the API's v1ServiceAccountTokenInfo object.

type ServiceStatus

type ServiceStatus string

ServiceStatus is an API enum.

const (
	ServiceStatusUnspecified ServiceStatus = "SERVICE_STATUS_UNSPECIFIED"
	ServiceStatusOnline      ServiceStatus = "SERVICE_STATUS_ONLINE"
	ServiceStatusOffline     ServiceStatus = "SERVICE_STATUS_OFFLINE"
	ServiceStatusMaintenance ServiceStatus = "SERVICE_STATUS_MAINTENANCE"
)

Values of ServiceStatus.

type ServingStatus

type ServingStatus string

ServingStatus is an API enum.

const (
	ServingStatusUnknown    ServingStatus = "UNKNOWN"
	ServingStatusServing    ServingStatus = "SERVING"
	ServingStatusNotServing ServingStatus = "NOT_SERVING"
)

Values of ServingStatus.

type SessionInfo

type SessionInfo struct {
	Browser          string `json:"browser,omitempty"`
	Country          string `json:"country,omitempty"`
	DeviceType       string `json:"deviceType,omitempty"`
	ID               string `json:"id,omitempty"`
	IsCurrentSession bool   `json:"isCurrentSession,omitempty"`
	LastLogin        string `json:"lastLogin,omitempty"`
	OS               string `json:"os,omitempty"`
	RealIP           string `json:"realIp,omitempty"`
	RequestIP        string `json:"requestIp,omitempty"`
}

SessionInfo is the API's v1SessionInfo object.

type SetDefaultPaymentMethodBody

type SetDefaultPaymentMethodBody struct {
}

SetDefaultPaymentMethodBody is the API's PaymentMethodServiceSetDefaultPaymentMethodBody object.

type SetDefaultPaymentMethodResponse

type SetDefaultPaymentMethodResponse struct {
	PaymentMethod *PaymentMethod `json:"paymentMethod,omitempty"`
}

SetDefaultPaymentMethodResponse is the API's v1SetDefaultPaymentMethodResponse object.

type SetGameNestOrderingRequest

type SetGameNestOrderingRequest struct {
	CatalogKey      string `json:"catalogKey,omitempty"`
	OrderingEnabled *bool  `json:"orderingEnabled,omitempty"`
	PlatformID      string `json:"platformId,omitempty"`
}

SetGameNestOrderingRequest is the API's v1SetGameNestOrderingRequest object.

type SetPasswordRequest

type SetPasswordRequest struct {
	NewPassword string `json:"newPassword,omitempty"`
}

SetPasswordRequest: SetPassword is for passwordless (SSO-only) accounts that have never set a local password.

type SetPrimaryAllocationBody

type SetPrimaryAllocationBody struct {
}

SetPrimaryAllocationBody is the API's GameServerServiceSetPrimaryAllocationBody object.

type SetTicketPriorityBody

type SetTicketPriorityBody struct {
	Priority TicketPriority `json:"priority,omitempty"`
}

SetTicketPriorityBody is the API's TicketServiceSetTicketPriorityBody object.

type SetTicketStatusBody

type SetTicketStatusBody struct {
	TicketStatus TicketStatus `json:"ticketStatus,omitempty"`
}

SetTicketStatusBody is the API's TicketServiceSetTicketStatusBody object.

type Snapshot

type Snapshot struct {
	// Read-only: set by the API.
	CreatedAt *time.Time `json:"createdAt,omitempty"`
	// Read-only: set by the API.
	Description string `json:"description,omitempty"`
	// Read-only: set by the API.
	ID          string         `json:"id,omitempty"`
	LastRestore *LastRestore   `json:"lastRestore,omitempty"`
	Metadata    map[string]any `json:"metadata,omitempty"`
	// Read-only: set by the API.
	Name            string                  `json:"name,omitempty"`
	OperationStatus SnapshotOperationStatus `json:"operationStatus,omitempty"`
	RestoreStatus   RestoreStatus           `json:"restoreStatus,omitempty"`
	// Read-only: set by the API.
	RestoredAt *time.Time `json:"restoredAt,omitempty"`
	// Read-only: set by the API.
	SnapshotID     string         `json:"snapshotId,omitempty"`
	SnapshotStatus SnapshotStatus `json:"snapshotStatus,omitempty"`
	Status         Protov1Status  `json:"status,omitempty"`
	Timestamps     *Timestamps    `json:"timestamps,omitempty"`
	// Read-only: set by the API.
	VirtualMachineID string `json:"virtualMachineId,omitempty"`
}

Snapshot: Snapshot represents a snapshot of a virtual machine

type SnapshotOperationStatus

type SnapshotOperationStatus string

SnapshotOperationStatus is an API enum.

const (
	SnapshotOperationStatusUnspecified SnapshotOperationStatus = "SNAPSHOT_OPERATION_STATUS_UNSPECIFIED"
	SnapshotOperationStatusPending     SnapshotOperationStatus = "SNAPSHOT_OPERATION_STATUS_PENDING"
	SnapshotOperationStatusProcessing  SnapshotOperationStatus = "SNAPSHOT_OPERATION_STATUS_PROCESSING"
	SnapshotOperationStatusCompleted   SnapshotOperationStatus = "SNAPSHOT_OPERATION_STATUS_COMPLETED"
	SnapshotOperationStatusFailed      SnapshotOperationStatus = "SNAPSHOT_OPERATION_STATUS_FAILED"
)

Values of SnapshotOperationStatus.

type SnapshotService

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

SnapshotService calls the NodeRings SnapshotService API.

func (*SnapshotService) CreateSnapshot

func (s *SnapshotService) CreateSnapshot(ctx context.Context, vmID string, body *CreateSnapshotBody) (*CreateSnapshotResponse, error)

CreateSnapshot calls POST /v1/virtual-machines/{vmId}/snapshots.

func (*SnapshotService) DeleteSnapshot

func (s *SnapshotService) DeleteSnapshot(ctx context.Context, vmID string, snapshotID string) (*SuccessResponse, error)

DeleteSnapshot calls DELETE /v1/virtual-machines/{vmId}/snapshots/{snapshotId}.

func (*SnapshotService) GetSnapshot

func (s *SnapshotService) GetSnapshot(ctx context.Context, vmID string, snapshotID string) (*GetSnapshotResponse, error)

GetSnapshot calls GET /v1/virtual-machines/{vmId}/snapshots/{snapshotId}.

func (*SnapshotService) ListSnapshots

func (s *SnapshotService) ListSnapshots(ctx context.Context, vmID string, params *ListSnapshotsParams) (*ListSnapshotsResponse, error)

ListSnapshots calls GET /v1/virtual-machines/{vmId}/snapshots.

func (*SnapshotService) ListSnapshotsAll

func (s *SnapshotService) ListSnapshotsAll(ctx context.Context, vmID string, params *ListSnapshotsParams) iter.Seq2[Snapshot, error]

ListSnapshotsAll returns an iterator over every result of ListSnapshots, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*SnapshotService) RestoreSnapshot

func (s *SnapshotService) RestoreSnapshot(ctx context.Context, vmID string, snapshotID string, body *RestoreSnapshotBody) (*SuccessResponse, error)

RestoreSnapshot calls POST /v1/virtual-machines/{vmId}/snapshots/{snapshotId}/restore.

type SnapshotStatus

type SnapshotStatus string

SnapshotStatus is an API enum.

const (
	SnapshotStatusUnspecified SnapshotStatus = "SNAPSHOT_STATUS_UNSPECIFIED"
	SnapshotStatusActive      SnapshotStatus = "SNAPSHOT_STATUS_ACTIVE"
	SnapshotStatusDeleted     SnapshotStatus = "SNAPSHOT_STATUS_DELETED"
	SnapshotStatusExpired     SnapshotStatus = "SNAPSHOT_STATUS_EXPIRED"
	SnapshotStatusUnknown     SnapshotStatus = "SNAPSHOT_STATUS_UNKNOWN"
)

Values of SnapshotStatus.

type StartConnectOAuthRequest

type StartConnectOAuthRequest struct {
}

StartConnectOAuthRequest is the API's v1StartConnectOAuthRequest object.

type StartConnectOAuthResponse

type StartConnectOAuthResponse struct {
	AuthorizeURL string `json:"authorizeUrl,omitempty"`
}

StartConnectOAuthResponse is the API's v1StartConnectOAuthResponse object.

type StartPlanLiveValidationBody

type StartPlanLiveValidationBody struct {
	IncludeBenchmarking *bool  `json:"includeBenchmarking,omitempty"`
	NodeID              string `json:"nodeId,omitempty"`
}

StartPlanLiveValidationBody is the API's LiveValidationServiceStartPlanLiveValidationBody object.

type StartPlanLiveValidationResponse

type StartPlanLiveValidationResponse struct {
	RunID  string `json:"runId,omitempty"`
	Status string `json:"status,omitempty"`
}

StartPlanLiveValidationResponse is the API's v1StartPlanLiveValidationResponse object.

type StartProviderCustomerVirtualMachineBody

type StartProviderCustomerVirtualMachineBody struct {
}

StartProviderCustomerVirtualMachineBody: Shared request body for Start/Stop/Restart customer VM RPCs (same fields; operation is the RPC). The server must verify the VM belongs to this provider and client org.

type StartVirtualMachineBody

type StartVirtualMachineBody struct {
}

StartVirtualMachineBody: UpdateVMOperationStatusRequest is a unified request message for all VM operation status updates. The endpoint name (start, stop, restart) determines the operation.

type StartupVariable

type StartupVariable struct {
	Description  string `json:"description,omitempty"`
	EnvVariable  string `json:"envVariable,omitempty"`
	Name         string `json:"name,omitempty"`
	Rules        string `json:"rules,omitempty"`
	ServerValue  string `json:"serverValue,omitempty"`
	UserEditable bool   `json:"userEditable,omitempty"`
	UserViewable bool   `json:"userViewable,omitempty"`
}

StartupVariable is the API's v1StartupVariable object.

type StopProviderCustomerVirtualMachineBody

type StopProviderCustomerVirtualMachineBody struct {
}

StopProviderCustomerVirtualMachineBody: Shared request body for Start/Stop/Restart customer VM RPCs (same fields; operation is the RPC). The server must verify the VM belongs to this provider and client org.

type StopVirtualMachineBody

type StopVirtualMachineBody struct {
}

StopVirtualMachineBody: UpdateVMOperationStatusRequest is a unified request message for all VM operation status updates. The endpoint name (start, stop, restart) determines the operation.

type StoragePool

type StoragePool struct {
	Name             string `json:"name,omitempty"`
	Storage          int32  `json:"storage,omitempty"`
	StorageAllocated int32  `json:"storageAllocated,omitempty"`
}

StoragePool is the API's v1StoragePool object.

type StorefrontFaq

type StorefrontFaq struct {
	Answer   string `json:"answer,omitempty"`
	Question string `json:"question,omitempty"`
}

StorefrontFaq is the API's v1StorefrontFAQ object.

type StorefrontParticipationStatus

type StorefrontParticipationStatus string

StorefrontParticipationStatus is an API enum.

const (
	StorefrontParticipationStatusUnspecified        StorefrontParticipationStatus = "STOREFRONT_PARTICIPATION_STATUS_UNSPECIFIED"
	StorefrontParticipationStatusNotParticipating   StorefrontParticipationStatus = "STOREFRONT_PARTICIPATION_STATUS_NOT_PARTICIPATING"
	StorefrontParticipationStatusDraft              StorefrontParticipationStatus = "STOREFRONT_PARTICIPATION_STATUS_DRAFT"
	StorefrontParticipationStatusPendingApproval    StorefrontParticipationStatus = "STOREFRONT_PARTICIPATION_STATUS_PENDING_APPROVAL"
	StorefrontParticipationStatusLive               StorefrontParticipationStatus = "STOREFRONT_PARTICIPATION_STATUS_LIVE"
	StorefrontParticipationStatusLiveChangesPending StorefrontParticipationStatus = "STOREFRONT_PARTICIPATION_STATUS_LIVE_CHANGES_PENDING"
	StorefrontParticipationStatusOptedOut           StorefrontParticipationStatus = "STOREFRONT_PARTICIPATION_STATUS_OPTED_OUT"
)

Values of StorefrontParticipationStatus.

type StorefrontPublicReview

type StorefrontPublicReview struct {
	Comment           string     `json:"comment,omitempty"`
	CreatedAt         *time.Time `json:"createdAt,omitempty"`
	ID                string     `json:"id,omitempty"`
	ProviderRepliedAt *time.Time `json:"providerRepliedAt,omitempty"`
	ProviderReply     string     `json:"providerReply,omitempty"`
	StarRating        int32      `json:"starRating,omitempty"`
}

StorefrontPublicReview is the API's v1StorefrontPublicReview object.

type StorefrontRevision

type StorefrontRevision struct {
	AboutHTML            string          `json:"aboutHtml,omitempty"`
	AboutMarkdown        string          `json:"aboutMarkdown,omitempty"`
	ApprovedAt           *time.Time      `json:"approvedAt,omitempty"`
	CoverImageURL        string          `json:"coverImageUrl,omitempty"`
	Faqs                 []StorefrontFaq `json:"faqs,omitempty"`
	FeaturedPlanIDs      []string        `json:"featuredPlanIds,omitempty"`
	HighlightCustom      string          `json:"highlightCustom,omitempty"`
	HighlightCustomLines []string        `json:"highlightCustomLines,omitempty"`
	HighlightKeys        []string        `json:"highlightKeys,omitempty"`
	ID                   string          `json:"id,omitempty"`
	LogoImageURL         string          `json:"logoImageUrl,omitempty"`
	ProposedSlug         string          `json:"proposedSlug,omitempty"`
	RejectReason         string          `json:"rejectReason,omitempty"`
	// Public provider storefront (anonymous). Copy is always the latest approved revision.
	Status      StorefrontRevisionStatus `json:"status,omitempty"`
	SubmittedAt *time.Time               `json:"submittedAt,omitempty"`
	Tagline     string                   `json:"tagline,omitempty"`
}

StorefrontRevision is the API's v1StorefrontRevision object.

type StorefrontRevisionStatus

type StorefrontRevisionStatus string

StorefrontRevisionStatus: Public provider storefront (anonymous). Copy is always the latest approved revision.

const (
	StorefrontRevisionStatusUnspecified   StorefrontRevisionStatus = "STOREFRONT_REVISION_STATUS_UNSPECIFIED"
	StorefrontRevisionStatusDraft         StorefrontRevisionStatus = "STOREFRONT_REVISION_STATUS_DRAFT"
	StorefrontRevisionStatusPendingReview StorefrontRevisionStatus = "STOREFRONT_REVISION_STATUS_PENDING_REVIEW"
	StorefrontRevisionStatusApproved      StorefrontRevisionStatus = "STOREFRONT_REVISION_STATUS_APPROVED"
	StorefrontRevisionStatusRejected      StorefrontRevisionStatus = "STOREFRONT_REVISION_STATUS_REJECTED"
	StorefrontRevisionStatusSuperseded    StorefrontRevisionStatus = "STOREFRONT_REVISION_STATUS_SUPERSEDED"
)

Values of StorefrontRevisionStatus.

type SubmitRoadmapFeatureRequestRequest

type SubmitRoadmapFeatureRequestRequest struct {
	Description string `json:"description,omitempty"`
	ProductSlug string `json:"productSlug,omitempty"`
	Title       string `json:"title,omitempty"`
}

SubmitRoadmapFeatureRequestRequest is the API's v1SubmitRoadmapFeatureRequestRequest object.

type SubmitRoadmapFeatureRequestResponse

type SubmitRoadmapFeatureRequestResponse struct {
	Message string `json:"message,omitempty"`
	Success bool   `json:"success,omitempty"`
}

SubmitRoadmapFeatureRequestResponse is the API's v1SubmitRoadmapFeatureRequestResponse object.

type SubscribeParams

type SubscribeParams struct {
	// Optional billing period. If not provided, uses the plan's default billing
	// period. If provided, validates that a PlanPrice exists for this billing
	// period. If not available, returns a FailedPrecondition error.
	BillingPeriod BillingPeriod
}

SubscribeParams are the query parameters of PlanService.Subscribe.

type SubscribeResponse

type SubscribeResponse struct {
	Subscription *Subscription `json:"subscription,omitempty"`
}

SubscribeResponse is the API's v1SubscribeResponse object.

type Subscription

type Subscription struct {
	// Service account that started this subscription. Empty when a user did, or when neither is recorded.
	ActivatedByServiceAccount string `json:"activatedByServiceAccount,omitempty"`
	ActivatedByUser           string `json:"activatedByUser,omitempty"`
	// Active add-on subscriptions on this subscription (name, quantity, and catalog price).
	AddonSubscriptions []AddonSubscription `json:"addonSubscriptions,omitempty"`
	BillingType        BillingType         `json:"billingType,omitempty"`
	CancelAtPeriodEnd  bool                `json:"cancelAtPeriodEnd,omitempty"`
	CanceledAt         *time.Time          `json:"canceledAt,omitempty"`
	// ISO currency for recurring_amount (e.g. USD).
	Currency           string     `json:"currency,omitempty"`
	CurrentPeriodEnd   *time.Time `json:"currentPeriodEnd,omitempty"`
	CurrentPeriodStart *time.Time `json:"currentPeriodStart,omitempty"`
	// True when the bound plan also has metered/usage prices (bandwidth, compute hours, etc.).
	HasUsageCharges   bool           `json:"hasUsageCharges,omitempty"`
	ID                string         `json:"id,omitempty"`
	Metadata          map[string]any `json:"metadata,omitempty"`
	Organization      string         `json:"organization,omitempty"`
	OrganizationName  string         `json:"organizationName,omitempty"`
	Plan              string         `json:"plan,omitempty"`
	PlanBillingPeriod BillingPeriod  `json:"planBillingPeriod,omitempty"`
	// Plan catalog code (e.g. SC-GC-1C-1G-20) for display alongside plan_name.
	PlanCode            string `json:"planCode,omitempty"`
	PlanName            string `json:"planName,omitempty"`
	PlatformFeeCurrency string `json:"platformFeeCurrency,omitempty"`
	// Platform fee ID if applicable
	PlatformFeeID      string       `json:"platformFeeId,omitempty"`
	PlatformFeePercent float64      `json:"platformFeePercent,omitempty"`
	PlatformFeeType    string       `json:"platformFeeType,omitempty"`
	PricingModel       PricingModel `json:"pricingModel,omitempty"`
	Quantity           int32        `json:"quantity,omitempty"`
	// Bound catalog amount for the current period (plan unit price × quantity). Empty when unknown.
	RecurringAmount string `json:"recurringAmount,omitempty"`
	// Linked VM resource snapshot for display (0 when not applicable).
	ResourceCPU int32 `json:"resourceCpu,omitempty"`
	// Primary linked VM hostname for client compute subscriptions (empty otherwise).
	ResourceHostname string `json:"resourceHostname,omitempty"`
	ResourceMemory   int32  `json:"resourceMemory,omitempty"`
	// Provider organization name for the linked VM (empty when not applicable).
	ResourceProviderName string `json:"resourceProviderName,omitempty"`
	// Region label for the linked VM (e.g. city and country, or datacenter name).
	ResourceRegionName string `json:"resourceRegionName,omitempty"`
	ResourceStorage    int32  `json:"resourceStorage,omitempty"`
	// Linked VM id for navigation (empty when not applicable).
	ResourceVMID       string             `json:"resourceVmId,omitempty"`
	StartDate          *time.Time         `json:"startDate,omitempty"`
	Status             Protov1Status      `json:"status,omitempty"`
	SubscriptionStatus SubscriptionStatus `json:"subscriptionStatus,omitempty"`
	Timestamps         *Timestamps        `json:"timestamps,omitempty"`
	TrialEndDate       *time.Time         `json:"trialEndDate,omitempty"`
}

Subscription is the API's v1Subscription object.

type SubscriptionCoupon

type SubscriptionCoupon struct {
	ApplicationID    string                  `json:"applicationId,omitempty"`
	AppliedAt        *time.Time              `json:"appliedAt,omitempty"`
	Code             string                  `json:"code,omitempty"`
	PeriodsRemaining int32                   `json:"periodsRemaining,omitempty"`
	Status           CouponApplicationStatus `json:"status,omitempty"`
	SubscriptionID   string                  `json:"subscriptionId,omitempty"`
	// Disclosure text the customer accepted.
	TermsSummary string     `json:"termsSummary,omitempty"`
	WindowEndsAt *time.Time `json:"windowEndsAt,omitempty"`
}

SubscriptionCoupon: The coupon attached to one subscription.

type SubscriptionService

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

SubscriptionService calls the NodeRings SubscriptionService API.

func (*SubscriptionService) Cancel

Cancel calls POST /v1/subscriptions:cancel.

func (*SubscriptionService) CancelRenewal

CancelRenewal: CancelRenewal: fixed-price plans stop renewing at current_period_end (VM stays; no refund). Usage-based plans terminate immediately (same path as deleting the VM).

It calls POST /v1/subscriptions:cancel-renewal.

func (*SubscriptionService) GetSubscriptionStatus

func (s *SubscriptionService) GetSubscriptionStatus(ctx context.Context) (*GetSubscriptionStatusResponse, error)

GetSubscriptionStatus calls GET /v1/subscriptions:status.

func (*SubscriptionService) ListSubscriptions

ListSubscriptions calls GET /v1/subscriptions.

func (*SubscriptionService) ListSubscriptionsAll

func (s *SubscriptionService) ListSubscriptionsAll(ctx context.Context, params *ListSubscriptionsParams) iter.Seq2[Subscription, error]

ListSubscriptionsAll returns an iterator over every result of ListSubscriptions, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*SubscriptionService) RetryPayment

RetryPayment calls POST /v1/subscriptions:retry-payment.

func (*SubscriptionService) UndoCancelRenewal

func (s *SubscriptionService) UndoCancelRenewal(ctx context.Context, body *UndoCancelRenewalRequest) (*CancelResponse, error)

UndoCancelRenewal: UndoCancelRenewal clears cancel_at_period_end so the asset subscription renews again.

It calls POST /v1/subscriptions:undo-cancel-renewal.

type SubscriptionStatus

type SubscriptionStatus string

SubscriptionStatus is an API enum.

const (
	SubscriptionStatusUnspecified SubscriptionStatus = "SUBSCRIPTION_STATUS_UNSPECIFIED"
	SubscriptionStatusTrialing    SubscriptionStatus = "SUBSCRIPTION_STATUS_TRIALING"
	SubscriptionStatusActive      SubscriptionStatus = "SUBSCRIPTION_STATUS_ACTIVE"
	SubscriptionStatusPastDue     SubscriptionStatus = "SUBSCRIPTION_STATUS_PAST_DUE"
	SubscriptionStatusCanceled    SubscriptionStatus = "SUBSCRIPTION_STATUS_CANCELED"
	SubscriptionStatusPaused      SubscriptionStatus = "SUBSCRIPTION_STATUS_PAUSED"
)

Values of SubscriptionStatus.

type SuccessResponse

type SuccessResponse struct {
	Success bool `json:"success,omitempty"`
}

SuccessResponse is the API's v1SuccessResponse object.

type SuspendPlatformVirtualMachineBody

type SuspendPlatformVirtualMachineBody struct {
	Message string `json:"message,omitempty"`
	// Why a VM or purchase was seized/blocked.
	Reason ComplianceReason `json:"reason,omitempty"`
}

SuspendPlatformVirtualMachineBody is the API's EnforcementServiceSuspendPlatformVirtualMachineBody object.

type SuspendProviderCustomerVirtualMachineBody

type SuspendProviderCustomerVirtualMachineBody struct {
	Message string `json:"message,omitempty"`
	// Why a VM or purchase was seized/blocked.
	Reason ComplianceReason `json:"reason,omitempty"`
}

SuspendProviderCustomerVirtualMachineBody is the API's ProviderCustomerServiceSuspendProviderCustomerVirtualMachineBody object.

type Ticket

type Ticket struct {
	AssignedToUser           string         `json:"assignedToUser,omitempty"`
	CaseType                 CaseType       `json:"caseType,omitempty"`
	FirstResponseAt          *time.Time     `json:"firstResponseAt,omitempty"`
	FirstResponseTimeSeconds int64          `json:"firstResponseTimeSeconds,omitempty,string"`
	FromOrganization         string         `json:"fromOrganization,omitempty"`
	FromUser                 string         `json:"fromUser,omitempty"`
	ID                       string         `json:"id,omitempty"`
	LastActivityAt           *time.Time     `json:"lastActivityAt,omitempty"`
	LockedAt                 *time.Time     `json:"lockedAt,omitempty"`
	LockedByUser             string         `json:"lockedByUser,omitempty"`
	Message                  string         `json:"message,omitempty"`
	Metadata                 map[string]any `json:"metadata,omitempty"`
	Priority                 TicketPriority `json:"priority,omitempty"`
	Replies                  string         `json:"replies,omitempty"`
	ResolutionTimeSeconds    int64          `json:"resolutionTimeSeconds,omitempty,string"`
	ResolvedAt               *time.Time     `json:"resolvedAt,omitempty"`
	Status                   Protov1Status  `json:"status,omitempty"`
	Tags                     []string       `json:"tags,omitempty"`
	TicketID                 int64          `json:"ticketId,omitempty,string"`
	TicketStatus             TicketStatus   `json:"ticketStatus,omitempty"`
	Timestamps               *Timestamps    `json:"timestamps,omitempty"`
	Title                    string         `json:"title,omitempty"`
	ToOrganization           string         `json:"toOrganization,omitempty"`
	ToUser                   string         `json:"toUser,omitempty"`
	VirtualMachines          string         `json:"virtualMachines,omitempty"`
}

Ticket is the API's v1Ticket object.

type TicketAttachment

type TicketAttachment struct {
	FileName         string      `json:"fileName,omitempty"`
	FileSize         int64       `json:"fileSize,omitempty,string"`
	ID               string      `json:"id,omitempty"`
	MimeType         string      `json:"mimeType,omitempty"`
	TicketID         string      `json:"ticketId,omitempty"`
	Timestamps       *Timestamps `json:"timestamps,omitempty"`
	UploadedByUserID string      `json:"uploadedByUserId,omitempty"`
}

TicketAttachment is the API's v1TicketAttachment object.

type TicketInternalComment

type TicketInternalComment struct {
	Comment         string      `json:"comment,omitempty"`
	CreatedByUserID string      `json:"createdByUserId,omitempty"`
	ID              string      `json:"id,omitempty"`
	TicketID        string      `json:"ticketId,omitempty"`
	Timestamps      *Timestamps `json:"timestamps,omitempty"`
}

TicketInternalComment is the API's v1TicketInternalComment object.

type TicketMessage

type TicketMessage struct {
	FromOrganization string      `json:"fromOrganization,omitempty"`
	FromUser         string      `json:"fromUser,omitempty"`
	ID               string      `json:"id,omitempty"`
	IsReply          bool        `json:"isReply,omitempty"`
	Message          string      `json:"message,omitempty"`
	Sequence         int64       `json:"sequence,omitempty,string"`
	Timestamps       *Timestamps `json:"timestamps,omitempty"`
	ToOrganization   string      `json:"toOrganization,omitempty"`
	ToUser           string      `json:"toUser,omitempty"`
}

TicketMessage: TicketMessage represents a single message in a ticket thread This includes both the original ticket message and all replies

type TicketPriority

type TicketPriority string

TicketPriority is an API enum.

const (
	TicketPriorityUnspecified TicketPriority = "TICKET_PRIORITY_UNSPECIFIED"
	TicketPriorityLow         TicketPriority = "TICKET_PRIORITY_LOW"
	TicketPriorityNormal      TicketPriority = "TICKET_PRIORITY_NORMAL"
	TicketPriorityHigh        TicketPriority = "TICKET_PRIORITY_HIGH"
	TicketPriorityUrgent      TicketPriority = "TICKET_PRIORITY_URGENT"
	TicketPriorityCritical    TicketPriority = "TICKET_PRIORITY_CRITICAL"
)

Values of TicketPriority.

type TicketSearchHighlight

type TicketSearchHighlight struct {
	Message  string `json:"message,omitempty"`
	TicketID string `json:"ticketId,omitempty"`
	Title    string `json:"title,omitempty"`
}

TicketSearchHighlight is the API's v1TicketSearchHighlight object.

type TicketService

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

TicketService calls the NodeRings TicketService API.

func (*TicketService) AddInternalComment

func (s *TicketService) AddInternalComment(ctx context.Context, ticketID string, body *AddInternalCommentBody) (*AddInternalCommentResponse, error)

AddInternalComment calls POST /v1/tickets/{ticketId}:internal-comment.

func (*TicketService) AddReplyToTicket

func (s *TicketService) AddReplyToTicket(ctx context.Context, ticketID string, body *AddReplyToTicketBody) (*SuccessResponse, error)

AddReplyToTicket calls POST /v1/tickets/{ticketId}:add-reply.

func (*TicketService) ConfirmTicketAttachmentUpload

func (s *TicketService) ConfirmTicketAttachmentUpload(ctx context.Context, body *ConfirmTicketAttachmentUploadRequest) (*TicketAttachment, error)

ConfirmTicketAttachmentUpload calls POST /v1/tickets/attachments:confirm-upload.

func (*TicketService) CreateTicket

CreateTicket calls POST /v1/tickets.

func (*TicketService) CreateTicketAttachmentUpload

func (s *TicketService) CreateTicketAttachmentUpload(ctx context.Context, ticketID string, body *CreateTicketAttachmentUploadBody) (*CreateTicketAttachmentUploadResponse, error)

CreateTicketAttachmentUpload calls POST /v1/tickets/{ticketId}/attachments:upload.

func (*TicketService) CreateTicketTemplate

func (s *TicketService) CreateTicketTemplate(ctx context.Context, body *CreateTicketTemplateRequest) (*TicketTemplate, error)

CreateTicketTemplate calls POST /v1/ticket-templates.

func (*TicketService) DeleteTicket

func (s *TicketService) DeleteTicket(ctx context.Context, id string) (*SuccessResponse, error)

DeleteTicket calls DELETE /v1/tickets/{id}.

func (*TicketService) DeleteTicketAttachment

func (s *TicketService) DeleteTicketAttachment(ctx context.Context, attachmentID string) (*SuccessResponse, error)

DeleteTicketAttachment calls DELETE /v1/tickets/attachments/{attachmentId}.

func (*TicketService) DeleteTicketTemplate

func (s *TicketService) DeleteTicketTemplate(ctx context.Context, id string) (*SuccessResponse, error)

DeleteTicketTemplate calls DELETE /v1/ticket-templates/{id}.

func (*TicketService) DownloadTicketAttachment

func (s *TicketService) DownloadTicketAttachment(ctx context.Context, attachmentID string) (*DownloadTicketAttachmentResponse, error)

DownloadTicketAttachment calls GET /v1/tickets/attachments/{attachmentId}:download.

func (*TicketService) GetTicket

func (s *TicketService) GetTicket(ctx context.Context, id string) (*GetTicketResponse, error)

GetTicket calls GET /v1/tickets/{id}.

func (*TicketService) GetTicketTemplate

func (s *TicketService) GetTicketTemplate(ctx context.Context, id string) (*TicketTemplate, error)

GetTicketTemplate calls GET /v1/ticket-templates/{id}.

func (*TicketService) ListInternalComments

func (s *TicketService) ListInternalComments(ctx context.Context, ticketID string) (*ListInternalCommentsResponse, error)

ListInternalComments calls GET /v1/tickets/{ticketId}/internal-comments.

func (*TicketService) ListTicketAttachments

func (s *TicketService) ListTicketAttachments(ctx context.Context, ticketID string) (*ListTicketAttachmentsResponse, error)

ListTicketAttachments calls GET /v1/tickets/{ticketId}/attachments.

func (*TicketService) ListTicketTemplates

ListTicketTemplates calls GET /v1/ticket-templates.

func (*TicketService) ListTickets

func (s *TicketService) ListTickets(ctx context.Context, params *ListTicketsParams) (*ListTicketsResponse, error)

ListTickets calls GET /v1/tickets.

func (*TicketService) ListTicketsAll

func (s *TicketService) ListTicketsAll(ctx context.Context, params *ListTicketsParams) iter.Seq2[Ticket, error]

ListTicketsAll returns an iterator over every result of ListTickets, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*TicketService) SearchTickets

SearchTickets calls POST /v1/tickets:search.

func (*TicketService) SetTicketPriority

func (s *TicketService) SetTicketPriority(ctx context.Context, ticketID string, body *SetTicketPriorityBody) (*SuccessResponse, error)

SetTicketPriority calls POST /v1/tickets/{ticketId}:set-priority.

func (*TicketService) SetTicketStatus

func (s *TicketService) SetTicketStatus(ctx context.Context, ticketID string, body *SetTicketStatusBody) (*SuccessResponse, error)

SetTicketStatus calls POST /v1/tickets/{ticketId}:set-status.

func (*TicketService) UpdateTicketTemplate

func (s *TicketService) UpdateTicketTemplate(ctx context.Context, id string, body *UpdateTicketTemplateBody) (*TicketTemplate, error)

UpdateTicketTemplate calls PATCH /v1/ticket-templates/{id}.

func (*TicketService) UploadTicketAttachmentContent

func (s *TicketService) UploadTicketAttachmentContent(ctx context.Context, body *UploadTicketAttachmentContentRequest) (*TicketAttachment, error)

UploadTicketAttachmentContent calls POST /v1/tickets/attachments:upload-content.

type TicketStatus

type TicketStatus string

TicketStatus is an API enum.

const (
	TicketStatusUnspecified     TicketStatus = "TICKET_STATUS_UNSPECIFIED"
	TicketStatusInProgress      TicketStatus = "TICKET_STATUS_IN_PROGRESS"
	TicketStatusEscalated       TicketStatus = "TICKET_STATUS_ESCALATED"
	TicketStatusPending         TicketStatus = "TICKET_STATUS_PENDING"
	TicketStatusAwaitingReply   TicketStatus = "TICKET_STATUS_AWAITING_REPLY"
	TicketStatusResolved        TicketStatus = "TICKET_STATUS_RESOLVED"
	TicketStatusWontFix         TicketStatus = "TICKET_STATUS_WONT_FIX"
	TicketStatusDuplicate       TicketStatus = "TICKET_STATUS_DUPLICATE"
	TicketStatusNotReproducible TicketStatus = "TICKET_STATUS_NOT_REPRODUCIBLE"
)

Values of TicketStatus.

type TicketTemplate

type TicketTemplate struct {
	CaseType        CaseType    `json:"caseType,omitempty"`
	CreatedByUserID string      `json:"createdByUserId,omitempty"`
	ID              string      `json:"id,omitempty"`
	IsActive        bool        `json:"isActive,omitempty"`
	MessageTemplate string      `json:"messageTemplate,omitempty"`
	Name            string      `json:"name,omitempty"`
	Tags            []string    `json:"tags,omitempty"`
	Timestamps      *Timestamps `json:"timestamps,omitempty"`
	TitleTemplate   string      `json:"titleTemplate,omitempty"`
	Variables       []string    `json:"variables,omitempty"`
}

TicketTemplate is the API's v1TicketTemplate object.

type TicketTemplateInput

type TicketTemplateInput struct {
	CaseType        CaseType `json:"caseType,omitempty"`
	IsActive        *bool    `json:"isActive,omitempty"`
	MessageTemplate string   `json:"messageTemplate,omitempty"`
	Name            string   `json:"name,omitempty"`
	Tags            []string `json:"tags,omitempty"`
	TitleTemplate   string   `json:"titleTemplate,omitempty"`
}

TicketTemplateInput is the API's v1TicketTemplateInput object.

type TicketTemplateVariableDefinition

type TicketTemplateVariableDefinition struct {
	Description string `json:"description,omitempty"`
	Example     string `json:"example,omitempty"`
	Name        string `json:"name,omitempty"`
	Required    bool   `json:"required,omitempty"`
	Source      string `json:"source,omitempty"`
}

TicketTemplateVariableDefinition is the API's v1TicketTemplateVariableDefinition object.

type TierMode

type TierMode string

TierMode is an API enum.

const (
	TierModeUnspecified TierMode = "TIER_MODE_UNSPECIFIED"
	TierModeNone        TierMode = "TIER_MODE_NONE"
	TierModeVolume      TierMode = "TIER_MODE_VOLUME"
	TierModeTiered      TierMode = "TIER_MODE_TIERED"
	TierModeGraduated   TierMode = "TIER_MODE_GRADUATED"
)

Values of TierMode.

type Timestamps

type Timestamps struct {
	CreateTime *time.Time `json:"createTime,omitempty"`
	UpdateTime *time.Time `json:"updateTime,omitempty"`
}

Timestamps: Object details

type TokenRequest

type TokenRequest struct {
	ClientID     string `json:"clientId,omitempty"`
	ClientSecret string `json:"clientSecret,omitempty"`
	Code         string `json:"code,omitempty"`
	CodeVerifier string `json:"codeVerifier,omitempty"`
	GrantType    string `json:"grantType,omitempty"`
	RedirectURI  string `json:"redirectUri,omitempty"`
	RefreshToken string `json:"refreshToken,omitempty"`
}

TokenRequest is the API's v1TokenRequest object.

type TokenResponse

type TokenResponse struct {
	AccessToken  string `json:"accessToken,omitempty"`
	ExpiresIn    int64  `json:"expiresIn,omitempty,string"`
	RefreshToken string `json:"refreshToken,omitempty"`
	Scope        string `json:"scope,omitempty"`
	TokenType    string `json:"tokenType,omitempty"`
}

TokenResponse is the API's v1TokenResponse object.

type UnassignAgentBody

type UnassignAgentBody struct {
	AgentID string `json:"agentId,omitempty"`
}

UnassignAgentBody is the API's PlatformServiceUnassignAgentBody object.

type UnbanOrganizationBody

type UnbanOrganizationBody struct {
}

UnbanOrganizationBody is the API's EnforcementServiceUnbanOrganizationBody object.

type UnbanUserBody

type UnbanUserBody struct {
}

UnbanUserBody is the API's EnforcementServiceUnbanUserBody object.

type UnblockOrganizationPurchasesBody

type UnblockOrganizationPurchasesBody struct {
	ProviderOrganizationID string `json:"providerOrganizationId,omitempty"`
}

UnblockOrganizationPurchasesBody is the API's EnforcementServiceUnblockOrganizationPurchasesBody object.

type UnblockPlatformVirtualMachineBody

type UnblockPlatformVirtualMachineBody struct {
}

UnblockPlatformVirtualMachineBody is the API's EnforcementServiceUnblockPlatformVirtualMachineBody object.

type UnblockProviderCustomerPurchasesBody

type UnblockProviderCustomerPurchasesBody struct {
}

UnblockProviderCustomerPurchasesBody is the API's ProviderCustomerServiceUnblockProviderCustomerPurchasesBody object.

type UnblockProviderCustomerVirtualMachineBody

type UnblockProviderCustomerVirtualMachineBody struct {
}

UnblockProviderCustomerVirtualMachineBody is the API's ProviderCustomerServiceUnblockProviderCustomerVirtualMachineBody object.

type UndoCancelAddonBody

type UndoCancelAddonBody struct {
}

UndoCancelAddonBody is the API's AddonServiceUndoCancelAddonBody object.

type UndoCancelRenewalRequest

type UndoCancelRenewalRequest struct {
	SubscriptionID string `json:"subscriptionId,omitempty"`
}

UndoCancelRenewalRequest is the API's v1UndoCancelRenewalRequest object.

type UpdateAddonBody

type UpdateAddonBody struct {
	Currency        string  `json:"currency,omitempty"`
	PercentageValue float64 `json:"percentageValue,omitempty"`
	// Decimal string with 6 decimal places precision
	UnitAmount string `json:"unitAmount,omitempty"`
	// Decimal string with 6 decimal places precision
	ZeroBaseFallbackAmount string `json:"zeroBaseFallbackAmount,omitempty"`
}

UpdateAddonBody is the API's AddonServiceUpdateAddonBody object.

type UpdateAgentBody

type UpdateAgentBody struct {
	Description string `json:"description,omitempty"`
	// - PLATFORM_DRIVER_PTERODACTYL: Game-server platform. Not a value of the organization hypervisor driver.
	HypervisorDriver PlatformDriver `json:"hypervisorDriver,omitempty"`
	Name             string         `json:"name,omitempty"`
}

UpdateAgentBody is the API's AgentServiceUpdateAgentBody object.

type UpdateAgentResponse

type UpdateAgentResponse struct {
	Agent *Agent `json:"agent,omitempty"`
}

UpdateAgentResponse is the API's v1UpdateAgentResponse object.

type UpdateAllocationBody

type UpdateAllocationBody struct {
	Notes string `json:"notes,omitempty"`
}

UpdateAllocationBody is the API's GameServerServiceUpdateAllocationBody object.

type UpdateClientReviewBody

type UpdateClientReviewBody struct {
	Comment    string `json:"comment,omitempty"`
	StarRating int32  `json:"starRating,omitempty"`
}

UpdateClientReviewBody is the API's ClientProviderReviewServiceUpdateClientReviewBody object.

type UpdateClientReviewResponse

type UpdateClientReviewResponse struct {
	Review *ClientProviderReview `json:"review,omitempty"`
}

UpdateClientReviewResponse is the API's v1UpdateClientReviewResponse object.

type UpdateCloudInitTemplateBody

type UpdateCloudInitTemplateBody struct {
	Name        string `json:"name,omitempty"`
	NetworkData string `json:"networkData,omitempty"`
	Storage     string `json:"storage,omitempty"`
	UserData    string `json:"userData,omitempty"`
	VendorData  string `json:"vendorData,omitempty"`
}

UpdateCloudInitTemplateBody is the API's CloudInitTemplateServiceUpdateCloudInitTemplateBody object.

type UpdateCloudInitTemplateResponse

type UpdateCloudInitTemplateResponse struct {
	CloudInitTemplate *CloudInitTemplate `json:"cloudInitTemplate,omitempty"`
}

UpdateCloudInitTemplateResponse is the API's v1UpdateCloudInitTemplateResponse object.

type UpdateCloudInitUserDataBody

type UpdateCloudInitUserDataBody struct {
	Description string `json:"description,omitempty"`
	Name        string `json:"name,omitempty"`
	UserData    string `json:"userData,omitempty"`
}

UpdateCloudInitUserDataBody is the API's CloudInitUserDataServiceUpdateCloudInitUserDataBody object.

type UpdateConnectTaxSettingsRequest

type UpdateConnectTaxSettingsRequest struct {
	DefaultTaxBehavior string `json:"defaultTaxBehavior,omitempty"`
	DefaultTaxCode     string `json:"defaultTaxCode,omitempty"`
	// Structured address for Connect tax head office.
	HeadOffice *ConnectTaxAddress `json:"headOffice,omitempty"`
}

UpdateConnectTaxSettingsRequest is the API's v1UpdateConnectTaxSettingsRequest object.

type UpdateConnectTaxSettingsResponse

type UpdateConnectTaxSettingsResponse struct {
	Settings *ConnectTaxSettingsDetails `json:"settings,omitempty"`
}

UpdateConnectTaxSettingsResponse is the API's v1UpdateConnectTaxSettingsResponse object.

type UpdateCouponBody

type UpdateCouponBody struct {
	AcknowledgeHighRisk *bool `json:"acknowledgeHighRisk,omitempty"`
	// Adds amounts for currencies the coupon does not list yet. Existing amounts are read-only.
	AddAmountsOff  map[string]string `json:"addAmountsOff,omitempty"`
	Description    string            `json:"description,omitempty"`
	MaxRedemptions int32             `json:"maxRedemptions,omitempty"`
	Name           string            `json:"name,omitempty"`
	NoExpiry       *bool             `json:"noExpiry,omitempty"`
	ValidUntil     *time.Time        `json:"validUntil,omitempty"`
}

UpdateCouponBody is the API's CouponServiceUpdateCouponBody object.

type UpdateCouponCodeBody

type UpdateCouponCodeBody struct {
	Active         *bool      `json:"active,omitempty"`
	Campaign       string     `json:"campaign,omitempty"`
	Channel        string     `json:"channel,omitempty"`
	MaxRedemptions int32      `json:"maxRedemptions,omitempty"`
	NoExpiry       *bool      `json:"noExpiry,omitempty"`
	ValidUntil     *time.Time `json:"validUntil,omitempty"`
}

UpdateCouponCodeBody is the API's CouponServiceUpdateCouponCodeBody object.

type UpdateDockerImageBody

type UpdateDockerImageBody struct {
	DockerImage string `json:"dockerImage,omitempty"`
}

UpdateDockerImageBody is the API's GameServerServiceUpdateDockerImageBody object.

type UpdateEnvironmentVariableBody

type UpdateEnvironmentVariableBody struct {
	Value string `json:"value,omitempty"`
}

UpdateEnvironmentVariableBody is the API's EnvironmentVariableServiceUpdateEnvironmentVariableBody object.

type UpdateFirewallAddressGroupBody

type UpdateFirewallAddressGroupBody struct {
	// FirewallAddressGroupInput is the client-provided payload for create/update.
	// Clients must not provide id/timestamps (those are server-controlled).
	Group *FirewallAddressGroupInput `json:"group,omitempty"`
}

UpdateFirewallAddressGroupBody is the API's FirewallServiceUpdateFirewallAddressGroupBody object.

type UpdateFirewallRuleBody

type UpdateFirewallRuleBody struct {
	// FirewallRuleInput is the client-provided rule payload for create/update.
	// Clients must not provide id/ruleset_id/timestamps (those are server-controlled).
	Rule *FirewallRuleInput `json:"rule,omitempty"`
}

UpdateFirewallRuleBody is the API's FirewallServiceUpdateFirewallRuleBody object.

type UpdateFirewallRuleSetBody

type UpdateFirewallRuleSetBody struct {
	Ruleset *FirewallRuleSetInput `json:"ruleset,omitempty"`
}

UpdateFirewallRuleSetBody is the API's FirewallServiceUpdateFirewallRuleSetBody object.

type UpdateGameServerTemplateBody

type UpdateGameServerTemplateBody struct {
	Confirmed       *bool  `json:"confirmed,omitempty"`
	DockerImage     string `json:"dockerImage,omitempty"`
	EggID           int32  `json:"eggId,omitempty"`
	Hidden          *bool  `json:"hidden,omitempty"`
	Icon            string `json:"icon,omitempty"`
	NestID          int32  `json:"nestId,omitempty"`
	OrderingEnabled *bool  `json:"orderingEnabled,omitempty"`
	Startup         string `json:"startup,omitempty"`
	VersionVariable string `json:"versionVariable,omitempty"`
}

UpdateGameServerTemplateBody is the API's GameServerTemplateServiceUpdateGameServerTemplateBody object.

type UpdateGroupBody

type UpdateGroupBody struct {
	Description string   `json:"description,omitempty"`
	GroupRoles  []string `json:"groupRoles,omitempty"`
	Name        string   `json:"name,omitempty"`
}

UpdateGroupBody is the API's GroupServiceUpdateGroupBody object.

type UpdateGroupResponse

type UpdateGroupResponse struct {
	Group *Group `json:"group,omitempty"`
}

UpdateGroupResponse is the API's v1UpdateGroupResponse object.

type UpdateInviteRequest

type UpdateInviteRequest struct {
	GroupID  string `json:"groupId,omitempty"`
	InviteID string `json:"inviteId,omitempty"`
	RoleID   string `json:"roleId,omitempty"`
}

UpdateInviteRequest is the API's v1UpdateInviteRequest object.

type UpdateMyStorefrontRequest

type UpdateMyStorefrontRequest struct {
	AboutMarkdown        string          `json:"aboutMarkdown,omitempty"`
	CoverImageURL        string          `json:"coverImageUrl,omitempty"`
	Faqs                 []StorefrontFaq `json:"faqs,omitempty"`
	FeaturedPlanIDs      []string        `json:"featuredPlanIds,omitempty"`
	HighlightCustom      string          `json:"highlightCustom,omitempty"`
	HighlightCustomLines []string        `json:"highlightCustomLines,omitempty"`
	HighlightKeys        []string        `json:"highlightKeys,omitempty"`
	LogoImageURL         string          `json:"logoImageUrl,omitempty"`
	ProposedSlug         string          `json:"proposedSlug,omitempty"`
	Tagline              string          `json:"tagline,omitempty"`
}

UpdateMyStorefrontRequest is the API's v1UpdateMyStorefrontRequest object.

type UpdateNetworkBody

type UpdateNetworkBody struct {
	Description string   `json:"description,omitempty"`
	DNSServers  []string `json:"dnsServers,omitempty"`
	// First 3 octets for MAC allocation within this network. Empty = leave unchanged on update.
	MacAddressPrefix string `json:"macAddressPrefix,omitempty"`
	Name             string `json:"name,omitempty"`
}

UpdateNetworkBody is the API's IPAMServiceUpdateNetworkBody object.

type UpdateNetworkResponse

type UpdateNetworkResponse struct {
	Network *Network `json:"network,omitempty"`
}

UpdateNetworkResponse is the API's v1UpdateNetworkResponse object.

type UpdateNodeBody

type UpdateNodeBody struct {
	// Proxmox vzdump --compress (must not be UNSPECIFIED on create/update node).
	BackupStorageCompression BackupStorageCompression `json:"backupStorageCompression,omitempty"`
	BackupStorageDestination string                   `json:"backupStorageDestination,omitempty"`
	// Compute product hosted by a node. Exclusive: a node is shared XOR dedicated
	// (docs/README-DEDICATED-CPU-CORES.md, design decision D1).
	//
	//  - NODE_COMPUTE_TYPE_SHARED: Shared vCPU hosting (CPU oversubscription allowed). Default.
	//  - NODE_COMPUTE_TYPE_DEDICATED: Dedicated pinned CPU cores (no CPU overallocation).
	ComputeType               NodeComputeType `json:"computeType,omitempty"`
	CPUOverallocatePercent    int32           `json:"cpuOverallocatePercent,omitempty"`
	MaintenanceMode           *bool           `json:"maintenanceMode,omitempty"`
	MemoryOverallocatePercent int32           `json:"memoryOverallocatePercent,omitempty"`
	Metadata                  map[string]any  `json:"metadata,omitempty"`
	NetworkBridge             string          `json:"networkBridge,omitempty"`
	NetworkModel              string          `json:"networkModel,omitempty"`
	NetworkName               string          `json:"networkName,omitempty"`
	// Omit to leave unchanged; 0 = untagged.
	NetworkVlanID              int32  `json:"networkVlanId,omitempty"`
	PanelNodeID                int32  `json:"panelNodeId,omitempty"`
	PterodactylLocationID      int32  `json:"pterodactylLocationId,omitempty"`
	RegionID                   string `json:"regionId,omitempty"`
	StorageOverallocatePercent int32  `json:"storageOverallocatePercent,omitempty"`
	// Topology re-paste for dedicated nodes. Rejected if it would orphan a
	// currently allocated CPU. Empty = leave stored topology unchanged.
	TopologyPaste        string `json:"topologyPaste,omitempty"`
	VMStorageDestination string `json:"vmStorageDestination,omitempty"`
	// Proxmox VMID seed. Zero means unchanged. Pterodactyl, VirtFusion, and
	// SolusVM node edits omit it; the range applies only when a seed is sent.
	VmidSeed      int32  `json:"vmidSeed,omitempty"`
	WingsNodeName string `json:"wingsNodeName,omitempty"`
}

UpdateNodeBody is the API's NodeServiceUpdateNodeBody object.

type UpdateNodePlacementPolicyRequest

type UpdateNodePlacementPolicyRequest struct {
	DefaultStrategy NodePlacementStrategy         `json:"defaultStrategy,omitempty"`
	RegionOverrides []NodePlacementRegionOverride `json:"regionOverrides,omitempty"`
}

UpdateNodePlacementPolicyRequest is the API's v1UpdateNodePlacementPolicyRequest object.

type UpdateNodePlacementPolicyResponse

type UpdateNodePlacementPolicyResponse struct {
	Policy *NodePlacementPolicy `json:"policy,omitempty"`
}

UpdateNodePlacementPolicyResponse is the API's v1UpdateNodePlacementPolicyResponse object.

type UpdateNodeResponse

type UpdateNodeResponse struct {
	Node *Node `json:"node,omitempty"`
}

UpdateNodeResponse is the API's v1UpdateNodeResponse object.

type UpdateNotificationSettingResponse

type UpdateNotificationSettingResponse struct {
	NotificationSetting *NotificationSetting `json:"notificationSetting,omitempty"`
}

UpdateNotificationSettingResponse is the API's v1UpdateNotificationSettingResponse object.

type UpdateNotificationTemplateResponse

type UpdateNotificationTemplateResponse struct {
	NotificationTemplate *NotificationTemplate `json:"notificationTemplate,omitempty"`
}

UpdateNotificationTemplateResponse is the API's v1UpdateNotificationTemplateResponse object.

type UpdateOrganizationRequest

type UpdateOrganizationRequest struct {
	AccountHolderName string `json:"accountHolderName,omitempty"`
	Address           string `json:"address,omitempty"`
	AddressCity       string `json:"addressCity,omitempty"`
	// ISO 3166-1 alpha-2 (e.g. US, DE).
	AddressCountry        string `json:"addressCountry,omitempty"`
	AddressLine1          string `json:"addressLine1,omitempty"`
	AddressLine2          string `json:"addressLine2,omitempty"`
	AddressPostcode       string `json:"addressPostcode,omitempty"`
	AddressRegion         string `json:"addressRegion,omitempty"`
	ASN                   int64  `json:"asn,omitempty,string"`
	BillingEmail          string `json:"billingEmail,omitempty"`
	DDoSProvider          string `json:"ddosProvider,omitempty"`
	Description           string `json:"description,omitempty"`
	EnforceMFA            *bool  `json:"enforceMfa,omitempty"`
	EnforceSSO            *bool  `json:"enforceSso,omitempty"`
	EnforceVerifiedDomain *bool  `json:"enforceVerifiedDomain,omitempty"`
	Name                  string `json:"name,omitempty"`
	ProviderLogoURL       string `json:"providerLogoUrl,omitempty"`
	ProviderWebsiteURL    string `json:"providerWebsiteUrl,omitempty"`
	// JSON array of up to 4 objects: [{"platform":"x","url":"https://..."}, ...].
	// platform must be one of: x, linkedin, instagram, facebook (Facebook/Meta).
	SocialAccountsJSON string `json:"socialAccountsJson,omitempty"`
	SupportEmail       string `json:"supportEmail,omitempty"`
	SupportPhone       string `json:"supportPhone,omitempty"`
	TaxID              string `json:"taxId,omitempty"`
	VATID              string `json:"vatId,omitempty"`
}

UpdateOrganizationRequest is the API's v1UpdateOrganizationRequest object.

type UpdateOrganizationResponse

type UpdateOrganizationResponse struct {
	Organization *Organization `json:"organization,omitempty"`
}

UpdateOrganizationResponse is the API's v1UpdateOrganizationResponse object.

type UpdatePayoutConfigurationRequest

type UpdatePayoutConfigurationRequest struct {
	Enabled          *bool  `json:"enabled,omitempty"`
	ScheduleTime     string `json:"scheduleTime,omitempty"`
	ScheduleTimezone string `json:"scheduleTimezone,omitempty"`
	// - PAYOUT_SCHEDULE_TYPE_IMMEDIATE: Transfer immediately when payment succeeds
	//  - PAYOUT_SCHEDULE_TYPE_DAILY: Transfer once per day at specified time
	//  - PAYOUT_SCHEDULE_TYPE_WEEKLY: Transfer once per week at specified time
	//  - PAYOUT_SCHEDULE_TYPE_MONTHLY: Transfer once per month at specified time
	ScheduleType PayoutScheduleType `json:"scheduleType,omitempty"`
}

UpdatePayoutConfigurationRequest is the API's v1UpdatePayoutConfigurationRequest object.

type UpdatePlanBody

type UpdatePlanBody struct {
	AddonPriceOverrides []AddonPriceOverride `json:"addonPriceOverrides,omitempty"`
	// Plan CPU/network scheduling overrides written into metadata.specifications.
	// Only affects VMs created after the update (VMs snapshot plan values at create).
	CPULimit int32  `json:"cpuLimit,omitempty"`
	CPUUnits int32  `json:"cpuUnits,omitempty"`
	Currency string `json:"currency,omitempty"`
	// Plan metadata. VirtFusion package_id lives under metadata.virtfusion.package_id.
	Metadata            map[string]any `json:"metadata,omitempty"`
	NetworkRateLimitMbs float64        `json:"networkRateLimitMbs,omitempty"`
	// When non-empty, replaces the plan's assigned nodes (same rules as create).
	// Omitted / empty leaves existing assignments unchanged.
	NodeIDs []string `json:"nodeIds,omitempty"`
	// Provider choice when client prepaid credits are exhausted.
	// Values: "suspend" (default), "continue_with_dunning".
	OnCreditExhaustion string              `json:"onCreditExhaustion,omitempty"`
	PlanPrices         []PlanPriceOverride `json:"planPrices,omitempty"`
	// Region for this plan offer (optional on update).
	RegionID string `json:"regionId,omitempty"`
}

UpdatePlanBody is the API's ProviderPlanServiceUpdatePlanBody object.

type UpdatePlatformBody

type UpdatePlatformBody struct {
	// VirtFusion/SolusVM only. Unset means leave unchanged. True is rejected for Proxmox.
	AssignCustomerIPv6 *bool `json:"assignCustomerIpv6,omitempty"`
	// Immutable after create. Empty or equal to the stored URL is ignored;
	// any other value is rejected.
	EndpointURL string `json:"endpointUrl,omitempty"`
	Name        string `json:"name,omitempty"`
}

UpdatePlatformBody is the API's PlatformServiceUpdatePlatformBody object.

type UpdatePlatformResponse

type UpdatePlatformResponse struct {
	Platform *Platform `json:"platform,omitempty"`
}

UpdatePlatformResponse is the API's v1UpdatePlatformResponse object.

type UpdatePrefixBody

type UpdatePrefixBody struct {
	AllocationStrategy AllocationStrategy `json:"allocationStrategy,omitempty"`
	Description        string             `json:"description,omitempty"`
	Gateway            string             `json:"gateway,omitempty"`
	NetworkID          string             `json:"networkId,omitempty"`
	ReservedIPs        []string           `json:"reservedIps,omitempty"`
}

UpdatePrefixBody is the API's IPAMServiceUpdatePrefixBody object.

type UpdatePrefixResponse

type UpdatePrefixResponse struct {
	Prefix *Prefix `json:"prefix,omitempty"`
}

UpdatePrefixResponse is the API's v1UpdatePrefixResponse object.

type UpdateProviderReviewReplyBody

type UpdateProviderReviewReplyBody struct {
	ReplyMessage string `json:"replyMessage,omitempty"`
}

UpdateProviderReviewReplyBody: Update existing provider reply text.

type UpdateProviderReviewReplyResponse

type UpdateProviderReviewReplyResponse struct {
	// Provider UI: list and respond to client reviews (no VM identifiers: anonymous to provider).
	Review *ProviderReviewListItem `json:"review,omitempty"`
}

UpdateProviderReviewReplyResponse is the API's v1UpdateProviderReviewReplyResponse object.

type UpdateProviderTicketNotificationPolicyRequest

type UpdateProviderTicketNotificationPolicyRequest struct {
	Policy *ProviderTicketNotificationPolicy `json:"policy,omitempty"`
}

UpdateProviderTicketNotificationPolicyRequest is the API's v1UpdateProviderTicketNotificationPolicyRequest object.

type UpdateRoadmapFeatureRequestCommentBody

type UpdateRoadmapFeatureRequestCommentBody struct {
	Body string `json:"body,omitempty"`
}

UpdateRoadmapFeatureRequestCommentBody is the API's RoadmapServiceUpdateRoadmapFeatureRequestCommentBody object.

type UpdateRoadmapFeatureRequestCommentResponse

type UpdateRoadmapFeatureRequestCommentResponse struct {
	Comment *RoadmapFeatureRequestComment `json:"comment,omitempty"`
}

UpdateRoadmapFeatureRequestCommentResponse is the API's v1UpdateRoadmapFeatureRequestCommentResponse object.

type UpdateRoleBody

type UpdateRoleBody struct {
	Description string   `json:"description,omitempty"`
	GroupIDs    []string `json:"groupIds,omitempty"`
	Name        string   `json:"name,omitempty"`
	Permissions []string `json:"permissions,omitempty"`
}

UpdateRoleBody is the API's RoleServiceUpdateRoleBody object.

type UpdateRoleResponse

type UpdateRoleResponse struct {
	Role *Role `json:"role,omitempty"`
}

UpdateRoleResponse is the API's v1UpdateRoleResponse object.

type UpdateSMTPOutboundProviderPolicyRequest

type UpdateSMTPOutboundProviderPolicyRequest struct {
	// Must accept false (allow-by-default). Proto3 required on bool rejects the
	// zero value because there is no field presence without `optional`.
	BlockByDefault *bool `json:"blockByDefault,omitempty"`
}

UpdateSMTPOutboundProviderPolicyRequest is the API's v1UpdateSmtpOutboundProviderPolicyRequest object.

type UpdateScheduleBody

type UpdateScheduleBody struct {
	DayOfMonth     string `json:"dayOfMonth,omitempty"`
	DayOfWeek      string `json:"dayOfWeek,omitempty"`
	Hour           string `json:"hour,omitempty"`
	IsActive       *bool  `json:"isActive,omitempty"`
	Minute         string `json:"minute,omitempty"`
	Month          string `json:"month,omitempty"`
	Name           string `json:"name,omitempty"`
	OnlyWhenOnline *bool  `json:"onlyWhenOnline,omitempty"`
}

UpdateScheduleBody is the API's GameServerServiceUpdateScheduleBody object.

type UpdateScheduleTaskBody

type UpdateScheduleTaskBody struct {
	Action            string `json:"action,omitempty"`
	ContinueOnFailure *bool  `json:"continueOnFailure,omitempty"`
	Payload           string `json:"payload,omitempty"`
	// Omitted leaves the task where it is. Set it to move the task in the run order.
	SequenceID int32 `json:"sequenceId,omitempty"`
	TimeOffset int32 `json:"timeOffset,omitempty"`
}

UpdateScheduleTaskBody is the API's GameServerServiceUpdateScheduleTaskBody object.

type UpdateSecretBody

type UpdateSecretBody struct {
	Value string `json:"value,omitempty"`
}

UpdateSecretBody is the API's SecretServiceUpdateSecretBody object.

type UpdateServiceAccountBody

type UpdateServiceAccountBody struct {
	AllowedIPs  []string `json:"allowedIps,omitempty"`
	Description string   `json:"description,omitempty"`
	IsActive    *bool    `json:"isActive,omitempty"`
	Name        string   `json:"name,omitempty"`
}

UpdateServiceAccountBody is the API's ServiceAccountServiceUpdateServiceAccountBody object.

type UpdateStartupVariableBody

type UpdateStartupVariableBody struct {
	Key   string `json:"key,omitempty"`
	Value string `json:"value,omitempty"`
}

UpdateStartupVariableBody is the API's GameServerServiceUpdateStartupVariableBody object.

type UpdateTicketTemplateBody

type UpdateTicketTemplateBody struct {
	TicketTemplate *TicketTemplateInput `json:"ticketTemplate,omitempty"`
}

UpdateTicketTemplateBody is the API's TicketServiceUpdateTicketTemplateBody object.

type UpdateUserBody

type UpdateUserBody struct {
	AllowOrgInvites *bool    `json:"allowOrgInvites,omitempty"`
	Email           string   `json:"email,omitempty"`
	FirstName       string   `json:"firstName,omitempty"`
	GroupIDs        []string `json:"groupIds,omitempty"`
	LastName        string   `json:"lastName,omitempty"`
	UserRoles       []string `json:"userRoles,omitempty"`
}

UpdateUserBody is the API's UserServiceUpdateUserBody object.

type UpdateUserResponse

type UpdateUserResponse struct {
	User *User `json:"user,omitempty"`
}

UpdateUserResponse is the API's v1UpdateUserResponse object.

type UpdateVMTemplateBody

type UpdateVMTemplateBody struct {
	CloudInitTemplateID string `json:"cloudInitTemplateId,omitempty"`
	// - DISTRO_UBUNTU_22_04: Ubuntu distributions
	//  - DISTRO_FEDORA_43: Fedora distributions
	//  - DISTRO_DEBIAN_12: Debian distributions
	//  - DISTRO_CENTOS_9: CentOS distributions
	//  - DISTRO_ROCKY_9: Rocky Linux distributions
	//  - DISTRO_ALMALINUX_9: AlmaLinux distributions
	Distro Distro `json:"distro,omitempty"`
	Name   string `json:"name,omitempty"`
	NodeID string `json:"nodeId,omitempty"`
	// Proxmox cpu= guest CPU model. Empty = leave unchanged on update.
	ProxmoxCPUType string `json:"proxmoxCpuType,omitempty"`
	TemplateID     int32  `json:"templateId,omitempty"`
}

UpdateVMTemplateBody is the API's VMTemplateServiceUpdateVMTemplateBody object.

type UpdateVMTemplateResponse

type UpdateVMTemplateResponse struct {
	VMTemplate *VMTemplate `json:"vmTemplate,omitempty"`
}

UpdateVMTemplateResponse is the API's v1UpdateVMTemplateResponse object.

type UpdateVirtualMachineBody

type UpdateVirtualMachineBody struct {
	AddTags    []string `json:"addTags,omitempty"`
	RemoveTags []string `json:"removeTags,omitempty"`
}

UpdateVirtualMachineBody: UpdateVirtualMachineRequest is used to update virtual machine tags. Only tags can be modified through this endpoint.

type UpdateVirtualMachineSMTPOutboundPolicyBody

type UpdateVirtualMachineSMTPOutboundPolicyBody struct {
	Action SMTPOutboundVMAction `json:"action,omitempty"`
}

UpdateVirtualMachineSMTPOutboundPolicyBody is the API's ProviderNetworkServiceUpdateVirtualMachineSmtpOutboundPolicyBody object.

type UploadFileBody

type UploadFileBody struct {
	Content   []byte `json:"content,omitempty"`
	Directory string `json:"directory,omitempty"`
	Filename  string `json:"filename,omitempty"`
}

UploadFileBody is the API's GameServerServiceUploadFileBody object.

type UploadInboundPeeringConfigBody

type UploadInboundPeeringConfigBody struct {
	// Provider-generated peering-user kubeconfig YAML for neo as consumer.
	Kubeconfig string `json:"kubeconfig,omitempty"`
}

UploadInboundPeeringConfigBody is the API's AgentServiceUploadInboundPeeringConfigBody object.

type UploadInboundPeeringConfigResponse

type UploadInboundPeeringConfigResponse struct {
	InboundPeeringState InboundPeeringState `json:"inboundPeeringState,omitempty"`
}

UploadInboundPeeringConfigResponse is the API's v1UploadInboundPeeringConfigResponse object.

type UploadTicketAttachmentContentRequest

type UploadTicketAttachmentContentRequest struct {
	FileContent []byte `json:"fileContent,omitempty"`
	UploadToken string `json:"uploadToken,omitempty"`
}

UploadTicketAttachmentContentRequest is the API's v1UploadTicketAttachmentContentRequest object.

type UpsertDNSGeoRecordBody

type UpsertDNSGeoRecordBody struct {
	Record *DNSGeoRecord `json:"record,omitempty"`
}

UpsertDNSGeoRecordBody is the API's DnsRecordServiceUpsertDnsGeoRecordBody object.

type UpsertDNSRecordBody

type UpsertDNSRecordBody struct {
	Record *DNSRecord `json:"record,omitempty"`
}

UpsertDNSRecordBody is the API's DnsRecordServiceUpsertDnsRecordBody object.

type UpsertHookScriptRequest

type UpsertHookScriptRequest struct {
	Enabled *bool         `json:"enabled,omitempty"`
	Hook    LifecycleHook `json:"hook,omitempty"`
	Script  string        `json:"script,omitempty"`
	// LifecycleHook is the VM operation that triggers a provider hook script.
	Subject HookSubject `json:"subject,omitempty"`
}

UpsertHookScriptRequest is the API's v1UpsertHookScriptRequest object.

type UsageAggregate

type UsageAggregate struct {
	AggregationType    AggregationType `json:"aggregationType,omitempty"`
	BillingPeriodEnd   *time.Time      `json:"billingPeriodEnd,omitempty"`
	BillingPeriodStart *time.Time      `json:"billingPeriodStart,omitempty"`
	FirstTimestamp     *time.Time      `json:"firstTimestamp,omitempty"`
	LastTimestamp      *time.Time      `json:"lastTimestamp,omitempty"`
	MetricCode         string          `json:"metricCode,omitempty"`
	MetricID           string          `json:"metricId,omitempty"`
	MetricName         string          `json:"metricName,omitempty"`
	RecordCount        int32           `json:"recordCount,omitempty"`
	SubscriptionID     string          `json:"subscriptionId,omitempty"`
	// Decimal as string
	TotalQuantity string `json:"totalQuantity,omitempty"`
}

UsageAggregate is the API's v1UsageAggregate object.

type UsageRecord

type UsageRecord struct {
	BillingPeriodEnd   *time.Time `json:"billingPeriodEnd,omitempty"`
	BillingPeriodStart *time.Time `json:"billingPeriodStart,omitempty"`
	ErrorMessage       string     `json:"errorMessage,omitempty"`
	// For deduplication
	EventID       string         `json:"eventId,omitempty"`
	ExternalID    string         `json:"externalId,omitempty"`
	ID            string         `json:"id,omitempty"`
	InvoiceID     string         `json:"invoiceId,omitempty"`
	InvoiceLineID string         `json:"invoiceLineId,omitempty"`
	Metadata      map[string]any `json:"metadata,omitempty"`
	MetricCode    string         `json:"metricCode,omitempty"`
	MetricID      string         `json:"metricId,omitempty"`
	MetricName    string         `json:"metricName,omitempty"`
	ProcessedAt   *time.Time     `json:"processedAt,omitempty"`
	Properties    map[string]any `json:"properties,omitempty"`
	// Stored as string for decimal precision
	Quantity          string            `json:"quantity,omitempty"`
	Status            Protov1Status     `json:"status,omitempty"`
	SubscriptionID    string            `json:"subscriptionId,omitempty"`
	SubscriptionName  string            `json:"subscriptionName,omitempty"`
	Timestamp         *time.Time        `json:"timestamp,omitempty"`
	Timestamps        *Timestamps       `json:"timestamps,omitempty"`
	UsageRecordStatus UsageRecordStatus `json:"usageRecordStatus,omitempty"`
}

UsageRecord is the API's v1UsageRecord object.

type UsageRecordStatus

type UsageRecordStatus string

UsageRecordStatus is an API enum.

const (
	UsageRecordStatusUnspecified UsageRecordStatus = "USAGE_RECORD_STATUS_UNSPECIFIED"
	UsageRecordStatusPending     UsageRecordStatus = "USAGE_RECORD_STATUS_PENDING"
	UsageRecordStatusProcessed   UsageRecordStatus = "USAGE_RECORD_STATUS_PROCESSED"
	UsageRecordStatusBilled      UsageRecordStatus = "USAGE_RECORD_STATUS_BILLED"
	UsageRecordStatusFailed      UsageRecordStatus = "USAGE_RECORD_STATUS_FAILED"
)

Values of UsageRecordStatus.

type UsageReportService

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

UsageReportService calls the NodeRings UsageReportService API.

func (*UsageReportService) BatchRecordUsage

BatchRecordUsage: Batch record multiple usage events (for bulk ingestion)

It calls POST /v1/usage/record:batch.

func (*UsageReportService) GetUsageRecord

func (s *UsageReportService) GetUsageRecord(ctx context.Context, id string) (*GetUsageRecordResponse, error)

GetUsageRecord: Get a specific usage record by ID

It calls GET /v1/usage/records/{id}.

func (*UsageReportService) GetUsageReport

GetUsageReport: Get aggregated usage report for a billing period

It calls GET /v1/usage/report.

func (*UsageReportService) ListUsageRecords

ListUsageRecords: List usage records with filters

It calls GET /v1/usage/records.

func (*UsageReportService) ListUsageRecordsAll

func (s *UsageReportService) ListUsageRecordsAll(ctx context.Context, params *ListUsageRecordsParams) iter.Seq2[UsageRecord, error]

ListUsageRecordsAll returns an iterator over every result of ListUsageRecords, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*UsageReportService) RecordUsage

RecordUsage: Record a single usage event (from Prometheus or other monitoring systems)

It calls POST /v1/usage/record.

type User

type User struct {
	AllowOrgInvites bool           `json:"allowOrgInvites,omitempty"`
	Email           string         `json:"email,omitempty"`
	FirstName       string         `json:"firstName,omitempty"`
	GroupIDs        []string       `json:"groupIds,omitempty"`
	ID              string         `json:"id,omitempty"`
	IsVerified      bool           `json:"isVerified,omitempty"`
	LastName        string         `json:"lastName,omitempty"`
	Metadata        map[string]any `json:"metadata,omitempty"`
	Organization    string         `json:"organization,omitempty"`
	Password        string         `json:"password,omitempty"`
	Status          Protov1Status  `json:"status,omitempty"`
	SubscriptionIDs []string       `json:"subscriptionIds,omitempty"`
	Timestamps      *Timestamps    `json:"timestamps,omitempty"`
	UserRoles       []string       `json:"userRoles,omitempty"`
}

User is the API's v1User object.

type UserDetails

type UserDetails struct {
	FirstName string `json:"firstName,omitempty"`
	LastName  string `json:"lastName,omitempty"`
}

UserDetails: UserDetails contains user information

type UserService

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

UserService calls the NodeRings UserService API.

func (*UserService) ChangePassword

func (s *UserService) ChangePassword(ctx context.Context, body *ChangePasswordRequest) (*SuccessResponse, error)

ChangePassword calls POST /v1/auth/change-password.

func (s *UserService) CompleteSSOLink(ctx context.Context, body *CompleteSSOLinkRequest) (*LoginResponse, error)

CompleteSSOLink calls POST /v1/auth/sso/link.

func (*UserService) DeleteUser

func (s *UserService) DeleteUser(ctx context.Context, id string) (*SuccessResponse, error)

DeleteUser calls DELETE /v1/users/{id}.

func (*UserService) DisableMFA

func (s *UserService) DisableMFA(ctx context.Context, body *DisableMFARequest) (*SuccessResponse, error)

DisableMFA calls POST /v1/auth/mfa/disable.

func (*UserService) EnrollMFATOTP

EnrollMFATOTP calls POST /v1/auth/mfa/enroll.

func (*UserService) ExchangeSSOCode

func (s *UserService) ExchangeSSOCode(ctx context.Context, body *ExchangeSSOCodeRequest) (*LoginResponse, error)

ExchangeSSOCode calls POST /v1/auth/sso/exchange.

func (*UserService) ForgotPassword

func (s *UserService) ForgotPassword(ctx context.Context, body *ForgotPasswordRequest) (*SuccessResponse, error)

ForgotPassword calls POST /v1/auth/forgot-password.

func (*UserService) GetActiveSessions

func (s *UserService) GetActiveSessions(ctx context.Context) (*GetActiveSessionsResponse, error)

GetActiveSessions calls GET /v1/auth/sessions.

func (*UserService) GetMFAStatus

func (s *UserService) GetMFAStatus(ctx context.Context) (*GetMFAStatusResponse, error)

GetMFAStatus calls GET /v1/auth/mfa/status.

func (*UserService) GetUser

func (s *UserService) GetUser(ctx context.Context, id string) (*GetUserResponse, error)

GetUser calls GET /v1/users/{id}.

func (*UserService) ListLinkedIdentities

func (s *UserService) ListLinkedIdentities(ctx context.Context) (*ListLinkedIdentitiesResponse, error)

ListLinkedIdentities calls GET /v1/auth/identities.

func (*UserService) ListUsers

func (s *UserService) ListUsers(ctx context.Context, params *ListUsersParams) (*ListUsersResponse, error)

ListUsers calls GET /v1/users.

func (*UserService) ListUsersAll

func (s *UserService) ListUsersAll(ctx context.Context, params *ListUsersParams) iter.Seq2[User, error]

ListUsersAll returns an iterator over every result of ListUsers, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*UserService) Login

func (s *UserService) Login(ctx context.Context, body *LoginRequest) (*LoginResponse, error)

Login calls POST /v1/auth/login.

func (*UserService) LoginMFAVerify

func (s *UserService) LoginMFAVerify(ctx context.Context, body *LoginMFAVerifyRequest) (*LoginResponse, error)

LoginMFAVerify calls POST /v1/auth/login/mfa.

func (*UserService) Logout

func (s *UserService) Logout(ctx context.Context, body *LogoutRequest) (*SuccessResponse, error)

Logout calls POST /v1/auth/logout.

func (*UserService) RegenerateMFABackupCodes

RegenerateMFABackupCodes calls POST /v1/auth/mfa/backup-codes/regenerate.

func (*UserService) RegisterUser

func (s *UserService) RegisterUser(ctx context.Context, body *RegisterUserRequest) (*SuccessResponse, error)

RegisterUser calls POST /v1/auth/register.

func (*UserService) ResendVerificationEmail

func (s *UserService) ResendVerificationEmail(ctx context.Context, body *ResendVerificationEmailRequest) (*SuccessResponse, error)

ResendVerificationEmail calls POST /v1/auth/resend-verification-email.

func (*UserService) ResetPassword

func (s *UserService) ResetPassword(ctx context.Context, body *ResetPasswordRequest) (*SuccessResponse, error)

ResetPassword calls POST /v1/auth/reset-password.

func (*UserService) SetPassword

func (s *UserService) SetPassword(ctx context.Context, body *SetPasswordRequest) (*SuccessResponse, error)

SetPassword calls POST /v1/auth/set-password.

func (*UserService) UnlinkIdentity

func (s *UserService) UnlinkIdentity(ctx context.Context, provider string) (*SuccessResponse, error)

UnlinkIdentity calls DELETE /v1/auth/identities/{provider}.

func (*UserService) UpdateUser

func (s *UserService) UpdateUser(ctx context.Context, id string, body *UpdateUserBody) (*UpdateUserResponse, error)

UpdateUser calls PATCH /v1/users/{id}.

func (*UserService) VerifyEmail

func (s *UserService) VerifyEmail(ctx context.Context, params *VerifyEmailParams) (*SuccessResponse, error)

VerifyEmail calls GET /v1/auth/verify-email.

func (*UserService) VerifyMFAEnrollment

VerifyMFAEnrollment calls POST /v1/auth/mfa/verify-enrollment.

type UserSummary

type UserSummary struct {
	Email     string `json:"email,omitempty"`
	FirstName string `json:"firstName,omitempty"`
	ID        string `json:"id,omitempty"`
	LastName  string `json:"lastName,omitempty"`
}

UserSummary is the API's v1UserSummary object.

type VMTemplate

type VMTemplate struct {
	CloudInitTemplateID   string `json:"cloudInitTemplateId,omitempty"`
	CloudInitTemplateName string `json:"cloudInitTemplateName,omitempty"`
	// - DISTRO_UBUNTU_22_04: Ubuntu distributions
	//  - DISTRO_FEDORA_43: Fedora distributions
	//  - DISTRO_DEBIAN_12: Debian distributions
	//  - DISTRO_CENTOS_9: CentOS distributions
	//  - DISTRO_ROCKY_9: Rocky Linux distributions
	//  - DISTRO_ALMALINUX_9: AlmaLinux distributions
	Distro       Distro         `json:"distro,omitempty"`
	ID           string         `json:"id,omitempty"`
	Metadata     map[string]any `json:"metadata,omitempty"`
	Name         string         `json:"name,omitempty"`
	NodeID       string         `json:"nodeId,omitempty"`
	NodeName     string         `json:"nodeName,omitempty"`
	PlatformName string         `json:"platformName,omitempty"`
	// Proxmox cpu= guest CPU model for VMs cloned from this template. Default: host.
	ProxmoxCPUType string        `json:"proxmoxCpuType,omitempty"`
	Status         Protov1Status `json:"status,omitempty"`
	TemplateID     int32         `json:"templateId,omitempty"`
	Timestamps     *Timestamps   `json:"timestamps,omitempty"`
}

VMTemplate is the API's v1VMTemplate object.

type VMTemplateService

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

VMTemplateService calls the NodeRings VMTemplateService API.

func (*VMTemplateService) CreateVMTemplate

func (s *VMTemplateService) CreateVMTemplate(ctx context.Context, body *CreateVMTemplateRequest) (*SuccessResponse, error)

CreateVMTemplate calls POST /v1/vmtemplate.

func (*VMTemplateService) DeleteVMTemplate

func (s *VMTemplateService) DeleteVMTemplate(ctx context.Context, id string) (*SuccessResponse, error)

DeleteVMTemplate calls DELETE /v1/vmtemplate/{id}.

func (*VMTemplateService) GetVMTemplate

func (s *VMTemplateService) GetVMTemplate(ctx context.Context, id string) (*GetVMTemplateResponse, error)

GetVMTemplate calls GET /v1/vmtemplate/{id}.

func (*VMTemplateService) ListVMTemplates

ListVMTemplates calls GET /v1/vmtemplates.

func (*VMTemplateService) ListVMTemplatesAll

func (s *VMTemplateService) ListVMTemplatesAll(ctx context.Context, params *ListVMTemplatesParams) iter.Seq2[VMTemplate, error]

ListVMTemplatesAll returns an iterator over every result of ListVMTemplates, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*VMTemplateService) UpdateVMTemplate

UpdateVMTemplate calls PATCH /v1/vmtemplate/{id}.

type ValidateNodeTopologyRequest

type ValidateNodeTopologyRequest struct {
	// Optional node to cross-check the paste against (edit flow). When set, the
	// parsed totals are compared with the node's Proxmox-reported CPU inventory
	// (metadata.proxmox_cpu) and mismatches are returned as warnings.
	NodeID string `json:"nodeId,omitempty"`
	// Raw topology paste to validate without persisting.
	TopologyPaste string `json:"topologyPaste,omitempty"`
}

ValidateNodeTopologyRequest is the API's v1ValidateNodeTopologyRequest object.

type ValidateNodeTopologyResponse

type ValidateNodeTopologyResponse struct {
	// Parse/validation error when valid is false.
	Error       string `json:"error,omitempty"`
	LogicalCPUs int32  `json:"logicalCpus,omitempty"`
	ModelName   string `json:"modelName,omitempty"`
	NumaNodes   int32  `json:"numaNodes,omitempty"`
	// Per-NUMA memory in MB, indexed by NUMA node id order.
	NumaSummary    []NodeCPUMapNuma              `json:"numaSummary,omitempty"`
	PhysicalCores  int32                         `json:"physicalCores,omitempty"`
	SmtEnabled     bool                          `json:"smtEnabled,omitempty"`
	Sockets        int32                         `json:"sockets,omitempty"`
	ThreadsPerCore int32                         `json:"threadsPerCore,omitempty"`
	Valid          bool                          `json:"valid,omitempty"`
	Warnings       []ValidateNodeTopologyWarning `json:"warnings,omitempty"`
}

ValidateNodeTopologyResponse is the API's v1ValidateNodeTopologyResponse object.

type ValidateNodeTopologyWarning

type ValidateNodeTopologyWarning struct {
	Code    string `json:"code,omitempty"`
	Message string `json:"message,omitempty"`
}

ValidateNodeTopologyWarning is the API's v1ValidateNodeTopologyWarning object.

type VerificationType

type VerificationType string

VerificationType is an API enum.

const (
	VerificationTypeUnspecified VerificationType = "VERIFICATION_TYPE_UNSPECIFIED"
	VerificationTypeDNS         VerificationType = "VERIFICATION_TYPE_DNS"
	VerificationTypeHTTPS       VerificationType = "VERIFICATION_TYPE_HTTPS"
)

Values of VerificationType.

type VerifyEmailParams

type VerifyEmailParams struct {
	UserID string
	Code   string
}

VerifyEmailParams are the query parameters of UserService.VerifyEmail.

type VerifyMFAEnrollmentRequest

type VerifyMFAEnrollmentRequest struct {
	Code string `json:"code,omitempty"`
}

VerifyMFAEnrollmentRequest is the API's v1VerifyMfaEnrollmentRequest object.

type VerifyMFAEnrollmentResponse

type VerifyMFAEnrollmentResponse struct {
	BackupCodes []string `json:"backupCodes,omitempty"`
}

VerifyMFAEnrollmentResponse is the API's v1VerifyMfaEnrollmentResponse object.

type VirtualMachine

type VirtualMachine struct {
	// Display name of the active backup addon (empty when has_active_backup_subscription is false).
	//
	// Read-only: set by the API.
	ActiveBackupSubscriptionName string `json:"activeBackupSubscriptionName,omitempty"`
	// Extra IPv4 addresses purchased via the ADDITIONAL-IP addon (same prefix as primary).
	//
	// Read-only: set by the API.
	AdditionalIPv4 []AdditionalIPAddress `json:"additionalIpv4,omitempty"`
	// Read-only: set by the API.
	AddonSubscriptions []AddonSubscription `json:"addonSubscriptions,omitempty"`
	// VirtualMachineBandwidthQuota summarizes plan bandwidth allowance and metered usage for graphs/billing UX.
	// Shared by both bandwidth_egress and bandwidth_ingress on VirtualMachine.
	BandwidthEgress *VirtualMachineBandwidthQuota `json:"bandwidthEgress,omitempty"`
	// VirtualMachineBandwidthQuota summarizes plan bandwidth allowance and metered usage for graphs/billing UX.
	// Shared by both bandwidth_egress and bandwidth_ingress on VirtualMachine.
	BandwidthIngress *VirtualMachineBandwidthQuota `json:"bandwidthIngress,omitempty"`
	// Features that hypervisor supports (same strings as marketplace ProviderInfo).
	//
	// Read-only: set by the API.
	Capabilities []string `json:"capabilities,omitempty"`
	// Who placed a compliance hold or purchase block.
	ComplianceActor ComplianceActor `json:"complianceActor,omitempty"`
	// True when the VM is seized for fraud, abuse, copyright, or related reasons.
	//
	// Read-only: set by the API.
	ComplianceHeld bool `json:"complianceHeld,omitempty"`
	// Read-only: set by the API.
	ComplianceHeldAt *time.Time `json:"complianceHeldAt,omitempty"`
	// Read-only: set by the API.
	ComplianceMessage string `json:"complianceMessage,omitempty"`
	// Why a VM or purchase was seized/blocked.
	ComplianceReason ComplianceReason `json:"complianceReason,omitempty"`
	// The number of CPU cores allocated to the virtual machine.
	CPU      int32    `json:"cpu,omitempty"`
	CrStatus CrStatus `json:"crStatus,omitempty"`
	// The creation timestamp of the virtual machine.
	//
	// Read-only: set by the API.
	CreateTime *time.Time `json:"createTime,omitempty"`
	// - DISTRO_UBUNTU_22_04: Ubuntu distributions
	//  - DISTRO_FEDORA_43: Fedora distributions
	//  - DISTRO_DEBIAN_12: Debian distributions
	//  - DISTRO_CENTOS_9: CentOS distributions
	//  - DISTRO_ROCKY_9: Rocky Linux distributions
	//  - DISTRO_ALMALINUX_9: AlmaLinux distributions
	Distro Distro `json:"distro,omitempty"`
	// Firewall ruleset attached to this VM (contains both ingress and egress rules).
	// Managed via attach/detach firewall endpoints.
	//
	// Read-only: set by the API.
	FirewallRulesetID string `json:"firewallRulesetId,omitempty"`
	// True when this VM has an active backup-class addon subscription (derived from subscription add-ons).
	//
	// Read-only: set by the API.
	HasActiveBackupSubscription bool `json:"hasActiveBackupSubscription,omitempty"`
	// The name of the virtual machine.
	Hostname string `json:"hostname,omitempty"`
	// The unique identifier for the virtual machine. This is a read-only field.
	//
	// Read-only: set by the API.
	ID string `json:"id,omitempty"`
	// Family key used for icons under /icons/instant-apps/{family}.svg (e.g. portainer).
	//
	// Read-only: set by the API.
	InstantAppFamily string `json:"instantAppFamily,omitempty"`
	// Optional override; when empty, clients fall back to the family icon path.
	//
	// Read-only: set by the API.
	InstantAppIconURL string `json:"instantAppIconUrl,omitempty"`
	// Platform Instant App used when this VM was created/reinstalled (empty when OS-only).
	//
	// Read-only: set by the API.
	InstantAppID string `json:"instantAppId,omitempty"`
	// Read-only: set by the API.
	InstantAppName string `json:"instantAppName,omitempty"`
	// Read-only: set by the API.
	InstantAppSlug string `json:"instantAppSlug,omitempty"`
	// Read-only: set by the API.
	InstantAppVersion string `json:"instantAppVersion,omitempty"`
	// Primary IPv4 from active IPAM allocations (when available).
	//
	// Read-only: set by the API.
	IPv4 string `json:"ipv4,omitempty"`
	// Primary IPv6 from active IPAM allocations (when available).
	//
	// Read-only: set by the API.
	IPv6 string `json:"ipv6,omitempty"`
	// The amount of memory in MB allocated to the virtual machine.
	Memory          int32           `json:"memory,omitempty"`
	OperationStatus OperationStatus `json:"operationStatus,omitempty"`
	PlanBillingType BillingType     `json:"planBillingType,omitempty"`
	// Marketplace plan code for this VM's subscription (e.g. "DC-CPU-4C-4G-160").
	//
	// Read-only: set by the API.
	PlanCode string `json:"planCode,omitempty"`
	// Marketplace plan this VM was purchased with (from its subscription).
	//
	// Read-only: set by the API.
	PlanID string `json:"planId,omitempty"`
	// - PLATFORM_DRIVER_PTERODACTYL: Game-server platform. Not a value of the organization hypervisor driver.
	PlatformDriver PlatformDriver `json:"platformDriver,omitempty"`
	// The name of the provider organization that owns the node where the virtual machine is located.
	//
	// Read-only: set by the API.
	ProviderName string `json:"providerName,omitempty"`
	// The ID of the service provider organization for the virtual machine.
	ProviderOrganizationID string `json:"providerOrganizationId,omitempty"`
	// The city of the region where the virtual machine is located.
	//
	// Read-only: set by the API.
	RegionCity string `json:"regionCity,omitempty"`
	// The country of the region where the virtual machine is located.
	//
	// Read-only: set by the API.
	RegionCountry string `json:"regionCountry,omitempty"`
	// Region of the node hosting this VM.
	//
	// Read-only: set by the API.
	RegionID        string          `json:"regionId,omitempty"`
	ReinstallStatus ReinstallStatus `json:"reinstallStatus,omitempty"`
	// Read-only: set by the API.
	ReinstalledAt *time.Time `json:"reinstalledAt,omitempty"`
	// Target storage for full clone.
	Storage int32    `json:"storage,omitempty"`
	Tags    []string `json:"tags,omitempty"`
	// The last update timestamp of the virtual machine.
	//
	// Read-only: set by the API.
	UpdateTime *time.Time `json:"updateTime,omitempty"`
}

VirtualMachine: VirtualMachine represents a managed virtual machine resource.

type VirtualMachineBandwidthQuota

type VirtualMachineBandwidthQuota struct {
	// Whole overage blocks currently billable (ceil(overage_gb / block_size_gb)).
	//
	// Read-only: set by the API.
	BillableBlocks int32 `json:"billableBlocks,omitempty"`
	// False when usage is shown for visibility only (e.g. ingress not billed on this plan).
	//
	// Read-only: set by the API.
	BillingEnabled bool `json:"billingEnabled,omitempty"`
	// Price per overage block (decimal string, e.g. "2.00").
	//
	// Read-only: set by the API.
	BlockPrice string `json:"blockPrice,omitempty"`
	// Overage block size (GB). Zero when unlimited or linear pricing.
	//
	// Read-only: set by the API.
	BlockSizeGb int32 `json:"blockSizeGb,omitempty"`
	// Read-only: set by the API.
	Currency string `json:"currency,omitempty"`
	// Estimated overage charge for the current period (decimal string).
	//
	// Read-only: set by the API.
	EstimatedOverageAmount string `json:"estimatedOverageAmount,omitempty"`
	// Included free bandwidth per period (GB). Zero when unlimited or not configured.
	//
	// Read-only: set by the API.
	FreeUnitsGb int32 `json:"freeUnitsGb,omitempty"`
	// Total usage GB at which the next overage block would begin (0 when unlimited).
	//
	// Read-only: set by the API.
	NextBlockGb float64 `json:"nextBlockGb,omitempty"`
	// GB above the free allowance (0 when within free tier).
	//
	// Read-only: set by the API.
	OverageGb float64 `json:"overageGb,omitempty"`
	// Read-only: set by the API.
	PeriodEnd *time.Time `json:"periodEnd,omitempty"`
	// Read-only: set by the API.
	PeriodStart *time.Time `json:"periodStart,omitempty"`
	// True when bandwidth is effectively unlimited ($0 overage) for this direction.
	//
	// Read-only: set by the API.
	Unlimited bool `json:"unlimited,omitempty"`
	// Total bandwidth used this billing period (decimal GB, 1000^3 bytes).
	//
	// Read-only: set by the API.
	UsedGb float64 `json:"usedGb,omitempty"`
}

VirtualMachineBandwidthQuota: VirtualMachineBandwidthQuota summarizes plan bandwidth allowance and metered usage for graphs/billing UX. Shared by both bandwidth_egress and bandwidth_ingress on VirtualMachine.

type VirtualMachineSMTPOutboundPolicyView

type VirtualMachineSMTPOutboundPolicyView struct {
	Action SMTPOutboundVMAction `json:"action,omitempty"`
	// Contact email of that owner (when resolved).
	ClientContactEmail string `json:"clientContactEmail,omitempty"`
	// Client organization that owns the VM (grouping key for provider UI).
	ClientOrganizationID string `json:"clientOrganizationId,omitempty"`
	// First owner user of that client organization (when resolved).
	ClientOwnerUserID string `json:"clientOwnerUserId,omitempty"`
	EffectiveBlocked  bool   `json:"effectiveBlocked,omitempty"`
	Hostname          string `json:"hostname,omitempty"`
	// Primary active IPv4 / IPv6 from IPAM allocations (empty when none).
	IPv4             string `json:"ipv4,omitempty"`
	IPv6             string `json:"ipv6,omitempty"`
	VirtualMachineID string `json:"virtualMachineId,omitempty"`
}

VirtualMachineSMTPOutboundPolicyView is the API's v1VirtualMachineSmtpOutboundPolicyView object.

type VirtualMachineService

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

VirtualMachineService calls the NodeRings VirtualMachineService API.

func (*VirtualMachineService) AttachVMFirewall

func (s *VirtualMachineService) AttachVMFirewall(ctx context.Context, id string, body *AttachVMFirewallBody) (*SuccessResponse, error)

AttachVMFirewall calls POST /v1/virtual-machines/{id}:attach-firewall.

func (*VirtualMachineService) CreateVirtualMachine

CreateVirtualMachine calls POST /v1/virtual-machines. If body.IdempotencyKey is empty, a new UUID is set on body before the request, so a retry of the same body cannot create a second resource.

Example

Order a virtual machine and wait until it runs. Find planID and regionID with client.Marketplace.ListProviders.

package main

import (
	"context"
	"fmt"
	"log"
	"os"
	"time"

	"github.com/noderings/noderings-go"
)

func main() {
	client, _ := noderings.NewClient(os.Getenv("NODERINGS_TOKEN"))
	ctx := context.Background()

	req := &noderings.CreateVirtualMachineRequest{
		Hostname:  "web-1",
		PlanID:    "your-plan-id",
		RegionID:  "your-region-id",
		Distro:    noderings.DistroUbuntu2604,
		SSHKeyIDs: []string{"your-ssh-key-id"},
		Tags:      []string{"web"},
	}
	created, err := client.VirtualMachine.CreateVirtualMachine(ctx, req)
	if err != nil {
		// req.IdempotencyKey was filled in; resend the same req to retry safely.
		log.Fatal(err)
	}
	vm, err := client.WaitForVirtualMachineStatus(ctx, created.VirtualMachine.ID,
		&noderings.WaitOptions{Timeout: 10 * time.Minute}, noderings.OperationStatusStarted)
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(vm.Hostname, "is running at", vm.IPv4)
}

func (*VirtualMachineService) DeleteVirtualMachine

func (s *VirtualMachineService) DeleteVirtualMachine(ctx context.Context, id string) (*SuccessResponse, error)

DeleteVirtualMachine calls DELETE /v1/virtual-machines/{id}.

func (*VirtualMachineService) DetachVMFirewall

func (s *VirtualMachineService) DetachVMFirewall(ctx context.Context, id string, body *DetachVMFirewallBody) (*SuccessResponse, error)

DetachVMFirewall calls POST /v1/virtual-machines/{id}:detach-firewall.

func (*VirtualMachineService) DisableAdditionalIP

func (s *VirtualMachineService) DisableAdditionalIP(ctx context.Context, vmID string, body *DisableAdditionalIPBody) (*SuccessResponse, error)

DisableAdditionalIP: DisableAdditionalIP releases one additional IPv4 and updates ADDITIONAL-IP addon quantity.

It calls POST /v1/virtual-machines/{vmId}:disable-additional-ip.

func (*VirtualMachineService) DisableBackup

func (s *VirtualMachineService) DisableBackup(ctx context.Context, vmID string, body *DisableBackupBody) (*SuccessResponse, error)

DisableBackup: DisableBackup disables backup addon for a virtual machine

It calls POST /v1/virtual-machines/{vmId}:disable-backup.

func (*VirtualMachineService) EnableAdditionalIP

EnableAdditionalIP: EnableAdditionalIP allocates an extra IPv4 from the VM primary prefix and subscribes to ADDITIONAL-IP billing.

It calls POST /v1/virtual-machines/{vmId}:enable-additional-ip.

func (*VirtualMachineService) EnableBackup

func (s *VirtualMachineService) EnableBackup(ctx context.Context, vmID string, body *EnableBackupBody) (*SuccessResponse, error)

EnableBackup: EnableBackup enables backup addon for a virtual machine

It calls POST /v1/virtual-machines/{vmId}:enable-backup.

func (*VirtualMachineService) GetVNCConsole

GetVNCConsole: GetVNCConsole returns WebSocket URL for VNC console access.

It calls GET /v1/virtual-machines/{id}/console.

func (*VirtualMachineService) GetVirtualMachine

func (s *VirtualMachineService) GetVirtualMachine(ctx context.Context, id string) (*VirtualMachine, error)

GetVirtualMachine calls GET /v1/virtual-machines/{id}.

func (*VirtualMachineService) ListVMTags

ListVMTags: ListVMTags returns all unique tags from virtual machines belonging to the organization

It calls GET /v1/virtual-machines/tags.

func (*VirtualMachineService) ListVirtualMachines

ListVirtualMachines calls GET /v1/virtual-machines.

func (*VirtualMachineService) ListVirtualMachinesAll

func (s *VirtualMachineService) ListVirtualMachinesAll(ctx context.Context, params *ListVirtualMachinesParams) iter.Seq2[VirtualMachine, error]

ListVirtualMachinesAll returns an iterator over every result of ListVirtualMachines, reading page after page. params.Page is the first page (0 by default) and params.PageSize the page size (100 by default).

func (*VirtualMachineService) ReinstallVirtualMachine

func (s *VirtualMachineService) ReinstallVirtualMachine(ctx context.Context, id string, body *ReinstallVirtualMachineBody) (*VirtualMachine, error)

ReinstallVirtualMachine calls POST /v1/virtual-machines/{id}:reinstall.

func (*VirtualMachineService) RestartVirtualMachine

func (s *VirtualMachineService) RestartVirtualMachine(ctx context.Context, id string, body *RestartVirtualMachineBody) (*VirtualMachine, error)

RestartVirtualMachine calls POST /v1/virtual-machines/{id}:restart.

func (*VirtualMachineService) StartVirtualMachine

func (s *VirtualMachineService) StartVirtualMachine(ctx context.Context, id string, body *StartVirtualMachineBody) (*VirtualMachine, error)

StartVirtualMachine calls POST /v1/virtual-machines/{id}:start.

func (*VirtualMachineService) StopVirtualMachine

func (s *VirtualMachineService) StopVirtualMachine(ctx context.Context, id string, body *StopVirtualMachineBody) (*VirtualMachine, error)

StopVirtualMachine calls POST /v1/virtual-machines/{id}:stop.

func (*VirtualMachineService) UpdateVirtualMachine

func (s *VirtualMachineService) UpdateVirtualMachine(ctx context.Context, id string, body *UpdateVirtualMachineBody) (*VirtualMachine, error)

UpdateVirtualMachine calls PATCH /v1/virtual-machines/{id}.

type VoteRoadmapFeatureRequestBody

type VoteRoadmapFeatureRequestBody struct {
	Type RoadmapVoteType `json:"type,omitempty"`
}

VoteRoadmapFeatureRequestBody is the API's RoadmapServiceVoteRoadmapFeatureRequestBody object.

type VoteRoadmapFeatureRequestResponse

type VoteRoadmapFeatureRequestResponse struct {
	Request *RoadmapFeatureRequest `json:"request,omitempty"`
}

VoteRoadmapFeatureRequestResponse is the API's v1VoteRoadmapFeatureRequestResponse object.

type WaitOptions

type WaitOptions struct {
	// Interval between checks. Zero means 5 seconds.
	Interval time.Duration
	// Timeout for the whole wait. Zero means 15 minutes. The context's own
	// deadline also applies.
	Timeout time.Duration
}

WaitOptions configure the Wait helpers.

type WriteFileBody

type WriteFileBody struct {
	Content []byte `json:"content,omitempty"`
	Path    string `json:"path,omitempty"`
}

WriteFileBody is the API's GameServerServiceWriteFileBody object.

Directories

Path Synopsis
examples
quickstart command
Command quickstart lists your NodeRings virtual machines, DNS zones and the operating systems you can install.
Command quickstart lists your NodeRings virtual machines, DNS zones and the operating systems you can install.
internal
gen command
Command gen generates the NodeRings Go SDK's models and services from the OpenAPI description in api/openapi.json.
Command gen generates the NodeRings Go SDK's models and services from the OpenAPI description in api/openapi.json.

Jump to

Keyboard shortcuts

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