model

package
v0.0.28-beta.2 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreatePredefineTagsRequest

type CreatePredefineTagsRequest struct {
	Body *ReqCreatePredefineTag `json:"body,omitempty"`
}

Request Object

func (CreatePredefineTagsRequest) String

type CreatePredefineTagsResponse

type CreatePredefineTagsResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (CreatePredefineTagsResponse) String

type DeletePredefineTagsRequest

type DeletePredefineTagsRequest struct {
	Body *ReqDeletePredefineTag `json:"body,omitempty"`
}

Request Object

func (DeletePredefineTagsRequest) String

type DeletePredefineTagsResponse

type DeletePredefineTagsResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeletePredefineTagsResponse) String

type Link struct {
	// API的URL地址。
	Href string `json:"href"`
	// self
	Rel string `json:"rel"`
}

API的URL地址。

func (Link) String

func (o Link) String() string

type ListApiVersionsRequest

type ListApiVersionsRequest struct {
}

Request Object

func (ListApiVersionsRequest) String

func (o ListApiVersionsRequest) String() string

type ListApiVersionsResponse

type ListApiVersionsResponse struct {
	// 版本列表
	Versions       *[]VersionDetail `json:"versions,omitempty"`
	HttpStatusCode int              `json:"-"`
}

Response Object

func (ListApiVersionsResponse) String

func (o ListApiVersionsResponse) String() string

type ListPredefineTagsRequest

type ListPredefineTagsRequest struct {
	Key         *string                              `json:"key,omitempty"`
	Value       *string                              `json:"value,omitempty"`
	Limit       *int32                               `json:"limit,omitempty"`
	Marker      *string                              `json:"marker,omitempty"`
	OrderField  *string                              `json:"order_field,omitempty"`
	OrderMethod *ListPredefineTagsRequestOrderMethod `json:"order_method,omitempty"`
}

Request Object

func (ListPredefineTagsRequest) String

func (o ListPredefineTagsRequest) String() string

type ListPredefineTagsRequestOrderMethod

type ListPredefineTagsRequestOrderMethod struct {
	// contains filtered or unexported fields
}

func (ListPredefineTagsRequestOrderMethod) MarshalJSON

func (c ListPredefineTagsRequestOrderMethod) MarshalJSON() ([]byte, error)

func (*ListPredefineTagsRequestOrderMethod) UnmarshalJSON

func (c *ListPredefineTagsRequestOrderMethod) UnmarshalJSON(b []byte) error

type ListPredefineTagsRequestOrderMethodEnum

type ListPredefineTagsRequestOrderMethodEnum struct {
	ASC  ListPredefineTagsRequestOrderMethod
	DESC ListPredefineTagsRequestOrderMethod
}

func GetListPredefineTagsRequestOrderMethodEnum

func GetListPredefineTagsRequestOrderMethodEnum() ListPredefineTagsRequestOrderMethodEnum

type ListPredefineTagsResponse

type ListPredefineTagsResponse struct {
	// 分页位置标识(索引)。
	Marker *string `json:"marker,omitempty"`
	// 查询到的标签总数
	TotalCount *int32 `json:"total_count,omitempty"`
	// 查询到的标签列表
	Tags           *[]PredefineTag `json:"tags,omitempty"`
	HttpStatusCode int             `json:"-"`
}

Response Object

func (ListPredefineTagsResponse) String

func (o ListPredefineTagsResponse) String() string

type ModifyPrefineTag

type ModifyPrefineTag struct {
	NewTag *PredefineTagRequest `json:"new_tag"`
	OldTag *PredefineTagRequest `json:"old_tag"`
}

修改预定义标签

func (ModifyPrefineTag) String

func (o ModifyPrefineTag) String() string

type PredefineTag

type PredefineTag struct {
	//   键。 最大长度36个字符。 字符集:A-Z,a-z , 0-9,‘-’,‘_’,UNICODE字符(\\u4E00-\\u9FFF)。
	Key string `json:"key"`
	// 值。 每个值最大长度43个字符,可以为空字符串。 字符集:A-Z,a-z , 0-9,‘.’,‘-’,‘_’,UNICODE字符(\\u4E00-\\u9FFF)。
	Value string `json:"value"`
	// 更新时间,采用UTC时间表示。2016-12-09T00:00:00Z
	UpdateTime *sdktime.SdkTime `json:"update_time"`
}

标签列表。

func (PredefineTag) String

func (o PredefineTag) String() string

type PredefineTagRequest

type PredefineTagRequest struct {
	// 键。最大长度36个字符。字符集:A-Z,a-z , 0-9,‘-’,‘_’,UNICODE字符(\\u4E00-\\u9FFF)。
	Key string `json:"key"`
	// 值。每个值最大长度43个字符,可以为空字符串。字符集:AZ,a-z , 0-9,‘.’,‘-’,‘_’,UNICODE字符(\\u4E00-\\u9FFF)。
	Value string `json:"value"`
}

