compute

package
v0.0.0-...-de483c3 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	Address     string                `json:"address"`
	Assignments *[]AddressAssignments `json:"assignments"`
	ProjectId   *string               `json:"project_id"`
	SubnetId    string                `json:"subnet_id"`
	CreatedAt   string                `json:"created_at"`
	Id          string                `json:"id"`
}

type AddressAssignments

type AddressAssignments struct {
	AssignedType ObjectType `json:"assigned_type"`
	AssignedId   string     `json:"assigned_id"`
}

type AddressListResponse

type AddressListResponse struct {
	Metadata   ResponseMetadata    `json:"metadata"`
	Pagination *ResponsePagination `json:"pagination"`
	Data       []Address           `json:"data"`
	Success    bool                `json:"success"`
	Messages   ResponseMessages    `json:"messages"`
}

type AddressSingleResponse

type AddressSingleResponse struct {
	Metadata ResponseMetadata `json:"metadata"`
	Data     Address          `json:"data"`
	Success  bool             `json:"success"`
	Messages ResponseMessages `json:"messages"`
}

type AvailabilityZone

type AvailabilityZone struct {
	CountryCode string `json:"country_code"`
	City        string `json:"city"`
	Id          string `json:"id"`
	Title       string `json:"title"`
}

type AvailabilityZoneCreateRequest

type AvailabilityZoneCreateRequest struct {
	CountryCode string      `json:"country_code"`
	City        string      `json:"city"`
	Title       string      `json:"title"`
	Config      interface{} `json:"config"`
}

type AvailabilityZoneListResponse

type AvailabilityZoneListResponse struct {
	Metadata   ResponseMetadata    `json:"metadata"`
	Pagination *ResponsePagination `json:"pagination"`
	Data       []AvailabilityZone  `json:"data"`
	Success    bool                `json:"success"`
	Messages   ResponseMessages    `json:"messages"`
}

type AvailabilityZoneSingleResponse

type AvailabilityZoneSingleResponse struct {
	Metadata ResponseMetadata `json:"metadata"`
	Data     AvailabilityZone `json:"data"`
	Success  bool             `json:"success"`
	Messages ResponseMessages `json:"messages"`
}

type AvailabilityZoneUpdateRequest

type AvailabilityZoneUpdateRequest struct {
	CountryCode *string     `json:"country_code"`
	City        *string     `json:"city"`
	Title       *string     `json:"title"`
	Config      interface{} `json:"config"`
}

type ComputeClient

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

func NewClient

func NewClient(apiKey string) ComputeClient

func NewClientWithUrl

func NewClientWithUrl(apiKey string, baseUrl string) ComputeClient

func (ComputeClient) AttachServerVolume

func (ComputeClient) CancelServerAction

func (c ComputeClient) CancelServerAction(id string) (ServerActionSingleResponse, *http.Response, error)

func (ComputeClient) CreateNetwork

func (ComputeClient) CreateS3AccessKey

func (ComputeClient) CreateS3AccessKeyGrant

func (c ComputeClient) CreateS3AccessKeyGrant(in S3AccessGrantCreateRequest, access_key_id string) (S3AccessGrantSingleResponse, *http.Response, error)

func (ComputeClient) CreateS3Bucket

func (ComputeClient) CreateSSHKey

func (ComputeClient) CreateServer

func (ComputeClient) CreateServerHost

func (ComputeClient) CreateServerMedia

func (ComputeClient) CreateSubnet

func (ComputeClient) DeleteS3AccessKey

func (c ComputeClient) DeleteS3AccessKey(id string) (EmptyResponse, *http.Response, error)

func (ComputeClient) DeleteS3AccessKeyGrant

func (c ComputeClient) DeleteS3AccessKeyGrant(access_key_id string, id string) (EmptyResponse, *http.Response, error)

func (ComputeClient) DeleteS3Bucket

func (c ComputeClient) DeleteS3Bucket(id string) (EmptyResponse, *http.Response, error)

func (ComputeClient) DeleteSSHKey

func (c ComputeClient) DeleteSSHKey(id string) (EmptyResponse, *http.Response, error)

func (ComputeClient) DeleteScheduledServerAction

func (c ComputeClient) DeleteScheduledServerAction(id string, action_id string) (EmptyResponse, *http.Response, error)

func (ComputeClient) DeleteServer

func (c ComputeClient) DeleteServer(id string) (EmptyResponse, *http.Response, error)

func (ComputeClient) DeleteServerBackup

func (c ComputeClient) DeleteServerBackup(id string) (EmptyResponse, *http.Response, error)

func (ComputeClient) DeleteServerFirewall

func (c ComputeClient) DeleteServerFirewall(id string) (EmptyResponse, *http.Response, error)

func (ComputeClient) DeleteServerFirewallMember

func (c ComputeClient) DeleteServerFirewallMember(id string, member_id string) (EmptyResponse, *http.Response, error)

func (ComputeClient) DeleteServerFirewallRule

func (c ComputeClient) DeleteServerFirewallRule(id string, rule_id string) (EmptyResponse, *http.Response, error)

func (ComputeClient) DeleteServerMedia

func (c ComputeClient) DeleteServerMedia(id string) (EmptyResponse, *http.Response, error)

func (ComputeClient) DeleteServerNetwork

func (c ComputeClient) DeleteServerNetwork(id string, network_id string) (EmptyResponse, *http.Response, error)

func (ComputeClient) DeleteServerPriceRangeAssignment

func (c ComputeClient) DeleteServerPriceRangeAssignment(id string) (EmptyResponse, *http.Response, error)

func (ComputeClient) DeleteServerPriceRangeVolumePrice

func (c ComputeClient) DeleteServerPriceRangeVolumePrice(id string, class_id string) (EmptyResponse, *http.Response, error)

func (ComputeClient) DeleteServerVariant

func (c ComputeClient) DeleteServerVariant(id string) (EmptyResponse, *http.Response, error)

func (ComputeClient) DeleteServerVariantPrice

func (c ComputeClient) DeleteServerVariantPrice(id string, variant_id string) (EmptyResponse, *http.Response, error)

func (ComputeClient) DeleteServerVolume

func (c ComputeClient) DeleteServerVolume(id string) (EmptyResponse, *http.Response, error)

func (ComputeClient) DeleteSubnet

func (c ComputeClient) DeleteSubnet(id string) (EmptyResponse, *http.Response, error)

func (ComputeClient) DetachServerVolume

func (ComputeClient) GetAddress

func (ComputeClient) GetAddresses

func (ComputeClient) GetAvailabilityZone

func (c ComputeClient) GetAvailabilityZone(id string) (AvailabilityZoneSingleResponse, *http.Response, error)

func (ComputeClient) GetAvailabilityZones

func (*ComputeClient) GetCurrentProject

func (c *ComputeClient) GetCurrentProject() string

func (ComputeClient) GetLabels

func (ComputeClient) GetNetwork

func (ComputeClient) GetNetworks

func (ComputeClient) GetS3AccessKey

func (ComputeClient) GetS3AccessKeyGrants

func (c ComputeClient) GetS3AccessKeyGrants(access_key_id string, qParams GetS3AccessKeyGrantsQueryParams) (S3AccessGrantListResponse, *http.Response, error)

func (ComputeClient) GetS3AccessKeys

func (ComputeClient) GetS3Bucket

func (ComputeClient) GetS3Buckets

func (ComputeClient) GetSSHKey

func (ComputeClient) GetSSHKeys

func (ComputeClient) GetScheduledServerAction

func (c ComputeClient) GetScheduledServerAction(id string, action_id string) (ScheduledServerActionSingleResponse, *http.Response, error)

func (ComputeClient) GetServer

func (ComputeClient) GetServerAction

func (ComputeClient) GetServerActions

func (ComputeClient) GetServerBackup

func (ComputeClient) GetServerBackups

func (ComputeClient) GetServerFirewall

func (c ComputeClient) GetServerFirewall(id string) (ServerFirewallSingleResponse, *http.Response, error)

func (ComputeClient) GetServerFirewallMember

func (c ComputeClient) GetServerFirewallMember(id string, member_id string) (ServerFirewallMemberSingleResponse, *http.Response, error)

func (ComputeClient) GetServerFirewallRule

func (c ComputeClient) GetServerFirewallRule(id string, rule_id string) (ServerFirewallRuleSingleResponse, *http.Response, error)

func (ComputeClient) GetServerFirewalls

func (ComputeClient) GetServerGraph

func (ComputeClient) GetServerHost

func (ComputeClient) GetServerHosts

func (ComputeClient) GetServerMedia

func (ComputeClient) GetServerMedias

func (ComputeClient) GetServerNetworks

func (ComputeClient) GetServerPriceRange

func (c ComputeClient) GetServerPriceRange(id string) (ServerPriceRangeSingleResponse, *http.Response, error)

func (ComputeClient) GetServerPriceRangeAssignment

func (c ComputeClient) GetServerPriceRangeAssignment(id string) (ServerPriceRangeAssignmentSingleResponse, *http.Response, error)

func (ComputeClient) GetServerPriceRangeVolumePrice

func (c ComputeClient) GetServerPriceRangeVolumePrice(id string, class_id string) (ServerVolumePriceSingleResponse, *http.Response, error)

