model

package
v0.1.113 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateCredentialRequest

type CreateCredentialRequest struct {

	// IAM用户的token,无需特殊权限。
	XAuthToken string `json:"X-Auth-Token"`

	// 该字段填为“application/json;charset=utf8”。
	ContentType string `json:"Content-Type"`

	Body *CreateCredentialRequestBody `json:"body,omitempty"`
}

CreateCredentialRequest Request Object

func (CreateCredentialRequest) String

func (o CreateCredentialRequest) String() string

type CreateCredentialRequestBody

type CreateCredentialRequestBody struct {
	Credential *CreateCredentialRequestBodyCredential `json:"credential,omitempty"`
}

func (CreateCredentialRequestBody) String

type CreateCredentialRequestBodyCredential added in v0.1.20

type CreateCredentialRequestBodyCredential struct {
	Description *string `json:"description,omitempty"`
}

func (CreateCredentialRequestBodyCredential) String added in v0.1.20

type CreateCredentialResponse

type CreateCredentialResponse struct {

	// 凭证
	Key *string `json:"key,omitempty"`

	// 创建凭证的时间UTC时间格式:YYYY-mm-dd'T'HH:mm:ss.SSSSSS'Z',e.g. \"2020-01-08T06:26:08.123059Z\"
	CreateTime *string `json:"create_time,omitempty"`

	// 凭证的描述信息。
	Description *string `json:"description,omitempty"`

	// 凭证状态“ACTIVE”
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateCredentialResponse Response Object

func (CreateCredentialResponse) String

func (o CreateCredentialResponse) String() string

type CreateSasTokenRequest

type CreateSasTokenRequest struct {

	// IAM用户的token,无需特殊权限。
	XAuthToken string `json:"X-Auth-Token"`

	// 该字段填为“application/json;charset=utf8”。
	ContentType string `json:"Content-Type"`

	Body *CreateSasTokenRequestBody `json:"body,omitempty"`
}

CreateSasTokenRequest Request Object

func (CreateSasTokenRequest) String

func (o CreateSasTokenRequest) String() string

type CreateSasTokenRequestBody

type CreateSasTokenRequestBody struct {

	// 用于为用户生成令牌的密钥  取值为primary或者secondary  每个用户只有2个apikey,primary的原则就是对比apiKey时间最早的那个。  如果只有一个apikey,primary和secondary都指同一个apiKey
	Keytype string `json:"keytype"`

	// 令牌到期UTC时间,格式如:2019-04-21T00:44:24Z   日期符合以下格式: yyyy-MM-ddTHH:mm:ssZ 由 ISO 8601 标准指定。  最小值不小于15min,最大值不超过24h
	Expiry string `json:"expiry"`
}

func (CreateSasTokenRequestBody) String

func (o CreateSasTokenRequestBody) String() string

type CreateSasTokenResponse

type CreateSasTokenResponse struct {

	// API key的client_id
	ClientId *string `json:"client_id,omitempty"`

	// 超期时间,UTC格式
	Expiry *string `json:"expiry,omitempty"`

	// 签名字符串
	Signature      *string `json:"signature,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateSasTokenResponse Response Object

func (CreateSasTokenResponse) String

func (o CreateSasTokenResponse) String() string

type CredentialsRespCredentials

type CredentialsRespCredentials struct {

	// 凭证id
	Uuid *string `json:"uuid,omitempty"`

	// 凭证value
	Key *string `json:"key,omitempty"`

	// 凭证创建时间
	CreateTime *string `json:"create_time,omitempty"`

	// 凭证描述
	Description *string `json:"description,omitempty"`

	// 凭证状态
	Status *string `json:"status,omitempty"`
}

func (CredentialsRespCredentials) String

type DeleteCedentialRequest

type DeleteCedentialRequest struct {

	// 待删除的key的id。
	Clientid string `json:"clientid"`

	// IAM用户的token,无需特殊权限。
	XAuthToken string `json:"X-Auth-Token"`

	// 该字段填为“application/json;charset=utf8”。
	ContentType string `json:"Content-Type"`
}

DeleteCedentialRequest Request Object

func (DeleteCedentialRequest) String

func (o DeleteCedentialRequest) String() string

type DeleteCedentialResponse

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

DeleteCedentialResponse Response Object

func (DeleteCedentialResponse) String

func (o DeleteCedentialResponse) String() string

type ShowCredentialRequest

type ShowCredentialRequest struct {

	// IAM用户的token,无需特殊权限。
	XAuthToken string `json:"X-Auth-Token"`

	// 该字段填为“application/json;charset=utf8”。
	ContentType string `json:"Content-Type"`
}

ShowCredentialRequest Request Object

func (ShowCredentialRequest) String

func (o ShowCredentialRequest) String() string

type ShowCredentialResponse

type ShowCredentialResponse struct {

	// 凭证信息。
	Credentials    *[]CredentialsRespCredentials `json:"credentials,omitempty"`
	HttpStatusCode int                           `json:"-"`
}

ShowCredentialResponse Response Object

func (ShowCredentialResponse) String

func (o ShowCredentialResponse) String() string

type ShowMapTileRequest

type ShowMapTileRequest struct {

	// 缩放级别,取值范围[0~20]。
	Z int32 `json:"z"`

	// 缩放网格上的 X 坐标。 值必须在 [0, 2的z次方-1] 范围内。
	X int32 `json:"x"`

	// 缩放网格上的 Y 坐标。 值必须在 [0, 2的z次方-1] 范围内。
	Y int32 `json:"y"`

	// 签名消息头为:  Authorization: HMAC-SHA256 Clientid=xxxx,Expiry=xxxx,Signature=xxxx  HMAC-SHA256为固定签名算法,Clientid、Expiry、Signature的值从获取获取SAS token请求返回的消息体中获取,要求Clientid,Expiry,Signature同时存在。
	Authorization string `json:"Authorization"`
}

ShowMapTileRequest Request Object

func (ShowMapTileRequest) String

func (o ShowMapTileRequest) String() string

type ShowMapTileResponse

type ShowMapTileResponse struct {
	ContentType    *string       `json:"Content-Type,omitempty"`
	HttpStatusCode int           `json:"-"`
	Body           io.ReadCloser `json:"-" type:"stream"`
}

ShowMapTileResponse Response Object

func (ShowMapTileResponse) Consume

func (o ShowMapTileResponse) Consume(writer io.Writer) (int64, error)

func (ShowMapTileResponse) String

func (o ShowMapTileResponse) String() string

Jump to

Keyboard shortcuts

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