Skip to content

Latest commit

 

History

History
491 lines (376 loc) · 17.8 KB

FlexibleGpuApi.md

File metadata and controls

491 lines (376 loc) · 17.8 KB

FlexibleGpuApi

All URIs are relative to https://api.eu-west-2.outscale.com/api/v1

Method HTTP request Description
createFlexibleGpu POST /CreateFlexibleGpu
deleteFlexibleGpu POST /DeleteFlexibleGpu
linkFlexibleGpu POST /LinkFlexibleGpu
readFlexibleGpuCatalog POST /ReadFlexibleGpuCatalog
readFlexibleGpus POST /ReadFlexibleGpus
unlinkFlexibleGpu POST /UnlinkFlexibleGpu
updateFlexibleGpu POST /UpdateFlexibleGpu

createFlexibleGpu

CreateFlexibleGpuResponse createFlexibleGpu(createFlexibleGpuRequest)

Example

// Import classes:
import io.github.outscale.osc_sdk_java.client.ApiClient;
import io.github.outscale.osc_sdk_java.client.ApiException;
import io.github.outscale.osc_sdk_java.client.Configuration;
import io.github.outscale.osc_sdk_java.client.auth.*;
import io.github.outscale.osc_sdk_java.client.models.*;
import io.github.outscale.osc_sdk_java.client.api.FlexibleGpuApi;

public class Example {
  public static void main(String[] args) {
    ApiClient defaultClient = Configuration.getDefaultApiClient();
    defaultClient.setBasePath("https://api.eu-west-2.outscale.com/api/v1");
    // Configure AWS Signature V4 authorization
    defaultClient.setAWS4Configuration("YOUR_ACCESS_KEY", "YOUR_SECRET_KEY", "REGION", "SERVICE")
    
    // Configure API key authorization: ApiKeyAuth
    ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
    ApiKeyAuth.setApiKey("YOUR API KEY");
    // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    //ApiKeyAuth.setApiKeyPrefix("Token");

    FlexibleGpuApi apiInstance = new FlexibleGpuApi(defaultClient);
    CreateFlexibleGpuRequest createFlexibleGpuRequest = new CreateFlexibleGpuRequest(); // CreateFlexibleGpuRequest | 
    try {
      CreateFlexibleGpuResponse result = apiInstance.createFlexibleGpu(createFlexibleGpuRequest);
      System.out.println(result);
    } catch (ApiException e) {
      System.err.println("Exception when calling FlexibleGpuApi#createFlexibleGpu");
      System.err.println("Status code: " + e.getCode());
      System.err.println("Reason: " + e.getResponseBody());
      System.err.println("Response headers: " + e.getResponseHeaders());
      e.printStackTrace();
    }
  }
}

Parameters

Name Type Description Notes
createFlexibleGpuRequest CreateFlexibleGpuRequest [optional]

Return type

CreateFlexibleGpuResponse

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 The HTTP 200 response (OK). -

deleteFlexibleGpu

DeleteFlexibleGpuResponse deleteFlexibleGpu(deleteFlexibleGpuRequest)

Example

// Import classes:
import io.github.outscale.osc_sdk_java.client.ApiClient;
import io.github.outscale.osc_sdk_java.client.ApiException;
import io.github.outscale.osc_sdk_java.client.Configuration;
import io.github.outscale.osc_sdk_java.client.auth.*;
import io.github.outscale.osc_sdk_java.client.models.*;
import io.github.outscale.osc_sdk_java.client.api.FlexibleGpuApi;