func (ComputeClient) GetServerPriceRanges

func (ComputeClient) GetServerPricing

func (ComputeClient) GetServerStatus

func (c ComputeClient) GetServerStatus(id string) (ServerStatusResponse, *http.Response, error)

func (ComputeClient) GetServerStorage

func (c ComputeClient) GetServerStorage(id string) (ServerStorageSingleResponse, *http.Response, error)

func (ComputeClient) GetServerStorageClass

func (c ComputeClient) GetServerStorageClass(id string) (ServerStorageClassSingleResponse, *http.Response, error)

func (ComputeClient) GetServerStorages

func (ComputeClient) GetServerTemplate

func (c ComputeClient) GetServerTemplate(id string) (ServerTemplateSingleResponse, *http.Response, error)

func (ComputeClient) GetServerTemplates

func (ComputeClient) GetServerVNC

func (c ComputeClient) GetServerVNC(id string) (ServerVNCResponse, *http.Response, error)

func (ComputeClient) GetServerVariant

func (c ComputeClient) GetServerVariant(id string) (ServerVariantSingleResponse, *http.Response, error)

func (ComputeClient) GetServerVariantPrice

func (c ComputeClient) GetServerVariantPrice(id string, variant_id string) (ServerVariantPriceSingleResponse, *http.Response, error)

func (ComputeClient) GetServerVariants

func (ComputeClient) GetServerVolume

func (ComputeClient) GetServerVolumes

func (ComputeClient) GetServers

func (ComputeClient) GetSubnet

func (ComputeClient) GetSubnets

func (ComputeClient) MountServerMedia

func (ComputeClient) RecreateServer

func (c ComputeClient) RecreateServer(id string) (EmptyResponse, *http.Response, error)

func (*ComputeClient) Request

func (c *ComputeClient) Request(method string, path string, postBody io.Reader) (*http.Response, []byte, error)

func (ComputeClient) ResizeServer

func (ComputeClient) ResizeServerVolume

func (ComputeClient) RestartServer

func (ComputeClient) Search

func (*ComputeClient) SetAccessToken

func (c *ComputeClient) SetAccessToken(token string)

func (*ComputeClient) SetCurrentProject

func (c *ComputeClient) SetCurrentProject(project string)

func (*ComputeClient) SetHttpClient

func (c *ComputeClient) SetHttpClient(client *http.Client)

func (ComputeClient) ShutdownServer

func (c ComputeClient) ShutdownServer(id string, qParams ShutdownServerQueryParams) (EmptyResponse, *http.Response, error)

func (ComputeClient) StartServer

func (c ComputeClient) StartServer(id string) (EmptyResponse, *http.Response, error)

func (ComputeClient) StopServer

func (c ComputeClient) StopServer(id string) (EmptyResponse, *http.Response, error)

func (ComputeClient) UnmountServerMedia

func (c ComputeClient) UnmountServerMedia(id string) (ServerSingleResponse, *http.Response, error)

func (ComputeClient) UpdateNetwork

func (ComputeClient) UpdateSSHKey

func (ComputeClient) UpdateServer

func (ComputeClient) UpdateServerBackup

func (ComputeClient) UpdateServerFirewallRule

func (ComputeClient) UpdateServerHost

func (ComputeClient) UpdateServerPriceRangeVolumePrice

func (c ComputeClient) UpdateServerPriceRangeVolumePrice(in ServerVolumePriceUpdateRequest, id string, class_id string) (ServerVolumePriceSingleResponse, *http.Response, error)

func (ComputeClient) UpdateServerVariantPrice

func (ComputeClient) UpdateServerVolume

type DetachServerVolumeQueryParams

type DetachServerVolumeQueryParams struct {
	Iknowthisisunsafe *string `url:"iknowthisisunsafe,omitempty"`
}

type EmptyResponse

type EmptyResponse struct {
	Metadata ResponseMetadata `json:"metadata"`
	Success  bool             `json:"success"`
	Messages ResponseMessages `json:"messages"`
}

type GetAddressesQueryParams

type GetAddressesQueryParams struct {
	Order    *string                        `url:"order,omitempty"`
	Filter   *GetAddressesQueryParamsFilter `url:"filter,omitempty"`
	PageSize *int                           `url:"page_size,omitempty"`
	OrderBy  *string                        `url:"order_by,omitempty"`
	Search   *string                        `url:"search,omitempty"`
	Page     *int                           `url:"page,omitempty"`
}

type GetAddressesQueryParamsFilter

type GetAddressesQueryParamsFilter struct {
	ProjectId *string `url:"project_id,omitempty"`
	Id        *string `url:"id,omitempty"`
}

type GetAvailabilityZonesQueryParams

type GetAvailabilityZonesQueryParams struct {
	Order    *string                                `url:"order,omitempty"`
	Filter   *GetAvailabilityZonesQueryParamsFilter `url:"filter,omitempty"`
	PageSize *int                                   `url:"page_size,omitempty"`
	OrderBy  *string                                `url:"order_by,omitempty"`
	Search   *string                                `url:"search,omitempty"`
	Page     *int                                   `url:"page,omitempty"`
}

type GetAvailabilityZonesQueryParamsFilter

type GetAvailabilityZonesQueryParamsFilter struct {
	CountryCode *string `url:"country_code,omitempty"`
	Title       *string `url:"title,omitempty"`
	Id          *string `url:"id,omitempty"`
	City        *string `url:"city,omitempty"`
}

type GetLabelsQueryParams

type GetLabelsQueryParams struct {
	Filter   *GetLabelsQueryParamsFilter `url:"filter,omitempty"`
	PageSize *int                        `url:"page_size,omitempty"`
	Search   *string                     `url:"search,omitempty"`
	Page     *int                        `url:"page,omitempty"`
}

type GetLabelsQueryParamsFilter

type GetLabelsQueryParamsFilter struct {
	ObjectType *string `url:"object_type,omitempty"`
	ProjectId  *string `url:"project_id,omitempty"`
	Value      *string `url:"value,omitempty"`
	Name       *string `url:"name,omitempty"`
}

type GetNetworksQueryParams

type GetNetworksQueryParams struct {
	Order      *string                       `url:"order,omitempty"`
	Filter     *GetNetworksQueryParamsFilter `url:"filter,omitempty"`
	PageSize   *int                          `url:"page_size,omitempty"`
	OrderBy    *string                       `url:"order_by,omitempty"`
	Search     *string                       `url:"search,omitempty"`
	Page       *int                          `url:"page,omitempty"`
	WithLabels *bool                         `url:"with_labels,omitempty"`
}

type GetNetworksQueryParamsFilter

type GetNetworksQueryParamsFilter struct {
	Type      *string            `url:"type,omitempty"`
	ZoneId    *string            `url:"zone_id,omitempty"`
	ProjectId *string            `url:"project_id,omitempty"`
	Title     *string            `url:"title,omitempty"`
	Labels    map[string]*string `url:"labels,omitempty"`
	Id        *string            `url:"id,omitempty"`
}

type GetS3AccessKeyGrantsQueryParams

type GetS3AccessKeyGrantsQueryParams struct {
	Order      *string                                `url:"order,omitempty"`
	Filter     *GetS3AccessKeyGrantsQueryParamsFilter `url:"filter,omitempty"`
	PageSize   *int                                   `url:"page_size,omitempty"`
	OrderBy    *string                                `url:"order_by,omitempty"`
	Search     *string                                `url:"search,omitempty"`
	Page       *int                                   `url:"page,omitempty"`
	WithLabels *bool                                  `url:"with_labels,omitempty"`
}

type GetS3AccessKeyGrantsQueryParamsFilter

type GetS3AccessKeyGrantsQueryParamsFilter struct {
	Labels map[string]*string `url:"labels,omitempty"`
}

type GetS3AccessKeysQueryParams

type GetS3AccessKeysQueryParams struct {
	Order      *string                           `url:"order,omitempty"`
	Filter     *GetS3AccessKeysQueryParamsFilter `url:"filter,omitempty"`
	PageSize   *int                              `url:"page_size,omitempty"`
	OrderBy    *string                           `url:"order_by,omitempty"`
	Search     *string                           `url:"search,omitempty"`
	Page       *int                              `url:"page,omitempty"`
	WithLabels *bool                             `url:"with_labels,omitempty"`
}

type GetS3AccessKeysQueryParamsFilter

type GetS3AccessKeysQueryParamsFilter struct {
	ProjectId *string            `url:"project_id,omitempty"`
	Labels    map[string]*string `url:"labels,omitempty"`
}

type GetS3BucketsQueryParams

type GetS3BucketsQueryParams struct {
	Order      *string                        `url:"order,omitempty"`
	Filter     *GetS3BucketsQueryParamsFilter `url:"filter,omitempty"`
	PageSize   *int                           `url:"page_size,omitempty"`
	OrderBy    *string                        `url:"order_by,omitempty"`
	Search     *string                        `url:"search,omitempty"`
	Page       *int                           `url:"page,omitempty"`
	WithLabels *bool                          `url:"with_labels,omitempty"`
}

type GetS3BucketsQueryParamsFilter

