apiTypes

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Overview

Copyright © LiquidWeb

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudBackupDetails

type CloudBackupDetails struct {
	Accnt     int64                    `json:"accnt" mapstructure:"accnt"`
	Features  []map[string]interface{} `json:"features" mapstructure:"features"`
	HvType    string                   `json:"hv_type" mapstructure:"hv_type"`
	Id        int64                    `json:"id" mapstructure:"id"`
	Name      string                   `json:"name" mapstructure:"name"`
	Size      float64                  `json:"size" mapstructure:"size"`
	Template  string                   `json:"template" mapstructure:"template"`
	TimeTaken string                   `json:"time_taken" mapstructure:"time_taken"`
	UniqId    string                   `json:"uniq_id" mapstructure:"uniq_id"`
}

func (CloudBackupDetails) String

func (x CloudBackupDetails) String() string

type CloudBackupRestoreResponse

type CloudBackupRestoreResponse struct {
	Restored string `json:"restored" mapstructure:"restored"`
}

type CloudBlockStorageVolumeAttach

type CloudBlockStorageVolumeAttach struct {
	Attached string `json:"attached" mapstructure:"attached"`
	To       string `json:"to" mapstructure:"to"`
}

type CloudBlockStorageVolumeDelete

type CloudBlockStorageVolumeDelete struct {
	Deleted string `json:"deleted" mapstructure:"deleted"`
}

type CloudBlockStorageVolumeDetach

type CloudBlockStorageVolumeDetach struct {
	Detached     string `json:"detached" mapstructure:"detached"`
	DetachedFrom string `json:"detached_from" mapstructure:"detached_from"`
}

type CloudBlockStorageVolumeDetails

type CloudBlockStorageVolumeDetails struct {
	AttachedTo       []CloudBlockStorageVolumeDetailsAttachedTo `json:"attachedTo" mapstructure:"attachedTo"`
	CrossAttach      bool                                       `json:"cross_attach" mapstructure:"cross_attach"`
	Domain           string                                     `json:"domain" mapstructure:"domain"`
	Label            string                                     `json:"label" mapstructure:"label"`
	Size             int64                                      `json:"size" mapstructure:"size"`
	Status           string                                     `json:"status" mapstructure:"status"`
	UniqId           string                                     `json:"uniq_id" mapstructure:"uniq_id"`
	ZoneAvailability []int64                                    `json:"zoneAvailability" mapstructure:"zoneAvailability"`
}

func (CloudBlockStorageVolumeDetails) String

type CloudBlockStorageVolumeDetailsAttachedTo

type CloudBlockStorageVolumeDetailsAttachedTo struct {
	Device   string `json:"device" mapstructure:"device"`
	Resource string `json:"resource" mapstructure:"resource"`
}

type CloudBlockStorageVolumeResize

type CloudBlockStorageVolumeResize struct {
	NewSize int64  `json:"new_size" mapstructure:"new_size"`
	OldSize int64  `json:"old_size" mapstructure:"old_size"`
	UniqId  string `json:"uniq_id" mapstructure:"uniq_id"`
}

type CloudConfigDetails

