spec

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package spec contains types and an HTTP client generated from the public OpenAPI specification at docs/api-reference/openapi.yaml.

Do not edit spec.gen.go by hand — run `make generate` from the raff-go repo root to regenerate it after changing the spec.

Package spec provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.6.0 DO NOT EDIT.

Index

Constants

View Source
const (
	ApiKeyAuthScopes = "ApiKeyAuth.Scopes"
)

Variables

This section is empty.

Functions

func NewAddMemberRequest

func NewAddMemberRequest(server string, body AddMemberJSONRequestBody) (*http.Request, error)

NewAddMemberRequest calls the generic AddMember builder with application/json body

func NewAddMemberRequestWithBody

func NewAddMemberRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewAddMemberRequestWithBody generates requests for AddMember with any type of body

func NewAddProjectMemberRequest

func NewAddProjectMemberRequest(server string, id ProjectIDPath, body AddProjectMemberJSONRequestBody) (*http.Request, error)

NewAddProjectMemberRequest calls the generic AddProjectMember builder with application/json body

func NewAddProjectMemberRequestWithBody

func NewAddProjectMemberRequestWithBody(server string, id ProjectIDPath, contentType string, body io.Reader) (*http.Request, error)

NewAddProjectMemberRequestWithBody generates requests for AddProjectMember with any type of body

func NewAddVMTagRequest

func NewAddVMTagRequest(server string, id VMIDPath, params *AddVMTagParams, body AddVMTagJSONRequestBody) (*http.Request, error)

NewAddVMTagRequest calls the generic AddVMTag builder with application/json body

func NewAddVMTagRequestWithBody

func NewAddVMTagRequestWithBody(server string, id VMIDPath, params *AddVMTagParams, contentType string, body io.Reader) (*http.Request, error)

NewAddVMTagRequestWithBody generates requests for AddVMTag with any type of body

func NewAppendVMNoteRequest

func NewAppendVMNoteRequest(server string, id VMIDPath, pType AppendVMNoteParamsType, params *AppendVMNoteParams, body AppendVMNoteJSONRequestBody) (*http.Request, error)

NewAppendVMNoteRequest calls the generic AppendVMNote builder with application/json body

func NewAppendVMNoteRequestWithBody

func NewAppendVMNoteRequestWithBody(server string, id VMIDPath, pType AppendVMNoteParamsType, params *AppendVMNoteParams, contentType string, body io.Reader) (*http.Request, error)

NewAppendVMNoteRequestWithBody generates requests for AppendVMNote with any type of body

func NewAttachVMIPRequest

func NewAttachVMIPRequest(server string, id VMIDPath, params *AttachVMIPParams, body AttachVMIPJSONRequestBody) (*http.Request, error)

NewAttachVMIPRequest calls the generic AttachVMIP builder with application/json body

func NewAttachVMIPRequestWithBody

func NewAttachVMIPRequestWithBody(server string, id VMIDPath, params *AttachVMIPParams, contentType string, body io.Reader) (*http.Request, error)

NewAttachVMIPRequestWithBody generates requests for AttachVMIP with any type of body

func NewAttachVMSecurityGroupRequest

func NewAttachVMSecurityGroupRequest(server string, id VMIDPath, params *AttachVMSecurityGroupParams, body AttachVMSecurityGroupJSONRequestBody) (*http.Request, error)

NewAttachVMSecurityGroupRequest calls the generic AttachVMSecurityGroup builder with application/json body

func NewAttachVMSecurityGroupRequestWithBody

func NewAttachVMSecurityGroupRequestWithBody(server string, id VMIDPath, params *AttachVMSecurityGroupParams, contentType string, body io.Reader) (*http.Request, error)

NewAttachVMSecurityGroupRequestWithBody generates requests for AttachVMSecurityGroup with any type of body

func NewAttachVMToVPCRequest

func NewAttachVMToVPCRequest(server string, id VMIDPath, params *AttachVMToVPCParams, body AttachVMToVPCJSONRequestBody) (*http.Request, error)

NewAttachVMToVPCRequest calls the generic AttachVMToVPC builder with application/json body

func NewAttachVMToVPCRequestWithBody

func NewAttachVMToVPCRequestWithBody(server string, id VMIDPath, params *AttachVMToVPCParams, contentType string, body io.Reader) (*http.Request, error)

NewAttachVMToVPCRequestWithBody generates requests for AttachVMToVPC with any type of body

func NewAttachVolumeRequest

func NewAttachVolumeRequest(server string, id int, params *AttachVolumeParams, body AttachVolumeJSONRequestBody) (*http.Request, error)

NewAttachVolumeRequest calls the generic AttachVolume builder with application/json body

func NewAttachVolumeRequestWithBody

func NewAttachVolumeRequestWithBody(server string, id int, params *AttachVolumeParams, contentType string, body io.Reader) (*http.Request, error)

NewAttachVolumeRequestWithBody generates requests for AttachVolume with any type of body

func NewCancelInvitationRequest

func NewCancelInvitationRequest(server string, id openapi_types.UUID) (*http.Request, error)

NewCancelInvitationRequest generates requests for CancelInvitation

func NewChangeIPRequest

func NewChangeIPRequest(server string, id IPIDPath, params *ChangeIPParams) (*http.Request, error)

NewChangeIPRequest generates requests for ChangeIP

func NewCreateAPIKeyRequest

func NewCreateAPIKeyRequest(server string, body CreateAPIKeyJSONRequestBody) (*http.Request, error)

NewCreateAPIKeyRequest calls the generic CreateAPIKey builder with application/json body

func NewCreateAPIKeyRequestWithBody

func NewCreateAPIKeyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateAPIKeyRequestWithBody generates requests for CreateAPIKey with any type of body

func NewCreateAccountInvitationRequest

func NewCreateAccountInvitationRequest(server string, body CreateAccountInvitationJSONRequestBody) (*http.Request, error)

NewCreateAccountInvitationRequest calls the generic CreateAccountInvitation builder with application/json body

func NewCreateAccountInvitationRequestWithBody

func NewCreateAccountInvitationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateAccountInvitationRequestWithBody generates requests for CreateAccountInvitation with any type of body

func NewCreateBackupRequest

func NewCreateBackupRequest(server string, params *CreateBackupParams, body CreateBackupJSONRequestBody) (*http.Request, error)

NewCreateBackupRequest calls the generic CreateBackup builder with application/json body

func NewCreateBackupRequestWithBody

func NewCreateBackupRequestWithBody(server string, params *CreateBackupParams, contentType string, body io.Reader) (*http.Request, error)

NewCreateBackupRequestWithBody generates requests for CreateBackup with any type of body

func NewCreateBackupScheduleRequest

func NewCreateBackupScheduleRequest(server string, params *CreateBackupScheduleParams, body CreateBackupScheduleJSONRequestBody) (*http.Request, error)

NewCreateBackupScheduleRequest calls the generic CreateBackupSchedule builder with application/json body

func NewCreateBackupScheduleRequestWithBody

func NewCreateBackupScheduleRequestWithBody(server string, params *CreateBackupScheduleParams, contentType string, body io.Reader) (*http.Request, error)

NewCreateBackupScheduleRequestWithBody generates requests for CreateBackupSchedule with any type of body

func NewCreateProjectInvitationRequest

func NewCreateProjectInvitationRequest(server string, id ProjectIDPath, body CreateProjectInvitationJSONRequestBody) (*http.Request, error)

NewCreateProjectInvitationRequest calls the generic CreateProjectInvitation builder with application/json body

func NewCreateProjectInvitationRequestWithBody

func NewCreateProjectInvitationRequestWithBody(server string, id ProjectIDPath, contentType string, body io.Reader) (*http.Request, error)

NewCreateProjectInvitationRequestWithBody generates requests for CreateProjectInvitation with any type of body

func NewCreateProjectRequest

func NewCreateProjectRequest(server string, body CreateProjectJSONRequestBody) (*http.Request, error)

NewCreateProjectRequest calls the generic CreateProject builder with application/json body

func NewCreateProjectRequestWithBody

func NewCreateProjectRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateProjectRequestWithBody generates requests for CreateProject with any type of body

func NewCreateRoleRequest

func NewCreateRoleRequest(server string, body CreateRoleJSONRequestBody) (*http.Request, error)

NewCreateRoleRequest calls the generic CreateRole builder with application/json body

func NewCreateRoleRequestWithBody

func NewCreateRoleRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateRoleRequestWithBody generates requests for CreateRole with any type of body

func NewCreateSSHKeyRequest

func NewCreateSSHKeyRequest(server string, body CreateSSHKeyJSONRequestBody) (*http.Request, error)

NewCreateSSHKeyRequest calls the generic CreateSSHKey builder with application/json body

func NewCreateSSHKeyRequestWithBody

func NewCreateSSHKeyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateSSHKeyRequestWithBody generates requests for CreateSSHKey with any type of body

func NewCreateSecurityGroupRequest

func NewCreateSecurityGroupRequest(server string, params *CreateSecurityGroupParams, body CreateSecurityGroupJSONRequestBody) (*http.Request, error)

NewCreateSecurityGroupRequest calls the generic CreateSecurityGroup builder with application/json body

func NewCreateSecurityGroupRequestWithBody

func NewCreateSecurityGroupRequestWithBody(server string, params *CreateSecurityGroupParams, contentType string, body io.Reader) (*http.Request, error)

NewCreateSecurityGroupRequestWithBody generates requests for CreateSecurityGroup with any type of body

func NewCreateSnapshotRequest

func NewCreateSnapshotRequest(server string, params *CreateSnapshotParams, body CreateSnapshotJSONRequestBody) (*http.Request, error)

NewCreateSnapshotRequest calls the generic CreateSnapshot builder with application/json body

func NewCreateSnapshotRequestWithBody

func NewCreateSnapshotRequestWithBody(server string, params *CreateSnapshotParams, contentType string, body io.Reader) (*http.Request, error)

NewCreateSnapshotRequestWithBody generates requests for CreateSnapshot with any type of body

func NewCreateVMRequest

func NewCreateVMRequest(server string, params *CreateVMParams, body CreateVMJSONRequestBody) (*http.Request, error)

NewCreateVMRequest calls the generic CreateVM builder with application/json body

func NewCreateVMRequestWithBody

func NewCreateVMRequestWithBody(server string, params *CreateVMParams, contentType string, body io.Reader) (*http.Request, error)

NewCreateVMRequestWithBody generates requests for CreateVM with any type of body

func NewCreateVPCRequest

func NewCreateVPCRequest(server string, params *CreateVPCParams, body CreateVPCJSONRequestBody) (*http.Request, error)

NewCreateVPCRequest calls the generic CreateVPC builder with application/json body

func NewCreateVPCRequestWithBody

func NewCreateVPCRequestWithBody(server string, params *CreateVPCParams, contentType string, body io.Reader) (*http.Request, error)

NewCreateVPCRequestWithBody generates requests for CreateVPC with any type of body

func NewCreateVolumeRequest

func NewCreateVolumeRequest(server string, params *CreateVolumeParams, body CreateVolumeJSONRequestBody) (*http.Request, error)

NewCreateVolumeRequest calls the generic CreateVolume builder with application/json body

func NewCreateVolumeRequestWithBody

func NewCreateVolumeRequestWithBody(server string, params *CreateVolumeParams, contentType string, body io.Reader) (*http.Request, error)

NewCreateVolumeRequestWithBody generates requests for CreateVolume with any type of body

func NewDeleteBackupChainRequest added in v0.3.4

func NewDeleteBackupChainRequest(server string, id openapi_types.UUID, params *DeleteBackupChainParams) (*http.Request, error)

NewDeleteBackupChainRequest generates requests for DeleteBackupChain

func NewDeleteBackupRequest

func NewDeleteBackupRequest(server string, id openapi_types.UUID, params *DeleteBackupParams) (*http.Request, error)

NewDeleteBackupRequest generates requests for DeleteBackup

func NewDeleteBackupScheduleRequest

func NewDeleteBackupScheduleRequest(server string, id int, params *DeleteBackupScheduleParams) (*http.Request, error)

NewDeleteBackupScheduleRequest generates requests for DeleteBackupSchedule

func NewDeleteProjectRequest

func NewDeleteProjectRequest(server string, id ProjectIDPath) (*http.Request, error)

NewDeleteProjectRequest generates requests for DeleteProject

func NewDeleteRoleRequest

func NewDeleteRoleRequest(server string, id openapi_types.UUID) (*http.Request, error)

NewDeleteRoleRequest generates requests for DeleteRole

func NewDeleteSSHKeyRequest

func NewDeleteSSHKeyRequest(server string, id openapi_types.UUID) (*http.Request, error)

NewDeleteSSHKeyRequest generates requests for DeleteSSHKey

func NewDeleteSecurityGroupRequest

func NewDeleteSecurityGroupRequest(server string, id SecurityGroupResourceIDPath, params *DeleteSecurityGroupParams) (*http.Request, error)

NewDeleteSecurityGroupRequest generates requests for DeleteSecurityGroup

func NewDeleteSnapshotRequest

func NewDeleteSnapshotRequest(server string, id int, params *DeleteSnapshotParams) (*http.Request, error)

NewDeleteSnapshotRequest generates requests for DeleteSnapshot

func NewDeleteVMRequest

func NewDeleteVMRequest(server string, id VMIDPath, params *DeleteVMParams, body DeleteVMJSONRequestBody) (*http.Request, error)

NewDeleteVMRequest calls the generic DeleteVM builder with application/json body

func NewDeleteVMRequestWithBody

func NewDeleteVMRequestWithBody(server string, id VMIDPath, params *DeleteVMParams, contentType string, body io.Reader) (*http.Request, error)

NewDeleteVMRequestWithBody generates requests for DeleteVM with any type of body

func NewDeleteVMsBulkRequest

func NewDeleteVMsBulkRequest(server string, params *DeleteVMsBulkParams, body DeleteVMsBulkJSONRequestBody) (*http.Request, error)

NewDeleteVMsBulkRequest calls the generic DeleteVMsBulk builder with application/json body

func NewDeleteVMsBulkRequestWithBody

func NewDeleteVMsBulkRequestWithBody(server string, params *DeleteVMsBulkParams, contentType string, body io.Reader) (*http.Request, error)

NewDeleteVMsBulkRequestWithBody generates requests for DeleteVMsBulk with any type of body

func NewDeleteVPCRequest

func NewDeleteVPCRequest(server string, id VPCIDPath, params *DeleteVPCParams) (*http.Request, error)

NewDeleteVPCRequest generates requests for DeleteVPC

func NewDeleteVolumeRequest

func NewDeleteVolumeRequest(server string, id int, params *DeleteVolumeParams) (*http.Request, error)

NewDeleteVolumeRequest generates requests for DeleteVolume

func NewDetachVMFromVPCRequest

func NewDetachVMFromVPCRequest(server string, id VMIDPath, nicID NICIDPath, params *DetachVMFromVPCParams) (*http.Request, error)

NewDetachVMFromVPCRequest generates requests for DetachVMFromVPC

func NewDetachVMIPRequest

func NewDetachVMIPRequest(server string, id VMIDPath, nicID NICIDPath, params *DetachVMIPParams) (*http.Request, error)

NewDetachVMIPRequest generates requests for DetachVMIP

func NewDetachVMSecurityGroupRequest

func NewDetachVMSecurityGroupRequest(server string, id VMIDPath, sgid SecurityGroupIDPath, nicID NICIDPath, params *DetachVMSecurityGroupParams) (*http.Request, error)

NewDetachVMSecurityGroupRequest generates requests for DetachVMSecurityGroup

func NewDetachVolumeRequest

func NewDetachVolumeRequest(server string, id int, params *DetachVolumeParams) (*http.Request, error)

NewDetachVolumeRequest generates requests for DetachVolume

func NewFactoryResetVMRequest

func NewFactoryResetVMRequest(server string, id VMIDPath, params *FactoryResetVMParams) (*http.Request, error)

NewFactoryResetVMRequest generates requests for FactoryResetVM

func NewGetAPIKeyRequest

func NewGetAPIKeyRequest(server string, id openapi_types.UUID) (*http.Request, error)

NewGetAPIKeyRequest generates requests for GetAPIKey

func NewGetBackupRequest

func NewGetBackupRequest(server string, id openapi_types.UUID, params *GetBackupParams) (*http.Request, error)

NewGetBackupRequest generates requests for GetBackup

func NewGetBackupScheduleRequest

func NewGetBackupScheduleRequest(server string, id int, params *GetBackupScheduleParams) (*http.Request, error)

NewGetBackupScheduleRequest generates requests for GetBackupSchedule

func NewGetIPRequest

func NewGetIPRequest(server string, id IPIDPath) (*http.Request, error)

NewGetIPRequest generates requests for GetIP

func NewGetMemberRequest

func NewGetMemberRequest(server string, id openapi_types.UUID) (*http.Request, error)

NewGetMemberRequest generates requests for GetMember

func NewGetProjectMemberRequest

func NewGetProjectMemberRequest(server string, id ProjectIDPath, memberID openapi_types.UUID) (*http.Request, error)

NewGetProjectMemberRequest generates requests for GetProjectMember

func NewGetProjectRequest

func NewGetProjectRequest(server string, id ProjectIDPath) (*http.Request, error)

NewGetProjectRequest generates requests for GetProject

func NewGetRoleRequest

func NewGetRoleRequest(server string, id openapi_types.UUID) (*http.Request, error)

NewGetRoleRequest generates requests for GetRole

func NewGetSSHKeyRequest

func NewGetSSHKeyRequest(server string, id openapi_types.UUID) (*http.Request, error)

NewGetSSHKeyRequest generates requests for GetSSHKey

func NewGetSecurityGroupRequest

func NewGetSecurityGroupRequest(server string, id SecurityGroupResourceIDPath, params *GetSecurityGroupParams) (*http.Request, error)

NewGetSecurityGroupRequest generates requests for GetSecurityGroup

func NewGetSnapshotRequest

func NewGetSnapshotRequest(server string, id int, params *GetSnapshotParams) (*http.Request, error)

NewGetSnapshotRequest generates requests for GetSnapshot

func NewGetVMNotesRequest

func NewGetVMNotesRequest(server string, id VMIDPath, params *GetVMNotesParams) (*http.Request, error)

NewGetVMNotesRequest generates requests for GetVMNotes

func NewGetVMRequest

func NewGetVMRequest(server string, id VMIDPath) (*http.Request, error)

NewGetVMRequest generates requests for GetVM

func NewGetVPCRequest

func NewGetVPCRequest(server string, id VPCIDPath, params *GetVPCParams) (*http.Request, error)

NewGetVPCRequest generates requests for GetVPC

func NewGetVolumeRequest

func NewGetVolumeRequest(server string, id int, params *GetVolumeParams) (*http.Request, error)

NewGetVolumeRequest generates requests for GetVolume

func NewHardRebootVMRequest

func NewHardRebootVMRequest(server string, id VMIDPath, params *HardRebootVMParams) (*http.Request, error)

NewHardRebootVMRequest generates requests for HardRebootVM

func NewHealthCheckRequest

func NewHealthCheckRequest(server string) (*http.Request, error)

NewHealthCheckRequest generates requests for HealthCheck

func NewListAPIKeysRequest

func NewListAPIKeysRequest(server string, params *ListAPIKeysParams) (*http.Request, error)

NewListAPIKeysRequest generates requests for ListAPIKeys

func NewListBackupPricingRequest

func NewListBackupPricingRequest(server string, params *ListBackupPricingParams) (*http.Request, error)

NewListBackupPricingRequest generates requests for ListBackupPricing

func NewListBackupSchedulesRequest

func NewListBackupSchedulesRequest(server string, params *ListBackupSchedulesParams) (*http.Request, error)

NewListBackupSchedulesRequest generates requests for ListBackupSchedules

func NewListBackupsRequest

func NewListBackupsRequest(server string, params *ListBackupsParams) (*http.Request, error)

NewListBackupsRequest generates requests for ListBackups

func NewListIPPricingRequest

func NewListIPPricingRequest(server string) (*http.Request, error)

NewListIPPricingRequest generates requests for ListIPPricing

func NewListIPsRequest

func NewListIPsRequest(server string, params *ListIPsParams) (*http.Request, error)

NewListIPsRequest generates requests for ListIPs

func NewListMembersRequest

func NewListMembersRequest(server string, params *ListMembersParams) (*http.Request, error)

NewListMembersRequest generates requests for ListMembers

func NewListPermissionsRequest

func NewListPermissionsRequest(server string, params *ListPermissionsParams) (*http.Request, error)

NewListPermissionsRequest generates requests for ListPermissions

func NewListProjectMembersRequest

func NewListProjectMembersRequest(server string, id ProjectIDPath, params *ListProjectMembersParams) (*http.Request, error)

NewListProjectMembersRequest generates requests for ListProjectMembers

func NewListProjectsRequest

func NewListProjectsRequest(server string, params *ListProjectsParams) (*http.Request, error)

NewListProjectsRequest generates requests for ListProjects

func NewListRegionsRequest

func NewListRegionsRequest(server string) (*http.Request, error)

NewListRegionsRequest generates requests for ListRegions

func NewListRolesRequest

func NewListRolesRequest(server string, params *ListRolesParams) (*http.Request, error)

NewListRolesRequest generates requests for ListRoles

func NewListSSHKeysRequest

func NewListSSHKeysRequest(server string) (*http.Request, error)

NewListSSHKeysRequest generates requests for ListSSHKeys

func NewListSecurityGroupTemplatesRequest

func NewListSecurityGroupTemplatesRequest(server string) (*http.Request, error)

NewListSecurityGroupTemplatesRequest generates requests for ListSecurityGroupTemplates

func NewListSecurityGroupsRequest

func NewListSecurityGroupsRequest(server string, params *ListSecurityGroupsParams) (*http.Request, error)

NewListSecurityGroupsRequest generates requests for ListSecurityGroups

func NewListSnapshotPricingRequest

func NewListSnapshotPricingRequest(server string, params *ListSnapshotPricingParams) (*http.Request, error)

NewListSnapshotPricingRequest generates requests for ListSnapshotPricing

func NewListSnapshotsRequest

func NewListSnapshotsRequest(server string, params *ListSnapshotsParams) (*http.Request, error)

NewListSnapshotsRequest generates requests for ListSnapshots

func NewListTemplatesRequest

func NewListTemplatesRequest(server string, params *ListTemplatesParams) (*http.Request, error)

NewListTemplatesRequest generates requests for ListTemplates

func NewListVMNetworksRequest

func NewListVMNetworksRequest(server string, id VMIDPath, params *ListVMNetworksParams) (*http.Request, error)

NewListVMNetworksRequest generates requests for ListVMNetworks

func NewListVMPricingRequest

func NewListVMPricingRequest(server string, params *ListVMPricingParams) (*http.Request, error)

NewListVMPricingRequest generates requests for ListVMPricing

func NewListVMsRequest

func NewListVMsRequest(server string, params *ListVMsParams) (*http.Request, error)

NewListVMsRequest generates requests for ListVMs

func NewListVPCCIDRSuggestionsRequest

func NewListVPCCIDRSuggestionsRequest(server string, params *ListVPCCIDRSuggestionsParams) (*http.Request, error)

NewListVPCCIDRSuggestionsRequest generates requests for ListVPCCIDRSuggestions

func NewListVPCsRequest

func NewListVPCsRequest(server string, params *ListVPCsParams) (*http.Request, error)

NewListVPCsRequest generates requests for ListVPCs

func NewListVolumePricingRequest

func NewListVolumePricingRequest(server string, params *ListVolumePricingParams) (*http.Request, error)

NewListVolumePricingRequest generates requests for ListVolumePricing

func NewListVolumesRequest

func NewListVolumesRequest(server string, params *ListVolumesParams) (*http.Request, error)

NewListVolumesRequest generates requests for ListVolumes

func NewRebootVMRequest

func NewRebootVMRequest(server string, id VMIDPath, params *RebootVMParams) (*http.Request, error)

NewRebootVMRequest generates requests for RebootVM

func NewRegenerateAPIKeyRequest

func NewRegenerateAPIKeyRequest(server string, id openapi_types.UUID) (*http.Request, error)

NewRegenerateAPIKeyRequest generates requests for RegenerateAPIKey

func NewReinstallVMRequest

func NewReinstallVMRequest(server string, id VMIDPath, params *ReinstallVMParams, body ReinstallVMJSONRequestBody) (*http.Request, error)

NewReinstallVMRequest calls the generic ReinstallVM builder with application/json body

func NewReinstallVMRequestWithBody

func NewReinstallVMRequestWithBody(server string, id VMIDPath, params *ReinstallVMParams, contentType string, body io.Reader) (*http.Request, error)

NewReinstallVMRequestWithBody generates requests for ReinstallVM with any type of body

func NewReleaseIPRequest

func NewReleaseIPRequest(server string, id IPIDPath, params *ReleaseIPParams) (*http.Request, error)

NewReleaseIPRequest generates requests for ReleaseIP

func NewRemoveMemberRequest

func NewRemoveMemberRequest(server string, id openapi_types.UUID) (*http.Request, error)

NewRemoveMemberRequest generates requests for RemoveMember

func NewRemoveProjectMemberRequest

func NewRemoveProjectMemberRequest(server string, id ProjectIDPath, memberID openapi_types.UUID) (*http.Request, error)

NewRemoveProjectMemberRequest generates requests for RemoveProjectMember

func NewRemoveVMTagRequest

func NewRemoveVMTagRequest(server string, id VMIDPath, tagID TagIDPath, params *RemoveVMTagParams) (*http.Request, error)

NewRemoveVMTagRequest generates requests for RemoveVMTag

func NewRenameSnapshotRequest

func NewRenameSnapshotRequest(server string, id int, params *RenameSnapshotParams, body RenameSnapshotJSONRequestBody) (*http.Request, error)

NewRenameSnapshotRequest calls the generic RenameSnapshot builder with application/json body

func NewRenameSnapshotRequestWithBody

func NewRenameSnapshotRequestWithBody(server string, id int, params *RenameSnapshotParams, contentType string, body io.Reader) (*http.Request, error)

NewRenameSnapshotRequestWithBody generates requests for RenameSnapshot with any type of body

func NewRenameVMRequest

func NewRenameVMRequest(server string, id VMIDPath, params *RenameVMParams, body RenameVMJSONRequestBody) (*http.Request, error)

NewRenameVMRequest calls the generic RenameVM builder with application/json body

func NewRenameVMRequestWithBody

func NewRenameVMRequestWithBody(server string, id VMIDPath, params *RenameVMParams, contentType string, body io.Reader) (*http.Request, error)

NewRenameVMRequestWithBody generates requests for RenameVM with any type of body

func NewReserveIPRequest

func NewReserveIPRequest(server string, params *ReserveIPParams, body ReserveIPJSONRequestBody) (*http.Request, error)

NewReserveIPRequest calls the generic ReserveIP builder with application/json body

func NewReserveIPRequestWithBody

func NewReserveIPRequestWithBody(server string, params *ReserveIPParams, contentType string, body io.Reader) (*http.Request, error)

NewReserveIPRequestWithBody generates requests for ReserveIP with any type of body

func NewResetBackupChainRequest added in v0.3.4

func NewResetBackupChainRequest(server string, id openapi_types.UUID, params *ResetBackupChainParams) (*http.Request, error)

NewResetBackupChainRequest generates requests for ResetBackupChain

func NewResetVMPasswordRequest

func NewResetVMPasswordRequest(server string, id VMIDPath, params *ResetVMPasswordParams) (*http.Request, error)

NewResetVMPasswordRequest generates requests for ResetVMPassword

func NewResizeVMDiskRequest

func NewResizeVMDiskRequest(server string, id VMIDPath, params *ResizeVMDiskParams, body ResizeVMDiskJSONRequestBody) (*http.Request, error)

NewResizeVMDiskRequest calls the generic ResizeVMDisk builder with application/json body

func NewResizeVMDiskRequestWithBody

func NewResizeVMDiskRequestWithBody(server string, id VMIDPath, params *ResizeVMDiskParams, contentType string, body io.Reader) (*http.Request, error)

NewResizeVMDiskRequestWithBody generates requests for ResizeVMDisk with any type of body

func NewResizeVMRequest

func NewResizeVMRequest(server string, id VMIDPath, params *ResizeVMParams, body ResizeVMJSONRequestBody) (*http.Request, error)

NewResizeVMRequest calls the generic ResizeVM builder with application/json body

func NewResizeVMRequestWithBody

func NewResizeVMRequestWithBody(server string, id VMIDPath, params *ResizeVMParams, contentType string, body io.Reader) (*http.Request, error)

NewResizeVMRequestWithBody generates requests for ResizeVM with any type of body

func NewResizeVolumeRequest

func NewResizeVolumeRequest(server string, id int, params *ResizeVolumeParams, body ResizeVolumeJSONRequestBody) (*http.Request, error)

NewResizeVolumeRequest calls the generic ResizeVolume builder with application/json body

func NewResizeVolumeRequestWithBody

func NewResizeVolumeRequestWithBody(server string, id int, params *ResizeVolumeParams, contentType string, body io.Reader) (*http.Request, error)

NewResizeVolumeRequestWithBody generates requests for ResizeVolume with any type of body

func NewRestoreBackupRequest

func NewRestoreBackupRequest(server string, id openapi_types.UUID, params *RestoreBackupParams) (*http.Request, error)

NewRestoreBackupRequest generates requests for RestoreBackup

func NewRestoreSnapshotRequest

func NewRestoreSnapshotRequest(server string, id int, params *RestoreSnapshotParams) (*http.Request, error)

NewRestoreSnapshotRequest generates requests for RestoreSnapshot

func NewRevokeAPIKeyRequest

func NewRevokeAPIKeyRequest(server string, id openapi_types.UUID) (*http.Request, error)

NewRevokeAPIKeyRequest generates requests for RevokeAPIKey

func NewSaveVMDiskAsImageRequest

func NewSaveVMDiskAsImageRequest(server string, id VMIDPath, params *SaveVMDiskAsImageParams, body SaveVMDiskAsImageJSONRequestBody) (*http.Request, error)

NewSaveVMDiskAsImageRequest calls the generic SaveVMDiskAsImage builder with application/json body

func NewSaveVMDiskAsImageRequestWithBody

func NewSaveVMDiskAsImageRequestWithBody(server string, id VMIDPath, params *SaveVMDiskAsImageParams, contentType string, body io.Reader) (*http.Request, error)

NewSaveVMDiskAsImageRequestWithBody generates requests for SaveVMDiskAsImage with any type of body

func NewStartVMRequest

func NewStartVMRequest(server string, id VMIDPath, params *StartVMParams) (*http.Request, error)

NewStartVMRequest generates requests for StartVM

func NewStopVMRequest

func NewStopVMRequest(server string, id VMIDPath, params *StopVMParams) (*http.Request, error)

NewStopVMRequest generates requests for StopVM

func NewUpdateAPIKeyRequest

func NewUpdateAPIKeyRequest(server string, id openapi_types.UUID, body UpdateAPIKeyJSONRequestBody) (*http.Request, error)

NewUpdateAPIKeyRequest calls the generic UpdateAPIKey builder with application/json body

func NewUpdateAPIKeyRequestWithBody

func NewUpdateAPIKeyRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)

NewUpdateAPIKeyRequestWithBody generates requests for UpdateAPIKey with any type of body

func NewUpdateBackupScheduleRequest

func NewUpdateBackupScheduleRequest(server string, id int, params *UpdateBackupScheduleParams, body UpdateBackupScheduleJSONRequestBody) (*http.Request, error)

NewUpdateBackupScheduleRequest calls the generic UpdateBackupSchedule builder with application/json body

func NewUpdateBackupScheduleRequestWithBody

func NewUpdateBackupScheduleRequestWithBody(server string, id int, params *UpdateBackupScheduleParams, contentType string, body io.Reader) (*http.Request, error)

NewUpdateBackupScheduleRequestWithBody generates requests for UpdateBackupSchedule with any type of body

func NewUpdateMemberRequest

func NewUpdateMemberRequest(server string, id openapi_types.UUID, body UpdateMemberJSONRequestBody) (*http.Request, error)

NewUpdateMemberRequest calls the generic UpdateMember builder with application/json body

func NewUpdateMemberRequestWithBody

func NewUpdateMemberRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)

NewUpdateMemberRequestWithBody generates requests for UpdateMember with any type of body

func NewUpdateProjectMemberRequest

func NewUpdateProjectMemberRequest(server string, id ProjectIDPath, memberID openapi_types.UUID, body UpdateProjectMemberJSONRequestBody) (*http.Request, error)

NewUpdateProjectMemberRequest calls the generic UpdateProjectMember builder with application/json body

func NewUpdateProjectMemberRequestWithBody

func NewUpdateProjectMemberRequestWithBody(server string, id ProjectIDPath, memberID openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)

NewUpdateProjectMemberRequestWithBody generates requests for UpdateProjectMember with any type of body

func NewUpdateProjectRequest

func NewUpdateProjectRequest(server string, id ProjectIDPath, body UpdateProjectJSONRequestBody) (*http.Request, error)

NewUpdateProjectRequest calls the generic UpdateProject builder with application/json body

func NewUpdateProjectRequestWithBody

func NewUpdateProjectRequestWithBody(server string, id ProjectIDPath, contentType string, body io.Reader) (*http.Request, error)

NewUpdateProjectRequestWithBody generates requests for UpdateProject with any type of body

func NewUpdateRoleRequest

func NewUpdateRoleRequest(server string, id openapi_types.UUID, body UpdateRoleJSONRequestBody) (*http.Request, error)

NewUpdateRoleRequest calls the generic UpdateRole builder with application/json body

func NewUpdateRoleRequestWithBody

func NewUpdateRoleRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)

NewUpdateRoleRequestWithBody generates requests for UpdateRole with any type of body

func NewUpdateSSHKeyRequest

func NewUpdateSSHKeyRequest(server string, id openapi_types.UUID, body UpdateSSHKeyJSONRequestBody) (*http.Request, error)

NewUpdateSSHKeyRequest calls the generic UpdateSSHKey builder with application/json body

func NewUpdateSSHKeyRequestWithBody

func NewUpdateSSHKeyRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)

NewUpdateSSHKeyRequestWithBody generates requests for UpdateSSHKey with any type of body

func NewUpdateSecurityGroupRequest

func NewUpdateSecurityGroupRequest(server string, id SecurityGroupResourceIDPath, params *UpdateSecurityGroupParams, body UpdateSecurityGroupJSONRequestBody) (*http.Request, error)

NewUpdateSecurityGroupRequest calls the generic UpdateSecurityGroup builder with application/json body

func NewUpdateSecurityGroupRequestWithBody

func NewUpdateSecurityGroupRequestWithBody(server string, id SecurityGroupResourceIDPath, params *UpdateSecurityGroupParams, contentType string, body io.Reader) (*http.Request, error)

NewUpdateSecurityGroupRequestWithBody generates requests for UpdateSecurityGroup with any type of body

func NewUpdateVMNoteRequest

func NewUpdateVMNoteRequest(server string, id VMIDPath, pType UpdateVMNoteParamsType, params *UpdateVMNoteParams, body UpdateVMNoteJSONRequestBody) (*http.Request, error)

NewUpdateVMNoteRequest calls the generic UpdateVMNote builder with application/json body

func NewUpdateVMNoteRequestWithBody

func NewUpdateVMNoteRequestWithBody(server string, id VMIDPath, pType UpdateVMNoteParamsType, params *UpdateVMNoteParams, contentType string, body io.Reader) (*http.Request, error)

NewUpdateVMNoteRequestWithBody generates requests for UpdateVMNote with any type of body

func NewUpdateVMTagRequest

func NewUpdateVMTagRequest(server string, id VMIDPath, tagID TagIDPath, params *UpdateVMTagParams, body UpdateVMTagJSONRequestBody) (*http.Request, error)

NewUpdateVMTagRequest calls the generic UpdateVMTag builder with application/json body

func NewUpdateVMTagRequestWithBody

func NewUpdateVMTagRequestWithBody(server string, id VMIDPath, tagID TagIDPath, params *UpdateVMTagParams, contentType string, body io.Reader) (*http.Request, error)

NewUpdateVMTagRequestWithBody generates requests for UpdateVMTag with any type of body

func NewUpdateVPCRequest

func NewUpdateVPCRequest(server string, id VPCIDPath, params *UpdateVPCParams, body UpdateVPCJSONRequestBody) (*http.Request, error)

NewUpdateVPCRequest calls the generic UpdateVPC builder with application/json body

func NewUpdateVPCRequestWithBody

func NewUpdateVPCRequestWithBody(server string, id VPCIDPath, params *UpdateVPCParams, contentType string, body io.Reader) (*http.Request, error)

NewUpdateVPCRequestWithBody generates requests for UpdateVPC with any type of body

func NewUpsertVMNoteRequest

func NewUpsertVMNoteRequest(server string, id VMIDPath, pType UpsertVMNoteParamsType, params *UpsertVMNoteParams, body UpsertVMNoteJSONRequestBody) (*http.Request, error)

NewUpsertVMNoteRequest calls the generic UpsertVMNote builder with application/json body

func NewUpsertVMNoteRequestWithBody

func NewUpsertVMNoteRequestWithBody(server string, id VMIDPath, pType UpsertVMNoteParamsType, params *UpsertVMNoteParams, contentType string, body io.Reader) (*http.Request, error)

NewUpsertVMNoteRequestWithBody generates requests for UpsertVMNote with any type of body

Types

type APIKey

type APIKey struct {
	AccountID *openapi_types.UUID `json:"account_id,omitempty"`
	CreatedAt *time.Time          `json:"created_at,omitempty"`
	CreatedBy *openapi_types.UUID `json:"created_by,omitempty"`

	// ExpiresAt When the key auto-expires. Omitted for never-expires keys.
	ExpiresAt *time.Time         `json:"expires_at,omitempty"`
	ID        openapi_types.UUID `json:"id"`
	IsActive  bool               `json:"is_active"`

	// KeyPrefix First 13 characters of the key — the `raff_` prefix plus the first 8 hex characters (e.g. `raff_17d70fcf`). The full secret is only returned once at create or regenerate time.
	KeyPrefix  string     `json:"key_prefix"`
	LastUsedAt *time.Time `json:"last_used_at,omitempty"`
	Name       string     `json:"name"`

	// ProjectAccesses Per-project access grants
	ProjectAccesses *[]APIKeyProjectAccess `json:"project_accesses,omitempty"`

	// RateLimitTier Rate-limit tier. Standard is 30 RPS / burst 60; High is 100 RPS / burst 200.
	RateLimitTier *APIKeyRateLimitTier `json:"rate_limit_tier,omitempty"`

	// RoleID Account-level role this key uses
	RoleID   *openapi_types.UUID `json:"role_id,omitempty"`
	RoleName *string             `json:"role_name,omitempty"`
	RoleSlug *string             `json:"role_slug,omitempty"`

	// Scope Always `public` for customer-created keys
	Scope *APIKeyScope `json:"scope,omitempty"`
}

APIKey defines model for APIKey.

type APIKeyProjectAccess

type APIKeyProjectAccess struct {
	ProjectID   *openapi_types.UUID `json:"project_id,omitempty"`
	ProjectName *string             `json:"project_name,omitempty"`
	RoleID      *openapi_types.UUID `json:"role_id,omitempty"`
	RoleName    *string             `json:"role_name,omitempty"`
	RoleSlug    *string             `json:"role_slug,omitempty"`
}

APIKeyProjectAccess defines model for APIKeyProjectAccess.

type APIKeyRateLimitTier

type APIKeyRateLimitTier string

APIKeyRateLimitTier Rate-limit tier. Standard is 30 RPS / burst 60; High is 100 RPS / burst 200.

const (
	APIKeyRateLimitTierHigh     APIKeyRateLimitTier = "high"
	APIKeyRateLimitTierStandard APIKeyRateLimitTier = "standard"
)

Defines values for APIKeyRateLimitTier.

func (APIKeyRateLimitTier) Valid

func (e APIKeyRateLimitTier) Valid() bool

Valid indicates whether the value is a known member of the APIKeyRateLimitTier enum.

type APIKeyScope

type APIKeyScope string

APIKeyScope Always `public` for customer-created keys

const (
	APIKeyScopePublic APIKeyScope = "public"
)

Defines values for APIKeyScope.

func (APIKeyScope) Valid

func (e APIKeyScope) Valid() bool

Valid indicates whether the value is a known member of the APIKeyScope enum.

type APIKeyWithSecret

type APIKeyWithSecret struct {
	AccountID *openapi_types.UUID `json:"account_id,omitempty"`
	CreatedAt *time.Time          `json:"created_at,omitempty"`
	CreatedBy *openapi_types.UUID `json:"created_by,omitempty"`

	// ExpiresAt When the key auto-expires. Omitted for never-expires keys.
	ExpiresAt *time.Time         `json:"expires_at,omitempty"`
	ID        openapi_types.UUID `json:"id"`
	IsActive  bool               `json:"is_active"`

	// KeyPrefix First 13 characters of the key — the `raff_` prefix plus the first 8 hex characters (e.g. `raff_17d70fcf`). The full secret is only returned once at create or regenerate time.
	KeyPrefix  string     `json:"key_prefix"`
	LastUsedAt *time.Time `json:"last_used_at,omitempty"`
	Name       string     `json:"name"`

	// ProjectAccesses Per-project access grants
	ProjectAccesses *[]APIKeyProjectAccess `json:"project_accesses,omitempty"`

	// RateLimitTier Rate-limit tier. Standard is 30 RPS / burst 60; High is 100 RPS / burst 200.
	RateLimitTier *APIKeyWithSecretRateLimitTier `json:"rate_limit_tier,omitempty"`

	// RoleID Account-level role this key uses
	RoleID   *openapi_types.UUID `json:"role_id,omitempty"`
	RoleName *string             `json:"role_name,omitempty"`
	RoleSlug *string             `json:"role_slug,omitempty"`

	// Scope Always `public` for customer-created keys
	Scope *APIKeyWithSecretScope `json:"scope,omitempty"`

	// Secret The full API key. **Returned only once** — at create or regenerate time. Store immediately; the secret cannot be retrieved later.
	Secret string `json:"secret"`
}

APIKeyWithSecret defines model for APIKeyWithSecret.

type APIKeyWithSecretRateLimitTier

type APIKeyWithSecretRateLimitTier string

APIKeyWithSecretRateLimitTier Rate-limit tier. Standard is 30 RPS / burst 60; High is 100 RPS / burst 200.

const (
	APIKeyWithSecretRateLimitTierHigh     APIKeyWithSecretRateLimitTier = "high"
	APIKeyWithSecretRateLimitTierStandard APIKeyWithSecretRateLimitTier = "standard"
)

Defines values for APIKeyWithSecretRateLimitTier.

func (APIKeyWithSecretRateLimitTier) Valid

Valid indicates whether the value is a known member of the APIKeyWithSecretRateLimitTier enum.

type APIKeyWithSecretScope

type APIKeyWithSecretScope string

APIKeyWithSecretScope Always `public` for customer-created keys

const (
	APIKeyWithSecretScopePublic APIKeyWithSecretScope = "public"
)

Defines values for APIKeyWithSecretScope.

func (APIKeyWithSecretScope) Valid

func (e APIKeyWithSecretScope) Valid() bool

Valid indicates whether the value is a known member of the APIKeyWithSecretScope enum.

type AddMemberJSONRequestBody

type AddMemberJSONRequestBody = AddMemberRequest

AddMemberJSONRequestBody defines body for AddMember for application/json ContentType.

type AddMemberRequest

type AddMemberRequest struct {
	// APIKeyID API key UUID to grant account-level access via this membership. Mutually exclusive with `email` and `target_user_id`.
	APIKeyID *openapi_types.UUID `json:"api_key_id,omitempty"`

	// Email Email to invite. Mutually exclusive with `target_user_id` and `api_key_id`.
	Email *openapi_types.Email `json:"email,omitempty"`

	// RoleID Role UUID. Required.
	RoleID *openapi_types.UUID `json:"role_id,omitempty"`

	// TargetUserID User UUID to add directly. The user must already exist on Raff (e.g. an existing project-only member). Mutually exclusive with `email` and `api_key_id`.
	TargetUserID *openapi_types.UUID `json:"target_user_id,omitempty"`
}

AddMemberRequest defines model for AddMemberRequest.

type AddMemberResponse

type AddMemberResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *struct {
		Data    *Member `json:"data,omitempty"`
		Success *bool   `json:"success,omitempty"`
	}
	JSON400 *BadRequest
}

func ParseAddMemberResponse

func ParseAddMemberResponse(rsp *http.Response) (*AddMemberResponse, error)

ParseAddMemberResponse parses an HTTP response from a AddMemberWithResponse call

func (AddMemberResponse) Status

func (r AddMemberResponse) Status() string

Status returns HTTPResponse.Status

func (AddMemberResponse) StatusCode

func (r AddMemberResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AddProjectMemberJSONRequestBody

type AddProjectMemberJSONRequestBody = AddProjectMemberRequest

AddProjectMemberJSONRequestBody defines body for AddProjectMember for application/json ContentType.

type AddProjectMemberRequest

type AddProjectMemberRequest struct {
	// APIKeyID API key UUID to grant access to this project. Mutually exclusive with `target_user_id`.
	APIKeyID *openapi_types.UUID `json:"api_key_id,omitempty"`
	RoleID   openapi_types.UUID  `json:"role_id"`

	// TargetUserID User UUID to add. Must already be an account member. Mutually exclusive with `api_key_id`.
	TargetUserID *openapi_types.UUID `json:"target_user_id,omitempty"`
}

AddProjectMemberRequest defines model for AddProjectMemberRequest.

type AddProjectMemberResponse

type AddProjectMemberResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *struct {
		Data    *ProjectMember `json:"data,omitempty"`
		Success *bool          `json:"success,omitempty"`
	}
	JSON400 *BadRequest
	JSON404 *NotFound
}

func ParseAddProjectMemberResponse

func ParseAddProjectMemberResponse(rsp *http.Response) (*AddProjectMemberResponse, error)

ParseAddProjectMemberResponse parses an HTTP response from a AddProjectMemberWithResponse call

func (AddProjectMemberResponse) Status

func (r AddProjectMemberResponse) Status() string

Status returns HTTPResponse.Status

func (AddProjectMemberResponse) StatusCode

func (r AddProjectMemberResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AddVMTagJSONRequestBody

type AddVMTagJSONRequestBody = AddVMTagRequest

AddVMTagJSONRequestBody defines body for AddVMTag for application/json ContentType.

type AddVMTagParams

type AddVMTagParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

AddVMTagParams defines parameters for AddVMTag.

type AddVMTagRequest

type AddVMTagRequest struct {
	// Name Tag name.
	Name string `json:"name"`

	// Priority Display priority (lower sorts first). Defaults to 0.
	Priority *int `json:"priority,omitempty"`
}

AddVMTagRequest defines model for AddVMTagRequest.

type AddVMTagResponse

type AddVMTagResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *VMTagsResponse
	JSON400      *BadRequest
	JSON401      *Unauthorized
	JSON404      *NotFound
}

func ParseAddVMTagResponse

func ParseAddVMTagResponse(rsp *http.Response) (*AddVMTagResponse, error)

ParseAddVMTagResponse parses an HTTP response from a AddVMTagWithResponse call

func (AddVMTagResponse) Status

func (r AddVMTagResponse) Status() string

Status returns HTTPResponse.Status

func (AddVMTagResponse) StatusCode

func (r AddVMTagResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AppendVMNoteJSONRequestBody

type AppendVMNoteJSONRequestBody = UpsertVMNoteRequest

AppendVMNoteJSONRequestBody defines body for AppendVMNote for application/json ContentType.

type AppendVMNoteParams

type AppendVMNoteParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

AppendVMNoteParams defines parameters for AppendVMNote.

type AppendVMNoteParamsType

type AppendVMNoteParamsType string

AppendVMNoteParamsType defines parameters for AppendVMNote.

const (
	AppendVMNoteParamsTypeAccount  AppendVMNoteParamsType = "account"
	AppendVMNoteParamsTypePersonal AppendVMNoteParamsType = "personal"
)

Defines values for AppendVMNoteParamsType.

func (AppendVMNoteParamsType) Valid

func (e AppendVMNoteParamsType) Valid() bool

Valid indicates whether the value is a known member of the AppendVMNoteParamsType enum.

type AppendVMNoteResponse

type AppendVMNoteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		// Note A free-form note attached to a VM. `personal` notes are visible only to the writer; `account` notes are shared across the account.
		Note    *VMNote `json:"note,omitempty"`
		Success *bool   `json:"success,omitempty"`
	}
	JSON400 *BadRequest
	JSON401 *Unauthorized
	JSON404 *NotFound
}

func ParseAppendVMNoteResponse

func ParseAppendVMNoteResponse(rsp *http.Response) (*AppendVMNoteResponse, error)

ParseAppendVMNoteResponse parses an HTTP response from a AppendVMNoteWithResponse call

func (AppendVMNoteResponse) Status

func (r AppendVMNoteResponse) Status() string

Status returns HTTPResponse.Status

func (AppendVMNoteResponse) StatusCode

func (r AppendVMNoteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AttachIPRequest

type AttachIPRequest struct {
	// IPID ID of a previously reserved IP. The IP must belong to the same account, be reserved, and not already attached to another VM. No new billing — you're already paying for the reserved IP.
	IPID *openapi_types.UUID `json:"ip_id,omitempty"`

	// SecurityGroups Security group IDs (UUIDs) to apply to the new NIC.
	SecurityGroups *[]openapi_types.UUID `json:"security_groups,omitempty"`

	// Type IP family to auto-allocate. Used only when `ip_id` is omitted. Defaults to `IPv4`. A new IP is allocated from the pool and billed to your account from the moment of attach.
	Type *AttachIPRequestType `json:"type,omitempty"`
}

AttachIPRequest Provide **either** `ip_id` (attach an existing reserved IP) **or** `type` (auto-allocate a new IP). Don't combine — `ip_id` takes precedence and `type` is ignored when both are sent.

type AttachIPRequestType

type AttachIPRequestType string

AttachIPRequestType IP family to auto-allocate. Used only when `ip_id` is omitted. Defaults to `IPv4`. A new IP is allocated from the pool and billed to your account from the moment of attach.

const (
	AttachIPRequestTypeIPv4 AttachIPRequestType = "IPv4"
	AttachIPRequestTypeIPv6 AttachIPRequestType = "IPv6"
)

Defines values for AttachIPRequestType.

func (AttachIPRequestType) Valid

func (e AttachIPRequestType) Valid() bool

Valid indicates whether the value is a known member of the AttachIPRequestType enum.

type AttachIPResponse

type AttachIPResponse struct {
	Data *struct {
		// IPAddress The attached IP address.
		IPAddress *string `json:"ip_address,omitempty"`
		Mac       *string `json:"mac,omitempty"`

		// NicID NIC identifier for this attachment. Use it when detaching.
		NicID *int `json:"nic_id,omitempty"`

		// VMID VM the IP was attached to.
		VMID *openapi_types.UUID `json:"vm_id,omitempty"`
	} `json:"data,omitempty"`
	Message *string `json:"message,omitempty"`
	Success bool    `json:"success"`
}

AttachIPResponse defines model for AttachIPResponse.

type AttachSecurityGroupRequest

type AttachSecurityGroupRequest struct {
	// NicID NIC to attach the security group to. Get from `GET /api/v1/vms/{id}/networks`.
	NicID int `json:"nic_id"`

	// SecurityGroupID Security group to attach.
	SecurityGroupID openapi_types.UUID `json:"security_group_id"`
}

AttachSecurityGroupRequest defines model for AttachSecurityGroupRequest.

type AttachVMIPJSONRequestBody

type AttachVMIPJSONRequestBody = AttachIPRequest

AttachVMIPJSONRequestBody defines body for AttachVMIP for application/json ContentType.

type AttachVMIPParams

type AttachVMIPParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

AttachVMIPParams defines parameters for AttachVMIP.

type AttachVMIPResponse

type AttachVMIPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AttachIPResponse
	JSON400      *BadRequest
	JSON401      *Unauthorized
	JSON402      *InsufficientBalance
	JSON403      *BillingValidationFailed
	JSON404      *NotFound
}

func ParseAttachVMIPResponse

func ParseAttachVMIPResponse(rsp *http.Response) (*AttachVMIPResponse, error)

ParseAttachVMIPResponse parses an HTTP response from a AttachVMIPWithResponse call

func (AttachVMIPResponse) Status

func (r AttachVMIPResponse) Status() string

Status returns HTTPResponse.Status

func (AttachVMIPResponse) StatusCode

func (r AttachVMIPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AttachVMSecurityGroupJSONRequestBody

type AttachVMSecurityGroupJSONRequestBody = AttachSecurityGroupRequest

AttachVMSecurityGroupJSONRequestBody defines body for AttachVMSecurityGroup for application/json ContentType.

type AttachVMSecurityGroupParams

type AttachVMSecurityGroupParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

AttachVMSecurityGroupParams defines parameters for AttachVMSecurityGroup.

type AttachVMSecurityGroupResponse

type AttachVMSecurityGroupResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SuccessResponse
	JSON400      *BadRequest
	JSON401      *Unauthorized
	JSON404      *NotFound
}

func ParseAttachVMSecurityGroupResponse

func ParseAttachVMSecurityGroupResponse(rsp *http.Response) (*AttachVMSecurityGroupResponse, error)

ParseAttachVMSecurityGroupResponse parses an HTTP response from a AttachVMSecurityGroupWithResponse call

func (AttachVMSecurityGroupResponse) Status

Status returns HTTPResponse.Status

func (AttachVMSecurityGroupResponse) StatusCode

func (r AttachVMSecurityGroupResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AttachVMToVPCJSONRequestBody

type AttachVMToVPCJSONRequestBody = AttachVPCRequest

AttachVMToVPCJSONRequestBody defines body for AttachVMToVPC for application/json ContentType.

type AttachVMToVPCParams

type AttachVMToVPCParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

AttachVMToVPCParams defines parameters for AttachVMToVPC.

type AttachVMToVPCResponse

type AttachVMToVPCResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SuccessResponse
	JSON400      *BadRequest
	JSON401      *Unauthorized
	JSON404      *NotFound
}

func ParseAttachVMToVPCResponse

func ParseAttachVMToVPCResponse(rsp *http.Response) (*AttachVMToVPCResponse, error)

ParseAttachVMToVPCResponse parses an HTTP response from a AttachVMToVPCWithResponse call

func (AttachVMToVPCResponse) Status

func (r AttachVMToVPCResponse) Status() string

Status returns HTTPResponse.Status

func (AttachVMToVPCResponse) StatusCode

func (r AttachVMToVPCResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AttachVPCRequest

type AttachVPCRequest struct {
	// IP Specific private IP within the VPC's CIDR range. Auto-assigned if omitted.
	IP *string `json:"ip,omitempty"`

	// VpcID VPC to attach the VM to.
	VpcID openapi_types.UUID `json:"vpc_id"`
}

AttachVPCRequest defines model for AttachVPCRequest.

type AttachVolumeJSONRequestBody

type AttachVolumeJSONRequestBody = AttachVolumeRequest

AttachVolumeJSONRequestBody defines body for AttachVolume for application/json ContentType.

type AttachVolumeParams

type AttachVolumeParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

AttachVolumeParams defines parameters for AttachVolume.

type AttachVolumeRequest

type AttachVolumeRequest struct {
	// VMID UUID of the VM to attach this volume to. VM must be in the same region as the volume.
	VMID openapi_types.UUID `json:"vm_id"`
}

AttachVolumeRequest defines model for AttachVolumeRequest.

type AttachVolumeResponse

type AttachVolumeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data    *Volume `json:"data,omitempty"`
		Success *bool   `json:"success,omitempty"`
	}
	JSON400 *BadRequest
	JSON404 *NotFound
}

func ParseAttachVolumeResponse

func ParseAttachVolumeResponse(rsp *http.Response) (*AttachVolumeResponse, error)

ParseAttachVolumeResponse parses an HTTP response from a AttachVolumeWithResponse call

func (AttachVolumeResponse) Status

func (r AttachVolumeResponse) Status() string

Status returns HTTPResponse.Status

func (AttachVolumeResponse) StatusCode

func (r AttachVolumeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Backup

type Backup struct {
	// AccountID Account that owns the backup
	AccountID *openapi_types.UUID `json:"account_id,omitempty"`
	CreatedAt *time.Time          `json:"created_at,omitempty"`

	// CreatedBy User ID that created the backup
	CreatedBy *string `json:"created_by,omitempty"`

	// ExpireDate When the backup will be auto-pruned (only set when retention applies)
	ExpireDate *time.Time `json:"expire_date,omitempty"`

	// ID Backup ID
	ID openapi_types.UUID `json:"id"`

	// IncrementID Restore-point position within an incremental backup series.
	//
	// - `null` — legacy standalone backup (no series).
	// - `0` — first restore point of a series.
	// - `1`, `2`, … — subsequent restore points in the same series.
	//
	// Backups that share the same series are deleted together. Deleting a single
	// restore point that has older points in its series triggers a series-wide delete.
	// Use [Delete backup series](/api-reference/virtual-machines/delete-backup-series)
	// to remove a whole series explicitly, or
	// [Reset backup series](/api-reference/virtual-machines/reset-backup-series)
	// to start a fresh baseline on the next backup.
	IncrementID *int `json:"increment_id,omitempty"`

	// Name Backup display name
	Name string `json:"name"`

	// PricePerHour Hourly storage cost in USD
	PricePerHour *string `json:"price_per_hour,omitempty"`

	// ProductVM Source VM UUID
	ProductVM *openapi_types.UUID `json:"product_vm,omitempty"`

	// ProjectID Project the backup belongs to
	ProjectID *openapi_types.UUID `json:"project_id,omitempty"`

	// Region Region the backup is stored in
	Region *BackupRegion `json:"region,omitempty"`

	// Status Backup lifecycle status. Common values:
	// - `pending` — creation queued
	// - `creating` — backup being captured
	// - `ready` — available for restore
	// - `restoring` — currently restoring to a VM
	// - `failed` — creation or restore failed
	Status string `json:"status"`

	// StorageSize Backup size in GB
	StorageSize int `json:"storage_size"`
}

Backup defines model for Backup.

type BackupRegion

type BackupRegion string

BackupRegion Region the backup is stored in

const (
	BackupRegionUsEast BackupRegion = "us-east"
)

Defines values for BackupRegion.

func (BackupRegion) Valid

func (e BackupRegion) Valid() bool

Valid indicates whether the value is a known member of the BackupRegion enum.

type BackupSchedule

type BackupSchedule struct {
	AccountID *openapi_types.UUID `json:"account_id,omitempty"`
	CreatedAt *time.Time          `json:"created_at,omitempty"`
	CreatedBy *string             `json:"created_by,omitempty"`

	// ID Backup schedule ID. Use this value in `/backup-schedules/{id}` for get, update, and delete.
	ID int `json:"id"`

	// KeepCount Number of backups retained before auto-pruning
	KeepCount int `json:"keep_count"`

	// Name Schedule display name
	Name string `json:"name"`

	// PricePerHour Hourly cost in USD
	PricePerHour *string `json:"price_per_hour,omitempty"`

	// ProductVM Source VM UUID
	ProductVM *openapi_types.UUID   `json:"product_vm,omitempty"`
	ProjectID *openapi_types.UUID   `json:"project_id,omitempty"`
	Region    *BackupScheduleRegion `json:"region,omitempty"`

	// Runtime Human-readable schedule (e.g. `Daily at 8am`, `Saturday 8am`)
	Runtime *string `json:"runtime,omitempty"`

	// Size Total size of backups currently retained for this schedule
	Size *string `json:"size,omitempty"`

	// Type Schedule frequency
	Type BackupScheduleType `json:"type"`
}

BackupSchedule defines model for BackupSchedule.

type BackupScheduleRegion

type BackupScheduleRegion string

BackupScheduleRegion defines model for BackupSchedule.Region.

const (
	BackupScheduleRegionUsEast BackupScheduleRegion = "us-east"
)

Defines values for BackupScheduleRegion.

func (BackupScheduleRegion) Valid

func (e BackupScheduleRegion) Valid() bool

Valid indicates whether the value is a known member of the BackupScheduleRegion enum.

type BackupScheduleType

type BackupScheduleType string

BackupScheduleType Schedule frequency

const (
	BackupScheduleTypeDaily  BackupScheduleType = "daily"
	BackupScheduleTypeWeekly BackupScheduleType = "weekly"
)

Defines values for BackupScheduleType.

func (BackupScheduleType) Valid

func (e BackupScheduleType) Valid() bool

Valid indicates whether the value is a known member of the BackupScheduleType enum.

type BadRequest

type BadRequest = Error

BadRequest defines model for BadRequest.

type BillingError

type BillingError struct {
	Error   string  `json:"error"`
	Message *string `json:"message,omitempty"`

	// Reason Machine-readable reason code:
	// - `banned` — account has been suspended
	// - `failed` — last payment failed; balance top-up needed
	// - `no_billing_customer` — billing has not been set up for this account
	Reason BillingErrorReason `json:"reason"`
}

BillingError Billing validation error response. Returned when the account is not in good standing for paid operations.

type BillingErrorReason

type BillingErrorReason string

BillingErrorReason Machine-readable reason code: - `banned` — account has been suspended - `failed` — last payment failed; balance top-up needed - `no_billing_customer` — billing has not been set up for this account

const (
	BillingErrorReasonBanned            BillingErrorReason = "banned"
	BillingErrorReasonFailed            BillingErrorReason = "failed"
	BillingErrorReasonNoBillingCustomer BillingErrorReason = "no_billing_customer"
)

Defines values for BillingErrorReason.

func (BillingErrorReason) Valid

func (e BillingErrorReason) Valid() bool

Valid indicates whether the value is a known member of the BillingErrorReason enum.

type BillingValidationFailed

type BillingValidationFailed = BillingError

BillingValidationFailed Billing validation error response. Returned when the account is not in good standing for paid operations.

type BulkDeleteVMItemResult

type BulkDeleteVMItemResult struct {
	// Error Error detail if deletion failed.
	Error *string `json:"error,omitempty"`

	// ID VM ID.
	ID      *openapi_types.UUID `json:"id,omitempty"`
	Message *string             `json:"message,omitempty"`
	Success *bool               `json:"success,omitempty"`
}

BulkDeleteVMItemResult defines model for BulkDeleteVMItemResult.

type BulkDeleteVMsResult

type BulkDeleteVMsResult struct {
	// FailedCount Number of VMs that failed to delete.
	FailedCount *int    `json:"failed_count,omitempty"`
	Message     *string `json:"message,omitempty"`

	// Results Per-VM deletion results.
	Results *[]BulkDeleteVMItemResult `json:"results,omitempty"`

	// Success `true` if at least one VM was deleted successfully.
	Success *bool `json:"success,omitempty"`

	// SuccessCount Number of VMs successfully deleted.
	SuccessCount *int `json:"success_count,omitempty"`

	// TotalCount Number of VMs requested for deletion.
	TotalCount *int `json:"total_count,omitempty"`
}

BulkDeleteVMsResult defines model for BulkDeleteVMsResult.

type CIDRSuggestion

type CIDRSuggestion struct {
	AvailableIps *int                `json:"available_ips,omitempty"`
	Cidr         *string             `json:"cidr,omitempty"`
	Size         *CIDRSuggestionSize `json:"size,omitempty"`
}

CIDRSuggestion defines model for CIDRSuggestion.

type CIDRSuggestionSize

type CIDRSuggestionSize string

CIDRSuggestionSize defines model for CIDRSuggestion.Size.

const (
	Large  CIDRSuggestionSize = "large"
	Medium CIDRSuggestionSize = "medium"
	Small  CIDRSuggestionSize = "small"
)

Defines values for CIDRSuggestionSize.

func (CIDRSuggestionSize) Valid

func (e CIDRSuggestionSize) Valid() bool

Valid indicates whether the value is a known member of the CIDRSuggestionSize enum.

type CIDRSuggestionsResponse

type CIDRSuggestionsResponse struct {
	// Alternatives Other non-overlapping CIDRs to choose from, sized small/medium/large.
	Alternatives *[]CIDRSuggestion `json:"alternatives,omitempty"`

	// ExistingCount Number of VPCs you already have.
	ExistingCount *int `json:"existing_count,omitempty"`
	Success       bool `json:"success"`

	// Suggested Recommended CIDR — non-overlapping and right-sized for typical use.
	Suggested *string `json:"suggested,omitempty"`

	// SuggestedIps Number of usable IPs in the suggested block.
	SuggestedIps *int `json:"suggested_ips,omitempty"`
}

CIDRSuggestionsResponse defines model for CIDRSuggestionsResponse.

type CancelInvitationResponse

type CancelInvitationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SuccessResponse
	JSON404      *NotFound
}

func ParseCancelInvitationResponse

func ParseCancelInvitationResponse(rsp *http.Response) (*CancelInvitationResponse, error)

ParseCancelInvitationResponse parses an HTTP response from a CancelInvitationWithResponse call

func (CancelInvitationResponse) Status

func (r CancelInvitationResponse) Status() string

Status returns HTTPResponse.Status

func (CancelInvitationResponse) StatusCode

func (r CancelInvitationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ChangeIPParams

type ChangeIPParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

ChangeIPParams defines parameters for ChangeIP.

type ChangeIPResponse

type ChangeIPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		// NewIP A floating public IP address.
		NewIP *FloatingIP `json:"new_ip,omitempty"`

		// OldIP A floating public IP address.
		OldIP   *FloatingIP `json:"old_ip,omitempty"`
		Success *bool       `json:"success,omitempty"`
	}
	JSON400 *BadRequest
	JSON401 *Unauthorized
	JSON404 *NotFound
}

func ParseChangeIPResponse

func ParseChangeIPResponse(rsp *http.Response) (*ChangeIPResponse, error)

ParseChangeIPResponse parses an HTTP response from a ChangeIPWithResponse call

func (ChangeIPResponse) Status

func (r ChangeIPResponse) Status() string

Status returns HTTPResponse.Status

func (ChangeIPResponse) StatusCode

func (r ChangeIPResponse) 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) AddMember

func (c *Client) AddMember(ctx context.Context, body AddMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddMemberWithBody

func (c *Client) AddMemberWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddProjectMember

func (c *Client) AddProjectMember(ctx context.Context, id ProjectIDPath, body AddProjectMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddProjectMemberWithBody

func (c *Client) AddProjectMemberWithBody(ctx context.Context, id ProjectIDPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddVMTag

func (c *Client) AddVMTag(ctx context.Context, id VMIDPath, params *AddVMTagParams, body AddVMTagJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddVMTagWithBody

func (c *Client) AddVMTagWithBody(ctx context.Context, id VMIDPath, params *AddVMTagParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AppendVMNote

func (c *Client) AppendVMNote(ctx context.Context, id VMIDPath, pType AppendVMNoteParamsType, params *AppendVMNoteParams, body AppendVMNoteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AppendVMNoteWithBody

func (c *Client) AppendVMNoteWithBody(ctx context.Context, id VMIDPath, pType AppendVMNoteParamsType, params *AppendVMNoteParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AttachVMIP

func (c *Client) AttachVMIP(ctx context.Context, id VMIDPath, params *AttachVMIPParams, body AttachVMIPJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AttachVMIPWithBody

func (c *Client) AttachVMIPWithBody(ctx context.Context, id VMIDPath, params *AttachVMIPParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AttachVMSecurityGroup

func (c *Client) AttachVMSecurityGroup(ctx context.Context, id VMIDPath, params *AttachVMSecurityGroupParams, body AttachVMSecurityGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AttachVMSecurityGroupWithBody

func (c *Client) AttachVMSecurityGroupWithBody(ctx context.Context, id VMIDPath, params *AttachVMSecurityGroupParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AttachVMToVPC

func (c *Client) AttachVMToVPC(ctx context.Context, id VMIDPath, params *AttachVMToVPCParams, body AttachVMToVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AttachVMToVPCWithBody

func (c *Client) AttachVMToVPCWithBody(ctx context.Context, id VMIDPath, params *AttachVMToVPCParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AttachVolume

func (c *Client) AttachVolume(ctx context.Context, id int, params *AttachVolumeParams, body AttachVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AttachVolumeWithBody

func (c *Client) AttachVolumeWithBody(ctx context.Context, id int, params *AttachVolumeParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CancelInvitation

func (c *Client) CancelInvitation(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ChangeIP

func (c *Client) ChangeIP(ctx context.Context, id IPIDPath, params *ChangeIPParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateAPIKey

func (c *Client) CreateAPIKey(ctx context.Context, body CreateAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateAPIKeyWithBody

func (c *Client) CreateAPIKeyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateAccountInvitation

func (c *Client) CreateAccountInvitation(ctx context.Context, body CreateAccountInvitationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateAccountInvitationWithBody

func (c *Client) CreateAccountInvitationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateBackup

func (c *Client) CreateBackup(ctx context.Context, params *CreateBackupParams, body CreateBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateBackupSchedule

func (c *Client) CreateBackupSchedule(ctx context.Context, params *CreateBackupScheduleParams, body CreateBackupScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateBackupScheduleWithBody

func (c *Client) CreateBackupScheduleWithBody(ctx context.Context, params *CreateBackupScheduleParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateBackupWithBody

func (c *Client) CreateBackupWithBody(ctx context.Context, params *CreateBackupParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateProject

func (c *Client) CreateProject(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateProjectInvitation

func (c *Client) CreateProjectInvitation(ctx context.Context, id ProjectIDPath, body CreateProjectInvitationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateProjectInvitationWithBody

func (c *Client) CreateProjectInvitationWithBody(ctx context.Context, id ProjectIDPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateProjectWithBody

func (c *Client) CreateProjectWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateRole

func (c *Client) CreateRole(ctx context.Context, body CreateRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateRoleWithBody

func (c *Client) CreateRoleWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateSSHKey

func (c *Client) CreateSSHKey(ctx context.Context, body CreateSSHKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateSSHKeyWithBody

func (c *Client) CreateSSHKeyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateSecurityGroup

func (c *Client) CreateSecurityGroup(ctx context.Context, params *CreateSecurityGroupParams, body CreateSecurityGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateSecurityGroupWithBody

func (c *Client) CreateSecurityGroupWithBody(ctx context.Context, params *CreateSecurityGroupParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateSnapshot

func (c *Client) CreateSnapshot(ctx context.Context, params *CreateSnapshotParams, body CreateSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateSnapshotWithBody

func (c *Client) CreateSnapshotWithBody(ctx context.Context, params *CreateSnapshotParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateVM

func (c *Client) CreateVM(ctx context.Context, params *CreateVMParams, body CreateVMJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateVMWithBody

func (c *Client) CreateVMWithBody(ctx context.Context, params *CreateVMParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateVPC

func (c *Client) CreateVPC(ctx context.Context, params *CreateVPCParams, body CreateVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateVPCWithBody

func (c *Client) CreateVPCWithBody(ctx context.Context, params *CreateVPCParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateVolume

func (c *Client) CreateVolume(ctx context.Context, params *CreateVolumeParams, body CreateVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateVolumeWithBody

func (c *Client) CreateVolumeWithBody(ctx context.Context, params *CreateVolumeParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteBackup

func (c *Client) DeleteBackup(ctx context.Context, id openapi_types.UUID, params *DeleteBackupParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteBackupChain added in v0.3.4

func (c *Client) DeleteBackupChain(ctx context.Context, id openapi_types.UUID, params *DeleteBackupChainParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteBackupSchedule

func (c *Client) DeleteBackupSchedule(ctx context.Context, id int, params *DeleteBackupScheduleParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteProject

func (c *Client) DeleteProject(ctx context.Context, id ProjectIDPath, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteRole

func (c *Client) DeleteRole(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteSSHKey

func (c *Client) DeleteSSHKey(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteSecurityGroup

func (c *Client) DeleteSecurityGroup(ctx context.Context, id SecurityGroupResourceIDPath, params *DeleteSecurityGroupParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteSnapshot

func (c *Client) DeleteSnapshot(ctx context.Context, id int, params *DeleteSnapshotParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteVM

func (c *Client) DeleteVM(ctx context.Context, id VMIDPath, params *DeleteVMParams, body DeleteVMJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteVMWithBody

func (c *Client) DeleteVMWithBody(ctx context.Context, id VMIDPath, params *DeleteVMParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteVMsBulk

func (c *Client) DeleteVMsBulk(ctx context.Context, params *DeleteVMsBulkParams, body DeleteVMsBulkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteVMsBulkWithBody

func (c *Client) DeleteVMsBulkWithBody(ctx context.Context, params *DeleteVMsBulkParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteVPC

func (c *Client) DeleteVPC(ctx context.Context, id VPCIDPath, params *DeleteVPCParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteVolume

func (c *Client) DeleteVolume(ctx context.Context, id int, params *DeleteVolumeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DetachVMFromVPC

func (c *Client) DetachVMFromVPC(ctx context.Context, id VMIDPath, nicID NICIDPath, params *DetachVMFromVPCParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DetachVMIP

func (c *Client) DetachVMIP(ctx context.Context, id VMIDPath, nicID NICIDPath, params *DetachVMIPParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DetachVMSecurityGroup

func (c *Client) DetachVMSecurityGroup(ctx context.Context, id VMIDPath, sgid SecurityGroupIDPath, nicID NICIDPath, params *DetachVMSecurityGroupParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DetachVolume

func (c *Client) DetachVolume(ctx context.Context, id int, params *DetachVolumeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) FactoryResetVM

func (c *Client) FactoryResetVM(ctx context.Context, id VMIDPath, params *FactoryResetVMParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAPIKey

func (c *Client) GetAPIKey(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetBackup

func (c *Client) GetBackup(ctx context.Context, id openapi_types.UUID, params *GetBackupParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetBackupSchedule

func (c *Client) GetBackupSchedule(ctx context.Context, id int, params *GetBackupScheduleParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetIP

func (c *Client) GetIP(ctx context.Context, id IPIDPath, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetMember

func (c *Client) GetMember(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetProject

func (c *Client) GetProject(ctx context.Context, id ProjectIDPath, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetProjectMember

func (c *Client) GetProjectMember(ctx context.Context, id ProjectIDPath, memberID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetRole

func (c *Client) GetRole(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetSSHKey

func (c *Client) GetSSHKey(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetSecurityGroup

func (c *Client) GetSecurityGroup(ctx context.Context, id SecurityGroupResourceIDPath, params *GetSecurityGroupParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetSnapshot

func (c *Client) GetSnapshot(ctx context.Context, id int, params *GetSnapshotParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetVM

func (c *Client) GetVM(ctx context.Context, id VMIDPath, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetVMNotes

func (c *Client) GetVMNotes(ctx context.Context, id VMIDPath, params *GetVMNotesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetVPC

func (c *Client) GetVPC(ctx context.Context, id VPCIDPath, params *GetVPCParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetVolume

func (c *Client) GetVolume(ctx context.Context, id int, params *GetVolumeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) HardRebootVM

func (c *Client) HardRebootVM(ctx context.Context, id VMIDPath, params *HardRebootVMParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) HealthCheck

func (c *Client) HealthCheck(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListAPIKeys

func (c *Client) ListAPIKeys(ctx context.Context, params *ListAPIKeysParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListBackupPricing

func (c *Client) ListBackupPricing(ctx context.Context, params *ListBackupPricingParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListBackupSchedules

func (c *Client) ListBackupSchedules(ctx context.Context, params *ListBackupSchedulesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListBackups

func (c *Client) ListBackups(ctx context.Context, params *ListBackupsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListIPPricing

func (c *Client) ListIPPricing(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListIPs

func (c *Client) ListIPs(ctx context.Context, params *ListIPsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListMembers

func (c *Client) ListMembers(ctx context.Context, params *ListMembersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListPermissions

func (c *Client) ListPermissions(ctx context.Context, params *ListPermissionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListProjectMembers

func (c *Client) ListProjectMembers(ctx context.Context, id ProjectIDPath, params *ListProjectMembersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListProjects

func (c *Client) ListProjects(ctx context.Context, params *ListProjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListRegions

func (c *Client) ListRegions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListRoles

func (c *Client) ListRoles(ctx context.Context, params *ListRolesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListSSHKeys

func (c *Client) ListSSHKeys(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListSecurityGroupTemplates

func (c *Client) ListSecurityGroupTemplates(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListSecurityGroups

func (c *Client) ListSecurityGroups(ctx context.Context, params *ListSecurityGroupsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListSnapshotPricing

func (c *Client) ListSnapshotPricing(ctx context.Context, params *ListSnapshotPricingParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListSnapshots

func (c *Client) ListSnapshots(ctx context.Context, params *ListSnapshotsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListTemplates

func (c *Client) ListTemplates(ctx context.Context, params *ListTemplatesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListVMNetworks

func (c *Client) ListVMNetworks(ctx context.Context, id VMIDPath, params *ListVMNetworksParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListVMPricing

func (c *Client) ListVMPricing(ctx context.Context, params *ListVMPricingParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListVMs

func (c *Client) ListVMs(ctx context.Context, params *ListVMsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListVPCCIDRSuggestions

func (c *Client) ListVPCCIDRSuggestions(ctx context.Context, params *ListVPCCIDRSuggestionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListVPCs

func (c *Client) ListVPCs(ctx context.Context, params *ListVPCsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListVolumePricing

func (c *Client) ListVolumePricing(ctx context.Context, params *ListVolumePricingParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListVolumes

func (c *Client) ListVolumes(ctx context.Context, params *ListVolumesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RebootVM

func (c *Client) RebootVM(ctx context.Context, id VMIDPath, params *RebootVMParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RegenerateAPIKey

func (c *Client) RegenerateAPIKey(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReinstallVM

func (c *Client) ReinstallVM(ctx context.Context, id VMIDPath, params *ReinstallVMParams, body ReinstallVMJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReinstallVMWithBody

func (c *Client) ReinstallVMWithBody(ctx context.Context, id VMIDPath, params *ReinstallVMParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReleaseIP

func (c *Client) ReleaseIP(ctx context.Context, id IPIDPath, params *ReleaseIPParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RemoveMember

func (c *Client) RemoveMember(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RemoveProjectMember

func (c *Client) RemoveProjectMember(ctx context.Context, id ProjectIDPath, memberID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RemoveVMTag

func (c *Client) RemoveVMTag(ctx context.Context, id VMIDPath, tagID TagIDPath, params *RemoveVMTagParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RenameSnapshot

func (c *Client) RenameSnapshot(ctx context.Context, id int, params *RenameSnapshotParams, body RenameSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RenameSnapshotWithBody

func (c *Client) RenameSnapshotWithBody(ctx context.Context, id int, params *RenameSnapshotParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RenameVM

func (c *Client) RenameVM(ctx context.Context, id VMIDPath, params *RenameVMParams, body RenameVMJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RenameVMWithBody

func (c *Client) RenameVMWithBody(ctx context.Context, id VMIDPath, params *RenameVMParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReserveIP

func (c *Client) ReserveIP(ctx context.Context, params *ReserveIPParams, body ReserveIPJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReserveIPWithBody

func (c *Client) ReserveIPWithBody(ctx context.Context, params *ReserveIPParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ResetBackupChain added in v0.3.4

func (c *Client) ResetBackupChain(ctx context.Context, id openapi_types.UUID, params *ResetBackupChainParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ResetVMPassword

func (c *Client) ResetVMPassword(ctx context.Context, id VMIDPath, params *ResetVMPasswordParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ResizeVM

func (c *Client) ResizeVM(ctx context.Context, id VMIDPath, params *ResizeVMParams, body ResizeVMJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ResizeVMDisk

func (c *Client) ResizeVMDisk(ctx context.Context, id VMIDPath, params *ResizeVMDiskParams, body ResizeVMDiskJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ResizeVMDiskWithBody

func (c *Client) ResizeVMDiskWithBody(ctx context.Context, id VMIDPath, params *ResizeVMDiskParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ResizeVMWithBody

func (c *Client) ResizeVMWithBody(ctx context.Context, id VMIDPath, params *ResizeVMParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ResizeVolume

func (c *Client) ResizeVolume(ctx context.Context, id int, params *ResizeVolumeParams, body ResizeVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ResizeVolumeWithBody

func (c *Client) ResizeVolumeWithBody(ctx context.Context, id int, params *ResizeVolumeParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RestoreBackup

func (c *Client) RestoreBackup(ctx context.Context, id openapi_types.UUID, params *RestoreBackupParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RestoreSnapshot

func (c *Client) RestoreSnapshot(ctx context.Context, id int, params *RestoreSnapshotParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RevokeAPIKey

func (c *Client) RevokeAPIKey(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SaveVMDiskAsImage

func (c *Client) SaveVMDiskAsImage(ctx context.Context, id VMIDPath, params *SaveVMDiskAsImageParams, body SaveVMDiskAsImageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SaveVMDiskAsImageWithBody

func (c *Client) SaveVMDiskAsImageWithBody(ctx context.Context, id VMIDPath, params *SaveVMDiskAsImageParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) StartVM

func (c *Client) StartVM(ctx context.Context, id VMIDPath, params *StartVMParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) StopVM

func (c *Client) StopVM(ctx context.Context, id VMIDPath, params *StopVMParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateAPIKey

func (c *Client) UpdateAPIKey(ctx context.Context, id openapi_types.UUID, body UpdateAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateAPIKeyWithBody

func (c *Client) UpdateAPIKeyWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateBackupSchedule

func (c *Client) UpdateBackupSchedule(ctx context.Context, id int, params *UpdateBackupScheduleParams, body UpdateBackupScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateBackupScheduleWithBody

func (c *Client) UpdateBackupScheduleWithBody(ctx context.Context, id int, params *UpdateBackupScheduleParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateMember

func (c *Client) UpdateMember(ctx context.Context, id openapi_types.UUID, body UpdateMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateMemberWithBody

func (c *Client) UpdateMemberWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateProject

func (c *Client) UpdateProject(ctx context.Context, id ProjectIDPath, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateProjectMember

func (c *Client) UpdateProjectMember(ctx context.Context, id ProjectIDPath, memberID openapi_types.UUID, body UpdateProjectMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateProjectMemberWithBody

func (c *Client) UpdateProjectMemberWithBody(ctx context.Context, id ProjectIDPath, memberID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateProjectWithBody

func (c *Client) UpdateProjectWithBody(ctx context.Context, id ProjectIDPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateRole

func (c *Client) UpdateRole(ctx context.Context, id openapi_types.UUID, body UpdateRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateRoleWithBody

func (c *Client) UpdateRoleWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateSSHKey

func (c *Client) UpdateSSHKey(ctx context.Context, id openapi_types.UUID, body UpdateSSHKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateSSHKeyWithBody

func (c *Client) UpdateSSHKeyWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateSecurityGroupWithBody

func (c *Client) UpdateSecurityGroupWithBody(ctx context.Context, id SecurityGroupResourceIDPath, params *UpdateSecurityGroupParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateVMNote

func (c *Client) UpdateVMNote(ctx context.Context, id VMIDPath, pType UpdateVMNoteParamsType, params *UpdateVMNoteParams, body UpdateVMNoteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateVMNoteWithBody

func (c *Client) UpdateVMNoteWithBody(ctx context.Context, id VMIDPath, pType UpdateVMNoteParamsType, params *UpdateVMNoteParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateVMTag

func (c *Client) UpdateVMTag(ctx context.Context, id VMIDPath, tagID TagIDPath, params *UpdateVMTagParams, body UpdateVMTagJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateVMTagWithBody

func (c *Client) UpdateVMTagWithBody(ctx context.Context, id VMIDPath, tagID TagIDPath, params *UpdateVMTagParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateVPC

func (c *Client) UpdateVPC(ctx context.Context, id VPCIDPath, params *UpdateVPCParams, body UpdateVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateVPCWithBody

func (c *Client) UpdateVPCWithBody(ctx context.Context, id VPCIDPath, params *UpdateVPCParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpsertVMNote

func (c *Client) UpsertVMNote(ctx context.Context, id VMIDPath, pType UpsertVMNoteParamsType, params *UpsertVMNoteParams, body UpsertVMNoteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpsertVMNoteWithBody

func (c *Client) UpsertVMNoteWithBody(ctx context.Context, id VMIDPath, pType UpsertVMNoteParamsType, params *UpsertVMNoteParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// ListAPIKeys request
	ListAPIKeys(ctx context.Context, params *ListAPIKeysParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateAPIKeyWithBody request with any body
	CreateAPIKeyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateAPIKey(ctx context.Context, body CreateAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RevokeAPIKey request
	RevokeAPIKey(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAPIKey request
	GetAPIKey(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateAPIKeyWithBody request with any body
	UpdateAPIKeyWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateAPIKey(ctx context.Context, id openapi_types.UUID, body UpdateAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RegenerateAPIKey request
	RegenerateAPIKey(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListBackupSchedules request
	ListBackupSchedules(ctx context.Context, params *ListBackupSchedulesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateBackupScheduleWithBody request with any body
	CreateBackupScheduleWithBody(ctx context.Context, params *CreateBackupScheduleParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateBackupSchedule(ctx context.Context, params *CreateBackupScheduleParams, body CreateBackupScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteBackupSchedule request
	DeleteBackupSchedule(ctx context.Context, id int, params *DeleteBackupScheduleParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetBackupSchedule request
	GetBackupSchedule(ctx context.Context, id int, params *GetBackupScheduleParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateBackupScheduleWithBody request with any body
	UpdateBackupScheduleWithBody(ctx context.Context, id int, params *UpdateBackupScheduleParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateBackupSchedule(ctx context.Context, id int, params *UpdateBackupScheduleParams, body UpdateBackupScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListBackups request
	ListBackups(ctx context.Context, params *ListBackupsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateBackupWithBody request with any body
	CreateBackupWithBody(ctx context.Context, params *CreateBackupParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateBackup(ctx context.Context, params *CreateBackupParams, body CreateBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteBackup request
	DeleteBackup(ctx context.Context, id openapi_types.UUID, params *DeleteBackupParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetBackup request
	GetBackup(ctx context.Context, id openapi_types.UUID, params *GetBackupParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteBackupChain request
	DeleteBackupChain(ctx context.Context, id openapi_types.UUID, params *DeleteBackupChainParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RestoreBackup request
	RestoreBackup(ctx context.Context, id openapi_types.UUID, params *RestoreBackupParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateAccountInvitationWithBody request with any body
	CreateAccountInvitationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateAccountInvitation(ctx context.Context, body CreateAccountInvitationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CancelInvitation request
	CancelInvitation(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListIPs request
	ListIPs(ctx context.Context, params *ListIPsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReserveIPWithBody request with any body
	ReserveIPWithBody(ctx context.Context, params *ReserveIPParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ReserveIP(ctx context.Context, params *ReserveIPParams, body ReserveIPJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetIP request
	GetIP(ctx context.Context, id IPIDPath, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ChangeIP request
	ChangeIP(ctx context.Context, id IPIDPath, params *ChangeIPParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReleaseIP request
	ReleaseIP(ctx context.Context, id IPIDPath, params *ReleaseIPParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListMembers request
	ListMembers(ctx context.Context, params *ListMembersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AddMemberWithBody request with any body
	AddMemberWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	AddMember(ctx context.Context, body AddMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RemoveMember request
	RemoveMember(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetMember request
	GetMember(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateMemberWithBody request with any body
	UpdateMemberWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateMember(ctx context.Context, id openapi_types.UUID, body UpdateMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListPermissions request
	ListPermissions(ctx context.Context, params *ListPermissionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListProjects request
	ListProjects(ctx context.Context, params *ListProjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateProjectWithBody request with any body
	CreateProjectWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateProject(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteProject request
	DeleteProject(ctx context.Context, id ProjectIDPath, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetProject request
	GetProject(ctx context.Context, id ProjectIDPath, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateProjectWithBody request with any body
	UpdateProjectWithBody(ctx context.Context, id ProjectIDPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateProject(ctx context.Context, id ProjectIDPath, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateProjectInvitationWithBody request with any body
	CreateProjectInvitationWithBody(ctx context.Context, id ProjectIDPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateProjectInvitation(ctx context.Context, id ProjectIDPath, body CreateProjectInvitationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListProjectMembers request
	ListProjectMembers(ctx context.Context, id ProjectIDPath, params *ListProjectMembersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AddProjectMemberWithBody request with any body
	AddProjectMemberWithBody(ctx context.Context, id ProjectIDPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	AddProjectMember(ctx context.Context, id ProjectIDPath, body AddProjectMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RemoveProjectMember request
	RemoveProjectMember(ctx context.Context, id ProjectIDPath, memberID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetProjectMember request
	GetProjectMember(ctx context.Context, id ProjectIDPath, memberID openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateProjectMemberWithBody request with any body
	UpdateProjectMemberWithBody(ctx context.Context, id ProjectIDPath, memberID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateProjectMember(ctx context.Context, id ProjectIDPath, memberID openapi_types.UUID, body UpdateProjectMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListBackupPricing request
	ListBackupPricing(ctx context.Context, params *ListBackupPricingParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListIPPricing request
	ListIPPricing(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListSnapshotPricing request
	ListSnapshotPricing(ctx context.Context, params *ListSnapshotPricingParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListVMPricing request
	ListVMPricing(ctx context.Context, params *ListVMPricingParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListVolumePricing request
	ListVolumePricing(ctx context.Context, params *ListVolumePricingParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListRegions request
	ListRegions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListTemplates request
	ListTemplates(ctx context.Context, params *ListTemplatesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListRoles request
	ListRoles(ctx context.Context, params *ListRolesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateRoleWithBody request with any body
	CreateRoleWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateRole(ctx context.Context, body CreateRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteRole request
	DeleteRole(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRole request
	GetRole(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateRoleWithBody request with any body
	UpdateRoleWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateRole(ctx context.Context, id openapi_types.UUID, body UpdateRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListSecurityGroups request
	ListSecurityGroups(ctx context.Context, params *ListSecurityGroupsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateSecurityGroupWithBody request with any body
	CreateSecurityGroupWithBody(ctx context.Context, params *CreateSecurityGroupParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateSecurityGroup(ctx context.Context, params *CreateSecurityGroupParams, body CreateSecurityGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListSecurityGroupTemplates request
	ListSecurityGroupTemplates(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteSecurityGroup request
	DeleteSecurityGroup(ctx context.Context, id SecurityGroupResourceIDPath, params *DeleteSecurityGroupParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSecurityGroup request
	GetSecurityGroup(ctx context.Context, id SecurityGroupResourceIDPath, params *GetSecurityGroupParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateSecurityGroupWithBody request with any body
	UpdateSecurityGroupWithBody(ctx context.Context, id SecurityGroupResourceIDPath, params *UpdateSecurityGroupParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateSecurityGroup(ctx context.Context, id SecurityGroupResourceIDPath, params *UpdateSecurityGroupParams, body UpdateSecurityGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListSnapshots request
	ListSnapshots(ctx context.Context, params *ListSnapshotsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateSnapshotWithBody request with any body
	CreateSnapshotWithBody(ctx context.Context, params *CreateSnapshotParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateSnapshot(ctx context.Context, params *CreateSnapshotParams, body CreateSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteSnapshot request
	DeleteSnapshot(ctx context.Context, id int, params *DeleteSnapshotParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSnapshot request
	GetSnapshot(ctx context.Context, id int, params *GetSnapshotParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RenameSnapshotWithBody request with any body
	RenameSnapshotWithBody(ctx context.Context, id int, params *RenameSnapshotParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	RenameSnapshot(ctx context.Context, id int, params *RenameSnapshotParams, body RenameSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RestoreSnapshot request
	RestoreSnapshot(ctx context.Context, id int, params *RestoreSnapshotParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListSSHKeys request
	ListSSHKeys(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateSSHKeyWithBody request with any body
	CreateSSHKeyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateSSHKey(ctx context.Context, body CreateSSHKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteSSHKey request
	DeleteSSHKey(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSSHKey request
	GetSSHKey(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateSSHKeyWithBody request with any body
	UpdateSSHKeyWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateSSHKey(ctx context.Context, id openapi_types.UUID, body UpdateSSHKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListVMs request
	ListVMs(ctx context.Context, params *ListVMsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateVMWithBody request with any body
	CreateVMWithBody(ctx context.Context, params *CreateVMParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateVM(ctx context.Context, params *CreateVMParams, body CreateVMJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteVMsBulkWithBody request with any body
	DeleteVMsBulkWithBody(ctx context.Context, params *DeleteVMsBulkParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	DeleteVMsBulk(ctx context.Context, params *DeleteVMsBulkParams, body DeleteVMsBulkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteVMWithBody request with any body
	DeleteVMWithBody(ctx context.Context, id VMIDPath, params *DeleteVMParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	DeleteVM(ctx context.Context, id VMIDPath, params *DeleteVMParams, body DeleteVMJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetVM request
	GetVM(ctx context.Context, id VMIDPath, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ResetBackupChain request
	ResetBackupChain(ctx context.Context, id openapi_types.UUID, params *ResetBackupChainParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ResizeVMDiskWithBody request with any body
	ResizeVMDiskWithBody(ctx context.Context, id VMIDPath, params *ResizeVMDiskParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ResizeVMDisk(ctx context.Context, id VMIDPath, params *ResizeVMDiskParams, body ResizeVMDiskJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FactoryResetVM request
	FactoryResetVM(ctx context.Context, id VMIDPath, params *FactoryResetVMParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AttachVMIPWithBody request with any body
	AttachVMIPWithBody(ctx context.Context, id VMIDPath, params *AttachVMIPParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	AttachVMIP(ctx context.Context, id VMIDPath, params *AttachVMIPParams, body AttachVMIPJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DetachVMIP request
	DetachVMIP(ctx context.Context, id VMIDPath, nicID NICIDPath, params *DetachVMIPParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListVMNetworks request
	ListVMNetworks(ctx context.Context, id VMIDPath, params *ListVMNetworksParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetVMNotes request
	GetVMNotes(ctx context.Context, id VMIDPath, params *GetVMNotesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateVMNoteWithBody request with any body
	UpdateVMNoteWithBody(ctx context.Context, id VMIDPath, pType UpdateVMNoteParamsType, params *UpdateVMNoteParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateVMNote(ctx context.Context, id VMIDPath, pType UpdateVMNoteParamsType, params *UpdateVMNoteParams, body UpdateVMNoteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpsertVMNoteWithBody request with any body
	UpsertVMNoteWithBody(ctx context.Context, id VMIDPath, pType UpsertVMNoteParamsType, params *UpsertVMNoteParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpsertVMNote(ctx context.Context, id VMIDPath, pType UpsertVMNoteParamsType, params *UpsertVMNoteParams, body UpsertVMNoteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AppendVMNoteWithBody request with any body
	AppendVMNoteWithBody(ctx context.Context, id VMIDPath, pType AppendVMNoteParamsType, params *AppendVMNoteParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	AppendVMNote(ctx context.Context, id VMIDPath, pType AppendVMNoteParamsType, params *AppendVMNoteParams, body AppendVMNoteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RebootVM request
	RebootVM(ctx context.Context, id VMIDPath, params *RebootVMParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// HardRebootVM request
	HardRebootVM(ctx context.Context, id VMIDPath, params *HardRebootVMParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReinstallVMWithBody request with any body
	ReinstallVMWithBody(ctx context.Context, id VMIDPath, params *ReinstallVMParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ReinstallVM(ctx context.Context, id VMIDPath, params *ReinstallVMParams, body ReinstallVMJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RenameVMWithBody request with any body
	RenameVMWithBody(ctx context.Context, id VMIDPath, params *RenameVMParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	RenameVM(ctx context.Context, id VMIDPath, params *RenameVMParams, body RenameVMJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ResetVMPassword request
	ResetVMPassword(ctx context.Context, id VMIDPath, params *ResetVMPasswordParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ResizeVMWithBody request with any body
	ResizeVMWithBody(ctx context.Context, id VMIDPath, params *ResizeVMParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ResizeVM(ctx context.Context, id VMIDPath, params *ResizeVMParams, body ResizeVMJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SaveVMDiskAsImageWithBody request with any body
	SaveVMDiskAsImageWithBody(ctx context.Context, id VMIDPath, params *SaveVMDiskAsImageParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	SaveVMDiskAsImage(ctx context.Context, id VMIDPath, params *SaveVMDiskAsImageParams, body SaveVMDiskAsImageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AttachVMSecurityGroupWithBody request with any body
	AttachVMSecurityGroupWithBody(ctx context.Context, id VMIDPath, params *AttachVMSecurityGroupParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	AttachVMSecurityGroup(ctx context.Context, id VMIDPath, params *AttachVMSecurityGroupParams, body AttachVMSecurityGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DetachVMSecurityGroup request
	DetachVMSecurityGroup(ctx context.Context, id VMIDPath, sgid SecurityGroupIDPath, nicID NICIDPath, params *DetachVMSecurityGroupParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// StartVM request
	StartVM(ctx context.Context, id VMIDPath, params *StartVMParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// StopVM request
	StopVM(ctx context.Context, id VMIDPath, params *StopVMParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AddVMTagWithBody request with any body
	AddVMTagWithBody(ctx context.Context, id VMIDPath, params *AddVMTagParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	AddVMTag(ctx context.Context, id VMIDPath, params *AddVMTagParams, body AddVMTagJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RemoveVMTag request
	RemoveVMTag(ctx context.Context, id VMIDPath, tagID TagIDPath, params *RemoveVMTagParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateVMTagWithBody request with any body
	UpdateVMTagWithBody(ctx context.Context, id VMIDPath, tagID TagIDPath, params *UpdateVMTagParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateVMTag(ctx context.Context, id VMIDPath, tagID TagIDPath, params *UpdateVMTagParams, body UpdateVMTagJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AttachVMToVPCWithBody request with any body
	AttachVMToVPCWithBody(ctx context.Context, id VMIDPath, params *AttachVMToVPCParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	AttachVMToVPC(ctx context.Context, id VMIDPath, params *AttachVMToVPCParams, body AttachVMToVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DetachVMFromVPC request
	DetachVMFromVPC(ctx context.Context, id VMIDPath, nicID NICIDPath, params *DetachVMFromVPCParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListVolumes request
	ListVolumes(ctx context.Context, params *ListVolumesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateVolumeWithBody request with any body
	CreateVolumeWithBody(ctx context.Context, params *CreateVolumeParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateVolume(ctx context.Context, params *CreateVolumeParams, body CreateVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteVolume request
	DeleteVolume(ctx context.Context, id int, params *DeleteVolumeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetVolume request
	GetVolume(ctx context.Context, id int, params *GetVolumeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ResizeVolumeWithBody request with any body
	ResizeVolumeWithBody(ctx context.Context, id int, params *ResizeVolumeParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ResizeVolume(ctx context.Context, id int, params *ResizeVolumeParams, body ResizeVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AttachVolumeWithBody request with any body
	AttachVolumeWithBody(ctx context.Context, id int, params *AttachVolumeParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	AttachVolume(ctx context.Context, id int, params *AttachVolumeParams, body AttachVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DetachVolume request
	DetachVolume(ctx context.Context, id int, params *DetachVolumeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListVPCs request
	ListVPCs(ctx context.Context, params *ListVPCsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateVPCWithBody request with any body
	CreateVPCWithBody(ctx context.Context, params *CreateVPCParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateVPC(ctx context.Context, params *CreateVPCParams, body CreateVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListVPCCIDRSuggestions request
	ListVPCCIDRSuggestions(ctx context.Context, params *ListVPCCIDRSuggestionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteVPC request
	DeleteVPC(ctx context.Context, id VPCIDPath, params *DeleteVPCParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetVPC request
	GetVPC(ctx context.Context, id VPCIDPath, params *GetVPCParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateVPCWithBody request with any body
	UpdateVPCWithBody(ctx context.Context, id VPCIDPath, params *UpdateVPCParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateVPC(ctx context.Context, id VPCIDPath, params *UpdateVPCParams, body UpdateVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// HealthCheck request
	HealthCheck(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

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) AddMemberWithBodyWithResponse

func (c *ClientWithResponses) AddMemberWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddMemberResponse, error)

AddMemberWithBodyWithResponse request with arbitrary body returning *AddMemberResponse

func (*ClientWithResponses) AddMemberWithResponse

func (c *ClientWithResponses) AddMemberWithResponse(ctx context.Context, body AddMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*AddMemberResponse, error)

func (*ClientWithResponses) AddProjectMemberWithBodyWithResponse

func (c *ClientWithResponses) AddProjectMemberWithBodyWithResponse(ctx context.Context, id ProjectIDPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddProjectMemberResponse, error)

AddProjectMemberWithBodyWithResponse request with arbitrary body returning *AddProjectMemberResponse

func (*ClientWithResponses) AddProjectMemberWithResponse

func (c *ClientWithResponses) AddProjectMemberWithResponse(ctx context.Context, id ProjectIDPath, body AddProjectMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*AddProjectMemberResponse, error)

func (*ClientWithResponses) AddVMTagWithBodyWithResponse

func (c *ClientWithResponses) AddVMTagWithBodyWithResponse(ctx context.Context, id VMIDPath, params *AddVMTagParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddVMTagResponse, error)

AddVMTagWithBodyWithResponse request with arbitrary body returning *AddVMTagResponse

func (*ClientWithResponses) AddVMTagWithResponse

func (c *ClientWithResponses) AddVMTagWithResponse(ctx context.Context, id VMIDPath, params *AddVMTagParams, body AddVMTagJSONRequestBody, reqEditors ...RequestEditorFn) (*AddVMTagResponse, error)

func (*ClientWithResponses) AppendVMNoteWithBodyWithResponse

func (c *ClientWithResponses) AppendVMNoteWithBodyWithResponse(ctx context.Context, id VMIDPath, pType AppendVMNoteParamsType, params *AppendVMNoteParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AppendVMNoteResponse, error)

AppendVMNoteWithBodyWithResponse request with arbitrary body returning *AppendVMNoteResponse

func (*ClientWithResponses) AppendVMNoteWithResponse

func (*ClientWithResponses) AttachVMIPWithBodyWithResponse

func (c *ClientWithResponses) AttachVMIPWithBodyWithResponse(ctx context.Context, id VMIDPath, params *AttachVMIPParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AttachVMIPResponse, error)

AttachVMIPWithBodyWithResponse request with arbitrary body returning *AttachVMIPResponse

func (*ClientWithResponses) AttachVMIPWithResponse

func (c *ClientWithResponses) AttachVMIPWithResponse(ctx context.Context, id VMIDPath, params *AttachVMIPParams, body AttachVMIPJSONRequestBody, reqEditors ...RequestEditorFn) (*AttachVMIPResponse, error)

func (*ClientWithResponses) AttachVMSecurityGroupWithBodyWithResponse

func (c *ClientWithResponses) AttachVMSecurityGroupWithBodyWithResponse(ctx context.Context, id VMIDPath, params *AttachVMSecurityGroupParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AttachVMSecurityGroupResponse, error)

AttachVMSecurityGroupWithBodyWithResponse request with arbitrary body returning *AttachVMSecurityGroupResponse

func (*ClientWithResponses) AttachVMSecurityGroupWithResponse

func (*ClientWithResponses) AttachVMToVPCWithBodyWithResponse

func (c *ClientWithResponses) AttachVMToVPCWithBodyWithResponse(ctx context.Context, id VMIDPath, params *AttachVMToVPCParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AttachVMToVPCResponse, error)

AttachVMToVPCWithBodyWithResponse request with arbitrary body returning *AttachVMToVPCResponse

func (*ClientWithResponses) AttachVMToVPCWithResponse

func (c *ClientWithResponses) AttachVMToVPCWithResponse(ctx context.Context, id VMIDPath, params *AttachVMToVPCParams, body AttachVMToVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*AttachVMToVPCResponse, error)

func (*ClientWithResponses) AttachVolumeWithBodyWithResponse

func (c *ClientWithResponses) AttachVolumeWithBodyWithResponse(ctx context.Context, id int, params *AttachVolumeParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AttachVolumeResponse, error)

AttachVolumeWithBodyWithResponse request with arbitrary body returning *AttachVolumeResponse

func (*ClientWithResponses) AttachVolumeWithResponse

func (c *ClientWithResponses) AttachVolumeWithResponse(ctx context.Context, id int, params *AttachVolumeParams, body AttachVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*AttachVolumeResponse, error)

func (*ClientWithResponses) CancelInvitationWithResponse

func (c *ClientWithResponses) CancelInvitationWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*CancelInvitationResponse, error)

CancelInvitationWithResponse request returning *CancelInvitationResponse

func (*ClientWithResponses) ChangeIPWithResponse

func (c *ClientWithResponses) ChangeIPWithResponse(ctx context.Context, id IPIDPath, params *ChangeIPParams, reqEditors ...RequestEditorFn) (*ChangeIPResponse, error)

ChangeIPWithResponse request returning *ChangeIPResponse

func (*ClientWithResponses) CreateAPIKeyWithBodyWithResponse

func (c *ClientWithResponses) CreateAPIKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAPIKeyResponse, error)

CreateAPIKeyWithBodyWithResponse request with arbitrary body returning *CreateAPIKeyResponse

func (*ClientWithResponses) CreateAPIKeyWithResponse

func (c *ClientWithResponses) CreateAPIKeyWithResponse(ctx context.Context, body CreateAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAPIKeyResponse, error)

func (*ClientWithResponses) CreateAccountInvitationWithBodyWithResponse

func (c *ClientWithResponses) CreateAccountInvitationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAccountInvitationResponse, error)

CreateAccountInvitationWithBodyWithResponse request with arbitrary body returning *CreateAccountInvitationResponse

func (*ClientWithResponses) CreateAccountInvitationWithResponse

func (c *ClientWithResponses) CreateAccountInvitationWithResponse(ctx context.Context, body CreateAccountInvitationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAccountInvitationResponse, error)

func (*ClientWithResponses) CreateBackupScheduleWithBodyWithResponse

func (c *ClientWithResponses) CreateBackupScheduleWithBodyWithResponse(ctx context.Context, params *CreateBackupScheduleParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateBackupScheduleResponse, error)

CreateBackupScheduleWithBodyWithResponse request with arbitrary body returning *CreateBackupScheduleResponse

func (*ClientWithResponses) CreateBackupScheduleWithResponse

func (*ClientWithResponses) CreateBackupWithBodyWithResponse

func (c *ClientWithResponses) CreateBackupWithBodyWithResponse(ctx context.Context, params *CreateBackupParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateBackupResponse, error)

CreateBackupWithBodyWithResponse request with arbitrary body returning *CreateBackupResponse

func (*ClientWithResponses) CreateBackupWithResponse

func (c *ClientWithResponses) CreateBackupWithResponse(ctx context.Context, params *CreateBackupParams, body CreateBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateBackupResponse, error)

func (*ClientWithResponses) CreateProjectInvitationWithBodyWithResponse

func (c *ClientWithResponses) CreateProjectInvitationWithBodyWithResponse(ctx context.Context, id ProjectIDPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectInvitationResponse, error)

CreateProjectInvitationWithBodyWithResponse request with arbitrary body returning *CreateProjectInvitationResponse

func (*ClientWithResponses) CreateProjectInvitationWithResponse

func (*ClientWithResponses) CreateProjectWithBodyWithResponse

func (c *ClientWithResponses) CreateProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error)

CreateProjectWithBodyWithResponse request with arbitrary body returning *CreateProjectResponse

func (*ClientWithResponses) CreateProjectWithResponse

func (c *ClientWithResponses) CreateProjectWithResponse(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error)

func (*ClientWithResponses) CreateRoleWithBodyWithResponse

func (c *ClientWithResponses) CreateRoleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateRoleResponse, error)

CreateRoleWithBodyWithResponse request with arbitrary body returning *CreateRoleResponse

func (*ClientWithResponses) CreateRoleWithResponse

func (c *ClientWithResponses) CreateRoleWithResponse(ctx context.Context, body CreateRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateRoleResponse, error)

func (*ClientWithResponses) CreateSSHKeyWithBodyWithResponse

func (c *ClientWithResponses) CreateSSHKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSSHKeyResponse, error)

CreateSSHKeyWithBodyWithResponse request with arbitrary body returning *CreateSSHKeyResponse

func (*ClientWithResponses) CreateSSHKeyWithResponse

func (c *ClientWithResponses) CreateSSHKeyWithResponse(ctx context.Context, body CreateSSHKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSSHKeyResponse, error)

func (*ClientWithResponses) CreateSecurityGroupWithBodyWithResponse

func (c *ClientWithResponses) CreateSecurityGroupWithBodyWithResponse(ctx context.Context, params *CreateSecurityGroupParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSecurityGroupResponse, error)

CreateSecurityGroupWithBodyWithResponse request with arbitrary body returning *CreateSecurityGroupResponse

func (*ClientWithResponses) CreateSecurityGroupWithResponse

func (*ClientWithResponses) CreateSnapshotWithBodyWithResponse

func (c *ClientWithResponses) CreateSnapshotWithBodyWithResponse(ctx context.Context, params *CreateSnapshotParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSnapshotResponse, error)

CreateSnapshotWithBodyWithResponse request with arbitrary body returning *CreateSnapshotResponse

func (*ClientWithResponses) CreateSnapshotWithResponse

func (c *ClientWithResponses) CreateSnapshotWithResponse(ctx context.Context, params *CreateSnapshotParams, body CreateSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSnapshotResponse, error)

func (*ClientWithResponses) CreateVMWithBodyWithResponse

func (c *ClientWithResponses) CreateVMWithBodyWithResponse(ctx context.Context, params *CreateVMParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateVMResponse, error)

CreateVMWithBodyWithResponse request with arbitrary body returning *CreateVMResponse

func (*ClientWithResponses) CreateVMWithResponse

func (c *ClientWithResponses) CreateVMWithResponse(ctx context.Context, params *CreateVMParams, body CreateVMJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateVMResponse, error)

func (*ClientWithResponses) CreateVPCWithBodyWithResponse

func (c *ClientWithResponses) CreateVPCWithBodyWithResponse(ctx context.Context, params *CreateVPCParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateVPCResponse, error)

CreateVPCWithBodyWithResponse request with arbitrary body returning *CreateVPCResponse

func (*ClientWithResponses) CreateVPCWithResponse

func (c *ClientWithResponses) CreateVPCWithResponse(ctx context.Context, params *CreateVPCParams, body CreateVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateVPCResponse, error)

func (*ClientWithResponses) CreateVolumeWithBodyWithResponse

func (c *ClientWithResponses) CreateVolumeWithBodyWithResponse(ctx context.Context, params *CreateVolumeParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateVolumeResponse, error)

CreateVolumeWithBodyWithResponse request with arbitrary body returning *CreateVolumeResponse

func (*ClientWithResponses) CreateVolumeWithResponse

func (c *ClientWithResponses) CreateVolumeWithResponse(ctx context.Context, params *CreateVolumeParams, body CreateVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateVolumeResponse, error)

func (*ClientWithResponses) DeleteBackupChainWithResponse added in v0.3.4

func (c *ClientWithResponses) DeleteBackupChainWithResponse(ctx context.Context, id openapi_types.UUID, params *DeleteBackupChainParams, reqEditors ...RequestEditorFn) (*DeleteBackupChainResponse, error)

DeleteBackupChainWithResponse request returning *DeleteBackupChainResponse

func (*ClientWithResponses) DeleteBackupScheduleWithResponse

func (c *ClientWithResponses) DeleteBackupScheduleWithResponse(ctx context.Context, id int, params *DeleteBackupScheduleParams, reqEditors ...RequestEditorFn) (*DeleteBackupScheduleResponse, error)

DeleteBackupScheduleWithResponse request returning *DeleteBackupScheduleResponse

func (*ClientWithResponses) DeleteBackupWithResponse

func (c *ClientWithResponses) DeleteBackupWithResponse(ctx context.Context, id openapi_types.UUID, params *DeleteBackupParams, reqEditors ...RequestEditorFn) (*DeleteBackupResponse, error)

DeleteBackupWithResponse request returning *DeleteBackupResponse

func (*ClientWithResponses) DeleteProjectWithResponse

func (c *ClientWithResponses) DeleteProjectWithResponse(ctx context.Context, id ProjectIDPath, reqEditors ...RequestEditorFn) (*DeleteProjectResponse, error)

DeleteProjectWithResponse request returning *DeleteProjectResponse

func (*ClientWithResponses) DeleteRoleWithResponse

func (c *ClientWithResponses) DeleteRoleWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteRoleResponse, error)

DeleteRoleWithResponse request returning *DeleteRoleResponse

func (*ClientWithResponses) DeleteSSHKeyWithResponse

func (c *ClientWithResponses) DeleteSSHKeyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteSSHKeyResponse, error)

DeleteSSHKeyWithResponse request returning *DeleteSSHKeyResponse

func (*ClientWithResponses) DeleteSecurityGroupWithResponse

func (c *ClientWithResponses) DeleteSecurityGroupWithResponse(ctx context.Context, id SecurityGroupResourceIDPath, params *DeleteSecurityGroupParams, reqEditors ...RequestEditorFn) (*DeleteSecurityGroupResponse, error)

DeleteSecurityGroupWithResponse request returning *DeleteSecurityGroupResponse

func (*ClientWithResponses) DeleteSnapshotWithResponse

func (c *ClientWithResponses) DeleteSnapshotWithResponse(ctx context.Context, id int, params *DeleteSnapshotParams, reqEditors ...RequestEditorFn) (*DeleteSnapshotResponse, error)

DeleteSnapshotWithResponse request returning *DeleteSnapshotResponse

func (*ClientWithResponses) DeleteVMWithBodyWithResponse

func (c *ClientWithResponses) DeleteVMWithBodyWithResponse(ctx context.Context, id VMIDPath, params *DeleteVMParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteVMResponse, error)

DeleteVMWithBodyWithResponse request with arbitrary body returning *DeleteVMResponse

func (*ClientWithResponses) DeleteVMWithResponse

func (c *ClientWithResponses) DeleteVMWithResponse(ctx context.Context, id VMIDPath, params *DeleteVMParams, body DeleteVMJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteVMResponse, error)

func (*ClientWithResponses) DeleteVMsBulkWithBodyWithResponse

func (c *ClientWithResponses) DeleteVMsBulkWithBodyWithResponse(ctx context.Context, params *DeleteVMsBulkParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteVMsBulkResponse, error)

DeleteVMsBulkWithBodyWithResponse request with arbitrary body returning *DeleteVMsBulkResponse

func (*ClientWithResponses) DeleteVMsBulkWithResponse

func (c *ClientWithResponses) DeleteVMsBulkWithResponse(ctx context.Context, params *DeleteVMsBulkParams, body DeleteVMsBulkJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteVMsBulkResponse, error)

func (*ClientWithResponses) DeleteVPCWithResponse

func (c *ClientWithResponses) DeleteVPCWithResponse(ctx context.Context, id VPCIDPath, params *DeleteVPCParams, reqEditors ...RequestEditorFn) (*DeleteVPCResponse, error)

DeleteVPCWithResponse request returning *DeleteVPCResponse

func (*ClientWithResponses) DeleteVolumeWithResponse

func (c *ClientWithResponses) DeleteVolumeWithResponse(ctx context.Context, id int, params *DeleteVolumeParams, reqEditors ...RequestEditorFn) (*DeleteVolumeResponse, error)

DeleteVolumeWithResponse request returning *DeleteVolumeResponse

func (*ClientWithResponses) DetachVMFromVPCWithResponse

func (c *ClientWithResponses) DetachVMFromVPCWithResponse(ctx context.Context, id VMIDPath, nicID NICIDPath, params *DetachVMFromVPCParams, reqEditors ...RequestEditorFn) (*DetachVMFromVPCResponse, error)

DetachVMFromVPCWithResponse request returning *DetachVMFromVPCResponse

func (*ClientWithResponses) DetachVMIPWithResponse

func (c *ClientWithResponses) DetachVMIPWithResponse(ctx context.Context, id VMIDPath, nicID NICIDPath, params *DetachVMIPParams, reqEditors ...RequestEditorFn) (*DetachVMIPResponse, error)

DetachVMIPWithResponse request returning *DetachVMIPResponse

func (*ClientWithResponses) DetachVMSecurityGroupWithResponse

func (c *ClientWithResponses) DetachVMSecurityGroupWithResponse(ctx context.Context, id VMIDPath, sgid SecurityGroupIDPath, nicID NICIDPath, params *DetachVMSecurityGroupParams, reqEditors ...RequestEditorFn) (*DetachVMSecurityGroupResponse, error)

DetachVMSecurityGroupWithResponse request returning *DetachVMSecurityGroupResponse

func (*ClientWithResponses) DetachVolumeWithResponse

func (c *ClientWithResponses) DetachVolumeWithResponse(ctx context.Context, id int, params *DetachVolumeParams, reqEditors ...RequestEditorFn) (*DetachVolumeResponse, error)

DetachVolumeWithResponse request returning *DetachVolumeResponse

func (*ClientWithResponses) FactoryResetVMWithResponse

func (c *ClientWithResponses) FactoryResetVMWithResponse(ctx context.Context, id VMIDPath, params *FactoryResetVMParams, reqEditors ...RequestEditorFn) (*FactoryResetVMResponse, error)

FactoryResetVMWithResponse request returning *FactoryResetVMResponse

func (*ClientWithResponses) GetAPIKeyWithResponse

func (c *ClientWithResponses) GetAPIKeyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAPIKeyResponse, error)

GetAPIKeyWithResponse request returning *GetAPIKeyResponse

func (*ClientWithResponses) GetBackupScheduleWithResponse

func (c *ClientWithResponses) GetBackupScheduleWithResponse(ctx context.Context, id int, params *GetBackupScheduleParams, reqEditors ...RequestEditorFn) (*GetBackupScheduleResponse, error)

GetBackupScheduleWithResponse request returning *GetBackupScheduleResponse

func (*ClientWithResponses) GetBackupWithResponse

func (c *ClientWithResponses) GetBackupWithResponse(ctx context.Context, id openapi_types.UUID, params *GetBackupParams, reqEditors ...RequestEditorFn) (*GetBackupResponse, error)

GetBackupWithResponse request returning *GetBackupResponse

func (*ClientWithResponses) GetIPWithResponse

func (c *ClientWithResponses) GetIPWithResponse(ctx context.Context, id IPIDPath, reqEditors ...RequestEditorFn) (*GetIPResponse, error)

GetIPWithResponse request returning *GetIPResponse

func (*ClientWithResponses) GetMemberWithResponse

func (c *ClientWithResponses) GetMemberWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetMemberResponse, error)

GetMemberWithResponse request returning *GetMemberResponse

func (*ClientWithResponses) GetProjectMemberWithResponse

func (c *ClientWithResponses) GetProjectMemberWithResponse(ctx context.Context, id ProjectIDPath, memberID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetProjectMemberResponse, error)

GetProjectMemberWithResponse request returning *GetProjectMemberResponse

func (*ClientWithResponses) GetProjectWithResponse

func (c *ClientWithResponses) GetProjectWithResponse(ctx context.Context, id ProjectIDPath, reqEditors ...RequestEditorFn) (*GetProjectResponse, error)

GetProjectWithResponse request returning *GetProjectResponse

func (*ClientWithResponses) GetRoleWithResponse

func (c *ClientWithResponses) GetRoleWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetRoleResponse, error)

GetRoleWithResponse request returning *GetRoleResponse

func (*ClientWithResponses) GetSSHKeyWithResponse

func (c *ClientWithResponses) GetSSHKeyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetSSHKeyResponse, error)

GetSSHKeyWithResponse request returning *GetSSHKeyResponse

func (*ClientWithResponses) GetSecurityGroupWithResponse

func (c *ClientWithResponses) GetSecurityGroupWithResponse(ctx context.Context, id SecurityGroupResourceIDPath, params *GetSecurityGroupParams, reqEditors ...RequestEditorFn) (*GetSecurityGroupResponse, error)

GetSecurityGroupWithResponse request returning *GetSecurityGroupResponse

func (*ClientWithResponses) GetSnapshotWithResponse

func (c *ClientWithResponses) GetSnapshotWithResponse(ctx context.Context, id int, params *GetSnapshotParams, reqEditors ...RequestEditorFn) (*GetSnapshotResponse, error)

GetSnapshotWithResponse request returning *GetSnapshotResponse

func (*ClientWithResponses) GetVMNotesWithResponse

func (c *ClientWithResponses) GetVMNotesWithResponse(ctx context.Context, id VMIDPath, params *GetVMNotesParams, reqEditors ...RequestEditorFn) (*GetVMNotesResponse, error)

GetVMNotesWithResponse request returning *GetVMNotesResponse

func (*ClientWithResponses) GetVMWithResponse

func (c *ClientWithResponses) GetVMWithResponse(ctx context.Context, id VMIDPath, reqEditors ...RequestEditorFn) (*GetVMResponse, error)

GetVMWithResponse request returning *GetVMResponse

func (*ClientWithResponses) GetVPCWithResponse

func (c *ClientWithResponses) GetVPCWithResponse(ctx context.Context, id VPCIDPath, params *GetVPCParams, reqEditors ...RequestEditorFn) (*GetVPCResponse, error)

GetVPCWithResponse request returning *GetVPCResponse

func (*ClientWithResponses) GetVolumeWithResponse

func (c *ClientWithResponses) GetVolumeWithResponse(ctx context.Context, id int, params *GetVolumeParams, reqEditors ...RequestEditorFn) (*GetVolumeResponse, error)

GetVolumeWithResponse request returning *GetVolumeResponse

func (*ClientWithResponses) HardRebootVMWithResponse

func (c *ClientWithResponses) HardRebootVMWithResponse(ctx context.Context, id VMIDPath, params *HardRebootVMParams, reqEditors ...RequestEditorFn) (*HardRebootVMResponse, error)

HardRebootVMWithResponse request returning *HardRebootVMResponse

func (*ClientWithResponses) HealthCheckWithResponse

func (c *ClientWithResponses) HealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckResponse, error)

HealthCheckWithResponse request returning *HealthCheckResponse

func (*ClientWithResponses) ListAPIKeysWithResponse

func (c *ClientWithResponses) ListAPIKeysWithResponse(ctx context.Context, params *ListAPIKeysParams, reqEditors ...RequestEditorFn) (*ListAPIKeysResponse, error)

ListAPIKeysWithResponse request returning *ListAPIKeysResponse

func (*ClientWithResponses) ListBackupPricingWithResponse

func (c *ClientWithResponses) ListBackupPricingWithResponse(ctx context.Context, params *ListBackupPricingParams, reqEditors ...RequestEditorFn) (*ListBackupPricingResponse, error)

ListBackupPricingWithResponse request returning *ListBackupPricingResponse

func (*ClientWithResponses) ListBackupSchedulesWithResponse

func (c *ClientWithResponses) ListBackupSchedulesWithResponse(ctx context.Context, params *ListBackupSchedulesParams, reqEditors ...RequestEditorFn) (*ListBackupSchedulesResponse, error)

ListBackupSchedulesWithResponse request returning *ListBackupSchedulesResponse

func (*ClientWithResponses) ListBackupsWithResponse

func (c *ClientWithResponses) ListBackupsWithResponse(ctx context.Context, params *ListBackupsParams, reqEditors ...RequestEditorFn) (*ListBackupsResponse, error)

ListBackupsWithResponse request returning *ListBackupsResponse

func (*ClientWithResponses) ListIPPricingWithResponse

func (c *ClientWithResponses) ListIPPricingWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListIPPricingResponse, error)

ListIPPricingWithResponse request returning *ListIPPricingResponse

func (*ClientWithResponses) ListIPsWithResponse

func (c *ClientWithResponses) ListIPsWithResponse(ctx context.Context, params *ListIPsParams, reqEditors ...RequestEditorFn) (*ListIPsResponse, error)

ListIPsWithResponse request returning *ListIPsResponse

func (*ClientWithResponses) ListMembersWithResponse

func (c *ClientWithResponses) ListMembersWithResponse(ctx context.Context, params *ListMembersParams, reqEditors ...RequestEditorFn) (*ListMembersResponse, error)

ListMembersWithResponse request returning *ListMembersResponse

func (*ClientWithResponses) ListPermissionsWithResponse

func (c *ClientWithResponses) ListPermissionsWithResponse(ctx context.Context, params *ListPermissionsParams, reqEditors ...RequestEditorFn) (*ListPermissionsResponse, error)

ListPermissionsWithResponse request returning *ListPermissionsResponse

func (*ClientWithResponses) ListProjectMembersWithResponse

func (c *ClientWithResponses) ListProjectMembersWithResponse(ctx context.Context, id ProjectIDPath, params *ListProjectMembersParams, reqEditors ...RequestEditorFn) (*ListProjectMembersResponse, error)

ListProjectMembersWithResponse request returning *ListProjectMembersResponse

func (*ClientWithResponses) ListProjectsWithResponse

func (c *ClientWithResponses) ListProjectsWithResponse(ctx context.Context, params *ListProjectsParams, reqEditors ...RequestEditorFn) (*ListProjectsResponse, error)

ListProjectsWithResponse request returning *ListProjectsResponse

func (*ClientWithResponses) ListRegionsWithResponse

func (c *ClientWithResponses) ListRegionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListRegionsResponse, error)

ListRegionsWithResponse request returning *ListRegionsResponse

func (*ClientWithResponses) ListRolesWithResponse

func (c *ClientWithResponses) ListRolesWithResponse(ctx context.Context, params *ListRolesParams, reqEditors ...RequestEditorFn) (*ListRolesResponse, error)

ListRolesWithResponse request returning *ListRolesResponse

func (*ClientWithResponses) ListSSHKeysWithResponse

func (c *ClientWithResponses) ListSSHKeysWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSSHKeysResponse, error)

ListSSHKeysWithResponse request returning *ListSSHKeysResponse

func (*ClientWithResponses) ListSecurityGroupTemplatesWithResponse

func (c *ClientWithResponses) ListSecurityGroupTemplatesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSecurityGroupTemplatesResponse, error)

ListSecurityGroupTemplatesWithResponse request returning *ListSecurityGroupTemplatesResponse

func (*ClientWithResponses) ListSecurityGroupsWithResponse

func (c *ClientWithResponses) ListSecurityGroupsWithResponse(ctx context.Context, params *ListSecurityGroupsParams, reqEditors ...RequestEditorFn) (*ListSecurityGroupsResponse, error)

ListSecurityGroupsWithResponse request returning *ListSecurityGroupsResponse

func (*ClientWithResponses) ListSnapshotPricingWithResponse

func (c *ClientWithResponses) ListSnapshotPricingWithResponse(ctx context.Context, params *ListSnapshotPricingParams, reqEditors ...RequestEditorFn) (*ListSnapshotPricingResponse, error)

ListSnapshotPricingWithResponse request returning *ListSnapshotPricingResponse

func (*ClientWithResponses) ListSnapshotsWithResponse

func (c *ClientWithResponses) ListSnapshotsWithResponse(ctx context.Context, params *ListSnapshotsParams, reqEditors ...RequestEditorFn) (*ListSnapshotsResponse, error)

ListSnapshotsWithResponse request returning *ListSnapshotsResponse

func (*ClientWithResponses) ListTemplatesWithResponse

func (c *ClientWithResponses) ListTemplatesWithResponse(ctx context.Context, params *ListTemplatesParams, reqEditors ...RequestEditorFn) (*ListTemplatesResponse, error)

ListTemplatesWithResponse request returning *ListTemplatesResponse

func (*ClientWithResponses) ListVMNetworksWithResponse

func (c *ClientWithResponses) ListVMNetworksWithResponse(ctx context.Context, id VMIDPath, params *ListVMNetworksParams, reqEditors ...RequestEditorFn) (*ListVMNetworksResponse, error)

ListVMNetworksWithResponse request returning *ListVMNetworksResponse

func (*ClientWithResponses) ListVMPricingWithResponse

func (c *ClientWithResponses) ListVMPricingWithResponse(ctx context.Context, params *ListVMPricingParams, reqEditors ...RequestEditorFn) (*ListVMPricingResponse, error)

ListVMPricingWithResponse request returning *ListVMPricingResponse

func (*ClientWithResponses) ListVMsWithResponse

func (c *ClientWithResponses) ListVMsWithResponse(ctx context.Context, params *ListVMsParams, reqEditors ...RequestEditorFn) (*ListVMsResponse, error)

ListVMsWithResponse request returning *ListVMsResponse

func (*ClientWithResponses) ListVPCCIDRSuggestionsWithResponse

func (c *ClientWithResponses) ListVPCCIDRSuggestionsWithResponse(ctx context.Context, params *ListVPCCIDRSuggestionsParams, reqEditors ...RequestEditorFn) (*ListVPCCIDRSuggestionsResponse, error)

ListVPCCIDRSuggestionsWithResponse request returning *ListVPCCIDRSuggestionsResponse

func (*ClientWithResponses) ListVPCsWithResponse

func (c *ClientWithResponses) ListVPCsWithResponse(ctx context.Context, params *ListVPCsParams, reqEditors ...RequestEditorFn) (*ListVPCsResponse, error)

ListVPCsWithResponse request returning *ListVPCsResponse

func (*ClientWithResponses) ListVolumePricingWithResponse

func (c *ClientWithResponses) ListVolumePricingWithResponse(ctx context.Context, params *ListVolumePricingParams, reqEditors ...RequestEditorFn) (*ListVolumePricingResponse, error)

ListVolumePricingWithResponse request returning *ListVolumePricingResponse

func (*ClientWithResponses) ListVolumesWithResponse

func (c *ClientWithResponses) ListVolumesWithResponse(ctx context.Context, params *ListVolumesParams, reqEditors ...RequestEditorFn) (*ListVolumesResponse, error)

ListVolumesWithResponse request returning *ListVolumesResponse

func (*ClientWithResponses) RebootVMWithResponse

func (c *ClientWithResponses) RebootVMWithResponse(ctx context.Context, id VMIDPath, params *RebootVMParams, reqEditors ...RequestEditorFn) (*RebootVMResponse, error)

RebootVMWithResponse request returning *RebootVMResponse

func (*ClientWithResponses) RegenerateAPIKeyWithResponse

func (c *ClientWithResponses) RegenerateAPIKeyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*RegenerateAPIKeyResponse, error)

RegenerateAPIKeyWithResponse request returning *RegenerateAPIKeyResponse

func (*ClientWithResponses) ReinstallVMWithBodyWithResponse

func (c *ClientWithResponses) ReinstallVMWithBodyWithResponse(ctx context.Context, id VMIDPath, params *ReinstallVMParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReinstallVMResponse, error)

ReinstallVMWithBodyWithResponse request with arbitrary body returning *ReinstallVMResponse

func (*ClientWithResponses) ReinstallVMWithResponse

func (c *ClientWithResponses) ReinstallVMWithResponse(ctx context.Context, id VMIDPath, params *ReinstallVMParams, body ReinstallVMJSONRequestBody, reqEditors ...RequestEditorFn) (*ReinstallVMResponse, error)

func (*ClientWithResponses) ReleaseIPWithResponse

func (c *ClientWithResponses) ReleaseIPWithResponse(ctx context.Context, id IPIDPath, params *ReleaseIPParams, reqEditors ...RequestEditorFn) (*ReleaseIPResponse, error)

ReleaseIPWithResponse request returning *ReleaseIPResponse

func (*ClientWithResponses) RemoveMemberWithResponse

func (c *ClientWithResponses) RemoveMemberWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*RemoveMemberResponse, error)

RemoveMemberWithResponse request returning *RemoveMemberResponse

func (*ClientWithResponses) RemoveProjectMemberWithResponse

func (c *ClientWithResponses) RemoveProjectMemberWithResponse(ctx context.Context, id ProjectIDPath, memberID openapi_types.UUID, reqEditors ...RequestEditorFn) (*RemoveProjectMemberResponse, error)

RemoveProjectMemberWithResponse request returning *RemoveProjectMemberResponse

func (*ClientWithResponses) RemoveVMTagWithResponse

func (c *ClientWithResponses) RemoveVMTagWithResponse(ctx context.Context, id VMIDPath, tagID TagIDPath, params *RemoveVMTagParams, reqEditors ...RequestEditorFn) (*RemoveVMTagResponse, error)

RemoveVMTagWithResponse request returning *RemoveVMTagResponse

func (*ClientWithResponses) RenameSnapshotWithBodyWithResponse

func (c *ClientWithResponses) RenameSnapshotWithBodyWithResponse(ctx context.Context, id int, params *RenameSnapshotParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RenameSnapshotResponse, error)

RenameSnapshotWithBodyWithResponse request with arbitrary body returning *RenameSnapshotResponse

func (*ClientWithResponses) RenameSnapshotWithResponse

func (c *ClientWithResponses) RenameSnapshotWithResponse(ctx context.Context, id int, params *RenameSnapshotParams, body RenameSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*RenameSnapshotResponse, error)

func (*ClientWithResponses) RenameVMWithBodyWithResponse

func (c *ClientWithResponses) RenameVMWithBodyWithResponse(ctx context.Context, id VMIDPath, params *RenameVMParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RenameVMResponse, error)

RenameVMWithBodyWithResponse request with arbitrary body returning *RenameVMResponse

func (*ClientWithResponses) RenameVMWithResponse

func (c *ClientWithResponses) RenameVMWithResponse(ctx context.Context, id VMIDPath, params *RenameVMParams, body RenameVMJSONRequestBody, reqEditors ...RequestEditorFn) (*RenameVMResponse, error)

func (*ClientWithResponses) ReserveIPWithBodyWithResponse

func (c *ClientWithResponses) ReserveIPWithBodyWithResponse(ctx context.Context, params *ReserveIPParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReserveIPResponse, error)

ReserveIPWithBodyWithResponse request with arbitrary body returning *ReserveIPResponse

func (*ClientWithResponses) ReserveIPWithResponse

func (c *ClientWithResponses) ReserveIPWithResponse(ctx context.Context, params *ReserveIPParams, body ReserveIPJSONRequestBody, reqEditors ...RequestEditorFn) (*ReserveIPResponse, error)

func (*ClientWithResponses) ResetBackupChainWithResponse added in v0.3.4

func (c *ClientWithResponses) ResetBackupChainWithResponse(ctx context.Context, id openapi_types.UUID, params *ResetBackupChainParams, reqEditors ...RequestEditorFn) (*ResetBackupChainResponse, error)

ResetBackupChainWithResponse request returning *ResetBackupChainResponse

func (*ClientWithResponses) ResetVMPasswordWithResponse

func (c *ClientWithResponses) ResetVMPasswordWithResponse(ctx context.Context, id VMIDPath, params *ResetVMPasswordParams, reqEditors ...RequestEditorFn) (*ResetVMPasswordResponse, error)

ResetVMPasswordWithResponse request returning *ResetVMPasswordResponse

func (*ClientWithResponses) ResizeVMDiskWithBodyWithResponse

func (c *ClientWithResponses) ResizeVMDiskWithBodyWithResponse(ctx context.Context, id VMIDPath, params *ResizeVMDiskParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResizeVMDiskResponse, error)

ResizeVMDiskWithBodyWithResponse request with arbitrary body returning *ResizeVMDiskResponse

func (*ClientWithResponses) ResizeVMDiskWithResponse

func (c *ClientWithResponses) ResizeVMDiskWithResponse(ctx context.Context, id VMIDPath, params *ResizeVMDiskParams, body ResizeVMDiskJSONRequestBody, reqEditors ...RequestEditorFn) (*ResizeVMDiskResponse, error)

func (*ClientWithResponses) ResizeVMWithBodyWithResponse

func (c *ClientWithResponses) ResizeVMWithBodyWithResponse(ctx context.Context, id VMIDPath, params *ResizeVMParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResizeVMResponse, error)

ResizeVMWithBodyWithResponse request with arbitrary body returning *ResizeVMResponse

func (*ClientWithResponses) ResizeVMWithResponse

func (c *ClientWithResponses) ResizeVMWithResponse(ctx context.Context, id VMIDPath, params *ResizeVMParams, body ResizeVMJSONRequestBody, reqEditors ...RequestEditorFn) (*ResizeVMResponse, error)

func (*ClientWithResponses) ResizeVolumeWithBodyWithResponse

func (c *ClientWithResponses) ResizeVolumeWithBodyWithResponse(ctx context.Context, id int, params *ResizeVolumeParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResizeVolumeResponse, error)

ResizeVolumeWithBodyWithResponse request with arbitrary body returning *ResizeVolumeResponse

func (*ClientWithResponses) ResizeVolumeWithResponse

func (c *ClientWithResponses) ResizeVolumeWithResponse(ctx context.Context, id int, params *ResizeVolumeParams, body ResizeVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*ResizeVolumeResponse, error)

func (*ClientWithResponses) RestoreBackupWithResponse

func (c *ClientWithResponses) RestoreBackupWithResponse(ctx context.Context, id openapi_types.UUID, params *RestoreBackupParams, reqEditors ...RequestEditorFn) (*RestoreBackupResponse, error)

RestoreBackupWithResponse request returning *RestoreBackupResponse

func (*ClientWithResponses) RestoreSnapshotWithResponse

func (c *ClientWithResponses) RestoreSnapshotWithResponse(ctx context.Context, id int, params *RestoreSnapshotParams, reqEditors ...RequestEditorFn) (*RestoreSnapshotResponse, error)

RestoreSnapshotWithResponse request returning *RestoreSnapshotResponse

func (*ClientWithResponses) RevokeAPIKeyWithResponse

func (c *ClientWithResponses) RevokeAPIKeyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*RevokeAPIKeyResponse, error)

RevokeAPIKeyWithResponse request returning *RevokeAPIKeyResponse

func (*ClientWithResponses) SaveVMDiskAsImageWithBodyWithResponse

func (c *ClientWithResponses) SaveVMDiskAsImageWithBodyWithResponse(ctx context.Context, id VMIDPath, params *SaveVMDiskAsImageParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SaveVMDiskAsImageResponse, error)

SaveVMDiskAsImageWithBodyWithResponse request with arbitrary body returning *SaveVMDiskAsImageResponse

func (*ClientWithResponses) SaveVMDiskAsImageWithResponse

func (*ClientWithResponses) StartVMWithResponse

func (c *ClientWithResponses) StartVMWithResponse(ctx context.Context, id VMIDPath, params *StartVMParams, reqEditors ...RequestEditorFn) (*StartVMResponse, error)

StartVMWithResponse request returning *StartVMResponse

func (*ClientWithResponses) StopVMWithResponse

func (c *ClientWithResponses) StopVMWithResponse(ctx context.Context, id VMIDPath, params *StopVMParams, reqEditors ...RequestEditorFn) (*StopVMResponse, error)

StopVMWithResponse request returning *StopVMResponse

func (*ClientWithResponses) UpdateAPIKeyWithBodyWithResponse

func (c *ClientWithResponses) UpdateAPIKeyWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAPIKeyResponse, error)

UpdateAPIKeyWithBodyWithResponse request with arbitrary body returning *UpdateAPIKeyResponse

func (*ClientWithResponses) UpdateAPIKeyWithResponse

func (c *ClientWithResponses) UpdateAPIKeyWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAPIKeyResponse, error)

func (*ClientWithResponses) UpdateBackupScheduleWithBodyWithResponse

func (c *ClientWithResponses) UpdateBackupScheduleWithBodyWithResponse(ctx context.Context, id int, params *UpdateBackupScheduleParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateBackupScheduleResponse, error)

UpdateBackupScheduleWithBodyWithResponse request with arbitrary body returning *UpdateBackupScheduleResponse

func (*ClientWithResponses) UpdateBackupScheduleWithResponse

func (*ClientWithResponses) UpdateMemberWithBodyWithResponse

func (c *ClientWithResponses) UpdateMemberWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMemberResponse, error)

UpdateMemberWithBodyWithResponse request with arbitrary body returning *UpdateMemberResponse

func (*ClientWithResponses) UpdateMemberWithResponse

func (c *ClientWithResponses) UpdateMemberWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMemberResponse, error)

func (*ClientWithResponses) UpdateProjectMemberWithBodyWithResponse

func (c *ClientWithResponses) UpdateProjectMemberWithBodyWithResponse(ctx context.Context, id ProjectIDPath, memberID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectMemberResponse, error)

UpdateProjectMemberWithBodyWithResponse request with arbitrary body returning *UpdateProjectMemberResponse

func (*ClientWithResponses) UpdateProjectMemberWithResponse

func (c *ClientWithResponses) UpdateProjectMemberWithResponse(ctx context.Context, id ProjectIDPath, memberID openapi_types.UUID, body UpdateProjectMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectMemberResponse, error)

func (*ClientWithResponses) UpdateProjectWithBodyWithResponse

func (c *ClientWithResponses) UpdateProjectWithBodyWithResponse(ctx context.Context, id ProjectIDPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectResponse, error)

UpdateProjectWithBodyWithResponse request with arbitrary body returning *UpdateProjectResponse

func (*ClientWithResponses) UpdateProjectWithResponse

func (c *ClientWithResponses) UpdateProjectWithResponse(ctx context.Context, id ProjectIDPath, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectResponse, error)

func (*ClientWithResponses) UpdateRoleWithBodyWithResponse

func (c *ClientWithResponses) UpdateRoleWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateRoleResponse, error)

UpdateRoleWithBodyWithResponse request with arbitrary body returning *UpdateRoleResponse

func (*ClientWithResponses) UpdateRoleWithResponse

func (c *ClientWithResponses) UpdateRoleWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateRoleResponse, error)

func (*ClientWithResponses) UpdateSSHKeyWithBodyWithResponse

func (c *ClientWithResponses) UpdateSSHKeyWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSSHKeyResponse, error)

UpdateSSHKeyWithBodyWithResponse request with arbitrary body returning *UpdateSSHKeyResponse

func (*ClientWithResponses) UpdateSSHKeyWithResponse

func (c *ClientWithResponses) UpdateSSHKeyWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateSSHKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSSHKeyResponse, error)

func (*ClientWithResponses) UpdateSecurityGroupWithBodyWithResponse

func (c *ClientWithResponses) UpdateSecurityGroupWithBodyWithResponse(ctx context.Context, id SecurityGroupResourceIDPath, params *UpdateSecurityGroupParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSecurityGroupResponse, error)

UpdateSecurityGroupWithBodyWithResponse request with arbitrary body returning *UpdateSecurityGroupResponse

func (*ClientWithResponses) UpdateVMNoteWithBodyWithResponse

func (c *ClientWithResponses) UpdateVMNoteWithBodyWithResponse(ctx context.Context, id VMIDPath, pType UpdateVMNoteParamsType, params *UpdateVMNoteParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateVMNoteResponse, error)

UpdateVMNoteWithBodyWithResponse request with arbitrary body returning *UpdateVMNoteResponse

func (*ClientWithResponses) UpdateVMNoteWithResponse

func (*ClientWithResponses) UpdateVMTagWithBodyWithResponse

func (c *ClientWithResponses) UpdateVMTagWithBodyWithResponse(ctx context.Context, id VMIDPath, tagID TagIDPath, params *UpdateVMTagParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateVMTagResponse, error)

UpdateVMTagWithBodyWithResponse request with arbitrary body returning *UpdateVMTagResponse

func (*ClientWithResponses) UpdateVMTagWithResponse

func (c *ClientWithResponses) UpdateVMTagWithResponse(ctx context.Context, id VMIDPath, tagID TagIDPath, params *UpdateVMTagParams, body UpdateVMTagJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateVMTagResponse, error)

func (*ClientWithResponses) UpdateVPCWithBodyWithResponse

func (c *ClientWithResponses) UpdateVPCWithBodyWithResponse(ctx context.Context, id VPCIDPath, params *UpdateVPCParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateVPCResponse, error)

UpdateVPCWithBodyWithResponse request with arbitrary body returning *UpdateVPCResponse

func (*ClientWithResponses) UpdateVPCWithResponse

func (c *ClientWithResponses) UpdateVPCWithResponse(ctx context.Context, id VPCIDPath, params *UpdateVPCParams, body UpdateVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateVPCResponse, error)

func (*ClientWithResponses) UpsertVMNoteWithBodyWithResponse

func (c *ClientWithResponses) UpsertVMNoteWithBodyWithResponse(ctx context.Context, id VMIDPath, pType UpsertVMNoteParamsType, params *UpsertVMNoteParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpsertVMNoteResponse, error)

UpsertVMNoteWithBodyWithResponse request with arbitrary body returning *UpsertVMNoteResponse

func (*ClientWithResponses) UpsertVMNoteWithResponse

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// ListAPIKeysWithResponse request
	ListAPIKeysWithResponse(ctx context.Context, params *ListAPIKeysParams, reqEditors ...RequestEditorFn) (*ListAPIKeysResponse, error)

	// CreateAPIKeyWithBodyWithResponse request with any body
	CreateAPIKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAPIKeyResponse, error)

	CreateAPIKeyWithResponse(ctx context.Context, body CreateAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAPIKeyResponse, error)

	// RevokeAPIKeyWithResponse request
	RevokeAPIKeyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*RevokeAPIKeyResponse, error)

	// GetAPIKeyWithResponse request
	GetAPIKeyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAPIKeyResponse, error)

	// UpdateAPIKeyWithBodyWithResponse request with any body
	UpdateAPIKeyWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAPIKeyResponse, error)

	UpdateAPIKeyWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAPIKeyResponse, error)

	// RegenerateAPIKeyWithResponse request
	RegenerateAPIKeyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*RegenerateAPIKeyResponse, error)

	// ListBackupSchedulesWithResponse request
	ListBackupSchedulesWithResponse(ctx context.Context, params *ListBackupSchedulesParams, reqEditors ...RequestEditorFn) (*ListBackupSchedulesResponse, error)

	// CreateBackupScheduleWithBodyWithResponse request with any body
	CreateBackupScheduleWithBodyWithResponse(ctx context.Context, params *CreateBackupScheduleParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateBackupScheduleResponse, error)

	CreateBackupScheduleWithResponse(ctx context.Context, params *CreateBackupScheduleParams, body CreateBackupScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateBackupScheduleResponse, error)

	// DeleteBackupScheduleWithResponse request
	DeleteBackupScheduleWithResponse(ctx context.Context, id int, params *DeleteBackupScheduleParams, reqEditors ...RequestEditorFn) (*DeleteBackupScheduleResponse, error)

	// GetBackupScheduleWithResponse request
	GetBackupScheduleWithResponse(ctx context.Context, id int, params *GetBackupScheduleParams, reqEditors ...RequestEditorFn) (*GetBackupScheduleResponse, error)

	// UpdateBackupScheduleWithBodyWithResponse request with any body
	UpdateBackupScheduleWithBodyWithResponse(ctx context.Context, id int, params *UpdateBackupScheduleParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateBackupScheduleResponse, error)

	UpdateBackupScheduleWithResponse(ctx context.Context, id int, params *UpdateBackupScheduleParams, body UpdateBackupScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateBackupScheduleResponse, error)

	// ListBackupsWithResponse request
	ListBackupsWithResponse(ctx context.Context, params *ListBackupsParams, reqEditors ...RequestEditorFn) (*ListBackupsResponse, error)

	// CreateBackupWithBodyWithResponse request with any body
	CreateBackupWithBodyWithResponse(ctx context.Context, params *CreateBackupParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateBackupResponse, error)

	CreateBackupWithResponse(ctx context.Context, params *CreateBackupParams, body CreateBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateBackupResponse, error)

	// DeleteBackupWithResponse request
	DeleteBackupWithResponse(ctx context.Context, id openapi_types.UUID, params *DeleteBackupParams, reqEditors ...RequestEditorFn) (*DeleteBackupResponse, error)

	// GetBackupWithResponse request
	GetBackupWithResponse(ctx context.Context, id openapi_types.UUID, params *GetBackupParams, reqEditors ...RequestEditorFn) (*GetBackupResponse, error)

	// DeleteBackupChainWithResponse request
	DeleteBackupChainWithResponse(ctx context.Context, id openapi_types.UUID, params *DeleteBackupChainParams, reqEditors ...RequestEditorFn) (*DeleteBackupChainResponse, error)

	// RestoreBackupWithResponse request
	RestoreBackupWithResponse(ctx context.Context, id openapi_types.UUID, params *RestoreBackupParams, reqEditors ...RequestEditorFn) (*RestoreBackupResponse, error)

	// CreateAccountInvitationWithBodyWithResponse request with any body
	CreateAccountInvitationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAccountInvitationResponse, error)

	CreateAccountInvitationWithResponse(ctx context.Context, body CreateAccountInvitationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAccountInvitationResponse, error)

	// CancelInvitationWithResponse request
	CancelInvitationWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*CancelInvitationResponse, error)

	// ListIPsWithResponse request
	ListIPsWithResponse(ctx context.Context, params *ListIPsParams, reqEditors ...RequestEditorFn) (*ListIPsResponse, error)

	// ReserveIPWithBodyWithResponse request with any body
	ReserveIPWithBodyWithResponse(ctx context.Context, params *ReserveIPParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReserveIPResponse, error)

	ReserveIPWithResponse(ctx context.Context, params *ReserveIPParams, body ReserveIPJSONRequestBody, reqEditors ...RequestEditorFn) (*ReserveIPResponse, error)

	// GetIPWithResponse request
	GetIPWithResponse(ctx context.Context, id IPIDPath, reqEditors ...RequestEditorFn) (*GetIPResponse, error)

	// ChangeIPWithResponse request
	ChangeIPWithResponse(ctx context.Context, id IPIDPath, params *ChangeIPParams, reqEditors ...RequestEditorFn) (*ChangeIPResponse, error)

	// ReleaseIPWithResponse request
	ReleaseIPWithResponse(ctx context.Context, id IPIDPath, params *ReleaseIPParams, reqEditors ...RequestEditorFn) (*ReleaseIPResponse, error)

	// ListMembersWithResponse request
	ListMembersWithResponse(ctx context.Context, params *ListMembersParams, reqEditors ...RequestEditorFn) (*ListMembersResponse, error)

	// AddMemberWithBodyWithResponse request with any body
	AddMemberWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddMemberResponse, error)

	AddMemberWithResponse(ctx context.Context, body AddMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*AddMemberResponse, error)

	// RemoveMemberWithResponse request
	RemoveMemberWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*RemoveMemberResponse, error)

	// GetMemberWithResponse request
	GetMemberWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetMemberResponse, error)

	// UpdateMemberWithBodyWithResponse request with any body
	UpdateMemberWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMemberResponse, error)

	UpdateMemberWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMemberResponse, error)

	// ListPermissionsWithResponse request
	ListPermissionsWithResponse(ctx context.Context, params *ListPermissionsParams, reqEditors ...RequestEditorFn) (*ListPermissionsResponse, error)

	// ListProjectsWithResponse request
	ListProjectsWithResponse(ctx context.Context, params *ListProjectsParams, reqEditors ...RequestEditorFn) (*ListProjectsResponse, error)

	// CreateProjectWithBodyWithResponse request with any body
	CreateProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error)

	CreateProjectWithResponse(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error)

	// DeleteProjectWithResponse request
	DeleteProjectWithResponse(ctx context.Context, id ProjectIDPath, reqEditors ...RequestEditorFn) (*DeleteProjectResponse, error)

	// GetProjectWithResponse request
	GetProjectWithResponse(ctx context.Context, id ProjectIDPath, reqEditors ...RequestEditorFn) (*GetProjectResponse, error)

	// UpdateProjectWithBodyWithResponse request with any body
	UpdateProjectWithBodyWithResponse(ctx context.Context, id ProjectIDPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectResponse, error)

	UpdateProjectWithResponse(ctx context.Context, id ProjectIDPath, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectResponse, error)

	// CreateProjectInvitationWithBodyWithResponse request with any body
	CreateProjectInvitationWithBodyWithResponse(ctx context.Context, id ProjectIDPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectInvitationResponse, error)

	CreateProjectInvitationWithResponse(ctx context.Context, id ProjectIDPath, body CreateProjectInvitationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectInvitationResponse, error)

	// ListProjectMembersWithResponse request
	ListProjectMembersWithResponse(ctx context.Context, id ProjectIDPath, params *ListProjectMembersParams, reqEditors ...RequestEditorFn) (*ListProjectMembersResponse, error)

	// AddProjectMemberWithBodyWithResponse request with any body
	AddProjectMemberWithBodyWithResponse(ctx context.Context, id ProjectIDPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddProjectMemberResponse, error)

	AddProjectMemberWithResponse(ctx context.Context, id ProjectIDPath, body AddProjectMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*AddProjectMemberResponse, error)

	// RemoveProjectMemberWithResponse request
	RemoveProjectMemberWithResponse(ctx context.Context, id ProjectIDPath, memberID openapi_types.UUID, reqEditors ...RequestEditorFn) (*RemoveProjectMemberResponse, error)

	// GetProjectMemberWithResponse request
	GetProjectMemberWithResponse(ctx context.Context, id ProjectIDPath, memberID openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetProjectMemberResponse, error)

	// UpdateProjectMemberWithBodyWithResponse request with any body
	UpdateProjectMemberWithBodyWithResponse(ctx context.Context, id ProjectIDPath, memberID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectMemberResponse, error)

	UpdateProjectMemberWithResponse(ctx context.Context, id ProjectIDPath, memberID openapi_types.UUID, body UpdateProjectMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectMemberResponse, error)

	// ListBackupPricingWithResponse request
	ListBackupPricingWithResponse(ctx context.Context, params *ListBackupPricingParams, reqEditors ...RequestEditorFn) (*ListBackupPricingResponse, error)

	// ListIPPricingWithResponse request
	ListIPPricingWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListIPPricingResponse, error)

	// ListSnapshotPricingWithResponse request
	ListSnapshotPricingWithResponse(ctx context.Context, params *ListSnapshotPricingParams, reqEditors ...RequestEditorFn) (*ListSnapshotPricingResponse, error)

	// ListVMPricingWithResponse request
	ListVMPricingWithResponse(ctx context.Context, params *ListVMPricingParams, reqEditors ...RequestEditorFn) (*ListVMPricingResponse, error)

	// ListVolumePricingWithResponse request
	ListVolumePricingWithResponse(ctx context.Context, params *ListVolumePricingParams, reqEditors ...RequestEditorFn) (*ListVolumePricingResponse, error)

	// ListRegionsWithResponse request
	ListRegionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListRegionsResponse, error)

	// ListTemplatesWithResponse request
	ListTemplatesWithResponse(ctx context.Context, params *ListTemplatesParams, reqEditors ...RequestEditorFn) (*ListTemplatesResponse, error)

	// ListRolesWithResponse request
	ListRolesWithResponse(ctx context.Context, params *ListRolesParams, reqEditors ...RequestEditorFn) (*ListRolesResponse, error)

	// CreateRoleWithBodyWithResponse request with any body
	CreateRoleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateRoleResponse, error)

	CreateRoleWithResponse(ctx context.Context, body CreateRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateRoleResponse, error)

	// DeleteRoleWithResponse request
	DeleteRoleWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteRoleResponse, error)

	// GetRoleWithResponse request
	GetRoleWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetRoleResponse, error)

	// UpdateRoleWithBodyWithResponse request with any body
	UpdateRoleWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateRoleResponse, error)

	UpdateRoleWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateRoleJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateRoleResponse, error)

	// ListSecurityGroupsWithResponse request
	ListSecurityGroupsWithResponse(ctx context.Context, params *ListSecurityGroupsParams, reqEditors ...RequestEditorFn) (*ListSecurityGroupsResponse, error)

	// CreateSecurityGroupWithBodyWithResponse request with any body
	CreateSecurityGroupWithBodyWithResponse(ctx context.Context, params *CreateSecurityGroupParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSecurityGroupResponse, error)

	CreateSecurityGroupWithResponse(ctx context.Context, params *CreateSecurityGroupParams, body CreateSecurityGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSecurityGroupResponse, error)

	// ListSecurityGroupTemplatesWithResponse request
	ListSecurityGroupTemplatesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSecurityGroupTemplatesResponse, error)

	// DeleteSecurityGroupWithResponse request
	DeleteSecurityGroupWithResponse(ctx context.Context, id SecurityGroupResourceIDPath, params *DeleteSecurityGroupParams, reqEditors ...RequestEditorFn) (*DeleteSecurityGroupResponse, error)

	// GetSecurityGroupWithResponse request
	GetSecurityGroupWithResponse(ctx context.Context, id SecurityGroupResourceIDPath, params *GetSecurityGroupParams, reqEditors ...RequestEditorFn) (*GetSecurityGroupResponse, error)

	// UpdateSecurityGroupWithBodyWithResponse request with any body
	UpdateSecurityGroupWithBodyWithResponse(ctx context.Context, id SecurityGroupResourceIDPath, params *UpdateSecurityGroupParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSecurityGroupResponse, error)

	UpdateSecurityGroupWithResponse(ctx context.Context, id SecurityGroupResourceIDPath, params *UpdateSecurityGroupParams, body UpdateSecurityGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSecurityGroupResponse, error)

	// ListSnapshotsWithResponse request
	ListSnapshotsWithResponse(ctx context.Context, params *ListSnapshotsParams, reqEditors ...RequestEditorFn) (*ListSnapshotsResponse, error)

	// CreateSnapshotWithBodyWithResponse request with any body
	CreateSnapshotWithBodyWithResponse(ctx context.Context, params *CreateSnapshotParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSnapshotResponse, error)

	CreateSnapshotWithResponse(ctx context.Context, params *CreateSnapshotParams, body CreateSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSnapshotResponse, error)

	// DeleteSnapshotWithResponse request
	DeleteSnapshotWithResponse(ctx context.Context, id int, params *DeleteSnapshotParams, reqEditors ...RequestEditorFn) (*DeleteSnapshotResponse, error)

	// GetSnapshotWithResponse request
	GetSnapshotWithResponse(ctx context.Context, id int, params *GetSnapshotParams, reqEditors ...RequestEditorFn) (*GetSnapshotResponse, error)

	// RenameSnapshotWithBodyWithResponse request with any body
	RenameSnapshotWithBodyWithResponse(ctx context.Context, id int, params *RenameSnapshotParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RenameSnapshotResponse, error)

	RenameSnapshotWithResponse(ctx context.Context, id int, params *RenameSnapshotParams, body RenameSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*RenameSnapshotResponse, error)

	// RestoreSnapshotWithResponse request
	RestoreSnapshotWithResponse(ctx context.Context, id int, params *RestoreSnapshotParams, reqEditors ...RequestEditorFn) (*RestoreSnapshotResponse, error)

	// ListSSHKeysWithResponse request
	ListSSHKeysWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSSHKeysResponse, error)

	// CreateSSHKeyWithBodyWithResponse request with any body
	CreateSSHKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSSHKeyResponse, error)

	CreateSSHKeyWithResponse(ctx context.Context, body CreateSSHKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSSHKeyResponse, error)

	// DeleteSSHKeyWithResponse request
	DeleteSSHKeyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteSSHKeyResponse, error)

	// GetSSHKeyWithResponse request
	GetSSHKeyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetSSHKeyResponse, error)

	// UpdateSSHKeyWithBodyWithResponse request with any body
	UpdateSSHKeyWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSSHKeyResponse, error)

	UpdateSSHKeyWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateSSHKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSSHKeyResponse, error)

	// ListVMsWithResponse request
	ListVMsWithResponse(ctx context.Context, params *ListVMsParams, reqEditors ...RequestEditorFn) (*ListVMsResponse, error)

	// CreateVMWithBodyWithResponse request with any body
	CreateVMWithBodyWithResponse(ctx context.Context, params *CreateVMParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateVMResponse, error)

	CreateVMWithResponse(ctx context.Context, params *CreateVMParams, body CreateVMJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateVMResponse, error)

	// DeleteVMsBulkWithBodyWithResponse request with any body
	DeleteVMsBulkWithBodyWithResponse(ctx context.Context, params *DeleteVMsBulkParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteVMsBulkResponse, error)

	DeleteVMsBulkWithResponse(ctx context.Context, params *DeleteVMsBulkParams, body DeleteVMsBulkJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteVMsBulkResponse, error)

	// DeleteVMWithBodyWithResponse request with any body
	DeleteVMWithBodyWithResponse(ctx context.Context, id VMIDPath, params *DeleteVMParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteVMResponse, error)

	DeleteVMWithResponse(ctx context.Context, id VMIDPath, params *DeleteVMParams, body DeleteVMJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteVMResponse, error)

	// GetVMWithResponse request
	GetVMWithResponse(ctx context.Context, id VMIDPath, reqEditors ...RequestEditorFn) (*GetVMResponse, error)

	// ResetBackupChainWithResponse request
	ResetBackupChainWithResponse(ctx context.Context, id openapi_types.UUID, params *ResetBackupChainParams, reqEditors ...RequestEditorFn) (*ResetBackupChainResponse, error)

	// ResizeVMDiskWithBodyWithResponse request with any body
	ResizeVMDiskWithBodyWithResponse(ctx context.Context, id VMIDPath, params *ResizeVMDiskParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResizeVMDiskResponse, error)

	ResizeVMDiskWithResponse(ctx context.Context, id VMIDPath, params *ResizeVMDiskParams, body ResizeVMDiskJSONRequestBody, reqEditors ...RequestEditorFn) (*ResizeVMDiskResponse, error)

	// FactoryResetVMWithResponse request
	FactoryResetVMWithResponse(ctx context.Context, id VMIDPath, params *FactoryResetVMParams, reqEditors ...RequestEditorFn) (*FactoryResetVMResponse, error)

	// AttachVMIPWithBodyWithResponse request with any body
	AttachVMIPWithBodyWithResponse(ctx context.Context, id VMIDPath, params *AttachVMIPParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AttachVMIPResponse, error)

	AttachVMIPWithResponse(ctx context.Context, id VMIDPath, params *AttachVMIPParams, body AttachVMIPJSONRequestBody, reqEditors ...RequestEditorFn) (*AttachVMIPResponse, error)

	// DetachVMIPWithResponse request
	DetachVMIPWithResponse(ctx context.Context, id VMIDPath, nicID NICIDPath, params *DetachVMIPParams, reqEditors ...RequestEditorFn) (*DetachVMIPResponse, error)

	// ListVMNetworksWithResponse request
	ListVMNetworksWithResponse(ctx context.Context, id VMIDPath, params *ListVMNetworksParams, reqEditors ...RequestEditorFn) (*ListVMNetworksResponse, error)

	// GetVMNotesWithResponse request
	GetVMNotesWithResponse(ctx context.Context, id VMIDPath, params *GetVMNotesParams, reqEditors ...RequestEditorFn) (*GetVMNotesResponse, error)

	// UpdateVMNoteWithBodyWithResponse request with any body
	UpdateVMNoteWithBodyWithResponse(ctx context.Context, id VMIDPath, pType UpdateVMNoteParamsType, params *UpdateVMNoteParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateVMNoteResponse, error)

	UpdateVMNoteWithResponse(ctx context.Context, id VMIDPath, pType UpdateVMNoteParamsType, params *UpdateVMNoteParams, body UpdateVMNoteJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateVMNoteResponse, error)

	// UpsertVMNoteWithBodyWithResponse request with any body
	UpsertVMNoteWithBodyWithResponse(ctx context.Context, id VMIDPath, pType UpsertVMNoteParamsType, params *UpsertVMNoteParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpsertVMNoteResponse, error)

	UpsertVMNoteWithResponse(ctx context.Context, id VMIDPath, pType UpsertVMNoteParamsType, params *UpsertVMNoteParams, body UpsertVMNoteJSONRequestBody, reqEditors ...RequestEditorFn) (*UpsertVMNoteResponse, error)

	// AppendVMNoteWithBodyWithResponse request with any body
	AppendVMNoteWithBodyWithResponse(ctx context.Context, id VMIDPath, pType AppendVMNoteParamsType, params *AppendVMNoteParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AppendVMNoteResponse, error)

	AppendVMNoteWithResponse(ctx context.Context, id VMIDPath, pType AppendVMNoteParamsType, params *AppendVMNoteParams, body AppendVMNoteJSONRequestBody, reqEditors ...RequestEditorFn) (*AppendVMNoteResponse, error)

	// RebootVMWithResponse request
	RebootVMWithResponse(ctx context.Context, id VMIDPath, params *RebootVMParams, reqEditors ...RequestEditorFn) (*RebootVMResponse, error)

	// HardRebootVMWithResponse request
	HardRebootVMWithResponse(ctx context.Context, id VMIDPath, params *HardRebootVMParams, reqEditors ...RequestEditorFn) (*HardRebootVMResponse, error)

	// ReinstallVMWithBodyWithResponse request with any body
	ReinstallVMWithBodyWithResponse(ctx context.Context, id VMIDPath, params *ReinstallVMParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReinstallVMResponse, error)

	ReinstallVMWithResponse(ctx context.Context, id VMIDPath, params *ReinstallVMParams, body ReinstallVMJSONRequestBody, reqEditors ...RequestEditorFn) (*ReinstallVMResponse, error)

	// RenameVMWithBodyWithResponse request with any body
	RenameVMWithBodyWithResponse(ctx context.Context, id VMIDPath, params *RenameVMParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RenameVMResponse, error)

	RenameVMWithResponse(ctx context.Context, id VMIDPath, params *RenameVMParams, body RenameVMJSONRequestBody, reqEditors ...RequestEditorFn) (*RenameVMResponse, error)

	// ResetVMPasswordWithResponse request
	ResetVMPasswordWithResponse(ctx context.Context, id VMIDPath, params *ResetVMPasswordParams, reqEditors ...RequestEditorFn) (*ResetVMPasswordResponse, error)

	// ResizeVMWithBodyWithResponse request with any body
	ResizeVMWithBodyWithResponse(ctx context.Context, id VMIDPath, params *ResizeVMParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResizeVMResponse, error)

	ResizeVMWithResponse(ctx context.Context, id VMIDPath, params *ResizeVMParams, body ResizeVMJSONRequestBody, reqEditors ...RequestEditorFn) (*ResizeVMResponse, error)

	// SaveVMDiskAsImageWithBodyWithResponse request with any body
	SaveVMDiskAsImageWithBodyWithResponse(ctx context.Context, id VMIDPath, params *SaveVMDiskAsImageParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SaveVMDiskAsImageResponse, error)

	SaveVMDiskAsImageWithResponse(ctx context.Context, id VMIDPath, params *SaveVMDiskAsImageParams, body SaveVMDiskAsImageJSONRequestBody, reqEditors ...RequestEditorFn) (*SaveVMDiskAsImageResponse, error)

	// AttachVMSecurityGroupWithBodyWithResponse request with any body
	AttachVMSecurityGroupWithBodyWithResponse(ctx context.Context, id VMIDPath, params *AttachVMSecurityGroupParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AttachVMSecurityGroupResponse, error)

	AttachVMSecurityGroupWithResponse(ctx context.Context, id VMIDPath, params *AttachVMSecurityGroupParams, body AttachVMSecurityGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*AttachVMSecurityGroupResponse, error)

	// DetachVMSecurityGroupWithResponse request
	DetachVMSecurityGroupWithResponse(ctx context.Context, id VMIDPath, sgid SecurityGroupIDPath, nicID NICIDPath, params *DetachVMSecurityGroupParams, reqEditors ...RequestEditorFn) (*DetachVMSecurityGroupResponse, error)

	// StartVMWithResponse request
	StartVMWithResponse(ctx context.Context, id VMIDPath, params *StartVMParams, reqEditors ...RequestEditorFn) (*StartVMResponse, error)

	// StopVMWithResponse request
	StopVMWithResponse(ctx context.Context, id VMIDPath, params *StopVMParams, reqEditors ...RequestEditorFn) (*StopVMResponse, error)

	// AddVMTagWithBodyWithResponse request with any body
	AddVMTagWithBodyWithResponse(ctx context.Context, id VMIDPath, params *AddVMTagParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddVMTagResponse, error)

	AddVMTagWithResponse(ctx context.Context, id VMIDPath, params *AddVMTagParams, body AddVMTagJSONRequestBody, reqEditors ...RequestEditorFn) (*AddVMTagResponse, error)

	// RemoveVMTagWithResponse request
	RemoveVMTagWithResponse(ctx context.Context, id VMIDPath, tagID TagIDPath, params *RemoveVMTagParams, reqEditors ...RequestEditorFn) (*RemoveVMTagResponse, error)

	// UpdateVMTagWithBodyWithResponse request with any body
	UpdateVMTagWithBodyWithResponse(ctx context.Context, id VMIDPath, tagID TagIDPath, params *UpdateVMTagParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateVMTagResponse, error)

	UpdateVMTagWithResponse(ctx context.Context, id VMIDPath, tagID TagIDPath, params *UpdateVMTagParams, body UpdateVMTagJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateVMTagResponse, error)

	// AttachVMToVPCWithBodyWithResponse request with any body
	AttachVMToVPCWithBodyWithResponse(ctx context.Context, id VMIDPath, params *AttachVMToVPCParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AttachVMToVPCResponse, error)

	AttachVMToVPCWithResponse(ctx context.Context, id VMIDPath, params *AttachVMToVPCParams, body AttachVMToVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*AttachVMToVPCResponse, error)

	// DetachVMFromVPCWithResponse request
	DetachVMFromVPCWithResponse(ctx context.Context, id VMIDPath, nicID NICIDPath, params *DetachVMFromVPCParams, reqEditors ...RequestEditorFn) (*DetachVMFromVPCResponse, error)

	// ListVolumesWithResponse request
	ListVolumesWithResponse(ctx context.Context, params *ListVolumesParams, reqEditors ...RequestEditorFn) (*ListVolumesResponse, error)

	// CreateVolumeWithBodyWithResponse request with any body
	CreateVolumeWithBodyWithResponse(ctx context.Context, params *CreateVolumeParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateVolumeResponse, error)

	CreateVolumeWithResponse(ctx context.Context, params *CreateVolumeParams, body CreateVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateVolumeResponse, error)

	// DeleteVolumeWithResponse request
	DeleteVolumeWithResponse(ctx context.Context, id int, params *DeleteVolumeParams, reqEditors ...RequestEditorFn) (*DeleteVolumeResponse, error)

	// GetVolumeWithResponse request
	GetVolumeWithResponse(ctx context.Context, id int, params *GetVolumeParams, reqEditors ...RequestEditorFn) (*GetVolumeResponse, error)

	// ResizeVolumeWithBodyWithResponse request with any body
	ResizeVolumeWithBodyWithResponse(ctx context.Context, id int, params *ResizeVolumeParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResizeVolumeResponse, error)

	ResizeVolumeWithResponse(ctx context.Context, id int, params *ResizeVolumeParams, body ResizeVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*ResizeVolumeResponse, error)

	// AttachVolumeWithBodyWithResponse request with any body
	AttachVolumeWithBodyWithResponse(ctx context.Context, id int, params *AttachVolumeParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AttachVolumeResponse, error)

	AttachVolumeWithResponse(ctx context.Context, id int, params *AttachVolumeParams, body AttachVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*AttachVolumeResponse, error)

	// DetachVolumeWithResponse request
	DetachVolumeWithResponse(ctx context.Context, id int, params *DetachVolumeParams, reqEditors ...RequestEditorFn) (*DetachVolumeResponse, error)

	// ListVPCsWithResponse request
	ListVPCsWithResponse(ctx context.Context, params *ListVPCsParams, reqEditors ...RequestEditorFn) (*ListVPCsResponse, error)

	// CreateVPCWithBodyWithResponse request with any body
	CreateVPCWithBodyWithResponse(ctx context.Context, params *CreateVPCParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateVPCResponse, error)

	CreateVPCWithResponse(ctx context.Context, params *CreateVPCParams, body CreateVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateVPCResponse, error)

	// ListVPCCIDRSuggestionsWithResponse request
	ListVPCCIDRSuggestionsWithResponse(ctx context.Context, params *ListVPCCIDRSuggestionsParams, reqEditors ...RequestEditorFn) (*ListVPCCIDRSuggestionsResponse, error)

	// DeleteVPCWithResponse request
	DeleteVPCWithResponse(ctx context.Context, id VPCIDPath, params *DeleteVPCParams, reqEditors ...RequestEditorFn) (*DeleteVPCResponse, error)

	// GetVPCWithResponse request
	GetVPCWithResponse(ctx context.Context, id VPCIDPath, params *GetVPCParams, reqEditors ...RequestEditorFn) (*GetVPCResponse, error)

	// UpdateVPCWithBodyWithResponse request with any body
	UpdateVPCWithBodyWithResponse(ctx context.Context, id VPCIDPath, params *UpdateVPCParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateVPCResponse, error)

	UpdateVPCWithResponse(ctx context.Context, id VPCIDPath, params *UpdateVPCParams, body UpdateVPCJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateVPCResponse, error)

	// HealthCheckWithResponse request
	HealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type CreateAPIKeyJSONRequestBody

type CreateAPIKeyJSONRequestBody = CreateAPIKeyRequest

CreateAPIKeyJSONRequestBody defines body for CreateAPIKey for application/json ContentType.

type CreateAPIKeyRequest

type CreateAPIKeyRequest struct {
	// ExpiresAt Optional expiration timestamp. Omit for never-expires keys.
	ExpiresAt *time.Time `json:"expires_at,omitempty"`

	// Name A descriptive label for the key (e.g. `Production CI`, `Backups Lambda`)
	Name string `json:"name"`

	// RateLimitTier `standard` (30 RPS) by default. `high` (100 RPS) requires support approval — request via email if you need it.
	RateLimitTier *CreateAPIKeyRequestRateLimitTier `json:"rate_limit_tier,omitempty"`

	// RoleID Account-level role to assign. The key inherits this role's `account.*` permissions. To grant per-project access, add the key as a Project Member after creation.
	RoleID *openapi_types.UUID `json:"role_id,omitempty"`
}

CreateAPIKeyRequest defines model for CreateAPIKeyRequest.

type CreateAPIKeyRequestRateLimitTier

type CreateAPIKeyRequestRateLimitTier string

CreateAPIKeyRequestRateLimitTier `standard` (30 RPS) by default. `high` (100 RPS) requires support approval — request via email if you need it.

const (
	CreateAPIKeyRequestRateLimitTierHigh     CreateAPIKeyRequestRateLimitTier = "high"
	CreateAPIKeyRequestRateLimitTierStandard CreateAPIKeyRequestRateLimitTier = "standard"
)

Defines values for CreateAPIKeyRequestRateLimitTier.

func (CreateAPIKeyRequestRateLimitTier) Valid

Valid indicates whether the value is a known member of the CreateAPIKeyRequestRateLimitTier enum.

type CreateAPIKeyResponse

type CreateAPIKeyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *struct {
		Data    *APIKeyWithSecret `json:"data,omitempty"`
		Success *bool             `json:"success,omitempty"`
	}
	JSON400 *BadRequest
}

func ParseCreateAPIKeyResponse

func ParseCreateAPIKeyResponse(rsp *http.Response) (*CreateAPIKeyResponse, error)

ParseCreateAPIKeyResponse parses an HTTP response from a CreateAPIKeyWithResponse call

func (CreateAPIKeyResponse) Status

func (r CreateAPIKeyResponse) Status() string

Status returns HTTPResponse.Status

func (CreateAPIKeyResponse) StatusCode

func (r CreateAPIKeyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateAccountInvitationJSONRequestBody

type CreateAccountInvitationJSONRequestBody = CreateInvitationRequest

CreateAccountInvitationJSONRequestBody defines body for CreateAccountInvitation for application/json ContentType.

type CreateAccountInvitationResponse

type CreateAccountInvitationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *struct {
		Data    *Invitation `json:"data,omitempty"`
		Success *bool       `json:"success,omitempty"`
	}
	JSON400 *BadRequest
}

func ParseCreateAccountInvitationResponse

func ParseCreateAccountInvitationResponse(rsp *http.Response) (*CreateAccountInvitationResponse, error)

ParseCreateAccountInvitationResponse parses an HTTP response from a CreateAccountInvitationWithResponse call

func (CreateAccountInvitationResponse) Status

Status returns HTTPResponse.Status

func (CreateAccountInvitationResponse) StatusCode

func (r CreateAccountInvitationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateBackupJSONRequestBody

type CreateBackupJSONRequestBody = CreateBackupRequest

CreateBackupJSONRequestBody defines body for CreateBackup for application/json ContentType.

type CreateBackupParams

type CreateBackupParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

CreateBackupParams defines parameters for CreateBackup.

type CreateBackupRequest

type CreateBackupRequest struct {
	// Name Optional backup display name. Defaults to a timestamped name.
	Name *string `json:"name,omitempty"`

	// VMID Source VM UUID
	VMID openapi_types.UUID `json:"vm_id"`
}

CreateBackupRequest defines model for CreateBackupRequest.

type CreateBackupResponse

type CreateBackupResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON202      *struct {
		Data    *Backup `json:"data,omitempty"`
		Success *bool   `json:"success,omitempty"`
	}
	JSON400 *BadRequest
	JSON401 *Unauthorized
	JSON402 *InsufficientBalance
	JSON403 *BillingValidationFailed
}

func ParseCreateBackupResponse

func ParseCreateBackupResponse(rsp *http.Response) (*CreateBackupResponse, error)

ParseCreateBackupResponse parses an HTTP response from a CreateBackupWithResponse call

func (CreateBackupResponse) Status

func (r CreateBackupResponse) Status() string

Status returns HTTPResponse.Status

func (CreateBackupResponse) StatusCode

func (r CreateBackupResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateBackupScheduleJSONRequestBody

type CreateBackupScheduleJSONRequestBody = CreateBackupScheduleRequest

CreateBackupScheduleJSONRequestBody defines body for CreateBackupSchedule for application/json ContentType.

type CreateBackupScheduleParams

type CreateBackupScheduleParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

CreateBackupScheduleParams defines parameters for CreateBackupSchedule.

type CreateBackupScheduleRequest

type CreateBackupScheduleRequest struct {
	// DayOfWeek Day of week. Required when `type` is `weekly`.
	DayOfWeek *CreateBackupScheduleRequestDayOfWeek `json:"day_of_week,omitempty"`

	// KeepCount Number of backups to retain before auto-pruning
	KeepCount int `json:"keep_count"`

	// Time Time of day to run the backup (e.g. `8am`, `13:00`)
	Time string `json:"time"`

	// Type Schedule frequency
	Type CreateBackupScheduleRequestType `json:"type"`

	// VMID Target VM UUID
	VMID openapi_types.UUID `json:"vm_id"`
}

CreateBackupScheduleRequest defines model for CreateBackupScheduleRequest.

type CreateBackupScheduleRequestDayOfWeek

type CreateBackupScheduleRequestDayOfWeek string

CreateBackupScheduleRequestDayOfWeek Day of week. Required when `type` is `weekly`.

const (
	CreateBackupScheduleRequestDayOfWeekFriday    CreateBackupScheduleRequestDayOfWeek = "Friday"
	CreateBackupScheduleRequestDayOfWeekMonday    CreateBackupScheduleRequestDayOfWeek = "Monday"
	CreateBackupScheduleRequestDayOfWeekSaturday  CreateBackupScheduleRequestDayOfWeek = "Saturday"
	CreateBackupScheduleRequestDayOfWeekSunday    CreateBackupScheduleRequestDayOfWeek = "Sunday"
	CreateBackupScheduleRequestDayOfWeekThursday  CreateBackupScheduleRequestDayOfWeek = "Thursday"
	CreateBackupScheduleRequestDayOfWeekTuesday   CreateBackupScheduleRequestDayOfWeek = "Tuesday"
	CreateBackupScheduleRequestDayOfWeekWednesday CreateBackupScheduleRequestDayOfWeek = "Wednesday"
)

Defines values for CreateBackupScheduleRequestDayOfWeek.

func (CreateBackupScheduleRequestDayOfWeek) Valid

Valid indicates whether the value is a known member of the CreateBackupScheduleRequestDayOfWeek enum.

type CreateBackupScheduleRequestType

type CreateBackupScheduleRequestType string

CreateBackupScheduleRequestType Schedule frequency

const (
	CreateBackupScheduleRequestTypeDaily  CreateBackupScheduleRequestType = "daily"
	CreateBackupScheduleRequestTypeWeekly CreateBackupScheduleRequestType = "weekly"
)

Defines values for CreateBackupScheduleRequestType.

func (CreateBackupScheduleRequestType) Valid

Valid indicates whether the value is a known member of the CreateBackupScheduleRequestType enum.

type CreateBackupScheduleResponse

type CreateBackupScheduleResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *struct {
		Data    *BackupSchedule `json:"data,omitempty"`
		Success *bool           `json:"success,omitempty"`
	}
	JSON400 *BadRequest
	JSON401 *Unauthorized
}

func ParseCreateBackupScheduleResponse

func ParseCreateBackupScheduleResponse(rsp *http.Response) (*CreateBackupScheduleResponse, error)

ParseCreateBackupScheduleResponse parses an HTTP response from a CreateBackupScheduleWithResponse call

func (CreateBackupScheduleResponse) Status

Status returns HTTPResponse.Status

func (CreateBackupScheduleResponse) StatusCode

func (r CreateBackupScheduleResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateInvitationRequest

type CreateInvitationRequest struct {
	// Email Recipient's email address. Must not already be a member.
	Email openapi_types.Email `json:"email"`

	// RoleID Role the invitee will receive on acceptance. Must be `scope: account` for account invites or `scope: project` for project invites.
	RoleID openapi_types.UUID `json:"role_id"`
}

CreateInvitationRequest defines model for CreateInvitationRequest.

type CreateProjectInvitationJSONRequestBody

type CreateProjectInvitationJSONRequestBody = CreateInvitationRequest

CreateProjectInvitationJSONRequestBody defines body for CreateProjectInvitation for application/json ContentType.

type CreateProjectInvitationResponse

type CreateProjectInvitationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *struct {
		Data    *Invitation `json:"data,omitempty"`
		Success *bool       `json:"success,omitempty"`
	}
	JSON400 *BadRequest
	JSON404 *NotFound
}

func ParseCreateProjectInvitationResponse

func ParseCreateProjectInvitationResponse(rsp *http.Response) (*CreateProjectInvitationResponse, error)

ParseCreateProjectInvitationResponse parses an HTTP response from a CreateProjectInvitationWithResponse call

func (CreateProjectInvitationResponse) Status

Status returns HTTPResponse.Status

func (CreateProjectInvitationResponse) StatusCode

func (r CreateProjectInvitationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateProjectJSONRequestBody

type CreateProjectJSONRequestBody = CreateProjectRequest

CreateProjectJSONRequestBody defines body for CreateProject for application/json ContentType.

type CreateProjectRequest

type CreateProjectRequest struct {
	// DefaultRegion Default region for resources
	DefaultRegion *CreateProjectRequestDefaultRegion `json:"default_region,omitempty"`

	// Description Project description
	Description *string `json:"description,omitempty"`

	// Name Project name
	Name string `json:"name"`
}

CreateProjectRequest defines model for CreateProjectRequest.

type CreateProjectRequestDefaultRegion

type CreateProjectRequestDefaultRegion string

CreateProjectRequestDefaultRegion Default region for resources

const (
	CreateProjectRequestDefaultRegionUsEast CreateProjectRequestDefaultRegion = "us-east"
)

Defines values for CreateProjectRequestDefaultRegion.

func (CreateProjectRequestDefaultRegion) Valid

Valid indicates whether the value is a known member of the CreateProjectRequestDefaultRegion enum.

type CreateProjectResponse

type CreateProjectResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *struct {
		Data    *Project `json:"data,omitempty"`
		Success *bool    `json:"success,omitempty"`
	}
	JSON400 *BadRequest
	JSON401 *Unauthorized
}

func ParseCreateProjectResponse

func ParseCreateProjectResponse(rsp *http.Response) (*CreateProjectResponse, error)

ParseCreateProjectResponse parses an HTTP response from a CreateProjectWithResponse call

func (CreateProjectResponse) Status

func (r CreateProjectResponse) Status() string

Status returns HTTPResponse.Status

func (CreateProjectResponse) StatusCode

func (r CreateProjectResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateRoleJSONRequestBody

type CreateRoleJSONRequestBody = CreateRoleRequest

CreateRoleJSONRequestBody defines body for CreateRole for application/json ContentType.

type CreateRoleRequest

type CreateRoleRequest struct {
	Description *string                `json:"description,omitempty"`
	Name        string                 `json:"name"`
	Permissions []string               `json:"permissions"`
	Scope       CreateRoleRequestScope `json:"scope"`
	Slug        string                 `json:"slug"`
}

CreateRoleRequest defines model for CreateRoleRequest.

type CreateRoleRequestScope

type CreateRoleRequestScope string

CreateRoleRequestScope defines model for CreateRoleRequest.Scope.

const (
	CreateRoleRequestScopeAccount CreateRoleRequestScope = "account"
	CreateRoleRequestScopeProject CreateRoleRequestScope = "project"
)

Defines values for CreateRoleRequestScope.

func (CreateRoleRequestScope) Valid

func (e CreateRoleRequestScope) Valid() bool

Valid indicates whether the value is a known member of the CreateRoleRequestScope enum.

type CreateRoleResponse

type CreateRoleResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *struct {
		Data    *Role `json:"data,omitempty"`
		Success *bool `json:"success,omitempty"`
	}
	JSON400 *BadRequest
}

func ParseCreateRoleResponse

func ParseCreateRoleResponse(rsp *http.Response) (*CreateRoleResponse, error)

ParseCreateRoleResponse parses an HTTP response from a CreateRoleWithResponse call

func (CreateRoleResponse) Status

func (r CreateRoleResponse) Status() string

Status returns HTTPResponse.Status

func (CreateRoleResponse) StatusCode

func (r CreateRoleResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateSSHKeyJSONRequestBody

type CreateSSHKeyJSONRequestBody = CreateSSHKeyRequest

CreateSSHKeyJSONRequestBody defines body for CreateSSHKey for application/json ContentType.

type CreateSSHKeyRequest

type CreateSSHKeyRequest struct {
	// Name SSH key display name
	Name string `json:"name"`

	// PublicKey Full SSH public key string
	PublicKey string `json:"public_key"`
}

CreateSSHKeyRequest defines model for CreateSSHKeyRequest.

type CreateSSHKeyResponse

type CreateSSHKeyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *struct {
		Data    *SSHKey `json:"data,omitempty"`
		Success *bool   `json:"success,omitempty"`
	}
	JSON400 *BadRequest
	JSON401 *Unauthorized
}

func ParseCreateSSHKeyResponse

func ParseCreateSSHKeyResponse(rsp *http.Response) (*CreateSSHKeyResponse, error)

ParseCreateSSHKeyResponse parses an HTTP response from a CreateSSHKeyWithResponse call

func (CreateSSHKeyResponse) Status

func (r CreateSSHKeyResponse) Status() string

Status returns HTTPResponse.Status

func (CreateSSHKeyResponse) StatusCode

func (r CreateSSHKeyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateSecurityGroupJSONRequestBody

type CreateSecurityGroupJSONRequestBody = CreateSecurityGroupRequest

CreateSecurityGroupJSONRequestBody defines body for CreateSecurityGroup for application/json ContentType.

type CreateSecurityGroupParams

type CreateSecurityGroupParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

CreateSecurityGroupParams defines parameters for CreateSecurityGroup.

type CreateSecurityGroupRequest

type CreateSecurityGroupRequest struct {
	Description *string              `json:"description,omitempty"`
	Name        string               `json:"name"`
	Rules       *[]SecurityGroupRule `json:"rules,omitempty"`

	// TemplateID Seed from a template. Template rules are copied, then merged with any explicit `rules`.
	TemplateID *string `json:"template_id,omitempty"`
}

CreateSecurityGroupRequest defines model for CreateSecurityGroupRequest.

type CreateSecurityGroupResponse

type CreateSecurityGroupResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *struct {
		// Data A security group — a named set of inbound/outbound rules that can be attached to VM NICs.
		Data    *SecurityGroup `json:"data,omitempty"`
		Success *bool          `json:"success,omitempty"`
	}
	JSON400 *BadRequest
	JSON401 *Unauthorized
}

func ParseCreateSecurityGroupResponse

func ParseCreateSecurityGroupResponse(rsp *http.Response) (*CreateSecurityGroupResponse, error)

ParseCreateSecurityGroupResponse parses an HTTP response from a CreateSecurityGroupWithResponse call

func (CreateSecurityGroupResponse) Status

Status returns HTTPResponse.Status

func (CreateSecurityGroupResponse) StatusCode

func (r CreateSecurityGroupResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateSnapshotJSONRequestBody

type CreateSnapshotJSONRequestBody = CreateSnapshotRequest

CreateSnapshotJSONRequestBody defines body for CreateSnapshot for application/json ContentType.

type CreateSnapshotParams

type CreateSnapshotParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

CreateSnapshotParams defines parameters for CreateSnapshot.

type CreateSnapshotRequest

type CreateSnapshotRequest struct {
	// Name Snapshot display name
	Name string `json:"name"`

	// ResourceID Source VM UUID. Required when `resource_type` is `vm`.
	ResourceID *openapi_types.UUID `json:"resource_id,omitempty"`

	// ResourceType Source type for the snapshot
	ResourceType CreateSnapshotRequestResourceType `json:"resource_type"`

	// VolumeID Source volume ID. Required when `resource_type` is `volume`.
	VolumeID *int `json:"volume_id,omitempty"`
}

CreateSnapshotRequest defines model for CreateSnapshotRequest.

type CreateSnapshotRequestResourceType

type CreateSnapshotRequestResourceType string

CreateSnapshotRequestResourceType Source type for the snapshot

const (
	CreateSnapshotRequestResourceTypeVM     CreateSnapshotRequestResourceType = "vm"
	CreateSnapshotRequestResourceTypeVolume CreateSnapshotRequestResourceType = "volume"
)

Defines values for CreateSnapshotRequestResourceType.

func (CreateSnapshotRequestResourceType) Valid

Valid indicates whether the value is a known member of the CreateSnapshotRequestResourceType enum.

type CreateSnapshotResponse

type CreateSnapshotResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *struct {
		Data    *Snapshot `json:"data,omitempty"`
		Success *bool     `json:"success,omitempty"`
	}
	JSON400 *BadRequest
	JSON401 *Unauthorized
	JSON402 *InsufficientBalance
	JSON403 *BillingValidationFailed
}

func ParseCreateSnapshotResponse

func ParseCreateSnapshotResponse(rsp *http.Response) (*CreateSnapshotResponse, error)

ParseCreateSnapshotResponse parses an HTTP response from a CreateSnapshotWithResponse call

func (CreateSnapshotResponse) Status

func (r CreateSnapshotResponse) Status() string

Status returns HTTPResponse.Status

func (CreateSnapshotResponse) StatusCode

func (r CreateSnapshotResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateVMJSONRequestBody

type CreateVMJSONRequestBody = CreateVMRequest

CreateVMJSONRequestBody defines body for CreateVM for application/json ContentType.

type CreateVMParams

type CreateVMParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

CreateVMParams defines parameters for CreateVM.

type CreateVMRequest

type CreateVMRequest struct {
	// BackupDate Day of the week for weekly backups (e.g. `Saturday`). Required when `backup_type` is `weekly`, ignored for daily backups. Valid values: Monday–Sunday.
	BackupDate *string `json:"backup_date,omitempty"`

	// BackupTime Time of day to run backups (e.g. `8am`). Defaults to `8am` if not specified.
	BackupTime *string `json:"backup_time,omitempty"`

	// BackupType Set `daily` for daily backups or `weekly` for weekly backups. Use `none` or omit for no backups.
	BackupType *CreateVMRequestBackupType `json:"backup_type,omitempty"`

	// ExtraStorage Additional block storage volume in GB (0–10,000). Attached as a separate disk to the VM.
	ExtraStorage *int `json:"extra_storage,omitempty"`

	// ExtraStorageType Filesystem type for extra storage. Required for Linux VMs with extra storage (defaults to ext4 if omitted). For Windows VMs, storage is automatically formatted as NTFS — this field is ignored.
	ExtraStorageType *CreateVMRequestExtraStorageType `json:"extra_storage_type,omitempty"`

	// Name VM display name
	Name string `json:"name"`

	// Password Root password for the VM. Required for Windows VMs. For Linux VMs, required if no SSH keys are provided. Both SSH keys and password can be set on Linux. Must be at least 12 characters with: 2+ uppercase letters, 2+ digits, 1+ special character (@+-_.,!). Only alphanumeric characters and @+-_.,! are allowed.
	Password *string `json:"password,omitempty"`

	// PricingID Pricing plan ID that determines vCPU, RAM, storage, and bandwidth. Use `GET /api/v1/public/pricing/vm` to list available plans.
	PricingID int `json:"pricing_id"`

	// Region Data center region
	Region CreateVMRequestRegion `json:"region"`

	// SkipPublicIP When `true`, the VM is created without a public IPv4 address. It will only be reachable on its VPC private IP, so a VPC is required — pass `vpc_id` (existing) or `vpc_name` + `vpc_cidr` (new), or leave VPC fields empty to auto-create one. Combining `skip_public_ip=true` with `skip_vpc=true` is rejected because the VM would have no network at all.
	SkipPublicIP *bool `json:"skip_public_ip,omitempty"`

	// SkipVpc When `true`, no VPC is created or attached. The VM will only have its public IP — no private networking. Cannot be combined with `skip_public_ip=true`.
	SkipVpc *bool `json:"skip_vpc,omitempty"`

	// SSHKeys SSH public keys for VM access. Required for Linux VMs if no password is provided. Ignored for Windows VMs.
	SSHKeys *[]string `json:"ssh_keys,omitempty"`

	// Tags Custom tags for the VM
	Tags *[]string `json:"tags,omitempty"`

	// TemplateID OS template ID. Use `GET /api/v1/public/templates` to list available templates.
	TemplateID openapi_types.UUID `json:"template_id"`

	// VpcCidr CIDR block for the new VPC (e.g. `10.0.1.0/24`). Must be used together with `vpc_name`.
	VpcCidr *string `json:"vpc_cidr,omitempty"`

	// VpcID Attach VM to an existing VPC by its ID. If omitted along with `vpc_name`, a VPC is auto-created.
	VpcID *openapi_types.UUID `json:"vpc_id,omitempty"`

	// VpcName Create a new VPC with this name. Must be used together with `vpc_cidr`.
	VpcName *string `json:"vpc_name,omitempty"`
}

CreateVMRequest defines model for CreateVMRequest.

type CreateVMRequestBackupType

type CreateVMRequestBackupType string

CreateVMRequestBackupType Set `daily` for daily backups or `weekly` for weekly backups. Use `none` or omit for no backups.

const (
	CreateVMRequestBackupTypeDaily  CreateVMRequestBackupType = "daily"
	CreateVMRequestBackupTypeNone   CreateVMRequestBackupType = "none"
	CreateVMRequestBackupTypeWeekly CreateVMRequestBackupType = "weekly"
)

Defines values for CreateVMRequestBackupType.

func (CreateVMRequestBackupType) Valid

func (e CreateVMRequestBackupType) Valid() bool

Valid indicates whether the value is a known member of the CreateVMRequestBackupType enum.

type CreateVMRequestExtraStorageType

type CreateVMRequestExtraStorageType string

CreateVMRequestExtraStorageType Filesystem type for extra storage. Required for Linux VMs with extra storage (defaults to ext4 if omitted). For Windows VMs, storage is automatically formatted as NTFS — this field is ignored.

const (
	CreateVMRequestExtraStorageTypeBtrfs CreateVMRequestExtraStorageType = "btrfs"
	CreateVMRequestExtraStorageTypeExt4  CreateVMRequestExtraStorageType = "ext4"
	CreateVMRequestExtraStorageTypeXfs   CreateVMRequestExtraStorageType = "xfs"
)

Defines values for CreateVMRequestExtraStorageType.

func (CreateVMRequestExtraStorageType) Valid

Valid indicates whether the value is a known member of the CreateVMRequestExtraStorageType enum.

type CreateVMRequestRegion

type CreateVMRequestRegion string

CreateVMRequestRegion Data center region

const (
	CreateVMRequestRegionUsEast CreateVMRequestRegion = "us-east"
)

Defines values for CreateVMRequestRegion.

func (CreateVMRequestRegion) Valid

func (e CreateVMRequestRegion) Valid() bool

Valid indicates whether the value is a known member of the CreateVMRequestRegion enum.

type CreateVMResponse

type CreateVMResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *struct {
		Data    *VM   `json:"data,omitempty"`
		Success *bool `json:"success,omitempty"`
	}
	JSON400 *BadRequest
	JSON401 *Unauthorized
	JSON402 *InsufficientBalance
	JSON403 *BillingValidationFailed
}

func ParseCreateVMResponse

func ParseCreateVMResponse(rsp *http.Response) (*CreateVMResponse, error)

ParseCreateVMResponse parses an HTTP response from a CreateVMWithResponse call

func (CreateVMResponse) Status

func (r CreateVMResponse) Status() string

Status returns HTTPResponse.Status

func (CreateVMResponse) StatusCode

func (r CreateVMResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateVPCJSONRequestBody

type CreateVPCJSONRequestBody = CreateVPCRequest

CreateVPCJSONRequestBody defines body for CreateVPC for application/json ContentType.

type CreateVPCParams

type CreateVPCParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

CreateVPCParams defines parameters for CreateVPC.

type CreateVPCRequest

type CreateVPCRequest struct {
	// Cidr CIDR block. Must not overlap with other VPCs in the account. See `GET /api/v1/vpcs/cidr-suggestions` for non-overlapping options.
	Cidr string `json:"cidr"`

	// Name VPC name.
	Name string `json:"name"`

	// Region Region for the VPC. Defaults to `us-east`.
	Region *CreateVPCRequestRegion `json:"region,omitempty"`
}

CreateVPCRequest defines model for CreateVPCRequest.

type CreateVPCRequestRegion

type CreateVPCRequestRegion string

CreateVPCRequestRegion Region for the VPC. Defaults to `us-east`.

const (
	CreateVPCRequestRegionUsEast CreateVPCRequestRegion = "us-east"
)

Defines values for CreateVPCRequestRegion.

func (CreateVPCRequestRegion) Valid

func (e CreateVPCRequestRegion) Valid() bool

Valid indicates whether the value is a known member of the CreateVPCRequestRegion enum.

type CreateVPCResponse

type CreateVPCResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *struct {
		// Data A virtual private cloud (VPC).
		Data    *VPC  `json:"data,omitempty"`
		Success *bool `json:"success,omitempty"`
	}
	JSON400 *BadRequest
	JSON401 *Unauthorized
	JSON403 *BillingValidationFailed
}

func ParseCreateVPCResponse

func ParseCreateVPCResponse(rsp *http.Response) (*CreateVPCResponse, error)

ParseCreateVPCResponse parses an HTTP response from a CreateVPCWithResponse call

func (CreateVPCResponse) Status

func (r CreateVPCResponse) Status() string

Status returns HTTPResponse.Status

func (CreateVPCResponse) StatusCode

func (r CreateVPCResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateVolumeJSONRequestBody

type CreateVolumeJSONRequestBody = CreateVolumeRequest

CreateVolumeJSONRequestBody defines body for CreateVolume for application/json ContentType.

type CreateVolumeParams

type CreateVolumeParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

CreateVolumeParams defines parameters for CreateVolume.

type CreateVolumeRequest

type CreateVolumeRequest struct {
	// FilesystemType Filesystem to format the volume with on first attach. Linux only — Windows VMs use NTFS automatically. Defaults to `ext4`.
	FilesystemType *CreateVolumeRequestFilesystemType `json:"filesystem_type,omitempty"`

	// Name Volume display name
	Name string `json:"name"`

	// Region Region. Defaults to the project's default region.
	Region *CreateVolumeRequestRegion `json:"region,omitempty"`

	// Size Volume size in GB
	Size int `json:"size"`

	// VMID Optional. Attach the volume to this VM at create time. VM must be in the same region.
	VMID *openapi_types.UUID `json:"vm_id,omitempty"`

	// VolumeType Storage class
	VolumeType CreateVolumeRequestVolumeType `json:"volume_type"`
}

CreateVolumeRequest defines model for CreateVolumeRequest.

type CreateVolumeRequestFilesystemType

type CreateVolumeRequestFilesystemType string

CreateVolumeRequestFilesystemType Filesystem to format the volume with on first attach. Linux only — Windows VMs use NTFS automatically. Defaults to `ext4`.

const (
	CreateVolumeRequestFilesystemTypeBtrfs CreateVolumeRequestFilesystemType = "btrfs"
	CreateVolumeRequestFilesystemTypeExt4  CreateVolumeRequestFilesystemType = "ext4"
	CreateVolumeRequestFilesystemTypeXfs   CreateVolumeRequestFilesystemType = "xfs"
)

Defines values for CreateVolumeRequestFilesystemType.

func (CreateVolumeRequestFilesystemType) Valid

Valid indicates whether the value is a known member of the CreateVolumeRequestFilesystemType enum.

type CreateVolumeRequestRegion

type CreateVolumeRequestRegion string

CreateVolumeRequestRegion Region. Defaults to the project's default region.

const (
	CreateVolumeRequestRegionUsEast CreateVolumeRequestRegion = "us-east"
)

Defines values for CreateVolumeRequestRegion.

func (CreateVolumeRequestRegion) Valid

func (e CreateVolumeRequestRegion) Valid() bool

Valid indicates whether the value is a known member of the CreateVolumeRequestRegion enum.

type CreateVolumeRequestVolumeType

type CreateVolumeRequestVolumeType string

CreateVolumeRequestVolumeType Storage class

const (
	CreateVolumeRequestVolumeTypeNvme CreateVolumeRequestVolumeType = "nvme"
)

Defines values for CreateVolumeRequestVolumeType.

func (CreateVolumeRequestVolumeType) Valid

Valid indicates whether the value is a known member of the CreateVolumeRequestVolumeType enum.

type CreateVolumeResponse

type CreateVolumeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON202      *struct {
		Data    *Volume `json:"data,omitempty"`
		Success *bool   `json:"success,omitempty"`
	}
	JSON400 *BadRequest
	JSON401 *Unauthorized
	JSON402 *InsufficientBalance
	JSON403 *BillingValidationFailed
}

func ParseCreateVolumeResponse

func ParseCreateVolumeResponse(rsp *http.Response) (*CreateVolumeResponse, error)

ParseCreateVolumeResponse parses an HTTP response from a CreateVolumeWithResponse call

func (CreateVolumeResponse) Status

func (r CreateVolumeResponse) Status() string

Status returns HTTPResponse.Status

func (CreateVolumeResponse) StatusCode

func (r CreateVolumeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteBackupChainParams added in v0.3.4

type DeleteBackupChainParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

DeleteBackupChainParams defines parameters for DeleteBackupChain.

type DeleteBackupChainResponse added in v0.3.4

type DeleteBackupChainResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SuccessResponse
	JSON404      *NotFound
}

func ParseDeleteBackupChainResponse added in v0.3.4

func ParseDeleteBackupChainResponse(rsp *http.Response) (*DeleteBackupChainResponse, error)

ParseDeleteBackupChainResponse parses an HTTP response from a DeleteBackupChainWithResponse call

func (DeleteBackupChainResponse) Status added in v0.3.4

func (r DeleteBackupChainResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteBackupChainResponse) StatusCode added in v0.3.4

func (r DeleteBackupChainResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteBackupParams

type DeleteBackupParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

DeleteBackupParams defines parameters for DeleteBackup.

type DeleteBackupResponse

type DeleteBackupResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SuccessResponse
	JSON404      *NotFound
}

func ParseDeleteBackupResponse

func ParseDeleteBackupResponse(rsp *http.Response) (*DeleteBackupResponse, error)

ParseDeleteBackupResponse parses an HTTP response from a DeleteBackupWithResponse call

func (DeleteBackupResponse) Status

func (r DeleteBackupResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteBackupResponse) StatusCode

func (r DeleteBackupResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteBackupScheduleParams

type DeleteBackupScheduleParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

DeleteBackupScheduleParams defines parameters for DeleteBackupSchedule.

type DeleteBackupScheduleResponse

type DeleteBackupScheduleResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SuccessResponse
	JSON404      *NotFound
}

func ParseDeleteBackupScheduleResponse

func ParseDeleteBackupScheduleResponse(rsp *http.Response) (*DeleteBackupScheduleResponse, error)

ParseDeleteBackupScheduleResponse parses an HTTP response from a DeleteBackupScheduleWithResponse call

func (DeleteBackupScheduleResponse) Status

Status returns HTTPResponse.Status

func (DeleteBackupScheduleResponse) StatusCode

func (r DeleteBackupScheduleResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteProjectResponse

type DeleteProjectResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SuccessResponse
	JSON401      *Unauthorized
	JSON404      *NotFound
}

func ParseDeleteProjectResponse

func ParseDeleteProjectResponse(rsp *http.Response) (*DeleteProjectResponse, error)

ParseDeleteProjectResponse parses an HTTP response from a DeleteProjectWithResponse call

func (DeleteProjectResponse) Status

func (r DeleteProjectResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteProjectResponse) StatusCode

func (r DeleteProjectResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteRoleResponse

type DeleteRoleResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SuccessResponse
	JSON400      *BadRequest
	JSON404      *NotFound
}

func ParseDeleteRoleResponse

func ParseDeleteRoleResponse(rsp *http.Response) (*DeleteRoleResponse, error)

ParseDeleteRoleResponse parses an HTTP response from a DeleteRoleWithResponse call

func (DeleteRoleResponse) Status

func (r DeleteRoleResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteRoleResponse) StatusCode

func (r DeleteRoleResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteSSHKeyResponse

type DeleteSSHKeyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data    *SSHKey `json:"data,omitempty"`
		Success *bool   `json:"success,omitempty"`
	}
	JSON404 *NotFound
}

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 DeleteSecurityGroupParams

type DeleteSecurityGroupParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

DeleteSecurityGroupParams defines parameters for DeleteSecurityGroup.

type DeleteSecurityGroupResponse

type DeleteSecurityGroupResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SuccessResponse
	JSON400      *BadRequest
	JSON401      *Unauthorized
	JSON404      *NotFound
}

func ParseDeleteSecurityGroupResponse

func ParseDeleteSecurityGroupResponse(rsp *http.Response) (*DeleteSecurityGroupResponse, error)

ParseDeleteSecurityGroupResponse parses an HTTP response from a DeleteSecurityGroupWithResponse call

func (DeleteSecurityGroupResponse) Status

Status returns HTTPResponse.Status

func (DeleteSecurityGroupResponse) StatusCode

func (r DeleteSecurityGroupResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteSnapshotParams

type DeleteSnapshotParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

DeleteSnapshotParams defines parameters for DeleteSnapshot.

type DeleteSnapshotResponse

type DeleteSnapshotResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SuccessResponse
	JSON404      *NotFound
}

func ParseDeleteSnapshotResponse

func ParseDeleteSnapshotResponse(rsp *http.Response) (*DeleteSnapshotResponse, error)

ParseDeleteSnapshotResponse parses an HTTP response from a DeleteSnapshotWithResponse call

func (DeleteSnapshotResponse) Status

func (r DeleteSnapshotResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteSnapshotResponse) StatusCode

func (r DeleteSnapshotResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteVMJSONRequestBody

type DeleteVMJSONRequestBody = DeleteVMRequest

DeleteVMJSONRequestBody defines body for DeleteVM for application/json ContentType.

type DeleteVMParams

type DeleteVMParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

DeleteVMParams defines parameters for DeleteVM.

type DeleteVMRequest

type DeleteVMRequest struct {
	// DeleteVpc Whether to delete the associated VPC. Only succeeds if no other VMs are using it.
	DeleteVpc *bool `json:"delete_vpc,omitempty"`

	// VolumeAction What to do with attached volumes. `detach` keeps them (still billable), `delete` removes them permanently.
	VolumeAction *DeleteVMRequestVolumeAction `json:"volume_action,omitempty"`
}

DeleteVMRequest defines model for DeleteVMRequest.

type DeleteVMRequestVolumeAction

type DeleteVMRequestVolumeAction string

DeleteVMRequestVolumeAction What to do with attached volumes. `detach` keeps them (still billable), `delete` removes them permanently.

const (
	DeleteVMRequestVolumeActionDelete DeleteVMRequestVolumeAction = "delete"
	DeleteVMRequestVolumeActionDetach DeleteVMRequestVolumeAction = "detach"
)

Defines values for DeleteVMRequestVolumeAction.

func (DeleteVMRequestVolumeAction) Valid

Valid indicates whether the value is a known member of the DeleteVMRequestVolumeAction enum.

type DeleteVMResponse

type DeleteVMResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SuccessResponse
	JSON400      *MissingProjectID
	JSON404      *NotFound
}

func ParseDeleteVMResponse

func ParseDeleteVMResponse(rsp *http.Response) (*DeleteVMResponse, error)

ParseDeleteVMResponse parses an HTTP response from a DeleteVMWithResponse call

func (DeleteVMResponse) Status

func (r DeleteVMResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteVMResponse) StatusCode

func (r DeleteVMResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteVMsBulkJSONRequestBody

type DeleteVMsBulkJSONRequestBody = DeleteVMsBulkRequest

DeleteVMsBulkJSONRequestBody defines body for DeleteVMsBulk for application/json ContentType.

type DeleteVMsBulkParams

type DeleteVMsBulkParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

DeleteVMsBulkParams defines parameters for DeleteVMsBulk.

type DeleteVMsBulkRequest

type DeleteVMsBulkRequest struct {
	// DeleteVpc Whether to delete associated VPCs. Only succeeds if no other VMs are using them.
	DeleteVpc *bool `json:"delete_vpc,omitempty"`

	// Ids VM IDs to delete (1–50).
	Ids []openapi_types.UUID `json:"ids"`

	// VolumeAction What to do with attached volumes. `detach` keeps them (still billable), `delete` removes them permanently.
	VolumeAction *DeleteVMsBulkRequestVolumeAction `json:"volume_action,omitempty"`
}

DeleteVMsBulkRequest defines model for DeleteVMsBulkRequest.

type DeleteVMsBulkRequestVolumeAction

type DeleteVMsBulkRequestVolumeAction string

DeleteVMsBulkRequestVolumeAction What to do with attached volumes. `detach` keeps them (still billable), `delete` removes them permanently.

const (
	DeleteVMsBulkRequestVolumeActionDelete DeleteVMsBulkRequestVolumeAction = "delete"
	DeleteVMsBulkRequestVolumeActionDetach DeleteVMsBulkRequestVolumeAction = "detach"
)

Defines values for DeleteVMsBulkRequestVolumeAction.

func (DeleteVMsBulkRequestVolumeAction) Valid

Valid indicates whether the value is a known member of the DeleteVMsBulkRequestVolumeAction enum.

type DeleteVMsBulkResponse

type DeleteVMsBulkResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *BulkDeleteVMsResult
	JSON400      *MissingProjectID
}

func ParseDeleteVMsBulkResponse

func ParseDeleteVMsBulkResponse(rsp *http.Response) (*DeleteVMsBulkResponse, error)

ParseDeleteVMsBulkResponse parses an HTTP response from a DeleteVMsBulkWithResponse call

func (DeleteVMsBulkResponse) Status

func (r DeleteVMsBulkResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteVMsBulkResponse) StatusCode

func (r DeleteVMsBulkResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteVPCParams

type DeleteVPCParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

DeleteVPCParams defines parameters for DeleteVPC.

type DeleteVPCResponse

type DeleteVPCResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SuccessResponse
	JSON400      *BadRequest
	JSON401      *Unauthorized
	JSON404      *NotFound
}

func ParseDeleteVPCResponse

func ParseDeleteVPCResponse(rsp *http.Response) (*DeleteVPCResponse, error)

ParseDeleteVPCResponse parses an HTTP response from a DeleteVPCWithResponse call

func (DeleteVPCResponse) Status

func (r DeleteVPCResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteVPCResponse) StatusCode

func (r DeleteVPCResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteVolumeParams

type DeleteVolumeParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

DeleteVolumeParams defines parameters for DeleteVolume.

type DeleteVolumeResponse

type DeleteVolumeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SuccessResponse
	JSON400      *BadRequest
	JSON404      *NotFound
}

func ParseDeleteVolumeResponse

func ParseDeleteVolumeResponse(rsp *http.Response) (*DeleteVolumeResponse, error)

ParseDeleteVolumeResponse parses an HTTP response from a DeleteVolumeWithResponse call

func (DeleteVolumeResponse) Status

func (r DeleteVolumeResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteVolumeResponse) StatusCode

func (r DeleteVolumeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DetachVMFromVPCParams

type DetachVMFromVPCParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

DetachVMFromVPCParams defines parameters for DetachVMFromVPC.

type DetachVMFromVPCResponse

type DetachVMFromVPCResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SuccessResponse
	JSON400      *MissingProjectID
	JSON401      *Unauthorized
	JSON404      *NotFound
}

func ParseDetachVMFromVPCResponse

func ParseDetachVMFromVPCResponse(rsp *http.Response) (*DetachVMFromVPCResponse, error)

ParseDetachVMFromVPCResponse parses an HTTP response from a DetachVMFromVPCWithResponse call

func (DetachVMFromVPCResponse) Status

func (r DetachVMFromVPCResponse) Status() string

Status returns HTTPResponse.Status

func (DetachVMFromVPCResponse) StatusCode

func (r DetachVMFromVPCResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DetachVMIPParams

type DetachVMIPParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

DetachVMIPParams defines parameters for DetachVMIP.

type DetachVMIPResponse

type DetachVMIPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SuccessResponse
	JSON400      *MissingProjectID
	JSON401      *Unauthorized
	JSON404      *NotFound
}

func ParseDetachVMIPResponse

func ParseDetachVMIPResponse(rsp *http.Response) (*DetachVMIPResponse, error)

ParseDetachVMIPResponse parses an HTTP response from a DetachVMIPWithResponse call

func (DetachVMIPResponse) Status

func (r DetachVMIPResponse) Status() string

Status returns HTTPResponse.Status

func (DetachVMIPResponse) StatusCode

func (r DetachVMIPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DetachVMSecurityGroupParams

type DetachVMSecurityGroupParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

DetachVMSecurityGroupParams defines parameters for DetachVMSecurityGroup.

type DetachVMSecurityGroupResponse

type DetachVMSecurityGroupResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SuccessResponse
	JSON400      *MissingProjectID
	JSON401      *Unauthorized
	JSON404      *NotFound
}

func ParseDetachVMSecurityGroupResponse

func ParseDetachVMSecurityGroupResponse(rsp *http.Response) (*DetachVMSecurityGroupResponse, error)

ParseDetachVMSecurityGroupResponse parses an HTTP response from a DetachVMSecurityGroupWithResponse call

func (DetachVMSecurityGroupResponse) Status

Status returns HTTPResponse.Status

func (DetachVMSecurityGroupResponse) StatusCode

func (r DetachVMSecurityGroupResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DetachVolumeParams

type DetachVolumeParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

DetachVolumeParams defines parameters for DetachVolume.

type DetachVolumeResponse

type DetachVolumeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data    *Volume `json:"data,omitempty"`
		Success *bool   `json:"success,omitempty"`
	}
	JSON400 *BadRequest
	JSON404 *NotFound
}

func ParseDetachVolumeResponse

func ParseDetachVolumeResponse(rsp *http.Response) (*DetachVolumeResponse, error)

ParseDetachVolumeResponse parses an HTTP response from a DetachVolumeWithResponse call

func (DetachVolumeResponse) Status

func (r DetachVolumeResponse) Status() string

Status returns HTTPResponse.Status

func (DetachVolumeResponse) StatusCode

func (r DetachVolumeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Error

type Error struct {
	Error   *string `json:"error,omitempty"`
	Message *string `json:"message,omitempty"`
}

Error defines model for Error.

type FactoryResetVMParams

type FactoryResetVMParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

FactoryResetVMParams defines parameters for FactoryResetVM.

type FactoryResetVMResponse

type FactoryResetVMResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SuccessResponse
	JSON400      *MissingProjectID
	JSON401      *Unauthorized
	JSON404      *NotFound
}

func ParseFactoryResetVMResponse

func ParseFactoryResetVMResponse(rsp *http.Response) (*FactoryResetVMResponse, error)

ParseFactoryResetVMResponse parses an HTTP response from a FactoryResetVMWithResponse call

func (FactoryResetVMResponse) Status

func (r FactoryResetVMResponse) Status() string

Status returns HTTPResponse.Status

func (FactoryResetVMResponse) StatusCode

func (r FactoryResetVMResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type FloatingIP

type FloatingIP struct {
	AccountID *openapi_types.UUID `json:"account_id,omitempty"`
	CreatedAt *time.Time          `json:"created_at,omitempty"`

	// CreatedBy User who reserved the IP.
	CreatedBy *openapi_types.UUID `json:"created_by,omitempty"`

	// ID IP identifier.
	ID openapi_types.UUID `json:"id"`

	// IPAddress The IP address.
	IPAddress string              `json:"ip_address"`
	ProjectID *openapi_types.UUID `json:"project_id,omitempty"`
	Region    *FloatingIPRegion   `json:"region,omitempty"`

	// Reserved Whether the IP is reserved (held for the account regardless of VM attachment). A reserved IP can be either `free` (held but not attached) or `in-use` (held and attached).
	Reserved bool `json:"reserved"`

	// Status - `free` — IP is in the pool, not currently attached to any VM.
	// - `in-use` — currently attached to a VM.
	Status FloatingIPStatus `json:"status"`

	// Type IP family.
	Type      FloatingIPType `json:"type"`
	UpdatedAt *time.Time     `json:"updated_at,omitempty"`
}

FloatingIP A floating public IP address.

type FloatingIPRegion

type FloatingIPRegion string

FloatingIPRegion defines model for FloatingIP.Region.

const (
	FloatingIPRegionUsEast FloatingIPRegion = "us-east"
)

Defines values for FloatingIPRegion.

func (FloatingIPRegion) Valid

func (e FloatingIPRegion) Valid() bool

Valid indicates whether the value is a known member of the FloatingIPRegion enum.

type FloatingIPStatus

type FloatingIPStatus string

FloatingIPStatus - `free` — IP is in the pool, not currently attached to any VM. - `in-use` — currently attached to a VM.

const (
	FloatingIPStatusFree  FloatingIPStatus = "free"
	FloatingIPStatusInUse FloatingIPStatus = "in-use"
)

Defines values for FloatingIPStatus.

func (FloatingIPStatus) Valid

func (e FloatingIPStatus) Valid() bool

Valid indicates whether the value is a known member of the FloatingIPStatus enum.

type FloatingIPType

type FloatingIPType string

FloatingIPType IP family.

const (
	FloatingIPTypeIPv4 FloatingIPType = "IPv4"
	FloatingIPTypeIPv6 FloatingIPType = "IPv6"
)

Defines values for FloatingIPType.

func (FloatingIPType) Valid

func (e FloatingIPType) Valid() bool

Valid indicates whether the value is a known member of the FloatingIPType enum.

type GetAPIKeyResponse

type GetAPIKeyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data    *APIKey `json:"data,omitempty"`
		Success *bool   `json:"success,omitempty"`
	}
	JSON404 *NotFound
}

func ParseGetAPIKeyResponse

func ParseGetAPIKeyResponse(rsp *http.Response) (*GetAPIKeyResponse, error)

ParseGetAPIKeyResponse parses an HTTP response from a GetAPIKeyWithResponse call

func (GetAPIKeyResponse) Status

func (r GetAPIKeyResponse) Status() string

Status returns HTTPResponse.Status

func (GetAPIKeyResponse) StatusCode

func (r GetAPIKeyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetBackupParams

type GetBackupParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

GetBackupParams defines parameters for GetBackup.

type GetBackupResponse

type GetBackupResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data    *Backup `json:"data,omitempty"`
		Success *bool   `json:"success,omitempty"`
	}
	JSON404 *NotFound
}

func ParseGetBackupResponse

func ParseGetBackupResponse(rsp *http.Response) (*GetBackupResponse, error)

ParseGetBackupResponse parses an HTTP response from a GetBackupWithResponse call

func (GetBackupResponse) Status

func (r GetBackupResponse) Status() string

Status returns HTTPResponse.Status

func (GetBackupResponse) StatusCode

func (r GetBackupResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetBackupScheduleParams

type GetBackupScheduleParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

GetBackupScheduleParams defines parameters for GetBackupSchedule.

type GetBackupScheduleResponse

type GetBackupScheduleResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data    *BackupSchedule `json:"data,omitempty"`
		Success *bool           `json:"success,omitempty"`
	}
	JSON404 *NotFound
}

func ParseGetBackupScheduleResponse

func ParseGetBackupScheduleResponse(rsp *http.Response) (*GetBackupScheduleResponse, error)

ParseGetBackupScheduleResponse parses an HTTP response from a GetBackupScheduleWithResponse call

func (GetBackupScheduleResponse) Status

func (r GetBackupScheduleResponse) Status() string

Status returns HTTPResponse.Status

func (GetBackupScheduleResponse) StatusCode

func (r GetBackupScheduleResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetIPResponse

type GetIPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		// Data A floating public IP address.
		Data    *FloatingIP `json:"data,omitempty"`
		Success *bool       `json:"success,omitempty"`
	}
	JSON401 *Unauthorized
	JSON404 *NotFound
}

func ParseGetIPResponse

func ParseGetIPResponse(rsp *http.Response) (*GetIPResponse, error)

ParseGetIPResponse parses an HTTP response from a GetIPWithResponse call

func (GetIPResponse) Status

func (r GetIPResponse) Status() string

Status returns HTTPResponse.Status

func (GetIPResponse) StatusCode

func (r GetIPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetMemberResponse

type GetMemberResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data    *Member `json:"data,omitempty"`
		Success *bool   `json:"success,omitempty"`
	}
	JSON404 *NotFound
}

func ParseGetMemberResponse

func ParseGetMemberResponse(rsp *http.Response) (*GetMemberResponse, error)

ParseGetMemberResponse parses an HTTP response from a GetMemberWithResponse call

func (GetMemberResponse) Status

func (r GetMemberResponse) Status() string

Status returns HTTPResponse.Status

func (GetMemberResponse) StatusCode

func (r GetMemberResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetProjectMemberResponse

type GetProjectMemberResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data    *ProjectMember `json:"data,omitempty"`
		Success *bool          `json:"success,omitempty"`
	}
	JSON404 *NotFound
}

func ParseGetProjectMemberResponse

func ParseGetProjectMemberResponse(rsp *http.Response) (*GetProjectMemberResponse, error)

ParseGetProjectMemberResponse parses an HTTP response from a GetProjectMemberWithResponse call

func (GetProjectMemberResponse) Status

func (r GetProjectMemberResponse) Status() string

Status returns HTTPResponse.Status

func (GetProjectMemberResponse) StatusCode

func (r GetProjectMemberResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetProjectResponse

type GetProjectResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data    *Project `json:"data,omitempty"`
		Success *bool    `json:"success,omitempty"`
	}
	JSON401 *Unauthorized
	JSON404 *NotFound
}

func ParseGetProjectResponse

func ParseGetProjectResponse(rsp *http.Response) (*GetProjectResponse, error)

ParseGetProjectResponse parses an HTTP response from a GetProjectWithResponse call

func (GetProjectResponse) Status

func (r GetProjectResponse) Status() string

Status returns HTTPResponse.Status

func (GetProjectResponse) StatusCode

func (r GetProjectResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRoleResponse

type GetRoleResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data    *Role `json:"data,omitempty"`
		Success *bool `json:"success,omitempty"`
	}
	JSON404 *NotFound
}

func ParseGetRoleResponse

func ParseGetRoleResponse(rsp *http.Response) (*GetRoleResponse, error)

ParseGetRoleResponse parses an HTTP response from a GetRoleWithResponse call

func (GetRoleResponse) Status

func (r GetRoleResponse) Status() string

Status returns HTTPResponse.Status

func (GetRoleResponse) StatusCode

func (r GetRoleResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSSHKeyResponse

type GetSSHKeyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data    *SSHKey `json:"data,omitempty"`
		Success *bool   `json:"success,omitempty"`
	}
	JSON404 *NotFound
}

func ParseGetSSHKeyResponse

func ParseGetSSHKeyResponse(rsp *http.Response) (*GetSSHKeyResponse, error)

ParseGetSSHKeyResponse parses an HTTP response from a GetSSHKeyWithResponse call

func (GetSSHKeyResponse) Status

func (r GetSSHKeyResponse) Status() string

Status returns HTTPResponse.Status

func (GetSSHKeyResponse) StatusCode

func (r GetSSHKeyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSecurityGroupParams

type GetSecurityGroupParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

GetSecurityGroupParams defines parameters for GetSecurityGroup.

type GetSecurityGroupResponse

type GetSecurityGroupResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		// Data A security group — a named set of inbound/outbound rules that can be attached to VM NICs.
		Data    *SecurityGroup `json:"data,omitempty"`
		Success *bool          `json:"success,omitempty"`
	}
	JSON401 *Unauthorized
	JSON404 *NotFound
}

func ParseGetSecurityGroupResponse

func ParseGetSecurityGroupResponse(rsp *http.Response) (*GetSecurityGroupResponse, error)

ParseGetSecurityGroupResponse parses an HTTP response from a GetSecurityGroupWithResponse call

func (GetSecurityGroupResponse) Status

func (r GetSecurityGroupResponse) Status() string

Status returns HTTPResponse.Status

func (GetSecurityGroupResponse) StatusCode

func (r GetSecurityGroupResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSnapshotParams

type GetSnapshotParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

GetSnapshotParams defines parameters for GetSnapshot.

type GetSnapshotResponse

type GetSnapshotResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data    *Snapshot `json:"data,omitempty"`
		Success *bool     `json:"success,omitempty"`
	}
	JSON404 *NotFound
}

func ParseGetSnapshotResponse

func ParseGetSnapshotResponse(rsp *http.Response) (*GetSnapshotResponse, error)

ParseGetSnapshotResponse parses an HTTP response from a GetSnapshotWithResponse call

func (GetSnapshotResponse) Status

func (r GetSnapshotResponse) Status() string

Status returns HTTPResponse.Status

func (GetSnapshotResponse) StatusCode

func (r GetSnapshotResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetVMNotesParams

type GetVMNotesParams struct {
	// Type Filter to one note scope. Omit to return both.
	Type *GetVMNotesParamsType `form:"type,omitempty" json:"type,omitempty"`
}

GetVMNotesParams defines parameters for GetVMNotes.

type GetVMNotesParamsType

type GetVMNotesParamsType string

GetVMNotesParamsType defines parameters for GetVMNotes.

const (
	GetVMNotesParamsTypeAccount  GetVMNotesParamsType = "account"
	GetVMNotesParamsTypePersonal GetVMNotesParamsType = "personal"
)

Defines values for GetVMNotesParamsType.

func (GetVMNotesParamsType) Valid

func (e GetVMNotesParamsType) Valid() bool

Valid indicates whether the value is a known member of the GetVMNotesParamsType enum.

type GetVMNotesResponse

type GetVMNotesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *VMNotesResponse
	JSON400      *BadRequest
	JSON401      *Unauthorized
	JSON404      *NotFound
}

func ParseGetVMNotesResponse

func ParseGetVMNotesResponse(rsp *http.Response) (*GetVMNotesResponse, error)

ParseGetVMNotesResponse parses an HTTP response from a GetVMNotesWithResponse call

func (GetVMNotesResponse) Status

func (r GetVMNotesResponse) Status() string

Status returns HTTPResponse.Status

func (GetVMNotesResponse) StatusCode

func (r GetVMNotesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetVMResponse

type GetVMResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data    *VM   `json:"data,omitempty"`
		Success *bool `json:"success,omitempty"`
	}
	JSON404 *NotFound
}

func ParseGetVMResponse

func ParseGetVMResponse(rsp *http.Response) (*GetVMResponse, error)

ParseGetVMResponse parses an HTTP response from a GetVMWithResponse call

func (GetVMResponse) Status

func (r GetVMResponse) Status() string

Status returns HTTPResponse.Status

func (GetVMResponse) StatusCode

func (r GetVMResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetVPCParams

type GetVPCParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

GetVPCParams defines parameters for GetVPC.

type GetVPCResponse

type GetVPCResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		// Data Detail wrapper returned by `GET /api/v1/vpcs/{id}`. Contains the core VPC under `vpc`, plus the configured IP range and the current set of IP leases (one entry per attached network interface).
		Data    *VPCDetail `json:"data,omitempty"`
		Success *bool      `json:"success,omitempty"`
	}
	JSON401 *Unauthorized
	JSON404 *NotFound
}

func ParseGetVPCResponse

func ParseGetVPCResponse(rsp *http.Response) (*GetVPCResponse, error)

ParseGetVPCResponse parses an HTTP response from a GetVPCWithResponse call

func (GetVPCResponse) Status

func (r GetVPCResponse) Status() string

Status returns HTTPResponse.Status

func (GetVPCResponse) StatusCode

func (r GetVPCResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetVolumeParams

type GetVolumeParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

GetVolumeParams defines parameters for GetVolume.

type GetVolumeResponse

type GetVolumeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data    *Volume `json:"data,omitempty"`
		Success *bool   `json:"success,omitempty"`
	}
	JSON404 *NotFound
}

func ParseGetVolumeResponse

func ParseGetVolumeResponse(rsp *http.Response) (*GetVolumeResponse, error)

ParseGetVolumeResponse parses an HTTP response from a GetVolumeWithResponse call

func (GetVolumeResponse) Status

func (r GetVolumeResponse) Status() string

Status returns HTTPResponse.Status

func (GetVolumeResponse) StatusCode

func (r GetVolumeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HardRebootVMParams

type HardRebootVMParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

HardRebootVMParams defines parameters for HardRebootVM.

type HardRebootVMResponse

type HardRebootVMResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SuccessResponse
	JSON400      *MissingProjectID
	JSON401      *Unauthorized
	JSON404      *NotFound
}

func ParseHardRebootVMResponse

func ParseHardRebootVMResponse(rsp *http.Response) (*HardRebootVMResponse, error)

ParseHardRebootVMResponse parses an HTTP response from a HardRebootVMWithResponse call

func (HardRebootVMResponse) Status

func (r HardRebootVMResponse) Status() string

Status returns HTTPResponse.Status

func (HardRebootVMResponse) StatusCode

func (r HardRebootVMResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HealthCheckResponse

type HealthCheckResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Status *string `json:"status,omitempty"`
	}
}

func ParseHealthCheckResponse

func ParseHealthCheckResponse(rsp *http.Response) (*HealthCheckResponse, error)

ParseHealthCheckResponse parses an HTTP response from a HealthCheckWithResponse call

func (HealthCheckResponse) Status

func (r HealthCheckResponse) Status() string

Status returns HTTPResponse.Status

func (HealthCheckResponse) StatusCode

func (r HealthCheckResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type IPIDPath

type IPIDPath = openapi_types.UUID

IPIDPath defines model for IPIDPath.

type IPPricing

type IPPricing struct {
	// Ipv4 Pricing for a single IP address type.
	Ipv4 *IPPricingTier `json:"ipv4,omitempty"`

	// Ipv6 Pricing for a single IP address type.
	Ipv6 *IPPricingTier `json:"ipv6,omitempty"`
}

IPPricing IP address pricing grouped by type.

type IPPricingTier

type IPPricingTier struct {
	// MonthlyPrice Monthly price in USD
	MonthlyPrice *float32 `json:"monthly_price,omitempty"`

	// PricePerHour Hourly price in USD
	PricePerHour *float32 `json:"price_per_hour,omitempty"`

	// TwentyFourMonthPrice 24-month commitment price in USD
	TwentyFourMonthPrice *float32 `json:"twenty_four_month_price,omitempty"`

	// YearlyPrice Yearly commitment price in USD
	YearlyPrice *float32 `json:"yearly_price,omitempty"`
}

IPPricingTier Pricing for a single IP address type.

type InsufficientBalance

type InsufficientBalance = Error

InsufficientBalance defines model for InsufficientBalance.

type Invitation

type Invitation struct {
	AccountID   *openapi_types.UUID `json:"account_id,omitempty"`
	AccountName *string             `json:"account_name,omitempty"`
	CreatedAt   *time.Time          `json:"created_at,omitempty"`
	Email       openapi_types.Email `json:"email"`

	// ExpiresAt When the invitation auto-expires. Past this time, the accept link returns an error and the row is removed by a cleanup job.
	ExpiresAt      *time.Time           `json:"expires_at,omitempty"`
	ID             openapi_types.UUID   `json:"id"`
	InvitedByEmail *openapi_types.Email `json:"invited_by_email,omitempty"`
	InvitedByID    *openapi_types.UUID  `json:"invited_by_id,omitempty"`
	InvitedByName  *string              `json:"invited_by_name,omitempty"`

	// ProjectID Set only when `type` is `project`
	ProjectID   *openapi_types.UUID `json:"project_id,omitempty"`
	ProjectName *string             `json:"project_name,omitempty"`
	RoleID      *openapi_types.UUID `json:"role_id,omitempty"`
	RoleName    *string             `json:"role_name,omitempty"`

	// Type Account-level or project-level invitation
	Type InvitationType `json:"type"`
}

Invitation defines model for Invitation.

type InvitationType

type InvitationType string

InvitationType Account-level or project-level invitation

const (
	InvitationTypeAccount InvitationType = "account"
	InvitationTypeProject InvitationType = "project"
)

Defines values for InvitationType.

func (InvitationType) Valid

func (e InvitationType) Valid() bool

Valid indicates whether the value is a known member of the InvitationType enum.

type ListAPIKeysParams

type ListAPIKeysParams struct {
	// Scope Filter by key scope. Customer-created keys are always `public`, so this is rarely useful — included for completeness.
	Scope  *ListAPIKeysParamsScope `form:"scope,omitempty" json:"scope,omitempty"`
	Limit  *int                    `form:"limit,omitempty" json:"limit,omitempty"`
	Offset *int                    `form:"offset,omitempty" json:"offset,omitempty"`
}

ListAPIKeysParams defines parameters for ListAPIKeys.

type ListAPIKeysParamsScope

type ListAPIKeysParamsScope string

ListAPIKeysParamsScope defines parameters for ListAPIKeys.

const (
	ListAPIKeysParamsScopePublic ListAPIKeysParamsScope = "public"
)

Defines values for ListAPIKeysParamsScope.

func (ListAPIKeysParamsScope) Valid

func (e ListAPIKeysParamsScope) Valid() bool

Valid indicates whether the value is a known member of the ListAPIKeysParamsScope enum.

type ListAPIKeysResponse

type ListAPIKeysResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data    *[]APIKey `json:"data,omitempty"`
		Success *bool     `json:"success,omitempty"`
		Total   *int      `json:"total,omitempty"`
	}
	JSON401 *Unauthorized
}

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 ListBackupPricingParams

type ListBackupPricingParams struct {
	// Region Filter by region
	Region *ListBackupPricingParamsRegion `form:"region,omitempty" json:"region,omitempty"`
}

ListBackupPricingParams defines parameters for ListBackupPricing.

type ListBackupPricingParamsRegion

type ListBackupPricingParamsRegion string

ListBackupPricingParamsRegion defines parameters for ListBackupPricing.

const (
	ListBackupPricingParamsRegionUsEast ListBackupPricingParamsRegion = "us-east"
)

Defines values for ListBackupPricingParamsRegion.

func (ListBackupPricingParamsRegion) Valid

Valid indicates whether the value is a known member of the ListBackupPricingParamsRegion enum.

type ListBackupPricingResponse

type ListBackupPricingResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		// Pricing Per-GB storage pricing
		Pricing *StoragePricing `json:"pricing,omitempty"`
		Success *bool           `json:"success,omitempty"`
	}
	JSON404 *NotFound
}

func ParseListBackupPricingResponse

func ParseListBackupPricingResponse(rsp *http.Response) (*ListBackupPricingResponse, error)

ParseListBackupPricingResponse parses an HTTP response from a ListBackupPricingWithResponse call

func (ListBackupPricingResponse) Status

func (r ListBackupPricingResponse) Status() string

Status returns HTTPResponse.Status

func (ListBackupPricingResponse) StatusCode

func (r ListBackupPricingResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListBackupSchedulesParams

type ListBackupSchedulesParams struct {
	// VMID Filter by VM UUID
	VMID   *openapi_types.UUID `form:"vm_id,omitempty" json:"vm_id,omitempty"`
	Limit  *int                `form:"limit,omitempty" json:"limit,omitempty"`
	Offset *int                `form:"offset,omitempty" json:"offset,omitempty"`

	// XProjectID Optional project ID to scope the list. Omit to list across all accessible projects.
	XProjectID *openapi_types.UUID `json:"X-Project-ID,omitempty"`
}

ListBackupSchedulesParams defines parameters for ListBackupSchedules.

type ListBackupSchedulesResponse

type ListBackupSchedulesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data    *[]BackupSchedule `json:"data,omitempty"`
		Success *bool             `json:"success,omitempty"`
		Total   *int              `json:"total,omitempty"`
	}
	JSON401 *Unauthorized
}

func ParseListBackupSchedulesResponse

func ParseListBackupSchedulesResponse(rsp *http.Response) (*ListBackupSchedulesResponse, error)

ParseListBackupSchedulesResponse parses an HTTP response from a ListBackupSchedulesWithResponse call

func (ListBackupSchedulesResponse) Status

Status returns HTTPResponse.Status

func (ListBackupSchedulesResponse) StatusCode

func (r ListBackupSchedulesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListBackupsParams

type ListBackupsParams struct {
	// VMID Filter by VM UUID
	VMID   *openapi_types.UUID `form:"vm_id,omitempty" json:"vm_id,omitempty"`
	Limit  *int                `form:"limit,omitempty" json:"limit,omitempty"`
	Offset *int                `form:"offset,omitempty" json:"offset,omitempty"`

	// XProjectID Optional project ID to scope the list. Omit to list across all accessible projects.
	XProjectID *openapi_types.UUID `json:"X-Project-ID,omitempty"`
}

ListBackupsParams defines parameters for ListBackups.

type ListBackupsResponse

type ListBackupsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data    *[]Backup `json:"data,omitempty"`
		Success *bool     `json:"success,omitempty"`
		Total   *int      `json:"total,omitempty"`
	}
	JSON401 *Unauthorized
}

func ParseListBackupsResponse

func ParseListBackupsResponse(rsp *http.Response) (*ListBackupsResponse, error)

ParseListBackupsResponse parses an HTTP response from a ListBackupsWithResponse call

func (ListBackupsResponse) Status

func (r ListBackupsResponse) Status() string

Status returns HTTPResponse.Status

func (ListBackupsResponse) StatusCode

func (r ListBackupsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListIPPricingResponse

type ListIPPricingResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		// Pricing IP address pricing grouped by type.
		Pricing *IPPricing `json:"pricing,omitempty"`
		Success *bool      `json:"success,omitempty"`
	}
	JSON404 *NotFound
}

func ParseListIPPricingResponse

func ParseListIPPricingResponse(rsp *http.Response) (*ListIPPricingResponse, error)

ParseListIPPricingResponse parses an HTTP response from a ListIPPricingWithResponse call

func (ListIPPricingResponse) Status

func (r ListIPPricingResponse) Status() string

Status returns HTTPResponse.Status

func (ListIPPricingResponse) StatusCode

func (r ListIPPricingResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListIPsParams

type ListIPsParams struct {
	// Reserved When `true`, return only reserved IPs (not currently attached to a VM).
	Reserved *bool `form:"reserved,omitempty" json:"reserved,omitempty"`

	// Status Filter by IP status:
	// - `free` — IP is in the pool. Combined with `reserved=true` it means held for the account but not attached to a VM.
	// - `in-use` — currently attached to a VM.
	Status *ListIPsParamsStatus `form:"status,omitempty" json:"status,omitempty"`
	Limit  *int                 `form:"limit,omitempty" json:"limit,omitempty"`
	Offset *int                 `form:"offset,omitempty" json:"offset,omitempty"`

	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

ListIPsParams defines parameters for ListIPs.

type ListIPsParamsStatus

type ListIPsParamsStatus string

ListIPsParamsStatus defines parameters for ListIPs.

const (
	ListIPsParamsStatusFree  ListIPsParamsStatus = "free"
	ListIPsParamsStatusInUse ListIPsParamsStatus = "in-use"
)

Defines values for ListIPsParamsStatus.

func (ListIPsParamsStatus) Valid

func (e ListIPsParamsStatus) Valid() bool

Valid indicates whether the value is a known member of the ListIPsParamsStatus enum.

type ListIPsResponse

type ListIPsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data    *[]FloatingIP `json:"data,omitempty"`
		Success *bool         `json:"success,omitempty"`
		Total   *int          `json:"total,omitempty"`
	}
	JSON401 *Unauthorized
}

func ParseListIPsResponse

func ParseListIPsResponse(rsp *http.Response) (*ListIPsResponse, error)

ParseListIPsResponse parses an HTTP response from a ListIPsWithResponse call

func (ListIPsResponse) Status

func (r ListIPsResponse) Status() string

Status returns HTTPResponse.Status

func (ListIPsResponse) StatusCode

func (r ListIPsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListMembersParams

type ListMembersParams struct {
	// Status Filter by member status
	Status *ListMembersParamsStatus `form:"status,omitempty" json:"status,omitempty"`
	Limit  *int                     `form:"limit,omitempty" json:"limit,omitempty"`
	Offset *int                     `form:"offset,omitempty" json:"offset,omitempty"`
}

ListMembersParams defines parameters for ListMembers.

type ListMembersParamsStatus

type ListMembersParamsStatus string

ListMembersParamsStatus defines parameters for ListMembers.

const (
	ListMembersParamsStatusActive    ListMembersParamsStatus = "active"
	ListMembersParamsStatusPending   ListMembersParamsStatus = "pending"
	ListMembersParamsStatusSuspended ListMembersParamsStatus = "suspended"
)

Defines values for ListMembersParamsStatus.

func (ListMembersParamsStatus) Valid

func (e ListMembersParamsStatus) Valid() bool

Valid indicates whether the value is a known member of the ListMembersParamsStatus enum.

type ListMembersResponse

type ListMembersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data    *[]Member `json:"data,omitempty"`
		Success *bool     `json:"success,omitempty"`
		Total   *int      `json:"total,omitempty"`
	}
	JSON401 *Unauthorized
}

func ParseListMembersResponse

func ParseListMembersResponse(rsp *http.Response) (*ListMembersResponse, error)

ParseListMembersResponse parses an HTTP response from a ListMembersWithResponse call

func (ListMembersResponse) Status

func (r ListMembersResponse) Status() string

Status returns HTTPResponse.Status

func (ListMembersResponse) StatusCode

func (r ListMembersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListPermissionsParams

type ListPermissionsParams struct {
	// Scope Filter by scope
	Scope *ListPermissionsParamsScope `form:"scope,omitempty" json:"scope,omitempty"`
}

ListPermissionsParams defines parameters for ListPermissions.

type ListPermissionsParamsScope

type ListPermissionsParamsScope string

ListPermissionsParamsScope defines parameters for ListPermissions.

const (
	ListPermissionsParamsScopeAccount ListPermissionsParamsScope = "account"
	ListPermissionsParamsScopeProject ListPermissionsParamsScope = "project"
)

Defines values for ListPermissionsParamsScope.

func (ListPermissionsParamsScope) Valid

func (e ListPermissionsParamsScope) Valid() bool

Valid indicates whether the value is a known member of the ListPermissionsParamsScope enum.

type ListPermissionsResponse

type ListPermissionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data    *[]Permission `json:"data,omitempty"`
		Success *bool         `json:"success,omitempty"`
	}
}

func ParseListPermissionsResponse

func ParseListPermissionsResponse(rsp *http.Response) (*ListPermissionsResponse, error)

ParseListPermissionsResponse parses an HTTP response from a ListPermissionsWithResponse call

func (ListPermissionsResponse) Status

func (r ListPermissionsResponse) Status() string

Status returns HTTPResponse.Status

func (ListPermissionsResponse) StatusCode

func (r ListPermissionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListProjectMembersParams

type ListProjectMembersParams struct {
	// Status Filter by member status
	Status *ListProjectMembersParamsStatus `form:"status,omitempty" json:"status,omitempty"`
	Limit  *int                            `form:"limit,omitempty" json:"limit,omitempty"`
	Offset *int                            `form:"offset,omitempty" json:"offset,omitempty"`
}

ListProjectMembersParams defines parameters for ListProjectMembers.

type ListProjectMembersParamsStatus

type ListProjectMembersParamsStatus string

ListProjectMembersParamsStatus defines parameters for ListProjectMembers.

const (
	ListProjectMembersParamsStatusActive    ListProjectMembersParamsStatus = "active"
	ListProjectMembersParamsStatusPending   ListProjectMembersParamsStatus = "pending"
	ListProjectMembersParamsStatusSuspended ListProjectMembersParamsStatus = "suspended"
)

Defines values for ListProjectMembersParamsStatus.

func (ListProjectMembersParamsStatus) Valid

Valid indicates whether the value is a known member of the ListProjectMembersParamsStatus enum.

type ListProjectMembersResponse

type ListProjectMembersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data    *[]ProjectMember `json:"data,omitempty"`
		Success *bool            `json:"success,omitempty"`
		Total   *int             `json:"total,omitempty"`
	}
	JSON404 *NotFound
}

func ParseListProjectMembersResponse

func ParseListProjectMembersResponse(rsp *http.Response) (*ListProjectMembersResponse, error)

ParseListProjectMembersResponse parses an HTTP response from a ListProjectMembersWithResponse call

func (ListProjectMembersResponse) Status

Status returns HTTPResponse.Status

func (ListProjectMembersResponse) StatusCode

func (r ListProjectMembersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListProjectsParams

type ListProjectsParams struct {
	// Limit Maximum number of projects to return
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`

	// Offset Number of projects to skip for pagination
	Offset *int `form:"offset,omitempty" json:"offset,omitempty"`
}

ListProjectsParams defines parameters for ListProjects.

type ListProjectsResponse

type ListProjectsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data    *[]Project `json:"data,omitempty"`
		Success *bool      `json:"success,omitempty"`

		// Total Total number of projects
		Total *int `json:"total,omitempty"`
	}
	JSON401 *Unauthorized
}

func ParseListProjectsResponse

func ParseListProjectsResponse(rsp *http.Response) (*ListProjectsResponse, error)

ParseListProjectsResponse parses an HTTP response from a ListProjectsWithResponse call

func (ListProjectsResponse) Status

func (r ListProjectsResponse) Status() string

Status returns HTTPResponse.Status

func (ListProjectsResponse) StatusCode

func (r ListProjectsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListRegionsResponse

type ListRegionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Regions *[]Region `json:"regions,omitempty"`
		Success *bool     `json:"success,omitempty"`
	}
}

func ParseListRegionsResponse

func ParseListRegionsResponse(rsp *http.Response) (*ListRegionsResponse, error)

ParseListRegionsResponse parses an HTTP response from a ListRegionsWithResponse call

func (ListRegionsResponse) Status

func (r ListRegionsResponse) Status() string

Status returns HTTPResponse.Status

func (ListRegionsResponse) StatusCode

func (r ListRegionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListRolesParams

type ListRolesParams struct {
	// Scope Filter by scope (`account` or `project`)
	Scope  *ListRolesParamsScope `form:"scope,omitempty" json:"scope,omitempty"`
	Limit  *int                  `form:"limit,omitempty" json:"limit,omitempty"`
	Offset *int                  `form:"offset,omitempty" json:"offset,omitempty"`
}

ListRolesParams defines parameters for ListRoles.

type ListRolesParamsScope

type ListRolesParamsScope string

ListRolesParamsScope defines parameters for ListRoles.

const (
	ListRolesParamsScopeAccount ListRolesParamsScope = "account"
	ListRolesParamsScopeProject ListRolesParamsScope = "project"
)

Defines values for ListRolesParamsScope.

func (ListRolesParamsScope) Valid

func (e ListRolesParamsScope) Valid() bool

Valid indicates whether the value is a known member of the ListRolesParamsScope enum.

type ListRolesResponse

type ListRolesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data    *[]Role `json:"data,omitempty"`
		Success *bool   `json:"success,omitempty"`
	}
	JSON401 *Unauthorized
}

func ParseListRolesResponse

func ParseListRolesResponse(rsp *http.Response) (*ListRolesResponse, error)

ParseListRolesResponse parses an HTTP response from a ListRolesWithResponse call

func (ListRolesResponse) Status

func (r ListRolesResponse) Status() string

Status returns HTTPResponse.Status

func (ListRolesResponse) StatusCode

func (r ListRolesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListSSHKeysResponse

type ListSSHKeysResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data    *[]SSHKey `json:"data,omitempty"`
		Success *bool     `json:"success,omitempty"`
	}
	JSON401 *Unauthorized
}

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 ListSecurityGroupTemplatesResponse

type ListSecurityGroupTemplatesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data    *[]SecurityGroupTemplate `json:"data,omitempty"`
		Success *bool                    `json:"success,omitempty"`
	}
	JSON401 *Unauthorized
}

func ParseListSecurityGroupTemplatesResponse

func ParseListSecurityGroupTemplatesResponse(rsp *http.Response) (*ListSecurityGroupTemplatesResponse, error)

ParseListSecurityGroupTemplatesResponse parses an HTTP response from a ListSecurityGroupTemplatesWithResponse call

func (ListSecurityGroupTemplatesResponse) Status

Status returns HTTPResponse.Status

func (ListSecurityGroupTemplatesResponse) StatusCode

func (r ListSecurityGroupTemplatesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListSecurityGroupsParams

type ListSecurityGroupsParams struct {
	XProjectID *openapi_types.UUID `json:"X-Project-ID,omitempty"`
}

ListSecurityGroupsParams defines parameters for ListSecurityGroups.

type ListSecurityGroupsResponse

type ListSecurityGroupsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data    *[]SecurityGroup `json:"data,omitempty"`
		Success *bool            `json:"success,omitempty"`
	}
	JSON401 *Unauthorized
}

func ParseListSecurityGroupsResponse

func ParseListSecurityGroupsResponse(rsp *http.Response) (*ListSecurityGroupsResponse, error)

ParseListSecurityGroupsResponse parses an HTTP response from a ListSecurityGroupsWithResponse call

func (ListSecurityGroupsResponse) Status

Status returns HTTPResponse.Status

func (ListSecurityGroupsResponse) StatusCode

func (r ListSecurityGroupsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListSnapshotPricingParams

type ListSnapshotPricingParams struct {
	// Region Filter by region
	Region *ListSnapshotPricingParamsRegion `form:"region,omitempty" json:"region,omitempty"`
}

ListSnapshotPricingParams defines parameters for ListSnapshotPricing.

type ListSnapshotPricingParamsRegion

type ListSnapshotPricingParamsRegion string

ListSnapshotPricingParamsRegion defines parameters for ListSnapshotPricing.

const (
	ListSnapshotPricingParamsRegionUsEast ListSnapshotPricingParamsRegion = "us-east"
)

Defines values for ListSnapshotPricingParamsRegion.

func (ListSnapshotPricingParamsRegion) Valid

Valid indicates whether the value is a known member of the ListSnapshotPricingParamsRegion enum.

type ListSnapshotPricingResponse

type ListSnapshotPricingResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		// Pricing Per-GB storage pricing
		Pricing *StoragePricing `json:"pricing,omitempty"`
		Success *bool           `json:"success,omitempty"`
	}
	JSON404 *NotFound
}

func ParseListSnapshotPricingResponse

func ParseListSnapshotPricingResponse(rsp *http.Response) (*ListSnapshotPricingResponse, error)

ParseListSnapshotPricingResponse parses an HTTP response from a ListSnapshotPricingWithResponse call

func (ListSnapshotPricingResponse) Status

Status returns HTTPResponse.Status

func (ListSnapshotPricingResponse) StatusCode

func (r ListSnapshotPricingResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListSnapshotsParams

type ListSnapshotsParams struct {
	// VMID Filter by VM UUID
	VMID *openapi_types.UUID `form:"vm_id,omitempty" json:"vm_id,omitempty"`

	// VolumeID Filter by volume ID
	VolumeID *int `form:"volume_id,omitempty" json:"volume_id,omitempty"`

	// Type Filter by snapshot type (`vm` or `volume`)
	Type   *ListSnapshotsParamsType `form:"type,omitempty" json:"type,omitempty"`
	Limit  *int                     `form:"limit,omitempty" json:"limit,omitempty"`
	Offset *int                     `form:"offset,omitempty" json:"offset,omitempty"`

	// XProjectID Optional project ID to scope the list. Omit to list across all accessible projects.
	XProjectID *openapi_types.UUID `json:"X-Project-ID,omitempty"`
}

ListSnapshotsParams defines parameters for ListSnapshots.

type ListSnapshotsParamsType

type ListSnapshotsParamsType string

ListSnapshotsParamsType defines parameters for ListSnapshots.

const (
	ListSnapshotsParamsTypeVM     ListSnapshotsParamsType = "vm"
	ListSnapshotsParamsTypeVolume ListSnapshotsParamsType = "volume"
)

Defines values for ListSnapshotsParamsType.

func (ListSnapshotsParamsType) Valid

func (e ListSnapshotsParamsType) Valid() bool

Valid indicates whether the value is a known member of the ListSnapshotsParamsType enum.

type ListSnapshotsResponse

type ListSnapshotsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data    *[]Snapshot `json:"data,omitempty"`
		Success *bool       `json:"success,omitempty"`
		Total   *int        `json:"total,omitempty"`
	}
	JSON401 *Unauthorized
}

func ParseListSnapshotsResponse

func ParseListSnapshotsResponse(rsp *http.Response) (*ListSnapshotsResponse, error)

ParseListSnapshotsResponse parses an HTTP response from a ListSnapshotsWithResponse call

func (ListSnapshotsResponse) Status

func (r ListSnapshotsResponse) Status() string

Status returns HTTPResponse.Status

func (ListSnapshotsResponse) StatusCode

func (r ListSnapshotsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListTemplatesParams

type ListTemplatesParams struct {
	// Category Filter by template category
	Category *ListTemplatesParamsCategory `form:"category,omitempty" json:"category,omitempty"`

	// VMType Filter by VM type. When `standard`, Windows templates are excluded.
	VMType *ListTemplatesParamsVMType `form:"vm_type,omitempty" json:"vm_type,omitempty"`

	// Region Filter by region
	Region *ListTemplatesParamsRegion `form:"region,omitempty" json:"region,omitempty"`
}

ListTemplatesParams defines parameters for ListTemplates.

type ListTemplatesParamsCategory

type ListTemplatesParamsCategory string

ListTemplatesParamsCategory defines parameters for ListTemplates.

const (
	ListTemplatesParamsCategoryMarketplace ListTemplatesParamsCategory = "marketplace"
	ListTemplatesParamsCategoryOs          ListTemplatesParamsCategory = "os"
)

Defines values for ListTemplatesParamsCategory.

func (ListTemplatesParamsCategory) Valid

Valid indicates whether the value is a known member of the ListTemplatesParamsCategory enum.

type ListTemplatesParamsRegion

type ListTemplatesParamsRegion string

ListTemplatesParamsRegion defines parameters for ListTemplates.

const (
	ListTemplatesParamsRegionUsEast ListTemplatesParamsRegion = "us-east"
)

Defines values for ListTemplatesParamsRegion.

func (ListTemplatesParamsRegion) Valid

func (e ListTemplatesParamsRegion) Valid() bool

Valid indicates whether the value is a known member of the ListTemplatesParamsRegion enum.

type ListTemplatesParamsVMType

type ListTemplatesParamsVMType string

ListTemplatesParamsVMType defines parameters for ListTemplates.

const (
	Premium  ListTemplatesParamsVMType = "premium"
	Standard ListTemplatesParamsVMType = "standard"
)

Defines values for ListTemplatesParamsVMType.

func (ListTemplatesParamsVMType) Valid

func (e ListTemplatesParamsVMType) Valid() bool

Valid indicates whether the value is a known member of the ListTemplatesParamsVMType enum.

type ListTemplatesResponse

type ListTemplatesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data    *[]Template `json:"data,omitempty"`
		Success *bool       `json:"success,omitempty"`

		// Total Total number of templates returned
		Total *int `json:"total,omitempty"`
	}
	JSON400 *BadRequest
}

func ParseListTemplatesResponse

func ParseListTemplatesResponse(rsp *http.Response) (*ListTemplatesResponse, error)

ParseListTemplatesResponse parses an HTTP response from a ListTemplatesWithResponse call

func (ListTemplatesResponse) Status

func (r ListTemplatesResponse) Status() string

Status returns HTTPResponse.Status

func (ListTemplatesResponse) StatusCode

func (r ListTemplatesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListVMNetworksParams

type ListVMNetworksParams struct {
	// Type Filter to one interface type. Omit to return all.
	Type *ListVMNetworksParamsType `form:"type,omitempty" json:"type,omitempty"`
}

ListVMNetworksParams defines parameters for ListVMNetworks.

type ListVMNetworksParamsType

type ListVMNetworksParamsType string

ListVMNetworksParamsType defines parameters for ListVMNetworks.

const (
	Ipv6   ListVMNetworksParamsType = "ipv6"
	Public ListVMNetworksParamsType = "public"
	Vpc    ListVMNetworksParamsType = "vpc"
)

Defines values for ListVMNetworksParamsType.

func (ListVMNetworksParamsType) Valid

func (e ListVMNetworksParamsType) Valid() bool

Valid indicates whether the value is a known member of the ListVMNetworksParamsType enum.

type ListVMNetworksResponse

type ListVMNetworksResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data    *[]VMNetwork `json:"data,omitempty"`
		Success *bool        `json:"success,omitempty"`
	}
	JSON401 *Unauthorized
	JSON404 *NotFound
}

func ParseListVMNetworksResponse

func ParseListVMNetworksResponse(rsp *http.Response) (*ListVMNetworksResponse, error)

ParseListVMNetworksResponse parses an HTTP response from a ListVMNetworksWithResponse call

func (ListVMNetworksResponse) Status

func (r ListVMNetworksResponse) Status() string

Status returns HTTPResponse.Status

func (ListVMNetworksResponse) StatusCode

func (r ListVMNetworksResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListVMPricingParams

type ListVMPricingParams struct {
	// Type Filter by VM type
	Type *ListVMPricingParamsType `form:"type,omitempty" json:"type,omitempty"`

	// Region Filter by region
	Region *ListVMPricingParamsRegion `form:"region,omitempty" json:"region,omitempty"`
}

ListVMPricingParams defines parameters for ListVMPricing.

type ListVMPricingParamsRegion

type ListVMPricingParamsRegion string

ListVMPricingParamsRegion defines parameters for ListVMPricing.

const (
	ListVMPricingParamsRegionUsEast ListVMPricingParamsRegion = "us-east"
)

Defines values for ListVMPricingParamsRegion.

func (ListVMPricingParamsRegion) Valid

func (e ListVMPricingParamsRegion) Valid() bool

Valid indicates whether the value is a known member of the ListVMPricingParamsRegion enum.

type ListVMPricingParamsType

type ListVMPricingParamsType string

ListVMPricingParamsType defines parameters for ListVMPricing.

const (
	ListVMPricingParamsTypePremium  ListVMPricingParamsType = "premium"
	ListVMPricingParamsTypeStandard ListVMPricingParamsType = "standard"
)

Defines values for ListVMPricingParamsType.

func (ListVMPricingParamsType) Valid

func (e ListVMPricingParamsType) Valid() bool

Valid indicates whether the value is a known member of the ListVMPricingParamsType enum.

type ListVMPricingResponse

type ListVMPricingResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Plans   *[]VMPricingPlan `json:"plans,omitempty"`
		Success *bool            `json:"success,omitempty"`
	}
	JSON400 *BadRequest
}

func ParseListVMPricingResponse

func ParseListVMPricingResponse(rsp *http.Response) (*ListVMPricingResponse, error)

ParseListVMPricingResponse parses an HTTP response from a ListVMPricingWithResponse call

func (ListVMPricingResponse) Status

func (r ListVMPricingResponse) Status() string

Status returns HTTPResponse.Status

func (ListVMPricingResponse) StatusCode

func (r ListVMPricingResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListVMsParams

type ListVMsParams struct {
	// ProjectID Filter by project ID
	ProjectID *openapi_types.UUID `form:"project_id,omitempty" json:"project_id,omitempty"`

	// Region Filter by region
	Region *ListVMsParamsRegion `form:"region,omitempty" json:"region,omitempty"`

	// Status Filter by VM status. Values: `initiating` (queued/setup), `provisioning` (being created), `booting` (starting), `active` (running), `passive` (stopped), `finalizing` (shutting down), `failure` (failed).
	Status *ListVMsParamsStatus `form:"status,omitempty" json:"status,omitempty"`

	// Limit Maximum number of VMs to return
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`

	// Offset Number of VMs to skip for pagination
	Offset *int `form:"offset,omitempty" json:"offset,omitempty"`
}

ListVMsParams defines parameters for ListVMs.

type ListVMsParamsRegion

type ListVMsParamsRegion string

ListVMsParamsRegion defines parameters for ListVMs.

const (
	ListVMsParamsRegionUsEast ListVMsParamsRegion = "us-east"
)

Defines values for ListVMsParamsRegion.

func (ListVMsParamsRegion) Valid

func (e ListVMsParamsRegion) Valid() bool

Valid indicates whether the value is a known member of the ListVMsParamsRegion enum.

type ListVMsParamsStatus

type ListVMsParamsStatus string

ListVMsParamsStatus defines parameters for ListVMs.

const (
	ListVMsParamsStatusActive       ListVMsParamsStatus = "active"
	ListVMsParamsStatusBooting      ListVMsParamsStatus = "booting"
	ListVMsParamsStatusFailure      ListVMsParamsStatus = "failure"
	ListVMsParamsStatusFinalizing   ListVMsParamsStatus = "finalizing"
	ListVMsParamsStatusInitiating   ListVMsParamsStatus = "initiating"
	ListVMsParamsStatusPassive      ListVMsParamsStatus = "passive"
	ListVMsParamsStatusProvisioning ListVMsParamsStatus = "provisioning"
)

Defines values for ListVMsParamsStatus.

func (ListVMsParamsStatus) Valid

func (e ListVMsParamsStatus) Valid() bool

Valid indicates whether the value is a known member of the ListVMsParamsStatus enum.

type ListVMsResponse

type ListVMsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data *[]VM `json:"data,omitempty"`

		// Success Whether the request was successful
		Success *bool `json:"success,omitempty"`

		// Total Total number of VMs matching the query
		Total *int `json:"total,omitempty"`
	}
	JSON401 *Unauthorized
}

func ParseListVMsResponse

func ParseListVMsResponse(rsp *http.Response) (*ListVMsResponse, error)

ParseListVMsResponse parses an HTTP response from a ListVMsWithResponse call

func (ListVMsResponse) Status

func (r ListVMsResponse) Status() string

Status returns HTTPResponse.Status

func (ListVMsResponse) StatusCode

func (r ListVMsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListVPCCIDRSuggestionsParams

type ListVPCCIDRSuggestionsParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

ListVPCCIDRSuggestionsParams defines parameters for ListVPCCIDRSuggestions.

type ListVPCCIDRSuggestionsResponse

type ListVPCCIDRSuggestionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CIDRSuggestionsResponse
	JSON401      *Unauthorized
}

func ParseListVPCCIDRSuggestionsResponse

func ParseListVPCCIDRSuggestionsResponse(rsp *http.Response) (*ListVPCCIDRSuggestionsResponse, error)

ParseListVPCCIDRSuggestionsResponse parses an HTTP response from a ListVPCCIDRSuggestionsWithResponse call

func (ListVPCCIDRSuggestionsResponse) Status

Status returns HTTPResponse.Status

func (ListVPCCIDRSuggestionsResponse) StatusCode

func (r ListVPCCIDRSuggestionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListVPCsParams

type ListVPCsParams struct {
	// XProjectID Project to scope the list to. Omit to list across all accessible projects.
	XProjectID *openapi_types.UUID `json:"X-Project-ID,omitempty"`
}

ListVPCsParams defines parameters for ListVPCs.

type ListVPCsResponse

type ListVPCsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data    *[]VPC `json:"data,omitempty"`
		Success *bool  `json:"success,omitempty"`
	}
	JSON401 *Unauthorized
}

func ParseListVPCsResponse

func ParseListVPCsResponse(rsp *http.Response) (*ListVPCsResponse, error)

ParseListVPCsResponse parses an HTTP response from a ListVPCsWithResponse call

func (ListVPCsResponse) Status

func (r ListVPCsResponse) Status() string

Status returns HTTPResponse.Status

func (ListVPCsResponse) StatusCode

func (r ListVPCsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListVolumePricingParams

type ListVolumePricingParams struct {
	// Region Filter by region
	Region *ListVolumePricingParamsRegion `form:"region,omitempty" json:"region,omitempty"`
}

ListVolumePricingParams defines parameters for ListVolumePricing.

type ListVolumePricingParamsRegion

type ListVolumePricingParamsRegion string

ListVolumePricingParamsRegion defines parameters for ListVolumePricing.

const (
	ListVolumePricingParamsRegionUsEast ListVolumePricingParamsRegion = "us-east"
)

Defines values for ListVolumePricingParamsRegion.

func (ListVolumePricingParamsRegion) Valid

Valid indicates whether the value is a known member of the ListVolumePricingParamsRegion enum.

type ListVolumePricingResponse

type ListVolumePricingResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		// Pricing Per-GB storage pricing
		Pricing *StoragePricing `json:"pricing,omitempty"`
		Success *bool           `json:"success,omitempty"`
	}
	JSON404 *NotFound
}

func ParseListVolumePricingResponse

func ParseListVolumePricingResponse(rsp *http.Response) (*ListVolumePricingResponse, error)

ParseListVolumePricingResponse parses an HTTP response from a ListVolumePricingWithResponse call

func (ListVolumePricingResponse) Status

func (r ListVolumePricingResponse) Status() string

Status returns HTTPResponse.Status

func (ListVolumePricingResponse) StatusCode

func (r ListVolumePricingResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListVolumesParams

type ListVolumesParams struct {
	// VMID Filter by attached VM UUID
	VMID *openapi_types.UUID `form:"vm_id,omitempty" json:"vm_id,omitempty"`

	// Region Filter by region
	Region *ListVolumesParamsRegion `form:"region,omitempty" json:"region,omitempty"`
	Limit  *int                     `form:"limit,omitempty" json:"limit,omitempty"`
	Offset *int                     `form:"offset,omitempty" json:"offset,omitempty"`

	// XProjectID Optional project ID to scope the list. Omit to list across all accessible projects.
	XProjectID *openapi_types.UUID `json:"X-Project-ID,omitempty"`
}

ListVolumesParams defines parameters for ListVolumes.

type ListVolumesParamsRegion

type ListVolumesParamsRegion string

ListVolumesParamsRegion defines parameters for ListVolumes.

const (
	ListVolumesParamsRegionUsEast ListVolumesParamsRegion = "us-east"
)

Defines values for ListVolumesParamsRegion.

func (ListVolumesParamsRegion) Valid

func (e ListVolumesParamsRegion) Valid() bool

Valid indicates whether the value is a known member of the ListVolumesParamsRegion enum.

type ListVolumesResponse

type ListVolumesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data    *[]Volume `json:"data,omitempty"`
		Success *bool     `json:"success,omitempty"`
		Total   *int      `json:"total,omitempty"`
	}
	JSON401 *Unauthorized
}

func ParseListVolumesResponse

func ParseListVolumesResponse(rsp *http.Response) (*ListVolumesResponse, error)

ParseListVolumesResponse parses an HTTP response from a ListVolumesWithResponse call

func (ListVolumesResponse) Status

func (r ListVolumesResponse) Status() string

Status returns HTTPResponse.Status

func (ListVolumesResponse) StatusCode

func (r ListVolumesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Member

type Member struct {
	AcceptedAt *time.Time          `json:"accepted_at,omitempty"`
	AccountID  *openapi_types.UUID `json:"account_id,omitempty"`
	CreatedAt  *time.Time          `json:"created_at,omitempty"`
	Email      openapi_types.Email `json:"email"`

	// ID Account member ID
	ID                  openapi_types.UUID `json:"id"`
	InvitationExpiresAt *time.Time         `json:"invitation_expires_at,omitempty"`

	// InvitationID Set when `status` is `pending` — the underlying invitation ID. Use [Cancel Invitation](#tag/Invitations/operation/cancelInvitation) to revoke.
	InvitationID *openapi_types.UUID `json:"invitation_id,omitempty"`
	InvitedAt    *time.Time          `json:"invited_at,omitempty"`
	InvitedBy    *openapi_types.UUID `json:"invited_by,omitempty"`

	// Role Role slug (deprecated — prefer `role_id` and `role_name`)
	Role     *string             `json:"role,omitempty"`
	RoleID   *openapi_types.UUID `json:"role_id,omitempty"`
	RoleName *string             `json:"role_name,omitempty"`

	// Status Membership status:
	// - `pending` — invited but not yet accepted
	// - `active` — full member
	// - `suspended` — temporarily disabled by an admin
	Status    MemberStatus `json:"status"`
	UpdatedAt *time.Time   `json:"updated_at,omitempty"`

	// UserID User UUID. `null` for pending invitations until the invitee accepts.
	UserID *openapi_types.UUID `json:"user_id,omitempty"`
}

Member defines model for Member.

type MemberStatus

type MemberStatus string

MemberStatus Membership status: - `pending` — invited but not yet accepted - `active` — full member - `suspended` — temporarily disabled by an admin

const (
	MemberStatusActive    MemberStatus = "active"
	MemberStatusPending   MemberStatus = "pending"
	MemberStatusSuspended MemberStatus = "suspended"
)

Defines values for MemberStatus.

func (MemberStatus) Valid

func (e MemberStatus) Valid() bool

Valid indicates whether the value is a known member of the MemberStatus enum.

type MissingProjectID

type MissingProjectID = Error

MissingProjectID defines model for MissingProjectID.

type NICIDPath

type NICIDPath = int

NICIDPath defines model for NICIDPath.

type NotFound

type NotFound = Error

NotFound defines model for NotFound.

type NoteTypePath

type NoteTypePath string

NoteTypePath defines model for NoteTypePath.

const (
	NoteTypePathAccount  NoteTypePath = "account"
	NoteTypePathPersonal NoteTypePath = "personal"
)

Defines values for NoteTypePath.

func (NoteTypePath) Valid

func (e NoteTypePath) Valid() bool

Valid indicates whether the value is a known member of the NoteTypePath enum.

type Permission

type Permission struct {
	Category    string          `json:"category"`
	Description *string         `json:"description,omitempty"`
	Name        string          `json:"name"`
	Scope       PermissionScope `json:"scope"`
}

Permission defines model for Permission.

type PermissionScope

type PermissionScope string

PermissionScope defines model for Permission.Scope.

const (
	PermissionScopeAccount PermissionScope = "account"
	PermissionScopeProject PermissionScope = "project"
)

Defines values for PermissionScope.

func (PermissionScope) Valid

func (e PermissionScope) Valid() bool

Valid indicates whether the value is a known member of the PermissionScope enum.

type Project

type Project struct {
	// AccountID Account this project belongs to
	AccountID openapi_types.UUID `json:"account_id"`
	CreatedAt time.Time          `json:"created_at"`

	// CreatedBy User who created the project
	CreatedBy *openapi_types.UUID `json:"created_by,omitempty"`

	// DefaultRegion Default region for resources in this project
	DefaultRegion ProjectDefaultRegion `json:"default_region"`

	// Description Project description
	Description *string `json:"description,omitempty"`

	// ID Unique project identifier
	ID openapi_types.UUID `json:"id"`

	// IsActive Whether the project is active
	IsActive bool `json:"is_active"`

	// IsDefault Whether this is the account's default project
	IsDefault bool `json:"is_default"`

	// Name Project name
	Name string `json:"name"`

	// Slug URL-friendly project identifier
	Slug      string    `json:"slug"`
	UpdatedAt time.Time `json:"updated_at"`
}

Project defines model for Project.

type ProjectDefaultRegion

type ProjectDefaultRegion string

ProjectDefaultRegion Default region for resources in this project

const (
	ProjectDefaultRegionUsEast ProjectDefaultRegion = "us-east"
)

Defines values for ProjectDefaultRegion.

func (ProjectDefaultRegion) Valid

func (e ProjectDefaultRegion) Valid() bool

Valid indicates whether the value is a known member of the ProjectDefaultRegion enum.

type ProjectIDHeader

type ProjectIDHeader = openapi_types.UUID

ProjectIDHeader defines model for ProjectIDHeader.

type ProjectIDPath

type ProjectIDPath = openapi_types.UUID

ProjectIDPath defines model for ProjectIDPath.

type ProjectMember

type ProjectMember struct {
	AcceptedAt *time.Time          `json:"accepted_at,omitempty"`
	CreatedAt  *time.Time          `json:"created_at,omitempty"`
	Email      openapi_types.Email `json:"email"`

	// ID Project member ID
	ID                  openapi_types.UUID  `json:"id"`
	InvitationExpiresAt *time.Time          `json:"invitation_expires_at,omitempty"`
	InvitationID        *openapi_types.UUID `json:"invitation_id,omitempty"`
	InvitedAt           *time.Time          `json:"invited_at,omitempty"`
	InvitedBy           *openapi_types.UUID `json:"invited_by,omitempty"`
	ProjectID           *openapi_types.UUID `json:"project_id,omitempty"`

	// Role Role slug (deprecated — prefer `role_id` and `role_name`)
	Role     *string             `json:"role,omitempty"`
	RoleID   *openapi_types.UUID `json:"role_id,omitempty"`
	RoleName *string             `json:"role_name,omitempty"`

	// Status Membership status:
	// - `pending` — invited but not yet accepted
	// - `active` — full member
	// - `suspended` — temporarily disabled by an admin
	Status ProjectMemberStatus `json:"status"`
	UserID *openapi_types.UUID `json:"user_id,omitempty"`
}

ProjectMember defines model for ProjectMember.

type ProjectMemberStatus

type ProjectMemberStatus string

ProjectMemberStatus Membership status: - `pending` — invited but not yet accepted - `active` — full member - `suspended` — temporarily disabled by an admin

const (
	ProjectMemberStatusActive    ProjectMemberStatus = "active"
	ProjectMemberStatusPending   ProjectMemberStatus = "pending"
	ProjectMemberStatusSuspended ProjectMemberStatus = "suspended"
)

Defines values for ProjectMemberStatus.

func (ProjectMemberStatus) Valid

func (e ProjectMemberStatus) Valid() bool

Valid indicates whether the value is a known member of the ProjectMemberStatus enum.

type RebootVMParams

type RebootVMParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

RebootVMParams defines parameters for RebootVM.

type RebootVMResponse

type RebootVMResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SuccessResponse
	JSON400      *MissingProjectID
	JSON401      *Unauthorized
	JSON404      *NotFound
}

func ParseRebootVMResponse

func ParseRebootVMResponse(rsp *http.Response) (*RebootVMResponse, error)

ParseRebootVMResponse parses an HTTP response from a RebootVMWithResponse call

func (RebootVMResponse) Status

func (r RebootVMResponse) Status() string

Status returns HTTPResponse.Status

func (RebootVMResponse) StatusCode

func (r RebootVMResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RegenerateAPIKeyResponse

type RegenerateAPIKeyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data    *APIKeyWithSecret `json:"data,omitempty"`
		Success *bool             `json:"success,omitempty"`
	}
	JSON404 *NotFound
}

func ParseRegenerateAPIKeyResponse

func ParseRegenerateAPIKeyResponse(rsp *http.Response) (*RegenerateAPIKeyResponse, error)

ParseRegenerateAPIKeyResponse parses an HTTP response from a RegenerateAPIKeyWithResponse call

func (RegenerateAPIKeyResponse) Status

func (r RegenerateAPIKeyResponse) Status() string

Status returns HTTPResponse.Status

func (RegenerateAPIKeyResponse) StatusCode

func (r RegenerateAPIKeyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Region

type Region struct {
	// Code Region code used in API requests
	Code string `json:"code"`

	// CountryCode ISO country code
	CountryCode string `json:"country_code"`

	// DisplayOrder Sort order for display
	DisplayOrder *int `json:"display_order,omitempty"`

	// Flag Country flag emoji
	Flag *string `json:"flag,omitempty"`

	// ID Region identifier
	ID int `json:"id"`

	// IsDefault Whether this is the default region
	IsDefault bool `json:"is_default"`

	// Name Human-readable region name
	Name string `json:"name"`
}

Region defines model for Region.

type ReinstallVMJSONRequestBody

type ReinstallVMJSONRequestBody = ReinstallVMRequest

ReinstallVMJSONRequestBody defines body for ReinstallVM for application/json ContentType.

type ReinstallVMParams

type ReinstallVMParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

ReinstallVMParams defines parameters for ReinstallVM.

type ReinstallVMRequest

type ReinstallVMRequest struct {
	// AutoGeneratePassword Auto-generate a password and email it to the account owner
	AutoGeneratePassword *bool `json:"auto_generate_password,omitempty"`

	// Password New root/admin password. Either password or auto_generate_password should be provided.
	Password *string `json:"password,omitempty"`

	// SSHKeys SSH public keys for authentication
	SSHKeys *[]string `json:"ssh_keys,omitempty"`

	// TemplateID ID of the OS template to reinstall with
	TemplateID openapi_types.UUID `json:"template_id"`
}

ReinstallVMRequest defines model for ReinstallVMRequest.

type ReinstallVMResponse

type ReinstallVMResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SuccessResponse
	JSON400      *BadRequest
	JSON401      *Unauthorized
	JSON404      *NotFound
}

func ParseReinstallVMResponse

func ParseReinstallVMResponse(rsp *http.Response) (*ReinstallVMResponse, error)

ParseReinstallVMResponse parses an HTTP response from a ReinstallVMWithResponse call

func (ReinstallVMResponse) Status

func (r ReinstallVMResponse) Status() string

Status returns HTTPResponse.Status

func (ReinstallVMResponse) StatusCode

func (r ReinstallVMResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ReleaseIPParams

type ReleaseIPParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

ReleaseIPParams defines parameters for ReleaseIP.

type ReleaseIPResponse

type ReleaseIPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SuccessResponse
	JSON400      *BadRequest
	JSON401      *Unauthorized
	JSON404      *NotFound
}

func ParseReleaseIPResponse

func ParseReleaseIPResponse(rsp *http.Response) (*ReleaseIPResponse, error)

ParseReleaseIPResponse parses an HTTP response from a ReleaseIPWithResponse call

func (ReleaseIPResponse) Status

func (r ReleaseIPResponse) Status() string

Status returns HTTPResponse.Status

func (ReleaseIPResponse) StatusCode

func (r ReleaseIPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RemoveMemberResponse

type RemoveMemberResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SuccessResponse
	JSON404      *NotFound
}

func ParseRemoveMemberResponse

func ParseRemoveMemberResponse(rsp *http.Response) (*RemoveMemberResponse, error)

ParseRemoveMemberResponse parses an HTTP response from a RemoveMemberWithResponse call

func (RemoveMemberResponse) Status

func (r RemoveMemberResponse) Status() string

Status returns HTTPResponse.Status

func (RemoveMemberResponse) StatusCode

func (r RemoveMemberResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RemoveProjectMemberResponse

type RemoveProjectMemberResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SuccessResponse
	JSON404      *NotFound
}

func ParseRemoveProjectMemberResponse

func ParseRemoveProjectMemberResponse(rsp *http.Response) (*RemoveProjectMemberResponse, error)

ParseRemoveProjectMemberResponse parses an HTTP response from a RemoveProjectMemberWithResponse call

func (RemoveProjectMemberResponse) Status

Status returns HTTPResponse.Status

func (RemoveProjectMemberResponse) StatusCode

func (r RemoveProjectMemberResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RemoveVMTagParams

type RemoveVMTagParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

RemoveVMTagParams defines parameters for RemoveVMTag.

type RemoveVMTagResponse

type RemoveVMTagResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *VMTagsResponse
	JSON400      *MissingProjectID
	JSON401      *Unauthorized
	JSON404      *NotFound
}

func ParseRemoveVMTagResponse

func ParseRemoveVMTagResponse(rsp *http.Response) (*RemoveVMTagResponse, error)

ParseRemoveVMTagResponse parses an HTTP response from a RemoveVMTagWithResponse call

func (RemoveVMTagResponse) Status

func (r RemoveVMTagResponse) Status() string

Status returns HTTPResponse.Status

func (RemoveVMTagResponse) StatusCode

func (r RemoveVMTagResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RenameSnapshotJSONRequestBody

type RenameSnapshotJSONRequestBody = RenameSnapshotRequest

RenameSnapshotJSONRequestBody defines body for RenameSnapshot for application/json ContentType.

type RenameSnapshotParams

type RenameSnapshotParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

RenameSnapshotParams defines parameters for RenameSnapshot.

type RenameSnapshotRequest

type RenameSnapshotRequest struct {
	// Name New snapshot display name
	Name string `json:"name"`
}

RenameSnapshotRequest defines model for RenameSnapshotRequest.

type RenameSnapshotResponse

type RenameSnapshotResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data    *Snapshot `json:"data,omitempty"`
		Success *bool     `json:"success,omitempty"`
	}
	JSON400 *BadRequest
	JSON404 *NotFound
}

func ParseRenameSnapshotResponse

func ParseRenameSnapshotResponse(rsp *http.Response) (*RenameSnapshotResponse, error)

ParseRenameSnapshotResponse parses an HTTP response from a RenameSnapshotWithResponse call

func (RenameSnapshotResponse) Status

func (r RenameSnapshotResponse) Status() string

Status returns HTTPResponse.Status

func (RenameSnapshotResponse) StatusCode

func (r RenameSnapshotResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RenameVMJSONRequestBody

type RenameVMJSONRequestBody = RenameVMRequest

RenameVMJSONRequestBody defines body for RenameVM for application/json ContentType.

type RenameVMParams

type RenameVMParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

RenameVMParams defines parameters for RenameVM.

type RenameVMRequest

type RenameVMRequest struct {
	// Name New name for the virtual machine
	Name string `json:"name"`
}

RenameVMRequest defines model for RenameVMRequest.

type RenameVMResponse

type RenameVMResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SuccessResponse
	JSON400      *MissingProjectID
	JSON401      *Unauthorized
	JSON404      *NotFound
}

func ParseRenameVMResponse

func ParseRenameVMResponse(rsp *http.Response) (*RenameVMResponse, error)

ParseRenameVMResponse parses an HTTP response from a RenameVMWithResponse call

func (RenameVMResponse) Status

func (r RenameVMResponse) Status() string

Status returns HTTPResponse.Status

func (RenameVMResponse) StatusCode

func (r RenameVMResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type ReserveIPJSONRequestBody

type ReserveIPJSONRequestBody = ReserveIPRequest

ReserveIPJSONRequestBody defines body for ReserveIP for application/json ContentType.

type ReserveIPParams

type ReserveIPParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

ReserveIPParams defines parameters for ReserveIP.

type ReserveIPRequest

type ReserveIPRequest struct {
	// BillingPeriod Subscription billing period. Ignored for PAYG accounts.
	BillingPeriod *ReserveIPRequestBillingPeriod `json:"billing_period,omitempty"`

	// Region Region. Defaults to the project's default region.
	Region *ReserveIPRequestRegion `json:"region,omitempty"`

	// Type IP family to reserve. Defaults to IPv4.
	Type *ReserveIPRequestType `json:"type,omitempty"`
}

ReserveIPRequest Optional fields for IP reservation. Send an empty body to use defaults.

type ReserveIPRequestBillingPeriod

type ReserveIPRequestBillingPeriod string

ReserveIPRequestBillingPeriod Subscription billing period. Ignored for PAYG accounts.

const (
	Monthly         ReserveIPRequestBillingPeriod = "monthly"
	TwentyFourMonth ReserveIPRequestBillingPeriod = "twenty_four_month"
	Yearly          ReserveIPRequestBillingPeriod = "yearly"
)

Defines values for ReserveIPRequestBillingPeriod.

func (ReserveIPRequestBillingPeriod) Valid

Valid indicates whether the value is a known member of the ReserveIPRequestBillingPeriod enum.

type ReserveIPRequestRegion

type ReserveIPRequestRegion string

ReserveIPRequestRegion Region. Defaults to the project's default region.

const (
	ReserveIPRequestRegionUsEast ReserveIPRequestRegion = "us-east"
)

Defines values for ReserveIPRequestRegion.

func (ReserveIPRequestRegion) Valid

func (e ReserveIPRequestRegion) Valid() bool

Valid indicates whether the value is a known member of the ReserveIPRequestRegion enum.

type ReserveIPRequestType

type ReserveIPRequestType string

ReserveIPRequestType IP family to reserve. Defaults to IPv4.

const (
	IPv4 ReserveIPRequestType = "IPv4"
	IPv6 ReserveIPRequestType = "IPv6"
)

Defines values for ReserveIPRequestType.

func (ReserveIPRequestType) Valid

func (e ReserveIPRequestType) Valid() bool

Valid indicates whether the value is a known member of the ReserveIPRequestType enum.

type ReserveIPResponse

type ReserveIPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *struct {
		// Data A floating public IP address.
		Data    *FloatingIP `json:"data,omitempty"`
		Success *bool       `json:"success,omitempty"`
	}
	JSON400 *BadRequest
	JSON401 *Unauthorized
	JSON402 *InsufficientBalance
	JSON403 *BillingValidationFailed
}

func ParseReserveIPResponse

func ParseReserveIPResponse(rsp *http.Response) (*ReserveIPResponse, error)

ParseReserveIPResponse parses an HTTP response from a ReserveIPWithResponse call

func (ReserveIPResponse) Status

func (r ReserveIPResponse) Status() string

Status returns HTTPResponse.Status

func (ReserveIPResponse) StatusCode

func (r ReserveIPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ResetBackupChainParams added in v0.3.4

type ResetBackupChainParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

ResetBackupChainParams defines parameters for ResetBackupChain.

type ResetBackupChainResponse added in v0.3.4

type ResetBackupChainResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON202      *SuccessResponse
	JSON400      *BadRequest
	JSON404      *NotFound
}

func ParseResetBackupChainResponse added in v0.3.4

func ParseResetBackupChainResponse(rsp *http.Response) (*ResetBackupChainResponse, error)

ParseResetBackupChainResponse parses an HTTP response from a ResetBackupChainWithResponse call

func (ResetBackupChainResponse) Status added in v0.3.4

func (r ResetBackupChainResponse) Status() string

Status returns HTTPResponse.Status

func (ResetBackupChainResponse) StatusCode added in v0.3.4

func (r ResetBackupChainResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ResetVMPasswordParams

type ResetVMPasswordParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

ResetVMPasswordParams defines parameters for ResetVMPassword.

type ResetVMPasswordResponse

type ResetVMPasswordResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SuccessResponse
	JSON400      *MissingProjectID
	JSON401      *Unauthorized
	JSON404      *NotFound
}

func ParseResetVMPasswordResponse

func ParseResetVMPasswordResponse(rsp *http.Response) (*ResetVMPasswordResponse, error)

ParseResetVMPasswordResponse parses an HTTP response from a ResetVMPasswordWithResponse call

func (ResetVMPasswordResponse) Status

func (r ResetVMPasswordResponse) Status() string

Status returns HTTPResponse.Status

func (ResetVMPasswordResponse) StatusCode

func (r ResetVMPasswordResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ResizeBillingDetails

type ResizeBillingDetails struct {
	BalanceApplied  *float32 `json:"balance_applied,omitempty"`
	CreditsApplied  *float32 `json:"credits_applied,omitempty"`
	NewMonthlyPrice *float32 `json:"new_monthly_price,omitempty"`
	NewPricePerHour *string  `json:"new_price_per_hour,omitempty"`

	// ProRataAmount Amount charged (positive) or credited (negative).
	ProRataAmount *float32                  `json:"pro_rata_amount,omitempty"`
	Type          *ResizeBillingDetailsType `json:"type,omitempty"`
}

ResizeBillingDetails Present only for subscription-based resources.

type ResizeBillingDetailsType

type ResizeBillingDetailsType string

ResizeBillingDetailsType defines model for ResizeBillingDetails.Type.

const (
	ResizeBillingDetailsTypeDowngrade ResizeBillingDetailsType = "downgrade"
	ResizeBillingDetailsTypeNone      ResizeBillingDetailsType = "none"
	ResizeBillingDetailsTypeUpgrade   ResizeBillingDetailsType = "upgrade"
)

Defines values for ResizeBillingDetailsType.

func (ResizeBillingDetailsType) Valid

func (e ResizeBillingDetailsType) Valid() bool

Valid indicates whether the value is a known member of the ResizeBillingDetailsType enum.

type ResizeResponse

type ResizeResponse struct {
	// Billing Present only for subscription-based resources.
	Billing *ResizeBillingDetails `json:"billing,omitempty"`

	// ID Resource ID.
	ID      *string `json:"id,omitempty"`
	Message *string `json:"message,omitempty"`
	Success *bool   `json:"success,omitempty"`
}

ResizeResponse defines model for ResizeResponse.

type ResizeVMDiskJSONRequestBody

type ResizeVMDiskJSONRequestBody = ResizeVMDiskRequest

ResizeVMDiskJSONRequestBody defines body for ResizeVMDisk for application/json ContentType.

type ResizeVMDiskParams

type ResizeVMDiskParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

ResizeVMDiskParams defines parameters for ResizeVMDisk.

type ResizeVMDiskRequest

type ResizeVMDiskRequest struct {
	// NewSize New disk size in GB. Must be larger than current size.
	NewSize int `json:"new_size"`
}

ResizeVMDiskRequest defines model for ResizeVMDiskRequest.

type ResizeVMDiskResponse

type ResizeVMDiskResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ResizeResponse
	JSON400      *BadRequest
	JSON401      *Unauthorized
	JSON402      *InsufficientBalance
	JSON404      *NotFound
}

func ParseResizeVMDiskResponse

func ParseResizeVMDiskResponse(rsp *http.Response) (*ResizeVMDiskResponse, error)

ParseResizeVMDiskResponse parses an HTTP response from a ResizeVMDiskWithResponse call

func (ResizeVMDiskResponse) Status

func (r ResizeVMDiskResponse) Status() string

Status returns HTTPResponse.Status

func (ResizeVMDiskResponse) StatusCode

func (r ResizeVMDiskResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ResizeVMJSONRequestBody

type ResizeVMJSONRequestBody = ResizeVMRequest

ResizeVMJSONRequestBody defines body for ResizeVM for application/json ContentType.

type ResizeVMParams

type ResizeVMParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

ResizeVMParams defines parameters for ResizeVM.

type ResizeVMRequest

type ResizeVMRequest struct {
	// PricingID Target pricing plan ID. Determines CPU, RAM, and included storage. Use `GET /api/v1/public/pricing/vm` to list available plans.
	PricingID int `json:"pricing_id"`
}

ResizeVMRequest defines model for ResizeVMRequest.

type ResizeVMResponse

type ResizeVMResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ResizeResponse
	JSON400      *BadRequest
	JSON401      *Unauthorized
	JSON402      *InsufficientBalance
	JSON404      *NotFound
}

func ParseResizeVMResponse

func ParseResizeVMResponse(rsp *http.Response) (*ResizeVMResponse, error)

ParseResizeVMResponse parses an HTTP response from a ResizeVMWithResponse call

func (ResizeVMResponse) Status

func (r ResizeVMResponse) Status() string

Status returns HTTPResponse.Status

func (ResizeVMResponse) StatusCode

func (r ResizeVMResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ResizeVolumeJSONRequestBody

type ResizeVolumeJSONRequestBody = ResizeVolumeRequest

ResizeVolumeJSONRequestBody defines body for ResizeVolume for application/json ContentType.

type ResizeVolumeParams

type ResizeVolumeParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

ResizeVolumeParams defines parameters for ResizeVolume.

type ResizeVolumeRequest

type ResizeVolumeRequest struct {
	// NewSize New volume size in GB. Must be larger than current size.
	NewSize int `json:"new_size"`
}

ResizeVolumeRequest defines model for ResizeVolumeRequest.

type ResizeVolumeResponse

type ResizeVolumeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ResizeResponse
	JSON400      *BadRequest
	JSON401      *Unauthorized
	JSON402      *InsufficientBalance
	JSON404      *NotFound
}

func ParseResizeVolumeResponse

func ParseResizeVolumeResponse(rsp *http.Response) (*ResizeVolumeResponse, error)

ParseResizeVolumeResponse parses an HTTP response from a ResizeVolumeWithResponse call

func (ResizeVolumeResponse) Status

func (r ResizeVolumeResponse) Status() string

Status returns HTTPResponse.Status

func (ResizeVolumeResponse) StatusCode

func (r ResizeVolumeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RestoreBackupParams

type RestoreBackupParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

RestoreBackupParams defines parameters for RestoreBackup.

type RestoreBackupResponse

type RestoreBackupResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON202      *struct {
		Data    *Backup `json:"data,omitempty"`
		Success *bool   `json:"success,omitempty"`
	}
	JSON400 *BadRequest
	JSON404 *NotFound
}

func ParseRestoreBackupResponse

func ParseRestoreBackupResponse(rsp *http.Response) (*RestoreBackupResponse, error)

ParseRestoreBackupResponse parses an HTTP response from a RestoreBackupWithResponse call

func (RestoreBackupResponse) Status

func (r RestoreBackupResponse) Status() string

Status returns HTTPResponse.Status

func (RestoreBackupResponse) StatusCode

func (r RestoreBackupResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RestoreSnapshotParams

type RestoreSnapshotParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

RestoreSnapshotParams defines parameters for RestoreSnapshot.

type RestoreSnapshotResponse

type RestoreSnapshotResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SuccessResponse
	JSON400      *BadRequest
	JSON404      *NotFound
}

func ParseRestoreSnapshotResponse

func ParseRestoreSnapshotResponse(rsp *http.Response) (*RestoreSnapshotResponse, error)

ParseRestoreSnapshotResponse parses an HTTP response from a RestoreSnapshotWithResponse call

func (RestoreSnapshotResponse) Status

func (r RestoreSnapshotResponse) Status() string

Status returns HTTPResponse.Status

func (RestoreSnapshotResponse) StatusCode

func (r RestoreSnapshotResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RevokeAPIKeyResponse

type RevokeAPIKeyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SuccessResponse
	JSON404      *NotFound
}

func ParseRevokeAPIKeyResponse

func ParseRevokeAPIKeyResponse(rsp *http.Response) (*RevokeAPIKeyResponse, error)

ParseRevokeAPIKeyResponse parses an HTTP response from a RevokeAPIKeyWithResponse call

func (RevokeAPIKeyResponse) Status

func (r RevokeAPIKeyResponse) Status() string

Status returns HTTPResponse.Status

func (RevokeAPIKeyResponse) StatusCode

func (r RevokeAPIKeyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Role

type Role struct {
	// AccountID Empty for built-in system roles
	AccountID   *openapi_types.UUID `json:"account_id,omitempty"`
	CreatedAt   *time.Time          `json:"created_at,omitempty"`
	CreatedBy   *openapi_types.UUID `json:"created_by,omitempty"`
	Description *string             `json:"description,omitempty"`
	ID          openapi_types.UUID  `json:"id"`

	// IsSystem `true` for built-in roles (Owner, Admin, Member, Operator, etc.) which cannot be edited or deleted. `false` for custom roles.
	IsSystem bool   `json:"is_system"`
	Name     string `json:"name"`

	// Permissions Permission strings (e.g. `vm.create`, `project.members.view`). See [List Permissions](#tag/Permissions/operation/listPermissions).
	Permissions []string `json:"permissions"`

	// Scope Whether the role grants account-level or project-level permissions
	Scope     RoleScope  `json:"scope"`
	Slug      string     `json:"slug"`
	UpdatedAt *time.Time `json:"updated_at,omitempty"`
}

Role defines model for Role.

type RoleScope

type RoleScope string

RoleScope Whether the role grants account-level or project-level permissions

const (
	RoleScopeAccount RoleScope = "account"
	RoleScopeProject RoleScope = "project"
)

Defines values for RoleScope.

func (RoleScope) Valid

func (e RoleScope) Valid() bool

Valid indicates whether the value is a known member of the RoleScope enum.

type SSHKey

type SSHKey struct {
	CreatedAt *time.Time `json:"created_at,omitempty"`

	// ID SSH key ID
	ID openapi_types.UUID `json:"id"`

	// KeyType Parsed key algorithm
	KeyType SSHKeyKeyType `json:"key_type"`

	// Name SSH key display name
	Name string `json:"name"`

	// PublicKey Full SSH public key string (e.g. `ssh-ed25519 AAAA... user@host`)
	PublicKey string     `json:"public_key"`
	UpdatedAt *time.Time `json:"updated_at,omitempty"`
}

SSHKey defines model for SSHKey.

type SSHKeyKeyType

type SSHKeyKeyType string

SSHKeyKeyType Parsed key algorithm

const (
	EcdsaSha2Nistp256 SSHKeyKeyType = "ecdsa-sha2-nistp256"
	EcdsaSha2Nistp384 SSHKeyKeyType = "ecdsa-sha2-nistp384"
	EcdsaSha2Nistp521 SSHKeyKeyType = "ecdsa-sha2-nistp521"
	SSHEd25519        SSHKeyKeyType = "ssh-ed25519"
	SSHRsa            SSHKeyKeyType = "ssh-rsa"
)

Defines values for SSHKeyKeyType.

func (SSHKeyKeyType) Valid

func (e SSHKeyKeyType) Valid() bool

Valid indicates whether the value is a known member of the SSHKeyKeyType enum.

type SaveImageRequest

type SaveImageRequest struct {
	// Description Optional description for the saved image.
	Description *string `json:"description,omitempty"`

	// DiskID Which disk to capture. `0` for the OS disk, `1+` for attached volumes.
	DiskID *int `json:"disk_id,omitempty"`

	// Name Custom image name.
	Name string `json:"name"`

	// SnapshotID Source for the image. `-1` captures the current live disk state. Pass a snapshot ID to capture from a saved snapshot.
	SnapshotID *int `json:"snapshot_id,omitempty"`
}

SaveImageRequest defines model for SaveImageRequest.

type SaveVMDiskAsImageJSONRequestBody

type SaveVMDiskAsImageJSONRequestBody = SaveImageRequest

SaveVMDiskAsImageJSONRequestBody defines body for SaveVMDiskAsImage for application/json ContentType.

type SaveVMDiskAsImageParams

type SaveVMDiskAsImageParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

SaveVMDiskAsImageParams defines parameters for SaveVMDiskAsImage.

type SaveVMDiskAsImageResponse

type SaveVMDiskAsImageResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *struct {
		// Data A custom OS image saved from a VM disk. Use `id` as `template_id` when creating new VMs.
		Data    *VMImage `json:"data,omitempty"`
		Success *bool    `json:"success,omitempty"`
	}
	JSON400 *BadRequest
	JSON401 *Unauthorized
	JSON404 *NotFound
}

func ParseSaveVMDiskAsImageResponse

func ParseSaveVMDiskAsImageResponse(rsp *http.Response) (*SaveVMDiskAsImageResponse, error)

ParseSaveVMDiskAsImageResponse parses an HTTP response from a SaveVMDiskAsImageWithResponse call

func (SaveVMDiskAsImageResponse) Status

func (r SaveVMDiskAsImageResponse) Status() string

Status returns HTTPResponse.Status

func (SaveVMDiskAsImageResponse) StatusCode

func (r SaveVMDiskAsImageResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SecurityGroup

type SecurityGroup struct {
	CreatedAt   *time.Time `json:"created_at,omitempty"`
	Description *string    `json:"description,omitempty"`

	// ID Security group ID.
	ID        openapi_types.UUID  `json:"id"`
	Name      string              `json:"name"`
	ProjectID *openapi_types.UUID `json:"project_id,omitempty"`
	Rules     []SecurityGroupRule `json:"rules"`
	UpdatedAt *time.Time          `json:"updated_at,omitempty"`

	// VMCount Number of VM NICs currently using this security group.
	VMCount *int `json:"vm_count,omitempty"`
}

SecurityGroup A security group — a named set of inbound/outbound rules that can be attached to VM NICs.

type SecurityGroupIDPath

type SecurityGroupIDPath = openapi_types.UUID

SecurityGroupIDPath defines model for SecurityGroupIDPath.

type SecurityGroupResourceIDPath

type SecurityGroupResourceIDPath = openapi_types.UUID

SecurityGroupResourceIDPath defines model for SecurityGroupResourceIDPath.

type SecurityGroupRule

type SecurityGroupRule struct {
	// IcmpType ICMP message type (only for ICMP/ICMPV6 protocols).
	IcmpType *int `json:"icmp_type,omitempty"`

	// IP Source/destination IP for the rule. Empty means any.
	IP *string `json:"ip,omitempty"`

	// Protocol Network protocol.
	Protocol SecurityGroupRuleProtocol `json:"protocol"`

	// Range Port or port range. Single port (`80`) or range (`8000:9000`). Empty for ICMP/ALL.
	Range *string `json:"range,omitempty"`

	// RuleType Direction of traffic.
	RuleType SecurityGroupRuleRuleType `json:"rule_type"`

	// Size CIDR block size (e.g. `24` for /24). Used with `ip` to allow a network range.
	Size *int `json:"size,omitempty"`
}

SecurityGroupRule A single inbound or outbound rule.

type SecurityGroupRuleProtocol

type SecurityGroupRuleProtocol string

SecurityGroupRuleProtocol Network protocol.

const (
	ALL    SecurityGroupRuleProtocol = "ALL"
	ICMP   SecurityGroupRuleProtocol = "ICMP"
	ICMPV6 SecurityGroupRuleProtocol = "ICMPV6"
	IPSEC  SecurityGroupRuleProtocol = "IPSEC"
	TCP    SecurityGroupRuleProtocol = "TCP"
	UDP    SecurityGroupRuleProtocol = "UDP"
)

Defines values for SecurityGroupRuleProtocol.

func (SecurityGroupRuleProtocol) Valid

func (e SecurityGroupRuleProtocol) Valid() bool

Valid indicates whether the value is a known member of the SecurityGroupRuleProtocol enum.

type SecurityGroupRuleRuleType

type SecurityGroupRuleRuleType string

SecurityGroupRuleRuleType Direction of traffic.

const (
	INBOUND  SecurityGroupRuleRuleType = "INBOUND"
	OUTBOUND SecurityGroupRuleRuleType = "OUTBOUND"
)

Defines values for SecurityGroupRuleRuleType.

func (SecurityGroupRuleRuleType) Valid

func (e SecurityGroupRuleRuleType) Valid() bool

Valid indicates whether the value is a known member of the SecurityGroupRuleRuleType enum.

type SecurityGroupTemplate

type SecurityGroupTemplate struct {
	Description *string `json:"description,omitempty"`

	// ID Template ID — pass as `template_id` when creating a security group.
	ID    string              `json:"id"`
	Name  string              `json:"name"`
	Rules []SecurityGroupRule `json:"rules"`
}

SecurityGroupTemplate A pre-built security group template.

type Snapshot

type Snapshot struct {
	// AccountID Account that owns the snapshot
	AccountID *openapi_types.UUID `json:"account_id,omitempty"`
	CreatedAt *time.Time          `json:"created_at,omitempty"`

	// CreatedBy User ID that created the snapshot
	CreatedBy *string `json:"created_by,omitempty"`

	// ID Snapshot ID
	ID int `json:"id"`

	// Name Snapshot display name
	Name string `json:"name"`

	// PricePerHour Hourly storage cost in USD
	PricePerHour *string `json:"price_per_hour,omitempty"`

	// ProductVM Source VM UUID (when `type` is `vm`)
	ProductVM *openapi_types.UUID `json:"product_vm,omitempty"`

	// ProjectID Project the snapshot belongs to
	ProjectID *openapi_types.UUID `json:"project_id,omitempty"`

	// Size Current snapshot size
	Size *string `json:"size,omitempty"`

	// Status Indicates whether the source VM or volume is currently running on this snapshot:
	//
	// - `active` — this snapshot is **in use**. The source VM/volume has been reverted to it and is running on it now. Deleting an active snapshot is blocked.
	// - `""` (empty) — this snapshot is saved but **not in use**. The source has not been reverted to it (or has been reverted to a different snapshot since).
	//
	// Only one snapshot per source can be `active` at a time. Calling [Restore Snapshot](#tag/Snapshots/operation/restoreSnapshot) flips that snapshot to `active` and clears the previous active one.
	Status *SnapshotStatus `json:"status,omitempty"`

	// TargetSize Provisioned size of the source disk at snapshot time
	TargetSize *string `json:"target_size,omitempty"`

	// Type Snapshot source type
	Type SnapshotType `json:"type"`
}

Snapshot defines model for Snapshot.

type SnapshotStatus

type SnapshotStatus string

SnapshotStatus Indicates whether the source VM or volume is currently running on this snapshot:

- `active` — this snapshot is **in use**. The source VM/volume has been reverted to it and is running on it now. Deleting an active snapshot is blocked. - `""` (empty) — this snapshot is saved but **not in use**. The source has not been reverted to it (or has been reverted to a different snapshot since).

Only one snapshot per source can be `active` at a time. Calling [Restore Snapshot](#tag/Snapshots/operation/restoreSnapshot) flips that snapshot to `active` and clears the previous active one.

const (
	SnapshotStatusActive SnapshotStatus = "active"
	SnapshotStatusEmpty  SnapshotStatus = ""
)

Defines values for SnapshotStatus.

func (SnapshotStatus) Valid

func (e SnapshotStatus) Valid() bool

Valid indicates whether the value is a known member of the SnapshotStatus enum.

type SnapshotType

type SnapshotType string

SnapshotType Snapshot source type

const (
	SnapshotTypeVM     SnapshotType = "vm"
	SnapshotTypeVolume SnapshotType = "volume"
)

Defines values for SnapshotType.

func (SnapshotType) Valid

func (e SnapshotType) Valid() bool

Valid indicates whether the value is a known member of the SnapshotType enum.

type StartVMParams

type StartVMParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

StartVMParams defines parameters for StartVM.

type StartVMResponse

type StartVMResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SuccessResponse
	JSON400      *MissingProjectID
	JSON401      *Unauthorized
	JSON404      *NotFound
}

func ParseStartVMResponse

func ParseStartVMResponse(rsp *http.Response) (*StartVMResponse, error)

ParseStartVMResponse parses an HTTP response from a StartVMWithResponse call

func (StartVMResponse) Status

func (r StartVMResponse) Status() string

Status returns HTTPResponse.Status

func (StartVMResponse) StatusCode

func (r StartVMResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type StopVMParams

type StopVMParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

StopVMParams defines parameters for StopVM.

type StopVMResponse

type StopVMResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SuccessResponse
	JSON400      *MissingProjectID
	JSON401      *Unauthorized
	JSON404      *NotFound
}

func ParseStopVMResponse

func ParseStopVMResponse(rsp *http.Response) (*StopVMResponse, error)

ParseStopVMResponse parses an HTTP response from a StopVMWithResponse call

func (StopVMResponse) Status

func (r StopVMResponse) Status() string

Status returns HTTPResponse.Status

func (StopVMResponse) StatusCode

func (r StopVMResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type StoragePricing

type StoragePricing struct {
	// ID Pricing record ID (present for volume pricing)
	ID *int `json:"id,omitempty"`

	// PricePerGbHour Price per GB per hour in USD
	PricePerGbHour *float32 `json:"price_per_gb_hour,omitempty"`

	// PricePerGbMonth Price per GB per month in USD
	PricePerGbMonth *float32 `json:"price_per_gb_month,omitempty"`

	// Region Region this pricing applies to
	Region *StoragePricingRegion `json:"region,omitempty"`

	// TwentyFourMonthPricePerGb 24-month commitment price per GB in USD
	TwentyFourMonthPricePerGb *float32 `json:"twenty_four_month_price_per_gb,omitempty"`

	// YearlyPricePerGb Yearly commitment price per GB in USD
	YearlyPricePerGb *float32 `json:"yearly_price_per_gb,omitempty"`
}

StoragePricing Per-GB storage pricing

type StoragePricingRegion

type StoragePricingRegion string

StoragePricingRegion Region this pricing applies to

const (
	StoragePricingRegionUsEast StoragePricingRegion = "us-east"
)

Defines values for StoragePricingRegion.

func (StoragePricingRegion) Valid

func (e StoragePricingRegion) Valid() bool

Valid indicates whether the value is a known member of the StoragePricingRegion enum.

type SuccessResponse

type SuccessResponse struct {
	Message *string `json:"message,omitempty"`
	Success *bool   `json:"success,omitempty"`
}

SuccessResponse defines model for SuccessResponse.

type TagIDPath

type TagIDPath = openapi_types.UUID

TagIDPath defines model for TagIDPath.

type Template

type Template struct {
	// Category Template category
	Category TemplateCategory `json:"category"`

	// CPU Minimum vCPU cores required
	CPU int `json:"cpu"`

	// Description Template description
	Description *string `json:"description,omitempty"`

	// ID Template ID — use as `template_id` when creating a VM
	ID openapi_types.UUID `json:"id"`

	// IsWindows Whether this is a Windows template (only available for premium VMs)
	IsWindows bool `json:"is_windows"`

	// Name OS name
	Name string `json:"name"`

	// OsType Operating system type
	OsType string `json:"os_type"`

	// RAM Minimum RAM in GB required
	RAM int `json:"ram"`

	// Region Region where this template is available
	Region TemplateRegion `json:"region"`

	// Storage Minimum storage in GB required
	Storage int `json:"storage"`

	// Version OS version
	Version string `json:"version"`
}

Template defines model for Template.

type TemplateCategory

type TemplateCategory string

TemplateCategory Template category

const (
	TemplateCategoryMarketplace TemplateCategory = "marketplace"
	TemplateCategoryOs          TemplateCategory = "os"
)

Defines values for TemplateCategory.

func (TemplateCategory) Valid

func (e TemplateCategory) Valid() bool

Valid indicates whether the value is a known member of the TemplateCategory enum.

type TemplateRegion

type TemplateRegion string

TemplateRegion Region where this template is available

const (
	TemplateRegionUsEast TemplateRegion = "us-east"
)

Defines values for TemplateRegion.

func (TemplateRegion) Valid

func (e TemplateRegion) Valid() bool

Valid indicates whether the value is a known member of the TemplateRegion enum.

type Unauthorized

type Unauthorized = Error

Unauthorized defines model for Unauthorized.

type UpdateAPIKeyJSONRequestBody

type UpdateAPIKeyJSONRequestBody = UpdateAPIKeyRequest

UpdateAPIKeyJSONRequestBody defines body for UpdateAPIKey for application/json ContentType.

type UpdateAPIKeyRequest

type UpdateAPIKeyRequest struct {
	ExpiresAt     *time.Time                        `json:"expires_at,omitempty"`
	IsActive      *bool                             `json:"is_active,omitempty"`
	Name          *string                           `json:"name,omitempty"`
	RateLimitTier *UpdateAPIKeyRequestRateLimitTier `json:"rate_limit_tier,omitempty"`
}

UpdateAPIKeyRequest At least one field is required. To change the role, rotate to a new key — role at create time is frozen.

type UpdateAPIKeyRequestRateLimitTier

type UpdateAPIKeyRequestRateLimitTier string

UpdateAPIKeyRequestRateLimitTier defines model for UpdateAPIKeyRequest.RateLimitTier.

const (
	UpdateAPIKeyRequestRateLimitTierHigh     UpdateAPIKeyRequestRateLimitTier = "high"
	UpdateAPIKeyRequestRateLimitTierStandard UpdateAPIKeyRequestRateLimitTier = "standard"
)

Defines values for UpdateAPIKeyRequestRateLimitTier.

func (UpdateAPIKeyRequestRateLimitTier) Valid

Valid indicates whether the value is a known member of the UpdateAPIKeyRequestRateLimitTier enum.

type UpdateAPIKeyResponse

type UpdateAPIKeyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data    *APIKey `json:"data,omitempty"`
		Success *bool   `json:"success,omitempty"`
	}
	JSON404 *NotFound
}

func ParseUpdateAPIKeyResponse

func ParseUpdateAPIKeyResponse(rsp *http.Response) (*UpdateAPIKeyResponse, error)

ParseUpdateAPIKeyResponse parses an HTTP response from a UpdateAPIKeyWithResponse call

func (UpdateAPIKeyResponse) Status

func (r UpdateAPIKeyResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateAPIKeyResponse) StatusCode

func (r UpdateAPIKeyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateBackupScheduleJSONRequestBody

type UpdateBackupScheduleJSONRequestBody = UpdateBackupScheduleRequest

UpdateBackupScheduleJSONRequestBody defines body for UpdateBackupSchedule for application/json ContentType.

type UpdateBackupScheduleParams

type UpdateBackupScheduleParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

UpdateBackupScheduleParams defines parameters for UpdateBackupSchedule.

type UpdateBackupScheduleRequest

type UpdateBackupScheduleRequest struct {
	// DayOfWeek Required when `type` is `weekly`.
	DayOfWeek *UpdateBackupScheduleRequestDayOfWeek `json:"day_of_week,omitempty"`
	KeepCount *int                                  `json:"keep_count,omitempty"`
	Time      *string                               `json:"time,omitempty"`
	Type      *UpdateBackupScheduleRequestType      `json:"type,omitempty"`
}

UpdateBackupScheduleRequest defines model for UpdateBackupScheduleRequest.

type UpdateBackupScheduleRequestDayOfWeek

type UpdateBackupScheduleRequestDayOfWeek string

UpdateBackupScheduleRequestDayOfWeek Required when `type` is `weekly`.

const (
	UpdateBackupScheduleRequestDayOfWeekFriday    UpdateBackupScheduleRequestDayOfWeek = "Friday"
	UpdateBackupScheduleRequestDayOfWeekMonday    UpdateBackupScheduleRequestDayOfWeek = "Monday"
	UpdateBackupScheduleRequestDayOfWeekSaturday  UpdateBackupScheduleRequestDayOfWeek = "Saturday"
	UpdateBackupScheduleRequestDayOfWeekSunday    UpdateBackupScheduleRequestDayOfWeek = "Sunday"
	UpdateBackupScheduleRequestDayOfWeekThursday  UpdateBackupScheduleRequestDayOfWeek = "Thursday"
	UpdateBackupScheduleRequestDayOfWeekTuesday   UpdateBackupScheduleRequestDayOfWeek = "Tuesday"
	UpdateBackupScheduleRequestDayOfWeekWednesday UpdateBackupScheduleRequestDayOfWeek = "Wednesday"
)

Defines values for UpdateBackupScheduleRequestDayOfWeek.

func (UpdateBackupScheduleRequestDayOfWeek) Valid

Valid indicates whether the value is a known member of the UpdateBackupScheduleRequestDayOfWeek enum.

type UpdateBackupScheduleRequestType

type UpdateBackupScheduleRequestType string

UpdateBackupScheduleRequestType defines model for UpdateBackupScheduleRequest.Type.

const (
	Daily  UpdateBackupScheduleRequestType = "daily"
	Weekly UpdateBackupScheduleRequestType = "weekly"
)

Defines values for UpdateBackupScheduleRequestType.

func (UpdateBackupScheduleRequestType) Valid

Valid indicates whether the value is a known member of the UpdateBackupScheduleRequestType enum.

type UpdateBackupScheduleResponse

type UpdateBackupScheduleResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data    *BackupSchedule `json:"data,omitempty"`
		Success *bool           `json:"success,omitempty"`
	}
	JSON400 *BadRequest
	JSON404 *NotFound
}

func ParseUpdateBackupScheduleResponse

func ParseUpdateBackupScheduleResponse(rsp *http.Response) (*UpdateBackupScheduleResponse, error)

ParseUpdateBackupScheduleResponse parses an HTTP response from a UpdateBackupScheduleWithResponse call

func (UpdateBackupScheduleResponse) Status

Status returns HTTPResponse.Status

func (UpdateBackupScheduleResponse) StatusCode

func (r UpdateBackupScheduleResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateMemberJSONRequestBody

type UpdateMemberJSONRequestBody = UpdateMemberRequest

UpdateMemberJSONRequestBody defines body for UpdateMember for application/json ContentType.

type UpdateMemberRequest

type UpdateMemberRequest struct {
	RoleID *openapi_types.UUID `json:"role_id,omitempty"`

	// Status Set `active` to re-enable a suspended member, or `suspended` to disable. `pending` cannot be set directly — that's reserved for invitation flow.
	Status *UpdateMemberRequestStatus `json:"status,omitempty"`
}

UpdateMemberRequest At least one field is required.

type UpdateMemberRequestStatus

type UpdateMemberRequestStatus string

UpdateMemberRequestStatus Set `active` to re-enable a suspended member, or `suspended` to disable. `pending` cannot be set directly — that's reserved for invitation flow.

const (
	UpdateMemberRequestStatusActive    UpdateMemberRequestStatus = "active"
	UpdateMemberRequestStatusSuspended UpdateMemberRequestStatus = "suspended"
)

Defines values for UpdateMemberRequestStatus.

func (UpdateMemberRequestStatus) Valid

func (e UpdateMemberRequestStatus) Valid() bool

Valid indicates whether the value is a known member of the UpdateMemberRequestStatus enum.

type UpdateMemberResponse

type UpdateMemberResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data    *Member `json:"data,omitempty"`
		Success *bool   `json:"success,omitempty"`
	}
	JSON404 *NotFound
}

func ParseUpdateMemberResponse

func ParseUpdateMemberResponse(rsp *http.Response) (*UpdateMemberResponse, error)

ParseUpdateMemberResponse parses an HTTP response from a UpdateMemberWithResponse call

func (UpdateMemberResponse) Status

func (r UpdateMemberResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateMemberResponse) StatusCode

func (r UpdateMemberResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateProjectJSONRequestBody

type UpdateProjectJSONRequestBody = UpdateProjectRequest

UpdateProjectJSONRequestBody defines body for UpdateProject for application/json ContentType.

type UpdateProjectMemberJSONRequestBody

type UpdateProjectMemberJSONRequestBody = UpdateMemberRequest

UpdateProjectMemberJSONRequestBody defines body for UpdateProjectMember for application/json ContentType.

type UpdateProjectMemberResponse

type UpdateProjectMemberResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data    *ProjectMember `json:"data,omitempty"`
		Success *bool          `json:"success,omitempty"`
	}
	JSON404 *NotFound
}

func ParseUpdateProjectMemberResponse

func ParseUpdateProjectMemberResponse(rsp *http.Response) (*UpdateProjectMemberResponse, error)

ParseUpdateProjectMemberResponse parses an HTTP response from a UpdateProjectMemberWithResponse call

func (UpdateProjectMemberResponse) Status

Status returns HTTPResponse.Status

func (UpdateProjectMemberResponse) StatusCode

func (r UpdateProjectMemberResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateProjectRequest

type UpdateProjectRequest struct {
	// DefaultRegion Default region for resources
	DefaultRegion *UpdateProjectRequestDefaultRegion `json:"default_region,omitempty"`

	// Description Project description
	Description *string `json:"description,omitempty"`

	// Name Project name
	Name *string `json:"name,omitempty"`
}

UpdateProjectRequest defines model for UpdateProjectRequest.

type UpdateProjectRequestDefaultRegion

type UpdateProjectRequestDefaultRegion string

UpdateProjectRequestDefaultRegion Default region for resources

const (
	UpdateProjectRequestDefaultRegionUsEast UpdateProjectRequestDefaultRegion = "us-east"
)

Defines values for UpdateProjectRequestDefaultRegion.

func (UpdateProjectRequestDefaultRegion) Valid

Valid indicates whether the value is a known member of the UpdateProjectRequestDefaultRegion enum.

type UpdateProjectResponse

type UpdateProjectResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data    *Project `json:"data,omitempty"`
		Success *bool    `json:"success,omitempty"`
	}
	JSON400 *BadRequest
	JSON401 *Unauthorized
	JSON404 *NotFound
}

func ParseUpdateProjectResponse

func ParseUpdateProjectResponse(rsp *http.Response) (*UpdateProjectResponse, error)

ParseUpdateProjectResponse parses an HTTP response from a UpdateProjectWithResponse call

func (UpdateProjectResponse) Status

func (r UpdateProjectResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateProjectResponse) StatusCode

func (r UpdateProjectResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateRoleJSONRequestBody

type UpdateRoleJSONRequestBody = UpdateRoleRequest

UpdateRoleJSONRequestBody defines body for UpdateRole for application/json ContentType.

type UpdateRoleRequest

type UpdateRoleRequest struct {
	Description *string   `json:"description,omitempty"`
	Name        *string   `json:"name,omitempty"`
	Permissions *[]string `json:"permissions,omitempty"`
}

UpdateRoleRequest At least one field is required. Slug and scope cannot be changed after creation.

type UpdateRoleResponse

type UpdateRoleResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data    *Role `json:"data,omitempty"`
		Success *bool `json:"success,omitempty"`
	}
	JSON400 *BadRequest
	JSON404 *NotFound
}

func ParseUpdateRoleResponse

func ParseUpdateRoleResponse(rsp *http.Response) (*UpdateRoleResponse, error)

ParseUpdateRoleResponse parses an HTTP response from a UpdateRoleWithResponse call

func (UpdateRoleResponse) Status

func (r UpdateRoleResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateRoleResponse) StatusCode

func (r UpdateRoleResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateSSHKeyJSONRequestBody

type UpdateSSHKeyJSONRequestBody = UpdateSSHKeyRequest

UpdateSSHKeyJSONRequestBody defines body for UpdateSSHKey for application/json ContentType.

type UpdateSSHKeyRequest

type UpdateSSHKeyRequest struct {
	// Name New SSH key display name
	Name string `json:"name"`
}

UpdateSSHKeyRequest defines model for UpdateSSHKeyRequest.

type UpdateSSHKeyResponse

type UpdateSSHKeyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data    *SSHKey `json:"data,omitempty"`
		Success *bool   `json:"success,omitempty"`
	}
	JSON400 *BadRequest
	JSON404 *NotFound
}

func ParseUpdateSSHKeyResponse

func ParseUpdateSSHKeyResponse(rsp *http.Response) (*UpdateSSHKeyResponse, error)

ParseUpdateSSHKeyResponse parses an HTTP response from a UpdateSSHKeyWithResponse call

func (UpdateSSHKeyResponse) Status

func (r UpdateSSHKeyResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateSSHKeyResponse) StatusCode

func (r UpdateSSHKeyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateSecurityGroupJSONRequestBody

type UpdateSecurityGroupJSONRequestBody = UpdateSecurityGroupRequest

UpdateSecurityGroupJSONRequestBody defines body for UpdateSecurityGroup for application/json ContentType.

type UpdateSecurityGroupParams

type UpdateSecurityGroupParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

UpdateSecurityGroupParams defines parameters for UpdateSecurityGroup.

type UpdateSecurityGroupRequest

type UpdateSecurityGroupRequest struct {
	Description *string              `json:"description,omitempty"`
	Name        *string              `json:"name,omitempty"`
	Rules       *[]SecurityGroupRule `json:"rules,omitempty"`
}

UpdateSecurityGroupRequest At least one field is required. Passing `rules` replaces the entire rule set.

type UpdateSecurityGroupResponse

type UpdateSecurityGroupResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		// Data A security group — a named set of inbound/outbound rules that can be attached to VM NICs.
		Data    *SecurityGroup `json:"data,omitempty"`
		Success *bool          `json:"success,omitempty"`
	}
	JSON400 *BadRequest
	JSON401 *Unauthorized
	JSON404 *NotFound
}

func ParseUpdateSecurityGroupResponse

func ParseUpdateSecurityGroupResponse(rsp *http.Response) (*UpdateSecurityGroupResponse, error)

ParseUpdateSecurityGroupResponse parses an HTTP response from a UpdateSecurityGroupWithResponse call

func (UpdateSecurityGroupResponse) Status

Status returns HTTPResponse.Status

func (UpdateSecurityGroupResponse) StatusCode

func (r UpdateSecurityGroupResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateVMNoteJSONRequestBody

type UpdateVMNoteJSONRequestBody = UpsertVMNoteRequest

UpdateVMNoteJSONRequestBody defines body for UpdateVMNote for application/json ContentType.

type UpdateVMNoteParams

type UpdateVMNoteParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

UpdateVMNoteParams defines parameters for UpdateVMNote.

type UpdateVMNoteParamsType

type UpdateVMNoteParamsType string

UpdateVMNoteParamsType defines parameters for UpdateVMNote.

const (
	UpdateVMNoteParamsTypeAccount  UpdateVMNoteParamsType = "account"
	UpdateVMNoteParamsTypePersonal UpdateVMNoteParamsType = "personal"
)

Defines values for UpdateVMNoteParamsType.

func (UpdateVMNoteParamsType) Valid

func (e UpdateVMNoteParamsType) Valid() bool

Valid indicates whether the value is a known member of the UpdateVMNoteParamsType enum.

type UpdateVMNoteResponse

type UpdateVMNoteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		// Note A free-form note attached to a VM. `personal` notes are visible only to the writer; `account` notes are shared across the account.
		Note    *VMNote `json:"note,omitempty"`
		Success *bool   `json:"success,omitempty"`
	}
	JSON400 *BadRequest
	JSON401 *Unauthorized
	JSON404 *Error
}

func ParseUpdateVMNoteResponse

func ParseUpdateVMNoteResponse(rsp *http.Response) (*UpdateVMNoteResponse, error)

ParseUpdateVMNoteResponse parses an HTTP response from a UpdateVMNoteWithResponse call

func (UpdateVMNoteResponse) Status

func (r UpdateVMNoteResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateVMNoteResponse) StatusCode

func (r UpdateVMNoteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateVMTagJSONRequestBody

type UpdateVMTagJSONRequestBody = UpdateVMTagRequest

UpdateVMTagJSONRequestBody defines body for UpdateVMTag for application/json ContentType.

type UpdateVMTagParams

type UpdateVMTagParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

UpdateVMTagParams defines parameters for UpdateVMTag.

type UpdateVMTagRequest

type UpdateVMTagRequest struct {
	// Name New tag name.
	Name *string `json:"name,omitempty"`

	// Priority New display priority.
	Priority *int `json:"priority,omitempty"`
}

UpdateVMTagRequest At least one field is required.

type UpdateVMTagResponse

type UpdateVMTagResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *VMTagsResponse
	JSON400      *BadRequest
	JSON401      *Unauthorized
	JSON404      *NotFound
}

func ParseUpdateVMTagResponse

func ParseUpdateVMTagResponse(rsp *http.Response) (*UpdateVMTagResponse, error)

ParseUpdateVMTagResponse parses an HTTP response from a UpdateVMTagWithResponse call

func (UpdateVMTagResponse) Status

func (r UpdateVMTagResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateVMTagResponse) StatusCode

func (r UpdateVMTagResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateVPCJSONRequestBody

type UpdateVPCJSONRequestBody = UpdateVPCRequest

UpdateVPCJSONRequestBody defines body for UpdateVPC for application/json ContentType.

type UpdateVPCParams

type UpdateVPCParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

UpdateVPCParams defines parameters for UpdateVPC.

type UpdateVPCRequest

type UpdateVPCRequest struct {
	// Description VPC description.
	Description *string `json:"description,omitempty"`

	// Name New VPC name.
	Name *string `json:"name,omitempty"`
}

UpdateVPCRequest At least one field is required. CIDR cannot be changed after creation.

type UpdateVPCResponse

type UpdateVPCResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		// Data A virtual private cloud (VPC).
		Data    *VPC  `json:"data,omitempty"`
		Success *bool `json:"success,omitempty"`
	}
	JSON400 *BadRequest
	JSON401 *Unauthorized
	JSON404 *NotFound
}

func ParseUpdateVPCResponse

func ParseUpdateVPCResponse(rsp *http.Response) (*UpdateVPCResponse, error)

ParseUpdateVPCResponse parses an HTTP response from a UpdateVPCWithResponse call

func (UpdateVPCResponse) Status

func (r UpdateVPCResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateVPCResponse) StatusCode

func (r UpdateVPCResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpsertVMNoteJSONRequestBody

type UpsertVMNoteJSONRequestBody = UpsertVMNoteRequest

UpsertVMNoteJSONRequestBody defines body for UpsertVMNote for application/json ContentType.

type UpsertVMNoteParams

type UpsertVMNoteParams struct {
	// XProjectID Project ID. Required for all mutating operations (create, delete, power actions, resize).
	XProjectID ProjectIDHeader `json:"X-Project-ID"`
}

UpsertVMNoteParams defines parameters for UpsertVMNote.

type UpsertVMNoteParamsType

type UpsertVMNoteParamsType string

UpsertVMNoteParamsType defines parameters for UpsertVMNote.

const (
	UpsertVMNoteParamsTypeAccount  UpsertVMNoteParamsType = "account"
	UpsertVMNoteParamsTypePersonal UpsertVMNoteParamsType = "personal"
)

Defines values for UpsertVMNoteParamsType.

func (UpsertVMNoteParamsType) Valid

func (e UpsertVMNoteParamsType) Valid() bool

Valid indicates whether the value is a known member of the UpsertVMNoteParamsType enum.

type UpsertVMNoteRequest

type UpsertVMNoteRequest struct {
	// Content Note text. Pass an empty string to clear the note.
	Content string `json:"content"`
}

UpsertVMNoteRequest defines model for UpsertVMNoteRequest.

type UpsertVMNoteResponse

type UpsertVMNoteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		// Note A free-form note attached to a VM. `personal` notes are visible only to the writer; `account` notes are shared across the account.
		Note    *VMNote `json:"note,omitempty"`
		Success *bool   `json:"success,omitempty"`
	}
	JSON400 *BadRequest
	JSON401 *Unauthorized
	JSON404 *NotFound
}

func ParseUpsertVMNoteResponse

func ParseUpsertVMNoteResponse(rsp *http.Response) (*UpsertVMNoteResponse, error)

ParseUpsertVMNoteResponse parses an HTTP response from a UpsertVMNoteWithResponse call

func (UpsertVMNoteResponse) Status

func (r UpsertVMNoteResponse) Status() string

Status returns HTTPResponse.Status

func (UpsertVMNoteResponse) StatusCode

func (r UpsertVMNoteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type VM

type VM struct {
	// Active Whether the VM is active
	Active bool `json:"active"`

	// AddedStorage Additional storage in GB
	AddedStorage int `json:"added_storage"`

	// BackupType Backup schedule type
	BackupType *string `json:"backup_type,omitempty"`

	// BillingType Billing type for this VM
	BillingType *VMBillingType `json:"billing_type,omitempty"`

	// CPU Number of vCPU cores
	CPU       int       `json:"cpu"`
	CreatedAt time.Time `json:"created_at"`

	// CreatedBy User ID who created this VM
	CreatedBy *string `json:"created_by,omitempty"`

	// ID Unique VM identifier
	ID openapi_types.UUID `json:"id"`

	// Name VM display name
	Name string `json:"name"`

	// PricePerHour Hourly billing rate in USD
	PricePerHour string `json:"price_per_hour"`

	// PricingID Pricing plan ID
	PricingID int `json:"pricing_id"`

	// PrivateIpv4Address Private IPv4 address (VPC)
	PrivateIpv4Address *string `json:"private_ipv4_address,omitempty"`

	// PrivateIpv6Address Private IPv6 address
	PrivateIpv6Address *string `json:"private_ipv6_address,omitempty"`

	// ProjectID Project this VM belongs to
	ProjectID *openapi_types.UUID `json:"project_id,omitempty"`

	// PublicIpv4Address Public IPv4 address
	PublicIpv4Address *string `json:"public_ipv4_address,omitempty"`

	// PublicIpv6Address Public IPv6 address
	PublicIpv6Address *string `json:"public_ipv6_address,omitempty"`

	// RAM RAM in GB
	RAM int `json:"ram"`

	// Region Data center region
	Region VMRegion `json:"region"`

	// Status Current VM status. Lifecycle transitions:
	// - Creation: `initiating` → `provisioning` → `booting` → `active`
	// - Stop: `active` → `finalizing` → `passive`
	// - Start: `passive` → `booting` → `active`
	// - Reboot: `active` → `booting` → `active`
	//
	// | Status | Meaning | Billable |
	// |--------|---------|----------|
	// | `initiating` | Queued, initial setup before provisioning | Yes |
	// | `provisioning` | VM being created in the hypervisor | Yes |
	// | `booting` | VM starting up | Yes |
	// | `active` | Running and accessible | Yes |
	// | `passive` | Stopped, resources still reserved | Yes |
	// | `finalizing` | Shutting down | Yes |
	// | `failure` | Creation or operation failed | No |
	Status VMStatus `json:"status"`

	// Storage Base storage in GB
	Storage int `json:"storage"`

	// SubscriptionID Subscription ID if billing_type is subscription
	SubscriptionID *openapi_types.UUID `json:"subscription_id,omitempty"`

	// Tags Custom tags
	Tags *[]VMTag `json:"tags,omitempty"`

	// TemplateID OS template ID used to create this VM
	TemplateID openapi_types.UUID `json:"template_id"`

	// TemplateName OS template name
	TemplateName string `json:"template_name"`

	// TemplateVersion OS template version
	TemplateVersion string `json:"template_version"`

	// TotalStorage Total storage (base + added) in GB
	TotalStorage int       `json:"total_storage"`
	UpdatedAt    time.Time `json:"updated_at"`

	// Version VM version
	Version *string `json:"version,omitempty"`
}

VM defines model for VM.

type VMBillingType

type VMBillingType string

VMBillingType Billing type for this VM

const (
	Payg         VMBillingType = "payg"
	Subscription VMBillingType = "subscription"
)

Defines values for VMBillingType.

func (VMBillingType) Valid

func (e VMBillingType) Valid() bool

Valid indicates whether the value is a known member of the VMBillingType enum.

type VMIDPath

type VMIDPath = openapi_types.UUID

VMIDPath defines model for VMIDPath.

type VMImage

type VMImage struct {
	CreatedAt   *time.Time `json:"created_at,omitempty"`
	Description *string    `json:"description,omitempty"`

	// ID Image ID — use as `template_id` when creating a VM.
	ID        openapi_types.UUID `json:"id"`
	IsWindows *bool              `json:"is_windows,omitempty"`

	// Name Image name.
	Name    string        `json:"name"`
	OsType  *string       `json:"os_type,omitempty"`
	Region  VMImageRegion `json:"region"`
	Version *string       `json:"version,omitempty"`
}

VMImage A custom OS image saved from a VM disk. Use `id` as `template_id` when creating new VMs.

type VMImageRegion

type VMImageRegion string

VMImageRegion defines model for VMImage.Region.

const (
	VMImageRegionUsEast VMImageRegion = "us-east"
)

Defines values for VMImageRegion.

func (VMImageRegion) Valid

func (e VMImageRegion) Valid() bool

Valid indicates whether the value is a known member of the VMImageRegion enum.

type VMNetwork

type VMNetwork struct {
	// Gateway Gateway IP for this interface.
	Gateway *string `json:"gateway,omitempty"`

	// IP IP address assigned to the interface (IPv4 or IPv6 depending on `type`).
	IP string `json:"ip"`

	// Mac MAC address of the interface. Stable for the lifetime of the VM — useful for static DHCP, packet captures, and disambiguating multiple NICs in scripts.
	Mac *string `json:"mac,omitempty"`

	// NetworkName Network name.
	NetworkName string `json:"network_name"`

	// NicID Interface ID. Use this when detaching from a VPC, IP, or security group.
	NicID int `json:"nic_id"`

	// SecurityGroupID ID of the security group attached to this NIC, if any.
	SecurityGroupID *openapi_types.UUID `json:"security_group_id,omitempty"`

	// Type Interface type:
	// - `public` — public IPv4 address
	// - `vpc` — private IPv4 inside a VPC
	// - `ipv6` — public IPv6 address
	Type VMNetworkType `json:"type"`
}

VMNetwork A network interface attached to a VM.

type VMNetworkType

type VMNetworkType string

VMNetworkType Interface type: - `public` — public IPv4 address - `vpc` — private IPv4 inside a VPC - `ipv6` — public IPv6 address

const (
	VMNetworkTypeIpv6   VMNetworkType = "ipv6"
	VMNetworkTypePublic VMNetworkType = "public"
	VMNetworkTypeVpc    VMNetworkType = "vpc"
)

Defines values for VMNetworkType.

func (VMNetworkType) Valid

func (e VMNetworkType) Valid() bool

Valid indicates whether the value is a known member of the VMNetworkType enum.

type VMNote

type VMNote struct {
	// Content Note text.
	Content   string    `json:"content"`
	CreatedAt time.Time `json:"created_at"`

	// ID Note identifier.
	ID openapi_types.UUID `json:"id"`

	// Type Note scope.
	Type      VMNoteType `json:"type"`
	UpdatedAt time.Time  `json:"updated_at"`

	// UserID User who wrote the note.
	UserID openapi_types.UUID `json:"user_id"`

	// VMID VM this note belongs to.
	VMID openapi_types.UUID `json:"vm_id"`
}

VMNote A free-form note attached to a VM. `personal` notes are visible only to the writer; `account` notes are shared across the account.

type VMNoteType

type VMNoteType string

VMNoteType Note scope.

const (
	VMNoteTypeAccount  VMNoteType = "account"
	VMNoteTypePersonal VMNoteType = "personal"
)

Defines values for VMNoteType.

func (VMNoteType) Valid

func (e VMNoteType) Valid() bool

Valid indicates whether the value is a known member of the VMNoteType enum.

type VMNotesResponse

type VMNotesResponse struct {
	// AccountNote A free-form note attached to a VM. `personal` notes are visible only to the writer; `account` notes are shared across the account.
	AccountNote *VMNote `json:"account_note,omitempty"`

	// PersonalNote A free-form note attached to a VM. `personal` notes are visible only to the writer; `account` notes are shared across the account.
	PersonalNote *VMNote `json:"personal_note,omitempty"`
	Success      bool    `json:"success"`
}

VMNotesResponse Personal and account notes for a VM. Either or both may be present.

type VMPricingPlan

type VMPricingPlan struct {
	// ID Plan ID — use as `pricing_id` when creating a VM
	ID int `json:"id"`

	// MemoryGib RAM in GiB
	MemoryGib int `json:"memory_gib"`

	// MonthlyPrice Monthly price in USD
	MonthlyPrice float32 `json:"monthly_price"`

	// PricePerHour Hourly price in USD (pay-as-you-go)
	PricePerHour float32 `json:"price_per_hour"`

	// Region Region this plan is available in
	Region VMPricingPlanRegion `json:"region"`

	// SsdGib SSD storage in GiB
	SsdGib int `json:"ssd_gib"`

	// TransferGib Monthly data transfer in GiB
	TransferGib int `json:"transfer_gib"`

	// TwentyFourMonthPrice 24-month commitment price in USD (total for 24 months)
	TwentyFourMonthPrice float32 `json:"twenty_four_month_price"`

	// Vcpu Number of vCPU cores
	Vcpu int `json:"vcpu"`

	// VMType VM type
	VMType VMPricingPlanVMType `json:"vm_type"`

	// YearlyPrice Yearly commitment price in USD (total for 12 months)
	YearlyPrice float32 `json:"yearly_price"`
}

VMPricingPlan defines model for VMPricingPlan.

type VMPricingPlanRegion

type VMPricingPlanRegion string

VMPricingPlanRegion Region this plan is available in

const (
	VMPricingPlanRegionUsEast VMPricingPlanRegion = "us-east"
)

Defines values for VMPricingPlanRegion.

func (VMPricingPlanRegion) Valid

func (e VMPricingPlanRegion) Valid() bool

Valid indicates whether the value is a known member of the VMPricingPlanRegion enum.

type VMPricingPlanVMType

type VMPricingPlanVMType string

VMPricingPlanVMType VM type

const (
	VMPricingPlanVMTypePremium  VMPricingPlanVMType = "premium"
	VMPricingPlanVMTypeStandard VMPricingPlanVMType = "standard"
)

Defines values for VMPricingPlanVMType.

func (VMPricingPlanVMType) Valid

func (e VMPricingPlanVMType) Valid() bool

Valid indicates whether the value is a known member of the VMPricingPlanVMType enum.

type VMRegion

type VMRegion string

VMRegion Data center region

const (
	VMRegionUsEast VMRegion = "us-east"
)

Defines values for VMRegion.

func (VMRegion) Valid

func (e VMRegion) Valid() bool

Valid indicates whether the value is a known member of the VMRegion enum.

type VMStatus

type VMStatus string

VMStatus Current VM status. Lifecycle transitions: - Creation: `initiating` → `provisioning` → `booting` → `active` - Stop: `active` → `finalizing` → `passive` - Start: `passive` → `booting` → `active` - Reboot: `active` → `booting` → `active`

| Status | Meaning | Billable | |--------|---------|----------| | `initiating` | Queued, initial setup before provisioning | Yes | | `provisioning` | VM being created in the hypervisor | Yes | | `booting` | VM starting up | Yes | | `active` | Running and accessible | Yes | | `passive` | Stopped, resources still reserved | Yes | | `finalizing` | Shutting down | Yes | | `failure` | Creation or operation failed | No |

const (
	VMStatusActive       VMStatus = "active"
	VMStatusBooting      VMStatus = "booting"
	VMStatusFailure      VMStatus = "failure"
	VMStatusFinalizing   VMStatus = "finalizing"
	VMStatusInitiating   VMStatus = "initiating"
	VMStatusPassive      VMStatus = "passive"
	VMStatusProvisioning VMStatus = "provisioning"
)

Defines values for VMStatus.

func (VMStatus) Valid

func (e VMStatus) Valid() bool

Valid indicates whether the value is a known member of the VMStatus enum.

type VMTag

type VMTag struct {
	// CreatedAt When the tag was created
	CreatedAt time.Time `json:"created_at"`

	// ID Unique tag identifier
	ID string `json:"id"`

	// Name Tag name
	Name string `json:"name"`

	// Priority Tag priority (ordering)
	Priority int `json:"priority"`
}

VMTag Custom tag attached to a VM.

type VMTagsResponse

type VMTagsResponse struct {
	Success bool    `json:"success"`
	Tags    []VMTag `json:"tags"`
}

VMTagsResponse Returns the full updated tag list for the VM.

type VPC

type VPC struct {
	// AccountID Account this VPC belongs to.
	AccountID *openapi_types.UUID `json:"account_id,omitempty"`

	// Cidr CIDR block for the VPC.
	Cidr      string     `json:"cidr"`
	CreatedAt *time.Time `json:"created_at,omitempty"`

	// DNS DNS server IP for the VPC.
	DNS *string `json:"dns,omitempty"`

	// Gateway Gateway IP for the VPC.
	Gateway *string `json:"gateway,omitempty"`

	// GatewayType Gateway type (e.g. `none`, `nat`).
	GatewayType *string `json:"gateway_type,omitempty"`

	// ID VPC identifier.
	ID openapi_types.UUID `json:"id"`

	// Name VPC display name.
	Name string `json:"name"`

	// ProjectID Project this VPC belongs to.
	ProjectID *openapi_types.UUID `json:"project_id,omitempty"`

	// Region Region where the VPC lives.
	Region VPCRegion `json:"region"`

	// RouterPublicIP Public IP of the VPC gateway, if a gateway is enabled.
	RouterPublicIP *string `json:"router_public_ip,omitempty"`

	// RouterStatus Gateway router status.
	RouterStatus *string `json:"router_status,omitempty"`

	// Status VPC lifecycle status.
	Status string `json:"status"`

	// TotalIps Total addressable IPs in the VPC.
	TotalIps  *int       `json:"total_ips,omitempty"`
	UpdatedAt *time.Time `json:"updated_at,omitempty"`

	// UsedIps IPs currently leased to VMs.
	UsedIps *int `json:"used_ips,omitempty"`
}

VPC A virtual private cloud (VPC).

type VPCDetail

type VPCDetail struct {
	// IPRangeEnd Last IP in the VPC's allocatable range
	IPRangeEnd *string `json:"ip_range_end,omitempty"`

	// IPRangeStart First IP in the VPC's allocatable range
	IPRangeStart *string `json:"ip_range_start,omitempty"`

	// Leases Active IP leases on the VPC. Empty when no VMs are attached.
	Leases *[]VPCLease `json:"leases,omitempty"`

	// Vpc A virtual private cloud (VPC).
	Vpc VPC `json:"vpc"`
}

VPCDetail Detail wrapper returned by `GET /api/v1/vpcs/{id}`. Contains the core VPC under `vpc`, plus the configured IP range and the current set of IP leases (one entry per attached network interface).

type VPCIDPath

type VPCIDPath = openapi_types.UUID

VPCIDPath defines model for VPCIDPath.

type VPCLease

type VPCLease struct {
	// IP Leased IP address
	IP string `json:"ip"`

	// NicID NIC interface ID on the leased VM. Pair with `GET /api/v1/vms/{id}/networks` to identify the owning interface.
	NicID int `json:"nic_id"`
}

VPCLease A single IP lease on the VPC.

type VPCRegion

type VPCRegion string

VPCRegion Region where the VPC lives.

const (
	VPCRegionUsEast VPCRegion = "us-east"
)

Defines values for VPCRegion.

func (VPCRegion) Valid

func (e VPCRegion) Valid() bool

Valid indicates whether the value is a known member of the VPCRegion enum.

type Volume

type Volume struct {
	// AccountID Account that owns the volume
	AccountID *openapi_types.UUID `json:"account_id,omitempty"`
	CreatedAt *time.Time          `json:"created_at,omitempty"`

	// ID Volume ID. Use this in `/volumes/{id}` for get, delete, attach, detach, resize.
	ID int `json:"id"`

	// Name Volume display name
	Name string `json:"name"`

	// PricePerHour Hourly billing rate in USD
	PricePerHour *string `json:"price_per_hour,omitempty"`

	// ProductVM UUID of the VM the volume is currently attached to. Empty when detached.
	ProductVM *openapi_types.UUID `json:"product_vm,omitempty"`

	// ProjectID Project the volume belongs to
	ProjectID *openapi_types.UUID `json:"project_id,omitempty"`
	Region    *VolumeRegion       `json:"region,omitempty"`

	// Size Volume size in GB
	Size int `json:"size"`

	// Status Volume lifecycle status:
	// - `creating` — being provisioned on the hypervisor
	// - `available` — ready, not attached to any VM
	// - `attached` — attached to a VM (see `product_vm`)
	// - `deleting` — being torn down
	// - `failed` — creation or attach failed
	Status    VolumeStatus `json:"status"`
	UpdatedAt *time.Time   `json:"updated_at,omitempty"`

	// VolumeType Storage class
	VolumeType VolumeVolumeType `json:"volume_type"`
}

Volume defines model for Volume.

type VolumeRegion

type VolumeRegion string

VolumeRegion defines model for Volume.Region.

const (
	VolumeRegionUsEast VolumeRegion = "us-east"
)

Defines values for VolumeRegion.

func (VolumeRegion) Valid

func (e VolumeRegion) Valid() bool

Valid indicates whether the value is a known member of the VolumeRegion enum.

type VolumeStatus

type VolumeStatus string

VolumeStatus Volume lifecycle status: - `creating` — being provisioned on the hypervisor - `available` — ready, not attached to any VM - `attached` — attached to a VM (see `product_vm`) - `deleting` — being torn down - `failed` — creation or attach failed

const (
	VolumeStatusAttached  VolumeStatus = "attached"
	VolumeStatusAvailable VolumeStatus = "available"
	VolumeStatusCreating  VolumeStatus = "creating"
	VolumeStatusDeleting  VolumeStatus = "deleting"
	VolumeStatusFailed    VolumeStatus = "failed"
)

Defines values for VolumeStatus.

func (VolumeStatus) Valid

func (e VolumeStatus) Valid() bool

Valid indicates whether the value is a known member of the VolumeStatus enum.

type VolumeVolumeType

type VolumeVolumeType string

VolumeVolumeType Storage class

const (
	VolumeVolumeTypeNvme VolumeVolumeType = "nvme"
)

Defines values for VolumeVolumeType.

func (VolumeVolumeType) Valid

func (e VolumeVolumeType) Valid() bool

Valid indicates whether the value is a known member of the VolumeVolumeType enum.

Jump to

Keyboard shortcuts

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