type GetS3BucketsQueryParamsFilter struct {
	ProjectId *string            `url:"project_id,omitempty"`
	Labels    map[string]*string `url:"labels,omitempty"`
}

type GetSSHKeysQueryParams

type GetSSHKeysQueryParams struct {
	Order      *string                      `url:"order,omitempty"`
	Filter     *GetSSHKeysQueryParamsFilter `url:"filter,omitempty"`
	PageSize   *int                         `url:"page_size,omitempty"`
	OrderBy    *string                      `url:"order_by,omitempty"`
	Search     *string                      `url:"search,omitempty"`
	Page       *int                         `url:"page,omitempty"`
	WithLabels *bool                        `url:"with_labels,omitempty"`
}

type GetSSHKeysQueryParamsFilter

type GetSSHKeysQueryParamsFilter struct {
	ProjectId *string            `url:"project_id,omitempty"`
	Title     *string            `url:"title,omitempty"`
	Labels    map[string]*string `url:"labels,omitempty"`
}

type GetScheduledServerActionsQueryParams

type GetScheduledServerActionsQueryParams struct {
	Order    *string `url:"order,omitempty"`
	PageSize *int    `url:"page_size,omitempty"`
	OrderBy  *string `url:"order_by,omitempty"`
	Search   *string `url:"search,omitempty"`
	Page     *int    `url:"page,omitempty"`
}

type GetServerActionsQueryParams

type GetServerActionsQueryParams struct {
	Order    *string                            `url:"order,omitempty"`
	Filter   *GetServerActionsQueryParamsFilter `url:"filter,omitempty"`
	PageSize *int                               `url:"page_size,omitempty"`
	OrderBy  *string                            `url:"order_by,omitempty"`
	Search   *string                            `url:"search,omitempty"`
	Page     *int                               `url:"page,omitempty"`
}

type GetServerActionsQueryParamsFilter

type GetServerActionsQueryParamsFilter struct {
	Type     *string `url:"type,omitempty"`
	State    *string `url:"state,omitempty"`
	ServerId *string `url:"server_id,omitempty"`
	Id       *string `url:"id,omitempty"`
}

type GetServerBackupsQueryParams

type GetServerBackupsQueryParams struct {
	Order    *string                            `url:"order,omitempty"`
	Filter   *GetServerBackupsQueryParamsFilter `url:"filter,omitempty"`
	PageSize *int                               `url:"page_size,omitempty"`
	OrderBy  *string                            `url:"order_by,omitempty"`
	Search   *string                            `url:"search,omitempty"`
	Page     *int                               `url:"page,omitempty"`
}

type GetServerBackupsQueryParamsFilter

type GetServerBackupsQueryParamsFilter struct {
	ProjectId *string `url:"project_id,omitempty"`
	ServerId  *string `url:"server_id,omitempty"`
	Id        *string `url:"id,omitempty"`
}

type GetServerFirewallMembersQueryParams

type GetServerFirewallMembersQueryParams struct {
	Order    *string                                    `url:"order,omitempty"`
	Filter   *GetServerFirewallMembersQueryParamsFilter `url:"filter,omitempty"`
	PageSize *int                                       `url:"page_size,omitempty"`
	OrderBy  *string                                    `url:"order_by,omitempty"`
	Search   *string                                    `url:"search,omitempty"`
	Page     *int                                       `url:"page,omitempty"`
}

type GetServerFirewallMembersQueryParamsFilter

type GetServerFirewallMembersQueryParamsFilter struct {
	Type       *string `url:"type,omitempty"`
	ServerId   *string `url:"server_id,omitempty"`
	LabelValue *string `url:"label_value,omitempty"`
	Id         *string `url:"id,omitempty"`
	LabelName  *string `url:"label_name,omitempty"`
	Applied    *string `url:"applied,omitempty"`
}

type GetServerFirewallRulesQueryParams

type GetServerFirewallRulesQueryParams struct {
	Order    *string                                  `url:"order,omitempty"`
	Filter   *GetServerFirewallRulesQueryParamsFilter `url:"filter,omitempty"`
	PageSize *int                                     `url:"page_size,omitempty"`
	OrderBy  *string                                  `url:"order_by,omitempty"`
	Search   *string                                  `url:"search,omitempty"`
	Page     *int                                     `url:"page,omitempty"`
}

type GetServerFirewallRulesQueryParamsFilter

type GetServerFirewallRulesQueryParamsFilter struct {
	Type     *string `url:"type,omitempty"`
	Id       *string `url:"id,omitempty"`
	Protocol *string `url:"protocol,omitempty"`
	Disabled *bool   `url:"disabled,omitempty"`
	Applied  *string `url:"applied,omitempty"`
}

type GetServerFirewallsQueryParams

type GetServerFirewallsQueryParams struct {
	Order    *string                              `url:"order,omitempty"`
	Filter   *GetServerFirewallsQueryParamsFilter `url:"filter,omitempty"`
	PageSize *int                                 `url:"page_size,omitempty"`
	OrderBy  *string                              `url:"order_by,omitempty"`
	Search   *string                              `url:"search,omitempty"`
	Page     *int                                 `url:"page,omitempty"`
}

type GetServerFirewallsQueryParamsFilter

type GetServerFirewallsQueryParamsFilter struct {
	ProjectId *string `url:"project_id,omitempty"`
	Title     *string `url:"title,omitempty"`
	Id        *string `url:"id,omitempty"`
}

type GetServerGraphQueryParams

type GetServerGraphQueryParams struct {
	Timeframe *string `url:"timeframe,omitempty"`
}

type GetServerHostsQueryParams

type GetServerHostsQueryParams struct {
	Order    *string                          `url:"order,omitempty"`
	Filter   *GetServerHostsQueryParamsFilter `url:"filter,omitempty"`
	PageSize *int                             `url:"page_size,omitempty"`
	OrderBy  *string                          `url:"order_by,omitempty"`
	Search   *string                          `url:"search,omitempty"`
	Page     *int                             `url:"page,omitempty"`
}

type GetServerHostsQueryParamsFilter

type GetServerHostsQueryParamsFilter struct {
	Title *string `url:"title,omitempty"`
	Id    *string `url:"id,omitempty"`
}

type GetServerMediasQueryParams

type GetServerMediasQueryParams struct {
	Order      *string                           `url:"order,omitempty"`
	Filter     *GetServerMediasQueryParamsFilter `url:"filter,omitempty"`
	PageSize   *int                              `url:"page_size,omitempty"`
	OrderBy    *string                           `url:"order_by,omitempty"`
	Search     *string                           `url:"search,omitempty"`
	Page       *int                              `url:"page,omitempty"`
	WithLabels *bool                             `url:"with_labels,omitempty"`
}

type GetServerMediasQueryParamsFilter

type GetServerMediasQueryParamsFilter struct {
	ZoneId    *string            `url:"zone_id,omitempty"`
	ProjectId *string            `url:"project_id,omitempty"`
	Title     *string            `url:"title,omitempty"`
	Labels    map[string]*string `url:"labels,omitempty"`
	Id        *string            `url:"id,omitempty"`
}

type GetServerNetworksQueryParams

type GetServerNetworksQueryParams struct {
	Order    *string                             `url:"order,omitempty"`
	Filter   *GetServerNetworksQueryParamsFilter `url:"filter,omitempty"`
	PageSize *int                                `url:"page_size,omitempty"`
	OrderBy  *string                             `url:"order_by,omitempty"`
	Search   *string                             `url:"search,omitempty"`
	Page     *int                                `url:"page,omitempty"`
}

type GetServerNetworksQueryParamsFilter

type GetServerNetworksQueryParamsFilter struct {
	AddressV6Id *string `url:"address_v6_id,omitempty"`
	ServerId    *string `url:"server_id,omitempty"`
	AddressV4Id *string `url:"address_v4_id,omitempty"`
	Id          *string `url:"id,omitempty"`
	NetworkId   *string `url:"network_id,omitempty"`
	Default     *string `url:"default,omitempty"`
	MacAddress  *string `url:"mac_address,omitempty"`
}

type GetServerPriceRangeAssignmentsQueryParams

type GetServerPriceRangeAssignmentsQueryParams struct {
	Order    *string                                          `url:"order,omitempty"`
	Filter   *GetServerPriceRangeAssignmentsQueryParamsFilter `url:"filter,omitempty"`
	PageSize *int                                             `url:"page_size,omitempty"`
	OrderBy  *string                                          `url:"order_by,omitempty"`
	Search   *string                                          `url:"search,omitempty"`
	Page     *int                                             `url:"page,omitempty"`
}

type GetServerPriceRangeAssignmentsQueryParamsFilter

type GetServerPriceRangeAssignmentsQueryParamsFilter struct {
	RangeId   *string `url:"range_id,omitempty"`
	ProjectId *string `url:"project_id,omitempty"`
	Id        *string `url:"id,omitempty"`
	UserId    *string `url:"user_id,omitempty"`
}

type GetServerPriceRangeVolumePricesQueryParams

type GetServerPriceRangeVolumePricesQueryParams struct {
	Filter *GetServerPriceRangeVolumePricesQueryParamsFilter `url:"filter,omitempty"`
}

type GetServerPriceRangeVolumePricesQueryParamsFilter

