models

package
v1.36.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: Apache-2.0 Imports: 0 Imported by: 10 modules, 9 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessAuth

type AccessAuth struct {

	/* 访问授权ID (Optional) */
	AccessAuthId string `json:"accessAuthId"`

	/* 授权用户类型 (Optional) */
	AuthUserType string `json:"authUserType"`

	/* Access Key (Optional) */
	AccessKey string `json:"accessKey"`

	/* 描述 (Optional) */
	Description string `json:"description"`

	/* 绑定分组,用英文逗号分隔 (Optional) */
	BindGroups string `json:"bindGroups"`

	/* api调用者的appid (Optional) */
	AppId string `json:"appId"`
}

type AccessAuthView

type AccessAuthView struct {

	/* 授权用户类型 (Optional) */
	AuthUserType *string `json:"authUserType"`

	/* Access Key (Optional) */
	AccessKey *string `json:"accessKey"`

	/* 待绑定的部署ids逗号隔开 (Optional) */
	DeploymentIds *string `json:"deploymentIds"`

	/* 描述 (Optional) */
	Description *string `json:"description"`
}

type AccessKey

type AccessKey struct {

	/* Access Key id (Optional) */
	AccessKeyId string `json:"accessKeyId"`

	/* 描述 (Optional) */
	Description string `json:"description"`

	/* 密钥类型 (Optional) */
	AccessKeyType string `json:"accessKeyType"`

	/* Access Key (Optional) */
	AccessKey string `json:"accessKey"`

	/* 绑定分组 (Optional) */
	BindGroups []BindGroups `json:"bindGroups"`
}

type Api

type Api struct {

	/* apiId (Optional) */
	ApiId string `json:"apiId"`

	/* 分组ID (Optional) */
	ApiGroupId string `json:"apiGroupId"`

	/* 名称 (Optional) */
	ApiName string `json:"apiName"`

	/* 动作 (Optional) */
	Action string `json:"action"`

	/* 请求路径 (Optional) */
	Path string `json:"path"`

	/* 匹配模式:1."absolute"(绝对匹配); 2."prefix"(前缀匹配); (Optional) */
	MatchType string `json:"matchType"`

	/* 后端类型,为空或null时前端显示未设置 (Optional) */
	BackServiceType string `json:"backServiceType"`

	/* 描述 (Optional) */
	Description string `json:"description"`

	/* 请求参数列表 (Optional) */
	ReqParams []Parameter `json:"reqParams"`

	/* 请求格式 (Optional) */
	ReqBody string `json:"reqBody"`

	/* 返回格式 (Optional) */
	ResBody string `json:"resBody"`

	/* 请求格式类型,1:application/json,2:text/xml,3:其他 (Optional) */
	ReqBodyType int `json:"reqBodyType"`

	/* 返回格式类型,1:application/json,2:text/xml,3:其他 (Optional) */
	ResBodyType int `json:"resBodyType"`

	/* api后端配置 (Optional) */
	ApiBackendConfig ApiBackendConfig `json:"apiBackendConfig"`

	/* 应用类型ID,云鼎业务线专用 (Optional) */
	HufuAppTypeId int `json:"hufuAppTypeId"`

	/* 当前分组版本,发布的环境信息 (Optional) */
	DeploymentEnvironment []string `json:"deploymentEnvironment"`

	/* 请求格式类型,当reqBodyType等于3时,使用该请求格式类型 (Optional) */
	EditableReqBodyType string `json:"editableReqBodyType"`

	/* 响应格式类型,当resBodyType等于3时,使用该响应格式类型 (Optional) */
	EditableResBodyType string `json:"editableResBodyType"`

	/* waf状态,如:observe,deny,off (Optional) */
	WafStatus string `json:"wafStatus"`
}

type ApiBackendConfig

type ApiBackendConfig struct {

	/* 后端路径 (Optional) */
	BackendPath *string `json:"backendPath"`

	/* 后端请求方式 (Optional) */
	BackendAction *string `json:"backendAction"`

	/* 后端参数列表 (Optional) */
	BackendParams []BackendParameter `json:"backendParams"`

	/* 后端常量参数列表 (Optional) */
	BackendConstParams []Parameter `json:"backendConstParams"`
}

type ApiChargeSpec

type ApiChargeSpec struct {

	/* API ID  */
	ApiId string `json:"apiId"`

	/* 计费项 (Optional) */
	Formulas []Formula `json:"formulas"`
}

type ApiChargeSpecView

