apis

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2020 License: Apache-2.0 Imports: 3 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssociateElasticIpRequest

type AssociateElasticIpRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* Container ID  */
	ContainerId string `json:"containerId"`

	/* 弹性IP ID  */
	ElasticIpId string `json:"elasticIpId"`
}

func NewAssociateElasticIpRequest

func NewAssociateElasticIpRequest(
	regionId string,
	containerId string,
	elasticIpId string,
) *AssociateElasticIpRequest

* param regionId: Region ID (Required) * param containerId: Container ID (Required) * param elasticIpId: 弹性IP ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewAssociateElasticIpRequestWithAllParams added in v1.1.2

func NewAssociateElasticIpRequestWithAllParams(
	regionId string,
	containerId string,
	elasticIpId string,
) *AssociateElasticIpRequest

* param regionId: Region ID (Required) * param containerId: Container ID (Required) * param elasticIpId: 弹性IP ID (Required)

func NewAssociateElasticIpRequestWithoutParam added in v1.1.2

func NewAssociateElasticIpRequestWithoutParam() *AssociateElasticIpRequest

This constructor has better compatible ability when API parameters changed

func (AssociateElasticIpRequest) GetRegionId

func (r AssociateElasticIpRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*AssociateElasticIpRequest) SetContainerId

func (r *AssociateElasticIpRequest) SetContainerId(containerId string)

param containerId: Container ID(Required)

func (*AssociateElasticIpRequest) SetElasticIpId

func (r *AssociateElasticIpRequest) SetElasticIpId(elasticIpId string)

param elasticIpId: 弹性IP ID(Required)

func (*AssociateElasticIpRequest) SetRegionId

func (r *AssociateElasticIpRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type AssociateElasticIpResponse

type AssociateElasticIpResponse struct {
	RequestID string                   `json:"requestId"`
	Error     core.ErrorResponse       `json:"error"`
	Result    AssociateElasticIpResult `json:"result"`
}

type AssociateElasticIpResult

type AssociateElasticIpResult struct {
}

type CreateContainersRequest

type CreateContainersRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* 创建容器规格 (Optional) */
	ContainerSpec *nc.ContainerSpec `json:"containerSpec"`

	/* 购买实例数量;取值范围:[1,100] (Optional) */
	MaxCount *int `json:"maxCount"`
}

func NewCreateContainersRequest

func NewCreateContainersRequest(
	regionId string,
) *CreateContainersRequest

* param regionId: Region ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewCreateContainersRequestWithAllParams added in v1.1.2

func NewCreateContainersRequestWithAllParams(
	regionId string,
	containerSpec *nc.ContainerSpec,
	maxCount *int,
) *CreateContainersRequest

* param regionId: Region ID (Required) * param containerSpec: 创建容器规格 (Optional) * param maxCount: 购买实例数量;取值范围:[1,100] (Optional)

func NewCreateContainersRequestWithoutParam added in v1.1.2

func NewCreateContainersRequestWithoutParam() *CreateContainersRequest

This constructor has better compatible ability when API parameters changed

func (CreateContainersRequest) GetRegionId

func (r CreateContainersRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*CreateContainersRequest) SetContainerSpec

func (r *CreateContainersRequest) SetContainerSpec(containerSpec *nc.ContainerSpec)

param containerSpec: 创建容器规格(Optional)

func (*CreateContainersRequest) SetMaxCount

func (r *CreateContainersRequest) SetMaxCount(maxCount int)

param maxCount: 购买实例数量;取值范围:[1,100](Optional)

func (*CreateContainersRequest) SetRegionId

func (r *CreateContainersRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type CreateContainersResponse

type CreateContainersResponse struct {
	RequestID string                 `json:"requestId"`
	Error     core.ErrorResponse     `json:"error"`
	Result    CreateContainersResult `json:"result"`
}

type CreateContainersResult

type CreateContainersResult struct {
	ContainerIds []string `json:"containerIds"`
}

type CreateSecretRequest

type CreateSecretRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* 机密数据名称,不能重复
	 */
	Name string `json:"name"`

	/* 机密数据的类型,目前仅支持:docker-registry 类型,用来和docker registry认证的类型。
	 */
	SecretType string `json:"secretType"`

	/* 机密的数据。<br>
	key 的有效字符包括字母、数字、-、_和.; <br>
	value 是 Base64 编码的字符串,不能包含换行符(在 linux 下使用 base64 -w 0选项),每个value长度上限为4KB,整个data的长度不能超过256KB; <br>
	必须包含server、username、password 字段,email 字段是可选的。<br>
	 (Optional) */
	Data *nc.DockerRegistryData `json:"data"`
}

