model

package
v0.1.26 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppComponentDao

type AppComponentDao struct {

	// 部署任务id
	TaskId *string `json:"task_id,omitempty"`

	// AOM应用id
	AppId *string `json:"app_id,omitempty"`

	// AOM应用名称
	AppName *string `json:"app_name,omitempty"`

	// AOM应用组件id
	CompId *string `json:"comp_id,omitempty"`

	// AOM应用组件名称
	CompName *string `json:"comp_name,omitempty"`

	// 租户ID
	DomainId *string `json:"domain_id,omitempty"`

	// 局点信息
	Region *string `json:"region,omitempty"`

	// AOM应用组件是否生效,0表示初始化,1表示执行成功,已生效
	State *string `json:"state,omitempty"`
}

应用和AOM应用组件对应关系

func (AppComponentDao) String

func (o AppComponentDao) String() string

type ConfigInfoDo

type ConfigInfoDo struct {

	// 部署参数名称,用户可自定义
	Name *string `json:"name,omitempty"`

	// 类型,如果填写name字段,则type必选,若type为空则默认为text
	Type *ConfigInfoDoType `json:"type,omitempty"`

	// 描述
	Description *string `json:"description,omitempty"`

	// 部署参数值
	Value *string `json:"value,omitempty"`

	// 部署任务id,创建应用后由系统自动生成
	TaskId *string `json:"task_id,omitempty"`

	// 表示是否为静态参数,值为1时不支持部署时变更参数,值为0时支持,并且也会把该参数上报流水线
	StaticStatus *ConfigInfoDoStaticStatus `json:"static_status,omitempty"`

	// 当参数类型为enum枚举类型时,必须填写可选值
	Limits *[]ParamTypeLimits `json:"limits,omitempty"`
}

部署参数类

func (ConfigInfoDo) String

func (o ConfigInfoDo) String() string

type ConfigInfoDoStaticStatus

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

func (ConfigInfoDoStaticStatus) MarshalJSON

func (c ConfigInfoDoStaticStatus) MarshalJSON() ([]byte, error)

func (*ConfigInfoDoStaticStatus) UnmarshalJSON

func (c *ConfigInfoDoStaticStatus) UnmarshalJSON(b []byte) error

func (ConfigInfoDoStaticStatus) Value added in v0.0.90

func (c ConfigInfoDoStaticStatus) Value() int32

type ConfigInfoDoStaticStatusEnum

type ConfigInfoDoStaticStatusEnum struct {
	E_0 ConfigInfoDoStaticStatus
	E_1 ConfigInfoDoStaticStatus
}

func GetConfigInfoDoStaticStatusEnum

func GetConfigInfoDoStaticStatusEnum() ConfigInfoDoStaticStatusEnum

type ConfigInfoDoType

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

func (ConfigInfoDoType) MarshalJSON

func (c ConfigInfoDoType) MarshalJSON() ([]byte, error)

func (*ConfigInfoDoType) UnmarshalJSON

func (c *ConfigInfoDoType) UnmarshalJSON(b []byte) error

func (ConfigInfoDoType) Value added in v0.0.90

func (c ConfigInfoDoType) Value() string

type ConfigInfoDoTypeEnum

type ConfigInfoDoTypeEnum struct {
	TEXT       ConfigInfoDoType
	HOST_GROUP ConfigInfoDoType
	ENUM       ConfigInfoDoType
	ENCRYPT    ConfigInfoDoType
}

func GetConfigInfoDoTypeEnum

func GetConfigInfoDoTypeEnum() ConfigInfoDoTypeEnum

type CreateDeployTaskByTemplateRequest

type CreateDeployTaskByTemplateRequest struct {
	Body *TemplateTaskRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateDeployTaskByTemplateRequest) String

type CreateDeployTaskByTemplateResponse