type GetServerPriceRangeVolumePricesQueryParamsFilter struct {
	ClassId *string `url:"class_id,omitempty"`
}

type GetServerPriceRangesQueryParams

type GetServerPriceRangesQueryParams struct {
	Order    *string                                `url:"order,omitempty"`
	Filter   *GetServerPriceRangesQueryParamsFilter `url:"filter,omitempty"`
	PageSize *int                                   `url:"page_size,omitempty"`
	OrderBy  *string                                `url:"order_by,omitempty"`
	Search   *string                                `url:"search,omitempty"`
	Page     *int                                   `url:"page,omitempty"`
}

type GetServerPriceRangesQueryParamsFilter

type GetServerPriceRangesQueryParamsFilter struct {
	Title *string `url:"title,omitempty"`
	Id    *string `url:"id,omitempty"`
}

type GetServerPricingQueryParams

type GetServerPricingQueryParams struct {
	Filter    *GetServerPricingQueryParamsFilter `url:"filter,omitempty"`
	ProjectId *string                            `url:"project_id,omitempty"`
}

type GetServerPricingQueryParamsFilter

type GetServerPricingQueryParamsFilter struct {
	VariantId *string `url:"variant_id,omitempty"`
}

type GetServerStorageClassesQueryParams

type GetServerStorageClassesQueryParams struct {
	Order    *string                                   `url:"order,omitempty"`
	Filter   *GetServerStorageClassesQueryParamsFilter `url:"filter,omitempty"`
	PageSize *int                                      `url:"page_size,omitempty"`
	OrderBy  *string                                   `url:"order_by,omitempty"`
	Search   *string                                   `url:"search,omitempty"`
	Page     *int                                      `url:"page,omitempty"`
}

type GetServerStorageClassesQueryParamsFilter

type GetServerStorageClassesQueryParamsFilter struct {
	Ssd         *string `url:"ssd,omitempty"`
	Title       *string `url:"title,omitempty"`
	Replication *string `url:"replication,omitempty"`
	Id          *string `url:"id,omitempty"`
}

type GetServerStoragesQueryParams

type GetServerStoragesQueryParams struct {
	Order   *string                             `url:"order,omitempty"`
	Filter  *GetServerStoragesQueryParamsFilter `url:"filter,omitempty"`
	OrderBy *string                             `url:"order_by,omitempty"`
}

type GetServerStoragesQueryParamsFilter

type GetServerStoragesQueryParamsFilter struct {
	ExternalId *string `url:"external_id,omitempty"`
	ZoneId     *string `url:"zone_id,omitempty"`
	Id         *string `url:"id,omitempty"`
}

type GetServerTemplatesQueryParams

type GetServerTemplatesQueryParams struct {
	Order    *string                              `url:"order,omitempty"`
	Filter   *GetServerTemplatesQueryParamsFilter `url:"filter,omitempty"`
	PageSize *int                                 `url:"page_size,omitempty"`
	OrderBy  *string                              `url:"order_by,omitempty"`
	ZoneId   *string                              `url:"zone_id,omitempty"`
	Search   *string                              `url:"search,omitempty"`
	Page     *int                                 `url:"page,omitempty"`
}

type GetServerTemplatesQueryParamsFilter

type GetServerTemplatesQueryParamsFilter struct {
	Title *string `url:"title,omitempty"`
	Id    *string `url:"id,omitempty"`
}

type GetServerVariantPricesQueryParams

type GetServerVariantPricesQueryParams struct {
	Order    *string `url:"order,omitempty"`
	PageSize *int    `url:"page_size,omitempty"`
	OrderBy  *string `url:"order_by,omitempty"`
	Search   *string `url:"search,omitempty"`
	Page     *int    `url:"page,omitempty"`
}

type GetServerVariantsQueryParams

type GetServerVariantsQueryParams struct {
	Order     *string                             `url:"order,omitempty"`
	Filter    *GetServerVariantsQueryParamsFilter `url:"filter,omitempty"`
	PageSize  *int                                `url:"page_size,omitempty"`
	OrderBy   *string                             `url:"order_by,omitempty"`
	ZoneId    *string                             `url:"zone_id,omitempty"`
	Search    *string                             `url:"search,omitempty"`
	ProjectId *string                             `url:"project_id,omitempty"`
	Page      *int                                `url:"page,omitempty"`
}

type GetServerVariantsQueryParamsFilter

type GetServerVariantsQueryParamsFilter struct {
	Cores          *string `url:"cores,omitempty"`
	StorageClassId *string `url:"storage_class_id,omitempty"`
	Memory         *string `url:"memory,omitempty"`
	Title          *string `url:"title,omitempty"`
	Id             *string `url:"id,omitempty"`
	Disk           *string `url:"disk,omitempty"`
}

type GetServerVolumePricingQueryParams

type GetServerVolumePricingQueryParams struct {
	Filter    *GetServerVolumePricingQueryParamsFilter `url:"filter,omitempty"`
	ProjectId *string                                  `url:"project_id,omitempty"`
}

type GetServerVolumePricingQueryParamsFilter

type GetServerVolumePricingQueryParamsFilter struct {
	ClassId *string `url:"class_id,omitempty"`
}

type GetServerVolumesQueryParams

type GetServerVolumesQueryParams struct {
	Order      *string                            `url:"order,omitempty"`
	Filter     *GetServerVolumesQueryParamsFilter `url:"filter,omitempty"`
	PageSize   *int                               `url:"page_size,omitempty"`
	OrderBy    *string                            `url:"order_by,omitempty"`
	Search     *string                            `url:"search,omitempty"`
	Page       *int                               `url:"page,omitempty"`
	WithLabels *bool                              `url:"with_labels,omitempty"`
}

type GetServerVolumesQueryParamsFilter

type GetServerVolumesQueryParamsFilter struct {
	ClassId   *string            `url:"class_id,omitempty"`
	ProjectId *string            `url:"project_id,omitempty"`
	Title     *string            `url:"title,omitempty"`
	Labels    map[string]*string `url:"labels,omitempty"`
	ServerId  *string            `url:"server_id,omitempty"`
	Id        *string            `url:"id,omitempty"`
}

type GetServersQueryParams

type GetServersQueryParams struct {
	Order      *string                      `url:"order,omitempty"`
	Filter     *GetServersQueryParamsFilter `url:"filter,omitempty"`
	PageSize   *int                         `url:"page_size,omitempty"`
	OrderBy    *string                      `url:"order_by,omitempty"`
	Search     *string                      `url:"search,omitempty"`
	Page       *int                         `url:"page,omitempty"`
	WithLabels *bool                        `url:"with_labels,omitempty"`
}

type GetServersQueryParamsFilter

type GetServersQueryParamsFilter struct {
	TemplateId *string            `url:"template_id,omitempty"`
	State      *string            `url:"state,omitempty"`
	ProjectId  *string            `url:"project_id,omitempty"`
	HostId     *string            `url:"host_id,omitempty"`
	Labels     map[string]*string `url:"labels,omitempty"`
	Id         *string            `url:"id,omitempty"`
	NetworkId  *string            `url:"network_id,omitempty"`
	VariantId  *string            `url:"variant_id,omitempty"`
	Name       *string            `url:"name,omitempty"`
}

type GetSubnetsQueryParams

type GetSubnetsQueryParams struct {
	Order      *string                      `url:"order,omitempty"`
	Filter     *GetSubnetsQueryParamsFilter `url:"filter,omitempty"`
	PageSize   *int                         `url:"page_size,omitempty"`
	OrderBy    *string                      `url:"order_by,omitempty"`
	Search     *string                      `url:"search,omitempty"`
	Page       *int                         `url:"page,omitempty"`
	WithLabels *bool                        `url:"with_labels,omitempty"`
}

type GetSubnetsQueryParamsFilter

type GetSubnetsQueryParamsFilter struct {
	ProjectId *string            `url:"project_id,omitempty"`
	Labels    map[string]*string `url:"labels,omitempty"`
	Id        *string            `url:"id,omitempty"`
	NetworkId *string            `url:"network_id,omitempty"`
}

type InvalidRequestResponse

type InvalidRequestResponse struct {
	Metadata ResponseMetadata `json:"metadata"`
	Data     interface{}      `json:"data"`
	Success  bool             `json:"success"`
	Messages ResponseMessages `json:"messages"`
}

type Label

type Label struct {
	ObjectType ObjectType `json:"object_type"`
	Name       string     `json:"name"`
	Value      string     `json:"value"`
	ObjectId   string     `json:"object_id"`
}

type LabelListResponse

type LabelListResponse struct {
	Metadata   ResponseMetadata    `json:"metadata"`
	Pagination *ResponsePagination `json:"pagination"`
	Data       []Label             `json:"data"`
	Success    bool                `json:"success"`
	Messages   ResponseMessages    `json:"messages"`
}

type Network

type Network struct {
	ZoneId    string             `json:"zone_id"`
	ProjectId string             `json:"project_id"`
	CreatedAt string             `json:"created_at"`
	Id        string             `json:"id"`
	Tag       *int               `json:"tag"`
	Title     string             `json:"title"`
	Type      *NetworkType       `json:"type"`
	Labels    map[string]*string `json:"labels"`
}

