Search in sources :

Example 1 with OperationQueryParam

use of com.spectralogic.ds3autogen.python.model.request.queryparam.OperationQueryParam in project ds3_autogen by SpectraLogic.

the class BaseRequestGenerator method toQueryParamList.

/**
     * Creates the list of non-optional query params assigned in the constructor
     */
public static ImmutableList<QueryParam> toQueryParamList(final Operation operation, final ImmutableList<Ds3Param> requiredParams) {
    final ImmutableList.Builder<QueryParam> builder = ImmutableList.builder();
    if (operation != null) {
        builder.add(new OperationQueryParam(operation.toString().toLowerCase()));
    }
    builder.addAll(toRequiredQueryParamList(requiredParams));
    return builder.build();
}
Also used : OperationQueryParam(com.spectralogic.ds3autogen.python.model.request.queryparam.OperationQueryParam) BaseQueryParam(com.spectralogic.ds3autogen.python.model.request.queryparam.BaseQueryParam) VoidQueryParam(com.spectralogic.ds3autogen.python.model.request.queryparam.VoidQueryParam) OperationQueryParam(com.spectralogic.ds3autogen.python.model.request.queryparam.OperationQueryParam) QueryParam(com.spectralogic.ds3autogen.python.model.request.queryparam.QueryParam) ImmutableList(com.google.common.collect.ImmutableList)

Aggregations

ImmutableList (com.google.common.collect.ImmutableList)1 BaseQueryParam (com.spectralogic.ds3autogen.python.model.request.queryparam.BaseQueryParam)1 OperationQueryParam (com.spectralogic.ds3autogen.python.model.request.queryparam.OperationQueryParam)1 QueryParam (com.spectralogic.ds3autogen.python.model.request.queryparam.QueryParam)1 VoidQueryParam (com.spectralogic.ds3autogen.python.model.request.queryparam.VoidQueryParam)1