public class Example {
  public static void main(String[] args) {
    ApiClient defaultClient = Configuration.getDefaultApiClient();
    defaultClient.setBasePath("https://api.eu-west-2.outscale.com/api/v1");
    // Configure AWS Signature V4 authorization
    defaultClient.setAWS4Configuration("YOUR_ACCESS_KEY", "YOUR_SECRET_KEY", "REGION", "SERVICE")
    
    // Configure API key authorization: ApiKeyAuth
    ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
    ApiKeyAuth.setApiKey("YOUR API KEY");
    // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    //ApiKeyAuth.setApiKeyPrefix("Token");

    FlexibleGpuApi apiInstance = new FlexibleGpuApi(defaultClient);
    DeleteFlexibleGpuRequest deleteFlexibleGpuRequest = new DeleteFlexibleGpuRequest(); // DeleteFlexibleGpuRequest | 
    try {
      DeleteFlexibleGpuResponse result = apiInstance.deleteFlexibleGpu(deleteFlexibleGpuRequest);
      System.out.println(result);
    } catch (ApiException e) {
      System.err.println("Exception when calling FlexibleGpuApi#deleteFlexibleGpu");
      System.err.println("Status code: " + e.getCode());
      System.err.println("Reason: " + e.getResponseBody());
      System.err.println("Response headers: " + e.getResponseHeaders());
      e.printStackTrace();
    }
  }
}

Parameters

Name Type Description Notes
deleteFlexibleGpuRequest DeleteFlexibleGpuRequest [optional]

Return type

DeleteFlexibleGpuResponse

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 The HTTP 200 response (OK). -

linkFlexibleGpu

LinkFlexibleGpuResponse linkFlexibleGpu(linkFlexibleGpuRequest)

Example

// Import classes:
import io.github.outscale.osc_sdk_java.client.ApiClient;
import io.github.outscale.osc_sdk_java.client.ApiException;
import io.github.outscale.osc_sdk_java.client.Configuration;
import io.github.outscale.osc_sdk_java.client.auth.*;
import io.github.outscale.osc_sdk_java.client.models.*;
import io.github.outscale.osc_sdk_java.client.api.FlexibleGpuApi;

public class Example {
  public static void main(String[] args) {
    ApiClient defaultClient = Configuration.getDefaultApiClient();
    defaultClient.setBasePath("https://api.eu-west-2.outscale.com/api/v1");
    // Configure AWS Signature V4 authorization
    defaultClient.setAWS4Configuration("YOUR_ACCESS_KEY", "YOUR_SECRET_KEY", "REGION", "SERVICE")
    
    // Configure API key authorization: ApiKeyAuth
    ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
    ApiKeyAuth.setApiKey("YOUR API KEY");
    // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    //ApiKeyAuth.setApiKeyPrefix("Token");

    FlexibleGpuApi apiInstance = new FlexibleGpuApi(defaultClient);
    LinkFlexibleGpuRequest linkFlexibleGpuRequest = new LinkFlexibleGpuRequest(); // LinkFlexibleGpuRequest | 
    try {
      LinkFlexibleGpuResponse result = apiInstance.linkFlexibleGpu(linkFlexibleGpuRequest);
      System.out.println(result);
    } catch (ApiException e) {
      System.err.println("Exception when calling FlexibleGpuApi#linkFlexibleGpu");
      System.err.println("Status code: " + e.getCode());
      System.err.println("Reason: " + e.getResponseBody());
      System.err.println("Response headers: " + e.getResponseHeaders());
      e.printStackTrace();
    }
  }
}

Parameters

Name Type Description Notes
linkFlexibleGpuRequest LinkFlexibleGpuRequest [optional]

Return type

LinkFlexibleGpuResponse

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 The HTTP 200 response (OK). -

readFlexibleGpuCatalog

ReadFlexibleGpuCatalogResponse readFlexibleGpuCatalog(readFlexibleGpuCatalogRequest)

Example

// Import classes:
import io.github.outscale.osc_sdk_java.client.ApiClient;
import io.github.outscale.osc_sdk_java.client.ApiException;
import io.github.outscale.osc_sdk_java.client.Configuration;
import io.github.outscale.osc_sdk_java.client.models.*;
import io.github.outscale.osc_sdk_java.client.api.FlexibleGpuApi;