type ApiChargeSpecView struct {

	/* appCode (Optional) */
	AppCode string `json:"appCode"`

	/* serviceCode (Optional) */
	ServiceCode string `json:"serviceCode"`

	/* api中心展示,1展示,0 不展示 默认不展示 (Optional) */
	ShowStatus int `json:"showStatus"`

	/* 计费类型 0 标准计费 1 阶梯计费 (Optional) */
	ChargeType int `json:"chargeType"`

	/* 计费方式 0 200请求计费 1 后端处理计费 (Optional) */
	AccessSuccessType int `json:"accessSuccessType"`

	/* 请求参数列表  */
	ApiChargeSpecs []ApiChargeSpec `json:"apiChargeSpecs"`
}

type ApiGroup

type ApiGroup struct {

	/* 分组ID (Optional) */
	ApiGroupId string `json:"apiGroupId"`

	/* 名称 (Optional) */
	GroupName string `json:"groupName"`

	/* 描述 (Optional) */
	Description string `json:"description"`

	/* 分组路径前缀 (Optional) */
	Prefix string `json:"prefix"`

	/* 版本号 (Optional) */
	Version string `json:"version"`

	/* 区域 (Optional) */
	RegionId string `json:"regionId"`

	/* 域名 (Optional) */
	Domain string `json:"domain"`

	/* 发布环境信息,若为空或null,则未发布 (Optional) */
	Environment string `json:"environment"`

	/* 密钥验证方式:check_exist(密钥必须在访问授权中已配置)、no_check_exist(无需事先配置) (Optional) */
	KeyCheck string `json:"keyCheck"`

	/* 访问授权方式:None(免鉴权)、jd_cloud(开启访问授权,且必须使用京东云的AK、SK验签)、hufu(虎符用户) (Optional) */
	AuthType string `json:"authType"`

	/* 是否转发分组路径到后端服务:0(不转发)、1(转发) (Optional) */
	PrefixStrip int `json:"prefixStrip"`

	/* 分组类型:api_group(api分组)、jdsf_group(微服务分组) (Optional) */
	GroupType string `json:"groupType"`

	/* 微服务网关名称 (Optional) */
	JdsfName string `json:"jdsfName"`

	/* 微服务注册中心ID (Optional) */
	JdsfRegistryName string `json:"jdsfRegistryName"`

	/* 微服务网关ID (Optional) */
	JdsfId string `json:"jdsfId"`

	/* 分组是否已发布:0(未发布)、1(发布) (Optional) */
	Deploy int `json:"deploy"`
}

type ApiGroupCount

type ApiGroupCount struct {

	/* 网关ID (Optional) */
	GatewayId string `json:"gatewayId"`

	/* 分组数量 (Optional) */
	Count int `json:"count"`
}

type ApiGroupEx

type ApiGroupEx struct {

	/* 分组ID (Optional) */
	ApiGroupId string `json:"apiGroupId"`

	/* 名称 (Optional) */
	GroupName string `json:"groupName"`

	/* 区域 (Optional) */
	RegionId string `json:"regionId"`
}

type ApiGroupMonitor

type ApiGroupMonitor struct {

	/* 分组ID (Optional) */
	ApiGroupId string `json:"apiGroupId"`

	/* 分组名称 (Optional) */
	GroupName string `json:"groupName"`

	/* 后端服务地址 (Optional) */
	BackendUrl string `json:"backendUrl"`

	/* 分组路径 (Optional) */
	GroupPath string `json:"groupPath"`

	/* 版本号 (Optional) */
	Version string `json:"version"`

	/* API总数 (Optional) */
	ApiCount string `json:"apiCount"`

	/* 发布日期,格式为毫秒级时间戳 (Optional) */
	DeploymentDate int64 `json:"deploymentDate"`
}

type ApiGroupMonitorDetail

type ApiGroupMonitorDetail struct {

	/* 分组名称 (Optional) */
	GroupName string `json:"groupName"`

	/* 后端服务地址 (Optional) */
	BackendUrl string `json:"backendUrl"`

	/* 分组路径 (Optional) */
	GroupPath string `json:"groupPath"`

	/* 版本号 (Optional) */
	Version string `json:"version"`

	/* 描述 (Optional) */
	Description string `json:"description"`

	/* 发布日期,格式为毫秒级时间戳 (Optional) */
	DeploymentDate int64 `json:"deploymentDate"`
}

type ApiProduct