type CloudConfigDetails struct {
	Id                int64         `json:"id" mapstructure:"id"`
	Active            int64         `json:"active" mapstructure:"active"`
	Available         int64         `json:"available" mapstructure:"available"`
	Category          string        `json:"category" mapstructure:"category"`
	Description       string        `json:"description" mapstructure:"description"`
	Disk              int64         `json:"disk,omitempty" mapstructure:"disk"`
	Featured          int64         `json:"featured" mapstructure:"featured"`
	Memory            int64         `json:"memory,omitempty" mapstructure:"memory"`
	Vcpu              int64         `json:"vcpu,omitempty" mapstructure:"vcpu"`
	ZoneAvailability  []map[int]int `json:"zone_availability" mapstructure:"zone_availability"`
	Retired           int64         `json:"retired,omitempty" mapstructure:"retired"`
	RamTotal          int64         `json:"ram_total,omitempty" mapstructure:"ram_total"`
	RamAvailable      int64         `json:"ram_available,omitempty" mapstructure:"ram_available"`
	RaidLevel         int64         `json:"raid_level,omitempty" mapstructure:"raid_level"`
	DiskType          string        `json:"disk_type,omitempty" mapstructure:"disk_type"`
	DiskTotal         int64         `json:"disk_total,omitempty" mapstructure:"disk_total"`
	DiskCount         int64         `json:"disk_count,omitempty" mapstructure:"disk_count"`
	CpuSpeed          int64         `json:"cpu_speed,omitempty" mapstructure:"cpu_speed"`
	CpuModel          string        `json:"cpu_model,omitempty" mapstructure:"cpu_model"`
	CpuHyperthreading int64         `json:"cpu_hyperthreading,omitempty" mapstructure:"cpu_hyperthreading"`
	CpuCount          int64         `json:"cpu_count,omitempty" mapstructure:"cpu_count"`
	CpuCores          int64         `json:"cpu_cores,omitempty" mapstructure:"cpu_cores"`
}

type CloudImageCreateResponse

type CloudImageCreateResponse struct {
	Created string `json:"created" mapstructure:"created"`
}

type CloudImageDeleteResponse

type CloudImageDeleteResponse struct {
	Deleted int64 `json:"deleted" mapstructure:"deleted"`
}

type CloudImageDetails

type CloudImageDetails struct {
	Accnt               int64                    `json:"accnt" mapstructure:"accnt"`
	Features            []map[string]interface{} `json:"features" mapstructure:"features"`
	HvType              string                   `json:"hv_type" mapstructure:"hv_type"`
	Id                  int64                    `json:"id" mapstructure:"id"`
	Name                string                   `json:"name" mapstructure:"name"`
	Size                float64                  `json:"size" mapstructure:"size"`
	SourceHostname      string                   `json:"source_hostname" mapstructure:"source_hostname"`
	SourceUniqId        string                   `json:"source_uniq_id" mapstructure:"source_uniq_id"`
	Template            string                   `json:"template" mapstructure:"template"`
	TemplateDescription string                   `json:"template_description" mapstructure:"template_description"`
	TimeTaken           string                   `json:"time_taken" mapstructure:"time_taken"`
}

func (CloudImageDetails) String

func (x CloudImageDetails) String() string

type CloudImageRestoreResponse

type CloudImageRestoreResponse struct {
	Reimaged string `json"reimaged" mapstructure:"reimaged"`
}

type CloudNetworkPrivateAttachResponse

type CloudNetworkPrivateAttachResponse struct {
	Attached string `json:"attached" mapstructure:"attached"`
}

type CloudNetworkPrivateDetachResponse

type CloudNetworkPrivateDetachResponse struct {
	Detached string `json:"detached" mapstructure:"detached"`
}

type CloudNetworkPrivateGetIpResponse

type CloudNetworkPrivateGetIpResponse struct {
	UniqId string `json:"uniq_id" mapstructure:"uniq_id"`
	Legacy bool   `json:"legacy" mapstructure:"legacy"`
	Ip     string `json:"ip" mapstructure:"ip"`
}

func (CloudNetworkPrivateGetIpResponse) String added in v0.6.9

type CloudNetworkPrivateIsAttachedResponse

type CloudNetworkPrivateIsAttachedResponse struct {
	IsAttached bool `json:"is_attached" mapstructure:"is_attached"`
}

type CloudNetworkVipAssetListAlsoWithZoneResponse

type CloudNetworkVipAssetListAlsoWithZoneResponse struct {
	Active   int64                  `json:"active" mapstructure:"active"`
	Domain   string                 `json:"domain" mapstructure:"domain"`
	Ip       string                 `json:"ip" mapstructure:"ip"`
	RegionId int64                  `json:"region_id" mapstructure:"region_id"`
	Status   string                 `json:"status" mapstructure:"status"`
	Type     string                 `json:"type" mapstructure:"type"`
	UniqId   string                 `json:"uniq_id" mapstructure:"uniq_id"`
	Zone     CloudServerDetailsZone `json:"zone" mapstructure:"zone"`
}

