v20201221

package
v1.0.153 Latest Latest
Warning

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

Go to latest
Published: May 8, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const APIVersion = "2020-12-21"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)

func NewClientWithSecretId

func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error)

Deprecated

func (*Client) CreateCosToken

func (c *Client) CreateCosToken(request *CreateCosTokenRequest) (response *CreateCosTokenResponse, err error)

生成Cos临时秘钥

func (*Client) CreateCosTokenV2 added in v1.0.153

func (c *Client) CreateCosTokenV2(request *CreateCosTokenV2Request) (response *CreateCosTokenV2Response, err error)

生成Cos临时秘钥

func (*Client) CreateNamespace

func (c *Client) CreateNamespace(request *CreateNamespaceRequest) (response *CreateNamespaceResponse, err error)

创建环境

func (*Client) CreateResource added in v1.0.153

func (c *Client) CreateResource(request *CreateResourceRequest) (response *CreateResourceResponse, err error)

绑定云资源

func (*Client) CreateServiceV2 added in v1.0.153

func (c *Client) CreateServiceV2(request *CreateServiceV2Request) (response *CreateServiceV2Response, err error)

创建服务

func (*Client) DeleteIngress added in v1.0.153

func (c *Client) DeleteIngress(request *DeleteIngressRequest) (response *DeleteIngressResponse, err error)

删除 Ingress 规则

func (*Client) DeployServiceV2 added in v1.0.153

func (c *Client) DeployServiceV2(request *DeployServiceV2Request) (response *DeployServiceV2Response, err error)

服务部署

  • 创建新版本
  • 部署新版本
  • 一个服务只能有一个版本,所以前端无需关心版本及版本ID

func (*Client) DescribeIngress added in v1.0.153

func (c *Client) DescribeIngress(request *DescribeIngressRequest) (response *DescribeIngressResponse, err error)

查询 Ingress 规则

func (*Client) DescribeIngresses added in v1.0.153

func (c *Client) DescribeIngresses(request *DescribeIngressesRequest) (response *DescribeIngressesResponse, err error)

查询 Ingress 规则列表

func (*Client) DescribeNamespaces

func (c *Client) DescribeNamespaces(request *DescribeNamespacesRequest) (response *DescribeNamespacesResponse, err error)

获取租户环境列表

func (*Client) DescribeServiceRunPodListV2 added in v1.0.153

func (c *Client) DescribeServiceRunPodListV2(request *DescribeServiceRunPodListV2Request) (response *DescribeServiceRunPodListV2Response, err error)

获取服务下面运行pod列表

func (*Client) ModifyIngress

func (c *Client) ModifyIngress(request *ModifyIngressRequest) (response *ModifyIngressResponse, err error)

创建或者更新 Ingress 规则

func (*Client) ModifyNamespace

func (c *Client) ModifyNamespace(request *ModifyNamespaceRequest) (response *ModifyNamespaceResponse, err error)

编辑环境

type CosToken

type CosToken struct {

	// 唯一请求 ID
	RequestId *string `json:"RequestId,omitempty" name:"RequestId"`

	// 存储桶桶名
	Bucket *string `json:"Bucket,omitempty" name:"Bucket"`

	// 存储桶所在区域
	Region *string `json:"Region,omitempty" name:"Region"`

	// 临时密钥的SecretId
	TmpSecretId *string `json:"TmpSecretId,omitempty" name:"TmpSecretId"`

	// 临时密钥的SecretKey
	TmpSecretKey *string `json:"TmpSecretKey,omitempty" name:"TmpSecretKey"`

	// 临时密钥的 sessionToken
	SessionToken *string `json:"SessionToken,omitempty" name:"SessionToken"`

	// 临时密钥获取的开始时间
	StartTime *string `json:"StartTime,omitempty" name:"StartTime"`

	// 临时密钥的 expiredTime
	ExpiredTime *string `json:"ExpiredTime,omitempty" name:"ExpiredTime"`

	// 包完整路径
	FullPath *string `json:"FullPath,omitempty" name:"FullPath"`
}

type CreateCosTokenRequest

type CreateCosTokenRequest struct {
	*tchttp.BaseRequest

	// 服务ID
	ServiceId *string `json:"ServiceId,omitempty" name:"ServiceId"`

	// 服务版本ID
	VersionId *string `json:"VersionId,omitempty" name:"VersionId"`

	// 包名
	PkgName *string `json:"PkgName,omitempty" name:"PkgName"`

	// optType 1上传  2查询
	OptType *int64 `json:"OptType,omitempty" name:"OptType"`

	// 来源 channel
	SourceChannel *int64 `json:"SourceChannel,omitempty" name:"SourceChannel"`
}