标签详情。

func (PredefineTagRequest) String

func (o PredefineTagRequest) String() string

type ReqCreatePredefineTag

type ReqCreatePredefineTag struct {
	// 操作标识(区分大小写):create(创建)
	Action ReqCreatePredefineTagAction `json:"action"`
	// 标签列表
	Tags []PredefineTagRequest `json:"tags"`
}

创建预定义标签请求

func (ReqCreatePredefineTag) String

func (o ReqCreatePredefineTag) String() string

type ReqCreatePredefineTagAction

type ReqCreatePredefineTagAction struct {
	// contains filtered or unexported fields
}

func (ReqCreatePredefineTagAction) MarshalJSON

func (c ReqCreatePredefineTagAction) MarshalJSON() ([]byte, error)

func (*ReqCreatePredefineTagAction) UnmarshalJSON

func (c *ReqCreatePredefineTagAction) UnmarshalJSON(b []byte) error

type ReqCreatePredefineTagActionEnum

type ReqCreatePredefineTagActionEnum struct {
	CREATE ReqCreatePredefineTagAction
}

func GetReqCreatePredefineTagActionEnum

func GetReqCreatePredefineTagActionEnum() ReqCreatePredefineTagActionEnum

type ReqDeletePredefineTag

type ReqDeletePredefineTag struct {
	// 操作标识(区分大小写):delete(删除)
	Action ReqDeletePredefineTagAction `json:"action"`
	// 标签列表
	Tags []PredefineTagRequest `json:"tags"`
}

删除预定义标签请求

func (ReqDeletePredefineTag) String

func (o ReqDeletePredefineTag) String() string

type ReqDeletePredefineTagAction

type ReqDeletePredefineTagAction struct {
	// contains filtered or unexported fields
}

func (ReqDeletePredefineTagAction) MarshalJSON

func (c ReqDeletePredefineTagAction) MarshalJSON() ([]byte, error)

func (*ReqDeletePredefineTagAction) UnmarshalJSON

func (c *ReqDeletePredefineTagAction) UnmarshalJSON(b []byte) error

type ReqDeletePredefineTagActionEnum

type ReqDeletePredefineTagActionEnum struct {
	DELETE ReqDeletePredefineTagAction
}

func GetReqDeletePredefineTagActionEnum

func GetReqDeletePredefineTagActionEnum() ReqDeletePredefineTagActionEnum

type ShowApiVersionRequest

type ShowApiVersionRequest struct {
	ApiVersion string `json:"api_version"`
}

Request Object

func (ShowApiVersionRequest) String

func (o ShowApiVersionRequest) String() string

type ShowApiVersionResponse

type ShowApiVersionResponse struct {
	Version        *VersionDetail `json:"version,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (ShowApiVersionResponse) String

func (o ShowApiVersionResponse) String() string

type UpdatePredefineTagsRequest

type UpdatePredefineTagsRequest struct {
	Body *ModifyPrefineTag `json:"body,omitempty"`
}

Request Object

func (UpdatePredefineTagsRequest) String

type UpdatePredefineTagsResponse

type UpdatePredefineTagsResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (UpdatePredefineTagsResponse) String

type VersionDetail

type VersionDetail struct {
	// 版本ID(版本号),如v1.0。
	Id string `json:"id"`
	// API的URL地址。
	Links []Link `json:"links"`
	// 若该版本API支持微版本,则返回支持的最新微版本号,如果不支持微版本,则返回空。
	Version string `json:"version"`
	// 版本状态,为如下3种: CURRENT:表示该版本为主推版本。 SUPPORTED:表示为老版本,但是现在还继续支持。 DEPRECATED:表示为废弃版本,存在后续删除的可能。
	Status VersionDetailStatus `json:"status"`
	// 版本发布时间,采用UTC时间表示。如v1.0发布的时间2016-12-09T00:00:00Z。
	Updated *sdktime.SdkTime `json:"updated"`
	// 若该版本API 支持微版本,则返回支持的最早微版本号, 如果不支持微版本,则返回空。
	MinVersion string `json:"min_version"`
}

版本详情

func (VersionDetail) String

func (o VersionDetail) String() string

type VersionDetailStatus

type VersionDetailStatus struct {
	// contains filtered or unexported fields
}

func (VersionDetailStatus) MarshalJSON

func (c VersionDetailStatus) MarshalJSON() ([]byte, error)

func (*VersionDetailStatus) UnmarshalJSON

func (c *VersionDetailStatus) UnmarshalJSON(b []byte) error

type VersionDetailStatusEnum

type VersionDetailStatusEnum struct {
	CURRENT    VersionDetailStatus
	SUPPORTED  VersionDetailStatus
	DEPRECATED VersionDetailStatus
}

func GetVersionDetailStatusEnum

func GetVersionDetailStatusEnum() VersionDetailStatusEnum

Jump to

Keyboard shortcuts

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