Documentation
¶
Overview ¶
Package api defines all APIs supported by the BEC service of BCE.
util.go - define the utilities for api package of BEC service
Index ¶
- Constants
- func Delete(cli bce.Client, dhr *PostHttpReq) error
- func Get(cli bce.Client, ghr *GetHttpReq) error
- func GetAppBlbURI() string
- func GetBachServiceDeleteURI() string
- func GetBachServiceOperateURI() string
- func GetDeleteServiceURI(serviceId string) string
- func GetDeploySetURI() string
- func GetDeploymentDetailURI(deploymentId string) string
- func GetDeploymentMetricsURI(deploymentId string) string
- func GetImportImageURI() string
- func GetLoadBalancerBatchURI() string
- func GetLoadBalancerMonitorURI() string
- func GetLoadBalancerURI() string
- func GetNodeInfoURI() string
- func GetPodMetricsURI(podId string) string
- func GetRouteURI() string
- func GetServiceDetailURI(serviceId string) string
- func GetServiceMetricsURI(serviceId string) string
- func GetServiceURI() string
- func GetStartServiceURI(serviceId, action string) string
- func GetSubnetURI() string
- func GetUpdateServiceURI(serviceId string) string
- func GetVmImageURI() string
- func GetVmInstanceURI() string
- func GetVmMonitorURI() string
- func GetVmServiceActionURI(serviceId, action string) string
- func GetVmServiceMetricsURI(serviceId, metricsType string) string
- func GetVmServiceMonitorURI() string
- func GetVmURI() string
- func GetVpcURI() string
- func Post(cli bce.Client, phr *PostHttpReq) error
- func PostOrPut(cli bce.Client, phr *PostHttpReq, req *bce.BceRequest) error
- func Put(cli bce.Client, phr *PostHttpReq) error
- type ActionInfoVo
- type ActionType
- type AppBlbDetails
- type AppBlbLTcpListenerDetail
- type AppBlbListResponse
- type AppBlbListener
- type AppBlbUdpListenerDetail
- type AppIpGroupDetail
- type AppPolicyVo
- type AutoRenew
- type BackendPolicy
- type Backends
- type BatchCreateBlbArgs
- type BatchCreateBlbMonitorArg
- type BatchCreateBlbMonitorResult
- type BatchCreateBlbResult
- type BatchDeleteBlbResult
- type BindSecurityGroupInstances
- type BindSecurityGroupInstancesResponse
- type BlbBackendPodBriefVo
- type BlbBindingForm
- type BlbInstanceVo
- type BlbIpGroupMember
- type BlbIpGroupMemberDetail
- type BlbIpGroupMemberResponse
- type BlbListenerPolicy
- type BlbListenerPolicyRule
- type BlbMonitorArgs
- type BlbMonitorListResult
- type BlbMonitorResult
- type CityInfo
- type ConfigFile
- type ContainerDetails
- type CreateAppBlbPoliciesRequest
- type CreateAppBlbRequest
- type CreateAppBlbResponse
- type CreateBecAppBlbTcpListenerRequest
- type CreateBecAppBlbUdpListenerRequest
- type CreateBlbArgs
- type CreateBlbBindingArgs
- type CreateBlbBindingResult
- type CreateBlbIpGroupBackendPolicyRequest
- type CreateBlbIpGroupBackendPolicyResponse
- type CreateBlbIpGroupMemberRequest
- type CreateBlbIpGroupMemberResponse
- type CreateBlbIpGroupRequest
- type CreateBlbIpGroupResponse
- type CreateBlbResult
- type CreateDeploySetArgs
- type CreateDeploySetResponseArgs
- type CreateRouteRuleRequest
- type CreateRouteRuleResult
- type CreateServiceArgs
- type CreateServiceResult
- type CreateSubnetRequest
- type CreateVmImageArgs
- type CreateVmImageResult
- type CreateVmPrivateIpForm
- type CreateVmServiceArgs
- type CreateVmServiceResult
- type CreateVpcRequest
- type DeleteAppBlbPoliciesRequest
- type DeleteBlbBindPodArgs
- type DeleteBlbBindPodResult
- type DeleteBlbIpGroupBackendMemberRequest
- type DeleteBlbIpGroupBackendPolicyRequest
- type DeleteBlbIpGroupRequest
- type DeleteBlbListenerRequest
- type DeleteBlbResult
- type DeleteDeploymentActionInfoVo
- type DeleteVmDeploySetArgs
- type DeleteVmPrivateIpForm
- type DeleteVmServiceArgs
- type DeleteVmServiceResult
- type DeploySetDetails
- type DeploySetVo
- type DeploymentInstance
- type DeploymentResourceBriefVo
- type DiskType
- type DnsConfig
- type EmptyDir
- type GetBecAppBlbListenerRequest
- type GetBecAppBlbTcpListenerResponse
- type GetBecAppBlbUdpListenerResponse
- type GetBecAvailableNodeInfoVoResult
- type GetBlbBackendBindingStsListResult
- type GetBlbBackendPodListResult
- type GetBlbIpGroupListRequest
- type GetBlbIpGroupListResponse
- type GetBlbIpGroupMemberListRequest
- type GetBlbIpGroupMemberListResponse
- type GetBlbIpGroupPolicyListRequest
- type GetBlbIpGroupPolicyListResponse
- type GetBlbListResult
- type GetBlbListenerPolicyRequest
- type GetBlbListenerPolicyResponse
- type GetHttpReq
- type GetNodeVmInstanceListResult
- type GetRouteTableDetailResult
- type GetServiceArgs
- type GetSubnetDetailResponse
- type GetVmServiceDetailArgs
- type GetVpcDetailResponse
- type GpuRequest
- type HealthCheck
- type HostnameGenMethod
- type ImageDetail
- type ImageInfo
- type ImageRegistrySecret
- type ImageType
- type ImportImageArgs
- type InstancesBinding
- type IpAddress
- type IpInfo
- type IpPackageVo
- type IpamResultVo
- type KeyConfig
- type KeyPair
- type LbDeployPo
- type LbMode
- type ListDeploymentArgs
- type ListPodResult
- type ListRequest
- type ListServiceResult
- type ListVmImageArgs
- type ListVmImageResult
- type ListVmServiceArgs
- type ListVmServiceResult
- type Listeners
- type LogCollectDetail
- type LogicPageDeploySetResult
- type LogicPageRouteRuleResult
- type LogicPageRouteTableResult
- type LogicPageSubnetResult
- type LogicPageVmInstanceResult
- type LogicPageVpcResult
- type MarkerRequest
- type Metric
- type MetricsType
- type ModifyBecBlbRequest
- type NetworkConfig
- type NetworkConfigUpdateVmInstance
- type Networks
- type NodeInstanceStatis
- type OperateVmDeploymentResult
- type OperationVo
- type OrderModel
- type PodBriefVo
- type PodDetailVo
- type PodEventDetails
- type Port
- type PortGroup
- type PortTypeList
- type PostHttpReq
- type Protocol
- type Region
- type RegionInfo
- type ReinstallVmInstanceArg
- type ReinstallVmInstanceResult
- type ReplicaTemplate
- type Reservation
- type ResourceBriefVo
- type ResourceStatus
- type RouteCommonResult
- type RouteRuleView
- type RouteTableDetail
- type RouteTableDetailView
- type Secret
- type SecurityGroup
- type ServiceAction
- type ServiceActionResult
- type ServiceBatchOperateArgs
- type ServiceBatchOperateResult
- type ServiceBriefVo
- type ServiceDetailsVo
- type ServiceMetricsResult
- type ServiceProvider
- type ServiceProviderInfo
- type Stats
- type Subnet
- type SubnetCommonResult
- type SubnetDetail
- type SystemVolumeConfig
- type Tag
- type UpdateBecAppBlbTcpListenerRequest
- type UpdateBecAppBlbUdpListenerRequest
- type UpdateBecVmForm
- type UpdateBindPodWeightArgs
- type UpdateBindPodWeightResult
- type UpdateBlbArgs
- type UpdateBlbIpGroupBackendPolicyRequest
- type UpdateBlbIpGroupMember
- type UpdateBlbIpGroupMemberRequest
- type UpdateBlbIpGroupRequest
- type UpdateBlbResult
- type UpdateDeploymentReplicasRequest
- type UpdateRouteTableRequest
- type UpdateRouteTableResponse
- type UpdateRouteTableResult
- type UpdateServiceArgs
- type UpdateServiceResult
- type UpdateServiceType
- type UpdateSubnetRequest
- type UpdateVmDeploySetArgs
- type UpdateVmDeploymentResult
- type UpdateVmImageArgs
- type UpdateVmInstanceArgs
- type UpdateVmServiceArgs
- type UpdateVmServiceResult
- type UpdateVmType
- type UpdateVpcRequest
- type V1ConfigMapKeySelector
- type V1ContainerPort
- type V1ContainerState
- type V1ContainerStateRunning
- type V1ContainerStateTerminated
- type V1ContainerStateWaiting
- type V1ContainerStatus
- type V1EnvVar
- type V1EnvVarSource
- type V1ObjectFieldSelector
- type V1ResourceFieldSelector
- type V1SecretKeySelector
- type V1VolumeMount
- type VmConfigResult
- type VmImageOperateResult
- type VmImageVo
- type VmInstanceBatchOperateAction
- type VmInstanceBriefVo
- type VmInstanceDetailsVo
- type VmInstanceIdVo
- type VmPrivateIpResult
- type VmServiceAction
- type VmServiceActionResult
- type VmServiceBatchAction
- type VmServiceBatchActionArgs
- type VmServiceBatchActionResult
- type VmServiceBriefVo
- type VmServiceDetailsVo
- type Volume
- type VolumeClaimTemplates
- type VolumeConfig
- type Vpc
- type VpcCommonResult
- type VpcDetail
Constants ¶
View Source
const ( ResourceStatusStarting = "STARTING" ResourceStatusRunning = "RUNNING" ResourceStatusException = "EXCEPTION" ResourceStatusFailed = "FAILED" ResourceStatusUnknown = "UNKNOWN" ResourceStatusTerminated = "TERMINATED" ResourceStatusWaiting = "WAITING" ResourceStatusStop = "STOP" ResourceStatusStopping = "STOPPING" ResourceStatusTerminating = "TERMINATING" ResourceStatusNormal = "NORMAL" // part of status for vm instant ResourceStatusCreating = "CREATING" ResourceStatusStopped = "STOPPED" ResourceStatusRestarting = "RESTARTING" ResourceStatusReinstalling = "REINSTALLING" ResourceStatusImaging = "IMAGING" // part of status for lb ResourceStatusPending = "PENDING" ResourceStatusBinding = "BINDING" )
View Source
const ( URI_PREFIX = bce.URI_PREFIX + "v1" URI_PREFIX_V2 = bce.URI_PREFIX + "v2" DEFAULT_BEC_DOMAIN = "bec." + bce.DEFAULT_DOMAIN REQUEST_SERVICE_URL = URI_PREFIX + "/service" REQUEST_POD_URL = URI_PREFIX + "/pod" REQUEST_VM_URL = URI_PREFIX + "/vm" + "/service" DEPLOY_SET_URL = URI_PREFIX + "/deployset" DEPLOYMENT_URL = URI_PREFIX + "/deployment" REQUEST_VM_MONITOR_URL = URI_PREFIX + "/monitor" + "/vm" SERVICE_MONITOR_URL = URI_PREFIX + "/monitor" + "/service" + "/sts" DEPLOYMENT_MONITOR_URL = URI_PREFIX + "/monitor" + "/deployment" POD_MONITOR_URL = URI_PREFIX + "/monitor" + "/pod" REQUEST_VM_SERVICE_MONITOR_URL = URI_PREFIX + "/monitor" + "/service" + "/vm" REQUEST_VM_IMAGE_URL = URI_PREFIX + "/vm" + "/image" IMPORT_VM_IMAGE_URL = URI_PREFIX + "/vm" + "/image" + "/import" REQUEST_LOADBALANCER_URL = URI_PREFIX + "/blb" REQUEST_LOADBALANCER_URL_V2 = URI_PREFIX_V2 + "/appblb" REQUEST_LOADBALANCER_MONITOR_URL = URI_PREFIX + "/monitor" + "/lb" REQUEST_VM_INSTANCE_URL = URI_PREFIX + "/vm/instance" REQUEST_NODE_URL = URI_PREFIX + "/node" REQUEST_VPC_URL = URI_PREFIX + "/vpc" REQUEST_SUBNET_URL = URI_PREFIX + "/vpc" + "/subnet" REQUEST_ROUTE_URL = URI_PREFIX + "/route" )
Variables ¶
This section is empty.
Functions ¶
func GetAppBlbURI ¶ added in v0.9.133
func GetAppBlbURI() string
func GetBachServiceDeleteURI ¶
func GetBachServiceDeleteURI() string
func GetBachServiceOperateURI ¶
func GetBachServiceOperateURI() string
func GetDeleteServiceURI ¶
func GetDeploySetURI ¶ added in v0.9.133
func GetDeploySetURI() string
func GetDeploymentDetailURI ¶ added in v0.9.133
func GetDeploymentMetricsURI ¶ added in v0.9.133
func GetImportImageURI ¶ added in v0.9.192
func GetImportImageURI() string
func GetLoadBalancerBatchURI ¶
func GetLoadBalancerBatchURI() string
func GetLoadBalancerMonitorURI ¶ added in v0.9.133
func GetLoadBalancerMonitorURI() string
func GetLoadBalancerURI ¶
func GetLoadBalancerURI() string
func GetNodeInfoURI ¶ added in v0.9.72
func GetNodeInfoURI() string
func GetPodMetricsURI ¶ added in v0.9.133
func GetRouteURI ¶ added in v0.9.227
func GetRouteURI() string
func GetServiceDetailURI ¶
func GetServiceMetricsURI ¶
func GetServiceURI ¶
func GetServiceURI() string
func GetStartServiceURI ¶
func GetSubnetURI ¶ added in v0.9.227
func GetSubnetURI() string
func GetUpdateServiceURI ¶
func GetVmImageURI ¶
func GetVmImageURI() string
func GetVmInstanceURI ¶
func GetVmInstanceURI() string
func GetVmMonitorURI ¶ added in v0.9.133
func GetVmMonitorURI() string
func GetVmServiceActionURI ¶
func GetVmServiceMetricsURI ¶
func GetVmServiceMonitorURI ¶ added in v0.9.133
func GetVmServiceMonitorURI() string
func PostOrPut ¶
func PostOrPut(cli bce.Client, phr *PostHttpReq, req *bce.BceRequest) error
Types ¶
type ActionInfoVo ¶
type ActionType ¶ added in v0.9.227
type ActionType string
const ( ActionTypeNew ActionType = "NEW" ActionTypeUpgrade ActionType = "UPGRADE" ActionTypeUpdate ActionType = "UPDATE" ActionTypeRenew ActionType = "RENEW" )
type AppBlbDetails ¶ added in v0.9.133
type AppBlbDetails struct {
Address string `json:"address"`
BlbId string `json:"blbId"`
Cidr string `json:"cidr"`
CreateTime string `json:"createTime"`
Desc string `json:"desc"`
Listener []AppBlbListener `json:"listener"`
Name string `json:"name"`
PublicIp string `json:"publicIp"`
RegionId string `json:"regionId"`
Status string `json:"status"`
SubnetCidr string `json:"subnetCidr"`
SubnetId string `json:"subnetId"`
VpcId string `json:"vpcId"`
SubnetName string `json:"subnetName"`
VpcName string `json:"vpcName"`
}
type AppBlbLTcpListenerDetail ¶ added in v0.9.133
type AppBlbListResponse ¶ added in v0.9.133
type AppBlbListResponse struct {
BlbList []AppBlbDetails `json:"blbList"`
IsTruncated bool `json:"isTruncated"`
NextMarker string `json:"nextMarker"`
Marker string `json:"marker"`
MaxKeys int `json:"maxKeys"`
}
type AppBlbListener ¶ added in v0.9.133
type AppBlbUdpListenerDetail ¶ added in v0.9.133
type AppIpGroupDetail ¶ added in v0.9.133
type AppIpGroupDetail struct {
BackendPolicyList []BackendPolicy `json:"backendPolicyList"`
Id string `json:"id"`
Desc string `json:"desc"`
Name string `json:"name"`
}
type AppPolicyVo ¶ added in v0.9.133
type BackendPolicy ¶ added in v0.9.133
type BackendPolicy struct {
HealthCheck string `json:"healthCheck"`
HealthCheckHost string `json:"healthCheckHost"`
HealthCheckNormalStatus string `json:"healthCheckNormalStatus"`
HealthCheckUrlPath string `json:"healthCheckUrlPath"`
HealthCheckDownRetry int `json:"healthCheckDownRetry"`
HealthCheckIntervalInSecond int `json:"healthCheckIntervalInSecond"`
HealthCheckPort int `json:"healthCheckPort"`
HealthCheckTimeoutInSecond int `json:"healthCheckTimeoutInSecond"`
HealthCheckUpRetry int `json:"healthCheckUpRetry"`
Id string `json:"id"`
Type string `json:"type"`
UdpHealthCheckString string `json:"udpHealthCheckString"`
}
type BatchCreateBlbArgs ¶
type BatchCreateBlbArgs struct {
LbType string `json:"lbType,omitempty"`
PaymentMethod string `json:"paymentMethod,omitempty"`
RegionSelection string `json:"regionSelection,omitempty"`
DeployInstances *[]DeploymentInstance `json:"deployInstances,omitempty"`
BlbName string `json:"blbName,omitempty"`
NeedPublicIp bool `json:"needPublicIp,omitempty"`
BandwidthInMbpsLimit int `json:"bandwidthInMbpsLimit,omitempty"`
Tags *[]Tag `json:"tags,omitempty"`
Listeners *[]Listeners `json:"listeners,omitempty"`
}
type BatchCreateBlbMonitorArg ¶
type BatchCreateBlbMonitorArg struct {
Protocol Protocol `json:"protocol,omitempty"`
PortGroups *[]PortGroup `json:"portGroups,omitempty"`
LbMode LbMode `json:"lbMode,omitempty"`
KeepaliveTimeout int `json:"keepaliveTimeout,omitempty"`
HealthCheck *HealthCheck `json:"healthCheck,omitempty"`
EnableCipTTM bool `json:"enableCipTTM,omitempty"`
EnableVipTTM bool `json:"enableVipTTM,omitempty"`
}
type BatchCreateBlbResult ¶
type BatchCreateBlbResult struct {
Result bool `json:"result"`
Action string `json:"action"`
Details []BlbInstanceVo `json:"details"`
}
type BatchDeleteBlbResult ¶
type BatchDeleteBlbResult struct {
Result bool `json:"result"`
Action string `json:"action"`
Details []OperationVo `json:"details"`
}
type BindSecurityGroupInstances ¶ added in v0.9.133
type BindSecurityGroupInstances struct {
Instances []InstancesBinding `json:"instances"`
}
type BindSecurityGroupInstancesResponse ¶ added in v0.9.133
type BindSecurityGroupInstancesResponse struct {
Action string `json:"action"`
Result bool `json:"result"`
Details []OperationVo `json:"details"`
}
type BlbBackendPodBriefVo ¶
type BlbBindingForm ¶
type BlbInstanceVo ¶
type BlbInstanceVo struct {
BlbId string `json:"blbId"`
BlbName string `json:"blbName"`
Status string `json:"status"`
LbType string `json:"lbType"`
Region Region `json:"region"`
ServiceProvider ServiceProvider `json:"serviceProvider"`
City string `json:"city"`
RegionId string `json:"regionId"`
PublicIp string `json:"publicIp"`
CmPublicIP string `json:"cmPublicIP"`
CtPublicIP string `json:"ctPublicIP"`
UnPublicIP string `json:"unPublicIP"`
InternalIp string `json:"internalIp"`
Ports []Listeners `json:"ports"`
PodCount int `json:"podCount"`
BandwidthInMbpsLimit int `json:"bandwidthInMbpsLimit"`
CreateTime string `json:"createTime"`
}
type BlbIpGroupMember ¶ added in v0.9.133
type BlbIpGroupMemberDetail ¶ added in v0.9.133
type BlbIpGroupMemberResponse ¶ added in v0.9.133
type BlbListenerPolicy ¶ added in v0.9.133
type BlbListenerPolicy struct {
AppIpGroupId string `json:"appIpGroupId"`
AppIpGroupName string `json:"appIpGroupName"`
Desc string `json:"desc"`
Type string `json:"type"`
Id string `json:"id"`
FrontendPort int `json:"frontendPort"`
Priority int `json:"priority"`
RuleList []BlbListenerPolicyRule `json:"ruleList"`
}
type BlbListenerPolicyRule ¶ added in v0.9.133
type BlbMonitorArgs ¶
type BlbMonitorArgs struct {
FrontendPort *Port `json:"frontendPort,omitempty"`
BackendPort int `json:"backendPort,omitempty"`
LbMode LbMode `json:"lbMode,omitempty"`
KeepaliveTimeout int `json:"keepaliveTimeout,omitempty"`
HealthCheck *HealthCheck `json:"healthCheck,omitempty"`
EnableCipTTM bool `json:"enableCipTTM,omitempty"`
EnableVipTTM bool `json:"enableVipTTM,omitempty"`
}
type BlbMonitorListResult ¶
type BlbMonitorResult ¶
type CityInfo ¶ added in v0.9.72
type CityInfo struct {
City string `json:"city"`
Name string `json:"name"`
ServiceProviderList []ServiceProviderInfo `json:"serviceProviderList"`
}
type ConfigFile ¶
type ConfigFile EmptyDir
type ContainerDetails ¶
type ContainerDetails struct {
Name string `json:"name,omitempty"`
ImageVersion string `json:"imageVersion,omitempty"`
ImageAddress string `json:"imageAddress,omitempty"`
Memory int `json:"memory,omitempty"`
Cpu int `json:"cpu,omitempty"`
Gpu int `json:"gpu,omitempty"`
WorkingDir string `json:"workingDir,omitempty"`
Commands []string `json:"commands,omitempty"`
Args []string `json:"args,omitempty"`
VolumeMounts []V1VolumeMount `json:"volumeMounts,omitempty"`
Ports []V1ContainerPort `json:"ports,omitempty"`
Envs []V1EnvVar `json:"envs,omitempty"`
}
type CreateAppBlbPoliciesRequest ¶ added in v0.9.133
type CreateAppBlbPoliciesRequest struct {
ListenerPort int `json:"listenerPort,omitempty"`
Type string `json:"type,omitempty"`
AppPolicyVos []AppPolicyVo `json:"appPolicyVos,omitempty"`
}
type CreateAppBlbRequest ¶ added in v0.9.133
type CreateAppBlbRequest struct {
Desc string `json:"desc,omitempty"`
Name string `json:"name,omitempty"`
RegionId string `json:"regionId,omitempty"`
SubServiceProviders []string `json:"subServiceProviders,omitempty"`
NeedPublicIp bool `json:"needPublicIp,omitempty"`
SubnetId string `json:"subnetId,omitempty"`
VpcId string `json:"vpcId,omitempty"`
}
type CreateAppBlbResponse ¶ added in v0.9.133
type CreateBecAppBlbTcpListenerRequest ¶ added in v0.9.133
type CreateBecAppBlbUdpListenerRequest ¶ added in v0.9.133
type CreateBlbArgs ¶
type CreateBlbArgs struct {
LbType string `json:"lbType,omitempty"`
PaymentMethod string `json:"paymentMethod,omitempty"`
Region Region `json:"region,omitempty"`
City string `json:"city,omitempty"`
ServiceProvider ServiceProvider `json:"serviceProvider,omitempty"`
RegionId string `json:"regionId,omitempty"`
SubServiceProviders []string `json:"subServiceProviders,omitempty"`
NetworkType string `json:"networkType,omitempty"`
VpcId string `json:"vpcId,omitempty"`
SubnetId string `json:"subnetId,omitempty"`
BlbName string `json:"blbName,omitempty"`
NeedPublicIp bool `json:"needPublicIp,omitempty"`
BandwidthInMbpsLimit int `json:"bandwidthInMbpsLimit,omitempty"`
Tags *[]Tag `json:"tags,omitempty"`
Listeners *[]Listeners `json:"listeners,omitempty"`
}
type CreateBlbBindingArgs ¶
type CreateBlbBindingArgs struct {
BindingForms *[]BlbBindingForm `json:"bindingForms,omitempty"`
}
type CreateBlbBindingResult ¶
type CreateBlbIpGroupBackendPolicyRequest ¶ added in v0.9.133
type CreateBlbIpGroupBackendPolicyRequest struct {
HealthCheck string `json:"healthCheck,omitempty"`
HealthCheckHost string `json:"healthCheckHost,omitempty"`
HealthCheckNormalStatus string `json:"healthCheckNormalStatus,omitempty"`
HealthCheckUrlPath string `json:"healthCheckUrlPath,omitempty"`
HealthCheckDownRetry int `json:"healthCheckDownRetry,omitempty"`
HealthCheckIntervalInSecond int `json:"healthCheckIntervalInSecond,omitempty"`
HealthCheckPort int `json:"healthCheckPort,omitempty"`
HealthCheckTimeoutInSecond int `json:"healthCheckTimeoutInSecond,omitempty"`
HealthCheckUpRetry int `json:"healthCheckUpRetry,omitempty"`
IpGroupId string `json:"ipGroupId,omitempty"`
Type string `json:"type,omitempty"`
UdpHealthCheckString string `json:"udpHealthCheckString,omitempty"`
}
type CreateBlbIpGroupBackendPolicyResponse ¶ added in v0.9.133
type CreateBlbIpGroupBackendPolicyResponse struct {
Id string `json:"id"`
}
type CreateBlbIpGroupMemberRequest ¶ added in v0.9.133
type CreateBlbIpGroupMemberRequest struct {
IpGroupId string `json:"ipGroupId,omitempty"`
MemberList []BlbIpGroupMember `json:"memberList,omitempty"`
}
type CreateBlbIpGroupMemberResponse ¶ added in v0.9.133
type CreateBlbIpGroupMemberResponse struct {
MemberList []BlbIpGroupMemberResponse `json:"memberList"`
}
type CreateBlbIpGroupRequest ¶ added in v0.9.133
type CreateBlbIpGroupRequest struct {
Desc string `json:"desc,omitempty"`
Name string `json:"name,omitempty"`
MemberList []BlbIpGroupMember `json:"memberList,omitempty"`
}
type CreateBlbIpGroupResponse ¶ added in v0.9.133
type CreateBlbResult ¶
type CreateBlbResult struct {
Result bool `json:"result"`
Action string `json:"action"`
Details BlbInstanceVo `json:"details"`
}
type CreateDeploySetArgs ¶ added in v0.9.133
type CreateDeploySetResponseArgs ¶ added in v0.9.133
type CreateDeploySetResponseArgs struct {
DeploysetIdList []string `json:"deploysetIdList,omitempty"`
}
type CreateRouteRuleRequest ¶ added in v0.9.227
type CreateRouteRuleRequest struct {
TableId string `json:"tableId"`
IpVersion int `json:"ipVersion"`
SourceAddress string `json:"sourceAddress"`
DestinationAddress string `json:"destinationAddress"`
Nexthop string `json:"nexthop"`
RouteType string `json:"routeType"`
Description string `json:"description"`
}
type CreateRouteRuleResult ¶ added in v0.9.227
type CreateRouteRuleResult struct {
Details RouteRuleView `json:"details"`
Result bool `json:"result"`
Action string `json:"action"`
}
type CreateServiceArgs ¶
type CreateServiceArgs struct {
ServiceName string `json:"serviceName,omitempty"`
PaymentMethod string `json:"paymentMethod,omitempty"`
ContainerGroupName string `json:"containerGroupName,omitempty"`
Containers *[]ContainerDetails `json:"containers,omitempty"`
ImageRegistrySecrets *[]ImageRegistrySecret `json:"imageRegistrySecrets,omitempty"`
Volumes *Volume `json:"volumes,omitempty"`
NeedPublicIp bool `json:"needPublicIp,omitempty"`
NeedIpv6PublicIp bool `json:"needIpv6PublicIp,omitempty"`
Bandwidth int `json:"bandwidth,omitempty"`
Tags *[]Tag `json:"tags,omitempty"`
DeployInstances *[]DeploymentInstance `json:"deployInstances,omitempty"`
LogCollectDetail *LogCollectDetail `json:"logCollectDetail,omitempty"`
}
type CreateServiceResult ¶
type CreateServiceResult struct {
Details ServiceBriefVo `json:"details"`
Result bool `json:"result"`
Action string `json:"action"`
}
type CreateSubnetRequest ¶ added in v0.9.227
type CreateVmImageArgs ¶
type CreateVmImageResult ¶
type CreateVmPrivateIpForm ¶
type CreateVmServiceArgs ¶
type CreateVmServiceArgs struct {
ServiceName string `json:"serviceName,omitempty"`
ServiceId string `json:"serviceId,omitempty"`
VmName string `json:"vmName,omitempty"`
NeedPublicIp bool `json:"needPublicIp,omitempty"`
Bandwidth int `json:"bandwidth,omitempty"`
DeployInstances *[]DeploymentInstance `json:"deployInstances,omitempty"`
DnsConfig *DnsConfig `json:"dnsConfig,omitempty"`
Spec string `json:"spec,omitempty"`
Cpu int `json:"cpu,omitempty"`
Memory int `json:"memory,omitempty"`
ImageId string `json:"imageId,omitempty"`
ImageType ImageType `json:"imageType,omitempty"`
NeedIpv6PublicIp bool `json:"needIpv6PublicIp,omitempty"`
SystemVolume *SystemVolumeConfig `json:"systemVolume,omitempty"`
DataVolumeList *[]VolumeConfig `json:"dataVolumeList,omitempty"`
KeyConfig *KeyConfig `json:"keyConfig,omitempty"`
DisableIntranet bool `json:"disableIntranet,omitempty"`
DisableCloudInit bool `json:"disableCloudInit,omitempty"`
NetworkConfigList *[]NetworkConfig `json:"networkConfigList,omitempty"`
SecurityGroupIds []string `json:"securityGroupIds,omitempty"`
Hostname string `json:"hostname,omitempty"`
DeploysetIdList []string `json:"deploysetIdList,omitempty"`
PaymentMethod string `json:"paymentMethod,omitempty"`
Gpu *GpuRequest `json:"gpu,omitempty"`
AdminPass string `json:"adminPass,omitempty"`
TemplateId string `json:"templateId,omitempty"`
HostnameGenMethod HostnameGenMethod `json:"hostnameGenMethod,omitempty"`
ActionType ActionType `json:"actionType,omitempty"`
DirectPay bool `json:"directPay"` // 预付费支付方式(直接扣款), 业务默认为true; 注意 注意: 预付费且直接扣款时需要手动赋值true
Reservation *Reservation `json:"reservation,omitempty"`
BackUrl string `json:"backUrl,omitempty"`
AutoRenew *AutoRenew `json:"autoRenew,omitempty"`
CudaVersion string `json:"cudaVersion,omitempty"`
CudnnVersion string `json:"cudnnVersion,omitempty"`
DriverVersion string `json:"driverVersion,omitempty"`
UserData string `json:"userData,omitempty"`
Tags *[]Tag `json:"tags,omitempty"`
}
type CreateVmServiceResult ¶
type CreateVmServiceResult struct {
Details VmServiceBriefVo `json:"details"`
Result bool `json:"result"`
Action string `json:"action"`
}
type CreateVpcRequest ¶ added in v0.9.227
type DeleteAppBlbPoliciesRequest ¶ added in v0.9.133
type DeleteBlbBindPodArgs ¶
type DeleteBlbBindPodResult ¶
type DeleteBlbIpGroupBackendMemberRequest ¶ added in v0.9.133
type DeleteBlbIpGroupBackendPolicyRequest ¶ added in v0.9.133
type DeleteBlbIpGroupRequest ¶ added in v0.9.133
type DeleteBlbIpGroupRequest struct {
IpGroupId string `json:"ipGroupId,omitempty"`
}
type DeleteBlbListenerRequest ¶ added in v0.9.133
type DeleteBlbListenerRequest struct {
PortTypeList []PortTypeList `json:"portTypeList,omitempty"`
}
type DeleteBlbResult ¶
type DeleteDeploymentActionInfoVo ¶ added in v0.9.133
type DeleteVmDeploySetArgs ¶ added in v0.9.133
type DeleteVmPrivateIpForm ¶
type DeleteVmPrivateIpForm struct {
PrivateIps []string `json:"privateIps,omitempty"`
}
type DeleteVmServiceArgs ¶
type DeleteVmServiceArgs struct {
ServiceId string `json:"serviceId"`
}
type DeleteVmServiceResult ¶
type DeploySetDetails ¶ added in v0.9.133
type DeploySetDetails struct {
DeploysetId string `json:"deploysetId"`
Name string `json:"name"`
Desc string `json:"desc"`
InstanceCount int `json:"instanceCount"`
InstanceTotal int `json:"instanceTotal"`
CreateTime string `json:"createTime"`
NodeInstanceStatisList []NodeInstanceStatis `json:"nodeInstanceStatisList"`
}
type DeploySetVo ¶ added in v0.9.133
type DeploymentInstance ¶
type DeploymentInstance struct {
Region Region `json:"region,omitempty"`
ServiceProvider ServiceProvider `json:"serviceProvider,omitempty"`
Replicas int `json:"replicas,omitempty"`
City string `json:"city,omitempty"`
RegionId string `json:"regionId,omitempty"`
NetworkType string `json:"networkType,omitempty"`
VpcId string `json:"vpcId,omitempty"`
SubnetId string `json:"subnetId,omitempty"`
SubServiceProviders []string `json:"subServiceProviders,omitempty"`
}
type DeploymentResourceBriefVo ¶ added in v0.9.133
type DeploymentResourceBriefVo struct {
ServiceId string `json:"serviceId"`
ServiceName string `json:"serviceName"`
ResourceId string `json:"resourceId"`
ResourceName string `json:"resourceName"`
TotalPods int `json:"totalPods"`
RunningPods int `json:"runningPods"`
DeployInstance DeploymentInstance `json:"deployInstance"`
Containers []ContainerDetails `json:"containers"`
PodBriefVos []PodBriefVo `json:"podBriefVos"`
CreateTime string `json:"createTime"`
LastUpdateTime string `json:"lastUpdateTime"`
}
type DiskType ¶
type DiskType string
const ( DiskTypeNVME DiskType = "NVME" DiskTypeSATA DiskType = "SATA" DiskTypeCDSHDD DiskType = "CDS_HDD" DiskTypeCDSSSD DiskType = "CDS_SSD" DiskTypeRBDSSD DiskType = "RBD_SSD" DiskTypeHDDPASSTHROUGH4T DiskType = "HDD_PASSTHROUGH_4T" DiskTypeSSDPASSTHROUGH4T DiskType = "SSD_PASSTHROUGH_4T" DiskTypeHDDPASSTHROUGH DiskType = "HDD_PASSTHROUGH" DiskTypeSSDPASSTHROUGH DiskType = "SSD_PASSTHROUGH" )
type GetBecAppBlbListenerRequest ¶ added in v0.9.133
type GetBecAppBlbListenerRequest struct {
ListenerPort int `json:"listenerPort,omitempty"`
MarkerRequest
}
type GetBecAppBlbTcpListenerResponse ¶ added in v0.9.133
type GetBecAppBlbTcpListenerResponse struct {
IsTruncated bool `json:"isTruncated"`
ListenerList []AppBlbLTcpListenerDetail `json:"listenerList"`
NextMarker string `json:"nextMarker"`
Marker string `json:"marker"`
MaxKeys int `json:"maxKeys"`
}
type GetBecAppBlbUdpListenerResponse ¶ added in v0.9.133
type GetBecAppBlbUdpListenerResponse struct {
IsTruncated bool `json:"isTruncated"`
ListenerList []AppBlbUdpListenerDetail `json:"listenerList"`
NextMarker string `json:"nextMarker"`
Marker string `json:"marker"`
MaxKeys int `json:"maxKeys"`
}
type GetBecAvailableNodeInfoVoResult ¶ added in v0.9.72
type GetBecAvailableNodeInfoVoResult struct {
RegionList []RegionInfo `json:"regionList,omitempty"`
NodeSum int `json:"nodeSum,omitempty"`
}
type GetBlbBackendBindingStsListResult ¶
type GetBlbBackendBindingStsListResult struct {
Orders []OrderModel `json:"orders"`
OrderBy string `json:"orderBy"`
Order string `json:"order"`
PageNo int `json:"pageNo"`
PageSize int `json:"pageSize"`
TotalCount int `json:"totalCount"`
Result []LbDeployPo `json:"result"`
}
type GetBlbBackendPodListResult ¶
type GetBlbBackendPodListResult struct {
Orders []OrderModel `json:"orders"`
OrderBy string `json:"orderBy"`
Order string `json:"order"`
PageNo int `json:"pageNo"`
PageSize int `json:"pageSize"`
TotalCount int `json:"totalCount"`
Result []BlbBackendPodBriefVo `json:"result"`
}
type GetBlbIpGroupListRequest ¶ added in v0.9.133
type GetBlbIpGroupListRequest struct {
ExactlyMatch bool `json:"exactlyMatch,omitempty"`
Name string `json:"name,omitempty"`
MarkerRequest
}
type GetBlbIpGroupListResponse ¶ added in v0.9.133
type GetBlbIpGroupListResponse struct {
IsTruncated bool `json:"isTruncated"`
AppIpGroupList []AppIpGroupDetail `json:"appIpGroupList"`
NextMarker string `json:"nextMarker"`
Marker string `json:"marker"`
MaxKeys int `json:"maxKeys"`
}
type GetBlbIpGroupMemberListRequest ¶ added in v0.9.133
type GetBlbIpGroupMemberListRequest struct {
IpGroupId string `json:"ipGroupId,omitempty"`
MarkerRequest
}
type GetBlbIpGroupMemberListResponse ¶ added in v0.9.133
type GetBlbIpGroupMemberListResponse struct {
IsTruncated bool `json:"isTruncated"`
NextMarker string `json:"nextMarker"`
Marker string `json:"marker"`
MaxKeys int `json:"maxKeys"`
MemberList []BlbIpGroupMemberDetail `json:"memberList"`
}
type GetBlbIpGroupPolicyListRequest ¶ added in v0.9.133
type GetBlbIpGroupPolicyListRequest struct {
IpGroupId string `json:"ipGroupId,omitempty"`
MarkerRequest
}
type GetBlbIpGroupPolicyListResponse ¶ added in v0.9.133
type GetBlbIpGroupPolicyListResponse struct {
IsTruncated bool `json:"isTruncated"`
BackendPolicyList []BackendPolicy `json:"backendPolicyList"`
NextMarker string `json:"nextMarker"`
Marker string `json:"marker"`
MaxKeys int `json:"maxKeys"`
}
type GetBlbListResult ¶
type GetBlbListResult struct {
Orders []OrderModel `json:"orders"`
OrderBy string `json:"orderBy"`
PageNo int `json:"pageNo"`
PageSize int `json:"pageSize"`
TotalCount int `json:"totalCount"`
Result []BlbInstanceVo `json:"result"`
}
type GetBlbListenerPolicyRequest ¶ added in v0.9.133
type GetBlbListenerPolicyRequest struct {
Port int `json:"port,omitempty"`
Type string `json:"type,omitempty"`
MarkerRequest
}
type GetBlbListenerPolicyResponse ¶ added in v0.9.133
type GetBlbListenerPolicyResponse struct {
IsTruncated bool `json:"isTruncated"`
NextMarker string `json:"nextMarker"`
Marker string `json:"marker"`
MaxKeys int `json:"maxKeys"`
PolicyList []BlbListenerPolicy `json:"policyList"`
}
type GetHttpReq ¶
type GetNodeVmInstanceListResult ¶
type GetNodeVmInstanceListResult struct {
Result []VmInstanceBriefVo `json:"result"`
Success bool `json:"success"`
}
type GetRouteTableDetailResult ¶ added in v0.9.227
type GetRouteTableDetailResult struct {
Details RouteTableDetail `json:"details"`
Result bool `json:"result"`
Action string `json:"action"`
}
type GetServiceArgs ¶
type GetServiceArgs struct {
ServiceId string
}
type GetSubnetDetailResponse ¶ added in v0.9.227
type GetSubnetDetailResponse struct {
Subnet SubnetDetail `json:"subnet"`
}
type GetVmServiceDetailArgs ¶
type GetVmServiceDetailArgs struct {
ServiceId string `json:"serviceId"`
}
type GetVpcDetailResponse ¶ added in v0.9.227
type GetVpcDetailResponse struct {
Vpc VpcDetail `json:"vpc"`
}
type GpuRequest ¶
type HealthCheck ¶
type HealthCheck struct {
TimeoutInSeconds int `json:"timeoutInSeconds,omitempty"`
IntervalInSeconds int `json:"intervalInSeconds,omitempty"`
UnhealthyThreshold int `json:"unhealthyThreshold,omitempty"`
HealthyThreshold int `json:"healthyThreshold,omitempty"`
HealthCheckString *string `json:"healthCheckString"`
HealthCheckType string `json:"healthCheckType,omitempty"`
}
type HostnameGenMethod ¶ added in v0.9.227
type HostnameGenMethod string
const ( HostnameGenMethodRandom HostnameGenMethod = "random" HostnameGenMethodCustom HostnameGenMethod = "custom" )
type ImageDetail ¶
type ImageDetail struct {
Id string `json:"id"`
ImageId string `json:"imageId"`
Name string `json:"name"`
NameFri string `json:"nameFri"`
ImageType string `json:"imageType"`
SnapshotId string `json:"snapshotId"`
Cpu int `json:"cpu"`
Memory int `json:"memory"`
OsType string `json:"osType"`
OsVersion string `json:"osVersion"`
OsName string `json:"osName"`
OsBuild string `json:"osBuild"`
OsLang string `json:"osLang"`
DiskSize int `json:"diskSize"`
CreateTime string `json:"createTime"`
Status string `json:"status"`
MinMem int `json:"minMem"`
MinCpu int `json:"minCpu"`
MinDiskGb int `json:"minDiskGb"`
Desc string `json:"desc"`
OsArch string `json:"osArch"`
EphemeralSize int `json:"ephemeralSize"`
ImageDescription string `json:"imageDescription"`
FpgaType string `json:"fpgaType"`
}
type ImageRegistrySecret ¶
type ImageRegistrySecret struct {
Name string `json:"name,omitempty"`
}
type ImportImageArgs ¶ added in v0.9.192
type ImportImageArgs struct {
OsType string `json:"osType,omitempty"`
OsArch int `json:"osArch,omitempty"`
OsName string `json:"osName,omitempty"`
OsVersion string `json:"osVersion,omitempty"`
BosUrl string `json:"bosUrl,omitempty"`
Name string `json:"name,omitempty"`
ImageProcessType string `json:"imageProcessType,omitempty"`
}
type InstancesBinding ¶ added in v0.9.133
type IpInfo ¶
type IpInfo struct {
ServiceProvider ServiceProvider `json:"serviceProvider"`
Ip string `json:"ip"`
Ipv6 string `json:"ipv6"`
}
type IpPackageVo ¶
type IpPackageVo struct {
PublicIp string `json:"publicIp"`
Ipv6PublicIp string `json:"ipv6PublicIp"`
InternalIp string `json:"internalIp"`
MultiplePublicIp []IpInfo `json:"multiplePublicIp"`
ServiceProvider ServiceProvider `json:"serviceProvider"`
}
type IpamResultVo ¶
type LbDeployPo ¶
type LbDeployPo struct {
ServiceName string `json:"serviceName"`
DeploymentName string `json:"deploymentName"`
CustomOrigName string `json:"customOrigName"`
ServiceId string `json:"serviceId"`
DeploymentType string `json:"deploymentType"`
Region Region `json:"region"`
ServiceProvider ServiceProvider `json:"serviceProvider"`
City string `json:"city"`
Replicas int `json:"replicas"`
PodCpu int `json:"podCpu"`
PodMemory int `json:"podMemory"`
PodGpu int `json:"podGpu"`
PodDataStorage string `json:"podDataStorage"`
Sata int `json:"sata"`
Nvme int `json:"nvme"`
DataDiskNum int `json:"dataDiskNum"`
PodIpRequired bool `json:"podIpRequired"`
Backends []Backends `json:"backends"`
}
type ListDeploymentArgs ¶
type ListDeploymentArgs struct {
DeploymentID string `json:"deploymentID"`
}
type ListPodResult ¶ added in v0.9.133
type ListRequest ¶
type ListRequest struct {
KeywordType string `json:"keywordType"`
Keyword string `json:"keyword"`
PageNo int `json:"pageNo,omitempty"`
PageSize int `json:"pageSize,omitempty"`
Order string `json:"order,omitempty"`
OrderBy string `json:"orderBy,omitempty"`
Status string `json:"status,omitempty"`
Region string `json:"region,omitempty"`
City string `json:"city,omitempty"`
ServiceProvider ServiceProvider `json:"serviceProvider,omitempty"`
RegionId string `json:"regionId,omitempty"`
OsName string `json:"osName,omitempty"`
ServiceId string `json:"serviceId,omitempty"`
VpcId string `json:"vpcId,omitempty"`
}
type ListServiceResult ¶
type ListVmImageArgs ¶
type ListVmImageArgs struct {
KeywordType string `json:"keywordType"`
Keyword string `json:"keyword"`
PageNo int `json:"pageNo,omitempty"`
PageSize int `json:"pageSize,omitempty"`
Order string `json:"order,omitempty"`
OrderBy string `json:"orderBy,omitempty"`
Status string `json:"status"`
Region string `json:"region"`
OsName string `json:"osName"`
ServiceId string `json:"serviceId"`
Type string `json:"type,omitempty"`
}
type ListVmImageResult ¶
type ListVmServiceArgs ¶
type ListVmServiceArgs struct {
KeywordType string `json:"keywordType,omitempty"`
Keyword string `json:"keyword,omitempty"`
PageNo int `json:"pageNo,omitempty"`
PageSize int `json:"pageSize,omitempty"`
Order string `json:"order,omitempty"`
OrderBy string `json:"orderBy,omitempty"`
Status string `json:"status,omitempty"`
Region string `json:"region,omitempty"`
OsName string `json:"osName,omitempty"`
ServiceId string `json:"serviceId,omitempty"`
}
type ListVmServiceResult ¶
type ListVmServiceResult struct {
Orders []OrderModel `json:"orders"`
OrderBy string `json:"orderBy"`
Order string `json:"order"`
PageNo int `json:"pageNo"`
PageSize int `json:"pageSize"`
TotalCount int `json:"totalCount"`
Result []VmServiceBriefVo `json:"result"`
}
type Listeners ¶
type Listeners struct {
Protocol Protocol `json:"protocol,omitempty"`
Port int `json:"port,omitempty"`
BackendPort int `json:"backendPort,omitempty"`
KeepaliveTimeout int `json:"keepaliveTimeout,omitempty"`
Scheduler LbMode `json:"scheduler,omitempty"`
EnableCipTTM bool `json:"enableCipTTM,omitempty"`
EnableVipTTM bool `json:"enableVipTTM,omitempty"`
// health check config
HealthCheckInterval int `json:"healthCheckInterval,omitempty"`
HealthCheckRetry int `json:"healthCheckRetry,omitempty"`
HealthCheckTimeout int `json:"healthCheckTimeout,omitempty"`
UdpHealthCheckString string `json:"udpHealthCheckString,omitempty"`
HealthCheckType string `json:"healthCheckType,omitempty"`
}
type LogCollectDetail ¶
type LogCollectDetail struct {
ServiceId string `json:"serviceId,omitempty"`
LogCollect bool `json:"logCollect,omitempty"`
LogPath string `json:"logPath,omitempty"`
JsonAnalysis bool `json:"jsonAnalysis,omitempty"`
PushLog bool `json:"pushLog,omitempty"`
Standard bool `json:"standard,omitempty"`
Custom bool `json:"custom,omitempty"`
LogOutputType string `json:"logOutputType,omitempty"`
EsIP string `json:"esIP,omitempty"`
EsPort int `json:"esPort,omitempty"`
EsIndex string `json:"esIndex,omitempty"`
Encrypted bool `json:"encrypted,omitempty"`
EsUserName string `json:"esUserName,omitempty"`
EsUserPassword string `json:"esUserPassword,omitempty"`
}
type LogicPageDeploySetResult ¶ added in v0.9.133
type LogicPageDeploySetResult struct {
Orders []OrderModel `json:"orders"`
OrderBy string `json:"orderBy"`
Order string `json:"order"`
PageNo int `json:"pageNo"`
PageSize int `json:"pageSize"`
TotalCount int `json:"totalCount"`
Result []DeploySetDetails `json:"result"`
}
type LogicPageRouteRuleResult ¶ added in v0.9.227
type LogicPageRouteTableResult ¶ added in v0.9.227
type LogicPageSubnetResult ¶ added in v0.9.227
type LogicPageVmInstanceResult ¶
type LogicPageVmInstanceResult struct {
Orders []OrderModel `json:"orders"`
OrderBy string `json:"orderBy"`
Order string `json:"order"`
PageNo int `json:"pageNo"`
PageSize int `json:"pageSize"`
TotalCount int `json:"totalCount"`
Result []VmInstanceDetailsVo `json:"result"`
}
type LogicPageVpcResult ¶ added in v0.9.227
type MarkerRequest ¶ added in v0.9.133
type MetricsType ¶
type MetricsType string
const ( MetricsTypeCpu MetricsType = "CPU" MetricsTypeMemory MetricsType = "MEMORY" MetricsTypeBandwidthReceive MetricsType = "BANDWIDTH_RECEIVE" MetricsTypeBandwidthTransmit MetricsType = "BANDWIDTH_TRANSMIT" MetricsTypeTrafficReceive MetricsType = "TRAFFIC_RECEIVE" MetricsTypeTrafficTransmit MetricsType = "TRAFFIC_TRANSMIT" MetricsTypeNodeBwReceive MetricsType = "NODE_BW_RECEIVE" MetricsTypeNodeBwTransmit MetricsType = "NODE_BW_TRANSMIT" MetricsTypeNodeLbBwReceive MetricsType = "NODE_LB_BW_RECEIVE" MetricsTypeNodeLbBwTransmit MetricsType = "NODE_LB_BW_TRANSMIT" MetricsTypeRequestNum MetricsType = "REQUEST_NUMBER" MetricsTypeRequestRate MetricsType = "REQUEST_RATE" MetricsTypeRequestDelay MetricsType = "REQUEST_DELAY" MetricsTypeUnknown MetricsType = "UNKNOWN" )
type ModifyBecBlbRequest ¶ added in v0.9.133
type NetworkConfig ¶
type NetworkConfigUpdateVmInstance ¶ added in v0.9.133
type NetworkConfigUpdateVmInstance struct {
NeedPrivateNetwork bool `json:"needPrivateNetwork"`
NeedPublicNetwork bool `json:"needPublicNetwork"`
PrivateNetworkName string `json:"privateNetworkName,omitempty"`
PublicNetworkName string `json:"publicNetworkName,omitempty"`
PublicNetworkChinaMobileName string `json:"publicNetworkChinaMobileName,omitempty"`
PublicNetworkChinaUnicomName string `json:"publicNetworkChinaUnicomName,omitempty"`
PublicNetworkChinaTelecomName string `json:"publicNetworkChinaTelecomName,omitempty"`
}
type Networks ¶
type Networks struct {
NetType string `json:"netType,omitempty"`
NetName string `json:"netName,omitempty"`
NicIndex int `json:"nicIndex,omitempty"`
EniId string `json:"eniId,omitempty"`
Mac string `json:"mac,omitempty"`
Ipv4 *IpAddress `json:"ipv4,omitempty"`
Ipv6 *IpAddress `json:"ipv6,omitempty"`
ReserveIps []string `json:"reserveIps,omitempty"`
}
type NodeInstanceStatis ¶ added in v0.9.133
type OperationVo ¶
type OrderModel ¶
type PodBriefVo ¶ added in v0.9.133
type PodBriefVo struct {
ServiceId string `json:"serviceId"`
DeploymentName string `json:"deploymentName"`
DeploymentId string `json:"deploymentId"`
PodName string `json:"podName"`
Region string `json:"region"`
City string `json:"city"`
RegionName string `json:"regionName"`
CityName string `json:"cityName"`
Country string `json:"country"`
CountryName string `json:"countryName"`
RegionId string `json:"regionId"`
Labels map[string]string `json:"labels"`
Status string `json:"status"`
Cpu int `json:"cpu"`
Mem int `json:"mem"`
IngressBandwidth string `json:"ingressBandwidth"`
PublicIp string `json:"publicIp"`
Ipv6PublicIp string `json:"ipv6PublicIp"`
InternalIp string `json:"internalIp"`
ImageList []string `json:"imageList"`
Containers []ContainerDetails `json:"containers"`
}
type PodDetailVo ¶ added in v0.9.133
type PodDetailVo struct {
PodId string `json:"podId"`
Region string `json:"region"`
City string `json:"city"`
RegionName string `json:"regionName"`
CityName string `json:"cityName"`
Country string `json:"country"`
CountryName string `json:"countryName"`
RegionId string `json:"regionId"`
Labels map[string]string `json:"labels"`
Status string `json:"status"`
Cpu int `json:"cpu"`
Mem int `json:"mem"`
IngressBandwidth string `json:"ingressBandwidth"`
PublicIp string `json:"publicIp"`
PodIp string `json:"podIp"`
Ipv6PublicIp string `json:"ipv6PublicIp"`
InternalIp string `json:"internalIp"`
ImageList []string `json:"imageList"`
PodDataStorage int `json:"podDataStorage"`
PodEventDetails []PodEventDetails `json:"podEventDetails"`
Containers []ContainerDetails `json:"containers"`
ContainerStatuses []V1ContainerStatus `json:"containerStatuses"`
CreateTime string `json:"createTime"`
}
type PodEventDetails ¶ added in v0.9.133
type PortTypeList ¶ added in v0.9.133
type PostHttpReq ¶
type RegionInfo ¶ added in v0.9.72
type ReinstallVmInstanceArg ¶
type ReinstallVmInstanceArg struct {
AdminPass string `json:"adminPass,omitempty"`
ImageId string `json:"imageId,omitempty"`
ImageType ImageType `json:"imageType,omitempty"`
ResetDataDisk bool `json:"resetDataDisk,omitempty"`
KeyConfig *KeyConfig `json:"keyConfig,omitempty"`
CudaVersion string `json:"cudaVersion,omitempty"`
CudnnVersion string `json:"cudnnVersion,omitempty"`
DriverVersion string `json:"driverVersion,omitempty"`
UserData string `json:"userData,omitempty"`
}
type ReinstallVmInstanceResult ¶
type ReinstallVmInstanceResult struct {
Result bool `json:"result"`
Action string `json:"action"`
Details VmInstanceBriefVo `json:"details"`
}
type ReplicaTemplate ¶ added in v0.9.133
type Reservation ¶ added in v0.9.227
type ResourceBriefVo ¶
type ResourceBriefVo struct {
ServiceId string `json:"serviceId"`
ServiceName string `json:"serviceName"`
ResourceId string `json:"resourceId"`
ResourceName string `json:"resourceName"`
Labels map[string]string `json:"labels"`
TotalCpu int `json:"totalCpu"`
TotalMem int `json:"totalMem"`
TotalGpu int `json:"totalGpu"`
TotalPods int `json:"totalPods"`
RunningPods int `json:"runningPods"`
TotalDeploy int `json:"totalDeploy"`
IngressBandwidth string `json:"ingressBandwidth"`
DeployInstance DeploymentInstance `json:"deployInstance"`
ImageList []string `json:"imageList"`
Containers []ContainerDetails `json:"containers"`
ImageRegistrySecrets []ImageRegistrySecret `json:"imageRegistrySecrets"`
}
type ResourceStatus ¶ added in v0.9.72
type ResourceStatus string
type RouteCommonResult ¶ added in v0.9.227
type RouteRuleView ¶ added in v0.9.227
type RouteRuleView struct {
RuleId string `json:"ruleId"`
Status string `json:"status,omitempty"`
TableId string `json:"tableId"`
IpVersion int `json:"ipVersion"`
SourceAddress string `json:"sourceAddress"`
DestinationAddress string `json:"destinationAddress"`
RouteType string `json:"routeType"`
Nexthop string `json:"nexthop"`
Description string `json:"description"`
}
type RouteTableDetail ¶ added in v0.9.227
type RouteTableDetail struct {
RouteTableVo RouteTableDetailView `json:"routeTableVo"`
}
type RouteTableDetailView ¶ added in v0.9.227
type RouteTableDetailView struct {
TableId string `json:"tableId"`
Name string `json:"name"`
Status string `json:"status"`
VpcId string `json:"vpcId"`
VpcName string `json:"vpcName"`
VpcCidr string `json:"vpcCidr,omitempty"`
City string `json:"city"`
ServiceProvider string `json:"serviceProvider"`
Region string `json:"region"`
RegionId string `json:"regionId"`
RuleCount int `json:"ruleCount"`
}
type SecurityGroup ¶ added in v0.9.133
type ServiceAction ¶
type ServiceAction string
const ( ServiceActionStart ServiceAction = "start" ServiceActionStop ServiceAction = "stop" )
type ServiceActionResult ¶
type ServiceBatchOperateArgs ¶
type ServiceBatchOperateResult ¶
type ServiceBatchOperateResult struct {
Result bool `json:"result"`
Action string `json:"action"`
Details []OperationVo `json:"details"`
}
type ServiceBriefVo ¶
type ServiceBriefVo struct {
ServiceId string `json:"serviceId"`
ServiceName string `json:"serviceName"`
Level string `json:"level"`
Status string `json:"status"`
TotalCpu int `json:"totalCpu"`
TotalMen int `json:"totalMem"`
TotalGpu int `json:"totalGpu"`
TotalDisk int `json:"totalDisk"`
Regions int `json:"regions"`
TotalPods int `json:"totalPods"`
RunningPods int `json:"runningPods"`
TagsMap []Tag `json:"tagMap"`
DeployInstances []DeploymentInstance `json:"deployInstances"`
CreateTime string `json:"createTime"`
LastUpdateTime string `json:"lastUpdateTime"`
}
type ServiceDetailsVo ¶
type ServiceDetailsVo struct {
ServiceId string `json:"serviceId"`
ServiceName string `json:"serviceName"`
Status string `json:"status"`
TotalCpu int `json:"totalCpu"`
TotalMem int `json:"totalMem"`
TotalGpu int `json:"totalGpu"`
TotalDisk int `json:"totalDisk"`
TotalPods int `json:"totalPods"`
RunningPods int `json:"runningPods"`
RegionSize int `json:"regionSize"`
TagsMap []Tag `json:"tagsMap"`
DeployInstances []DeploymentInstance `json:"deployInstances"`
ResourceBriefVos []ResourceBriefVo `json:"resourceBriefVos"`
ImageRegistrySecrets []ImageRegistrySecret `json:"imageRegistrySecrets"`
LogCollectDetail LogCollectDetail `json:"logCollectDetail"`
CreateTime string `json:"createTime"`
LastUpdateTime string `json:"lastUpdateTime"`
}
type ServiceMetricsResult ¶
type ServiceProvider ¶
type ServiceProvider string
const ( ServiceChinaMobile ServiceProvider = "CHINA_MOBILE" ServiceChinaUnicom ServiceProvider = "CHINA_UNICOM" ServiceChinaTelecom ServiceProvider = "CHINA_TELECOM" ServiceTripleLine ServiceProvider = "TRIPLE_LINE" )
type ServiceProviderInfo ¶ added in v0.9.72
type ServiceProviderInfo struct {
ServiceProvider ServiceProvider `json:"serviceProvider"`
Name string `json:"name"`
RegionId string `json:"regionId"`
Capability []string `json:"capability"`
}
type SubnetCommonResult ¶ added in v0.9.227
type SubnetDetail ¶ added in v0.9.227
type SubnetDetail struct {
SubnetId string `json:"subnetId"`
Name string `json:"name"`
Cidr string `json:"cidr"`
Description string `json:"description"`
AvailableIp int `json:"availableIp,omitempty"`
UsedIp int `json:"usedIp,omitempty"`
VpcId string `json:"vpcId"`
RegionId string `json:"regionId"`
IsDefault bool `json:"isDefault"`
CreatedTime string `json:"createdTime"`
}
type SystemVolumeConfig ¶
type UpdateBecAppBlbTcpListenerRequest ¶ added in v0.9.133
type UpdateBecAppBlbUdpListenerRequest ¶ added in v0.9.133
type UpdateBecVmForm ¶
type UpdateBecVmForm struct {
Type UpdateVmType `json:"type,omitempty"`
Cpu int `json:"cpu,omitempty"`
Memory int `json:"memory,omitempty"`
NeedRestart bool `json:"needRestart,omitempty"`
AdminPass string `json:"adminPass,omitempty"`
ImageId string `json:"imageId,omitempty"`
Bandwidth int `json:"bandwidth,omitempty"`
ImageType ImageType `json:"imageType,omitempty"`
VmName string `json:"vmName,omitempty"`
Hostname string `json:"hostname,omitempty"`
VmId string `json:"vmId,omitempty"`
DataVolumeList *[]VolumeConfig `json:"dataVolumeList,omitempty"`
SecurityGroupIds []string `json:"securityGroupIds,omitempty"`
SystemVolume *SystemVolumeConfig `json:"systemVolume,omitempty"`
KeyConfig *KeyConfig `json:"keyConfig,omitempty"`
DnsConfig *DnsConfig `json:"dnsConfig,omitempty"`
NeedIpv6PublicIp bool `json:"needIpv6PublicIp"`
NetworkConfigList *[]NetworkConfig `json:"networkConfigList,omitempty"`
}
type UpdateBindPodWeightArgs ¶
type UpdateBlbArgs ¶
type UpdateBlbIpGroupBackendPolicyRequest ¶ added in v0.9.133
type UpdateBlbIpGroupBackendPolicyRequest struct {
HealthCheckHost string `json:"healthCheckHost,omitempty"`
HealthCheckNormalStatus string `json:"healthCheckNormalStatus,omitempty"`
HealthCheckUrlPath string `json:"healthCheckUrlPath,omitempty"`
HealthCheckDownRetry int `json:"healthCheckDownRetry,omitempty"`
HealthCheckIntervalInSecond int `json:"healthCheckIntervalInSecond,omitempty"`
HealthCheckPort int `json:"healthCheckPort,omitempty"`
HealthCheckTimeoutInSecond int `json:"healthCheckTimeoutInSecond,omitempty"`
HealthCheckUpRetry int `json:"healthCheckUpRetry,omitempty"`
IpGroupId string `json:"ipGroupId,omitempty"`
Id string `json:"id,omitempty"`
UdpHealthCheckString string `json:"udpHealthCheckString,omitempty"`
}
type UpdateBlbIpGroupMember ¶ added in v0.9.133
type UpdateBlbIpGroupMemberRequest ¶ added in v0.9.133
type UpdateBlbIpGroupMemberRequest struct {
IpGroupId string `json:"ipGroupId,omitempty"`
MemberList []UpdateBlbIpGroupMember `json:"memberList,omitempty"`
}
type UpdateBlbIpGroupRequest ¶ added in v0.9.133
type UpdateBlbResult ¶
type UpdateBlbResult struct {
Result bool `json:"result"`
Action string `json:"action"`
Details BlbInstanceVo `json:"details"`
}
type UpdateDeploymentReplicasRequest ¶ added in v0.9.133
type UpdateDeploymentReplicasRequest struct {
Replicas int `json:"replicas,omitempty"`
}
type UpdateRouteTableRequest ¶ added in v0.9.227
type UpdateRouteTableResponse ¶ added in v0.9.227
type UpdateRouteTableResult ¶ added in v0.9.227
type UpdateRouteTableResult struct {
Details UpdateRouteTableResponse `json:"details"`
Result bool `json:"result"`
Action string `json:"action"`
}
type UpdateServiceArgs ¶
type UpdateServiceArgs struct {
Type UpdateServiceType `json:"type,omitempty"`
DeployInstances *[]DeploymentInstance `json:"deployInstances,omitempty"`
ServiceName string `json:"serviceName,omitempty"`
NeedIpv6PublicIp string `json:"needIpv6PublicIp,omitempty"`
Containers *[]ContainerDetails `json:"containers,omitempty"`
ImageRegistrySecrets *[]ImageRegistrySecret `json:"imageRegistrySecrets,omitempty"`
Bandwidth int `json:"bandwidth,omitempty"`
}
type UpdateServiceResult ¶
type UpdateServiceResult struct {
Result bool `json:"result"`
Action string `json:"action"`
Details []ServiceBriefVo `json:"details"`
}
type UpdateServiceType ¶
type UpdateServiceType string
const ( UpdateServiceTypeName UpdateServiceType = "NAME" UpdateServiceTypeReplicas UpdateServiceType = "REPLICAS" UpdateServiceTypeNameResource UpdateServiceType = "RESOURCE" )
type UpdateSubnetRequest ¶ added in v0.9.227
type UpdateVmDeploySetArgs ¶ added in v0.9.133
type UpdateVmDeploymentResult ¶
type UpdateVmDeploymentResult struct {
Result bool `json:"result"`
Action string `json:"action"`
Details VmInstanceBriefVo `json:"details"`
}
type UpdateVmImageArgs ¶
type UpdateVmImageArgs struct {
Name string `json:"name,omitempty"`
}
type UpdateVmInstanceArgs ¶ added in v0.9.133
type UpdateVmInstanceArgs struct {
VmId string `json:"vmId,omitempty"`
Type string `json:"type,omitempty"`
Spec string `json:"spec,omitempty"`
Cpu int `json:"cpu,omitempty"`
Memory int `json:"memory,omitempty"`
NeedRestart bool `json:"needRestart,omitempty"`
AdminPass string `json:"adminPass,omitempty"`
ImageId string `json:"imageId,omitempty"`
Hostname string `json:"hostname,omitempty"`
Bandwidth int `json:"bandwidth,omitempty"`
ImageType ImageType `json:"imageType,omitempty"`
VmName string `json:"vmName,omitempty"`
DataVolumeList *[]VolumeConfig `json:"dataVolumeList,omitempty"`
SystemVolume *SystemVolumeConfig `json:"systemVolume,omitempty"`
KeyConfig *KeyConfig `json:"keyConfig,omitempty"`
DnsConfig *DnsConfig `json:"dnsConfig,omitempty"`
NeedIpv6PublicIp bool `json:"needIpv6PublicIp"`
NetworkConfig *NetworkConfigUpdateVmInstance `json:"networkConfig,omitempty"`
SecurityGroupIds []string `json:"securityGroupIds,omitempty"`
}
type UpdateVmServiceArgs ¶
type UpdateVmServiceArgs struct {
UpdateBecVmForm
ServiceName string `json:"serviceName,omitempty"`
DeployInstances *[]DeploymentInstance `json:"deployInstances,omitempty"`
ReplicaTemplate *ReplicaTemplate `json:"replicaTemplate,omitempty"`
}
type UpdateVmServiceResult ¶
type UpdateVmServiceResult struct {
Details VmServiceBriefVo `json:"details"`
Result bool `json:"result"`
Action string `json:"action"`
}
type UpdateVmType ¶
type UpdateVmType string
const ( UpdateVmTypeServiceName UpdateVmType = "serviceName" UpdateVmTypeVmName UpdateVmType = "vmName" UpdateVmPassWord UpdateVmType = "password" UpdateVmReplicas UpdateVmType = "replicas" UpdateVmResource UpdateVmType = "resource" UpdateVmSecurityGroup UpdateVmType = "securityGroup" UpdateVmHostname UpdateVmType = "hostname" )
type UpdateVpcRequest ¶ added in v0.9.227
type V1ConfigMapKeySelector ¶
type V1ContainerPort ¶
type V1ContainerState ¶ added in v0.9.133
type V1ContainerState struct {
Running V1ContainerStateRunning `json:"running"`
Terminated V1ContainerStateTerminated `json:"terminated"`
Waiting V1ContainerStateWaiting `json:"waiting"`
}
type V1ContainerStateRunning ¶ added in v0.9.133
type V1ContainerStateRunning struct {
StartedAt int `json:"startedAt"`
}
type V1ContainerStateTerminated ¶ added in v0.9.133
type V1ContainerStateWaiting ¶ added in v0.9.133
type V1ContainerStatus ¶ added in v0.9.133
type V1ContainerStatus struct {
ContainerID string `json:"containerID"`
Image string `json:"image"`
ImageID string `json:"imageID"`
Name string `json:"name"`
Ready bool `json:"ready"`
RestartCount int `json:"restartCount"`
LastState V1ContainerState `json:"lastState"`
State V1ContainerState `json:"state"`
}
type V1EnvVar ¶
type V1EnvVar struct {
Name string `json:"name,omitempty"`
Value string `json:"value,omitempty"`
ValueFrom *V1EnvVarSource `json:"valueFrom,omitempty"`
}
type V1EnvVarSource ¶
type V1EnvVarSource struct {
ConfigMapKeyRef *V1ConfigMapKeySelector `json:"configMapKeyRef,omitempty"`
FieldRef *V1ObjectFieldSelector `json:"fieldRef,omitempty"`
ResourceFieldRef *V1ResourceFieldSelector `json:"resourceFieldRef,omitempty"`
SecretKeyRef *V1SecretKeySelector `json:"secretKeyRef,omitempty"`
}
type V1ObjectFieldSelector ¶
type V1ResourceFieldSelector ¶
type V1SecretKeySelector ¶
type V1VolumeMount ¶
type VmConfigResult ¶
type VmConfigResult struct {
Cpu int `json:"cpu"`
Mem int `json:"mem"`
Region Region `json:"region"`
ServiceProvider ServiceProvider `json:"serviceProvider"`
City string `json:"city"`
RegionId string `json:"regionId"`
NeedPublicIp bool `json:"needPublicIp"`
Bandwidth string `json:"bandwidth"`
OsImage ImageDetail `json:"osImage"`
DataVolumeList []VolumeConfig `json:"dataVolumeList"`
SystemVolume SystemVolumeConfig `json:"systemVolume"`
}
type VmImageOperateResult ¶
type VmImageVo ¶
type VmImageVo struct {
ImageId string `json:"imageId"`
Status string `json:"status"`
BccImageId string `json:"bccImageId"`
Name string `json:"name"`
AccountId string `json:"accountId"`
ImageType string `json:"imageType"`
SystemDisk int `json:"systemDisk"`
OsType string `json:"osType"`
OsVersion string `json:"osVersion"`
OsName string `json:"osName"`
OsBuild string `json:"osBuild"`
OsLang string `json:"osLang"`
OsArch string `json:"osArch"`
CreateTime string `json:"createTime"`
UpdateTime string `json:"updateTime"`
}
type VmInstanceBatchOperateAction ¶
type VmInstanceBatchOperateAction string
const ( VmInstanceBatchOperateStart VmInstanceBatchOperateAction = "start" VmInstanceBatchOperateStop VmInstanceBatchOperateAction = "stop" VmInstanceBatchOperateRestart VmInstanceBatchOperateAction = "restart" )
type VmInstanceBriefVo ¶
type VmInstanceBriefVo struct {
IpPackageVo
VmId string `json:"vmId"`
Uuid string `json:"uuid"`
VmName string `json:"vmName"`
Status string `json:"status"`
Spec string `json:"spec"`
Cpu int `json:"cpu"`
Mem int `json:"mem"`
Gpu int `json:"gpu"`
Region Region `json:"region"`
City string `json:"city"`
RegionId string `json:"regionId"`
NeedPublicIp bool `json:"needPublicIp"`
NeedIpv6PublicIp bool `json:"needIpv6PublicIp"`
Bandwidth string `json:"bandwidth"`
OsImage ImageDetail `json:"osImage"`
ServiceId string `json:"serviceId"`
CreateTime string `json:"createTime"`
SecurityGroups []SecurityGroup `json:"securityGroups"`
Vpc Vpc `json:"vpc"`
DeploysetList []DeploySetVo `json:"deploysetList"`
Hostname string `json:"hostname"`
Dns string `json:"dns"`
UserData string `json:"userData"`
Tags *[]Tag `json:"tags,omitempty"`
}
type VmInstanceDetailsVo ¶
type VmInstanceDetailsVo struct {
VmInstanceBriefVo
RootDiskSize int `json:"rootDiskSize"`
DataStorage int `json:"dataStorage"`
DataVolumeList []VolumeConfig `json:"dataVolumeList"`
SystemVolume SystemVolumeConfig `json:"systemVolume"`
NetworkConfig NetworkConfig `json:"networkConfig"`
BccKeyPairList []KeyPair `json:"bccKeyPairList"`
RackId string `json:"rackId,omitempty"`
HostId string `json:"hostId,omitempty"`
SwitchId string `json:"switchId"`
PrivateIps []string `json:"privateIps"`
}
type VmInstanceIdVo ¶ added in v0.9.72
type VmPrivateIpResult ¶
type VmPrivateIpResult struct {
Result IpamResultVo `json:"result"`
Success bool `json:"success"`
}
type VmServiceAction ¶
type VmServiceAction string
const ( VmServiceActionStart VmServiceAction = "start" VmServiceActionStop VmServiceAction = "stop" )
type VmServiceActionResult ¶
type VmServiceBatchAction ¶
type VmServiceBatchAction string
const ( VmServiceBatchStart VmServiceBatchAction = "start" VmServiceBatchStop VmServiceBatchAction = "stop" )
type VmServiceBatchActionArgs ¶
type VmServiceBatchActionArgs struct {
IdList []string `json:"idList,omitempty"`
Action VmServiceBatchAction `json:"action,omitempty"`
}
type VmServiceBatchActionResult ¶
type VmServiceBatchActionResult struct {
Result bool `json:"result"`
Action string `json:"action"`
Details []OperationVo `json:"details"`
}
type VmServiceBriefVo ¶
type VmServiceBriefVo struct {
ServiceId string `json:"serviceId"`
ServiceName string `json:"serviceName"`
Status string `json:"status"`
TotalCpu int `json:"totalCpu"`
TotalMem int `json:"totalMem"`
TotalDisk int `json:"totalDisk"`
TotalRootDisk int `json:"totalRootDisk"`
Regions int `json:"regions"`
DeployInstances []DeploymentInstance `json:"deployInstances"`
TotalInstances int `json:"totalInstances"`
RunningInstances int `json:"runningInstances"`
OsImage ImageDetail `json:"osImage"`
CreateTime string `json:"createTime"`
TotalGpu int `json:"totalGpu"`
Instances []VmInstanceIdVo `json:"instances"`
Tags *[]Tag `json:"tags,omitempty"`
}
type VmServiceDetailsVo ¶
type VmServiceDetailsVo struct {
VmServiceBriefVo
Bandwidth string `json:"bandwidth"`
TotalBandwidth string `json:"totalBandwidth"`
DataVolumeList []VolumeConfig `json:"dataVolumeList"`
SystemVolumeList []VolumeConfig `json:"systemVolumeList"`
}
type Volume ¶
type Volume struct {
EmptyDir *[]EmptyDir `json:"emptyDir,omitempty"`
ConfigMap *[]ConfigFile `json:"configMap,omitempty"`
Secret *[]Secret `json:"secret,omitempty"`
VolumeClaimTemplates *[]VolumeClaimTemplates `json:"volumeClaimTemplates,omitempty"`
}
type VolumeClaimTemplates ¶
type VolumeConfig ¶
type VpcCommonResult ¶ added in v0.9.227
type VpcDetail ¶ added in v0.9.227
type VpcDetail struct {
VpcId string `json:"vpcId"`
Name string `json:"name"`
Description string `json:"description"`
Cidr string `json:"cidr"`
Region string `json:"region"`
ServiceProvider string `json:"serviceProvider"`
City string `json:"city"`
RegionId string `json:"regionId"`
IsDefault bool `json:"isDefault"`
CreatedTime string `json:"createdTime"`
}
Click to show internal directories.
Click to hide internal directories.