@Test public void attachVolumeTest() { String path = attachVolumePath(); assertEquals(EXPECTED_ATTACH_VOLUME_PATH, path); }
@NotNull public static Map<String, String> attachVolume(@NotNull final OCIAttachVolumeInputs ociAttachVolumeInputs) throws Exception { final HttpClientInputs httpClientInputs = new HttpClientInputs(); httpClientInputs.setUrl(attachVolumeUrl(ociAttachVolumeInputs.getCommonInputs().getRegion())); httpClientInputs.setAuthType(ANONYMOUS); httpClientInputs.setMethod(POST); httpClientInputs.setBody(attachVolumeRequestBody(ociAttachVolumeInputs)); URI uri = URI.create(httpClientInputs.getUrl()); Map<String, String> headers = getRequestSigner(ociAttachVolumeInputs.getCommonInputs()).signRequest(uri, POST, httpClientInputs.getBody()); httpClientInputs.setHeaders(HttpUtils.getAuthHeaders(headers)); HttpCommons.setCommonHttpInputs(httpClientInputs, ociAttachVolumeInputs.getCommonInputs()); return new HttpClientService().execute(httpClientInputs); }
VolumeImpl { @NotNull public static Map<String, String> attachVolume(@NotNull final OCIAttachVolumeInputs ociAttachVolumeInputs) throws Exception { final HttpClientInputs httpClientInputs = new HttpClientInputs(); httpClientInputs.setUrl(attachVolumeUrl(ociAttachVolumeInputs.getCommonInputs().getRegion())); httpClientInputs.setAuthType(ANONYMOUS); httpClientInputs.setMethod(POST); httpClientInputs.setBody(attachVolumeRequestBody(ociAttachVolumeInputs)); URI uri = URI.create(httpClientInputs.getUrl()); Map<String, String> headers = getRequestSigner(ociAttachVolumeInputs.getCommonInputs()).signRequest(uri, POST, httpClientInputs.getBody()); httpClientInputs.setHeaders(HttpUtils.getAuthHeaders(headers)); HttpCommons.setCommonHttpInputs(httpClientInputs, ociAttachVolumeInputs.getCommonInputs()); return new HttpClientService().execute(httpClientInputs); } }
VolumeImpl { @NotNull public static Map<String, String> attachVolume(@NotNull final OCIAttachVolumeInputs ociAttachVolumeInputs) throws Exception { final HttpClientInputs httpClientInputs = new HttpClientInputs(); httpClientInputs.setUrl(attachVolumeUrl(ociAttachVolumeInputs.getCommonInputs().getRegion())); httpClientInputs.setAuthType(ANONYMOUS); httpClientInputs.setMethod(POST); httpClientInputs.setBody(attachVolumeRequestBody(ociAttachVolumeInputs)); URI uri = URI.create(httpClientInputs.getUrl()); Map<String, String> headers = getRequestSigner(ociAttachVolumeInputs.getCommonInputs()).signRequest(uri, POST, httpClientInputs.getBody()); httpClientInputs.setHeaders(HttpUtils.getAuthHeaders(headers)); HttpCommons.setCommonHttpInputs(httpClientInputs, ociAttachVolumeInputs.getCommonInputs()); return new HttpClientService().execute(httpClientInputs); }  }
VolumeImpl { @NotNull public static Map<String, String> attachVolume(@NotNull final OCIAttachVolumeInputs ociAttachVolumeInputs) throws Exception { final HttpClientInputs httpClientInputs = new HttpClientInputs(); httpClientInputs.setUrl(attachVolumeUrl(ociAttachVolumeInputs.getCommonInputs().getRegion())); httpClientInputs.setAuthType(ANONYMOUS); httpClientInputs.setMethod(POST); httpClientInputs.setBody(attachVolumeRequestBody(ociAttachVolumeInputs)); URI uri = URI.create(httpClientInputs.getUrl()); Map<String, String> headers = getRequestSigner(ociAttachVolumeInputs.getCommonInputs()).signRequest(uri, POST, httpClientInputs.getBody()); httpClientInputs.setHeaders(HttpUtils.getAuthHeaders(headers)); HttpCommons.setCommonHttpInputs(httpClientInputs, ociAttachVolumeInputs.getCommonInputs()); return new HttpClientService().execute(httpClientInputs); }  @NotNull static Map<String, String> attachVolume(@NotNull final OCIAttachVolumeInputs ociAttachVolumeInputs); @NotNull static Map<String, String> getVolumeAttachmentDetails(@NotNull final OCIVolumeInputs ociVolumeInputs); @NotNull static Map<String, String> detachVolume(@NotNull final OCIVolumeInputs ociVolumeInputs); @NotNull static String attachVolumeUrl(@NotNull final String region); @NotNull static String getVolumeAttachmentDetailsUrl(@NotNull final String region, @NotNull final String
            volumeAttachmentId); @NotNull static String detachVolumeUrl(@NotNull final String region, @NotNull final String volumeAttachmentId); @NotNull static String attachVolumePath(); @NotNull static String getVolumeAttachmentDetailsPath(@NotNull final String volumeAttachmentId); @NotNull static String detachVolumePath(@NotNull final String volumeAttachmentId); static String attachVolumeRequestBody(@NotNull final OCIAttachVolumeInputs ociAttachVolumeInputs); }
VolumeImpl { @NotNull public static Map<String, String> attachVolume(@NotNull final OCIAttachVolumeInputs ociAttachVolumeInputs) throws Exception { final HttpClientInputs httpClientInputs = new HttpClientInputs(); httpClientInputs.setUrl(attachVolumeUrl(ociAttachVolumeInputs.getCommonInputs().getRegion())); httpClientInputs.setAuthType(ANONYMOUS); httpClientInputs.setMethod(POST); httpClientInputs.setBody(attachVolumeRequestBody(ociAttachVolumeInputs)); URI uri = URI.create(httpClientInputs.getUrl()); Map<String, String> headers = getRequestSigner(ociAttachVolumeInputs.getCommonInputs()).signRequest(uri, POST, httpClientInputs.getBody()); httpClientInputs.setHeaders(HttpUtils.getAuthHeaders(headers)); HttpCommons.setCommonHttpInputs(httpClientInputs, ociAttachVolumeInputs.getCommonInputs()); return new HttpClientService().execute(httpClientInputs); }  @NotNull static Map<String, String> attachVolume(@NotNull final OCIAttachVolumeInputs ociAttachVolumeInputs); @NotNull static Map<String, String> getVolumeAttachmentDetails(@NotNull final OCIVolumeInputs ociVolumeInputs); @NotNull static Map<String, String> detachVolume(@NotNull final OCIVolumeInputs ociVolumeInputs); @NotNull static String attachVolumeUrl(@NotNull final String region); @NotNull static String getVolumeAttachmentDetailsUrl(@NotNull final String region, @NotNull final String
            volumeAttachmentId); @NotNull static String detachVolumeUrl(@NotNull final String region, @NotNull final String volumeAttachmentId); @NotNull static String attachVolumePath(); @NotNull static String getVolumeAttachmentDetailsPath(@NotNull final String volumeAttachmentId); @NotNull static String detachVolumePath(@NotNull final String volumeAttachmentId); static String attachVolumeRequestBody(@NotNull final OCIAttachVolumeInputs ociAttachVolumeInputs);  }