apis

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllocDedicatedHostsRequest

type AllocDedicatedHostsRequest struct {
	core.JDCloudRequest

	/* 地域ID  */
	RegionId string `json:"regionId"`

	/* 描述专有宿主机配置
	 */
	DedicatedHostSpec *dh.DedicatedHostSpec `json:"dedicatedHostSpec"`

	/* 是否支持AZ内专有宿主机强制均衡,默认为preferred--非强制,取值[preferred--非强制,required--强制]
	(Optional) */
	DeployPolicy *string `json:"deployPolicy"`

	/* 购买云主机的数量;取值范围:[1,100],默认为1。
	(Optional) */
	MaxCount *int `json:"maxCount"`

	/* 用于保证请求的幂等性。由客户端生成,长度不能超过64个字符。
	(Optional) */
	ClientToken *string `json:"clientToken"`
}

func NewAllocDedicatedHostsRequest

func NewAllocDedicatedHostsRequest(
	regionId string,
	dedicatedHostSpec *dh.DedicatedHostSpec,
) *AllocDedicatedHostsRequest

* param regionId: 地域ID (Required) * param dedicatedHostSpec: 描述专有宿主机配置 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewAllocDedicatedHostsRequestWithAllParams

func NewAllocDedicatedHostsRequestWithAllParams(
	regionId string,
	dedicatedHostSpec *dh.DedicatedHostSpec,
	deployPolicy *string,
	maxCount *int,
	clientToken *string,
) *AllocDedicatedHostsRequest

* param regionId: 地域ID (Required) * param dedicatedHostSpec: 描述专有宿主机配置 (Required) * param deployPolicy: 是否支持AZ内专有宿主机强制均衡,默认为preferred--非强制,取值[preferred--非强制,required--强制] (Optional) * param maxCount: 购买云主机的数量;取值范围:[1,100],默认为1。 (Optional) * param clientToken: 用于保证请求的幂等性。由客户端生成,长度不能超过64个字符。 (Optional)

func NewAllocDedicatedHostsRequestWithoutParam

func NewAllocDedicatedHostsRequestWithoutParam() *AllocDedicatedHostsRequest

This constructor has better compatible ability when API parameters changed

func (AllocDedicatedHostsRequest) GetRegionId

func (r AllocDedicatedHostsRequest) GetRegionId() string

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

func (*AllocDedicatedHostsRequest) SetClientToken

func (r *AllocDedicatedHostsRequest) SetClientToken(clientToken string)
param clientToken: 用于保证请求的幂等性。由客户端生成,长度不能超过64个字符。

(Optional)

func (*AllocDedicatedHostsRequest) SetDedicatedHostSpec

func (r *AllocDedicatedHostsRequest) SetDedicatedHostSpec(dedicatedHostSpec *dh.DedicatedHostSpec)
param dedicatedHostSpec: 描述专有宿主机配置

(Required)

func (*AllocDedicatedHostsRequest) SetDeployPolicy

func (r *AllocDedicatedHostsRequest) SetDeployPolicy(deployPolicy string)
param deployPolicy: 是否支持AZ内专有宿主机强制均衡,默认为preferred--非强制,取值[preferred--非强制,required--强制]

(Optional)

func (*AllocDedicatedHostsRequest) SetMaxCount

func (r *AllocDedicatedHostsRequest) SetMaxCount(maxCount int)
param maxCount: 购买云主机的数量;取值范围:[1,100],默认为1。

(Optional)

func (*AllocDedicatedHostsRequest) SetRegionId

func (r *AllocDedicatedHostsRequest) SetRegionId(regionId string)

param regionId: 地域ID(Required)

type AllocDedicatedHostsResponse

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

type AllocDedicatedHostsResult

type AllocDedicatedHostsResult struct {
	DedicatedHostIds []string `json:"dedicatedHostIds"`
}

type AllocDedicatedPoolRequest

type AllocDedicatedPoolRequest struct {
	core.JDCloudRequest

	/* 地域ID  */
	RegionId string `json:"regionId"`

	/* 支持的专有宿主机机型,每个专有宿主机池只能且必须指定一个专有宿主机机型
	(Optional) */
	DedicatedHostType *string `json:"dedicatedHostType"`

	/* 专有宿主机池名称
	(Optional) */
	Name *string `json:"name"`

	/* 指定专有宿主机池支持的可用区,可指定多个。
	(Optional) */
	Az []string `json:"az"`

	/* 专有宿主机池的描述信息。
	(Optional) */
	Description *string `json:"description"`
}

