@Test public void getVnicDetailsTest() { String path = getVnicDetailsPath(VNIC_ATTACHMENT_ID); assertEquals(EXPECTED_GET_VNIC_DETAILS_PATH, path); }
@NotNull public static Map<String, String> getVnicDetails(@NotNull final OCICommonInputs ociCommonInputs) throws Exception { final HttpClientInputs httpClientInputs = new HttpClientInputs(); httpClientInputs.setUrl(getVnicDetailsUrl(ociCommonInputs.getRegion(), ociCommonInputs.getVnicId())); httpClientInputs.setAuthType(ANONYMOUS); httpClientInputs.setMethod(GET); URI uri = URI.create(httpClientInputs.getUrl()); Map<String, String> headers = getRequestSigner(ociCommonInputs).signRequest(uri, GET, EMPTY); httpClientInputs.setHeaders(HttpUtils.getAuthHeaders(headers)); HttpCommons.setCommonHttpInputs(httpClientInputs, ociCommonInputs); return new HttpClientService().execute(httpClientInputs); }
VnicImpl { @NotNull public static Map<String, String> getVnicDetails(@NotNull final OCICommonInputs ociCommonInputs) throws Exception { final HttpClientInputs httpClientInputs = new HttpClientInputs(); httpClientInputs.setUrl(getVnicDetailsUrl(ociCommonInputs.getRegion(), ociCommonInputs.getVnicId())); httpClientInputs.setAuthType(ANONYMOUS); httpClientInputs.setMethod(GET); URI uri = URI.create(httpClientInputs.getUrl()); Map<String, String> headers = getRequestSigner(ociCommonInputs).signRequest(uri, GET, EMPTY); httpClientInputs.setHeaders(HttpUtils.getAuthHeaders(headers)); HttpCommons.setCommonHttpInputs(httpClientInputs, ociCommonInputs); return new HttpClientService().execute(httpClientInputs); } }
VnicImpl { @NotNull public static Map<String, String> getVnicDetails(@NotNull final OCICommonInputs ociCommonInputs) throws Exception { final HttpClientInputs httpClientInputs = new HttpClientInputs(); httpClientInputs.setUrl(getVnicDetailsUrl(ociCommonInputs.getRegion(), ociCommonInputs.getVnicId())); httpClientInputs.setAuthType(ANONYMOUS); httpClientInputs.setMethod(GET); URI uri = URI.create(httpClientInputs.getUrl()); Map<String, String> headers = getRequestSigner(ociCommonInputs).signRequest(uri, GET, EMPTY); httpClientInputs.setHeaders(HttpUtils.getAuthHeaders(headers)); HttpCommons.setCommonHttpInputs(httpClientInputs, ociCommonInputs); return new HttpClientService().execute(httpClientInputs); }  }
VnicImpl { @NotNull public static Map<String, String> getVnicDetails(@NotNull final OCICommonInputs ociCommonInputs) throws Exception { final HttpClientInputs httpClientInputs = new HttpClientInputs(); httpClientInputs.setUrl(getVnicDetailsUrl(ociCommonInputs.getRegion(), ociCommonInputs.getVnicId())); httpClientInputs.setAuthType(ANONYMOUS); httpClientInputs.setMethod(GET); URI uri = URI.create(httpClientInputs.getUrl()); Map<String, String> headers = getRequestSigner(ociCommonInputs).signRequest(uri, GET, EMPTY); httpClientInputs.setHeaders(HttpUtils.getAuthHeaders(headers)); HttpCommons.setCommonHttpInputs(httpClientInputs, ociCommonInputs); return new HttpClientService().execute(httpClientInputs); }  @NotNull static Map<String, String> listVnicAttachments(@NotNull final OCICommonInputs ociCommonInputs); @NotNull static Map<String, String> getVnicDetails(@NotNull final OCICommonInputs ociCommonInputs); @NotNull static Map<String, String> getVnicAttachmentDetails(@NotNull final OCIVnicAttachmentInputs ociVnicAttachmentInputs); @NotNull static Map<String, String> attachVnic(@NotNull final OCIAttachVnicInputs ociAttachVnicInputs); @NotNull static Map<String, String> detachVnic(@NotNull final OCIVnicAttachmentInputs ociDetachVnicAttachmentInputs); @NotNull static String getVnicDetailsUrl(@NotNull final String region, @NotNull final String vnicId); @NotNull static String getVnicDetailsPath(@NotNull final String vnicId); @NotNull static String listVnicAttachmentsUrl(@NotNull final String region); @NotNull static String listVnicAttachmentsPath(); @NotNull static String vnicUrl(@NotNull final String region, @NotNull final String vnicOCID); @NotNull static String vnicPath(@NotNull final String vnicOCID); }
VnicImpl { @NotNull public static Map<String, String> getVnicDetails(@NotNull final OCICommonInputs ociCommonInputs) throws Exception { final HttpClientInputs httpClientInputs = new HttpClientInputs(); httpClientInputs.setUrl(getVnicDetailsUrl(ociCommonInputs.getRegion(), ociCommonInputs.getVnicId())); httpClientInputs.setAuthType(ANONYMOUS); httpClientInputs.setMethod(GET); URI uri = URI.create(httpClientInputs.getUrl()); Map<String, String> headers = getRequestSigner(ociCommonInputs).signRequest(uri, GET, EMPTY); httpClientInputs.setHeaders(HttpUtils.getAuthHeaders(headers)); HttpCommons.setCommonHttpInputs(httpClientInputs, ociCommonInputs); return new HttpClientService().execute(httpClientInputs); }  @NotNull static Map<String, String> listVnicAttachments(@NotNull final OCICommonInputs ociCommonInputs); @NotNull static Map<String, String> getVnicDetails(@NotNull final OCICommonInputs ociCommonInputs); @NotNull static Map<String, String> getVnicAttachmentDetails(@NotNull final OCIVnicAttachmentInputs ociVnicAttachmentInputs); @NotNull static Map<String, String> attachVnic(@NotNull final OCIAttachVnicInputs ociAttachVnicInputs); @NotNull static Map<String, String> detachVnic(@NotNull final OCIVnicAttachmentInputs ociDetachVnicAttachmentInputs); @NotNull static String getVnicDetailsUrl(@NotNull final String region, @NotNull final String vnicId); @NotNull static String getVnicDetailsPath(@NotNull final String vnicId); @NotNull static String listVnicAttachmentsUrl(@NotNull final String region); @NotNull static String listVnicAttachmentsPath(); @NotNull static String vnicUrl(@NotNull final String region, @NotNull final String vnicOCID); @NotNull static String vnicPath(@NotNull final String vnicOCID);  }