apis

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 License: Apache-2.0 Imports: 2 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DescribeProductRequest

type DescribeProductRequest struct {
	core.JDCloudRequest

	/* Region ID (cn-north-1:华北-北京)  */
	RegionId string `json:"regionId"`

	/* 产品url  */
	Url string `json:"url"`

	/* 中文cn 英文en  */
	Lang string `json:"lang"`

	/* 外部使用ak;  */
	Ak string `json:"ak"`
}

func NewDescribeProductRequest

func NewDescribeProductRequest(
	regionId string,
	url string,
	lang string,
	ak string,
) *DescribeProductRequest

* param regionId: Region ID (cn-north-1:华北-北京) (Required) * param url: 产品url (Required) * param lang: 中文cn 英文en (Required) * param ak: 外部使用ak; (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeProductRequestWithAllParams

func NewDescribeProductRequestWithAllParams(
	regionId string,
	url string,
	lang string,
	ak string,
) *DescribeProductRequest

* param regionId: Region ID (cn-north-1:华北-北京) (Required) * param url: 产品url (Required) * param lang: 中文cn 英文en (Required) * param ak: 外部使用ak; (Required)

func NewDescribeProductRequestWithoutParam

func NewDescribeProductRequestWithoutParam() *DescribeProductRequest

This constructor has better compatible ability when API parameters changed

func (DescribeProductRequest) GetRegionId

func (r DescribeProductRequest) GetRegionId() string

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

func (*DescribeProductRequest) SetAk

func (r *DescribeProductRequest) SetAk(ak string)

param ak: 外部使用ak;(Required)

func (*DescribeProductRequest) SetLang

func (r *DescribeProductRequest) SetLang(lang string)

param lang: 中文cn 英文en(Required)

func (*DescribeProductRequest) SetRegionId

func (r *DescribeProductRequest) SetRegionId(regionId string)

param regionId: Region ID (cn-north-1:华北-北京)(Required)

func (*DescribeProductRequest) SetUrl

func (r *DescribeProductRequest) SetUrl(url string)

param url: 产品url(Required)

type DescribeProductResponse

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

type DescribeProductResult

type DescribeProductResult struct {
	Result portal.Product `json:"result"`
}

type DescribeProductsByIdRequest

type DescribeProductsByIdRequest struct {
	core.JDCloudRequest

	/* Region ID (cn-north-1:华北-北京)  */
	RegionId string `json:"regionId"`

	/* 语言类型;中文cn;英文en;  */
	Id int `json:"id"`

	/* 外部使用ak;  */
	Ak string `json:"ak"`
}

func NewDescribeProductsByIdRequest

func NewDescribeProductsByIdRequest(
	regionId string,
	id int,
	ak string,
) *DescribeProductsByIdRequest

* param regionId: Region ID (cn-north-1:华北-北京) (Required) * param id: 语言类型;中文cn;英文en; (Required) * param ak: 外部使用ak; (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeProductsByIdRequestWithAllParams

func NewDescribeProductsByIdRequestWithAllParams(
	regionId string,
	id int,
	ak string,
) *DescribeProductsByIdRequest

* param regionId: Region ID (cn-north-1:华北-北京) (Required) * param id: 语言类型;中文cn;英文en; (Required) * param ak: 外部使用ak; (Required)

func NewDescribeProductsByIdRequestWithoutParam

func NewDescribeProductsByIdRequestWithoutParam() *DescribeProductsByIdRequest

This constructor has better compatible ability when API parameters changed

func (DescribeProductsByIdRequest) GetRegionId

func (r DescribeProductsByIdRequest) GetRegionId() string

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

func (*DescribeProductsByIdRequest) SetAk

func (r *DescribeProductsByIdRequest) SetAk(ak string)

param ak: 外部使用ak;(Required)

func (*DescribeProductsByIdRequest) SetId

func (r *DescribeProductsByIdRequest) SetId(id int)

param id: 语言类型;中文cn;英文en;(Required)

func (*DescribeProductsByIdRequest) SetRegionId

func (r *DescribeProductsByIdRequest) SetRegionId(regionId string)

param regionId: Region ID (cn-north-1:华北-北京)(Required)

type DescribeProductsByIdResponse

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

type DescribeProductsByIdResult

type DescribeProductsByIdResult struct {
	Result []portal.Navigation `json:"result"`
}

Jump to

Keyboard shortcuts

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