func NewCreateCosTokenRequest

func NewCreateCosTokenRequest() (request *CreateCosTokenRequest)

func (*CreateCosTokenRequest) FromJsonString

func (r *CreateCosTokenRequest) FromJsonString(s string) error

It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateCosTokenRequest) ToJsonString

func (r *CreateCosTokenRequest) ToJsonString() string

type CreateCosTokenResponse

type CreateCosTokenResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 成功时为CosToken对象,失败为null
		// 注意:此字段可能返回 null,表示取不到有效值。
		Result *CosToken `json:"Result,omitempty" name:"Result"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewCreateCosTokenResponse

func NewCreateCosTokenResponse() (response *CreateCosTokenResponse)

func (*CreateCosTokenResponse) FromJsonString

func (r *CreateCosTokenResponse) FromJsonString(s string) error

It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateCosTokenResponse) ToJsonString

func (r *CreateCosTokenResponse) ToJsonString() string

type CreateCosTokenV2Request added in v1.0.153

type CreateCosTokenV2Request struct {
	*tchttp.BaseRequest

	// 服务ID
	ServiceId *string `json:"ServiceId,omitempty" name:"ServiceId"`

	// 包名
	PkgName *string `json:"PkgName,omitempty" name:"PkgName"`

	// optType 1上传  2查询
	OptType *int64 `json:"OptType,omitempty" name:"OptType"`

	// 来源 channel
	SourceChannel *int64 `json:"SourceChannel,omitempty" name:"SourceChannel"`
}

func NewCreateCosTokenV2Request added in v1.0.153

func NewCreateCosTokenV2Request() (request *CreateCosTokenV2Request)

func (*CreateCosTokenV2Request) FromJsonString added in v1.0.153

func (r *CreateCosTokenV2Request) FromJsonString(s string) error

It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateCosTokenV2Request) ToJsonString added in v1.0.153

func (r *CreateCosTokenV2Request) ToJsonString() string

type CreateCosTokenV2Response added in v1.0.153

type CreateCosTokenV2Response struct {
	*tchttp.BaseResponse
	Response *struct {

		// 成功时为CosToken对象,失败为null
		// 注意:此字段可能返回 null,表示取不到有效值。
		Result *CosToken `json:"Result,omitempty" name:"Result"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewCreateCosTokenV2Response added in v1.0.153

func NewCreateCosTokenV2Response() (response *CreateCosTokenV2Response)

func (*CreateCosTokenV2Response) FromJsonString added in v1.0.153

func (r *CreateCosTokenV2Response) FromJsonString(s string) error

It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateCosTokenV2Response) ToJsonString added in v1.0.153

func (r *CreateCosTokenV2Response) ToJsonString() string

type CreateNamespaceRequest

type CreateNamespaceRequest struct {
	*tchttp.BaseRequest

	// 命名空间名称
	NamespaceName *string `json:"NamespaceName,omitempty" name:"NamespaceName"`

	// 私有网络名称
	Vpc *string `json:"Vpc,omitempty" name:"Vpc"`

	// 子网列表
	SubnetIds []*string `json:"SubnetIds,omitempty" name:"SubnetIds" list`

	// 命名空间描述
	Description *string `json:"Description,omitempty" name:"Description"`

	// K8s version
	K8sVersion *string `json:"K8sVersion,omitempty" name:"K8sVersion"`

	// 来源渠道
	SourceChannel *int64 `json:"SourceChannel,omitempty" name:"SourceChannel"`
}

func NewCreateNamespaceRequest

func NewCreateNamespaceRequest() (request *CreateNamespaceRequest)

func (*CreateNamespaceRequest) FromJsonString

func (r *CreateNamespaceRequest) FromJsonString(s string) error

It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateNamespaceRequest) ToJsonString

func (r *CreateNamespaceRequest) ToJsonString() string

type CreateNamespaceResponse

type CreateNamespaceResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 成功时为命名空间ID,失败为null
		// 注意:此字段可能返回 null,表示取不到有效值。
		Result *string `json:"Result,omitempty" name:"Result"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewCreateNamespaceResponse

func NewCreateNamespaceResponse() (response *CreateNamespaceResponse)

func (*CreateNamespaceResponse) FromJsonString

func (r *CreateNamespaceResponse) FromJsonString(s string) error

It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateNamespaceResponse) ToJsonString

func (r *CreateNamespaceResponse) ToJsonString() string

type CreateResourceRequest added in v1.0.153

type CreateResourceRequest struct {
	*tchttp.BaseRequest

	// 命名空间 Id
	NamespaceId *string `json:"NamespaceId,omitempty" name:"NamespaceId"`

	// 资源类型
	ResourceType *string `json:"ResourceType,omitempty" name:"ResourceType"`

	// 资源 Id
	ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"`

	// 来源
	SourceChannel *int64 `json:"SourceChannel,omitempty" name:"SourceChannel"`
}

func NewCreateResourceRequest added in v1.0.153

func NewCreateResourceRequest() (request *CreateResourceRequest)

func (*CreateResourceRequest) FromJsonString added in v1.0.153

func (r *CreateResourceRequest) FromJsonString(s string) error

It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateResourceRequest) ToJsonString added in v1.0.153

func (r *CreateResourceRequest) ToJsonString() string

type CreateResourceResponse added in v1.0.153

type CreateResourceResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 成功与否
		// 注意:此字段可能返回 null,表示取不到有效值。
		Result *bool `json:"Result,omitempty" name:"Result"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewCreateResourceResponse added in v1.0.153

func NewCreateResourceResponse() (response *CreateResourceResponse)

func (*CreateResourceResponse) FromJsonString added in v1.0.153

func (r *CreateResourceResponse) FromJsonString(s string) error

It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateResourceResponse) ToJsonString added in v1.0.153

func (r *CreateResourceResponse) ToJsonString() string

type CreateServiceV2Request added in v1.0.153

type CreateServiceV2Request struct {
	*tchttp.BaseRequest

	// 服务名
	ServiceName *string `json:"ServiceName,omitempty" name:"ServiceName"`

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

	// 是否使用默认镜像服务
	UseDefaultImageService *int64 `json:"UseDefaultImageService,omitempty" name:"UseDefaultImageService"`

	// 如果是绑定仓库,绑定的仓库类型,0-个人版,1-企业版
	RepoType *int64 `json:"RepoType,omitempty" name:"RepoType"`

	// 企业版镜像服务的实例id
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

	// 绑定镜像服务器地址
	RepoServer *string `json:"RepoServer,omitempty" name:"RepoServer"`

	// 绑定镜像仓库名
	RepoName *string `json:"RepoName,omitempty" name:"RepoName"`

	// 来源渠道
	SourceChannel *int64 `json:"SourceChannel,omitempty" name:"SourceChannel"`

	// 服务所在子网
	SubnetList []*string `json:"SubnetList,omitempty" name:"SubnetList" list`

	// 编程语言
	CodingLanguage *string `json:"CodingLanguage,omitempty" name:"CodingLanguage"`

	// 部署方式
	DeployMode *string `json:"DeployMode,omitempty" name:"DeployMode"`
}

func NewCreateServiceV2Request added in v1.0.153

func NewCreateServiceV2Request() (request *CreateServiceV2Request)

func (*CreateServiceV2Request) FromJsonString added in v1.0.153

func (r *CreateServiceV2Request) FromJsonString(s string) error

It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateServiceV2Request) ToJsonString added in v1.0.153

func (r *CreateServiceV2Request) ToJsonString() string

type CreateServiceV2Response added in v1.0.153

type CreateServiceV2Response struct {
	*tchttp.BaseResponse
	Response *struct {

		// 服务code
		Result *string `json:"Result,omitempty" name:"Result"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewCreateServiceV2Response added in v1.0.153

func NewCreateServiceV2Response() (response *CreateServiceV2Response)

func (*CreateServiceV2Response) FromJsonString added in v1.0.153

func (r *CreateServiceV2Response) FromJsonString(s string) error

It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateServiceV2Response) ToJsonString added in v1.0.153

func (r *CreateServiceV2Response) ToJsonString() string

type DeleteIngressRequest added in v1.0.153

type DeleteIngressRequest struct {
	*tchttp.BaseRequest

	// tem NamespaceId
	NamespaceId *string `json:"NamespaceId,omitempty" name:"NamespaceId"`

	// eks namespace 名
	EksNamespace *string `json:"EksNamespace,omitempty" name:"EksNamespace"`

	// ingress 规则名
	Name *string `json:"Name,omitempty" name:"Name"`

	// 来源渠道
	SourceChannel *int64 `json:"SourceChannel,omitempty" name:"SourceChannel"`
}

