v20201207

package
v1.0.337 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: Apache-2.0 Imports: 6 Imported by: 4

Documentation

Index

Constants

View Source
const (

	// 查询内部错误。
	INTERNALERROR_QUERYERROR = "InternalError.QueryError"

	// 请求格式不正确。
	INVALIDPARAMETERVALUE_BADREQUESTFORMAT = "InvalidParameterValue.BadRequestFormat"

	// 无效请求参数,查询失败。
	INVALIDPARAMETERVALUE_QUERYERROR = "InvalidParameterValue.QueryError"

	// 资源不存在。
	RESOURCENOTFOUND = "ResourceNotFound"
)
View Source
const APIVersion = "2020-12-07"

Variables

This section is empty.

Functions

This section is empty.

Types

type BoundK8SInfo added in v1.0.245

type BoundK8SInfo struct {

	// 绑定的kubernetes集群ID
	BoundClusterId *string `json:"BoundClusterId,omitempty" name:"BoundClusterId"`

	// 绑定的kubernetes的集群类型,分tke和eks两种
	// 注意:此字段可能返回 null,表示取不到有效值。
	BoundClusterType *string `json:"BoundClusterType,omitempty" name:"BoundClusterType"`
}

type Client

type Client struct {
	common.Client
}

func NewClient

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

func NewClientWithSecretId

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

Deprecated

func (*Client) DescribeSREInstanceAccessAddress

func (c *Client) DescribeSREInstanceAccessAddress(request *DescribeSREInstanceAccessAddressRequest) (response *DescribeSREInstanceAccessAddressResponse, err error)

DescribeSREInstanceAccessAddress 查询引擎实例访问地址

可能返回的错误码:

INTERNALERROR_QUERYERROR = "InternalError.QueryError"
INVALIDPARAMETERVALUE_BADREQUESTFORMAT = "InvalidParameterValue.BadRequestFormat"
INVALIDPARAMETERVALUE_QUERYERROR = "InvalidParameterValue.QueryError"
RESOURCENOTFOUND = "ResourceNotFound"

func (*Client) DescribeSREInstanceAccessAddressWithContext added in v1.0.324

func (c *Client) DescribeSREInstanceAccessAddressWithContext(ctx context.Context, request *DescribeSREInstanceAccessAddressRequest) (response *DescribeSREInstanceAccessAddressResponse, err error)

DescribeSREInstanceAccessAddress 查询引擎实例访问地址

可能返回的错误码:

INTERNALERROR_QUERYERROR = "InternalError.QueryError"
INVALIDPARAMETERVALUE_BADREQUESTFORMAT = "InvalidParameterValue.BadRequestFormat"
INVALIDPARAMETERVALUE_QUERYERROR = "InvalidParameterValue.QueryError"
RESOURCENOTFOUND = "ResourceNotFound"

func (*Client) DescribeSREInstances

func (c *Client) DescribeSREInstances(request *DescribeSREInstancesRequest) (response *DescribeSREInstancesResponse, err error)

DescribeSREInstances 用于查询引擎实例列表

可能返回的错误码:

INTERNALERROR_QUERYERROR = "InternalError.QueryError"
INVALIDPARAMETERVALUE_BADREQUESTFORMAT = "InvalidParameterValue.BadRequestFormat"
INVALIDPARAMETERVALUE_QUERYERROR = "InvalidParameterValue.QueryError"

func (*Client) DescribeSREInstancesWithContext added in v1.0.324

func (c *Client) DescribeSREInstancesWithContext(ctx context.Context, request *DescribeSREInstancesRequest) (response *DescribeSREInstancesResponse, err error)

DescribeSREInstances 用于查询引擎实例列表

可能返回的错误码:

INTERNALERROR_QUERYERROR = "InternalError.QueryError"
INVALIDPARAMETERVALUE_BADREQUESTFORMAT = "InvalidParameterValue.BadRequestFormat"
INVALIDPARAMETERVALUE_QUERYERROR = "InvalidParameterValue.QueryError"

type DescribeSREInstanceAccessAddressRequest

