model

package
v0.1.99 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 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 AppBaseResponse added in v0.1.57

type AppBaseResponse struct {

	// 创建的应用id
	Id *string `json:"id,omitempty"`

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

	// 应用所属区域
	Region *string `json:"region,omitempty"`

	// 部署任务列表
	ArrangeInfos *[]TaskBaseBody `json:"arrange_infos,omitempty"`
}

func (AppBaseResponse) String added in v0.1.57

func (o AppBaseResponse) String() string

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 AppDetailInfo added in v0.1.57

type AppDetailInfo struct {

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

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

	// 应用所属区域
	Region *string `json:"region,omitempty"`

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

	// 当前应用是否被禁用
	IsDisable *bool `json:"is_disable,omitempty"`

	// 创建方式
	CreateType *string `json:"create_type,omitempty"`

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

	// 项目名称
	ProjectName *string `json:"project_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"`

	// 是否有创建环境的权限
	CanCreateEnv *bool `json:"can_create_env,omitempty"`

	// 是否有禁用应用的权限
	CanDisable *bool `json:"can_disable,omitempty"`

	// 应用所属人租户ID
	OwnerTenantId *string `json:"owner_tenant_id,omitempty"`

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

	// 应用创建人租户ID
	CreateTenantId *string `json:"create_tenant_id,omitempty"`

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

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

	// 权限等级
	PermissionLevel *string `json:"permission_level,omitempty"`

	// 部署任务信息
	ArrangeInfos *[]TaskV2Info `json:"arrange_infos,omitempty"`
}

AppDetailInfo 应用详情信息

func (AppDetailInfo) String added in v0.1.57

func (o AppDetailInfo) String() string

type AppExecutionInfo added in v0.1.57

type AppExecutionInfo struct {

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

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

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

	// 当前应用是否被禁用
	IsDisable *bool `json:"is_disable,omitempty"`

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

	// 项目名称
	ProjectName *string `json:"project_name,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"`

	// 是否有创建环境的权限
	CanCreateEnv *bool `json:"can_create_env,omitempty"`

	// 是否有禁用应用的权限
	CanDisable *bool `json:"can_disable,omitempty"`

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

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

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

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

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

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

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

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

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

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

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

	// 部署任务信息
	ArrangeInfos *[]TaskBaseResponseBody `json:"arrange_infos,omitempty"`
}

AppExecutionInfo 查询应用详情响应体

func (AppExecutionInfo) String added in v0.1.57

func (o AppExecutionInfo) String() string

type ConfigInfo added in v0.1.61