type NetworkCreateRequest

type NetworkCreateRequest struct {
	ZoneId    string       `json:"zone_id"`
	Subnet    *string      `json:"subnet"`
	ProjectId *string      `json:"project_id"`
	Tag       *int         `json:"tag"`
	Title     string       `json:"title"`
	Type      *NetworkType `json:"type"`
}

type NetworkListResponse

type NetworkListResponse struct {
	Metadata   ResponseMetadata    `json:"metadata"`
	Pagination *ResponsePagination `json:"pagination"`
	Data       []Network           `json:"data"`
	Success    bool                `json:"success"`
	Messages   ResponseMessages    `json:"messages"`
}

type NetworkSingleResponse

type NetworkSingleResponse struct {
	Metadata ResponseMetadata `json:"metadata"`
	Data     Network          `json:"data"`
	Success  bool             `json:"success"`
	Messages ResponseMessages `json:"messages"`
}

type NetworkType

type NetworkType string

type NetworkUpdateRequest

type NetworkUpdateRequest struct {
	Title  *string     `json:"title"`
	Labels interface{} `json:"labels"`
}

type ObjectType

type ObjectType string

type ResponseMessage

type ResponseMessage struct {
	Message string `json:"message"`
	Key     string `json:"key"`
}

type ResponseMessages

type ResponseMessages struct {
	Warnings []ResponseMessage `json:"warnings"`
	Errors   []ResponseMessage `json:"errors"`
	Infos    []ResponseMessage `json:"infos"`
}

type ResponseMetadata

type ResponseMetadata struct {
	TransactionId  string `json:"transaction_id"`
	BuildCommit    string `json:"build_commit"`
	BuildTimestamp string `json:"build_timestamp"`
}

type ResponsePagination

type ResponsePagination struct {
	Total    int `json:"total"`
	Page     int `json:"page"`
	PageSize int `json:"page_size"`
}

type S3AccessGrant

type S3AccessGrant struct {
	BucketId *string            `json:"bucket_id"`
	Path     *string            `json:"path"`
	Role     string             `json:"role"`
	Id       string             `json:"id"`
	Labels   map[string]*string `json:"labels"`
}

type S3AccessGrantCreateRequest

type S3AccessGrantCreateRequest struct {
	BucketId *string            `json:"bucket_id"`
	Path     *string            `json:"path"`
	Role     string             `json:"role"`
	Labels   map[string]*string `json:"labels"`
}

type S3AccessGrantListResponse

type S3AccessGrantListResponse struct {
	Metadata   ResponseMetadata    `json:"metadata"`
	Pagination *ResponsePagination `json:"pagination"`
	Data       []S3AccessGrant     `json:"data"`
	Success    bool                `json:"success"`
	Messages   ResponseMessages    `json:"messages"`
}

type S3AccessGrantSingleResponse

type S3AccessGrantSingleResponse struct {
	Metadata ResponseMetadata `json:"metadata"`
	Data     S3AccessGrant    `json:"data"`
	Success  bool             `json:"success"`
	Messages ResponseMessages `json:"messages"`
}

type S3AccessKey

type S3AccessKey struct {
	ProjectId string             `json:"project_id"`
	Id        string             `json:"id"`
	Title     string             `json:"title"`
	Labels    map[string]*string `json:"labels"`
}

type S3AccessKeyCreateRequest

type S3AccessKeyCreateRequest struct {
	SecretKey string             `json:"secret_key"`
	ProjectId string             `json:"project_id"`
	Title     string             `json:"title"`
	Labels    map[string]*string `json:"labels"`
}

type S3AccessKeyListResponse

type S3AccessKeyListResponse struct {
	Metadata   ResponseMetadata    `json:"metadata"`
	Pagination *ResponsePagination `json:"pagination"`
	Data       []S3AccessKey       `json:"data"`
	Success    bool                `json:"success"`
	Messages   ResponseMessages    `json:"messages"`
}

type S3AccessKeySingleResponse

type S3AccessKeySingleResponse struct {
	Metadata ResponseMetadata `json:"metadata"`
	Data     S3AccessKey      `json:"data"`
	Success  bool             `json:"success"`
	Messages ResponseMessages `json:"messages"`
}

type S3Bucket

type S3Bucket struct {
	ProjectId string             `json:"project_id"`
	Id        string             `json:"id"`
	Title     string             `json:"title"`
	Labels    map[string]*string `json:"labels"`
}

type S3BucketCreateRequest

type S3BucketCreateRequest struct {
	ProjectId string             `json:"project_id"`
	Title     string             `json:"title"`
	Labels    map[string]*string `json:"labels"`
}

type S3BucketListResponse

type S3BucketListResponse struct {
	Metadata   ResponseMetadata    `json:"metadata"`
	Pagination *ResponsePagination `json:"pagination"`
	Data       []S3Bucket          `json:"data"`
	Success    bool                `json:"success"`
	Messages   ResponseMessages    `json:"messages"`
}

type S3BucketSingleResponse

type S3BucketSingleResponse struct {
	Metadata ResponseMetadata `json:"metadata"`
	Data     S3Bucket         `json:"data"`
	Success  bool             `json:"success"`
	Messages ResponseMessages `json:"messages"`
}

type SSHKey

type SSHKey struct {
	PublicKey string             `json:"public_key"`
	ProjectId string             `json:"project_id"`
	CreatedAt string             `json:"created_at"`
	Id        string             `json:"id"`
	Title     string             `json:"title"`
	Type      string             `json:"type"`
	Labels    map[string]*string `json:"labels"`
}

type SSHKeyCreateRequest

type SSHKeyCreateRequest struct {
	PublicKey string             `json:"public_key"`
	ProjectId string             `json:"project_id"`
	Title     string             `json:"title"`
	Labels    map[string]*string `json:"labels"`
}

type SSHKeyListResponse

type SSHKeyListResponse struct {
	Metadata   ResponseMetadata    `json:"metadata"`
	Pagination *ResponsePagination `json:"pagination"`
	Data       []SSHKey            `json:"data"`
	Success    bool                `json:"success"`
	Messages   ResponseMessages    `json:"messages"`
}

type SSHKeySingleResponse

type SSHKeySingleResponse struct {
	Metadata ResponseMetadata `json:"metadata"`
	Data     SSHKey           `json:"data"`
	Success  bool             `json:"success"`
	Messages ResponseMessages `json:"messages"`
}

type SSHKeyUpdateRequest

type SSHKeyUpdateRequest struct {
	Title *string `json:"title"`
}

type ScheduledServerAction

type ScheduledServerAction struct {
	BackupId        *string                       `json:"backup_id"`
	BackupRetention *int                          `json:"backup_retention"`
	CreatedAt       string                        `json:"created_at"`
	Interval        ScheduledServerActionInterval `json:"interval"`
	Id              string                        `json:"id"`
	ExecuteAt       string                        `json:"execute_at"`
	ServerId        string                        `json:"server_id"`
	Type            ServerActionType              `json:"type"`
}

type ScheduledServerActionCreateRequest

type ScheduledServerActionCreateRequest struct {
	BackupId        *string                        `json:"backup_id"`
	BackupRetention *int                           `json:"backup_retention"`
	Interval        *ScheduledServerActionInterval `json:"interval"`
	Force           *bool                          `json:"force"`
	ExecuteAt       string                         `json:"execute_at"`
	Type            ServerActionType               `json:"type"`
}

type ScheduledServerActionInterval

type ScheduledServerActionInterval string

type ScheduledServerActionListResponse

type ScheduledServerActionListResponse struct {
	Metadata   ResponseMetadata        `json:"metadata"`
	Pagination *ResponsePagination     `json:"pagination"`
	Data       []ScheduledServerAction `json:"data"`
	Success    bool                    `json:"success"`
	Messages   ResponseMessages        `json:"messages"`
}

type ScheduledServerActionSingleResponse

type ScheduledServerActionSingleResponse struct {
	Metadata ResponseMetadata      `json:"metadata"`
	Data     ScheduledServerAction `json:"data"`
	Success  bool                  `json:"success"`
	Messages ResponseMessages      `json:"messages"`
}

type ScheduledServerActionUpdateRequest

type ScheduledServerActionUpdateRequest struct {
	BackupId        *string                        `json:"backup_id"`
	BackupRetention *int                           `json:"backup_retention"`
	Interval        *ScheduledServerActionInterval `json:"interval"`
	Force           *bool                          `json:"force"`
	Type            *ServerActionType              `json:"type"`
}

type SearchQueryParams

type SearchQueryParams struct {
	Search     *string                  `url:"search,omitempty"`
	ProjectId  *string                  `url:"project_id,omitempty"`
	Resources  *string                  `url:"resources,omitempty"`
	Limit      *int                     `url:"limit,omitempty"`
	WithLabels *bool                    `url:"with_labels,omitempty"`
	Labels     *SearchQueryParamsLabels `url:"labels,omitempty"`
}

type SearchQueryParamsLabels

type SearchQueryParamsLabels struct {
	Name map[string]*string `url:"name,omitempty"`
}

type SearchResponse

type SearchResponse struct {
	Metadata ResponseMetadata `json:"metadata"`
	Data     SearchResults    `json:"data"`
	Success  bool             `json:"success"`
	Messages ResponseMessages `json:"messages"`
}

