Documentation
¶
Overview ¶
Package cloudriftapi provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT.
Regeneration workflow:
Download the raw spec: curl -s https://api.cloudrift.ai/api-docs/openapi2.json > api_raw.json
Patch the spec (fixes oapi-codegen incompatibilities): go run patchspec.go
Generate the Go client: go generate
The patchspec.go tool applies the following transformations to api_raw.json → api.json:
- Downgrade OpenAPI 3.1.0 → 3.0.4 (oapi-codegen does not support 3.1.0)
- Replace "items": false with "items": {} (oapi-codegen cannot parse boolean items)
- Convert 3.1.0 nullable types ["type", "null"] → 3.0.x "nullable": true
- Convert oneOf with {"type":"null"} → 3.0.x nullable
- Fix response codes 201 → 200 (API actually returns 200)
The generated file is mostly used for its types. A custom client has been created for interaction with the CloudRift API that leverages the generated types.
Index ¶
- Constants
- Variables
- func DoRequestWithApiToken[Parsed any](c *HttpClient, req *http.Request, ...) (*Parsed, error)
- func NewAddApiKeyRequest(server string, body AddApiKeyJSONRequestBody) (*http.Request, error)
- func NewAddApiKeyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewAddInstanceTypeRequest(server string, body AddInstanceTypeJSONRequestBody) (*http.Request, error)
- func NewAddInstanceTypeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewAddInstanceVariantRequest(server string, body AddInstanceVariantJSONRequestBody) (*http.Request, error)
- func NewAddInstanceVariantRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewAddNetworkRequest(server string, body AddNetworkJSONRequestBody) (*http.Request, error)
- func NewAddNetworkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewAddRecipeRequest(server string, body AddRecipeJSONRequestBody) (*http.Request, error)
- func NewAddRecipeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewAddSshKeyRequest(server string, body AddSshKeyJSONRequestBody) (*http.Request, error)
- func NewAddSshKeyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewAddTeamMemberRequest(server string, teamId string, body AddTeamMemberJSONRequestBody) (*http.Request, error)
- func NewAddTeamMemberRequestWithBody(server string, teamId string, contentType string, body io.Reader) (*http.Request, error)
- func NewAddUserRequest(server string, body AddUserJSONRequestBody) (*http.Request, error)
- func NewAddUserRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewBulkChargeForServiceRequest(server string, body BulkChargeForServiceJSONRequestBody) (*http.Request, error)
- func NewBulkChargeForServiceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCancelDrainRequest(server string, body CancelDrainJSONRequestBody) (*http.Request, error)
- func NewCancelDrainRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewChargeForServiceRequest(server string, body ChargeForServiceJSONRequestBody) (*http.Request, error)
- func NewChargeForServiceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateAndAttachReservationRequest(server string, body CreateAndAttachReservationJSONRequestBody) (*http.Request, error)
- func NewCreateAndAttachReservationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateExternalTransactionRequest(server string, body CreateExternalTransactionJSONRequestBody) (*http.Request, error)
- func NewCreateExternalTransactionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreatePromoTransactionRequest(server string, body CreatePromoTransactionJSONRequestBody) (*http.Request, error)
- func NewCreatePromoTransactionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateTeamRequest(server string, body CreateTeamJSONRequestBody) (*http.Request, error)
- func NewCreateTeamRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateVolumeRequest(server string, body CreateVolumeJSONRequestBody) (*http.Request, error)
- func NewCreateVolumeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteNetworkRequest(server string, body DeleteNetworkJSONRequestBody) (*http.Request, error)
- func NewDeleteNetworkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteSshKeyRequest(server string, sshKeyId string) (*http.Request, error)
- func NewDeleteUserRequest(server string, body DeleteUserJSONRequestBody) (*http.Request, error)
- func NewDeleteUserRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDrainNodeRequest(server string, body DrainNodeJSONRequestBody) (*http.Request, error)
- func NewDrainNodeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewForceDrainRequest(server string, body ForceDrainJSONRequestBody) (*http.Request, error)
- func NewForceDrainRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetAccountInfoRequest(server string) (*http.Request, error)
- func NewGetAutoTopUpRecoveryInfoRequest(server string, body GetAutoTopUpRecoveryInfoJSONRequestBody) (*http.Request, error)
- func NewGetAutoTopUpRecoveryInfoRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetOrCreateStripeCustomerRequest(server string, body GetOrCreateStripeCustomerJSONRequestBody) (*http.Request, error)
- func NewGetOrCreateStripeCustomerRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetTeamRequest(server string, teamId string) (*http.Request, error)
- func NewInstanceMetricsRequest(server string, body InstanceMetricsJSONRequestBody) (*http.Request, error)
- func NewInstanceMetricsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewListApiKeysRequest(server string, body ListApiKeysJSONRequestBody) (*http.Request, error)
- func NewListApiKeysRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewListCapabilitiesRequest(server string) (*http.Request, error)
- func NewListInstanceTypesRequest(server string, body ListInstanceTypesJSONRequestBody) (*http.Request, error)
- func NewListInstanceTypesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewListInstancesRequest(server string, body ListInstancesJSONRequestBody) (*http.Request, error)
- func NewListInstancesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewListNetworksRequest(server string, body ListNetworksJSONRequestBody) (*http.Request, error)
- func NewListNetworksRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewListNodesRequest(server string, body ListNodesJSONRequestBody) (*http.Request, error)
- func NewListNodesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewListProvidersRequest(server string, body ListProvidersJSONRequestBody) (*http.Request, error)
- func NewListProvidersRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewListRecipesRequest(server string) (*http.Request, error)
- func NewListReservationTypesRequest(server string) (*http.Request, error)
- func NewListReservationsRequest(server string, body ListReservationsJSONRequestBody) (*http.Request, error)
- func NewListReservationsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewListSavedEnvironmentsRequest(server string, body ListSavedEnvironmentsJSONRequestBody) (*http.Request, error)
- func NewListSavedEnvironmentsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewListSshKeysRequest(server string) (*http.Request, error)
- func NewListTeamsRequest(server string, body ListTeamsJSONRequestBody) (*http.Request, error)
- func NewListTeamsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewListTransactionsRequest(server string) (*http.Request, error)
- func NewListUsersRequest(server string, body ListUsersJSONRequestBody) (*http.Request, error)
- func NewListUsersRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewListVolumesRequest(server string, body ListVolumesJSONRequestBody) (*http.Request, error)
- func NewListVolumesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewLoginRequest(server string, body LoginJSONRequestBody) (*http.Request, error)
- func NewLoginRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewLogoutRequest(server string) (*http.Request, error)
- func NewMeRequest(server string) (*http.Request, error)
- func NewNodeMetricsByIdRequest(server string, nodeId string) (*http.Request, error)
- func NewNodeMetricsRequest(server string, body NodeMetricsJSONRequestBody) (*http.Request, error)
- func NewNodeMetricsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPauseVmRequest(server string, body PauseVmJSONRequestBody) (*http.Request, error)
- func NewPauseVmRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewRegisterUserRequest(server string, body RegisterUserJSONRequestBody) (*http.Request, error)
- func NewRegisterUserRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewRemoveInstanceTypeRequest(server string, body RemoveInstanceTypeJSONRequestBody) (*http.Request, error)
- func NewRemoveInstanceTypeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewRemoveInstanceVariantRequest(server string, body RemoveInstanceVariantJSONRequestBody) (*http.Request, error)
- func NewRemoveInstanceVariantRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewRemoveRecipeRequest(server string, body RemoveRecipeJSONRequestBody) (*http.Request, error)
- func NewRemoveRecipeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewRemoveTeamMemberRequest(server string, teamId string, body RemoveTeamMemberJSONRequestBody) (*http.Request, error)
- func NewRemoveTeamMemberRequestWithBody(server string, teamId string, contentType string, body io.Reader) (*http.Request, error)
- func NewRentInstanceRequest(server string, body RentInstanceJSONRequestBody) (*http.Request, error)
- func NewRentInstanceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewRequestPasswordResetRequest(server string, body RequestPasswordResetJSONRequestBody) (*http.Request, error)
- func NewRequestPasswordResetRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewResendVerificationRequest(server string, body ResendVerificationJSONRequestBody) (*http.Request, error)
- func NewResendVerificationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewResetPasswordRequest(server string, body ResetPasswordJSONRequestBody) (*http.Request, error)
- func NewResetPasswordRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewResetVmRequest(server string, body ResetVmJSONRequestBody) (*http.Request, error)
- func NewResetVmRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewResumeNodeRequest(server string, body ResumeNodeJSONRequestBody) (*http.Request, error)
- func NewResumeNodeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewResumeVmRequest(server string, body ResumeVmJSONRequestBody) (*http.Request, error)
- func NewResumeVmRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSearchTeamsRequest(server string, body SearchTeamsJSONRequestBody) (*http.Request, error)
- func NewSearchTeamsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSearchUsersRequest(server string, body SearchUsersJSONRequestBody) (*http.Request, error)
- func NewSearchUsersRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSelectAndDeleteApiKeysRequest(server string, body SelectAndDeleteApiKeysJSONRequestBody) (*http.Request, error)
- func NewSelectAndDeleteApiKeysRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSelectAndDeleteSshKeyRequest(server string, body SelectAndDeleteSshKeyJSONRequestBody) (*http.Request, error)
- func NewSelectAndDeleteSshKeyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSendUsersMessageRequest(server string, body SendUsersMessageJSONRequestBody) (*http.Request, error)
- func NewSendUsersMessageRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSetMarketplaceListingRequest(server string, body SetMarketplaceListingJSONRequestBody) (*http.Request, error)
- func NewSetMarketplaceListingRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewStartVmRequest(server string, body StartVmJSONRequestBody) (*http.Request, error)
- func NewStartVmRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewStopVmRequest(server string, body StopVmJSONRequestBody) (*http.Request, error)
- func NewStopVmRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewTerminateInstancesRequest(server string, body TerminateInstancesJSONRequestBody) (*http.Request, error)
- func NewTerminateInstancesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateActiveReservationRequest(server string, body UpdateActiveReservationJSONRequestBody) (*http.Request, error)
- func NewUpdateActiveReservationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateApiKeysRequest(server string, body UpdateApiKeysJSONRequestBody) (*http.Request, error)
- func NewUpdateApiKeysRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateAutoTopUpRequest(server string, body UpdateAutoTopUpJSONRequestBody) (*http.Request, error)
- func NewUpdateAutoTopUpRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateCreditLimitRequest(server string, body UpdateCreditLimitJSONRequestBody) (*http.Request, error)
- func NewUpdateCreditLimitRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateInstanceTypeRequest(server string, body UpdateInstanceTypeJSONRequestBody) (*http.Request, error)
- func NewUpdateInstanceTypeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateInstanceVariantRequest(server string, body UpdateInstanceVariantJSONRequestBody) (*http.Request, error)
- func NewUpdateInstanceVariantRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateNetworkRequest(server string, body UpdateNetworkJSONRequestBody) (*http.Request, error)
- func NewUpdateNetworkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateProviderNodeInstanceTypeRequest(server string, body UpdateProviderNodeInstanceTypeJSONRequestBody) (*http.Request, error)
- func NewUpdateProviderNodeInstanceTypeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateTeamMembershipRequest(server string, teamId string, body UpdateTeamMembershipJSONRequestBody) (*http.Request, error)
- func NewUpdateTeamMembershipRequestWithBody(server string, teamId string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateVolumeRequest(server string, body UpdateVolumeJSONRequestBody) (*http.Request, error)
- func NewUpdateVolumeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewVerifyEmailRequest(server string, params *VerifyEmailParams) (*http.Request, error)
- type AccountInfoProto
- type AccountSelector
- func (t AccountSelector) AsAccountSelector0() (AccountSelector0, error)
- func (t AccountSelector) AsAccountSelector1() (AccountSelector1, error)
- func (t *AccountSelector) FromAccountSelector0(v AccountSelector0) error
- func (t *AccountSelector) FromAccountSelector1(v AccountSelector1) error
- func (t AccountSelector) MarshalJSON() ([]byte, error)
- func (t *AccountSelector) MergeAccountSelector0(v AccountSelector0) error
- func (t *AccountSelector) MergeAccountSelector1(v AccountSelector1) error
- func (t *AccountSelector) UnmarshalJSON(b []byte) error
- type AccountSelector0
- type AccountSelector1
- type AccountTargetSelector
- func (t AccountTargetSelector) AsAccountTargetSelector0() (AccountTargetSelector0, error)
- func (t AccountTargetSelector) AsAccountTargetSelector1() (AccountTargetSelector1, error)
- func (t *AccountTargetSelector) FromAccountTargetSelector0(v AccountTargetSelector0) error
- func (t *AccountTargetSelector) FromAccountTargetSelector1(v AccountTargetSelector1) error
- func (t AccountTargetSelector) MarshalJSON() ([]byte, error)
- func (t *AccountTargetSelector) MergeAccountTargetSelector0(v AccountTargetSelector0) error
- func (t *AccountTargetSelector) MergeAccountTargetSelector1(v AccountTargetSelector1) error
- func (t *AccountTargetSelector) UnmarshalJSON(b []byte) error
- type AccountTargetSelector0
- type AccountTargetSelector1
- type AddApiKeyJSONRequestBody
- type AddApiKeyRequestProto
- type AddApiKeyResponse
- type AddApiKeyResponseProto
- type AddInstanceTypeJSONRequestBody
- type AddInstanceTypeRequestProto
- type AddInstanceTypeResponse
- type AddInstanceVariantJSONRequestBody
- type AddInstanceVariantRequestProto
- type AddInstanceVariantResponse
- type AddNetworkJSONRequestBody
- type AddNetworkRequestProto
- type AddNetworkResponse
- type AddNetworkResponseProto
- type AddRecipeDetails
- func (t AddRecipeDetails) AsAddRecipeDetails0() (AddRecipeDetails0, error)
- func (t AddRecipeDetails) AsAddRecipeDetails1() (AddRecipeDetails1, error)
- func (t *AddRecipeDetails) FromAddRecipeDetails0(v AddRecipeDetails0) error
- func (t *AddRecipeDetails) FromAddRecipeDetails1(v AddRecipeDetails1) error
- func (t AddRecipeDetails) MarshalJSON() ([]byte, error)
- func (t *AddRecipeDetails) MergeAddRecipeDetails0(v AddRecipeDetails0) error
- func (t *AddRecipeDetails) MergeAddRecipeDetails1(v AddRecipeDetails1) error
- func (t *AddRecipeDetails) UnmarshalJSON(b []byte) error
- type AddRecipeDetails0
- type AddRecipeDetails1
- type AddRecipeJSONRequestBody
- type AddRecipeRequestProto
- type AddRecipeResponse
- type AddSshKeyJSONRequestBody
- type AddSshKeyRequestProto
- type AddSshKeyResponse
- type AddTeamMemberJSONRequestBody
- type AddTeamMemberRequestProto
- type AddTeamMemberResponse
- type AddUserFinancialInfo
- type AddUserJSONRequestBody
- type AddUserRequestProto
- type AddUserResponse
- type AddUserResponseProto
- type ApiKey
- type ApiKeySelector
- func (t ApiKeySelector) AsApiKeySelector0() (ApiKeySelector0, error)
- func (t ApiKeySelector) AsApiKeySelector1() (ApiKeySelector1, error)
- func (t ApiKeySelector) AsApiKeySelector2() (ApiKeySelector2, error)
- func (t *ApiKeySelector) FromApiKeySelector0(v ApiKeySelector0) error
- func (t *ApiKeySelector) FromApiKeySelector1(v ApiKeySelector1) error
- func (t *ApiKeySelector) FromApiKeySelector2(v ApiKeySelector2) error
- func (t ApiKeySelector) MarshalJSON() ([]byte, error)
- func (t *ApiKeySelector) MergeApiKeySelector0(v ApiKeySelector0) error
- func (t *ApiKeySelector) MergeApiKeySelector1(v ApiKeySelector1) error
- func (t *ApiKeySelector) MergeApiKeySelector2(v ApiKeySelector2) error
- func (t *ApiKeySelector) UnmarshalJSON(b []byte) error
- type ApiKeySelector0
- type ApiKeySelector1
- type ApiKeySelector2
- type AuthData
- type AutoTopUpRecoveryInfoProto
- type AutoTopUpRequestProto
- type AutoTopUpSettings
- type AutoTopUpStateProto
- type AutoTopUpStatus
- type AutoTopUpUpdateRequestProto
- type BulkChargeForServiceJSONRequestBody
- type BulkChargeForServiceResponse
- type BulkServiceChargeRequestProto
- type BulkServiceChargeResponseProto
- type CancelDrainJSONRequestBody
- type CancelDrainRequestProto
- type CancelDrainResponse
- type CancelDrainResponseProto
- type CapabilitiesResponseProto
- type ChargeForServiceJSONRequestBody
- type ChargeForServiceResponse
- type Client
- func (c *Client) AddApiKey(ctx context.Context, body AddApiKeyJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AddApiKeyWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) AddInstanceType(ctx context.Context, body AddInstanceTypeJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AddInstanceTypeWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) AddInstanceVariant(ctx context.Context, body AddInstanceVariantJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AddInstanceVariantWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) AddNetwork(ctx context.Context, body AddNetworkJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AddNetworkWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) AddRecipe(ctx context.Context, body AddRecipeJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AddRecipeWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) AddSshKey(ctx context.Context, body AddSshKeyJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AddSshKeyWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) AddTeamMember(ctx context.Context, teamId string, body AddTeamMemberJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AddTeamMemberWithBody(ctx context.Context, teamId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) AddUser(ctx context.Context, body AddUserJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AddUserWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) BulkChargeForService(ctx context.Context, body BulkChargeForServiceJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) BulkChargeForServiceWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CancelDrain(ctx context.Context, body CancelDrainJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CancelDrainWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ChargeForService(ctx context.Context, body ChargeForServiceJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ChargeForServiceWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateAndAttachReservation(ctx context.Context, body CreateAndAttachReservationJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateAndAttachReservationWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateExternalTransaction(ctx context.Context, body CreateExternalTransactionJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateExternalTransactionWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreatePromoTransaction(ctx context.Context, body CreatePromoTransactionJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreatePromoTransactionWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateTeam(ctx context.Context, body CreateTeamJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateTeamWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateVolume(ctx context.Context, body CreateVolumeJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateVolumeWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteNetwork(ctx context.Context, body DeleteNetworkJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) DeleteNetworkWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteSshKey(ctx context.Context, sshKeyId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteUser(ctx context.Context, body DeleteUserJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) DeleteUserWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DrainNode(ctx context.Context, body DrainNodeJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) DrainNodeWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ForceDrain(ctx context.Context, body ForceDrainJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ForceDrainWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetAccountInfo(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetAutoTopUpRecoveryInfo(ctx context.Context, body GetAutoTopUpRecoveryInfoJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) GetAutoTopUpRecoveryInfoWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetOrCreateStripeCustomer(ctx context.Context, body GetOrCreateStripeCustomerJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) GetOrCreateStripeCustomerWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetTeam(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) InstanceMetrics(ctx context.Context, body InstanceMetricsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) InstanceMetricsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ListApiKeys(ctx context.Context, body ListApiKeysJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ListApiKeysWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ListCapabilities(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListInstanceTypes(ctx context.Context, body ListInstanceTypesJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ListInstanceTypesWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ListInstances(ctx context.Context, body ListInstancesJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ListInstancesWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ListNetworks(ctx context.Context, body ListNetworksJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ListNetworksWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ListNodes(ctx context.Context, body ListNodesJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ListNodesWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ListProviders(ctx context.Context, body ListProvidersJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ListProvidersWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ListRecipes(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListReservationTypes(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListReservations(ctx context.Context, body ListReservationsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ListReservationsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ListSavedEnvironments(ctx context.Context, body ListSavedEnvironmentsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ListSavedEnvironmentsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ListSshKeys(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListTeams(ctx context.Context, body ListTeamsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ListTeamsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ListTransactions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListUsers(ctx context.Context, body ListUsersJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ListUsersWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ListVolumes(ctx context.Context, body ListVolumesJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ListVolumesWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) Login(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) LoginWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) Logout(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) Me(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) NodeMetrics(ctx context.Context, body NodeMetricsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) NodeMetricsById(ctx context.Context, nodeId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) NodeMetricsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PauseVm(ctx context.Context, body PauseVmJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PauseVmWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) RegisterUser(ctx context.Context, body RegisterUserJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) RegisterUserWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) RemoveInstanceType(ctx context.Context, body RemoveInstanceTypeJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) RemoveInstanceTypeWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) RemoveInstanceVariant(ctx context.Context, body RemoveInstanceVariantJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) RemoveInstanceVariantWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) RemoveRecipe(ctx context.Context, body RemoveRecipeJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) RemoveRecipeWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) RemoveTeamMember(ctx context.Context, teamId string, body RemoveTeamMemberJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) RemoveTeamMemberWithBody(ctx context.Context, teamId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) RentInstance(ctx context.Context, body RentInstanceJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) RentInstanceWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) RequestPasswordReset(ctx context.Context, body RequestPasswordResetJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) RequestPasswordResetWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ResendVerification(ctx context.Context, body ResendVerificationJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ResendVerificationWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ResetPassword(ctx context.Context, body ResetPasswordJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ResetPasswordWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ResetVm(ctx context.Context, body ResetVmJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ResetVmWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ResumeNode(ctx context.Context, body ResumeNodeJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ResumeNodeWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ResumeVm(ctx context.Context, body ResumeVmJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ResumeVmWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SearchTeams(ctx context.Context, body SearchTeamsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SearchTeamsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SearchUsers(ctx context.Context, body SearchUsersJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SearchUsersWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SelectAndDeleteApiKeys(ctx context.Context, body SelectAndDeleteApiKeysJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SelectAndDeleteApiKeysWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SelectAndDeleteSshKey(ctx context.Context, body SelectAndDeleteSshKeyJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SelectAndDeleteSshKeyWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SendUsersMessage(ctx context.Context, body SendUsersMessageJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SendUsersMessageWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SetMarketplaceListing(ctx context.Context, body SetMarketplaceListingJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SetMarketplaceListingWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) StartVm(ctx context.Context, body StartVmJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) StartVmWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) StopVm(ctx context.Context, body StopVmJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) StopVmWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) TerminateInstances(ctx context.Context, body TerminateInstancesJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) TerminateInstancesWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateActiveReservation(ctx context.Context, body UpdateActiveReservationJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateActiveReservationWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateApiKeys(ctx context.Context, body UpdateApiKeysJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateApiKeysWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateAutoTopUp(ctx context.Context, body UpdateAutoTopUpJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateAutoTopUpWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateCreditLimit(ctx context.Context, body UpdateCreditLimitJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateCreditLimitWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateInstanceType(ctx context.Context, body UpdateInstanceTypeJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateInstanceTypeWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateInstanceVariant(ctx context.Context, body UpdateInstanceVariantJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateInstanceVariantWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateNetwork(ctx context.Context, body UpdateNetworkJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateNetworkWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateProviderNodeInstanceType(ctx context.Context, body UpdateProviderNodeInstanceTypeJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateProviderNodeInstanceTypeWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateTeamMembership(ctx context.Context, teamId string, body UpdateTeamMembershipJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateTeamMembershipWithBody(ctx context.Context, teamId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateVolume(ctx context.Context, body UpdateVolumeJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateVolumeWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) VerifyEmail(ctx context.Context, params *VerifyEmailParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) AddApiKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AddApiKeyResponse, error)
- func (c *ClientWithResponses) AddApiKeyWithResponse(ctx context.Context, body AddApiKeyJSONRequestBody, ...) (*AddApiKeyResponse, error)
- func (c *ClientWithResponses) AddInstanceTypeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AddInstanceTypeResponse, error)
- func (c *ClientWithResponses) AddInstanceTypeWithResponse(ctx context.Context, body AddInstanceTypeJSONRequestBody, ...) (*AddInstanceTypeResponse, error)
- func (c *ClientWithResponses) AddInstanceVariantWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AddInstanceVariantResponse, error)
- func (c *ClientWithResponses) AddInstanceVariantWithResponse(ctx context.Context, body AddInstanceVariantJSONRequestBody, ...) (*AddInstanceVariantResponse, error)
- func (c *ClientWithResponses) AddNetworkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AddNetworkResponse, error)
- func (c *ClientWithResponses) AddNetworkWithResponse(ctx context.Context, body AddNetworkJSONRequestBody, ...) (*AddNetworkResponse, error)
- func (c *ClientWithResponses) AddRecipeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AddRecipeResponse, error)
- func (c *ClientWithResponses) AddRecipeWithResponse(ctx context.Context, body AddRecipeJSONRequestBody, ...) (*AddRecipeResponse, error)
- func (c *ClientWithResponses) AddSshKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AddSshKeyResponse, error)
- func (c *ClientWithResponses) AddSshKeyWithResponse(ctx context.Context, body AddSshKeyJSONRequestBody, ...) (*AddSshKeyResponse, error)
- func (c *ClientWithResponses) AddTeamMemberWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, ...) (*AddTeamMemberResponse, error)
- func (c *ClientWithResponses) AddTeamMemberWithResponse(ctx context.Context, teamId string, body AddTeamMemberJSONRequestBody, ...) (*AddTeamMemberResponse, error)
- func (c *ClientWithResponses) AddUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AddUserResponse, error)
- func (c *ClientWithResponses) AddUserWithResponse(ctx context.Context, body AddUserJSONRequestBody, ...) (*AddUserResponse, error)
- func (c *ClientWithResponses) BulkChargeForServiceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*BulkChargeForServiceResponse, error)
- func (c *ClientWithResponses) BulkChargeForServiceWithResponse(ctx context.Context, body BulkChargeForServiceJSONRequestBody, ...) (*BulkChargeForServiceResponse, error)
- func (c *ClientWithResponses) CancelDrainWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CancelDrainResponse, error)
- func (c *ClientWithResponses) CancelDrainWithResponse(ctx context.Context, body CancelDrainJSONRequestBody, ...) (*CancelDrainResponse, error)
- func (c *ClientWithResponses) ChargeForServiceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ChargeForServiceResponse, error)
- func (c *ClientWithResponses) ChargeForServiceWithResponse(ctx context.Context, body ChargeForServiceJSONRequestBody, ...) (*ChargeForServiceResponse, error)
- func (c *ClientWithResponses) CreateAndAttachReservationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateAndAttachReservationResponse, error)
- func (c *ClientWithResponses) CreateAndAttachReservationWithResponse(ctx context.Context, body CreateAndAttachReservationJSONRequestBody, ...) (*CreateAndAttachReservationResponse, error)
- func (c *ClientWithResponses) CreateExternalTransactionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateExternalTransactionResponse, error)
- func (c *ClientWithResponses) CreateExternalTransactionWithResponse(ctx context.Context, body CreateExternalTransactionJSONRequestBody, ...) (*CreateExternalTransactionResponse, error)
- func (c *ClientWithResponses) CreatePromoTransactionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreatePromoTransactionResponse, error)
- func (c *ClientWithResponses) CreatePromoTransactionWithResponse(ctx context.Context, body CreatePromoTransactionJSONRequestBody, ...) (*CreatePromoTransactionResponse, error)
- func (c *ClientWithResponses) CreateTeamWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateTeamResponse, error)
- func (c *ClientWithResponses) CreateTeamWithResponse(ctx context.Context, body CreateTeamJSONRequestBody, ...) (*CreateTeamResponse, error)
- func (c *ClientWithResponses) CreateVolumeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateVolumeResponse, error)
- func (c *ClientWithResponses) CreateVolumeWithResponse(ctx context.Context, body CreateVolumeJSONRequestBody, ...) (*CreateVolumeResponse, error)
- func (c *ClientWithResponses) DeleteNetworkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*DeleteNetworkResponse, error)
- func (c *ClientWithResponses) DeleteNetworkWithResponse(ctx context.Context, body DeleteNetworkJSONRequestBody, ...) (*DeleteNetworkResponse, error)
- func (c *ClientWithResponses) DeleteSshKeyWithResponse(ctx context.Context, sshKeyId string, reqEditors ...RequestEditorFn) (*DeleteSshKeyResponse, error)
- func (c *ClientWithResponses) DeleteUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*DeleteUserResponse, error)
- func (c *ClientWithResponses) DeleteUserWithResponse(ctx context.Context, body DeleteUserJSONRequestBody, ...) (*DeleteUserResponse, error)
- func (c *ClientWithResponses) DrainNodeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*DrainNodeResponse, error)
- func (c *ClientWithResponses) DrainNodeWithResponse(ctx context.Context, body DrainNodeJSONRequestBody, ...) (*DrainNodeResponse, error)
- func (c *ClientWithResponses) ForceDrainWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ForceDrainResponse, error)
- func (c *ClientWithResponses) ForceDrainWithResponse(ctx context.Context, body ForceDrainJSONRequestBody, ...) (*ForceDrainResponse, error)
- func (c *ClientWithResponses) GetAccountInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAccountInfoResponse, error)
- func (c *ClientWithResponses) GetAutoTopUpRecoveryInfoWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*GetAutoTopUpRecoveryInfoResponse, error)
- func (c *ClientWithResponses) GetAutoTopUpRecoveryInfoWithResponse(ctx context.Context, body GetAutoTopUpRecoveryInfoJSONRequestBody, ...) (*GetAutoTopUpRecoveryInfoResponse, error)
- func (c *ClientWithResponses) GetOrCreateStripeCustomerWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*GetOrCreateStripeCustomerResponse, error)
- func (c *ClientWithResponses) GetOrCreateStripeCustomerWithResponse(ctx context.Context, body GetOrCreateStripeCustomerJSONRequestBody, ...) (*GetOrCreateStripeCustomerResponse, error)
- func (c *ClientWithResponses) GetTeamWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*GetTeamResponse, error)
- func (c *ClientWithResponses) InstanceMetricsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*InstanceMetricsResponse, error)
- func (c *ClientWithResponses) InstanceMetricsWithResponse(ctx context.Context, body InstanceMetricsJSONRequestBody, ...) (*InstanceMetricsResponse, error)
- func (c *ClientWithResponses) ListApiKeysWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ListApiKeysResponse, error)
- func (c *ClientWithResponses) ListApiKeysWithResponse(ctx context.Context, body ListApiKeysJSONRequestBody, ...) (*ListApiKeysResponse, error)
- func (c *ClientWithResponses) ListCapabilitiesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListCapabilitiesResponse, error)
- func (c *ClientWithResponses) ListInstanceTypesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ListInstanceTypesResponse, error)
- func (c *ClientWithResponses) ListInstanceTypesWithResponse(ctx context.Context, body ListInstanceTypesJSONRequestBody, ...) (*ListInstanceTypesResponse, error)
- func (c *ClientWithResponses) ListInstancesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ListInstancesResponse, error)
- func (c *ClientWithResponses) ListInstancesWithResponse(ctx context.Context, body ListInstancesJSONRequestBody, ...) (*ListInstancesResponse, error)
- func (c *ClientWithResponses) ListNetworksWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ListNetworksResponse, error)
- func (c *ClientWithResponses) ListNetworksWithResponse(ctx context.Context, body ListNetworksJSONRequestBody, ...) (*ListNetworksResponse, error)
- func (c *ClientWithResponses) ListNodesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ListNodesResponse, error)
- func (c *ClientWithResponses) ListNodesWithResponse(ctx context.Context, body ListNodesJSONRequestBody, ...) (*ListNodesResponse, error)
- func (c *ClientWithResponses) ListProvidersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ListProvidersResponse, error)
- func (c *ClientWithResponses) ListProvidersWithResponse(ctx context.Context, body ListProvidersJSONRequestBody, ...) (*ListProvidersResponse, error)
- func (c *ClientWithResponses) ListRecipesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListRecipesResponse, error)
- func (c *ClientWithResponses) ListReservationTypesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListReservationTypesResponse, error)
- func (c *ClientWithResponses) ListReservationsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ListReservationsResponse, error)
- func (c *ClientWithResponses) ListReservationsWithResponse(ctx context.Context, body ListReservationsJSONRequestBody, ...) (*ListReservationsResponse, error)
- func (c *ClientWithResponses) ListSavedEnvironmentsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ListSavedEnvironmentsResponse, error)
- func (c *ClientWithResponses) ListSavedEnvironmentsWithResponse(ctx context.Context, body ListSavedEnvironmentsJSONRequestBody, ...) (*ListSavedEnvironmentsResponse, error)
- func (c *ClientWithResponses) ListSshKeysWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSshKeysResponse, error)
- func (c *ClientWithResponses) ListTeamsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ListTeamsResponse, error)
- func (c *ClientWithResponses) ListTeamsWithResponse(ctx context.Context, body ListTeamsJSONRequestBody, ...) (*ListTeamsResponse, error)
- func (c *ClientWithResponses) ListTransactionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListTransactionsResponse, error)
- func (c *ClientWithResponses) ListUsersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ListUsersResponse, error)
- func (c *ClientWithResponses) ListUsersWithResponse(ctx context.Context, body ListUsersJSONRequestBody, ...) (*ListUsersResponse, error)
- func (c *ClientWithResponses) ListVolumesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ListVolumesResponse, error)
- func (c *ClientWithResponses) ListVolumesWithResponse(ctx context.Context, body ListVolumesJSONRequestBody, ...) (*ListVolumesResponse, error)
- func (c *ClientWithResponses) LoginWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*LoginResponse, error)
- func (c *ClientWithResponses) LoginWithResponse(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginResponse, error)
- func (c *ClientWithResponses) LogoutWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*LogoutResponse, error)
- func (c *ClientWithResponses) MeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*MeResponse, error)
- func (c *ClientWithResponses) NodeMetricsByIdWithResponse(ctx context.Context, nodeId string, reqEditors ...RequestEditorFn) (*NodeMetricsByIdResponse, error)
- func (c *ClientWithResponses) NodeMetricsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*NodeMetricsResponse, error)
- func (c *ClientWithResponses) NodeMetricsWithResponse(ctx context.Context, body NodeMetricsJSONRequestBody, ...) (*NodeMetricsResponse, error)
- func (c *ClientWithResponses) PauseVmWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PauseVmResponse, error)
- func (c *ClientWithResponses) PauseVmWithResponse(ctx context.Context, body PauseVmJSONRequestBody, ...) (*PauseVmResponse, error)
- func (c *ClientWithResponses) RegisterUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*RegisterUserResponse, error)
- func (c *ClientWithResponses) RegisterUserWithResponse(ctx context.Context, body RegisterUserJSONRequestBody, ...) (*RegisterUserResponse, error)
- func (c *ClientWithResponses) RemoveInstanceTypeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*RemoveInstanceTypeResponse, error)
- func (c *ClientWithResponses) RemoveInstanceTypeWithResponse(ctx context.Context, body RemoveInstanceTypeJSONRequestBody, ...) (*RemoveInstanceTypeResponse, error)
- func (c *ClientWithResponses) RemoveInstanceVariantWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*RemoveInstanceVariantResponse, error)
- func (c *ClientWithResponses) RemoveInstanceVariantWithResponse(ctx context.Context, body RemoveInstanceVariantJSONRequestBody, ...) (*RemoveInstanceVariantResponse, error)
- func (c *ClientWithResponses) RemoveRecipeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*RemoveRecipeResponse, error)
- func (c *ClientWithResponses) RemoveRecipeWithResponse(ctx context.Context, body RemoveRecipeJSONRequestBody, ...) (*RemoveRecipeResponse, error)
- func (c *ClientWithResponses) RemoveTeamMemberWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, ...) (*RemoveTeamMemberResponse, error)
- func (c *ClientWithResponses) RemoveTeamMemberWithResponse(ctx context.Context, teamId string, body RemoveTeamMemberJSONRequestBody, ...) (*RemoveTeamMemberResponse, error)
- func (c *ClientWithResponses) RentInstanceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*RentInstanceResponse, error)
- func (c *ClientWithResponses) RentInstanceWithResponse(ctx context.Context, body RentInstanceJSONRequestBody, ...) (*RentInstanceResponse, error)
- func (c *ClientWithResponses) RequestPasswordResetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*RequestPasswordResetResponse, error)
- func (c *ClientWithResponses) RequestPasswordResetWithResponse(ctx context.Context, body RequestPasswordResetJSONRequestBody, ...) (*RequestPasswordResetResponse, error)
- func (c *ClientWithResponses) ResendVerificationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ResendVerificationResponse, error)
- func (c *ClientWithResponses) ResendVerificationWithResponse(ctx context.Context, body ResendVerificationJSONRequestBody, ...) (*ResendVerificationResponse, error)
- func (c *ClientWithResponses) ResetPasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ResetPasswordResponse, error)
- func (c *ClientWithResponses) ResetPasswordWithResponse(ctx context.Context, body ResetPasswordJSONRequestBody, ...) (*ResetPasswordResponse, error)
- func (c *ClientWithResponses) ResetVmWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ResetVmResponse, error)
- func (c *ClientWithResponses) ResetVmWithResponse(ctx context.Context, body ResetVmJSONRequestBody, ...) (*ResetVmResponse, error)
- func (c *ClientWithResponses) ResumeNodeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ResumeNodeResponse, error)
- func (c *ClientWithResponses) ResumeNodeWithResponse(ctx context.Context, body ResumeNodeJSONRequestBody, ...) (*ResumeNodeResponse, error)
- func (c *ClientWithResponses) ResumeVmWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ResumeVmResponse, error)
- func (c *ClientWithResponses) ResumeVmWithResponse(ctx context.Context, body ResumeVmJSONRequestBody, ...) (*ResumeVmResponse, error)
- func (c *ClientWithResponses) SearchTeamsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SearchTeamsResponse, error)
- func (c *ClientWithResponses) SearchTeamsWithResponse(ctx context.Context, body SearchTeamsJSONRequestBody, ...) (*SearchTeamsResponse, error)
- func (c *ClientWithResponses) SearchUsersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SearchUsersResponse, error)
- func (c *ClientWithResponses) SearchUsersWithResponse(ctx context.Context, body SearchUsersJSONRequestBody, ...) (*SearchUsersResponse, error)
- func (c *ClientWithResponses) SelectAndDeleteApiKeysWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SelectAndDeleteApiKeysResponse, error)
- func (c *ClientWithResponses) SelectAndDeleteApiKeysWithResponse(ctx context.Context, body SelectAndDeleteApiKeysJSONRequestBody, ...) (*SelectAndDeleteApiKeysResponse, error)
- func (c *ClientWithResponses) SelectAndDeleteSshKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SelectAndDeleteSshKeyResponse, error)
- func (c *ClientWithResponses) SelectAndDeleteSshKeyWithResponse(ctx context.Context, body SelectAndDeleteSshKeyJSONRequestBody, ...) (*SelectAndDeleteSshKeyResponse, error)
- func (c *ClientWithResponses) SendUsersMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SendUsersMessageResponse, error)
- func (c *ClientWithResponses) SendUsersMessageWithResponse(ctx context.Context, body SendUsersMessageJSONRequestBody, ...) (*SendUsersMessageResponse, error)
- func (c *ClientWithResponses) SetMarketplaceListingWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SetMarketplaceListingResponse, error)
- func (c *ClientWithResponses) SetMarketplaceListingWithResponse(ctx context.Context, body SetMarketplaceListingJSONRequestBody, ...) (*SetMarketplaceListingResponse, error)
- func (c *ClientWithResponses) StartVmWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*StartVmResponse, error)
- func (c *ClientWithResponses) StartVmWithResponse(ctx context.Context, body StartVmJSONRequestBody, ...) (*StartVmResponse, error)
- func (c *ClientWithResponses) StopVmWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*StopVmResponse, error)
- func (c *ClientWithResponses) StopVmWithResponse(ctx context.Context, body StopVmJSONRequestBody, reqEditors ...RequestEditorFn) (*StopVmResponse, error)
- func (c *ClientWithResponses) TerminateInstancesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*TerminateInstancesResponse, error)
- func (c *ClientWithResponses) TerminateInstancesWithResponse(ctx context.Context, body TerminateInstancesJSONRequestBody, ...) (*TerminateInstancesResponse, error)
- func (c *ClientWithResponses) UpdateActiveReservationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*UpdateActiveReservationResponse, error)
- func (c *ClientWithResponses) UpdateActiveReservationWithResponse(ctx context.Context, body UpdateActiveReservationJSONRequestBody, ...) (*UpdateActiveReservationResponse, error)
- func (c *ClientWithResponses) UpdateApiKeysWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*UpdateApiKeysResponse, error)
- func (c *ClientWithResponses) UpdateApiKeysWithResponse(ctx context.Context, body UpdateApiKeysJSONRequestBody, ...) (*UpdateApiKeysResponse, error)
- func (c *ClientWithResponses) UpdateAutoTopUpWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*UpdateAutoTopUpResponse, error)
- func (c *ClientWithResponses) UpdateAutoTopUpWithResponse(ctx context.Context, body UpdateAutoTopUpJSONRequestBody, ...) (*UpdateAutoTopUpResponse, error)
- func (c *ClientWithResponses) UpdateCreditLimitWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*UpdateCreditLimitResponse, error)
- func (c *ClientWithResponses) UpdateCreditLimitWithResponse(ctx context.Context, body UpdateCreditLimitJSONRequestBody, ...) (*UpdateCreditLimitResponse, error)
- func (c *ClientWithResponses) UpdateInstanceTypeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*UpdateInstanceTypeResponse, error)
- func (c *ClientWithResponses) UpdateInstanceTypeWithResponse(ctx context.Context, body UpdateInstanceTypeJSONRequestBody, ...) (*UpdateInstanceTypeResponse, error)
- func (c *ClientWithResponses) UpdateInstanceVariantWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*UpdateInstanceVariantResponse, error)
- func (c *ClientWithResponses) UpdateInstanceVariantWithResponse(ctx context.Context, body UpdateInstanceVariantJSONRequestBody, ...) (*UpdateInstanceVariantResponse, error)
- func (c *ClientWithResponses) UpdateNetworkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*UpdateNetworkResponse, error)
- func (c *ClientWithResponses) UpdateNetworkWithResponse(ctx context.Context, body UpdateNetworkJSONRequestBody, ...) (*UpdateNetworkResponse, error)
- func (c *ClientWithResponses) UpdateProviderNodeInstanceTypeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*UpdateProviderNodeInstanceTypeResponse, error)
- func (c *ClientWithResponses) UpdateProviderNodeInstanceTypeWithResponse(ctx context.Context, body UpdateProviderNodeInstanceTypeJSONRequestBody, ...) (*UpdateProviderNodeInstanceTypeResponse, error)
- func (c *ClientWithResponses) UpdateTeamMembershipWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, ...) (*UpdateTeamMembershipResponse, error)
- func (c *ClientWithResponses) UpdateTeamMembershipWithResponse(ctx context.Context, teamId string, body UpdateTeamMembershipJSONRequestBody, ...) (*UpdateTeamMembershipResponse, error)
- func (c *ClientWithResponses) UpdateVolumeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*UpdateVolumeResponse, error)
- func (c *ClientWithResponses) UpdateVolumeWithResponse(ctx context.Context, body UpdateVolumeJSONRequestBody, ...) (*UpdateVolumeResponse, error)
- func (c *ClientWithResponses) VerifyEmailWithResponse(ctx context.Context, params *VerifyEmailParams, reqEditors ...RequestEditorFn) (*VerifyEmailResponse, error)
- type ClientWithResponsesInterface
- type ComputeProviderInfo
- type ComputeProviderSelector
- func (t ComputeProviderSelector) AsComputeProviderSelector0() (ComputeProviderSelector0, error)
- func (t ComputeProviderSelector) AsComputeProviderSelector1() (ComputeProviderSelector1, error)
- func (t *ComputeProviderSelector) FromComputeProviderSelector0(v ComputeProviderSelector0) error
- func (t *ComputeProviderSelector) FromComputeProviderSelector1(v ComputeProviderSelector1) error
- func (t ComputeProviderSelector) MarshalJSON() ([]byte, error)
- func (t *ComputeProviderSelector) MergeComputeProviderSelector0(v ComputeProviderSelector0) error
- func (t *ComputeProviderSelector) MergeComputeProviderSelector1(v ComputeProviderSelector1) error
- func (t *ComputeProviderSelector) UnmarshalJSON(b []byte) error
- type ComputeProviderSelector0
- type ComputeProviderSelector1
- type CpuInfo
- type CreateAndAttachReservationJSONRequestBody
- type CreateAndAttachReservationResponse
- type CreateExternalTransactionJSONRequestBody
- type CreateExternalTransactionResponse
- type CreatePromoTransactionJSONRequestBody
- type CreatePromoTransactionResponse
- type CreateReservationRequestProto
- type CreateReservationResponseProto
- type CreateTeamJSONRequestBody
- type CreateTeamRequestProto
- type CreateTeamResponse
- type CreateTeamResponseProto
- type CreateVolumeJSONRequestBody
- type CreateVolumeRequestProto
- type CreateVolumeResponse
- type CreateVolumeResponseProto
- type CustomInstancePricing
- type DataCenterInfo
- type DatacenterNetworks
- type DeactivationCause
- type DeleteApiKeysRequestProto
- type DeleteApiKeysResponseProto
- type DeleteNetworkJSONRequestBody
- type DeleteNetworkRequestProto
- type DeleteNetworkResponse
- type DeleteNetworkResponseProto
- type DeleteNetworkSelector
- func (t DeleteNetworkSelector) AsDeleteNetworkSelector0() (DeleteNetworkSelector0, error)
- func (t *DeleteNetworkSelector) FromDeleteNetworkSelector0(v DeleteNetworkSelector0) error
- func (t DeleteNetworkSelector) MarshalJSON() ([]byte, error)
- func (t *DeleteNetworkSelector) MergeDeleteNetworkSelector0(v DeleteNetworkSelector0) error
- func (t *DeleteNetworkSelector) UnmarshalJSON(b []byte) error
- type DeleteNetworkSelector0
- type DeleteSshKeyRequestProto
- type DeleteSshKeyResponse
- type DeleteUserJSONRequestBody
- type DeleteUserRequestProto
- type DeleteUserResponse
- type DeleteUserResponseProto
- type DiskInfo
- type DiskKind
- type DockerRegistryAuth
- func (t DockerRegistryAuth) AsDockerRegistryAuth0() (DockerRegistryAuth0, error)
- func (t *DockerRegistryAuth) FromDockerRegistryAuth0(v DockerRegistryAuth0) error
- func (t DockerRegistryAuth) MarshalJSON() ([]byte, error)
- func (t *DockerRegistryAuth) MergeDockerRegistryAuth0(v DockerRegistryAuth0) error
- func (t *DockerRegistryAuth) UnmarshalJSON(b []byte) error
- type DockerRegistryAuth0
- type DrainNodeJSONRequestBody
- type DrainNodeRequestProto
- type DrainNodeResponse
- type DrainNodeResponseProto
- type EmailVerificationResendRequestProto
- type ExternalTransactionAccountSelector
- func (t ExternalTransactionAccountSelector) AsExternalTransactionAccountSelector0() (ExternalTransactionAccountSelector0, error)
- func (t ExternalTransactionAccountSelector) AsExternalTransactionAccountSelector1() (ExternalTransactionAccountSelector1, error)
- func (t ExternalTransactionAccountSelector) AsExternalTransactionAccountSelector2() (ExternalTransactionAccountSelector2, error)
- func (t ExternalTransactionAccountSelector) AsExternalTransactionAccountSelector3() (ExternalTransactionAccountSelector3, error)
- func (t *ExternalTransactionAccountSelector) FromExternalTransactionAccountSelector0(v ExternalTransactionAccountSelector0) error
- func (t *ExternalTransactionAccountSelector) FromExternalTransactionAccountSelector1(v ExternalTransactionAccountSelector1) error
- func (t *ExternalTransactionAccountSelector) FromExternalTransactionAccountSelector2(v ExternalTransactionAccountSelector2) error
- func (t *ExternalTransactionAccountSelector) FromExternalTransactionAccountSelector3(v ExternalTransactionAccountSelector3) error
- func (t ExternalTransactionAccountSelector) MarshalJSON() ([]byte, error)
- func (t *ExternalTransactionAccountSelector) MergeExternalTransactionAccountSelector0(v ExternalTransactionAccountSelector0) error
- func (t *ExternalTransactionAccountSelector) MergeExternalTransactionAccountSelector1(v ExternalTransactionAccountSelector1) error
- func (t *ExternalTransactionAccountSelector) MergeExternalTransactionAccountSelector2(v ExternalTransactionAccountSelector2) error
- func (t *ExternalTransactionAccountSelector) MergeExternalTransactionAccountSelector3(v ExternalTransactionAccountSelector3) error
- func (t *ExternalTransactionAccountSelector) UnmarshalJSON(b []byte) error
- type ExternalTransactionAccountSelector0
- type ExternalTransactionAccountSelector1
- type ExternalTransactionAccountSelector2
- type ExternalTransactionAccountSelector3
- type ExternalTransactionRequestProto
- type ForceDrainJSONRequestBody
- type ForceDrainRequestProto
- type ForceDrainResponse
- type ForceDrainResponseProto
- type GenerateSshKeyResponseProto
- type GetAccountInfoResponse
- type GetAutoTopUpRecoveryInfoJSONRequestBody
- type GetAutoTopUpRecoveryInfoResponse
- type GetOrCreateStripeCustomerJSONRequestBody
- type GetOrCreateStripeCustomerResponse
- type GetTeamResponse
- type GlobalCapability
- func (t GlobalCapability) AsGlobalCapability0() (GlobalCapability0, error)
- func (t *GlobalCapability) FromGlobalCapability0(v GlobalCapability0) error
- func (t GlobalCapability) MarshalJSON() ([]byte, error)
- func (t *GlobalCapability) MergeGlobalCapability0(v GlobalCapability0) error
- func (t *GlobalCapability) UnmarshalJSON(b []byte) error
- type GlobalCapability0
- type GpuInfo
- type GpuMetrics
- type HttpClient
- func (c *HttpClient) AddSSHKey(name, publicKey string) (*GenerateSshKeyResponseProto, error)
- func (c *HttpClient) Auth() error
- func (c *HttpClient) DeleteSSHKey(id string) error
- func (c *HttpClient) GetInstance(id string) (*InstanceAndUsageInfo, error)
- func (c *HttpClient) GetInstanceIncludingInactive(id string) (*InstanceAndUsageInfo, error)
- func (c *HttpClient) ListInstanceTypes() (*ListInstanceTypesResponseProto, error)
- func (c *HttpClient) ListInstances() (*ListInstancesResponseProto, error)
- func (c *HttpClient) ListRecipes() (*ListRecipesResponseProto, error)
- func (c *HttpClient) ListSSHKeys() ([]SshKey, error)
- func (c *HttpClient) RentPublicInstanceVM(recipe, datacenter, instance, commands, name string, pubKeys []string) (*RentInstanceResponseProto, error)
- func (c *HttpClient) TerminateInstance(id string) error
- type HttpClientOption
- type HttpRequestDoer
- type InstanceAndUsageInfo
- type InstanceBareMetalInfo
- type InstanceConfiguration
- func (t InstanceConfiguration) AsInstanceConfiguration0() (InstanceConfiguration0, error)
- func (t InstanceConfiguration) AsInstanceConfiguration1() (InstanceConfiguration1, error)
- func (t InstanceConfiguration) AsInstanceConfiguration2() (InstanceConfiguration2, error)
- func (t *InstanceConfiguration) FromInstanceConfiguration0(v InstanceConfiguration0) error
- func (t *InstanceConfiguration) FromInstanceConfiguration1(v InstanceConfiguration1) error
- func (t *InstanceConfiguration) FromInstanceConfiguration2(v InstanceConfiguration2) error
- func (t InstanceConfiguration) MarshalJSON() ([]byte, error)
- func (t *InstanceConfiguration) MergeInstanceConfiguration0(v InstanceConfiguration0) error
- func (t *InstanceConfiguration) MergeInstanceConfiguration1(v InstanceConfiguration1) error
- func (t *InstanceConfiguration) MergeInstanceConfiguration2(v InstanceConfiguration2) error
- func (t *InstanceConfiguration) UnmarshalJSON(b []byte) error
- type InstanceConfiguration0
- type InstanceConfiguration1
- type InstanceConfiguration2
- type InstanceContainerInfo
- type InstanceInfo
- type InstanceInfoFlags
- type InstanceLoginInfo
- func (t InstanceLoginInfo) AsInstanceLoginInfo0() (InstanceLoginInfo0, error)
- func (t InstanceLoginInfo) AsInstanceLoginInfo1() (InstanceLoginInfo1, error)
- func (t InstanceLoginInfo) AsInstanceLoginInfo2() (InstanceLoginInfo2, error)
- func (t *InstanceLoginInfo) FromInstanceLoginInfo0(v InstanceLoginInfo0) error
- func (t *InstanceLoginInfo) FromInstanceLoginInfo1(v InstanceLoginInfo1) error
- func (t *InstanceLoginInfo) FromInstanceLoginInfo2(v InstanceLoginInfo2) error
- func (t InstanceLoginInfo) MarshalJSON() ([]byte, error)
- func (t *InstanceLoginInfo) MergeInstanceLoginInfo0(v InstanceLoginInfo0) error
- func (t *InstanceLoginInfo) MergeInstanceLoginInfo1(v InstanceLoginInfo1) error
- func (t *InstanceLoginInfo) MergeInstanceLoginInfo2(v InstanceLoginInfo2) error
- func (t *InstanceLoginInfo) UnmarshalJSON(b []byte) error
- type InstanceLoginInfo0
- type InstanceLoginInfo1
- type InstanceLoginInfo2
- type InstanceMetrics
- type InstanceMetricsJSONRequestBody
- type InstanceMetricsRequestProto
- type InstanceMetricsResponse
- type InstanceMetricsResponseProto
- type InstanceMetricsSelector
- func (t InstanceMetricsSelector) AsInstanceMetricsSelector0() (InstanceMetricsSelector0, error)
- func (t *InstanceMetricsSelector) FromInstanceMetricsSelector0(v InstanceMetricsSelector0) error
- func (t InstanceMetricsSelector) MarshalJSON() ([]byte, error)
- func (t *InstanceMetricsSelector) MergeInstanceMetricsSelector0(v InstanceMetricsSelector0) error
- func (t *InstanceMetricsSelector) UnmarshalJSON(b []byte) error
- type InstanceMetricsSelector0
- type InstanceMode
- type InstanceResourceInfo
- type InstanceSshKeySelector
- func (t InstanceSshKeySelector) AsInstanceSshKeySelector0() (InstanceSshKeySelector0, error)
- func (t InstanceSshKeySelector) AsInstanceSshKeySelector1() (InstanceSshKeySelector1, error)
- func (t InstanceSshKeySelector) AsInstanceSshKeySelector2() (InstanceSshKeySelector2, error)
- func (t *InstanceSshKeySelector) FromInstanceSshKeySelector0(v InstanceSshKeySelector0) error
- func (t *InstanceSshKeySelector) FromInstanceSshKeySelector1(v InstanceSshKeySelector1) error
- func (t *InstanceSshKeySelector) FromInstanceSshKeySelector2(v InstanceSshKeySelector2) error
- func (t InstanceSshKeySelector) MarshalJSON() ([]byte, error)
- func (t *InstanceSshKeySelector) MergeInstanceSshKeySelector0(v InstanceSshKeySelector0) error
- func (t *InstanceSshKeySelector) MergeInstanceSshKeySelector1(v InstanceSshKeySelector1) error
- func (t *InstanceSshKeySelector) MergeInstanceSshKeySelector2(v InstanceSshKeySelector2) error
- func (t *InstanceSshKeySelector) UnmarshalJSON(b []byte) error
- type InstanceSshKeySelector0
- type InstanceSshKeySelector1
- type InstanceSshKeySelector2
- type InstanceStatus
- type InstanceType
- type InstanceTypeDatacenter
- type InstanceTypeInfo
- type InstanceTypeResponseProto
- type InstanceTypeSelector
- func (t InstanceTypeSelector) AsInstanceTypeSelector0() (InstanceTypeSelector0, error)
- func (t InstanceTypeSelector) AsInstanceTypeSelector1() (InstanceTypeSelector1, error)
- func (t InstanceTypeSelector) AsInstanceTypeSelector2() (InstanceTypeSelector2, error)
- func (t InstanceTypeSelector) AsInstanceTypeSelector3() (InstanceTypeSelector3, error)
- func (t *InstanceTypeSelector) FromInstanceTypeSelector0(v InstanceTypeSelector0) error
- func (t *InstanceTypeSelector) FromInstanceTypeSelector1(v InstanceTypeSelector1) error
- func (t *InstanceTypeSelector) FromInstanceTypeSelector2(v InstanceTypeSelector2) error
- func (t *InstanceTypeSelector) FromInstanceTypeSelector3(v InstanceTypeSelector3) error
- func (t InstanceTypeSelector) MarshalJSON() ([]byte, error)
- func (t *InstanceTypeSelector) MergeInstanceTypeSelector0(v InstanceTypeSelector0) error
- func (t *InstanceTypeSelector) MergeInstanceTypeSelector1(v InstanceTypeSelector1) error
- func (t *InstanceTypeSelector) MergeInstanceTypeSelector2(v InstanceTypeSelector2) error
- func (t *InstanceTypeSelector) MergeInstanceTypeSelector3(v InstanceTypeSelector3) error
- func (t *InstanceTypeSelector) UnmarshalJSON(b []byte) error
- type InstanceTypeSelector0
- type InstanceTypeSelector1
- type InstanceTypeSelector2
- type InstanceTypeSelector3
- type InstanceUsageInfo
- type InstanceUserInstructions
- type InstanceVariant
- type InstanceVariantInfo
- type InstanceVariantRawInfo
- type InstanceVariantResponseProto
- type InstanceVariantSelector
- func (t InstanceVariantSelector) AsInstanceVariantSelector0() (InstanceVariantSelector0, error)
- func (t *InstanceVariantSelector) FromInstanceVariantSelector0(v InstanceVariantSelector0) error
- func (t InstanceVariantSelector) MarshalJSON() ([]byte, error)
- func (t *InstanceVariantSelector) MergeInstanceVariantSelector0(v InstanceVariantSelector0) error
- func (t *InstanceVariantSelector) UnmarshalJSON(b []byte) error
- type InstanceVariantSelector0
- type InstanceVirtualMachineInfo
- type InstanceVolumeSelector
- func (t InstanceVolumeSelector) AsInstanceVolumeSelector0() (InstanceVolumeSelector0, error)
- func (t InstanceVolumeSelector) AsInstanceVolumeSelector1() (InstanceVolumeSelector1, error)
- func (t *InstanceVolumeSelector) FromInstanceVolumeSelector0(v InstanceVolumeSelector0) error
- func (t *InstanceVolumeSelector) FromInstanceVolumeSelector1(v InstanceVolumeSelector1) error
- func (t InstanceVolumeSelector) MarshalJSON() ([]byte, error)
- func (t *InstanceVolumeSelector) MergeInstanceVolumeSelector0(v InstanceVolumeSelector0) error
- func (t *InstanceVolumeSelector) MergeInstanceVolumeSelector1(v InstanceVolumeSelector1) error
- func (t *InstanceVolumeSelector) UnmarshalJSON(b []byte) error
- type InstanceVolumeSelector0
- type InstanceVolumeSelector1
- type InstancesSelector
- func (t InstancesSelector) AsInstancesSelector0() (InstancesSelector0, error)
- func (t InstancesSelector) AsInstancesSelector1() (InstancesSelector1, error)
- func (t InstancesSelector) AsInstancesSelector2() (InstancesSelector2, error)
- func (t InstancesSelector) AsInstancesSelector3() (InstancesSelector3, error)
- func (t InstancesSelector) AsInstancesSelector4() (InstancesSelector4, error)
- func (t *InstancesSelector) FromInstancesSelector0(v InstancesSelector0) error
- func (t *InstancesSelector) FromInstancesSelector1(v InstancesSelector1) error
- func (t *InstancesSelector) FromInstancesSelector2(v InstancesSelector2) error
- func (t *InstancesSelector) FromInstancesSelector3(v InstancesSelector3) error
- func (t *InstancesSelector) FromInstancesSelector4(v InstancesSelector4) error
- func (t InstancesSelector) MarshalJSON() ([]byte, error)
- func (t *InstancesSelector) MergeInstancesSelector0(v InstancesSelector0) error
- func (t *InstancesSelector) MergeInstancesSelector1(v InstancesSelector1) error
- func (t *InstancesSelector) MergeInstancesSelector2(v InstancesSelector2) error
- func (t *InstancesSelector) MergeInstancesSelector3(v InstancesSelector3) error
- func (t *InstancesSelector) MergeInstancesSelector4(v InstancesSelector4) error
- func (t *InstancesSelector) UnmarshalJSON(b []byte) error
- type InstancesSelector0
- type InstancesSelector1
- type InstancesSelector2
- type InstancesSelector3
- type InstancesSelector4
- type IpAvailability
- type KeyError
- type KeyResult
- type KeyStatus
- type ListApiKeysJSONRequestBody
- type ListApiKeysRequestProto
- type ListApiKeysResponse
- type ListApiKeysResponseProto
- type ListCapabilitiesResponse
- type ListInstanceTypesJSONRequestBody
- type ListInstanceTypesRequestProto
- type ListInstanceTypesResponse
- type ListInstanceTypesResponseProto
- type ListInstancesJSONRequestBody
- type ListInstancesRequestProto
- type ListInstancesResponse
- type ListInstancesResponseProto
- type ListNetworksJSONRequestBody
- type ListNetworksRequestProto
- type ListNetworksResponse
- type ListNetworksResponseProto
- type ListNodesJSONRequestBody
- type ListNodesResponse
- type ListProviderNodesRequestProto
- type ListProviderNodesResponseProto
- type ListProvidersJSONRequestBody
- type ListProvidersRequestProto
- type ListProvidersResponse
- type ListProvidersResponseProto
- type ListRecipesResponse
- type ListRecipesResponseProto
- type ListReservationTypesResponse
- type ListReservationTypesResponseProto
- type ListReservationsJSONRequestBody
- type ListReservationsRequestProto
- type ListReservationsResponse
- type ListReservationsResponseProto
- type ListSavedEnvironmentsJSONRequestBody
- type ListSavedEnvironmentsRequestProto
- type ListSavedEnvironmentsResponse
- type ListSavedEnvironmentsResponseProto
- type ListSshKeysResponse
- type ListSshKeysResponseProto
- type ListTeamsJSONRequestBody
- type ListTeamsRequestProto
- type ListTeamsResponse
- type ListTeamsResponseProto
- type ListTransactionsResponse
- type ListUsersJSONRequestBody
- type ListUsersRequestProto
- type ListUsersResponse
- type ListUsersResponseProto
- type ListVolumesJSONRequestBody
- type ListVolumesRequestProto
- type ListVolumesResponse
- type ListVolumesResponseProto
- type LoginJSONRequestBody
- type LoginResponse
- type LoginUserRequestProto
- type LoginUserResponseProto
- type LogoutResponse
- type MeResponse
- type MeResponseProto
- type NetworkExecutorInfo
- type NetworkInfo
- type NetworkIpRange
- type NetworkSelector
- func (t NetworkSelector) AsNetworkSelector0() (NetworkSelector0, error)
- func (t NetworkSelector) AsNetworkSelector1() (NetworkSelector1, error)
- func (t NetworkSelector) AsNetworkSelector2() (NetworkSelector2, error)
- func (t NetworkSelector) AsNetworkSelector3() (NetworkSelector3, error)
- func (t *NetworkSelector) FromNetworkSelector0(v NetworkSelector0) error
- func (t *NetworkSelector) FromNetworkSelector1(v NetworkSelector1) error
- func (t *NetworkSelector) FromNetworkSelector2(v NetworkSelector2) error
- func (t *NetworkSelector) FromNetworkSelector3(v NetworkSelector3) error
- func (t NetworkSelector) MarshalJSON() ([]byte, error)
- func (t *NetworkSelector) MergeNetworkSelector0(v NetworkSelector0) error
- func (t *NetworkSelector) MergeNetworkSelector1(v NetworkSelector1) error
- func (t *NetworkSelector) MergeNetworkSelector2(v NetworkSelector2) error
- func (t *NetworkSelector) MergeNetworkSelector3(v NetworkSelector3) error
- func (t *NetworkSelector) UnmarshalJSON(b []byte) error
- type NetworkSelector0
- type NetworkSelector1
- type NetworkSelector2
- type NetworkSelector3
- type NodeAdminSelector
- func (t NodeAdminSelector) AsNodeAdminSelector0() (NodeAdminSelector0, error)
- func (t *NodeAdminSelector) FromNodeAdminSelector0(v NodeAdminSelector0) error
- func (t NodeAdminSelector) MarshalJSON() ([]byte, error)
- func (t *NodeAdminSelector) MergeNodeAdminSelector0(v NodeAdminSelector0) error
- func (t *NodeAdminSelector) UnmarshalJSON(b []byte) error
- type NodeAdminSelector0
- type NodeDrainInfo
- type NodeDrainResult
- type NodeDrainState
- type NodeForceDrainResult
- type NodeHealthStatus
- func (t NodeHealthStatus) AsNodeHealthStatus0() (NodeHealthStatus0, error)
- func (t NodeHealthStatus) AsNodeHealthStatus1() (NodeHealthStatus1, error)
- func (t *NodeHealthStatus) FromNodeHealthStatus0(v NodeHealthStatus0) error
- func (t *NodeHealthStatus) FromNodeHealthStatus1(v NodeHealthStatus1) error
- func (t NodeHealthStatus) MarshalJSON() ([]byte, error)
- func (t *NodeHealthStatus) MergeNodeHealthStatus0(v NodeHealthStatus0) error
- func (t *NodeHealthStatus) MergeNodeHealthStatus1(v NodeHealthStatus1) error
- func (t *NodeHealthStatus) UnmarshalJSON(b []byte) error
- type NodeHealthStatus0
- type NodeHealthStatus1
- type NodeMemory
- type NodeMetrics
- type NodeMetricsByIdResponse
- type NodeMetricsJSONRequestBody
- type NodeMetricsRequestProto
- type NodeMetricsResponse
- type NodeMetricsResponseProto
- type NodeMetricsSelector
- func (t NodeMetricsSelector) AsNodeMetricsSelector0() (NodeMetricsSelector0, error)
- func (t *NodeMetricsSelector) FromNodeMetricsSelector0(v NodeMetricsSelector0) error
- func (t NodeMetricsSelector) MarshalJSON() ([]byte, error)
- func (t *NodeMetricsSelector) MergeNodeMetricsSelector0(v NodeMetricsSelector0) error
- func (t *NodeMetricsSelector) UnmarshalJSON(b []byte) error
- type NodeMetricsSelector0
- type NodeSelector
- func (t NodeSelector) AsNodeSelector0() (NodeSelector0, error)
- func (t NodeSelector) AsNodeSelector1() (NodeSelector1, error)
- func (t NodeSelector) AsNodeSelector2() (NodeSelector2, error)
- func (t *NodeSelector) FromNodeSelector0(v NodeSelector0) error
- func (t *NodeSelector) FromNodeSelector1(v NodeSelector1) error
- func (t *NodeSelector) FromNodeSelector2(v NodeSelector2) error
- func (t NodeSelector) MarshalJSON() ([]byte, error)
- func (t *NodeSelector) MergeNodeSelector0(v NodeSelector0) error
- func (t *NodeSelector) MergeNodeSelector1(v NodeSelector1) error
- func (t *NodeSelector) MergeNodeSelector2(v NodeSelector2) error
- func (t *NodeSelector) UnmarshalJSON(b []byte) error
- type NodeSelector0
- type NodeSelector1
- type NodeSelector2
- type NodeStatus
- type PasswordResetRequestProto
- type PasswordResetVerifyRequestProto
- type PauseInstancesRequestProto
- type PauseVmJSONRequestBody
- type PauseVmResponse
- type Principal
- func (t Principal) AsPrincipal0() (Principal0, error)
- func (t Principal) AsPrincipal1() (Principal1, error)
- func (t *Principal) FromPrincipal0(v Principal0) error
- func (t *Principal) FromPrincipal1(v Principal1) error
- func (t Principal) MarshalJSON() ([]byte, error)
- func (t *Principal) MergePrincipal0(v Principal0) error
- func (t *Principal) MergePrincipal1(v Principal1) error
- func (t *Principal) UnmarshalJSON(b []byte) error
- type Principal0
- type Principal1
- type PromoCodeRequestProto
- type ProviderNodeHardwareInfo
- type ProviderNodeInfo
- type ProviderNodeUtilizationInfo
- type ProviderSelector
- func (t ProviderSelector) AsProviderSelector0() (ProviderSelector0, error)
- func (t ProviderSelector) AsProviderSelector1() (ProviderSelector1, error)
- func (t *ProviderSelector) FromProviderSelector0(v ProviderSelector0) error
- func (t *ProviderSelector) FromProviderSelector1(v ProviderSelector1) error
- func (t ProviderSelector) MarshalJSON() ([]byte, error)
- func (t *ProviderSelector) MergeProviderSelector0(v ProviderSelector0) error
- func (t *ProviderSelector) MergeProviderSelector1(v ProviderSelector1) error
- func (t *ProviderSelector) UnmarshalJSON(b []byte) error
- type ProviderSelector0
- type ProviderSelector1
- type Quota
- type QuotaResources
- type Recipe
- type RecipeDetails
- func (t RecipeDetails) AsRecipeDetails0() (RecipeDetails0, error)
- func (t RecipeDetails) AsRecipeDetails1() (RecipeDetails1, error)
- func (t *RecipeDetails) FromRecipeDetails0(v RecipeDetails0) error
- func (t *RecipeDetails) FromRecipeDetails1(v RecipeDetails1) error
- func (t RecipeDetails) MarshalJSON() ([]byte, error)
- func (t *RecipeDetails) MergeRecipeDetails0(v RecipeDetails0) error
- func (t *RecipeDetails) MergeRecipeDetails1(v RecipeDetails1) error
- func (t *RecipeDetails) UnmarshalJSON(b []byte) error
- type RecipeDetails0
- type RecipeDetails1
- type RecipeGroup
- type RecipeSelector
- func (t RecipeSelector) AsRecipeSelector0() (RecipeSelector0, error)
- func (t RecipeSelector) AsRecipeSelector1() (RecipeSelector1, error)
- func (t RecipeSelector) AsRecipeSelector2() (RecipeSelector2, error)
- func (t *RecipeSelector) FromRecipeSelector0(v RecipeSelector0) error
- func (t *RecipeSelector) FromRecipeSelector1(v RecipeSelector1) error
- func (t *RecipeSelector) FromRecipeSelector2(v RecipeSelector2) error
- func (t RecipeSelector) MarshalJSON() ([]byte, error)
- func (t *RecipeSelector) MergeRecipeSelector0(v RecipeSelector0) error
- func (t *RecipeSelector) MergeRecipeSelector1(v RecipeSelector1) error
- func (t *RecipeSelector) MergeRecipeSelector2(v RecipeSelector2) error
- func (t *RecipeSelector) UnmarshalJSON(b []byte) error
- type RecipeSelector0
- type RecipeSelector1
- type RecipeSelector2
- type RegisterUserJSONRequestBody
- type RegisterUserRequestProto
- type RegisterUserResponse
- type RemoveInstanceTypeJSONRequestBody
- type RemoveInstanceTypeRequestProto
- type RemoveInstanceTypeResponse
- type RemoveInstanceVariantJSONRequestBody
- type RemoveInstanceVariantRequestProto
- type RemoveInstanceVariantResponse
- type RemoveRecipeJSONRequestBody
- type RemoveRecipeOrGroupRequestProto
- type RemoveRecipeResponse
- type RemoveTeamMemberJSONRequestBody
- type RemoveTeamMemberRequestProto
- type RemoveTeamMemberResponse
- type RentInstanceJSONRequestBody
- type RentInstanceRequestProto
- type RentInstanceResponse
- type RentInstanceResponseProto
- type RentalFailureInfo
- type RequestEditorFn
- type RequestPasswordResetJSONRequestBody
- type RequestPasswordResetResponse
- type RequestedNumaConfig
- type ResendVerificationJSONRequestBody
- type ResendVerificationResponse
- type Reservation
- type ReservationDates
- type ReservationParameters
- func (t ReservationParameters) AsReservationParameters0() (ReservationParameters0, error)
- func (t ReservationParameters) AsReservationParameters1() (ReservationParameters1, error)
- func (t *ReservationParameters) FromReservationParameters0(v ReservationParameters0) error
- func (t *ReservationParameters) FromReservationParameters1(v ReservationParameters1) error
- func (t ReservationParameters) MarshalJSON() ([]byte, error)
- func (t *ReservationParameters) MergeReservationParameters0(v ReservationParameters0) error
- func (t *ReservationParameters) MergeReservationParameters1(v ReservationParameters1) error
- func (t *ReservationParameters) UnmarshalJSON(b []byte) error
- type ReservationParameters0
- type ReservationParameters1
- type ReservationResources
- type ReservationSelector
- func (t ReservationSelector) AsReservationSelector0() (ReservationSelector0, error)
- func (t ReservationSelector) AsReservationSelector1() (ReservationSelector1, error)
- func (t *ReservationSelector) FromReservationSelector0(v ReservationSelector0) error
- func (t *ReservationSelector) FromReservationSelector1(v ReservationSelector1) error
- func (t ReservationSelector) MarshalJSON() ([]byte, error)
- func (t *ReservationSelector) MergeReservationSelector0(v ReservationSelector0) error
- func (t *ReservationSelector) MergeReservationSelector1(v ReservationSelector1) error
- func (t *ReservationSelector) UnmarshalJSON(b []byte) error
- type ReservationSelector0
- type ReservationSelector1
- type ReservationType
- type ResetInstancesRequestProto
- type ResetPasswordJSONRequestBody
- type ResetPasswordResponse
- type ResetVmJSONRequestBody
- type ResetVmResponse
- type ResourceSpec
- type ResourceType
- type ResponseStatus
- type ResumeInstancesRequestProto
- type ResumeNodeJSONRequestBody
- type ResumeNodeRequestProto
- type ResumeNodeResponse
- type ResumeNodeResponseProto
- type ResumeVmJSONRequestBody
- type ResumeVmResponse
- type SavedEnvironment
- type SearchResultEntry
- type SearchTeamsJSONRequestBody
- type SearchTeamsRequestProto
- type SearchTeamsResponse
- type SearchTeamsResponseProto
- type SearchUsersJSONRequestBody
- type SearchUsersRequestProto
- type SearchUsersResponse
- type SearchUsersResponseProto
- type SelectAndDeleteApiKeysJSONRequestBody
- type SelectAndDeleteApiKeysResponse
- type SelectAndDeleteSshKeyJSONRequestBody
- type SelectAndDeleteSshKeyResponse
- type SelectorScope
- func (t SelectorScope) AsSelectorScope0() (SelectorScope0, error)
- func (t SelectorScope) AsSelectorScope1() (SelectorScope1, error)
- func (t SelectorScope) AsSelectorScope2() (SelectorScope2, error)
- func (t SelectorScope) AsSelectorScope3() (SelectorScope3, error)
- func (t *SelectorScope) FromSelectorScope0(v SelectorScope0) error
- func (t *SelectorScope) FromSelectorScope1(v SelectorScope1) error
- func (t *SelectorScope) FromSelectorScope2(v SelectorScope2) error
- func (t *SelectorScope) FromSelectorScope3(v SelectorScope3) error
- func (t SelectorScope) MarshalJSON() ([]byte, error)
- func (t *SelectorScope) MergeSelectorScope0(v SelectorScope0) error
- func (t *SelectorScope) MergeSelectorScope1(v SelectorScope1) error
- func (t *SelectorScope) MergeSelectorScope2(v SelectorScope2) error
- func (t *SelectorScope) MergeSelectorScope3(v SelectorScope3) error
- func (t *SelectorScope) UnmarshalJSON(b []byte) error
- type SelectorScope0
- type SelectorScope1
- type SelectorScope2
- type SelectorScope3
- type SendUsersMessageJSONRequestBody
- type SendUsersMessageRequestProto
- type SendUsersMessageResponse
- type SendUsersMessageResponseProto
- type ServiceCharge
- type ServiceChargeRequestProto
- type ServiceChargeResponseProto
- type SetMarketplaceListingJSONRequestBody
- type SetMarketplaceListingResponse
- type SetNodeMarketplaceListingRequestProto
- type SetNodeMarketplaceListingResponseProto
- type SshKey
- type SshKeySelector
- func (t SshKeySelector) AsSshKeySelector0() (SshKeySelector0, error)
- func (t SshKeySelector) AsSshKeySelector1() (SshKeySelector1, error)
- func (t *SshKeySelector) FromSshKeySelector0(v SshKeySelector0) error
- func (t *SshKeySelector) FromSshKeySelector1(v SshKeySelector1) error
- func (t SshKeySelector) MarshalJSON() ([]byte, error)
- func (t *SshKeySelector) MergeSshKeySelector0(v SshKeySelector0) error
- func (t *SshKeySelector) MergeSshKeySelector1(v SshKeySelector1) error
- func (t *SshKeySelector) UnmarshalJSON(b []byte) error
- type SshKeySelector0
- type SshKeySelector1
- type StartInstancesRequestProto
- type StartVmJSONRequestBody
- type StartVmResponse
- type StatusSelector
- type StopInstancesRequestProto
- type StopVmJSONRequestBody
- type StopVmResponse
- type StripeCustomerRequestProto
- type StripeCustomerResponseProto
- type StripeTransactionInfo
- func (t StripeTransactionInfo) AsStripeTransactionInfo0() (StripeTransactionInfo0, error)
- func (t StripeTransactionInfo) AsStripeTransactionInfo1() (StripeTransactionInfo1, error)
- func (t StripeTransactionInfo) AsStripeTransactionInfo2() (StripeTransactionInfo2, error)
- func (t *StripeTransactionInfo) FromStripeTransactionInfo0(v StripeTransactionInfo0) error
- func (t *StripeTransactionInfo) FromStripeTransactionInfo1(v StripeTransactionInfo1) error
- func (t *StripeTransactionInfo) FromStripeTransactionInfo2(v StripeTransactionInfo2) error
- func (t StripeTransactionInfo) MarshalJSON() ([]byte, error)
- func (t *StripeTransactionInfo) MergeStripeTransactionInfo0(v StripeTransactionInfo0) error
- func (t *StripeTransactionInfo) MergeStripeTransactionInfo1(v StripeTransactionInfo1) error
- func (t *StripeTransactionInfo) MergeStripeTransactionInfo2(v StripeTransactionInfo2) error
- func (t *StripeTransactionInfo) UnmarshalJSON(b []byte) error
- type StripeTransactionInfo0
- type StripeTransactionInfo1
- type StripeTransactionInfo2
- type Team
- type TeamAccountInfo
- type TeamAssignment
- func (t TeamAssignment) AsTeamAssignment0() (TeamAssignment0, error)
- func (t TeamAssignment) AsTeamAssignment1() (TeamAssignment1, error)
- func (t *TeamAssignment) FromTeamAssignment0(v TeamAssignment0) error
- func (t *TeamAssignment) FromTeamAssignment1(v TeamAssignment1) error
- func (t TeamAssignment) MarshalJSON() ([]byte, error)
- func (t *TeamAssignment) MergeTeamAssignment0(v TeamAssignment0) error
- func (t *TeamAssignment) MergeTeamAssignment1(v TeamAssignment1) error
- func (t *TeamAssignment) UnmarshalJSON(b []byte) error
- type TeamAssignment0
- type TeamAssignment1
- type TeamInfo
- type TeamListSelector
- func (t TeamListSelector) AsTeamListSelector0() (TeamListSelector0, error)
- func (t TeamListSelector) AsTeamListSelector1() (TeamListSelector1, error)
- func (t TeamListSelector) AsTeamListSelector2() (TeamListSelector2, error)
- func (t TeamListSelector) AsTeamListSelector3() (TeamListSelector3, error)
- func (t TeamListSelector) AsTeamListSelector4() (TeamListSelector4, error)
- func (t *TeamListSelector) FromTeamListSelector0(v TeamListSelector0) error
- func (t *TeamListSelector) FromTeamListSelector1(v TeamListSelector1) error
- func (t *TeamListSelector) FromTeamListSelector2(v TeamListSelector2) error
- func (t *TeamListSelector) FromTeamListSelector3(v TeamListSelector3) error
- func (t *TeamListSelector) FromTeamListSelector4(v TeamListSelector4) error
- func (t TeamListSelector) MarshalJSON() ([]byte, error)
- func (t *TeamListSelector) MergeTeamListSelector0(v TeamListSelector0) error
- func (t *TeamListSelector) MergeTeamListSelector1(v TeamListSelector1) error
- func (t *TeamListSelector) MergeTeamListSelector2(v TeamListSelector2) error
- func (t *TeamListSelector) MergeTeamListSelector3(v TeamListSelector3) error
- func (t *TeamListSelector) MergeTeamListSelector4(v TeamListSelector4) error
- func (t *TeamListSelector) UnmarshalJSON(b []byte) error
- type TeamListSelector0
- type TeamListSelector1
- type TeamListSelector2
- type TeamListSelector3
- type TeamListSelector4
- type TeamMember
- type TeamMemberInvite
- type TeamMemberOrInviteResponseProto
- type TeamMemberOrInviteResponseProtoData0
- type TeamMemberOrInviteResponseProtoData1
- type TeamMemberOrInviteResponseProto_Data
- func (t TeamMemberOrInviteResponseProto_Data) AsTeamMemberOrInviteResponseProtoData0() (TeamMemberOrInviteResponseProtoData0, error)
- func (t TeamMemberOrInviteResponseProto_Data) AsTeamMemberOrInviteResponseProtoData1() (TeamMemberOrInviteResponseProtoData1, error)
- func (t *TeamMemberOrInviteResponseProto_Data) FromTeamMemberOrInviteResponseProtoData0(v TeamMemberOrInviteResponseProtoData0) error
- func (t *TeamMemberOrInviteResponseProto_Data) FromTeamMemberOrInviteResponseProtoData1(v TeamMemberOrInviteResponseProtoData1) error
- func (t TeamMemberOrInviteResponseProto_Data) MarshalJSON() ([]byte, error)
- func (t *TeamMemberOrInviteResponseProto_Data) MergeTeamMemberOrInviteResponseProtoData0(v TeamMemberOrInviteResponseProtoData0) error
- func (t *TeamMemberOrInviteResponseProto_Data) MergeTeamMemberOrInviteResponseProtoData1(v TeamMemberOrInviteResponseProtoData1) error
- func (t *TeamMemberOrInviteResponseProto_Data) UnmarshalJSON(b []byte) error
- type TeamMemberSelector
- func (t TeamMemberSelector) AsTeamMemberSelector0() (TeamMemberSelector0, error)
- func (t TeamMemberSelector) AsTeamMemberSelector1() (TeamMemberSelector1, error)
- func (t *TeamMemberSelector) FromTeamMemberSelector0(v TeamMemberSelector0) error
- func (t *TeamMemberSelector) FromTeamMemberSelector1(v TeamMemberSelector1) error
- func (t TeamMemberSelector) MarshalJSON() ([]byte, error)
- func (t *TeamMemberSelector) MergeTeamMemberSelector0(v TeamMemberSelector0) error
- func (t *TeamMemberSelector) MergeTeamMemberSelector1(v TeamMemberSelector1) error
- func (t *TeamMemberSelector) UnmarshalJSON(b []byte) error
- type TeamMemberSelector0
- type TeamMemberSelector1
- type TeamResponseProto
- type TeamRole
- type TeamSearchResultEntry
- type TerminateInstancesJSONRequestBody
- type TerminateInstancesRequestProto
- type TerminateInstancesResponse
- type Transaction
- type TransactionArrayProto
- type TransactionInfo
- func (t TransactionInfo) AsTransactionInfo0() (TransactionInfo0, error)
- func (t TransactionInfo) AsTransactionInfo1() (TransactionInfo1, error)
- func (t TransactionInfo) AsTransactionInfo2() (TransactionInfo2, error)
- func (t TransactionInfo) AsTransactionInfo3() (TransactionInfo3, error)
- func (t TransactionInfo) AsTransactionInfo4() (TransactionInfo4, error)
- func (t TransactionInfo) AsTransactionInfo5() (TransactionInfo5, error)
- func (t TransactionInfo) AsTransactionInfo6() (TransactionInfo6, error)
- func (t TransactionInfo) AsTransactionInfo7() (TransactionInfo7, error)
- func (t *TransactionInfo) FromTransactionInfo0(v TransactionInfo0) error
- func (t *TransactionInfo) FromTransactionInfo1(v TransactionInfo1) error
- func (t *TransactionInfo) FromTransactionInfo2(v TransactionInfo2) error
- func (t *TransactionInfo) FromTransactionInfo3(v TransactionInfo3) error
- func (t *TransactionInfo) FromTransactionInfo4(v TransactionInfo4) error
- func (t *TransactionInfo) FromTransactionInfo5(v TransactionInfo5) error
- func (t *TransactionInfo) FromTransactionInfo6(v TransactionInfo6) error
- func (t *TransactionInfo) FromTransactionInfo7(v TransactionInfo7) error
- func (t TransactionInfo) MarshalJSON() ([]byte, error)
- func (t *TransactionInfo) MergeTransactionInfo0(v TransactionInfo0) error
- func (t *TransactionInfo) MergeTransactionInfo1(v TransactionInfo1) error
- func (t *TransactionInfo) MergeTransactionInfo2(v TransactionInfo2) error
- func (t *TransactionInfo) MergeTransactionInfo3(v TransactionInfo3) error
- func (t *TransactionInfo) MergeTransactionInfo4(v TransactionInfo4) error
- func (t *TransactionInfo) MergeTransactionInfo5(v TransactionInfo5) error
- func (t *TransactionInfo) MergeTransactionInfo6(v TransactionInfo6) error
- func (t *TransactionInfo) MergeTransactionInfo7(v TransactionInfo7) error
- func (t *TransactionInfo) UnmarshalJSON(b []byte) error
- type TransactionInfo0
- type TransactionInfo1
- type TransactionInfo2
- type TransactionInfo3
- type TransactionInfo4
- type TransactionInfo5
- type TransactionInfo6
- type TransactionInfo7
- type UpdateActiveReservationJSONRequestBody
- type UpdateActiveReservationResponse
- type UpdateApiKeysJSONRequestBody
- type UpdateApiKeysRequestProto
- type UpdateApiKeysResponse
- type UpdateApiKeysResponseProto
- type UpdateAutoTopUpJSONRequestBody
- type UpdateAutoTopUpResponse
- type UpdateCreditLimitJSONRequestBody
- type UpdateCreditLimitResponse
- type UpdateInstanceTypeJSONRequestBody
- type UpdateInstanceTypeRequestProto
- type UpdateInstanceTypeResponse
- type UpdateInstanceVariantJSONRequestBody
- type UpdateInstanceVariantRequestProto
- type UpdateInstanceVariantResponse
- type UpdateNetworkJSONRequestBody
- type UpdateNetworkRequestProto
- type UpdateNetworkResponse
- type UpdateNetworkResponseProto
- type UpdateNetworkSelector
- func (t UpdateNetworkSelector) AsUpdateNetworkSelector0() (UpdateNetworkSelector0, error)
- func (t *UpdateNetworkSelector) FromUpdateNetworkSelector0(v UpdateNetworkSelector0) error
- func (t UpdateNetworkSelector) MarshalJSON() ([]byte, error)
- func (t *UpdateNetworkSelector) MergeUpdateNetworkSelector0(v UpdateNetworkSelector0) error
- func (t *UpdateNetworkSelector) UnmarshalJSON(b []byte) error
- type UpdateNetworkSelector0
- type UpdateProviderNodeInstanceTypeJSONRequestBody
- type UpdateProviderNodeInstanceTypeRequestProto
- type UpdateProviderNodeInstanceTypeResponse
- type UpdateReservationRequestProto
- type UpdateReservationResponseProto
- type UpdateTeamMembershipJSONRequestBody
- type UpdateTeamMembershipRequestProto
- type UpdateTeamMembershipResponse
- type UpdateUsersCreditLimitRequestProto
- type UpdateUsersCreditLimitResponseProto
- type UpdateVolumeJSONRequestBody
- type UpdateVolumeRequestProto
- type UpdateVolumeResponse
- type UpdateVolumeResponseProto
- type UserAccountInfo
- type UserDeletionAnonymizedCounts
- type UserDeletionHardCounts
- type UserDeletionReport
- type UserInfo
- type UserSelector
- func (t UserSelector) AsUserSelector0() (UserSelector0, error)
- func (t UserSelector) AsUserSelector1() (UserSelector1, error)
- func (t UserSelector) AsUserSelector2() (UserSelector2, error)
- func (t UserSelector) AsUserSelector3() (UserSelector3, error)
- func (t *UserSelector) FromUserSelector0(v UserSelector0) error
- func (t *UserSelector) FromUserSelector1(v UserSelector1) error
- func (t *UserSelector) FromUserSelector2(v UserSelector2) error
- func (t *UserSelector) FromUserSelector3(v UserSelector3) error
- func (t UserSelector) MarshalJSON() ([]byte, error)
- func (t *UserSelector) MergeUserSelector0(v UserSelector0) error
- func (t *UserSelector) MergeUserSelector1(v UserSelector1) error
- func (t *UserSelector) MergeUserSelector2(v UserSelector2) error
- func (t *UserSelector) MergeUserSelector3(v UserSelector3) error
- func (t *UserSelector) UnmarshalJSON(b []byte) error
- type UserSelector0
- type UserSelector1
- type UserSelector2
- type UserSelector3
- type VerifyEmailParams
- type VerifyEmailResponse
- type VirtDomainState
- type VolumeInfo
- type VolumeMount
- type VolumeSelector
- func (t VolumeSelector) AsVolumeSelector0() (VolumeSelector0, error)
- func (t VolumeSelector) AsVolumeSelector1() (VolumeSelector1, error)
- func (t VolumeSelector) AsVolumeSelector2() (VolumeSelector2, error)
- func (t *VolumeSelector) FromVolumeSelector0(v VolumeSelector0) error
- func (t *VolumeSelector) FromVolumeSelector1(v VolumeSelector1) error
- func (t *VolumeSelector) FromVolumeSelector2(v VolumeSelector2) error
- func (t VolumeSelector) MarshalJSON() ([]byte, error)
- func (t *VolumeSelector) MergeVolumeSelector0(v VolumeSelector0) error
- func (t *VolumeSelector) MergeVolumeSelector1(v VolumeSelector1) error
- func (t *VolumeSelector) MergeVolumeSelector2(v VolumeSelector2) error
- func (t *VolumeSelector) UnmarshalJSON(b []byte) error
- type VolumeSelector0
- type VolumeSelector1
- type VolumeSelector2
- type VolumeStatus
- type VolumeTypeAvailability
Constants ¶
const ( Api_keyScopes = "api_key.Scopes" Bearer_authScopes = "bearer_auth.Scopes" TokenScopes = "token.Scopes" )
const ( ProtoUpcoming = `~upcoming` Proto20260510 = "2026-05-10" Proto20250610 = "2025-06-10" Proto20250529 = "2025-05-29" Proto20250321 = "2025-03-21" Proto20250210 = "2025-02-10" Proto20240922 = "2024-09-22" )
const DefaultRequestTimeout = 30 * time.Second
DefaultRequestTimeout caps how long a single request waits for response headers. It must tolerate a heavy team-wide /instances/list (the ByTeamId path returns every team instance); the old 10s tripped on large teams and hard-failed Read, wedging the whole apply. Override with WithTimeout.
const (
Endpoint = "https://api.cloudrift.ai"
)
Variables ¶
var ErrNotFound = errors.New("resource not found")
ErrNotFound is returned when the requested resource is not found.
If the endpoint of the CloudRift server returns a HTTP cod 404 this will be interpreted as the ErrNotFound. Or the resource ById returns an empty response/Inactive resource.
Functions ¶
func DoRequestWithApiToken ¶
func NewAddApiKeyRequest ¶
func NewAddApiKeyRequest(server string, body AddApiKeyJSONRequestBody) (*http.Request, error)
NewAddApiKeyRequest calls the generic AddApiKey builder with application/json body
func NewAddApiKeyRequestWithBody ¶
func NewAddApiKeyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewAddApiKeyRequestWithBody generates requests for AddApiKey with any type of body
func NewAddInstanceTypeRequest ¶ added in v0.2.0
func NewAddInstanceTypeRequest(server string, body AddInstanceTypeJSONRequestBody) (*http.Request, error)
NewAddInstanceTypeRequest calls the generic AddInstanceType builder with application/json body
func NewAddInstanceTypeRequestWithBody ¶ added in v0.2.0
func NewAddInstanceTypeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewAddInstanceTypeRequestWithBody generates requests for AddInstanceType with any type of body
func NewAddInstanceVariantRequest ¶ added in v0.2.0
func NewAddInstanceVariantRequest(server string, body AddInstanceVariantJSONRequestBody) (*http.Request, error)
NewAddInstanceVariantRequest calls the generic AddInstanceVariant builder with application/json body
func NewAddInstanceVariantRequestWithBody ¶ added in v0.2.0
func NewAddInstanceVariantRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewAddInstanceVariantRequestWithBody generates requests for AddInstanceVariant with any type of body
func NewAddNetworkRequest ¶
func NewAddNetworkRequest(server string, body AddNetworkJSONRequestBody) (*http.Request, error)
NewAddNetworkRequest calls the generic AddNetwork builder with application/json body
func NewAddNetworkRequestWithBody ¶
func NewAddNetworkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewAddNetworkRequestWithBody generates requests for AddNetwork with any type of body
func NewAddRecipeRequest ¶ added in v0.2.0
func NewAddRecipeRequest(server string, body AddRecipeJSONRequestBody) (*http.Request, error)
NewAddRecipeRequest calls the generic AddRecipe builder with application/json body
func NewAddRecipeRequestWithBody ¶ added in v0.2.0
func NewAddRecipeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewAddRecipeRequestWithBody generates requests for AddRecipe with any type of body
func NewAddSshKeyRequest ¶
func NewAddSshKeyRequest(server string, body AddSshKeyJSONRequestBody) (*http.Request, error)
NewAddSshKeyRequest calls the generic AddSshKey builder with application/json body
func NewAddSshKeyRequestWithBody ¶
func NewAddSshKeyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewAddSshKeyRequestWithBody generates requests for AddSshKey with any type of body
func NewAddTeamMemberRequest ¶
func NewAddTeamMemberRequest(server string, teamId string, body AddTeamMemberJSONRequestBody) (*http.Request, error)
NewAddTeamMemberRequest calls the generic AddTeamMember builder with application/json body
func NewAddTeamMemberRequestWithBody ¶
func NewAddTeamMemberRequestWithBody(server string, teamId string, contentType string, body io.Reader) (*http.Request, error)
NewAddTeamMemberRequestWithBody generates requests for AddTeamMember with any type of body
func NewAddUserRequest ¶ added in v0.2.3
func NewAddUserRequest(server string, body AddUserJSONRequestBody) (*http.Request, error)
NewAddUserRequest calls the generic AddUser builder with application/json body
func NewAddUserRequestWithBody ¶ added in v0.2.3
func NewAddUserRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewAddUserRequestWithBody generates requests for AddUser with any type of body
func NewBulkChargeForServiceRequest ¶
func NewBulkChargeForServiceRequest(server string, body BulkChargeForServiceJSONRequestBody) (*http.Request, error)
NewBulkChargeForServiceRequest calls the generic BulkChargeForService builder with application/json body
func NewBulkChargeForServiceRequestWithBody ¶
func NewBulkChargeForServiceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewBulkChargeForServiceRequestWithBody generates requests for BulkChargeForService with any type of body
func NewCancelDrainRequest ¶ added in v0.2.0
func NewCancelDrainRequest(server string, body CancelDrainJSONRequestBody) (*http.Request, error)
NewCancelDrainRequest calls the generic CancelDrain builder with application/json body
func NewCancelDrainRequestWithBody ¶ added in v0.2.0
func NewCancelDrainRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCancelDrainRequestWithBody generates requests for CancelDrain with any type of body
func NewChargeForServiceRequest ¶
func NewChargeForServiceRequest(server string, body ChargeForServiceJSONRequestBody) (*http.Request, error)
NewChargeForServiceRequest calls the generic ChargeForService builder with application/json body
func NewChargeForServiceRequestWithBody ¶
func NewChargeForServiceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewChargeForServiceRequestWithBody generates requests for ChargeForService with any type of body
func NewCreateAndAttachReservationRequest ¶ added in v0.2.0
func NewCreateAndAttachReservationRequest(server string, body CreateAndAttachReservationJSONRequestBody) (*http.Request, error)
NewCreateAndAttachReservationRequest calls the generic CreateAndAttachReservation builder with application/json body
func NewCreateAndAttachReservationRequestWithBody ¶ added in v0.2.0
func NewCreateAndAttachReservationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateAndAttachReservationRequestWithBody generates requests for CreateAndAttachReservation with any type of body
func NewCreateExternalTransactionRequest ¶
func NewCreateExternalTransactionRequest(server string, body CreateExternalTransactionJSONRequestBody) (*http.Request, error)
NewCreateExternalTransactionRequest calls the generic CreateExternalTransaction builder with application/json body
func NewCreateExternalTransactionRequestWithBody ¶
func NewCreateExternalTransactionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateExternalTransactionRequestWithBody generates requests for CreateExternalTransaction with any type of body
func NewCreatePromoTransactionRequest ¶
func NewCreatePromoTransactionRequest(server string, body CreatePromoTransactionJSONRequestBody) (*http.Request, error)
NewCreatePromoTransactionRequest calls the generic CreatePromoTransaction builder with application/json body
func NewCreatePromoTransactionRequestWithBody ¶
func NewCreatePromoTransactionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreatePromoTransactionRequestWithBody generates requests for CreatePromoTransaction with any type of body
func NewCreateTeamRequest ¶
func NewCreateTeamRequest(server string, body CreateTeamJSONRequestBody) (*http.Request, error)
NewCreateTeamRequest calls the generic CreateTeam builder with application/json body
func NewCreateTeamRequestWithBody ¶
func NewCreateTeamRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateTeamRequestWithBody generates requests for CreateTeam with any type of body
func NewCreateVolumeRequest ¶ added in v0.2.0
func NewCreateVolumeRequest(server string, body CreateVolumeJSONRequestBody) (*http.Request, error)
NewCreateVolumeRequest calls the generic CreateVolume builder with application/json body
func NewCreateVolumeRequestWithBody ¶ added in v0.2.0
func NewCreateVolumeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateVolumeRequestWithBody generates requests for CreateVolume with any type of body
func NewDeleteNetworkRequest ¶ added in v0.2.0
func NewDeleteNetworkRequest(server string, body DeleteNetworkJSONRequestBody) (*http.Request, error)
NewDeleteNetworkRequest calls the generic DeleteNetwork builder with application/json body
func NewDeleteNetworkRequestWithBody ¶ added in v0.2.0
func NewDeleteNetworkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewDeleteNetworkRequestWithBody generates requests for DeleteNetwork with any type of body
func NewDeleteSshKeyRequest ¶
NewDeleteSshKeyRequest generates requests for DeleteSshKey
func NewDeleteUserRequest ¶ added in v0.2.3
func NewDeleteUserRequest(server string, body DeleteUserJSONRequestBody) (*http.Request, error)
NewDeleteUserRequest calls the generic DeleteUser builder with application/json body
func NewDeleteUserRequestWithBody ¶ added in v0.2.3
func NewDeleteUserRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewDeleteUserRequestWithBody generates requests for DeleteUser with any type of body
func NewDrainNodeRequest ¶ added in v0.2.0
func NewDrainNodeRequest(server string, body DrainNodeJSONRequestBody) (*http.Request, error)
NewDrainNodeRequest calls the generic DrainNode builder with application/json body
func NewDrainNodeRequestWithBody ¶ added in v0.2.0
func NewDrainNodeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewDrainNodeRequestWithBody generates requests for DrainNode with any type of body
func NewForceDrainRequest ¶ added in v0.2.0
func NewForceDrainRequest(server string, body ForceDrainJSONRequestBody) (*http.Request, error)
NewForceDrainRequest calls the generic ForceDrain builder with application/json body
func NewForceDrainRequestWithBody ¶ added in v0.2.0
func NewForceDrainRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewForceDrainRequestWithBody generates requests for ForceDrain with any type of body
func NewGetAccountInfoRequest ¶
NewGetAccountInfoRequest generates requests for GetAccountInfo
func NewGetAutoTopUpRecoveryInfoRequest ¶ added in v0.2.4
func NewGetAutoTopUpRecoveryInfoRequest(server string, body GetAutoTopUpRecoveryInfoJSONRequestBody) (*http.Request, error)
NewGetAutoTopUpRecoveryInfoRequest calls the generic GetAutoTopUpRecoveryInfo builder with application/json body
func NewGetAutoTopUpRecoveryInfoRequestWithBody ¶ added in v0.2.4
func NewGetAutoTopUpRecoveryInfoRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewGetAutoTopUpRecoveryInfoRequestWithBody generates requests for GetAutoTopUpRecoveryInfo with any type of body
func NewGetOrCreateStripeCustomerRequest ¶ added in v0.2.4
func NewGetOrCreateStripeCustomerRequest(server string, body GetOrCreateStripeCustomerJSONRequestBody) (*http.Request, error)
NewGetOrCreateStripeCustomerRequest calls the generic GetOrCreateStripeCustomer builder with application/json body
func NewGetOrCreateStripeCustomerRequestWithBody ¶ added in v0.2.4
func NewGetOrCreateStripeCustomerRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewGetOrCreateStripeCustomerRequestWithBody generates requests for GetOrCreateStripeCustomer with any type of body
func NewGetTeamRequest ¶
NewGetTeamRequest generates requests for GetTeam
func NewInstanceMetricsRequest ¶ added in v0.2.3
func NewInstanceMetricsRequest(server string, body InstanceMetricsJSONRequestBody) (*http.Request, error)
NewInstanceMetricsRequest calls the generic InstanceMetrics builder with application/json body
func NewInstanceMetricsRequestWithBody ¶ added in v0.2.3
func NewInstanceMetricsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewInstanceMetricsRequestWithBody generates requests for InstanceMetrics with any type of body
func NewListApiKeysRequest ¶
func NewListApiKeysRequest(server string, body ListApiKeysJSONRequestBody) (*http.Request, error)
NewListApiKeysRequest calls the generic ListApiKeys builder with application/json body
func NewListApiKeysRequestWithBody ¶
func NewListApiKeysRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewListApiKeysRequestWithBody generates requests for ListApiKeys with any type of body
func NewListCapabilitiesRequest ¶ added in v0.2.0
NewListCapabilitiesRequest generates requests for ListCapabilities
func NewListInstanceTypesRequest ¶
func NewListInstanceTypesRequest(server string, body ListInstanceTypesJSONRequestBody) (*http.Request, error)
NewListInstanceTypesRequest calls the generic ListInstanceTypes builder with application/json body
func NewListInstanceTypesRequestWithBody ¶
func NewListInstanceTypesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewListInstanceTypesRequestWithBody generates requests for ListInstanceTypes with any type of body
func NewListInstancesRequest ¶
func NewListInstancesRequest(server string, body ListInstancesJSONRequestBody) (*http.Request, error)
NewListInstancesRequest calls the generic ListInstances builder with application/json body
func NewListInstancesRequestWithBody ¶
func NewListInstancesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewListInstancesRequestWithBody generates requests for ListInstances with any type of body
func NewListNetworksRequest ¶
func NewListNetworksRequest(server string, body ListNetworksJSONRequestBody) (*http.Request, error)
NewListNetworksRequest calls the generic ListNetworks builder with application/json body
func NewListNetworksRequestWithBody ¶
func NewListNetworksRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewListNetworksRequestWithBody generates requests for ListNetworks with any type of body
func NewListNodesRequest ¶ added in v0.2.0
func NewListNodesRequest(server string, body ListNodesJSONRequestBody) (*http.Request, error)
NewListNodesRequest calls the generic ListNodes builder with application/json body
func NewListNodesRequestWithBody ¶ added in v0.2.0
func NewListNodesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewListNodesRequestWithBody generates requests for ListNodes with any type of body
func NewListProvidersRequest ¶
func NewListProvidersRequest(server string, body ListProvidersJSONRequestBody) (*http.Request, error)
NewListProvidersRequest calls the generic ListProviders builder with application/json body
func NewListProvidersRequestWithBody ¶
func NewListProvidersRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewListProvidersRequestWithBody generates requests for ListProviders with any type of body
func NewListRecipesRequest ¶
NewListRecipesRequest generates requests for ListRecipes
func NewListReservationTypesRequest ¶
NewListReservationTypesRequest generates requests for ListReservationTypes
func NewListReservationsRequest ¶
func NewListReservationsRequest(server string, body ListReservationsJSONRequestBody) (*http.Request, error)
NewListReservationsRequest calls the generic ListReservations builder with application/json body
func NewListReservationsRequestWithBody ¶
func NewListReservationsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewListReservationsRequestWithBody generates requests for ListReservations with any type of body
func NewListSavedEnvironmentsRequest ¶ added in v0.2.7
func NewListSavedEnvironmentsRequest(server string, body ListSavedEnvironmentsJSONRequestBody) (*http.Request, error)
NewListSavedEnvironmentsRequest calls the generic ListSavedEnvironments builder with application/json body
func NewListSavedEnvironmentsRequestWithBody ¶ added in v0.2.7
func NewListSavedEnvironmentsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewListSavedEnvironmentsRequestWithBody generates requests for ListSavedEnvironments with any type of body
func NewListSshKeysRequest ¶
NewListSshKeysRequest generates requests for ListSshKeys
func NewListTeamsRequest ¶
func NewListTeamsRequest(server string, body ListTeamsJSONRequestBody) (*http.Request, error)
NewListTeamsRequest calls the generic ListTeams builder with application/json body
func NewListTeamsRequestWithBody ¶ added in v0.2.3
func NewListTeamsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewListTeamsRequestWithBody generates requests for ListTeams with any type of body
func NewListTransactionsRequest ¶
NewListTransactionsRequest generates requests for ListTransactions
func NewListUsersRequest ¶ added in v0.2.3
func NewListUsersRequest(server string, body ListUsersJSONRequestBody) (*http.Request, error)
NewListUsersRequest calls the generic ListUsers builder with application/json body
func NewListUsersRequestWithBody ¶ added in v0.2.3
func NewListUsersRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewListUsersRequestWithBody generates requests for ListUsers with any type of body
func NewListVolumesRequest ¶ added in v0.2.0
func NewListVolumesRequest(server string, body ListVolumesJSONRequestBody) (*http.Request, error)
NewListVolumesRequest calls the generic ListVolumes builder with application/json body
func NewListVolumesRequestWithBody ¶ added in v0.2.0
func NewListVolumesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewListVolumesRequestWithBody generates requests for ListVolumes with any type of body
func NewLoginRequest ¶
func NewLoginRequest(server string, body LoginJSONRequestBody) (*http.Request, error)
NewLoginRequest calls the generic Login builder with application/json body
func NewLoginRequestWithBody ¶
func NewLoginRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewLoginRequestWithBody generates requests for Login with any type of body
func NewLogoutRequest ¶
NewLogoutRequest generates requests for Logout
func NewMeRequest ¶ added in v0.2.0
NewMeRequest generates requests for Me
func NewNodeMetricsByIdRequest ¶ added in v0.2.3
NewNodeMetricsByIdRequest generates requests for NodeMetricsById
func NewNodeMetricsRequest ¶ added in v0.2.3
func NewNodeMetricsRequest(server string, body NodeMetricsJSONRequestBody) (*http.Request, error)
NewNodeMetricsRequest calls the generic NodeMetrics builder with application/json body
func NewNodeMetricsRequestWithBody ¶ added in v0.2.3
func NewNodeMetricsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewNodeMetricsRequestWithBody generates requests for NodeMetrics with any type of body
func NewPauseVmRequest ¶ added in v0.2.3
func NewPauseVmRequest(server string, body PauseVmJSONRequestBody) (*http.Request, error)
NewPauseVmRequest calls the generic PauseVm builder with application/json body
func NewPauseVmRequestWithBody ¶ added in v0.2.3
func NewPauseVmRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPauseVmRequestWithBody generates requests for PauseVm with any type of body
func NewRegisterUserRequest ¶
func NewRegisterUserRequest(server string, body RegisterUserJSONRequestBody) (*http.Request, error)
NewRegisterUserRequest calls the generic RegisterUser builder with application/json body
func NewRegisterUserRequestWithBody ¶
func NewRegisterUserRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewRegisterUserRequestWithBody generates requests for RegisterUser with any type of body
func NewRemoveInstanceTypeRequest ¶ added in v0.2.0
func NewRemoveInstanceTypeRequest(server string, body RemoveInstanceTypeJSONRequestBody) (*http.Request, error)
NewRemoveInstanceTypeRequest calls the generic RemoveInstanceType builder with application/json body
func NewRemoveInstanceTypeRequestWithBody ¶ added in v0.2.0
func NewRemoveInstanceTypeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewRemoveInstanceTypeRequestWithBody generates requests for RemoveInstanceType with any type of body
func NewRemoveInstanceVariantRequest ¶ added in v0.2.0
func NewRemoveInstanceVariantRequest(server string, body RemoveInstanceVariantJSONRequestBody) (*http.Request, error)
NewRemoveInstanceVariantRequest calls the generic RemoveInstanceVariant builder with application/json body
func NewRemoveInstanceVariantRequestWithBody ¶ added in v0.2.0
func NewRemoveInstanceVariantRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewRemoveInstanceVariantRequestWithBody generates requests for RemoveInstanceVariant with any type of body
func NewRemoveRecipeRequest ¶ added in v0.2.0
func NewRemoveRecipeRequest(server string, body RemoveRecipeJSONRequestBody) (*http.Request, error)
NewRemoveRecipeRequest calls the generic RemoveRecipe builder with application/json body
func NewRemoveRecipeRequestWithBody ¶ added in v0.2.0
func NewRemoveRecipeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewRemoveRecipeRequestWithBody generates requests for RemoveRecipe with any type of body
func NewRemoveTeamMemberRequest ¶
func NewRemoveTeamMemberRequest(server string, teamId string, body RemoveTeamMemberJSONRequestBody) (*http.Request, error)
NewRemoveTeamMemberRequest calls the generic RemoveTeamMember builder with application/json body
func NewRemoveTeamMemberRequestWithBody ¶
func NewRemoveTeamMemberRequestWithBody(server string, teamId string, contentType string, body io.Reader) (*http.Request, error)
NewRemoveTeamMemberRequestWithBody generates requests for RemoveTeamMember with any type of body
func NewRentInstanceRequest ¶
func NewRentInstanceRequest(server string, body RentInstanceJSONRequestBody) (*http.Request, error)
NewRentInstanceRequest calls the generic RentInstance builder with application/json body
func NewRentInstanceRequestWithBody ¶
func NewRentInstanceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewRentInstanceRequestWithBody generates requests for RentInstance with any type of body
func NewRequestPasswordResetRequest ¶
func NewRequestPasswordResetRequest(server string, body RequestPasswordResetJSONRequestBody) (*http.Request, error)
NewRequestPasswordResetRequest calls the generic RequestPasswordReset builder with application/json body
func NewRequestPasswordResetRequestWithBody ¶
func NewRequestPasswordResetRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewRequestPasswordResetRequestWithBody generates requests for RequestPasswordReset with any type of body
func NewResendVerificationRequest ¶ added in v0.2.0
func NewResendVerificationRequest(server string, body ResendVerificationJSONRequestBody) (*http.Request, error)
NewResendVerificationRequest calls the generic ResendVerification builder with application/json body
func NewResendVerificationRequestWithBody ¶ added in v0.2.0
func NewResendVerificationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewResendVerificationRequestWithBody generates requests for ResendVerification with any type of body
func NewResetPasswordRequest ¶
func NewResetPasswordRequest(server string, body ResetPasswordJSONRequestBody) (*http.Request, error)
NewResetPasswordRequest calls the generic ResetPassword builder with application/json body
func NewResetPasswordRequestWithBody ¶
func NewResetPasswordRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewResetPasswordRequestWithBody generates requests for ResetPassword with any type of body
func NewResetVmRequest ¶ added in v0.2.0
func NewResetVmRequest(server string, body ResetVmJSONRequestBody) (*http.Request, error)
NewResetVmRequest calls the generic ResetVm builder with application/json body
func NewResetVmRequestWithBody ¶ added in v0.2.0
func NewResetVmRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewResetVmRequestWithBody generates requests for ResetVm with any type of body
func NewResumeNodeRequest ¶ added in v0.2.0
func NewResumeNodeRequest(server string, body ResumeNodeJSONRequestBody) (*http.Request, error)
NewResumeNodeRequest calls the generic ResumeNode builder with application/json body
func NewResumeNodeRequestWithBody ¶ added in v0.2.0
func NewResumeNodeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewResumeNodeRequestWithBody generates requests for ResumeNode with any type of body
func NewResumeVmRequest ¶ added in v0.2.3
func NewResumeVmRequest(server string, body ResumeVmJSONRequestBody) (*http.Request, error)
NewResumeVmRequest calls the generic ResumeVm builder with application/json body
func NewResumeVmRequestWithBody ¶ added in v0.2.3
func NewResumeVmRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewResumeVmRequestWithBody generates requests for ResumeVm with any type of body
func NewSearchTeamsRequest ¶ added in v0.2.3
func NewSearchTeamsRequest(server string, body SearchTeamsJSONRequestBody) (*http.Request, error)
NewSearchTeamsRequest calls the generic SearchTeams builder with application/json body
func NewSearchTeamsRequestWithBody ¶ added in v0.2.3
func NewSearchTeamsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSearchTeamsRequestWithBody generates requests for SearchTeams with any type of body
func NewSearchUsersRequest ¶ added in v0.2.3
func NewSearchUsersRequest(server string, body SearchUsersJSONRequestBody) (*http.Request, error)
NewSearchUsersRequest calls the generic SearchUsers builder with application/json body
func NewSearchUsersRequestWithBody ¶ added in v0.2.3
func NewSearchUsersRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSearchUsersRequestWithBody generates requests for SearchUsers with any type of body
func NewSelectAndDeleteApiKeysRequest ¶
func NewSelectAndDeleteApiKeysRequest(server string, body SelectAndDeleteApiKeysJSONRequestBody) (*http.Request, error)
NewSelectAndDeleteApiKeysRequest calls the generic SelectAndDeleteApiKeys builder with application/json body
func NewSelectAndDeleteApiKeysRequestWithBody ¶
func NewSelectAndDeleteApiKeysRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSelectAndDeleteApiKeysRequestWithBody generates requests for SelectAndDeleteApiKeys with any type of body
func NewSelectAndDeleteSshKeyRequest ¶
func NewSelectAndDeleteSshKeyRequest(server string, body SelectAndDeleteSshKeyJSONRequestBody) (*http.Request, error)
NewSelectAndDeleteSshKeyRequest calls the generic SelectAndDeleteSshKey builder with application/json body
func NewSelectAndDeleteSshKeyRequestWithBody ¶
func NewSelectAndDeleteSshKeyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSelectAndDeleteSshKeyRequestWithBody generates requests for SelectAndDeleteSshKey with any type of body
func NewSendUsersMessageRequest ¶ added in v0.2.3
func NewSendUsersMessageRequest(server string, body SendUsersMessageJSONRequestBody) (*http.Request, error)
NewSendUsersMessageRequest calls the generic SendUsersMessage builder with application/json body
func NewSendUsersMessageRequestWithBody ¶ added in v0.2.3
func NewSendUsersMessageRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSendUsersMessageRequestWithBody generates requests for SendUsersMessage with any type of body
func NewSetMarketplaceListingRequest ¶ added in v0.2.3
func NewSetMarketplaceListingRequest(server string, body SetMarketplaceListingJSONRequestBody) (*http.Request, error)
NewSetMarketplaceListingRequest calls the generic SetMarketplaceListing builder with application/json body
func NewSetMarketplaceListingRequestWithBody ¶ added in v0.2.3
func NewSetMarketplaceListingRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSetMarketplaceListingRequestWithBody generates requests for SetMarketplaceListing with any type of body
func NewStartVmRequest ¶ added in v0.2.0
func NewStartVmRequest(server string, body StartVmJSONRequestBody) (*http.Request, error)
NewStartVmRequest calls the generic StartVm builder with application/json body
func NewStartVmRequestWithBody ¶ added in v0.2.0
func NewStartVmRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewStartVmRequestWithBody generates requests for StartVm with any type of body
func NewStopVmRequest ¶ added in v0.2.0
func NewStopVmRequest(server string, body StopVmJSONRequestBody) (*http.Request, error)
NewStopVmRequest calls the generic StopVm builder with application/json body
func NewStopVmRequestWithBody ¶ added in v0.2.0
func NewStopVmRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewStopVmRequestWithBody generates requests for StopVm with any type of body
func NewTerminateInstancesRequest ¶
func NewTerminateInstancesRequest(server string, body TerminateInstancesJSONRequestBody) (*http.Request, error)
NewTerminateInstancesRequest calls the generic TerminateInstances builder with application/json body
func NewTerminateInstancesRequestWithBody ¶
func NewTerminateInstancesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewTerminateInstancesRequestWithBody generates requests for TerminateInstances with any type of body
func NewUpdateActiveReservationRequest ¶ added in v0.2.0
func NewUpdateActiveReservationRequest(server string, body UpdateActiveReservationJSONRequestBody) (*http.Request, error)
NewUpdateActiveReservationRequest calls the generic UpdateActiveReservation builder with application/json body
func NewUpdateActiveReservationRequestWithBody ¶ added in v0.2.0
func NewUpdateActiveReservationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateActiveReservationRequestWithBody generates requests for UpdateActiveReservation with any type of body
func NewUpdateApiKeysRequest ¶
func NewUpdateApiKeysRequest(server string, body UpdateApiKeysJSONRequestBody) (*http.Request, error)
NewUpdateApiKeysRequest calls the generic UpdateApiKeys builder with application/json body
func NewUpdateApiKeysRequestWithBody ¶
func NewUpdateApiKeysRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateApiKeysRequestWithBody generates requests for UpdateApiKeys with any type of body
func NewUpdateAutoTopUpRequest ¶ added in v0.2.4
func NewUpdateAutoTopUpRequest(server string, body UpdateAutoTopUpJSONRequestBody) (*http.Request, error)
NewUpdateAutoTopUpRequest calls the generic UpdateAutoTopUp builder with application/json body
func NewUpdateAutoTopUpRequestWithBody ¶ added in v0.2.4
func NewUpdateAutoTopUpRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateAutoTopUpRequestWithBody generates requests for UpdateAutoTopUp with any type of body
func NewUpdateCreditLimitRequest ¶ added in v0.2.3
func NewUpdateCreditLimitRequest(server string, body UpdateCreditLimitJSONRequestBody) (*http.Request, error)
NewUpdateCreditLimitRequest calls the generic UpdateCreditLimit builder with application/json body
func NewUpdateCreditLimitRequestWithBody ¶ added in v0.2.3
func NewUpdateCreditLimitRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateCreditLimitRequestWithBody generates requests for UpdateCreditLimit with any type of body
func NewUpdateInstanceTypeRequest ¶ added in v0.2.0
func NewUpdateInstanceTypeRequest(server string, body UpdateInstanceTypeJSONRequestBody) (*http.Request, error)
NewUpdateInstanceTypeRequest calls the generic UpdateInstanceType builder with application/json body
func NewUpdateInstanceTypeRequestWithBody ¶ added in v0.2.0
func NewUpdateInstanceTypeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateInstanceTypeRequestWithBody generates requests for UpdateInstanceType with any type of body
func NewUpdateInstanceVariantRequest ¶ added in v0.2.0
func NewUpdateInstanceVariantRequest(server string, body UpdateInstanceVariantJSONRequestBody) (*http.Request, error)
NewUpdateInstanceVariantRequest calls the generic UpdateInstanceVariant builder with application/json body
func NewUpdateInstanceVariantRequestWithBody ¶ added in v0.2.0
func NewUpdateInstanceVariantRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateInstanceVariantRequestWithBody generates requests for UpdateInstanceVariant with any type of body
func NewUpdateNetworkRequest ¶ added in v0.2.0
func NewUpdateNetworkRequest(server string, body UpdateNetworkJSONRequestBody) (*http.Request, error)
NewUpdateNetworkRequest calls the generic UpdateNetwork builder with application/json body
func NewUpdateNetworkRequestWithBody ¶ added in v0.2.0
func NewUpdateNetworkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateNetworkRequestWithBody generates requests for UpdateNetwork with any type of body
func NewUpdateProviderNodeInstanceTypeRequest ¶ added in v0.2.0
func NewUpdateProviderNodeInstanceTypeRequest(server string, body UpdateProviderNodeInstanceTypeJSONRequestBody) (*http.Request, error)
NewUpdateProviderNodeInstanceTypeRequest calls the generic UpdateProviderNodeInstanceType builder with application/json body
func NewUpdateProviderNodeInstanceTypeRequestWithBody ¶ added in v0.2.0
func NewUpdateProviderNodeInstanceTypeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateProviderNodeInstanceTypeRequestWithBody generates requests for UpdateProviderNodeInstanceType with any type of body
func NewUpdateTeamMembershipRequest ¶
func NewUpdateTeamMembershipRequest(server string, teamId string, body UpdateTeamMembershipJSONRequestBody) (*http.Request, error)
NewUpdateTeamMembershipRequest calls the generic UpdateTeamMembership builder with application/json body
func NewUpdateTeamMembershipRequestWithBody ¶
func NewUpdateTeamMembershipRequestWithBody(server string, teamId string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateTeamMembershipRequestWithBody generates requests for UpdateTeamMembership with any type of body
func NewUpdateVolumeRequest ¶ added in v0.2.0
func NewUpdateVolumeRequest(server string, body UpdateVolumeJSONRequestBody) (*http.Request, error)
NewUpdateVolumeRequest calls the generic UpdateVolume builder with application/json body
func NewUpdateVolumeRequestWithBody ¶ added in v0.2.0
func NewUpdateVolumeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateVolumeRequestWithBody generates requests for UpdateVolume with any type of body
func NewVerifyEmailRequest ¶ added in v0.2.0
func NewVerifyEmailRequest(server string, params *VerifyEmailParams) (*http.Request, error)
NewVerifyEmailRequest generates requests for VerifyEmail
Types ¶
type AccountInfoProto ¶
type AccountInfoProto struct {
Data struct {
// Balance Balance in USD
Balance float64 `json:"balance"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
AccountInfoProto defines model for AccountInfoProto.
type AccountSelector ¶
type AccountSelector struct {
// contains filtered or unexported fields
}
AccountSelector defines model for AccountSelector.
func (AccountSelector) AsAccountSelector0 ¶
func (t AccountSelector) AsAccountSelector0() (AccountSelector0, error)
AsAccountSelector0 returns the union data inside the AccountSelector as a AccountSelector0
func (AccountSelector) AsAccountSelector1 ¶
func (t AccountSelector) AsAccountSelector1() (AccountSelector1, error)
AsAccountSelector1 returns the union data inside the AccountSelector as a AccountSelector1
func (*AccountSelector) FromAccountSelector0 ¶
func (t *AccountSelector) FromAccountSelector0(v AccountSelector0) error
FromAccountSelector0 overwrites any union data inside the AccountSelector as the provided AccountSelector0
func (*AccountSelector) FromAccountSelector1 ¶
func (t *AccountSelector) FromAccountSelector1(v AccountSelector1) error
FromAccountSelector1 overwrites any union data inside the AccountSelector as the provided AccountSelector1
func (AccountSelector) MarshalJSON ¶
func (t AccountSelector) MarshalJSON() ([]byte, error)
func (*AccountSelector) MergeAccountSelector0 ¶
func (t *AccountSelector) MergeAccountSelector0(v AccountSelector0) error
MergeAccountSelector0 performs a merge with any union data inside the AccountSelector, using the provided AccountSelector0
func (*AccountSelector) MergeAccountSelector1 ¶
func (t *AccountSelector) MergeAccountSelector1(v AccountSelector1) error
MergeAccountSelector1 performs a merge with any union data inside the AccountSelector, using the provided AccountSelector1
func (*AccountSelector) UnmarshalJSON ¶
func (t *AccountSelector) UnmarshalJSON(b []byte) error
type AccountSelector0 ¶
type AccountSelector0 string
AccountSelector0 defines model for AccountSelector.0.
const (
ByToken AccountSelector0 = "ByToken"
)
Defines values for AccountSelector0.
type AccountSelector1 ¶
type AccountSelector1 struct {
ByTeam string `json:"ByTeam"`
}
AccountSelector1 defines model for .
type AccountTargetSelector ¶ added in v0.2.3
type AccountTargetSelector struct {
// contains filtered or unexported fields
}
AccountTargetSelector Selector for financial operations targeting specific user or team accounts by ID.
func (AccountTargetSelector) AsAccountTargetSelector0 ¶ added in v0.2.3
func (t AccountTargetSelector) AsAccountTargetSelector0() (AccountTargetSelector0, error)
AsAccountTargetSelector0 returns the union data inside the AccountTargetSelector as a AccountTargetSelector0
func (AccountTargetSelector) AsAccountTargetSelector1 ¶ added in v0.2.3
func (t AccountTargetSelector) AsAccountTargetSelector1() (AccountTargetSelector1, error)
AsAccountTargetSelector1 returns the union data inside the AccountTargetSelector as a AccountTargetSelector1
func (*AccountTargetSelector) FromAccountTargetSelector0 ¶ added in v0.2.3
func (t *AccountTargetSelector) FromAccountTargetSelector0(v AccountTargetSelector0) error
FromAccountTargetSelector0 overwrites any union data inside the AccountTargetSelector as the provided AccountTargetSelector0
func (*AccountTargetSelector) FromAccountTargetSelector1 ¶ added in v0.2.3
func (t *AccountTargetSelector) FromAccountTargetSelector1(v AccountTargetSelector1) error
FromAccountTargetSelector1 overwrites any union data inside the AccountTargetSelector as the provided AccountTargetSelector1
func (AccountTargetSelector) MarshalJSON ¶ added in v0.2.3
func (t AccountTargetSelector) MarshalJSON() ([]byte, error)
func (*AccountTargetSelector) MergeAccountTargetSelector0 ¶ added in v0.2.3
func (t *AccountTargetSelector) MergeAccountTargetSelector0(v AccountTargetSelector0) error
MergeAccountTargetSelector0 performs a merge with any union data inside the AccountTargetSelector, using the provided AccountTargetSelector0
func (*AccountTargetSelector) MergeAccountTargetSelector1 ¶ added in v0.2.3
func (t *AccountTargetSelector) MergeAccountTargetSelector1(v AccountTargetSelector1) error
MergeAccountTargetSelector1 performs a merge with any union data inside the AccountTargetSelector, using the provided AccountTargetSelector1
func (*AccountTargetSelector) UnmarshalJSON ¶ added in v0.2.3
func (t *AccountTargetSelector) UnmarshalJSON(b []byte) error
type AccountTargetSelector0 ¶ added in v0.2.3
type AccountTargetSelector0 struct {
// ByUserIds Target user accounts by ID
ByUserIds []string `json:"ByUserIds"`
}
AccountTargetSelector0 Target user accounts by ID
type AccountTargetSelector1 ¶ added in v0.2.3
type AccountTargetSelector1 struct {
// ByTeamIds Target team accounts by ID
ByTeamIds []string `json:"ByTeamIds"`
}
AccountTargetSelector1 Target team accounts by ID
type AddApiKeyJSONRequestBody ¶
type AddApiKeyJSONRequestBody = AddApiKeyRequestProto
AddApiKeyJSONRequestBody defines body for AddApiKey for application/json ContentType.
type AddApiKeyRequestProto ¶
type AddApiKeyRequestProto struct {
Data struct {
// Active Enable/disable API key
Active bool `json:"active"`
// Name API key name
Name *string `json:"name"`
// TeamId Team ID in case of a team API key
TeamId *string `json:"team_id"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
AddApiKeyRequestProto defines model for AddApiKeyRequestProto.
type AddApiKeyResponse ¶
type AddApiKeyResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *AddApiKeyResponseProto
}
func ParseAddApiKeyResponse ¶
func ParseAddApiKeyResponse(rsp *http.Response) (*AddApiKeyResponse, error)
ParseAddApiKeyResponse parses an HTTP response from a AddApiKeyWithResponse call
func (AddApiKeyResponse) Status ¶
func (r AddApiKeyResponse) Status() string
Status returns HTTPResponse.Status
func (AddApiKeyResponse) StatusCode ¶
func (r AddApiKeyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AddApiKeyResponseProto ¶
type AddApiKeyResponseProto struct {
Data struct {
// Active Enabled/disabled status
Active bool `json:"active"`
// Id API key ID
Id string `json:"id"`
// Key API key value, only available at generation time
Key string `json:"key"`
// Name API key name
Name *string `json:"name"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
AddApiKeyResponseProto defines model for AddApiKeyResponseProto.
type AddInstanceTypeJSONRequestBody ¶ added in v0.2.0
type AddInstanceTypeJSONRequestBody = AddInstanceTypeRequestProto
AddInstanceTypeJSONRequestBody defines body for AddInstanceType for application/json ContentType.
type AddInstanceTypeRequestProto ¶ added in v0.2.0
type AddInstanceTypeRequestProto struct {
Data struct {
InstanceType InstanceTypeInfo `json:"instance_type"`
// Providers List of providers that the instance type should be available on
Providers *[]string `json:"providers"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
AddInstanceTypeRequestProto defines model for AddInstanceTypeRequestProto.
type AddInstanceTypeResponse ¶ added in v0.2.0
type AddInstanceTypeResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *InstanceTypeResponseProto
}
func ParseAddInstanceTypeResponse ¶ added in v0.2.0
func ParseAddInstanceTypeResponse(rsp *http.Response) (*AddInstanceTypeResponse, error)
ParseAddInstanceTypeResponse parses an HTTP response from a AddInstanceTypeWithResponse call
func (AddInstanceTypeResponse) Status ¶ added in v0.2.0
func (r AddInstanceTypeResponse) Status() string
Status returns HTTPResponse.Status
func (AddInstanceTypeResponse) StatusCode ¶ added in v0.2.0
func (r AddInstanceTypeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AddInstanceVariantJSONRequestBody ¶ added in v0.2.0
type AddInstanceVariantJSONRequestBody = AddInstanceVariantRequestProto
AddInstanceVariantJSONRequestBody defines body for AddInstanceVariant for application/json ContentType.
type AddInstanceVariantRequestProto ¶ added in v0.2.0
type AddInstanceVariantRequestProto struct {
Data struct {
// InstanceTypeName Instance type name
InstanceTypeName string `json:"instance_type_name"`
Variant InstanceVariantRawInfo `json:"variant"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
AddInstanceVariantRequestProto defines model for AddInstanceVariantRequestProto.
type AddInstanceVariantResponse ¶ added in v0.2.0
type AddInstanceVariantResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *InstanceVariantResponseProto
}
func ParseAddInstanceVariantResponse ¶ added in v0.2.0
func ParseAddInstanceVariantResponse(rsp *http.Response) (*AddInstanceVariantResponse, error)
ParseAddInstanceVariantResponse parses an HTTP response from a AddInstanceVariantWithResponse call
func (AddInstanceVariantResponse) Status ¶ added in v0.2.0
func (r AddInstanceVariantResponse) Status() string
Status returns HTTPResponse.Status
func (AddInstanceVariantResponse) StatusCode ¶ added in v0.2.0
func (r AddInstanceVariantResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AddNetworkJSONRequestBody ¶
type AddNetworkJSONRequestBody = AddNetworkRequestProto
AddNetworkJSONRequestBody defines body for AddNetwork for application/json ContentType.
type AddNetworkRequestProto ¶
type AddNetworkRequestProto struct {
Data struct {
// Datacenter Datacenter for the network
Datacenter string `json:"datacenter"`
// Gateway Optional gateway IP address
Gateway *string `json:"gateway"`
// Iface Optional network interface name
Iface *string `json:"iface"`
// IpRanges IP ranges to add to the network
IpRanges []NetworkIpRange `json:"ip_ranges"`
// Name Network name
Name string `json:"name"`
// Netmask Optional network mask
Netmask *int32 `json:"netmask"`
// ServerAddress Optional server address if need to use internal IP for communication
ServerAddress *string `json:"server_address"`
// TeamId Optional team ID
TeamId *string `json:"team_id"`
// TeamName Optional team name (alternative to team_id)
TeamName *string `json:"team_name"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
AddNetworkRequestProto defines model for AddNetworkRequestProto.
type AddNetworkResponse ¶
type AddNetworkResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *AddNetworkResponseProto
}
func ParseAddNetworkResponse ¶
func ParseAddNetworkResponse(rsp *http.Response) (*AddNetworkResponse, error)
ParseAddNetworkResponse parses an HTTP response from a AddNetworkWithResponse call
func (AddNetworkResponse) Status ¶
func (r AddNetworkResponse) Status() string
Status returns HTTPResponse.Status
func (AddNetworkResponse) StatusCode ¶
func (r AddNetworkResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AddNetworkResponseProto ¶
type AddNetworkResponseProto struct {
Data struct {
// Id ID of the created network
Id string `json:"id"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
AddNetworkResponseProto defines model for AddNetworkResponseProto.
type AddRecipeDetails ¶ added in v0.2.0
type AddRecipeDetails struct {
// contains filtered or unexported fields
}
AddRecipeDetails defines model for AddRecipeDetails.
func (AddRecipeDetails) AsAddRecipeDetails0 ¶ added in v0.2.0
func (t AddRecipeDetails) AsAddRecipeDetails0() (AddRecipeDetails0, error)
AsAddRecipeDetails0 returns the union data inside the AddRecipeDetails as a AddRecipeDetails0
func (AddRecipeDetails) AsAddRecipeDetails1 ¶ added in v0.2.0
func (t AddRecipeDetails) AsAddRecipeDetails1() (AddRecipeDetails1, error)
AsAddRecipeDetails1 returns the union data inside the AddRecipeDetails as a AddRecipeDetails1
func (*AddRecipeDetails) FromAddRecipeDetails0 ¶ added in v0.2.0
func (t *AddRecipeDetails) FromAddRecipeDetails0(v AddRecipeDetails0) error
FromAddRecipeDetails0 overwrites any union data inside the AddRecipeDetails as the provided AddRecipeDetails0
func (*AddRecipeDetails) FromAddRecipeDetails1 ¶ added in v0.2.0
func (t *AddRecipeDetails) FromAddRecipeDetails1(v AddRecipeDetails1) error
FromAddRecipeDetails1 overwrites any union data inside the AddRecipeDetails as the provided AddRecipeDetails1
func (AddRecipeDetails) MarshalJSON ¶ added in v0.2.0
func (t AddRecipeDetails) MarshalJSON() ([]byte, error)
func (*AddRecipeDetails) MergeAddRecipeDetails0 ¶ added in v0.2.0
func (t *AddRecipeDetails) MergeAddRecipeDetails0(v AddRecipeDetails0) error
MergeAddRecipeDetails0 performs a merge with any union data inside the AddRecipeDetails, using the provided AddRecipeDetails0
func (*AddRecipeDetails) MergeAddRecipeDetails1 ¶ added in v0.2.0
func (t *AddRecipeDetails) MergeAddRecipeDetails1(v AddRecipeDetails1) error
MergeAddRecipeDetails1 performs a merge with any union data inside the AddRecipeDetails, using the provided AddRecipeDetails1
func (*AddRecipeDetails) UnmarshalJSON ¶ added in v0.2.0
func (t *AddRecipeDetails) UnmarshalJSON(b []byte) error
type AddRecipeDetails0 ¶ added in v0.2.0
type AddRecipeDetails0 struct {
Docker struct {
// Command Docker command to run the recipe
Command []string `json:"command"`
// Env Environment variables to set
Env [][]interface{} `json:"env"`
// Image Docker image corresponding to the recipe
Image string `json:"image"`
// Ports Ports to expose in the format <host>:<container>:<tcp|udp|sctp>
Ports []string `json:"ports"`
} `json:"Docker"`
}
AddRecipeDetails0 defines model for .
type AddRecipeDetails1 ¶ added in v0.2.0
type AddRecipeDetails1 struct {
VirtualMachine struct {
Architecture *string `json:"architecture"`
CloudinitUrl *string `json:"cloudinit_url"`
// ImageUrl VM image to use for the recipe
ImageUrl string `json:"image_url"`
OsFamily *string `json:"os_family"`
} `json:"VirtualMachine"`
}
AddRecipeDetails1 defines model for .
type AddRecipeJSONRequestBody ¶ added in v0.2.0
type AddRecipeJSONRequestBody = AddRecipeRequestProto
AddRecipeJSONRequestBody defines body for AddRecipe for application/json ContentType.
type AddRecipeRequestProto ¶ added in v0.2.0
type AddRecipeRequestProto struct {
Data struct {
// Description Description of the recipe
Description string `json:"description"`
Details AddRecipeDetails `json:"details"`
// Global If true, create a global recipe (no owner). Only admins can set this to true.
// Regular users' recipes are always owned by them.
Global *bool `json:"global,omitempty"`
// GroupName Optional group name to add the recipe to
GroupName *string `json:"group_name"`
// InstructionsUrl URL to the instructions for the recipe, if available
InstructionsUrl *string `json:"instructions_url"`
// LogoUrl Logo of the recipe, if available, e.g. Ubuntu, PyTorch or Jupyter logo
LogoUrl *string `json:"logo_url"`
// Name Name of the recipe
Name string `json:"name"`
// Tags Tags for the recipe to help users find it and filter by them
Tags *[]string `json:"tags"`
// TeamId Optional team ID to assign ownership to a team instead of the user.
// The user must be a member of the team to create team-owned recipes.
TeamId *string `json:"team_id"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
AddRecipeRequestProto defines model for AddRecipeRequestProto.
type AddRecipeResponse ¶ added in v0.2.0
func ParseAddRecipeResponse ¶ added in v0.2.0
func ParseAddRecipeResponse(rsp *http.Response) (*AddRecipeResponse, error)
ParseAddRecipeResponse parses an HTTP response from a AddRecipeWithResponse call
func (AddRecipeResponse) Status ¶ added in v0.2.0
func (r AddRecipeResponse) Status() string
Status returns HTTPResponse.Status
func (AddRecipeResponse) StatusCode ¶ added in v0.2.0
func (r AddRecipeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AddSshKeyJSONRequestBody ¶
type AddSshKeyJSONRequestBody = AddSshKeyRequestProto
AddSshKeyJSONRequestBody defines body for AddSshKey for application/json ContentType.
type AddSshKeyRequestProto ¶
type AddSshKeyRequestProto struct {
Data struct {
// Name SSH key name
Name string `json:"name"`
// PublicKey SSH key public part
PublicKey *string `json:"public_key"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
AddSshKeyRequestProto defines model for AddSshKeyRequestProto.
type AddSshKeyResponse ¶
type AddSshKeyResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *GenerateSshKeyResponseProto
}
func ParseAddSshKeyResponse ¶
func ParseAddSshKeyResponse(rsp *http.Response) (*AddSshKeyResponse, error)
ParseAddSshKeyResponse parses an HTTP response from a AddSshKeyWithResponse call
func (AddSshKeyResponse) Status ¶
func (r AddSshKeyResponse) Status() string
Status returns HTTPResponse.Status
func (AddSshKeyResponse) StatusCode ¶
func (r AddSshKeyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AddTeamMemberJSONRequestBody ¶
type AddTeamMemberJSONRequestBody = AddTeamMemberRequestProto
AddTeamMemberJSONRequestBody defines body for AddTeamMember for application/json ContentType.
type AddTeamMemberRequestProto ¶
type AddTeamMemberRequestProto struct {
// Data Request to add a team member or create an invite for a non-existent user.
Data struct {
// Email Email of the user to add or invite.
Email string `json:"email"`
Role *TeamRole `json:"role,omitempty"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
AddTeamMemberRequestProto defines model for AddTeamMemberRequestProto.
type AddTeamMemberResponse ¶
type AddTeamMemberResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *TeamMemberOrInviteResponseProto
}
func ParseAddTeamMemberResponse ¶
func ParseAddTeamMemberResponse(rsp *http.Response) (*AddTeamMemberResponse, error)
ParseAddTeamMemberResponse parses an HTTP response from a AddTeamMemberWithResponse call
func (AddTeamMemberResponse) Status ¶
func (r AddTeamMemberResponse) Status() string
Status returns HTTPResponse.Status
func (AddTeamMemberResponse) StatusCode ¶
func (r AddTeamMemberResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AddUserFinancialInfo ¶ added in v0.2.3
type AddUserFinancialInfo struct {
// CreditLimit Credit limit in currency units (cents). Ignored when `unlimited` is true.
CreditLimit *int64 `json:"credit_limit"`
// InitialBalance Initial balance in currency units (cents).
InitialBalance *int64 `json:"initial_balance"`
// Unlimited Use unlimited credit limit.
Unlimited *bool `json:"unlimited,omitempty"`
}
AddUserFinancialInfo Financial settings to apply when creating a new user account.
type AddUserJSONRequestBody ¶ added in v0.2.3
type AddUserJSONRequestBody = AddUserRequestProto
AddUserJSONRequestBody defines body for AddUser for application/json ContentType.
type AddUserRequestProto ¶ added in v0.2.3
type AddUserRequestProto struct {
Data struct {
Email string `json:"email"`
// Financial Financial settings to apply when creating a new user account.
Financial *AddUserFinancialInfo `json:"financial,omitempty"`
Name string `json:"name"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
AddUserRequestProto defines model for AddUserRequestProto.
type AddUserResponse ¶ added in v0.2.3
type AddUserResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *AddUserResponseProto
}
func ParseAddUserResponse ¶ added in v0.2.3
func ParseAddUserResponse(rsp *http.Response) (*AddUserResponse, error)
ParseAddUserResponse parses an HTTP response from a AddUserWithResponse call
func (AddUserResponse) Status ¶ added in v0.2.3
func (r AddUserResponse) Status() string
Status returns HTTPResponse.Status
func (AddUserResponse) StatusCode ¶ added in v0.2.3
func (r AddUserResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AddUserResponseProto ¶ added in v0.2.3
type AddUserResponseProto struct {
Data struct {
Email string `json:"email"`
UserId string `json:"user_id"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
AddUserResponseProto defines model for AddUserResponseProto.
type ApiKey ¶
type ApiKey struct {
// Active Enabled/disabled status
Active bool `json:"active"`
// CreatedAt API key creation time
CreatedAt string `json:"created_at"`
// CreatorEmail The email of the creator of the API key in case of team API keys
CreatorEmail *string `json:"creator_email"`
// CreatorName The name of the creator of the API key in case of team API keys
CreatorName *string `json:"creator_name"`
// HasSecret Whether the API key has a secret part
HasSecret bool `json:"has_secret"`
// Id API key ID
Id string `json:"id"`
// Key Public part of the API key
Key string `json:"key"`
// Name API key name
Name *string `json:"name"`
}
ApiKey TODO: Currently we have user API keys and provider API keys
This protocol handles only user API keys as provider API keys are planned for removal
type ApiKeySelector ¶
type ApiKeySelector struct {
// contains filtered or unexported fields
}
ApiKeySelector defines model for ApiKeySelector.
func (ApiKeySelector) AsApiKeySelector0 ¶
func (t ApiKeySelector) AsApiKeySelector0() (ApiKeySelector0, error)
AsApiKeySelector0 returns the union data inside the ApiKeySelector as a ApiKeySelector0
func (ApiKeySelector) AsApiKeySelector1 ¶
func (t ApiKeySelector) AsApiKeySelector1() (ApiKeySelector1, error)
AsApiKeySelector1 returns the union data inside the ApiKeySelector as a ApiKeySelector1
func (ApiKeySelector) AsApiKeySelector2 ¶
func (t ApiKeySelector) AsApiKeySelector2() (ApiKeySelector2, error)
AsApiKeySelector2 returns the union data inside the ApiKeySelector as a ApiKeySelector2
func (*ApiKeySelector) FromApiKeySelector0 ¶
func (t *ApiKeySelector) FromApiKeySelector0(v ApiKeySelector0) error
FromApiKeySelector0 overwrites any union data inside the ApiKeySelector as the provided ApiKeySelector0
func (*ApiKeySelector) FromApiKeySelector1 ¶
func (t *ApiKeySelector) FromApiKeySelector1(v ApiKeySelector1) error
FromApiKeySelector1 overwrites any union data inside the ApiKeySelector as the provided ApiKeySelector1
func (*ApiKeySelector) FromApiKeySelector2 ¶
func (t *ApiKeySelector) FromApiKeySelector2(v ApiKeySelector2) error
FromApiKeySelector2 overwrites any union data inside the ApiKeySelector as the provided ApiKeySelector2
func (ApiKeySelector) MarshalJSON ¶
func (t ApiKeySelector) MarshalJSON() ([]byte, error)
func (*ApiKeySelector) MergeApiKeySelector0 ¶
func (t *ApiKeySelector) MergeApiKeySelector0(v ApiKeySelector0) error
MergeApiKeySelector0 performs a merge with any union data inside the ApiKeySelector, using the provided ApiKeySelector0
func (*ApiKeySelector) MergeApiKeySelector1 ¶
func (t *ApiKeySelector) MergeApiKeySelector1(v ApiKeySelector1) error
MergeApiKeySelector1 performs a merge with any union data inside the ApiKeySelector, using the provided ApiKeySelector1
func (*ApiKeySelector) MergeApiKeySelector2 ¶
func (t *ApiKeySelector) MergeApiKeySelector2(v ApiKeySelector2) error
MergeApiKeySelector2 performs a merge with any union data inside the ApiKeySelector, using the provided ApiKeySelector2
func (*ApiKeySelector) UnmarshalJSON ¶
func (t *ApiKeySelector) UnmarshalJSON(b []byte) error
type ApiKeySelector0 ¶
type ApiKeySelector0 struct {
ByTeamId string `json:"ByTeamId"`
}
ApiKeySelector0 defines model for .
type ApiKeySelector1 ¶
type ApiKeySelector1 struct {
ById []string `json:"ById"`
}
ApiKeySelector1 defines model for .
type ApiKeySelector2 ¶
type ApiKeySelector2 string
ApiKeySelector2 defines model for ApiKeySelector.2.
const (
ApiKeySelector2All ApiKeySelector2 = "All"
)
Defines values for ApiKeySelector2.
type AutoTopUpRecoveryInfoProto ¶ added in v0.2.4
type AutoTopUpRecoveryInfoProto struct {
// Data Returned by `/auto-top-up/recovery-info` when the latest attempt is in
// `RequiresAction`. The FE passes `client_secret` to `stripe.handleNextAction`.
Data struct {
AmountCents int64 `json:"amount_cents"`
ClientSecret string `json:"client_secret"`
PaymentIntentId string `json:"payment_intent_id"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
AutoTopUpRecoveryInfoProto defines model for AutoTopUpRecoveryInfoProto.
type AutoTopUpRequestProto ¶ added in v0.2.4
type AutoTopUpRequestProto struct {
Data struct {
Selector AccountSelector `json:"selector"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
AutoTopUpRequestProto defines model for AutoTopUpRequestProto.
type AutoTopUpSettings ¶ added in v0.2.4
type AutoTopUpSettings struct {
Enabled bool `json:"enabled"`
// MonthlyCapCents Optional cap on auto-top-up spend per calendar month, in cents.
MonthlyCapCents *int64 `json:"monthly_cap_cents"`
// ThresholdCents Trigger threshold in cents. Charge fires when pending balance falls below this.
ThresholdCents int64 `json:"threshold_cents"`
// TopUpAmountCents Amount charged per top-up, in cents.
TopUpAmountCents int64 `json:"top_up_amount_cents"`
}
AutoTopUpSettings defines model for AutoTopUpSettings.
type AutoTopUpStateProto ¶ added in v0.2.4
type AutoTopUpStateProto struct {
Data struct {
// GracePeriodEndsAt `last_failed_at + GRACE_DURATION` — frontend shows "Instances will
// keep running until {date}" during the grace window.
GracePeriodEndsAt *string `json:"grace_period_ends_at"`
LastChargedAt *string `json:"last_charged_at"`
LastFailedAt *string `json:"last_failed_at"`
LastFailureCode *string `json:"last_failure_code"`
LastFailureMessage *string `json:"last_failure_message"`
PausedUntil *string `json:"paused_until"`
Settings *AutoTopUpSettings `json:"settings,omitempty"`
// SpentThisMonthCents Cents charged this calendar month via auto-top-up (sum of Succeeded + Recovered).
SpentThisMonthCents int64 `json:"spent_this_month_cents"`
// Status Derived status — computed server-side from settings + failure state +
// monthly spend. Frontend uses this directly for UI dispatch.
Status AutoTopUpStatus `json:"status"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
AutoTopUpStateProto defines model for AutoTopUpStateProto.
type AutoTopUpStatus ¶ added in v0.2.4
type AutoTopUpStatus string
AutoTopUpStatus Derived status — computed server-side from settings + failure state + monthly spend. Frontend uses this directly for UI dispatch.
const ( AutoTopUpStatusActive AutoTopUpStatus = "Active" AutoTopUpStatusCapReached AutoTopUpStatus = "CapReached" AutoTopUpStatusChargeFailed AutoTopUpStatus = "ChargeFailed" AutoTopUpStatusDisabledAfterFailures AutoTopUpStatus = "DisabledAfterFailures" AutoTopUpStatusOff AutoTopUpStatus = "Off" )
Defines values for AutoTopUpStatus.
type AutoTopUpUpdateRequestProto ¶ added in v0.2.4
type AutoTopUpUpdateRequestProto struct {
Data struct {
Selector AccountSelector `json:"selector"`
Settings AutoTopUpSettings `json:"settings"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
AutoTopUpUpdateRequestProto defines model for AutoTopUpUpdateRequestProto.
type BulkChargeForServiceJSONRequestBody ¶
type BulkChargeForServiceJSONRequestBody = BulkServiceChargeRequestProto
BulkChargeForServiceJSONRequestBody defines body for BulkChargeForService for application/json ContentType.
type BulkChargeForServiceResponse ¶
type BulkChargeForServiceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *BulkServiceChargeResponseProto
}
func ParseBulkChargeForServiceResponse ¶
func ParseBulkChargeForServiceResponse(rsp *http.Response) (*BulkChargeForServiceResponse, error)
ParseBulkChargeForServiceResponse parses an HTTP response from a BulkChargeForServiceWithResponse call
func (BulkChargeForServiceResponse) Status ¶
func (r BulkChargeForServiceResponse) Status() string
Status returns HTTPResponse.Status
func (BulkChargeForServiceResponse) StatusCode ¶
func (r BulkChargeForServiceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type BulkServiceChargeRequestProto ¶
type BulkServiceChargeRequestProto struct {
Data struct {
// Charges Charges to be applied
Charges []ServiceCharge `json:"charges"`
// Provider Name of the provider of the service
Provider string `json:"provider"`
// Service Name of the service to charge
Service string `json:"service"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
BulkServiceChargeRequestProto defines model for BulkServiceChargeRequestProto.
type BulkServiceChargeResponseProto ¶
type BulkServiceChargeResponseProto struct {
Data struct {
// RequestIds Either a provided request IDs or generated ones
RequestIds []string `json:"request_ids"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
BulkServiceChargeResponseProto defines model for BulkServiceChargeResponseProto.
type CancelDrainJSONRequestBody ¶ added in v0.2.0
type CancelDrainJSONRequestBody = CancelDrainRequestProto
CancelDrainJSONRequestBody defines body for CancelDrain for application/json ContentType.
type CancelDrainRequestProto ¶ added in v0.2.0
type CancelDrainRequestProto struct {
// Data Request to cancel an active drain
Data struct {
// Selector Selector for node admin operations (drain, delete, marketplace listing toggle, etc.)
Selector NodeAdminSelector `json:"selector"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
CancelDrainRequestProto defines model for CancelDrainRequestProto.
type CancelDrainResponse ¶ added in v0.2.0
type CancelDrainResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CancelDrainResponseProto
}
func ParseCancelDrainResponse ¶ added in v0.2.0
func ParseCancelDrainResponse(rsp *http.Response) (*CancelDrainResponse, error)
ParseCancelDrainResponse parses an HTTP response from a CancelDrainWithResponse call
func (CancelDrainResponse) Status ¶ added in v0.2.0
func (r CancelDrainResponse) Status() string
Status returns HTTPResponse.Status
func (CancelDrainResponse) StatusCode ¶ added in v0.2.0
func (r CancelDrainResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CancelDrainResponseProto ¶ added in v0.2.0
type CancelDrainResponseProto struct {
Data struct {
NodeIds []string `json:"node_ids"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
CancelDrainResponseProto defines model for CancelDrainResponseProto.
type CapabilitiesResponseProto ¶ added in v0.2.0
type CapabilitiesResponseProto struct {
Data struct {
Features []GlobalCapability `json:"features"`
// IsAdmin Whether the current account has an admin role.
IsAdmin bool `json:"is_admin"`
// ProviderName Name of the compute provider associated with the current account, if any.
ProviderName *string `json:"provider_name"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
CapabilitiesResponseProto defines model for CapabilitiesResponseProto.
type ChargeForServiceJSONRequestBody ¶
type ChargeForServiceJSONRequestBody = ServiceChargeRequestProto
ChargeForServiceJSONRequestBody defines body for ChargeForService for application/json ContentType.
type ChargeForServiceResponse ¶
type ChargeForServiceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ServiceChargeResponseProto
}
func ParseChargeForServiceResponse ¶
func ParseChargeForServiceResponse(rsp *http.Response) (*ChargeForServiceResponse, error)
ParseChargeForServiceResponse parses an HTTP response from a ChargeForServiceWithResponse call
func (ChargeForServiceResponse) Status ¶
func (r ChargeForServiceResponse) Status() string
Status returns HTTPResponse.Status
func (ChargeForServiceResponse) StatusCode ¶
func (r ChargeForServiceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) AddApiKey ¶
func (c *Client) AddApiKey(ctx context.Context, body AddApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AddApiKeyWithBody ¶
func (*Client) AddInstanceType ¶ added in v0.2.0
func (c *Client) AddInstanceType(ctx context.Context, body AddInstanceTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AddInstanceTypeWithBody ¶ added in v0.2.0
func (*Client) AddInstanceVariant ¶ added in v0.2.0
func (c *Client) AddInstanceVariant(ctx context.Context, body AddInstanceVariantJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AddInstanceVariantWithBody ¶ added in v0.2.0
func (*Client) AddNetwork ¶
func (c *Client) AddNetwork(ctx context.Context, body AddNetworkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AddNetworkWithBody ¶
func (*Client) AddRecipe ¶ added in v0.2.0
func (c *Client) AddRecipe(ctx context.Context, body AddRecipeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AddRecipeWithBody ¶ added in v0.2.0
func (*Client) AddSshKey ¶
func (c *Client) AddSshKey(ctx context.Context, body AddSshKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AddSshKeyWithBody ¶
func (*Client) AddTeamMember ¶
func (c *Client) AddTeamMember(ctx context.Context, teamId string, body AddTeamMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AddTeamMemberWithBody ¶
func (*Client) AddUser ¶ added in v0.2.3
func (c *Client) AddUser(ctx context.Context, body AddUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AddUserWithBody ¶ added in v0.2.3
func (*Client) BulkChargeForService ¶
func (c *Client) BulkChargeForService(ctx context.Context, body BulkChargeForServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) BulkChargeForServiceWithBody ¶
func (*Client) CancelDrain ¶ added in v0.2.0
func (c *Client) CancelDrain(ctx context.Context, body CancelDrainJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CancelDrainWithBody ¶ added in v0.2.0
func (*Client) ChargeForService ¶
func (c *Client) ChargeForService(ctx context.Context, body ChargeForServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ChargeForServiceWithBody ¶
func (*Client) CreateAndAttachReservation ¶ added in v0.2.0
func (c *Client) CreateAndAttachReservation(ctx context.Context, body CreateAndAttachReservationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateAndAttachReservationWithBody ¶ added in v0.2.0
func (*Client) CreateExternalTransaction ¶
func (c *Client) CreateExternalTransaction(ctx context.Context, body CreateExternalTransactionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateExternalTransactionWithBody ¶
func (*Client) CreatePromoTransaction ¶
func (c *Client) CreatePromoTransaction(ctx context.Context, body CreatePromoTransactionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreatePromoTransactionWithBody ¶
func (*Client) CreateTeam ¶
func (c *Client) CreateTeam(ctx context.Context, body CreateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateTeamWithBody ¶
func (*Client) CreateVolume ¶ added in v0.2.0
func (c *Client) CreateVolume(ctx context.Context, body CreateVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateVolumeWithBody ¶ added in v0.2.0
func (*Client) DeleteNetwork ¶ added in v0.2.0
func (c *Client) DeleteNetwork(ctx context.Context, body DeleteNetworkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteNetworkWithBody ¶ added in v0.2.0
func (*Client) DeleteSshKey ¶
func (*Client) DeleteUser ¶ added in v0.2.3
func (c *Client) DeleteUser(ctx context.Context, body DeleteUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteUserWithBody ¶ added in v0.2.3
func (*Client) DrainNode ¶ added in v0.2.0
func (c *Client) DrainNode(ctx context.Context, body DrainNodeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DrainNodeWithBody ¶ added in v0.2.0
func (*Client) ForceDrain ¶ added in v0.2.0
func (c *Client) ForceDrain(ctx context.Context, body ForceDrainJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ForceDrainWithBody ¶ added in v0.2.0
func (*Client) GetAccountInfo ¶
func (*Client) GetAutoTopUpRecoveryInfo ¶ added in v0.2.4
func (c *Client) GetAutoTopUpRecoveryInfo(ctx context.Context, body GetAutoTopUpRecoveryInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetAutoTopUpRecoveryInfoWithBody ¶ added in v0.2.4
func (*Client) GetOrCreateStripeCustomer ¶ added in v0.2.4
func (c *Client) GetOrCreateStripeCustomer(ctx context.Context, body GetOrCreateStripeCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetOrCreateStripeCustomerWithBody ¶ added in v0.2.4
func (*Client) InstanceMetrics ¶ added in v0.2.3
func (c *Client) InstanceMetrics(ctx context.Context, body InstanceMetricsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) InstanceMetricsWithBody ¶ added in v0.2.3
func (*Client) ListApiKeys ¶
func (c *Client) ListApiKeys(ctx context.Context, body ListApiKeysJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListApiKeysWithBody ¶
func (*Client) ListCapabilities ¶ added in v0.2.0
func (*Client) ListInstanceTypes ¶
func (c *Client) ListInstanceTypes(ctx context.Context, body ListInstanceTypesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListInstanceTypesWithBody ¶
func (*Client) ListInstances ¶
func (c *Client) ListInstances(ctx context.Context, body ListInstancesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListInstancesWithBody ¶
func (*Client) ListNetworks ¶
func (c *Client) ListNetworks(ctx context.Context, body ListNetworksJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListNetworksWithBody ¶
func (*Client) ListNodes ¶ added in v0.2.0
func (c *Client) ListNodes(ctx context.Context, body ListNodesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListNodesWithBody ¶ added in v0.2.0
func (*Client) ListProviders ¶
func (c *Client) ListProviders(ctx context.Context, body ListProvidersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListProvidersWithBody ¶
func (*Client) ListRecipes ¶
func (*Client) ListReservationTypes ¶
func (*Client) ListReservations ¶
func (c *Client) ListReservations(ctx context.Context, body ListReservationsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListReservationsWithBody ¶
func (*Client) ListSavedEnvironments ¶ added in v0.2.7
func (c *Client) ListSavedEnvironments(ctx context.Context, body ListSavedEnvironmentsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListSavedEnvironmentsWithBody ¶ added in v0.2.7
func (*Client) ListSshKeys ¶
func (*Client) ListTeams ¶
func (c *Client) ListTeams(ctx context.Context, body ListTeamsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListTeamsWithBody ¶ added in v0.2.3
func (*Client) ListTransactions ¶
func (*Client) ListUsers ¶ added in v0.2.3
func (c *Client) ListUsers(ctx context.Context, body ListUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListUsersWithBody ¶ added in v0.2.3
func (*Client) ListVolumes ¶ added in v0.2.0
func (c *Client) ListVolumes(ctx context.Context, body ListVolumesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListVolumesWithBody ¶ added in v0.2.0
func (*Client) Login ¶
func (c *Client) Login(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) LoginWithBody ¶
func (*Client) NodeMetrics ¶ added in v0.2.3
func (c *Client) NodeMetrics(ctx context.Context, body NodeMetricsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) NodeMetricsById ¶ added in v0.2.3
func (*Client) NodeMetricsWithBody ¶ added in v0.2.3
func (*Client) PauseVm ¶ added in v0.2.3
func (c *Client) PauseVm(ctx context.Context, body PauseVmJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PauseVmWithBody ¶ added in v0.2.3
func (*Client) RegisterUser ¶
func (c *Client) RegisterUser(ctx context.Context, body RegisterUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RegisterUserWithBody ¶
func (*Client) RemoveInstanceType ¶ added in v0.2.0
func (c *Client) RemoveInstanceType(ctx context.Context, body RemoveInstanceTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RemoveInstanceTypeWithBody ¶ added in v0.2.0
func (*Client) RemoveInstanceVariant ¶ added in v0.2.0
func (c *Client) RemoveInstanceVariant(ctx context.Context, body RemoveInstanceVariantJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RemoveInstanceVariantWithBody ¶ added in v0.2.0
func (*Client) RemoveRecipe ¶ added in v0.2.0
func (c *Client) RemoveRecipe(ctx context.Context, body RemoveRecipeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RemoveRecipeWithBody ¶ added in v0.2.0
func (*Client) RemoveTeamMember ¶
func (c *Client) RemoveTeamMember(ctx context.Context, teamId string, body RemoveTeamMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RemoveTeamMemberWithBody ¶
func (*Client) RentInstance ¶
func (c *Client) RentInstance(ctx context.Context, body RentInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RentInstanceWithBody ¶
func (*Client) RequestPasswordReset ¶
func (c *Client) RequestPasswordReset(ctx context.Context, body RequestPasswordResetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RequestPasswordResetWithBody ¶
func (*Client) ResendVerification ¶ added in v0.2.0
func (c *Client) ResendVerification(ctx context.Context, body ResendVerificationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ResendVerificationWithBody ¶ added in v0.2.0
func (*Client) ResetPassword ¶
func (c *Client) ResetPassword(ctx context.Context, body ResetPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ResetPasswordWithBody ¶
func (*Client) ResetVm ¶ added in v0.2.0
func (c *Client) ResetVm(ctx context.Context, body ResetVmJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ResetVmWithBody ¶ added in v0.2.0
func (*Client) ResumeNode ¶ added in v0.2.0
func (c *Client) ResumeNode(ctx context.Context, body ResumeNodeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ResumeNodeWithBody ¶ added in v0.2.0
func (*Client) ResumeVm ¶ added in v0.2.3
func (c *Client) ResumeVm(ctx context.Context, body ResumeVmJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ResumeVmWithBody ¶ added in v0.2.3
func (*Client) SearchTeams ¶ added in v0.2.3
func (c *Client) SearchTeams(ctx context.Context, body SearchTeamsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SearchTeamsWithBody ¶ added in v0.2.3
func (*Client) SearchUsers ¶ added in v0.2.3
func (c *Client) SearchUsers(ctx context.Context, body SearchUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SearchUsersWithBody ¶ added in v0.2.3
func (*Client) SelectAndDeleteApiKeys ¶
func (c *Client) SelectAndDeleteApiKeys(ctx context.Context, body SelectAndDeleteApiKeysJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SelectAndDeleteApiKeysWithBody ¶
func (*Client) SelectAndDeleteSshKey ¶
func (c *Client) SelectAndDeleteSshKey(ctx context.Context, body SelectAndDeleteSshKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SelectAndDeleteSshKeyWithBody ¶
func (*Client) SendUsersMessage ¶ added in v0.2.3
func (c *Client) SendUsersMessage(ctx context.Context, body SendUsersMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SendUsersMessageWithBody ¶ added in v0.2.3
func (*Client) SetMarketplaceListing ¶ added in v0.2.3
func (c *Client) SetMarketplaceListing(ctx context.Context, body SetMarketplaceListingJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SetMarketplaceListingWithBody ¶ added in v0.2.3
func (*Client) StartVm ¶ added in v0.2.0
func (c *Client) StartVm(ctx context.Context, body StartVmJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) StartVmWithBody ¶ added in v0.2.0
func (*Client) StopVm ¶ added in v0.2.0
func (c *Client) StopVm(ctx context.Context, body StopVmJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) StopVmWithBody ¶ added in v0.2.0
func (*Client) TerminateInstances ¶
func (c *Client) TerminateInstances(ctx context.Context, body TerminateInstancesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) TerminateInstancesWithBody ¶
func (*Client) UpdateActiveReservation ¶ added in v0.2.0
func (c *Client) UpdateActiveReservation(ctx context.Context, body UpdateActiveReservationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateActiveReservationWithBody ¶ added in v0.2.0
func (*Client) UpdateApiKeys ¶
func (c *Client) UpdateApiKeys(ctx context.Context, body UpdateApiKeysJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateApiKeysWithBody ¶
func (*Client) UpdateAutoTopUp ¶ added in v0.2.4
func (c *Client) UpdateAutoTopUp(ctx context.Context, body UpdateAutoTopUpJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateAutoTopUpWithBody ¶ added in v0.2.4
func (*Client) UpdateCreditLimit ¶ added in v0.2.3
func (c *Client) UpdateCreditLimit(ctx context.Context, body UpdateCreditLimitJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateCreditLimitWithBody ¶ added in v0.2.3
func (*Client) UpdateInstanceType ¶ added in v0.2.0
func (c *Client) UpdateInstanceType(ctx context.Context, body UpdateInstanceTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateInstanceTypeWithBody ¶ added in v0.2.0
func (*Client) UpdateInstanceVariant ¶ added in v0.2.0
func (c *Client) UpdateInstanceVariant(ctx context.Context, body UpdateInstanceVariantJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateInstanceVariantWithBody ¶ added in v0.2.0
func (*Client) UpdateNetwork ¶ added in v0.2.0
func (c *Client) UpdateNetwork(ctx context.Context, body UpdateNetworkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateNetworkWithBody ¶ added in v0.2.0
func (*Client) UpdateProviderNodeInstanceType ¶ added in v0.2.0
func (c *Client) UpdateProviderNodeInstanceType(ctx context.Context, body UpdateProviderNodeInstanceTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateProviderNodeInstanceTypeWithBody ¶ added in v0.2.0
func (*Client) UpdateTeamMembership ¶
func (c *Client) UpdateTeamMembership(ctx context.Context, teamId string, body UpdateTeamMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateTeamMembershipWithBody ¶
func (*Client) UpdateVolume ¶ added in v0.2.0
func (c *Client) UpdateVolume(ctx context.Context, body UpdateVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateVolumeWithBody ¶ added in v0.2.0
func (*Client) VerifyEmail ¶ added in v0.2.0
func (c *Client) VerifyEmail(ctx context.Context, params *VerifyEmailParams, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface {
// GetAutoTopUpRecoveryInfoWithBody request with any body
GetAutoTopUpRecoveryInfoWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GetAutoTopUpRecoveryInfo(ctx context.Context, body GetAutoTopUpRecoveryInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateAutoTopUpWithBody request with any body
UpdateAutoTopUpWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateAutoTopUp(ctx context.Context, body UpdateAutoTopUpJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAccountInfo request
GetAccountInfo(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetOrCreateStripeCustomerWithBody request with any body
GetOrCreateStripeCustomerWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GetOrCreateStripeCustomer(ctx context.Context, body GetOrCreateStripeCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateExternalTransactionWithBody request with any body
CreateExternalTransactionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateExternalTransaction(ctx context.Context, body CreateExternalTransactionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreatePromoTransactionWithBody request with any body
CreatePromoTransactionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreatePromoTransaction(ctx context.Context, body CreatePromoTransactionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListTransactions request
ListTransactions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateCreditLimitWithBody request with any body
UpdateCreditLimitWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateCreditLimit(ctx context.Context, body UpdateCreditLimitJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// AddApiKeyWithBody request with any body
AddApiKeyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AddApiKey(ctx context.Context, body AddApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SelectAndDeleteApiKeysWithBody request with any body
SelectAndDeleteApiKeysWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SelectAndDeleteApiKeys(ctx context.Context, body SelectAndDeleteApiKeysJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListApiKeysWithBody request with any body
ListApiKeysWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ListApiKeys(ctx context.Context, body ListApiKeysJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateApiKeysWithBody request with any body
UpdateApiKeysWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateApiKeys(ctx context.Context, body UpdateApiKeysJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// LoginWithBody request with any body
LoginWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
Login(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// Logout request
Logout(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// Me request
Me(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// RequestPasswordResetWithBody request with any body
RequestPasswordResetWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RequestPasswordReset(ctx context.Context, body RequestPasswordResetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ResendVerificationWithBody request with any body
ResendVerificationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ResendVerification(ctx context.Context, body ResendVerificationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ResetPasswordWithBody request with any body
ResetPasswordWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ResetPassword(ctx context.Context, body ResetPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// VerifyEmail request
VerifyEmail(ctx context.Context, params *VerifyEmailParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListCapabilities request
ListCapabilities(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// AddInstanceTypeWithBody request with any body
AddInstanceTypeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AddInstanceType(ctx context.Context, body AddInstanceTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// AddInstanceVariantWithBody request with any body
AddInstanceVariantWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AddInstanceVariant(ctx context.Context, body AddInstanceVariantJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListInstanceTypesWithBody request with any body
ListInstanceTypesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ListInstanceTypes(ctx context.Context, body ListInstanceTypesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RemoveInstanceTypeWithBody request with any body
RemoveInstanceTypeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RemoveInstanceType(ctx context.Context, body RemoveInstanceTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RemoveInstanceVariantWithBody request with any body
RemoveInstanceVariantWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RemoveInstanceVariant(ctx context.Context, body RemoveInstanceVariantJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateInstanceTypeWithBody request with any body
UpdateInstanceTypeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateInstanceType(ctx context.Context, body UpdateInstanceTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateInstanceVariantWithBody request with any body
UpdateInstanceVariantWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateInstanceVariant(ctx context.Context, body UpdateInstanceVariantJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListInstancesWithBody request with any body
ListInstancesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ListInstances(ctx context.Context, body ListInstancesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// InstanceMetricsWithBody request with any body
InstanceMetricsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
InstanceMetrics(ctx context.Context, body InstanceMetricsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PauseVmWithBody request with any body
PauseVmWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PauseVm(ctx context.Context, body PauseVmJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RentInstanceWithBody request with any body
RentInstanceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RentInstance(ctx context.Context, body RentInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ResetVmWithBody request with any body
ResetVmWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ResetVm(ctx context.Context, body ResetVmJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ResumeVmWithBody request with any body
ResumeVmWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ResumeVm(ctx context.Context, body ResumeVmJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListSavedEnvironmentsWithBody request with any body
ListSavedEnvironmentsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ListSavedEnvironments(ctx context.Context, body ListSavedEnvironmentsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// StartVmWithBody request with any body
StartVmWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
StartVm(ctx context.Context, body StartVmJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// StopVmWithBody request with any body
StopVmWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
StopVm(ctx context.Context, body StopVmJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// TerminateInstancesWithBody request with any body
TerminateInstancesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
TerminateInstances(ctx context.Context, body TerminateInstancesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// AddNetworkWithBody request with any body
AddNetworkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AddNetwork(ctx context.Context, body AddNetworkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteNetworkWithBody request with any body
DeleteNetworkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteNetwork(ctx context.Context, body DeleteNetworkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListNetworksWithBody request with any body
ListNetworksWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ListNetworks(ctx context.Context, body ListNetworksJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateNetworkWithBody request with any body
UpdateNetworkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateNetwork(ctx context.Context, body UpdateNetworkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CancelDrainWithBody request with any body
CancelDrainWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CancelDrain(ctx context.Context, body CancelDrainJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DrainNodeWithBody request with any body
DrainNodeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DrainNode(ctx context.Context, body DrainNodeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ForceDrainWithBody request with any body
ForceDrainWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ForceDrain(ctx context.Context, body ForceDrainJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListNodesWithBody request with any body
ListNodesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ListNodes(ctx context.Context, body ListNodesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// NodeMetricsWithBody request with any body
NodeMetricsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
NodeMetrics(ctx context.Context, body NodeMetricsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// NodeMetricsById request
NodeMetricsById(ctx context.Context, nodeId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ResumeNodeWithBody request with any body
ResumeNodeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ResumeNode(ctx context.Context, body ResumeNodeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetMarketplaceListingWithBody request with any body
SetMarketplaceListingWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SetMarketplaceListing(ctx context.Context, body SetMarketplaceListingJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateProviderNodeInstanceTypeWithBody request with any body
UpdateProviderNodeInstanceTypeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateProviderNodeInstanceType(ctx context.Context, body UpdateProviderNodeInstanceTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListProvidersWithBody request with any body
ListProvidersWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ListProviders(ctx context.Context, body ListProvidersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// AddRecipeWithBody request with any body
AddRecipeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AddRecipe(ctx context.Context, body AddRecipeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListRecipes request
ListRecipes(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// RemoveRecipeWithBody request with any body
RemoveRecipeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RemoveRecipe(ctx context.Context, body RemoveRecipeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateAndAttachReservationWithBody request with any body
CreateAndAttachReservationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateAndAttachReservation(ctx context.Context, body CreateAndAttachReservationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListReservationsWithBody request with any body
ListReservationsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ListReservations(ctx context.Context, body ListReservationsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListReservationTypes request
ListReservationTypes(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateActiveReservationWithBody request with any body
UpdateActiveReservationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateActiveReservation(ctx context.Context, body UpdateActiveReservationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// BulkChargeForServiceWithBody request with any body
BulkChargeForServiceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
BulkChargeForService(ctx context.Context, body BulkChargeForServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ChargeForServiceWithBody request with any body
ChargeForServiceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ChargeForService(ctx context.Context, body ChargeForServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// AddSshKeyWithBody request with any body
AddSshKeyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AddSshKey(ctx context.Context, body AddSshKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SelectAndDeleteSshKeyWithBody request with any body
SelectAndDeleteSshKeyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SelectAndDeleteSshKey(ctx context.Context, body SelectAndDeleteSshKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListSshKeys request
ListSshKeys(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteSshKey request
DeleteSshKey(ctx context.Context, sshKeyId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateTeamWithBody request with any body
CreateTeamWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateTeam(ctx context.Context, body CreateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListTeamsWithBody request with any body
ListTeamsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ListTeams(ctx context.Context, body ListTeamsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SearchTeamsWithBody request with any body
SearchTeamsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SearchTeams(ctx context.Context, body SearchTeamsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetTeam request
GetTeam(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// AddTeamMemberWithBody request with any body
AddTeamMemberWithBody(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AddTeamMember(ctx context.Context, teamId string, body AddTeamMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RemoveTeamMemberWithBody request with any body
RemoveTeamMemberWithBody(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RemoveTeamMember(ctx context.Context, teamId string, body RemoveTeamMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateTeamMembershipWithBody request with any body
UpdateTeamMembershipWithBody(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateTeamMembership(ctx context.Context, teamId string, body UpdateTeamMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// AddUserWithBody request with any body
AddUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AddUser(ctx context.Context, body AddUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteUserWithBody request with any body
DeleteUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteUser(ctx context.Context, body DeleteUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListUsersWithBody request with any body
ListUsersWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ListUsers(ctx context.Context, body ListUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RegisterUserWithBody request with any body
RegisterUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RegisterUser(ctx context.Context, body RegisterUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SearchUsersWithBody request with any body
SearchUsersWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SearchUsers(ctx context.Context, body SearchUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SendUsersMessageWithBody request with any body
SendUsersMessageWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SendUsersMessage(ctx context.Context, body SendUsersMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateVolumeWithBody request with any body
CreateVolumeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateVolume(ctx context.Context, body CreateVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListVolumesWithBody request with any body
ListVolumesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ListVolumes(ctx context.Context, body ListVolumesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateVolumeWithBody request with any body
UpdateVolumeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateVolume(ctx context.Context, body UpdateVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) AddApiKeyWithBodyWithResponse ¶
func (c *ClientWithResponses) AddApiKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddApiKeyResponse, error)
AddApiKeyWithBodyWithResponse request with arbitrary body returning *AddApiKeyResponse
func (*ClientWithResponses) AddApiKeyWithResponse ¶
func (c *ClientWithResponses) AddApiKeyWithResponse(ctx context.Context, body AddApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*AddApiKeyResponse, error)
func (*ClientWithResponses) AddInstanceTypeWithBodyWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) AddInstanceTypeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddInstanceTypeResponse, error)
AddInstanceTypeWithBodyWithResponse request with arbitrary body returning *AddInstanceTypeResponse
func (*ClientWithResponses) AddInstanceTypeWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) AddInstanceTypeWithResponse(ctx context.Context, body AddInstanceTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*AddInstanceTypeResponse, error)
func (*ClientWithResponses) AddInstanceVariantWithBodyWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) AddInstanceVariantWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddInstanceVariantResponse, error)
AddInstanceVariantWithBodyWithResponse request with arbitrary body returning *AddInstanceVariantResponse
func (*ClientWithResponses) AddInstanceVariantWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) AddInstanceVariantWithResponse(ctx context.Context, body AddInstanceVariantJSONRequestBody, reqEditors ...RequestEditorFn) (*AddInstanceVariantResponse, error)
func (*ClientWithResponses) AddNetworkWithBodyWithResponse ¶
func (c *ClientWithResponses) AddNetworkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddNetworkResponse, error)
AddNetworkWithBodyWithResponse request with arbitrary body returning *AddNetworkResponse
func (*ClientWithResponses) AddNetworkWithResponse ¶
func (c *ClientWithResponses) AddNetworkWithResponse(ctx context.Context, body AddNetworkJSONRequestBody, reqEditors ...RequestEditorFn) (*AddNetworkResponse, error)
func (*ClientWithResponses) AddRecipeWithBodyWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) AddRecipeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddRecipeResponse, error)
AddRecipeWithBodyWithResponse request with arbitrary body returning *AddRecipeResponse
func (*ClientWithResponses) AddRecipeWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) AddRecipeWithResponse(ctx context.Context, body AddRecipeJSONRequestBody, reqEditors ...RequestEditorFn) (*AddRecipeResponse, error)
func (*ClientWithResponses) AddSshKeyWithBodyWithResponse ¶
func (c *ClientWithResponses) AddSshKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddSshKeyResponse, error)
AddSshKeyWithBodyWithResponse request with arbitrary body returning *AddSshKeyResponse
func (*ClientWithResponses) AddSshKeyWithResponse ¶
func (c *ClientWithResponses) AddSshKeyWithResponse(ctx context.Context, body AddSshKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*AddSshKeyResponse, error)
func (*ClientWithResponses) AddTeamMemberWithBodyWithResponse ¶
func (c *ClientWithResponses) AddTeamMemberWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddTeamMemberResponse, error)
AddTeamMemberWithBodyWithResponse request with arbitrary body returning *AddTeamMemberResponse
func (*ClientWithResponses) AddTeamMemberWithResponse ¶
func (c *ClientWithResponses) AddTeamMemberWithResponse(ctx context.Context, teamId string, body AddTeamMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*AddTeamMemberResponse, error)
func (*ClientWithResponses) AddUserWithBodyWithResponse ¶ added in v0.2.3
func (c *ClientWithResponses) AddUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddUserResponse, error)
AddUserWithBodyWithResponse request with arbitrary body returning *AddUserResponse
func (*ClientWithResponses) AddUserWithResponse ¶ added in v0.2.3
func (c *ClientWithResponses) AddUserWithResponse(ctx context.Context, body AddUserJSONRequestBody, reqEditors ...RequestEditorFn) (*AddUserResponse, error)
func (*ClientWithResponses) BulkChargeForServiceWithBodyWithResponse ¶
func (c *ClientWithResponses) BulkChargeForServiceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BulkChargeForServiceResponse, error)
BulkChargeForServiceWithBodyWithResponse request with arbitrary body returning *BulkChargeForServiceResponse
func (*ClientWithResponses) BulkChargeForServiceWithResponse ¶
func (c *ClientWithResponses) BulkChargeForServiceWithResponse(ctx context.Context, body BulkChargeForServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*BulkChargeForServiceResponse, error)
func (*ClientWithResponses) CancelDrainWithBodyWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) CancelDrainWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CancelDrainResponse, error)
CancelDrainWithBodyWithResponse request with arbitrary body returning *CancelDrainResponse
func (*ClientWithResponses) CancelDrainWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) CancelDrainWithResponse(ctx context.Context, body CancelDrainJSONRequestBody, reqEditors ...RequestEditorFn) (*CancelDrainResponse, error)
func (*ClientWithResponses) ChargeForServiceWithBodyWithResponse ¶
func (c *ClientWithResponses) ChargeForServiceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChargeForServiceResponse, error)
ChargeForServiceWithBodyWithResponse request with arbitrary body returning *ChargeForServiceResponse
func (*ClientWithResponses) ChargeForServiceWithResponse ¶
func (c *ClientWithResponses) ChargeForServiceWithResponse(ctx context.Context, body ChargeForServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*ChargeForServiceResponse, error)
func (*ClientWithResponses) CreateAndAttachReservationWithBodyWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) CreateAndAttachReservationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAndAttachReservationResponse, error)
CreateAndAttachReservationWithBodyWithResponse request with arbitrary body returning *CreateAndAttachReservationResponse
func (*ClientWithResponses) CreateAndAttachReservationWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) CreateAndAttachReservationWithResponse(ctx context.Context, body CreateAndAttachReservationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAndAttachReservationResponse, error)
func (*ClientWithResponses) CreateExternalTransactionWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateExternalTransactionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateExternalTransactionResponse, error)
CreateExternalTransactionWithBodyWithResponse request with arbitrary body returning *CreateExternalTransactionResponse
func (*ClientWithResponses) CreateExternalTransactionWithResponse ¶
func (c *ClientWithResponses) CreateExternalTransactionWithResponse(ctx context.Context, body CreateExternalTransactionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateExternalTransactionResponse, error)
func (*ClientWithResponses) CreatePromoTransactionWithBodyWithResponse ¶
func (c *ClientWithResponses) CreatePromoTransactionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePromoTransactionResponse, error)
CreatePromoTransactionWithBodyWithResponse request with arbitrary body returning *CreatePromoTransactionResponse
func (*ClientWithResponses) CreatePromoTransactionWithResponse ¶
func (c *ClientWithResponses) CreatePromoTransactionWithResponse(ctx context.Context, body CreatePromoTransactionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePromoTransactionResponse, error)
func (*ClientWithResponses) CreateTeamWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateTeamWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTeamResponse, error)
CreateTeamWithBodyWithResponse request with arbitrary body returning *CreateTeamResponse
func (*ClientWithResponses) CreateTeamWithResponse ¶
func (c *ClientWithResponses) CreateTeamWithResponse(ctx context.Context, body CreateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTeamResponse, error)
func (*ClientWithResponses) CreateVolumeWithBodyWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) CreateVolumeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateVolumeResponse, error)
CreateVolumeWithBodyWithResponse request with arbitrary body returning *CreateVolumeResponse
func (*ClientWithResponses) CreateVolumeWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) CreateVolumeWithResponse(ctx context.Context, body CreateVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateVolumeResponse, error)
func (*ClientWithResponses) DeleteNetworkWithBodyWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) DeleteNetworkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteNetworkResponse, error)
DeleteNetworkWithBodyWithResponse request with arbitrary body returning *DeleteNetworkResponse
func (*ClientWithResponses) DeleteNetworkWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) DeleteNetworkWithResponse(ctx context.Context, body DeleteNetworkJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteNetworkResponse, error)
func (*ClientWithResponses) DeleteSshKeyWithResponse ¶
func (c *ClientWithResponses) DeleteSshKeyWithResponse(ctx context.Context, sshKeyId string, reqEditors ...RequestEditorFn) (*DeleteSshKeyResponse, error)
DeleteSshKeyWithResponse request returning *DeleteSshKeyResponse
func (*ClientWithResponses) DeleteUserWithBodyWithResponse ¶ added in v0.2.3
func (c *ClientWithResponses) DeleteUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error)
DeleteUserWithBodyWithResponse request with arbitrary body returning *DeleteUserResponse
func (*ClientWithResponses) DeleteUserWithResponse ¶ added in v0.2.3
func (c *ClientWithResponses) DeleteUserWithResponse(ctx context.Context, body DeleteUserJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error)
func (*ClientWithResponses) DrainNodeWithBodyWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) DrainNodeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DrainNodeResponse, error)
DrainNodeWithBodyWithResponse request with arbitrary body returning *DrainNodeResponse
func (*ClientWithResponses) DrainNodeWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) DrainNodeWithResponse(ctx context.Context, body DrainNodeJSONRequestBody, reqEditors ...RequestEditorFn) (*DrainNodeResponse, error)
func (*ClientWithResponses) ForceDrainWithBodyWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) ForceDrainWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ForceDrainResponse, error)
ForceDrainWithBodyWithResponse request with arbitrary body returning *ForceDrainResponse
func (*ClientWithResponses) ForceDrainWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) ForceDrainWithResponse(ctx context.Context, body ForceDrainJSONRequestBody, reqEditors ...RequestEditorFn) (*ForceDrainResponse, error)
func (*ClientWithResponses) GetAccountInfoWithResponse ¶
func (c *ClientWithResponses) GetAccountInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAccountInfoResponse, error)
GetAccountInfoWithResponse request returning *GetAccountInfoResponse
func (*ClientWithResponses) GetAutoTopUpRecoveryInfoWithBodyWithResponse ¶ added in v0.2.4
func (c *ClientWithResponses) GetAutoTopUpRecoveryInfoWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetAutoTopUpRecoveryInfoResponse, error)
GetAutoTopUpRecoveryInfoWithBodyWithResponse request with arbitrary body returning *GetAutoTopUpRecoveryInfoResponse
func (*ClientWithResponses) GetAutoTopUpRecoveryInfoWithResponse ¶ added in v0.2.4
func (c *ClientWithResponses) GetAutoTopUpRecoveryInfoWithResponse(ctx context.Context, body GetAutoTopUpRecoveryInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*GetAutoTopUpRecoveryInfoResponse, error)
func (*ClientWithResponses) GetOrCreateStripeCustomerWithBodyWithResponse ¶ added in v0.2.4
func (c *ClientWithResponses) GetOrCreateStripeCustomerWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetOrCreateStripeCustomerResponse, error)
GetOrCreateStripeCustomerWithBodyWithResponse request with arbitrary body returning *GetOrCreateStripeCustomerResponse
func (*ClientWithResponses) GetOrCreateStripeCustomerWithResponse ¶ added in v0.2.4
func (c *ClientWithResponses) GetOrCreateStripeCustomerWithResponse(ctx context.Context, body GetOrCreateStripeCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*GetOrCreateStripeCustomerResponse, error)
func (*ClientWithResponses) GetTeamWithResponse ¶
func (c *ClientWithResponses) GetTeamWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*GetTeamResponse, error)
GetTeamWithResponse request returning *GetTeamResponse
func (*ClientWithResponses) InstanceMetricsWithBodyWithResponse ¶ added in v0.2.3
func (c *ClientWithResponses) InstanceMetricsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InstanceMetricsResponse, error)
InstanceMetricsWithBodyWithResponse request with arbitrary body returning *InstanceMetricsResponse
func (*ClientWithResponses) InstanceMetricsWithResponse ¶ added in v0.2.3
func (c *ClientWithResponses) InstanceMetricsWithResponse(ctx context.Context, body InstanceMetricsJSONRequestBody, reqEditors ...RequestEditorFn) (*InstanceMetricsResponse, error)
func (*ClientWithResponses) ListApiKeysWithBodyWithResponse ¶
func (c *ClientWithResponses) ListApiKeysWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ListApiKeysResponse, error)
ListApiKeysWithBodyWithResponse request with arbitrary body returning *ListApiKeysResponse
func (*ClientWithResponses) ListApiKeysWithResponse ¶
func (c *ClientWithResponses) ListApiKeysWithResponse(ctx context.Context, body ListApiKeysJSONRequestBody, reqEditors ...RequestEditorFn) (*ListApiKeysResponse, error)
func (*ClientWithResponses) ListCapabilitiesWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) ListCapabilitiesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListCapabilitiesResponse, error)
ListCapabilitiesWithResponse request returning *ListCapabilitiesResponse
func (*ClientWithResponses) ListInstanceTypesWithBodyWithResponse ¶
func (c *ClientWithResponses) ListInstanceTypesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ListInstanceTypesResponse, error)
ListInstanceTypesWithBodyWithResponse request with arbitrary body returning *ListInstanceTypesResponse
func (*ClientWithResponses) ListInstanceTypesWithResponse ¶
func (c *ClientWithResponses) ListInstanceTypesWithResponse(ctx context.Context, body ListInstanceTypesJSONRequestBody, reqEditors ...RequestEditorFn) (*ListInstanceTypesResponse, error)
func (*ClientWithResponses) ListInstancesWithBodyWithResponse ¶
func (c *ClientWithResponses) ListInstancesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ListInstancesResponse, error)
ListInstancesWithBodyWithResponse request with arbitrary body returning *ListInstancesResponse
func (*ClientWithResponses) ListInstancesWithResponse ¶
func (c *ClientWithResponses) ListInstancesWithResponse(ctx context.Context, body ListInstancesJSONRequestBody, reqEditors ...RequestEditorFn) (*ListInstancesResponse, error)
func (*ClientWithResponses) ListNetworksWithBodyWithResponse ¶
func (c *ClientWithResponses) ListNetworksWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ListNetworksResponse, error)
ListNetworksWithBodyWithResponse request with arbitrary body returning *ListNetworksResponse
func (*ClientWithResponses) ListNetworksWithResponse ¶
func (c *ClientWithResponses) ListNetworksWithResponse(ctx context.Context, body ListNetworksJSONRequestBody, reqEditors ...RequestEditorFn) (*ListNetworksResponse, error)
func (*ClientWithResponses) ListNodesWithBodyWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) ListNodesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ListNodesResponse, error)
ListNodesWithBodyWithResponse request with arbitrary body returning *ListNodesResponse
func (*ClientWithResponses) ListNodesWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) ListNodesWithResponse(ctx context.Context, body ListNodesJSONRequestBody, reqEditors ...RequestEditorFn) (*ListNodesResponse, error)
func (*ClientWithResponses) ListProvidersWithBodyWithResponse ¶
func (c *ClientWithResponses) ListProvidersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ListProvidersResponse, error)
ListProvidersWithBodyWithResponse request with arbitrary body returning *ListProvidersResponse
func (*ClientWithResponses) ListProvidersWithResponse ¶
func (c *ClientWithResponses) ListProvidersWithResponse(ctx context.Context, body ListProvidersJSONRequestBody, reqEditors ...RequestEditorFn) (*ListProvidersResponse, error)
func (*ClientWithResponses) ListRecipesWithResponse ¶
func (c *ClientWithResponses) ListRecipesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListRecipesResponse, error)
ListRecipesWithResponse request returning *ListRecipesResponse
func (*ClientWithResponses) ListReservationTypesWithResponse ¶
func (c *ClientWithResponses) ListReservationTypesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListReservationTypesResponse, error)
ListReservationTypesWithResponse request returning *ListReservationTypesResponse
func (*ClientWithResponses) ListReservationsWithBodyWithResponse ¶
func (c *ClientWithResponses) ListReservationsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ListReservationsResponse, error)
ListReservationsWithBodyWithResponse request with arbitrary body returning *ListReservationsResponse
func (*ClientWithResponses) ListReservationsWithResponse ¶
func (c *ClientWithResponses) ListReservationsWithResponse(ctx context.Context, body ListReservationsJSONRequestBody, reqEditors ...RequestEditorFn) (*ListReservationsResponse, error)
func (*ClientWithResponses) ListSavedEnvironmentsWithBodyWithResponse ¶ added in v0.2.7
func (c *ClientWithResponses) ListSavedEnvironmentsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ListSavedEnvironmentsResponse, error)
ListSavedEnvironmentsWithBodyWithResponse request with arbitrary body returning *ListSavedEnvironmentsResponse
func (*ClientWithResponses) ListSavedEnvironmentsWithResponse ¶ added in v0.2.7
func (c *ClientWithResponses) ListSavedEnvironmentsWithResponse(ctx context.Context, body ListSavedEnvironmentsJSONRequestBody, reqEditors ...RequestEditorFn) (*ListSavedEnvironmentsResponse, error)
func (*ClientWithResponses) ListSshKeysWithResponse ¶
func (c *ClientWithResponses) ListSshKeysWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSshKeysResponse, error)
ListSshKeysWithResponse request returning *ListSshKeysResponse
func (*ClientWithResponses) ListTeamsWithBodyWithResponse ¶ added in v0.2.3
func (c *ClientWithResponses) ListTeamsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ListTeamsResponse, error)
ListTeamsWithBodyWithResponse request with arbitrary body returning *ListTeamsResponse
func (*ClientWithResponses) ListTeamsWithResponse ¶
func (c *ClientWithResponses) ListTeamsWithResponse(ctx context.Context, body ListTeamsJSONRequestBody, reqEditors ...RequestEditorFn) (*ListTeamsResponse, error)
func (*ClientWithResponses) ListTransactionsWithResponse ¶
func (c *ClientWithResponses) ListTransactionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListTransactionsResponse, error)
ListTransactionsWithResponse request returning *ListTransactionsResponse
func (*ClientWithResponses) ListUsersWithBodyWithResponse ¶ added in v0.2.3
func (c *ClientWithResponses) ListUsersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ListUsersResponse, error)
ListUsersWithBodyWithResponse request with arbitrary body returning *ListUsersResponse
func (*ClientWithResponses) ListUsersWithResponse ¶ added in v0.2.3
func (c *ClientWithResponses) ListUsersWithResponse(ctx context.Context, body ListUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*ListUsersResponse, error)
func (*ClientWithResponses) ListVolumesWithBodyWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) ListVolumesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ListVolumesResponse, error)
ListVolumesWithBodyWithResponse request with arbitrary body returning *ListVolumesResponse
func (*ClientWithResponses) ListVolumesWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) ListVolumesWithResponse(ctx context.Context, body ListVolumesJSONRequestBody, reqEditors ...RequestEditorFn) (*ListVolumesResponse, error)
func (*ClientWithResponses) LoginWithBodyWithResponse ¶
func (c *ClientWithResponses) LoginWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginResponse, error)
LoginWithBodyWithResponse request with arbitrary body returning *LoginResponse
func (*ClientWithResponses) LoginWithResponse ¶
func (c *ClientWithResponses) LoginWithResponse(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginResponse, error)
func (*ClientWithResponses) LogoutWithResponse ¶
func (c *ClientWithResponses) LogoutWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*LogoutResponse, error)
LogoutWithResponse request returning *LogoutResponse
func (*ClientWithResponses) MeWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) MeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*MeResponse, error)
MeWithResponse request returning *MeResponse
func (*ClientWithResponses) NodeMetricsByIdWithResponse ¶ added in v0.2.3
func (c *ClientWithResponses) NodeMetricsByIdWithResponse(ctx context.Context, nodeId string, reqEditors ...RequestEditorFn) (*NodeMetricsByIdResponse, error)
NodeMetricsByIdWithResponse request returning *NodeMetricsByIdResponse
func (*ClientWithResponses) NodeMetricsWithBodyWithResponse ¶ added in v0.2.3
func (c *ClientWithResponses) NodeMetricsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*NodeMetricsResponse, error)
NodeMetricsWithBodyWithResponse request with arbitrary body returning *NodeMetricsResponse
func (*ClientWithResponses) NodeMetricsWithResponse ¶ added in v0.2.3
func (c *ClientWithResponses) NodeMetricsWithResponse(ctx context.Context, body NodeMetricsJSONRequestBody, reqEditors ...RequestEditorFn) (*NodeMetricsResponse, error)
func (*ClientWithResponses) PauseVmWithBodyWithResponse ¶ added in v0.2.3
func (c *ClientWithResponses) PauseVmWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PauseVmResponse, error)
PauseVmWithBodyWithResponse request with arbitrary body returning *PauseVmResponse
func (*ClientWithResponses) PauseVmWithResponse ¶ added in v0.2.3
func (c *ClientWithResponses) PauseVmWithResponse(ctx context.Context, body PauseVmJSONRequestBody, reqEditors ...RequestEditorFn) (*PauseVmResponse, error)
func (*ClientWithResponses) RegisterUserWithBodyWithResponse ¶
func (c *ClientWithResponses) RegisterUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RegisterUserResponse, error)
RegisterUserWithBodyWithResponse request with arbitrary body returning *RegisterUserResponse
func (*ClientWithResponses) RegisterUserWithResponse ¶
func (c *ClientWithResponses) RegisterUserWithResponse(ctx context.Context, body RegisterUserJSONRequestBody, reqEditors ...RequestEditorFn) (*RegisterUserResponse, error)
func (*ClientWithResponses) RemoveInstanceTypeWithBodyWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) RemoveInstanceTypeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveInstanceTypeResponse, error)
RemoveInstanceTypeWithBodyWithResponse request with arbitrary body returning *RemoveInstanceTypeResponse
func (*ClientWithResponses) RemoveInstanceTypeWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) RemoveInstanceTypeWithResponse(ctx context.Context, body RemoveInstanceTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveInstanceTypeResponse, error)
func (*ClientWithResponses) RemoveInstanceVariantWithBodyWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) RemoveInstanceVariantWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveInstanceVariantResponse, error)
RemoveInstanceVariantWithBodyWithResponse request with arbitrary body returning *RemoveInstanceVariantResponse
func (*ClientWithResponses) RemoveInstanceVariantWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) RemoveInstanceVariantWithResponse(ctx context.Context, body RemoveInstanceVariantJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveInstanceVariantResponse, error)
func (*ClientWithResponses) RemoveRecipeWithBodyWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) RemoveRecipeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveRecipeResponse, error)
RemoveRecipeWithBodyWithResponse request with arbitrary body returning *RemoveRecipeResponse
func (*ClientWithResponses) RemoveRecipeWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) RemoveRecipeWithResponse(ctx context.Context, body RemoveRecipeJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveRecipeResponse, error)
func (*ClientWithResponses) RemoveTeamMemberWithBodyWithResponse ¶
func (c *ClientWithResponses) RemoveTeamMemberWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveTeamMemberResponse, error)
RemoveTeamMemberWithBodyWithResponse request with arbitrary body returning *RemoveTeamMemberResponse
func (*ClientWithResponses) RemoveTeamMemberWithResponse ¶
func (c *ClientWithResponses) RemoveTeamMemberWithResponse(ctx context.Context, teamId string, body RemoveTeamMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveTeamMemberResponse, error)
func (*ClientWithResponses) RentInstanceWithBodyWithResponse ¶
func (c *ClientWithResponses) RentInstanceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RentInstanceResponse, error)
RentInstanceWithBodyWithResponse request with arbitrary body returning *RentInstanceResponse
func (*ClientWithResponses) RentInstanceWithResponse ¶
func (c *ClientWithResponses) RentInstanceWithResponse(ctx context.Context, body RentInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*RentInstanceResponse, error)
func (*ClientWithResponses) RequestPasswordResetWithBodyWithResponse ¶
func (c *ClientWithResponses) RequestPasswordResetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RequestPasswordResetResponse, error)
RequestPasswordResetWithBodyWithResponse request with arbitrary body returning *RequestPasswordResetResponse
func (*ClientWithResponses) RequestPasswordResetWithResponse ¶
func (c *ClientWithResponses) RequestPasswordResetWithResponse(ctx context.Context, body RequestPasswordResetJSONRequestBody, reqEditors ...RequestEditorFn) (*RequestPasswordResetResponse, error)
func (*ClientWithResponses) ResendVerificationWithBodyWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) ResendVerificationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResendVerificationResponse, error)
ResendVerificationWithBodyWithResponse request with arbitrary body returning *ResendVerificationResponse
func (*ClientWithResponses) ResendVerificationWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) ResendVerificationWithResponse(ctx context.Context, body ResendVerificationJSONRequestBody, reqEditors ...RequestEditorFn) (*ResendVerificationResponse, error)
func (*ClientWithResponses) ResetPasswordWithBodyWithResponse ¶
func (c *ClientWithResponses) ResetPasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResetPasswordResponse, error)
ResetPasswordWithBodyWithResponse request with arbitrary body returning *ResetPasswordResponse
func (*ClientWithResponses) ResetPasswordWithResponse ¶
func (c *ClientWithResponses) ResetPasswordWithResponse(ctx context.Context, body ResetPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*ResetPasswordResponse, error)
func (*ClientWithResponses) ResetVmWithBodyWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) ResetVmWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResetVmResponse, error)
ResetVmWithBodyWithResponse request with arbitrary body returning *ResetVmResponse
func (*ClientWithResponses) ResetVmWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) ResetVmWithResponse(ctx context.Context, body ResetVmJSONRequestBody, reqEditors ...RequestEditorFn) (*ResetVmResponse, error)
func (*ClientWithResponses) ResumeNodeWithBodyWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) ResumeNodeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResumeNodeResponse, error)
ResumeNodeWithBodyWithResponse request with arbitrary body returning *ResumeNodeResponse
func (*ClientWithResponses) ResumeNodeWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) ResumeNodeWithResponse(ctx context.Context, body ResumeNodeJSONRequestBody, reqEditors ...RequestEditorFn) (*ResumeNodeResponse, error)
func (*ClientWithResponses) ResumeVmWithBodyWithResponse ¶ added in v0.2.3
func (c *ClientWithResponses) ResumeVmWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResumeVmResponse, error)
ResumeVmWithBodyWithResponse request with arbitrary body returning *ResumeVmResponse
func (*ClientWithResponses) ResumeVmWithResponse ¶ added in v0.2.3
func (c *ClientWithResponses) ResumeVmWithResponse(ctx context.Context, body ResumeVmJSONRequestBody, reqEditors ...RequestEditorFn) (*ResumeVmResponse, error)
func (*ClientWithResponses) SearchTeamsWithBodyWithResponse ¶ added in v0.2.3
func (c *ClientWithResponses) SearchTeamsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SearchTeamsResponse, error)
SearchTeamsWithBodyWithResponse request with arbitrary body returning *SearchTeamsResponse
func (*ClientWithResponses) SearchTeamsWithResponse ¶ added in v0.2.3
func (c *ClientWithResponses) SearchTeamsWithResponse(ctx context.Context, body SearchTeamsJSONRequestBody, reqEditors ...RequestEditorFn) (*SearchTeamsResponse, error)
func (*ClientWithResponses) SearchUsersWithBodyWithResponse ¶ added in v0.2.3
func (c *ClientWithResponses) SearchUsersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SearchUsersResponse, error)
SearchUsersWithBodyWithResponse request with arbitrary body returning *SearchUsersResponse
func (*ClientWithResponses) SearchUsersWithResponse ¶ added in v0.2.3
func (c *ClientWithResponses) SearchUsersWithResponse(ctx context.Context, body SearchUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*SearchUsersResponse, error)
func (*ClientWithResponses) SelectAndDeleteApiKeysWithBodyWithResponse ¶
func (c *ClientWithResponses) SelectAndDeleteApiKeysWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SelectAndDeleteApiKeysResponse, error)
SelectAndDeleteApiKeysWithBodyWithResponse request with arbitrary body returning *SelectAndDeleteApiKeysResponse
func (*ClientWithResponses) SelectAndDeleteApiKeysWithResponse ¶
func (c *ClientWithResponses) SelectAndDeleteApiKeysWithResponse(ctx context.Context, body SelectAndDeleteApiKeysJSONRequestBody, reqEditors ...RequestEditorFn) (*SelectAndDeleteApiKeysResponse, error)
func (*ClientWithResponses) SelectAndDeleteSshKeyWithBodyWithResponse ¶
func (c *ClientWithResponses) SelectAndDeleteSshKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SelectAndDeleteSshKeyResponse, error)
SelectAndDeleteSshKeyWithBodyWithResponse request with arbitrary body returning *SelectAndDeleteSshKeyResponse
func (*ClientWithResponses) SelectAndDeleteSshKeyWithResponse ¶
func (c *ClientWithResponses) SelectAndDeleteSshKeyWithResponse(ctx context.Context, body SelectAndDeleteSshKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*SelectAndDeleteSshKeyResponse, error)
func (*ClientWithResponses) SendUsersMessageWithBodyWithResponse ¶ added in v0.2.3
func (c *ClientWithResponses) SendUsersMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendUsersMessageResponse, error)
SendUsersMessageWithBodyWithResponse request with arbitrary body returning *SendUsersMessageResponse
func (*ClientWithResponses) SendUsersMessageWithResponse ¶ added in v0.2.3
func (c *ClientWithResponses) SendUsersMessageWithResponse(ctx context.Context, body SendUsersMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*SendUsersMessageResponse, error)
func (*ClientWithResponses) SetMarketplaceListingWithBodyWithResponse ¶ added in v0.2.3
func (c *ClientWithResponses) SetMarketplaceListingWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetMarketplaceListingResponse, error)
SetMarketplaceListingWithBodyWithResponse request with arbitrary body returning *SetMarketplaceListingResponse
func (*ClientWithResponses) SetMarketplaceListingWithResponse ¶ added in v0.2.3
func (c *ClientWithResponses) SetMarketplaceListingWithResponse(ctx context.Context, body SetMarketplaceListingJSONRequestBody, reqEditors ...RequestEditorFn) (*SetMarketplaceListingResponse, error)
func (*ClientWithResponses) StartVmWithBodyWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) StartVmWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartVmResponse, error)
StartVmWithBodyWithResponse request with arbitrary body returning *StartVmResponse
func (*ClientWithResponses) StartVmWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) StartVmWithResponse(ctx context.Context, body StartVmJSONRequestBody, reqEditors ...RequestEditorFn) (*StartVmResponse, error)
func (*ClientWithResponses) StopVmWithBodyWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) StopVmWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StopVmResponse, error)
StopVmWithBodyWithResponse request with arbitrary body returning *StopVmResponse
func (*ClientWithResponses) StopVmWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) StopVmWithResponse(ctx context.Context, body StopVmJSONRequestBody, reqEditors ...RequestEditorFn) (*StopVmResponse, error)
func (*ClientWithResponses) TerminateInstancesWithBodyWithResponse ¶
func (c *ClientWithResponses) TerminateInstancesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TerminateInstancesResponse, error)
TerminateInstancesWithBodyWithResponse request with arbitrary body returning *TerminateInstancesResponse
func (*ClientWithResponses) TerminateInstancesWithResponse ¶
func (c *ClientWithResponses) TerminateInstancesWithResponse(ctx context.Context, body TerminateInstancesJSONRequestBody, reqEditors ...RequestEditorFn) (*TerminateInstancesResponse, error)
func (*ClientWithResponses) UpdateActiveReservationWithBodyWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) UpdateActiveReservationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateActiveReservationResponse, error)
UpdateActiveReservationWithBodyWithResponse request with arbitrary body returning *UpdateActiveReservationResponse
func (*ClientWithResponses) UpdateActiveReservationWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) UpdateActiveReservationWithResponse(ctx context.Context, body UpdateActiveReservationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateActiveReservationResponse, error)
func (*ClientWithResponses) UpdateApiKeysWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateApiKeysWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateApiKeysResponse, error)
UpdateApiKeysWithBodyWithResponse request with arbitrary body returning *UpdateApiKeysResponse
func (*ClientWithResponses) UpdateApiKeysWithResponse ¶
func (c *ClientWithResponses) UpdateApiKeysWithResponse(ctx context.Context, body UpdateApiKeysJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateApiKeysResponse, error)
func (*ClientWithResponses) UpdateAutoTopUpWithBodyWithResponse ¶ added in v0.2.4
func (c *ClientWithResponses) UpdateAutoTopUpWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAutoTopUpResponse, error)
UpdateAutoTopUpWithBodyWithResponse request with arbitrary body returning *UpdateAutoTopUpResponse
func (*ClientWithResponses) UpdateAutoTopUpWithResponse ¶ added in v0.2.4
func (c *ClientWithResponses) UpdateAutoTopUpWithResponse(ctx context.Context, body UpdateAutoTopUpJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAutoTopUpResponse, error)
func (*ClientWithResponses) UpdateCreditLimitWithBodyWithResponse ¶ added in v0.2.3
func (c *ClientWithResponses) UpdateCreditLimitWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCreditLimitResponse, error)
UpdateCreditLimitWithBodyWithResponse request with arbitrary body returning *UpdateCreditLimitResponse
func (*ClientWithResponses) UpdateCreditLimitWithResponse ¶ added in v0.2.3
func (c *ClientWithResponses) UpdateCreditLimitWithResponse(ctx context.Context, body UpdateCreditLimitJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCreditLimitResponse, error)
func (*ClientWithResponses) UpdateInstanceTypeWithBodyWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) UpdateInstanceTypeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInstanceTypeResponse, error)
UpdateInstanceTypeWithBodyWithResponse request with arbitrary body returning *UpdateInstanceTypeResponse
func (*ClientWithResponses) UpdateInstanceTypeWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) UpdateInstanceTypeWithResponse(ctx context.Context, body UpdateInstanceTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInstanceTypeResponse, error)
func (*ClientWithResponses) UpdateInstanceVariantWithBodyWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) UpdateInstanceVariantWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInstanceVariantResponse, error)
UpdateInstanceVariantWithBodyWithResponse request with arbitrary body returning *UpdateInstanceVariantResponse
func (*ClientWithResponses) UpdateInstanceVariantWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) UpdateInstanceVariantWithResponse(ctx context.Context, body UpdateInstanceVariantJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInstanceVariantResponse, error)
func (*ClientWithResponses) UpdateNetworkWithBodyWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) UpdateNetworkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNetworkResponse, error)
UpdateNetworkWithBodyWithResponse request with arbitrary body returning *UpdateNetworkResponse
func (*ClientWithResponses) UpdateNetworkWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) UpdateNetworkWithResponse(ctx context.Context, body UpdateNetworkJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNetworkResponse, error)
func (*ClientWithResponses) UpdateProviderNodeInstanceTypeWithBodyWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) UpdateProviderNodeInstanceTypeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProviderNodeInstanceTypeResponse, error)
UpdateProviderNodeInstanceTypeWithBodyWithResponse request with arbitrary body returning *UpdateProviderNodeInstanceTypeResponse
func (*ClientWithResponses) UpdateProviderNodeInstanceTypeWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) UpdateProviderNodeInstanceTypeWithResponse(ctx context.Context, body UpdateProviderNodeInstanceTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProviderNodeInstanceTypeResponse, error)
func (*ClientWithResponses) UpdateTeamMembershipWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateTeamMembershipWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTeamMembershipResponse, error)
UpdateTeamMembershipWithBodyWithResponse request with arbitrary body returning *UpdateTeamMembershipResponse
func (*ClientWithResponses) UpdateTeamMembershipWithResponse ¶
func (c *ClientWithResponses) UpdateTeamMembershipWithResponse(ctx context.Context, teamId string, body UpdateTeamMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTeamMembershipResponse, error)
func (*ClientWithResponses) UpdateVolumeWithBodyWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) UpdateVolumeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateVolumeResponse, error)
UpdateVolumeWithBodyWithResponse request with arbitrary body returning *UpdateVolumeResponse
func (*ClientWithResponses) UpdateVolumeWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) UpdateVolumeWithResponse(ctx context.Context, body UpdateVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateVolumeResponse, error)
func (*ClientWithResponses) VerifyEmailWithResponse ¶ added in v0.2.0
func (c *ClientWithResponses) VerifyEmailWithResponse(ctx context.Context, params *VerifyEmailParams, reqEditors ...RequestEditorFn) (*VerifyEmailResponse, error)
VerifyEmailWithResponse request returning *VerifyEmailResponse
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// GetAutoTopUpRecoveryInfoWithBodyWithResponse request with any body
GetAutoTopUpRecoveryInfoWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetAutoTopUpRecoveryInfoResponse, error)
GetAutoTopUpRecoveryInfoWithResponse(ctx context.Context, body GetAutoTopUpRecoveryInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*GetAutoTopUpRecoveryInfoResponse, error)
// UpdateAutoTopUpWithBodyWithResponse request with any body
UpdateAutoTopUpWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAutoTopUpResponse, error)
UpdateAutoTopUpWithResponse(ctx context.Context, body UpdateAutoTopUpJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAutoTopUpResponse, error)
// GetAccountInfoWithResponse request
GetAccountInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAccountInfoResponse, error)
// GetOrCreateStripeCustomerWithBodyWithResponse request with any body
GetOrCreateStripeCustomerWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetOrCreateStripeCustomerResponse, error)
GetOrCreateStripeCustomerWithResponse(ctx context.Context, body GetOrCreateStripeCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*GetOrCreateStripeCustomerResponse, error)
// CreateExternalTransactionWithBodyWithResponse request with any body
CreateExternalTransactionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateExternalTransactionResponse, error)
CreateExternalTransactionWithResponse(ctx context.Context, body CreateExternalTransactionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateExternalTransactionResponse, error)
// CreatePromoTransactionWithBodyWithResponse request with any body
CreatePromoTransactionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePromoTransactionResponse, error)
CreatePromoTransactionWithResponse(ctx context.Context, body CreatePromoTransactionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePromoTransactionResponse, error)
// ListTransactionsWithResponse request
ListTransactionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListTransactionsResponse, error)
// UpdateCreditLimitWithBodyWithResponse request with any body
UpdateCreditLimitWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCreditLimitResponse, error)
UpdateCreditLimitWithResponse(ctx context.Context, body UpdateCreditLimitJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCreditLimitResponse, error)
// AddApiKeyWithBodyWithResponse request with any body
AddApiKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddApiKeyResponse, error)
AddApiKeyWithResponse(ctx context.Context, body AddApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*AddApiKeyResponse, error)
// SelectAndDeleteApiKeysWithBodyWithResponse request with any body
SelectAndDeleteApiKeysWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SelectAndDeleteApiKeysResponse, error)
SelectAndDeleteApiKeysWithResponse(ctx context.Context, body SelectAndDeleteApiKeysJSONRequestBody, reqEditors ...RequestEditorFn) (*SelectAndDeleteApiKeysResponse, error)
// ListApiKeysWithBodyWithResponse request with any body
ListApiKeysWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ListApiKeysResponse, error)
ListApiKeysWithResponse(ctx context.Context, body ListApiKeysJSONRequestBody, reqEditors ...RequestEditorFn) (*ListApiKeysResponse, error)
// UpdateApiKeysWithBodyWithResponse request with any body
UpdateApiKeysWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateApiKeysResponse, error)
UpdateApiKeysWithResponse(ctx context.Context, body UpdateApiKeysJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateApiKeysResponse, error)
// LoginWithBodyWithResponse request with any body
LoginWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginResponse, error)
LoginWithResponse(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginResponse, error)
// LogoutWithResponse request
LogoutWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*LogoutResponse, error)
// MeWithResponse request
MeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*MeResponse, error)
// RequestPasswordResetWithBodyWithResponse request with any body
RequestPasswordResetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RequestPasswordResetResponse, error)
RequestPasswordResetWithResponse(ctx context.Context, body RequestPasswordResetJSONRequestBody, reqEditors ...RequestEditorFn) (*RequestPasswordResetResponse, error)
// ResendVerificationWithBodyWithResponse request with any body
ResendVerificationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResendVerificationResponse, error)
ResendVerificationWithResponse(ctx context.Context, body ResendVerificationJSONRequestBody, reqEditors ...RequestEditorFn) (*ResendVerificationResponse, error)
// ResetPasswordWithBodyWithResponse request with any body
ResetPasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResetPasswordResponse, error)
ResetPasswordWithResponse(ctx context.Context, body ResetPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*ResetPasswordResponse, error)
// VerifyEmailWithResponse request
VerifyEmailWithResponse(ctx context.Context, params *VerifyEmailParams, reqEditors ...RequestEditorFn) (*VerifyEmailResponse, error)
// ListCapabilitiesWithResponse request
ListCapabilitiesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListCapabilitiesResponse, error)
// AddInstanceTypeWithBodyWithResponse request with any body
AddInstanceTypeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddInstanceTypeResponse, error)
AddInstanceTypeWithResponse(ctx context.Context, body AddInstanceTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*AddInstanceTypeResponse, error)
// AddInstanceVariantWithBodyWithResponse request with any body
AddInstanceVariantWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddInstanceVariantResponse, error)
AddInstanceVariantWithResponse(ctx context.Context, body AddInstanceVariantJSONRequestBody, reqEditors ...RequestEditorFn) (*AddInstanceVariantResponse, error)
// ListInstanceTypesWithBodyWithResponse request with any body
ListInstanceTypesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ListInstanceTypesResponse, error)
ListInstanceTypesWithResponse(ctx context.Context, body ListInstanceTypesJSONRequestBody, reqEditors ...RequestEditorFn) (*ListInstanceTypesResponse, error)
// RemoveInstanceTypeWithBodyWithResponse request with any body
RemoveInstanceTypeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveInstanceTypeResponse, error)
RemoveInstanceTypeWithResponse(ctx context.Context, body RemoveInstanceTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveInstanceTypeResponse, error)
// RemoveInstanceVariantWithBodyWithResponse request with any body
RemoveInstanceVariantWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveInstanceVariantResponse, error)
RemoveInstanceVariantWithResponse(ctx context.Context, body RemoveInstanceVariantJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveInstanceVariantResponse, error)
// UpdateInstanceTypeWithBodyWithResponse request with any body
UpdateInstanceTypeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInstanceTypeResponse, error)
UpdateInstanceTypeWithResponse(ctx context.Context, body UpdateInstanceTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInstanceTypeResponse, error)
// UpdateInstanceVariantWithBodyWithResponse request with any body
UpdateInstanceVariantWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInstanceVariantResponse, error)
UpdateInstanceVariantWithResponse(ctx context.Context, body UpdateInstanceVariantJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInstanceVariantResponse, error)
// ListInstancesWithBodyWithResponse request with any body
ListInstancesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ListInstancesResponse, error)
ListInstancesWithResponse(ctx context.Context, body ListInstancesJSONRequestBody, reqEditors ...RequestEditorFn) (*ListInstancesResponse, error)
// InstanceMetricsWithBodyWithResponse request with any body
InstanceMetricsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InstanceMetricsResponse, error)
InstanceMetricsWithResponse(ctx context.Context, body InstanceMetricsJSONRequestBody, reqEditors ...RequestEditorFn) (*InstanceMetricsResponse, error)
// PauseVmWithBodyWithResponse request with any body
PauseVmWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PauseVmResponse, error)
PauseVmWithResponse(ctx context.Context, body PauseVmJSONRequestBody, reqEditors ...RequestEditorFn) (*PauseVmResponse, error)
// RentInstanceWithBodyWithResponse request with any body
RentInstanceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RentInstanceResponse, error)
RentInstanceWithResponse(ctx context.Context, body RentInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*RentInstanceResponse, error)
// ResetVmWithBodyWithResponse request with any body
ResetVmWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResetVmResponse, error)
ResetVmWithResponse(ctx context.Context, body ResetVmJSONRequestBody, reqEditors ...RequestEditorFn) (*ResetVmResponse, error)
// ResumeVmWithBodyWithResponse request with any body
ResumeVmWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResumeVmResponse, error)
ResumeVmWithResponse(ctx context.Context, body ResumeVmJSONRequestBody, reqEditors ...RequestEditorFn) (*ResumeVmResponse, error)
// ListSavedEnvironmentsWithBodyWithResponse request with any body
ListSavedEnvironmentsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ListSavedEnvironmentsResponse, error)
ListSavedEnvironmentsWithResponse(ctx context.Context, body ListSavedEnvironmentsJSONRequestBody, reqEditors ...RequestEditorFn) (*ListSavedEnvironmentsResponse, error)
// StartVmWithBodyWithResponse request with any body
StartVmWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartVmResponse, error)
StartVmWithResponse(ctx context.Context, body StartVmJSONRequestBody, reqEditors ...RequestEditorFn) (*StartVmResponse, error)
// StopVmWithBodyWithResponse request with any body
StopVmWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StopVmResponse, error)
StopVmWithResponse(ctx context.Context, body StopVmJSONRequestBody, reqEditors ...RequestEditorFn) (*StopVmResponse, error)
// TerminateInstancesWithBodyWithResponse request with any body
TerminateInstancesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TerminateInstancesResponse, error)
TerminateInstancesWithResponse(ctx context.Context, body TerminateInstancesJSONRequestBody, reqEditors ...RequestEditorFn) (*TerminateInstancesResponse, error)
// AddNetworkWithBodyWithResponse request with any body
AddNetworkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddNetworkResponse, error)
AddNetworkWithResponse(ctx context.Context, body AddNetworkJSONRequestBody, reqEditors ...RequestEditorFn) (*AddNetworkResponse, error)
// DeleteNetworkWithBodyWithResponse request with any body
DeleteNetworkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteNetworkResponse, error)
DeleteNetworkWithResponse(ctx context.Context, body DeleteNetworkJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteNetworkResponse, error)
// ListNetworksWithBodyWithResponse request with any body
ListNetworksWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ListNetworksResponse, error)
ListNetworksWithResponse(ctx context.Context, body ListNetworksJSONRequestBody, reqEditors ...RequestEditorFn) (*ListNetworksResponse, error)
// UpdateNetworkWithBodyWithResponse request with any body
UpdateNetworkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNetworkResponse, error)
UpdateNetworkWithResponse(ctx context.Context, body UpdateNetworkJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNetworkResponse, error)
// CancelDrainWithBodyWithResponse request with any body
CancelDrainWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CancelDrainResponse, error)
CancelDrainWithResponse(ctx context.Context, body CancelDrainJSONRequestBody, reqEditors ...RequestEditorFn) (*CancelDrainResponse, error)
// DrainNodeWithBodyWithResponse request with any body
DrainNodeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DrainNodeResponse, error)
DrainNodeWithResponse(ctx context.Context, body DrainNodeJSONRequestBody, reqEditors ...RequestEditorFn) (*DrainNodeResponse, error)
// ForceDrainWithBodyWithResponse request with any body
ForceDrainWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ForceDrainResponse, error)
ForceDrainWithResponse(ctx context.Context, body ForceDrainJSONRequestBody, reqEditors ...RequestEditorFn) (*ForceDrainResponse, error)
// ListNodesWithBodyWithResponse request with any body
ListNodesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ListNodesResponse, error)
ListNodesWithResponse(ctx context.Context, body ListNodesJSONRequestBody, reqEditors ...RequestEditorFn) (*ListNodesResponse, error)
// NodeMetricsWithBodyWithResponse request with any body
NodeMetricsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*NodeMetricsResponse, error)
NodeMetricsWithResponse(ctx context.Context, body NodeMetricsJSONRequestBody, reqEditors ...RequestEditorFn) (*NodeMetricsResponse, error)
// NodeMetricsByIdWithResponse request
NodeMetricsByIdWithResponse(ctx context.Context, nodeId string, reqEditors ...RequestEditorFn) (*NodeMetricsByIdResponse, error)
// ResumeNodeWithBodyWithResponse request with any body
ResumeNodeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResumeNodeResponse, error)
ResumeNodeWithResponse(ctx context.Context, body ResumeNodeJSONRequestBody, reqEditors ...RequestEditorFn) (*ResumeNodeResponse, error)
// SetMarketplaceListingWithBodyWithResponse request with any body
SetMarketplaceListingWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetMarketplaceListingResponse, error)
SetMarketplaceListingWithResponse(ctx context.Context, body SetMarketplaceListingJSONRequestBody, reqEditors ...RequestEditorFn) (*SetMarketplaceListingResponse, error)
// UpdateProviderNodeInstanceTypeWithBodyWithResponse request with any body
UpdateProviderNodeInstanceTypeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProviderNodeInstanceTypeResponse, error)
UpdateProviderNodeInstanceTypeWithResponse(ctx context.Context, body UpdateProviderNodeInstanceTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProviderNodeInstanceTypeResponse, error)
// ListProvidersWithBodyWithResponse request with any body
ListProvidersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ListProvidersResponse, error)
ListProvidersWithResponse(ctx context.Context, body ListProvidersJSONRequestBody, reqEditors ...RequestEditorFn) (*ListProvidersResponse, error)
// AddRecipeWithBodyWithResponse request with any body
AddRecipeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddRecipeResponse, error)
AddRecipeWithResponse(ctx context.Context, body AddRecipeJSONRequestBody, reqEditors ...RequestEditorFn) (*AddRecipeResponse, error)
// ListRecipesWithResponse request
ListRecipesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListRecipesResponse, error)
// RemoveRecipeWithBodyWithResponse request with any body
RemoveRecipeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveRecipeResponse, error)
RemoveRecipeWithResponse(ctx context.Context, body RemoveRecipeJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveRecipeResponse, error)
// CreateAndAttachReservationWithBodyWithResponse request with any body
CreateAndAttachReservationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAndAttachReservationResponse, error)
CreateAndAttachReservationWithResponse(ctx context.Context, body CreateAndAttachReservationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAndAttachReservationResponse, error)
// ListReservationsWithBodyWithResponse request with any body
ListReservationsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ListReservationsResponse, error)
ListReservationsWithResponse(ctx context.Context, body ListReservationsJSONRequestBody, reqEditors ...RequestEditorFn) (*ListReservationsResponse, error)
// ListReservationTypesWithResponse request
ListReservationTypesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListReservationTypesResponse, error)
// UpdateActiveReservationWithBodyWithResponse request with any body
UpdateActiveReservationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateActiveReservationResponse, error)
UpdateActiveReservationWithResponse(ctx context.Context, body UpdateActiveReservationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateActiveReservationResponse, error)
// BulkChargeForServiceWithBodyWithResponse request with any body
BulkChargeForServiceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BulkChargeForServiceResponse, error)
BulkChargeForServiceWithResponse(ctx context.Context, body BulkChargeForServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*BulkChargeForServiceResponse, error)
// ChargeForServiceWithBodyWithResponse request with any body
ChargeForServiceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChargeForServiceResponse, error)
ChargeForServiceWithResponse(ctx context.Context, body ChargeForServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*ChargeForServiceResponse, error)
// AddSshKeyWithBodyWithResponse request with any body
AddSshKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddSshKeyResponse, error)
AddSshKeyWithResponse(ctx context.Context, body AddSshKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*AddSshKeyResponse, error)
// SelectAndDeleteSshKeyWithBodyWithResponse request with any body
SelectAndDeleteSshKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SelectAndDeleteSshKeyResponse, error)
SelectAndDeleteSshKeyWithResponse(ctx context.Context, body SelectAndDeleteSshKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*SelectAndDeleteSshKeyResponse, error)
// ListSshKeysWithResponse request
ListSshKeysWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSshKeysResponse, error)
// DeleteSshKeyWithResponse request
DeleteSshKeyWithResponse(ctx context.Context, sshKeyId string, reqEditors ...RequestEditorFn) (*DeleteSshKeyResponse, error)
// CreateTeamWithBodyWithResponse request with any body
CreateTeamWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTeamResponse, error)
CreateTeamWithResponse(ctx context.Context, body CreateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTeamResponse, error)
// ListTeamsWithBodyWithResponse request with any body
ListTeamsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ListTeamsResponse, error)
ListTeamsWithResponse(ctx context.Context, body ListTeamsJSONRequestBody, reqEditors ...RequestEditorFn) (*ListTeamsResponse, error)
// SearchTeamsWithBodyWithResponse request with any body
SearchTeamsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SearchTeamsResponse, error)
SearchTeamsWithResponse(ctx context.Context, body SearchTeamsJSONRequestBody, reqEditors ...RequestEditorFn) (*SearchTeamsResponse, error)
// GetTeamWithResponse request
GetTeamWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*GetTeamResponse, error)
// AddTeamMemberWithBodyWithResponse request with any body
AddTeamMemberWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddTeamMemberResponse, error)
AddTeamMemberWithResponse(ctx context.Context, teamId string, body AddTeamMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*AddTeamMemberResponse, error)
// RemoveTeamMemberWithBodyWithResponse request with any body
RemoveTeamMemberWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveTeamMemberResponse, error)
RemoveTeamMemberWithResponse(ctx context.Context, teamId string, body RemoveTeamMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveTeamMemberResponse, error)
// UpdateTeamMembershipWithBodyWithResponse request with any body
UpdateTeamMembershipWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTeamMembershipResponse, error)
UpdateTeamMembershipWithResponse(ctx context.Context, teamId string, body UpdateTeamMembershipJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTeamMembershipResponse, error)
// AddUserWithBodyWithResponse request with any body
AddUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddUserResponse, error)
AddUserWithResponse(ctx context.Context, body AddUserJSONRequestBody, reqEditors ...RequestEditorFn) (*AddUserResponse, error)
// DeleteUserWithBodyWithResponse request with any body
DeleteUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error)
DeleteUserWithResponse(ctx context.Context, body DeleteUserJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error)
// ListUsersWithBodyWithResponse request with any body
ListUsersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ListUsersResponse, error)
ListUsersWithResponse(ctx context.Context, body ListUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*ListUsersResponse, error)
// RegisterUserWithBodyWithResponse request with any body
RegisterUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RegisterUserResponse, error)
RegisterUserWithResponse(ctx context.Context, body RegisterUserJSONRequestBody, reqEditors ...RequestEditorFn) (*RegisterUserResponse, error)
// SearchUsersWithBodyWithResponse request with any body
SearchUsersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SearchUsersResponse, error)
SearchUsersWithResponse(ctx context.Context, body SearchUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*SearchUsersResponse, error)
// SendUsersMessageWithBodyWithResponse request with any body
SendUsersMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendUsersMessageResponse, error)
SendUsersMessageWithResponse(ctx context.Context, body SendUsersMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*SendUsersMessageResponse, error)
// CreateVolumeWithBodyWithResponse request with any body
CreateVolumeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateVolumeResponse, error)
CreateVolumeWithResponse(ctx context.Context, body CreateVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateVolumeResponse, error)
// ListVolumesWithBodyWithResponse request with any body
ListVolumesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ListVolumesResponse, error)
ListVolumesWithResponse(ctx context.Context, body ListVolumesJSONRequestBody, reqEditors ...RequestEditorFn) (*ListVolumesResponse, error)
// UpdateVolumeWithBodyWithResponse request with any body
UpdateVolumeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateVolumeResponse, error)
UpdateVolumeWithResponse(ctx context.Context, body UpdateVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateVolumeResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type ComputeProviderInfo ¶
type ComputeProviderInfo struct {
// Datacenters Data centers where the provider has resources
Datacenters []DataCenterInfo `json:"datacenters"`
// Description Description of the provider
Description *string `json:"description"`
// Email Provider email address
Email *string `json:"email"`
// ListOnMarketplace Whether the provider should be listed on the marketplace
ListOnMarketplace bool `json:"list_on_marketplace"`
// LogoUrl Provider logo URL
LogoUrl *string `json:"logo_url"`
// Name Provider name (unique ID)
Name string `json:"name"`
// Website Provider website URL
Website *string `json:"website"`
}
ComputeProviderInfo defines model for ComputeProviderInfo.
type ComputeProviderSelector ¶
type ComputeProviderSelector struct {
// contains filtered or unexported fields
}
ComputeProviderSelector defines model for ComputeProviderSelector.
func (ComputeProviderSelector) AsComputeProviderSelector0 ¶
func (t ComputeProviderSelector) AsComputeProviderSelector0() (ComputeProviderSelector0, error)
AsComputeProviderSelector0 returns the union data inside the ComputeProviderSelector as a ComputeProviderSelector0
func (ComputeProviderSelector) AsComputeProviderSelector1 ¶
func (t ComputeProviderSelector) AsComputeProviderSelector1() (ComputeProviderSelector1, error)
AsComputeProviderSelector1 returns the union data inside the ComputeProviderSelector as a ComputeProviderSelector1
func (*ComputeProviderSelector) FromComputeProviderSelector0 ¶
func (t *ComputeProviderSelector) FromComputeProviderSelector0(v ComputeProviderSelector0) error
FromComputeProviderSelector0 overwrites any union data inside the ComputeProviderSelector as the provided ComputeProviderSelector0
func (*ComputeProviderSelector) FromComputeProviderSelector1 ¶
func (t *ComputeProviderSelector) FromComputeProviderSelector1(v ComputeProviderSelector1) error
FromComputeProviderSelector1 overwrites any union data inside the ComputeProviderSelector as the provided ComputeProviderSelector1
func (ComputeProviderSelector) MarshalJSON ¶
func (t ComputeProviderSelector) MarshalJSON() ([]byte, error)
func (*ComputeProviderSelector) MergeComputeProviderSelector0 ¶
func (t *ComputeProviderSelector) MergeComputeProviderSelector0(v ComputeProviderSelector0) error
MergeComputeProviderSelector0 performs a merge with any union data inside the ComputeProviderSelector, using the provided ComputeProviderSelector0
func (*ComputeProviderSelector) MergeComputeProviderSelector1 ¶
func (t *ComputeProviderSelector) MergeComputeProviderSelector1(v ComputeProviderSelector1) error
MergeComputeProviderSelector1 performs a merge with any union data inside the ComputeProviderSelector, using the provided ComputeProviderSelector1
func (*ComputeProviderSelector) UnmarshalJSON ¶
func (t *ComputeProviderSelector) UnmarshalJSON(b []byte) error
type ComputeProviderSelector0 ¶
type ComputeProviderSelector0 string
ComputeProviderSelector0 Select all providers
const (
ComputeProviderSelector0All ComputeProviderSelector0 = "All"
)
Defines values for ComputeProviderSelector0.
type ComputeProviderSelector1 ¶
type ComputeProviderSelector1 struct {
// ByName Select providers by name
ByName []string `json:"ByName"`
}
ComputeProviderSelector1 Select providers by name
type CpuInfo ¶
type CpuInfo struct {
// Brand Full brand name of the CPU
Brand string `json:"brand"`
// BrandShort Short and recognizable brand name of the CPU
BrandShort string `json:"brand_short"`
// LogicalCoreCount Number of logical cores
LogicalCoreCount int32 `json:"logical_core_count"`
// PhysicalCoreCount Number of physical cores
PhysicalCoreCount int32 `json:"physical_core_count"`
// Vendor Vendor of the CPU
Vendor *string `json:"vendor"`
// VendorLogoUrl Logo of the CPU vendor
VendorLogoUrl *string `json:"vendor_logo_url"`
}
CpuInfo defines model for CpuInfo.
type CreateAndAttachReservationJSONRequestBody ¶ added in v0.2.0
type CreateAndAttachReservationJSONRequestBody = CreateReservationRequestProto
CreateAndAttachReservationJSONRequestBody defines body for CreateAndAttachReservation for application/json ContentType.
type CreateAndAttachReservationResponse ¶ added in v0.2.0
type CreateAndAttachReservationResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CreateReservationResponseProto
}
func ParseCreateAndAttachReservationResponse ¶ added in v0.2.0
func ParseCreateAndAttachReservationResponse(rsp *http.Response) (*CreateAndAttachReservationResponse, error)
ParseCreateAndAttachReservationResponse parses an HTTP response from a CreateAndAttachReservationWithResponse call
func (CreateAndAttachReservationResponse) Status ¶ added in v0.2.0
func (r CreateAndAttachReservationResponse) Status() string
Status returns HTTPResponse.Status
func (CreateAndAttachReservationResponse) StatusCode ¶ added in v0.2.0
func (r CreateAndAttachReservationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateExternalTransactionJSONRequestBody ¶
type CreateExternalTransactionJSONRequestBody = ExternalTransactionRequestProto
CreateExternalTransactionJSONRequestBody defines body for CreateExternalTransaction for application/json ContentType.
type CreateExternalTransactionResponse ¶
func ParseCreateExternalTransactionResponse ¶
func ParseCreateExternalTransactionResponse(rsp *http.Response) (*CreateExternalTransactionResponse, error)
ParseCreateExternalTransactionResponse parses an HTTP response from a CreateExternalTransactionWithResponse call
func (CreateExternalTransactionResponse) Status ¶
func (r CreateExternalTransactionResponse) Status() string
Status returns HTTPResponse.Status
func (CreateExternalTransactionResponse) StatusCode ¶
func (r CreateExternalTransactionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreatePromoTransactionJSONRequestBody ¶
type CreatePromoTransactionJSONRequestBody = PromoCodeRequestProto
CreatePromoTransactionJSONRequestBody defines body for CreatePromoTransaction for application/json ContentType.
type CreatePromoTransactionResponse ¶
func ParseCreatePromoTransactionResponse ¶
func ParseCreatePromoTransactionResponse(rsp *http.Response) (*CreatePromoTransactionResponse, error)
ParseCreatePromoTransactionResponse parses an HTTP response from a CreatePromoTransactionWithResponse call
func (CreatePromoTransactionResponse) Status ¶
func (r CreatePromoTransactionResponse) Status() string
Status returns HTTPResponse.Status
func (CreatePromoTransactionResponse) StatusCode ¶
func (r CreatePromoTransactionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateReservationRequestProto ¶ added in v0.2.0
type CreateReservationRequestProto struct {
Data struct {
// BillingExempt Whether this reservation is exempt from billing (admins only)
BillingExempt *bool `json:"billing_exempt,omitempty"`
// ExecutorId ID of the executor to attach the reservation to
ExecutorId string `json:"executor_id"`
// ReservationTypeId ID of the reservation type determining duration/discount
ReservationTypeId string `json:"reservation_type_id"`
// TeamId Optional team ID
TeamId *string `json:"team_id"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
CreateReservationRequestProto defines model for CreateReservationRequestProto.
type CreateReservationResponseProto ¶ added in v0.2.0
type CreateReservationResponseProto struct {
Data struct {
// ReservationId ID of the created reservation
ReservationId string `json:"reservation_id"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
CreateReservationResponseProto defines model for CreateReservationResponseProto.
type CreateTeamJSONRequestBody ¶
type CreateTeamJSONRequestBody = CreateTeamRequestProto
CreateTeamJSONRequestBody defines body for CreateTeam for application/json ContentType.
type CreateTeamRequestProto ¶
type CreateTeamRequestProto struct {
Data struct {
Description *string `json:"description"`
Name string `json:"name"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
CreateTeamRequestProto defines model for CreateTeamRequestProto.
type CreateTeamResponse ¶
type CreateTeamResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CreateTeamResponseProto
}
func ParseCreateTeamResponse ¶
func ParseCreateTeamResponse(rsp *http.Response) (*CreateTeamResponse, error)
ParseCreateTeamResponse parses an HTTP response from a CreateTeamWithResponse call
func (CreateTeamResponse) Status ¶
func (r CreateTeamResponse) Status() string
Status returns HTTPResponse.Status
func (CreateTeamResponse) StatusCode ¶
func (r CreateTeamResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateTeamResponseProto ¶
type CreateTeamResponseProto struct {
Data struct {
AccountId string `json:"account_id"`
CreatedAt string `json:"created_at"`
Description *string `json:"description"`
Id string `json:"id"`
Name string `json:"name"`
UpdatedAt string `json:"updated_at"`
UserRole string `json:"user_role"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
CreateTeamResponseProto defines model for CreateTeamResponseProto.
type CreateVolumeJSONRequestBody ¶ added in v0.2.0
type CreateVolumeJSONRequestBody = CreateVolumeRequestProto
CreateVolumeJSONRequestBody defines body for CreateVolume for application/json ContentType.
type CreateVolumeRequestProto ¶ added in v0.2.0
type CreateVolumeRequestProto struct {
Data struct {
// BillingExempt Admin-only: if true, no billing or provider payout for this volume
BillingExempt *bool `json:"billing_exempt,omitempty"`
// Datacenter Datacenter name where the volume should be created
Datacenter string `json:"datacenter"`
// Description Optional description
Description *string `json:"description"`
// Name Volume name
Name string `json:"name"`
// SizeGb Volume size in GB
SizeGb int32 `json:"size_gb"`
// TeamId Team ID in case of a team volume
TeamId *string `json:"team_id"`
// VolumeTypeName Volume type name
VolumeTypeName string `json:"volume_type_name"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
CreateVolumeRequestProto defines model for CreateVolumeRequestProto.
type CreateVolumeResponse ¶ added in v0.2.0
type CreateVolumeResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CreateVolumeResponseProto
}
func ParseCreateVolumeResponse ¶ added in v0.2.0
func ParseCreateVolumeResponse(rsp *http.Response) (*CreateVolumeResponse, error)
ParseCreateVolumeResponse parses an HTTP response from a CreateVolumeWithResponse call
func (CreateVolumeResponse) Status ¶ added in v0.2.0
func (r CreateVolumeResponse) Status() string
Status returns HTTPResponse.Status
func (CreateVolumeResponse) StatusCode ¶ added in v0.2.0
func (r CreateVolumeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateVolumeResponseProto ¶ added in v0.2.0
type CreateVolumeResponseProto struct {
Data struct {
Volume VolumeInfo `json:"volume"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
CreateVolumeResponseProto defines model for CreateVolumeResponseProto.
type CustomInstancePricing ¶ added in v0.2.4
type CustomInstancePricing struct {
DiskWeight float64 `json:"disk_weight"`
GpuWeight float64 `json:"gpu_weight"`
RamWeight float64 `json:"ram_weight"`
VcpuWeight float64 `json:"vcpu_weight"`
}
CustomInstancePricing Per-dimension weights (sum to 1.0) for splitting a node's `cost_per_hour` across a custom shape's resources.
type DataCenterInfo ¶
type DataCenterInfo struct {
// CountryCode Data center country code
CountryCode *string `json:"country_code"`
// Location Data center geographical location
Location []interface{} `json:"location"`
// Name Data center name like 'us-east-nc-nr-1' (unique ID)
Name string `json:"name"`
}
DataCenterInfo defines model for DataCenterInfo.
type DatacenterNetworks ¶
type DatacenterNetworks struct {
Datacenter string `json:"datacenter"`
Networks []NetworkInfo `json:"networks"`
}
DatacenterNetworks defines model for DatacenterNetworks.
type DeactivationCause ¶ added in v0.2.4
type DeactivationCause string
DeactivationCause Why a rental was deactivated before reaching the Active state.
const ( DockerCommandFailed DeactivationCause = "DockerCommandFailed" DockerImagePullFailed DeactivationCause = "DockerImagePullFailed" PlatformError DeactivationCause = "PlatformError" VmBootFailed DeactivationCause = "VmBootFailed" )
Defines values for DeactivationCause.
type DeleteApiKeysRequestProto ¶
type DeleteApiKeysRequestProto struct {
Data struct {
Selector ApiKeySelector `json:"selector"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
DeleteApiKeysRequestProto defines model for DeleteApiKeysRequestProto.
type DeleteApiKeysResponseProto ¶
type DeleteApiKeysResponseProto struct {
Data struct {
// Keys Information about the deleted API keys with their operation status
Keys []KeyResult `json:"keys"`
Status ResponseStatus `json:"status"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
DeleteApiKeysResponseProto defines model for DeleteApiKeysResponseProto.
type DeleteNetworkJSONRequestBody ¶ added in v0.2.0
type DeleteNetworkJSONRequestBody = DeleteNetworkRequestProto
DeleteNetworkJSONRequestBody defines body for DeleteNetwork for application/json ContentType.
type DeleteNetworkRequestProto ¶ added in v0.2.0
type DeleteNetworkRequestProto struct {
Data struct {
// Selector Selector for identifying a network
Selector DeleteNetworkSelector `json:"selector"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
DeleteNetworkRequestProto defines model for DeleteNetworkRequestProto.
type DeleteNetworkResponse ¶ added in v0.2.0
type DeleteNetworkResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *DeleteNetworkResponseProto
}
func ParseDeleteNetworkResponse ¶ added in v0.2.0
func ParseDeleteNetworkResponse(rsp *http.Response) (*DeleteNetworkResponse, error)
ParseDeleteNetworkResponse parses an HTTP response from a DeleteNetworkWithResponse call
func (DeleteNetworkResponse) Status ¶ added in v0.2.0
func (r DeleteNetworkResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteNetworkResponse) StatusCode ¶ added in v0.2.0
func (r DeleteNetworkResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteNetworkResponseProto ¶ added in v0.2.0
type DeleteNetworkResponseProto struct {
Data struct {
// ActiveInstanceCount Number of active instances that were using this network
ActiveInstanceCount int64 `json:"active_instance_count"`
// DeletedIds IDs of deleted networks
DeletedIds []string `json:"deleted_ids"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
DeleteNetworkResponseProto defines model for DeleteNetworkResponseProto.
type DeleteNetworkSelector ¶ added in v0.2.0
type DeleteNetworkSelector struct {
// contains filtered or unexported fields
}
DeleteNetworkSelector Selector for identifying a network
func (DeleteNetworkSelector) AsDeleteNetworkSelector0 ¶ added in v0.2.0
func (t DeleteNetworkSelector) AsDeleteNetworkSelector0() (DeleteNetworkSelector0, error)
AsDeleteNetworkSelector0 returns the union data inside the DeleteNetworkSelector as a DeleteNetworkSelector0
func (*DeleteNetworkSelector) FromDeleteNetworkSelector0 ¶ added in v0.2.0
func (t *DeleteNetworkSelector) FromDeleteNetworkSelector0(v DeleteNetworkSelector0) error
FromDeleteNetworkSelector0 overwrites any union data inside the DeleteNetworkSelector as the provided DeleteNetworkSelector0
func (DeleteNetworkSelector) MarshalJSON ¶ added in v0.2.0
func (t DeleteNetworkSelector) MarshalJSON() ([]byte, error)
func (*DeleteNetworkSelector) MergeDeleteNetworkSelector0 ¶ added in v0.2.0
func (t *DeleteNetworkSelector) MergeDeleteNetworkSelector0(v DeleteNetworkSelector0) error
MergeDeleteNetworkSelector0 performs a merge with any union data inside the DeleteNetworkSelector, using the provided DeleteNetworkSelector0
func (*DeleteNetworkSelector) UnmarshalJSON ¶ added in v0.2.0
func (t *DeleteNetworkSelector) UnmarshalJSON(b []byte) error
type DeleteNetworkSelector0 ¶ added in v0.2.0
type DeleteNetworkSelector0 struct {
// ByDatacenterAndName Select network by datacenter and name
ByDatacenterAndName struct {
Datacenter string `json:"datacenter"`
Network string `json:"network"`
} `json:"ByDatacenterAndName"`
}
DeleteNetworkSelector0 Select network by datacenter and name
type DeleteSshKeyRequestProto ¶
type DeleteSshKeyRequestProto struct {
Data struct {
Selector SshKeySelector `json:"selector"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
DeleteSshKeyRequestProto defines model for DeleteSshKeyRequestProto.
type DeleteSshKeyResponse ¶
func ParseDeleteSshKeyResponse ¶
func ParseDeleteSshKeyResponse(rsp *http.Response) (*DeleteSshKeyResponse, error)
ParseDeleteSshKeyResponse parses an HTTP response from a DeleteSshKeyWithResponse call
func (DeleteSshKeyResponse) Status ¶
func (r DeleteSshKeyResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteSshKeyResponse) StatusCode ¶
func (r DeleteSshKeyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteUserJSONRequestBody ¶ added in v0.2.3
type DeleteUserJSONRequestBody = DeleteUserRequestProto
DeleteUserJSONRequestBody defines body for DeleteUser for application/json ContentType.
type DeleteUserRequestProto ¶ added in v0.2.3
type DeleteUserRequestProto struct {
// Data Admin-only request to erase a user. See `docs/SOC2_USER_DELETION.md`.
Data struct {
// DryRun If true, run pre-flight only; no mutation.
DryRun *bool `json:"dry_run,omitempty"`
// Reason Recorded in the audit log.
Reason string `json:"reason"`
UserId string `json:"user_id"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
DeleteUserRequestProto defines model for DeleteUserRequestProto.
type DeleteUserResponse ¶ added in v0.2.3
type DeleteUserResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *DeleteUserResponseProto
}
func ParseDeleteUserResponse ¶ added in v0.2.3
func ParseDeleteUserResponse(rsp *http.Response) (*DeleteUserResponse, error)
ParseDeleteUserResponse parses an HTTP response from a DeleteUserWithResponse call
func (DeleteUserResponse) Status ¶ added in v0.2.3
func (r DeleteUserResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteUserResponse) StatusCode ¶ added in v0.2.3
func (r DeleteUserResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteUserResponseProto ¶ added in v0.2.3
type DeleteUserResponseProto struct {
Data struct {
DryRun bool `json:"dry_run"`
Report UserDeletionReport `json:"report"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
DeleteUserResponseProto defines model for DeleteUserResponseProto.
type DiskInfo ¶
type DiskInfo struct {
// FsType File system type like ext4, xfs
FsType string `json:"fs_type"`
Kind DiskKind `json:"kind"`
// MountPoint Mount point of the disk like /
MountPoint string `json:"mount_point"`
// Name Disk name like sda, nvme0n1
Name string `json:"name"`
// Size Total disk size in bytes
Size int64 `json:"size"`
}
DiskInfo defines model for DiskInfo.
type DockerRegistryAuth ¶
type DockerRegistryAuth struct {
// contains filtered or unexported fields
}
DockerRegistryAuth defines model for DockerRegistryAuth.
func (DockerRegistryAuth) AsDockerRegistryAuth0 ¶
func (t DockerRegistryAuth) AsDockerRegistryAuth0() (DockerRegistryAuth0, error)
AsDockerRegistryAuth0 returns the union data inside the DockerRegistryAuth as a DockerRegistryAuth0
func (*DockerRegistryAuth) FromDockerRegistryAuth0 ¶
func (t *DockerRegistryAuth) FromDockerRegistryAuth0(v DockerRegistryAuth0) error
FromDockerRegistryAuth0 overwrites any union data inside the DockerRegistryAuth as the provided DockerRegistryAuth0
func (DockerRegistryAuth) MarshalJSON ¶
func (t DockerRegistryAuth) MarshalJSON() ([]byte, error)
func (*DockerRegistryAuth) MergeDockerRegistryAuth0 ¶
func (t *DockerRegistryAuth) MergeDockerRegistryAuth0(v DockerRegistryAuth0) error
MergeDockerRegistryAuth0 performs a merge with any union data inside the DockerRegistryAuth, using the provided DockerRegistryAuth0
func (*DockerRegistryAuth) UnmarshalJSON ¶
func (t *DockerRegistryAuth) UnmarshalJSON(b []byte) error
type DockerRegistryAuth0 ¶
type DockerRegistryAuth0 struct {
UsernamePassword struct {
Password string `json:"password"`
Username string `json:"username"`
} `json:"UsernamePassword"`
}
DockerRegistryAuth0 defines model for .
type DrainNodeJSONRequestBody ¶ added in v0.2.0
type DrainNodeJSONRequestBody = DrainNodeRequestProto
DrainNodeJSONRequestBody defines body for DrainNode for application/json ContentType.
type DrainNodeRequestProto ¶ added in v0.2.0
type DrainNodeRequestProto struct {
// Data Request to start draining nodes
Data struct {
// CustomMessage Custom message to include in the notification email (uses default if not provided)
CustomMessage *string `json:"custom_message"`
// GracePeriodSecs Grace period in seconds before instances are terminated
// Common values: 86400 (24h), 172800 (2d), 259200 (3d), 604800 (1 week)
GracePeriodSecs int64 `json:"grace_period_secs"`
// NotifyUsers Whether to send notification emails to users with active instances
NotifyUsers *bool `json:"notify_users,omitempty"`
// Selector Selector for node admin operations (drain, delete, marketplace listing toggle, etc.)
Selector NodeAdminSelector `json:"selector"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
DrainNodeRequestProto defines model for DrainNodeRequestProto.
type DrainNodeResponse ¶ added in v0.2.0
type DrainNodeResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *DrainNodeResponseProto
}
func ParseDrainNodeResponse ¶ added in v0.2.0
func ParseDrainNodeResponse(rsp *http.Response) (*DrainNodeResponse, error)
ParseDrainNodeResponse parses an HTTP response from a DrainNodeWithResponse call
func (DrainNodeResponse) Status ¶ added in v0.2.0
func (r DrainNodeResponse) Status() string
Status returns HTTPResponse.Status
func (DrainNodeResponse) StatusCode ¶ added in v0.2.0
func (r DrainNodeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DrainNodeResponseProto ¶ added in v0.2.0
type DrainNodeResponseProto struct {
// Data Response after starting node drain
Data struct {
Results []NodeDrainResult `json:"results"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
DrainNodeResponseProto defines model for DrainNodeResponseProto.
type EmailVerificationResendRequestProto ¶ added in v0.2.0
type EmailVerificationResendRequestProto struct {
Data struct {
// Email Email to send the verification link
Email string `json:"email"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
EmailVerificationResendRequestProto defines model for EmailVerificationResendRequestProto.
type ExternalTransactionAccountSelector ¶ added in v0.2.0
type ExternalTransactionAccountSelector struct {
// contains filtered or unexported fields
}
ExternalTransactionAccountSelector defines model for ExternalTransactionAccountSelector.
func (ExternalTransactionAccountSelector) AsExternalTransactionAccountSelector0 ¶ added in v0.2.0
func (t ExternalTransactionAccountSelector) AsExternalTransactionAccountSelector0() (ExternalTransactionAccountSelector0, error)
AsExternalTransactionAccountSelector0 returns the union data inside the ExternalTransactionAccountSelector as a ExternalTransactionAccountSelector0
func (ExternalTransactionAccountSelector) AsExternalTransactionAccountSelector1 ¶ added in v0.2.0
func (t ExternalTransactionAccountSelector) AsExternalTransactionAccountSelector1() (ExternalTransactionAccountSelector1, error)
AsExternalTransactionAccountSelector1 returns the union data inside the ExternalTransactionAccountSelector as a ExternalTransactionAccountSelector1
func (ExternalTransactionAccountSelector) AsExternalTransactionAccountSelector2 ¶ added in v0.2.3
func (t ExternalTransactionAccountSelector) AsExternalTransactionAccountSelector2() (ExternalTransactionAccountSelector2, error)
AsExternalTransactionAccountSelector2 returns the union data inside the ExternalTransactionAccountSelector as a ExternalTransactionAccountSelector2
func (ExternalTransactionAccountSelector) AsExternalTransactionAccountSelector3 ¶ added in v0.2.3
func (t ExternalTransactionAccountSelector) AsExternalTransactionAccountSelector3() (ExternalTransactionAccountSelector3, error)
AsExternalTransactionAccountSelector3 returns the union data inside the ExternalTransactionAccountSelector as a ExternalTransactionAccountSelector3
func (*ExternalTransactionAccountSelector) FromExternalTransactionAccountSelector0 ¶ added in v0.2.0
func (t *ExternalTransactionAccountSelector) FromExternalTransactionAccountSelector0(v ExternalTransactionAccountSelector0) error
FromExternalTransactionAccountSelector0 overwrites any union data inside the ExternalTransactionAccountSelector as the provided ExternalTransactionAccountSelector0
func (*ExternalTransactionAccountSelector) FromExternalTransactionAccountSelector1 ¶ added in v0.2.0
func (t *ExternalTransactionAccountSelector) FromExternalTransactionAccountSelector1(v ExternalTransactionAccountSelector1) error
FromExternalTransactionAccountSelector1 overwrites any union data inside the ExternalTransactionAccountSelector as the provided ExternalTransactionAccountSelector1
func (*ExternalTransactionAccountSelector) FromExternalTransactionAccountSelector2 ¶ added in v0.2.3
func (t *ExternalTransactionAccountSelector) FromExternalTransactionAccountSelector2(v ExternalTransactionAccountSelector2) error
FromExternalTransactionAccountSelector2 overwrites any union data inside the ExternalTransactionAccountSelector as the provided ExternalTransactionAccountSelector2
func (*ExternalTransactionAccountSelector) FromExternalTransactionAccountSelector3 ¶ added in v0.2.3
func (t *ExternalTransactionAccountSelector) FromExternalTransactionAccountSelector3(v ExternalTransactionAccountSelector3) error
FromExternalTransactionAccountSelector3 overwrites any union data inside the ExternalTransactionAccountSelector as the provided ExternalTransactionAccountSelector3
func (ExternalTransactionAccountSelector) MarshalJSON ¶ added in v0.2.0
func (t ExternalTransactionAccountSelector) MarshalJSON() ([]byte, error)
func (*ExternalTransactionAccountSelector) MergeExternalTransactionAccountSelector0 ¶ added in v0.2.0
func (t *ExternalTransactionAccountSelector) MergeExternalTransactionAccountSelector0(v ExternalTransactionAccountSelector0) error
MergeExternalTransactionAccountSelector0 performs a merge with any union data inside the ExternalTransactionAccountSelector, using the provided ExternalTransactionAccountSelector0
func (*ExternalTransactionAccountSelector) MergeExternalTransactionAccountSelector1 ¶ added in v0.2.0
func (t *ExternalTransactionAccountSelector) MergeExternalTransactionAccountSelector1(v ExternalTransactionAccountSelector1) error
MergeExternalTransactionAccountSelector1 performs a merge with any union data inside the ExternalTransactionAccountSelector, using the provided ExternalTransactionAccountSelector1
func (*ExternalTransactionAccountSelector) MergeExternalTransactionAccountSelector2 ¶ added in v0.2.3
func (t *ExternalTransactionAccountSelector) MergeExternalTransactionAccountSelector2(v ExternalTransactionAccountSelector2) error
MergeExternalTransactionAccountSelector2 performs a merge with any union data inside the ExternalTransactionAccountSelector, using the provided ExternalTransactionAccountSelector2
func (*ExternalTransactionAccountSelector) MergeExternalTransactionAccountSelector3 ¶ added in v0.2.3
func (t *ExternalTransactionAccountSelector) MergeExternalTransactionAccountSelector3(v ExternalTransactionAccountSelector3) error
MergeExternalTransactionAccountSelector3 performs a merge with any union data inside the ExternalTransactionAccountSelector, using the provided ExternalTransactionAccountSelector3
func (*ExternalTransactionAccountSelector) UnmarshalJSON ¶ added in v0.2.0
func (t *ExternalTransactionAccountSelector) UnmarshalJSON(b []byte) error
type ExternalTransactionAccountSelector0 ¶ added in v0.2.0
type ExternalTransactionAccountSelector0 struct {
ComputeProvider struct {
// Name Name of the compute provider
Name string `json:"name"`
} `json:"ComputeProvider"`
}
ExternalTransactionAccountSelector0 defines model for .
type ExternalTransactionAccountSelector1 ¶ added in v0.2.0
type ExternalTransactionAccountSelector1 struct {
TeamByName struct {
// Name Name of the team
Name string `json:"name"`
} `json:"TeamByName"`
}
ExternalTransactionAccountSelector1 defines model for .
type ExternalTransactionAccountSelector2 ¶ added in v0.2.3
type ExternalTransactionAccountSelector2 struct {
// ByUserIds Target user accounts by ID
ByUserIds []string `json:"ByUserIds"`
}
ExternalTransactionAccountSelector2 Target user accounts by ID
type ExternalTransactionAccountSelector3 ¶ added in v0.2.3
type ExternalTransactionAccountSelector3 struct {
// ByTeamIds Target team accounts by ID
ByTeamIds []string `json:"ByTeamIds"`
}
ExternalTransactionAccountSelector3 Target team accounts by ID
type ExternalTransactionRequestProto ¶
type ExternalTransactionRequestProto struct {
Data struct {
Account ExternalTransactionAccountSelector `json:"account"`
// Amount Amount of money in currency units (cents)
Amount int64 `json:"amount"`
// Description Description of the payout
Description *string `json:"description"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
ExternalTransactionRequestProto defines model for ExternalTransactionRequestProto.
type ForceDrainJSONRequestBody ¶ added in v0.2.0
type ForceDrainJSONRequestBody = ForceDrainRequestProto
ForceDrainJSONRequestBody defines body for ForceDrain for application/json ContentType.
type ForceDrainRequestProto ¶ added in v0.2.0
type ForceDrainRequestProto struct {
// Data Request to force drain nodes (immediately terminate all instances)
// Only allowed when nodes are already in Draining state
Data struct {
// Reason Optional reason for force draining (shown to users in termination notice)
Reason *string `json:"reason"`
// Selector Selector for node admin operations (drain, delete, marketplace listing toggle, etc.)
Selector NodeAdminSelector `json:"selector"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
ForceDrainRequestProto defines model for ForceDrainRequestProto.
type ForceDrainResponse ¶ added in v0.2.0
type ForceDrainResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ForceDrainResponseProto
}
func ParseForceDrainResponse ¶ added in v0.2.0
func ParseForceDrainResponse(rsp *http.Response) (*ForceDrainResponse, error)
ParseForceDrainResponse parses an HTTP response from a ForceDrainWithResponse call
func (ForceDrainResponse) Status ¶ added in v0.2.0
func (r ForceDrainResponse) Status() string
Status returns HTTPResponse.Status
func (ForceDrainResponse) StatusCode ¶ added in v0.2.0
func (r ForceDrainResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ForceDrainResponseProto ¶ added in v0.2.0
type ForceDrainResponseProto struct {
// Data Response after force draining
Data struct {
Results []NodeForceDrainResult `json:"results"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
ForceDrainResponseProto defines model for ForceDrainResponseProto.
type GenerateSshKeyResponseProto ¶
type GenerateSshKeyResponseProto struct {
Data struct {
// PrivateKey SSH key private part in PEM format (base64 encoded)
PrivateKey []int32 `json:"private_key"`
PublicKey SshKey `json:"public_key"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
GenerateSshKeyResponseProto defines model for GenerateSshKeyResponseProto.
type GetAccountInfoResponse ¶
type GetAccountInfoResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *AccountInfoProto
}
func ParseGetAccountInfoResponse ¶
func ParseGetAccountInfoResponse(rsp *http.Response) (*GetAccountInfoResponse, error)
ParseGetAccountInfoResponse parses an HTTP response from a GetAccountInfoWithResponse call
func (GetAccountInfoResponse) Status ¶
func (r GetAccountInfoResponse) Status() string
Status returns HTTPResponse.Status
func (GetAccountInfoResponse) StatusCode ¶
func (r GetAccountInfoResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAutoTopUpRecoveryInfoJSONRequestBody ¶ added in v0.2.4
type GetAutoTopUpRecoveryInfoJSONRequestBody = AutoTopUpRequestProto
GetAutoTopUpRecoveryInfoJSONRequestBody defines body for GetAutoTopUpRecoveryInfo for application/json ContentType.
type GetAutoTopUpRecoveryInfoResponse ¶ added in v0.2.4
type GetAutoTopUpRecoveryInfoResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *AutoTopUpRecoveryInfoProto
}
func ParseGetAutoTopUpRecoveryInfoResponse ¶ added in v0.2.4
func ParseGetAutoTopUpRecoveryInfoResponse(rsp *http.Response) (*GetAutoTopUpRecoveryInfoResponse, error)
ParseGetAutoTopUpRecoveryInfoResponse parses an HTTP response from a GetAutoTopUpRecoveryInfoWithResponse call
func (GetAutoTopUpRecoveryInfoResponse) Status ¶ added in v0.2.4
func (r GetAutoTopUpRecoveryInfoResponse) Status() string
Status returns HTTPResponse.Status
func (GetAutoTopUpRecoveryInfoResponse) StatusCode ¶ added in v0.2.4
func (r GetAutoTopUpRecoveryInfoResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetOrCreateStripeCustomerJSONRequestBody ¶ added in v0.2.4
type GetOrCreateStripeCustomerJSONRequestBody = StripeCustomerRequestProto
GetOrCreateStripeCustomerJSONRequestBody defines body for GetOrCreateStripeCustomer for application/json ContentType.
type GetOrCreateStripeCustomerResponse ¶ added in v0.2.4
type GetOrCreateStripeCustomerResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *StripeCustomerResponseProto
}
func ParseGetOrCreateStripeCustomerResponse ¶ added in v0.2.4
func ParseGetOrCreateStripeCustomerResponse(rsp *http.Response) (*GetOrCreateStripeCustomerResponse, error)
ParseGetOrCreateStripeCustomerResponse parses an HTTP response from a GetOrCreateStripeCustomerWithResponse call
func (GetOrCreateStripeCustomerResponse) Status ¶ added in v0.2.4
func (r GetOrCreateStripeCustomerResponse) Status() string
Status returns HTTPResponse.Status
func (GetOrCreateStripeCustomerResponse) StatusCode ¶ added in v0.2.4
func (r GetOrCreateStripeCustomerResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTeamResponse ¶
type GetTeamResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *TeamResponseProto
}
func ParseGetTeamResponse ¶
func ParseGetTeamResponse(rsp *http.Response) (*GetTeamResponse, error)
ParseGetTeamResponse parses an HTTP response from a GetTeamWithResponse call
func (GetTeamResponse) Status ¶
func (r GetTeamResponse) Status() string
Status returns HTTPResponse.Status
func (GetTeamResponse) StatusCode ¶
func (r GetTeamResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GlobalCapability ¶ added in v0.2.0
type GlobalCapability struct {
// contains filtered or unexported fields
}
GlobalCapability defines model for GlobalCapability.
func (GlobalCapability) AsGlobalCapability0 ¶ added in v0.2.0
func (t GlobalCapability) AsGlobalCapability0() (GlobalCapability0, error)
AsGlobalCapability0 returns the union data inside the GlobalCapability as a GlobalCapability0
func (*GlobalCapability) FromGlobalCapability0 ¶ added in v0.2.0
func (t *GlobalCapability) FromGlobalCapability0(v GlobalCapability0) error
FromGlobalCapability0 overwrites any union data inside the GlobalCapability as the provided GlobalCapability0
func (GlobalCapability) MarshalJSON ¶ added in v0.2.0
func (t GlobalCapability) MarshalJSON() ([]byte, error)
func (*GlobalCapability) MergeGlobalCapability0 ¶ added in v0.2.0
func (t *GlobalCapability) MergeGlobalCapability0(v GlobalCapability0) error
MergeGlobalCapability0 performs a merge with any union data inside the GlobalCapability, using the provided GlobalCapability0
func (*GlobalCapability) UnmarshalJSON ¶ added in v0.2.0
func (t *GlobalCapability) UnmarshalJSON(b []byte) error
type GlobalCapability0 ¶ added in v0.2.0
type GlobalCapability0 struct {
Nodes struct {
Read bool `json:"read"`
} `json:"nodes"`
}
GlobalCapability0 defines model for .
type GpuInfo ¶
type GpuInfo struct {
// Brand Full brand name of the GPU
Brand *string `json:"brand"`
// BrandShort Short and recognizable brand name of the GPU
BrandShort *string `json:"brand_short"`
// PciDeviceId PCI device ID, it can be used to locate GPU model if high-level information is not available
PciDeviceId int32 `json:"pci_device_id"`
// PciSlot PCI slot information
PciSlot *string `json:"pci_slot"`
// PciVendorId PCI vendor ID, it can be used to locate GPU model if high-level information is not available
PciVendorId int32 `json:"pci_vendor_id"`
// Vendor Vendor of the GPU
Vendor *string `json:"vendor"`
// VendorLogoUrl Logo of the GPU vendor
VendorLogoUrl *string `json:"vendor_logo_url"`
// Vram Amount of memory in bytes
Vram int64 `json:"vram"`
}
GpuInfo defines model for GpuInfo.
type GpuMetrics ¶ added in v0.2.3
type GpuMetrics struct {
FbFreeMib *float64 `json:"fb_free_mib"`
FbUsedMib *float64 `json:"fb_used_mib"`
GpuIndex string `json:"gpu_index"`
GpuUtilizationPercent *float64 `json:"gpu_utilization_percent"`
GpuUuid *string `json:"gpu_uuid"`
// GrActivity Graphics/compute engine active ratio (0.0–1.0)
GrActivity *float64 `json:"gr_activity"`
PciBdf *string `json:"pci_bdf"`
PowerUsageWatts *float64 `json:"power_usage_watts"`
TemperatureCelsius *float64 `json:"temperature_celsius"`
// TensorActivity Tensor core active ratio (0.0–1.0)
TensorActivity *float64 `json:"tensor_activity"`
}
GpuMetrics Metrics for a single GPU
type HttpClient ¶
type HttpClient struct {
HostURL string
HTTPClient *http.Client
ProtoVersion string
TeamID string // Optional team ID for team-scoped operations.
// contains filtered or unexported fields
}
func NewCustom ¶
func NewCustom(endpoint, token, protoVersion, teamID string, opts ...HttpClientOption) (*HttpClient, error)
func (*HttpClient) AddSSHKey ¶
func (c *HttpClient) AddSSHKey(name, publicKey string) (*GenerateSshKeyResponseProto, error)
func (*HttpClient) Auth ¶
func (c *HttpClient) Auth() error
func (*HttpClient) DeleteSSHKey ¶
func (c *HttpClient) DeleteSSHKey(id string) error
func (*HttpClient) GetInstance ¶
func (c *HttpClient) GetInstance(id string) (*InstanceAndUsageInfo, error)
func (*HttpClient) GetInstanceIncludingInactive ¶ added in v0.2.6
func (c *HttpClient) GetInstanceIncludingInactive(id string) (*InstanceAndUsageInfo, error)
GetInstanceIncludingInactive is like GetInstance but returns the instance even when its status is Inactive, returning ErrNotFound only when the id is absent from the list. Create uses it to tell a terminal Inactive apart from an id that is simply not listed yet (eventual consistency right after rent).
func (*HttpClient) ListInstanceTypes ¶
func (c *HttpClient) ListInstanceTypes() (*ListInstanceTypesResponseProto, error)
func (*HttpClient) ListInstances ¶
func (c *HttpClient) ListInstances() (*ListInstancesResponseProto, error)
func (*HttpClient) ListRecipes ¶
func (c *HttpClient) ListRecipes() (*ListRecipesResponseProto, error)
func (*HttpClient) ListSSHKeys ¶
func (c *HttpClient) ListSSHKeys() ([]SshKey, error)
func (*HttpClient) RentPublicInstanceVM ¶
func (c *HttpClient) RentPublicInstanceVM(recipe, datacenter, instance, commands, name string, pubKeys []string) (*RentInstanceResponseProto, error)
func (*HttpClient) TerminateInstance ¶
func (c *HttpClient) TerminateInstance(id string) error
type HttpClientOption ¶
type HttpClientOption func(*HttpClient)
func WithRetryableHttpClient ¶
func WithRetryableHttpClient(retries int) HttpClientOption
func WithTimeout ¶ added in v0.2.6
func WithTimeout(d time.Duration) HttpClientOption
WithTimeout overrides the HTTP client timeout. A non-positive duration is ignored, leaving DefaultRequestTimeout in place.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type InstanceAndUsageInfo ¶
type InstanceAndUsageInfo struct {
// BareMetal Same shape as `v045::InstanceBareMetalInfo` but carrying
// `v061::InstanceLoginInfo`.
BareMetal *InstanceBareMetalInfo `json:"bare_metal,omitempty"`
BillingExempt *bool `json:"billing_exempt,omitempty"`
Containers []InstanceContainerInfo `json:"containers"`
Cpu *CpuInfo `json:"cpu,omitempty"`
CpuLimit *int32 `json:"cpu_limit"`
CpuMask *string `json:"cpu_mask"`
CreatedAt string `json:"created_at"`
DiskLimit *int64 `json:"disk_limit"`
Dram *int64 `json:"dram"`
DramLimit *int64 `json:"dram_limit"`
// Failure Surfaced under `InstanceAndUsageInfo.failure` when a rental ended up in `Failed`.
Failure *RentalFailureInfo `json:"failure,omitempty"`
GpuLimit *int32 `json:"gpu_limit"`
GpuMask *string `json:"gpu_mask"`
Gpus *[]GpuInfo `json:"gpus"`
HostAddress *string `json:"host_address"`
Id string `json:"id"`
InstanceName *string `json:"instance_name"`
Instructions *InstanceUserInstructions `json:"instructions,omitempty"`
InternalHostAddress *string `json:"internal_host_address"`
MigProfile *string `json:"mig_profile"`
NodeId string `json:"node_id"`
NodeMode InstanceMode `json:"node_mode"`
NodeStatus NodeStatus `json:"node_status"`
PortMappings *[][]interface{} `json:"port_mappings"`
ReservationData *ReservationDates `json:"reservation_data,omitempty"`
ResourceInfo *InstanceResourceInfo `json:"resource_info,omitempty"`
SshKeyAuth bool `json:"ssh_key_auth"`
// Status Adds `Failed` for rentals that never reached `Active`. Distinct type from
// `v045::InstanceStatus` so v045 clients keep their original 4-variant contract.
Status InstanceStatus `json:"status"`
UsageInfo *InstanceUsageInfo `json:"usage_info,omitempty"`
VirtualMachines []InstanceVirtualMachineInfo `json:"virtual_machines"`
VolumeMounts *[]VolumeInfo `json:"volume_mounts"`
}
InstanceAndUsageInfo Same shape as `v059::InstanceAndUsageInfo` but with `virtual_machines` / `bare_metal` carrying `v061::InstanceLoginInfo`.
type InstanceBareMetalInfo ¶
type InstanceBareMetalInfo struct {
// LoginInfo Same as `v045::InstanceLoginInfo` plus [`Self::HiddenPassword`].
LoginInfo *InstanceLoginInfo `json:"login_info,omitempty"`
Name string `json:"name"`
Ready bool `json:"ready"`
}
InstanceBareMetalInfo Same shape as `v045::InstanceBareMetalInfo` but carrying `v061::InstanceLoginInfo`.
type InstanceConfiguration ¶
type InstanceConfiguration struct {
// contains filtered or unexported fields
}
InstanceConfiguration defines model for InstanceConfiguration.
func (InstanceConfiguration) AsInstanceConfiguration0 ¶
func (t InstanceConfiguration) AsInstanceConfiguration0() (InstanceConfiguration0, error)
AsInstanceConfiguration0 returns the union data inside the InstanceConfiguration as a InstanceConfiguration0
func (InstanceConfiguration) AsInstanceConfiguration1 ¶
func (t InstanceConfiguration) AsInstanceConfiguration1() (InstanceConfiguration1, error)
AsInstanceConfiguration1 returns the union data inside the InstanceConfiguration as a InstanceConfiguration1
func (InstanceConfiguration) AsInstanceConfiguration2 ¶
func (t InstanceConfiguration) AsInstanceConfiguration2() (InstanceConfiguration2, error)
AsInstanceConfiguration2 returns the union data inside the InstanceConfiguration as a InstanceConfiguration2
func (*InstanceConfiguration) FromInstanceConfiguration0 ¶
func (t *InstanceConfiguration) FromInstanceConfiguration0(v InstanceConfiguration0) error
FromInstanceConfiguration0 overwrites any union data inside the InstanceConfiguration as the provided InstanceConfiguration0
func (*InstanceConfiguration) FromInstanceConfiguration1 ¶
func (t *InstanceConfiguration) FromInstanceConfiguration1(v InstanceConfiguration1) error
FromInstanceConfiguration1 overwrites any union data inside the InstanceConfiguration as the provided InstanceConfiguration1
func (*InstanceConfiguration) FromInstanceConfiguration2 ¶
func (t *InstanceConfiguration) FromInstanceConfiguration2(v InstanceConfiguration2) error
FromInstanceConfiguration2 overwrites any union data inside the InstanceConfiguration as the provided InstanceConfiguration2
func (InstanceConfiguration) MarshalJSON ¶
func (t InstanceConfiguration) MarshalJSON() ([]byte, error)
func (*InstanceConfiguration) MergeInstanceConfiguration0 ¶
func (t *InstanceConfiguration) MergeInstanceConfiguration0(v InstanceConfiguration0) error
MergeInstanceConfiguration0 performs a merge with any union data inside the InstanceConfiguration, using the provided InstanceConfiguration0
func (*InstanceConfiguration) MergeInstanceConfiguration1 ¶
func (t *InstanceConfiguration) MergeInstanceConfiguration1(v InstanceConfiguration1) error
MergeInstanceConfiguration1 performs a merge with any union data inside the InstanceConfiguration, using the provided InstanceConfiguration1
func (*InstanceConfiguration) MergeInstanceConfiguration2 ¶
func (t *InstanceConfiguration) MergeInstanceConfiguration2(v InstanceConfiguration2) error
MergeInstanceConfiguration2 performs a merge with any union data inside the InstanceConfiguration, using the provided InstanceConfiguration2
func (*InstanceConfiguration) UnmarshalJSON ¶
func (t *InstanceConfiguration) UnmarshalJSON(b []byte) error
type InstanceConfiguration0 ¶
type InstanceConfiguration0 struct {
BareMetal struct {
SshKey InstanceSshKeySelector `json:"ssh_key"`
Volumes *InstanceVolumeSelector `json:"volumes,omitempty"`
} `json:"BareMetal"`
}
InstanceConfiguration0 defines model for .
type InstanceConfiguration1 ¶
type InstanceConfiguration1 struct {
VirtualMachine struct {
// CloudinitCommands Command to run in the VM
CloudinitCommands *string `json:"cloudinit_commands"`
// CloudinitUrl Cloud-init configuration file content
CloudinitUrl *string `json:"cloudinit_url"`
// ImageUrl ULR of the image to use for the VM
ImageUrl string `json:"image_url"`
// Ports Ports to expose
Ports *[]string `json:"ports"`
SshKey *InstanceSshKeySelector `json:"ssh_key,omitempty"`
Volumes *InstanceVolumeSelector `json:"volumes,omitempty"`
} `json:"VirtualMachine"`
}
InstanceConfiguration1 defines model for .
type InstanceConfiguration2 ¶
type InstanceConfiguration2 struct {
Docker struct {
// Command Command to run in the container
Command *[]string `json:"command"`
// Env Environment variables to set
Env *[][]interface{} `json:"env"`
// Image Docker image to run
Image *string `json:"image"`
// Name Optional name for the container
Name *string `json:"name"`
// Ports Ports to expose in the format <host>:<container>/<tcp|udp|sctp>
Ports *[]string `json:"ports"`
RegistryAuth *DockerRegistryAuth `json:"registry_auth,omitempty"`
Volumes *InstanceVolumeSelector `json:"volumes,omitempty"`
} `json:"Docker"`
}
InstanceConfiguration2 defines model for .
type InstanceContainerInfo ¶
type InstanceContainerInfo struct {
DockerId string `json:"docker_id"`
Name *string `json:"name"`
TruncatedDockerId string `json:"truncated_docker_id"`
}
InstanceContainerInfo defines model for InstanceContainerInfo.
type InstanceInfo ¶
type InstanceInfo struct {
// CostPerHour Cost per hour in currency units (cents)
CostPerHour int32 `json:"cost_per_hour"`
// CustomPricing Per-dimension weights (sum to 1.0) for splitting a node's `cost_per_hour`
// across a custom shape's resources.
CustomPricing *CustomInstancePricing `json:"custom_pricing,omitempty"`
// Name Instance type name
Name string `json:"name"`
}
InstanceInfo defines model for InstanceInfo.
type InstanceInfoFlags ¶ added in v0.2.3
type InstanceInfoFlags struct {
// WithConnectionInfo Include connection fields: host_address, internal_host_address, reservation_data, volume_mounts.
WithConnectionInfo *bool `json:"with_connection_info,omitempty"`
// WithCredentials Include instance credentials: the login password and the rendered
// connection instructions that embed it. Requires the
// `ViewInstanceCredentials` permission — asking for it without that
// permission is a `403`, not a silently redacted response.
//
// Also requires `with_connection_info` for the instructions, which are
// part of the connection payload.
WithCredentials *bool `json:"with_credentials,omitempty"`
// WithHardwareInfo Include detailed hardware fields: cpu, cpu_mask, dram, disk_limit, gpu_mask, mig_profile.
WithHardwareInfo *bool `json:"with_hardware_info,omitempty"`
// WithUsageInfo Include billing/usage info: resource_info (provider, cost) and usage_info (duration, user).
WithUsageInfo *bool `json:"with_usage_info,omitempty"`
}
InstanceInfoFlags Same as `v058::InstanceInfoFlags` plus [`Self::with_credentials`].
type InstanceLoginInfo ¶
type InstanceLoginInfo struct {
// contains filtered or unexported fields
}
InstanceLoginInfo Same as `v045::InstanceLoginInfo` plus [`Self::HiddenPassword`].
func (InstanceLoginInfo) AsInstanceLoginInfo0 ¶
func (t InstanceLoginInfo) AsInstanceLoginInfo0() (InstanceLoginInfo0, error)
AsInstanceLoginInfo0 returns the union data inside the InstanceLoginInfo as a InstanceLoginInfo0
func (InstanceLoginInfo) AsInstanceLoginInfo1 ¶
func (t InstanceLoginInfo) AsInstanceLoginInfo1() (InstanceLoginInfo1, error)
AsInstanceLoginInfo1 returns the union data inside the InstanceLoginInfo as a InstanceLoginInfo1
func (InstanceLoginInfo) AsInstanceLoginInfo2 ¶ added in v0.2.7
func (t InstanceLoginInfo) AsInstanceLoginInfo2() (InstanceLoginInfo2, error)
AsInstanceLoginInfo2 returns the union data inside the InstanceLoginInfo as a InstanceLoginInfo2
func (*InstanceLoginInfo) FromInstanceLoginInfo0 ¶
func (t *InstanceLoginInfo) FromInstanceLoginInfo0(v InstanceLoginInfo0) error
FromInstanceLoginInfo0 overwrites any union data inside the InstanceLoginInfo as the provided InstanceLoginInfo0
func (*InstanceLoginInfo) FromInstanceLoginInfo1 ¶
func (t *InstanceLoginInfo) FromInstanceLoginInfo1(v InstanceLoginInfo1) error
FromInstanceLoginInfo1 overwrites any union data inside the InstanceLoginInfo as the provided InstanceLoginInfo1
func (*InstanceLoginInfo) FromInstanceLoginInfo2 ¶ added in v0.2.7
func (t *InstanceLoginInfo) FromInstanceLoginInfo2(v InstanceLoginInfo2) error
FromInstanceLoginInfo2 overwrites any union data inside the InstanceLoginInfo as the provided InstanceLoginInfo2
func (InstanceLoginInfo) MarshalJSON ¶
func (t InstanceLoginInfo) MarshalJSON() ([]byte, error)
func (*InstanceLoginInfo) MergeInstanceLoginInfo0 ¶
func (t *InstanceLoginInfo) MergeInstanceLoginInfo0(v InstanceLoginInfo0) error
MergeInstanceLoginInfo0 performs a merge with any union data inside the InstanceLoginInfo, using the provided InstanceLoginInfo0
func (*InstanceLoginInfo) MergeInstanceLoginInfo1 ¶
func (t *InstanceLoginInfo) MergeInstanceLoginInfo1(v InstanceLoginInfo1) error
MergeInstanceLoginInfo1 performs a merge with any union data inside the InstanceLoginInfo, using the provided InstanceLoginInfo1
func (*InstanceLoginInfo) MergeInstanceLoginInfo2 ¶ added in v0.2.7
func (t *InstanceLoginInfo) MergeInstanceLoginInfo2(v InstanceLoginInfo2) error
MergeInstanceLoginInfo2 performs a merge with any union data inside the InstanceLoginInfo, using the provided InstanceLoginInfo2
func (*InstanceLoginInfo) UnmarshalJSON ¶
func (t *InstanceLoginInfo) UnmarshalJSON(b []byte) error
type InstanceLoginInfo0 ¶
type InstanceLoginInfo0 struct {
UsernameAndPassword struct {
Password string `json:"password"`
Username string `json:"username"`
} `json:"UsernameAndPassword"`
}
InstanceLoginInfo0 defines model for .
type InstanceLoginInfo1 ¶
type InstanceLoginInfo1 struct {
// Username The instance has no password (SSH-key auth only).
Username struct {
Username string `json:"username"`
} `json:"Username"`
}
InstanceLoginInfo1 The instance has no password (SSH-key auth only).
type InstanceLoginInfo2 ¶ added in v0.2.7
type InstanceLoginInfo2 struct {
// HiddenPassword The caller lacks `ViewInstanceCredentials`, so the password was never
// fetched. Distinct from [`Self::Username`] so clients can render
// "withheld" rather than "none".
HiddenPassword struct {
Username string `json:"username"`
} `json:"HiddenPassword"`
}
InstanceLoginInfo2 The caller lacks `ViewInstanceCredentials`, so the password was never fetched. Distinct from [`Self::Username`] so clients can render "withheld" rather than "none".
type InstanceMetrics ¶ added in v0.2.3
type InstanceMetrics struct {
// Gpus GPU metrics filtered to the GPUs assigned to this instance
Gpus []GpuMetrics `json:"gpus"`
// InstanceId Instance (executor) ID
InstanceId string `json:"instance_id"`
// NodeId Node the instance is running on
NodeId string `json:"node_id"`
}
InstanceMetrics Hardware metrics for a single instance, filtered to GPUs allocated via gpu_mask
type InstanceMetricsJSONRequestBody ¶ added in v0.2.3
type InstanceMetricsJSONRequestBody = InstanceMetricsRequestProto
InstanceMetricsJSONRequestBody defines body for InstanceMetrics for application/json ContentType.
type InstanceMetricsRequestProto ¶ added in v0.2.3
type InstanceMetricsRequestProto struct {
// Data Request to fetch hardware metrics for instances
Data struct {
// Selector Selector for which instances to query metrics for
Selector InstanceMetricsSelector `json:"selector"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
InstanceMetricsRequestProto defines model for InstanceMetricsRequestProto.
type InstanceMetricsResponse ¶ added in v0.2.3
type InstanceMetricsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *InstanceMetricsResponseProto
}
func ParseInstanceMetricsResponse ¶ added in v0.2.3
func ParseInstanceMetricsResponse(rsp *http.Response) (*InstanceMetricsResponse, error)
ParseInstanceMetricsResponse parses an HTTP response from a InstanceMetricsWithResponse call
func (InstanceMetricsResponse) Status ¶ added in v0.2.3
func (r InstanceMetricsResponse) Status() string
Status returns HTTPResponse.Status
func (InstanceMetricsResponse) StatusCode ¶ added in v0.2.3
func (r InstanceMetricsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type InstanceMetricsResponseProto ¶ added in v0.2.3
type InstanceMetricsResponseProto struct {
// Data Response containing instance-level GPU metrics
Data struct {
Metrics []InstanceMetrics `json:"metrics"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
InstanceMetricsResponseProto defines model for InstanceMetricsResponseProto.
type InstanceMetricsSelector ¶ added in v0.2.3
type InstanceMetricsSelector struct {
// contains filtered or unexported fields
}
InstanceMetricsSelector Selector for which instances to query metrics for
func (InstanceMetricsSelector) AsInstanceMetricsSelector0 ¶ added in v0.2.3
func (t InstanceMetricsSelector) AsInstanceMetricsSelector0() (InstanceMetricsSelector0, error)
AsInstanceMetricsSelector0 returns the union data inside the InstanceMetricsSelector as a InstanceMetricsSelector0
func (*InstanceMetricsSelector) FromInstanceMetricsSelector0 ¶ added in v0.2.3
func (t *InstanceMetricsSelector) FromInstanceMetricsSelector0(v InstanceMetricsSelector0) error
FromInstanceMetricsSelector0 overwrites any union data inside the InstanceMetricsSelector as the provided InstanceMetricsSelector0
func (InstanceMetricsSelector) MarshalJSON ¶ added in v0.2.3
func (t InstanceMetricsSelector) MarshalJSON() ([]byte, error)
func (*InstanceMetricsSelector) MergeInstanceMetricsSelector0 ¶ added in v0.2.3
func (t *InstanceMetricsSelector) MergeInstanceMetricsSelector0(v InstanceMetricsSelector0) error
MergeInstanceMetricsSelector0 performs a merge with any union data inside the InstanceMetricsSelector, using the provided InstanceMetricsSelector0
func (*InstanceMetricsSelector) UnmarshalJSON ¶ added in v0.2.3
func (t *InstanceMetricsSelector) UnmarshalJSON(b []byte) error
type InstanceMetricsSelector0 ¶ added in v0.2.3
type InstanceMetricsSelector0 struct {
// ById Select instances by ID
ById []string `json:"ById"`
}
InstanceMetricsSelector0 Select instances by ID
type InstanceMode ¶
type InstanceMode string
InstanceMode defines model for InstanceMode.
const ( BareMetal InstanceMode = "BareMetal" Container InstanceMode = "Container" VirtualMachine InstanceMode = "VirtualMachine" )
Defines values for InstanceMode.
type InstanceResourceInfo ¶
type InstanceResourceInfo struct {
// CostPerHour Cost per hour in currency units
CostPerHour float32 `json:"cost_per_hour"`
// InstanceType Name of the instance type
InstanceType string `json:"instance_type"`
// ProviderName Name of the provider, i.e. resource owner
ProviderName string `json:"provider_name"`
}
InstanceResourceInfo defines model for InstanceResourceInfo.
type InstanceSshKeySelector ¶
type InstanceSshKeySelector struct {
// contains filtered or unexported fields
}
InstanceSshKeySelector defines model for InstanceSshKeySelector.
func (InstanceSshKeySelector) AsInstanceSshKeySelector0 ¶
func (t InstanceSshKeySelector) AsInstanceSshKeySelector0() (InstanceSshKeySelector0, error)
AsInstanceSshKeySelector0 returns the union data inside the InstanceSshKeySelector as a InstanceSshKeySelector0
func (InstanceSshKeySelector) AsInstanceSshKeySelector1 ¶
func (t InstanceSshKeySelector) AsInstanceSshKeySelector1() (InstanceSshKeySelector1, error)
AsInstanceSshKeySelector1 returns the union data inside the InstanceSshKeySelector as a InstanceSshKeySelector1
func (InstanceSshKeySelector) AsInstanceSshKeySelector2 ¶
func (t InstanceSshKeySelector) AsInstanceSshKeySelector2() (InstanceSshKeySelector2, error)
AsInstanceSshKeySelector2 returns the union data inside the InstanceSshKeySelector as a InstanceSshKeySelector2
func (*InstanceSshKeySelector) FromInstanceSshKeySelector0 ¶
func (t *InstanceSshKeySelector) FromInstanceSshKeySelector0(v InstanceSshKeySelector0) error
FromInstanceSshKeySelector0 overwrites any union data inside the InstanceSshKeySelector as the provided InstanceSshKeySelector0
func (*InstanceSshKeySelector) FromInstanceSshKeySelector1 ¶
func (t *InstanceSshKeySelector) FromInstanceSshKeySelector1(v InstanceSshKeySelector1) error
FromInstanceSshKeySelector1 overwrites any union data inside the InstanceSshKeySelector as the provided InstanceSshKeySelector1
func (*InstanceSshKeySelector) FromInstanceSshKeySelector2 ¶
func (t *InstanceSshKeySelector) FromInstanceSshKeySelector2(v InstanceSshKeySelector2) error
FromInstanceSshKeySelector2 overwrites any union data inside the InstanceSshKeySelector as the provided InstanceSshKeySelector2
func (InstanceSshKeySelector) MarshalJSON ¶
func (t InstanceSshKeySelector) MarshalJSON() ([]byte, error)
func (*InstanceSshKeySelector) MergeInstanceSshKeySelector0 ¶
func (t *InstanceSshKeySelector) MergeInstanceSshKeySelector0(v InstanceSshKeySelector0) error
MergeInstanceSshKeySelector0 performs a merge with any union data inside the InstanceSshKeySelector, using the provided InstanceSshKeySelector0
func (*InstanceSshKeySelector) MergeInstanceSshKeySelector1 ¶
func (t *InstanceSshKeySelector) MergeInstanceSshKeySelector1(v InstanceSshKeySelector1) error
MergeInstanceSshKeySelector1 performs a merge with any union data inside the InstanceSshKeySelector, using the provided InstanceSshKeySelector1
func (*InstanceSshKeySelector) MergeInstanceSshKeySelector2 ¶
func (t *InstanceSshKeySelector) MergeInstanceSshKeySelector2(v InstanceSshKeySelector2) error
MergeInstanceSshKeySelector2 performs a merge with any union data inside the InstanceSshKeySelector, using the provided InstanceSshKeySelector2
func (*InstanceSshKeySelector) UnmarshalJSON ¶
func (t *InstanceSshKeySelector) UnmarshalJSON(b []byte) error
type InstanceSshKeySelector0 ¶
type InstanceSshKeySelector0 struct {
// ByName List of SSH key names to use for the instance
ByName []string `json:"ByName"`
}
InstanceSshKeySelector0 List of SSH key names to use for the instance
type InstanceSshKeySelector1 ¶
type InstanceSshKeySelector1 struct {
// PublicKeys Use specified SSH key
PublicKeys []string `json:"PublicKeys"`
}
InstanceSshKeySelector1 Use specified SSH key
type InstanceSshKeySelector2 ¶
type InstanceSshKeySelector2 struct {
ById []string `json:"ById"`
}
InstanceSshKeySelector2 defines model for .
type InstanceStatus ¶
type InstanceStatus string
InstanceStatus Adds `Failed` for rentals that never reached `Active`. Distinct type from `v045::InstanceStatus` so v045 clients keep their original 4-variant contract.
const ( InstanceStatusActive InstanceStatus = "Active" InstanceStatusDeactivating InstanceStatus = "Deactivating" InstanceStatusFailed InstanceStatus = "Failed" InstanceStatusInactive InstanceStatus = "Inactive" InstanceStatusInitializing InstanceStatus = "Initializing" )
Defines values for InstanceStatus.
type InstanceType ¶
type InstanceType struct {
// BrandShort Short and recognizable brand name of the core instance hardware for easier navigation
BrandShort *string `json:"brand_short"`
// CostPerHour Cost of the instance per hour in currency units (cents)
CostPerHour int64 `json:"cost_per_hour"`
// Datacenters List of datacenters where this instance type is available
Datacenters []InstanceTypeDatacenter `json:"datacenters"`
// Manufacturer Used to display GPU or CPU (if no GPU is present) vendor to the user for easier navigation
Manufacturer *string `json:"manufacturer"`
// Name Instance type name
Name string `json:"name"`
// Variants Slice options for this instance type
Variants []InstanceVariantInfo `json:"variants"`
}
InstanceType defines model for InstanceType.
type InstanceTypeDatacenter ¶ added in v0.2.0
type InstanceTypeDatacenter struct {
// CountryCode Country code of the datacenter
CountryCode *string `json:"country_code"`
// Name Datacenter name
Name string `json:"name"`
// ProviderLogo Provider logo URL/path
ProviderLogo *string `json:"provider_logo"`
// ProviderName Provider name
ProviderName string `json:"provider_name"`
}
InstanceTypeDatacenter defines model for InstanceTypeDatacenter.
type InstanceTypeInfo ¶ added in v0.2.0
type InstanceTypeInfo struct {
// BrandShort Short and recognizable brand name of the core instance hardware for easier navigation
BrandShort *string `json:"brand_short"`
// CostPerHour Cost of the instance per hour in currency units (cents)
CostPerHour int64 `json:"cost_per_hour"`
// Manufacturer Used to display GPU or CPU (if no GPU is present) vendor to the user for easier navigation
Manufacturer *string `json:"manufacturer"`
// Name Instance type name
Name string `json:"name"`
}
InstanceTypeInfo defines model for InstanceTypeInfo.
type InstanceTypeResponseProto ¶ added in v0.2.0
type InstanceTypeResponseProto struct {
Data struct {
// BrandShort Short and recognizable brand name of the core instance hardware for easier navigation
BrandShort *string `json:"brand_short"`
// CostPerHour Cost of the instance per hour in currency units (cents)
CostPerHour int64 `json:"cost_per_hour"`
// Manufacturer Used to display GPU or CPU (if no GPU is present) vendor to the user for easier navigation
Manufacturer *string `json:"manufacturer"`
// Name Instance type name
Name string `json:"name"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
InstanceTypeResponseProto defines model for InstanceTypeResponseProto.
type InstanceTypeSelector ¶
type InstanceTypeSelector struct {
// contains filtered or unexported fields
}
InstanceTypeSelector defines model for InstanceTypeSelector.
func (InstanceTypeSelector) AsInstanceTypeSelector0 ¶
func (t InstanceTypeSelector) AsInstanceTypeSelector0() (InstanceTypeSelector0, error)
AsInstanceTypeSelector0 returns the union data inside the InstanceTypeSelector as a InstanceTypeSelector0
func (InstanceTypeSelector) AsInstanceTypeSelector1 ¶
func (t InstanceTypeSelector) AsInstanceTypeSelector1() (InstanceTypeSelector1, error)
AsInstanceTypeSelector1 returns the union data inside the InstanceTypeSelector as a InstanceTypeSelector1
func (InstanceTypeSelector) AsInstanceTypeSelector2 ¶
func (t InstanceTypeSelector) AsInstanceTypeSelector2() (InstanceTypeSelector2, error)
AsInstanceTypeSelector2 returns the union data inside the InstanceTypeSelector as a InstanceTypeSelector2
func (InstanceTypeSelector) AsInstanceTypeSelector3 ¶
func (t InstanceTypeSelector) AsInstanceTypeSelector3() (InstanceTypeSelector3, error)
AsInstanceTypeSelector3 returns the union data inside the InstanceTypeSelector as a InstanceTypeSelector3
func (*InstanceTypeSelector) FromInstanceTypeSelector0 ¶
func (t *InstanceTypeSelector) FromInstanceTypeSelector0(v InstanceTypeSelector0) error
FromInstanceTypeSelector0 overwrites any union data inside the InstanceTypeSelector as the provided InstanceTypeSelector0
func (*InstanceTypeSelector) FromInstanceTypeSelector1 ¶
func (t *InstanceTypeSelector) FromInstanceTypeSelector1(v InstanceTypeSelector1) error
FromInstanceTypeSelector1 overwrites any union data inside the InstanceTypeSelector as the provided InstanceTypeSelector1
func (*InstanceTypeSelector) FromInstanceTypeSelector2 ¶
func (t *InstanceTypeSelector) FromInstanceTypeSelector2(v InstanceTypeSelector2) error
FromInstanceTypeSelector2 overwrites any union data inside the InstanceTypeSelector as the provided InstanceTypeSelector2
func (*InstanceTypeSelector) FromInstanceTypeSelector3 ¶
func (t *InstanceTypeSelector) FromInstanceTypeSelector3(v InstanceTypeSelector3) error
FromInstanceTypeSelector3 overwrites any union data inside the InstanceTypeSelector as the provided InstanceTypeSelector3
func (InstanceTypeSelector) MarshalJSON ¶
func (t InstanceTypeSelector) MarshalJSON() ([]byte, error)
func (*InstanceTypeSelector) MergeInstanceTypeSelector0 ¶
func (t *InstanceTypeSelector) MergeInstanceTypeSelector0(v InstanceTypeSelector0) error
MergeInstanceTypeSelector0 performs a merge with any union data inside the InstanceTypeSelector, using the provided InstanceTypeSelector0
func (*InstanceTypeSelector) MergeInstanceTypeSelector1 ¶
func (t *InstanceTypeSelector) MergeInstanceTypeSelector1(v InstanceTypeSelector1) error
MergeInstanceTypeSelector1 performs a merge with any union data inside the InstanceTypeSelector, using the provided InstanceTypeSelector1
func (*InstanceTypeSelector) MergeInstanceTypeSelector2 ¶
func (t *InstanceTypeSelector) MergeInstanceTypeSelector2(v InstanceTypeSelector2) error
MergeInstanceTypeSelector2 performs a merge with any union data inside the InstanceTypeSelector, using the provided InstanceTypeSelector2
func (*InstanceTypeSelector) MergeInstanceTypeSelector3 ¶
func (t *InstanceTypeSelector) MergeInstanceTypeSelector3(v InstanceTypeSelector3) error
MergeInstanceTypeSelector3 performs a merge with any union data inside the InstanceTypeSelector, using the provided InstanceTypeSelector3
func (*InstanceTypeSelector) UnmarshalJSON ¶
func (t *InstanceTypeSelector) UnmarshalJSON(b []byte) error
type InstanceTypeSelector0 ¶
type InstanceTypeSelector0 string
InstanceTypeSelector0 Select all instance types
const (
InstanceTypeSelector0All InstanceTypeSelector0 = "All"
)
Defines values for InstanceTypeSelector0.
type InstanceTypeSelector1 ¶
type InstanceTypeSelector1 struct {
// ByServiceAndLocation Select instance types by service name
ByServiceAndLocation struct {
// Datacenters Locations of the instance types
Datacenters *[]string `json:"datacenters"`
// Services List of services that the instance type should support, e.g. docker, VM
Services *[]string `json:"services"`
} `json:"ByServiceAndLocation"`
}
InstanceTypeSelector1 Select instance types by service name
type InstanceTypeSelector2 ¶
type InstanceTypeSelector2 struct {
// ByServiceAndProvider Select instance types by service and provider name
ByServiceAndProvider struct {
// Providers List of providers that the instance type should support, e.g. AWS, GCP
Providers *[]string `json:"providers"`
// Services List of services that the instance type should support, e.g. docker, VM
Services *[]string `json:"services"`
} `json:"ByServiceAndProvider"`
}
InstanceTypeSelector2 Select instance types by service and provider name
type InstanceTypeSelector3 ¶
type InstanceTypeSelector3 struct {
// ByName Select instance types by name
ByName []string `json:"ByName"`
}
InstanceTypeSelector3 Select instance types by name
type InstanceUsageInfo ¶
type InstanceUsageInfo struct {
// AccountedUsage Amount of usage we've subtracted from user balance
AccountedUsage map[string]int32 `json:"accounted_usage"`
// Usage Total amount of usage we've estimated
Usage map[string]int32 `json:"usage"`
// UserEmail User's email of the instance
UserEmail string `json:"user_email"`
// UserId User ID of the instance renter
UserId string `json:"user_id"`
// UserName User's name of the instance
UserName string `json:"user_name"`
}
InstanceUsageInfo defines model for InstanceUsageInfo.
type InstanceUserInstructions ¶
type InstanceUserInstructions struct {
// InstructionsTemplate Instructions for the user to access the instance, stored as base64-encoded bytes
InstructionsTemplate string `json:"instructions_template"`
// PlaceholderValues Placeholder values for the instructions template
PlaceholderValues [][]interface{} `json:"placeholder_values"`
}
InstanceUserInstructions defines model for InstanceUserInstructions.
type InstanceVariant ¶
type InstanceVariant struct {
// CpuCount CPU count
CpuCount int32 `json:"cpu_count"`
// Disk Disk size in bytes
Disk int64 `json:"disk"`
// Dram RAM size
Dram int64 `json:"dram"`
// GpuCount GPU count
GpuCount *int32 `json:"gpu_count"`
// MigProfile MIG profile name for fractional GPU allocation (e.g., "1g.5gb", "2g.10gb")
MigProfile *string `json:"mig_profile"`
// Name Instance variant name including instance type name
Name string `json:"name"`
// Vram VRAM per GPU
Vram int64 `json:"vram"`
}
InstanceVariant defines model for InstanceVariant.
type InstanceVariantInfo ¶
type InstanceVariantInfo struct {
// AvailableNodes Number of nodes that this variant is available on to estimate availability
AvailableNodes int32 `json:"available_nodes"`
// AvailableNodesPerDc Number of nodes that this variant is available on per datacenter
AvailableNodesPerDc map[string]int32 `json:"available_nodes_per_dc"`
// CostPerHour Cost of the instance per hour in currency units (cents)
CostPerHour float64 `json:"cost_per_hour"`
// CpuCount CPU count
CpuCount int32 `json:"cpu_count"`
// Disk Disk size in bytes
Disk int64 `json:"disk"`
// Dram RAM size
Dram int64 `json:"dram"`
// GpuCount GPU count
GpuCount *int32 `json:"gpu_count"`
// IpAvailabilityPerDc IP availability information per datacenter
// This leaves room to add extra fields in the future like the number of public IPs available
IpAvailabilityPerDc map[string]IpAvailability `json:"ip_availability_per_dc"`
// LogicalCpuCount Logical CPU count (cpu_count * 2)
LogicalCpuCount int32 `json:"logical_cpu_count"`
// MigProfile MIG profile name for fractional GPU allocation (e.g., "1g.5gb", "2g.10gb")
MigProfile *string `json:"mig_profile"`
// Name Instance variant name including instance type name
Name string `json:"name"`
// Nodes Number of nodes that this variant is available on to estimate availability
Nodes int32 `json:"nodes"`
// NodesPerDc Number of nodes that this variant is available on per datacenter
NodesPerDc map[string]int32 `json:"nodes_per_dc"`
// VolumeTypesPerDc Available volume types per datacenter
VolumeTypesPerDc map[string][]VolumeTypeAvailability `json:"volume_types_per_dc"`
// Vram VRAM per GPU
Vram int64 `json:"vram"`
}
InstanceVariantInfo defines model for InstanceVariantInfo.
type InstanceVariantRawInfo ¶ added in v0.2.0
type InstanceVariantRawInfo struct {
// CpuCount CPU count
CpuCount int32 `json:"cpu_count"`
// Disk Disk size in bytes
Disk int64 `json:"disk"`
// Dram RAM size
Dram int64 `json:"dram"`
// GpuCount GPU count
GpuCount *int32 `json:"gpu_count"`
// InstanceFraction Instance fraction
InstanceFraction []int32 `json:"instance_fraction"`
// MigProfile MIG profile name for fractional GPU allocation (e.g., "1g.5gb", "2g.10gb")
MigProfile *string `json:"mig_profile"`
// Name Instance variant name
Name string `json:"name"`
// Vram VRAM per GPU
Vram int64 `json:"vram"`
}
InstanceVariantRawInfo defines model for InstanceVariantRawInfo.
type InstanceVariantResponseProto ¶ added in v0.2.0
type InstanceVariantResponseProto struct {
Data struct {
// CpuCount CPU count
CpuCount int32 `json:"cpu_count"`
// Disk Disk size in bytes
Disk int64 `json:"disk"`
// Dram RAM size
Dram int64 `json:"dram"`
// GpuCount GPU count
GpuCount *int32 `json:"gpu_count"`
// InstanceFraction Instance fraction
InstanceFraction []int32 `json:"instance_fraction"`
// MigProfile MIG profile name for fractional GPU allocation (e.g., "1g.5gb", "2g.10gb")
MigProfile *string `json:"mig_profile"`
// Name Instance variant name
Name string `json:"name"`
// Vram VRAM per GPU
Vram int64 `json:"vram"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
InstanceVariantResponseProto defines model for InstanceVariantResponseProto.
type InstanceVariantSelector ¶ added in v0.2.0
type InstanceVariantSelector struct {
// contains filtered or unexported fields
}
InstanceVariantSelector defines model for InstanceVariantSelector.
func (InstanceVariantSelector) AsInstanceVariantSelector0 ¶ added in v0.2.0
func (t InstanceVariantSelector) AsInstanceVariantSelector0() (InstanceVariantSelector0, error)
AsInstanceVariantSelector0 returns the union data inside the InstanceVariantSelector as a InstanceVariantSelector0
func (*InstanceVariantSelector) FromInstanceVariantSelector0 ¶ added in v0.2.0
func (t *InstanceVariantSelector) FromInstanceVariantSelector0(v InstanceVariantSelector0) error
FromInstanceVariantSelector0 overwrites any union data inside the InstanceVariantSelector as the provided InstanceVariantSelector0
func (InstanceVariantSelector) MarshalJSON ¶ added in v0.2.0
func (t InstanceVariantSelector) MarshalJSON() ([]byte, error)
func (*InstanceVariantSelector) MergeInstanceVariantSelector0 ¶ added in v0.2.0
func (t *InstanceVariantSelector) MergeInstanceVariantSelector0(v InstanceVariantSelector0) error
MergeInstanceVariantSelector0 performs a merge with any union data inside the InstanceVariantSelector, using the provided InstanceVariantSelector0
func (*InstanceVariantSelector) UnmarshalJSON ¶ added in v0.2.0
func (t *InstanceVariantSelector) UnmarshalJSON(b []byte) error
type InstanceVariantSelector0 ¶ added in v0.2.0
type InstanceVariantSelector0 struct {
ByInstanceTypeAndName struct {
// InstanceType Instance type name
InstanceType string `json:"instance_type"`
// Variant Instance variant name
Variant string `json:"variant"`
} `json:"ByInstanceTypeAndName"`
}
InstanceVariantSelector0 defines model for .
type InstanceVirtualMachineInfo ¶
type InstanceVirtualMachineInfo struct {
// LoginInfo Same as `v045::InstanceLoginInfo` plus [`Self::HiddenPassword`].
LoginInfo *InstanceLoginInfo `json:"login_info,omitempty"`
MemoryUsageKb *int32 `json:"memory_usage_kb"`
Name string `json:"name"`
Ready bool `json:"ready"`
State VirtDomainState `json:"state"`
Vmid int32 `json:"vmid"`
}
InstanceVirtualMachineInfo Same shape as `v045::InstanceVirtualMachineInfo` but carrying `v061::InstanceLoginInfo`.
type InstanceVolumeSelector ¶ added in v0.2.0
type InstanceVolumeSelector struct {
// contains filtered or unexported fields
}
InstanceVolumeSelector defines model for InstanceVolumeSelector.
func (InstanceVolumeSelector) AsInstanceVolumeSelector0 ¶ added in v0.2.0
func (t InstanceVolumeSelector) AsInstanceVolumeSelector0() (InstanceVolumeSelector0, error)
AsInstanceVolumeSelector0 returns the union data inside the InstanceVolumeSelector as a InstanceVolumeSelector0
func (InstanceVolumeSelector) AsInstanceVolumeSelector1 ¶ added in v0.2.0
func (t InstanceVolumeSelector) AsInstanceVolumeSelector1() (InstanceVolumeSelector1, error)
AsInstanceVolumeSelector1 returns the union data inside the InstanceVolumeSelector as a InstanceVolumeSelector1
func (*InstanceVolumeSelector) FromInstanceVolumeSelector0 ¶ added in v0.2.0
func (t *InstanceVolumeSelector) FromInstanceVolumeSelector0(v InstanceVolumeSelector0) error
FromInstanceVolumeSelector0 overwrites any union data inside the InstanceVolumeSelector as the provided InstanceVolumeSelector0
func (*InstanceVolumeSelector) FromInstanceVolumeSelector1 ¶ added in v0.2.0
func (t *InstanceVolumeSelector) FromInstanceVolumeSelector1(v InstanceVolumeSelector1) error
FromInstanceVolumeSelector1 overwrites any union data inside the InstanceVolumeSelector as the provided InstanceVolumeSelector1
func (InstanceVolumeSelector) MarshalJSON ¶ added in v0.2.0
func (t InstanceVolumeSelector) MarshalJSON() ([]byte, error)
func (*InstanceVolumeSelector) MergeInstanceVolumeSelector0 ¶ added in v0.2.0
func (t *InstanceVolumeSelector) MergeInstanceVolumeSelector0(v InstanceVolumeSelector0) error
MergeInstanceVolumeSelector0 performs a merge with any union data inside the InstanceVolumeSelector, using the provided InstanceVolumeSelector0
func (*InstanceVolumeSelector) MergeInstanceVolumeSelector1 ¶ added in v0.2.0
func (t *InstanceVolumeSelector) MergeInstanceVolumeSelector1(v InstanceVolumeSelector1) error
MergeInstanceVolumeSelector1 performs a merge with any union data inside the InstanceVolumeSelector, using the provided InstanceVolumeSelector1
func (*InstanceVolumeSelector) UnmarshalJSON ¶ added in v0.2.0
func (t *InstanceVolumeSelector) UnmarshalJSON(b []byte) error
type InstanceVolumeSelector0 ¶ added in v0.2.0
type InstanceVolumeSelector0 struct {
// Mounts List of volume mounts
Mounts []VolumeMount `json:"Mounts"`
}
InstanceVolumeSelector0 List of volume mounts
type InstanceVolumeSelector1 ¶ added in v0.2.0
type InstanceVolumeSelector1 string
InstanceVolumeSelector1 No volumes
const (
InstanceVolumeSelector1None InstanceVolumeSelector1 = "None"
)
Defines values for InstanceVolumeSelector1.
type InstancesSelector ¶
type InstancesSelector struct {
// contains filtered or unexported fields
}
InstancesSelector defines model for InstancesSelector.
func (InstancesSelector) AsInstancesSelector0 ¶
func (t InstancesSelector) AsInstancesSelector0() (InstancesSelector0, error)
AsInstancesSelector0 returns the union data inside the InstancesSelector as a InstancesSelector0
func (InstancesSelector) AsInstancesSelector1 ¶
func (t InstancesSelector) AsInstancesSelector1() (InstancesSelector1, error)
AsInstancesSelector1 returns the union data inside the InstancesSelector as a InstancesSelector1
func (InstancesSelector) AsInstancesSelector2 ¶
func (t InstancesSelector) AsInstancesSelector2() (InstancesSelector2, error)
AsInstancesSelector2 returns the union data inside the InstancesSelector as a InstancesSelector2
func (InstancesSelector) AsInstancesSelector3 ¶ added in v0.2.0
func (t InstancesSelector) AsInstancesSelector3() (InstancesSelector3, error)
AsInstancesSelector3 returns the union data inside the InstancesSelector as a InstancesSelector3
func (InstancesSelector) AsInstancesSelector4 ¶ added in v0.2.3
func (t InstancesSelector) AsInstancesSelector4() (InstancesSelector4, error)
AsInstancesSelector4 returns the union data inside the InstancesSelector as a InstancesSelector4
func (*InstancesSelector) FromInstancesSelector0 ¶
func (t *InstancesSelector) FromInstancesSelector0(v InstancesSelector0) error
FromInstancesSelector0 overwrites any union data inside the InstancesSelector as the provided InstancesSelector0
func (*InstancesSelector) FromInstancesSelector1 ¶
func (t *InstancesSelector) FromInstancesSelector1(v InstancesSelector1) error
FromInstancesSelector1 overwrites any union data inside the InstancesSelector as the provided InstancesSelector1
func (*InstancesSelector) FromInstancesSelector2 ¶
func (t *InstancesSelector) FromInstancesSelector2(v InstancesSelector2) error
FromInstancesSelector2 overwrites any union data inside the InstancesSelector as the provided InstancesSelector2
func (*InstancesSelector) FromInstancesSelector3 ¶ added in v0.2.0
func (t *InstancesSelector) FromInstancesSelector3(v InstancesSelector3) error
FromInstancesSelector3 overwrites any union data inside the InstancesSelector as the provided InstancesSelector3
func (*InstancesSelector) FromInstancesSelector4 ¶ added in v0.2.3
func (t *InstancesSelector) FromInstancesSelector4(v InstancesSelector4) error
FromInstancesSelector4 overwrites any union data inside the InstancesSelector as the provided InstancesSelector4
func (InstancesSelector) MarshalJSON ¶
func (t InstancesSelector) MarshalJSON() ([]byte, error)
func (*InstancesSelector) MergeInstancesSelector0 ¶
func (t *InstancesSelector) MergeInstancesSelector0(v InstancesSelector0) error
MergeInstancesSelector0 performs a merge with any union data inside the InstancesSelector, using the provided InstancesSelector0
func (*InstancesSelector) MergeInstancesSelector1 ¶
func (t *InstancesSelector) MergeInstancesSelector1(v InstancesSelector1) error
MergeInstancesSelector1 performs a merge with any union data inside the InstancesSelector, using the provided InstancesSelector1
func (*InstancesSelector) MergeInstancesSelector2 ¶
func (t *InstancesSelector) MergeInstancesSelector2(v InstancesSelector2) error
MergeInstancesSelector2 performs a merge with any union data inside the InstancesSelector, using the provided InstancesSelector2
func (*InstancesSelector) MergeInstancesSelector3 ¶ added in v0.2.0
func (t *InstancesSelector) MergeInstancesSelector3(v InstancesSelector3) error
MergeInstancesSelector3 performs a merge with any union data inside the InstancesSelector, using the provided InstancesSelector3
func (*InstancesSelector) MergeInstancesSelector4 ¶ added in v0.2.3
func (t *InstancesSelector) MergeInstancesSelector4(v InstancesSelector4) error
MergeInstancesSelector4 performs a merge with any union data inside the InstancesSelector, using the provided InstancesSelector4
func (*InstancesSelector) UnmarshalJSON ¶
func (t *InstancesSelector) UnmarshalJSON(b []byte) error
type InstancesSelector0 ¶
type InstancesSelector0 struct {
// ById List of instance IDs to retrieve information about
ById []string `json:"ById"`
}
InstancesSelector0 List of instance IDs to retrieve information about
type InstancesSelector1 ¶
type InstancesSelector1 struct {
// ByStatus Selector for filtering instances by status, with optional scope control.
ByStatus StatusSelector `json:"ByStatus"`
}
InstancesSelector1 Retrieve information about instances by status with optional scope
type InstancesSelector2 ¶
type InstancesSelector2 struct {
// ByClusterName Retrieve instances from a named cluster with optional scope
ByClusterName string `json:"ByClusterName"`
}
InstancesSelector2 Retrieve instances from a named cluster with optional scope
type InstancesSelector3 ¶ added in v0.2.0
type InstancesSelector3 struct {
// ByNodeId List all instances on a specific node (admin or provider root user only)
ByNodeId string `json:"ByNodeId"`
}
InstancesSelector3 List all instances on a specific node (admin or provider root user only)
type InstancesSelector4 ¶ added in v0.2.3
type InstancesSelector4 struct {
// ByUserId List all instances for a specific user (admin: all instances, provider: only instances on their nodes)
ByUserId string `json:"ByUserId"`
}
InstancesSelector4 List all instances for a specific user (admin: all instances, provider: only instances on their nodes)
type IpAvailability ¶ added in v0.2.0
type IpAvailability struct {
// PublicIps Whether public IPs are available in this datacenter
PublicIps bool `json:"public_ips"`
}
IpAvailability defines model for IpAvailability.
type KeyError ¶
type KeyError struct {
// Code Error code
Code string `json:"code"`
// Message Error message
Message string `json:"message"`
}
KeyError defines model for KeyError.
type KeyResult ¶
type KeyResult struct {
Error *KeyError `json:"error,omitempty"`
// Id API key ID
Id string `json:"id"`
Status KeyStatus `json:"status"`
}
KeyResult defines model for KeyResult.
type ListApiKeysJSONRequestBody ¶
type ListApiKeysJSONRequestBody = ListApiKeysRequestProto
ListApiKeysJSONRequestBody defines body for ListApiKeys for application/json ContentType.
type ListApiKeysRequestProto ¶
type ListApiKeysRequestProto struct {
Data struct {
Selector ApiKeySelector `json:"selector"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
ListApiKeysRequestProto defines model for ListApiKeysRequestProto.
type ListApiKeysResponse ¶
type ListApiKeysResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListApiKeysResponseProto
}
func ParseListApiKeysResponse ¶
func ParseListApiKeysResponse(rsp *http.Response) (*ListApiKeysResponse, error)
ParseListApiKeysResponse parses an HTTP response from a ListApiKeysWithResponse call
func (ListApiKeysResponse) Status ¶
func (r ListApiKeysResponse) Status() string
Status returns HTTPResponse.Status
func (ListApiKeysResponse) StatusCode ¶
func (r ListApiKeysResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListApiKeysResponseProto ¶
type ListApiKeysResponseProto struct {
Data struct {
// Keys List of the user API keys
Keys []ApiKey `json:"keys"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
ListApiKeysResponseProto defines model for ListApiKeysResponseProto.
type ListCapabilitiesResponse ¶ added in v0.2.0
type ListCapabilitiesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CapabilitiesResponseProto
}
func ParseListCapabilitiesResponse ¶ added in v0.2.0
func ParseListCapabilitiesResponse(rsp *http.Response) (*ListCapabilitiesResponse, error)
ParseListCapabilitiesResponse parses an HTTP response from a ListCapabilitiesWithResponse call
func (ListCapabilitiesResponse) Status ¶ added in v0.2.0
func (r ListCapabilitiesResponse) Status() string
Status returns HTTPResponse.Status
func (ListCapabilitiesResponse) StatusCode ¶ added in v0.2.0
func (r ListCapabilitiesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListInstanceTypesJSONRequestBody ¶
type ListInstanceTypesJSONRequestBody = ListInstanceTypesRequestProto
ListInstanceTypesJSONRequestBody defines body for ListInstanceTypes for application/json ContentType.
type ListInstanceTypesRequestProto ¶
type ListInstanceTypesRequestProto struct {
Data struct {
Selector *InstanceTypeSelector `json:"selector,omitempty"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
ListInstanceTypesRequestProto defines model for ListInstanceTypesRequestProto.
type ListInstanceTypesResponse ¶
type ListInstanceTypesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListInstanceTypesResponseProto
}
func ParseListInstanceTypesResponse ¶
func ParseListInstanceTypesResponse(rsp *http.Response) (*ListInstanceTypesResponse, error)
ParseListInstanceTypesResponse parses an HTTP response from a ListInstanceTypesWithResponse call
func (ListInstanceTypesResponse) Status ¶
func (r ListInstanceTypesResponse) Status() string
Status returns HTTPResponse.Status
func (ListInstanceTypesResponse) StatusCode ¶
func (r ListInstanceTypesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListInstanceTypesResponseProto ¶
type ListInstanceTypesResponseProto struct {
Data struct {
// InstanceTypes List of the instance types available for renting
InstanceTypes []InstanceType `json:"instance_types"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
ListInstanceTypesResponseProto defines model for ListInstanceTypesResponseProto.
type ListInstancesJSONRequestBody ¶
type ListInstancesJSONRequestBody = ListInstancesRequestProto
ListInstancesJSONRequestBody defines body for ListInstances for application/json ContentType.
type ListInstancesRequestProto ¶
type ListInstancesRequestProto struct {
// Data Same as `v058::ListInstancesRequest` but carrying `v061::InstanceInfoFlags`.
Data struct {
// Mask Same as `v058::InstanceInfoFlags` plus [`Self::with_credentials`].
Mask *InstanceInfoFlags `json:"mask,omitempty"`
Selector InstancesSelector `json:"selector"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
ListInstancesRequestProto defines model for ListInstancesRequestProto.
type ListInstancesResponse ¶
type ListInstancesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListInstancesResponseProto
}
func ParseListInstancesResponse ¶
func ParseListInstancesResponse(rsp *http.Response) (*ListInstancesResponse, error)
ParseListInstancesResponse parses an HTTP response from a ListInstancesWithResponse call
func (ListInstancesResponse) Status ¶
func (r ListInstancesResponse) Status() string
Status returns HTTPResponse.Status
func (ListInstancesResponse) StatusCode ¶
func (r ListInstancesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListInstancesResponseProto ¶
type ListInstancesResponseProto struct {
Data struct {
// Instances List of requested user instances, it might not contain all requested instances if some are not found or there was an error
Instances []InstanceAndUsageInfo `json:"instances"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
ListInstancesResponseProto defines model for ListInstancesResponseProto.
type ListNetworksJSONRequestBody ¶
type ListNetworksJSONRequestBody = ListNetworksRequestProto
ListNetworksJSONRequestBody defines body for ListNetworks for application/json ContentType.
type ListNetworksRequestProto ¶
type ListNetworksRequestProto struct {
Data struct {
Selector NetworkSelector `json:"selector"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
ListNetworksRequestProto defines model for ListNetworksRequestProto.
type ListNetworksResponse ¶
type ListNetworksResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListNetworksResponseProto
}
func ParseListNetworksResponse ¶
func ParseListNetworksResponse(rsp *http.Response) (*ListNetworksResponse, error)
ParseListNetworksResponse parses an HTTP response from a ListNetworksWithResponse call
func (ListNetworksResponse) Status ¶
func (r ListNetworksResponse) Status() string
Status returns HTTPResponse.Status
func (ListNetworksResponse) StatusCode ¶
func (r ListNetworksResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListNetworksResponseProto ¶
type ListNetworksResponseProto struct {
Data struct {
Networks []DatacenterNetworks `json:"networks"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
ListNetworksResponseProto defines model for ListNetworksResponseProto.
type ListNodesJSONRequestBody ¶ added in v0.2.0
type ListNodesJSONRequestBody = ListProviderNodesRequestProto
ListNodesJSONRequestBody defines body for ListNodes for application/json ContentType.
type ListNodesResponse ¶ added in v0.2.0
type ListNodesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListProviderNodesResponseProto
}
func ParseListNodesResponse ¶ added in v0.2.0
func ParseListNodesResponse(rsp *http.Response) (*ListNodesResponse, error)
ParseListNodesResponse parses an HTTP response from a ListNodesWithResponse call
func (ListNodesResponse) Status ¶ added in v0.2.0
func (r ListNodesResponse) Status() string
Status returns HTTPResponse.Status
func (ListNodesResponse) StatusCode ¶ added in v0.2.0
func (r ListNodesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListProviderNodesRequestProto ¶
type ListProviderNodesRequestProto struct {
Data struct {
Selector *ProviderSelector `json:"selector,omitempty"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
ListProviderNodesRequestProto defines model for ListProviderNodesRequestProto.
type ListProviderNodesResponseProto ¶
type ListProviderNodesResponseProto struct {
Data struct {
// Nodes List of the nodes available for renting
Nodes []ProviderNodeInfo `json:"nodes"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
ListProviderNodesResponseProto defines model for ListProviderNodesResponseProto.
type ListProvidersJSONRequestBody ¶
type ListProvidersJSONRequestBody = ListProvidersRequestProto
ListProvidersJSONRequestBody defines body for ListProviders for application/json ContentType.
type ListProvidersRequestProto ¶
type ListProvidersRequestProto struct {
Data struct {
Selector *ComputeProviderSelector `json:"selector,omitempty"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
ListProvidersRequestProto defines model for ListProvidersRequestProto.
type ListProvidersResponse ¶
type ListProvidersResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListProvidersResponseProto
}
func ParseListProvidersResponse ¶
func ParseListProvidersResponse(rsp *http.Response) (*ListProvidersResponse, error)
ParseListProvidersResponse parses an HTTP response from a ListProvidersWithResponse call
func (ListProvidersResponse) Status ¶
func (r ListProvidersResponse) Status() string
Status returns HTTPResponse.Status
func (ListProvidersResponse) StatusCode ¶
func (r ListProvidersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListProvidersResponseProto ¶
type ListProvidersResponseProto struct {
Data struct {
// Providers List of compute providers on the platform
Providers []ComputeProviderInfo `json:"providers"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
ListProvidersResponseProto defines model for ListProvidersResponseProto.
type ListRecipesResponse ¶
type ListRecipesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListRecipesResponseProto
}
func ParseListRecipesResponse ¶
func ParseListRecipesResponse(rsp *http.Response) (*ListRecipesResponse, error)
ParseListRecipesResponse parses an HTTP response from a ListRecipesWithResponse call
func (ListRecipesResponse) Status ¶
func (r ListRecipesResponse) Status() string
Status returns HTTPResponse.Status
func (ListRecipesResponse) StatusCode ¶
func (r ListRecipesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListRecipesResponseProto ¶
type ListRecipesResponseProto struct {
Data struct {
// Groups List of the recipe groups available for renting
Groups []RecipeGroup `json:"groups"`
// OtherRecipes List of all recipes without any group assigned
OtherRecipes []Recipe `json:"other_recipes"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
ListRecipesResponseProto defines model for ListRecipesResponseProto.
type ListReservationTypesResponse ¶
type ListReservationTypesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]ListReservationTypesResponseProto
}
func ParseListReservationTypesResponse ¶
func ParseListReservationTypesResponse(rsp *http.Response) (*ListReservationTypesResponse, error)
ParseListReservationTypesResponse parses an HTTP response from a ListReservationTypesWithResponse call
func (ListReservationTypesResponse) Status ¶
func (r ListReservationTypesResponse) Status() string
Status returns HTTPResponse.Status
func (ListReservationTypesResponse) StatusCode ¶
func (r ListReservationTypesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListReservationTypesResponseProto ¶
type ListReservationTypesResponseProto struct {
Data struct {
ReservationTypes []ReservationType `json:"reservation_types"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
ListReservationTypesResponseProto defines model for ListReservationTypesResponseProto.
type ListReservationsJSONRequestBody ¶
type ListReservationsJSONRequestBody = ListReservationsRequestProto
ListReservationsJSONRequestBody defines body for ListReservations for application/json ContentType.
type ListReservationsRequestProto ¶
type ListReservationsRequestProto struct {
Data struct {
Selector *ReservationSelector `json:"selector,omitempty"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
ListReservationsRequestProto defines model for ListReservationsRequestProto.
type ListReservationsResponse ¶
type ListReservationsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListReservationsResponseProto
}
func ParseListReservationsResponse ¶
func ParseListReservationsResponse(rsp *http.Response) (*ListReservationsResponse, error)
ParseListReservationsResponse parses an HTTP response from a ListReservationsWithResponse call
func (ListReservationsResponse) Status ¶
func (r ListReservationsResponse) Status() string
Status returns HTTPResponse.Status
func (ListReservationsResponse) StatusCode ¶
func (r ListReservationsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListReservationsResponseProto ¶
type ListReservationsResponseProto struct {
Data struct {
Reservations []Reservation `json:"reservations"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
ListReservationsResponseProto defines model for ListReservationsResponseProto.
type ListSavedEnvironmentsJSONRequestBody ¶ added in v0.2.7
type ListSavedEnvironmentsJSONRequestBody = ListSavedEnvironmentsRequestProto
ListSavedEnvironmentsJSONRequestBody defines body for ListSavedEnvironments for application/json ContentType.
type ListSavedEnvironmentsRequestProto ¶ added in v0.2.7
type ListSavedEnvironmentsRequestProto struct {
Data struct {
// TeamId Scope the listing to a team the caller belongs to; omit for the
// caller's own environments.
TeamId *string `json:"team_id"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
ListSavedEnvironmentsRequestProto defines model for ListSavedEnvironmentsRequestProto.
type ListSavedEnvironmentsResponse ¶ added in v0.2.7
type ListSavedEnvironmentsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListSavedEnvironmentsResponseProto
}
func ParseListSavedEnvironmentsResponse ¶ added in v0.2.7
func ParseListSavedEnvironmentsResponse(rsp *http.Response) (*ListSavedEnvironmentsResponse, error)
ParseListSavedEnvironmentsResponse parses an HTTP response from a ListSavedEnvironmentsWithResponse call
func (ListSavedEnvironmentsResponse) Status ¶ added in v0.2.7
func (r ListSavedEnvironmentsResponse) Status() string
Status returns HTTPResponse.Status
func (ListSavedEnvironmentsResponse) StatusCode ¶ added in v0.2.7
func (r ListSavedEnvironmentsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSavedEnvironmentsResponseProto ¶ added in v0.2.7
type ListSavedEnvironmentsResponseProto struct {
Data struct {
SavedEnvironments []SavedEnvironment `json:"saved_environments"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
ListSavedEnvironmentsResponseProto defines model for ListSavedEnvironmentsResponseProto.
type ListSshKeysResponse ¶
type ListSshKeysResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListSshKeysResponseProto
}
func ParseListSshKeysResponse ¶
func ParseListSshKeysResponse(rsp *http.Response) (*ListSshKeysResponse, error)
ParseListSshKeysResponse parses an HTTP response from a ListSshKeysWithResponse call
func (ListSshKeysResponse) Status ¶
func (r ListSshKeysResponse) Status() string
Status returns HTTPResponse.Status
func (ListSshKeysResponse) StatusCode ¶
func (r ListSshKeysResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSshKeysResponseProto ¶
type ListSshKeysResponseProto struct {
Data struct {
// Keys List of the SSH keys available for renting
Keys []SshKey `json:"keys"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
ListSshKeysResponseProto defines model for ListSshKeysResponseProto.
type ListTeamsJSONRequestBody ¶ added in v0.2.3
type ListTeamsJSONRequestBody = ListTeamsRequestProto
ListTeamsJSONRequestBody defines body for ListTeams for application/json ContentType.
type ListTeamsRequestProto ¶ added in v0.2.3
type ListTeamsRequestProto struct {
Data struct {
// Selector Selector for the unified teams/list endpoint.
Selector *TeamListSelector `json:"selector,omitempty"`
// WithAccountInfo Include account/financial info (admin/provider).
WithAccountInfo *bool `json:"with_account_info,omitempty"`
// WithMembers Include team members in the response.
WithMembers *bool `json:"with_members,omitempty"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
ListTeamsRequestProto defines model for ListTeamsRequestProto.
type ListTeamsResponse ¶
type ListTeamsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListTeamsResponseProto
}
func ParseListTeamsResponse ¶
func ParseListTeamsResponse(rsp *http.Response) (*ListTeamsResponse, error)
ParseListTeamsResponse parses an HTTP response from a ListTeamsWithResponse call
func (ListTeamsResponse) Status ¶
func (r ListTeamsResponse) Status() string
Status returns HTTPResponse.Status
func (ListTeamsResponse) StatusCode ¶
func (r ListTeamsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListTeamsResponseProto ¶
type ListTeamsResponseProto struct {
Data struct {
Teams []TeamInfo `json:"teams"`
// Total Total number of teams matching the selector.
Total int32 `json:"total"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
ListTeamsResponseProto defines model for ListTeamsResponseProto.
type ListTransactionsResponse ¶
type ListTransactionsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *TransactionArrayProto
}
func ParseListTransactionsResponse ¶
func ParseListTransactionsResponse(rsp *http.Response) (*ListTransactionsResponse, error)
ParseListTransactionsResponse parses an HTTP response from a ListTransactionsWithResponse call
func (ListTransactionsResponse) Status ¶
func (r ListTransactionsResponse) Status() string
Status returns HTTPResponse.Status
func (ListTransactionsResponse) StatusCode ¶
func (r ListTransactionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListUsersJSONRequestBody ¶ added in v0.2.3
type ListUsersJSONRequestBody = ListUsersRequestProto
ListUsersJSONRequestBody defines body for ListUsers for application/json ContentType.
type ListUsersRequestProto ¶ added in v0.2.3
type ListUsersRequestProto struct {
Data struct {
Selector UserSelector `json:"selector"`
// WithAccountInfo Include account/financial info (admin/provider).
WithAccountInfo *bool `json:"with_account_info,omitempty"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
ListUsersRequestProto defines model for ListUsersRequestProto.
type ListUsersResponse ¶ added in v0.2.3
type ListUsersResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListUsersResponseProto
}
func ParseListUsersResponse ¶ added in v0.2.3
func ParseListUsersResponse(rsp *http.Response) (*ListUsersResponse, error)
ParseListUsersResponse parses an HTTP response from a ListUsersWithResponse call
func (ListUsersResponse) Status ¶ added in v0.2.3
func (r ListUsersResponse) Status() string
Status returns HTTPResponse.Status
func (ListUsersResponse) StatusCode ¶ added in v0.2.3
func (r ListUsersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListUsersResponseProto ¶ added in v0.2.3
type ListUsersResponseProto struct {
Data struct {
// Total Total number of users matching the selector.
Total int32 `json:"total"`
Users []UserInfo `json:"users"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
ListUsersResponseProto defines model for ListUsersResponseProto.
type ListVolumesJSONRequestBody ¶ added in v0.2.0
type ListVolumesJSONRequestBody = ListVolumesRequestProto
ListVolumesJSONRequestBody defines body for ListVolumes for application/json ContentType.
type ListVolumesRequestProto ¶ added in v0.2.0
type ListVolumesRequestProto struct {
Data struct {
Selector VolumeSelector `json:"selector"`
// TeamId Team ID to list team volumes
TeamId *string `json:"team_id"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
ListVolumesRequestProto defines model for ListVolumesRequestProto.
type ListVolumesResponse ¶ added in v0.2.0
type ListVolumesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListVolumesResponseProto
}
func ParseListVolumesResponse ¶ added in v0.2.0
func ParseListVolumesResponse(rsp *http.Response) (*ListVolumesResponse, error)
ParseListVolumesResponse parses an HTTP response from a ListVolumesWithResponse call
func (ListVolumesResponse) Status ¶ added in v0.2.0
func (r ListVolumesResponse) Status() string
Status returns HTTPResponse.Status
func (ListVolumesResponse) StatusCode ¶ added in v0.2.0
func (r ListVolumesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListVolumesResponseProto ¶ added in v0.2.0
type ListVolumesResponseProto struct {
Data struct {
// Volumes List of volumes
Volumes []VolumeInfo `json:"volumes"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
ListVolumesResponseProto defines model for ListVolumesResponseProto.
type LoginJSONRequestBody ¶
type LoginJSONRequestBody = LoginUserRequestProto
LoginJSONRequestBody defines body for Login for application/json ContentType.
type LoginResponse ¶
type LoginResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *LoginUserResponseProto
}
func ParseLoginResponse ¶
func ParseLoginResponse(rsp *http.Response) (*LoginResponse, error)
ParseLoginResponse parses an HTTP response from a LoginWithResponse call
func (LoginResponse) Status ¶
func (r LoginResponse) Status() string
Status returns HTTPResponse.Status
func (LoginResponse) StatusCode ¶
func (r LoginResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type LoginUserRequestProto ¶
type LoginUserRequestProto struct {
Data struct {
// Email User email
Email string `json:"email"`
// Password User password
Password string `json:"password"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
LoginUserRequestProto defines model for LoginUserRequestProto.
type LoginUserResponseProto ¶
type LoginUserResponseProto struct {
Data struct {
// Token Token for authentication to be used in the Authorization header
Token string `json:"token"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
LoginUserResponseProto defines model for LoginUserResponseProto.
type LogoutResponse ¶
func ParseLogoutResponse ¶
func ParseLogoutResponse(rsp *http.Response) (*LogoutResponse, error)
ParseLogoutResponse parses an HTTP response from a LogoutWithResponse call
func (LogoutResponse) Status ¶
func (r LogoutResponse) Status() string
Status returns HTTPResponse.Status
func (LogoutResponse) StatusCode ¶
func (r LogoutResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type MeResponse ¶ added in v0.2.0
type MeResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *MeResponseProto
}
func ParseMeResponse ¶ added in v0.2.0
func ParseMeResponse(rsp *http.Response) (*MeResponse, error)
ParseMeResponse parses an HTTP response from a MeWithResponse call
func (MeResponse) Status ¶ added in v0.2.0
func (r MeResponse) Status() string
Status returns HTTPResponse.Status
func (MeResponse) StatusCode ¶ added in v0.2.0
func (r MeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type MeResponseProto ¶ added in v0.2.0
type MeResponseProto struct {
Data struct {
// Email user email
Email string `json:"email"`
// Id user ID
Id string `json:"id"`
// Name user name
Name *string `json:"name"`
// Provider authentication provider: "CloudRift", "Google", or "GitHub"
Provider string `json:"provider"`
// TotpEnabled whether TOTP 2FA is enabled
TotpEnabled bool `json:"totp_enabled"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
MeResponseProto defines model for MeResponseProto.
type NetworkExecutorInfo ¶ added in v0.2.0
type NetworkExecutorInfo struct {
Id string `json:"id"`
Ip string `json:"ip"`
// OwnerEmail Owner (node user) email
OwnerEmail string `json:"owner_email"`
}
NetworkExecutorInfo defines model for NetworkExecutorInfo.
type NetworkInfo ¶ added in v0.2.0
type NetworkInfo struct {
Executors *[]NetworkExecutorInfo `json:"executors,omitempty"`
Gateway *string `json:"gateway"`
Id *string `json:"id"`
Iface *string `json:"iface"`
IpRanges *[]NetworkIpRange `json:"ip_ranges,omitempty"`
Name string `json:"name"`
Netmask *int32 `json:"netmask"`
ServerAddress *string `json:"server_address"`
TeamId *string `json:"team_id"`
TeamName *string `json:"team_name"`
}
NetworkInfo defines model for NetworkInfo.
type NetworkIpRange ¶
type NetworkIpRange struct {
// ExternalFrom Optional external start mapped 1:1 to [from, to]
ExternalFrom *string `json:"external_from"`
// ExternalTo Optional external range end mapped 1:1 to [from, to]
ExternalTo *string `json:"external_to"`
// From Minimum IP address (inclusive)
From string `json:"from"`
// To Maximum IP address (inclusive)
To string `json:"to"`
}
NetworkIpRange defines model for NetworkIpRange.
type NetworkSelector ¶
type NetworkSelector struct {
// contains filtered or unexported fields
}
NetworkSelector defines model for NetworkSelector.
func (NetworkSelector) AsNetworkSelector0 ¶
func (t NetworkSelector) AsNetworkSelector0() (NetworkSelector0, error)
AsNetworkSelector0 returns the union data inside the NetworkSelector as a NetworkSelector0
func (NetworkSelector) AsNetworkSelector1 ¶ added in v0.2.0
func (t NetworkSelector) AsNetworkSelector1() (NetworkSelector1, error)
AsNetworkSelector1 returns the union data inside the NetworkSelector as a NetworkSelector1
func (NetworkSelector) AsNetworkSelector2 ¶ added in v0.2.0
func (t NetworkSelector) AsNetworkSelector2() (NetworkSelector2, error)
AsNetworkSelector2 returns the union data inside the NetworkSelector as a NetworkSelector2
func (NetworkSelector) AsNetworkSelector3 ¶ added in v0.2.0
func (t NetworkSelector) AsNetworkSelector3() (NetworkSelector3, error)
AsNetworkSelector3 returns the union data inside the NetworkSelector as a NetworkSelector3
func (*NetworkSelector) FromNetworkSelector0 ¶
func (t *NetworkSelector) FromNetworkSelector0(v NetworkSelector0) error
FromNetworkSelector0 overwrites any union data inside the NetworkSelector as the provided NetworkSelector0
func (*NetworkSelector) FromNetworkSelector1 ¶ added in v0.2.0
func (t *NetworkSelector) FromNetworkSelector1(v NetworkSelector1) error
FromNetworkSelector1 overwrites any union data inside the NetworkSelector as the provided NetworkSelector1
func (*NetworkSelector) FromNetworkSelector2 ¶ added in v0.2.0
func (t *NetworkSelector) FromNetworkSelector2(v NetworkSelector2) error
FromNetworkSelector2 overwrites any union data inside the NetworkSelector as the provided NetworkSelector2
func (*NetworkSelector) FromNetworkSelector3 ¶ added in v0.2.0
func (t *NetworkSelector) FromNetworkSelector3(v NetworkSelector3) error
FromNetworkSelector3 overwrites any union data inside the NetworkSelector as the provided NetworkSelector3
func (NetworkSelector) MarshalJSON ¶
func (t NetworkSelector) MarshalJSON() ([]byte, error)
func (*NetworkSelector) MergeNetworkSelector0 ¶
func (t *NetworkSelector) MergeNetworkSelector0(v NetworkSelector0) error
MergeNetworkSelector0 performs a merge with any union data inside the NetworkSelector, using the provided NetworkSelector0
func (*NetworkSelector) MergeNetworkSelector1 ¶ added in v0.2.0
func (t *NetworkSelector) MergeNetworkSelector1(v NetworkSelector1) error
MergeNetworkSelector1 performs a merge with any union data inside the NetworkSelector, using the provided NetworkSelector1
func (*NetworkSelector) MergeNetworkSelector2 ¶ added in v0.2.0
func (t *NetworkSelector) MergeNetworkSelector2(v NetworkSelector2) error
MergeNetworkSelector2 performs a merge with any union data inside the NetworkSelector, using the provided NetworkSelector2
func (*NetworkSelector) MergeNetworkSelector3 ¶ added in v0.2.0
func (t *NetworkSelector) MergeNetworkSelector3(v NetworkSelector3) error
MergeNetworkSelector3 performs a merge with any union data inside the NetworkSelector, using the provided NetworkSelector3
func (*NetworkSelector) UnmarshalJSON ¶
func (t *NetworkSelector) UnmarshalJSON(b []byte) error
type NetworkSelector0 ¶
type NetworkSelector0 struct {
// ByDataCenter Retrieve networks in specific datacenters
ByDataCenter []string `json:"ByDataCenter"`
}
NetworkSelector0 Retrieve networks in specific datacenters
type NetworkSelector1 ¶ added in v0.2.0
type NetworkSelector1 string
NetworkSelector1 Retrieve all networks (admin: all in DB, provider: all in owned datacenters)
const (
NetworkSelector1All NetworkSelector1 = "All"
)
Defines values for NetworkSelector1.
type NetworkSelector2 ¶ added in v0.2.0
type NetworkSelector2 struct {
// ByTeamId Retrieve networks for a specific team
ByTeamId string `json:"ByTeamId"`
}
NetworkSelector2 Retrieve networks for a specific team
type NetworkSelector3 ¶ added in v0.2.0
type NetworkSelector3 struct {
// ByProvider Retrieve networks for a specific provider (by provider name)
ByProvider string `json:"ByProvider"`
}
NetworkSelector3 Retrieve networks for a specific provider (by provider name)
type NodeAdminSelector ¶ added in v0.2.3
type NodeAdminSelector struct {
// contains filtered or unexported fields
}
NodeAdminSelector Selector for node admin operations (drain, delete, marketplace listing toggle, etc.)
func (NodeAdminSelector) AsNodeAdminSelector0 ¶ added in v0.2.3
func (t NodeAdminSelector) AsNodeAdminSelector0() (NodeAdminSelector0, error)
AsNodeAdminSelector0 returns the union data inside the NodeAdminSelector as a NodeAdminSelector0
func (*NodeAdminSelector) FromNodeAdminSelector0 ¶ added in v0.2.3
func (t *NodeAdminSelector) FromNodeAdminSelector0(v NodeAdminSelector0) error
FromNodeAdminSelector0 overwrites any union data inside the NodeAdminSelector as the provided NodeAdminSelector0
func (NodeAdminSelector) MarshalJSON ¶ added in v0.2.3
func (t NodeAdminSelector) MarshalJSON() ([]byte, error)
func (*NodeAdminSelector) MergeNodeAdminSelector0 ¶ added in v0.2.3
func (t *NodeAdminSelector) MergeNodeAdminSelector0(v NodeAdminSelector0) error
MergeNodeAdminSelector0 performs a merge with any union data inside the NodeAdminSelector, using the provided NodeAdminSelector0
func (*NodeAdminSelector) UnmarshalJSON ¶ added in v0.2.3
func (t *NodeAdminSelector) UnmarshalJSON(b []byte) error
type NodeAdminSelector0 ¶ added in v0.2.3
type NodeAdminSelector0 struct {
// ById Select nodes by ID
ById []string `json:"ById"`
}
NodeAdminSelector0 Select nodes by ID
type NodeDrainInfo ¶ added in v0.2.0
type NodeDrainInfo struct {
// GracePeriodSecs Grace period in seconds
GracePeriodSecs *int64 `json:"grace_period_secs"`
// NotificationSent Whether notification was sent to users
NotificationSent bool `json:"notification_sent"`
// Reason Optional reason for the drain
Reason *string `json:"reason"`
// ScheduledStopAt When instances will be terminated (started_at + grace_period)
ScheduledStopAt *string `json:"scheduled_stop_at"`
// StartedAt When the drain was started
StartedAt *string `json:"started_at"`
// State State of node draining process
State NodeDrainState `json:"state"`
}
NodeDrainInfo Information about the drain state of a node
type NodeDrainResult ¶ added in v0.2.0
type NodeDrainResult struct {
// ActiveInstanceCount Number of active (non-root) instances on this node
ActiveInstanceCount int32 `json:"active_instance_count"`
// DrainInfo Information about the drain state of a node
DrainInfo NodeDrainInfo `json:"drain_info"`
NodeId string `json:"node_id"`
// UsersNotified Number of users notified via email
UsersNotified int32 `json:"users_notified"`
}
NodeDrainResult Result of draining a single node
type NodeDrainState ¶ added in v0.2.0
type NodeDrainState string
NodeDrainState State of node draining process
const ( NodeDrainStateDrained NodeDrainState = "Drained" NodeDrainStateDraining NodeDrainState = "Draining" NodeDrainStateNone NodeDrainState = "None" )
Defines values for NodeDrainState.
type NodeForceDrainResult ¶ added in v0.2.0
type NodeForceDrainResult struct {
// InstancesTerminated Number of instances that were terminated
InstancesTerminated int32 `json:"instances_terminated"`
NodeId string `json:"node_id"`
}
NodeForceDrainResult Result of force draining a single node
type NodeHealthStatus ¶ added in v0.2.0
type NodeHealthStatus struct {
// contains filtered or unexported fields
}
NodeHealthStatus defines model for NodeHealthStatus.
func (NodeHealthStatus) AsNodeHealthStatus0 ¶ added in v0.2.0
func (t NodeHealthStatus) AsNodeHealthStatus0() (NodeHealthStatus0, error)
AsNodeHealthStatus0 returns the union data inside the NodeHealthStatus as a NodeHealthStatus0
func (NodeHealthStatus) AsNodeHealthStatus1 ¶ added in v0.2.0
func (t NodeHealthStatus) AsNodeHealthStatus1() (NodeHealthStatus1, error)
AsNodeHealthStatus1 returns the union data inside the NodeHealthStatus as a NodeHealthStatus1
func (*NodeHealthStatus) FromNodeHealthStatus0 ¶ added in v0.2.0
func (t *NodeHealthStatus) FromNodeHealthStatus0(v NodeHealthStatus0) error
FromNodeHealthStatus0 overwrites any union data inside the NodeHealthStatus as the provided NodeHealthStatus0
func (*NodeHealthStatus) FromNodeHealthStatus1 ¶ added in v0.2.0
func (t *NodeHealthStatus) FromNodeHealthStatus1(v NodeHealthStatus1) error
FromNodeHealthStatus1 overwrites any union data inside the NodeHealthStatus as the provided NodeHealthStatus1
func (NodeHealthStatus) MarshalJSON ¶ added in v0.2.0
func (t NodeHealthStatus) MarshalJSON() ([]byte, error)
func (*NodeHealthStatus) MergeNodeHealthStatus0 ¶ added in v0.2.0
func (t *NodeHealthStatus) MergeNodeHealthStatus0(v NodeHealthStatus0) error
MergeNodeHealthStatus0 performs a merge with any union data inside the NodeHealthStatus, using the provided NodeHealthStatus0
func (*NodeHealthStatus) MergeNodeHealthStatus1 ¶ added in v0.2.0
func (t *NodeHealthStatus) MergeNodeHealthStatus1(v NodeHealthStatus1) error
MergeNodeHealthStatus1 performs a merge with any union data inside the NodeHealthStatus, using the provided NodeHealthStatus1
func (*NodeHealthStatus) UnmarshalJSON ¶ added in v0.2.0
func (t *NodeHealthStatus) UnmarshalJSON(b []byte) error
type NodeHealthStatus0 ¶ added in v0.2.0
type NodeHealthStatus0 string
NodeHealthStatus0 defines model for NodeHealthStatus.0.
const (
Healthy NodeHealthStatus0 = "Healthy"
)
Defines values for NodeHealthStatus0.
type NodeHealthStatus1 ¶ added in v0.2.0
type NodeHealthStatus1 struct {
Unhealthy struct {
ErrorCode string `json:"error_code"`
ErrorMessage string `json:"error_message"`
LastHealthyAt string `json:"last_healthy_at"`
} `json:"Unhealthy"`
}
NodeHealthStatus1 defines model for .
type NodeMemory ¶ added in v0.2.7
type NodeMemory struct {
// MemoryKb Memory assigned to the guest cell on this host node, in KiB
MemoryKb int64 `json:"memory_kb"`
// NodeId Host NUMA node id
NodeId int32 `json:"node_id"`
}
NodeMemory Explicit memory assignment for one host NUMA node in a manual NUMA configuration. Only needed for a deliberately non-proportional split.
type NodeMetrics ¶ added in v0.2.3
type NodeMetrics struct {
Gpus []GpuMetrics `json:"gpus"`
NodeId string `json:"node_id"`
}
NodeMetrics Hardware metrics for a single node
type NodeMetricsByIdResponse ¶ added in v0.2.3
type NodeMetricsByIdResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *NodeMetricsResponseProto
}
func ParseNodeMetricsByIdResponse ¶ added in v0.2.3
func ParseNodeMetricsByIdResponse(rsp *http.Response) (*NodeMetricsByIdResponse, error)
ParseNodeMetricsByIdResponse parses an HTTP response from a NodeMetricsByIdWithResponse call
func (NodeMetricsByIdResponse) Status ¶ added in v0.2.3
func (r NodeMetricsByIdResponse) Status() string
Status returns HTTPResponse.Status
func (NodeMetricsByIdResponse) StatusCode ¶ added in v0.2.3
func (r NodeMetricsByIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type NodeMetricsJSONRequestBody ¶ added in v0.2.3
type NodeMetricsJSONRequestBody = NodeMetricsRequestProto
NodeMetricsJSONRequestBody defines body for NodeMetrics for application/json ContentType.
type NodeMetricsRequestProto ¶ added in v0.2.3
type NodeMetricsRequestProto struct {
// Data Request to fetch hardware metrics for nodes
Data struct {
// Selector Selector for which nodes to query metrics for
Selector NodeMetricsSelector `json:"selector"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
NodeMetricsRequestProto defines model for NodeMetricsRequestProto.
type NodeMetricsResponse ¶ added in v0.2.3
type NodeMetricsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *NodeMetricsResponseProto
}
func ParseNodeMetricsResponse ¶ added in v0.2.3
func ParseNodeMetricsResponse(rsp *http.Response) (*NodeMetricsResponse, error)
ParseNodeMetricsResponse parses an HTTP response from a NodeMetricsWithResponse call
func (NodeMetricsResponse) Status ¶ added in v0.2.3
func (r NodeMetricsResponse) Status() string
Status returns HTTPResponse.Status
func (NodeMetricsResponse) StatusCode ¶ added in v0.2.3
func (r NodeMetricsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type NodeMetricsResponseProto ¶ added in v0.2.3
type NodeMetricsResponseProto struct {
// Data Response containing node metrics
Data struct {
Metrics []NodeMetrics `json:"metrics"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
NodeMetricsResponseProto defines model for NodeMetricsResponseProto.
type NodeMetricsSelector ¶ added in v0.2.3
type NodeMetricsSelector struct {
// contains filtered or unexported fields
}
NodeMetricsSelector Selector for which nodes to query metrics for
func (NodeMetricsSelector) AsNodeMetricsSelector0 ¶ added in v0.2.3
func (t NodeMetricsSelector) AsNodeMetricsSelector0() (NodeMetricsSelector0, error)
AsNodeMetricsSelector0 returns the union data inside the NodeMetricsSelector as a NodeMetricsSelector0
func (*NodeMetricsSelector) FromNodeMetricsSelector0 ¶ added in v0.2.3
func (t *NodeMetricsSelector) FromNodeMetricsSelector0(v NodeMetricsSelector0) error
FromNodeMetricsSelector0 overwrites any union data inside the NodeMetricsSelector as the provided NodeMetricsSelector0
func (NodeMetricsSelector) MarshalJSON ¶ added in v0.2.3
func (t NodeMetricsSelector) MarshalJSON() ([]byte, error)
func (*NodeMetricsSelector) MergeNodeMetricsSelector0 ¶ added in v0.2.3
func (t *NodeMetricsSelector) MergeNodeMetricsSelector0(v NodeMetricsSelector0) error
MergeNodeMetricsSelector0 performs a merge with any union data inside the NodeMetricsSelector, using the provided NodeMetricsSelector0
func (*NodeMetricsSelector) UnmarshalJSON ¶ added in v0.2.3
func (t *NodeMetricsSelector) UnmarshalJSON(b []byte) error
type NodeMetricsSelector0 ¶ added in v0.2.3
type NodeMetricsSelector0 struct {
// ById Select nodes by ID
ById []string `json:"ById"`
}
NodeMetricsSelector0 Select nodes by ID
type NodeSelector ¶
type NodeSelector struct {
// contains filtered or unexported fields
}
NodeSelector defines model for NodeSelector.
func (NodeSelector) AsNodeSelector0 ¶
func (t NodeSelector) AsNodeSelector0() (NodeSelector0, error)
AsNodeSelector0 returns the union data inside the NodeSelector as a NodeSelector0
func (NodeSelector) AsNodeSelector1 ¶
func (t NodeSelector) AsNodeSelector1() (NodeSelector1, error)
AsNodeSelector1 returns the union data inside the NodeSelector as a NodeSelector1
func (NodeSelector) AsNodeSelector2 ¶ added in v0.2.4
func (t NodeSelector) AsNodeSelector2() (NodeSelector2, error)
AsNodeSelector2 returns the union data inside the NodeSelector as a NodeSelector2
func (*NodeSelector) FromNodeSelector0 ¶
func (t *NodeSelector) FromNodeSelector0(v NodeSelector0) error
FromNodeSelector0 overwrites any union data inside the NodeSelector as the provided NodeSelector0
func (*NodeSelector) FromNodeSelector1 ¶
func (t *NodeSelector) FromNodeSelector1(v NodeSelector1) error
FromNodeSelector1 overwrites any union data inside the NodeSelector as the provided NodeSelector1
func (*NodeSelector) FromNodeSelector2 ¶ added in v0.2.4
func (t *NodeSelector) FromNodeSelector2(v NodeSelector2) error
FromNodeSelector2 overwrites any union data inside the NodeSelector as the provided NodeSelector2
func (NodeSelector) MarshalJSON ¶
func (t NodeSelector) MarshalJSON() ([]byte, error)
func (*NodeSelector) MergeNodeSelector0 ¶
func (t *NodeSelector) MergeNodeSelector0(v NodeSelector0) error
MergeNodeSelector0 performs a merge with any union data inside the NodeSelector, using the provided NodeSelector0
func (*NodeSelector) MergeNodeSelector1 ¶
func (t *NodeSelector) MergeNodeSelector1(v NodeSelector1) error
MergeNodeSelector1 performs a merge with any union data inside the NodeSelector, using the provided NodeSelector1
func (*NodeSelector) MergeNodeSelector2 ¶ added in v0.2.4
func (t *NodeSelector) MergeNodeSelector2(v NodeSelector2) error
MergeNodeSelector2 performs a merge with any union data inside the NodeSelector, using the provided NodeSelector2
func (*NodeSelector) UnmarshalJSON ¶
func (t *NodeSelector) UnmarshalJSON(b []byte) error
type NodeSelector0 ¶
type NodeSelector0 struct {
ByInstanceTypeAndLocation struct {
// Datacenters Locations where we can allocate requested instance
Datacenters *[]string `json:"datacenters"`
// InstanceType Instance type to rent
InstanceType string `json:"instance_type"`
} `json:"ByInstanceTypeAndLocation"`
}
NodeSelector0 defines model for .
type NodeSelector1 ¶
type NodeSelector1 struct {
ByNodeId struct {
// InstanceType Instance type to rent
InstanceType string `json:"instance_type"`
// NodeId Node ID to rent
NodeId string `json:"node_id"`
} `json:"ByNodeId"`
}
NodeSelector1 defines model for .
type NodeSelector2 ¶ added in v0.2.4
type NodeSelector2 struct {
// ByNodeWithResources Rent a custom off-catalog configuration on a specific node. Requires
// `allow_custom_instances` enabled and operator role (admin or the
// node's provider); a quota holder may use it on their own allocated node.
ByNodeWithResources struct {
// NodeId Node ID to rent on
NodeId string `json:"node_id"`
// Resources Raw hardware resources for a custom (off-catalog) rental. `dram`/`disk`
// are in bytes; `vcpu` is the guest vCPU count; `gpu = 0` is CPU-only.
Resources ResourceSpec `json:"resources"`
} `json:"ByNodeWithResources"`
}
NodeSelector2 Rent a custom off-catalog configuration on a specific node. Requires `allow_custom_instances` enabled and operator role (admin or the node's provider); a quota holder may use it on their own allocated node.
type NodeStatus ¶
type NodeStatus string
NodeStatus defines model for NodeStatus.
const ( Hibernated NodeStatus = "Hibernated" NotResponding NodeStatus = "NotResponding" Offline NodeStatus = "Offline" Ready NodeStatus = "Ready" )
Defines values for NodeStatus.
type PasswordResetRequestProto ¶
type PasswordResetRequestProto struct {
Data struct {
// NewPassword New password
NewPassword string `json:"new_password"`
// Token Password reset token received in the email
Token string `json:"token"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
PasswordResetRequestProto defines model for PasswordResetRequestProto.
type PasswordResetVerifyRequestProto ¶
type PasswordResetVerifyRequestProto struct {
Data struct {
// Email Email to send the password reset token
Email string `json:"email"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
PasswordResetVerifyRequestProto defines model for PasswordResetVerifyRequestProto.
type PauseInstancesRequestProto ¶ added in v0.2.3
type PauseInstancesRequestProto struct {
Data struct {
Selector InstancesSelector `json:"selector"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
PauseInstancesRequestProto defines model for PauseInstancesRequestProto.
type PauseVmJSONRequestBody ¶ added in v0.2.3
type PauseVmJSONRequestBody = PauseInstancesRequestProto
PauseVmJSONRequestBody defines body for PauseVm for application/json ContentType.
type PauseVmResponse ¶ added in v0.2.3
func ParsePauseVmResponse ¶ added in v0.2.3
func ParsePauseVmResponse(rsp *http.Response) (*PauseVmResponse, error)
ParsePauseVmResponse parses an HTTP response from a PauseVmWithResponse call
func (PauseVmResponse) Status ¶ added in v0.2.3
func (r PauseVmResponse) Status() string
Status returns HTTPResponse.Status
func (PauseVmResponse) StatusCode ¶ added in v0.2.3
func (r PauseVmResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Principal ¶ added in v0.2.7
type Principal struct {
// contains filtered or unexported fields
}
Principal Resolved holder of an allocation.
func (Principal) AsPrincipal0 ¶ added in v0.2.7
func (t Principal) AsPrincipal0() (Principal0, error)
AsPrincipal0 returns the union data inside the Principal as a Principal0
func (Principal) AsPrincipal1 ¶ added in v0.2.7
func (t Principal) AsPrincipal1() (Principal1, error)
AsPrincipal1 returns the union data inside the Principal as a Principal1
func (*Principal) FromPrincipal0 ¶ added in v0.2.7
func (t *Principal) FromPrincipal0(v Principal0) error
FromPrincipal0 overwrites any union data inside the Principal as the provided Principal0
func (*Principal) FromPrincipal1 ¶ added in v0.2.7
func (t *Principal) FromPrincipal1(v Principal1) error
FromPrincipal1 overwrites any union data inside the Principal as the provided Principal1
func (Principal) MarshalJSON ¶ added in v0.2.7
func (*Principal) MergePrincipal0 ¶ added in v0.2.7
func (t *Principal) MergePrincipal0(v Principal0) error
MergePrincipal0 performs a merge with any union data inside the Principal, using the provided Principal0
func (*Principal) MergePrincipal1 ¶ added in v0.2.7
func (t *Principal) MergePrincipal1(v Principal1) error
MergePrincipal1 performs a merge with any union data inside the Principal, using the provided Principal1
func (*Principal) UnmarshalJSON ¶ added in v0.2.7
type Principal0 ¶ added in v0.2.7
type Principal0 struct {
User string `json:"User"`
}
Principal0 defines model for .
type Principal1 ¶ added in v0.2.7
type Principal1 struct {
Team string `json:"Team"`
}
Principal1 defines model for .
type PromoCodeRequestProto ¶
type PromoCodeRequestProto struct {
Data struct {
PromoCode string `json:"promo_code"`
TeamId *string `json:"team_id"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
PromoCodeRequestProto defines model for PromoCodeRequestProto.
type ProviderNodeHardwareInfo ¶ added in v0.2.0
type ProviderNodeHardwareInfo struct {
Cpu CpuInfo `json:"cpu"`
// Disks Disks available on the node
Disks []DiskInfo `json:"disks"`
// Dram Total node DRAM
Dram int64 `json:"dram"`
// Gpus Number of gpus on the node
Gpus []GpuInfo `json:"gpus"`
}
ProviderNodeHardwareInfo defines model for ProviderNodeHardwareInfo.
type ProviderNodeInfo ¶
type ProviderNodeInfo struct {
// ActiveInstanceCount Number of active (non-root) instances on this node
ActiveInstanceCount int32 `json:"active_instance_count"`
// Allocations Active resource quotas (allocations) carved out of this node — the
// operator view. Customers read their own via `/quotas/list`. Lets the
// operator node page render the capacity strip + table from one call.
Allocations *[]Quota `json:"allocations,omitempty"`
ClientVersion *string `json:"client_version"`
// CountryCode Country code of the node location
CountryCode *string `json:"country_code"`
// DrainInfo Information about the drain state of a node
DrainInfo *NodeDrainInfo `json:"drain_info,omitempty"`
Hardware ProviderNodeHardwareInfo `json:"hardware"`
HealthState NodeHealthStatus `json:"health_state"`
Hostname *string `json:"hostname"`
// Id ID of the node to be used in rent API request
Id string `json:"id"`
Instance *InstanceInfo `json:"instance,omitempty"`
IpAddress *string `json:"ip_address"`
// ListOnMarketplace Whether the node is listed on the marketplace for new rentals
ListOnMarketplace *bool `json:"list_on_marketplace,omitempty"`
ProxyJump *string `json:"proxy_jump"`
ProxyPort *int32 `json:"proxy_port"`
ProxyUser *string `json:"proxy_user"`
// SshHost SSH connection details for reaching the node
SshHost *string `json:"ssh_host"`
SshPort *int32 `json:"ssh_port"`
SshUser *string `json:"ssh_user"`
Status NodeStatus `json:"status"`
Utilization ProviderNodeUtilizationInfo `json:"utilization"`
}
ProviderNodeInfo Updated ProviderNodeInfo with drain information
type ProviderNodeUtilizationInfo ¶ added in v0.2.0
type ProviderNodeUtilizationInfo struct {
// CpuCoresAvailable Number of CPU cores available on the node, i.e. not allocated by the executor
CpuCoresAvailable int32 `json:"cpu_cores_available"`
// CpuCoresAvailableMask Available CPU cores as a hex number making a bitmask
CpuCoresAvailableMask string `json:"cpu_cores_available_mask"`
// DiskAvailable Disk available for renting, in bytes. `None` when the node reports no
// usable storage disk.
DiskAvailable *int64 `json:"disk_available"`
// DramAvailable DRAM available for renting
DramAvailable int64 `json:"dram_available"`
// GpusAvailable Number of GPUs available for renting
GpusAvailable int32 `json:"gpus_available"`
// GpusAvailableMask Available GPUs as a hex number making a bitmask
GpusAvailableMask string `json:"gpus_available_mask"`
// MigGpuMask Bitmask of GPUs hosting MIG instances
MigGpuMask *string `json:"mig_gpu_mask,omitempty"`
// RentableGpus Free GPUs that are also healthy — excludes PCI-invalid and disabled
// GPUs. Rentable capacity; `gpus_available` is the raw free count.
RentableGpus *int32 `json:"rentable_gpus,omitempty"`
}
ProviderNodeUtilizationInfo defines model for ProviderNodeUtilizationInfo.
type ProviderSelector ¶ added in v0.2.0
type ProviderSelector struct {
// contains filtered or unexported fields
}
ProviderSelector defines model for ProviderSelector.
func (ProviderSelector) AsProviderSelector0 ¶ added in v0.2.0
func (t ProviderSelector) AsProviderSelector0() (ProviderSelector0, error)
AsProviderSelector0 returns the union data inside the ProviderSelector as a ProviderSelector0
func (ProviderSelector) AsProviderSelector1 ¶ added in v0.2.0
func (t ProviderSelector) AsProviderSelector1() (ProviderSelector1, error)
AsProviderSelector1 returns the union data inside the ProviderSelector as a ProviderSelector1
func (*ProviderSelector) FromProviderSelector0 ¶ added in v0.2.0
func (t *ProviderSelector) FromProviderSelector0(v ProviderSelector0) error
FromProviderSelector0 overwrites any union data inside the ProviderSelector as the provided ProviderSelector0
func (*ProviderSelector) FromProviderSelector1 ¶ added in v0.2.0
func (t *ProviderSelector) FromProviderSelector1(v ProviderSelector1) error
FromProviderSelector1 overwrites any union data inside the ProviderSelector as the provided ProviderSelector1
func (ProviderSelector) MarshalJSON ¶ added in v0.2.0
func (t ProviderSelector) MarshalJSON() ([]byte, error)
func (*ProviderSelector) MergeProviderSelector0 ¶ added in v0.2.0
func (t *ProviderSelector) MergeProviderSelector0(v ProviderSelector0) error
MergeProviderSelector0 performs a merge with any union data inside the ProviderSelector, using the provided ProviderSelector0
func (*ProviderSelector) MergeProviderSelector1 ¶ added in v0.2.0
func (t *ProviderSelector) MergeProviderSelector1(v ProviderSelector1) error
MergeProviderSelector1 performs a merge with any union data inside the ProviderSelector, using the provided ProviderSelector1
func (*ProviderSelector) UnmarshalJSON ¶ added in v0.2.0
func (t *ProviderSelector) UnmarshalJSON(b []byte) error
type ProviderSelector0 ¶ added in v0.2.0
type ProviderSelector0 string
ProviderSelector0 Select all providers
const (
ProviderSelector0All ProviderSelector0 = "All"
)
Defines values for ProviderSelector0.
type ProviderSelector1 ¶ added in v0.2.0
type ProviderSelector1 struct {
// ByName Select providers by name
ByName []string `json:"ByName"`
}
ProviderSelector1 Select providers by name
type Quota ¶ added in v0.2.7
type Quota struct {
AccountId string `json:"account_id"`
// Active `false` after revoke; the row is kept for audit.
Active bool `json:"active"`
BillingExempt bool `json:"billing_exempt"`
// Budget One resource shape. Used for a quota's budget, its live consumption,
// and the create request. `cpu_count` is guest vCPUs, `gpu_count` whole
// GPUs, `dram`/`disk` bytes — same conventions as `ResourceSpec`.
Budget QuotaResources `json:"budget"`
// Consumed One resource shape. Used for a quota's budget, its live consumption,
// and the create request. `cpu_count` is guest vCPUs, `gpu_count` whole
// GPUs, `dram`/`disk` bytes — same conventions as `ResourceSpec`.
Consumed QuotaResources `json:"consumed"`
CreatedAt string `json:"created_at"`
// CreatedBy Operator (admin or node-owning provider) who assigned the quota.
CreatedBy string `json:"created_by"`
CreatedByEmail string `json:"created_by_email"`
// HolderName Recipient display name (team name, or the user's email).
HolderName string `json:"holder_name"`
Id string `json:"id"`
// Name Operator label, e.g. "KMG-serv4-2026"
Name string `json:"name"`
NodeCpuBrand *string `json:"node_cpu_brand"`
NodeGpuBrand *string `json:"node_gpu_brand"`
NodeGpuVram *int64 `json:"node_gpu_vram"`
// NodeHostname Node identity for display — the rental flow must show the renter
// which node the allocation pins to.
NodeHostname *string `json:"node_hostname"`
NodeId string `json:"node_id"`
// NodeInstanceType Node hardware summary, so the rental wizard renders the hardware
// with no `nodes/list` (operator-only) and no client-side join:
// catalog instance-type name, GPU brand (e.g. "H200"), VRAM per GPU
// (bytes), and CPU brand. `None` fields for off-catalog / GPU-less nodes.
NodeInstanceType *string `json:"node_instance_type"`
NodeIpAddress *string `json:"node_ip_address"`
// Principal Resolved holder of an allocation.
Principal Principal `json:"principal"`
ValidFrom string `json:"valid_from"`
// ValidTill `None` = no expiry. Expiry stops new admissions only; running VMs
// continue.
ValidTill *string `json:"valid_till"`
}
Quota Operator-assigned dedicated capacity on a single node. Customer-facing name: "Allocation".
type QuotaResources ¶ added in v0.2.7
type QuotaResources struct {
CpuCount int32 `json:"cpu_count"`
Disk int64 `json:"disk"`
Dram int64 `json:"dram"`
GpuCount int32 `json:"gpu_count"`
}
QuotaResources One resource shape. Used for a quota's budget, its live consumption, and the create request. `cpu_count` is guest vCPUs, `gpu_count` whole GPUs, `dram`/`disk` bytes — same conventions as `ResourceSpec`.
type Recipe ¶
type Recipe struct {
// Description Description of the recipe
Description string `json:"description"`
Details RecipeDetails `json:"details"`
// InstructionsUrl URL to the instructions for the recipe, if available
InstructionsUrl *string `json:"instructions_url"`
// LogoUrl Logo of the recipe, if available, e.g. Ubuntu, PyTorch or Jupyter logo
LogoUrl *string `json:"logo_url"`
// Name Name of the recipe
Name string `json:"name"`
// Tags Tags for the recipe to help users find it and filter by them
Tags []string `json:"tags"`
}
Recipe defines model for Recipe.
type RecipeDetails ¶
type RecipeDetails struct {
// contains filtered or unexported fields
}
RecipeDetails defines model for RecipeDetails.
func (RecipeDetails) AsRecipeDetails0 ¶
func (t RecipeDetails) AsRecipeDetails0() (RecipeDetails0, error)
AsRecipeDetails0 returns the union data inside the RecipeDetails as a RecipeDetails0
func (RecipeDetails) AsRecipeDetails1 ¶
func (t RecipeDetails) AsRecipeDetails1() (RecipeDetails1, error)
AsRecipeDetails1 returns the union data inside the RecipeDetails as a RecipeDetails1
func (*RecipeDetails) FromRecipeDetails0 ¶
func (t *RecipeDetails) FromRecipeDetails0(v RecipeDetails0) error
FromRecipeDetails0 overwrites any union data inside the RecipeDetails as the provided RecipeDetails0
func (*RecipeDetails) FromRecipeDetails1 ¶
func (t *RecipeDetails) FromRecipeDetails1(v RecipeDetails1) error
FromRecipeDetails1 overwrites any union data inside the RecipeDetails as the provided RecipeDetails1
func (RecipeDetails) MarshalJSON ¶
func (t RecipeDetails) MarshalJSON() ([]byte, error)
func (*RecipeDetails) MergeRecipeDetails0 ¶
func (t *RecipeDetails) MergeRecipeDetails0(v RecipeDetails0) error
MergeRecipeDetails0 performs a merge with any union data inside the RecipeDetails, using the provided RecipeDetails0
func (*RecipeDetails) MergeRecipeDetails1 ¶
func (t *RecipeDetails) MergeRecipeDetails1(v RecipeDetails1) error
MergeRecipeDetails1 performs a merge with any union data inside the RecipeDetails, using the provided RecipeDetails1
func (*RecipeDetails) UnmarshalJSON ¶
func (t *RecipeDetails) UnmarshalJSON(b []byte) error
type RecipeDetails0 ¶
type RecipeDetails0 struct {
Docker struct {
// Command Docker command to run the recipe
Command []string `json:"command"`
// Env Environment variables to set
Env [][]interface{} `json:"env"`
// Image Docker image corresponding to the recipe
Image string `json:"image"`
// Ports Ports to expose in the format <host>:<container>:<tcp|udp|sctp>
Ports []string `json:"ports"`
} `json:"Docker"`
}
RecipeDetails0 defines model for .
type RecipeDetails1 ¶
type RecipeDetails1 struct {
VirtualMachine struct {
CloudinitUrl string `json:"cloudinit_url"`
// ImageUrl VM image to use for the recipe
ImageUrl string `json:"image_url"`
} `json:"VirtualMachine"`
}
RecipeDetails1 defines model for .
type RecipeGroup ¶
type RecipeGroup struct {
// Description Description of the recipe group
Description string `json:"description"`
// LogoUrl Logo of the recipe group, if available, e.g. Ubuntu, PyTorch or Jupyter logo
LogoUrl *string `json:"logo_url"`
// Metadata JSON string with metadata for the recipe group
Metadata *string `json:"metadata"`
// Name Name of the recipe group
Name string `json:"name"`
// Recipes Recipes in the group
Recipes []Recipe `json:"recipes"`
// Tags Tags for the recipe group to help users find it and filter by them
Tags []string `json:"tags"`
}
RecipeGroup defines model for RecipeGroup.
type RecipeSelector ¶ added in v0.2.0
type RecipeSelector struct {
// contains filtered or unexported fields
}
RecipeSelector defines model for RecipeSelector.
func (RecipeSelector) AsRecipeSelector0 ¶ added in v0.2.0
func (t RecipeSelector) AsRecipeSelector0() (RecipeSelector0, error)
AsRecipeSelector0 returns the union data inside the RecipeSelector as a RecipeSelector0
func (RecipeSelector) AsRecipeSelector1 ¶ added in v0.2.0
func (t RecipeSelector) AsRecipeSelector1() (RecipeSelector1, error)
AsRecipeSelector1 returns the union data inside the RecipeSelector as a RecipeSelector1
func (RecipeSelector) AsRecipeSelector2 ¶ added in v0.2.0
func (t RecipeSelector) AsRecipeSelector2() (RecipeSelector2, error)
AsRecipeSelector2 returns the union data inside the RecipeSelector as a RecipeSelector2
func (*RecipeSelector) FromRecipeSelector0 ¶ added in v0.2.0
func (t *RecipeSelector) FromRecipeSelector0(v RecipeSelector0) error
FromRecipeSelector0 overwrites any union data inside the RecipeSelector as the provided RecipeSelector0
func (*RecipeSelector) FromRecipeSelector1 ¶ added in v0.2.0
func (t *RecipeSelector) FromRecipeSelector1(v RecipeSelector1) error
FromRecipeSelector1 overwrites any union data inside the RecipeSelector as the provided RecipeSelector1
func (*RecipeSelector) FromRecipeSelector2 ¶ added in v0.2.0
func (t *RecipeSelector) FromRecipeSelector2(v RecipeSelector2) error
FromRecipeSelector2 overwrites any union data inside the RecipeSelector as the provided RecipeSelector2
func (RecipeSelector) MarshalJSON ¶ added in v0.2.0
func (t RecipeSelector) MarshalJSON() ([]byte, error)
func (*RecipeSelector) MergeRecipeSelector0 ¶ added in v0.2.0
func (t *RecipeSelector) MergeRecipeSelector0(v RecipeSelector0) error
MergeRecipeSelector0 performs a merge with any union data inside the RecipeSelector, using the provided RecipeSelector0
func (*RecipeSelector) MergeRecipeSelector1 ¶ added in v0.2.0
func (t *RecipeSelector) MergeRecipeSelector1(v RecipeSelector1) error
MergeRecipeSelector1 performs a merge with any union data inside the RecipeSelector, using the provided RecipeSelector1
func (*RecipeSelector) MergeRecipeSelector2 ¶ added in v0.2.0
func (t *RecipeSelector) MergeRecipeSelector2(v RecipeSelector2) error
MergeRecipeSelector2 performs a merge with any union data inside the RecipeSelector, using the provided RecipeSelector2
func (*RecipeSelector) UnmarshalJSON ¶ added in v0.2.0
func (t *RecipeSelector) UnmarshalJSON(b []byte) error
type RecipeSelector0 ¶ added in v0.2.0
type RecipeSelector0 struct {
Name []string `json:"Name"`
}
RecipeSelector0 defines model for .
type RecipeSelector1 ¶ added in v0.2.0
type RecipeSelector1 struct {
Tag []string `json:"Tag"`
}
RecipeSelector1 defines model for .
type RecipeSelector2 ¶ added in v0.2.0
type RecipeSelector2 struct {
Group []string `json:"Group"`
}
RecipeSelector2 defines model for .
type RegisterUserJSONRequestBody ¶
type RegisterUserJSONRequestBody = RegisterUserRequestProto
RegisterUserJSONRequestBody defines body for RegisterUser for application/json ContentType.
type RegisterUserRequestProto ¶
type RegisterUserRequestProto struct {
Data struct {
// Email New user email
Email string `json:"email"`
InviteCode *string `json:"invite_code"`
// Name New user name
Name string `json:"name"`
// Password New user password
Password string `json:"password"`
// SubscribeNewsletter Whether to subscribe user to newsletter
SubscribeNewsletter *bool `json:"subscribe_newsletter,omitempty"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
RegisterUserRequestProto defines model for RegisterUserRequestProto.
type RegisterUserResponse ¶
func ParseRegisterUserResponse ¶
func ParseRegisterUserResponse(rsp *http.Response) (*RegisterUserResponse, error)
ParseRegisterUserResponse parses an HTTP response from a RegisterUserWithResponse call
func (RegisterUserResponse) Status ¶
func (r RegisterUserResponse) Status() string
Status returns HTTPResponse.Status
func (RegisterUserResponse) StatusCode ¶
func (r RegisterUserResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RemoveInstanceTypeJSONRequestBody ¶ added in v0.2.0
type RemoveInstanceTypeJSONRequestBody = RemoveInstanceTypeRequestProto
RemoveInstanceTypeJSONRequestBody defines body for RemoveInstanceType for application/json ContentType.
type RemoveInstanceTypeRequestProto ¶ added in v0.2.0
type RemoveInstanceTypeRequestProto struct {
Data struct {
Selector InstanceTypeSelector `json:"selector"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
RemoveInstanceTypeRequestProto defines model for RemoveInstanceTypeRequestProto.
type RemoveInstanceTypeResponse ¶ added in v0.2.0
type RemoveInstanceTypeResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *InstanceTypeResponseProto
}
func ParseRemoveInstanceTypeResponse ¶ added in v0.2.0
func ParseRemoveInstanceTypeResponse(rsp *http.Response) (*RemoveInstanceTypeResponse, error)
ParseRemoveInstanceTypeResponse parses an HTTP response from a RemoveInstanceTypeWithResponse call
func (RemoveInstanceTypeResponse) Status ¶ added in v0.2.0
func (r RemoveInstanceTypeResponse) Status() string
Status returns HTTPResponse.Status
func (RemoveInstanceTypeResponse) StatusCode ¶ added in v0.2.0
func (r RemoveInstanceTypeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RemoveInstanceVariantJSONRequestBody ¶ added in v0.2.0
type RemoveInstanceVariantJSONRequestBody = RemoveInstanceVariantRequestProto
RemoveInstanceVariantJSONRequestBody defines body for RemoveInstanceVariant for application/json ContentType.
type RemoveInstanceVariantRequestProto ¶ added in v0.2.0
type RemoveInstanceVariantRequestProto struct {
Data struct {
Selector InstanceVariantSelector `json:"selector"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
RemoveInstanceVariantRequestProto defines model for RemoveInstanceVariantRequestProto.
type RemoveInstanceVariantResponse ¶ added in v0.2.0
type RemoveInstanceVariantResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *InstanceVariantResponseProto
}
func ParseRemoveInstanceVariantResponse ¶ added in v0.2.0
func ParseRemoveInstanceVariantResponse(rsp *http.Response) (*RemoveInstanceVariantResponse, error)
ParseRemoveInstanceVariantResponse parses an HTTP response from a RemoveInstanceVariantWithResponse call
func (RemoveInstanceVariantResponse) Status ¶ added in v0.2.0
func (r RemoveInstanceVariantResponse) Status() string
Status returns HTTPResponse.Status
func (RemoveInstanceVariantResponse) StatusCode ¶ added in v0.2.0
func (r RemoveInstanceVariantResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RemoveRecipeJSONRequestBody ¶ added in v0.2.0
type RemoveRecipeJSONRequestBody = RemoveRecipeOrGroupRequestProto
RemoveRecipeJSONRequestBody defines body for RemoveRecipe for application/json ContentType.
type RemoveRecipeOrGroupRequestProto ¶ added in v0.2.0
type RemoveRecipeOrGroupRequestProto struct {
Data struct {
Selector RecipeSelector `json:"selector"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
RemoveRecipeOrGroupRequestProto defines model for RemoveRecipeOrGroupRequestProto.
type RemoveRecipeResponse ¶ added in v0.2.0
func ParseRemoveRecipeResponse ¶ added in v0.2.0
func ParseRemoveRecipeResponse(rsp *http.Response) (*RemoveRecipeResponse, error)
ParseRemoveRecipeResponse parses an HTTP response from a RemoveRecipeWithResponse call
func (RemoveRecipeResponse) Status ¶ added in v0.2.0
func (r RemoveRecipeResponse) Status() string
Status returns HTTPResponse.Status
func (RemoveRecipeResponse) StatusCode ¶ added in v0.2.0
func (r RemoveRecipeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RemoveTeamMemberJSONRequestBody ¶
type RemoveTeamMemberJSONRequestBody = RemoveTeamMemberRequestProto
RemoveTeamMemberJSONRequestBody defines body for RemoveTeamMember for application/json ContentType.
type RemoveTeamMemberRequestProto ¶
type RemoveTeamMemberRequestProto struct {
// Data Request to remove a team member or cancel a pending invite.
Data struct {
// Selector Selector for identifying a team member or pending invite.
Selector TeamMemberSelector `json:"selector"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
RemoveTeamMemberRequestProto defines model for RemoveTeamMemberRequestProto.
type RemoveTeamMemberResponse ¶
func ParseRemoveTeamMemberResponse ¶
func ParseRemoveTeamMemberResponse(rsp *http.Response) (*RemoveTeamMemberResponse, error)
ParseRemoveTeamMemberResponse parses an HTTP response from a RemoveTeamMemberWithResponse call
func (RemoveTeamMemberResponse) Status ¶
func (r RemoveTeamMemberResponse) Status() string
Status returns HTTPResponse.Status
func (RemoveTeamMemberResponse) StatusCode ¶
func (r RemoveTeamMemberResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RentInstanceJSONRequestBody ¶
type RentInstanceJSONRequestBody = RentInstanceRequestProto
RentInstanceJSONRequestBody defines body for RentInstance for application/json ContentType.
type RentInstanceRequestProto ¶
type RentInstanceRequestProto struct {
Data struct {
// BillingExempt Admin-only: if true, no billing or provider payout for this rental
BillingExempt *bool `json:"billing_exempt,omitempty"`
// ClusterName Optional cluster name
ClusterName *string `json:"cluster_name"`
Config InstanceConfiguration `json:"config"`
// Name Optional Instance name
Name *string `json:"name"`
// Network Optional Network name
Network *string `json:"network"`
// Recipe Recipe name to use for the instance
Recipe *string `json:"recipe"`
// RequireQuotaCoverage Fail-closed assertion: this rental must be covered by an active
// resource quota on the node, otherwise it is rejected instead of
// billed. Never grants coverage — coverage is always derived
// server-side from (account, node).
RequireQuotaCoverage *bool `json:"require_quota_coverage,omitempty"`
// Reservation Parameters for using reservations with instances.
// `billing_exempt` on `New` skips the prepayment debit on the new
// reservation; independent of the rental's billing_exempt flag.
Reservation *ReservationParameters `json:"reservation,omitempty"`
// ReuseEnvironmentId Reuse a saved environment's disk instead of installing a fresh OS. The
// referenced environment (see `instances/saved-environments/list`) pins
// the rental to its node and instance type. `None` for a fresh rental.
ReuseEnvironmentId *string `json:"reuse_environment_id"`
Selector NodeSelector `json:"selector"`
// TeamId Optional team ID
TeamId *string `json:"team_id"`
// WithPublicIp Allocate public IP from the pool
WithPublicIp bool `json:"with_public_ip"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
RentInstanceRequestProto defines model for RentInstanceRequestProto.
type RentInstanceResponse ¶
type RentInstanceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *RentInstanceResponseProto
}
func ParseRentInstanceResponse ¶
func ParseRentInstanceResponse(rsp *http.Response) (*RentInstanceResponse, error)
ParseRentInstanceResponse parses an HTTP response from a RentInstanceWithResponse call
func (RentInstanceResponse) Status ¶
func (r RentInstanceResponse) Status() string
Status returns HTTPResponse.Status
func (RentInstanceResponse) StatusCode ¶
func (r RentInstanceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RentInstanceResponseProto ¶
type RentInstanceResponseProto struct {
Data struct {
// InstanceIds ID of the instances that were rented
InstanceIds []string `json:"instance_ids"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
RentInstanceResponseProto defines model for RentInstanceResponseProto.
type RentalFailureInfo ¶ added in v0.2.4
type RentalFailureInfo struct {
// Cause Why a rental was deactivated before reaching the Active state.
Cause DeactivationCause `json:"cause"`
// Id Stable identifier for this failure record. Surfaced in the UI for the
// Report-issue flow so users / support can reference a specific incident.
Id string `json:"id"`
// OccurredAt When the failure was recorded.
OccurredAt string `json:"occurred_at"`
// UserMessage Safe-to-show message. For `PlatformError` this is a stable constant; for the other
// causes it includes the relevant detail (image name, exit code, libvirt reason).
UserMessage string `json:"user_message"`
}
RentalFailureInfo Surfaced under `InstanceAndUsageInfo.failure` when a rental ended up in `Failed`.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RequestPasswordResetJSONRequestBody ¶
type RequestPasswordResetJSONRequestBody = PasswordResetVerifyRequestProto
RequestPasswordResetJSONRequestBody defines body for RequestPasswordReset for application/json ContentType.
type RequestPasswordResetResponse ¶
func ParseRequestPasswordResetResponse ¶
func ParseRequestPasswordResetResponse(rsp *http.Response) (*RequestPasswordResetResponse, error)
ParseRequestPasswordResetResponse parses an HTTP response from a RequestPasswordResetWithResponse call
func (RequestPasswordResetResponse) Status ¶
func (r RequestPasswordResetResponse) Status() string
Status returns HTTPResponse.Status
func (RequestPasswordResetResponse) StatusCode ¶
func (r RequestPasswordResetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestedNumaConfig ¶ added in v0.2.7
type RequestedNumaConfig struct {
// CpuIds Host CPU ids to expose as guest vCPUs. The server groups them into
// guest cells by each CPU's host NUMA node (one cell per host node,
// cells ordered by node_id ascending).
CpuIds []int32 `json:"cpu_ids"`
// EmulatorCpuIds Optional. Host CPU ids for the QEMU emulator thread. Omit to let
// the server pick it the same way the automatic path does: a carved
// overhead core when the VM needs more than one physical core,
// otherwise the emulator overlaps the vCPUs (no extra core).
EmulatorCpuIds *[]int32 `json:"emulator_cpu_ids"`
// GpuIndices Optional. Host GPU hardware indices to pass through. Omit to let
// the server auto-select free GPUs (NUMA-ranked). When supplied, must
// list exactly `gpu` indices; the server passes through these GPUs and
// still derives the GPU-to-cell mapping from each GPU's real NUMA
// affinity.
GpuIndices *[]int32 `json:"gpu_indices"`
// MemoryKbPerNode Optional. Explicit per-host-node memory for a deliberately
// non-proportional split. Omit for a vCPU-weighted, hugepage-aware
// split of `dram`. Keys must be exactly the host nodes that have
// vCPUs, and the values must sum to `dram`.
MemoryKbPerNode *[]NodeMemory `json:"memory_kb_per_node"`
}
RequestedNumaConfig Admin-only manual NUMA CPU pinning for a custom (off-catalog) rental. The admin pins the host CPUs; the server completes the rest of the layout (cell grouping, memory split, emulator core, GPU-to-cell mapping), validates it against the host hardware, and uses it instead of automatic NUMA derivation.
type ResendVerificationJSONRequestBody ¶ added in v0.2.0
type ResendVerificationJSONRequestBody = EmailVerificationResendRequestProto
ResendVerificationJSONRequestBody defines body for ResendVerification for application/json ContentType.
type ResendVerificationResponse ¶ added in v0.2.0
func ParseResendVerificationResponse ¶ added in v0.2.0
func ParseResendVerificationResponse(rsp *http.Response) (*ResendVerificationResponse, error)
ParseResendVerificationResponse parses an HTTP response from a ResendVerificationWithResponse call
func (ResendVerificationResponse) Status ¶ added in v0.2.0
func (r ResendVerificationResponse) Status() string
Status returns HTTPResponse.Status
func (ResendVerificationResponse) StatusCode ¶ added in v0.2.0
func (r ResendVerificationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Reservation ¶
type Reservation struct {
// BillingExempt Whether prepayment / extension debits are skipped for this reservation
BillingExempt *bool `json:"billing_exempt,omitempty"`
BoundResource string `json:"bound_resource"`
CreatedAt string `json:"created_at"`
Id string `json:"id"`
InstanceType *InstanceType `json:"instance_type,omitempty"`
InstanceVariant *InstanceVariant `json:"instance_variant,omitempty"`
// NodeId The node a custom reservation is pinned to, so a redeploy targets the
// same paid-for hardware. `None` for catalog reservations.
NodeId *string `json:"node_id,omitempty"`
Resources *ReservationResources `json:"resources,omitempty"`
ValidTill string `json:"valid_till"`
}
Reservation defines model for Reservation.
type ReservationDates ¶
type ReservationDates struct {
CreatedAt string `json:"created_at"`
ValidTill string `json:"valid_till"`
}
ReservationDates defines model for ReservationDates.
type ReservationParameters ¶
type ReservationParameters struct {
// contains filtered or unexported fields
}
ReservationParameters Parameters for using reservations with instances. `billing_exempt` on `New` skips the prepayment debit on the new reservation; independent of the rental's billing_exempt flag.
func (ReservationParameters) AsReservationParameters0 ¶
func (t ReservationParameters) AsReservationParameters0() (ReservationParameters0, error)
AsReservationParameters0 returns the union data inside the ReservationParameters as a ReservationParameters0
func (ReservationParameters) AsReservationParameters1 ¶
func (t ReservationParameters) AsReservationParameters1() (ReservationParameters1, error)
AsReservationParameters1 returns the union data inside the ReservationParameters as a ReservationParameters1
func (*ReservationParameters) FromReservationParameters0 ¶
func (t *ReservationParameters) FromReservationParameters0(v ReservationParameters0) error
FromReservationParameters0 overwrites any union data inside the ReservationParameters as the provided ReservationParameters0
func (*ReservationParameters) FromReservationParameters1 ¶
func (t *ReservationParameters) FromReservationParameters1(v ReservationParameters1) error
FromReservationParameters1 overwrites any union data inside the ReservationParameters as the provided ReservationParameters1
func (ReservationParameters) MarshalJSON ¶
func (t ReservationParameters) MarshalJSON() ([]byte, error)
func (*ReservationParameters) MergeReservationParameters0 ¶
func (t *ReservationParameters) MergeReservationParameters0(v ReservationParameters0) error
MergeReservationParameters0 performs a merge with any union data inside the ReservationParameters, using the provided ReservationParameters0
func (*ReservationParameters) MergeReservationParameters1 ¶
func (t *ReservationParameters) MergeReservationParameters1(v ReservationParameters1) error
MergeReservationParameters1 performs a merge with any union data inside the ReservationParameters, using the provided ReservationParameters1
func (*ReservationParameters) UnmarshalJSON ¶
func (t *ReservationParameters) UnmarshalJSON(b []byte) error
type ReservationParameters0 ¶
type ReservationParameters0 struct {
// New Create a new reservation of the selected type
New struct {
// BillingExempt Admin-only: skip prepayment debit on the new reservation
BillingExempt *bool `json:"billing_exempt,omitempty"`
// TypeId ID of the reservation type (duration & discount tier)
TypeId string `json:"type_id"`
} `json:"New"`
}
ReservationParameters0 Create a new reservation of the selected type
type ReservationParameters1 ¶
type ReservationParameters1 struct {
// Existing Attach an existing unbound reservation by id
Existing string `json:"Existing"`
}
ReservationParameters1 Attach an existing unbound reservation by id
type ReservationResources ¶ added in v0.2.4
type ReservationResources struct {
CpuCount int32 `json:"cpu_count"`
Disk *int64 `json:"disk"`
Dram int64 `json:"dram"`
GpuCount *int32 `json:"gpu_count"`
}
ReservationResources defines model for ReservationResources.
type ReservationSelector ¶
type ReservationSelector struct {
// contains filtered or unexported fields
}
ReservationSelector defines model for ReservationSelector.
func (ReservationSelector) AsReservationSelector0 ¶
func (t ReservationSelector) AsReservationSelector0() (ReservationSelector0, error)
AsReservationSelector0 returns the union data inside the ReservationSelector as a ReservationSelector0
func (ReservationSelector) AsReservationSelector1 ¶
func (t ReservationSelector) AsReservationSelector1() (ReservationSelector1, error)
AsReservationSelector1 returns the union data inside the ReservationSelector as a ReservationSelector1
func (*ReservationSelector) FromReservationSelector0 ¶
func (t *ReservationSelector) FromReservationSelector0(v ReservationSelector0) error
FromReservationSelector0 overwrites any union data inside the ReservationSelector as the provided ReservationSelector0
func (*ReservationSelector) FromReservationSelector1 ¶
func (t *ReservationSelector) FromReservationSelector1(v ReservationSelector1) error
FromReservationSelector1 overwrites any union data inside the ReservationSelector as the provided ReservationSelector1
func (ReservationSelector) MarshalJSON ¶
func (t ReservationSelector) MarshalJSON() ([]byte, error)
func (*ReservationSelector) MergeReservationSelector0 ¶
func (t *ReservationSelector) MergeReservationSelector0(v ReservationSelector0) error
MergeReservationSelector0 performs a merge with any union data inside the ReservationSelector, using the provided ReservationSelector0
func (*ReservationSelector) MergeReservationSelector1 ¶
func (t *ReservationSelector) MergeReservationSelector1(v ReservationSelector1) error
MergeReservationSelector1 performs a merge with any union data inside the ReservationSelector, using the provided ReservationSelector1
func (*ReservationSelector) UnmarshalJSON ¶
func (t *ReservationSelector) UnmarshalJSON(b []byte) error
type ReservationSelector0 ¶
type ReservationSelector0 string
ReservationSelector0 Select all reservations
const (
ReservationSelector0All ReservationSelector0 = "All"
)
Defines values for ReservationSelector0.
type ReservationSelector1 ¶
type ReservationSelector1 struct {
ByTeamId string `json:"ByTeamId"`
}
ReservationSelector1 defines model for .
type ReservationType ¶
type ReservationType struct {
Duration map[string]int32 `json:"duration"`
Id string `json:"id"`
PriceFactor float64 `json:"price_factor"`
}
ReservationType defines model for ReservationType.
type ResetInstancesRequestProto ¶ added in v0.2.0
type ResetInstancesRequestProto struct {
Data struct {
Selector InstancesSelector `json:"selector"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
ResetInstancesRequestProto defines model for ResetInstancesRequestProto.
type ResetPasswordJSONRequestBody ¶
type ResetPasswordJSONRequestBody = PasswordResetRequestProto
ResetPasswordJSONRequestBody defines body for ResetPassword for application/json ContentType.
type ResetPasswordResponse ¶
func ParseResetPasswordResponse ¶
func ParseResetPasswordResponse(rsp *http.Response) (*ResetPasswordResponse, error)
ParseResetPasswordResponse parses an HTTP response from a ResetPasswordWithResponse call
func (ResetPasswordResponse) Status ¶
func (r ResetPasswordResponse) Status() string
Status returns HTTPResponse.Status
func (ResetPasswordResponse) StatusCode ¶
func (r ResetPasswordResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ResetVmJSONRequestBody ¶ added in v0.2.0
type ResetVmJSONRequestBody = ResetInstancesRequestProto
ResetVmJSONRequestBody defines body for ResetVm for application/json ContentType.
type ResetVmResponse ¶ added in v0.2.0
func ParseResetVmResponse ¶ added in v0.2.0
func ParseResetVmResponse(rsp *http.Response) (*ResetVmResponse, error)
ParseResetVmResponse parses an HTTP response from a ResetVmWithResponse call
func (ResetVmResponse) Status ¶ added in v0.2.0
func (r ResetVmResponse) Status() string
Status returns HTTPResponse.Status
func (ResetVmResponse) StatusCode ¶ added in v0.2.0
func (r ResetVmResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ResourceSpec ¶ added in v0.2.4
type ResourceSpec struct {
Disk int64 `json:"disk"`
Dram int64 `json:"dram"`
Gpu int32 `json:"gpu"`
// ManualNumaConfig Admin-only manual NUMA CPU pinning for a custom (off-catalog) rental.
// The admin pins the host CPUs; the server completes the rest of the
// layout (cell grouping, memory split, emulator core, GPU-to-cell
// mapping), validates it against the host hardware, and uses it instead
// of automatic NUMA derivation.
ManualNumaConfig *RequestedNumaConfig `json:"manual_numa_config,omitempty"`
Vcpu int32 `json:"vcpu"`
}
ResourceSpec Raw hardware resources for a custom (off-catalog) rental. `dram`/`disk` are in bytes; `vcpu` is the guest vCPU count; `gpu = 0` is CPU-only.
type ResourceType ¶ added in v0.2.3
type ResourceType string
ResourceType defines model for ResourceType.
const ( Compute ResourceType = "Compute" Volume ResourceType = "Volume" )
Defines values for ResourceType.
type ResponseStatus ¶
type ResponseStatus string
ResponseStatus defines model for ResponseStatus.
const ( ResponseStatusError ResponseStatus = "error" ResponseStatusPartialSuccess ResponseStatus = "partial_success" ResponseStatusSuccess ResponseStatus = "success" )
Defines values for ResponseStatus.
type ResumeInstancesRequestProto ¶ added in v0.2.3
type ResumeInstancesRequestProto struct {
Data struct {
Selector InstancesSelector `json:"selector"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
ResumeInstancesRequestProto defines model for ResumeInstancesRequestProto.
type ResumeNodeJSONRequestBody ¶ added in v0.2.0
type ResumeNodeJSONRequestBody = ResumeNodeRequestProto
ResumeNodeJSONRequestBody defines body for ResumeNode for application/json ContentType.
type ResumeNodeRequestProto ¶ added in v0.2.0
type ResumeNodeRequestProto struct {
// Data Request to resume nodes (bring them back online after being drained)
Data struct {
// Selector Selector for node admin operations (drain, delete, marketplace listing toggle, etc.)
Selector NodeAdminSelector `json:"selector"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
ResumeNodeRequestProto defines model for ResumeNodeRequestProto.
type ResumeNodeResponse ¶ added in v0.2.0
type ResumeNodeResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ResumeNodeResponseProto
}
func ParseResumeNodeResponse ¶ added in v0.2.0
func ParseResumeNodeResponse(rsp *http.Response) (*ResumeNodeResponse, error)
ParseResumeNodeResponse parses an HTTP response from a ResumeNodeWithResponse call
func (ResumeNodeResponse) Status ¶ added in v0.2.0
func (r ResumeNodeResponse) Status() string
Status returns HTTPResponse.Status
func (ResumeNodeResponse) StatusCode ¶ added in v0.2.0
func (r ResumeNodeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ResumeNodeResponseProto ¶ added in v0.2.0
type ResumeNodeResponseProto struct {
Data struct {
NodeIds []string `json:"node_ids"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
ResumeNodeResponseProto defines model for ResumeNodeResponseProto.
type ResumeVmJSONRequestBody ¶ added in v0.2.3
type ResumeVmJSONRequestBody = ResumeInstancesRequestProto
ResumeVmJSONRequestBody defines body for ResumeVm for application/json ContentType.
type ResumeVmResponse ¶ added in v0.2.3
func ParseResumeVmResponse ¶ added in v0.2.3
func ParseResumeVmResponse(rsp *http.Response) (*ResumeVmResponse, error)
ParseResumeVmResponse parses an HTTP response from a ResumeVmWithResponse call
func (ResumeVmResponse) Status ¶ added in v0.2.3
func (r ResumeVmResponse) Status() string
Status returns HTTPResponse.Status
func (ResumeVmResponse) StatusCode ¶ added in v0.2.3
func (r ResumeVmResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SavedEnvironment ¶ added in v0.2.7
type SavedEnvironment struct {
// DiskSizeBytes Virtual size of the preserved disk in bytes.
DiskSizeBytes int64 `json:"disk_size_bytes"`
// ExpiresAt When the provider erases this disk; a rent referencing it afterwards
// falls back to a fresh OS.
ExpiresAt string `json:"expires_at"`
// Id Pass as `reuse_environment_id` on a rent request to boot from this disk.
Id string `json:"id"`
// InstanceTypeName Catalog instance type the environment is bound to. `None` for off-catalog
// nodes or when the node's type can't be resolved.
InstanceTypeName *string `json:"instance_type_name"`
// LastUsedAt When the original instance was terminated.
LastUsedAt string `json:"last_used_at"`
// Name Name of the original instance.
Name string `json:"name"`
// NodeHostname `None` if the node never reported one.
NodeHostname *string `json:"node_hostname"`
// NodeId Node the disk lives on; reuse must be pinned here.
NodeId string `json:"node_id"`
// OriginalVariantName Variant the environment was originally rented at, e.g. "h100-80gb-1x".
// `None` once that variant is removed from the catalog.
OriginalVariantName *string `json:"original_variant_name"`
// OsLabel OS label for display, e.g. "Ubuntu 24.04 Server".
OsLabel string `json:"os_label"`
}
SavedEnvironment A VM disk left on a node by a terminated rental that the renter can re-attach to a new VM instead of installing a fresh OS.
Temporary, not a durable backup: the provider erases the disk once the node's `erase_grace_period` elapses (`expires_at`). The disk is a local overlay on `node_id`, so a rental reusing it must be pinned to that node and instance type (see `reuse_environment_id` on the rent request).
type SearchResultEntry ¶ added in v0.2.3
type SearchResultEntry struct {
Email *string `json:"email"`
Id string `json:"id"`
Name *string `json:"name"`
}
SearchResultEntry A single search result entry.
type SearchTeamsJSONRequestBody ¶ added in v0.2.3
type SearchTeamsJSONRequestBody = SearchTeamsRequestProto
SearchTeamsJSONRequestBody defines body for SearchTeams for application/json ContentType.
type SearchTeamsRequestProto ¶ added in v0.2.3
type SearchTeamsRequestProto struct {
Data struct {
// Limit Maximum number of results to return.
Limit *int32 `json:"limit,omitempty"`
// Query Name substring to search for (case-insensitive).
Query string `json:"query"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
SearchTeamsRequestProto defines model for SearchTeamsRequestProto.
type SearchTeamsResponse ¶ added in v0.2.3
type SearchTeamsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SearchTeamsResponseProto
}
func ParseSearchTeamsResponse ¶ added in v0.2.3
func ParseSearchTeamsResponse(rsp *http.Response) (*SearchTeamsResponse, error)
ParseSearchTeamsResponse parses an HTTP response from a SearchTeamsWithResponse call
func (SearchTeamsResponse) Status ¶ added in v0.2.3
func (r SearchTeamsResponse) Status() string
Status returns HTTPResponse.Status
func (SearchTeamsResponse) StatusCode ¶ added in v0.2.3
func (r SearchTeamsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SearchTeamsResponseProto ¶ added in v0.2.3
type SearchTeamsResponseProto struct {
Data struct {
Results []TeamSearchResultEntry `json:"results"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
SearchTeamsResponseProto defines model for SearchTeamsResponseProto.
type SearchUsersJSONRequestBody ¶ added in v0.2.3
type SearchUsersJSONRequestBody = SearchUsersRequestProto
SearchUsersJSONRequestBody defines body for SearchUsers for application/json ContentType.
type SearchUsersRequestProto ¶ added in v0.2.3
type SearchUsersRequestProto struct {
Data struct {
// Limit Maximum number of results to return.
Limit *int32 `json:"limit,omitempty"`
// Query Name or email substring to search for (case-insensitive).
Query string `json:"query"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
SearchUsersRequestProto defines model for SearchUsersRequestProto.
type SearchUsersResponse ¶ added in v0.2.3
type SearchUsersResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SearchUsersResponseProto
}
func ParseSearchUsersResponse ¶ added in v0.2.3
func ParseSearchUsersResponse(rsp *http.Response) (*SearchUsersResponse, error)
ParseSearchUsersResponse parses an HTTP response from a SearchUsersWithResponse call
func (SearchUsersResponse) Status ¶ added in v0.2.3
func (r SearchUsersResponse) Status() string
Status returns HTTPResponse.Status
func (SearchUsersResponse) StatusCode ¶ added in v0.2.3
func (r SearchUsersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SearchUsersResponseProto ¶ added in v0.2.3
type SearchUsersResponseProto struct {
Data struct {
Results []SearchResultEntry `json:"results"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
SearchUsersResponseProto defines model for SearchUsersResponseProto.
type SelectAndDeleteApiKeysJSONRequestBody ¶
type SelectAndDeleteApiKeysJSONRequestBody = DeleteApiKeysRequestProto
SelectAndDeleteApiKeysJSONRequestBody defines body for SelectAndDeleteApiKeys for application/json ContentType.
type SelectAndDeleteApiKeysResponse ¶
type SelectAndDeleteApiKeysResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *DeleteApiKeysResponseProto
}
func ParseSelectAndDeleteApiKeysResponse ¶
func ParseSelectAndDeleteApiKeysResponse(rsp *http.Response) (*SelectAndDeleteApiKeysResponse, error)
ParseSelectAndDeleteApiKeysResponse parses an HTTP response from a SelectAndDeleteApiKeysWithResponse call
func (SelectAndDeleteApiKeysResponse) Status ¶
func (r SelectAndDeleteApiKeysResponse) Status() string
Status returns HTTPResponse.Status
func (SelectAndDeleteApiKeysResponse) StatusCode ¶
func (r SelectAndDeleteApiKeysResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SelectAndDeleteSshKeyJSONRequestBody ¶
type SelectAndDeleteSshKeyJSONRequestBody = DeleteSshKeyRequestProto
SelectAndDeleteSshKeyJSONRequestBody defines body for SelectAndDeleteSshKey for application/json ContentType.
type SelectAndDeleteSshKeyResponse ¶
func ParseSelectAndDeleteSshKeyResponse ¶
func ParseSelectAndDeleteSshKeyResponse(rsp *http.Response) (*SelectAndDeleteSshKeyResponse, error)
ParseSelectAndDeleteSshKeyResponse parses an HTTP response from a SelectAndDeleteSshKeyWithResponse call
func (SelectAndDeleteSshKeyResponse) Status ¶
func (r SelectAndDeleteSshKeyResponse) Status() string
Status returns HTTPResponse.Status
func (SelectAndDeleteSshKeyResponse) StatusCode ¶
func (r SelectAndDeleteSshKeyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SelectorScope ¶ added in v0.2.0
type SelectorScope struct {
// contains filtered or unexported fields
}
SelectorScope Controls which clusters a selector searches.
func (SelectorScope) AsSelectorScope0 ¶ added in v0.2.0
func (t SelectorScope) AsSelectorScope0() (SelectorScope0, error)
AsSelectorScope0 returns the union data inside the SelectorScope as a SelectorScope0
func (SelectorScope) AsSelectorScope1 ¶ added in v0.2.0
func (t SelectorScope) AsSelectorScope1() (SelectorScope1, error)
AsSelectorScope1 returns the union data inside the SelectorScope as a SelectorScope1
func (SelectorScope) AsSelectorScope2 ¶ added in v0.2.0
func (t SelectorScope) AsSelectorScope2() (SelectorScope2, error)
AsSelectorScope2 returns the union data inside the SelectorScope as a SelectorScope2
func (SelectorScope) AsSelectorScope3 ¶ added in v0.2.0
func (t SelectorScope) AsSelectorScope3() (SelectorScope3, error)
AsSelectorScope3 returns the union data inside the SelectorScope as a SelectorScope3
func (*SelectorScope) FromSelectorScope0 ¶ added in v0.2.0
func (t *SelectorScope) FromSelectorScope0(v SelectorScope0) error
FromSelectorScope0 overwrites any union data inside the SelectorScope as the provided SelectorScope0
func (*SelectorScope) FromSelectorScope1 ¶ added in v0.2.0
func (t *SelectorScope) FromSelectorScope1(v SelectorScope1) error
FromSelectorScope1 overwrites any union data inside the SelectorScope as the provided SelectorScope1
func (*SelectorScope) FromSelectorScope2 ¶ added in v0.2.0
func (t *SelectorScope) FromSelectorScope2(v SelectorScope2) error
FromSelectorScope2 overwrites any union data inside the SelectorScope as the provided SelectorScope2
func (*SelectorScope) FromSelectorScope3 ¶ added in v0.2.0
func (t *SelectorScope) FromSelectorScope3(v SelectorScope3) error
FromSelectorScope3 overwrites any union data inside the SelectorScope as the provided SelectorScope3
func (SelectorScope) MarshalJSON ¶ added in v0.2.0
func (t SelectorScope) MarshalJSON() ([]byte, error)
func (*SelectorScope) MergeSelectorScope0 ¶ added in v0.2.0
func (t *SelectorScope) MergeSelectorScope0(v SelectorScope0) error
MergeSelectorScope0 performs a merge with any union data inside the SelectorScope, using the provided SelectorScope0
func (*SelectorScope) MergeSelectorScope1 ¶ added in v0.2.0
func (t *SelectorScope) MergeSelectorScope1(v SelectorScope1) error
MergeSelectorScope1 performs a merge with any union data inside the SelectorScope, using the provided SelectorScope1
func (*SelectorScope) MergeSelectorScope2 ¶ added in v0.2.0
func (t *SelectorScope) MergeSelectorScope2(v SelectorScope2) error
MergeSelectorScope2 performs a merge with any union data inside the SelectorScope, using the provided SelectorScope2
func (*SelectorScope) MergeSelectorScope3 ¶ added in v0.2.0
func (t *SelectorScope) MergeSelectorScope3(v SelectorScope3) error
MergeSelectorScope3 performs a merge with any union data inside the SelectorScope, using the provided SelectorScope3
func (*SelectorScope) UnmarshalJSON ¶ added in v0.2.0
func (t *SelectorScope) UnmarshalJSON(b []byte) error
type SelectorScope0 ¶ added in v0.2.0
type SelectorScope0 string
SelectorScope0 Only the user's personal cluster
const (
Personal SelectorScope0 = "Personal"
)
Defines values for SelectorScope0.
type SelectorScope1 ¶ added in v0.2.0
type SelectorScope1 struct {
// Teams Only the specified team clusters
Teams []string `json:"Teams"`
}
SelectorScope1 Only the specified team clusters
type SelectorScope2 ¶ added in v0.2.0
type SelectorScope2 struct {
// PersonalAndTeams Personal cluster plus the specified team clusters
PersonalAndTeams []string `json:"PersonalAndTeams"`
}
SelectorScope2 Personal cluster plus the specified team clusters
type SelectorScope3 ¶ added in v0.2.0
type SelectorScope3 string
SelectorScope3 Personal cluster plus all teams the user is a member of
const (
SelectorScope3All SelectorScope3 = "All"
)
Defines values for SelectorScope3.
type SendUsersMessageJSONRequestBody ¶ added in v0.2.3
type SendUsersMessageJSONRequestBody = SendUsersMessageRequestProto
SendUsersMessageJSONRequestBody defines body for SendUsersMessage for application/json ContentType.
type SendUsersMessageRequestProto ¶ added in v0.2.3
type SendUsersMessageRequestProto struct {
Data struct {
Message string `json:"message"`
Selector UserSelector `json:"selector"`
Subject string `json:"subject"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
SendUsersMessageRequestProto defines model for SendUsersMessageRequestProto.
type SendUsersMessageResponse ¶ added in v0.2.3
type SendUsersMessageResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SendUsersMessageResponseProto
}
func ParseSendUsersMessageResponse ¶ added in v0.2.3
func ParseSendUsersMessageResponse(rsp *http.Response) (*SendUsersMessageResponse, error)
ParseSendUsersMessageResponse parses an HTTP response from a SendUsersMessageWithResponse call
func (SendUsersMessageResponse) Status ¶ added in v0.2.3
func (r SendUsersMessageResponse) Status() string
Status returns HTTPResponse.Status
func (SendUsersMessageResponse) StatusCode ¶ added in v0.2.3
func (r SendUsersMessageResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SendUsersMessageResponseProto ¶ added in v0.2.3
type SendUsersMessageResponseProto struct {
Data struct {
SentUserIds []string `json:"sent_user_ids"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
SendUsersMessageResponseProto defines model for SendUsersMessageResponseProto.
type ServiceCharge ¶
type ServiceCharge struct {
// Amount Charge amount as a fraction of currency units (cents)
Amount []interface{} `json:"amount"`
// RequestId Request ID for idempotency, i.e. to avoid double charges
RequestId *string `json:"request_id"`
// UsageMetadata Optional usage metadata, e.g. usage minutes or number of API calls
UsageMetadata *string `json:"usage_metadata"`
}
ServiceCharge defines model for ServiceCharge.
type ServiceChargeRequestProto ¶
type ServiceChargeRequestProto struct {
Data struct {
// Amount Charge amount as a fraction of currency units (cents)
Amount []interface{} `json:"amount"`
// Provider Name of the provider of the service
Provider string `json:"provider"`
// RequestId Request ID for idempotency, i.e. to avoid double charges
RequestId *string `json:"request_id"`
// Service Name of the service to charge
Service string `json:"service"`
// UsageMetadata Optional usage metadata, e.g. usage minutes or number of API calls
UsageMetadata *string `json:"usage_metadata"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
ServiceChargeRequestProto defines model for ServiceChargeRequestProto.
type ServiceChargeResponseProto ¶
type ServiceChargeResponseProto struct {
Data struct {
// RequestId Either a provided request ID or a generated one
RequestId string `json:"request_id"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
ServiceChargeResponseProto defines model for ServiceChargeResponseProto.
type SetMarketplaceListingJSONRequestBody ¶ added in v0.2.3
type SetMarketplaceListingJSONRequestBody = SetNodeMarketplaceListingRequestProto
SetMarketplaceListingJSONRequestBody defines body for SetMarketplaceListing for application/json ContentType.
type SetMarketplaceListingResponse ¶ added in v0.2.3
type SetMarketplaceListingResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SetNodeMarketplaceListingResponseProto
}
func ParseSetMarketplaceListingResponse ¶ added in v0.2.3
func ParseSetMarketplaceListingResponse(rsp *http.Response) (*SetMarketplaceListingResponse, error)
ParseSetMarketplaceListingResponse parses an HTTP response from a SetMarketplaceListingWithResponse call
func (SetMarketplaceListingResponse) Status ¶ added in v0.2.3
func (r SetMarketplaceListingResponse) Status() string
Status returns HTTPResponse.Status
func (SetMarketplaceListingResponse) StatusCode ¶ added in v0.2.3
func (r SetMarketplaceListingResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SetNodeMarketplaceListingRequestProto ¶ added in v0.2.3
type SetNodeMarketplaceListingRequestProto struct {
// Data Toggle marketplace visibility on non-draining nodes. Draining/drained nodes are rejected.
Data struct {
// ListOnMarketplace Whether the node appears on the marketplace for new rentals (true = visible, false = hidden)
ListOnMarketplace bool `json:"list_on_marketplace"`
// Selector Selector for node admin operations (drain, delete, marketplace listing toggle, etc.)
Selector NodeAdminSelector `json:"selector"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
SetNodeMarketplaceListingRequestProto defines model for SetNodeMarketplaceListingRequestProto.
type SetNodeMarketplaceListingResponseProto ¶ added in v0.2.3
type SetNodeMarketplaceListingResponseProto struct {
Data struct {
NodeIds []string `json:"node_ids"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
SetNodeMarketplaceListingResponseProto defines model for SetNodeMarketplaceListingResponseProto.
type SshKey ¶
type SshKey struct {
// Id SSH key ID
Id string `json:"id"`
// Name SSH key name
Name string `json:"name"`
// PublicKey SSH key public part
PublicKey string `json:"public_key"`
}
SshKey defines model for SshKey.
type SshKeySelector ¶
type SshKeySelector struct {
// contains filtered or unexported fields
}
SshKeySelector defines model for SshKeySelector.
func (SshKeySelector) AsSshKeySelector0 ¶
func (t SshKeySelector) AsSshKeySelector0() (SshKeySelector0, error)
AsSshKeySelector0 returns the union data inside the SshKeySelector as a SshKeySelector0
func (SshKeySelector) AsSshKeySelector1 ¶
func (t SshKeySelector) AsSshKeySelector1() (SshKeySelector1, error)
AsSshKeySelector1 returns the union data inside the SshKeySelector as a SshKeySelector1
func (*SshKeySelector) FromSshKeySelector0 ¶
func (t *SshKeySelector) FromSshKeySelector0(v SshKeySelector0) error
FromSshKeySelector0 overwrites any union data inside the SshKeySelector as the provided SshKeySelector0
func (*SshKeySelector) FromSshKeySelector1 ¶
func (t *SshKeySelector) FromSshKeySelector1(v SshKeySelector1) error
FromSshKeySelector1 overwrites any union data inside the SshKeySelector as the provided SshKeySelector1
func (SshKeySelector) MarshalJSON ¶
func (t SshKeySelector) MarshalJSON() ([]byte, error)
func (*SshKeySelector) MergeSshKeySelector0 ¶
func (t *SshKeySelector) MergeSshKeySelector0(v SshKeySelector0) error
MergeSshKeySelector0 performs a merge with any union data inside the SshKeySelector, using the provided SshKeySelector0
func (*SshKeySelector) MergeSshKeySelector1 ¶
func (t *SshKeySelector) MergeSshKeySelector1(v SshKeySelector1) error
MergeSshKeySelector1 performs a merge with any union data inside the SshKeySelector, using the provided SshKeySelector1
func (*SshKeySelector) UnmarshalJSON ¶
func (t *SshKeySelector) UnmarshalJSON(b []byte) error
type SshKeySelector0 ¶
type SshKeySelector0 struct {
ByName []string `json:"ByName"`
}
SshKeySelector0 defines model for .
type SshKeySelector1 ¶
type SshKeySelector1 string
SshKeySelector1 defines model for SshKeySelector.1.
const (
SshKeySelector1All SshKeySelector1 = "All"
)
Defines values for SshKeySelector1.
type StartInstancesRequestProto ¶ added in v0.2.0
type StartInstancesRequestProto struct {
Data struct {
Selector InstancesSelector `json:"selector"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
StartInstancesRequestProto defines model for StartInstancesRequestProto.
type StartVmJSONRequestBody ¶ added in v0.2.0
type StartVmJSONRequestBody = StartInstancesRequestProto
StartVmJSONRequestBody defines body for StartVm for application/json ContentType.
type StartVmResponse ¶ added in v0.2.0
func ParseStartVmResponse ¶ added in v0.2.0
func ParseStartVmResponse(rsp *http.Response) (*StartVmResponse, error)
ParseStartVmResponse parses an HTTP response from a StartVmWithResponse call
func (StartVmResponse) Status ¶ added in v0.2.0
func (r StartVmResponse) Status() string
Status returns HTTPResponse.Status
func (StartVmResponse) StatusCode ¶ added in v0.2.0
func (r StartVmResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type StatusSelector ¶ added in v0.2.0
type StatusSelector struct {
// Limit Maximum number of matching instances to return. Defaults server-side when omitted.
Limit *int32 `json:"limit"`
// Scope Controls which clusters a selector searches.
Scope *SelectorScope `json:"scope,omitempty"`
Statuses []InstanceStatus `json:"statuses"`
}
StatusSelector Selector for filtering instances by status, with optional scope control.
type StopInstancesRequestProto ¶ added in v0.2.0
type StopInstancesRequestProto struct {
Data struct {
Selector InstancesSelector `json:"selector"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
StopInstancesRequestProto defines model for StopInstancesRequestProto.
type StopVmJSONRequestBody ¶ added in v0.2.0
type StopVmJSONRequestBody = StopInstancesRequestProto
StopVmJSONRequestBody defines body for StopVm for application/json ContentType.
type StopVmResponse ¶ added in v0.2.0
func ParseStopVmResponse ¶ added in v0.2.0
func ParseStopVmResponse(rsp *http.Response) (*StopVmResponse, error)
ParseStopVmResponse parses an HTTP response from a StopVmWithResponse call
func (StopVmResponse) Status ¶ added in v0.2.0
func (r StopVmResponse) Status() string
Status returns HTTPResponse.Status
func (StopVmResponse) StatusCode ¶ added in v0.2.0
func (r StopVmResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type StripeCustomerRequestProto ¶ added in v0.2.4
type StripeCustomerRequestProto struct {
Data struct {
// Create When the Account has no Stripe customer yet: `true`/omitted creates
// one server-side; `false` only reads (response id is null if none).
Create *bool `json:"create"`
Selector AccountSelector `json:"selector"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
StripeCustomerRequestProto defines model for StripeCustomerRequestProto.
type StripeCustomerResponseProto ¶ added in v0.2.4
type StripeCustomerResponseProto struct {
Data struct {
// StripeCustomerId Null only when `create=false` and the Account has no customer yet.
StripeCustomerId *string `json:"stripe_customer_id"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
StripeCustomerResponseProto defines model for StripeCustomerResponseProto.
type StripeTransactionInfo ¶
type StripeTransactionInfo struct {
// contains filtered or unexported fields
}
StripeTransactionInfo defines model for StripeTransactionInfo.
func (StripeTransactionInfo) AsStripeTransactionInfo0 ¶
func (t StripeTransactionInfo) AsStripeTransactionInfo0() (StripeTransactionInfo0, error)
AsStripeTransactionInfo0 returns the union data inside the StripeTransactionInfo as a StripeTransactionInfo0
func (StripeTransactionInfo) AsStripeTransactionInfo1 ¶
func (t StripeTransactionInfo) AsStripeTransactionInfo1() (StripeTransactionInfo1, error)
AsStripeTransactionInfo1 returns the union data inside the StripeTransactionInfo as a StripeTransactionInfo1
func (StripeTransactionInfo) AsStripeTransactionInfo2 ¶
func (t StripeTransactionInfo) AsStripeTransactionInfo2() (StripeTransactionInfo2, error)
AsStripeTransactionInfo2 returns the union data inside the StripeTransactionInfo as a StripeTransactionInfo2
func (*StripeTransactionInfo) FromStripeTransactionInfo0 ¶
func (t *StripeTransactionInfo) FromStripeTransactionInfo0(v StripeTransactionInfo0) error
FromStripeTransactionInfo0 overwrites any union data inside the StripeTransactionInfo as the provided StripeTransactionInfo0
func (*StripeTransactionInfo) FromStripeTransactionInfo1 ¶
func (t *StripeTransactionInfo) FromStripeTransactionInfo1(v StripeTransactionInfo1) error
FromStripeTransactionInfo1 overwrites any union data inside the StripeTransactionInfo as the provided StripeTransactionInfo1
func (*StripeTransactionInfo) FromStripeTransactionInfo2 ¶
func (t *StripeTransactionInfo) FromStripeTransactionInfo2(v StripeTransactionInfo2) error
FromStripeTransactionInfo2 overwrites any union data inside the StripeTransactionInfo as the provided StripeTransactionInfo2
func (StripeTransactionInfo) MarshalJSON ¶
func (t StripeTransactionInfo) MarshalJSON() ([]byte, error)
func (*StripeTransactionInfo) MergeStripeTransactionInfo0 ¶
func (t *StripeTransactionInfo) MergeStripeTransactionInfo0(v StripeTransactionInfo0) error
MergeStripeTransactionInfo0 performs a merge with any union data inside the StripeTransactionInfo, using the provided StripeTransactionInfo0
func (*StripeTransactionInfo) MergeStripeTransactionInfo1 ¶
func (t *StripeTransactionInfo) MergeStripeTransactionInfo1(v StripeTransactionInfo1) error
MergeStripeTransactionInfo1 performs a merge with any union data inside the StripeTransactionInfo, using the provided StripeTransactionInfo1
func (*StripeTransactionInfo) MergeStripeTransactionInfo2 ¶
func (t *StripeTransactionInfo) MergeStripeTransactionInfo2(v StripeTransactionInfo2) error
MergeStripeTransactionInfo2 performs a merge with any union data inside the StripeTransactionInfo, using the provided StripeTransactionInfo2
func (*StripeTransactionInfo) UnmarshalJSON ¶
func (t *StripeTransactionInfo) UnmarshalJSON(b []byte) error
type StripeTransactionInfo0 ¶
type StripeTransactionInfo0 struct {
Payment struct {
// AutoTopUp True when initiated by the auto top-up cron (off-session charge)
AutoTopUp *bool `json:"auto_top_up,omitempty"`
// PaymentIntentId ID of CloudRift payment intent
PaymentIntentId string `json:"payment_intent_id"`
// StripePaymentIntentId ID of the Stripe payment
StripePaymentIntentId *string `json:"stripe_payment_intent_id"`
} `json:"Payment"`
}
StripeTransactionInfo0 defines model for .
type StripeTransactionInfo1 ¶
type StripeTransactionInfo1 struct {
DisputeOpen struct {
// StripeDisputeAmount Amount disputed
StripeDisputeAmount int64 `json:"stripe_dispute_amount"`
// StripeDisputeFee Additional amount that payment processor charges for Dispute
StripeDisputeFee int64 `json:"stripe_dispute_fee"`
// StripeDisputeId Dispute ID
StripeDisputeId string `json:"stripe_dispute_id"`
// StripePaymentIntentId ID of the original Stripe payment that is being disputed
StripePaymentIntentId *string `json:"stripe_payment_intent_id"`
} `json:"DisputeOpen"`
}
StripeTransactionInfo1 defines model for .
type StripeTransactionInfo2 ¶
type StripeTransactionInfo2 struct {
DisputeClose struct {
// DisputeFee Dispute fee charged by the payment processor, not refunded
DisputeFee int64 `json:"dispute_fee"`
// Refunded Amount refunded
Refunded int64 `json:"refunded"`
// StripeDisputeId Dispute ID
StripeDisputeId string `json:"stripe_dispute_id"`
// StripeDisputeStatus Status of the dispute like won, lost, etc.
StripeDisputeStatus string `json:"stripe_dispute_status"`
// StripePaymentIntentId ID of the original Stripe payment that is being disputed
StripePaymentIntentId *string `json:"stripe_payment_intent_id"`
} `json:"DisputeClose"`
}
StripeTransactionInfo2 defines model for .
type Team ¶
type Team struct {
AccountId string `json:"account_id"`
CreatedAt string `json:"created_at"`
Description *string `json:"description"`
Id string `json:"id"`
Name string `json:"name"`
UpdatedAt string `json:"updated_at"`
UserRole string `json:"user_role"`
}
Team defines model for Team.
type TeamAccountInfo ¶ added in v0.2.3
type TeamAccountInfo struct {
// Balance Account balance in currency units (cents).
Balance int64 `json:"balance"`
// CreditLimit Account credit limit in currency units (cents).
CreditLimit int64 `json:"credit_limit"`
// InstanceCount Number of active instances owned by this team.
InstanceCount int32 `json:"instance_count"`
// IsUnlimited Whether the credit limit is unlimited.
IsUnlimited bool `json:"is_unlimited"`
// TotalSpent Total amount spent in currency units (cents).
TotalSpent int64 `json:"total_spent"`
}
TeamAccountInfo Financial/account information for a team (admin/provider).
type TeamAssignment ¶ added in v0.2.0
type TeamAssignment struct {
// contains filtered or unexported fields
}
TeamAssignment Selector for team assignment
func (TeamAssignment) AsTeamAssignment0 ¶ added in v0.2.0
func (t TeamAssignment) AsTeamAssignment0() (TeamAssignment0, error)
AsTeamAssignment0 returns the union data inside the TeamAssignment as a TeamAssignment0
func (TeamAssignment) AsTeamAssignment1 ¶ added in v0.2.0
func (t TeamAssignment) AsTeamAssignment1() (TeamAssignment1, error)
AsTeamAssignment1 returns the union data inside the TeamAssignment as a TeamAssignment1
func (*TeamAssignment) FromTeamAssignment0 ¶ added in v0.2.0
func (t *TeamAssignment) FromTeamAssignment0(v TeamAssignment0) error
FromTeamAssignment0 overwrites any union data inside the TeamAssignment as the provided TeamAssignment0
func (*TeamAssignment) FromTeamAssignment1 ¶ added in v0.2.0
func (t *TeamAssignment) FromTeamAssignment1(v TeamAssignment1) error
FromTeamAssignment1 overwrites any union data inside the TeamAssignment as the provided TeamAssignment1
func (TeamAssignment) MarshalJSON ¶ added in v0.2.0
func (t TeamAssignment) MarshalJSON() ([]byte, error)
func (*TeamAssignment) MergeTeamAssignment0 ¶ added in v0.2.0
func (t *TeamAssignment) MergeTeamAssignment0(v TeamAssignment0) error
MergeTeamAssignment0 performs a merge with any union data inside the TeamAssignment, using the provided TeamAssignment0
func (*TeamAssignment) MergeTeamAssignment1 ¶ added in v0.2.0
func (t *TeamAssignment) MergeTeamAssignment1(v TeamAssignment1) error
MergeTeamAssignment1 performs a merge with any union data inside the TeamAssignment, using the provided TeamAssignment1
func (*TeamAssignment) UnmarshalJSON ¶ added in v0.2.0
func (t *TeamAssignment) UnmarshalJSON(b []byte) error
type TeamAssignment0 ¶ added in v0.2.0
type TeamAssignment0 struct {
// ById Assign by team ID (null to make public)
ById *string `json:"ById"`
}
TeamAssignment0 Assign by team ID (null to make public)
type TeamAssignment1 ¶ added in v0.2.0
type TeamAssignment1 struct {
// ByName Assign by team name
ByName string `json:"ByName"`
}
TeamAssignment1 Assign by team name
type TeamInfo ¶ added in v0.2.3
type TeamInfo struct {
AccountId *string `json:"account_id"`
// AccountInfo Financial/account information for a team (admin/provider).
AccountInfo *TeamAccountInfo `json:"account_info,omitempty"`
CreatedAt string `json:"created_at"`
Description *string `json:"description"`
Id string `json:"id"`
// Members Present when with_members=true.
Members *[]TeamMember `json:"members"`
Name string `json:"name"`
UpdatedAt *string `json:"updated_at"`
UserRole *TeamRole `json:"user_role,omitempty"`
}
TeamInfo Unified team response returned from /teams/list.
type TeamListSelector ¶ added in v0.2.3
type TeamListSelector struct {
// contains filtered or unexported fields
}
TeamListSelector Selector for the unified teams/list endpoint.
func (TeamListSelector) AsTeamListSelector0 ¶ added in v0.2.3
func (t TeamListSelector) AsTeamListSelector0() (TeamListSelector0, error)
AsTeamListSelector0 returns the union data inside the TeamListSelector as a TeamListSelector0
func (TeamListSelector) AsTeamListSelector1 ¶ added in v0.2.3
func (t TeamListSelector) AsTeamListSelector1() (TeamListSelector1, error)
AsTeamListSelector1 returns the union data inside the TeamListSelector as a TeamListSelector1
func (TeamListSelector) AsTeamListSelector2 ¶ added in v0.2.3
func (t TeamListSelector) AsTeamListSelector2() (TeamListSelector2, error)
AsTeamListSelector2 returns the union data inside the TeamListSelector as a TeamListSelector2
func (TeamListSelector) AsTeamListSelector3 ¶ added in v0.2.3
func (t TeamListSelector) AsTeamListSelector3() (TeamListSelector3, error)
AsTeamListSelector3 returns the union data inside the TeamListSelector as a TeamListSelector3
func (TeamListSelector) AsTeamListSelector4 ¶ added in v0.2.3
func (t TeamListSelector) AsTeamListSelector4() (TeamListSelector4, error)
AsTeamListSelector4 returns the union data inside the TeamListSelector as a TeamListSelector4
func (*TeamListSelector) FromTeamListSelector0 ¶ added in v0.2.3
func (t *TeamListSelector) FromTeamListSelector0(v TeamListSelector0) error
FromTeamListSelector0 overwrites any union data inside the TeamListSelector as the provided TeamListSelector0
func (*TeamListSelector) FromTeamListSelector1 ¶ added in v0.2.3
func (t *TeamListSelector) FromTeamListSelector1(v TeamListSelector1) error
FromTeamListSelector1 overwrites any union data inside the TeamListSelector as the provided TeamListSelector1
func (*TeamListSelector) FromTeamListSelector2 ¶ added in v0.2.3
func (t *TeamListSelector) FromTeamListSelector2(v TeamListSelector2) error
FromTeamListSelector2 overwrites any union data inside the TeamListSelector as the provided TeamListSelector2
func (*TeamListSelector) FromTeamListSelector3 ¶ added in v0.2.3
func (t *TeamListSelector) FromTeamListSelector3(v TeamListSelector3) error
FromTeamListSelector3 overwrites any union data inside the TeamListSelector as the provided TeamListSelector3
func (*TeamListSelector) FromTeamListSelector4 ¶ added in v0.2.3
func (t *TeamListSelector) FromTeamListSelector4(v TeamListSelector4) error
FromTeamListSelector4 overwrites any union data inside the TeamListSelector as the provided TeamListSelector4
func (TeamListSelector) MarshalJSON ¶ added in v0.2.3
func (t TeamListSelector) MarshalJSON() ([]byte, error)
func (*TeamListSelector) MergeTeamListSelector0 ¶ added in v0.2.3
func (t *TeamListSelector) MergeTeamListSelector0(v TeamListSelector0) error
MergeTeamListSelector0 performs a merge with any union data inside the TeamListSelector, using the provided TeamListSelector0
func (*TeamListSelector) MergeTeamListSelector1 ¶ added in v0.2.3
func (t *TeamListSelector) MergeTeamListSelector1(v TeamListSelector1) error
MergeTeamListSelector1 performs a merge with any union data inside the TeamListSelector, using the provided TeamListSelector1
func (*TeamListSelector) MergeTeamListSelector2 ¶ added in v0.2.3
func (t *TeamListSelector) MergeTeamListSelector2(v TeamListSelector2) error
MergeTeamListSelector2 performs a merge with any union data inside the TeamListSelector, using the provided TeamListSelector2
func (*TeamListSelector) MergeTeamListSelector3 ¶ added in v0.2.3
func (t *TeamListSelector) MergeTeamListSelector3(v TeamListSelector3) error
MergeTeamListSelector3 performs a merge with any union data inside the TeamListSelector, using the provided TeamListSelector3
func (*TeamListSelector) MergeTeamListSelector4 ¶ added in v0.2.3
func (t *TeamListSelector) MergeTeamListSelector4(v TeamListSelector4) error
MergeTeamListSelector4 performs a merge with any union data inside the TeamListSelector, using the provided TeamListSelector4
func (*TeamListSelector) UnmarshalJSON ¶ added in v0.2.3
func (t *TeamListSelector) UnmarshalJSON(b []byte) error
type TeamListSelector0 ¶ added in v0.2.3
type TeamListSelector0 string
TeamListSelector0 Return teams the authenticated user belongs to (default).
const (
Mine TeamListSelector0 = "Mine"
)
Defines values for TeamListSelector0.
type TeamListSelector1 ¶ added in v0.2.3
type TeamListSelector1 struct {
// ById Return teams by specific IDs (admin or provider root user only).
ById []string `json:"ById"`
}
TeamListSelector1 Return teams by specific IDs (admin or provider root user only).
type TeamListSelector2 ¶ added in v0.2.3
type TeamListSelector2 struct {
// ByProvider Return teams with active instances on the given provider's nodes (admin or provider root user only).
ByProvider string `json:"ByProvider"`
}
TeamListSelector2 Return teams with active instances on the given provider's nodes (admin or provider root user only).
type TeamListSelector3 ¶ added in v0.2.3
type TeamListSelector3 struct {
// ByMinSpend Filter to teams whose total spend is at least this value (cents).
ByMinSpend int64 `json:"ByMinSpend"`
}
TeamListSelector3 Filter to teams whose total spend is at least this value (cents).
type TeamListSelector4 ¶ added in v0.2.3
type TeamListSelector4 string
TeamListSelector4 Filter to teams that currently have running executors (instances).
const (
TeamListSelector4ByActiveExecutors TeamListSelector4 = "ByActiveExecutors"
)
Defines values for TeamListSelector4.
type TeamMember ¶
type TeamMember struct {
Email string `json:"email"`
JoinedAt string `json:"joined_at"`
Name string `json:"name"`
Role string `json:"role"`
UserId string `json:"user_id"`
}
TeamMember defines model for TeamMember.
type TeamMemberInvite ¶ added in v0.2.3
type TeamMemberInvite struct {
Email string `json:"email"`
InvitedAt string `json:"invited_at"`
InvitedById string `json:"invited_by_id"`
Role string `json:"role"`
TeamId string `json:"team_id"`
TeamName string `json:"team_name"`
}
TeamMemberInvite defines model for TeamMemberInvite.
type TeamMemberOrInviteResponseProto ¶ added in v0.2.3
type TeamMemberOrInviteResponseProto struct {
Data TeamMemberOrInviteResponseProto_Data `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
TeamMemberOrInviteResponseProto defines model for TeamMemberOrInviteResponseProto.
type TeamMemberOrInviteResponseProtoData0 ¶ added in v0.2.3
type TeamMemberOrInviteResponseProtoData0 struct {
Member TeamMember `json:"Member"`
}
TeamMemberOrInviteResponseProtoData0 defines model for .
type TeamMemberOrInviteResponseProtoData1 ¶ added in v0.2.3
type TeamMemberOrInviteResponseProtoData1 struct {
Invite TeamMemberInvite `json:"Invite"`
}
TeamMemberOrInviteResponseProtoData1 defines model for .
type TeamMemberOrInviteResponseProto_Data ¶ added in v0.2.3
type TeamMemberOrInviteResponseProto_Data struct {
// contains filtered or unexported fields
}
TeamMemberOrInviteResponseProto_Data defines model for TeamMemberOrInviteResponseProto.Data.
func (TeamMemberOrInviteResponseProto_Data) AsTeamMemberOrInviteResponseProtoData0 ¶ added in v0.2.3
func (t TeamMemberOrInviteResponseProto_Data) AsTeamMemberOrInviteResponseProtoData0() (TeamMemberOrInviteResponseProtoData0, error)
AsTeamMemberOrInviteResponseProtoData0 returns the union data inside the TeamMemberOrInviteResponseProto_Data as a TeamMemberOrInviteResponseProtoData0
func (TeamMemberOrInviteResponseProto_Data) AsTeamMemberOrInviteResponseProtoData1 ¶ added in v0.2.3
func (t TeamMemberOrInviteResponseProto_Data) AsTeamMemberOrInviteResponseProtoData1() (TeamMemberOrInviteResponseProtoData1, error)
AsTeamMemberOrInviteResponseProtoData1 returns the union data inside the TeamMemberOrInviteResponseProto_Data as a TeamMemberOrInviteResponseProtoData1
func (*TeamMemberOrInviteResponseProto_Data) FromTeamMemberOrInviteResponseProtoData0 ¶ added in v0.2.3
func (t *TeamMemberOrInviteResponseProto_Data) FromTeamMemberOrInviteResponseProtoData0(v TeamMemberOrInviteResponseProtoData0) error
FromTeamMemberOrInviteResponseProtoData0 overwrites any union data inside the TeamMemberOrInviteResponseProto_Data as the provided TeamMemberOrInviteResponseProtoData0
func (*TeamMemberOrInviteResponseProto_Data) FromTeamMemberOrInviteResponseProtoData1 ¶ added in v0.2.3
func (t *TeamMemberOrInviteResponseProto_Data) FromTeamMemberOrInviteResponseProtoData1(v TeamMemberOrInviteResponseProtoData1) error
FromTeamMemberOrInviteResponseProtoData1 overwrites any union data inside the TeamMemberOrInviteResponseProto_Data as the provided TeamMemberOrInviteResponseProtoData1
func (TeamMemberOrInviteResponseProto_Data) MarshalJSON ¶ added in v0.2.3
func (t TeamMemberOrInviteResponseProto_Data) MarshalJSON() ([]byte, error)
func (*TeamMemberOrInviteResponseProto_Data) MergeTeamMemberOrInviteResponseProtoData0 ¶ added in v0.2.3
func (t *TeamMemberOrInviteResponseProto_Data) MergeTeamMemberOrInviteResponseProtoData0(v TeamMemberOrInviteResponseProtoData0) error
MergeTeamMemberOrInviteResponseProtoData0 performs a merge with any union data inside the TeamMemberOrInviteResponseProto_Data, using the provided TeamMemberOrInviteResponseProtoData0
func (*TeamMemberOrInviteResponseProto_Data) MergeTeamMemberOrInviteResponseProtoData1 ¶ added in v0.2.3
func (t *TeamMemberOrInviteResponseProto_Data) MergeTeamMemberOrInviteResponseProtoData1(v TeamMemberOrInviteResponseProtoData1) error
MergeTeamMemberOrInviteResponseProtoData1 performs a merge with any union data inside the TeamMemberOrInviteResponseProto_Data, using the provided TeamMemberOrInviteResponseProtoData1
func (*TeamMemberOrInviteResponseProto_Data) UnmarshalJSON ¶ added in v0.2.3
func (t *TeamMemberOrInviteResponseProto_Data) UnmarshalJSON(b []byte) error
type TeamMemberSelector ¶ added in v0.2.3
type TeamMemberSelector struct {
// contains filtered or unexported fields
}
TeamMemberSelector Selector for identifying a team member or pending invite.
func (TeamMemberSelector) AsTeamMemberSelector0 ¶ added in v0.2.3
func (t TeamMemberSelector) AsTeamMemberSelector0() (TeamMemberSelector0, error)
AsTeamMemberSelector0 returns the union data inside the TeamMemberSelector as a TeamMemberSelector0
func (TeamMemberSelector) AsTeamMemberSelector1 ¶ added in v0.2.3
func (t TeamMemberSelector) AsTeamMemberSelector1() (TeamMemberSelector1, error)
AsTeamMemberSelector1 returns the union data inside the TeamMemberSelector as a TeamMemberSelector1
func (*TeamMemberSelector) FromTeamMemberSelector0 ¶ added in v0.2.3
func (t *TeamMemberSelector) FromTeamMemberSelector0(v TeamMemberSelector0) error
FromTeamMemberSelector0 overwrites any union data inside the TeamMemberSelector as the provided TeamMemberSelector0
func (*TeamMemberSelector) FromTeamMemberSelector1 ¶ added in v0.2.3
func (t *TeamMemberSelector) FromTeamMemberSelector1(v TeamMemberSelector1) error
FromTeamMemberSelector1 overwrites any union data inside the TeamMemberSelector as the provided TeamMemberSelector1
func (TeamMemberSelector) MarshalJSON ¶ added in v0.2.3
func (t TeamMemberSelector) MarshalJSON() ([]byte, error)
func (*TeamMemberSelector) MergeTeamMemberSelector0 ¶ added in v0.2.3
func (t *TeamMemberSelector) MergeTeamMemberSelector0(v TeamMemberSelector0) error
MergeTeamMemberSelector0 performs a merge with any union data inside the TeamMemberSelector, using the provided TeamMemberSelector0
func (*TeamMemberSelector) MergeTeamMemberSelector1 ¶ added in v0.2.3
func (t *TeamMemberSelector) MergeTeamMemberSelector1(v TeamMemberSelector1) error
MergeTeamMemberSelector1 performs a merge with any union data inside the TeamMemberSelector, using the provided TeamMemberSelector1
func (*TeamMemberSelector) UnmarshalJSON ¶ added in v0.2.3
func (t *TeamMemberSelector) UnmarshalJSON(b []byte) error
type TeamMemberSelector0 ¶ added in v0.2.3
type TeamMemberSelector0 struct {
// ById Select an existing team member by their user ID.
ById string `json:"ById"`
}
TeamMemberSelector0 Select an existing team member by their user ID.
type TeamMemberSelector1 ¶ added in v0.2.3
type TeamMemberSelector1 struct {
// ByEmail Select a pending team invite by email.
ByEmail string `json:"ByEmail"`
}
TeamMemberSelector1 Select a pending team invite by email.
type TeamResponseProto ¶
type TeamResponseProto struct {
Data struct {
Invites []TeamMemberInvite `json:"invites"`
Members []TeamMember `json:"members"`
Team Team `json:"team"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
TeamResponseProto defines model for TeamResponseProto.
type TeamSearchResultEntry ¶ added in v0.2.3
TeamSearchResultEntry defines model for TeamSearchResultEntry.
type TerminateInstancesJSONRequestBody ¶
type TerminateInstancesJSONRequestBody = TerminateInstancesRequestProto
TerminateInstancesJSONRequestBody defines body for TerminateInstances for application/json ContentType.
type TerminateInstancesRequestProto ¶
type TerminateInstancesRequestProto struct {
// Data Unchanged from `v055::TerminateInstancesRequest`. Re-declared for the
// same reason as [`ListInstancesRequest`] — the terminate response echoes
// back each instance in full, so it carries login info too.
Data struct {
Selector InstancesSelector `json:"selector"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
TerminateInstancesRequestProto defines model for TerminateInstancesRequestProto.
type TerminateInstancesResponse ¶
func ParseTerminateInstancesResponse ¶
func ParseTerminateInstancesResponse(rsp *http.Response) (*TerminateInstancesResponse, error)
ParseTerminateInstancesResponse parses an HTTP response from a TerminateInstancesWithResponse call
func (TerminateInstancesResponse) Status ¶
func (r TerminateInstancesResponse) Status() string
Status returns HTTPResponse.Status
func (TerminateInstancesResponse) StatusCode ¶
func (r TerminateInstancesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Transaction ¶
type Transaction struct {
// Amount Amount of money in cents, positive for debit and negative for credit
Amount int64 `json:"amount"`
// CreatedAt Date and time of the transaction
CreatedAt string `json:"created_at"`
Info TransactionInfo `json:"info"`
}
Transaction defines model for Transaction.
type TransactionArrayProto ¶
type TransactionArrayProto struct {
Data struct {
Transactions []Transaction `json:"transactions"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
TransactionArrayProto defines model for TransactionArrayProto.
type TransactionInfo ¶
type TransactionInfo struct {
// contains filtered or unexported fields
}
TransactionInfo defines model for TransactionInfo.
func (TransactionInfo) AsTransactionInfo0 ¶
func (t TransactionInfo) AsTransactionInfo0() (TransactionInfo0, error)
AsTransactionInfo0 returns the union data inside the TransactionInfo as a TransactionInfo0
func (TransactionInfo) AsTransactionInfo1 ¶
func (t TransactionInfo) AsTransactionInfo1() (TransactionInfo1, error)
AsTransactionInfo1 returns the union data inside the TransactionInfo as a TransactionInfo1
func (TransactionInfo) AsTransactionInfo2 ¶
func (t TransactionInfo) AsTransactionInfo2() (TransactionInfo2, error)
AsTransactionInfo2 returns the union data inside the TransactionInfo as a TransactionInfo2
func (TransactionInfo) AsTransactionInfo3 ¶
func (t TransactionInfo) AsTransactionInfo3() (TransactionInfo3, error)
AsTransactionInfo3 returns the union data inside the TransactionInfo as a TransactionInfo3
func (TransactionInfo) AsTransactionInfo4 ¶
func (t TransactionInfo) AsTransactionInfo4() (TransactionInfo4, error)
AsTransactionInfo4 returns the union data inside the TransactionInfo as a TransactionInfo4
func (TransactionInfo) AsTransactionInfo5 ¶
func (t TransactionInfo) AsTransactionInfo5() (TransactionInfo5, error)
AsTransactionInfo5 returns the union data inside the TransactionInfo as a TransactionInfo5
func (TransactionInfo) AsTransactionInfo6 ¶
func (t TransactionInfo) AsTransactionInfo6() (TransactionInfo6, error)
AsTransactionInfo6 returns the union data inside the TransactionInfo as a TransactionInfo6
func (TransactionInfo) AsTransactionInfo7 ¶ added in v0.2.0
func (t TransactionInfo) AsTransactionInfo7() (TransactionInfo7, error)
AsTransactionInfo7 returns the union data inside the TransactionInfo as a TransactionInfo7
func (*TransactionInfo) FromTransactionInfo0 ¶
func (t *TransactionInfo) FromTransactionInfo0(v TransactionInfo0) error
FromTransactionInfo0 overwrites any union data inside the TransactionInfo as the provided TransactionInfo0
func (*TransactionInfo) FromTransactionInfo1 ¶
func (t *TransactionInfo) FromTransactionInfo1(v TransactionInfo1) error
FromTransactionInfo1 overwrites any union data inside the TransactionInfo as the provided TransactionInfo1
func (*TransactionInfo) FromTransactionInfo2 ¶
func (t *TransactionInfo) FromTransactionInfo2(v TransactionInfo2) error
FromTransactionInfo2 overwrites any union data inside the TransactionInfo as the provided TransactionInfo2
func (*TransactionInfo) FromTransactionInfo3 ¶
func (t *TransactionInfo) FromTransactionInfo3(v TransactionInfo3) error
FromTransactionInfo3 overwrites any union data inside the TransactionInfo as the provided TransactionInfo3
func (*TransactionInfo) FromTransactionInfo4 ¶
func (t *TransactionInfo) FromTransactionInfo4(v TransactionInfo4) error
FromTransactionInfo4 overwrites any union data inside the TransactionInfo as the provided TransactionInfo4
func (*TransactionInfo) FromTransactionInfo5 ¶
func (t *TransactionInfo) FromTransactionInfo5(v TransactionInfo5) error
FromTransactionInfo5 overwrites any union data inside the TransactionInfo as the provided TransactionInfo5
func (*TransactionInfo) FromTransactionInfo6 ¶
func (t *TransactionInfo) FromTransactionInfo6(v TransactionInfo6) error
FromTransactionInfo6 overwrites any union data inside the TransactionInfo as the provided TransactionInfo6
func (*TransactionInfo) FromTransactionInfo7 ¶ added in v0.2.0
func (t *TransactionInfo) FromTransactionInfo7(v TransactionInfo7) error
FromTransactionInfo7 overwrites any union data inside the TransactionInfo as the provided TransactionInfo7
func (TransactionInfo) MarshalJSON ¶
func (t TransactionInfo) MarshalJSON() ([]byte, error)
func (*TransactionInfo) MergeTransactionInfo0 ¶
func (t *TransactionInfo) MergeTransactionInfo0(v TransactionInfo0) error
MergeTransactionInfo0 performs a merge with any union data inside the TransactionInfo, using the provided TransactionInfo0
func (*TransactionInfo) MergeTransactionInfo1 ¶
func (t *TransactionInfo) MergeTransactionInfo1(v TransactionInfo1) error
MergeTransactionInfo1 performs a merge with any union data inside the TransactionInfo, using the provided TransactionInfo1
func (*TransactionInfo) MergeTransactionInfo2 ¶
func (t *TransactionInfo) MergeTransactionInfo2(v TransactionInfo2) error
MergeTransactionInfo2 performs a merge with any union data inside the TransactionInfo, using the provided TransactionInfo2
func (*TransactionInfo) MergeTransactionInfo3 ¶
func (t *TransactionInfo) MergeTransactionInfo3(v TransactionInfo3) error
MergeTransactionInfo3 performs a merge with any union data inside the TransactionInfo, using the provided TransactionInfo3
func (*TransactionInfo) MergeTransactionInfo4 ¶
func (t *TransactionInfo) MergeTransactionInfo4(v TransactionInfo4) error
MergeTransactionInfo4 performs a merge with any union data inside the TransactionInfo, using the provided TransactionInfo4
func (*TransactionInfo) MergeTransactionInfo5 ¶
func (t *TransactionInfo) MergeTransactionInfo5(v TransactionInfo5) error
MergeTransactionInfo5 performs a merge with any union data inside the TransactionInfo, using the provided TransactionInfo5
func (*TransactionInfo) MergeTransactionInfo6 ¶
func (t *TransactionInfo) MergeTransactionInfo6(v TransactionInfo6) error
MergeTransactionInfo6 performs a merge with any union data inside the TransactionInfo, using the provided TransactionInfo6
func (*TransactionInfo) MergeTransactionInfo7 ¶ added in v0.2.0
func (t *TransactionInfo) MergeTransactionInfo7(v TransactionInfo7) error
MergeTransactionInfo7 performs a merge with any union data inside the TransactionInfo, using the provided TransactionInfo7
func (*TransactionInfo) UnmarshalJSON ¶
func (t *TransactionInfo) UnmarshalJSON(b []byte) error
type TransactionInfo0 ¶
type TransactionInfo0 struct {
Stripe StripeTransactionInfo `json:"Stripe"`
}
TransactionInfo0 User has deposited or withdrawn money to or from their account using Stripe
type TransactionInfo1 ¶
type TransactionInfo1 struct {
// Usage Money has been spent on using a service for a certain amount of time
Usage struct {
// Carryover Carryover from previous transaction included in the current transaction
Carryover []interface{} `json:"carryover"`
ReservationData *ReservationDates `json:"reservation_data,omitempty"`
// ResourceId ID of the resource providing the service
ResourceId string `json:"resource_id"`
// ResourceName Human-readable resource name (e.g. "bright-falcon-042" for instances, volume name for volumes)
ResourceName *string `json:"resource_name"`
ResourceType ResourceType `json:"resource_type"`
// Rounding Additional charge due to rounding included in the transaction
Rounding []interface{} `json:"rounding"`
// UsageMetadata JSON object with the usage data
UsageMetadata *string `json:"usage_metadata"`
} `json:"Usage"`
}
TransactionInfo1 Money has been spent on using a service for a certain amount of time
type TransactionInfo2 ¶
type TransactionInfo2 struct {
// Payout Payout to the provider for service usage
Payout struct {
// Carryover Carryover from previous transaction included in the current transaction
Carryover []interface{} `json:"carryover"`
// ResourceId ID of the resource providing the service
ResourceId string `json:"resource_id"`
// Rounding Additional charge due to rounding included in the transaction
Rounding []interface{} `json:"rounding"`
// UsageCost usage cost for which we're performing the payout
UsageCost *int64 `json:"usage_cost"`
// UsageMetadata JSON object with the usage data
UsageMetadata *string `json:"usage_metadata"`
} `json:"Payout"`
}
TransactionInfo2 Payout to the provider for service usage
type TransactionInfo3 ¶
type TransactionInfo3 struct {
// ServiceUsage Charge to the user account by external service
ServiceUsage struct {
// Carryover Carryover from previous transaction included in the current transaction
Carryover []interface{} `json:"carryover"`
// Rounding Additional charge due to rounding included in the transaction
Rounding []interface{} `json:"rounding"`
// Service Name of the service
Service string `json:"service"`
// UsageMetadata JSON object with the usage data
UsageMetadata *string `json:"usage_metadata"`
} `json:"ServiceUsage"`
}
TransactionInfo3 Charge to the user account by external service
type TransactionInfo4 ¶
type TransactionInfo4 struct {
// ServicePayout Payout to the provider for usage of external service
ServicePayout struct {
// Carryover Carryover from previous transaction included in the current transaction
Carryover []interface{} `json:"carryover"`
// Rounding Additional charge due to rounding included in the transaction
Rounding []interface{} `json:"rounding"`
// Service Name of the service
Service string `json:"service"`
// UsageCost usage cost for which we're performing the payout
UsageCost *int64 `json:"usage_cost"`
// UsageMetadata JSON object with the usage data
UsageMetadata *string `json:"usage_metadata"`
} `json:"ServicePayout"`
}
TransactionInfo4 Payout to the provider for usage of external service
type TransactionInfo5 ¶
type TransactionInfo5 struct {
// PromoCode Amount increase due to promo code
PromoCode struct {
// PromoCode The promo code that was used
PromoCode string `json:"promo_code"`
} `json:"PromoCode"`
}
TransactionInfo5 Amount increase due to promo code
type TransactionInfo6 ¶
type TransactionInfo6 struct {
// External External transaction, e.g. from or to a bank account
External struct {
// Description Description of the payout
Description string `json:"description"`
} `json:"External"`
}
TransactionInfo6 External transaction, e.g. from or to a bank account
type TransactionInfo7 ¶ added in v0.2.0
type TransactionInfo7 struct {
// PromoTransaction Promotional transaction, e.g., signup bonus
PromoTransaction struct {
// Description Description of the promo
Description string `json:"description"`
} `json:"PromoTransaction"`
}
TransactionInfo7 Promotional transaction, e.g., signup bonus
type UpdateActiveReservationJSONRequestBody ¶ added in v0.2.0
type UpdateActiveReservationJSONRequestBody = UpdateReservationRequestProto
UpdateActiveReservationJSONRequestBody defines body for UpdateActiveReservation for application/json ContentType.
type UpdateActiveReservationResponse ¶ added in v0.2.0
type UpdateActiveReservationResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *UpdateReservationResponseProto
}
func ParseUpdateActiveReservationResponse ¶ added in v0.2.0
func ParseUpdateActiveReservationResponse(rsp *http.Response) (*UpdateActiveReservationResponse, error)
ParseUpdateActiveReservationResponse parses an HTTP response from a UpdateActiveReservationWithResponse call
func (UpdateActiveReservationResponse) Status ¶ added in v0.2.0
func (r UpdateActiveReservationResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateActiveReservationResponse) StatusCode ¶ added in v0.2.0
func (r UpdateActiveReservationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateApiKeysJSONRequestBody ¶
type UpdateApiKeysJSONRequestBody = UpdateApiKeysRequestProto
UpdateApiKeysJSONRequestBody defines body for UpdateApiKeys for application/json ContentType.
type UpdateApiKeysRequestProto ¶
type UpdateApiKeysRequestProto struct {
Data struct {
// Active Enable/disable API key
Active *bool `json:"active"`
// Name Change API key name
Name *string `json:"name"`
Selector ApiKeySelector `json:"selector"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
UpdateApiKeysRequestProto defines model for UpdateApiKeysRequestProto.
type UpdateApiKeysResponse ¶
type UpdateApiKeysResponse struct {
Body []byte
HTTPResponse *http.Response
JSON204 *UpdateApiKeysResponseProto
}
func ParseUpdateApiKeysResponse ¶
func ParseUpdateApiKeysResponse(rsp *http.Response) (*UpdateApiKeysResponse, error)
ParseUpdateApiKeysResponse parses an HTTP response from a UpdateApiKeysWithResponse call
func (UpdateApiKeysResponse) Status ¶
func (r UpdateApiKeysResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateApiKeysResponse) StatusCode ¶
func (r UpdateApiKeysResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateApiKeysResponseProto ¶
type UpdateApiKeysResponseProto struct {
Data struct {
// Keys Information about the updated API keys with their operation status
Keys []KeyResult `json:"keys"`
Status ResponseStatus `json:"status"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
UpdateApiKeysResponseProto defines model for UpdateApiKeysResponseProto.
type UpdateAutoTopUpJSONRequestBody ¶ added in v0.2.4
type UpdateAutoTopUpJSONRequestBody = AutoTopUpUpdateRequestProto
UpdateAutoTopUpJSONRequestBody defines body for UpdateAutoTopUp for application/json ContentType.
type UpdateAutoTopUpResponse ¶ added in v0.2.4
type UpdateAutoTopUpResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *AutoTopUpStateProto
}
func ParseUpdateAutoTopUpResponse ¶ added in v0.2.4
func ParseUpdateAutoTopUpResponse(rsp *http.Response) (*UpdateAutoTopUpResponse, error)
ParseUpdateAutoTopUpResponse parses an HTTP response from a UpdateAutoTopUpWithResponse call
func (UpdateAutoTopUpResponse) Status ¶ added in v0.2.4
func (r UpdateAutoTopUpResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateAutoTopUpResponse) StatusCode ¶ added in v0.2.4
func (r UpdateAutoTopUpResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateCreditLimitJSONRequestBody ¶ added in v0.2.3
type UpdateCreditLimitJSONRequestBody = UpdateUsersCreditLimitRequestProto
UpdateCreditLimitJSONRequestBody defines body for UpdateCreditLimit for application/json ContentType.
type UpdateCreditLimitResponse ¶ added in v0.2.3
type UpdateCreditLimitResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *UpdateUsersCreditLimitResponseProto
}
func ParseUpdateCreditLimitResponse ¶ added in v0.2.3
func ParseUpdateCreditLimitResponse(rsp *http.Response) (*UpdateCreditLimitResponse, error)
ParseUpdateCreditLimitResponse parses an HTTP response from a UpdateCreditLimitWithResponse call
func (UpdateCreditLimitResponse) Status ¶ added in v0.2.3
func (r UpdateCreditLimitResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateCreditLimitResponse) StatusCode ¶ added in v0.2.3
func (r UpdateCreditLimitResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateInstanceTypeJSONRequestBody ¶ added in v0.2.0
type UpdateInstanceTypeJSONRequestBody = UpdateInstanceTypeRequestProto
UpdateInstanceTypeJSONRequestBody defines body for UpdateInstanceType for application/json ContentType.
type UpdateInstanceTypeRequestProto ¶ added in v0.2.0
type UpdateInstanceTypeRequestProto struct {
Data struct {
InstanceType InstanceTypeInfo `json:"instance_type"`
Selector InstanceTypeSelector `json:"selector"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
UpdateInstanceTypeRequestProto defines model for UpdateInstanceTypeRequestProto.
type UpdateInstanceTypeResponse ¶ added in v0.2.0
type UpdateInstanceTypeResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *InstanceTypeResponseProto
}
func ParseUpdateInstanceTypeResponse ¶ added in v0.2.0
func ParseUpdateInstanceTypeResponse(rsp *http.Response) (*UpdateInstanceTypeResponse, error)
ParseUpdateInstanceTypeResponse parses an HTTP response from a UpdateInstanceTypeWithResponse call
func (UpdateInstanceTypeResponse) Status ¶ added in v0.2.0
func (r UpdateInstanceTypeResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateInstanceTypeResponse) StatusCode ¶ added in v0.2.0
func (r UpdateInstanceTypeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateInstanceVariantJSONRequestBody ¶ added in v0.2.0
type UpdateInstanceVariantJSONRequestBody = UpdateInstanceVariantRequestProto
UpdateInstanceVariantJSONRequestBody defines body for UpdateInstanceVariant for application/json ContentType.
type UpdateInstanceVariantRequestProto ¶ added in v0.2.0
type UpdateInstanceVariantRequestProto struct {
Data struct {
Selector InstanceVariantSelector `json:"selector"`
Variant InstanceVariantRawInfo `json:"variant"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
UpdateInstanceVariantRequestProto defines model for UpdateInstanceVariantRequestProto.
type UpdateInstanceVariantResponse ¶ added in v0.2.0
type UpdateInstanceVariantResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *InstanceVariantResponseProto
}
func ParseUpdateInstanceVariantResponse ¶ added in v0.2.0
func ParseUpdateInstanceVariantResponse(rsp *http.Response) (*UpdateInstanceVariantResponse, error)
ParseUpdateInstanceVariantResponse parses an HTTP response from a UpdateInstanceVariantWithResponse call
func (UpdateInstanceVariantResponse) Status ¶ added in v0.2.0
func (r UpdateInstanceVariantResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateInstanceVariantResponse) StatusCode ¶ added in v0.2.0
func (r UpdateInstanceVariantResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateNetworkJSONRequestBody ¶ added in v0.2.0
type UpdateNetworkJSONRequestBody = UpdateNetworkRequestProto
UpdateNetworkJSONRequestBody defines body for UpdateNetwork for application/json ContentType.
type UpdateNetworkRequestProto ¶ added in v0.2.0
type UpdateNetworkRequestProto struct {
Data struct {
// Selector Selector for identifying a network to update
Selector UpdateNetworkSelector `json:"selector"`
// Team Selector for team assignment
Team TeamAssignment `json:"team"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
UpdateNetworkRequestProto defines model for UpdateNetworkRequestProto.
type UpdateNetworkResponse ¶ added in v0.2.0
type UpdateNetworkResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *UpdateNetworkResponseProto
}
func ParseUpdateNetworkResponse ¶ added in v0.2.0
func ParseUpdateNetworkResponse(rsp *http.Response) (*UpdateNetworkResponse, error)
ParseUpdateNetworkResponse parses an HTTP response from a UpdateNetworkWithResponse call
func (UpdateNetworkResponse) Status ¶ added in v0.2.0
func (r UpdateNetworkResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateNetworkResponse) StatusCode ¶ added in v0.2.0
func (r UpdateNetworkResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateNetworkResponseProto ¶ added in v0.2.0
type UpdateNetworkResponseProto struct {
Data struct {
// UpdatedIds IDs of updated networks
UpdatedIds []string `json:"updated_ids"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
UpdateNetworkResponseProto defines model for UpdateNetworkResponseProto.
type UpdateNetworkSelector ¶ added in v0.2.0
type UpdateNetworkSelector struct {
// contains filtered or unexported fields
}
UpdateNetworkSelector Selector for identifying a network to update
func (UpdateNetworkSelector) AsUpdateNetworkSelector0 ¶ added in v0.2.0
func (t UpdateNetworkSelector) AsUpdateNetworkSelector0() (UpdateNetworkSelector0, error)
AsUpdateNetworkSelector0 returns the union data inside the UpdateNetworkSelector as a UpdateNetworkSelector0
func (*UpdateNetworkSelector) FromUpdateNetworkSelector0 ¶ added in v0.2.0
func (t *UpdateNetworkSelector) FromUpdateNetworkSelector0(v UpdateNetworkSelector0) error
FromUpdateNetworkSelector0 overwrites any union data inside the UpdateNetworkSelector as the provided UpdateNetworkSelector0
func (UpdateNetworkSelector) MarshalJSON ¶ added in v0.2.0
func (t UpdateNetworkSelector) MarshalJSON() ([]byte, error)
func (*UpdateNetworkSelector) MergeUpdateNetworkSelector0 ¶ added in v0.2.0
func (t *UpdateNetworkSelector) MergeUpdateNetworkSelector0(v UpdateNetworkSelector0) error
MergeUpdateNetworkSelector0 performs a merge with any union data inside the UpdateNetworkSelector, using the provided UpdateNetworkSelector0
func (*UpdateNetworkSelector) UnmarshalJSON ¶ added in v0.2.0
func (t *UpdateNetworkSelector) UnmarshalJSON(b []byte) error
type UpdateNetworkSelector0 ¶ added in v0.2.0
type UpdateNetworkSelector0 struct {
// ByDatacenterAndName Select network by datacenter and name
ByDatacenterAndName struct {
Datacenter string `json:"datacenter"`
Network string `json:"network"`
} `json:"ByDatacenterAndName"`
}
UpdateNetworkSelector0 Select network by datacenter and name
type UpdateProviderNodeInstanceTypeJSONRequestBody ¶ added in v0.2.0
type UpdateProviderNodeInstanceTypeJSONRequestBody = UpdateProviderNodeInstanceTypeRequestProto
UpdateProviderNodeInstanceTypeJSONRequestBody defines body for UpdateProviderNodeInstanceType for application/json ContentType.
type UpdateProviderNodeInstanceTypeRequestProto ¶ added in v0.2.0
type UpdateProviderNodeInstanceTypeRequestProto struct {
Data struct {
// InstanceTypeName Instance type name
InstanceTypeName string `json:"instance_type_name"`
// NodeId Node ID
NodeId string `json:"node_id"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
UpdateProviderNodeInstanceTypeRequestProto defines model for UpdateProviderNodeInstanceTypeRequestProto.
type UpdateProviderNodeInstanceTypeResponse ¶ added in v0.2.0
func ParseUpdateProviderNodeInstanceTypeResponse ¶ added in v0.2.0
func ParseUpdateProviderNodeInstanceTypeResponse(rsp *http.Response) (*UpdateProviderNodeInstanceTypeResponse, error)
ParseUpdateProviderNodeInstanceTypeResponse parses an HTTP response from a UpdateProviderNodeInstanceTypeWithResponse call
func (UpdateProviderNodeInstanceTypeResponse) Status ¶ added in v0.2.0
func (r UpdateProviderNodeInstanceTypeResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateProviderNodeInstanceTypeResponse) StatusCode ¶ added in v0.2.0
func (r UpdateProviderNodeInstanceTypeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateReservationRequestProto ¶ added in v0.2.0
type UpdateReservationRequestProto struct {
Data struct {
// ExecutorId ID of the executor whose active reservation should be extended
ExecutorId string `json:"executor_id"`
// ReservationTypeId ID of the reservation type determining how much time to add
ReservationTypeId string `json:"reservation_type_id"`
// TeamId Optional team ID
TeamId *string `json:"team_id"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
UpdateReservationRequestProto defines model for UpdateReservationRequestProto.
type UpdateReservationResponseProto ¶ added in v0.2.0
type UpdateReservationResponseProto struct {
Data struct {
// ReservationId ID of the updated active reservation
ReservationId string `json:"reservation_id"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
UpdateReservationResponseProto defines model for UpdateReservationResponseProto.
type UpdateTeamMembershipJSONRequestBody ¶
type UpdateTeamMembershipJSONRequestBody = UpdateTeamMembershipRequestProto
UpdateTeamMembershipJSONRequestBody defines body for UpdateTeamMembership for application/json ContentType.
type UpdateTeamMembershipRequestProto ¶
type UpdateTeamMembershipRequestProto struct {
// Data Request to update the role of a team member or pending invite.
Data struct {
Role TeamRole `json:"role"`
// Selector Selector for identifying a team member or pending invite.
Selector TeamMemberSelector `json:"selector"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
UpdateTeamMembershipRequestProto defines model for UpdateTeamMembershipRequestProto.
type UpdateTeamMembershipResponse ¶
func ParseUpdateTeamMembershipResponse ¶
func ParseUpdateTeamMembershipResponse(rsp *http.Response) (*UpdateTeamMembershipResponse, error)
ParseUpdateTeamMembershipResponse parses an HTTP response from a UpdateTeamMembershipWithResponse call
func (UpdateTeamMembershipResponse) Status ¶
func (r UpdateTeamMembershipResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateTeamMembershipResponse) StatusCode ¶
func (r UpdateTeamMembershipResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateUsersCreditLimitRequestProto ¶ added in v0.2.3
type UpdateUsersCreditLimitRequestProto struct {
Data struct {
// CreditLimit Credit limit in currency units (cents). Ignored when `unlimited` is true.
CreditLimit *int64 `json:"credit_limit"`
// Selector Selector for financial operations targeting specific user or team accounts by ID.
Selector AccountTargetSelector `json:"selector"`
// Unlimited Use unlimited credit limit.
Unlimited *bool `json:"unlimited,omitempty"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
UpdateUsersCreditLimitRequestProto defines model for UpdateUsersCreditLimitRequestProto.
type UpdateUsersCreditLimitResponseProto ¶ added in v0.2.3
type UpdateUsersCreditLimitResponseProto struct {
Data struct {
UpdatedIds []string `json:"updated_ids"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
UpdateUsersCreditLimitResponseProto defines model for UpdateUsersCreditLimitResponseProto.
type UpdateVolumeJSONRequestBody ¶ added in v0.2.0
type UpdateVolumeJSONRequestBody = UpdateVolumeRequestProto
UpdateVolumeJSONRequestBody defines body for UpdateVolume for application/json ContentType.
type UpdateVolumeRequestProto ¶ added in v0.2.0
type UpdateVolumeRequestProto struct {
Data struct {
// Name New volume name
Name string `json:"name"`
// TeamId Team ID in case of team volumes
TeamId *string `json:"team_id"`
// VolumeId Volume ID
VolumeId string `json:"volume_id"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
UpdateVolumeRequestProto defines model for UpdateVolumeRequestProto.
type UpdateVolumeResponse ¶ added in v0.2.0
type UpdateVolumeResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *UpdateVolumeResponseProto
}
func ParseUpdateVolumeResponse ¶ added in v0.2.0
func ParseUpdateVolumeResponse(rsp *http.Response) (*UpdateVolumeResponse, error)
ParseUpdateVolumeResponse parses an HTTP response from a UpdateVolumeWithResponse call
func (UpdateVolumeResponse) Status ¶ added in v0.2.0
func (r UpdateVolumeResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateVolumeResponse) StatusCode ¶ added in v0.2.0
func (r UpdateVolumeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateVolumeResponseProto ¶ added in v0.2.0
type UpdateVolumeResponseProto struct {
Data struct {
Volume VolumeInfo `json:"volume"`
} `json:"data"`
// Version The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.
Version string `json:"version"`
}
UpdateVolumeResponseProto defines model for UpdateVolumeResponseProto.
type UserAccountInfo ¶ added in v0.2.3
type UserAccountInfo struct {
// Balance Account balance in currency units (cents).
Balance int64 `json:"balance"`
// CreditLimit Account credit limit in currency units (cents).
CreditLimit int64 `json:"credit_limit"`
// InstanceCount Number of active instances owned by this user.
InstanceCount int32 `json:"instance_count"`
// IsUnlimited Whether the credit limit is unlimited.
IsUnlimited bool `json:"is_unlimited"`
// TotalSpent Total amount spent in currency units (cents).
TotalSpent int64 `json:"total_spent"`
}
UserAccountInfo Financial/account information for a user (admin/provider).
type UserDeletionAnonymizedCounts ¶ added in v0.2.3
type UserDeletionAnonymizedCounts struct {
FraudActivities int64 `json:"fraud_activities"`
ServiceUsagePayoutTxNulled int64 `json:"service_usage_payout_tx_nulled"`
TeamApiKeysCreatorNulled int64 `json:"team_api_keys_creator_nulled"`
TeamMemberships int64 `json:"team_memberships"`
UsagePayoutTxNulled int64 `json:"usage_payout_tx_nulled"`
}
UserDeletionAnonymizedCounts defines model for UserDeletionAnonymizedCounts.
type UserDeletionHardCounts ¶ added in v0.2.3
type UserDeletionHardCounts struct {
ApiKeys int64 `json:"api_keys"`
Recipes int64 `json:"recipes"`
SshKeys int64 `json:"ssh_keys"`
Volumes int64 `json:"volumes"`
}
UserDeletionHardCounts defines model for UserDeletionHardCounts.
type UserDeletionReport ¶ added in v0.2.3
type UserDeletionReport struct {
Anonymized UserDeletionAnonymizedCounts `json:"anonymized"`
// CephCleanupFailures Volumes whose Ceph RBD image delete failed; DB row was still removed.
CephCleanupFailures []string `json:"ceph_cleanup_failures"`
FinishedAt string `json:"finished_at"`
HardDeleted UserDeletionHardCounts `json:"hard_deleted"`
Reason string `json:"reason"`
RequesterAdminId string `json:"requester_admin_id"`
RetainedAccountId *string `json:"retained_account_id"`
StartedAt string `json:"started_at"`
UserId string `json:"user_id"`
}
UserDeletionReport defines model for UserDeletionReport.
type UserInfo ¶ added in v0.2.3
type UserInfo struct {
// AccountInfo Financial/account information for a user (admin/provider).
AccountInfo *UserAccountInfo `json:"account_info,omitempty"`
Email string `json:"email"`
Id string `json:"id"`
LastLoginAt *string `json:"last_login_at"`
Name *string `json:"name"`
RegisteredAt string `json:"registered_at"`
}
UserInfo Unified user response returned from /users/list.
type UserSelector ¶ added in v0.2.3
type UserSelector struct {
// contains filtered or unexported fields
}
UserSelector defines model for UserSelector.
func (UserSelector) AsUserSelector0 ¶ added in v0.2.3
func (t UserSelector) AsUserSelector0() (UserSelector0, error)
AsUserSelector0 returns the union data inside the UserSelector as a UserSelector0
func (UserSelector) AsUserSelector1 ¶ added in v0.2.3
func (t UserSelector) AsUserSelector1() (UserSelector1, error)
AsUserSelector1 returns the union data inside the UserSelector as a UserSelector1
func (UserSelector) AsUserSelector2 ¶ added in v0.2.3
func (t UserSelector) AsUserSelector2() (UserSelector2, error)
AsUserSelector2 returns the union data inside the UserSelector as a UserSelector2
func (UserSelector) AsUserSelector3 ¶ added in v0.2.3
func (t UserSelector) AsUserSelector3() (UserSelector3, error)
AsUserSelector3 returns the union data inside the UserSelector as a UserSelector3
func (*UserSelector) FromUserSelector0 ¶ added in v0.2.3
func (t *UserSelector) FromUserSelector0(v UserSelector0) error
FromUserSelector0 overwrites any union data inside the UserSelector as the provided UserSelector0
func (*UserSelector) FromUserSelector1 ¶ added in v0.2.3
func (t *UserSelector) FromUserSelector1(v UserSelector1) error
FromUserSelector1 overwrites any union data inside the UserSelector as the provided UserSelector1
func (*UserSelector) FromUserSelector2 ¶ added in v0.2.3
func (t *UserSelector) FromUserSelector2(v UserSelector2) error
FromUserSelector2 overwrites any union data inside the UserSelector as the provided UserSelector2
func (*UserSelector) FromUserSelector3 ¶ added in v0.2.3
func (t *UserSelector) FromUserSelector3(v UserSelector3) error
FromUserSelector3 overwrites any union data inside the UserSelector as the provided UserSelector3
func (UserSelector) MarshalJSON ¶ added in v0.2.3
func (t UserSelector) MarshalJSON() ([]byte, error)
func (*UserSelector) MergeUserSelector0 ¶ added in v0.2.3
func (t *UserSelector) MergeUserSelector0(v UserSelector0) error
MergeUserSelector0 performs a merge with any union data inside the UserSelector, using the provided UserSelector0
func (*UserSelector) MergeUserSelector1 ¶ added in v0.2.3
func (t *UserSelector) MergeUserSelector1(v UserSelector1) error
MergeUserSelector1 performs a merge with any union data inside the UserSelector, using the provided UserSelector1
func (*UserSelector) MergeUserSelector2 ¶ added in v0.2.3
func (t *UserSelector) MergeUserSelector2(v UserSelector2) error
MergeUserSelector2 performs a merge with any union data inside the UserSelector, using the provided UserSelector2
func (*UserSelector) MergeUserSelector3 ¶ added in v0.2.3
func (t *UserSelector) MergeUserSelector3(v UserSelector3) error
MergeUserSelector3 performs a merge with any union data inside the UserSelector, using the provided UserSelector3
func (*UserSelector) UnmarshalJSON ¶ added in v0.2.3
func (t *UserSelector) UnmarshalJSON(b []byte) error
type UserSelector0 ¶ added in v0.2.3
type UserSelector0 struct {
ById []string `json:"ById"`
}
UserSelector0 defines model for .
type UserSelector1 ¶ added in v0.2.3
type UserSelector1 struct {
// ByProvider Filter to users active on the given provider's nodes.
ByProvider string `json:"ByProvider"`
}
UserSelector1 Filter to users active on the given provider's nodes.
type UserSelector2 ¶ added in v0.2.3
type UserSelector2 struct {
// ByMinSpend Filter to users whose total spend is at least this value (cents).
ByMinSpend int64 `json:"ByMinSpend"`
}
UserSelector2 Filter to users whose total spend is at least this value (cents).
type UserSelector3 ¶ added in v0.2.3
type UserSelector3 string
UserSelector3 Filter to users that currently have running executors (instances).
const (
UserSelector3ByActiveExecutors UserSelector3 = "ByActiveExecutors"
)
Defines values for UserSelector3.
type VerifyEmailParams ¶ added in v0.2.0
type VerifyEmailParams struct {
// Token Email verification token
Token string `form:"token" json:"token"`
}
VerifyEmailParams defines parameters for VerifyEmail.
type VerifyEmailResponse ¶ added in v0.2.0
func ParseVerifyEmailResponse ¶ added in v0.2.0
func ParseVerifyEmailResponse(rsp *http.Response) (*VerifyEmailResponse, error)
ParseVerifyEmailResponse parses an HTTP response from a VerifyEmailWithResponse call
func (VerifyEmailResponse) Status ¶ added in v0.2.0
func (r VerifyEmailResponse) Status() string
Status returns HTTPResponse.Status
func (VerifyEmailResponse) StatusCode ¶ added in v0.2.0
func (r VerifyEmailResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type VirtDomainState ¶ added in v0.2.0
type VirtDomainState string
VirtDomainState defines model for VirtDomainState.
const ( Blocked VirtDomainState = "Blocked" Crashed VirtDomainState = "Crashed" NoState VirtDomainState = "NoState" PMSuspended VirtDomainState = "PMSuspended" Paused VirtDomainState = "Paused" Running VirtDomainState = "Running" Shutdown VirtDomainState = "Shutdown" Shutoff VirtDomainState = "Shutoff" )
Defines values for VirtDomainState.
type VolumeInfo ¶ added in v0.2.0
type VolumeInfo struct {
// AttachedExecutorId Executor ID if the volume is mounted to one
AttachedExecutorId string `json:"attached_executor_id"`
// BillingExempt Whether this volume is exempt from billing (admin-created)
BillingExempt *bool `json:"billing_exempt,omitempty"`
// CephImage Ceph image name
CephImage string `json:"ceph_image"`
// CephPool Ceph pool name
CephPool string `json:"ceph_pool"`
// CostPerMonth Cost per month in currency units (before hourly conversion)
CostPerMonth int64 `json:"cost_per_month"`
// CreatedAt Creation timestamp
CreatedAt string `json:"created_at"`
// DatacenterName Datacenter name where the volume is located (first datacenter)
DatacenterName string `json:"datacenter_name"`
// Datacenters All datacenters where the volume is accessible
Datacenters []string `json:"datacenters"`
// Description Optional description
Description *string `json:"description"`
// DiskUsage Volume disk usage in bytes
DiskUsage int64 `json:"disk_usage"`
// Id Volume ID
Id string `json:"id"`
// MountPath Mount path in the instance
MountPath *string `json:"mount_path"`
// Name Volume name
Name string `json:"name"`
// SizeGb Volume size in GB
SizeGb int32 `json:"size_gb"`
Status VolumeStatus `json:"status"`
// UpdatedAt Last update timestamp
UpdatedAt string `json:"updated_at"`
}
VolumeInfo defines model for VolumeInfo.
type VolumeMount ¶ added in v0.2.0
type VolumeMount struct {
// MountPath Mount path in the instance
MountPath *string `json:"mount_path"`
Volume VolumeSelector `json:"volume"`
}
VolumeMount defines model for VolumeMount.
type VolumeSelector ¶ added in v0.2.0
type VolumeSelector struct {
// contains filtered or unexported fields
}
VolumeSelector defines model for VolumeSelector.
func (VolumeSelector) AsVolumeSelector0 ¶ added in v0.2.0
func (t VolumeSelector) AsVolumeSelector0() (VolumeSelector0, error)
AsVolumeSelector0 returns the union data inside the VolumeSelector as a VolumeSelector0
func (VolumeSelector) AsVolumeSelector1 ¶ added in v0.2.0
func (t VolumeSelector) AsVolumeSelector1() (VolumeSelector1, error)
AsVolumeSelector1 returns the union data inside the VolumeSelector as a VolumeSelector1
func (VolumeSelector) AsVolumeSelector2 ¶ added in v0.2.0
func (t VolumeSelector) AsVolumeSelector2() (VolumeSelector2, error)
AsVolumeSelector2 returns the union data inside the VolumeSelector as a VolumeSelector2
func (*VolumeSelector) FromVolumeSelector0 ¶ added in v0.2.0
func (t *VolumeSelector) FromVolumeSelector0(v VolumeSelector0) error
FromVolumeSelector0 overwrites any union data inside the VolumeSelector as the provided VolumeSelector0
func (*VolumeSelector) FromVolumeSelector1 ¶ added in v0.2.0
func (t *VolumeSelector) FromVolumeSelector1(v VolumeSelector1) error
FromVolumeSelector1 overwrites any union data inside the VolumeSelector as the provided VolumeSelector1
func (*VolumeSelector) FromVolumeSelector2 ¶ added in v0.2.0
func (t *VolumeSelector) FromVolumeSelector2(v VolumeSelector2) error
FromVolumeSelector2 overwrites any union data inside the VolumeSelector as the provided VolumeSelector2
func (VolumeSelector) MarshalJSON ¶ added in v0.2.0
func (t VolumeSelector) MarshalJSON() ([]byte, error)
func (*VolumeSelector) MergeVolumeSelector0 ¶ added in v0.2.0
func (t *VolumeSelector) MergeVolumeSelector0(v VolumeSelector0) error
MergeVolumeSelector0 performs a merge with any union data inside the VolumeSelector, using the provided VolumeSelector0
func (*VolumeSelector) MergeVolumeSelector1 ¶ added in v0.2.0
func (t *VolumeSelector) MergeVolumeSelector1(v VolumeSelector1) error
MergeVolumeSelector1 performs a merge with any union data inside the VolumeSelector, using the provided VolumeSelector1
func (*VolumeSelector) MergeVolumeSelector2 ¶ added in v0.2.0
func (t *VolumeSelector) MergeVolumeSelector2(v VolumeSelector2) error
MergeVolumeSelector2 performs a merge with any union data inside the VolumeSelector, using the provided VolumeSelector2
func (*VolumeSelector) UnmarshalJSON ¶ added in v0.2.0
func (t *VolumeSelector) UnmarshalJSON(b []byte) error
type VolumeSelector0 ¶ added in v0.2.0
type VolumeSelector0 struct {
// ByName Select volumes by name
ByName []string `json:"ByName"`
}
VolumeSelector0 Select volumes by name
type VolumeSelector1 ¶ added in v0.2.0
type VolumeSelector1 struct {
// ById Select volumes by ID
ById []string `json:"ById"`
}
VolumeSelector1 Select volumes by ID
type VolumeSelector2 ¶ added in v0.2.0
type VolumeSelector2 string
VolumeSelector2 Select all volumes
const (
All VolumeSelector2 = "All"
)
Defines values for VolumeSelector2.
type VolumeStatus ¶ added in v0.2.0
type VolumeStatus string
VolumeStatus defines model for VolumeStatus.
const ( Attached VolumeStatus = "Attached" Available VolumeStatus = "Available" Creating VolumeStatus = "Creating" Deleting VolumeStatus = "Deleting" Error VolumeStatus = "Error" )
Defines values for VolumeStatus.
type VolumeTypeAvailability ¶ added in v0.2.0
type VolumeTypeAvailability struct {
// CostPerGbPerMonth Cost per GB per month in cents
CostPerGbPerMonth int64 `json:"cost_per_gb_per_month"`
// Name Volume type name
Name string `json:"name"`
}
VolumeTypeAvailability defines model for VolumeTypeAvailability.