public class APIResource extends AbstractModel
header, skipSign
Constructor and Description |
---|
APIResource() |
APIResource(APIResource source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String[] |
getAPIServiceIds()
Get API 资源关联的 API 服务 ID 列表。
|
String |
getId()
Get 资源 ID。
|
String[] |
getMethods()
Get 请求方法列表。支持以下取值:GET, POST, PUT, HEAD, PATCH, OPTIONS, DELETE。
|
String |
getName()
Get 资源名称。
|
String |
getPath()
Get 资源路径。
|
String |
getRequestConstraint()
Get 请求内容匹配规则的具体内容,需符合表达式语法,详细规范参见产品文档。
|
void |
setAPIServiceIds(String[] APIServiceIds)
Set API 资源关联的 API 服务 ID 列表。
|
void |
setId(String Id)
Set 资源 ID。
|
void |
setMethods(String[] Methods)
Set 请求方法列表。支持以下取值:GET, POST, PUT, HEAD, PATCH, OPTIONS, DELETE。
|
void |
setName(String Name)
Set 资源名称。
|
void |
setPath(String Path)
Set 资源路径。
|
void |
setRequestConstraint(String RequestConstraint)
Set 请求内容匹配规则的具体内容,需符合表达式语法,详细规范参见产品文档。
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public APIResource()
public APIResource(APIResource source)
public String getId()
public void setId(String Id)
Id
- 资源 ID。public String getName()
public void setName(String Name)
Name
- 资源名称。public String[] getAPIServiceIds()
public void setAPIServiceIds(String[] APIServiceIds)
APIServiceIds
- API 资源关联的 API 服务 ID 列表。public String getPath()
public void setPath(String Path)
Path
- 资源路径。public String[] getMethods()
public void setMethods(String[] Methods)
Methods
- 请求方法列表。支持以下取值:GET, POST, PUT, HEAD, PATCH, OPTIONS, DELETE。public String getRequestConstraint()
public void setRequestConstraint(String RequestConstraint)
RequestConstraint
- 请求内容匹配规则的具体内容,需符合表达式语法,详细规范参见产品文档。Copyright © 2025. All rights reserved.