v20180808

package
v3.0.116+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const APIVersion = "2018-08-08"

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckDomainRequest

type CheckDomainRequest struct {
	*tchttp.BaseRequest

	// 所查询域名名称
	DomainName *string `json:"DomainName,omitempty" name:"DomainName"`
}

func NewCheckDomainRequest

func NewCheckDomainRequest() (request *CheckDomainRequest)

func (*CheckDomainRequest) FromJsonString

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

func (*CheckDomainRequest) ToJsonString

func (r *CheckDomainRequest) ToJsonString() string

type CheckDomainResponse

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

		// 所查询域名名称
		DomainName *string `json:"DomainName,omitempty" name:"DomainName"`

		// 是否能够注册
		Available *bool `json:"Available,omitempty" name:"Available"`

		// 不能注册原因
		Reason *string `json:"Reason,omitempty" name:"Reason"`

		// 是否是溢价词
		Premium *bool `json:"Premium,omitempty" name:"Premium"`

		// 价格
		Price *uint64 `json:"Price,omitempty" name:"Price"`

		// 是否是敏感词
		BlackWord *bool `json:"BlackWord,omitempty" name:"BlackWord"`

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

func NewCheckDomainResponse

func NewCheckDomainResponse() (response *CheckDomainResponse)

func (*CheckDomainResponse) FromJsonString

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

func (*CheckDomainResponse) ToJsonString

func (r *CheckDomainResponse) ToJsonString() string

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) CheckDomain

func (c *Client) CheckDomain(request *CheckDomainRequest) (response *CheckDomainResponse, err error)

检查域名是否可以注册

func (*Client) DescribeDomainPriceList

func (c *Client) DescribeDomainPriceList(request *DescribeDomainPriceListRequest) (response *DescribeDomainPriceListResponse, err error)

按照域名后缀获取对应的价格列表

type DescribeDomainPriceListRequest

type DescribeDomainPriceListRequest struct {
	*tchttp.BaseRequest

	// 查询价格的后缀列表。默认则为全部后缀
	TldList []*string `json:"TldList,omitempty" name:"TldList" list`
}

func NewDescribeDomainPriceListRequest

func NewDescribeDomainPriceListRequest() (request *DescribeDomainPriceListRequest)

func (*DescribeDomainPriceListRequest) FromJsonString

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

func (*DescribeDomainPriceListRequest) ToJsonString

func (r *DescribeDomainPriceListRequest) ToJsonString() string

type DescribeDomainPriceListResponse

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

		// 域名价格列表
		PriceList []*PriceInfo `json:"PriceList,omitempty" name:"PriceList" list`

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

func NewDescribeDomainPriceListResponse

func NewDescribeDomainPriceListResponse() (response *DescribeDomainPriceListResponse)

func (*DescribeDomainPriceListResponse) FromJsonString

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

func (*DescribeDomainPriceListResponse) ToJsonString

func (r *DescribeDomainPriceListResponse) ToJsonString() string

type PriceInfo

type PriceInfo struct {

	// 域名后缀,例如.com
	Tld *string `json:"Tld,omitempty" name:"Tld"`

	// 购买年限,范围[1-10]
	Year *uint64 `json:"Year,omitempty" name:"Year"`

	// 域名原价
	Price *uint64 `json:"Price,omitempty" name:"Price"`

	// 域名现价
	RealPrice *uint64 `json:"RealPrice,omitempty" name:"RealPrice"`

	// 商品的购买类型,新购,续费,赎回,转入,续费并转入
	Operation *string `json:"Operation,omitempty" name:"Operation"`
}

Jump to

Keyboard shortcuts

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