func NewCreateSecretRequest

func NewCreateSecretRequest(
	regionId string,
	name string,
	secretType string,
) *CreateSecretRequest

* param regionId: Region ID (Required) * param name: 机密数据名称,不能重复 (Required) * param secretType: 机密数据的类型,目前仅支持:docker-registry 类型,用来和docker registry认证的类型。 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewCreateSecretRequestWithAllParams added in v1.1.2

func NewCreateSecretRequestWithAllParams(
	regionId string,
	name string,
	secretType string,
	data *nc.DockerRegistryData,
) *CreateSecretRequest
  • param regionId: Region ID (Required)
  • param name: 机密数据名称,不能重复 (Required)
  • param secretType: 机密数据的类型,目前仅支持:docker-registry 类型,用来和docker registry认证的类型。 (Required)
  • param data: 机密的数据。<br>

key 的有效字符包括字母、数字、-、_和.; <br> value 是 Base64 编码的字符串,不能包含换行符(在 linux 下使用 base64 -w 0选项),每个value长度上限为4KB,整个data的长度不能超过256KB; <br> 必须包含server、username、password 字段,email 字段是可选的。<br>

(Optional)

func NewCreateSecretRequestWithoutParam added in v1.1.2

func NewCreateSecretRequestWithoutParam() *CreateSecretRequest

This constructor has better compatible ability when API parameters changed

func (CreateSecretRequest) GetRegionId

func (r CreateSecretRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*CreateSecretRequest) SetData

func (r *CreateSecretRequest) SetData(data *nc.DockerRegistryData)
param data: 机密的数据。<br>

key 的有效字符包括字母、数字、-、_和.; <br> value 是 Base64 编码的字符串,不能包含换行符(在 linux 下使用 base64 -w 0选项),每个value长度上限为4KB,整个data的长度不能超过256KB; <br> 必须包含server、username、password 字段,email 字段是可选的。<br> (Optional)

func (*CreateSecretRequest) SetName

func (r *CreateSecretRequest) SetName(name string)
param name: 机密数据名称,不能重复

(Required)

func (*CreateSecretRequest) SetRegionId

func (r *CreateSecretRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

func (*CreateSecretRequest) SetSecretType

func (r *CreateSecretRequest) SetSecretType(secretType string)
param secretType: 机密数据的类型,目前仅支持:docker-registry 类型,用来和docker registry认证的类型。

(Required)

type CreateSecretResponse

type CreateSecretResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    CreateSecretResult `json:"result"`
}

type CreateSecretResult

type CreateSecretResult struct {
	SecretName string `json:"secretName"`
}

type DeleteContainerRequest

type DeleteContainerRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* Container ID  */
	ContainerId string `json:"containerId"`
}

func NewDeleteContainerRequest

func NewDeleteContainerRequest(
	regionId string,
	containerId string,
) *DeleteContainerRequest

* param regionId: Region ID (Required) * param containerId: Container ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDeleteContainerRequestWithAllParams added in v1.1.2

func NewDeleteContainerRequestWithAllParams(
	regionId string,
	containerId string,
) *DeleteContainerRequest

* param regionId: Region ID (Required) * param containerId: Container ID (Required)

func NewDeleteContainerRequestWithoutParam added in v1.1.2

func NewDeleteContainerRequestWithoutParam() *DeleteContainerRequest

This constructor has better compatible ability when API parameters changed

func (DeleteContainerRequest) GetRegionId

func (r DeleteContainerRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DeleteContainerRequest) SetContainerId

func (r *DeleteContainerRequest) SetContainerId(containerId string)

param containerId: Container ID(Required)

func (*DeleteContainerRequest) SetRegionId

func (r *DeleteContainerRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type DeleteContainerResponse

type DeleteContainerResponse struct {
	RequestID string                `json:"requestId"`
	Error     core.ErrorResponse    `json:"error"`
	Result    DeleteContainerResult `json:"result"`
}

type DeleteContainerResult

type DeleteContainerResult struct {
}

type DeleteSecretRequest

type DeleteSecretRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* Secret Name  */
	Name string `json:"name"`
}

