Class SecretsApi

java.lang.Object
io.github.alersrt.pod4j.openapi.api.SecretsApi

public class SecretsApi extends Object
  • Constructor Details

    • SecretsApi

      public SecretsApi()
    • SecretsApi

      public SecretsApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • getHostIndex

      public int getHostIndex()
    • setHostIndex

      public void setHostIndex(int hostIndex)
    • getCustomBaseUrl

      public String getCustomBaseUrl()
    • setCustomBaseUrl

      public void setCustomBaseUrl(String customBaseUrl)
    • secretCreateLibpodCall

      public okhttp3.Call secretCreateLibpodCall(String name, String driver, String driveropts, String labels, String request, ApiCallback _callback) throws ApiException
      Build call for secretCreateLibpod
      Parameters:
      name - User-defined name of the secret. (required)
      driver - Secret driver (optional, default to file)
      driveropts - Secret driver options (optional)
      labels - Labels on the secret (optional)
      request - Secret (optional)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details
      Status Code Description Response Headers
      201 Secret create response -
      500 Internal server error -
    • secretCreateLibpod

      public SecretCreateLibpod201Response secretCreateLibpod(String name, String driver, String driveropts, String labels, String request) throws ApiException
      Create a secret
      Parameters:
      name - User-defined name of the secret. (required)
      driver - Secret driver (optional, default to file)
      driveropts - Secret driver options (optional)
      labels - Labels on the secret (optional)
      request - Secret (optional)
      Returns:
      SecretCreateLibpod201Response
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Status Code Description Response Headers
      201 Secret create response -
      500 Internal server error -
    • secretCreateLibpodWithHttpInfo

      public ApiResponse<SecretCreateLibpod201Response> secretCreateLibpodWithHttpInfo(@NotNull @NotNull String name, String driver, String driveropts, String labels, String request) throws ApiException
      Create a secret
      Parameters:
      name - User-defined name of the secret. (required)
      driver - Secret driver (optional, default to file)
      driveropts - Secret driver options (optional)
      labels - Labels on the secret (optional)
      request - Secret (optional)
      Returns:
      ApiResponse<SecretCreateLibpod201Response>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Status Code Description Response Headers
      201 Secret create response -
      500 Internal server error -
    • secretCreateLibpodAsync

      public okhttp3.Call secretCreateLibpodAsync(String name, String driver, String driveropts, String labels, String request, ApiCallback<SecretCreateLibpod201Response> _callback) throws ApiException
      Create a secret (asynchronously)
      Parameters:
      name - User-defined name of the secret. (required)
      driver - Secret driver (optional, default to file)
      driveropts - Secret driver options (optional)
      labels - Labels on the secret (optional)
      request - Secret (optional)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
      Http Response Details
      Status Code Description Response Headers
      201 Secret create response -
      500 Internal server error -
    • secretDeleteLibpodCall

      public okhttp3.Call secretDeleteLibpodCall(String name, Boolean all, ApiCallback _callback) throws ApiException
      Build call for secretDeleteLibpod
      Parameters:
      name - the name or ID of the secret (required)
      all - Remove all secrets (optional, default to false)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details
      Status Code Description Response Headers
      204 no error -
      404 No such secret -
      500 Internal server error -
    • secretDeleteLibpod

      public void secretDeleteLibpod(String name, Boolean all) throws ApiException
      Remove secret
      Parameters:
      name - the name or ID of the secret (required)
      all - Remove all secrets (optional, default to false)
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Status Code Description Response Headers
      204 no error -
      404 No such secret -
      500 Internal server error -
    • secretDeleteLibpodWithHttpInfo

      public ApiResponse<Void> secretDeleteLibpodWithHttpInfo(@NotNull @NotNull String name, Boolean all) throws ApiException
      Remove secret
      Parameters:
      name - the name or ID of the secret (required)
      all - Remove all secrets (optional, default to false)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Status Code Description Response Headers
      204 no error -
      404 No such secret -
      500 Internal server error -
    • secretDeleteLibpodAsync

      public okhttp3.Call secretDeleteLibpodAsync(String name, Boolean all, ApiCallback<Void> _callback) throws ApiException
      Remove secret (asynchronously)
      Parameters:
      name - the name or ID of the secret (required)
      all - Remove all secrets (optional, default to false)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
      Http Response Details
      Status Code Description Response Headers
      204 no error -
      404 No such secret -
      500 Internal server error -
    • secretExistsLibpodCall

      public okhttp3.Call secretExistsLibpodCall(String name, ApiCallback _callback) throws ApiException
      Build call for secretExistsLibpod
      Parameters:
      name - the name or ID of the secret (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details
      Status Code Description Response Headers
      204 secret exists -
      404 No such secret -
      500 Internal server error -
    • secretExistsLibpod

      public void secretExistsLibpod(String name) throws ApiException
      Secret exists
      Parameters:
      name - the name or ID of the secret (required)
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Status Code Description Response Headers
      204 secret exists -
      404 No such secret -
      500 Internal server error -
    • secretExistsLibpodWithHttpInfo

      public ApiResponse<Void> secretExistsLibpodWithHttpInfo(@NotNull @NotNull String name) throws ApiException
      Secret exists
      Parameters:
      name - the name or ID of the secret (required)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Status Code Description Response Headers
      204 secret exists -
      404 No such secret -
      500 Internal server error -
    • secretExistsLibpodAsync

      public okhttp3.Call secretExistsLibpodAsync(String name, ApiCallback<Void> _callback) throws ApiException
      Secret exists (asynchronously)
      Parameters:
      name - the name or ID of the secret (required)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
      Http Response Details
      Status Code Description Response Headers
      204 secret exists -
      404 No such secret -
      500 Internal server error -
    • secretInspectLibpodCall

      public okhttp3.Call secretInspectLibpodCall(String name, Boolean showsecret, ApiCallback _callback) throws ApiException
      Build call for secretInspectLibpod
      Parameters:
      name - the name or ID of the secret (required)
      showsecret - Display Secret (optional, default to false)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details
      Status Code Description Response Headers
      200 Secret inspect response -
      404 No such secret -
      500 Internal server error -
    • secretInspectLibpod

      public SecretInfoReport secretInspectLibpod(String name, Boolean showsecret) throws ApiException
      Inspect secret
      Parameters:
      name - the name or ID of the secret (required)
      showsecret - Display Secret (optional, default to false)
      Returns:
      SecretInfoReport
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Status Code Description Response Headers
      200 Secret inspect response -
      404 No such secret -
      500 Internal server error -
    • secretInspectLibpodWithHttpInfo

      public ApiResponse<SecretInfoReport> secretInspectLibpodWithHttpInfo(@NotNull @NotNull String name, Boolean showsecret) throws ApiException
      Inspect secret
      Parameters:
      name - the name or ID of the secret (required)
      showsecret - Display Secret (optional, default to false)
      Returns:
      ApiResponse<SecretInfoReport>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Status Code Description Response Headers
      200 Secret inspect response -
      404 No such secret -
      500 Internal server error -
    • secretInspectLibpodAsync

      public okhttp3.Call secretInspectLibpodAsync(String name, Boolean showsecret, ApiCallback<SecretInfoReport> _callback) throws ApiException
      Inspect secret (asynchronously)
      Parameters:
      name - the name or ID of the secret (required)
      showsecret - Display Secret (optional, default to false)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
      Http Response Details
      Status Code Description Response Headers
      200 Secret inspect response -
      404 No such secret -
      500 Internal server error -
    • secretListLibpodCall

      public okhttp3.Call secretListLibpodCall(String filters, ApiCallback _callback) throws ApiException
      Build call for secretListLibpod
      Parameters:
      filters - JSON encoded value of the filters (a `map[string][]string`) to process on the secrets list. Currently available filters: - `name=[name]` Matches secrets name (accepts regex). - `id=[id]` Matches for full or partial ID. (optional)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details
      Status Code Description Response Headers
      200 Secret list response -
      500 Internal server error -
    • secretListLibpod

      public List<SecretInfoReport> secretListLibpod(String filters) throws ApiException
      List secrets Returns a list of secrets
      Parameters:
      filters - JSON encoded value of the filters (a `map[string][]string`) to process on the secrets list. Currently available filters: - `name=[name]` Matches secrets name (accepts regex). - `id=[id]` Matches for full or partial ID. (optional)
      Returns:
      List<SecretInfoReport>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Status Code Description Response Headers
      200 Secret list response -
      500 Internal server error -
    • secretListLibpodWithHttpInfo

      public ApiResponse<List<SecretInfoReport>> secretListLibpodWithHttpInfo(String filters) throws ApiException
      List secrets Returns a list of secrets
      Parameters:
      filters - JSON encoded value of the filters (a `map[string][]string`) to process on the secrets list. Currently available filters: - `name=[name]` Matches secrets name (accepts regex). - `id=[id]` Matches for full or partial ID. (optional)
      Returns:
      ApiResponse<List<SecretInfoReport>>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Status Code Description Response Headers
      200 Secret list response -
      500 Internal server error -
    • secretListLibpodAsync

      public okhttp3.Call secretListLibpodAsync(String filters, ApiCallback<List<SecretInfoReport>> _callback) throws ApiException
      List secrets (asynchronously) Returns a list of secrets
      Parameters:
      filters - JSON encoded value of the filters (a `map[string][]string`) to process on the secrets list. Currently available filters: - `name=[name]` Matches secrets name (accepts regex). - `id=[id]` Matches for full or partial ID. (optional)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
      Http Response Details
      Status Code Description Response Headers
      200 Secret list response -
      500 Internal server error -