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();
}
Aggregations