 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
- Variables
- func ToJson(v interface{}) string
- type Account
- type AdvancedConfiguration
- type AttachEbsReq
- type AttachEbsResp
- type AttachEbsResult
- type AttachedPvcConfig
- type AttachmentType
- type BILLINGMETHOD
- type ChargeType
- type CloudDiskInfo
- type CloudServer
- type CloudServerArea
- type CloudServerBillingConfigs
- type CloudServerInstanceStatus
- type CloudServerNetworkConfig
- type CloudServerScheduleStrategyConfigs
- type CreateCloudServerReq
- type CreateCloudServerResp
- type CreateCloudServerResult
- type CreateEbsInstancesReq
- type CreateEbsInstancesResp
- type CreateEbsInstancesResult
- type CreateInstanceReq
- type CreateInstanceResp
- type CreateInstanceResult
- type CustomData
- type DeleteCloudServerReq
- type DeleteCloudServerResp
- type DeleteCloudServerResult
- type DeleteEbsInstanceReq
- type DeleteEbsInstanceResp
- type DeleteEbsInstanceResult
- type DetachEbsReq
- type DetachEbsResp
- type DetachEbsResult
- type DiskSpec
- type DiskSpecWithNum
- type EbsAttachment
- type EbsCluster
- type EbsInstance
- type EbsOrderOption
- type EbsPagination
- type EbsStatus
- type EbsType
- type GeoInfo
- type GetCloudServerReq
- type GetCloudServerResp
- type GetCloudServerResult
- type GetEbsInstanceReq
- type GetEbsInstanceResp
- type GetEbsInstanceResult
- type GetInstanceCloudDiskInfoReq
- type GetInstanceCloudDiskInfoResp
- type GetInstanceCloudDiskInfoResult
- type GetInstanceReq
- type GetInstanceResp
- type GetInstanceResult
- type GpuConfig
- type GpuSpec
- type GpuSpecWithNum
- type IMAGEBOOTMODE
- type INSTANCEARCH
- type IP
- type IPVERSION
- type ImageConfig
- type InstanceAreaNum
- type InstanceTypeConfig
- type IspInfo
- type ListAvailableResourceInfoReq
- type ListAvailableResourceInfoResp
- type ListAvailableResourceInfoResult
- type ListCloudServersReq
- type ListCloudServersResp
- type ListCloudServersResult
- type ListEbsInstancesReq
- type ListEbsInstancesResp
- type ListEbsInstancesResult
- type ListInstanceTypesReq
- type ListInstanceTypesResp
- type ListInstanceTypesResult
- type ListInstancesReq
- type ListInstancesResp
- type ListInstancesResult
- type LoadType
- type MULTIIPMODE
- type NetworkConfig
- type NetworkInterfaceConfig
- type OfflineInstancesReq
- type OfflineInstancesResp
- type OfflineInstancesResult
- type Pagination
- type RebootCloudServerReq
- type RebootCloudServerResp
- type RebootCloudServerResult
- type RebootInstancesReq
- type RebootInstancesResp
- type RebootInstancesResult
- type RegionInfo
- type ResetLoginCredentialReq
- type ResetLoginCredentialResp
- type ResetLoginCredentialResult
- type ScaleCloudDiskInfo
- type ScaleEbsInstanceCapacityReq
- type ScaleEbsInstanceCapacityResp
- type ScaleEbsInstanceCapacityResult
- type ScaleInstanceCloudDiskCapacityReq
- type ScaleInstanceCloudDiskCapacityResp
- type ScaleInstanceCloudDiskCapacityResult
- type ScheduleStrategy
- type SecretConfig
- type SecretType
- type SetInstanceNameReq
- type SetInstanceNameResp
- type SetInstanceNameResult
- type StartCloudServerReq
- type StartCloudServerResp
- type StartCloudServerResult
- type StartInstancesReq
- type StartInstancesResp
- type StartInstancesResult
- type StopCloudServerReq
- type StopCloudServerResp
- type StopCloudServerResult
- type StopInstancesReq
- type StopInstancesResp
- type StopInstancesResult
- type StorageConfig
- type StorageInfo
- type StorageType
- type Veen
- func (v *Veen) AttachEbs(req *AttachEbsReq) (*AttachEbsResp, error)
- func (v *Veen) CreateCloudServer(req *CreateCloudServerReq) (*CreateCloudServerResp, error)
- func (v *Veen) CreateEbsInstances(req *CreateEbsInstancesReq) (*CreateEbsInstancesResp, error)
- func (v *Veen) CreateInstance(req *CreateInstanceReq) (*CreateInstanceResp, error)
- func (v *Veen) DeleteCloudServer(req *DeleteCloudServerReq) (*DeleteCloudServerResp, error)
- func (v *Veen) DeleteEbsInstance(req *DeleteEbsInstanceReq) (*DeleteEbsInstanceResp, error)
- func (v *Veen) DetachEbs(req *DetachEbsReq) (*DetachEbsResp, error)
- func (v *Veen) GetAPIInfo(api string) *base.ApiInfo
- func (v *Veen) GetCloudServer(req *GetCloudServerReq) (*GetCloudServerResp, error)
- func (v *Veen) GetEbsInstance(req *GetEbsInstanceReq) (*GetEbsInstanceResp, error)
- func (v *Veen) GetInstance(req *GetInstanceReq) (*GetInstanceResp, error)
- func (v *Veen) GetInstanceCloudDiskInfo(req *GetInstanceCloudDiskInfoReq) (*GetInstanceCloudDiskInfoResp, error)
- func (v *Veen) GetServiceInfo(env string) *base.ServiceInfo
- func (v *Veen) ListAvailableResourceInfo(req *ListAvailableResourceInfoReq) (*ListAvailableResourceInfoResp, error)
- func (v *Veen) ListCloudServers(req *ListCloudServersReq) (*ListCloudServersResp, error)
- func (v *Veen) ListEbsInstances(req *ListEbsInstancesReq) (*ListEbsInstancesResp, error)
- func (v *Veen) ListInstanceTypes(req *ListInstanceTypesReq) (*ListInstanceTypesResp, error)
- func (v *Veen) ListInstances(req *ListInstancesReq) (*ListInstancesResp, error)
- func (v *Veen) OfflineInstances(req *OfflineInstancesReq) (*OfflineInstancesResp, error)
- func (v *Veen) RebootCloudServer(req *RebootCloudServerReq) (*RebootCloudServerResp, error)
- func (v *Veen) RebootInstances(req *RebootInstancesReq) (*RebootInstancesResp, error)
- func (v *Veen) ResetLoginCredential(req *ResetLoginCredentialReq) (*ResetLoginCredentialResp, error)
- func (v *Veen) ScaleEbsInstanceCapacity(req *ScaleEbsInstanceCapacityReq) (*ScaleEbsInstanceCapacityResp, error)
- func (v *Veen) ScaleInstanceCloudDiskCapacity(req *ScaleInstanceCloudDiskCapacityReq) (*ScaleInstanceCloudDiskCapacityResp, error)
- func (v *Veen) SetHost(host string)
- func (v *Veen) SetInstanceName(req *SetInstanceNameReq) (*SetInstanceNameResp, error)
- func (v *Veen) SetRegion(env, region string)
- func (v *Veen) SetSchema(schema string)
- func (v *Veen) StartCloudServer(req *StartCloudServerReq) (*StartCloudServerResp, error)
- func (v *Veen) StartInstances(req *StartInstancesReq) (*StartInstancesResp, error)
- func (v *Veen) StopCloudServer(req *StopCloudServerReq) (*StopCloudServerResp, error)
- func (v *Veen) StopInstances(req *StopInstancesReq) (*StopInstancesResp, error)
 