func NewAllocDedicatedPoolRequest

func NewAllocDedicatedPoolRequest(
	regionId string,
) *AllocDedicatedPoolRequest

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

func NewAllocDedicatedPoolRequestWithAllParams

func NewAllocDedicatedPoolRequestWithAllParams(
	regionId string,
	dedicatedHostType *string,
	name *string,
	az []string,
	description *string,
) *AllocDedicatedPoolRequest

* param regionId: 地域ID (Required) * param dedicatedHostType: 支持的专有宿主机机型,每个专有宿主机池只能且必须指定一个专有宿主机机型 (Optional) * param name: 专有宿主机池名称 (Optional) * param az: 指定专有宿主机池支持的可用区,可指定多个。 (Optional) * param description: 专有宿主机池的描述信息。 (Optional)

func NewAllocDedicatedPoolRequestWithoutParam

func NewAllocDedicatedPoolRequestWithoutParam() *AllocDedicatedPoolRequest

This constructor has better compatible ability when API parameters changed

func (AllocDedicatedPoolRequest) GetRegionId

func (r AllocDedicatedPoolRequest) GetRegionId() string

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

func (*AllocDedicatedPoolRequest) SetAz

func (r *AllocDedicatedPoolRequest) SetAz(az []string)
param az: 指定专有宿主机池支持的可用区,可指定多个。

(Optional)

func (*AllocDedicatedPoolRequest) SetDedicatedHostType

func (r *AllocDedicatedPoolRequest) SetDedicatedHostType(dedicatedHostType string)
param dedicatedHostType: 支持的专有宿主机机型,每个专有宿主机池只能且必须指定一个专有宿主机机型

(Optional)

func (*AllocDedicatedPoolRequest) SetDescription

func (r *AllocDedicatedPoolRequest) SetDescription(description string)
param description: 专有宿主机池的描述信息。

(Optional)

func (*AllocDedicatedPoolRequest) SetName

func (r *AllocDedicatedPoolRequest) SetName(name string)
param name: 专有宿主机池名称

(Optional)

func (*AllocDedicatedPoolRequest) SetRegionId

func (r *AllocDedicatedPoolRequest) SetRegionId(regionId string)

param regionId: 地域ID(Required)

type AllocDedicatedPoolResponse

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

type AllocDedicatedPoolResult

type AllocDedicatedPoolResult struct {
	DedicatedPoolId string `json:"dedicatedPoolId"`
}

type DescribeDedicatedHostTypeRequest

type DescribeDedicatedHostTypeRequest struct {
	core.JDCloudRequest

	/* 地域ID  */
	RegionId string `json:"regionId"`

	/* dedicatedHostType - 专有宿主机机型,精确匹配,支持多个
	az - 可用区,精确匹配,支持多个
	 (Optional) */
	Filters []common.Filter `json:"filters"`
}

func NewDescribeDedicatedHostTypeRequest

func NewDescribeDedicatedHostTypeRequest(
	regionId string,
) *DescribeDedicatedHostTypeRequest

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

func NewDescribeDedicatedHostTypeRequestWithAllParams

func NewDescribeDedicatedHostTypeRequestWithAllParams(
	regionId string,
	filters []common.Filter,
) *DescribeDedicatedHostTypeRequest
  • param regionId: 地域ID (Required)
  • param filters: dedicatedHostType - 专有宿主机机型,精确匹配,支持多个

az - 可用区,精确匹配,支持多个

(Optional)

func NewDescribeDedicatedHostTypeRequestWithoutParam

func NewDescribeDedicatedHostTypeRequestWithoutParam() *DescribeDedicatedHostTypeRequest

This constructor has better compatible ability when API parameters changed

func (DescribeDedicatedHostTypeRequest) GetRegionId

func (r DescribeDedicatedHostTypeRequest) GetRegionId() string

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

func (*DescribeDedicatedHostTypeRequest) SetFilters

func (r *DescribeDedicatedHostTypeRequest) SetFilters(filters []common.Filter)
param filters: dedicatedHostType - 专有宿主机机型,精确匹配,支持多个

az - 可用区,精确匹配,支持多个 (Optional)

func (*DescribeDedicatedHostTypeRequest) SetRegionId

func (r *DescribeDedicatedHostTypeRequest) SetRegionId(regionId string)

param regionId: 地域ID(Required)

type DescribeDedicatedHostTypeResponse

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

type DescribeDedicatedHostTypeResult

