public class BallerinaOperation extends Object implements BallerinaOpenAPIObject<BallerinaOperation,io.swagger.v3.oas.models.Operation>
Operation from swagger models to provide iterable child models.| Modifier and Type | Field and Description |
|---|---|
static String |
AUTH_TYPE_NONE |
static String |
X_AUTH_TYPE |
static String |
X_SCOPE |
static String |
X_THROTTLING_TIER |
| Constructor and Description |
|---|
BallerinaOperation() |
| Modifier and Type | Method and Description |
|---|---|
BallerinaOperation |
buildContext(io.swagger.v3.oas.models.Operation operation)
Build the Ballerina context model
C for Open APIDetailedDTO definition/component in D. |
BallerinaOperation |
buildContext(io.swagger.v3.oas.models.Operation operation,
ExtendedAPI api)
Build the Ballerina context model
C for Open APIDetailedDTO definition/component in D. |
BallerinaOperation |
buildContextForNotAllowed(ExtendedAPI api)
This method is used to generate a dummy service for 405 responses.
|
BallerinaOperation |
buildContextForNotFound(ExtendedAPI api)
This method is used to generate a dummy service for 404 responses.
|
List<String> |
getAllMethods() |
BallerinaOperation |
getDefaultValue()
Retrieve the default value for this type.
|
String |
getDescription() |
MgwEndpointConfigDTO |
getEpConfigDTO() |
io.swagger.v3.oas.models.ExternalDocumentation |
getExternalDocs() |
String |
getOperationId() |
List<BallerinaParameter> |
getParameters() |
List<BallerinaParameter> |
getPathParameters() |
BallerinaInterceptor |
getReqInterceptorContext() |
String |
getRequestInterceptor() |
BallerinaInterceptor |
getResInterceptorContext() |
String |
getResourceTier() |
String |
getResponseInterceptor() |
String |
getScope() |
String |
getSummary() |
List<String> |
getTags() |
boolean |
isMethodNotAllowedOperation() |
boolean |
isMethodNotFoundOperation() |
boolean |
isSecured() |
void |
setExternalDocs(io.swagger.v3.oas.models.ExternalDocumentation externalDocs) |
void |
setMethodNotAllowedOperation(boolean methodNotAllowedOperation) |
void |
setMethodNotFoundOperation(boolean methodNotFoundOperation) |
void |
setOperationId(String operationId) |
void |
setReqInterceptorContext(BallerinaInterceptor reqInterceptorContext) |
void |
setRequestInterceptor(String requestInterceptor) |
void |
setResInterceptorContext(BallerinaInterceptor resInterceptorContext) |
void |
setResourceTier(String resourceTier) |
void |
setResponseInterceptor(String responseInterceptor) |
void |
setScope(String scope) |
void |
setSecured(boolean secured) |
public static final String X_THROTTLING_TIER
public static final String X_SCOPE
public static final String X_AUTH_TYPE
public static final String AUTH_TYPE_NONE
public BallerinaOperation buildContext(io.swagger.v3.oas.models.Operation operation, ExtendedAPI api) throws BallerinaServiceGenException, CLICompileTimeException, CLIRuntimeException
BallerinaOpenAPIObjectC for Open APIDetailedDTO definition/component in D.
OpenAPI definition openApi can be used to access the parent context
helpful for building the current context
buildContext in interface BallerinaOpenAPIObject<BallerinaOperation,io.swagger.v3.oas.models.Operation>operation - Swagger Api definition or componentapi - openApi object modelC of Open Api definition/component DBallerinaServiceGenException - on error when parsing the Open Api definitionCLICompileTimeExceptionCLIRuntimeExceptionpublic BallerinaOperation buildContext(io.swagger.v3.oas.models.Operation operation) throws BallerinaServiceGenException, CLICompileTimeException
BallerinaOpenAPIObjectC for Open APIDetailedDTO definition/component in D.buildContext in interface BallerinaOpenAPIObject<BallerinaOperation,io.swagger.v3.oas.models.Operation>operation - Open Api definition or componentC of Open Api definition/component DBallerinaServiceGenException - on error when parsing the Open Api definitionCLICompileTimeExceptionpublic BallerinaOperation buildContextForNotAllowed(ExtendedAPI api) throws BallerinaServiceGenException, CLICompileTimeException
api - API from the definitionBallerinaServiceGenExceptionCLICompileTimeExceptionpublic BallerinaOperation buildContextForNotFound(ExtendedAPI api) throws BallerinaServiceGenException, CLICompileTimeException
api - API from the definitionBallerinaServiceGenExceptionCLICompileTimeExceptionpublic BallerinaOperation getDefaultValue()
BallerinaOpenAPIObjectgetDefaultValue in interface BallerinaOpenAPIObject<BallerinaOperation,io.swagger.v3.oas.models.Operation>public String getSummary()
public String getDescription()
public String getOperationId()
public List<BallerinaParameter> getParameters()
public List<BallerinaParameter> getPathParameters()
public void setOperationId(String operationId)
public io.swagger.v3.oas.models.ExternalDocumentation getExternalDocs()
public void setExternalDocs(io.swagger.v3.oas.models.ExternalDocumentation externalDocs)
public String getResourceTier()
public void setResourceTier(String resourceTier)
public String getScope()
public void setScope(String scope)
public boolean isSecured()
public void setSecured(boolean secured)
public MgwEndpointConfigDTO getEpConfigDTO()
public String getRequestInterceptor()
public void setRequestInterceptor(String requestInterceptor)
public String getResponseInterceptor()
public void setResponseInterceptor(String responseInterceptor)
public BallerinaInterceptor getReqInterceptorContext()
public void setReqInterceptorContext(BallerinaInterceptor reqInterceptorContext)
public BallerinaInterceptor getResInterceptorContext()
public void setResInterceptorContext(BallerinaInterceptor resInterceptorContext)
public boolean isMethodNotAllowedOperation()
public void setMethodNotAllowedOperation(boolean methodNotAllowedOperation)
public boolean isMethodNotFoundOperation()
public void setMethodNotFoundOperation(boolean methodNotFoundOperation)
Copyright © 2023 WSO2. All rights reserved.