- type VeenCluster
- type VeenInstance
- type VeenSTATUS
- type VolcError
- type VolcResponseMetadata
Constants ¶
      View Source
      
  
    const ( ServiceName = "veenedge" ServiceVersion = "2021-04-30" )
      View Source
      
  
    const ( BILLINGMETHODMOUTHPEAK = "MonthlyPeak" BILLINGMETHODDAYPEAK = "DailyPeak" BILLINGMETHODMOUTHP95 = "MonthlyP95" BILLINGMETHODHOURUSED = "HourUsed" )
      View Source
      
  
    const ( MULTIIPMODESINGLEINTERFACE = "single_interface" MULTIIPMODEMULTIINTERFACE = "multi_interface" )
      View Source
      
  
    const ( IMAGEBOOTMODEUEFI = "UEFI" IMAGEBOOTMODEBIOS = "BIOS" )
      View Source
      
  
    const ( LoadTypeVM = "virtual_machine" LoadTypeBm = "bare_metal" )
      View Source
      
  
    const ( INSTANCEARCHX86 = "x86" INSTANCEARCHBAREMETAL = "bare_metal" INSTANCEARCHARM = "arm" )
      View Source
      
  
    const ( VEENSTATUSOPENING = "opening" VEENSTATUSRUNNING = "running" VEENSTATUSSTOPPING = "stopping" VEENSTATUSSTOP = "stop" VEENSTATUSSTARTING = "starting" VEENSTATUSREBOOTING = "rebooting" VEENSTATUSTERMINATING = "terminating" VEENSTATUSOPENFAIL = "open_fail" )
      View Source
      
  
    const ( IPVERSION4 = "ipv4" IPVERSION6 = "ipv6" )
      View Source
      
  