type DescribeDedicatedHostTypeResult struct {
	DedicatedHostTypes []dh.HostType `json:"dedicatedHostTypes"`
	TotalCount         int           `json:"totalCount"`
}

type DescribeDedicatedHostsRequest

type DescribeDedicatedHostsRequest struct {
	core.JDCloudRequest

	/* 地域ID  */
	RegionId string `json:"regionId"`

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

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

	/* dedicatedHostId - 专有宿主机ID,精确匹配,支持多个
	az - 可用区,精确匹配,支持多个
	status - 专有宿主机状态,精确匹配,支持多个,<a href="http://docs.jdcloud.com/dedicated-hosts/api/dh_status">参考专有宿主机状态</a>
	name - 专有宿主机名称,模糊匹配,支持单个
	dedicatedPoolId - 专有宿主机池ID,精确匹配,支持多个
	dedicatedHostType - 专有宿主机机型,精确匹配,支持多个
	 (Optional) */
	Filters []common.Filter `json:"filters"`
}

func NewDescribeDedicatedHostsRequest

func NewDescribeDedicatedHostsRequest(
	regionId string,
) *DescribeDedicatedHostsRequest

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

func NewDescribeDedicatedHostsRequestWithAllParams

func NewDescribeDedicatedHostsRequestWithAllParams(
	regionId string,
	pageNumber *int,
	pageSize *int,
	filters []common.Filter,
) *DescribeDedicatedHostsRequest
  • param regionId: 地域ID (Required)
  • param pageNumber: 页码;默认为1 (Optional)
  • param pageSize: 分页大小;默认为20;取值范围[10, 100] (Optional)
  • param filters: dedicatedHostId - 专有宿主机ID,精确匹配,支持多个

az - 可用区,精确匹配,支持多个 status - 专有宿主机状态,精确匹配,支持多个,<a href="http://docs.jdcloud.com/dedicated-hosts/api/dh_status">参考专有宿主机状态</a> name - 专有宿主机名称,模糊匹配,支持单个 dedicatedPoolId - 专有宿主机池ID,精确匹配,支持多个 dedicatedHostType - 专有宿主机机型,精确匹配,支持多个

(Optional)

func NewDescribeDedicatedHostsRequestWithoutParam

func NewDescribeDedicatedHostsRequestWithoutParam() *DescribeDedicatedHostsRequest

This constructor has better compatible ability when API parameters changed

func (DescribeDedicatedHostsRequest) GetRegionId

func (r DescribeDedicatedHostsRequest) GetRegionId() string

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

func (*DescribeDedicatedHostsRequest) SetFilters

func (r *DescribeDedicatedHostsRequest) SetFilters(filters []common.Filter)
param filters: dedicatedHostId - 专有宿主机ID,精确匹配,支持多个

az - 可用区,精确匹配,支持多个 status - 专有宿主机状态,精确匹配,支持多个,<a href="http://docs.jdcloud.com/dedicated-hosts/api/dh_status">参考专有宿主机状态</a> name - 专有宿主机名称,模糊匹配,支持单个 dedicatedPoolId - 专有宿主机池ID,精确匹配,支持多个 dedicatedHostType - 专有宿主机机型,精确匹配,支持多个 (Optional)

func (*DescribeDedicatedHostsRequest) SetPageNumber

func (r *DescribeDedicatedHostsRequest) SetPageNumber(pageNumber int)

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

func (*DescribeDedicatedHostsRequest) SetPageSize

func (r *DescribeDedicatedHostsRequest) SetPageSize(pageSize int)

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

func (*DescribeDedicatedHostsRequest) SetRegionId

func (r *DescribeDedicatedHostsRequest) SetRegionId(regionId string)

param regionId: 地域ID(Required)

type DescribeDedicatedHostsResponse

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

type DescribeDedicatedHostsResult

type DescribeDedicatedHostsResult struct {
	DedicatedHosts []dh.DedicatedHost `json:"dedicatedHosts"`
	TotalCount     int                `json:"totalCount"`
}

type DescribeDedicatedPoolsRequest

type DescribeDedicatedPoolsRequest struct {
	core.JDCloudRequest

	/* 地域ID  */
	RegionId string `json:"regionId"`

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

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

	/* dedicatedPoolId - 专有宿主机池ID,精确匹配,支持多个
	name - 专有宿主机名称,模糊匹配,支持单个
	dedicatedHostType - 专有宿主机机型,精确匹配,支持多个
	 (Optional) */
	Filters []common.Filter `json:"filters"`
}