type ApiProduct struct {

	/* 分组ID (Optional) */
	ApiGroupId string `json:"apiGroupId"`

	/* 名称 (Optional) */
	GroupName string `json:"groupName"`

	/* 描述 (Optional) */
	Description string `json:"description"`

	/* 版本号 (Optional) */
	Version string `json:"version"`

	/* 区域 (Optional) */
	RegionId string `json:"regionId"`

	/* 计价方式 (Optional) */
	Price string `json:"price"`

	/* 发布日期,格式为毫秒级时间戳 (Optional) */
	DeploymentDate int64 `json:"deploymentDate"`

	/* 购买状态,1已购买,0未购买 (Optional) */
	IsBuyed int `json:"isBuyed"`

	/* 发布日期,格式为毫秒级时间戳 (Optional) */
	BuyDate int64 `json:"buyDate"`
}

type BackendConfig

type BackendConfig struct {

	/* 接口ID (Optional) */
	BackendConfigId string `json:"backendConfigId"`

	/* 分组ID (Optional) */
	BaseGroupId string `json:"baseGroupId"`

	/* 环境:test、preview、online  */
	Environment string `json:"environment"`

	/* 后端地址 (Optional) */
	BackendUrl string `json:"backendUrl"`

	/* 后端服务类型:mock、HTTP/HTTPS  */
	BackendServiceType string `json:"backendServiceType"`

	/* header参数列表 (Optional) */
	HeaderParams []SimpleParameter `json:"headerParams"`

	/* query参数列表 (Optional) */
	QueryParams []SimpleParameter `json:"queryParams"`

	/* 描述 (Optional) */
	Description string `json:"description"`

	/* 发布日期,格式为毫秒级时间戳 (Optional) */
	CreateTime int64 `json:"createTime"`

	/* 排序,赋值0时为默认的后端配置  */
	Sort int `json:"sort"`

	/* 排序,用于展示使用 (Optional) */
	UserSort int `json:"userSort"`

	/* vpc网关id (Optional) */
	JdsfId string `json:"jdsfId"`

	/* vpc后端地址 (Optional) */
	JdsfParam string `json:"jdsfParam"`

	/* vpc网关所属region (Optional) */
	JdsfRegion string `json:"jdsfRegion"`

	/* vpc网关创建者的pin (Optional) */
	JdsfPin string `json:"jdsfPin"`
}

type BackendParameter

type BackendParameter struct {

	/* 后端名称 (Optional) */
	BackendName *string `json:"backendName"`

	/* 后端参数位置 (Optional) */
	BackendParamLocation *string `json:"backendParamLocation"`

	/* 入参名称 (Optional) */
	Name *string `json:"name"`

	/* 入参位置 (Optional) */
	ParamLocation *string `json:"paramLocation"`

	/* 入参类型 (Optional) */
	ParamType *string `json:"paramType"`
}

type BindApiGroup

type BindApiGroup struct {

	/* 分组ID (Optional) */
	ApiGroupId string `json:"apiGroupId"`

	/* 名称 (Optional) */
	GroupName string `json:"groupName"`

	/* 描述 (Optional) */
	Description string `json:"description"`

	/* 分组路径前缀 (Optional) */
	Prefix string `json:"prefix"`

	/* 版本号 (Optional) */
	Version string `json:"version"`

	/* 区域 (Optional) */
	RegionId string `json:"regionId"`

	/* 域名 (Optional) */
	Domain string `json:"domain"`

	/* 网关绑定分组的环境信息 (Optional) */
	Environment string `json:"environment"`

	/* 密钥验证方式:check_exist(密钥必须在访问授权中已配置)、no_check_exist(无需事先配置) (Optional) */
	KeyCheck string `json:"keyCheck"`

	/* 访问授权方式:None(免鉴权)、jd_cloud(开启访问授权,且必须使用京东云的AK、SK验签)、hufu(虎符用户) (Optional) */
	AuthType string `json:"authType"`

	/* 是否转发分组路径到后端服务:0(不转发)、1(转发) (Optional) */
	PrefixStrip int `json:"prefixStrip"`

	/* 分组类型:api_group(api分组)、jdsf_group(微服务分组) (Optional) */
	GroupType string `json:"groupType"`

	/* 微服务网关名称 (Optional) */
	JdsfName string `json:"jdsfName"`

	/* 微服务注册中心ID (Optional) */
	JdsfRegistryName string `json:"jdsfRegistryName"`

	/* 微服务网关ID (Optional) */
	JdsfId string `json:"jdsfId"`

	/* 分组是否已发布:0(未发布)、1(发布) (Optional) */
	Deploy int `json:"deploy"`
}

type BindGroups