type DescribeSREInstanceAccessAddressRequest struct {
	*tchttp.BaseRequest

	// 注册引擎实例Id
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

	// VPC ID
	VpcId *string `json:"VpcId,omitempty" name:"VpcId"`

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

func NewDescribeSREInstanceAccessAddressRequest

func NewDescribeSREInstanceAccessAddressRequest() (request *DescribeSREInstanceAccessAddressRequest)

func (*DescribeSREInstanceAccessAddressRequest) FromJsonString

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

func (*DescribeSREInstanceAccessAddressRequest) ToJsonString

type DescribeSREInstanceAccessAddressResponse

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

		// 内网访问地址
		IntranetAddress *string `json:"IntranetAddress,omitempty" name:"IntranetAddress"`

		// 公网访问地址
		InternetAddress *string `json:"InternetAddress,omitempty" name:"InternetAddress"`

		// apollo多环境公网ip
		EnvAddressInfos []*EnvAddressInfo `json:"EnvAddressInfos,omitempty" name:"EnvAddressInfos"`

		// 控制台公网访问地址
		// 注意:此字段可能返回 null,表示取不到有效值。
		ConsoleInternetAddress *string `json:"ConsoleInternetAddress,omitempty" name:"ConsoleInternetAddress"`

		// 控制台内网访问地址
		// 注意:此字段可能返回 null,表示取不到有效值。
		ConsoleIntranetAddress *string `json:"ConsoleIntranetAddress,omitempty" name:"ConsoleIntranetAddress"`

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

func NewDescribeSREInstanceAccessAddressResponse

func NewDescribeSREInstanceAccessAddressResponse() (response *DescribeSREInstanceAccessAddressResponse)

func (*DescribeSREInstanceAccessAddressResponse) FromJsonString

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

func (*DescribeSREInstanceAccessAddressResponse) ToJsonString

type DescribeSREInstancesRequest

type DescribeSREInstancesRequest struct {
	*tchttp.BaseRequest

	// 请求过滤参数
	Filters []*Filter `json:"Filters,omitempty" name:"Filters"`

	// 翻页单页查询限制数量[0,1000], 默认值0
	Limit *int64 `json:"Limit,omitempty" name:"Limit"`

	// 翻页单页偏移量,默认值0
	Offset *int64 `json:"Offset,omitempty" name:"Offset"`

	// 查询类型
	QueryType *string `json:"QueryType,omitempty" name:"QueryType"`

	// 调用方来源
	QuerySource *string `json:"QuerySource,omitempty" name:"QuerySource"`
}

func NewDescribeSREInstancesRequest

func NewDescribeSREInstancesRequest() (request *DescribeSREInstancesRequest)

func (*DescribeSREInstancesRequest) FromJsonString

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

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

func (*DescribeSREInstancesRequest) ToJsonString

func (r *DescribeSREInstancesRequest) ToJsonString() string

type DescribeSREInstancesResponse

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

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

		// 实例记录
		Content []*SREInstance `json:"Content,omitempty" name:"Content"`

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

func NewDescribeSREInstancesResponse

func NewDescribeSREInstancesResponse() (response *DescribeSREInstancesResponse)

func (*DescribeSREInstancesResponse) FromJsonString

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

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

func (*DescribeSREInstancesResponse) ToJsonString

func (r *DescribeSREInstancesResponse) ToJsonString() string

type EnvAddressInfo added in v1.0.217

type EnvAddressInfo struct {

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

	// 是否开启config公网
	EnableConfigInternet *bool `json:"EnableConfigInternet,omitempty" name:"EnableConfigInternet"`

	// config公网ip
	ConfigInternetServiceIp *string `json:"ConfigInternetServiceIp,omitempty" name:"ConfigInternetServiceIp"`
}

type EnvInfo added in v1.0.205

type EnvInfo struct {

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

	// 环境对应的网络信息
	VpcInfos []*VpcInfo `json:"VpcInfos,omitempty" name:"VpcInfos"`

	// 云硬盘容量
	StorageCapacity *int64 `json:"StorageCapacity,omitempty" name:"StorageCapacity"`

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

	// Admin service 访问地址
	AdminServiceIp *string `json:"AdminServiceIp,omitempty" name:"AdminServiceIp"`

	// Config service访问地址
	ConfigServiceIp *string `json:"ConfigServiceIp,omitempty" name:"ConfigServiceIp"`

	// 是否开启config-server公网
	EnableConfigInternet *bool `json:"EnableConfigInternet,omitempty" name:"EnableConfigInternet"`

	// config-server公网访问地址
	ConfigInternetServiceIp *string `json:"ConfigInternetServiceIp,omitempty" name:"ConfigInternetServiceIp"`
}

type Filter

type Filter struct {

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

	// 过滤参数值
	Values []*string `json:"Values,omitempty" name:"Values"`
}

type KVPair added in v1.0.278

type KVPair struct {

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

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

type SREInstance

type SREInstance struct {

	// 实例ID
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

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

	// 版本号
	Edition *string `json:"Edition,omitempty" name:"Edition"`

	// 状态, 枚举值:creating/create_fail/running/updating/update_fail/restarting/restart_fail/destroying/destroy_fail
	Status *string `json:"Status,omitempty" name:"Status"`

	// 规格ID
	SpecId *string `json:"SpecId,omitempty" name:"SpecId"`

	// 副本数
	Replica *int64 `json:"Replica,omitempty" name:"Replica"`

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

	// Vpc iD
	VpcId *string `json:"VpcId,omitempty" name:"VpcId"`

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

	// 是否开启持久化存储
	// 注意:此字段可能返回 null,表示取不到有效值。
	EnableStorage *bool `json:"EnableStorage,omitempty" name:"EnableStorage"`

	// 数据存储方式
	// 注意:此字段可能返回 null,表示取不到有效值。
	StorageType *string `json:"StorageType,omitempty" name:"StorageType"`

	// 云硬盘容量
	// 注意:此字段可能返回 null,表示取不到有效值。
	StorageCapacity *int64 `json:"StorageCapacity,omitempty" name:"StorageCapacity"`

	// 计费方式
	// 注意:此字段可能返回 null,表示取不到有效值。
	Paymode *string `json:"Paymode,omitempty" name:"Paymode"`

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

	// 集群创建时间
	// 注意:此字段可能返回 null,表示取不到有效值。
	CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`

	// 环境配置信息列表
	// 注意:此字段可能返回 null,表示取不到有效值。
	EnvInfos []*EnvInfo `json:"EnvInfos,omitempty" name:"EnvInfos"`

	// 引擎所在的区域
	// 注意:此字段可能返回 null,表示取不到有效值。
	EngineRegion *string `json:"EngineRegion,omitempty" name:"EngineRegion"`

	// 注册引擎是否开启公网
	// 注意:此字段可能返回 null,表示取不到有效值。
	EnableInternet *bool `json:"EnableInternet,omitempty" name:"EnableInternet"`

	// 私有网络列表信息
	// 注意:此字段可能返回 null,表示取不到有效值。
	VpcInfos []*VpcInfo `json:"VpcInfos,omitempty" name:"VpcInfos"`

	// 服务治理相关信息列表
	// 注意:此字段可能返回 null,表示取不到有效值。
	ServiceGovernanceInfos []*ServiceGovernanceInfo `json:"ServiceGovernanceInfos,omitempty" name:"ServiceGovernanceInfos"`

	// 实例的标签信息
	// 注意:此字段可能返回 null,表示取不到有效值。
	Tags []*KVPair `json:"Tags,omitempty" name:"Tags"`

	// 引擎实例是否开启控制台公网访问地址
	// 注意:此字段可能返回 null,表示取不到有效值。
	EnableConsoleInternet *bool `json:"EnableConsoleInternet,omitempty" name:"EnableConsoleInternet"`

	// 引擎实例是否开启控制台内网访问地址
	// 注意:此字段可能返回 null,表示取不到有效值。
	EnableConsoleIntranet *bool `json:"EnableConsoleIntranet,omitempty" name:"EnableConsoleIntranet"`
}

type ServiceGovernanceInfo added in v1.0.245

type ServiceGovernanceInfo struct {

	// 引擎所在的地域
	EngineRegion *string `json:"EngineRegion,omitempty" name:"EngineRegion"`

	// 服务治理引擎绑定的kubernetes集群信息
	BoundK8SInfos []*BoundK8SInfo `json:"BoundK8SInfos,omitempty" name:"BoundK8SInfos"`

	// 服务治理引擎绑定的网络信息
	VpcInfos []*VpcInfo `json:"VpcInfos,omitempty" name:"VpcInfos"`
}

type VpcInfo added in v1.0.205

type VpcInfo struct {

	// Vpc Id
	VpcId *string `json:"VpcId,omitempty" name:"VpcId"`

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

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

Jump to

Keyboard shortcuts

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