type CloudNetworkVipDestroyResponse

type CloudNetworkVipDestroyResponse struct {
	Destroyed string `json:"destroyed" mapstructure:"destroyed"`
}

type CloudNetworkVipDetails

type CloudNetworkVipDetails struct {
	Active       int64    `json:"active" mapstructure:"active"`
	ActiveStatus string   `json:"activeStatus" mapstructure:"activeStatus"`
	Domain       string   `json:"domain" mapstructure:"domain"`
	UniqId       string   `json:"uniq_id" mapstructure:"uniq_id"`
	Ip           string   `json:"ip" mapstructure:"ip"`
	PrivateIp    []string `json:"private_ip" mapstructure:"private_ip"`
}

func (CloudNetworkVipDetails) String

func (x CloudNetworkVipDetails) String() string

type CloudObjectStoreDelete

type CloudObjectStoreDelete struct {
	Deleted string `json:"deleted" mapstructure:"deleted"`
}

type CloudObjectStoreDeleteKey

type CloudObjectStoreDeleteKey struct {
	Deleted string `json:"deleted" mapstructure:"deleted"`
}

type CloudObjectStoreDetails

type CloudObjectStoreDetails struct {
	Accnt       int64                              `json:"accnt" mapstructure:"accnt"`
	Caps        []CloudObjectStoreDetailsCapsEntry `json:"caps" mapstructure:"caps"`
	DisplayName string                             `json:"display_name" mapstructure:"display_name"`
	Host        string                             `json:"host" mapstructure:"host"`
	Keys        []CloudObjectStoreKeyDetails       `json:"keys" mapstructure:"keys"`
	MaxBuckets  int64                              `json:"max_buckets" mapstructure:"max_buckets"`
	Suspended   bool                               `json:"suspended" mapstructure:"suspended"`
	UniqId      string                             `json:"uniq_id" mapstructure:"uniq_id"`
	UserId      string                             `json:"user_id" mapstructure:"user_id"`
}

func (CloudObjectStoreDetails) String

func (x CloudObjectStoreDetails) String() string

type CloudObjectStoreDetailsCapsEntry

type CloudObjectStoreDetailsCapsEntry struct {
	Perm string `json:"perm" mapstructure:"perm"`
	Type string `json:"type" mapstructure:"type"`
}

type CloudObjectStoreDiskSpace

type CloudObjectStoreDiskSpace struct {
	Buckets []map[string]interface{} `json:"buckets" mapstructure:"buckets"`
	Total   int64                    `json:"total" mapstructure:"total"`
}

type CloudObjectStoreKeyDetails

type CloudObjectStoreKeyDetails struct {
	AccessKey string `json:"access_key" mapstructure:"access_key"`
	SecretKey string `json:"secret_key" mapstructure:"secret_key"`
	User      string `json:"user" mapstructure:"user"`
}

type CloudPrivateParentDeleteResponse

type CloudPrivateParentDeleteResponse struct {
	Deleted string `json:"deleted" mapstructure:"deleted"`
}

type CloudPrivateParentDetails