type SearchResults

type SearchResults struct {
	ServerVolumes   *[]ServerVolume   `json:"server_volumes"`
	SshKeys         *[]SSHKey         `json:"ssh_keys"`
	Servers         *[]Server         `json:"servers"`
	ServerMedias    *[]ServerMedia    `json:"server_medias"`
	S3Buckets       *[]S3Bucket       `json:"s3_buckets"`
	S3AccessKeys    *[]S3AccessKey    `json:"s3_access_keys"`
	ServerFirewalls *[]ServerFirewall `json:"server_firewalls"`
}

type Server

type Server struct {
	ZoneId     string             `json:"zone_id"`
	Addresses  *[]Address         `json:"addresses"`
	VariantId  string             `json:"variant_id"`
	ProjectId  string             `json:"project_id"`
	Name       string             `json:"name"`
	MediaId    *string            `json:"media_id"`
	CreatedAt  string             `json:"created_at"`
	TemplateId string             `json:"template_id"`
	Id         string             `json:"id"`
	State      ServerState        `json:"state"`
	Labels     map[string]*string `json:"labels"`
}

type ServerAction

type ServerAction struct {
	Progress    float32           `json:"progress"`
	StartedAt   string            `json:"started_at"`
	Id          string            `json:"id"`
	State       ServerActionState `json:"state"`
	Type        ServerActionType  `json:"type"`
	Cancellable bool              `json:"cancellable"`
	EndedAt     *string           `json:"ended_at"`
}

type ServerActionListResponse

type ServerActionListResponse struct {
	Metadata   ResponseMetadata    `json:"metadata"`
	Pagination *ResponsePagination `json:"pagination"`
	Data       []ServerAction      `json:"data"`
	Success    bool                `json:"success"`
	Messages   ResponseMessages    `json:"messages"`
}

type ServerActionSingleResponse

type ServerActionSingleResponse struct {
	Metadata ResponseMetadata `json:"metadata"`
	Data     ServerAction     `json:"data"`
	Success  bool             `json:"success"`
	Messages ResponseMessages `json:"messages"`
}

type ServerActionState

type ServerActionState string

type ServerActionType

type ServerActionType string

type ServerBackup

type ServerBackup struct {
	Size      float32           `json:"size"`
	ProjectId string            `json:"project_id"`
	ActionId  string            `json:"action_id"`
	Scheduled bool              `json:"scheduled"`
	Keep      *bool             `json:"keep"`
	CreatedAt string            `json:"created_at"`
	Id        string            `json:"id"`
	State     ServerBackupState `json:"state"`
	Title     string            `json:"title"`
}

type ServerBackupCreateRequest

type ServerBackupCreateRequest struct {
	ServerId string  `json:"server_id"`
	Title    *string `json:"title"`
}

type ServerBackupListResponse

type ServerBackupListResponse struct {
	Metadata   ResponseMetadata    `json:"metadata"`
	Pagination *ResponsePagination `json:"pagination"`
	Data       []ServerBackup      `json:"data"`
	Success    bool                `json:"success"`
	Messages   ResponseMessages    `json:"messages"`
}

type ServerBackupSingleResponse

type ServerBackupSingleResponse struct {
	Metadata ResponseMetadata `json:"metadata"`
	Data     ServerBackup     `json:"data"`
	Success  bool             `json:"success"`
	Messages ResponseMessages `json:"messages"`
}

type ServerBackupState

type ServerBackupState string

type ServerBackupUpdateRequest

type ServerBackupUpdateRequest struct {
	Keep  *bool   `json:"keep"`
	Title *string `json:"title"`
}

type ServerCreateRequest

type ServerCreateRequest struct {
	ZoneId          string                        `json:"zone_id"`
	BackupId        *string                       `json:"backup_id"`
	NoPublicNetwork *bool                         `json:"no_public_network"`
	VariantId       string                        `json:"variant_id"`
	SshKeys         []string                      `json:"ssh_keys"`
	ProjectId       string                        `json:"project_id"`
	Name            string                        `json:"name"`
	TemplateId      *string                       `json:"template_id"`
	Networks        *[]ServerCreateRequestNetwork `json:"networks"`
	Labels          map[string]*string            `json:"labels"`
}

type ServerCreateRequestNetwork

type ServerCreateRequestNetwork struct {
	NetworkId string `json:"network_id"`
}

type ServerFirewall

type ServerFirewall struct {
	ProjectId string `json:"project_id"`
	CreatedAt string `json:"created_at"`
	Id        string `json:"id"`
	Title     string `json:"title"`
}

type ServerFirewallCreateRequest

type ServerFirewallCreateRequest struct {
	ProjectId string `json:"project_id"`
	Title     string `json:"title"`
}

type ServerFirewallListResponse

type ServerFirewallListResponse struct {
	Metadata   ResponseMetadata    `json:"metadata"`
	Pagination *ResponsePagination `json:"pagination"`
	Data       []ServerFirewall    `json:"data"`
	Success    bool                `json:"success"`
	Messages   ResponseMessages    `json:"messages"`
}

type ServerFirewallMember

type ServerFirewallMember struct {
	LabelValue *string                  `json:"label_value"`
	Applied    bool                     `json:"applied"`
	Children   *[]ServerFirewallMember  `json:"children"`
	CreatedAt  string                   `json:"created_at"`
	Id         string                   `json:"id"`
	Type       ServerFirewallMemberType `json:"type"`
	ServerId   *string                  `json:"server_id"`
	LabelName  *string                  `json:"label_name"`
}

type ServerFirewallMemberCreateRequest

type ServerFirewallMemberCreateRequest struct {
	LabelValue *string                  `json:"label_value"`
	Type       ServerFirewallMemberType `json:"type"`
	ServerId   *string                  `json:"server_id"`
	LabelName  *string                  `json:"label_name"`
}

type ServerFirewallMemberListResponse

type ServerFirewallMemberListResponse struct {
	Metadata   ResponseMetadata       `json:"metadata"`
	Pagination *ResponsePagination    `json:"pagination"`
	Data       []ServerFirewallMember `json:"data"`
	Success    bool                   `json:"success"`
	Messages   ResponseMessages       `json:"messages"`
}

type ServerFirewallMemberSingleResponse

type ServerFirewallMemberSingleResponse struct {
	Metadata ResponseMetadata     `json:"metadata"`
	Data     ServerFirewallMember `json:"data"`
	Success  bool                 `json:"success"`
	Messages ResponseMessages     `json:"messages"`
}

type ServerFirewallMemberType

type ServerFirewallMemberType string

type ServerFirewallRule

type ServerFirewallRule struct {
	Addresses   *[]string                   `json:"addresses"`
	Protocol    *ServerFirewallRuleProtocol `json:"protocol"`
	Applied     bool                        `json:"applied"`
	Description *string                     `json:"description"`
	CreatedAt   string                      `json:"created_at"`
	Id          string                      `json:"id"`
	Type        ServerFirewallRuleType      `json:"type"`
	Ports       *[]string                   `json:"ports"`
}

type ServerFirewallRuleCreateRequest

type ServerFirewallRuleCreateRequest struct {
	Addresses   *[]string                   `json:"addresses"`
	Protocol    *ServerFirewallRuleProtocol `json:"protocol"`
	Description *string                     `json:"description"`
	Disabled    *bool                       `json:"disabled"`
	Type        ServerFirewallRuleType      `json:"type"`
	Ports       *[]string                   `json:"ports"`
}

type ServerFirewallRuleListResponse

type ServerFirewallRuleListResponse struct {
	Metadata   ResponseMetadata     `json:"metadata"`
	Pagination *ResponsePagination  `json:"pagination"`
	Data       []ServerFirewallRule `json:"data"`
	Success    bool                 `json:"success"`
	Messages   ResponseMessages     `json:"messages"`
}

type ServerFirewallRuleProtocol

type ServerFirewallRuleProtocol string

type ServerFirewallRuleSingleResponse

type ServerFirewallRuleSingleResponse struct {
	Metadata ResponseMetadata   `json:"metadata"`
	Data     ServerFirewallRule `json:"data"`
	Success  bool               `json:"success"`
	Messages ResponseMessages   `json:"messages"`
}

type ServerFirewallRuleType

type ServerFirewallRuleType string

type ServerFirewallRuleUpdateRequest

type ServerFirewallRuleUpdateRequest struct {
	Description *string `json:"description"`
	Disabled    *bool   `json:"disabled"`
}

type ServerFirewallSingleResponse

type ServerFirewallSingleResponse struct {
	Metadata ResponseMetadata `json:"metadata"`
	Data     ServerFirewall   `json:"data"`
	Success  bool             `json:"success"`
	Messages ResponseMessages `json:"messages"`
}

type ServerGraphEntry

type ServerGraphEntry struct {
	DiskRead       int     `json:"disk_read"`
	Memory         float32 `json:"memory"`
	NetworkIngress float32 `json:"network_ingress"`
	NetworkEgress  float32 `json:"network_egress"`
	MemoryUsage    float32 `json:"memory_usage"`
	Time           int     `json:"time"`
	CpuUsage       float32 `json:"cpu_usage"`
	DiskWrite      int     `json:"disk_write"`
}