func NewDeleteIngressRequest added in v1.0.153

func NewDeleteIngressRequest() (request *DeleteIngressRequest)

func (*DeleteIngressRequest) FromJsonString added in v1.0.153

func (r *DeleteIngressRequest) FromJsonString(s string) error

It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteIngressRequest) ToJsonString added in v1.0.153

func (r *DeleteIngressRequest) ToJsonString() string

type DeleteIngressResponse added in v1.0.153

type DeleteIngressResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 是否删除成功
		Result *bool `json:"Result,omitempty" name:"Result"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDeleteIngressResponse added in v1.0.153

func NewDeleteIngressResponse() (response *DeleteIngressResponse)

func (*DeleteIngressResponse) FromJsonString added in v1.0.153

func (r *DeleteIngressResponse) FromJsonString(s string) error

It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteIngressResponse) ToJsonString added in v1.0.153

func (r *DeleteIngressResponse) ToJsonString() string

type DeployServiceV2Request added in v1.0.153

type DeployServiceV2Request struct {
	*tchttp.BaseRequest

	// 服务ID
	ServiceId *string `json:"ServiceId,omitempty" name:"ServiceId"`

	// 容器端口
	ContainerPort *uint64 `json:"ContainerPort,omitempty" name:"ContainerPort"`

	// 初始化 pod 数
	InitPodNum *uint64 `json:"InitPodNum,omitempty" name:"InitPodNum"`

	// cpu规格
	CpuSpec *float64 `json:"CpuSpec,omitempty" name:"CpuSpec"`

	// 内存规格
	MemorySpec *float64 `json:"MemorySpec,omitempty" name:"MemorySpec"`

	// 环境ID
	NamespaceId *string `json:"NamespaceId,omitempty" name:"NamespaceId"`

	// 镜像仓库
	ImgRepo *string `json:"ImgRepo,omitempty" name:"ImgRepo"`

	// 版本描述信息
	VersionDesc *string `json:"VersionDesc,omitempty" name:"VersionDesc"`

	// 启动参数
	JvmOpts *string `json:"JvmOpts,omitempty" name:"JvmOpts"`

	// 弹性伸缩配置,不传默认不启用弹性伸缩配置
	EsInfo *EsInfo `json:"EsInfo,omitempty" name:"EsInfo"`

	// 环境变量配置
	EnvConf []*Pair `json:"EnvConf,omitempty" name:"EnvConf" list`

	// 日志配置
	LogConfs []*string `json:"LogConfs,omitempty" name:"LogConfs" list`

	// 数据卷配置
	StorageConfs []*StorageConf `json:"StorageConfs,omitempty" name:"StorageConfs" list`

	// 数据卷挂载配置
	StorageMountConfs []*StorageMountConf `json:"StorageMountConfs,omitempty" name:"StorageMountConfs" list`

	// 部署类型。
	// - JAR:通过 jar 包部署
	// - WAR:通过 war 包部署
	// - IMAGE:通过镜像部署
	DeployMode *string `json:"DeployMode,omitempty" name:"DeployMode"`

	// 部署类型为 IMAGE 时,该参数表示镜像 tag。
	// 部署类型为 JAR/WAR 时,该参数表示包版本号。
	DeployVersion *string `json:"DeployVersion,omitempty" name:"DeployVersion"`

	// 包名。使用 JAR 包或者 WAR 包部署的时候必填。
	PkgName *string `json:"PkgName,omitempty" name:"PkgName"`

	// JDK 版本。
	// - KONA:使用 kona jdk。
	// - OPEN:使用 open jdk。
	JdkVersion *string `json:"JdkVersion,omitempty" name:"JdkVersion"`

	// 安全组ID s
	SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds" list`

	// 日志输出配置
	LogOutputConf *LogOutputConf `json:"LogOutputConf,omitempty" name:"LogOutputConf"`

	// 来源渠道
	SourceChannel *int64 `json:"SourceChannel,omitempty" name:"SourceChannel"`

	// 版本描述
	Description *string `json:"Description,omitempty" name:"Description"`

	// 镜像命令
	ImageCommand *string `json:"ImageCommand,omitempty" name:"ImageCommand"`

	// 镜像命令参数
	ImageArgs []*string `json:"ImageArgs,omitempty" name:"ImageArgs" list`
}

func NewDeployServiceV2Request added in v1.0.153