type BindGroups struct {

	/* 部署ID (Optional) */
	DeploymentId string `json:"deploymentId"`

	/* 分组名称 (Optional) */
	GroupName string `json:"groupName"`

	/* 环境:test、preview、online (Optional) */
	Environment string `json:"environment"`
}

type BindJdsfGroup

type BindJdsfGroup struct {

	/* 微服务网关名称 (Optional) */
	JdsfName string `json:"jdsfName"`

	/* 微服务注册中心ID (Optional) */
	JdsfRegistryName string `json:"jdsfRegistryName"`

	/* 环境信息  */
	Environment string `json:"environment"`

	/* 微服务网关ID  */
	JdsfId string `json:"jdsfId"`

	/* VPC类型时,传vpc对应的IP:port (Optional) */
	JdsfParam string `json:"jdsfParam"`

	/* 微服务网关region ID (Optional) */
	JdsfRegion string `json:"jdsfRegion"`

	/* 分组类型:api_group(api分组)、jdsf_group(微服务分组)默认api_group (Optional) */
	GroupType string `json:"groupType"`
}

type BindedGroup

type BindedGroup struct {

	/* 分组ID (Optional) */
	ApiGroupId string `json:"apiGroupId"`

	/* 名称 (Optional) */
	GroupName string `json:"groupName"`

	/* 区域 (Optional) */
	Region string `json:"region"`

	/* 环境 (Optional) */
	Environment string `json:"environment"`

	/* 授权时间 (Optional) */
	BindedTime string `json:"bindedTime"`
}

type ChargeAuth

type ChargeAuth struct {

	/* 用户pin  */
	UserPin string `json:"userPin"`

	/* 资源的uuid  */
	ResourceId string `json:"resourceId"`
}

type CreateAccessKey

type CreateAccessKey struct {

	/* 描述 (Optional) */
	Description string `json:"description"`

	/* 密钥类型 (Optional) */
	AccessKeyType string `json:"accessKeyType"`

	/* Access Key (Optional) */
	AccessKey string `json:"accessKey"`
}

type CreateApi

type CreateApi struct {

	/* 分组ID  */
	ApiGroupId string `json:"apiGroupId"`

	/* 名称  */
	ApiName string `json:"apiName"`

	/* 动作  */
	Action string `json:"action"`

	/* 请求路径  */
	Path string `json:"path"`

	/* 匹配模式:1."absolute"(绝对匹配); 2."prefix"(前缀匹配);  */
	MatchType string `json:"matchType"`

	/* 描述 (Optional) */
	Description *string `json:"description"`

	/* 请求参数列表 (Optional) */
	ReqParams []Parameter `json:"reqParams"`

	/* 请求格式 (Optional) */
	ReqBody *string `json:"reqBody"`

	/* 返回格式 (Optional) */
	ResBody *string `json:"resBody"`

	/* 请求格式类型,1:application/json,2:text/xml,3:其他  */
	ReqBodyType int `json:"reqBodyType"`

	/* 返回格式类型,1:application/json,2:text/xml,3:其他 (Optional) */
	ResBodyType *int `json:"resBodyType"`

	/* api后端配置 (Optional) */
	ApiBackendConfig *ApiBackendConfig `json:"apiBackendConfig"`

	/* 后端服务类型,如HTTP/HTTPS,mock,funcion等 (Optional) */
	BackServiceType *string `json:"backServiceType"`

	/* 后端服务地址,如后端服务地址,funtion路径等 (Optional) */
	BackServicePath *string `json:"backServicePath"`

	/* 后端服务ID,如函数ID等 (Optional) */
	BackServiceId *string `json:"backServiceId"`

	/* 后端服务名称,如函数名称 (Optional) */
	BackServiceName *string `json:"backServiceName"`

	/* 后端地址 (Optional) */
	BackUrl *string `json:"backUrl"`

	/* 后端服务配置,为true时,采用与分组统一的配置,初始创建api时请设置为True。  */
	BackServiceConfig bool `json:"backServiceConfig"`

	/* 后端服务版本,如函数版本名称 (Optional) */
	BackServiceVersion *string `json:"backServiceVersion"`

	/* 应用类型ID,云鼎业务线专用 (Optional) */
	HufuAppTypeId *int `json:"hufuAppTypeId"`

	/* 请求格式类型,当reqBodyType等于3时,使用该请求格式类型 (Optional) */
	EditableReqBodyType *string `json:"editableReqBodyType"`

	/* 响应格式类型,当resBodyType等于3时,使用该响应格式类型 (Optional) */
	EditableResBodyType *string `json:"editableResBodyType"`
}