type ServerGraphResponse

type ServerGraphResponse struct {
	Metadata ResponseMetadata   `json:"metadata"`
	Data     []ServerGraphEntry `json:"data"`
	Success  bool               `json:"success"`
	Messages ResponseMessages   `json:"messages"`
}

type ServerHost

type ServerHost struct {
	ZoneId    string `json:"zone_id"`
	CreatedAt string `json:"created_at"`
	Active    bool   `json:"active"`
	Id        string `json:"id"`
	Title     string `json:"title"`
}

type ServerHostCreateRequest

type ServerHostCreateRequest struct {
	ZoneId     string `json:"zone_id"`
	Active     *bool  `json:"active"`
	ExternalId string `json:"external_id"`
	Title      string `json:"title"`
}

type ServerHostListResponse

type ServerHostListResponse struct {
	Metadata   ResponseMetadata    `json:"metadata"`
	Pagination *ResponsePagination `json:"pagination"`
	Data       []ServerHost        `json:"data"`
	Success    bool                `json:"success"`
	Messages   ResponseMessages    `json:"messages"`
}

type ServerHostSingleResponse

type ServerHostSingleResponse struct {
	Metadata ResponseMetadata `json:"metadata"`
	Data     ServerHost       `json:"data"`
	Success  bool             `json:"success"`
	Messages ResponseMessages `json:"messages"`
}

type ServerHostUpdateRequest

type ServerHostUpdateRequest struct {
	Active *bool   `json:"active"`
	Title  *string `json:"title"`
}

type ServerListResponse

type ServerListResponse struct {
	Metadata   ResponseMetadata    `json:"metadata"`
	Pagination *ResponsePagination `json:"pagination"`
	Data       []Server            `json:"data"`
	Success    bool                `json:"success"`
	Messages   ResponseMessages    `json:"messages"`
}

type ServerMedia

type ServerMedia struct {
	ZoneId     *string            `json:"zone_id"`
	ProjectId  string             `json:"project_id"`
	CreatedAt  string             `json:"created_at"`
	ExternalId *string            `json:"external_id"`
	Id         string             `json:"id"`
	Title      string             `json:"title"`
	Labels     map[string]*string `json:"labels"`
}

type ServerMediaCreateRequest

type ServerMediaCreateRequest struct {
	ZoneId     string `json:"zone_id"`
	ExternalId string `json:"external_id"`
	Title      string `json:"title"`
}

type ServerMediaListResponse

type ServerMediaListResponse struct {
	Metadata   ResponseMetadata    `json:"metadata"`
	Pagination *ResponsePagination `json:"pagination"`
	Data       []ServerMedia       `json:"data"`
	Success    bool                `json:"success"`
	Messages   ResponseMessages    `json:"messages"`
}

type ServerMediaMountRequest

type ServerMediaMountRequest struct {
	MediaId string `json:"media_id"`
}

type ServerMediaSingleResponse

type ServerMediaSingleResponse struct {
	Metadata ResponseMetadata `json:"metadata"`
	Data     ServerMedia      `json:"data"`
	Success  bool             `json:"success"`
	Messages ResponseMessages `json:"messages"`
}

type ServerNetwork

type ServerNetwork struct {
	Default    bool               `json:"default"`
	NetworkId  string             `json:"network_id"`
	Addresses  *[]Address         `json:"addresses"`
	CreatedAt  string             `json:"created_at"`
	ExternalId *string            `json:"external_id"`
	Id         string             `json:"id"`
	HostId     *string            `json:"host_id"`
	Labels     map[string]*string `json:"labels"`
}

type ServerNetworkCreateRequest

type ServerNetworkCreateRequest struct {
	NetworkId string `json:"network_id"`
}

type ServerNetworkListResponse

type ServerNetworkListResponse struct {
	Metadata   ResponseMetadata    `json:"metadata"`
	Pagination *ResponsePagination `json:"pagination"`
	Data       []ServerNetwork     `json:"data"`
	Success    bool                `json:"success"`
	Messages   ResponseMessages    `json:"messages"`
}

type ServerNetworkSingleResponse

type ServerNetworkSingleResponse struct {
	Metadata   ResponseMetadata   `json:"metadata"`
	Pagination ResponsePagination `json:"pagination"`
	Data       ServerNetwork      `json:"data"`
	Success    bool               `json:"success"`
	Messages   ResponseMessages   `json:"messages"`
}

type ServerPriceRange

type ServerPriceRange struct {
	Id    string `json:"id"`
	Title string `json:"title"`
}

type ServerPriceRangeAssignment

type ServerPriceRangeAssignment struct {
	UserId    string  `json:"user_id"`
	ProjectId *string `json:"project_id"`
	Id        string  `json:"id"`
	RangeId   string  `json:"range_id"`
}

type ServerPriceRangeAssignmentCreateRequest

type ServerPriceRangeAssignmentCreateRequest struct {
	UserId    *string `json:"user_id"`
	ProjectId *string `json:"project_id"`
	RangeId   string  `json:"range_id"`
}

type ServerPriceRangeAssignmentListResponse

type ServerPriceRangeAssignmentListResponse struct {
	Metadata   ResponseMetadata             `json:"metadata"`
	Pagination *ResponsePagination          `json:"pagination"`
	Data       []ServerPriceRangeAssignment `json:"data"`
	Success    bool                         `json:"success"`
	Messages   ResponseMessages             `json:"messages"`
}

type ServerPriceRangeAssignmentSingleResponse

type ServerPriceRangeAssignmentSingleResponse struct {
	Metadata ResponseMetadata           `json:"metadata"`
	Data     ServerPriceRangeAssignment `json:"data"`
	Success  bool                       `json:"success"`
	Messages ResponseMessages           `json:"messages"`
}

type ServerPriceRangeAssignmentUpdateRequest

type ServerPriceRangeAssignmentUpdateRequest struct {
	RangeId string `json:"range_id"`
}

type ServerPriceRangeCreateRequest

type ServerPriceRangeCreateRequest struct {
	Title string `json:"title"`
}

type ServerPriceRangeListResponse

type ServerPriceRangeListResponse struct {
	Metadata   ResponseMetadata    `json:"metadata"`
	Pagination *ResponsePagination `json:"pagination"`
	Data       []ServerPriceRange  `json:"data"`
	Success    bool                `json:"success"`
	Messages   ResponseMessages    `json:"messages"`
}

type ServerPriceRangeSingleResponse

type ServerPriceRangeSingleResponse struct {
	Metadata ResponseMetadata `json:"metadata"`
	Data     ServerPriceRange `json:"data"`
	Success  bool             `json:"success"`
	Messages ResponseMessages `json:"messages"`
}

type ServerResizeRequest

type ServerResizeRequest struct {
	VariantId  string `json:"variant_id"`
	ResizeDisk *bool  `json:"resize_disk"`
}

type ServerRestoreRequest

type ServerRestoreRequest struct {
	BackupId string `json:"backup_id"`
}

type ServerSingleResponse

type ServerSingleResponse struct {
	Metadata ResponseMetadata `json:"metadata"`
	Data     Server           `json:"data"`
	Success  bool             `json:"success"`
	Messages ResponseMessages `json:"messages"`
}

type ServerState

type ServerState string

type ServerStatus

type ServerStatus struct {
	Memory      *int     `json:"memory"`
	Online      bool     `json:"online"`
	MemoryUsage *float32 `json:"memory_usage"`
	CpuUsage    *float32 `json:"cpu_usage"`
	Uptime      *int     `json:"uptime"`
}

type ServerStatusResponse

type ServerStatusResponse struct {
	Metadata ResponseMetadata `json:"metadata"`
	Data     ServerStatus     `json:"data"`
	Success  bool             `json:"success"`
	Messages ResponseMessages `json:"messages"`
}

type ServerStorage

type ServerStorage struct {
	ZoneId     string `json:"zone_id"`
	ExternalId string `json:"external_id"`
	Id         string `json:"id"`
}

type ServerStorageClass

type ServerStorageClass struct {
	Replication int    `json:"replication"`
	Id          string `json:"id"`
	Title       string `json:"title"`
}

type ServerStorageClassCreateRequest

type ServerStorageClassCreateRequest struct {
	Replication int      `json:"replication"`
	StorageIds  []string `json:"storage_ids"`
	Title       string   `json:"title"`
}

type ServerStorageClassListResponse

type ServerStorageClassListResponse struct {
	Metadata   ResponseMetadata     `json:"metadata"`
	Pagination *ResponsePagination  `json:"pagination"`
	Data       []ServerStorageClass `json:"data"`
	Success    bool                 `json:"success"`
	Messages   ResponseMessages     `json:"messages"`
}

type ServerStorageClassSingleResponse

type ServerStorageClassSingleResponse struct {
	Metadata ResponseMetadata   `json:"metadata"`
	Data     ServerStorageClass `json:"data"`
	Success  bool               `json:"success"`
	Messages ResponseMessages   `json:"messages"`
}

type ServerStorageCreateRequest

type ServerStorageCreateRequest struct {
	ZoneId     string `json:"zone_id"`
	ExternalId string `json:"external_id"`
}