type CloudPrivateParentDetails struct {
	Accnt             int64                                     `json:"accnt" mapstructure:"accnt"`
	BucketUniqId      string                                    `json:"bucket_uniq_id" mapstructure:"bucket_uniq_id"`
	ConfigDescription string                                    `json:"config_description" mapstructure:"config_description"`
	ConfigId          int64                                     `json:"config_id" mapstructure:"config_id"`
	CreateDate        string                                    `json:"create_date" mapstructure:"create_date"`
	DiskDetails       CloudPrivateParentDetailsEntryDiskDetails `json:"diskDetails" mapstructure:"diskDetails"`
	Domain            string                                    `json:"domain" mapstructure:"domain"`
	Id                int64                                     `json:"id" mapstructure:"id"`
	LicenseState      string                                    `json:"license_state" mapstructure:"license_state"`
	RegionId          int64                                     `json:"region_id" mapstructure:"region_id"`
	Resources         CloudPrivateParentDetailsEntryResource    `json:"resources" mapstructure:"resources"`
	SalesforceAsset   string                                    `json:"salesforce_asset" mapstructure:"salesforce_asset"`
	Status            string                                    `json:"status" mapstructure:"status"`
	Subaccnt          int64                                     `json:"subaccnt" mapstructure:"subaccnt"`
	Type              string                                    `json:"type" mapstructure:"type"`
	UniqId            string                                    `json:"uniq_id" mapstructure:"uniq_id"`
	Vcpu              int64                                     `json:"vcpu" mapstructure:"vcpu"`
	Zone              CloudPrivateParentDetailsEntryZone        `json:"zone" mapstructure:"zone"`
}

func (CloudPrivateParentDetails) String

func (x CloudPrivateParentDetails) String() string

type CloudPrivateParentDetailsEntryDiskDetails

type CloudPrivateParentDetailsEntryDiskDetails struct {
	Allocated int64 `json:"allocated" mapstructure:"allocated"`
	Snapshots int64 `json:"snapshots" mapstructure:"snapshots"`
}

type CloudPrivateParentDetailsEntryResource

type CloudPrivateParentDetailsEntryResource struct {
	DiskSpace CloudPrivateParentDetailsEntryResourceEntry `json:"diskspace" mapstructure:"diskspace"`
	Memory    CloudPrivateParentDetailsEntryResourceEntry `json:"memory" mapstructure:"memory"`
}

type CloudPrivateParentDetailsEntryResourceEntry

type CloudPrivateParentDetailsEntryResourceEntry struct {
	Free  int64 `json:"free" mapstructure:"free"`
	Total int64 `json:"total" mapstructure:"total"`
	Used  int64 `json:"used" mapstructure:"used"`
}

type CloudPrivateParentDetailsEntryZone

type CloudPrivateParentDetailsEntryZone struct {
	AvailabilityZone string                                   `json:"availability_zone" mapstructure:"availability_zone"`
	Description      string                                   `json:"description" mapstructure:"description"`
	HvType           string                                   `json:"hv_type" mapstructure:"hv_type"`
	Id               int64                                    `json:"id" mapstructure:"id"`
	Legacy           int64                                    `json:"legacy" mapstructure:"legacy"`
	Name             string                                   `json:"name" mapstructure:"name"`
	Region           CloudPrivateParentDetailsEntryZoneRegion `json:"region" mapstructure:"region"`
	Status           string                                   `json:"status" mapstructure:"status"`
	ValidSourceHvs   []string                                 `json:"valid_source_hvs" mapstructure:"valid_source_hvs"`
}

type CloudPrivateParentDetailsEntryZoneRegion

type CloudPrivateParentDetailsEntryZoneRegion struct {
	Id   int64  `json:"id" mapstructure:"id"`
	Name string `json:"name" mapstructure:"name"`
}

type CloudServerCloneResponse