type CreateApiGroup

type CreateApiGroup struct {

	/* 名称  */
	GroupName string `json:"groupName"`

	/* 描述 (Optional) */
	Description string `json:"description"`

	/* 分组路径前缀,无需添加/ (Optional) */
	Prefix string `json:"prefix"`

	/* 密钥验证方式:check_exist(密钥必须在访问授权中已配置)、no_check_exist(无需事先配置) (Optional) */
	KeyCheck string `json:"keyCheck"`

	/* 访问授权方式:None(免鉴权)、jd_cloud(开启访问授权,且必须使用京东云的AK、SK验签)、hufu(虎符用户)  */
	AuthType string `json:"authType"`

	/* 是否转发分组路径到后端服务:0(不转发)、1(转发)默认为1 (Optional) */
	PrefixStrip int `json:"prefixStrip"`

	/* 分组类型:api_group(api分组)、jdsf_group(微服务分组)默认为 api_group (Optional) */
	GroupType string `json:"groupType"`

	/* 微服务网关名称 (Optional) */
	JdsfName string `json:"jdsfName"`

	/* 微服务注册中心ID (Optional) */
	JdsfRegistryName string `json:"jdsfRegistryName"`

	/* 微服务网关ID (Optional) */
	JdsfId string `json:"jdsfId"`
}

type CreateRevision

type CreateRevision struct {

	/* 修订版本号,如果创建版本时传回修订版本,此为必填项 (Optional) */
	Revision string `json:"revision"`

	/* 基于此版本,如果创建版本时传回修订版本,此为必填项 (Optional) */
	BaseRevision string `json:"baseRevision"`

	/* 修订备注 (Optional) */
	RevisionNote string `json:"revisionNote"`
}

type CreateSubscriptionKey

type CreateSubscriptionKey struct {

	/* 描述 (Optional) */
	Description string `json:"description"`

	/* 密钥名称 (Optional) */
	Name string `json:"name"`
}

type DebugApi

type DebugApi struct {

	/* assessKey:京东云用户、API调用者、订阅密钥key (Optional) */
	AssessKey string `json:"assessKey"`

	/* secretKey:京东云用户、API调用者 (Optional) */
	SecretKey string `json:"secretKey"`

	/* 请求host  */
	Host string `json:"host"`

	/* 请求uri,分组路径前缀+API请求路径,如:/todo/api/v1/creatApi  */
	Uri string `json:"uri"`

	/* 请求方式  */
	Method string `json:"method"`

	/* 访问授权方式:None(免鉴权),jd_cloud(京东云用户),jd_apikms(API调用者),jd_subscription_key(订阅密钥)  */
	AuthType string `json:"authType"`

	/* api所属region  */
	Region string `json:"region"`

	/* query参数,用&分隔,如:id=1&version=v1 (Optional) */
	QueryString string `json:"queryString"`

	/* body参数,传json字符串的base64编码,例如body的值为:{"title":"desk","desc":"cheap"},应传值为:"eyJ0aXRsZSI6ImRlc2siLCJkZXNjIjoiY2hlYXAifQ==" (Optional) */
	Body string `json:"body"`

	/* 请求格式类型,1:application/json,2:text/xml,3:其他  */
	ReqBodyType string `json:"reqBodyType"`

	/* 请求格式类型,当reqBodyType等于3时,使用该请求格式类型 (Optional) */
	EditableReqBodyType string `json:"editableReqBodyType"`

	/* header参数,传json字符串 (Optional) */
	HeaderString string `json:"headerString"`

	/* 发布的环境信息,如:online,preview,test  */
	Environment string `json:"environment"`

	/* 是否API产品, 1为是 (Optional) */
	IsApiProduct string `json:"isApiProduct"`
}

type DebugReturnMessage

type DebugReturnMessage struct {

	/* 请求地址 (Optional) */
	RequestUrl string `json:"requestUrl"`

	/* request中header信息 (Optional) */
	RequestHeader string `json:"requestHeader"`

	/* request中body信息 (Optional) */
	RequestBody string `json:"requestBody"`

	/* 响应状态码 (Optional) */
	ResponseCodeStatus string `json:"responseCodeStatus"`

	/* header返回值 (Optional) */
	ResponseHeaderValue string `json:"responseHeaderValue"`

	/* body返回值 (Optional) */
	ResponseBody string `json:"responseBody"`
}

type Deploy