func NewDescribeDedicatedPoolsRequest

func NewDescribeDedicatedPoolsRequest(
	regionId string,
) *DescribeDedicatedPoolsRequest

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

func NewDescribeDedicatedPoolsRequestWithAllParams

func NewDescribeDedicatedPoolsRequestWithAllParams(
	regionId string,
	pageNumber *int,
	pageSize *int,
	filters []common.Filter,
) *DescribeDedicatedPoolsRequest
  • param regionId: 地域ID (Required)
  • param pageNumber: 页码;默认为1 (Optional)
  • param pageSize: 分页大小;默认为20;取值范围[10, 100] (Optional)
  • param filters: dedicatedPoolId - 专有宿主机池ID,精确匹配,支持多个

name - 专有宿主机名称,模糊匹配,支持单个 dedicatedHostType - 专有宿主机机型,精确匹配,支持多个

(Optional)

func NewDescribeDedicatedPoolsRequestWithoutParam

func NewDescribeDedicatedPoolsRequestWithoutParam() *DescribeDedicatedPoolsRequest

This constructor has better compatible ability when API parameters changed

func (DescribeDedicatedPoolsRequest) GetRegionId

func (r DescribeDedicatedPoolsRequest) GetRegionId() string

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

func (*DescribeDedicatedPoolsRequest) SetFilters

func (r *DescribeDedicatedPoolsRequest) SetFilters(filters []common.Filter)
param filters: dedicatedPoolId - 专有宿主机池ID,精确匹配,支持多个

name - 专有宿主机名称,模糊匹配,支持单个 dedicatedHostType - 专有宿主机机型,精确匹配,支持多个 (Optional)

func (*DescribeDedicatedPoolsRequest) SetPageNumber

func (r *DescribeDedicatedPoolsRequest) SetPageNumber(pageNumber int)

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

func (*DescribeDedicatedPoolsRequest) SetPageSize

func (r *DescribeDedicatedPoolsRequest) SetPageSize(pageSize int)

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

func (*DescribeDedicatedPoolsRequest) SetRegionId

func (r *DescribeDedicatedPoolsRequest) SetRegionId(regionId string)

param regionId: 地域ID(Required)

type DescribeDedicatedPoolsResponse

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

type DescribeDedicatedPoolsResult

type DescribeDedicatedPoolsResult struct {
	DedicatedPools []dh.DedicatedPool `json:"dedicatedPools"`
	TotalCount     int                `json:"totalCount"`
}

type DescribeQuotasRequest

type DescribeQuotasRequest struct {
	core.JDCloudRequest

	/* 地域ID  */
	RegionId string `json:"regionId"`

	/* resourceTypes - 资源类型,支持多个[dedicatedHost,dedicatedPool]
	(Optional) */
	Filters []common.Filter `json:"filters"`
}

func NewDescribeQuotasRequest

func NewDescribeQuotasRequest(
	regionId string,
) *DescribeQuotasRequest

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

func NewDescribeQuotasRequestWithAllParams

func NewDescribeQuotasRequestWithAllParams(
	regionId string,
	filters []common.Filter,
) *DescribeQuotasRequest

* param regionId: 地域ID (Required) * param filters: resourceTypes - 资源类型,支持多个[dedicatedHost,dedicatedPool] (Optional)

func NewDescribeQuotasRequestWithoutParam

func NewDescribeQuotasRequestWithoutParam() *DescribeQuotasRequest

This constructor has better compatible ability when API parameters changed

func (DescribeQuotasRequest) GetRegionId

func (r DescribeQuotasRequest) GetRegionId() string

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

func (*DescribeQuotasRequest) SetFilters

func (r *DescribeQuotasRequest) SetFilters(filters []common.Filter)
param filters: resourceTypes - 资源类型,支持多个[dedicatedHost,dedicatedPool]

(Optional)

func (*DescribeQuotasRequest) SetRegionId

func (r *DescribeQuotasRequest) SetRegionId(regionId string)

param regionId: 地域ID(Required)

type DescribeQuotasResponse

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

type DescribeQuotasResult

type DescribeQuotasResult struct {
	Quotas []vm.Quota `json:"quotas"`
}

type ModifyDedicatedHostAttributeRequest

type ModifyDedicatedHostAttributeRequest struct {
	core.JDCloudRequest

	/* 地域ID  */
	RegionId string `json:"regionId"`

	/* 专有宿主机ID  */
	DedicatedHostId string `json:"dedicatedHostId"`

	/* 名称,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。 (Optional) */
	Name *string `json:"name"`

	/* 描述,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。 (Optional) */
	Description *string `json:"description"`
}