public class Example {
  public static void main(String[] args) {
    ApiClient defaultClient = Configuration.getDefaultApiClient();
    defaultClient.setBasePath("https://api.eu-west-2.outscale.com/api/v1");
    // Configure AWS Signature V4 authorization
    defaultClient.setAWS4Configuration("YOUR_ACCESS_KEY", "YOUR_SECRET_KEY", "REGION", "SERVICE")

    FlexibleGpuApi apiInstance = new FlexibleGpuApi(defaultClient);
    ReadFlexibleGpuCatalogRequest readFlexibleGpuCatalogRequest = new ReadFlexibleGpuCatalogRequest(); // ReadFlexibleGpuCatalogRequest | 
    try {
      ReadFlexibleGpuCatalogResponse result = apiInstance.readFlexibleGpuCatalog(readFlexibleGpuCatalogRequest);
      System.out.println(result);
    } catch (ApiException e) {
      System.err.println("Exception when calling FlexibleGpuApi#readFlexibleGpuCatalog");
      System.err.println("Status code: " + e.getCode());
      System.err.println("Reason: " + e.getResponseBody());
      System.err.println("Response headers: " + e.getResponseHeaders());
      e.printStackTrace();
    }
  }
}

Parameters

Name Type Description Notes
readFlexibleGpuCatalogRequest ReadFlexibleGpuCatalogRequest [optional]

Return type

ReadFlexibleGpuCatalogResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 The HTTP 200 response (OK). -

readFlexibleGpus

ReadFlexibleGpusResponse readFlexibleGpus(readFlexibleGpusRequest)

Example

// Import classes:
import io.github.outscale.osc_sdk_java.client.ApiClient;
import io.github.outscale.osc_sdk_java.client.ApiException;
import io.github.outscale.osc_sdk_java.client.Configuration;
import io.github.outscale.osc_sdk_java.client.auth.*;
import io.github.outscale.osc_sdk_java.client.models.*;
import io.github.outscale.osc_sdk_java.client.api.FlexibleGpuApi;

public class Example {
  public static void main(String[] args) {
    ApiClient defaultClient = Configuration.getDefaultApiClient();
    defaultClient.setBasePath("https://api.eu-west-2.outscale.com/api/v1");
    // Configure AWS Signature V4 authorization
    defaultClient.setAWS4Configuration("YOUR_ACCESS_KEY", "YOUR_SECRET_KEY", "REGION", "SERVICE")
    
    // Configure API key authorization: ApiKeyAuth
    ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
    ApiKeyAuth.setApiKey("YOUR API KEY");
    // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    //ApiKeyAuth.setApiKeyPrefix("Token");

    FlexibleGpuApi apiInstance = new FlexibleGpuApi(defaultClient);
    ReadFlexibleGpusRequest readFlexibleGpusRequest = new ReadFlexibleGpusRequest(); // ReadFlexibleGpusRequest | 
    try {
      ReadFlexibleGpusResponse result = apiInstance.readFlexibleGpus(readFlexibleGpusRequest);
      System.out.println(result);
    } catch (ApiException e) {
      System.err.println("Exception when calling FlexibleGpuApi#readFlexibleGpus");
      System.err.println("Status code: " + e.getCode());
      System.err.println("Reason: " + e.getResponseBody());
      System.err.println("Response headers: " + e.getResponseHeaders());
      e.printStackTrace();
    }
  }
}

Parameters

Name Type Description Notes
readFlexibleGpusRequest ReadFlexibleGpusRequest [optional]

Return type

ReadFlexibleGpusResponse

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 The HTTP 200 response (OK). -

unlinkFlexibleGpu

UnlinkFlexibleGpuResponse unlinkFlexibleGpu(unlinkFlexibleGpuRequest)

Example

// Import classes:
import io.github.outscale.osc_sdk_java.client.ApiClient;
import io.github.outscale.osc_sdk_java.client.ApiException;
import io.github.outscale.osc_sdk_java.client.Configuration;
import io.github.outscale.osc_sdk_java.client.auth.*;
import io.github.outscale.osc_sdk_java.client.models.*;
import io.github.outscale.osc_sdk_java.client.api.FlexibleGpuApi;