type CloudServerCloneResponse struct {
	Accnt               int64                        `json:"accnt" mapstructure:"accnt"`
	Active              int64                        `json:"active" mapstructure:"active"`
	BackupEnabled       int64                        `json:"backup_enabled" mapstructure:"backup_enabled"`
	BackupPlan          string                       `json:"backup_plan" mapstructure:"backup_plan"`
	BackupQuota         int64                        `json:"backup_quota" mapstructure:"backup_quota"`
	BackupSize          float64                      `json:"backup_size" mapstructure:"backup_size"`
	BandwidthQuota      string                       `json:"bandwidth_quota" mapstructure:"bandwidth_quota"`
	Categories          []interface{}                `json:"categories" mapstructure:"categories"`
	ConfigDescription   string                       `json:"config_description" mapstructure:"config_description"`
	ConfigId            int64                        `json:"config_id" mapstructure:"config_id"`
	CreateDate          string                       `json:"create_date" mapstructure:"create_date"`
	Description         string                       `json:"description" mapstructure:"description"`
	Diskspace           int64                        `json:"diskspace" mapstructure:"diskspace"`
	Domain              string                       `json:"domain" mapstructure:"domain"`
	HvType              string                       `json:"hv_type" mapstructure:"hv_type"`
	Instance            interface{}                  `json:"instance" mapstructure:"instance"`
	Ip                  string                       `json:"ip" mapstructure:"ip"`
	IpCount             int64                        `json:"ip_count" mapstructure:"ip_count"`
	ManageLevel         string                       `json:"manage_level" mapstructure:"manage_level"`
	Memory              int64                        `json:"memory" mapstructure:"memory"`
	Parent              string                       `json:"parent" mapstructure:"parent"`
	RegionId            int64                        `json:"region_id" mapstructure:"region_id"`
	ShortDescription    string                       `json:"shortDescription" mapstructure:"shortDescription"`
	Status              string                       `json:"status" mapstructure:"status"`
	Template            string                       `json:"template" mapstructure:"template"`
	TemplateDescription string                       `json:"template_description" mapstructure:"template_description"`
	Type                string                       `json:"type" mapstructure:"type"`
	UniqId              string                       `json:"uniq_id" mapstructure:"uniq_id"`
	ValidSourceHvs      map[string]int64             `json:"valid_source_hvs" mapstructure:"valid_source_hvs"`
	Vcpu                int64                        `json:"vcpu" mapstructure:"vcpu"`
	Zone                CloudServerCloneResponseZone `json:"zone" mapstructure:"zone"`
}

type CloudServerCloneResponseZone

type CloudServerCloneResponseZone struct {
	Id     int64                              `json:"id" mapstructure:"id"`
	Name   string                             `json:"name" mapstructure:"name"`
	Region CloudServerCloneResponseZoneRegion `json:"region" mapstructure:"region"`
}

type CloudServerCloneResponseZoneRegion

type CloudServerCloneResponseZoneRegion struct {
	HostPrefix string `json:"host_prefix" mapstructure:"host_prefix"`
	Id         int64  `json:"id" mapstructure:"id"`
	Name       string `json:"name" mapstructure:"name"`
}

type CloudServerDestroyResponse

type CloudServerDestroyResponse struct {
	Destroyed string `json:"destroyed" mapstructure:"destroyed"`
}

type CloudServerDetails

type CloudServerDetails struct {
	Accnt               int64                  `json:"accnt" mapstructure:"accnt"`
	ConfigId            int64                  `json:"config_id" mapstructure:"config_id"`
	Memory              int64                  `json:"memory" mapstructure:"memory"`
	Template            string                 `json:"template" mapstructure:"template"`
	Type                string                 `json:"type" mapstructure:"type"`
	BackupEnabled       int64                  `json:"backup_enabled" mapstructure:"backup_enabled"`
	BackupSize          float64                `json:"backup_size" mapstructure:"backup_size"`
	UniqId              string                 `json:"uniq_id" mapstructure:"uniq_id"`
	Vcpu                int64                  `json:"vcpu" mapstructure:"vcpu"`
	BackupPlan          string                 `json:"backup_plan" mapstructure:"backup_plan"`
	BandwidthQuota      string                 `json:"bandwidth_quota" mapstructure:"bandwidth_quota"`
	Ip                  string                 `json:"ip" mapstructure:"ip"`
	IpCount             int64                  `json:"ip_count" mapstructure:"ip_count"`
	ManageLevel         string                 `json:"manage_level" mapstructure:"manage_level"`
	CreateDate          string                 `json:"create_date" mapstructure:"create_date"`
	DiskSpace           int64                  `json:"diskspace" mapstructure:"diskspace"`
	Domain              string                 `json:"domain" mapstructure:"domain"`
	Active              int64                  `json:"active" mapstructure:"active"`
	BackupQuota         int64                  `json:"backup_quota" mapstructure:"backup_quota"`
	Zone                CloudServerDetailsZone `json:"zone" mapstructure:"zone"`
	ConfigDescription   string                 `json:"config_description" mapstructure:"config_description"`
	TemplateDescription string                 `json:"template_description" mapstructure:"template_description"`
	PrivateParent       string                 `json:"parent" mapstructure:"parent"`
}