type CreateDeployTaskByTemplateResponse struct {

	// 应用名称
	TaskName *string `json:"task_name,omitempty"`

	// 部署任务id
	TaskId         *string `json:"task_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateDeployTaskByTemplateResponse) String

type CreateDeploymentGroupRequest

type CreateDeploymentGroupRequest struct {
	Body *DeploymentGroup `json:"body,omitempty"`
}

Request Object

func (CreateDeploymentGroupRequest) String

type CreateDeploymentGroupResponse

type CreateDeploymentGroupResponse struct {

	// 主机组ID
	GroupId        *string `json:"group_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateDeploymentGroupResponse) String

type CreateDeploymentHostRequest

type CreateDeploymentHostRequest struct {

	// 主机组id
	GroupId string `json:"group_id"`

	Body *DeploymentHost `json:"body,omitempty"`
}

Request Object

func (CreateDeploymentHostRequest) String

type CreateDeploymentHostResponse

type CreateDeploymentHostResponse struct {

	// 主机id
	HostId         *string `json:"host_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateDeploymentHostResponse) String

type DeleteDeployTaskRequest

type DeleteDeployTaskRequest struct {

	// 部署任务id
	TaskId string `json:"task_id"`
}

Request Object

func (DeleteDeployTaskRequest) String

func (o DeleteDeployTaskRequest) String() string

type DeleteDeployTaskResponse

type DeleteDeployTaskResponse struct {

	// 部署任务id
	TaskId         *string `json:"task_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DeleteDeployTaskResponse) String

func (o DeleteDeployTaskResponse) String() string

type DeleteDeploymentGroupRequest

type DeleteDeploymentGroupRequest struct {

	// 主机组id
	GroupId string `json:"group_id"`
}

Request Object

func (DeleteDeploymentGroupRequest) String

type DeleteDeploymentGroupResponse

type DeleteDeploymentGroupResponse struct {

	// 主机组ID
	GroupId        *string `json:"group_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DeleteDeploymentGroupResponse) String

type DeleteDeploymentHostRequest

type DeleteDeploymentHostRequest struct {

	// 主机组id
	GroupId string `json:"group_id"`

	// 主机id
	HostId string `json:"host_id"`
}

Request Object

func (DeleteDeploymentHostRequest) String

type DeleteDeploymentHostResponse

type DeleteDeploymentHostResponse struct {

	// 主机id
	HostId         *string `json:"host_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DeleteDeploymentHostResponse) String

type DeploymentGroup

type DeploymentGroup struct {

	// 主机组名
	Name string `json:"name"`

	// 局点信息
	RegionName string `json:"region_name"`

	// devcloud项目id
	ProjectId string `json:"project_id"`

	// 操作信息:windows|linux
	Os DeploymentGroupOs `json:"os"`

	// slave集群id,默认为null时使用devcloud八爪鱼slave集群,用户自定义slave时为slave集群id
	SlaveClusterId *string `json:"slave_cluster_id,omitempty"`

	// 描述
	Description *string `json:"description,omitempty"`
}

主机组详细信息

func (DeploymentGroup) String

func (o DeploymentGroup) String() string

type DeploymentGroupDetail

type DeploymentGroupDetail struct {

	// 主机组id
	GroupId *string `json:"group_id,omitempty"`

	// 创建时间
	CreatedTime *string `json:"created_time,omitempty"`

	// 修改时间
	UpdatedTime *string `json:"updated_time,omitempty"`

	// 组内主机数量,一个主机组内最多可添加200台主机
	HostCount *int32 `json:"host_count,omitempty"`

	// devcloud项目名称
	ProjectName *string `json:"project_name,omitempty"`

	// 主机组名
	Name *string `json:"name,omitempty"`

	// 局点信息
	RegionName *string `json:"region_name,omitempty"`

	// devcloud项目id
	ProjectId *string `json:"project_id,omitempty"`

	// 操作系统:windows|linux
	Os *string `json:"os,omitempty"`

	// 自动连通性验证 0不执行 1每日 2每周
	AutoConnectionTestSwitch *int32 `json:"auto_connection_test_switch,omitempty"`

	// slave集群id,默认为null时使用devcloud八爪鱼slave集群,用户自定义slave时为slave集群id
	SlaveClusterId *string `json:"slave_cluster_id,omitempty"`

	// 用户昵称
	NickName *string `json:"nick_name,omitempty"`

	CreatedBy *UserInfo `json:"created_by,omitempty"`

	UpdatedBy *UserInfo `json:"updated_by,omitempty"`

	// 描述
	Description *string `json:"description,omitempty"`

	Permission *PermissionGroupDetail `json:"permission,omitempty"`
}

主机组详情响应体

func (DeploymentGroupDetail) String

func (o DeploymentGroupDetail) String() string

type DeploymentGroupOs

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

func (DeploymentGroupOs) MarshalJSON

func (c DeploymentGroupOs) MarshalJSON() ([]byte, error)

func (*DeploymentGroupOs) UnmarshalJSON

func (c *DeploymentGroupOs) UnmarshalJSON(b []byte) error

func (DeploymentGroupOs) Value added in v0.0.90

func (c DeploymentGroupOs) Value() string

type DeploymentGroupOsEnum

type DeploymentGroupOsEnum struct {
	WINDOWS DeploymentGroupOs
	LINUX   DeploymentGroupOs
}

func GetDeploymentGroupOsEnum

func GetDeploymentGroupOsEnum() DeploymentGroupOsEnum

type DeploymentGroupUpdateRequest

type DeploymentGroupUpdateRequest struct {

	// 主机组名
	Name string `json:"name"`

	// 描述
	Description *string `json:"description,omitempty"`

	// 自定义slave资源池id
	SlaveClusterId *string `json:"slave_cluster_id,omitempty"`

	// 自动连通性验证 0不执行 1每日 2每周
	AutoConnectionTestSwitch *DeploymentGroupUpdateRequestAutoConnectionTestSwitch `json:"auto_connection_test_switch,omitempty"`
}

func (DeploymentGroupUpdateRequest) String

type DeploymentGroupUpdateRequestAutoConnectionTestSwitch

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

func (DeploymentGroupUpdateRequestAutoConnectionTestSwitch) MarshalJSON

func (*DeploymentGroupUpdateRequestAutoConnectionTestSwitch) UnmarshalJSON

func (DeploymentGroupUpdateRequestAutoConnectionTestSwitch) Value added in v0.0.90

type DeploymentHost

type DeploymentHost struct {

	// 主机名称
	HostName string `json:"host_name"`

	// IP,请输入弹性ip格式:161.17.101.12
	Ip string `json:"ip"`

	// ssh端口,如:22
	Port int32 `json:"port"`

	// 操作系统:windows|linux,需要和主机组保持一致
	Os DeploymentHostOs `json:"os"`

	// 是否为代理机
	AsProxy bool `json:"as_proxy"`

	// 代理机id
	ProxyHostId *string `json:"proxy_host_id,omitempty"`

	Authorization *DeploymentHostAuthorizationBody `json:"authorization"`

	// 免费启用应用运维服务(AOM),提供指标监控、日志查询、告警功能(自动安装数据采集器 ICAgent,仅支持华为云linux主机)
	InstallIcagent *bool `json:"install_icagent,omitempty"`
}

主机信息body体

func (DeploymentHost) String

func (o DeploymentHost) String() string

type DeploymentHostAuthorizationBody

type DeploymentHostAuthorizationBody struct {

	// 用户名,可输入中英文,数字和符号(-_.)。
	Username string `json:"username"`

	// 密码,认证类型为0时,密码必填。
	Password *string `json:"password,omitempty"`

	// 密钥,认证类型为1时,密钥必填
	PrivateKey *string `json:"private_key,omitempty"`

	// 认证类型,0表示使用密码认证,1表示使用密钥认证
	TrustedType DeploymentHostAuthorizationBodyTrustedType `json:"trusted_type"`
}

登录主机鉴权,使用密码登录则填写密码即可,使用密钥则填写密钥,二选一即可。

func (DeploymentHostAuthorizationBody) String

type DeploymentHostAuthorizationBodyTrustedType

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

func (DeploymentHostAuthorizationBodyTrustedType) MarshalJSON

func (*DeploymentHostAuthorizationBodyTrustedType) UnmarshalJSON

func (DeploymentHostAuthorizationBodyTrustedType) Value added in v0.0.90

type DeploymentHostDetail

type DeploymentHostDetail struct {

	// 主机组id
	GroupId string `json:"group_id"`

	// 主机名称
	HostName string `json:"host_name"`

	// IP,请输入弹性ip格式:161.17.101.12
	Ip string `json:"ip"`

	// ssh端口,如:22
	Port int32 `json:"port"`

	// 操作系统:windows|linux,需要和主机组保持一致
	Os DeploymentHostDetailOs `json:"os"`

	// 是否为代理机
	AsProxy bool `json:"as_proxy"`

	// 代理机id
	ProxyHostId *string `json:"proxy_host_id,omitempty"`

	Authorization *DeploymentHostAuthorizationBody `json:"authorization"`

	// 免费启用应用运维服务(AOM),提供指标监控、日志查询、告警功能(自动安装数据采集器 ICAgent,仅支持华为云linux主机)
	InstallIcagent *bool `json:"install_icagent,omitempty"`

	// 主机ID
	HostId *string `json:"host_id,omitempty"`

	ProxyHost *DeploymentHostDetail `json:"proxy_host,omitempty"`

	// 主机组名
	GroupName *string `json:"group_name,omitempty"`

	// devcloud项目id
	ProjectId *string `json:"project_id,omitempty"`

	// devcloud项目名称
	ProjectName *string `json:"project_name,omitempty"`

	Permission *PermissionHostDetail `json:"permission,omitempty"`

	// 更新时间
	UpdateTime *string `json:"update_time,omitempty"`

	// 最后连接时间
	LastestConnectionTime *string `json:"lastest_connection_time,omitempty"`

	// 连接状态
	ConnectionStatus *string `json:"connection_status,omitempty"`

	// 拥有者名称
	OwnerName *string `json:"owner_name,omitempty"`

	// 维护者id
	UpdatorId *string `json:"updator_id,omitempty"`

	// 创建时间
	CreateTime *string `json:"create_time,omitempty"`

	// 昵称
	NickName *string `json:"nick_name,omitempty"`

	// 拥有者id
	OwnerId *string `json:"owner_id,omitempty"`

	// 维护者名称
	UpdatorName *string `json:"updator_name,omitempty"`

	// 连接结果
	ConnectionResult *string `json:"connection_result,omitempty"`
}

主机信息详情

func (DeploymentHostDetail) String

func (o DeploymentHostDetail) String() string

type DeploymentHostDetailOs

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

func (DeploymentHostDetailOs) MarshalJSON

func (c DeploymentHostDetailOs) MarshalJSON() ([]byte, error)

func (*DeploymentHostDetailOs) UnmarshalJSON

func (c *DeploymentHostDetailOs) UnmarshalJSON(b []byte) error

func (DeploymentHostDetailOs) Value added in v0.0.90

func (c DeploymentHostDetailOs) Value() string

type DeploymentHostDetailOsEnum

type DeploymentHostDetailOsEnum struct {
	WINDOWS DeploymentHostDetailOs
	LINUX   DeploymentHostDetailOs
}

func GetDeploymentHostDetailOsEnum

func GetDeploymentHostDetailOsEnum() DeploymentHostDetailOsEnum

type DeploymentHostInfo

type DeploymentHostInfo struct {

	// 主机组id
	GroupId string `json:"group_id"`

	// 主机名称
	HostName string `json:"host_name"`

	// IP,请输入弹性ip格式:161.17.101.12
	Ip string `json:"ip"`

	// ssh端口,如:22
	Port int32 `json:"port"`

	// 操作系统:windows|linux,需要和主机组保持一致
	Os DeploymentHostInfoOs `json:"os"`

	// 是否为代理机
	AsProxy bool `json:"as_proxy"`

	// 代理机id
	ProxyHostId *string `json:"proxy_host_id,omitempty"`

	Authorization *DeploymentHostAuthorizationBody `json:"authorization"`

	// 免费启用应用运维服务(AOM),提供指标监控、日志查询、告警功能(自动安装数据采集器 ICAgent,仅支持华为云linux主机)
	InstallIcagent *bool `json:"install_icagent,omitempty"`
}

主机信息body体

func (DeploymentHostInfo) String

func (o DeploymentHostInfo) String() string

type DeploymentHostInfoOs

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

func (DeploymentHostInfoOs) MarshalJSON

func (c DeploymentHostInfoOs) MarshalJSON() ([]byte, error)

func (*DeploymentHostInfoOs) UnmarshalJSON

func (c *DeploymentHostInfoOs) UnmarshalJSON(b []byte) error

func (DeploymentHostInfoOs) Value added in v0.0.90

func (c DeploymentHostInfoOs) Value() string

type DeploymentHostInfoOsEnum

type DeploymentHostInfoOsEnum struct {
	WINDOWS DeploymentHostInfoOs
	LINUX   DeploymentHostInfoOs
}

func GetDeploymentHostInfoOsEnum

func GetDeploymentHostInfoOsEnum() DeploymentHostInfoOsEnum

type DeploymentHostOs

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

func (DeploymentHostOs) MarshalJSON

func (c DeploymentHostOs) MarshalJSON() ([]byte, error)

func (*DeploymentHostOs) UnmarshalJSON

func (c *DeploymentHostOs) UnmarshalJSON(b []byte) error

func (DeploymentHostOs) Value added in v0.0.90

func (c DeploymentHostOs) Value() string

type DeploymentHostOsEnum

type DeploymentHostOsEnum struct {
	WINDOWS DeploymentHostOs
	LINUX   DeploymentHostOs
}

func GetDeploymentHostOsEnum

func GetDeploymentHostOsEnum() DeploymentHostOsEnum

type DeploymentHostRequest

type DeploymentHostRequest struct {

	// 主机名称
	HostName string `json:"host_name"`

	// IP,请输入弹性ip格式:161.17.101.12
	Ip string `json:"ip"`

	// ssh端口,如:22
	Port int32 `json:"port"`

	// 是否为代理机
	AsProxy bool `json:"as_proxy"`

	// 代理机id
	ProxyHostId *string `json:"proxy_host_id,omitempty"`

	Authorization *DeploymentHostAuthorizationBody `json:"authorization"`

	// 免费启用应用运维服务(AOM),提供指标监控、日志查询、告警功能(自动安装数据采集器 ICAgent,仅支持华为云linux主机)
	InstallIcagent *bool `json:"install_icagent,omitempty"`

	// 是否将当前主机的密码信息同步到同一项目下其他主机组中具有相同IP、用户名、端口的主机。
	Sync *bool `json:"sync,omitempty"`
}

主机信息

func (DeploymentHostRequest) String

func (o DeploymentHostRequest) String() string

type DeploymentUpdateHost

type DeploymentUpdateHost struct {

	// 主机名称
	HostName string `json:"host_name"`

	// IP,请输入弹性ip格式:161.17.101.12
	Ip string `json:"ip"`

	// ssh端口,如:22
	Port int32 `json:"port"`

	// 是否为代理机
	AsProxy bool `json:"as_proxy"`

	// 代理机id
	ProxyHostId *string `json:"proxy_host_id,omitempty"`

	Authorization *DeploymentHostAuthorizationBody `json:"authorization"`

	// 免费启用应用运维服务(AOM),提供指标监控、日志查询、告警功能(自动安装数据采集器 ICAgent,仅支持华为云linux主机)
	InstallIcagent *bool `json:"install_icagent,omitempty"`
}

主机信息body体

func (DeploymentUpdateHost) String

func (o DeploymentUpdateHost) String() string

type DynamicConfigInfo

type DynamicConfigInfo struct {

	// 部署应用时传递的参数名称
	Key *string `json:"key,omitempty"`

	// 部署应用时传递的参数值
	Value *string `json:"value,omitempty"`

	// 类型,如果填写动态参数,则类型必选
	Type *DynamicConfigInfoType `json:"type,omitempty"`
}

部署应用时传递的参数

func (DynamicConfigInfo) String

func (o DynamicConfigInfo) String() string

type DynamicConfigInfoType

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

func (DynamicConfigInfoType) MarshalJSON

func (c DynamicConfigInfoType) MarshalJSON() ([]byte, error)

func (*DynamicConfigInfoType) UnmarshalJSON

func (c *DynamicConfigInfoType) UnmarshalJSON(b []byte) error

func (DynamicConfigInfoType) Value added in v0.0.90

func (c DynamicConfigInfoType) Value() string

type DynamicConfigInfoTypeEnum

type DynamicConfigInfoTypeEnum struct {
	TEXT       DynamicConfigInfoType
	HOST_GROUP DynamicConfigInfoType
	ENCRYPT    DynamicConfigInfoType
	ENUM       DynamicConfigInfoType
}

func GetDynamicConfigInfoTypeEnum

func GetDynamicConfigInfoTypeEnum() DynamicConfigInfoTypeEnum

type EnvExecutionBody

type EnvExecutionBody struct {

	// 部署应用时传递的参数
	Params *[]DynamicConfigInfo `json:"params,omitempty"`

	// 应用的部署id,可通过record_id回滚至之前的部署状态。选中应用历史部署记录,在URL中获取
	RecordId *string `json:"record_id,omitempty"`

	// 限制触发来源,0不限制任何部署请求来源,1时只允许通过流水线触发部署
	TriggerSource *string `json:"trigger_source,omitempty"`
}

应用启动参数

func (EnvExecutionBody) String

func (o EnvExecutionBody) String() string

type ExecuteRecordV2Body added in v0.0.85

type ExecuteRecordV2Body struct {

	// 部署用时
	Duration *string `json:"duration,omitempty"`

	// 应用状态
	State *string `json:"state,omitempty"`

	// 操作人用户名
	Operator *string `json:"operator,omitempty"`

	// 部署记录ID
	ExecutionId *string `json:"execution_id,omitempty"`

	// 部署应用的开始时间
	StartTime *string `json:"start_time,omitempty"`

	// 操作人昵称
	Nickname *string `json:"nickname,omitempty"`

	// 部署应用的结束时间
	EndTime *string `json:"end_time,omitempty"`

	// 部署记录序列号
	ReleaseId *int64 `json:"release_id,omitempty"`

	// 类型
	Type *string `json:"type,omitempty"`
}

应用部署记录Body

func (ExecuteRecordV2Body) String added in v0.0.85

func (o ExecuteRecordV2Body) String() string

type KeyValueDo

type KeyValueDo struct {

	// 部署应用时传递的参数名称
	Key *string `json:"key,omitempty"`

	// 部署应用时传递的参数值
	Value *string `json:"value,omitempty"`
}

部署应用时传递的动态参数

func (KeyValueDo) String

func (o KeyValueDo) String() string

type ListDeployTaskHistoryByDateRequest added in v0.0.85

type ListDeployTaskHistoryByDateRequest struct {

	// 项目ID
	ProjectId string `json:"project_id"`

	// 任务ID
	Id string `json:"id"`

	// 分页页码, 表示从此页开始查询, page大于等于1
	Page int32 `json:"page"`

	// 每页显示的条目数量,size小于等于100
	Size int32 `json:"size"`

	// 区间开始时间,格式yyyy-MM-dd。 开始时间和结束时间间隔不能超过30天
	StartDate string `json:"start_date"`

	// 区间结束时间,格式yyyy-MM-dd。 开始时间和结束时间间隔不能超过30天
	EndDate string `json:"end_date"`
}

Request Object

func (ListDeployTaskHistoryByDateRequest) String added in v0.0.85

type ListDeployTaskHistoryByDateResponse added in v0.0.85

type ListDeployTaskHistoryByDateResponse struct {

	// 应用历史部署记录列表
	Result *[]ExecuteRecordV2Body `json:"result,omitempty"`

	// 开始时间和结束时间内应用历史部署记录总数
	TotalNum       *int32 `json:"total_num,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListDeployTaskHistoryByDateResponse) String added in v0.0.85

type ListDeployTasksRequest added in v0.0.85

type ListDeployTasksRequest struct {

	// 项目ID
	ProjectId string `json:"project_id"`

	// 分页页码, 表示从此页开始查询, page大于等于1
	Page int32 `json:"page"`

	// 每页显示的条目数量,size小于等于100
	Size int32 `json:"size"`
}

Request Object

func (ListDeployTasksRequest) String added in v0.0.85

func (o ListDeployTasksRequest) String() string

type ListDeployTasksResponse added in v0.0.85

type ListDeployTasksResponse struct {

	// 总数
	TotalNum *int32 `json:"total_num,omitempty"`

	// 返回结果
	Result         *[]TaskInfo `json:"result,omitempty"`
	HttpStatusCode int         `json:"-"`
}

Response Object

func (ListDeployTasksResponse) String added in v0.0.85

func (o ListDeployTasksResponse) String() string

type ListHostGroupsRequest

type ListHostGroupsRequest struct {

	// devcloud创建的项目id
	ProjectId *string `json:"project_id,omitempty"`

	// 局点信息
	RegionName string `json:"region_name"`

	// 操作系统:windows|linux
	Os *ListHostGroupsRequestOs `json:"os,omitempty"`

	// 偏移量,表示从此偏移量开始查询,offset大于等于0
	Offset *int32 `json:"offset,omitempty"`

	// 每页显示的条目数量,默认为1000
	Limit *int32 `json:"limit,omitempty"`

	// 主机组名
	Name *string `json:"name,omitempty"`

	// 排序字段:nickName|NAME|OWNER_NAME|CREATE_TIME|name|owner_name|create_time,不传使用默认排序
	SortKey *string `json:"sort_key,omitempty"`

	// 排序方式:DESC、ASC,默认为DESC
	SortDir *ListHostGroupsRequestSortDir `json:"sort_dir,omitempty"`
}

Request Object

func (ListHostGroupsRequest) String

func (o ListHostGroupsRequest) String() string

type ListHostGroupsRequestOs

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

func (ListHostGroupsRequestOs) MarshalJSON

func (c ListHostGroupsRequestOs) MarshalJSON() ([]byte, error)

func (*ListHostGroupsRequestOs) UnmarshalJSON

func (c *ListHostGroupsRequestOs) UnmarshalJSON(b []byte) error

func (ListHostGroupsRequestOs) Value added in v0.0.90

func (c ListHostGroupsRequestOs) Value() string

type ListHostGroupsRequestOsEnum

type ListHostGroupsRequestOsEnum struct {
	WINDOWS ListHostGroupsRequestOs
	LINUX   ListHostGroupsRequestOs
}

func GetListHostGroupsRequestOsEnum

func GetListHostGroupsRequestOsEnum() ListHostGroupsRequestOsEnum

type ListHostGroupsRequestSortDir

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

func (ListHostGroupsRequestSortDir) MarshalJSON

func (c ListHostGroupsRequestSortDir) MarshalJSON() ([]byte, error)

func (*ListHostGroupsRequestSortDir) UnmarshalJSON

func (c *ListHostGroupsRequestSortDir) UnmarshalJSON(b []byte) error

func (ListHostGroupsRequestSortDir) Value added in v0.0.90

type ListHostGroupsRequestSortDirEnum

type ListHostGroupsRequestSortDirEnum struct {
	DESC ListHostGroupsRequestSortDir
	ASC  ListHostGroupsRequestSortDir
}

func GetListHostGroupsRequestSortDirEnum

func GetListHostGroupsRequestSortDirEnum() ListHostGroupsRequestSortDirEnum

type ListHostGroupsResponse

type ListHostGroupsResponse struct {

	// 主机组个数
	Total *int32 `json:"total,omitempty"`

	// 主机组详情响应体
	HostGroups     *[]DeploymentGroupDetail `json:"host_groups,omitempty"`
	HttpStatusCode int                      `json:"-"`
}

Response Object

func (ListHostGroupsResponse) String

func (o ListHostGroupsResponse) String() string

type ListHostsRequest

type ListHostsRequest struct {

	// 主机组id
	GroupId string `json:"group_id"`

	// 是否为代理机
	AsProxy *bool `json:"as_proxy,omitempty"`

	// 偏移量,表示从此偏移量开始查询,offset大于等于0
	Offset *int32 `json:"offset,omitempty"`

	// 每页显示的条目数量,默认为1000
	Limit *int32 `json:"limit,omitempty"`

	// 主机名,可输入中英文,数字和符号(-_.)
	Name *string `json:"name,omitempty"`

	// 排序字段,支持:AS_PROXY|HOST_NAME|OS|OWNER_NAME|as_proxy|host_name|os|owner_name|nickName。不填默认为:as_proxy
	SortKey *string `json:"sort_key,omitempty"`

	// 排序方式,默认为:DESC。DESC:降序排序。ASC:升序排序
	SortDir *ListHostsRequestSortDir `json:"sort_dir,omitempty"`

	// 返回结果是否加密
	WithAuth *bool `json:"with_auth,omitempty"`
}

Request Object

func (ListHostsRequest) String

func (o ListHostsRequest) String() string

type ListHostsRequestSortDir

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

func (ListHostsRequestSortDir) MarshalJSON

func (c ListHostsRequestSortDir) MarshalJSON() ([]byte, error)

func (*ListHostsRequestSortDir) UnmarshalJSON

func (c *ListHostsRequestSortDir) UnmarshalJSON(b []byte) error

func (ListHostsRequestSortDir) Value added in v0.0.90

func (c ListHostsRequestSortDir) Value() string

type ListHostsRequestSortDirEnum

type ListHostsRequestSortDirEnum struct {
	DESC ListHostsRequestSortDir
	ASC  ListHostsRequestSortDir
}

func GetListHostsRequestSortDirEnum

func GetListHostsRequestSortDirEnum() ListHostsRequestSortDirEnum

type ListHostsResponse

type ListHostsResponse struct {

	// 主机数量
	Total *int32 `json:"total,omitempty"`

	// 主机组名称
	GroupName *string `json:"group_name,omitempty"`

	// 主机列表信息
	Hosts          *[]DeploymentHostDetail `json:"hosts,omitempty"`
	HttpStatusCode int                     `json:"-"`
}

Response Object

func (ListHostsResponse) String

func (o ListHostsResponse) String() string

type ListTaskSuccessRateRequest added in v0.0.85

type ListTaskSuccessRateRequest struct {

	// 项目id
	ProjectId string `json:"project_id"`

	Body *TasksSuccessRateQuery `json:"body,omitempty"`
}

Request Object

func (ListTaskSuccessRateRequest) String added in v0.0.85

type ListTaskSuccessRateResponse added in v0.0.85

type ListTaskSuccessRateResponse struct {

	// 项目id
	ProjectId *string `json:"project_id,omitempty"`

	// 项目名称
	ProjectName *string `json:"project_name,omitempty"`

	// 部署应用开始时间范围的左边界(包含),格式yyyy-MM-dd
	StartDate *string `json:"start_date,omitempty"`

	// 部署应用开始时间范围的右边界(包含),格式yyyy-MM-dd 。最大时间范围为1年。
	EndDate *string `json:"end_date,omitempty"`

	// 应用的成功率列表
	TasksSuccessRate *[]TaskSuccessRate `json:"tasks_success_rate,omitempty"`
	HttpStatusCode   int                `json:"-"`
}

Response Object

func (ListTaskSuccessRateResponse) String added in v0.0.85

type ParamTypeLimits

type ParamTypeLimits struct {

	// 枚举值可选参数
	Name *string `json:"name,omitempty"`
}

枚举类型参数实体类

func (ParamTypeLimits) String

func (o ParamTypeLimits) String() string

type PermissionGroupDetail

type PermissionGroupDetail struct {

	// 是否有查看权限
	CanView *bool `json:"can_view,omitempty"`

	// 是否有编辑权限
	CanEdit *bool `json:"can_edit,omitempty"`

	// 是否有删除权限
	CanDelete *bool `json:"can_delete,omitempty"`

	// 是否有添加主机权限
	CanAddHost *bool `json:"can_add_host,omitempty"`

	// 是否有管理权限
	CanManage *bool `json:"can_manage,omitempty"`
}

主机组相关权限详情类

func (PermissionGroupDetail) String

func (o PermissionGroupDetail) String() string

type PermissionHostDetail

type PermissionHostDetail struct {

	// 是否有查看权限
	CanView *bool `json:"can_view,omitempty"`

	// 是否有编辑权限
	CanEdit *bool `json:"can_edit,omitempty"`

	// 是否有删除权限
	CanDelete *bool `json:"can_delete,omitempty"`

	// 是否有添加主机权限
	CanAddHost *bool `json:"can_add_host,omitempty"`

	// 是否测试主机连通性权限
	CanConnectionTest *bool `json:"can_connection_test,omitempty"`
}

主机相关权限详情类

func (PermissionHostDetail) String

func (o PermissionHostDetail) String() string

type ShowDeployTaskDetailRequest

type ShowDeployTaskDetailRequest struct {

	// 部署任务id
	TaskId string `json:"task_id"`
}

Request Object

func (ShowDeployTaskDetailRequest) String

type ShowDeployTaskDetailResponse

type ShowDeployTaskDetailResponse struct {

	// 部署任务id
	TaskId *string `json:"task_id,omitempty"`

	// 应用名称
	Name *string `json:"name,omitempty"`

	// 项目id
	ProjectId *string `json:"project_id,omitempty"`

	// 项目名称
	ProjectName *string `json:"project_name,omitempty"`

	// 部署类型模式,包括deployTemplate,ansible,shell
	DeploySystem *string `json:"deploy_system,omitempty"`

	// 创建时间
	CreateTime *string `json:"create_time,omitempty"`

	// 修改时间
	UpdateTime *string `json:"update_time,omitempty"`

	// 应用状态,Draft表示草稿状态,Available表示可用状态
	State *ShowDeployTaskDetailResponseState `json:"state,omitempty"`

	// 最后一次部署时间
	ExecutionTime *string `json:"execution_time,omitempty"`

	// 描述
	Description *string `json:"description,omitempty"`

	// 是否使用默认权限矩阵
	IsDefautPermission *bool `json:"is_defaut_permission,omitempty"`

	// 模板id
	TemplateId *string `json:"template_id,omitempty"`

	// 应用创建者用户名
	Owner *string `json:"owner,omitempty"`

	// 应用创建者昵称
	NickName *string `json:"nick_name,omitempty"`

	// 应用创建者用户ID
	OwnerId *string `json:"owner_id,omitempty"`

	// 应用创建者租户ID
	TenantId *string `json:"tenant_id,omitempty"`

	// 应用创建者租户名
	TenantName *string `json:"tenant_name,omitempty"`

	// slave集群id,默认为null时使用devcloud八爪鱼slave集群,用户自定义slave时为slave集群id
	SlaveClusterId *string `json:"slave_cluster_id,omitempty"`

	// 当前用户是否已收藏
	IsCare *bool `json:"is_care,omitempty"`

	// 是否有编辑权限
	CanModify *bool `json:"can_modify,omitempty"`

	// 是否有删除的权限
	CanDelete *bool `json:"can_delete,omitempty"`

	// 是否有查看权限
	CanView *bool `json:"can_view,omitempty"`

	// 是否有部署权限
	CanExecute *bool `json:"can_execute,omitempty"`

	// 是否有复制权限
	CanCopy *bool `json:"can_copy,omitempty"`

	// 是否有管理权限,包含增删改查部署以及权限修改
	CanManage *bool `json:"can_manage,omitempty"`

	// 应用和AOM应用组件对应关系
	AppComponentList *[]AppComponentDao `json:"app_component_list,omitempty"`

	// 角色ID,0:应用创建者,-1:项目创建者,3:项目经理,4:开发人员,5:测试经理,6:测试人员,7:参与者,8:浏览者
	RoleId *int32 `json:"role_id,omitempty"`

	// 部署任务id
	Id *string `json:"id,omitempty"`

	// 部署记录序列号
	ReleaseId *int32 `json:"release_id,omitempty"`

	// 部署时间
	Duration *string `json:"duration,omitempty"`

	// 部署状态
	ExecutionState *string `json:"execution_state,omitempty"`

	// 部署者id
	ExecutorId *string `json:"executor_id,omitempty"`

	// 部署者名称
	ExecutorNickName *string `json:"executor_nick_name,omitempty"`

	// 部署步骤
	Steps          map[string]Step `json:"steps,omitempty"`
	HttpStatusCode int             `json:"-"`
}

Response Object

func (ShowDeployTaskDetailResponse) String

type ShowDeployTaskDetailResponseState

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

func (ShowDeployTaskDetailResponseState) MarshalJSON

func (c ShowDeployTaskDetailResponseState) MarshalJSON() ([]byte, error)

func (*ShowDeployTaskDetailResponseState) UnmarshalJSON

func (c *ShowDeployTaskDetailResponseState) UnmarshalJSON(b []byte) error

func (ShowDeployTaskDetailResponseState) Value added in v0.0.90

type ShowDeployTaskDetailResponseStateEnum

type ShowDeployTaskDetailResponseStateEnum struct {
	AVAILABLE ShowDeployTaskDetailResponseState
	DRAFT     ShowDeployTaskDetailResponseState
}

func GetShowDeployTaskDetailResponseStateEnum

func GetShowDeployTaskDetailResponseStateEnum() ShowDeployTaskDetailResponseStateEnum

type ShowDeploymentGroupDetailRequest

type ShowDeploymentGroupDetailRequest struct {

	// 主机组id
	GroupId string `json:"group_id"`
}

Request Object

func (ShowDeploymentGroupDetailRequest) String

type ShowDeploymentGroupDetailResponse

type ShowDeploymentGroupDetailResponse struct {

	// 主机组id
	GroupId *string `json:"group_id,omitempty"`

	// 创建时间
	CreatedTime *string `json:"created_time,omitempty"`

	// 修改时间
	UpdatedTime *string `json:"updated_time,omitempty"`

	// 组内主机数量,一个主机组内最多可添加200台主机
	HostCount *int32 `json:"host_count,omitempty"`

	// devcloud项目名称
	ProjectName *string `json:"project_name,omitempty"`

	// 主机组名
	Name *string `json:"name,omitempty"`

	// 局点信息
	RegionName *string `json:"region_name,omitempty"`

	// devcloud项目id
	ProjectId *string `json:"project_id,omitempty"`

	// 操作系统:windows|linux
	Os *string `json:"os,omitempty"`

	// 自动连通性验证 0不执行 1每日 2每周
	AutoConnectionTestSwitch *int32 `json:"auto_connection_test_switch,omitempty"`

	// slave集群id,默认为null时使用devcloud八爪鱼slave集群,用户自定义slave时为slave集群id
	SlaveClusterId *string `json:"slave_cluster_id,omitempty"`

	// 用户昵称
	NickName *string `json:"nick_name,omitempty"`

	CreatedBy *UserInfo `json:"created_by,omitempty"`

	UpdatedBy *UserInfo `json:"updated_by,omitempty"`

	// 描述
	Description *string `json:"description,omitempty"`

	Permission     *PermissionGroupDetail `json:"permission,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

Response Object

func (ShowDeploymentGroupDetailResponse) String

type ShowDeploymentHostDetailRequest

type ShowDeploymentHostDetailRequest struct {

	// 主机组id
	GroupId string `json:"group_id"`

	// 主机id
	HostId string `json:"host_id"`
}

Request Object

func (ShowDeploymentHostDetailRequest) String

type ShowDeploymentHostDetailResponse

type ShowDeploymentHostDetailResponse struct {

	// 主机组id
	GroupId string `json:"group_id"`

	// 主机名称
	HostName string `json:"host_name"`

	// IP,请输入弹性ip格式:161.17.101.12
	Ip string `json:"ip"`

	// ssh端口,如:22
	Port int32 `json:"port"`

	// 操作系统:windows|linux,需要和主机组保持一致
	Os ShowDeploymentHostDetailResponseOs `json:"os"`

	// 是否为代理机
	AsProxy bool `json:"as_proxy"`

	// 代理机id
	ProxyHostId *string `json:"proxy_host_id,omitempty"`

	Authorization *DeploymentHostAuthorizationBody `json:"authorization"`

	// 免费启用应用运维服务(AOM),提供指标监控、日志查询、告警功能(自动安装数据采集器 ICAgent,仅支持华为云linux主机)
	InstallIcagent *bool `json:"install_icagent,omitempty"`

	// 主机ID
	HostId *string `json:"host_id,omitempty"`

	ProxyHost *DeploymentHostDetail `json:"proxy_host,omitempty"`

	// 主机组名
	GroupName *string `json:"group_name,omitempty"`

	// devcloud项目id
	ProjectId *string `json:"project_id,omitempty"`

	// devcloud项目名称
	ProjectName *string `json:"project_name,omitempty"`

	Permission *PermissionHostDetail `json:"permission,omitempty"`

	// 更新时间
	UpdateTime *string `json:"update_time,omitempty"`

	// 最后连接时间
	LastestConnectionTime *string `json:"lastest_connection_time,omitempty"`

	// 连接状态
	ConnectionStatus *string `json:"connection_status,omitempty"`

	// 拥有者名称
	OwnerName *string `json:"owner_name,omitempty"`

	// 维护者id
	UpdatorId *string `json:"updator_id,omitempty"`

	// 创建时间
	CreateTime *string `json:"create_time,omitempty"`

	// 昵称
	NickName *string `json:"nick_name,omitempty"`

	// 拥有者id
	OwnerId *string `json:"owner_id,omitempty"`

	// 维护者名称
	UpdatorName *string `json:"updator_name,omitempty"`

	// 连接结果
	ConnectionResult *string `json:"connection_result,omitempty"`
	HttpStatusCode   int     `json:"-"`
}

Response Object

func (ShowDeploymentHostDetailResponse) String

type ShowDeploymentHostDetailResponseOs

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

func (ShowDeploymentHostDetailResponseOs) MarshalJSON

func (c ShowDeploymentHostDetailResponseOs) MarshalJSON() ([]byte, error)

func (*ShowDeploymentHostDetailResponseOs) UnmarshalJSON

func (c *ShowDeploymentHostDetailResponseOs) UnmarshalJSON(b []byte) error

func (ShowDeploymentHostDetailResponseOs) Value added in v0.0.90

type ShowDeploymentHostDetailResponseOsEnum

type ShowDeploymentHostDetailResponseOsEnum struct {
	WINDOWS ShowDeploymentHostDetailResponseOs
	LINUX   ShowDeploymentHostDetailResponseOs
}

func GetShowDeploymentHostDetailResponseOsEnum

func GetShowDeploymentHostDetailResponseOsEnum() ShowDeploymentHostDetailResponseOsEnum

type ShowProjectSuccessRateRequest added in v0.0.85

type ShowProjectSuccessRateRequest struct {

	// 项目id
	ProjectId string `json:"project_id"`

	// 部署应用开始时间范围的左边界(包含),格式yyyy-MM-dd
	StartDate string `json:"start_date"`

	// 部署应用开始时间范围的右边界(包含),格式yyyy-MM-dd 。最大时间范围为1年。
	EndDate string `json:"end_date"`
}

Request Object

func (ShowProjectSuccessRateRequest) String added in v0.0.85

type ShowProjectSuccessRateResponse added in v0.0.85

type ShowProjectSuccessRateResponse struct {

	// 成功率
	SuccessRate *string `json:"success_rate,omitempty"`

	// 项目id
	ProjectId *string `json:"project_id,omitempty"`

	// 项目名称
	ProjectName *string `json:"project_name,omitempty"`

	// 应用部署开始时间范围的左边界(包含),格式yyyy-MM-dd
	StartDate *string `json:"start_date,omitempty"`

	// 应用部署开始时间范围的右边界(包含),格式yyyy-MM-dd
	EndDate *string `json:"end_date,omitempty"`

	// 查询到的应用数
	TaskCount *int32 `json:"task_count,omitempty"`

	// 查询到的应用部署记录数
	RecordCount *int32 `json:"record_count,omitempty"`

	// 成功的应用部署记录数
	SuccessRecordCount *int32 `json:"success_record_count,omitempty"`
	HttpStatusCode     int    `json:"-"`
}

Response Object

func (ShowProjectSuccessRateResponse) String added in v0.0.85

type StartDeployTaskRequest

type StartDeployTaskRequest struct {

	// 部署任务id
	TaskId string `json:"task_id"`

	Body *EnvExecutionBody `json:"body,omitempty"`
}

Request Object

func (StartDeployTaskRequest) String

func (o StartDeployTaskRequest) String() string

type StartDeployTaskResponse

type StartDeployTaskResponse struct {

	// 部署记录id
	Id *string `json:"id,omitempty"`

	// 部署任务id
	TaskId *string `json:"task_id,omitempty"`

	// 执行任务名称
	JobName *string `json:"job_name,omitempty"`

	// 应用和AOM应用组件对应关系
	AppComponentList *[]AppComponentDao `json:"app_component_list,omitempty"`
	HttpStatusCode   int                `json:"-"`
}

Response Object

func (StartDeployTaskResponse) String

func (o StartDeployTaskResponse) String() string

type Step added in v0.1.8

type Step struct {

	// id
	Id *string `json:"id,omitempty"`

	// 名称
	Name *string `json:"name,omitempty"`

	// 参数
	Params map[string]string `json:"params,omitempty"`

	// 是否开启
	Enable *bool `json:"enable,omitempty"`
}

部署步骤

func (Step) String added in v0.1.8

func (o Step) String() string

type TaskInfo added in v0.0.85

type TaskInfo struct {

	// 部署任务id
	TaskId *string `json:"task_id,omitempty"`

	// 应用名称
	Name *string `json:"name,omitempty"`

	// 项目id
	ProjectId *string `json:"project_id,omitempty"`

	// 项目名称
	ProjectName *string `json:"project_name,omitempty"`

	// 部署类型模式,包括deployTemplate,ansible,shell
	DeploySystem *string `json:"deploy_system,omitempty"`

	// 创建时间
	CreateTime *string `json:"create_time,omitempty"`

	// 修改时间
	UpdateTime *string `json:"update_time,omitempty"`

	// 应用状态,Draft表示草稿状态,Available表示可用状态
	State *TaskInfoState `json:"state,omitempty"`

	// 最后一次部署时间
	ExecutionTime *string `json:"execution_time,omitempty"`

	// 描述
	Description *string `json:"description,omitempty"`

	// 是否使用默认权限矩阵
	IsDefautPermission *bool `json:"is_defaut_permission,omitempty"`

	// 模板id
	TemplateId *string `json:"template_id,omitempty"`

	// 应用创建者用户名
	Owner *string `json:"owner,omitempty"`

	// 应用创建者昵称
	NickName *string `json:"nick_name,omitempty"`

	// 应用创建者用户ID
	OwnerId *string `json:"owner_id,omitempty"`

	// 应用创建者租户ID
	TenantId *string `json:"tenant_id,omitempty"`

	// 应用创建者租户名
	TenantName *string `json:"tenant_name,omitempty"`

	// slave集群id,默认为null时使用devcloud八爪鱼slave集群,用户自定义slave时为slave集群id
	SlaveClusterId *string `json:"slave_cluster_id,omitempty"`

	// 当前用户是否已收藏
	IsCare *bool `json:"is_care,omitempty"`

	// 是否有编辑权限
	CanModify *bool `json:"can_modify,omitempty"`

	// 是否有删除的权限
	CanDelete *bool `json:"can_delete,omitempty"`

	// 是否有查看权限
	CanView *bool `json:"can_view,omitempty"`

	// 是否有部署权限
	CanExecute *bool `json:"can_execute,omitempty"`

	// 是否有复制权限
	CanCopy *bool `json:"can_copy,omitempty"`

	// 是否有管理权限,包含增删改查部署以及权限修改
	CanManage *bool `json:"can_manage,omitempty"`

	// 应用和AOM应用组件对应关系
	AppComponentList *[]AppComponentDao `json:"app_component_list,omitempty"`

	// 角色ID,0:应用创建者,-1:项目创建者,3:项目经理,4:开发人员,5:测试经理,6:测试人员,7:参与者,8:浏览者
	RoleId *int32 `json:"role_id,omitempty"`

	// 部署任务id
	Id *string `json:"id,omitempty"`

	// 部署记录序列号
	ReleaseId *int32 `json:"release_id,omitempty"`

	// 部署时间
	Duration *string `json:"duration,omitempty"`

	// 部署状态
	ExecutionState *string `json:"execution_state,omitempty"`

	// 部署者id
	ExecutorId *string `json:"executor_id,omitempty"`

	// 部署者名称
	ExecutorNickName *string `json:"executor_nick_name,omitempty"`

	// 部署步骤
	Steps map[string]Step `json:"steps,omitempty"`
}

查询应用详情响应体

func (TaskInfo) String added in v0.0.85

func (o TaskInfo) String() string

type TaskInfoState added in v0.0.85

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

func (TaskInfoState) MarshalJSON added in v0.0.85

func (c TaskInfoState) MarshalJSON() ([]byte, error)

func (*TaskInfoState) UnmarshalJSON added in v0.0.85

func (c *TaskInfoState) UnmarshalJSON(b []byte) error

func (TaskInfoState) Value added in v0.0.90

func (c TaskInfoState) Value() string

type TaskInfoStateEnum added in v0.0.85

type TaskInfoStateEnum struct {
	AVAILABLE TaskInfoState
	DRAFT     TaskInfoState
}

func GetTaskInfoStateEnum added in v0.0.85

func GetTaskInfoStateEnum() TaskInfoStateEnum

type TaskSuccessRate added in v0.0.85

type TaskSuccessRate struct {

	// 任务id
	TaskId *string `json:"task_id,omitempty"`

	// 应用名称
	TaskName *string `json:"task_name,omitempty"`

	// 成功率
	SuccessRate *string `json:"success_rate,omitempty"`

	// 部署记录数
	RecordCount *int32 `json:"record_count,omitempty"`

	// 成功的部署记录数
	SuccessRecordCount *int32 `json:"success_record_count,omitempty"`
}

单个应用的部署成功率

func (TaskSuccessRate) String added in v0.0.85

func (o TaskSuccessRate) String() string

type TasksSuccessRateQuery added in v0.0.85

type TasksSuccessRateQuery struct {

	// 部署应用开始时间范围的左边界(包含),格式yyyy-MM-dd
	StartDate string `json:"start_date"`

	// 部署应用开始时间范围的右边界(包含),格式yyyy-MM-dd 。最大时间范围为1年。
	EndDate string `json:"end_date"`

	// 任务id列表
	TaskIds []string `json:"task_ids"`
}

查询多个应用的部署成功率的请求体

func (TasksSuccessRateQuery) String added in v0.0.85

func (o TasksSuccessRateQuery) String() string

type TemplateTaskRequestBody

type TemplateTaskRequestBody struct {

	// devcloud创建的项目id
	ProjectId string `json:"project_id"`

	// devcloud创建的项目名称
	ProjectName string `json:"project_name"`

	// 部署模板id
	TemplateId string `json:"template_id"`

	// 应用名称
	TaskName string `json:"task_name"`

	// 自定义slave资源池id
	SlaveClusterId *string `json:"slave_cluster_id,omitempty"`

	// 部署参数类
	Configs *[]ConfigInfoDo `json:"configs,omitempty"`
}

通过模板创建应用请求体

func (TemplateTaskRequestBody) String

func (o TemplateTaskRequestBody) String() string

type UpdateDeploymentGroupRequest

type UpdateDeploymentGroupRequest struct {

	// 主机组ID
	GroupId string `json:"group_id"`

	Body *DeploymentGroupUpdateRequest `json:"body,omitempty"`
}

Request Object

func (UpdateDeploymentGroupRequest) String

type UpdateDeploymentGroupResponse

type UpdateDeploymentGroupResponse struct {

	// 主机组ID
	GroupId        *string `json:"group_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateDeploymentGroupResponse) String

type UpdateDeploymentHostRequest

type UpdateDeploymentHostRequest struct {

	// 主机组id
	GroupId string `json:"group_id"`

	// 主机id
	HostId string `json:"host_id"`

	Body *DeploymentHostRequest `json:"body,omitempty"`
}

Request Object

func (UpdateDeploymentHostRequest) String

type UpdateDeploymentHostResponse

type UpdateDeploymentHostResponse struct {

	// 主机id
	HostId         *string `json:"host_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateDeploymentHostResponse) String

type UserInfo

type UserInfo struct {

	// 用户id
	UserId *string `json:"user_id,omitempty"`

	// 用户名
	UserName *string `json:"user_name,omitempty"`
}

用户信息

func (UserInfo) String

func (o UserInfo) String() string

Source Files

Jump to

Keyboard shortcuts

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