func NewModifyDedicatedHostAttributeRequest

func NewModifyDedicatedHostAttributeRequest(
	regionId string,
	dedicatedHostId string,
) *ModifyDedicatedHostAttributeRequest

* param regionId: 地域ID (Required) * param dedicatedHostId: 专有宿主机ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewModifyDedicatedHostAttributeRequestWithAllParams

func NewModifyDedicatedHostAttributeRequestWithAllParams(
	regionId string,
	dedicatedHostId string,
	name *string,
	description *string,
) *ModifyDedicatedHostAttributeRequest

* param regionId: 地域ID (Required) * param dedicatedHostId: 专有宿主机ID (Required) * param name: 名称,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。 (Optional) * param description: 描述,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。 (Optional)

func NewModifyDedicatedHostAttributeRequestWithoutParam

func NewModifyDedicatedHostAttributeRequestWithoutParam() *ModifyDedicatedHostAttributeRequest

This constructor has better compatible ability when API parameters changed

func (ModifyDedicatedHostAttributeRequest) GetRegionId

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

func (*ModifyDedicatedHostAttributeRequest) SetDedicatedHostId

func (r *ModifyDedicatedHostAttributeRequest) SetDedicatedHostId(dedicatedHostId string)

param dedicatedHostId: 专有宿主机ID(Required)

func (*ModifyDedicatedHostAttributeRequest) SetDescription

func (r *ModifyDedicatedHostAttributeRequest) SetDescription(description string)

param description: 描述,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。(Optional)

func (*ModifyDedicatedHostAttributeRequest) SetName

param name: 名称,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。(Optional)

func (*ModifyDedicatedHostAttributeRequest) SetRegionId

func (r *ModifyDedicatedHostAttributeRequest) SetRegionId(regionId string)

param regionId: 地域ID(Required)

type ModifyDedicatedHostAttributeResponse

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

type ModifyDedicatedHostAttributeResult

type ModifyDedicatedHostAttributeResult struct {
}

type ModifyDedicatedPoolAttributeRequest

type ModifyDedicatedPoolAttributeRequest struct {
	core.JDCloudRequest

	/* 地域ID  */
	RegionId string `json:"regionId"`

	/* 专有宿主机ID  */
	DedicatedPoolId string `json:"dedicatedPoolId"`

	/* 名称,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。 (Optional) */
	Name *string `json:"name"`

	/* 描述,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。 (Optional) */
	Description *string `json:"description"`

	/* 指定宿主机池申请专有宿主机时默认继承的可用区。<br>
	修改可用区时旧可用区必须是新可用区的子集,即可用区只能添加,不能减少。
	 (Optional) */
	Az []string `json:"az"`
}

func NewModifyDedicatedPoolAttributeRequest

func NewModifyDedicatedPoolAttributeRequest(
	regionId string,
	dedicatedPoolId string,
) *ModifyDedicatedPoolAttributeRequest

* param regionId: 地域ID (Required) * param dedicatedPoolId: 专有宿主机ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewModifyDedicatedPoolAttributeRequestWithAllParams

func NewModifyDedicatedPoolAttributeRequestWithAllParams(
	regionId string,
	dedicatedPoolId string,
	name *string,
	description *string,
	az []string,
) *ModifyDedicatedPoolAttributeRequest

修改可用区时旧可用区必须是新可用区的子集,即可用区只能添加,不能减少。

(Optional)

func NewModifyDedicatedPoolAttributeRequestWithoutParam

func NewModifyDedicatedPoolAttributeRequestWithoutParam() *ModifyDedicatedPoolAttributeRequest

This constructor has better compatible ability when API parameters changed

func (ModifyDedicatedPoolAttributeRequest) GetRegionId

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

func (*ModifyDedicatedPoolAttributeRequest) SetAz

param az: 指定宿主机池申请专有宿主机时默认继承的可用区。<br>

修改可用区时旧可用区必须是新可用区的子集,即可用区只能添加,不能减少。 (Optional)

func (*ModifyDedicatedPoolAttributeRequest) SetDedicatedPoolId

func (r *ModifyDedicatedPoolAttributeRequest) SetDedicatedPoolId(dedicatedPoolId string)

param dedicatedPoolId: 专有宿主机ID(Required)

func (*ModifyDedicatedPoolAttributeRequest) SetDescription