func (CloudServerDetails) String

func (x CloudServerDetails) String() string

type CloudServerDetailsZone

type CloudServerDetailsZone struct {
	Id     int64                        `json:"id" mapstructure:"id"`
	Name   string                       `json:"name" mapstructure:"name"`
	Region CloudServerDetailsZoneRegion `json:"region" mapstructure:"region"`
}

type CloudServerDetailsZoneRegion

type CloudServerDetailsZoneRegion struct {
	Id   int64  `json:"id" mapstructure:"id"`
	Name string `json:"name" mapstructure:"name"`
}

type CloudServerIsBlockStorageOptimized

type CloudServerIsBlockStorageOptimized struct {
	IsOptimized bool `json:"is_optimized" mapstructure:"is_optimized"`
}

type CloudServerIsBlockStorageOptimizedSetResponse

type CloudServerIsBlockStorageOptimizedSetResponse struct {
	Updated string `json:"updated" mapstructure:"updated"`
}

type CloudServerRebootResponse

type CloudServerRebootResponse struct {
	Rebooted string `json:"rebooted" mapstructure:"rebooted"`
}

type CloudServerResizeExpectation added in v0.6.6

type CloudServerResizeExpectation struct {
	DiskDifference   int64    `json:"diskDifference" mapstructure:"diskDifference"`
	MemoryDifference int64    `json:"memoryDifference" mapstructure:"memoryDifference"`
	VcpuDifference   int64    `json:"vcpuDifference" mapstructure:"vcpuDifference"`
	RebootRequired   FlexBool `json:"rebootRequired" mapstructure:"rebootRequired"`
}

type CloudServerShutdownResponse

type CloudServerShutdownResponse struct {
	Shutdown string `json:"shutdown" mapstructure:"shutdown"`
}

type CloudServerStartResponse

type CloudServerStartResponse struct {
	Started string `json:"started" mapstructure:"started"`
}

type CloudServerStatus

type CloudServerStatus struct {
	DetailedStatus string                         `json:"detailed_status" mapstructure:"detailed_status"`
	Progress       float64                        `json:"progress" mapstructure:"progress"`
	Running        []CloudServerStatusRunningData `json:"running" mapstructure:"running"`
	Status         string                         `json:"status" mapstructure:"status"`
}

type CloudServerStatusRunningData

type CloudServerStatusRunningData struct {
	CurrentStep    int64  `json:"current_step" mapstructure:"current_step"`
	DetailedStatus string `json:"detailed_status" mapstructure:"detailed_status"`
	Name           string `json:"name" mapstructure:"name"`
	Status         string `json:"status" mapstructure:"status"`
}

type CloudTemplateRestoreResponse added in v0.6.1

type CloudTemplateRestoreResponse struct {
	Reimaged string `json:"reimaged" mapstructure:"reimaged"`
}

type FlexBool added in v0.6.6

type FlexBool bool

func (*FlexBool) UnmarshalJSON added in v0.6.6

func (self *FlexBool) UnmarshalJSON(data []byte) error

type MergedPaginatedList

type MergedPaginatedList struct {
	Items       []map[string]interface{} `json:"items" mapstructure:"items"`
	MergedPages int64                    `json:"merged_pages" mapstructure:"merged_pages"`
	PageSize    int64                    `json:"page_size" mapstructure:"page_size"`
}

type NetworkAssignmentListEntry

type NetworkAssignmentListEntry struct {
	Broadcast string `json:"broadcast" mapstructure:"broadcast"`
	Ip        string `json:"ip" mapstructure:"ip"`
	Gateway   string `json:"gateway" mapstructure:"gateway"`
	Id        int64  `json:"id" mapstructure:"id"`
	Netmask   string `json:"netmask" mapstructure:"netmask"`
	Network   string `json:"network" mapstructure:"network"`
}

