model

package
v0.1.52 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 1

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"`
}

AppComponentDao 应用和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"`
}

ConfigInfoDo 部署参数类

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

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

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"`
}

CreateDeployTaskByTemplateRequest 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:"-"`
}

CreateDeployTaskByTemplateResponse Response Object

func (CreateDeployTaskByTemplateResponse) String

type CreateDeploymentGroupRequest

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

CreateDeploymentGroupRequest Request Object

func (CreateDeploymentGroupRequest) String

type CreateDeploymentGroupResponse

type CreateDeploymentGroupResponse struct {

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

CreateDeploymentGroupResponse Response Object

func (CreateDeploymentGroupResponse) String

type CreateDeploymentHostRequest

type CreateDeploymentHostRequest struct {

	// 主机集群id
	GroupId string `json:"group_id"`

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

CreateDeploymentHostRequest Request Object

func (CreateDeploymentHostRequest) String

type CreateDeploymentHostResponse

type CreateDeploymentHostResponse struct {

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

CreateDeploymentHostResponse Response Object

func (CreateDeploymentHostResponse) String

type DeleteDeployTaskRequest

type DeleteDeployTaskRequest struct {

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

DeleteDeployTaskRequest 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:"-"`
}

DeleteDeployTaskResponse Response Object

func (DeleteDeployTaskResponse) String

func (o DeleteDeployTaskResponse) String() string

type DeleteDeploymentGroupRequest

type DeleteDeploymentGroupRequest struct {

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

DeleteDeploymentGroupRequest Request Object

func (DeleteDeploymentGroupRequest) String

type DeleteDeploymentGroupResponse

type DeleteDeploymentGroupResponse struct {

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

DeleteDeploymentGroupResponse Response Object

func (DeleteDeploymentGroupResponse) String

type DeleteDeploymentHostRequest

type DeleteDeploymentHostRequest struct {

	// 主机集群id
	GroupId string `json:"group_id"`

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

DeleteDeploymentHostRequest Request Object

func (DeleteDeploymentHostRequest) String

type DeleteDeploymentHostResponse

type DeleteDeploymentHostResponse struct {

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

DeleteDeploymentHostResponse Response Object

func (DeleteDeploymentHostResponse) String

type DeploymentGroup

type DeploymentGroup struct {

	// 主机集群名
	Name string `json:"name"`

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

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

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

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

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

	// 主机集群是否为代理类型
	IsProxyMode *int32 `json:"is_proxy_mode,omitempty"`
}

DeploymentGroup 主机集群详细信息

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"`

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

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

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

	// 项目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时使用默认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"`
}

DeploymentGroupDetail 主机集群详情响应体

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

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"`
}

DeploymentGroupUpdateRequest

func (DeploymentGroupUpdateRequest) String

type DeploymentGroupUpdateRequestAutoConnectionTestSwitch

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

func (DeploymentGroupUpdateRequestAutoConnectionTestSwitch) MarshalJSON

func (*DeploymentGroupUpdateRequestAutoConnectionTestSwitch) UnmarshalJSON

func (DeploymentGroupUpdateRequestAutoConnectionTestSwitch) Value

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"`
}

DeploymentHost 主机信息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"`
}

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

func (DeploymentHostAuthorizationBody) String

type DeploymentHostAuthorizationBodyTrustedType

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

func (DeploymentHostAuthorizationBodyTrustedType) MarshalJSON

func (*DeploymentHostAuthorizationBodyTrustedType) UnmarshalJSON

func (DeploymentHostAuthorizationBodyTrustedType) Value

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"`

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

	// 项目名称
	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"`
}

DeploymentHostDetail 主机信息详情

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

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"`
}

DeploymentHostInfo 主机信息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

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

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"`
}

DeploymentHostRequest 主机信息

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"`
}

DeploymentUpdateHost 主机信息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"`
}

DynamicConfigInfo 部署应用时传递的参数

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

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"`
}

EnvExecutionBody 应用启动参数

func (EnvExecutionBody) String

func (o EnvExecutionBody) String() string

type ExecuteRecordV2Body

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"`
}

ExecuteRecordV2Body 应用部署记录Body

func (ExecuteRecordV2Body) String

func (o ExecuteRecordV2Body) String() string

type KeyValueDo

type KeyValueDo struct {

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

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

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

func (KeyValueDo) String

func (o KeyValueDo) String() string

type ListDeployTaskHistoryByDateRequest

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"`
}

ListDeployTaskHistoryByDateRequest Request Object

func (ListDeployTaskHistoryByDateRequest) String

type ListDeployTaskHistoryByDateResponse