func NewDeleteSecretRequest

func NewDeleteSecretRequest(
	regionId string,
	name string,
) *DeleteSecretRequest

* param regionId: Region ID (Required) * param name: Secret Name (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDeleteSecretRequestWithAllParams added in v1.1.2

func NewDeleteSecretRequestWithAllParams(
	regionId string,
	name string,
) *DeleteSecretRequest

* param regionId: Region ID (Required) * param name: Secret Name (Required)

func NewDeleteSecretRequestWithoutParam added in v1.1.2

func NewDeleteSecretRequestWithoutParam() *DeleteSecretRequest

This constructor has better compatible ability when API parameters changed

func (DeleteSecretRequest) GetRegionId

func (r DeleteSecretRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DeleteSecretRequest) SetName

func (r *DeleteSecretRequest) SetName(name string)

param name: Secret Name(Required)

func (*DeleteSecretRequest) SetRegionId

func (r *DeleteSecretRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type DeleteSecretResponse

type DeleteSecretResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    DeleteSecretResult `json:"result"`
}

type DeleteSecretResult

type DeleteSecretResult struct {
}

type DescribeContainerRequest

type DescribeContainerRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* Container ID  */
	ContainerId string `json:"containerId"`
}

func NewDescribeContainerRequest

func NewDescribeContainerRequest(
	regionId string,
	containerId string,
) *DescribeContainerRequest

* param regionId: Region ID (Required) * param containerId: Container ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeContainerRequestWithAllParams added in v1.1.2

func NewDescribeContainerRequestWithAllParams(
	regionId string,
	containerId string,
) *DescribeContainerRequest

* param regionId: Region ID (Required) * param containerId: Container ID (Required)

func NewDescribeContainerRequestWithoutParam added in v1.1.2

func NewDescribeContainerRequestWithoutParam() *DescribeContainerRequest

This constructor has better compatible ability when API parameters changed

func (DescribeContainerRequest) GetRegionId

func (r DescribeContainerRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeContainerRequest) SetContainerId

func (r *DescribeContainerRequest) SetContainerId(containerId string)

param containerId: Container ID(Required)

func (*DescribeContainerRequest) SetRegionId

func (r *DescribeContainerRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type DescribeContainerResponse

type DescribeContainerResponse struct {
	RequestID string                  `json:"requestId"`
	Error     core.ErrorResponse      `json:"error"`
	Result    DescribeContainerResult `json:"result"`
}

type DescribeContainerResult

type DescribeContainerResult struct {
	Container nc.Container `json:"container"`
}

type DescribeContainersRequest

type DescribeContainersRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* 页码;默认为1 (Optional) */
	PageNumber *int `json:"pageNumber"`

	/* 分页大小;默认为20;取值范围[10, 100] (Optional) */
	PageSize *int `json:"pageSize"`

	/* containerId - 实例ID,精确匹配,支持多个
	privateIpAddress - 主网卡IP地址,模糊匹配,支持单个
	az - 可用区,精确匹配,支持多个
	vpcId - 私有网络ID,精确匹配,支持多个
	status - 容器状态,精确匹配,支持多个
	name - 实例名称,模糊匹配,支持单个
	subnetId - 镜像ID,模糊匹配,支持单个
	 (Optional) */
	Filters []common.Filter `json:"filters"`
}

func NewDescribeContainersRequest

func NewDescribeContainersRequest(
	regionId string,
) *DescribeContainersRequest

* param regionId: Region ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeContainersRequestWithAllParams added in v1.1.2

func NewDescribeContainersRequestWithAllParams(
	regionId string,
	pageNumber *int,
	pageSize *int,
	filters []common.Filter,
) *DescribeContainersRequest
  • param regionId: Region ID (Required)
  • param pageNumber: 页码;默认为1 (Optional)
  • param pageSize: 分页大小;默认为20;取值范围[10, 100] (Optional)
  • param filters: containerId - 实例ID,精确匹配,支持多个

privateIpAddress - 主网卡IP地址,模糊匹配,支持单个 az - 可用区,精确匹配,支持多个 vpcId - 私有网络ID,精确匹配,支持多个 status - 容器状态,精确匹配,支持多个 name - 实例名称,模糊匹配,支持单个 subnetId - 镜像ID,模糊匹配,支持单个