func (NetworkAssignmentListEntry) String

type NetworkIpAdd

type NetworkIpAdd struct {
	Adding string `json:"adding" mapstructure:"adding"`
}

type NetworkIpPoolDelete

type NetworkIpPoolDelete struct {
	Deleted bool `json:"deleted" mapstructure:"deleted"`
}

type NetworkIpPoolDetails

type NetworkIpPoolDetails struct {
	Accnt       int64                            `json:"accnt" mapstructure:"accnt"`
	Id          int64                            `json:"id" mapstructure:"id"`
	UniqId      string                           `json:"uniq_id" mapstructure:"uniq_id"`
	ZoneId      int64                            `json:"zone_id" mapstructure:"zone_id"`
	Assignments []NetworkIpPoolDetailsAssignment `json:"assignments" mapstructure:"assignments"`
}

func (NetworkIpPoolDetails) String

func (x NetworkIpPoolDetails) String() string

type NetworkIpPoolDetailsAssignment

type NetworkIpPoolDetailsAssignment struct {
	BeginRange string `json:"begin_range" mapstructure:"begin_range"`
	Broadcast  string `json:"broadcast" mapstructure:"broadcast"`
	EndRange   string `json:"end_range" mapstructure:"end_range"`
	Gateway    string `json:"gateway" mapstructure:"gateway"`
	Id         int64  `json:"id" mapstructure:"id"`
	Netmask    string `json:"netmask" mapstructure:"netmask"`
	Network    string `json:"network" mapstructure:"network"`
	ZoneId     int64  `json:"zone_id" mapstructure:"zone_id"`
}

type NetworkIpPoolListEntry

type NetworkIpPoolListEntry struct {
	Id     int64 `json:"id" mapstructure:"id"`
	ZoneId int64 `json:"zone_id" mapstructure:"zone_id"`
}

type NetworkIpRemove

type NetworkIpRemove struct {
	Removing string `json:"removing" mapstructure:"removing"`
}

type NetworkLoadBalancerDelete

type NetworkLoadBalancerDelete struct {
	Deleted string `json:"deleted" mapstructure:"deleted"`
}

type NetworkLoadBalancerDetails

type NetworkLoadBalancerDetails struct {
	Name               string                              `json:"name" mapstructure:"name"`
	Nodes              []NetworkLoadBalancerDetailsNode    `json:"nodes" mapstructure:"nodes"`
	RegionId           int64                               `json:"region_id" mapstructure:"region_id"`
	Services           []NetworkLoadBalancerDetailsService `json:"services" mapstructure:"services"`
	SessionPersistence bool                                `json:"session_persistence" mapstructure:"session_persistence"`
	SslIncludes        bool                                `json:"ssl_includes" mapstructure:"ssl_includes"`
	SslTermination     bool                                `json:"ssl_termination" mapstructure:"ssl_termination"`
	Strategy           string                              `json:"strategy" mapstructure:"strategy"`
	UniqId             string                              `json:"uniq_id" mapstructure:"uniq_id"`
	Vip                string                              `json:"vip" mapstructure:"vip"`
}

func (NetworkLoadBalancerDetails) String

type NetworkLoadBalancerDetailsNode

type NetworkLoadBalancerDetailsNode struct {
	Domain string `json:"domain" mapstructure:"domain"`
	Ip     string `json:"ip" mapstructure:"ip"`
	UniqId string `json:"uniq_id" mapstructure:"uniq_id"`
}

type NetworkLoadBalancerDetailsService

type NetworkLoadBalancerDetailsService struct {
	DestPort    int64                                        `json:"dest_port" mapstructure:"dest_port"`
	Protocol    string                                       `json:"protocol" mapstructure:"protocol"`
	SrcPort     int64                                        `json:"src_port" mapstructure:"src_port"`
	HealthCheck NetworkLoadBalancerDetailsServiceHealthCheck `json:"health_check" mapstructure:"health_check"`
}