public class Example {
  public static void main(String[] args) {
    ApiClient defaultClient = Configuration.getDefaultApiClient();
    defaultClient.setBasePath("https://api.eu-west-2.outscale.com/api/v1");
    // Configure AWS Signature V4 authorization
    defaultClient.setAWS4Configuration("YOUR_ACCESS_KEY", "YOUR_SECRET_KEY", "REGION", "SERVICE")
    
    // Configure API key authorization: ApiKeyAuth
    ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
    ApiKeyAuth.setApiKey("YOUR API KEY");
    // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    //ApiKeyAuth.setApiKeyPrefix("Token");

    FlexibleGpuApi apiInstance = new FlexibleGpuApi(defaultClient);
    UnlinkFlexibleGpuRequest unlinkFlexibleGpuRequest = new UnlinkFlexibleGpuRequest(); // UnlinkFlexibleGpuRequest | 
    try {
      UnlinkFlexibleGpuResponse result = apiInstance.unlinkFlexibleGpu(unlinkFlexibleGpuRequest);
      System.out.println(result);
    } catch (ApiException e) {
      System.err.println("Exception when calling FlexibleGpuApi#unlinkFlexibleGpu");
      System.err.println("Status code: " + e.getCode());
      System.err.println("Reason: " + e.getResponseBody());
      System.err.println("Response headers: " + e.getResponseHeaders());
      e.printStackTrace();
    }
  }
}

Parameters

Name Type Description Notes
unlinkFlexibleGpuRequest UnlinkFlexibleGpuRequest [optional]

Return type

UnlinkFlexibleGpuResponse

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 The HTTP 200 response (OK). -

updateFlexibleGpu

UpdateFlexibleGpuResponse updateFlexibleGpu(updateFlexibleGpuRequest)

Example

// Import classes:
import io.github.outscale.osc_sdk_java.client.ApiClient;
import io.github.outscale.osc_sdk_java.client.ApiException;
import io.github.outscale.osc_sdk_java.client.Configuration;
import io.github.outscale.osc_sdk_java.client.auth.*;
import io.github.outscale.osc_sdk_java.client.models.*;
import io.github.outscale.osc_sdk_java.client.api.FlexibleGpuApi;

public class Example {
  public static void main(String[] args) {
    ApiClient defaultClient = Configuration.getDefaultApiClient();
    defaultClient.setBasePath("https://api.eu-west-2.outscale.com/api/v1");
    // Configure AWS Signature V4 authorization
    defaultClient.setAWS4Configuration("YOUR_ACCESS_KEY", "YOUR_SECRET_KEY", "REGION", "SERVICE")
    
    // Configure API key authorization: ApiKeyAuth
    ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
    ApiKeyAuth.setApiKey("YOUR API KEY");
    // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    //ApiKeyAuth.setApiKeyPrefix("Token");

    FlexibleGpuApi apiInstance = new FlexibleGpuApi(defaultClient);
    UpdateFlexibleGpuRequest updateFlexibleGpuRequest = new UpdateFlexibleGpuRequest(); // UpdateFlexibleGpuRequest | 
    try {
      UpdateFlexibleGpuResponse result = apiInstance.updateFlexibleGpu(updateFlexibleGpuRequest);
      System.out.println(result);
    } catch (ApiException e) {
      System.err.println("Exception when calling FlexibleGpuApi#updateFlexibleGpu");
      System.err.println("Status code: " + e.getCode());
      System.err.println("Reason: " + e.getResponseBody());
      System.err.println("Response headers: " + e.getResponseHeaders());
      e.printStackTrace();
    }
  }
}

Parameters

Name Type Description Notes
updateFlexibleGpuRequest UpdateFlexibleGpuRequest [optional]

Return type

UpdateFlexibleGpuResponse

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 The HTTP 200 response (OK). -