use of com.spectralogic.ds3autogen.python.model.request.queryparam.QueryParam in project ds3_autogen by SpectraLogic.
the class BaseRequestGenerator_Test method toQueryParam_VoidParam_Test.
@Test
public void toQueryParam_VoidParam_Test() {
final Arguments arg = new Arguments("void", "VoidArg");
final QueryParam result = toQueryParam(arg);
assertThat(result, instanceOf(VoidQueryParam.class));
assertThat(result.getName(), is("void_arg"));
assertThat(result.getAssignment(), is("None"));
}
use of com.spectralogic.ds3autogen.python.model.request.queryparam.QueryParam 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();
}
use of com.spectralogic.ds3autogen.python.model.request.queryparam.QueryParam in project ds3_autogen by SpectraLogic.
the class BaseRequestGenerator_Test method toQueryParam_Test.
@Test
public void toQueryParam_Test() {
final Arguments arg = new Arguments("int", "IntArg");
final QueryParam result = toQueryParam(arg);
assertThat(result, instanceOf(BaseQueryParam.class));
assertThat(result.getName(), is("int_arg"));
assertThat(result.getAssignment(), is("int_arg"));
}
Aggregations