const ( ChargeTypeHourUsed ChargeType = "HourUsed" EbsTypeData EbsType = "data" EbsStatusCreating EbsStatus = "creating" EbsStatusDetached EbsStatus = "detached" EbsStatusAttaching EbsStatus = "attaching" EbsStatusAttached EbsStatus = "attached" EbsStatusDetaching EbsStatus = "detaching" EbsStatusScaling EbsStatus = "scaling" EbsStatusDeleting EbsStatus = "deleting" EbsStatusDeleted EbsStatus = "deleted" StorageTypeSSD StorageType = "CloudBlockSSD" StorageTypeHDD StorageType = "CloudBlockHDD" AttachmentTypeVeen AttachmentType = "veen" )
Variables ¶
      View Source
      
  
    var ( // 注册api ApiInfoList = map[string]*base.ApiInfo{ "CreateCloudServer": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"CreateCloudServer"}, "Version": []string{ServiceVersion}, }, }, "ListCloudServers": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"ListCloudServers"}, "Version": []string{ServiceVersion}, }, }, "GetCloudServer": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"GetCloudServer"}, "Version": []string{ServiceVersion}, }, }, "StartCloudServer": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"StartCloudServer"}, "Version": []string{ServiceVersion}, }, }, "StopCloudServer": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"StopCloudServer"}, "Version": []string{ServiceVersion}, }, }, "RebootCloudServer": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"RebootCloudServer"}, "Version": []string{ServiceVersion}, }, }, "DeleteCloudServer": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"DeleteCloudServer"}, "Version": []string{ServiceVersion}, }, }, "ListInstanceTypes": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"ListInstanceTypes"}, "Version": []string{ServiceVersion}, }, }, "ListAvailableResourceInfo": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"ListAvailableResourceInfo"}, "Version": []string{ServiceVersion}, }, }, "CreateInstance": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"CreateInstance"}, "Version": []string{ServiceVersion}, }, }, "ListInstances": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"ListInstances"}, "Version": []string{ServiceVersion}, }, }, "GetInstance": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"GetInstance"}, "Version": []string{ServiceVersion}, }, }, "StartInstances": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"StartInstances"}, "Version": []string{ServiceVersion}, }, }, "StopInstances": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"StopInstances"}, "Version": []string{ServiceVersion}, }, }, "RebootInstances": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"RebootInstances"}, "Version": []string{ServiceVersion}, }, }, "OfflineInstances": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"OfflineInstances"}, "Version": []string{ServiceVersion}, }, }, "SetInstanceName": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"SetInstanceName"}, "Version": []string{ServiceVersion}, }, }, "ResetLoginCredential": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"ResetLoginCredential"}, "Version": []string{ServiceVersion}, }, }, "GetInstanceCloudDiskInfo": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"GetInstanceCloudDiskInfo"}, "Version": []string{ServiceVersion}, }, }, "ScaleInstanceCloudDiskCapacity": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"ScaleInstanceCloudDiskCapacity"}, "Version": []string{ServiceVersion}, }, }, "CreateEbsInstances": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"CreateEbsInstances"}, "Version": []string{ServiceVersion}, }, }, "ListEbsInstances": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"ListEbsInstances"}, "Version": []string{ServiceVersion}, }, }, "GetEbsInstance": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"GetEbsInstance"}, "Version": []string{ServiceVersion}, }, }, "ScaleEbsInstanceCapacity": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"ScaleEbsInstanceCapacity"}, "Version": []string{ServiceVersion}, }, }, "AttachEbs": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"AttachEbs"}, "Version": []string{ServiceVersion}, }, }, "DetachEbs": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"DetachEbs"}, "Version": []string{ServiceVersion}, }, }, "DeleteEbsInstance": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"DeleteEbsInstance"}, "Version": []string{ServiceVersion}, }, }, } )
      View Source
      
  
var ( // 注册服务 ServiceInfo = &base.ServiceInfo{ Timeout: 15 * time.Second, Host: "veenedge.volcengineapi.com", Header: http.Header{ "Accept": []string{"application/json"}, }, Credentials: base.Credentials{ Service: ServiceName, Region: base.RegionCnNorth1, }, Scheme: "https", } )
Functions ¶
Types ¶
type AdvancedConfiguration ¶
type AttachEbsReq ¶ added in v1.0.118
type AttachEbsReq struct {
	EbsIds  []string       `thrift:"ebs_ids,3,required" frugal:"3,required,list<string>" json:"ebs_ids"`
	ResType AttachmentType `thrift:"res_type,4,required" frugal:"4,required,string" json:"res_type"`
	ResID   string         `thrift:"res_id,5,required" frugal:"5,required,string" json:"res_id"`
}
    type AttachEbsResp ¶ added in v1.0.118
type AttachEbsResp struct {
	ResponseMetadata VolcResponseMetadata `json:"ResponseMetadata"`
	Result           AttachEbsResult      `json:"Result"`
}
    type AttachEbsResult ¶ added in v1.0.118
type AttachEbsResult struct {
}
    type AttachedPvcConfig ¶
type AttachedPvcConfig struct {
	Name string `json:"name"`
}
    type AttachmentType ¶ added in v1.0.118
type AttachmentType = string
type BILLINGMETHOD ¶
type BILLINGMETHOD = string
type ChargeType ¶ added in v1.0.118
type ChargeType = string
type CloudDiskInfo ¶
type CloudDiskInfo struct {
	StorageType string `thrift:"storage_type,1,required" frugal:"1,required,string" json:"storage_type"`
	Capacity    string `thrift:"capacity,2,required" frugal:"2,required,string" json:"capacity"`
	PvcName     string `thrift:"pvc_name,3,required" frugal:"3,required,string" json:"pvc_name"`
	DeviceName  string `thrift:"device_name,4,required" frugal:"4,required,string" json:"device_name"`
}
    type CloudServer ¶
type CloudServer struct {
	CloudServerIdentity     string                              `json:"cloud_server_identity"`
	Name                    string                              `json:"name"`
	LoadType                *LoadType                           `json:"load_type,omitempty"`
	ServerAreaCount         int32                               `json:"server_area_count"`
	InstanceCount           int64                               `json:"instance_count"`
	ServerAreaLevel         string                              `json:"server_area_level"`
	InstanceStatus          []*CloudServerInstanceStatus        `json:"instance_status"`
	SpecSum                 map[string]int32                    `json:"spec_sum"`
	Spec                    string                              `json:"spec"`
	SpecDisplay             *string                             `json:"spec_display,omitempty"`
	CPU                     string                              `json:"cpu"`
	Mem                     string                              `json:"mem"`
	Image                   *ImageConfig                        `json:"image"`
	Storage                 *StorageConfig                      `json:"storage"`
	Network                 *CloudServerNetworkConfig           `json:"network"`
	Gpu                     *GpuConfig                          `json:"gpu,omitempty"`
	SecretConfig            *SecretConfig                       `json:"secret_config,omitempty"`
	CustomData              *CustomData                         `json:"custom_data,omitempty"`
	BillingConfig           *CloudServerBillingConfigs          `json:"billing_config,omitempty"`
	Desc                    *string                             `json:"desc,omitempty"`
	Arch                    *string                             `json:"arch,omitempty"`
	AdvancedConfiguration   *AdvancedConfiguration              `json:"advanced_configuration,omitempty"`
	ScheduleStrategyConfigs *CloudServerScheduleStrategyConfigs `json:"schedule_strategy_configs"`
	ServerAreas             []*CloudServerArea                  `json:"server_areas"`
	CreateTime              int64                               `json:"create_time"`
	UpdateTime              int64                               `json:"update_time"`
}
    type CloudServerArea ¶
type CloudServerBillingConfigs ¶
type CloudServerBillingConfigs struct {
	ComputingBillingMethod BILLINGMETHOD `json:"computing_billing_method"`
	BandwidthBillingMethod BILLINGMETHOD `json:"bandwidth_billing_method"`
}
    type CloudServerNetworkConfig ¶
type CloudServerNetworkConfig struct {
	BandwidthPeak               *string `json:"bandwidth_peak,omitempty"`
	InternalBandwidthPeak       *string `json:"internal_bandwidth_peak,omitempty"`
	VfPassthrough               *bool   `json:"vf_passthrough,omitempty"`
	EnableIpv6                  *bool   `json:"enable_ipv6,omitempty"`
	DisableIpv4                 *bool   `json:"disable_ipv4,omitempty"`
	ReverseInterface            *bool   `json:"reverse_interface,omitempty"`
	CustomInternalInterfaceName *string `json:"custom_internal_interface_name,omitempty"`
	CustomExternalInterfaceName *string `json:"custom_external_interface_name,omitempty"`
	SecondaryInternalIPNum      *int32  `json:"secondary_internal_ip_num,omitempty"`
}
    type CreateCloudServerReq ¶
type CreateCloudServerReq struct {
	// 边缘服务名称
	// in:body
	CloudServerName string `json:"cloudserver_name,omitempty" query:"cloudserver_name"`
	// 镜像 ID
	// in:body
	ImageID string `json:"image_id,omitempty" query:"image_id"`
	// 规格名称
	// in:body
	SpecName string `json:"spec_name,omitempty" query:"spec_name"`
	// 云服务描述
	// in:body
	CloudServerDesc *string `json:"cloud_server_desc,omitempty" query:"cloud_server_desc"`
	// 存储配置
	// in:body
	StorageConfig *StorageConfig `json:"storage_config,omitempty" query:"storage_config"`
	// 网络配置
	// in:body
	NetworkConfig *CloudServerNetworkConfig `json:"network_config,omitempty" query:"network_config"`
	// 密钥配置
	// in:body
	SecretConfig *SecretConfig `json:"secret_config,omitempty" query:"secret_config"`
	// 通用数据
	// in:body
	CustomData *CustomData `json:"custom_data,omitempty" query:"custom_data"`
	// 计费配置
	// in:body
	BillingConfig *CloudServerBillingConfigs `json:"billing_config,omitempty" query:"billing_config"`
	// 实例区域个数
	// in:body
	InstanceAreaNums []*InstanceAreaNum `json:"instance_area_nums,omitempty" query:"instance_area_nums"`
	// 调度策略
	// in:body
	ScheduleStrategy *ScheduleStrategy `json:"schedule_strategy,omitempty" query:"schedule_strategy"`
	// 高级配置
	// in:body
	AdvancedConfiguration *AdvancedConfiguration `json:"advanced_configuration,omitempty" query:"advanced_configuration"`
	// 外挂VPC配置
	// in:body
	AttachedPvcConfig *AttachedPvcConfig `json:"attached_pvc_config,omitempty" query:"attached_pvc_config"`
	// in:body
	DisableVga *bool `json:"disable_vga,omitempty" query:"disable_vga"`
	// in:body
	ImageBootMode *IMAGEBOOTMODE `json:"image_boot_mode,omitempty" query:"image_boot_mode"`
}
    type CreateCloudServerResp ¶
type CreateCloudServerResp struct {
	ResponseMetadata VolcResponseMetadata    `json:"ResponseMetadata"`
	Result           CreateCloudServerResult `json:"Result"`
}
    type CreateCloudServerResult ¶
type CreateCloudServerResult struct {
	CloudServerIdentity string `json:"cloud_server_identity"`
}
    type CreateEbsInstancesReq ¶ added in v1.0.118
type CreateEbsInstancesReq struct {
	ClusterName string      `thrift:"cluster_name,3,required" frugal:"3,required,string" json:"cluster_name"`
	ChargeType  ChargeType  `thrift:"charge_type,4,required" frugal:"4,required,string" json:"charge_type"`
	EbsType     EbsType     `thrift:"ebs_type,5,required" frugal:"5,required,string" json:"ebs_type"`
	StorageType StorageType `thrift:"storage_type,6,required" frugal:"6,required,string" json:"storage_type"`
	Capacity    string      `thrift:"capacity,7,required" frugal:"7,required,string" json:"capacity"`
	Number      int64       `thrift:"number,8,required" frugal:"8,required,i64" json:"number"`
	Name        string      `thrift:"name,9,required" frugal:"9,required,string" json:"name"`
	Desc        string      `thrift:"desc,10,optional" frugal:"10,optional,string" json:"desc,omitempty"`
}
    type CreateEbsInstancesResp ¶ added in v1.0.118
type CreateEbsInstancesResp struct {
	ResponseMetadata VolcResponseMetadata     `json:"ResponseMetadata"`
	Result           CreateEbsInstancesResult `json:"Result"`
}
    type CreateEbsInstancesResult ¶ added in v1.0.118
type CreateEbsInstancesResult struct {
	EbsIds []string `thrift:"ebs_ids,1,optional" frugal:"1,optional,list<string>" json:"ebs_ids,omitempty"`
}
    type CreateInstanceReq ¶
type CreateInstanceReq struct {
	// in:body
	CloudServerIdentity string `json:"cloud_server_identity" query:"cloud_server_identity"`
	// in:body
	InstanceAreaNums []*InstanceAreaNum `json:"instance_area_nums" query:"instance_area_nums"`
}
    type CreateInstanceResp ¶
type CreateInstanceResp struct {
	ResponseMetadata VolcResponseMetadata `json:"ResponseMetadata"`
	Result           CreateInstanceResult `json:"Result"`
}
    type CreateInstanceResult ¶
type CreateInstanceResult struct {
	InstanceIDList []string `json:"instance_id_list,omitempty"`
}
    type CustomData ¶
type DeleteCloudServerReq ¶
type DeleteCloudServerReq struct {
	// 云服务 id
	// required:true
	// in:body
	CloudServerID string `json:"cloud_server_id" query:"cloud_server_id"`
}
    type DeleteCloudServerResp ¶
type DeleteCloudServerResp struct {
	ResponseMetadata VolcResponseMetadata    `json:"ResponseMetadata"`
	Result           DeleteCloudServerResult `json:"Result"`
}
    type DeleteCloudServerResult ¶
type DeleteCloudServerResult struct{}
    type DeleteEbsInstanceReq ¶ added in v1.0.118
type DeleteEbsInstanceReq struct {
	EbsIds []string `thrift:"ebs_ids,3,required" frugal:"3,required,list<string>" json:"ebs_ids"`
}
    type DeleteEbsInstanceResp ¶ added in v1.0.118
type DeleteEbsInstanceResp struct {
	ResponseMetadata VolcResponseMetadata    `json:"ResponseMetadata"`
	Result           DeleteEbsInstanceResult `json:"Result"`
}
    type DeleteEbsInstanceResult ¶ added in v1.0.118
type DeleteEbsInstanceResult struct {
}
    type DetachEbsReq ¶ added in v1.0.118
type DetachEbsReq struct {
	EbsIds []string `thrift:"ebs_ids,3,required" frugal:"3,required,list<string>" json:"ebs_ids"`
}
    type DetachEbsResp ¶ added in v1.0.118
type DetachEbsResp struct {
	ResponseMetadata VolcResponseMetadata `json:"ResponseMetadata"`
	Result           DetachEbsResult      `json:"Result"`
}
    type DetachEbsResult ¶ added in v1.0.118
type DetachEbsResult struct {
}
    type DiskSpecWithNum ¶
type EbsAttachment ¶ added in v1.0.118
type EbsAttachment struct {
	EbsID   string         `thrift:"ebs_id,1,required" frugal:"1,required,string" json:"ebs_id"`
	ResType AttachmentType `thrift:"res_type,2,required" frugal:"2,required,string" json:"res_type"`
	ResID   string         `thrift:"res_id,3,required" frugal:"3,required,string" json:"res_id"`
	ResName *string        `thrift:"res_name,4,optional" frugal:"4,optional,string" json:"res_name,omitempty"`
}
    type EbsCluster ¶ added in v1.0.118
type EbsCluster struct {
	ClusterName string `thrift:"cluster_name,1,required" frugal:"1,required,string" json:"cluster_name"`
	Country     string `thrift:"country,2,required" frugal:"2,required,string" json:"country"`
	Region      string `thrift:"region,3,required" frugal:"3,required,string" json:"region"`
	Province    string `thrift:"province,4,required" frugal:"4,required,string" json:"province"`
	City        string `thrift:"city,5,required" frugal:"5,required,string" json:"city"`
	Isp         string `thrift:"isp,6,required" frugal:"6,required,string" json:"isp"`
	Alias       string `thrift:"alias,7,required" frugal:"7,required,string" json:"alias"`
}
    type EbsInstance ¶ added in v1.0.118
type EbsInstance struct {
	AccountID      int64          `thrift:"account_id,1,required" frugal:"1,required,i64" json:"account_id"`
	EbsID          string         `thrift:"ebs_id,2,required" frugal:"2,required,string" json:"ebs_id"`
	EbsName        string         `thrift:"ebs_name,3,required" frugal:"3,required,string" json:"ebs_name"`
	Status         EbsStatus      `thrift:"status,4,required" frugal:"4,required,string" json:"status"`
	Cluster        *EbsCluster    `thrift:"cluster,5,required" frugal:"5,required,EbsCluster" json:"cluster"`
	StorageType    StorageType    `thrift:"storage_type,6,required" frugal:"6,required,string" json:"storage_type"`
	Capacity       string         `thrift:"capacity,7,required" frugal:"7,required,string" json:"capacity"`
	EbsType        EbsType        `thrift:"ebs_type,8,required" frugal:"8,required,string" json:"ebs_type"`
	ChargeType     ChargeType     `thrift:"charge_type,9,required" frugal:"9,required,string" json:"charge_type"`
	Desc           *string        `thrift:"desc,10,optional" frugal:"10,optional,string" json:"desc,omitempty"`
	Attachment     *EbsAttachment `thrift:"attachment,11,optional" frugal:"11,optional,EbsAttachment" json:"attachment,omitempty"`
	DeleteWithVeen *bool          `thrift:"delete_with_veen,12,optional" frugal:"12,optional,bool" json:"delete_with_veen,omitempty"`
	StartTime      *int64         `thrift:"start_time,128,optional" frugal:"128,optional,i64" json:"start_time,omitempty"`
	EndTime        *int64         `thrift:"end_time,129,optional" frugal:"129,optional,i64" json:"end_time,omitempty"`
	CreateTime     int64          `thrift:"create_time,130,required" frugal:"130,required,i64" json:"create_time"`
	UpdateTime     int64          `thrift:"update_time,131,required" frugal:"131,required,i64" json:"update_time"`
}
    type EbsOrderOption ¶ added in v1.0.118
type EbsPagination ¶ added in v1.0.118
type GetCloudServerReq ¶
type GetCloudServerReq struct {
	// 云服务 id
	// required:true
	CloudServerID string `json:"cloud_server_id" query:"cloud_server_id"`
}
    type GetCloudServerResp ¶
type GetCloudServerResp struct {
	ResponseMetadata VolcResponseMetadata `json:"ResponseMetadata"`
	Result           GetCloudServerResult `json:"Result"`
}
    type GetCloudServerResult ¶
type GetCloudServerResult struct {
	CloudServer *CloudServer `json:"cloud_server,omitempty"`
}
    type GetEbsInstanceReq ¶ added in v1.0.118
type GetEbsInstanceResp ¶ added in v1.0.118
type GetEbsInstanceResp struct {
	ResponseMetadata VolcResponseMetadata `json:"ResponseMetadata"`
	Result           GetEbsInstanceResult `json:"Result"`
}
    type GetEbsInstanceResult ¶ added in v1.0.118
type GetEbsInstanceResult struct {
	EbsInstance *EbsInstance `json:"ebs_instance,omitempty"`
}
    type GetInstanceCloudDiskInfoReq ¶
type GetInstanceCloudDiskInfoReq struct {
	// required: true
	InstanceIdentity string `json:"instance_identity" query:"instance_identity" validate:"required"`
}
    type GetInstanceCloudDiskInfoResp ¶
type GetInstanceCloudDiskInfoResp struct {
	ResponseMetadata VolcResponseMetadata           `json:"ResponseMetadata"`
	Result           GetInstanceCloudDiskInfoResult `json:"Result"`
}
    type GetInstanceCloudDiskInfoResult ¶
type GetInstanceCloudDiskInfoResult struct {
	InstanceIdentity      string           `json:"instance_identity"`
	InstanceName          string           `json:"instance_name"`
	Arch                  string           `json:"arch"`
	SystemCloudDiskInfo   *CloudDiskInfo   `json:"system_cloud_disk_info"`
	DataCloudDiskInfoList []*CloudDiskInfo `json:"data_cloud_disk_info_list"`
}
    type GetInstanceReq ¶
type GetInstanceReq struct {
	InstanceIdentity string `json:"instance_identity" query:"instance_identity" validate:"required"`
}
    type GetInstanceResp ¶
type GetInstanceResp struct {
	ResponseMetadata VolcResponseMetadata `json:"ResponseMetadata"`
	Result           GetInstanceResult    `json:"Result"`
}
    type GetInstanceResult ¶
type GetInstanceResult struct {
	Instance *VeenInstance `json:"instance,omitempty"`
}
    type GpuConfig ¶
type GpuConfig struct {
	Gpus []*GpuSpecWithNum `json:"gpus"`
}
    type GpuSpecWithNum ¶
type IMAGEBOOTMODE ¶
type IMAGEBOOTMODE = string
type INSTANCEARCH ¶
type INSTANCEARCH = string
type IP ¶
type IP struct {
	Addr      string    `thrift:"addr,1,required" frugal:"1,required,string" json:"addr"`
	Mask      string    `thrift:"mask,2,required" frugal:"2,required,string" json:"mask"`
	Isp       string    `thrift:"isp,3,required" frugal:"3,required,string" json:"isp"`
	IPVersion IPVERSION `thrift:"ip_version,4,required" frugal:"4,required,string" json:"ip_version"`
	Primary   *bool     `thrift:"primary,5,optional" frugal:"5,optional,bool" json:"primary,omitempty"`
}
    type ImageConfig ¶
type ImageConfig struct {
	ImageIdentity string         `json:"image_identity"`
	ImageName     string         `json:"image_name"`
	SystemArch    *string        `json:"system_arch,omitempty"`
	SystemType    *string        `json:"system_type,omitempty"`
	SystemBit     *string        `json:"system_bit,omitempty"`
	SystemVersion *string        `json:"system_version,omitempty"`
	Property      *string        `json:"property,omitempty"`
	DisableVga    *bool          `json:"disable_vga,omitempty"`
	ImageBootMode *IMAGEBOOTMODE `json:"image_boot_mode,omitempty"`
}
    type InstanceAreaNum ¶
type InstanceAreaNum struct {
	AreaName     string       `json:"area_name"`
	Isp          string       `json:"isp"`
	ClusterName  *string      `json:"cluster_name,omitempty"`
	ClusterAlias *string      `json:"cluster_alias,omitempty"`
	VpcIdentity  *string      `json:"vpc_identity,omitempty"`
	Num          int32        `json:"num"`
	Region       *string      `json:"region,omitempty"`
	City         *string      `json:"city,omitempty"`
	DefaultIsp   *string      `json:"default_isp,omitempty"`
	MultiIPMode  *MULTIIPMODE `json:"multi_ip_mode,omitempty"`
}
    type InstanceTypeConfig ¶
type InstanceTypeConfig struct {
	InstanceType           string         `json:"instance_type"`
	InstanceTypeFamily     string         `json:"instance_type_family"`
	CPU                    int16          `json:"cpu"`
	Memory                 int16          `json:"memory"`
	Gpu                    int64          `json:"gpu"`
	GpuSpec                string         `json:"gpu_spec"`
	InstanceTypeFamilyName string         `json:"instance_type_family_name"`
	StorageInfo            []*StorageInfo `json:"storage_info,omitempty"`
	Arch                   *INSTANCEARCH  `json:"arch,omitempty"`
}
    type ListAvailableResourceInfoResp ¶
type ListAvailableResourceInfoResp struct {
	ResponseMetadata VolcResponseMetadata            `json:"ResponseMetadata"`
	Result           ListAvailableResourceInfoResult `json:"Result"`
}
    type ListAvailableResourceInfoResult ¶
type ListAvailableResourceInfoResult struct {
	Regions []RegionInfo `json:"regions"`
}
    type ListCloudServersReq ¶
type ListCloudServersReq struct {
	// 模糊搜索名
	FuzzyName string `json:"fuzzy_name" query:"fuzzy_name"`
	Pagination
}
    type ListCloudServersResp ¶
type ListCloudServersResp struct {
	ResponseMetadata VolcResponseMetadata   `json:"ResponseMetadata"`
	Result           ListCloudServersResult `json:"Result"`
}
    type ListCloudServersResult ¶
type ListCloudServersResult struct {
	CloudServers []*CloudServer `json:"cloud_servers"`
	TotalCount   int64          `json:"total_count"`
}
    type ListEbsInstancesReq ¶ added in v1.0.118
type ListEbsInstancesReq struct {
	WithAttachmentInfo  bool           `json:"with_attachment_info,omitempty" query:"with_attachment_info"`
	ResIds              string         `json:"res_ids,omitempty" query:"res_ids"`
	EbsIds              string         `json:"ebs_ids,omitempty" query:"ebs_ids"`
	EbsNames            string         `json:"ebs_names,omitempty" query:"ebs_names"`
	Regions             string         `json:"regions,omitempty" query:"regions"`
	ClusterNames        string         `json:"cluster_names,omitempty" query:"clusters_names"`
	Status              EbsStatus      `json:"status,omitempty" query:"status"`
	EbsType             EbsType        `json:"ebs_type,omitempty" query:"ebs_type"`
	ChargeType          ChargeType     `json:"charge_type,omitempty" query:"charge_type"`
	FuzzyVeenExternalIP string         `json:"fuzzy_veen_external_ip,omitempty" query:"fuzzy_veen_external_ip"`
	PageOption          EbsPagination  `json:"page_option,omitempty" query:"page_option"`
	OrderOption         EbsOrderOption `json:"order_option,omitempty" query:"order_option"`
}
    type ListEbsInstancesResp ¶ added in v1.0.118
type ListEbsInstancesResp struct {
	ResponseMetadata VolcResponseMetadata   `json:"ResponseMetadata"`
	Result           ListEbsInstancesResult `json:"Result"`
}
    type ListEbsInstancesResult ¶ added in v1.0.118
type ListEbsInstancesResult struct {
	EbsInstances []*EbsInstance `json:"ebs_instances,omitempty"`
	TotalCnt     *int64         `json:"total_cnt,omitempty"`
}
    type ListInstanceTypesReq ¶
type ListInstanceTypesReq struct {
}
    type ListInstanceTypesResp ¶
type ListInstanceTypesResp struct {
	ResponseMetadata VolcResponseMetadata    `json:"ResponseMetadata"`
	Result           ListInstanceTypesResult `json:"Result"`
}
    type ListInstanceTypesResult ¶
type ListInstanceTypesResult struct {
	InstanceTypeConfigs []*InstanceTypeConfig `json:"instance_type_configs"`
}
    type ListInstancesReq ¶
type ListInstancesReq struct {
	Countries             string `json:"countries,omitempty" query:"countries"`
	Regions               string `json:"regions,omitempty" query:"regions"`
	Cities                string `json:"cities,omitempty" query:"cities"`
	Isps                  string `json:"isps,omitempty" query:"isps"`
	Status                string `json:"status,omitempty" query:"status"`
	ClusterNames          string `json:"cluster_names,omitempty" query:"cluster_names"`
	CloudServerIdentities string `json:"cloud_server_identities,omitempty" query:"cloud_server_identities"`
	Ips                   string `json:"ips,omitempty" query:"ips"`
	Cidrs                 string `json:"cidrs,omitempty" query:"cidrs"`
	SpecNames             string `json:"spec_names,omitempty" query:"spec_names"`
	InstanceIdentities    string `json:"instance_identities,omitempty" query:"instance_identities"`
	InstanceUuids         string `json:"instance_uuids,omitempty" query:"instance_uuids"`
	InstanceNames         string `json:"instance_names,omitempty" query:"instance_names"`
	FuzzyIPWithDots       string `json:"fuzzy_ip_with_dots,omitempty" query:"fuzzy_ip_with_dots"`
	VPCIdentities         string `json:"vpc_identities,omitempty" query:"vpc_identities"`
	Pagination
}
    type ListInstancesResp ¶
type ListInstancesResp struct {
	ResponseMetadata VolcResponseMetadata `json:"ResponseMetadata"`
	Result           ListInstancesResult  `json:"Result"`
}
    type ListInstancesResult ¶
type ListInstancesResult struct {
	Instances  []*VeenInstance `json:"instances"`
	TotalCount int64           `json:"total_count"`
}
    type MULTIIPMODE ¶
type MULTIIPMODE = string
type NetworkConfig ¶
type NetworkConfig struct {
	InternalInterface           *NetworkInterfaceConfig   `thrift:"internal_interface,1,required" frugal:"1,required,NetworkInterfaceConfig" json:"internal_interface"`
	ExternalInterface           *NetworkInterfaceConfig   `thrift:"external_interface,2,required" frugal:"2,required,NetworkInterfaceConfig" json:"external_interface"`
	ExternalInterfaces          []*NetworkInterfaceConfig `thrift:"external_interfaces,8,optional" frugal:"8,optional,list<NetworkInterfaceConfig>" json:"external_interfaces,omitempty"`
	VfPassthrough               *bool                     `thrift:"vf_passthrough,3,optional" frugal:"3,optional,bool" json:"vf_passthrough,omitempty"`
	DisableIpv4                 *bool                     `thrift:"disable_ipv4,11,optional" frugal:"11,optional,bool" json:"disable_ipv4,omitempty"`
	EnableIpv6                  *bool                     `thrift:"enable_ipv6,4,optional" frugal:"4,optional,bool" json:"enable_ipv6,omitempty"`
	DefaultIsp                  *string                   `thrift:"default_isp,5,optional" frugal:"5,optional,string" json:"default_isp,omitempty"`
	VlanVfPassthrough           *bool                     `thrift:"vlan_vf_passthrough,6,optional" frugal:"6,optional,bool" json:"vlan_vf_passthrough,omitempty"`
	MultiIPMode                 *MULTIIPMODE              `thrift:"multi_ip_mode,7,optional" frugal:"7,optional,string" json:"multi_ip_mode,omitempty"`
	WantedSecondaryIPNum        *int32                    `thrift:"wanted_secondary_ip_num,9,optional" frugal:"9,optional,i32" json:"wanted_secondary_ip_num,omitempty"`
	ActualSecondaryIPNum        *int32                    `thrift:"actual_secondary_ip_num,10,optional" frugal:"10,optional,i32" json:"actual_secondary_ip_num,omitempty"`
	CustomInternalInterfaceName *string                   `` /* 127-byte string literal not displayed */
	CustomExternalInterfaceName *string                   `` /* 127-byte string literal not displayed */
}
    type NetworkInterfaceConfig ¶
type NetworkInterfaceConfig struct {
	IPAddr             string  `thrift:"ip_addr,1,required" frugal:"1,required,string" json:"ip_addr"`
	Mask               string  `thrift:"mask,2,required" frugal:"2,required,string" json:"mask"`
	IP6Addr            *string `thrift:"ip6_addr,5,optional" frugal:"5,optional,string" json:"ip6_addr,omitempty"`
	Mask6              *string `thrift:"mask6,6,optional" frugal:"6,optional,string" json:"mask6,omitempty"`
	Ips                []*IP   `thrift:"ips,7,optional" frugal:"7,optional,list<IP>" json:"ips,omitempty"`
	MacAddr            string  `thrift:"mac_addr,3,required" frugal:"3,required,string" json:"mac_addr"`
	BandwidthPeak      string  `thrift:"bandwidth_peak,4,required" frugal:"4,required,string" json:"bandwidth_peak"`
	BandwidthPackageID *int64  `thrift:"bandwidth_package_id,8,optional" frugal:"8,optional,i64" json:"bandwidth_package_id,omitempty"`
}
    type OfflineInstancesReq ¶
type OfflineInstancesResp ¶
type OfflineInstancesResp struct {
	ResponseMetadata VolcResponseMetadata   `json:"ResponseMetadata"`
	Result           OfflineInstancesResult `json:"Result"`
}
    type OfflineInstancesResult ¶
type OfflineInstancesResult struct{}
    type Pagination ¶
type RebootCloudServerReq ¶
type RebootCloudServerReq struct {
	// 云服务 id
	// required:true
	// in:body
	CloudServerID string `json:"cloud_server_id" query:"cloud_server_id"`
}
    type RebootCloudServerResp ¶
type RebootCloudServerResp struct {
	ResponseMetadata VolcResponseMetadata    `json:"ResponseMetadata"`
	Result           RebootCloudServerResult `json:"Result"`
}
    type RebootCloudServerResult ¶
type RebootCloudServerResult struct{}
    type RebootInstancesReq ¶
type RebootInstancesReq struct {
	// in:body
	InstanceIdentities []string `json:"instance_identities" query:"instance_identities" validate:"required,gt=0,dive,required"`
}
    type RebootInstancesResp ¶
type RebootInstancesResp struct {
	ResponseMetadata VolcResponseMetadata  `json:"ResponseMetadata"`
	Result           RebootInstancesResult `json:"Result"`
}
    type RebootInstancesResult ¶
type RebootInstancesResult struct{}
    type RegionInfo ¶
type ResetLoginCredentialReq ¶
type ResetLoginCredentialReq struct {
	// in:body
	InstanceIdentity string `json:"instance_identity" query:"instance_identity" validate:"required"`
	// custom: 2, ssh: 3
	// in:body
	SecretType int64 `json:"secret_type" query:"secret_type" validate:"required"`
	// secret_data is key_pair_id when secret_type is ssh.
	// in:body
	SecretData string `json:"secret_data" query:"secret_data" validate:"required"`
}
    type ResetLoginCredentialResp ¶
type ResetLoginCredentialResp struct {
	ResponseMetadata VolcResponseMetadata       `json:"ResponseMetadata"`
	Result           ResetLoginCredentialResult `json:"Result"`
}
    type ResetLoginCredentialResult ¶
type ResetLoginCredentialResult struct{}
    type ScaleCloudDiskInfo ¶
type ScaleEbsInstanceCapacityReq ¶ added in v1.0.118
type ScaleEbsInstanceCapacityResp ¶ added in v1.0.118
type ScaleEbsInstanceCapacityResp struct {
	ResponseMetadata VolcResponseMetadata           `json:"ResponseMetadata"`
	Result           ScaleEbsInstanceCapacityResult `json:"Result"`
}
    type ScaleEbsInstanceCapacityResult ¶ added in v1.0.118
type ScaleEbsInstanceCapacityResult struct {
}
    type ScaleInstanceCloudDiskCapacityReq ¶
type ScaleInstanceCloudDiskCapacityReq struct {
	// required: true
	// in: body
	InstanceIdentity string `json:"instance_identity" validate:"required"`
	// required: true
	// in: body
	ScaleSystemCloudDiskInfo *ScaleCloudDiskInfo `json:"scale_system_cloud_disk_info" validate:"required"`
	// required: true
	// in: body
	ScaleDataCloudDiskInfoList []*ScaleCloudDiskInfo `json:"scale_data_cloud_disk_info_list" validate:"required"`
	// required: true
	// in: body
	WithReboot *bool `json:"with_reboot" validate:"required"`
}
    type ScaleInstanceCloudDiskCapacityResp ¶
type ScaleInstanceCloudDiskCapacityResp struct {
	ResponseMetadata VolcResponseMetadata                 `json:"ResponseMetadata"`
	Result           ScaleInstanceCloudDiskCapacityResult `json:"Result"`
}
    type ScaleInstanceCloudDiskCapacityResult ¶
type ScaleInstanceCloudDiskCapacityResult struct{}
    type ScheduleStrategy ¶
type SecretConfig ¶
type SecretConfig struct {
	SecretType SecretType `json:"secret_type"`
	SecretData *string    `json:"secret_data,omitempty"`
	SSHKeyName *string    `json:"ssh_key_name,omitempty"`
}
    type SecretType ¶
type SecretType int64
const ( SecretType_Random SecretType = 1 SecretType_Custom SecretType = 2 SecretType_SSH SecretType = 3 SecretType_None SecretType = 4 )
type SetInstanceNameReq ¶
type SetInstanceNameResp ¶
type SetInstanceNameResp struct {
	ResponseMetadata VolcResponseMetadata  `json:"ResponseMetadata"`
	Result           SetInstanceNameResult `json:"Result"`
}
    type SetInstanceNameResult ¶
type SetInstanceNameResult struct{}
    type StartCloudServerReq ¶
type StartCloudServerReq struct {
	// 云服务 id
	// required:true
	// in:body
	CloudServerID string `json:"cloud_server_id" query:"cloud_server_id"`
}
    type StartCloudServerResp ¶
type StartCloudServerResp struct {
	ResponseMetadata VolcResponseMetadata   `json:"ResponseMetadata"`
	Result           StartCloudServerResult `json:"Result"`
}
    type StartCloudServerResult ¶
type StartCloudServerResult struct{}
    type StartInstancesReq ¶
type StartInstancesReq struct {
	// in:body
	InstanceIdentities []string `json:"instance_identities" query:"instance_identities" validate:"required,gt=0,dive,required"`
}
    type StartInstancesResp ¶
type StartInstancesResp struct {
	ResponseMetadata VolcResponseMetadata `json:"ResponseMetadata"`
	Result           StartInstancesResult `json:"Result"`
}
    type StartInstancesResult ¶
type StartInstancesResult struct{}
    type StopCloudServerReq ¶
type StopCloudServerReq struct {
	// 云服务 id
	// required:true
	// in:body
	CloudServerID string `json:"cloud_server_id" query:"cloud_server_id"`
}
    type StopCloudServerResp ¶
type StopCloudServerResp struct {
	ResponseMetadata VolcResponseMetadata  `json:"ResponseMetadata"`
	Result           StopCloudServerResult `json:"Result"`
}
    type StopCloudServerResult ¶
type StopCloudServerResult struct{}
    type StopInstancesReq ¶
type StopInstancesReq struct {
	// in:body
	InstanceIdentities []string `json:"instance_identities" query:"instance_identities" validate:"required,gt=0,dive,required"`
}
    type StopInstancesResp ¶
type StopInstancesResp struct {
	ResponseMetadata VolcResponseMetadata `json:"ResponseMetadata"`
	Result           StopInstancesResult  `json:"Result"`
}
    type StopInstancesResult ¶
type StopInstancesResult struct{}
    type StorageConfig ¶
type StorageConfig struct {
	SystemDisk     *DiskSpec          `json:"system_disk"`
	DataDisk       *DiskSpec          `json:"data_disk,omitempty"`
	DataLocalDisks []*DiskSpecWithNum `json:"data_local_disks,omitempty"`
	DataDiskList   []*DiskSpec        `json:"data_disk_list,omitempty"`
}
    type StorageInfo ¶
type StorageInfo struct {
	LocalStorageCategory     string  `json:"local_storage_category"`
	LocalStorageCapacity     int64   `json:"local_storage_capacity"`
	LocalStorageAmount       int64   `json:"local_storage_amount"`
	LocalStorageUnit         string  `json:"local_storage_unit"`
	LocalStorageResourceName *string `json:"local_storage_resource_name,omitempty"`
	Feature                  *int64  `json:"feature,omitempty"`
}
    type StorageType ¶ added in v1.0.118
type StorageType = string
type Veen ¶
func NewInstance ¶
func (*Veen) AttachEbs ¶ added in v1.0.118
func (v *Veen) AttachEbs(req *AttachEbsReq) (*AttachEbsResp, error)
func (*Veen) CreateCloudServer ¶
func (v *Veen) CreateCloudServer(req *CreateCloudServerReq) (*CreateCloudServerResp, error)
func (*Veen) CreateEbsInstances ¶ added in v1.0.118
func (v *Veen) CreateEbsInstances(req *CreateEbsInstancesReq) (*CreateEbsInstancesResp, error)
func (*Veen) CreateInstance ¶
func (v *Veen) CreateInstance(req *CreateInstanceReq) (*CreateInstanceResp, error)
func (*Veen) DeleteCloudServer ¶
func (v *Veen) DeleteCloudServer(req *DeleteCloudServerReq) (*DeleteCloudServerResp, error)
func (*Veen) DeleteEbsInstance ¶ added in v1.0.118
func (v *Veen) DeleteEbsInstance(req *DeleteEbsInstanceReq) (*DeleteEbsInstanceResp, error)
func (*Veen) DetachEbs ¶ added in v1.0.118
func (v *Veen) DetachEbs(req *DetachEbsReq) (*DetachEbsResp, error)
func (*Veen) GetCloudServer ¶
func (v *Veen) GetCloudServer(req *GetCloudServerReq) (*GetCloudServerResp, error)
func (*Veen) GetEbsInstance ¶ added in v1.0.118
func (v *Veen) GetEbsInstance(req *GetEbsInstanceReq) (*GetEbsInstanceResp, error)
func (*Veen) GetInstance ¶
func (v *Veen) GetInstance(req *GetInstanceReq) (*GetInstanceResp, error)
func (*Veen) GetInstanceCloudDiskInfo ¶
func (v *Veen) GetInstanceCloudDiskInfo(req *GetInstanceCloudDiskInfoReq) (*GetInstanceCloudDiskInfoResp, error)
func (*Veen) GetServiceInfo ¶
func (v *Veen) GetServiceInfo(env string) *base.ServiceInfo
GetServiceInfo interface
func (*Veen) ListAvailableResourceInfo ¶
func (v *Veen) ListAvailableResourceInfo(req *ListAvailableResourceInfoReq) (*ListAvailableResourceInfoResp, error)
func (*Veen) ListCloudServers ¶
func (v *Veen) ListCloudServers(req *ListCloudServersReq) (*ListCloudServersResp, error)
func (*Veen) ListEbsInstances ¶ added in v1.0.118
func (v *Veen) ListEbsInstances(req *ListEbsInstancesReq) (*ListEbsInstancesResp, error)
func (*Veen) ListInstanceTypes ¶
func (v *Veen) ListInstanceTypes(req *ListInstanceTypesReq) (*ListInstanceTypesResp, error)
func (*Veen) ListInstances ¶
func (v *Veen) ListInstances(req *ListInstancesReq) (*ListInstancesResp, error)
func (*Veen) OfflineInstances ¶
func (v *Veen) OfflineInstances(req *OfflineInstancesReq) (*OfflineInstancesResp, error)
func (*Veen) RebootCloudServer ¶
func (v *Veen) RebootCloudServer(req *RebootCloudServerReq) (*RebootCloudServerResp, error)
func (*Veen) RebootInstances ¶
func (v *Veen) RebootInstances(req *RebootInstancesReq) (*RebootInstancesResp, error)
func (*Veen) ResetLoginCredential ¶
func (v *Veen) ResetLoginCredential(req *ResetLoginCredentialReq) (*ResetLoginCredentialResp, error)
func (*Veen) ScaleEbsInstanceCapacity ¶ added in v1.0.118
func (v *Veen) ScaleEbsInstanceCapacity(req *ScaleEbsInstanceCapacityReq) (*ScaleEbsInstanceCapacityResp, error)
func (*Veen) ScaleInstanceCloudDiskCapacity ¶
func (v *Veen) ScaleInstanceCloudDiskCapacity(req *ScaleInstanceCloudDiskCapacityReq) (*ScaleInstanceCloudDiskCapacityResp, error)
func (*Veen) SetInstanceName ¶
func (v *Veen) SetInstanceName(req *SetInstanceNameReq) (*SetInstanceNameResp, error)
func (*Veen) StartCloudServer ¶
func (v *Veen) StartCloudServer(req *StartCloudServerReq) (*StartCloudServerResp, error)
func (*Veen) StartInstances ¶
func (v *Veen) StartInstances(req *StartInstancesReq) (*StartInstancesResp, error)
func (*Veen) StopCloudServer ¶
func (v *Veen) StopCloudServer(req *StopCloudServerReq) (*StopCloudServerResp, error)
func (*Veen) StopInstances ¶
func (v *Veen) StopInstances(req *StopInstancesReq) (*StopInstancesResp, error)
type VeenCluster ¶
type VeenInstance ¶
type VeenInstance struct {
	InstanceIdentity    string         `json:"instance_identity"`
	InstanceUUID        *string        `json:"instance_uuid,omitempty"`
	InstanceName        string         `json:"instance_name"`
	LoadType            *LoadType      `json:"load_type,omitempty"`
	CloudServerIdentity string         `json:"cloud_server_identity"`
	CloudServerName     string         `json:"cloud_server_name"`
	VpcIdentity         string         `json:"vpc_identity"`
	Namespace           *string        `json:"namespace"`
	SubnetCidr          string         `json:"subnet_cidr"`
	Cluster             *VeenCluster   `json:"cluster"`
	Spec                string         `json:"spec"`
	SpecDisplay         *string        `json:"spec_display,omitempty"`
	CPU                 string         `json:"cpu"`
	Mem                 string         `json:"mem"`
	Status              VeenSTATUS     `json:"status"`
	StatusReason        *string        `json:"status_reason,omitempty"`
	Phase               *string        `json:"phase,omitempty"`
	Creator             string         `json:"creator"`
	Image               *ImageConfig   `json:"image"`
	Storage             *StorageConfig `json:"storage"`
	Network             *NetworkConfig `json:"network"`
	Gpu                 *GpuConfig     `json:"gpu,omitempty"`
	Secret              *SecretConfig  `json:"secret,omitempty"`
	Account             *Account       `json:"account,omitempty"`
	InstanceDesc        *string        `json:"instance_desc,omitempty"`
	HostName            *string        `json:"host_name,omitempty"`
	Arch                *string        `json:"arch,omitempty"`
	ImageBootMode       *IMAGEBOOTMODE `json:"image_boot_mode,omitempty"`
	StartTime           int64          `json:"start_time"`
	EndTime             int64          `json:"end_time"`
	CreateTime          int64          `json:"create_time"`
	UpdateTime          int64          `json:"update_time"`
	DeleteTime          *int64         `json:"delete_time,omitempty"`
}
    type VeenSTATUS ¶
type VeenSTATUS = string
 Click to show internal directories. 
   Click to hide internal directories.