public class CreateApiRequest extends AbstractModel
Constructor and Description |
---|
CreateApiRequest() |
Modifier and Type | Method and Description |
---|---|
String |
getApiBusinessType()
Get This field is valid if `AuthType` is `OAUTH`.
|
String |
getApiDesc()
Get Custom API description.
|
String |
getApiName()
Get Custom API name.
|
String |
getApiType()
Get API type.
|
String |
getAuthRelationApiId()
Get Unique ID of associated authorization API, which takes effect only if `AuthType` is `OAUTH` and `ApiBusinessType` is `NORMAL`.
|
String |
getAuthType()
Get API authentication type.
|
ConstantParameter[] |
getConstantParameters()
Get Constant parameter.
|
Boolean |
getEnableCORS()
Get Whether to enable CORS.
|
Boolean |
getIsDebugAfterCharge()
Get Billing after debugging starts (reserved field for marketplace).
|
Boolean |
getIsDeleteResponseErrorCodes()
Get Whether to delete the error codes for custom response configuration.
|
MicroServiceReq[] |
getMicroServices()
Get List of microservices bound to API.
|
OauthConfig |
getOauthConfig()
Get OAuth configuration, which takes effect if `AuthType` is `OAUTH`.
|
String |
getProtocol()
Get API frontend request type, such as HTTP, HTTPS, or HTTP and HTTPS.
|
ApiRequestConfig |
getRequestConfig()
Get Request frontend configuration.
|
RequestParameter[] |
getRequestParameters()
Get Frontend request parameter.
|
ResponseErrorCodeReq[] |
getResponseErrorCodes()
Get Custom error code configuration.
|
String |
getResponseFailExample()
Get Sample response for failed custom response configuration.
|
String |
getResponseSuccessExample()
Get Sample response for successful custom response configuration.
|
String |
getResponseType()
Get Return type.
|
ServiceConfig |
getServiceConfig()
Get API backend service configuration.
|
String |
getServiceId()
Get Unique service ID of API.
|
String |
getServiceMockReturnMessage()
Get Returned message of API backend Mock, which is required if `ServiceType` is `Mock`.
|
ServiceParameter[] |
getServiceParameters()
Get API backend service parameter.
|
String |
getServiceScfFunctionName()
Get SCF function name, which takes effect if the backend type is `SCF`.
|
String |
getServiceScfFunctionNamespace()
Get SCF function namespace, which takes effect if the backend type is `SCF`.
|
String |
getServiceScfFunctionQualifier()
Get SCF function version, which takes effect if the backend type is `SCF`.
|
Boolean |
getServiceScfIsIntegratedResponse()
Get Whether to enable response integration, which takes effect if the backend type is `SCF`.
|
Long |
getServiceTimeout()
Get API backend service timeout period in seconds.
|
HealthCheckConf |
getServiceTsfHealthCheckConf()
Get Health check configuration of microservice.
|
TsfLoadBalanceConfResp |
getServiceTsfLoadBalanceConf()
Get Load balancing configuration of microservice.
|
String |
getServiceType()
Get API backend service type.
|
String |
getServiceWebsocketCleanupFunctionName()
Get SCF WebSocket cleanup function, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`.
|
String |
getServiceWebsocketCleanupFunctionNamespace()
Get SCF WebSocket cleanup function namespace, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`.
|
String |
getServiceWebsocketCleanupFunctionQualifier()
Get SCF WebSocket cleanup function version, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`.
|
String |
getServiceWebsocketRegisterFunctionName()
Get SCF WebSocket registration function, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`.
|
String |
getServiceWebsocketRegisterFunctionNamespace()
Get SCF WebSocket registration function namespace, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`.
|
String |
getServiceWebsocketRegisterFunctionQualifier()
Get SCF WebSocket transfer function version, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`.
|
String |
getServiceWebsocketTransportFunctionName()
Get SCF WebSocket transfer function, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`.
|
String |
getServiceWebsocketTransportFunctionNamespace()
Get SCF WebSocket transfer function namespace, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`.
|
String |
getServiceWebsocketTransportFunctionQualifier()
Get SCF WebSocket transfer function version, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`.
|
String |
getTargetNamespaceId()
Get TSF Serverless namespace ID (in beta test).
|
TargetServicesReq[] |
getTargetServices()
Get `target` type backend resource information (in beta test).
|
HealthCheckConf |
getTargetServicesHealthCheckConf()
Get `target` health check configuration (in beta test).
|
Long |
getTargetServicesLoadBalanceConf()
Get `target` type load balancing configuration (in beta test).
|
String |
getUserType()
Get User type.
|
void |
setApiBusinessType(String ApiBusinessType)
Set This field is valid if `AuthType` is `OAUTH`.
|
void |
setApiDesc(String ApiDesc)
Set Custom API description.
|
void |
setApiName(String ApiName)
Set Custom API name.
|
void |
setApiType(String ApiType)
Set API type.
|
void |
setAuthRelationApiId(String AuthRelationApiId)
Set Unique ID of associated authorization API, which takes effect only if `AuthType` is `OAUTH` and `ApiBusinessType` is `NORMAL`.
|
void |
setAuthType(String AuthType)
Set API authentication type.
|
void |
setConstantParameters(ConstantParameter[] ConstantParameters)
Set Constant parameter.
|
void |
setEnableCORS(Boolean EnableCORS)
Set Whether to enable CORS.
|
void |
setIsDebugAfterCharge(Boolean IsDebugAfterCharge)
Set Billing after debugging starts (reserved field for marketplace).
|
void |
setIsDeleteResponseErrorCodes(Boolean IsDeleteResponseErrorCodes)
Set Whether to delete the error codes for custom response configuration.
|
void |
setMicroServices(MicroServiceReq[] MicroServices)
Set List of microservices bound to API.
|
void |
setOauthConfig(OauthConfig OauthConfig)
Set OAuth configuration, which takes effect if `AuthType` is `OAUTH`.
|
void |
setProtocol(String Protocol)
Set API frontend request type, such as HTTP, HTTPS, or HTTP and HTTPS.
|
void |
setRequestConfig(ApiRequestConfig RequestConfig)
Set Request frontend configuration.
|
void |
setRequestParameters(RequestParameter[] RequestParameters)
Set Frontend request parameter.
|
void |
setResponseErrorCodes(ResponseErrorCodeReq[] ResponseErrorCodes)
Set Custom error code configuration.
|
void |
setResponseFailExample(String ResponseFailExample)
Set Sample response for failed custom response configuration.
|
void |
setResponseSuccessExample(String ResponseSuccessExample)
Set Sample response for successful custom response configuration.
|
void |
setResponseType(String ResponseType)
Set Return type.
|
void |
setServiceConfig(ServiceConfig ServiceConfig)
Set API backend service configuration.
|
void |
setServiceId(String ServiceId)
Set Unique service ID of API.
|
void |
setServiceMockReturnMessage(String ServiceMockReturnMessage)
Set Returned message of API backend Mock, which is required if `ServiceType` is `Mock`.
|
void |
setServiceParameters(ServiceParameter[] ServiceParameters)
Set API backend service parameter.
|
void |
setServiceScfFunctionName(String ServiceScfFunctionName)
Set SCF function name, which takes effect if the backend type is `SCF`.
|
void |
setServiceScfFunctionNamespace(String ServiceScfFunctionNamespace)
Set SCF function namespace, which takes effect if the backend type is `SCF`.
|
void |
setServiceScfFunctionQualifier(String ServiceScfFunctionQualifier)
Set SCF function version, which takes effect if the backend type is `SCF`.
|
void |
setServiceScfIsIntegratedResponse(Boolean ServiceScfIsIntegratedResponse)
Set Whether to enable response integration, which takes effect if the backend type is `SCF`.
|
void |
setServiceTimeout(Long ServiceTimeout)
Set API backend service timeout period in seconds.
|
void |
setServiceTsfHealthCheckConf(HealthCheckConf ServiceTsfHealthCheckConf)
Set Health check configuration of microservice.
|
void |
setServiceTsfLoadBalanceConf(TsfLoadBalanceConfResp ServiceTsfLoadBalanceConf)
Set Load balancing configuration of microservice.
|
void |
setServiceType(String ServiceType)
Set API backend service type.
|
void |
setServiceWebsocketCleanupFunctionName(String ServiceWebsocketCleanupFunctionName)
Set SCF WebSocket cleanup function, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`.
|
void |
setServiceWebsocketCleanupFunctionNamespace(String ServiceWebsocketCleanupFunctionNamespace)
Set SCF WebSocket cleanup function namespace, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`.
|
void |
setServiceWebsocketCleanupFunctionQualifier(String ServiceWebsocketCleanupFunctionQualifier)
Set SCF WebSocket cleanup function version, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`.
|
void |
setServiceWebsocketRegisterFunctionName(String ServiceWebsocketRegisterFunctionName)
Set SCF WebSocket registration function, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`.
|
void |
setServiceWebsocketRegisterFunctionNamespace(String ServiceWebsocketRegisterFunctionNamespace)
Set SCF WebSocket registration function namespace, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`.
|
void |
setServiceWebsocketRegisterFunctionQualifier(String ServiceWebsocketRegisterFunctionQualifier)
Set SCF WebSocket transfer function version, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`.
|
void |
setServiceWebsocketTransportFunctionName(String ServiceWebsocketTransportFunctionName)
Set SCF WebSocket transfer function, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`.
|
void |
setServiceWebsocketTransportFunctionNamespace(String ServiceWebsocketTransportFunctionNamespace)
Set SCF WebSocket transfer function namespace, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`.
|
void |
setServiceWebsocketTransportFunctionQualifier(String ServiceWebsocketTransportFunctionQualifier)
Set SCF WebSocket transfer function version, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`.
|
void |
setTargetNamespaceId(String TargetNamespaceId)
Set TSF Serverless namespace ID (in beta test).
|
void |
setTargetServices(TargetServicesReq[] TargetServices)
Set `target` type backend resource information (in beta test).
|
void |
setTargetServicesHealthCheckConf(HealthCheckConf TargetServicesHealthCheckConf)
Set `target` health check configuration (in beta test).
|
void |
setTargetServicesLoadBalanceConf(Long TargetServicesLoadBalanceConf)
Set `target` type load balancing configuration (in beta test).
|
void |
setUserType(String UserType)
Set User type.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public String getServiceId()
public void setServiceId(String ServiceId)
ServiceId
- Unique service ID of API.public String getServiceType()
public void setServiceType(String ServiceType)
ServiceType
- API backend service type. Valid values: HTTP, MOCK, TSF, CLB, SCF, WEBSOCKET, TARGET (in beta test).public Long getServiceTimeout()
public void setServiceTimeout(Long ServiceTimeout)
ServiceTimeout
- API backend service timeout period in seconds.public String getProtocol()
public void setProtocol(String Protocol)
Protocol
- API frontend request type, such as HTTP, HTTPS, or HTTP and HTTPS.public ApiRequestConfig getRequestConfig()
public void setRequestConfig(ApiRequestConfig RequestConfig)
RequestConfig
- Request frontend configuration.public String getApiName()
public void setApiName(String ApiName)
ApiName
- Custom API name.public String getApiDesc()
public void setApiDesc(String ApiDesc)
ApiDesc
- Custom API description.public String getApiType()
public void setApiType(String ApiType)
ApiType
- API type. Valid values: NORMAL (general API), TSF (microservice API). Default value: NORMAL.public String getAuthType()
public void setAuthType(String AuthType)
AuthType
- API authentication type. Valid values: SECRET (key pair authentication), NONE (no authentication), OAUTH. Default value: NONE.public Boolean getEnableCORS()
public void setEnableCORS(Boolean EnableCORS)
EnableCORS
- Whether to enable CORS.public ConstantParameter[] getConstantParameters()
public void setConstantParameters(ConstantParameter[] ConstantParameters)
ConstantParameters
- Constant parameter.public RequestParameter[] getRequestParameters()
public void setRequestParameters(RequestParameter[] RequestParameters)
RequestParameters
- Frontend request parameter.public String getApiBusinessType()
public void setApiBusinessType(String ApiBusinessType)
ApiBusinessType
- This field is valid if `AuthType` is `OAUTH`. NORMAL: business API; OAUTH: authorization API.public String getServiceMockReturnMessage()
public void setServiceMockReturnMessage(String ServiceMockReturnMessage)
ServiceMockReturnMessage
- Returned message of API backend Mock, which is required if `ServiceType` is `Mock`.public MicroServiceReq[] getMicroServices()
public void setMicroServices(MicroServiceReq[] MicroServices)
MicroServices
- List of microservices bound to API.public TsfLoadBalanceConfResp getServiceTsfLoadBalanceConf()
public void setServiceTsfLoadBalanceConf(TsfLoadBalanceConfResp ServiceTsfLoadBalanceConf)
ServiceTsfLoadBalanceConf
- Load balancing configuration of microservice.public HealthCheckConf getServiceTsfHealthCheckConf()
public void setServiceTsfHealthCheckConf(HealthCheckConf ServiceTsfHealthCheckConf)
ServiceTsfHealthCheckConf
- Health check configuration of microservice.public TargetServicesReq[] getTargetServices()
public void setTargetServices(TargetServicesReq[] TargetServices)
TargetServices
- `target` type backend resource information (in beta test).public Long getTargetServicesLoadBalanceConf()
public void setTargetServicesLoadBalanceConf(Long TargetServicesLoadBalanceConf)
TargetServicesLoadBalanceConf
- `target` type load balancing configuration (in beta test).public HealthCheckConf getTargetServicesHealthCheckConf()
public void setTargetServicesHealthCheckConf(HealthCheckConf TargetServicesHealthCheckConf)
TargetServicesHealthCheckConf
- `target` health check configuration (in beta test).public String getServiceScfFunctionName()
public void setServiceScfFunctionName(String ServiceScfFunctionName)
ServiceScfFunctionName
- SCF function name, which takes effect if the backend type is `SCF`.public String getServiceWebsocketRegisterFunctionName()
public void setServiceWebsocketRegisterFunctionName(String ServiceWebsocketRegisterFunctionName)
ServiceWebsocketRegisterFunctionName
- SCF WebSocket registration function, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`.public String getServiceWebsocketCleanupFunctionName()
public void setServiceWebsocketCleanupFunctionName(String ServiceWebsocketCleanupFunctionName)
ServiceWebsocketCleanupFunctionName
- SCF WebSocket cleanup function, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`.public String getServiceWebsocketTransportFunctionName()
public void setServiceWebsocketTransportFunctionName(String ServiceWebsocketTransportFunctionName)
ServiceWebsocketTransportFunctionName
- SCF WebSocket transfer function, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`.public String getServiceScfFunctionNamespace()
public void setServiceScfFunctionNamespace(String ServiceScfFunctionNamespace)
ServiceScfFunctionNamespace
- SCF function namespace, which takes effect if the backend type is `SCF`.public String getServiceScfFunctionQualifier()
public void setServiceScfFunctionQualifier(String ServiceScfFunctionQualifier)
ServiceScfFunctionQualifier
- SCF function version, which takes effect if the backend type is `SCF`.public String getServiceWebsocketRegisterFunctionNamespace()
public void setServiceWebsocketRegisterFunctionNamespace(String ServiceWebsocketRegisterFunctionNamespace)
ServiceWebsocketRegisterFunctionNamespace
- SCF WebSocket registration function namespace, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`.public String getServiceWebsocketRegisterFunctionQualifier()
public void setServiceWebsocketRegisterFunctionQualifier(String ServiceWebsocketRegisterFunctionQualifier)
ServiceWebsocketRegisterFunctionQualifier
- SCF WebSocket transfer function version, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`.public String getServiceWebsocketTransportFunctionNamespace()
public void setServiceWebsocketTransportFunctionNamespace(String ServiceWebsocketTransportFunctionNamespace)
ServiceWebsocketTransportFunctionNamespace
- SCF WebSocket transfer function namespace, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`.public String getServiceWebsocketTransportFunctionQualifier()
public void setServiceWebsocketTransportFunctionQualifier(String ServiceWebsocketTransportFunctionQualifier)
ServiceWebsocketTransportFunctionQualifier
- SCF WebSocket transfer function version, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`.public String getServiceWebsocketCleanupFunctionNamespace()
public void setServiceWebsocketCleanupFunctionNamespace(String ServiceWebsocketCleanupFunctionNamespace)
ServiceWebsocketCleanupFunctionNamespace
- SCF WebSocket cleanup function namespace, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`.public String getServiceWebsocketCleanupFunctionQualifier()
public void setServiceWebsocketCleanupFunctionQualifier(String ServiceWebsocketCleanupFunctionQualifier)
ServiceWebsocketCleanupFunctionQualifier
- SCF WebSocket cleanup function version, which takes effect if the frontend type is `WEBSOCKET` and the backend type is `SCF`.public Boolean getServiceScfIsIntegratedResponse()
public void setServiceScfIsIntegratedResponse(Boolean ServiceScfIsIntegratedResponse)
ServiceScfIsIntegratedResponse
- Whether to enable response integration, which takes effect if the backend type is `SCF`.public Boolean getIsDebugAfterCharge()
public void setIsDebugAfterCharge(Boolean IsDebugAfterCharge)
IsDebugAfterCharge
- Billing after debugging starts (reserved field for marketplace).public Boolean getIsDeleteResponseErrorCodes()
public void setIsDeleteResponseErrorCodes(Boolean IsDeleteResponseErrorCodes)
IsDeleteResponseErrorCodes
- Whether to delete the error codes for custom response configuration. If the value is left empty or `False`, the error codes will not be deleted. If the value is `True`, all custom response configuration error codes of the API will be deleted.public String getResponseType()
public void setResponseType(String ResponseType)
ResponseType
- Return type.public String getResponseSuccessExample()
public void setResponseSuccessExample(String ResponseSuccessExample)
ResponseSuccessExample
- Sample response for successful custom response configuration.public String getResponseFailExample()
public void setResponseFailExample(String ResponseFailExample)
ResponseFailExample
- Sample response for failed custom response configuration.public ServiceConfig getServiceConfig()
public void setServiceConfig(ServiceConfig ServiceConfig)
ServiceConfig
- API backend service configuration.public String getAuthRelationApiId()
public void setAuthRelationApiId(String AuthRelationApiId)
AuthRelationApiId
- Unique ID of associated authorization API, which takes effect only if `AuthType` is `OAUTH` and `ApiBusinessType` is `NORMAL`. It is the unique ID of the OAuth 2.0 authorization API bound to the business API.public ServiceParameter[] getServiceParameters()
public void setServiceParameters(ServiceParameter[] ServiceParameters)
ServiceParameters
- API backend service parameter.public OauthConfig getOauthConfig()
public void setOauthConfig(OauthConfig OauthConfig)
OauthConfig
- OAuth configuration, which takes effect if `AuthType` is `OAUTH`.public ResponseErrorCodeReq[] getResponseErrorCodes()
public void setResponseErrorCodes(ResponseErrorCodeReq[] ResponseErrorCodes)
ResponseErrorCodes
- Custom error code configuration.public String getTargetNamespaceId()
public void setTargetNamespaceId(String TargetNamespaceId)
TargetNamespaceId
- TSF Serverless namespace ID (in beta test).public String getUserType()
public void setUserType(String UserType)
UserType
- User type.Copyright © 2020. All rights reserved.