type Deploy struct {

	/* 发布的修订版本号  */
	Revision string `json:"revision"`

	/* 环境:test、preview、online  */
	Environment string `json:"environment"`

	/* 后端服务类型:mock、unique、vpc (Optional) */
	BackendServiceType string `json:"backendServiceType"`

	/* 后端地址 (Optional) */
	BackendUrl string `json:"backendUrl"`

	/* 描述 (Optional) */
	Description string `json:"description"`

	/* 微服务网关名称 (Optional) */
	JdsfName string `json:"jdsfName"`

	/* 微服务注册中心ID (Optional) */
	JdsfRegistryName string `json:"jdsfRegistryName"`

	/* 微服务ID (Optional) */
	JdsfId string `json:"jdsfId"`
}

type Deployment

type Deployment struct {

	/* 部署ID (Optional) */
	DeploymentId string `json:"deploymentId"`

	/* 发布的修订版本号 (Optional) */
	Revision string `json:"revision"`

	/* 路径 (Optional) */
	Path string `json:"path"`

	/* 环境:test、preview、online (Optional) */
	Environment string `json:"environment"`

	/* 后端服务类型:mock、unique、vpc (Optional) */
	BackendServiceType string `json:"backendServiceType"`

	/* 后端地址 (Optional) */
	BackendUrl string `json:"backendUrl"`

	/* 描述 (Optional) */
	Description string `json:"description"`

	/* 发布日期,格式为毫秒级时间戳 (Optional) */
	CreateTime int64 `json:"createTime"`

	/* 微服务网关名称 (Optional) */
	JdsfName string `json:"jdsfName"`

	/* 微服务注册中心ID (Optional) */
	JdsfRegistryName string `json:"jdsfRegistryName"`

	/* 微服务ID (Optional) */
	JdsfId string `json:"jdsfId"`
}

type DomainInfo

type DomainInfo struct {

	/* api分组id (Optional) */
	ApiGroupId string `json:"apiGroupId"`

	/* 域名id (Optional) */
	DomainId string `json:"domainId"`

	/* 域名 (Optional) */
	Domain string `json:"domain"`

	/* 解析的cname (Optional) */
	Cname string `json:"cname"`

	/* 域名使用的协议 (Optional) */
	Protocol string `json:"protocol"`

	/* 域名创建时间 (Optional) */
	CreateTime string `json:"createTime"`

	/* 域名状态 (Optional) */
	Status string `json:"status"`
}

type Formula

type Formula struct {

	/* key  */
	Key string `json:"key"`

	/* value  */
	Value string `json:"value"`

	/* 单位 (Optional) */
	Unit string `json:"unit"`
}

type Function

type Function struct {

	/* 函数名称  */
	FunctionName string `json:"functionName"`

	/* 函数版本名称 (Optional) */
	VersionName string `json:"versionName"`
}

type FuntionApi

type FuntionApi struct {

	/* 接口ID (Optional) */
	ApiId string `json:"apiId"`

	/* 分组ID (Optional) */
	ApiGroupId string `json:"apiGroupId"`

	/* 分组名称 (Optional) */
	GroupName string `json:"groupName"`

	/* 修订版本号 (Optional) */
	Revision string `json:"revision"`

	/* API名称 (Optional) */
	ApiName string `json:"apiName"`

	/* 请求方式 (Optional) */
	Action string `json:"action"`

	/* 请求路径,同时发布多个环境后会有多个路径 (Optional) */
	Path []string `json:"path"`

	/* API描述 (Optional) */
	Description string `json:"description"`

	/* 部署状态(1:已部署) (Optional) */
	DeploymentStatus int `json:"deploymentStatus"`
}

type GenerateInfo

type GenerateInfo struct {

	/* 语言 (Optional) */
	Language string `json:"language"`

	/* 文件状态,0:未生成,1:生成中,2:生成完成 (Optional) */
	FileStatus int `json:"fileStatus"`

	/* 下载地址 (Optional) */
	FileUrl string `json:"fileUrl"`
}

type HufuApi

type HufuApi struct {

	/* API ID (Optional) */
	ApiId string `json:"apiId"`

	/* 分组ID (Optional) */
	ApiGroupId string `json:"apiGroupId"`

	/* api状态 (Optional) */
	ApiStatus string `json:"apiStatus"`

	/* 名称 (Optional) */
	ApiName string `json:"apiName"`

	/* 描述 (Optional) */
	Description string `json:"description"`

	/* 应用类型ID,云鼎业务线专用 (Optional) */
	HufuAppTypeId int `json:"hufuAppTypeId"`
}

type ImportApi

type ImportApi struct {

	/* api接口定义  */
	ApiDefine string `json:"apiDefine"`
}

