public static GetImageListOptions publicWebServers() { return new GetImageListOptions().setState(ServerImageState.AVAILABLE).setType( ServerImageType.WEB_APPLICATION_SERVER).onlyPublic(); }
public static GetImageListOptions publicDatabaseServers() { return new GetImageListOptions().setState(ServerImageState.AVAILABLE).setType(ServerImageType.DATABASE_SERVER) .onlyPublic(); } }
public static GetImageListOptions publicDatabaseServers() { return new GetImageListOptions().setState(ServerImageState.AVAILABLE).setType(ServerImageType.DATABASE_SERVER) .onlyPublic(); } }
public static GetImageListOptions publicDatabaseServers() { return new GetImageListOptions().setState(ServerImageState.AVAILABLE).setType(ServerImageType.DATABASE_SERVER) .onlyPublic(); } }
public static GetImageListOptions publicWebServers() { return new GetImageListOptions().setState(ServerImageState.AVAILABLE).setType( ServerImageType.WEB_APPLICATION_SERVER).onlyPublic(); }
public static GetImageListOptions publicDatabaseServers() { return new GetImageListOptions().setState(ServerImageState.AVAILABLE).setType(ServerImageType.DATABASE_SERVER) .onlyPublic(); } }
public static GetImageListOptions publicDatabaseServers() { return new GetImageListOptions().setState(ServerImageState.AVAILABLE).setType(ServerImageType.DATABASE_SERVER) .onlyPublic(); } }
public static GetImageListOptions publicWebServers() { return new GetImageListOptions().setState(ServerImageState.AVAILABLE).setType( ServerImageType.WEB_APPLICATION_SERVER).onlyPublic(); }
public static GetImageListOptions publicWebServers() { return new GetImageListOptions().setState(ServerImageState.AVAILABLE).setType( ServerImageType.WEB_APPLICATION_SERVER).onlyPublic(); }
public static GetImageListOptions publicWebServers() { return new GetImageListOptions().setState(ServerImageState.AVAILABLE).setType( ServerImageType.WEB_APPLICATION_SERVER).onlyPublic(); }
@Test public void testGetImageListWithOptions() throws NoSuchMethodException, IOException { Invokable<?, ?> method = method(GridImageAsyncClient.class, "getImageList", GetImageListOptions[].class); GeneratedHttpRequest httpRequest = processor.createRequest( method, ImmutableList.<Object> of( new GetImageListOptions().onlyPublic().setState(ServerImageState.AVAILABLE) .setType(ServerImageType.WEB_APPLICATION_SERVER))); assertRequestLineEquals(httpRequest, "GET https://api.gogrid.com/api/grid/image/list?v=1.5&" + "isPublic=true&image.state=Available&" + "image.type=Web%20Server HTTP/1.1"); assertNonPayloadHeadersEqual(httpRequest, ""); assertPayloadEquals(httpRequest, null, null, false); assertResponseParserClassEquals(method, httpRequest, ParseImageListFromJsonResponse.class); assertSaxResponseParserClassEquals(method, null); assertFallbackClassEquals(method, null); checkFilters(httpRequest); httpRequest = (GeneratedHttpRequest) Iterables.getOnlyElement(httpRequest.getFilters()).filter(httpRequest); assertRequestLineEquals(httpRequest, "GET https://api.gogrid.com/api/grid/image/list?" + "v=1.5&isPublic=true&image.state=Available&" + "image.type=Web%20Server&" + "sig=e9aafd0a5d4c69bb24536be4bce8a528&api_key=identity " + "HTTP/1.1"); assertNonPayloadHeadersEqual(httpRequest, ""); assertPayloadEquals(httpRequest, null, null, false); }
@Test public void testGetImageListWithOptions() throws NoSuchMethodException, IOException { Invokable<?, ?> method = method(GridImageApi.class, "getImageList", GetImageListOptions[].class); GeneratedHttpRequest httpRequest = processor.createRequest( method, ImmutableList.<Object> of( new GetImageListOptions().onlyPublic().setState(ServerImageState.AVAILABLE) .setType(ServerImageType.WEB_APPLICATION_SERVER))); assertRequestLineEquals(httpRequest, "GET https://api.gogrid.com/api/grid/image/list?v=1.5&" + "isPublic=true&image.state=Available&" + "image.type=Web%20Server HTTP/1.1"); assertNonPayloadHeadersEqual(httpRequest, ""); assertPayloadEquals(httpRequest, null, null, false); assertResponseParserClassEquals(method, httpRequest, ParseImageListFromJsonResponse.class); assertSaxResponseParserClassEquals(method, null); assertFallbackClassEquals(method, null); checkFilters(httpRequest); httpRequest = (GeneratedHttpRequest) Iterables.getOnlyElement(httpRequest.getFilters()).filter(httpRequest); assertRequestLineEquals(httpRequest, "GET https://api.gogrid.com/api/grid/image/list?" + "v=1.5&isPublic=true&image.state=Available&" + "image.type=Web%20Server&" + "sig=e9aafd0a5d4c69bb24536be4bce8a528&api_key=identity " + "HTTP/1.1"); assertNonPayloadHeadersEqual(httpRequest, ""); assertPayloadEquals(httpRequest, null, null, false); }