@Test public void getVnicAttachmentDetailsTest() { String path = vnicPath(VNIC_ATTACHMENT_ID); assertEquals(EXPECTED_GET_VNIC_ATTACHMENT_DERTAILS_PATH, path); }
@NotNull public static Map<String, String> getVnicAttachmentDetails(@NotNull final OCIVnicAttachmentInputs ociVnicAttachmentInputs) throws Exception { final HttpClientInputs httpClientInputs = new HttpClientInputs(); httpClientInputs.setUrl(vnicUrl(ociVnicAttachmentInputs.getCommonInputs().getRegion(), ociVnicAttachmentInputs.getVnicAttachmentId())); httpClientInputs.setAuthType(ANONYMOUS); httpClientInputs.setMethod(GET); URI uri = URI.create(httpClientInputs.getUrl()); Map<String, String> headers = getRequestSigner(ociVnicAttachmentInputs.getCommonInputs()).signRequest(uri, GET, EMPTY); httpClientInputs.setHeaders(HttpUtils.getAuthHeaders(headers)); HttpCommons.setCommonHttpInputs(httpClientInputs, ociVnicAttachmentInputs.getCommonInputs()); return new HttpClientService().execute(httpClientInputs); }
VnicImpl { @NotNull public static Map<String, String> getVnicAttachmentDetails(@NotNull final OCIVnicAttachmentInputs ociVnicAttachmentInputs) throws Exception { final HttpClientInputs httpClientInputs = new HttpClientInputs(); httpClientInputs.setUrl(vnicUrl(ociVnicAttachmentInputs.getCommonInputs().getRegion(), ociVnicAttachmentInputs.getVnicAttachmentId())); httpClientInputs.setAuthType(ANONYMOUS); httpClientInputs.setMethod(GET); URI uri = URI.create(httpClientInputs.getUrl()); Map<String, String> headers = getRequestSigner(ociVnicAttachmentInputs.getCommonInputs()).signRequest(uri, GET, EMPTY); httpClientInputs.setHeaders(HttpUtils.getAuthHeaders(headers)); HttpCommons.setCommonHttpInputs(httpClientInputs, ociVnicAttachmentInputs.getCommonInputs()); return new HttpClientService().execute(httpClientInputs); } }
VnicImpl { @NotNull public static Map<String, String> getVnicAttachmentDetails(@NotNull final OCIVnicAttachmentInputs ociVnicAttachmentInputs) throws Exception { final HttpClientInputs httpClientInputs = new HttpClientInputs(); httpClientInputs.setUrl(vnicUrl(ociVnicAttachmentInputs.getCommonInputs().getRegion(), ociVnicAttachmentInputs.getVnicAttachmentId())); httpClientInputs.setAuthType(ANONYMOUS); httpClientInputs.setMethod(GET); URI uri = URI.create(httpClientInputs.getUrl()); Map<String, String> headers = getRequestSigner(ociVnicAttachmentInputs.getCommonInputs()).signRequest(uri, GET, EMPTY); httpClientInputs.setHeaders(HttpUtils.getAuthHeaders(headers)); HttpCommons.setCommonHttpInputs(httpClientInputs, ociVnicAttachmentInputs.getCommonInputs()); return new HttpClientService().execute(httpClientInputs); }  }
VnicImpl { @NotNull public static Map<String, String> getVnicAttachmentDetails(@NotNull final OCIVnicAttachmentInputs ociVnicAttachmentInputs) throws Exception { final HttpClientInputs httpClientInputs = new HttpClientInputs(); httpClientInputs.setUrl(vnicUrl(ociVnicAttachmentInputs.getCommonInputs().getRegion(), ociVnicAttachmentInputs.getVnicAttachmentId())); httpClientInputs.setAuthType(ANONYMOUS); httpClientInputs.setMethod(GET); URI uri = URI.create(httpClientInputs.getUrl()); Map<String, String> headers = getRequestSigner(ociVnicAttachmentInputs.getCommonInputs()).signRequest(uri, GET, EMPTY); httpClientInputs.setHeaders(HttpUtils.getAuthHeaders(headers)); HttpCommons.setCommonHttpInputs(httpClientInputs, ociVnicAttachmentInputs.getCommonInputs()); 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> getVnicAttachmentDetails(@NotNull final OCIVnicAttachmentInputs ociVnicAttachmentInputs) throws Exception { final HttpClientInputs httpClientInputs = new HttpClientInputs(); httpClientInputs.setUrl(vnicUrl(ociVnicAttachmentInputs.getCommonInputs().getRegion(), ociVnicAttachmentInputs.getVnicAttachmentId())); httpClientInputs.setAuthType(ANONYMOUS); httpClientInputs.setMethod(GET); URI uri = URI.create(httpClientInputs.getUrl()); Map<String, String> headers = getRequestSigner(ociVnicAttachmentInputs.getCommonInputs()).signRequest(uri, GET, EMPTY); httpClientInputs.setHeaders(HttpUtils.getAuthHeaders(headers)); HttpCommons.setCommonHttpInputs(httpClientInputs, ociVnicAttachmentInputs.getCommonInputs()); 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);  }