type KeyInfo

type KeyInfo struct {

	/* userid (Optional) */
	UserId string `json:"userId"`

	/* keyid (Optional) */
	KeyId string `json:"keyId"`

	/* keyname (Optional) */
	KeyName string `json:"keyName"`

	/* ak (Optional) */
	AccessKey string `json:"accessKey"`

	/* sk (Optional) */
	SecretKey string `json:"secretKey"`

	/* key描述信息 (Optional) */
	KeyDesc string `json:"keyDesc"`

	/* 创建时间 (Optional) */
	CreateTime string `json:"createTime"`
}

type ModifyApi

type ModifyApi struct {

	/* waf状态,如:observe,deny,off (Optional) */
	WafStatus string `json:"wafStatus"`
}

type Parameter

type Parameter struct {

	/* 名称 (Optional) */
	Name *string `json:"name"`

	/* 描述 (Optional) */
	Description *string `json:"description"`

	/* 参数位置 (Optional) */
	ParamLocation *string `json:"paramLocation"`

	/* 参数类型 (Optional) */
	ParamType *string `json:"paramType"`

	/* 默认值 (Optional) */
	DefaultValue *string `json:"defaultValue"`

	/* 默认值 (Optional) */
	IsRequired *bool `json:"isRequired"`
}

type PinAuthManage

type PinAuthManage struct {

	/* 被管理用户的名称 (Optional) */
	SubordinatesName string `json:"subordinatesName"`

	/* 被管理用户的pin  */
	SubordinatesPin string `json:"subordinatesPin"`
}

type RateLimitPolicy

type RateLimitPolicy struct {

	/* 策略id (Optional) */
	PolicyId string `json:"policyId"`

	/* 策略名称 (Optional) */
	PolicyName string `json:"policyName"`

	/* 时间单位 (Optional) */
	TimeUnit string `json:"timeUnit"`

	/* api流量限制次数 (Optional) */
	ApiLimitCount int `json:"apiLimitCount"`

	/* 用户流量限制次数 (Optional) */
	UserLimitCount int `json:"userLimitCount"`

	/* 应用流量限制次数 (Optional) */
	AppLimitCount int `json:"appLimitCount"`

	/* 用户ID (Optional) */
	UserId string `json:"userId"`

	/* 用户名 (Optional) */
	Pin string `json:"pin"`

	/* 描述 (Optional) */
	Description string `json:"description"`

	/* 绑定分组,以逗号隔开的分组id存储,以逗号隔开的分组name返回 (Optional) */
	BindGroups string `json:"bindGroups"`
}

type RateLimitPolicyView

type RateLimitPolicyView struct {

	/* 策略名称 (Optional) */
	PolicyName *string `json:"policyName"`

	/* 时间单位 (Optional) */
	TimeUnit *string `json:"timeUnit"`

	/* api流量限制次数 (Optional) */
	ApiLimitCount *int `json:"apiLimitCount"`

	/* 用户流量限制次数 (Optional) */
	UserLimitCount *int `json:"userLimitCount"`

	/* 应用流量限制次数 (Optional) */
	AppLimitCount *int `json:"appLimitCount"`

	/* 描述 (Optional) */
	Description *string `json:"description"`
}

type RevisionList

type RevisionList struct {

	/* 版本Id (Optional) */
	RevisionId string `json:"revisionId"`

	/* 修订版本号 (Optional) */
	Revision string `json:"revision"`

	/* 基于此版本 (Optional) */
	BaseRevision string `json:"baseRevision"`

	/* 发布环境 (Optional) */
	Environment string `json:"environment"`

	/* 修订日期 (Optional) */
	CreatedAt string `json:"createdAt"`

	/* 修订备注 (Optional) */
	RevisionNote string `json:"revisionNote"`
}

type ServiceError

type ServiceError struct {

	/*   */
	Code int `json:"code"`

	/*   */
	Details string `json:"details"`

	/*   */
	Message string `json:"message"`

	/*   */
	Status string `json:"status"`
}

type SimpleParameter

type SimpleParameter struct {

	/* 名称 (Optional) */
	Name *string `json:"name"`

	/* 值 (Optional) */
	Value *string `json:"value"`
}

type SubscriptionKey

type SubscriptionKey struct {

	/* subscription Key id (Optional) */
	SubscriptionKeyId string `json:"subscriptionKeyId"`

	/* 描述 (Optional) */
	Description string `json:"description"`

	/* subscription Key (Optional) */
	SubscriptionKey string `json:"subscriptionKey"`

	/* 密钥名称 (Optional) */
	Name string `json:"name"`

	/* 密钥创建时间 (Optional) */
	CreateTime string `json:"createTime"`

	/* 绑定分组 (Optional) */
	BindGroups []BindGroups `json:"bindGroups"`
}