type ServerStorageListResponse

type ServerStorageListResponse struct {
	Metadata   ResponseMetadata   `json:"metadata"`
	Pagination ResponsePagination `json:"pagination"`
	Data       []ServerStorage    `json:"data"`
	Success    bool               `json:"success"`
	Messages   ResponseMessages   `json:"messages"`
}

type ServerStorageSingleResponse

type ServerStorageSingleResponse struct {
	Metadata ResponseMetadata `json:"metadata"`
	Data     ServerStorage    `json:"data"`
	Success  bool             `json:"success"`
	Messages ResponseMessages `json:"messages"`
}

type ServerTemplate

type ServerTemplate struct {
	ProjectId *string `json:"project_id"`
	Id        string  `json:"id"`
	Title     string  `json:"title"`
}

type ServerTemplateCreateRequest

type ServerTemplateCreateRequest struct {
	ProjectId *string     `json:"project_id"`
	RootSlot  string      `json:"root_slot"`
	Zones     interface{} `json:"zones"`
	Title     string      `json:"title"`
}

type ServerTemplateListResponse

type ServerTemplateListResponse struct {
	Metadata   ResponseMetadata    `json:"metadata"`
	Pagination *ResponsePagination `json:"pagination"`
	Data       []ServerTemplate    `json:"data"`
	Success    bool                `json:"success"`
	Messages   ResponseMessages    `json:"messages"`
}

type ServerTemplateSingleResponse

type ServerTemplateSingleResponse struct {
	Metadata ResponseMetadata `json:"metadata"`
	Data     ServerTemplate   `json:"data"`
	Success  bool             `json:"success"`
	Messages ResponseMessages `json:"messages"`
}

type ServerUpdateRequest

type ServerUpdateRequest struct {
	Name   *string            `json:"name"`
	Labels map[string]*string `json:"labels"`
}

type ServerVNC

type ServerVNC struct {
	Password string `json:"password"`
	Port     int    `json:"port"`
	Host     string `json:"host"`
}

type ServerVNCResponse

type ServerVNCResponse struct {
	Metadata ResponseMetadata `json:"metadata"`
	Data     ServerVNC        `json:"data"`
	Success  bool             `json:"success"`
	Messages ResponseMessages `json:"messages"`
}

type ServerVariant

type ServerVariant struct {
	Disk           int    `json:"disk"`
	Cores          int    `json:"cores"`
	Memory         int    `json:"memory"`
	StorageClassId string `json:"storage_class_id"`
	Id             string `json:"id"`
	Title          string `json:"title"`
}

type ServerVariantCreateRequest

type ServerVariantCreateRequest struct {
	ZoneIds        []string `json:"zone_ids"`
	Disk           int      `json:"disk"`
	Cores          int      `json:"cores"`
	Memory         int      `json:"memory"`
	Legacy         *bool    `json:"legacy"`
	StorageClassId string   `json:"storage_class_id"`
	Title          string   `json:"title"`
}

type ServerVariantListResponse

type ServerVariantListResponse struct {
	Metadata   ResponseMetadata    `json:"metadata"`
	Pagination *ResponsePagination `json:"pagination"`
	Data       []ServerVariant     `json:"data"`
	Success    bool                `json:"success"`
	Messages   ResponseMessages    `json:"messages"`
}

type ServerVariantPrice

type ServerVariantPrice struct {
	VariantId    string  `json:"variant_id"`
	Price        float32 `json:"price"`
	OfflinePrice float32 `json:"offline_price"`
}

type ServerVariantPriceCreateRequest

type ServerVariantPriceCreateRequest struct {
	VariantId    string  `json:"variant_id"`
	Price        float32 `json:"price"`
	OfflinePrice float32 `json:"offline_price"`
}

type ServerVariantPriceListResponse

type ServerVariantPriceListResponse struct {
	Metadata   ResponseMetadata     `json:"metadata"`
	Pagination *ResponsePagination  `json:"pagination"`
	Data       []ServerVariantPrice `json:"data"`
	Success    bool                 `json:"success"`
	Messages   ResponseMessages     `json:"messages"`
}

type ServerVariantPriceSingleResponse

type ServerVariantPriceSingleResponse struct {
	Metadata ResponseMetadata   `json:"metadata"`
	Data     ServerVariantPrice `json:"data"`
	Success  bool               `json:"success"`
	Messages ResponseMessages   `json:"messages"`
}

type ServerVariantPriceUpdateRequest

type ServerVariantPriceUpdateRequest struct {
	Price        *float32 `json:"price"`
	OfflinePrice *float32 `json:"offline_price"`
}

type ServerVariantSingleResponse

type ServerVariantSingleResponse struct {
	Metadata ResponseMetadata `json:"metadata"`
	Data     ServerVariant    `json:"data"`
	Success  bool             `json:"success"`
	Messages ResponseMessages `json:"messages"`
}

type ServerVolume

type ServerVolume struct {
	ZoneId    string             `json:"zone_id"`
	Size      int                `json:"size"`
	ProjectId string             `json:"project_id"`
	StorageId *string            `json:"storage_id"`
	ClassId   string             `json:"class_id"`
	Root      *bool              `json:"root"`
	CreatedAt string             `json:"created_at"`
	Id        string             `json:"id"`
	Title     string             `json:"title"`
	ServerId  *string            `json:"server_id"`
	Labels    map[string]*string `json:"labels"`
}

type ServerVolumeAttachRequest

type ServerVolumeAttachRequest struct {
	ServerId string `json:"server_id"`
}

type ServerVolumeCreateRequest

type ServerVolumeCreateRequest struct {
	ZoneId    string             `json:"zone_id"`
	Size      int                `json:"size"`
	ProjectId string             `json:"project_id"`
	ClassId   string             `json:"class_id"`
	Title     string             `json:"title"`
	Labels    map[string]*string `json:"labels"`
}

type ServerVolumeListResponse

type ServerVolumeListResponse struct {
	Metadata   ResponseMetadata    `json:"metadata"`
	Pagination *ResponsePagination `json:"pagination"`
	Data       []ServerVolume      `json:"data"`
	Success    bool                `json:"success"`
	Messages   ResponseMessages    `json:"messages"`
}

type ServerVolumePrice

type ServerVolumePrice struct {
	Price   float32 `json:"price"`
	ClassId string  `json:"class_id"`
}

type ServerVolumePriceCreateRequest

type ServerVolumePriceCreateRequest struct {
	Price   float32 `json:"price"`
	ClassId string  `json:"class_id"`
}

type ServerVolumePriceListResponse

type ServerVolumePriceListResponse struct {
	Metadata   ResponseMetadata    `json:"metadata"`
	Pagination *ResponsePagination `json:"pagination"`
	Data       []ServerVolumePrice `json:"data"`
	Success    bool                `json:"success"`
	Messages   ResponseMessages    `json:"messages"`
}

type ServerVolumePriceSingleResponse

type ServerVolumePriceSingleResponse struct {
	Metadata ResponseMetadata  `json:"metadata"`
	Data     ServerVolumePrice `json:"data"`
	Success  bool              `json:"success"`
	Messages ResponseMessages  `json:"messages"`
}

type ServerVolumePriceUpdateRequest

type ServerVolumePriceUpdateRequest struct {
	Price *float32 `json:"price"`
}

type ServerVolumeResizeRequest

type ServerVolumeResizeRequest struct {
	Size int `json:"size"`
}

type ServerVolumeSingleResponse

type ServerVolumeSingleResponse struct {
	Metadata ResponseMetadata `json:"metadata"`
	Data     ServerVolume     `json:"data"`
	Success  bool             `json:"success"`
	Messages ResponseMessages `json:"messages"`
}

type ServerVolumeUpdateRequest

type ServerVolumeUpdateRequest struct {
	Title  *string            `json:"title"`
	Labels map[string]*string `json:"labels"`
}

type ShutdownServerQueryParams

type ShutdownServerQueryParams struct {
	Force *bool `url:"force,omitempty"`
}

type Subnet

type Subnet struct {
	NetworkId string `json:"network_id"`
	Address   string `json:"address"`
	Prefix    int    `json:"prefix"`
	CreatedAt string `json:"created_at"`
	Id        string `json:"id"`
}

type SubnetCreateRequest

type SubnetCreateRequest struct {
	Shared    *bool   `json:"shared"`
	NetworkId string  `json:"network_id"`
	Address   string  `json:"address"`
	ProjectId *string `json:"project_id"`
	Prefix    int     `json:"prefix"`
	Range     *string `json:"range"`
}

type SubnetListResponse

type SubnetListResponse struct {
	Metadata   ResponseMetadata    `json:"metadata"`
	Pagination *ResponsePagination `json:"pagination"`
	Data       []Subnet            `json:"data"`
	Success    bool                `json:"success"`
	Messages   ResponseMessages    `json:"messages"`
}

type SubnetSingleResponse

type SubnetSingleResponse struct {
	Metadata   ResponseMetadata    `json:"metadata"`
	Pagination *ResponsePagination `json:"pagination"`
	Data       Subnet              `json:"data"`
	Success    bool                `json:"success"`
	Messages   ResponseMessages    `json:"messages"`
}

Jump to

Keyboard shortcuts

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