public static final class ImportOASRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
ImportOASRequest.Builder |
authType(String authType)
The security authentication method of the API.
|
ImportOASRequest.Builder |
backendName(String backendName)
The name of the backend service.
|
ImportOASRequest |
build() |
ImportOASRequest.Builder |
data(String data)
The OAS-compliant text file or OSS object URL.
|
ImportOASRequest.Builder |
groupId(String groupId)
The ID of the API group.
|
ImportOASRequest.Builder |
ignoreWarning(Boolean ignoreWarning)
Specifies whether to ignore alerts.
|
ImportOASRequest.Builder |
OASVersion(String OASVersion)
The OAS version.
|
ImportOASRequest.Builder |
overwrite(Boolean overwrite)
Specifies whether to overwrite an existing API.
|
ImportOASRequest.Builder |
requestMode(String requestMode)
The request mode.
|
ImportOASRequest.Builder |
securityToken(String securityToken)
SecurityToken.
|
ImportOASRequest.Builder |
skipDryRun(Boolean skipDryRun)
Specifies whether to directly import the API without performing a precheck.
|
public ImportOASRequest.Builder authType(String authType)
* **APP: Only authorized applications can call the API.** * **ANONYMOUS: The API can be anonymously called. In this mode, you must take note of the following rules:** * All users who have obtained the API service information can call this API. API Gateway does not authenticate callers and cannot set user-specific throttling policies. If you make this API public, set API-specific throttling policies.
public ImportOASRequest.Builder backendName(String backendName)
public ImportOASRequest.Builder data(String data)
public ImportOASRequest.Builder groupId(String groupId)
public ImportOASRequest.Builder ignoreWarning(Boolean ignoreWarning)
public ImportOASRequest.Builder OASVersion(String OASVersion)
public ImportOASRequest.Builder overwrite(Boolean overwrite)
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.
public ImportOASRequest.Builder requestMode(String requestMode)
* MAPPING: Parameters are mapped. Unknown parameters are filtered out. * PASSTHROUGH: Parameters are passed through.
public ImportOASRequest.Builder securityToken(String securityToken)
public ImportOASRequest.Builder skipDryRun(Boolean skipDryRun)
public ImportOASRequest build()
Copyright © 2024. All rights reserved.