type ListDeployTaskHistoryByDateResponse struct {

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

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

ListDeployTaskHistoryByDateResponse Response Object

func (ListDeployTaskHistoryByDateResponse) String

type ListDeployTasksRequest

type ListDeployTasksRequest struct {

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

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

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

ListDeployTasksRequest Request Object

func (ListDeployTasksRequest) String

func (o ListDeployTasksRequest) String() string

type ListDeployTasksResponse

type ListDeployTasksResponse struct {

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

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

ListDeployTasksResponse Response Object

func (ListDeployTasksResponse) String

func (o ListDeployTasksResponse) String() string

type ListHostGroupsRequest

type ListHostGroupsRequest struct {

	// 项目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"`
}

ListHostGroupsRequest 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

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

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:"-"`
}

ListHostGroupsResponse 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"`
}

ListHostsRequest 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

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:"-"`
}

ListHostsResponse Response Object

func (ListHostsResponse) String

func (o ListHostsResponse) String() string

type ListTaskSuccessRateRequest

type ListTaskSuccessRateRequest struct {

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

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

ListTaskSuccessRateRequest Request Object

func (ListTaskSuccessRateRequest) String

type ListTaskSuccessRateResponse

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:"-"`
}

ListTaskSuccessRateResponse Response Object

func (ListTaskSuccessRateResponse) String

type ParamTypeLimits

type ParamTypeLimits struct {

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

ParamTypeLimits 枚举类型参数实体类

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"`
}

PermissionGroupDetail 主机集群相关权限详情类

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"`
}

PermissionHostDetail 主机相关权限详情类

func (PermissionHostDetail) String

func (o PermissionHostDetail) String() string

type ShowDeployTaskDetailRequest

type ShowDeployTaskDetailRequest struct {

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

ShowDeployTaskDetailRequest 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时使用默认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:"-"`
}

ShowDeployTaskDetailResponse 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

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"`
}

ShowDeploymentGroupDetailRequest 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"`

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

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

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

	// 项目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时使用默认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:"-"`
}

ShowDeploymentGroupDetailResponse Response Object

func (ShowDeploymentGroupDetailResponse) String

type ShowDeploymentHostDetailRequest

type ShowDeploymentHostDetailRequest struct {

	// 主机集群id
	GroupId string `json:"group_id"`

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

ShowDeploymentHostDetailRequest 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"`

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

	// 项目名称
	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:"-"`
}

ShowDeploymentHostDetailResponse 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

type ShowDeploymentHostDetailResponseOsEnum

type ShowDeploymentHostDetailResponseOsEnum struct {
	WINDOWS ShowDeploymentHostDetailResponseOs
	LINUX   ShowDeploymentHostDetailResponseOs
}

func GetShowDeploymentHostDetailResponseOsEnum

func GetShowDeploymentHostDetailResponseOsEnum() ShowDeploymentHostDetailResponseOsEnum

type ShowProjectSuccessRateRequest

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"`
}

ShowProjectSuccessRateRequest Request Object

func (ShowProjectSuccessRateRequest) String

type ShowProjectSuccessRateResponse

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:"-"`
}

ShowProjectSuccessRateResponse Response Object

func (ShowProjectSuccessRateResponse) String

type StartDeployTaskRequest

type StartDeployTaskRequest struct {

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

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

StartDeployTaskRequest 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:"-"`
}

StartDeployTaskResponse Response Object

func (StartDeployTaskResponse) String

func (o StartDeployTaskResponse) String() string

type Step

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"`
}

Step 部署步骤

func (Step) String

func (o Step) String() string

type TaskInfo

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时使用默认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"`
}

TaskInfo 查询应用详情响应体

func (TaskInfo) String

func (o TaskInfo) String() string

type TaskInfoState

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

func (TaskInfoState) MarshalJSON

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

func (*TaskInfoState) UnmarshalJSON

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

func (TaskInfoState) Value

func (c TaskInfoState) Value() string

type TaskInfoStateEnum

type TaskInfoStateEnum struct {
	AVAILABLE TaskInfoState
	DRAFT     TaskInfoState
}

func GetTaskInfoStateEnum

func GetTaskInfoStateEnum() TaskInfoStateEnum

type TaskSuccessRate

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"`
}

TaskSuccessRate 单个应用的部署成功率

func (TaskSuccessRate) String

func (o TaskSuccessRate) String() string

type TasksSuccessRateQuery

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"`
}

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

func (TasksSuccessRateQuery) String

func (o TasksSuccessRateQuery) String() string

type TemplateTaskRequestBody

type TemplateTaskRequestBody struct {

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

	// 项目名称
	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"`
}

TemplateTaskRequestBody 通过模板创建应用请求体

func (TemplateTaskRequestBody) String

func (o TemplateTaskRequestBody) String() string

type UpdateDeploymentGroupRequest

type UpdateDeploymentGroupRequest struct {

	// 主机集群ID
	GroupId string `json:"group_id"`

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

UpdateDeploymentGroupRequest Request Object

func (UpdateDeploymentGroupRequest) String

type UpdateDeploymentGroupResponse

type UpdateDeploymentGroupResponse struct {

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

UpdateDeploymentGroupResponse 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"`
}

UpdateDeploymentHostRequest Request Object

func (UpdateDeploymentHostRequest) String

type UpdateDeploymentHostResponse

type UpdateDeploymentHostResponse struct {

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

UpdateDeploymentHostResponse Response Object

func (UpdateDeploymentHostResponse) String

type UserInfo

type UserInfo struct {

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

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

UserInfo 用户信息

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