func (r *ModifyDedicatedPoolAttributeRequest) SetDescription(description string)

param description: 描述,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。(Optional)

func (*ModifyDedicatedPoolAttributeRequest) SetName

param name: 名称,<a href="http://docs.jdcloud.com/virtual-machines/api/general_parameters">参考公共参数规范</a>。(Optional)

func (*ModifyDedicatedPoolAttributeRequest) SetRegionId

func (r *ModifyDedicatedPoolAttributeRequest) SetRegionId(regionId string)

param regionId: 地域ID(Required)

type ModifyDedicatedPoolAttributeResponse

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

type ModifyDedicatedPoolAttributeResult

type ModifyDedicatedPoolAttributeResult struct {
}

type ReleaseDedicatedHostRequest

type ReleaseDedicatedHostRequest struct {
	core.JDCloudRequest

	/* 地域ID  */
	RegionId string `json:"regionId"`

	/* 专有宿主机ID  */
	DedicatedHostId string `json:"dedicatedHostId"`
}

func NewReleaseDedicatedHostRequest

func NewReleaseDedicatedHostRequest(
	regionId string,
	dedicatedHostId string,
) *ReleaseDedicatedHostRequest

* param regionId: 地域ID (Required) * param dedicatedHostId: 专有宿主机ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewReleaseDedicatedHostRequestWithAllParams

func NewReleaseDedicatedHostRequestWithAllParams(
	regionId string,
	dedicatedHostId string,
) *ReleaseDedicatedHostRequest

* param regionId: 地域ID (Required) * param dedicatedHostId: 专有宿主机ID (Required)

func NewReleaseDedicatedHostRequestWithoutParam

func NewReleaseDedicatedHostRequestWithoutParam() *ReleaseDedicatedHostRequest

This constructor has better compatible ability when API parameters changed

func (ReleaseDedicatedHostRequest) GetRegionId

func (r ReleaseDedicatedHostRequest) GetRegionId() string

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

func (*ReleaseDedicatedHostRequest) SetDedicatedHostId

func (r *ReleaseDedicatedHostRequest) SetDedicatedHostId(dedicatedHostId string)

param dedicatedHostId: 专有宿主机ID(Required)

func (*ReleaseDedicatedHostRequest) SetRegionId

func (r *ReleaseDedicatedHostRequest) SetRegionId(regionId string)

param regionId: 地域ID(Required)

type ReleaseDedicatedHostResponse

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

type ReleaseDedicatedHostResult

type ReleaseDedicatedHostResult struct {
}

type ReleaseDedicatedPoolRequest

type ReleaseDedicatedPoolRequest struct {
	core.JDCloudRequest

	/* 地域ID  */
	RegionId string `json:"regionId"`

	/* 专有宿主机ID  */
	DedicatedPoolId string `json:"dedicatedPoolId"`
}

func NewReleaseDedicatedPoolRequest

func NewReleaseDedicatedPoolRequest(
	regionId string,
	dedicatedPoolId string,
) *ReleaseDedicatedPoolRequest

* param regionId: 地域ID (Required) * param dedicatedPoolId: 专有宿主机ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewReleaseDedicatedPoolRequestWithAllParams

func NewReleaseDedicatedPoolRequestWithAllParams(
	regionId string,
	dedicatedPoolId string,
) *ReleaseDedicatedPoolRequest

* param regionId: 地域ID (Required) * param dedicatedPoolId: 专有宿主机ID (Required)

func NewReleaseDedicatedPoolRequestWithoutParam

func NewReleaseDedicatedPoolRequestWithoutParam() *ReleaseDedicatedPoolRequest

This constructor has better compatible ability when API parameters changed

func (ReleaseDedicatedPoolRequest) GetRegionId

func (r ReleaseDedicatedPoolRequest) GetRegionId() string

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

func (*ReleaseDedicatedPoolRequest) SetDedicatedPoolId

func (r *ReleaseDedicatedPoolRequest) SetDedicatedPoolId(dedicatedPoolId string)

param dedicatedPoolId: 专有宿主机ID(Required)

func (*ReleaseDedicatedPoolRequest) SetRegionId

func (r *ReleaseDedicatedPoolRequest) SetRegionId(regionId string)

param regionId: 地域ID(Required)

type ReleaseDedicatedPoolResponse

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

type ReleaseDedicatedPoolResult

type ReleaseDedicatedPoolResult struct {
}

Jump to

Keyboard shortcuts

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