type ConfigInfo struct {

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

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

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

ConfigInfo 部署任务执行参数

func (ConfigInfo) String added in v0.1.61

func (o ConfigInfo) 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 CreateAppRequest added in v0.1.57

type CreateAppRequest struct {
	Body *CreateAppRequestBody `json:"body,omitempty"`
}

CreateAppRequest Request Object

func (CreateAppRequest) String added in v0.1.57

func (o CreateAppRequest) String() string

type CreateAppRequestBody added in v0.1.57

type CreateAppRequestBody struct {

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

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

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

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

	// 是否为草稿
	IsDraft bool `json:"is_draft"`

	// 创建类型,创建类型只有一个'template',即根据模板创建
	CreateType CreateAppRequestBodyCreateType `json:"create_type"`

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

	Trigger *TaskTriggerVo `json:"trigger,omitempty"`

	// 部署任务列表信息
	ArrangeInfos *[]TaskV2RequestBody `json:"arrange_infos,omitempty"`
}

CreateAppRequestBody 创建应用请求体

func (CreateAppRequestBody) String added in v0.1.57

func (o CreateAppRequestBody) String() string

type CreateAppRequestBodyCreateType added in v0.1.57

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

func (CreateAppRequestBodyCreateType) MarshalJSON added in v0.1.57

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

func (*CreateAppRequestBodyCreateType) UnmarshalJSON added in v0.1.57

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

func (CreateAppRequestBodyCreateType) Value added in v0.1.57

type CreateAppRequestBodyCreateTypeEnum added in v0.1.57

type CreateAppRequestBodyCreateTypeEnum struct {
	TEMPLATE CreateAppRequestBodyCreateType
}

func GetCreateAppRequestBodyCreateTypeEnum added in v0.1.57

func GetCreateAppRequestBodyCreateTypeEnum() CreateAppRequestBodyCreateTypeEnum

type CreateAppResponse added in v0.1.57

type CreateAppResponse struct {

	// 请求成功失败状态
	Status *string `json:"status,omitempty"`

	Result         *AppBaseResponse `json:"result,omitempty"`
	HttpStatusCode int              `json:"-"`
}

CreateAppResponse Response Object

func (CreateAppResponse) String added in v0.1.57

func (o CreateAppResponse) String() string

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 CreateEnvironmentRequest added in v0.1.57

type CreateEnvironmentRequest struct {

	// 应用id
	ApplicationId string `json:"application_id"`

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

CreateEnvironmentRequest Request Object

func (CreateEnvironmentRequest) String added in v0.1.57

func (o CreateEnvironmentRequest) String() string

type CreateEnvironmentResponse added in v0.1.57

type CreateEnvironmentResponse struct {

	// 响应状态
	Status *string `json:"status,omitempty"`

	// 环境id
	Id             *string `json:"id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateEnvironmentResponse Response Object

func (CreateEnvironmentResponse) String added in v0.1.57

func (o CreateEnvironmentResponse) String() string

type CreateHostClusterRequest added in v0.1.57

type CreateHostClusterRequest struct {
	Body *CreateHostClusterRequestBody `json:"body,omitempty"`
}

CreateHostClusterRequest Request Object

func (CreateHostClusterRequest) String added in v0.1.57

func (o CreateHostClusterRequest) String() string

type CreateHostClusterRequestBody added in v0.1.57

type CreateHostClusterRequestBody struct {

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

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

	// 操作系统:windows|linux
	Os CreateHostClusterRequestBodyOs `json:"os"`

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

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

	// 主机集群是否为代理机接入模式, 1:是 0:否
	IsProxyMode int32 `json:"is_proxy_mode"`
}

CreateHostClusterRequestBody 主机集群详细信息

func (CreateHostClusterRequestBody) String added in v0.1.57

type CreateHostClusterRequestBodyOs added in v0.1.57

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

func (CreateHostClusterRequestBodyOs) MarshalJSON added in v0.1.57

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

func (*CreateHostClusterRequestBodyOs) UnmarshalJSON added in v0.1.57

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

func (CreateHostClusterRequestBodyOs) Value added in v0.1.57

type CreateHostClusterRequestBodyOsEnum added in v0.1.57

type CreateHostClusterRequestBodyOsEnum struct {
	WINDOWS CreateHostClusterRequestBodyOs
	LINUX   CreateHostClusterRequestBodyOs
}

func GetCreateHostClusterRequestBodyOsEnum added in v0.1.57

func GetCreateHostClusterRequestBodyOsEnum() CreateHostClusterRequestBodyOsEnum

type CreateHostClusterResponse added in v0.1.57

type CreateHostClusterResponse struct {

	// 主机集群ID
	Id *string `json:"id,omitempty"`

	// 请求状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateHostClusterResponse Response Object

func (CreateHostClusterResponse) String added in v0.1.57

func (o CreateHostClusterResponse) String() string

type CreateHostRequest added in v0.1.57

type CreateHostRequest struct {

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

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

CreateHostRequest Request Object

func (CreateHostRequest) String added in v0.1.57

func (o CreateHostRequest) String() string

type CreateHostRequestBody added in v0.1.57

type CreateHostRequestBody 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 CreateHostRequestBodyOs `json:"os"`

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

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

	Authorization *HostAuthorizationBody `json:"authorization"`

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

CreateHostRequestBody 主机信息body体

func (CreateHostRequestBody) String added in v0.1.57

func (o CreateHostRequestBody) String() string

type CreateHostRequestBodyOs added in v0.1.57

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

func (CreateHostRequestBodyOs) MarshalJSON added in v0.1.57

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

func (*CreateHostRequestBodyOs) UnmarshalJSON added in v0.1.57

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

func (CreateHostRequestBodyOs) Value added in v0.1.57

func (c CreateHostRequestBodyOs) Value() string

type CreateHostRequestBodyOsEnum added in v0.1.57

type CreateHostRequestBodyOsEnum struct {
	WINDOWS CreateHostRequestBodyOs
	LINUX   CreateHostRequestBodyOs
}

func GetCreateHostRequestBodyOsEnum added in v0.1.57

func GetCreateHostRequestBodyOsEnum() CreateHostRequestBodyOsEnum

type CreateHostResponse added in v0.1.57

type CreateHostResponse struct {

	// 状态
	Status *string `json:"status,omitempty"`

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

CreateHostResponse Response Object

func (CreateHostResponse) String added in v0.1.57

func (o CreateHostResponse) String() string

type DeleteApplicationRequest added in v0.1.57

type DeleteApplicationRequest struct {

	// 应用id
	AppId string `json:"app_id"`
}

DeleteApplicationRequest Request Object

func (DeleteApplicationRequest) String added in v0.1.57

func (o DeleteApplicationRequest) String() string

type DeleteApplicationResponse added in v0.1.57

type DeleteApplicationResponse struct {

	// 请求成功失败状态
	Status *string `json:"status,omitempty"`

	Result         *AppBaseResponse `json:"result,omitempty"`
	HttpStatusCode int              `json:"-"`
}

DeleteApplicationResponse Response Object

func (DeleteApplicationResponse) String added in v0.1.57

func (o DeleteApplicationResponse) String() 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 DeleteEnvironmentRequest added in v0.1.57

type DeleteEnvironmentRequest struct {

	// 应用id
	ApplicationId string `json:"application_id"`

	// 环境id
	EnvironmentId string `json:"environment_id"`
}

DeleteEnvironmentRequest Request Object

func (DeleteEnvironmentRequest) String added in v0.1.57

func (o DeleteEnvironmentRequest) String() string

type DeleteEnvironmentResponse added in v0.1.57

type DeleteEnvironmentResponse struct {

	// 响应状态
	Status *string `json:"status,omitempty"`

	// 环境id
	Id             *string `json:"id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

DeleteEnvironmentResponse Response Object

func (DeleteEnvironmentResponse) String added in v0.1.57

func (o DeleteEnvironmentResponse) String() string

type DeleteHostFromEnvironmentRequest added in v0.1.57

type DeleteHostFromEnvironmentRequest struct {

	// 应用id
	ApplicationId string `json:"application_id"`

	// 环境id
	EnvironmentId string `json:"environment_id"`

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

DeleteHostFromEnvironmentRequest Request Object

func (DeleteHostFromEnvironmentRequest) String added in v0.1.57

type DeleteHostFromEnvironmentResponse added in v0.1.57

type DeleteHostFromEnvironmentResponse struct {

	// 响应状态
	Status *string `json:"status,omitempty"`

	// 环境id
	Result         *string `json:"result,omitempty"`
	HttpStatusCode int     `json:"-"`
}

DeleteHostFromEnvironmentResponse Response Object

func (DeleteHostFromEnvironmentResponse) String added in v0.1.57

type DeployV2OperationsDo added in v0.1.57

type DeployV2OperationsDo struct {

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

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

	// 下载地址
	Code *string `json:"code,omitempty"`

	// 参数
	Params *string `json:"params,omitempty"`

	// 入口函数
	Entrance *string `json:"entrance,omitempty"`

	// 版本
	Version *string `json:"version,omitempty"`

	// 模块id
	ModuleId *string `json:"module_id,omitempty"`
}

func (DeployV2OperationsDo) String added in v0.1.57

func (o DeployV2OperationsDo) String() 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"`

	// 自动测试功能已下架,该字段已失效
	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"`

	// 自动测试功能已下架,该字段已失效
	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 EnvironmentDetail added in v0.1.57

type EnvironmentDetail struct {

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

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

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

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

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

	// 部署类型:0表示主机, 1表示kubernetes
	DeployType *int32 `json:"deploy_type,omitempty"`

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

	// 环境下主机实例数量
	InstanceCount *int32 `json:"instance_count,omitempty"`

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

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

EnvironmentDetail 环境详情

func (EnvironmentDetail) String added in v0.1.57

func (o EnvironmentDetail) String() string

type EnvironmentPermissionDetail added in v0.1.57

type EnvironmentPermissionDetail struct {

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

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

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

	// 是否有编辑环境权限矩阵的权限
	CanManage *bool `json:"can_manage,omitempty"`

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

EnvironmentPermissionDetail 环境权限详情

func (EnvironmentPermissionDetail) String added in v0.1.57

type EnvironmentRequestBody added in v0.1.57

type EnvironmentRequestBody struct {

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

	// 环境名称
	Name string `json:"name"`

	// 部署类型:0表示主机, 1表示kubernetes
	DeployType int32 `json:"deploy_type"`

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

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

EnvironmentRequestBody 新建和编辑环境的请求体

func (EnvironmentRequestBody) String added in v0.1.57

func (o EnvironmentRequestBody) String() string

type EnvironmentRequestBodyOs added in v0.1.57

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

func (EnvironmentRequestBodyOs) MarshalJSON added in v0.1.57

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

func (*EnvironmentRequestBodyOs) UnmarshalJSON added in v0.1.57

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

func (EnvironmentRequestBodyOs) Value added in v0.1.57

func (c EnvironmentRequestBodyOs) Value() string

type EnvironmentRequestBodyOsEnum added in v0.1.57

type EnvironmentRequestBodyOsEnum struct {
	WINDOWS EnvironmentRequestBodyOs
	LINUX   EnvironmentRequestBodyOs
}

func GetEnvironmentRequestBodyOsEnum added in v0.1.57

func GetEnvironmentRequestBodyOsEnum() EnvironmentRequestBodyOsEnum

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 HostAuthorizationBody added in v0.1.57

type HostAuthorizationBody struct {

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

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

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

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

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

func (HostAuthorizationBody) String added in v0.1.57

func (o HostAuthorizationBody) String() string

type HostAuthorizationBodyTrustedType added in v0.1.57

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

func (HostAuthorizationBodyTrustedType) MarshalJSON added in v0.1.57

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

func (*HostAuthorizationBodyTrustedType) UnmarshalJSON added in v0.1.57

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

func (HostAuthorizationBodyTrustedType) Value added in v0.1.57

type HostAuthorizationBodyTrustedTypeEnum added in v0.1.57

type HostAuthorizationBodyTrustedTypeEnum struct {
	E_0 HostAuthorizationBodyTrustedType
	E_1 HostAuthorizationBodyTrustedType
}

func GetHostAuthorizationBodyTrustedTypeEnum added in v0.1.57

func GetHostAuthorizationBodyTrustedTypeEnum() HostAuthorizationBodyTrustedTypeEnum

type HostClusterInfo added in v0.1.57

type HostClusterInfo struct {

	// 主机集群id
	Id *string `json:"id,omitempty"`

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

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

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

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

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

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

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

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

	// 创建人名称
	NickName *string `json:"nick_name,omitempty"`

	// 环境数量
	EnvCount *int32 `json:"env_count,omitempty"`
}

HostClusterInfo 主机集群信息

func (HostClusterInfo) String added in v0.1.57

func (o HostClusterInfo) String() string

type HostClusterInfoDetail added in v0.1.57

type HostClusterInfoDetail struct {

	// 主机集群id
	Id *string `json:"id,omitempty"`

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

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

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

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

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

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

	// 创建人名称
	NickName *string `json:"nick_name,omitempty"`

	// 是否是代理模式
	IsProxyMode *int32 `json:"is_proxy_mode,omitempty"`

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

	// 更新时间
	UpdatedTime *string `json:"updated_time,omitempty"`
}

HostClusterInfoDetail 主机集群信息

func (HostClusterInfoDetail) String added in v0.1.57

func (o HostClusterInfoDetail) String() string

type HostInfo added in v0.1.57

type HostInfo struct {

	// 主机ID
	Uuid *string `json:"uuid,omitempty"`

	// 主机IP
	Ip *string `json:"ip,omitempty"`

	// 主机操作系统
	Os *string `json:"os,omitempty"`

	// 端口
	Port *int32 `json:"port,omitempty"`

	Authorization *HostAuthorizationBody `json:"authorization,omitempty"`

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

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

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

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

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

	// 主机所属人id
	OwnerId *string `json:"owner_id,omitempty"`

	// 主机所属人名称
	OwnerName *string `json:"owner_name,omitempty"`

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

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

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

	// 上次连通时间
	LastestConnectionTime *string `json:"lastest_connection_time,omitempty"`

	// 连通性验证结果
	ConnectionResult *string `json:"connection_result,omitempty"`

	// 主机所属人昵称
	NickName *string `json:"nick_name,omitempty"`

	// 导入状态
	ImportStatus *string `json:"import_status,omitempty"`

	// 关联环境数量
	EnvCount *int32 `json:"env_count,omitempty"`
}

HostInfo 主机信息

func (HostInfo) String added in v0.1.57

func (o HostInfo) String() string

type HostInfoDetail added in v0.1.57

type HostInfoDetail struct {

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

	// 主机IP
	Ip *string `json:"ip,omitempty"`

	// 主机操作系统
	Os *string `json:"os,omitempty"`

	// 端口号
	Port *int32 `json:"port,omitempty"`

	Authorization *HostAuthorizationBody `json:"authorization,omitempty"`

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

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

	// 主机名
	HostName *string `json:"host_name,omitempty"`

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

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

	// 主机所属人名称
	OwnerName *string `json:"owner_name,omitempty"`

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

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

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

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

	// 上次连通时间
	LastestConnectionTime *string `json:"lastest_connection_time,omitempty"`

	// 连通性验证结果
	ConnectionResult *string `json:"connection_result,omitempty"`

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

	// 创建人昵称
	NickName *string `json:"nick_name,omitempty"`
}

HostInfoDetail 主机详情信息

func (HostInfoDetail) String added in v0.1.57

func (o HostInfoDetail) String() string

type ImportHostToEnvironmentRequest added in v0.1.57

type ImportHostToEnvironmentRequest struct {

	// 应用id
	ApplicationId string `json:"application_id"`

	// 环境id
	EnvironmentId string `json:"environment_id"`

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

ImportHostToEnvironmentRequest Request Object

func (ImportHostToEnvironmentRequest) String added in v0.1.57

type ImportHostToEnvironmentRequestBody added in v0.1.57

type ImportHostToEnvironmentRequestBody struct {

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

	// 要导入的主机ids
	HostIds []string `json:"host_ids"`
}

ImportHostToEnvironmentRequestBody 环境下导入主机请求体

func (ImportHostToEnvironmentRequestBody) String added in v0.1.57

type ImportHostToEnvironmentResponse added in v0.1.57

type ImportHostToEnvironmentResponse struct {

	// 响应状态
	Status *string `json:"status,omitempty"`

	// 被导入的主机ids
	Result         *[]string `json:"result,omitempty"`
	HttpStatusCode int       `json:"-"`
}

ImportHostToEnvironmentResponse Response Object

func (ImportHostToEnvironmentResponse) String added in v0.1.57

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 ListAllAppRequest added in v0.1.57

type ListAllAppRequest struct {
	Body *ListAllAppRequestBody `json:"body,omitempty"`
}

ListAllAppRequest Request Object

func (ListAllAppRequest) String added in v0.1.57

func (o ListAllAppRequest) String() string

type ListAllAppRequestBody added in v0.1.57

type ListAllAppRequestBody struct {

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

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

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

	// 排序字段的名称,当前仅支持name和startTime
	SortName *ListAllAppRequestBodySortName `json:"sort_name,omitempty"`

	// 排序顺序,正序(ASC)或者逆序(DESC)
	SortBy *string `json:"sort_by,omitempty"`

	// 应用状态列表,支持查询以下状态: abort: 部署中止 failed: 部署失败 not_started: 取消执行 pending: 排队中 running: 正在部署 succeeded: 部署成功 timeout: 部署超时 not_executed: 未执行
	States *[]ListAllAppRequestBodyStates `json:"states,omitempty"`

	// 应用的分组id,传入no_grouped为查询未分组的应用
	GroupId *string `json:"group_id,omitempty"`
}

func (ListAllAppRequestBody) String added in v0.1.57

func (o ListAllAppRequestBody) String() string

type ListAllAppRequestBodySortName added in v0.1.57

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

func (ListAllAppRequestBodySortName) MarshalJSON added in v0.1.57

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

func (*ListAllAppRequestBodySortName) UnmarshalJSON added in v0.1.57

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

func (ListAllAppRequestBodySortName) Value added in v0.1.57

type ListAllAppRequestBodySortNameEnum added in v0.1.57

type ListAllAppRequestBodySortNameEnum struct {
	NAME       ListAllAppRequestBodySortName
	START_TIME ListAllAppRequestBodySortName
}

func GetListAllAppRequestBodySortNameEnum added in v0.1.57

func GetListAllAppRequestBodySortNameEnum() ListAllAppRequestBodySortNameEnum

type ListAllAppRequestBodyStates added in v0.1.61

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

func (ListAllAppRequestBodyStates) MarshalJSON added in v0.1.61

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

func (*ListAllAppRequestBodyStates) UnmarshalJSON added in v0.1.61

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

func (ListAllAppRequestBodyStates) Value added in v0.1.61

type ListAllAppRequestBodyStatesEnum added in v0.1.61

func GetListAllAppRequestBodyStatesEnum added in v0.1.61

func GetListAllAppRequestBodyStatesEnum() ListAllAppRequestBodyStatesEnum

type ListAllAppResponse added in v0.1.57

type ListAllAppResponse struct {

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

	// 应用列表数组
	Result         *[]AppExecutionInfo `json:"result,omitempty"`
	HttpStatusCode int                 `json:"-"`
}

ListAllAppResponse Response Object

func (ListAllAppResponse) String added in v0.1.57

func (o ListAllAppResponse) 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 ListEnvironmentsRequest added in v0.1.57

type ListEnvironmentsRequest struct {

	// 应用id
	ApplicationId string `json:"application_id"`

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

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

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

	// 要查询的环境名称
	Name *string `json:"name,omitempty"`

	// 排序字段,支持按照环境名称|用户名称|创建时间|用户昵称排序
	SortKey *ListEnvironmentsRequestSortKey `json:"sort_key,omitempty"`

	// 排序顺序,DESC降序,ASC升序
	SortDir *ListEnvironmentsRequestSortDir `json:"sort_dir,omitempty"`
}

ListEnvironmentsRequest Request Object

func (ListEnvironmentsRequest) String added in v0.1.57

func (o ListEnvironmentsRequest) String() string

type ListEnvironmentsRequestSortDir added in v0.1.57

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

func (ListEnvironmentsRequestSortDir) MarshalJSON added in v0.1.57

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

func (*ListEnvironmentsRequestSortDir) UnmarshalJSON added in v0.1.57

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

func (ListEnvironmentsRequestSortDir) Value added in v0.1.57

type ListEnvironmentsRequestSortDirEnum added in v0.1.57

type ListEnvironmentsRequestSortDirEnum struct {
	DESC ListEnvironmentsRequestSortDir
	ASC  ListEnvironmentsRequestSortDir
}

func GetListEnvironmentsRequestSortDirEnum added in v0.1.57

func GetListEnvironmentsRequestSortDirEnum() ListEnvironmentsRequestSortDirEnum

type ListEnvironmentsRequestSortKey added in v0.1.57

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

func (ListEnvironmentsRequestSortKey) MarshalJSON added in v0.1.57

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

func (*ListEnvironmentsRequestSortKey) UnmarshalJSON added in v0.1.57

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

func (ListEnvironmentsRequestSortKey) Value added in v0.1.57

type ListEnvironmentsRequestSortKeyEnum added in v0.1.57

type ListEnvironmentsRequestSortKeyEnum struct {
	NAME         ListEnvironmentsRequestSortKey
	USER_NAME    ListEnvironmentsRequestSortKey
	CREATED_TIME ListEnvironmentsRequestSortKey
	NICK_NAME    ListEnvironmentsRequestSortKey
}

func GetListEnvironmentsRequestSortKeyEnum added in v0.1.57

func GetListEnvironmentsRequestSortKeyEnum() ListEnvironmentsRequestSortKeyEnum

type ListEnvironmentsResponse added in v0.1.57

type ListEnvironmentsResponse struct {

	// 响应状态
	Status *string `json:"status,omitempty"`

	// 应用下环境总数
	Total *int32 `json:"total,omitempty"`

	// 环境列表信息
	Result         *[]EnvironmentDetail `json:"result,omitempty"`
	HttpStatusCode int                  `json:"-"`
}

ListEnvironmentsResponse Response Object

func (ListEnvironmentsResponse) String added in v0.1.57

func (o ListEnvironmentsResponse) String() string

type ListHostClustersRequest added in v0.1.57

type ListHostClustersRequest struct {

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

	// 主机集群模糊查询信息
	Name *string `json:"name,omitempty"`

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

	// 页码数
	PageIndex *int32 `json:"page_index,omitempty"`

	// 每页显示的条目数量,默认为10
	PageSize *int32 `json:"page_size,omitempty"`

	// 排序字段:nick_name|name|owner_name|create_time,不传使用默认排序
	SortField *string `json:"sort_field,omitempty"`

	// 排序方式:DESC、ASC,默认为DESC
	SortType *ListHostClustersRequestSortType `json:"sort_type,omitempty"`

	// 是否为代理机
	IsProxyMode *int32 `json:"is_proxy_mode,omitempty"`

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

ListHostClustersRequest Request Object

func (ListHostClustersRequest) String added in v0.1.57

func (o ListHostClustersRequest) String() string

type ListHostClustersRequestOs added in v0.1.57

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

func (ListHostClustersRequestOs) MarshalJSON added in v0.1.57

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

func (*ListHostClustersRequestOs) UnmarshalJSON added in v0.1.57

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

func (ListHostClustersRequestOs) Value added in v0.1.57

type ListHostClustersRequestOsEnum added in v0.1.57

type ListHostClustersRequestOsEnum struct {
	WINDOWS ListHostClustersRequestOs
	LINUX   ListHostClustersRequestOs
}

func GetListHostClustersRequestOsEnum added in v0.1.57

func GetListHostClustersRequestOsEnum() ListHostClustersRequestOsEnum

type ListHostClustersRequestSortType added in v0.1.57

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

func (ListHostClustersRequestSortType) MarshalJSON added in v0.1.57

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

func (*ListHostClustersRequestSortType) UnmarshalJSON added in v0.1.57

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

func (ListHostClustersRequestSortType) Value added in v0.1.57

type ListHostClustersRequestSortTypeEnum added in v0.1.57

type ListHostClustersRequestSortTypeEnum struct {
	DESC ListHostClustersRequestSortType
	ASC  ListHostClustersRequestSortType
}

func GetListHostClustersRequestSortTypeEnum added in v0.1.57

func GetListHostClustersRequestSortTypeEnum() ListHostClustersRequestSortTypeEnum

type ListHostClustersResponse added in v0.1.57

type ListHostClustersResponse struct {

	// 请求状态
	Status *string `json:"status,omitempty"`

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

	// 主机集群详情响应体
	Result         *[]HostClusterInfo `json:"result,omitempty"`
	HttpStatusCode int                `json:"-"`
}

ListHostClustersResponse Response Object

func (ListHostClustersResponse) String added in v0.1.57

func (o ListHostClustersResponse) String() string

type ListHostGroupsRequest

type ListHostGroupsRequest struct {

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

	// 局点信息
	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 ListNewHostsRequest added in v0.1.57

type ListNewHostsRequest struct {

	// 项目ID
	GroupId string `json:"group_id"`

	// 主机名模糊查询信息
	KeyField *string `json:"key_field,omitempty"`

	// 环境id
	EnvironmentId *string `json:"environment_id,omitempty"`

	// 页码数
	PageIndex *int32 `json:"page_index,omitempty"`

	// 每页显示的条目数量,默认为10
	PageSize *int32 `json:"page_size,omitempty"`

	// 排序字段:as_proxy|host_name|owner_name,不传使用默认排序
	SortKey *string `json:"sort_key,omitempty"`

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

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

ListNewHostsRequest Request Object

func (ListNewHostsRequest) String added in v0.1.57

func (o ListNewHostsRequest) String() string

type ListNewHostsRequestSortDir added in v0.1.57

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

func (ListNewHostsRequestSortDir) MarshalJSON added in v0.1.57

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

func (*ListNewHostsRequestSortDir) UnmarshalJSON added in v0.1.57

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

func (ListNewHostsRequestSortDir) Value added in v0.1.57

type ListNewHostsRequestSortDirEnum added in v0.1.57

type ListNewHostsRequestSortDirEnum struct {
	DESC ListNewHostsRequestSortDir
	ASC  ListNewHostsRequestSortDir
}

func GetListNewHostsRequestSortDirEnum added in v0.1.57

func GetListNewHostsRequestSortDirEnum() ListNewHostsRequestSortDirEnum

type ListNewHostsResponse added in v0.1.57

type ListNewHostsResponse struct {

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

	// 请求状态
	Status *string `json:"status,omitempty"`

	// 主机信息列表
	Result         *[]HostInfo `json:"result,omitempty"`
	HttpStatusCode int         `json:"-"`
}

ListNewHostsResponse Response Object

func (ListNewHostsResponse) String added in v0.1.57

func (o ListNewHostsResponse) 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 PermissionClusterDetail added in v0.1.57

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

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

func (PermissionClusterDetail) String added in v0.1.57

func (o PermissionClusterDetail) 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 PermissionHostDetailNew added in v0.1.59

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

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

PermissionHostDetailNew 主机相关权限详情类

func (PermissionHostDetailNew) String added in v0.1.59

func (o PermissionHostDetailNew) String() string

type ShowAppDetailByIdRequest added in v0.1.57

type ShowAppDetailByIdRequest struct {

	// 应用id
	AppId string `json:"app_id"`
}

ShowAppDetailByIdRequest Request Object

func (ShowAppDetailByIdRequest) String added in v0.1.57

func (o ShowAppDetailByIdRequest) String() string

type ShowAppDetailByIdResponse added in v0.1.57

type ShowAppDetailByIdResponse struct {
	Result *AppDetailInfo `json:"result,omitempty"`

	// 请求成功失败状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowAppDetailByIdResponse Response Object

func (ShowAppDetailByIdResponse) String added in v0.1.57

func (o ShowAppDetailByIdResponse) 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"`

	// 是否有禁用应用的权限
	CanDisable *bool `json:"can_disable,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"`

	// 当前应用是否被禁用
	IsDisable *bool `json:"is_disable,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"`

	// 自动测试功能已下架,该字段已失效
	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 ShowEnvironmentDetailRequest added in v0.1.57

type ShowEnvironmentDetailRequest struct {

	// 应用id
	ApplicationId string `json:"application_id"`

	// 环境id
	EnvironmentId string `json:"environment_id"`
}

ShowEnvironmentDetailRequest Request Object

func (ShowEnvironmentDetailRequest) String added in v0.1.57

type ShowEnvironmentDetailResponse added in v0.1.57

type ShowEnvironmentDetailResponse struct {

	// 响应状态
	Status *string `json:"status,omitempty"`

	Result         *EnvironmentDetail `json:"result,omitempty"`
	HttpStatusCode int                `json:"-"`
}

ShowEnvironmentDetailResponse Response Object

func (ShowEnvironmentDetailResponse) String added in v0.1.57

type ShowExecutionParamsRequest added in v0.1.61

type ShowExecutionParamsRequest struct {

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

	// 执行记录id
	RecordId *string `json:"record_id,omitempty"`
}

ShowExecutionParamsRequest Request Object

func (ShowExecutionParamsRequest) String added in v0.1.61

type ShowExecutionParamsResponse added in v0.1.61

type ShowExecutionParamsResponse struct {

	// 查询部署记录执行参数返回体
	Body           *[]ConfigInfo `json:"body,omitempty"`
	HttpStatusCode int           `json:"-"`
}

ShowExecutionParamsResponse Response Object

func (ShowExecutionParamsResponse) String added in v0.1.61

type ShowHostClusterDetailRequest added in v0.1.57

type ShowHostClusterDetailRequest struct {

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

ShowHostClusterDetailRequest Request Object

func (ShowHostClusterDetailRequest) String added in v0.1.57

type ShowHostClusterDetailResponse added in v0.1.57

type ShowHostClusterDetailResponse struct {

	// 请求状态
	Status *string `json:"status,omitempty"`

	Result         *HostClusterInfoDetail `json:"result,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

ShowHostClusterDetailResponse Response Object

func (ShowHostClusterDetailResponse) String added in v0.1.57

type ShowHostDetailRequest added in v0.1.57

type ShowHostDetailRequest struct {

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

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

ShowHostDetailRequest Request Object

func (ShowHostDetailRequest) String added in v0.1.57

func (o ShowHostDetailRequest) String() string

type ShowHostDetailResponse added in v0.1.57

type ShowHostDetailResponse struct {

	// 请求状态
	Status *string `json:"status,omitempty"`

	Result         *HostInfoDetail `json:"result,omitempty"`
	HttpStatusCode int             `json:"-"`
}

ShowHostDetailResponse Response Object

func (ShowHostDetailResponse) String added in v0.1.57

func (o ShowHostDetailResponse) String() string

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 TaskBaseBody added in v0.1.57

type TaskBaseBody struct {

	// 创建的部署任务id
	Id *string `json:"id,omitempty"`
}

func (TaskBaseBody) String added in v0.1.57

func (o TaskBaseBody) String() string

type TaskBaseResponseBody added in v0.1.57

type TaskBaseResponseBody struct {

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

	// 部署任务状态
	State *string `json:"state,omitempty"`

	// 部署任务类型
	DeploySystem *string `json:"deploy_system,omitempty"`
}

func (TaskBaseResponseBody) String added in v0.1.57

func (o TaskBaseResponseBody) 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"`

	// 是否有禁用应用的权限
	CanDisable *bool `json:"can_disable,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"`

	// 当前应用是否被禁用
	IsDisable *bool `json:"is_disable,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 TaskTriggerVo added in v0.1.57

type TaskTriggerVo struct {

	// 部署任务允许执行的场景。其中0:所有执行请求均可,1:只允许流水线触发
	TriggerSource *string `json:"trigger_source,omitempty"`

	// 当任务只允许流水线触发执行时,流水线传递的来源信息,当前只有CloudArtifact
	ArtifactSourceSystem *string `json:"artifact_source_system,omitempty"`

	// 当任务只允许流水线触发执行时,对应流水线源的制品仓库类型(generic、docker)
	ArtifactType *string `json:"artifact_type,omitempty"`
}

func (TaskTriggerVo) String added in v0.1.57

func (o TaskTriggerVo) String() string

type TaskV2Info added in v0.1.59

type TaskV2Info struct {

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

	// 部署任务名称
	Name *string `json:"name,omitempty"`

	// 部署任务状态
	State *string `json:"state,omitempty"`

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

	// 部署任务所属人
	Owner *string `json:"owner,omitempty"`

	// 部署步骤
	Steps map[string]Step `json:"steps,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"`

	// 角色ID
	RoleId *int32 `json:"role_id,omitempty"`

	// 是否为默认角色
	IsDefautPermission *bool `json:"is_defaut_permission,omitempty"`

	// 模板id
	TemplateId *string `json:"template_id,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"`

	// 是否有创建环境的权限
	CanCreateEnv *bool `json:"can_create_env,omitempty"`

	// 是否有禁用应用的权限
	CanDisable *bool `json:"can_disable,omitempty"`

	// 应用组件列表
	AppComponentList *[]AppComponentDao `json:"app_component_list,omitempty"`

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

	// 部署任务所属应用id
	AppId *string `json:"app_id,omitempty"`

	// 当前应用是否被禁用
	IsDisable *bool `json:"is_disable,omitempty"`
}

TaskV2Info 部署任务详情信息

func (TaskV2Info) String added in v0.1.59

func (o TaskV2Info) String() string

type TaskV2RequestBody added in v0.1.57

type TaskV2RequestBody struct {

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

	// 部署编排列表信息
	OperationList *[]DeployV2OperationsDo `json:"operation_list,omitempty"`
}

func (TaskV2RequestBody) String added in v0.1.57

func (o TaskV2RequestBody) 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