Documentation ¶
Overview ¶
Package cube include resources of ucloud cube product
See also
- API: https://docs.ucloud.cn/api/cube-api/index
- Product: https://www.ucloud.cn/site/product/cube.html
for detail.
Index ¶
- type CreateCubeDeploymentRequest
- type CreateCubeDeploymentResponse
- type CreateCubePodRequest
- type CreateCubePodResponse
- type CubeClient
- func (c *CubeClient) CreateCubeDeployment(req *CreateCubeDeploymentRequest) (*CreateCubeDeploymentResponse, error)
- func (c *CubeClient) CreateCubePod(req *CreateCubePodRequest) (*CreateCubePodResponse, error)
- func (c *CubeClient) DeleteCubeDeployment(req *DeleteCubeDeploymentRequest) (*DeleteCubeDeploymentResponse, error)
- func (c *CubeClient) DeleteCubePod(req *DeleteCubePodRequest) (*DeleteCubePodResponse, error)
- func (c *CubeClient) GetCubeDeployment(req *GetCubeDeploymentRequest) (*GetCubeDeploymentResponse, error)
- func (c *CubeClient) GetCubeExecToken(req *GetCubeExecTokenRequest) (*GetCubeExecTokenResponse, error)
- func (c *CubeClient) GetCubeExtendInfo(req *GetCubeExtendInfoRequest) (*GetCubeExtendInfoResponse, error)
- func (c *CubeClient) GetCubeMetrics(req *GetCubeMetricsRequest) (*GetCubeMetricsResponse, error)
- func (c *CubeClient) GetCubePod(req *GetCubePodRequest) (*GetCubePodResponse, error)
- func (c *CubeClient) GetCubePrice(req *GetCubePriceRequest) (*GetCubePriceResponse, error)
- func (c *CubeClient) GetCubeToken(req *GetCubeTokenRequest) (*GetCubeTokenResponse, error)
- func (c *CubeClient) ListCubeDeployment(req *ListCubeDeploymentRequest) (*ListCubeDeploymentResponse, error)
- func (c *CubeClient) ListCubePod(req *ListCubePodRequest) (*ListCubePodResponse, error)
- func (c *CubeClient) ModifyCubeExtendInfo(req *ModifyCubeExtendInfoRequest) (*ModifyCubeExtendInfoResponse, error)
- func (c *CubeClient) ModifyCubeTag(req *ModifyCubeTagRequest) (*ModifyCubeTagResponse, error)
- func (c *CubeClient) NewCreateCubeDeploymentRequest() *CreateCubeDeploymentRequest
- func (c *CubeClient) NewCreateCubePodRequest() *CreateCubePodRequest
- func (c *CubeClient) NewDeleteCubeDeploymentRequest() *DeleteCubeDeploymentRequest
- func (c *CubeClient) NewDeleteCubePodRequest() *DeleteCubePodRequest
- func (c *CubeClient) NewGetCubeDeploymentRequest() *GetCubeDeploymentRequest
- func (c *CubeClient) NewGetCubeExecTokenRequest() *GetCubeExecTokenRequest
- func (c *CubeClient) NewGetCubeExtendInfoRequest() *GetCubeExtendInfoRequest
- func (c *CubeClient) NewGetCubeMetricsRequest() *GetCubeMetricsRequest
- func (c *CubeClient) NewGetCubePodRequest() *GetCubePodRequest
- func (c *CubeClient) NewGetCubePriceRequest() *GetCubePriceRequest
- func (c *CubeClient) NewGetCubeTokenRequest() *GetCubeTokenRequest
- func (c *CubeClient) NewListCubeDeploymentRequest() *ListCubeDeploymentRequest
- func (c *CubeClient) NewListCubePodRequest() *ListCubePodRequest
- func (c *CubeClient) NewModifyCubeExtendInfoRequest() *ModifyCubeExtendInfoRequest
- func (c *CubeClient) NewModifyCubeTagRequest() *ModifyCubeTagRequest
- func (c *CubeClient) NewRenewCubePodRequest() *RenewCubePodRequest
- func (c *CubeClient) NewUpdateCubeDeploymentRequest() *UpdateCubeDeploymentRequest
- func (c *CubeClient) RenewCubePod(req *RenewCubePodRequest) (*RenewCubePodResponse, error)
- func (c *CubeClient) UpdateCubeDeployment(req *UpdateCubeDeploymentRequest) (*UpdateCubeDeploymentResponse, error)
- type CubeExtendInfo
- type DeleteCubeDeploymentRequest
- type DeleteCubeDeploymentResponse
- type DeleteCubePodRequest
- type DeleteCubePodResponse
- type EIPAddr
- type EIPSet
- type GetCubeDeploymentRequest
- type GetCubeDeploymentResponse
- type GetCubeExecTokenRequest
- type GetCubeExecTokenResponse
- type GetCubeExtendInfoRequest
- type GetCubeExtendInfoResponse
- type GetCubeMetricsRequest
- type GetCubeMetricsResponse
- type GetCubePodRequest
- type GetCubePodResponse
- type GetCubePriceRequest
- type GetCubePriceResponse
- type GetCubeTokenRequest
- type GetCubeTokenResponse
- type ListCubeDeploymentRequest
- type ListCubeDeploymentResponse
- type ListCubePodRequest
- type ListCubePodResponse
- type MetricDataSet
- type ModifyCubeExtendInfoRequest
- type ModifyCubeExtendInfoResponse
- type ModifyCubeTagRequest
- type ModifyCubeTagResponse
- type RenewCubePodRequest
- type RenewCubePodResponse
- type UpdateCubeDeploymentRequest
- type UpdateCubeDeploymentResponse
- type ValueSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateCubeDeploymentRequest ¶ added in v0.21.4
type CreateCubeDeploymentRequest struct { request.CommonBase // 计费模式 ChargeType *string `required:"false"` // CPU平台 CpuPlatform *string `required:"false"` // Deployment yaml,使用base64编码 Deployment *string `required:"true"` // 【该字段已废弃,请谨慎使用】 KubeConfig *string `required:"false" deprecated:"true"` // Deployment名称 Name *string `required:"false"` // 数量,默认为1 Quantity *string `required:"false"` // Deployment所属子网 SubnetId *string `required:"true"` // 标签 Tag *string `required:"false"` // Deployment所属VPC VPCId *string `required:"true"` }
CreateCubeDeploymentRequest is request schema for CreateCubeDeployment action
type CreateCubeDeploymentResponse ¶ added in v0.21.4
type CreateCubeDeploymentResponse struct { response.CommonBase // Deployment yaml,使用base64编码 Deployment string // Deployment ID DeploymentId string }
CreateCubeDeploymentResponse is response schema for CreateCubeDeployment action
type CreateCubePodRequest ¶
type CreateCubePodRequest struct { request.CommonBase // 【该字段已废弃,请谨慎使用】 ChargeType *string `required:"false" deprecated:"true"` // 【该字段已废弃,请谨慎使用】 CouponId *string `required:"false" deprecated:"true"` // 【该字段已废弃,请谨慎使用】 CpuPlatform *string `required:"false" deprecated:"true"` // 【该字段已废弃,请谨慎使用】 Group *string `required:"false" deprecated:"true"` // 【该字段已废弃,请谨慎使用】 KubeConfig *string `required:"false" deprecated:"true"` // 【该字段已废弃,请谨慎使用】 Name *string `required:"false" deprecated:"true"` // Pod yaml,使用base64编码 Pod *string `required:"true"` // 【该字段已废弃,请谨慎使用】 Quantity *int `required:"false" deprecated:"true"` // 容器实例所属的子网ID SubnetId *string `required:"true"` // 【该字段已废弃,请谨慎使用】 Tag *string `required:"false" deprecated:"true"` // 容器实例所属的VPC ID VPCId *string `required:"true"` }
CreateCubePodRequest is request schema for CreateCubePod action
type CreateCubePodResponse ¶
type CreateCubePodResponse struct { response.CommonBase // 【该字段已废弃,请谨慎使用】 Action string `deprecated:"true"` // 容器实例ID CubeId string // Pod yaml,使用base64编码 Pod string // 【该字段已废弃,请谨慎使用】 RetCode int `deprecated:"true"` }
CreateCubePodResponse is response schema for CreateCubePod action
type CubeClient ¶
CubeClient is the client of Cube
func NewClient ¶
func NewClient(config *ucloud.Config, credential *auth.Credential) *CubeClient
NewClient will return a instance of CubeClient
func (*CubeClient) CreateCubeDeployment ¶ added in v0.21.4
func (c *CubeClient) CreateCubeDeployment(req *CreateCubeDeploymentRequest) (*CreateCubeDeploymentResponse, error)
API: CreateCubeDeployment
创建容器实例Deployment
func (*CubeClient) CreateCubePod ¶
func (c *CubeClient) CreateCubePod(req *CreateCubePodRequest) (*CreateCubePodResponse, error)
API: CreateCubePod
创建一个容器实例
func (*CubeClient) DeleteCubeDeployment ¶ added in v0.21.4
func (c *CubeClient) DeleteCubeDeployment(req *DeleteCubeDeploymentRequest) (*DeleteCubeDeploymentResponse, error)
API: DeleteCubeDeployment
删除容器实例Deployment
func (*CubeClient) DeleteCubePod ¶
func (c *CubeClient) DeleteCubePod(req *DeleteCubePodRequest) (*DeleteCubePodResponse, error)
API: DeleteCubePod
删除容器实例
func (*CubeClient) GetCubeDeployment ¶ added in v0.21.4
func (c *CubeClient) GetCubeDeployment(req *GetCubeDeploymentRequest) (*GetCubeDeploymentResponse, error)
API: GetCubeDeployment
获取容器实例Deployment详细信息
func (*CubeClient) GetCubeExecToken ¶ added in v0.21.13
func (c *CubeClient) GetCubeExecToken(req *GetCubeExecTokenRequest) (*GetCubeExecTokenResponse, error)
API: GetCubeExecToken
获取容器实例执行token
func (*CubeClient) GetCubeExtendInfo ¶
func (c *CubeClient) GetCubeExtendInfo(req *GetCubeExtendInfoRequest) (*GetCubeExtendInfoResponse, error)
API: GetCubeExtendInfo
获取容器实例附加信息
func (*CubeClient) GetCubeMetrics ¶ added in v0.21.4
func (c *CubeClient) GetCubeMetrics(req *GetCubeMetricsRequest) (*GetCubeMetricsResponse, error)
API: GetCubeMetrics
获取容器实例指标
func (*CubeClient) GetCubePod ¶
func (c *CubeClient) GetCubePod(req *GetCubePodRequest) (*GetCubePodResponse, error)
API: GetCubePod
获取Pod的详细信息
func (*CubeClient) GetCubePrice ¶ added in v0.21.4
func (c *CubeClient) GetCubePrice(req *GetCubePriceRequest) (*GetCubePriceResponse, error)
API: GetCubePrice
获取cube的价格
func (*CubeClient) GetCubeToken ¶ added in v0.21.17
func (c *CubeClient) GetCubeToken(req *GetCubeTokenRequest) (*GetCubeTokenResponse, error)
API: GetCubeToken
获取容器实例Token
func (*CubeClient) ListCubeDeployment ¶ added in v0.21.13
func (c *CubeClient) ListCubeDeployment(req *ListCubeDeploymentRequest) (*ListCubeDeploymentResponse, error)
API: ListCubeDeployment
获取Cube的Deployment列表
func (*CubeClient) ListCubePod ¶
func (c *CubeClient) ListCubePod(req *ListCubePodRequest) (*ListCubePodResponse, error)
API: ListCubePod
获取容器实例详细列表
func (*CubeClient) ModifyCubeExtendInfo ¶
func (c *CubeClient) ModifyCubeExtendInfo(req *ModifyCubeExtendInfoRequest) (*ModifyCubeExtendInfoResponse, error)
API: ModifyCubeExtendInfo
修改Cube额外信息
func (*CubeClient) ModifyCubeTag ¶ added in v0.19.1
func (c *CubeClient) ModifyCubeTag(req *ModifyCubeTagRequest) (*ModifyCubeTagResponse, error)
API: ModifyCubeTag
修改业务组名字
func (*CubeClient) NewCreateCubeDeploymentRequest ¶ added in v0.21.4
func (c *CubeClient) NewCreateCubeDeploymentRequest() *CreateCubeDeploymentRequest
NewCreateCubeDeploymentRequest will create request of CreateCubeDeployment action.
func (*CubeClient) NewCreateCubePodRequest ¶
func (c *CubeClient) NewCreateCubePodRequest() *CreateCubePodRequest
NewCreateCubePodRequest will create request of CreateCubePod action.
func (*CubeClient) NewDeleteCubeDeploymentRequest ¶ added in v0.21.4
func (c *CubeClient) NewDeleteCubeDeploymentRequest() *DeleteCubeDeploymentRequest
NewDeleteCubeDeploymentRequest will create request of DeleteCubeDeployment action.
func (*CubeClient) NewDeleteCubePodRequest ¶
func (c *CubeClient) NewDeleteCubePodRequest() *DeleteCubePodRequest
NewDeleteCubePodRequest will create request of DeleteCubePod action.
func (*CubeClient) NewGetCubeDeploymentRequest ¶ added in v0.21.4
func (c *CubeClient) NewGetCubeDeploymentRequest() *GetCubeDeploymentRequest
NewGetCubeDeploymentRequest will create request of GetCubeDeployment action.
func (*CubeClient) NewGetCubeExecTokenRequest ¶ added in v0.21.13
func (c *CubeClient) NewGetCubeExecTokenRequest() *GetCubeExecTokenRequest
NewGetCubeExecTokenRequest will create request of GetCubeExecToken action.
func (*CubeClient) NewGetCubeExtendInfoRequest ¶
func (c *CubeClient) NewGetCubeExtendInfoRequest() *GetCubeExtendInfoRequest
NewGetCubeExtendInfoRequest will create request of GetCubeExtendInfo action.
func (*CubeClient) NewGetCubeMetricsRequest ¶ added in v0.21.4
func (c *CubeClient) NewGetCubeMetricsRequest() *GetCubeMetricsRequest
NewGetCubeMetricsRequest will create request of GetCubeMetrics action.
func (*CubeClient) NewGetCubePodRequest ¶
func (c *CubeClient) NewGetCubePodRequest() *GetCubePodRequest
NewGetCubePodRequest will create request of GetCubePod action.
func (*CubeClient) NewGetCubePriceRequest ¶ added in v0.21.4
func (c *CubeClient) NewGetCubePriceRequest() *GetCubePriceRequest
NewGetCubePriceRequest will create request of GetCubePrice action.
func (*CubeClient) NewGetCubeTokenRequest ¶ added in v0.21.17
func (c *CubeClient) NewGetCubeTokenRequest() *GetCubeTokenRequest
NewGetCubeTokenRequest will create request of GetCubeToken action.
func (*CubeClient) NewListCubeDeploymentRequest ¶ added in v0.21.13
func (c *CubeClient) NewListCubeDeploymentRequest() *ListCubeDeploymentRequest
NewListCubeDeploymentRequest will create request of ListCubeDeployment action.
func (*CubeClient) NewListCubePodRequest ¶
func (c *CubeClient) NewListCubePodRequest() *ListCubePodRequest
NewListCubePodRequest will create request of ListCubePod action.
func (*CubeClient) NewModifyCubeExtendInfoRequest ¶
func (c *CubeClient) NewModifyCubeExtendInfoRequest() *ModifyCubeExtendInfoRequest
NewModifyCubeExtendInfoRequest will create request of ModifyCubeExtendInfo action.
func (*CubeClient) NewModifyCubeTagRequest ¶ added in v0.19.1
func (c *CubeClient) NewModifyCubeTagRequest() *ModifyCubeTagRequest
NewModifyCubeTagRequest will create request of ModifyCubeTag action.
func (*CubeClient) NewRenewCubePodRequest ¶
func (c *CubeClient) NewRenewCubePodRequest() *RenewCubePodRequest
NewRenewCubePodRequest will create request of RenewCubePod action.
func (*CubeClient) NewUpdateCubeDeploymentRequest ¶ added in v0.21.4
func (c *CubeClient) NewUpdateCubeDeploymentRequest() *UpdateCubeDeploymentRequest
NewUpdateCubeDeploymentRequest will create request of UpdateCubeDeployment action.
func (*CubeClient) RenewCubePod ¶
func (c *CubeClient) RenewCubePod(req *RenewCubePodRequest) (*RenewCubePodResponse, error)
API: RenewCubePod
更新容器实例
func (*CubeClient) UpdateCubeDeployment ¶ added in v0.21.4
func (c *CubeClient) UpdateCubeDeployment(req *UpdateCubeDeploymentRequest) (*UpdateCubeDeploymentResponse, error)
API: UpdateCubeDeployment
更新Deployment
type CubeExtendInfo ¶
type CubeExtendInfo struct { // Cube的Id CubeId string // EIPSet Eip []EIPSet // 资源有效期 Expiration int // Cube的名称 Name string // 业务组名称 Tag string }
CubeExtendInfo - Cube的额外信息
type DeleteCubeDeploymentRequest ¶ added in v0.21.4
type DeleteCubeDeploymentRequest struct { request.CommonBase // 【该字段已废弃,请谨慎使用】 DeploymentId *string `required:"true" deprecated:"true"` }
DeleteCubeDeploymentRequest is request schema for DeleteCubeDeployment action
type DeleteCubeDeploymentResponse ¶ added in v0.21.4
type DeleteCubeDeploymentResponse struct {
response.CommonBase
}
DeleteCubeDeploymentResponse is response schema for DeleteCubeDeployment action
type DeleteCubePodRequest ¶
type DeleteCubePodRequest struct { request.CommonBase // 要删除的容器实例ID,若填写了Uid则可忽略 CubeId *string `required:"false"` // 要释放的EIP,如果容器实例绑定了EIP则可以填写,会将EIP一并释放。否则EIP会被保留。 ReleaseEIP *string `required:"false"` // 要删除的容器实例UID,若填写了CubeId则可忽略 Uid *string `required:"false"` }
DeleteCubePodRequest is request schema for DeleteCubePod action
type DeleteCubePodResponse ¶
type DeleteCubePodResponse struct {
response.CommonBase
}
DeleteCubePodResponse is response schema for DeleteCubePod action
type EIPSet ¶
type EIPSet struct { // EIP带宽值 Bandwidth int // 带宽类型0标准普通带宽,1表示共享带宽 BandwidthType int // EIP创建时间 CreateTime int // EIP地址 EIPAddr []EIPAddr // EIPId EIPId string // 付费模式,带宽付费或者流量付费 PayMode string // EIP绑定对象的资源Id Resource string // EIP状态,表示使用中或者空闲 Status string // EIP权重 Weight int }
EIPSet - EIP信息
type GetCubeDeploymentRequest ¶ added in v0.21.4
type GetCubeDeploymentRequest struct { request.CommonBase // Deployment ID DeploymentId *string `required:"true"` }
GetCubeDeploymentRequest is request schema for GetCubeDeployment action
type GetCubeDeploymentResponse ¶ added in v0.21.4
type GetCubeDeploymentResponse struct { response.CommonBase // Deployment yaml,使用base64编码 Deployment string }
GetCubeDeploymentResponse is response schema for GetCubeDeployment action
type GetCubeExecTokenRequest ¶ added in v0.21.13
type GetCubeExecTokenRequest struct { request.CommonBase // 要执行的容器名称 ContainerName *string `required:"true"` // 容器实例ID,若填写了Uid则可忽略 CubeId *string `required:"false"` // 容器实例UID,若填写了CubeId则可忽略 Uid *string `required:"false"` }
GetCubeExecTokenRequest is request schema for GetCubeExecToken action
type GetCubeExecTokenResponse ¶ added in v0.21.13
type GetCubeExecTokenResponse struct { response.CommonBase // 终端url TerminalUrl string // 执行Token Token string }
GetCubeExecTokenResponse is response schema for GetCubeExecToken action
type GetCubeExtendInfoRequest ¶
type GetCubeExtendInfoRequest struct { request.CommonBase // 容器实例ID,用逗号分割 CubeIds *string `required:"false"` }
GetCubeExtendInfoRequest is request schema for GetCubeExtendInfo action
type GetCubeExtendInfoResponse ¶
type GetCubeExtendInfoResponse struct { response.CommonBase // 容器实例的附加信息 ExtendInfo []CubeExtendInfo }
GetCubeExtendInfoResponse is response schema for GetCubeExtendInfo action
type GetCubeMetricsRequest ¶ added in v0.21.4
type GetCubeMetricsRequest struct { request.CommonBase // 开始时间 BeginTime *string `required:"true"` // 容器名称 ContainerName *string `required:"true"` // 结束时间 EndTime *string `required:"true"` // 指标名称 MetricName *string `required:"true"` // 资源ID ResourceId *string `required:"true"` }
GetCubeMetricsRequest is request schema for GetCubeMetrics action
type GetCubeMetricsResponse ¶ added in v0.21.4
type GetCubeMetricsResponse struct { response.CommonBase // 指标数据 DataSets []MetricDataSet // 【该字段已废弃,请谨慎使用】 Message string `deprecated:"true"` }
GetCubeMetricsResponse is response schema for GetCubeMetrics action
type GetCubePodRequest ¶
type GetCubePodRequest struct { request.CommonBase // CubeId和Uid任意一个 CubeId *string `required:"false"` // CubeId和Uid任意一个 Uid *string `required:"false"` }
GetCubePodRequest is request schema for GetCubePod action
type GetCubePodResponse ¶
type GetCubePodResponse struct { response.CommonBase // base64编码的pod的yaml Pod string }
GetCubePodResponse is response schema for GetCubePod action
type GetCubePriceRequest ¶ added in v0.21.4
type GetCubePriceRequest struct { request.CommonBase // 计费模式。枚举值为: \\ > Year,按年付费; \\ > Month,按月付费;\\ > Dynamic,按小时预付费 \\ > Postpay,按秒后付费,默认为月付 ChargeType *string `required:"true"` // 购买数量 Count *string `required:"true"` // CPU 配置,单位为毫核,例如如 1 核则须输入 1000 Cpu *string `required:"true"` // 内存配置,单位为 Mi,例如 1Gi 须输入 1024 Mem *string `required:"true"` // 购买时长。默认:值 1。按小时购买(Dynamic/Postpay)时无需此参数。 月付时,此参数传0,代表购买至月末。 Quantity *int `required:"true"` }
GetCubePriceRequest is request schema for GetCubePrice action
type GetCubePriceResponse ¶ added in v0.21.4
type GetCubePriceResponse struct { response.CommonBase // 列表价格,单位为分 OriginalPrice int // 折扣后价格,单位为分 Price int }
GetCubePriceResponse is response schema for GetCubePrice action
type GetCubeTokenRequest ¶ added in v0.21.17
type GetCubeTokenRequest struct { request.CommonBase // 容器名称 ContainerName *string `required:"true"` // 容器实例ID,若填写了Uid则可忽略 CubeId *string `required:"false"` // 容器实例UID,若填写了CubeId则可忽略 Uid *string `required:"false"` }
GetCubeTokenRequest is request schema for GetCubeToken action
type GetCubeTokenResponse ¶ added in v0.21.17
type GetCubeTokenResponse struct { response.CommonBase // 容器实例Token Token string }
GetCubeTokenResponse is response schema for GetCubeToken action
type ListCubeDeploymentRequest ¶ added in v0.21.13
type ListCubeDeploymentRequest struct { request.CommonBase // 默认20 Limit *int `required:"true"` // 默认0 Offset *int `required:"true"` }
ListCubeDeploymentRequest is request schema for ListCubeDeployment action
type ListCubeDeploymentResponse ¶ added in v0.21.13
type ListCubeDeploymentResponse struct { response.CommonBase // DeploymentInfo Deployments []string // TotalCount int }
ListCubeDeploymentResponse is response schema for ListCubeDeployment action
type ListCubePodRequest ¶
type ListCubePodRequest struct { request.CommonBase // 容器实例所属Deployment DeploymentId *string `required:"false"` // 容器实例组 Group *string `required:"false"` // 返回数据长度,默认为20,最大100 Limit *int `required:"false"` // 列表起始位置偏移量,默认为0 Offset *int `required:"false"` // 容器实例所属子网 SubnetId *string `required:"false"` // 容器实例所属VPC VPCId *string `required:"false"` }
ListCubePodRequest is request schema for ListCubePod action
type ListCubePodResponse ¶
type ListCubePodResponse struct { response.CommonBase // 容器实例yaml列表,以base64编码 Pods []string // 容器实例总数 TotalCount int }
ListCubePodResponse is response schema for ListCubePod action
type MetricDataSet ¶ added in v0.21.4
MetricDataSet - 监控数据集合
type ModifyCubeExtendInfoRequest ¶
type ModifyCubeExtendInfoRequest struct { request.CommonBase // cube的id CubeId *string `required:"true"` // 修改的名字,规则(^[a-zA-Z0-9-_.\u4e00-\u9fa5]{1,32}) Name *string `required:"false"` }
ModifyCubeExtendInfoRequest is request schema for ModifyCubeExtendInfo action
type ModifyCubeExtendInfoResponse ¶
type ModifyCubeExtendInfoResponse struct {
response.CommonBase
}
ModifyCubeExtendInfoResponse is response schema for ModifyCubeExtendInfo action
type ModifyCubeTagRequest ¶ added in v0.19.1
type ModifyCubeTagRequest struct { request.CommonBase // CubeId CubeId *string `required:"true"` // 业务组名称 Tag *string `required:"true"` }
ModifyCubeTagRequest is request schema for ModifyCubeTag action
type ModifyCubeTagResponse ¶ added in v0.19.1
type ModifyCubeTagResponse struct { response.CommonBase // CubeId CubeId string }
ModifyCubeTagResponse is response schema for ModifyCubeTag action
type RenewCubePodRequest ¶
type RenewCubePodRequest struct { request.CommonBase // 要更新的容器实例ID CubeId *string `required:"false"` // Pod yaml,以base64编码 Pod *string `required:"true"` }
RenewCubePodRequest is request schema for RenewCubePod action
type RenewCubePodResponse ¶
type RenewCubePodResponse struct { response.CommonBase // Pod yaml,以base64编码 Pod string }
RenewCubePodResponse is response schema for RenewCubePod action
type UpdateCubeDeploymentRequest ¶ added in v0.21.4
type UpdateCubeDeploymentRequest struct { request.CommonBase // base64编码的Deployment的yaml。大小不超过16KB Deployment *string `required:"true"` // Deployment的Id DeploymentId *string `required:"true"` // Deployment的name Name *string `required:"false"` }
UpdateCubeDeploymentRequest is request schema for UpdateCubeDeployment action
type UpdateCubeDeploymentResponse ¶ added in v0.21.4
type UpdateCubeDeploymentResponse struct { response.CommonBase // 经过base64编码的Deployment的yaml Deployment string }
UpdateCubeDeploymentResponse is response schema for UpdateCubeDeployment action