public class ImportOASRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
authType
API安全认证类型,目前可以取值:
- **APP**:只允许已授权的APP调用 - **ANONYMOUS**:允许匿名调用,设置为允许匿名调用需要注意: - 任何能够获取该API服务信息的人,都将能够调用该API。 |
String |
backendName
The name of the backend service.
|
String |
data
The OAS-compliant text file or OSS object URL.
|
String |
groupId
The ID of the API group.
|
Boolean |
ignoreWarning
Specifies whether to ignore alerts.
|
String |
OASVersion
The OAS version.
|
Boolean |
overwrite
Specifies whether to overwrite an existing API.
|
String |
requestMode
The request mode.
|
String |
securityToken |
Boolean |
skipDryRun
Specifies whether to directly import the API without performing a precheck.
|
| 构造器和说明 |
|---|
ImportOASRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static ImportOASRequest |
build(Map<String,?> map) |
String |
getAuthType() |
String |
getBackendName() |
String |
getData() |
String |
getGroupId() |
Boolean |
getIgnoreWarning() |
String |
getOASVersion() |
Boolean |
getOverwrite() |
String |
getRequestMode() |
String |
getSecurityToken() |
Boolean |
getSkipDryRun() |
ImportOASRequest |
setAuthType(String authType) |
ImportOASRequest |
setBackendName(String backendName) |
ImportOASRequest |
setData(String data) |
ImportOASRequest |
setGroupId(String groupId) |
ImportOASRequest |
setIgnoreWarning(Boolean ignoreWarning) |
ImportOASRequest |
setOASVersion(String OASVersion) |
ImportOASRequest |
setOverwrite(Boolean overwrite) |
ImportOASRequest |
setRequestMode(String requestMode) |
ImportOASRequest |
setSecurityToken(String securityToken) |
ImportOASRequest |
setSkipDryRun(Boolean skipDryRun) |
@NameInMap(value="AuthType") public String authType
API安全认证类型,目前可以取值:
- **APP**:只允许已授权的APP调用
- **ANONYMOUS**:允许匿名调用,设置为允许匿名调用需要注意:
- 任何能够获取该API服务信息的人,都将能够调用该API。网关不会对调用者做身份认证,也无法设置按用户的流量控制,若开放该API请设置好按API的流量控制。
@NameInMap(value="BackendName") public String backendName
The name of the backend service.
@NameInMap(value="Data") public String data
The OAS-compliant text file or OSS object URL.
@NameInMap(value="GroupId") public String groupId
The ID of the API group.
@NameInMap(value="IgnoreWarning") public Boolean ignoreWarning
Specifies whether to ignore alerts.
@NameInMap(value="OASVersion") public String OASVersion
The OAS version.
@NameInMap(value="Overwrite") public Boolean overwrite
Specifies whether to overwrite an existing API.
If an existing API has the same HTTP request type and backend request path as the API to be imported, the existing API is overwritten.
@NameInMap(value="RequestMode") public String requestMode
The request mode. Valid values:
* MAPPING: Parameters are mapped. Unknown parameters are filtered out.
* PASSTHROUGH: Parameters are passed through.
@NameInMap(value="SecurityToken") public String securityToken
@NameInMap(value="SkipDryRun") public Boolean skipDryRun
Specifies whether to directly import the API without performing a precheck.
public static ImportOASRequest build(Map<String,?> map) throws Exception
Exceptionpublic ImportOASRequest setAuthType(String authType)
public String getAuthType()
public ImportOASRequest setBackendName(String backendName)
public String getBackendName()
public ImportOASRequest setData(String data)
public String getData()
public ImportOASRequest setGroupId(String groupId)
public String getGroupId()
public ImportOASRequest setIgnoreWarning(Boolean ignoreWarning)
public Boolean getIgnoreWarning()
public ImportOASRequest setOASVersion(String OASVersion)
public String getOASVersion()
public ImportOASRequest setOverwrite(Boolean overwrite)
public Boolean getOverwrite()
public ImportOASRequest setRequestMode(String requestMode)
public String getRequestMode()
public ImportOASRequest setSecurityToken(String securityToken)
public String getSecurityToken()
public ImportOASRequest setSkipDryRun(Boolean skipDryRun)
public Boolean getSkipDryRun()
Copyright © 2023. All rights reserved.