/** * @see CreateNetworkOptions#domainId */ public static CreateNetworkOptions domainId(String domainId) { CreateNetworkOptions options = new CreateNetworkOptions(); return options.domainId(domainId); } }
/** * @see CreateNetworkOptions#domainId */ public static CreateNetworkOptions domainId(String domainId) { CreateNetworkOptions options = new CreateNetworkOptions(); return options.domainId(domainId); }
/** * @see CreateNetworkOptions#domainId */ public static CreateNetworkOptions domainId(String domainId) { CreateNetworkOptions options = new CreateNetworkOptions(); return options.domainId(domainId); } }
public void testCreateNetworkInZoneOptions() throws SecurityException, NoSuchMethodException, IOException { Invokable<?, ?> method = method(NetworkAsyncClient.class, "createNetworkInZone", String.class, String.class, String.class, String.class, CreateNetworkOptions[].class); GeneratedHttpRequest httpRequest = processor.createRequest(method, ImmutableList.<Object> of(1, 2, "named", "lovely", CreateNetworkOptions.Builder .netmask("255.255.255.0").domainId("6"))); assertRequestLineEquals(httpRequest, createNetworkOptions.getRequestLine()); assertNonPayloadHeadersEqual(httpRequest, "Accept: application/json\n"); assertPayloadEquals(httpRequest, null, null, false); assertResponseParserClassEquals(method, httpRequest, ParseFirstJsonValueNamed.class); assertSaxResponseParserClassEquals(method, null); assertFallbackClassEquals(method, MapHttp4xxCodesToExceptions.class); checkFilters(httpRequest); }
public void testCreateNetworkInZoneOptions() throws SecurityException, NoSuchMethodException, IOException { Invokable<?, ?> method = method(NetworkApi.class, "createNetworkInZone", String.class, String.class, String.class, String.class, CreateNetworkOptions[].class); GeneratedHttpRequest httpRequest = processor.createRequest(method, ImmutableList.<Object> of(1, 2, "named", "lovely", CreateNetworkOptions.Builder .netmask("255.255.255.0").domainId("6"))); assertRequestLineEquals(httpRequest, createNetworkOptions.getRequestLine()); assertNonPayloadHeadersEqual(httpRequest, "Accept: application/json\n"); assertPayloadEquals(httpRequest, null, null, false); assertResponseParserClassEquals(method, httpRequest, ParseFirstJsonValueNamed.class); assertSaxResponseParserClassEquals(method, null); assertFallbackClassEquals(method, MapHttp4xxCodesToExceptions.class); checkFilters(httpRequest); }