public GetIpListOptions limitToType(IpType type) { return new GetIpListOptions().onlyWithType(type); }
public GetIpListOptions limitToType(IpType type) { return new GetIpListOptions().onlyWithType(type); }
public GetIpListOptions limitToType(IpType type) { return new GetIpListOptions().onlyWithType(type); }
public GetIpListOptions limitToType(IpType type) { return new GetIpListOptions().onlyWithType(type); }
public GetIpListOptions limitToType(IpType type) { return new GetIpListOptions().onlyWithType(type); }
public GetIpListOptions unassignedPublicIps() { return new GetIpListOptions().onlyWithType(IpType.PUBLIC).onlyUnassigned(); } }
public GetIpListOptions unassignedPublicIps() { return new GetIpListOptions().onlyWithType(IpType.PUBLIC).onlyUnassigned(); } }
public GetIpListOptions unassignedPublicIps() { return new GetIpListOptions().onlyWithType(IpType.PUBLIC).onlyUnassigned(); } }
public GetIpListOptions unassignedPublicIps() { return new GetIpListOptions().onlyWithType(IpType.PUBLIC).onlyUnassigned(); } }
public GetIpListOptions unassignedPublicIps() { return new GetIpListOptions().onlyWithType(IpType.PUBLIC).onlyUnassigned(); } }
int numOfRetries = 20; GetIpListOptions unassignedIps = new GetIpListOptions().onlyUnassigned().inDatacenter( template.getLocation().getId()).onlyWithType(IpType.PUBLIC);
int numOfRetries = 20; GetIpListOptions unassignedIps = new GetIpListOptions().onlyUnassigned().inDatacenter( template.getLocation().getId()).onlyWithType(IpType.PUBLIC);
int numOfRetries = 20; GetIpListOptions unassignedIps = new GetIpListOptions().onlyUnassigned().inDatacenter( template.getLocation().getId()).onlyWithType(IpType.PUBLIC);
int numOfRetries = 20; GetIpListOptions unassignedIps = new GetIpListOptions().onlyUnassigned().inDatacenter( template.getLocation().getId()).onlyWithType(IpType.PUBLIC);
int numOfRetries = 20; GetIpListOptions unassignedIps = new GetIpListOptions().onlyUnassigned().inDatacenter( template.getLocation().getId()).onlyWithType(IpType.PUBLIC);
@Test public void testGetIpListWithOptions() throws NoSuchMethodException, IOException { Invokable<?, ?> method = method(GridIpAsyncClient.class, "getIpList", GetIpListOptions[].class); GeneratedHttpRequest httpRequest = processor.createRequest(method, ImmutableList.<Object> of(new GetIpListOptions() .onlyUnassigned().onlyWithType(IpType.PUBLIC))); assertRequestLineEquals(httpRequest, "GET https://api.gogrid.com/api/grid/ip/list?v=1.5&ip.state=Unassigned&" + "ip.type=Public HTTP/1.1"); assertNonPayloadHeadersEqual(httpRequest, ""); assertPayloadEquals(httpRequest, null, null, false); assertResponseParserClassEquals(method, httpRequest, ParseIpListFromJsonResponse.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/ip/list?v=1.5&ip.state=Unassigned&" + "ip.type=Public&sig=e9aafd0a5d4c69bb24536be4bce8a528&api_key=identity " + "HTTP/1.1"); assertNonPayloadHeadersEqual(httpRequest, ""); assertPayloadEquals(httpRequest, null, null, false); }
@Test public void testGetIpListWithOptions() throws NoSuchMethodException, IOException { Invokable<?, ?> method = method(GridIpApi.class, "getIpList", GetIpListOptions[].class); GeneratedHttpRequest httpRequest = processor.createRequest(method, ImmutableList.<Object> of(new GetIpListOptions() .onlyUnassigned().onlyWithType(IpType.PUBLIC))); assertRequestLineEquals(httpRequest, "GET https://api.gogrid.com/api/grid/ip/list?v=1.5&ip.state=Unassigned&" + "ip.type=Public HTTP/1.1"); assertNonPayloadHeadersEqual(httpRequest, ""); assertPayloadEquals(httpRequest, null, null, false); assertResponseParserClassEquals(method, httpRequest, ParseIpListFromJsonResponse.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/ip/list?v=1.5&ip.state=Unassigned&" + "ip.type=Public&sig=e9aafd0a5d4c69bb24536be4bce8a528&api_key=identity " + "HTTP/1.1"); assertNonPayloadHeadersEqual(httpRequest, ""); assertPayloadEquals(httpRequest, null, null, false); }