(Optional)

func NewDescribeContainersRequestWithoutParam added in v1.1.2

func NewDescribeContainersRequestWithoutParam() *DescribeContainersRequest

This constructor has better compatible ability when API parameters changed

func (DescribeContainersRequest) GetRegionId

func (r DescribeContainersRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeContainersRequest) SetFilters

func (r *DescribeContainersRequest) SetFilters(filters []common.Filter)
param filters: containerId - 实例ID,精确匹配,支持多个

privateIpAddress - 主网卡IP地址,模糊匹配,支持单个 az - 可用区,精确匹配,支持多个 vpcId - 私有网络ID,精确匹配,支持多个 status - 容器状态,精确匹配,支持多个 name - 实例名称,模糊匹配,支持单个 subnetId - 镜像ID,模糊匹配,支持单个 (Optional)

func (*DescribeContainersRequest) SetPageNumber

func (r *DescribeContainersRequest) SetPageNumber(pageNumber int)

param pageNumber: 页码;默认为1(Optional)

func (*DescribeContainersRequest) SetPageSize

func (r *DescribeContainersRequest) SetPageSize(pageSize int)

param pageSize: 分页大小;默认为20;取值范围[10, 100](Optional)

func (*DescribeContainersRequest) SetRegionId

func (r *DescribeContainersRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type DescribeContainersResponse

type DescribeContainersResponse struct {
	RequestID string                   `json:"requestId"`
	Error     core.ErrorResponse       `json:"error"`
	Result    DescribeContainersResult `json:"result"`
}

type DescribeContainersResult

type DescribeContainersResult struct {
	Containers []nc.Container `json:"containers"`
	TotalCount int            `json:"totalCount"`
}

type DescribeQuotaRequest

type DescribeQuotaRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* resourceType - 资源类型,支持 [container, pod, secret]
	 */
	ResourceType string `json:"resourceType"`
}

func NewDescribeQuotaRequest

func NewDescribeQuotaRequest(
	regionId string,
	resourceType string,
) *DescribeQuotaRequest