type UcAccessKey

type UcAccessKey struct {

	/* 密钥转态 (Optional) */
	AccessKeyStatus string `json:"accessKeyStatus"`

	/* Access Key (Optional) */
	AccessKey string `json:"accessKey"`
}

type UpdateApiGroup

type UpdateApiGroup struct {

	/* 名称 (Optional) */
	GroupName string `json:"groupName"`

	/* 描述 (Optional) */
	Description string `json:"description"`

	/* 分组路径前缀 (Optional) */
	Prefix string `json:"prefix"`

	/* 密钥验证方式:check_exist(密钥必须在访问授权中已配置)、no_check_exist(无需事先配置) (Optional) */
	KeyCheck string `json:"keyCheck"`

	/* 访问授权方式:None(免鉴权)、jd_cloud(开启访问授权,且必须使用京东云的AK、SK验签)、hufu(虎符用户) (Optional) */
	AuthType string `json:"authType"`

	/* 是否转发分组路径到后端服务:0(不转发)、1(转发)默认为1 (Optional) */
	PrefixStrip int `json:"prefixStrip"`

	/* 分组类型:api_group(api分组)、jdsf_group(微服务分组)默认为 api_group (Optional) */
	GroupType string `json:"groupType"`

	/* 微服务网关名称 (Optional) */
	JdsfName string `json:"jdsfName"`

	/* 微服务注册中心ID (Optional) */
	JdsfRegistryName string `json:"jdsfRegistryName"`

	/* 微服务网关ID (Optional) */
	JdsfId string `json:"jdsfId"`
}

type UpdateGroupVpcPathModel

type UpdateGroupVpcPathModel struct {

	/* 微服务网关ID  */
	JdsfGwId string `json:"jdsfGwId"`

	/* vpc内ip:port,如:192.168.1.2:8000  */
	VpcPath string `json:"vpcPath"`
}

type UpdateRevision

type UpdateRevision struct {

	/* 修订备注 (Optional) */
	RevisionNote string `json:"revisionNote"`
}

type UpdatebackendConfig

type UpdatebackendConfig struct {

	/* 分组ID (Optional) */
	BaseGroupId string `json:"baseGroupId"`

	/* 环境:test、preview、online  */
	Environment string `json:"environment"`

	/* 后端地址 (Optional) */
	BackendUrl string `json:"backendUrl"`

	/* 后端服务类型:mock、HTTP/HTTPS  */
	BackendServiceType string `json:"backendServiceType"`

	/* header参数列表 (Optional) */
	HeaderParams []SimpleParameter `json:"headerParams"`

	/* query参数列表 (Optional) */
	QueryParams []SimpleParameter `json:"queryParams"`

	/* 描述 (Optional) */
	Description string `json:"description"`

	/* 发布日期,格式为毫秒级时间戳 (Optional) */
	CreateTime int64 `json:"createTime"`

	/* 排序,赋值0时为默认的后端配置  */
	Sort int `json:"sort"`

	/* 排序,用于展示使用 (Optional) */
	UserSort int `json:"userSort"`

	/* vpc网关id (Optional) */
	JdsfId string `json:"jdsfId"`

	/* vpc后端地址 (Optional) */
	JdsfParam string `json:"jdsfParam"`

	/* vpc网关所属region (Optional) */
	JdsfRegion string `json:"jdsfRegion"`

	/* vpc网关创建者的pin (Optional) */
	JdsfPin string `json:"jdsfPin"`
}

type UserBindedGroups

type UserBindedGroups struct {

	/* 分组ID (Optional) */
	ApiGroupId string `json:"apiGroupId"`

	/* 分组名称 (Optional) */
	GroupName string `json:"groupName"`

	/* 区域 (Optional) */
	Region string `json:"region"`

	/* 授权时间 (Optional) */
	Authtime string `json:"authtime"`

	/* 授权用户类型 (Optional) */
	AuthUserType string `json:"authUserType"`

	/* Access Key (Optional) */
	AccessKey string `json:"accessKey"`

	/* api调用者的appid (Optional) */
	AppId string `json:"appId"`

	/* api部署的环境 (Optional) */
	Environment string `json:"environment"`

	/* api版本 (Optional) */
	Revision string `json:"revision"`
}

Jump to

Keyboard shortcuts

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