Class FilesClientImpl

java.lang.Object
com.eqixiac.equinix.core.client.ClientBase
com.eqixiac.equinix.networkedge.client.internal.implementation.FilesClientImpl
All Implemented Interfaces:
FilesClient

public class FilesClientImpl extends ClientBase implements FilesClient
Author:
ianjones
  • Constructor Details

  • Method Details

    • uploadFile

      public String uploadFile(MetroCode metroCode, String deviceTypeCode, FileProcessType processType, DeviceManagementType deviceManagementType, LicenseType licenseType, String fileContents)
      Uploads a license / cloud-init file via a multipart/form-data request, as the spec's FileUploadRequest for POST /ne/v1/files requires (file is declared type: string, format: binary).

      The scalar fields are sent as plain form parts and the file contents as a binary file part. The multipart body is assembled by hand (httpmime / MultipartEntityBuilder is not a dependency) and attached as a raw-bytes RequestBody.

      Specified by:
      uploadFile in interface FilesClient