type NetworkLoadBalancerDetailsServiceHealthCheck

type NetworkLoadBalancerDetailsServiceHealthCheck struct {
	FailureThreshold  int64  `json:"failure_threshold" mapstructure:"failure_threshold" yaml:"failure_threshold"`
	HttpBodyMatch     string `json:"http_body_match" mapstructure:"http_body_match" yaml:"http_body_match"`
	HttpPath          string `json:"http_path" mapstructure:"http_path" yaml:"http_path"`
	HttpResponseCodes string `json:"http_response_codes" mapstructure:"http_response_codes" yaml:"http_response_codes"`
	HttpUseTls        bool   `json:"http_use_tls" mapstructure:"http_use_tls" yaml:"http_use_tls"`
	Interval          int64  `json:"interval" mapstructure:"interval" yaml:"interval"`
	Protocol          string `json:"protocol" mapstructure:"protocol" yaml:"protocol"`
	Timeout           int64  `json:"timeout" mapstructure:"timeout" yaml:"timeout"`
}

func (NetworkLoadBalancerDetailsServiceHealthCheck) Validate

type NetworkLoadBalancerPossibleNodes

type NetworkLoadBalancerPossibleNodes struct {
	Items []NetworkLoadBalancerPossibleNodesNode `json:"items" mapstructure:"items"`
}

func (NetworkLoadBalancerPossibleNodes) String

type NetworkLoadBalancerPossibleNodesNode

type NetworkLoadBalancerPossibleNodesNode struct {
	Domain   string `json:"domain" mapstructure:"domain"`
	Ip       string `json:"ip" mapstructure:"ip"`
	RegionId int64  `json:"region_id" mapstructure:"region_id"`
	UniqId   string `json:"uniq_id" mapstructure:"uniq_id"`
}

type NetworkLoadBalancerStrategies

type NetworkLoadBalancerStrategies struct {
	Strategies []NetworkLoadBalancerStrategy `json:"strategies" mapstructure:"strategies"`
}

func (NetworkLoadBalancerStrategies) String

type NetworkLoadBalancerStrategy

type NetworkLoadBalancerStrategy struct {
	Name        string `json:"name" mapstructure:"name"`
	Description string `json:"description" mapstructure:"description"`
	Strategy    string `json:"strategy" mapstructure:"strategy"`
}

type PaginatedList

type PaginatedList struct {
	ItemCount int64                    `json:"item_count" mapstructure:"item_count"`
	ItemTotal int64                    `json:"item_total" mapstructure:"item_total"`
	Items     []map[string]interface{} `json:"items" mapstructure:"items"`
	PageNum   int64                    `json:"page_num" mapstructure:"page_num"`
	PageSize  int64                    `json:"page_size mapstructure:"page_size"`
	PageTotal int64                    `json:"page_total" mapstructure:"page_total"`
}

type Subaccnt added in v0.6.8

type Subaccnt struct {
	Active      bool     `json:"active" mapstructure:"active"`
	Domain      string   `json:"domain" mapstructure:"domain"`
	Ip          string   `json:"ip" mapstructure:"ip"`
	ProjectId   int64    `json:"project_id" mapstructure:"project_id"`
	ProjectName string   `json:"project_name" mapstructure:"project_name"`
	RegionId    int      `json:"region_id" mapstructure:"region_id"`
	Status      string   `json:"status" mapstructure:"status"`
	Type        string   `json:"type" mapstructure:"type"`
	UniqId      string   `json:"uniq_id" mapstructure:"uniq_id"`
	Username    string   `json:"username" mapstructure:"username"`
	Categories  []string `json:"categories" mapstructure:"categories"`
}

func (Subaccnt) String added in v0.6.8

func (x Subaccnt) String() string

type UtilitiesInfoPingResponse

type UtilitiesInfoPingResponse struct {
	Ping string `json:"ping" mapstructure:"ping"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