func NewDeployServiceV2Request() (request *DeployServiceV2Request)

func (*DeployServiceV2Request) FromJsonString added in v1.0.153

func (r *DeployServiceV2Request) FromJsonString(s string) error

It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeployServiceV2Request) ToJsonString added in v1.0.153

func (r *DeployServiceV2Request) ToJsonString() string

type DeployServiceV2Response added in v1.0.153

type DeployServiceV2Response struct {
	*tchttp.BaseResponse
	Response *struct {

		// 版本ID(前端可忽略)
		Result *string `json:"Result,omitempty" name:"Result"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDeployServiceV2Response added in v1.0.153

func NewDeployServiceV2Response() (response *DeployServiceV2Response)

func (*DeployServiceV2Response) FromJsonString added in v1.0.153

func (r *DeployServiceV2Response) FromJsonString(s string) error

It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeployServiceV2Response) ToJsonString added in v1.0.153

func (r *DeployServiceV2Response) ToJsonString() string

type DescribeIngressRequest added in v1.0.153

type DescribeIngressRequest struct {
	*tchttp.BaseRequest

	// tem namespaceId
	NamespaceId *string `json:"NamespaceId,omitempty" name:"NamespaceId"`

	// eks namespace 名
	EksNamespace *string `json:"EksNamespace,omitempty" name:"EksNamespace"`

	// ingress 规则名
	Name *string `json:"Name,omitempty" name:"Name"`

	// 来源渠道
	SourceChannel *int64 `json:"SourceChannel,omitempty" name:"SourceChannel"`
}

func NewDescribeIngressRequest added in v1.0.153

func NewDescribeIngressRequest() (request *DescribeIngressRequest)

func (*DescribeIngressRequest) FromJsonString added in v1.0.153

func (r *DescribeIngressRequest) FromJsonString(s string) error

It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeIngressRequest) ToJsonString added in v1.0.153

func (r *DescribeIngressRequest) ToJsonString() string

type DescribeIngressResponse added in v1.0.153

type DescribeIngressResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// ingressInfo
		Result *IngressInfo `json:"Result,omitempty" name:"Result"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeIngressResponse added in v1.0.153

func NewDescribeIngressResponse() (response *DescribeIngressResponse)

func (*DescribeIngressResponse) FromJsonString added in v1.0.153

func (r *DescribeIngressResponse) FromJsonString(s string) error

It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeIngressResponse) ToJsonString added in v1.0.153

func (r *DescribeIngressResponse) ToJsonString() string

type DescribeIngressesRequest added in v1.0.153

type DescribeIngressesRequest struct {
	*tchttp.BaseRequest

	// namespace id
	NamespaceId *string `json:"NamespaceId,omitempty" name:"NamespaceId"`

	// namespace
	EksNamespace *string `json:"EksNamespace,omitempty" name:"EksNamespace"`

	// 来源
	SourceChannel *int64 `json:"SourceChannel,omitempty" name:"SourceChannel"`
}

func NewDescribeIngressesRequest added in v1.0.153

func NewDescribeIngressesRequest() (request *DescribeIngressesRequest)

func (*DescribeIngressesRequest) FromJsonString added in v1.0.153

func (r *DescribeIngressesRequest) FromJsonString(s string) error

It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeIngressesRequest) ToJsonString added in v1.0.153

func (r *DescribeIngressesRequest) ToJsonString() string

type DescribeIngressesResponse added in v1.0.153

type DescribeIngressesResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// ingress 数组
		// 注意:此字段可能返回 null,表示取不到有效值。
		Result []*IngressInfo `json:"Result,omitempty" name:"Result" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeIngressesResponse added in v1.0.153

func NewDescribeIngressesResponse() (response *DescribeIngressesResponse)

func (*DescribeIngressesResponse) FromJsonString added in v1.0.153

func (r *DescribeIngressesResponse) FromJsonString(s string) error

It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeIngressesResponse) ToJsonString added in v1.0.153

func (r *DescribeIngressesResponse) ToJsonString() string

type DescribeNamespacesRequest

type DescribeNamespacesRequest struct {
	*tchttp.BaseRequest

	// 分页limit
	Limit *int64 `json:"Limit,omitempty" name:"Limit"`

	// 分页下标
	Offset *int64 `json:"Offset,omitempty" name:"Offset"`

	// 来源source
	SourceChannel *int64 `json:"SourceChannel,omitempty" name:"SourceChannel"`
}

func NewDescribeNamespacesRequest

func NewDescribeNamespacesRequest() (request *DescribeNamespacesRequest)

func (*DescribeNamespacesRequest) FromJsonString

func (r *DescribeNamespacesRequest) FromJsonString(s string) error

It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeNamespacesRequest) ToJsonString

func (r *DescribeNamespacesRequest) ToJsonString() string

type DescribeNamespacesResponse

type DescribeNamespacesResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 返回结果
		Result *NamespacePage `json:"Result,omitempty" name:"Result"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeNamespacesResponse

func NewDescribeNamespacesResponse() (response *DescribeNamespacesResponse)

func (*DescribeNamespacesResponse) FromJsonString

func (r *DescribeNamespacesResponse) FromJsonString(s string) error

It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeNamespacesResponse) ToJsonString

func (r *DescribeNamespacesResponse) ToJsonString() string

type DescribeRunPodPage added in v1.0.153

type DescribeRunPodPage struct {

	// 分页下标
	Offset *int64 `json:"Offset,omitempty" name:"Offset"`

	// 单页条数
	Limit *int64 `json:"Limit,omitempty" name:"Limit"`

	// 总数
	TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

	// 请求id
	RequestId *string `json:"RequestId,omitempty" name:"RequestId"`

	// 条目
	PodList []*RunVersionPod `json:"PodList,omitempty" name:"PodList" list`
}

type DescribeServiceRunPodListV2Request added in v1.0.153

type DescribeServiceRunPodListV2Request struct {
	*tchttp.BaseRequest

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

	// 服务名id
	ServiceId *string `json:"ServiceId,omitempty" name:"ServiceId"`

	// 单页条数
	Limit *int64 `json:"Limit,omitempty" name:"Limit"`

	// 分页下标
	Offset *int64 `json:"Offset,omitempty" name:"Offset"`

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

	// 名字
	PodName *string `json:"PodName,omitempty" name:"PodName"`

	// 来源渠道
	SourceChannel *int64 `json:"SourceChannel,omitempty" name:"SourceChannel"`
}

func NewDescribeServiceRunPodListV2Request added in v1.0.153

func NewDescribeServiceRunPodListV2Request() (request *DescribeServiceRunPodListV2Request)

func (*DescribeServiceRunPodListV2Request) FromJsonString added in v1.0.153

func (r *DescribeServiceRunPodListV2Request) FromJsonString(s string) error

It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeServiceRunPodListV2Request) ToJsonString added in v1.0.153

func (r *DescribeServiceRunPodListV2Request) ToJsonString() string

type DescribeServiceRunPodListV2Response added in v1.0.153