* param regionId: Region ID (Required) * param resourceType: resourceType - 资源类型,支持 [container, pod, secret] (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeQuotaRequestWithAllParams added in v1.1.2

func NewDescribeQuotaRequestWithAllParams(
	regionId string,
	resourceType string,
) *DescribeQuotaRequest

* param regionId: Region ID (Required) * param resourceType: resourceType - 资源类型,支持 [container, pod, secret] (Required)

func NewDescribeQuotaRequestWithoutParam added in v1.1.2

func NewDescribeQuotaRequestWithoutParam() *DescribeQuotaRequest

This constructor has better compatible ability when API parameters changed

func (DescribeQuotaRequest) GetRegionId

func (r DescribeQuotaRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeQuotaRequest) SetRegionId

func (r *DescribeQuotaRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

func (*DescribeQuotaRequest) SetResourceType

func (r *DescribeQuotaRequest) SetResourceType(resourceType string)
param resourceType: resourceType - 资源类型,支持 [container, pod, secret]

(Required)

type DescribeQuotaResponse

type DescribeQuotaResponse struct {
	RequestID string              `json:"requestId"`
	Error     core.ErrorResponse  `json:"error"`
	Result    DescribeQuotaResult `json:"result"`
}

type DescribeQuotaResult

type DescribeQuotaResult struct {
	Quota nc.Quota `json:"quota"`
}

type DescribeSecretRequest

type DescribeSecretRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* Secret Name  */
	Name string `json:"name"`
}

func NewDescribeSecretRequest

func NewDescribeSecretRequest(
	regionId string,
	name string,
) *DescribeSecretRequest

* param regionId: Region ID (Required) * param name: Secret Name (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeSecretRequestWithAllParams added in v1.1.2

func NewDescribeSecretRequestWithAllParams(
	regionId string,
	name string,
) *DescribeSecretRequest

* param regionId: Region ID (Required) * param name: Secret Name (Required)

func NewDescribeSecretRequestWithoutParam added in v1.1.2

func NewDescribeSecretRequestWithoutParam() *DescribeSecretRequest

This constructor has better compatible ability when API parameters changed

func (DescribeSecretRequest) GetRegionId

func (r DescribeSecretRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeSecretRequest) SetName

func (r *DescribeSecretRequest) SetName(name string)

param name: Secret Name(Required)

func (*DescribeSecretRequest) SetRegionId

func (r *DescribeSecretRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type DescribeSecretResponse

type DescribeSecretResponse struct {
	RequestID string               `json:"requestId"`
	Error     core.ErrorResponse   `json:"error"`
	Result    DescribeSecretResult `json:"result"`
}

type DescribeSecretResult

type DescribeSecretResult struct {
	Secret nc.Secret `json:"secret"`
}

type DescribeSecretsRequest

type DescribeSecretsRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* 页码;默认为1 (Optional) */
	PageNumber *int `json:"pageNumber"`

	/* 分页大小;默认为20;取值范围[10, 100] (Optional) */
	PageSize *int `json:"pageSize"`

	/* name - secret名称,支持模糊搜索
	(Optional) */
	Filters []common.Filter `json:"filters"`
}

func NewDescribeSecretsRequest

func NewDescribeSecretsRequest(
	regionId string,
) *DescribeSecretsRequest

* param regionId: Region ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeSecretsRequestWithAllParams added in v1.1.2

func NewDescribeSecretsRequestWithAllParams(
	regionId string,
	pageNumber *int,
	pageSize *int,
	filters []common.Filter,
) *DescribeSecretsRequest

* param regionId: Region ID (Required) * param pageNumber: 页码;默认为1 (Optional) * param pageSize: 分页大小;默认为20;取值范围[10, 100] (Optional) * param filters: name - secret名称,支持模糊搜索 (Optional)

func NewDescribeSecretsRequestWithoutParam added in v1.1.2

func NewDescribeSecretsRequestWithoutParam() *DescribeSecretsRequest

This constructor has better compatible ability when API parameters changed

func (DescribeSecretsRequest) GetRegionId

func (r DescribeSecretsRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeSecretsRequest) SetFilters

func (r *DescribeSecretsRequest) SetFilters(filters []common.Filter)
param filters: name - secret名称,支持模糊搜索

(Optional)

func (*DescribeSecretsRequest) SetPageNumber

func (r *DescribeSecretsRequest) SetPageNumber(pageNumber int)

param pageNumber: 页码;默认为1(Optional)

func (*DescribeSecretsRequest) SetPageSize

func (r *DescribeSecretsRequest) SetPageSize(pageSize int)

param pageSize: 分页大小;默认为20;取值范围[10, 100](Optional)

func (*DescribeSecretsRequest) SetRegionId

func (r *DescribeSecretsRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type DescribeSecretsResponse

type DescribeSecretsResponse struct {
	RequestID string                `json:"requestId"`
	Error     core.ErrorResponse    `json:"error"`
	Result    DescribeSecretsResult `json:"result"`
}

type DescribeSecretsResult

type DescribeSecretsResult struct {
	Secrets    []nc.Secret `json:"secrets"`
	TotalCount int         `json:"totalCount"`
}

type DisassociateElasticIpRequest

type DisassociateElasticIpRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* Container ID  */
	ContainerId string `json:"containerId"`

	/* 弹性IP ID  */
	ElasticIpId string `json:"elasticIpId"`
}

func NewDisassociateElasticIpRequest

func NewDisassociateElasticIpRequest(
	regionId string,
	containerId string,
	elasticIpId string,
) *DisassociateElasticIpRequest

* param regionId: Region ID (Required) * param containerId: Container ID (Required) * param elasticIpId: 弹性IP ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDisassociateElasticIpRequestWithAllParams added in v1.1.2

func NewDisassociateElasticIpRequestWithAllParams(
	regionId string,
	containerId string,
	elasticIpId string,
) *DisassociateElasticIpRequest

* param regionId: Region ID (Required) * param containerId: Container ID (Required) * param elasticIpId: 弹性IP ID (Required)

func NewDisassociateElasticIpRequestWithoutParam added in v1.1.2

func NewDisassociateElasticIpRequestWithoutParam() *DisassociateElasticIpRequest

This constructor has better compatible ability when API parameters changed

func (DisassociateElasticIpRequest) GetRegionId

func (r DisassociateElasticIpRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DisassociateElasticIpRequest) SetContainerId

func (r *DisassociateElasticIpRequest) SetContainerId(containerId string)

param containerId: Container ID(Required)

func (*DisassociateElasticIpRequest) SetElasticIpId

func (r *DisassociateElasticIpRequest) SetElasticIpId(elasticIpId string)

param elasticIpId: 弹性IP ID(Required)

func (*DisassociateElasticIpRequest) SetRegionId

func (r *DisassociateElasticIpRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type DisassociateElasticIpResponse

type DisassociateElasticIpResponse struct {
	RequestID string                      `json:"requestId"`
	Error     core.ErrorResponse          `json:"error"`
	Result    DisassociateElasticIpResult `json:"result"`
}

type DisassociateElasticIpResult

type DisassociateElasticIpResult struct {
}

type GetLogsRequest

type GetLogsRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* Container ID  */
	ContainerId string `json:"containerId"`

	/* 返回日志文件中倒数 tailLines 行,如不指定,默认从容器启动时或 sinceSeconds 指定的时间读取。
	(Optional) */
	TailLines *int `json:"tailLines"`

	/* 返回相对于当前时间之前sinceSeconds之内的日志。
	(Optional) */
	SinceSeconds *int `json:"sinceSeconds"`

	/* 限制返回的日志文件内容字节数,取值范围 [1-4]KB,最大 4KB.
	(Optional) */
	LimitBytes *int `json:"limitBytes"`
}

func NewGetLogsRequest

func NewGetLogsRequest(
	regionId string,
	containerId string,
) *GetLogsRequest

* param regionId: Region ID (Required) * param containerId: Container ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewGetLogsRequestWithAllParams added in v1.1.2

func NewGetLogsRequestWithAllParams(
	regionId string,
	containerId string,
	tailLines *int,
	sinceSeconds *int,
	limitBytes *int,
) *GetLogsRequest

* param regionId: Region ID (Required) * param containerId: Container ID (Required) * param tailLines: 返回日志文件中倒数 tailLines 行,如不指定,默认从容器启动时或 sinceSeconds 指定的时间读取。 (Optional) * param sinceSeconds: 返回相对于当前时间之前sinceSeconds之内的日志。 (Optional) * param limitBytes: 限制返回的日志文件内容字节数,取值范围 [1-4]KB,最大 4KB. (Optional)

func NewGetLogsRequestWithoutParam added in v1.1.2

func NewGetLogsRequestWithoutParam() *GetLogsRequest

This constructor has better compatible ability when API parameters changed

func (GetLogsRequest) GetRegionId

func (r GetLogsRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*GetLogsRequest) SetContainerId

func (r *GetLogsRequest) SetContainerId(containerId string)

param containerId: Container ID(Required)

func (*GetLogsRequest) SetLimitBytes

func (r *GetLogsRequest) SetLimitBytes(limitBytes int)
param limitBytes: 限制返回的日志文件内容字节数,取值范围 [1-4]KB,最大 4KB.

(Optional)

func (*GetLogsRequest) SetRegionId

func (r *GetLogsRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

func (*GetLogsRequest) SetSinceSeconds

func (r *GetLogsRequest) SetSinceSeconds(sinceSeconds int)
param sinceSeconds: 返回相对于当前时间之前sinceSeconds之内的日志。

(Optional)

func (*GetLogsRequest) SetTailLines

func (r *GetLogsRequest) SetTailLines(tailLines int)
param tailLines: 返回日志文件中倒数 tailLines 行,如不指定,默认从容器启动时或 sinceSeconds 指定的时间读取。

(Optional)

type GetLogsResponse

type GetLogsResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    GetLogsResult      `json:"result"`
}

type GetLogsResult

type GetLogsResult struct {
	Logs interface{} `json:"logs"`
}

type ModifyContainerAttributeRequest

type ModifyContainerAttributeRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* Container ID  */
	ContainerId string `json:"containerId"`

	/* 容器名称 (Optional) */
	Name *string `json:"name"`

	/* 容器描述;和description必须要指定一个 (Optional) */
	Description *string `json:"description"`
}

func NewModifyContainerAttributeRequest

func NewModifyContainerAttributeRequest(
	regionId string,
	containerId string,
) *ModifyContainerAttributeRequest

* param regionId: Region ID (Required) * param containerId: Container ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewModifyContainerAttributeRequestWithAllParams added in v1.1.2

func NewModifyContainerAttributeRequestWithAllParams(
	regionId string,
	containerId string,
	name *string,
	description *string,
) *ModifyContainerAttributeRequest

* param regionId: Region ID (Required) * param containerId: Container ID (Required) * param name: 容器名称 (Optional) * param description: 容器描述;和description必须要指定一个 (Optional)

func NewModifyContainerAttributeRequestWithoutParam added in v1.1.2

func NewModifyContainerAttributeRequestWithoutParam() *ModifyContainerAttributeRequest

This constructor has better compatible ability when API parameters changed

func (ModifyContainerAttributeRequest) GetRegionId

func (r ModifyContainerAttributeRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*ModifyContainerAttributeRequest) SetContainerId

func (r *ModifyContainerAttributeRequest) SetContainerId(containerId string)

param containerId: Container ID(Required)

func (*ModifyContainerAttributeRequest) SetDescription

func (r *ModifyContainerAttributeRequest) SetDescription(description string)

param description: 容器描述;和description必须要指定一个(Optional)

func (*ModifyContainerAttributeRequest) SetName

func (r *ModifyContainerAttributeRequest) SetName(name string)

param name: 容器名称(Optional)

func (*ModifyContainerAttributeRequest) SetRegionId

func (r *ModifyContainerAttributeRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type ModifyContainerAttributeResponse

type ModifyContainerAttributeResponse struct {
	RequestID string                         `json:"requestId"`
	Error     core.ErrorResponse             `json:"error"`
	Result    ModifyContainerAttributeResult `json:"result"`
}

type ModifyContainerAttributeResult

type ModifyContainerAttributeResult struct {
}

type StartContainerRequest

type StartContainerRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* Container ID  */
	ContainerId string `json:"containerId"`
}

func NewStartContainerRequest

func NewStartContainerRequest(
	regionId string,
	containerId string,
) *StartContainerRequest

* param regionId: Region ID (Required) * param containerId: Container ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewStartContainerRequestWithAllParams added in v1.1.2

func NewStartContainerRequestWithAllParams(
	regionId string,
	containerId string,
) *StartContainerRequest

* param regionId: Region ID (Required) * param containerId: Container ID (Required)

func NewStartContainerRequestWithoutParam added in v1.1.2

func NewStartContainerRequestWithoutParam() *StartContainerRequest

This constructor has better compatible ability when API parameters changed

func (StartContainerRequest) GetRegionId

func (r StartContainerRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*StartContainerRequest) SetContainerId

func (r *StartContainerRequest) SetContainerId(containerId string)

param containerId: Container ID(Required)

func (*StartContainerRequest) SetRegionId

func (r *StartContainerRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type StartContainerResponse

type StartContainerResponse struct {
	RequestID string               `json:"requestId"`
	Error     core.ErrorResponse   `json:"error"`
	Result    StartContainerResult `json:"result"`
}

type StartContainerResult

type StartContainerResult struct {
}

type StopContainerRequest

type StopContainerRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* Container ID  */
	ContainerId string `json:"containerId"`
}

func NewStopContainerRequest

func NewStopContainerRequest(
	regionId string,
	containerId string,
) *StopContainerRequest

* param regionId: Region ID (Required) * param containerId: Container ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewStopContainerRequestWithAllParams added in v1.1.2

func NewStopContainerRequestWithAllParams(
	regionId string,
	containerId string,
) *StopContainerRequest

* param regionId: Region ID (Required) * param containerId: Container ID (Required)

func NewStopContainerRequestWithoutParam added in v1.1.2

func NewStopContainerRequestWithoutParam() *StopContainerRequest

This constructor has better compatible ability when API parameters changed

func (StopContainerRequest) GetRegionId

func (r StopContainerRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*StopContainerRequest) SetContainerId

func (r *StopContainerRequest) SetContainerId(containerId string)

param containerId: Container ID(Required)

func (*StopContainerRequest) SetRegionId

func (r *StopContainerRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type StopContainerResponse

type StopContainerResponse struct {
	RequestID string              `json:"requestId"`
	Error     core.ErrorResponse  `json:"error"`
	Result    StopContainerResult `json:"result"`
}

type StopContainerResult

type StopContainerResult struct {
}

Jump to

Keyboard shortcuts

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