type DescribeServiceRunPodListV2Response struct {
	*tchttp.BaseResponse
	Response *struct {

		// 返回结果
		Result *DescribeRunPodPage `json:"Result,omitempty" name:"Result"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeServiceRunPodListV2Response added in v1.0.153

func NewDescribeServiceRunPodListV2Response() (response *DescribeServiceRunPodListV2Response)

func (*DescribeServiceRunPodListV2Response) FromJsonString added in v1.0.153

func (r *DescribeServiceRunPodListV2Response) FromJsonString(s string) error

It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeServiceRunPodListV2Response) ToJsonString added in v1.0.153

func (r *DescribeServiceRunPodListV2Response) ToJsonString() string

type EsInfo added in v1.0.153

type EsInfo struct {

	// 最小实例数
	MinAliveInstances *int64 `json:"MinAliveInstances,omitempty" name:"MinAliveInstances"`

	// 最大实例数
	MaxAliveInstances *int64 `json:"MaxAliveInstances,omitempty" name:"MaxAliveInstances"`

	// 弹性策略,1:cpu,2:内存
	EsStrategy *int64 `json:"EsStrategy,omitempty" name:"EsStrategy"`

	// 弹性扩缩容条件值
	Threshold *uint64 `json:"Threshold,omitempty" name:"Threshold"`

	// 版本Id
	VersionId *string `json:"VersionId,omitempty" name:"VersionId"`
}

type IngressInfo

type IngressInfo struct {

	// tem namespaceId
	// 注意:此字段可能返回 null,表示取不到有效值。
	NamespaceId *string `json:"NamespaceId,omitempty" name:"NamespaceId"`

	// eks namespace
	EksNamespace *string `json:"EksNamespace,omitempty" name:"EksNamespace"`

	// ip version
	AddressIPVersion *string `json:"AddressIPVersion,omitempty" name:"AddressIPVersion"`

	// ingress name
	Name *string `json:"Name,omitempty" name:"Name"`

	// rules 配置
	Rules []*IngressRule `json:"Rules,omitempty" name:"Rules" list`

	// clb ID
	// 注意:此字段可能返回 null,表示取不到有效值。
	ClbId *string `json:"ClbId,omitempty" name:"ClbId"`

	// tls 配置
	// 注意:此字段可能返回 null,表示取不到有效值。
	Tls []*IngressTls `json:"Tls,omitempty" name:"Tls" list`

	// eks clusterId
	// 注意:此字段可能返回 null,表示取不到有效值。
	ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"`

	// clb ip
	// 注意:此字段可能返回 null,表示取不到有效值。
	Vip *string `json:"Vip,omitempty" name:"Vip"`
}

type IngressRule

type IngressRule struct {

	// ingress rule value
	Http *IngressRuleValue `json:"Http,omitempty" name:"Http"`

	// host 地址
	// 注意:此字段可能返回 null,表示取不到有效值。
	Host *string `json:"Host,omitempty" name:"Host"`
}

type IngressRuleBackend

type IngressRuleBackend struct {

	// eks service 名
	ServiceName *string `json:"ServiceName,omitempty" name:"ServiceName"`

	// eks service 端口
	ServicePort *int64 `json:"ServicePort,omitempty" name:"ServicePort"`
}

type IngressRulePath

type IngressRulePath struct {

	// path 信息
	Path *string `json:"Path,omitempty" name:"Path"`

	// backend 配置
	Backend *IngressRuleBackend `json:"Backend,omitempty" name:"Backend"`
}

type IngressRuleValue

type IngressRuleValue struct {

	// rule 整体配置
	Paths []*IngressRulePath `json:"Paths,omitempty" name:"Paths" list`
}

type IngressTls

type IngressTls struct {

	// host 数组
	Hosts []*string `json:"Hosts,omitempty" name:"Hosts" list`

	// secret name
	SecretName *string `json:"SecretName,omitempty" name:"SecretName"`
}

type LogOutputConf added in v1.0.153

type LogOutputConf struct {

	// 日志消费端类型
	OutputType *string `json:"OutputType,omitempty" name:"OutputType"`

	// cls日志集
	ClsLogsetName *string `json:"ClsLogsetName,omitempty" name:"ClsLogsetName"`

	// cls日志主题
	ClsLogTopicId *string `json:"ClsLogTopicId,omitempty" name:"ClsLogTopicId"`
}

type ModifyIngressRequest

type ModifyIngressRequest struct {
	*tchttp.BaseRequest

	// Ingress 规则配置
	Ingress *IngressInfo `json:"Ingress,omitempty" name:"Ingress"`

	// 来源渠道
	SourceChannel *int64 `json:"SourceChannel,omitempty" name:"SourceChannel"`
}

func NewModifyIngressRequest

func NewModifyIngressRequest() (request *ModifyIngressRequest)

func (*ModifyIngressRequest) FromJsonString

func (r *ModifyIngressRequest) FromJsonString(s string) error

It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyIngressRequest) ToJsonString

func (r *ModifyIngressRequest) ToJsonString() string

type ModifyIngressResponse

type ModifyIngressResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 创建成功
		// 注意:此字段可能返回 null,表示取不到有效值。
		Result *bool `json:"Result,omitempty" name:"Result"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewModifyIngressResponse

func NewModifyIngressResponse() (response *ModifyIngressResponse)

func (*ModifyIngressResponse) FromJsonString

func (r *ModifyIngressResponse) FromJsonString(s string) error

It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyIngressResponse) ToJsonString

func (r *ModifyIngressResponse) ToJsonString() string

type ModifyNamespaceRequest

type ModifyNamespaceRequest struct {
	*tchttp.BaseRequest

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

	// 命名空间名称
	NamespaceName *string `json:"NamespaceName,omitempty" name:"NamespaceName"`

	// 命名空间描述
	Description *string `json:"Description,omitempty" name:"Description"`

	// 私有网络名称
	Vpc *string `json:"Vpc,omitempty" name:"Vpc"`

	// 子网网络
	SubnetIds []*string `json:"SubnetIds,omitempty" name:"SubnetIds" list`

	// 来源渠道
	SourceChannel *int64 `json:"SourceChannel,omitempty" name:"SourceChannel"`
}

func NewModifyNamespaceRequest

func NewModifyNamespaceRequest() (request *ModifyNamespaceRequest)

func (*ModifyNamespaceRequest) FromJsonString

func (r *ModifyNamespaceRequest) FromJsonString(s string) error

It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyNamespaceRequest) ToJsonString

func (r *ModifyNamespaceRequest) ToJsonString() string

type ModifyNamespaceResponse

type ModifyNamespaceResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 成功时为命名空间ID,失败为null
		// 注意:此字段可能返回 null,表示取不到有效值。
		Result *bool `json:"Result,omitempty" name:"Result"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewModifyNamespaceResponse

func NewModifyNamespaceResponse() (response *ModifyNamespaceResponse)

func (*ModifyNamespaceResponse) FromJsonString

func (r *ModifyNamespaceResponse) FromJsonString(s string) error

It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyNamespaceResponse) ToJsonString

func (r *ModifyNamespaceResponse) ToJsonString() string

type NamespacePage

type NamespacePage struct {

	// 分页内容
	Records []*TemNamespaceInfo `json:"Records,omitempty" name:"Records" list`

	// 总数
	Total *int64 `json:"Total,omitempty" name:"Total"`

	// 条目数
	Size *int64 `json:"Size,omitempty" name:"Size"`

	// 页数
	Pages *int64 `json:"Pages,omitempty" name:"Pages"`
}

type Pair added in v1.0.153

type Pair struct {

	// 建
	Key *string `json:"Key,omitempty" name:"Key"`

	// 值
	Value *string `json:"Value,omitempty" name:"Value"`
}

type RunVersionPod added in v1.0.153

type RunVersionPod struct {

	// shell地址
	Webshell *string `json:"Webshell,omitempty" name:"Webshell"`

	// pod的id
	PodId *string `json:"PodId,omitempty" name:"PodId"`

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

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

	// pod的ip
	PodIp *string `json:"PodIp,omitempty" name:"PodIp"`
}

type StorageConf added in v1.0.153

type StorageConf struct {

	// 存储卷名称
	StorageVolName *string `json:"StorageVolName,omitempty" name:"StorageVolName"`

	// 存储卷路径
	StorageVolPath *string `json:"StorageVolPath,omitempty" name:"StorageVolPath"`

	// 存储卷IP
	// 注意:此字段可能返回 null,表示取不到有效值。
	StorageVolIp *string `json:"StorageVolIp,omitempty" name:"StorageVolIp"`
}

type StorageMountConf added in v1.0.153

type StorageMountConf struct {

	// 数据卷名
	VolumeName *string `json:"VolumeName,omitempty" name:"VolumeName"`

	// 数据卷绑定路径
	MountPath *string `json:"MountPath,omitempty" name:"MountPath"`
}

type TemNamespaceInfo

type TemNamespaceInfo struct {

	// 命名空间id
	NamespaceId *string `json:"NamespaceId,omitempty" name:"NamespaceId"`

	// 渠道
	Channel *string `json:"Channel,omitempty" name:"Channel"`

	// 命名空间名称
	NamespaceName *string `json:"NamespaceName,omitempty" name:"NamespaceName"`

	// 区域名称
	Region *string `json:"Region,omitempty" name:"Region"`

	// 命名空间描述
	// 注意:此字段可能返回 null,表示取不到有效值。
	Description *string `json:"Description,omitempty" name:"Description"`

	// 状态,1:已销毁;0:正常
	Status *int64 `json:"Status,omitempty" name:"Status"`

	// vpc网络
	Vpc *string `json:"Vpc,omitempty" name:"Vpc"`

	// 创建时间
	CreateDate *string `json:"CreateDate,omitempty" name:"CreateDate"`

	// 修改时间
	ModifyDate *string `json:"ModifyDate,omitempty" name:"ModifyDate"`

	// 修改人
	Modifier *string `json:"Modifier,omitempty" name:"Modifier"`

	// 创建人
	Creator *string `json:"Creator,omitempty" name:"Creator"`

	// 服务数
	ServiceNum *int64 `json:"ServiceNum,omitempty" name:"ServiceNum"`

	// 运行实例数
	RunInstancesNum *int64 `json:"RunInstancesNum,omitempty" name:"RunInstancesNum"`

	// 子网络
	SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"`

	// tcb环境状态
	TcbEnvStatus *string `json:"TcbEnvStatus,omitempty" name:"TcbEnvStatus"`

	// eks cluster status
	ClusterStatus *string `json:"ClusterStatus,omitempty" name:"ClusterStatus"`
}

Jump to

Keyboard shortcuts

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