All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jelastic.api.configuration.Secrets Maven / Gradle / Ivy

The newest version!
package com.jelastic.api.configuration;

import java.util.Map;
import java.util.HashMap;
import java.util.List;
import com.jelastic.api.AbstractService;
import com.jelastic.api.Callback;
import com.jelastic.api.client.annotation.JelasticModuleName;
import com.jelastic.api.core.utils.Transport;
import com.jelastic.api.response.ScriptEvalProxyResponse;
import com.jelastic.api.configuration.response.CreateSecretsResponse;
import com.jelastic.api.configuration.response.SecretResponse;
import com.jelastic.api.configuration.response.ApplySecretsResponse;
import com.jelastic.api.configuration.response.SecretListResponse;

/**
* @name Jelastic API Client
* @version 8.11.2
* @copyright Jelastic, Inc.
**/


@JelasticModuleName(name="jelastic")
public class Secrets extends AbstractService {

  public static String SERVICE_PATH = "configuration/secrets/";
  private String serviceUrl = SERVER_URL + SERVICE_PATH;
  private String appid = null;
  private String session = null;
  private String client_source = null;

  public Secrets(){}

  public Secrets(Map _params){
     this((String)_params.get("appid"), (String)_params.get("session"), (String)_params.get("serviceUrl"));
     String serverUrl = (String) _params.get("serverUrl");
     if (serverUrl != null) setServerUrl(serverUrl);
  }

  public Secrets(String appid, String session, String serviceUrl){
     if (appid != null) this.appid = appid;
     if (session != null) this.session = session;
     if (serviceUrl != null) this.serviceUrl = serviceUrl;
  }

  public Secrets(String appid, String session){
     this(appid, session, null);
  }

  public Secrets(String appid){
     this(appid, null, null);
  }

  public String getAppid(){
     return appid;
  }

  public Secrets setAppid(String appid){
     this.appid = appid;
     return this;
  }

  public String getSession(){
     return session;
  }

  public Secrets setSession(String session){
     this.session = session;
     return this;
  }

  public String getServiceUrl(){
     return serviceUrl;
  }

  public Secrets setServiceUrl(String serviceUrl){
     this.serviceUrl = serviceUrl;
     return this;
  }

  public String getServerUrl(){
     return serviceUrl;
  }

  public Secrets setServerUrl(String serverUrl){
     this.serviceUrl = serverUrl + SERVICE_PATH;
     return this;
  }

  public Secrets setClientSource(String client_source){
     this.client_source = client_source;
     return this;
  }

  public String getClientSource(){
     return client_source ;
  }

  public ScriptEvalProxyResponse createSecret(String appid, String session, String secretName, String data, String description){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secretName", secretName);
      _params.put("data", data);
      _params.put("description", description);
      _params.put("client_source", client_source);
      return (ScriptEvalProxyResponse) _call(appid, serviceUrl + "rest/createsecret", _params, ScriptEvalProxyResponse.class);
  }

  public ScriptEvalProxyResponse createSecret(String appid, String session, String secretName, String data, String description, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secretName", secretName);
      _params.put("data", data);
      _params.put("description", description);
      _params.put("client_source", client_source);
      return (ScriptEvalProxyResponse) _call(appid, serviceUrl + "rest/createsecret", _params, headers, ScriptEvalProxyResponse.class);
  }

  public Secrets createSecret(final String appid, final String session, final String secretName, final String data, final String description, final Callback callback){
      new Thread(() -> {
              ScriptEvalProxyResponse response = createSecret(appid, session, secretName, data, description);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Secrets createSecret(final String appid, final String session, final String secretName, final String data, final String description, final Map headers, final Callback callback){
      new Thread(() -> {
              ScriptEvalProxyResponse response = createSecret(appid, session, secretName, data, description);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public ScriptEvalProxyResponse createSecret(String appid, String session, String secretName, String data){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secretName", secretName);
      _params.put("data", data);
      _params.put("client_source", client_source);
      return (ScriptEvalProxyResponse) _call(appid, serviceUrl + "rest/createsecret", _params, ScriptEvalProxyResponse.class);
  }

  public ScriptEvalProxyResponse createSecret(String appid, String session, String secretName, String data, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secretName", secretName);
      _params.put("data", data);
      _params.put("client_source", client_source);
      return (ScriptEvalProxyResponse) _call(appid, serviceUrl + "rest/createsecret", _params, headers, ScriptEvalProxyResponse.class);
  }

  public Secrets createSecret(final String appid, final String session, final String secretName, final String data, final Callback callback){
      new Thread(() -> {
              ScriptEvalProxyResponse response = createSecret(appid, session, secretName, data);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Secrets createSecret(final String appid, final String session, final String secretName, final String data, final Map headers, final Callback callback){
      new Thread(() -> {
              ScriptEvalProxyResponse response = createSecret(appid, session, secretName, data);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public ScriptEvalProxyResponse createSecret(String secretName, String data, String description){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secretName", secretName);
      _params.put("data", data);
      _params.put("description", description);
      _params.put("client_source", client_source);
      return (ScriptEvalProxyResponse) _call(appid, serviceUrl + "rest/createsecret", _params, ScriptEvalProxyResponse.class);
  }

  public ScriptEvalProxyResponse createSecret(String secretName, String data, String description, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secretName", secretName);
      _params.put("data", data);
      _params.put("description", description);
      _params.put("client_source", client_source);
      return (ScriptEvalProxyResponse) _call(appid, serviceUrl + "rest/createsecret", _params, headers, ScriptEvalProxyResponse.class);
  }

  public Secrets createSecret(final String secretName, final String data, final String description, final Callback callback){
      new Thread(() -> {
              ScriptEvalProxyResponse response = createSecret(secretName, data, description);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Secrets createSecret(final String secretName, final String data, final String description, final Map headers, final Callback callback){
      new Thread(() -> {
              ScriptEvalProxyResponse response = createSecret(secretName, data, description);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public ScriptEvalProxyResponse createSecret(String secretName, String data){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secretName", secretName);
      _params.put("data", data);
      _params.put("client_source", client_source);
      return (ScriptEvalProxyResponse) _call(appid, serviceUrl + "rest/createsecret", _params, ScriptEvalProxyResponse.class);
  }

  public ScriptEvalProxyResponse createSecret(String secretName, String data, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secretName", secretName);
      _params.put("data", data);
      _params.put("client_source", client_source);
      return (ScriptEvalProxyResponse) _call(appid, serviceUrl + "rest/createsecret", _params, headers, ScriptEvalProxyResponse.class);
  }

  public Secrets createSecret(final String secretName, final String data, final Callback callback){
      new Thread(() -> {
              ScriptEvalProxyResponse response = createSecret(secretName, data);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Secrets createSecret(final String secretName, final String data, final Map headers, final Callback callback){
      new Thread(() -> {
              ScriptEvalProxyResponse response = createSecret(secretName, data);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public ScriptEvalProxyResponse createSecret(Map _params){
      if (!_params.containsKey("appid")) _params.put("appid", appid);
      if (!_params.containsKey("session")) _params.put("session", session);
      if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
      return (ScriptEvalProxyResponse) _call(appid, serviceUrl + "rest/createsecret", _params, ScriptEvalProxyResponse.class);
  }

  public ScriptEvalProxyResponse createSecret(Map _params, Map headers){
      if (!_params.containsKey("appid")) _params.put("appid", appid);
      if (!_params.containsKey("session")) _params.put("session", session);
      if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
      return (ScriptEvalProxyResponse) _call(appid, serviceUrl + "rest/createsecret", _params, headers, ScriptEvalProxyResponse.class);
  }

  public CreateSecretsResponse createSecrets(String appid, String session, String secrets, String scope, String description){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secrets", secrets);
      _params.put("scope", scope);
      _params.put("description", description);
      _params.put("client_source", client_source);
      return (CreateSecretsResponse) _call(appid, serviceUrl + "rest/createsecrets", _params, CreateSecretsResponse.class);
  }

  public CreateSecretsResponse createSecrets(String appid, String session, String secrets, String scope, String description, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secrets", secrets);
      _params.put("scope", scope);
      _params.put("description", description);
      _params.put("client_source", client_source);
      return (CreateSecretsResponse) _call(appid, serviceUrl + "rest/createsecrets", _params, headers, CreateSecretsResponse.class);
  }

  public Secrets createSecrets(final String appid, final String session, final String secrets, final String scope, final String description, final Callback callback){
      new Thread(() -> {
              CreateSecretsResponse response = createSecrets(appid, session, secrets, scope, description);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Secrets createSecrets(final String appid, final String session, final String secrets, final String scope, final String description, final Map headers, final Callback callback){
      new Thread(() -> {
              CreateSecretsResponse response = createSecrets(appid, session, secrets, scope, description);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CreateSecretsResponse createSecrets(String appid, String session, String secrets, String scope){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secrets", secrets);
      _params.put("scope", scope);
      _params.put("client_source", client_source);
      return (CreateSecretsResponse) _call(appid, serviceUrl + "rest/createsecrets", _params, CreateSecretsResponse.class);
  }

  public CreateSecretsResponse createSecrets(String appid, String session, String secrets, String scope, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secrets", secrets);
      _params.put("scope", scope);
      _params.put("client_source", client_source);
      return (CreateSecretsResponse) _call(appid, serviceUrl + "rest/createsecrets", _params, headers, CreateSecretsResponse.class);
  }

  public Secrets createSecrets(final String appid, final String session, final String secrets, final String scope, final Callback callback){
      new Thread(() -> {
              CreateSecretsResponse response = createSecrets(appid, session, secrets, scope);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Secrets createSecrets(final String appid, final String session, final String secrets, final String scope, final Map headers, final Callback callback){
      new Thread(() -> {
              CreateSecretsResponse response = createSecrets(appid, session, secrets, scope);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CreateSecretsResponse createSecrets(String appid, String session, String secrets){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secrets", secrets);
      _params.put("client_source", client_source);
      return (CreateSecretsResponse) _call(appid, serviceUrl + "rest/createsecrets", _params, CreateSecretsResponse.class);
  }

  public CreateSecretsResponse createSecrets(String appid, String session, String secrets, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secrets", secrets);
      _params.put("client_source", client_source);
      return (CreateSecretsResponse) _call(appid, serviceUrl + "rest/createsecrets", _params, headers, CreateSecretsResponse.class);
  }

  public Secrets createSecrets(final String appid, final String session, final String secrets, final Callback callback){
      new Thread(() -> {
              CreateSecretsResponse response = createSecrets(appid, session, secrets);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Secrets createSecrets(final String appid, final String session, final String secrets, final Map headers, final Callback callback){
      new Thread(() -> {
              CreateSecretsResponse response = createSecrets(appid, session, secrets);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CreateSecretsResponse createSecrets(String secrets, String scope){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secrets", secrets);
      _params.put("scope", scope);
      _params.put("client_source", client_source);
      return (CreateSecretsResponse) _call(appid, serviceUrl + "rest/createsecrets", _params, CreateSecretsResponse.class);
  }

  public CreateSecretsResponse createSecrets(String secrets, String scope, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secrets", secrets);
      _params.put("scope", scope);
      _params.put("client_source", client_source);
      return (CreateSecretsResponse) _call(appid, serviceUrl + "rest/createsecrets", _params, headers, CreateSecretsResponse.class);
  }

  public Secrets createSecrets(final String secrets, final String scope, final Callback callback){
      new Thread(() -> {
              CreateSecretsResponse response = createSecrets(secrets, scope);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Secrets createSecrets(final String secrets, final String scope, final Map headers, final Callback callback){
      new Thread(() -> {
              CreateSecretsResponse response = createSecrets(secrets, scope);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CreateSecretsResponse createSecrets(String secrets){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secrets", secrets);
      _params.put("client_source", client_source);
      return (CreateSecretsResponse) _call(appid, serviceUrl + "rest/createsecrets", _params, CreateSecretsResponse.class);
  }

  public CreateSecretsResponse createSecrets(String secrets, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secrets", secrets);
      _params.put("client_source", client_source);
      return (CreateSecretsResponse) _call(appid, serviceUrl + "rest/createsecrets", _params, headers, CreateSecretsResponse.class);
  }

  public Secrets createSecrets(final String secrets, final Callback callback){
      new Thread(() -> {
              CreateSecretsResponse response = createSecrets(secrets);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Secrets createSecrets(final String secrets, final Map headers, final Callback callback){
      new Thread(() -> {
              CreateSecretsResponse response = createSecrets(secrets);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CreateSecretsResponse createSecrets(Map _params){
      if (!_params.containsKey("appid")) _params.put("appid", appid);
      if (!_params.containsKey("session")) _params.put("session", session);
      if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
      return (CreateSecretsResponse) _call(appid, serviceUrl + "rest/createsecrets", _params, CreateSecretsResponse.class);
  }

  public CreateSecretsResponse createSecrets(Map _params, Map headers){
      if (!_params.containsKey("appid")) _params.put("appid", appid);
      if (!_params.containsKey("session")) _params.put("session", session);
      if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
      return (CreateSecretsResponse) _call(appid, serviceUrl + "rest/createsecrets", _params, headers, CreateSecretsResponse.class);
  }

  public SecretResponse getSecret(String appid, String session, String secretName, String scope){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secretName", secretName);
      _params.put("scope", scope);
      _params.put("client_source", client_source);
      return (SecretResponse) _call(appid, serviceUrl + "rest/getsecret", _params, SecretResponse.class);
  }

  public SecretResponse getSecret(String appid, String session, String secretName, String scope, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secretName", secretName);
      _params.put("scope", scope);
      _params.put("client_source", client_source);
      return (SecretResponse) _call(appid, serviceUrl + "rest/getsecret", _params, headers, SecretResponse.class);
  }

  public Secrets getSecret(final String appid, final String session, final String secretName, final String scope, final Callback callback){
      new Thread(() -> {
              SecretResponse response = getSecret(appid, session, secretName, scope);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Secrets getSecret(final String appid, final String session, final String secretName, final String scope, final Map headers, final Callback callback){
      new Thread(() -> {
              SecretResponse response = getSecret(appid, session, secretName, scope);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public SecretResponse getSecret(String appid, String session, String secretName){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secretName", secretName);
      _params.put("client_source", client_source);
      return (SecretResponse) _call(appid, serviceUrl + "rest/getsecret", _params, SecretResponse.class);
  }

  public SecretResponse getSecret(String appid, String session, String secretName, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secretName", secretName);
      _params.put("client_source", client_source);
      return (SecretResponse) _call(appid, serviceUrl + "rest/getsecret", _params, headers, SecretResponse.class);
  }

  public Secrets getSecret(final String appid, final String session, final String secretName, final Callback callback){
      new Thread(() -> {
              SecretResponse response = getSecret(appid, session, secretName);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Secrets getSecret(final String appid, final String session, final String secretName, final Map headers, final Callback callback){
      new Thread(() -> {
              SecretResponse response = getSecret(appid, session, secretName);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public SecretResponse getSecret(String secretName, String scope){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secretName", secretName);
      _params.put("scope", scope);
      _params.put("client_source", client_source);
      return (SecretResponse) _call(appid, serviceUrl + "rest/getsecret", _params, SecretResponse.class);
  }

  public SecretResponse getSecret(String secretName, String scope, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secretName", secretName);
      _params.put("scope", scope);
      _params.put("client_source", client_source);
      return (SecretResponse) _call(appid, serviceUrl + "rest/getsecret", _params, headers, SecretResponse.class);
  }

  public Secrets getSecret(final String secretName, final String scope, final Callback callback){
      new Thread(() -> {
              SecretResponse response = getSecret(secretName, scope);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Secrets getSecret(final String secretName, final String scope, final Map headers, final Callback callback){
      new Thread(() -> {
              SecretResponse response = getSecret(secretName, scope);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public SecretResponse getSecret(String secretName){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secretName", secretName);
      _params.put("client_source", client_source);
      return (SecretResponse) _call(appid, serviceUrl + "rest/getsecret", _params, SecretResponse.class);
  }

  public SecretResponse getSecret(String secretName, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secretName", secretName);
      _params.put("client_source", client_source);
      return (SecretResponse) _call(appid, serviceUrl + "rest/getsecret", _params, headers, SecretResponse.class);
  }

  public Secrets getSecret(final String secretName, final Callback callback){
      new Thread(() -> {
              SecretResponse response = getSecret(secretName);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Secrets getSecret(final String secretName, final Map headers, final Callback callback){
      new Thread(() -> {
              SecretResponse response = getSecret(secretName);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public SecretResponse getSecret(Map _params){
      if (!_params.containsKey("appid")) _params.put("appid", appid);
      if (!_params.containsKey("session")) _params.put("session", session);
      if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
      return (SecretResponse) _call(appid, serviceUrl + "rest/getsecret", _params, SecretResponse.class);
  }

  public SecretResponse getSecret(Map _params, Map headers){
      if (!_params.containsKey("appid")) _params.put("appid", appid);
      if (!_params.containsKey("session")) _params.put("session", session);
      if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
      return (SecretResponse) _call(appid, serviceUrl + "rest/getsecret", _params, headers, SecretResponse.class);
  }

  public SecretListResponse listSecrets(String appid, String session, String secretNames, String scope){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secretNames", secretNames);
      _params.put("scope", scope);
      _params.put("client_source", client_source);
      return (SecretListResponse) _call(appid, serviceUrl + "rest/listsecrets", _params, SecretListResponse.class);
  }

  public SecretListResponse listSecrets(String appid, String session, String secretNames, String scope, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secretNames", secretNames);
      _params.put("scope", scope);
      _params.put("client_source", client_source);
      return (SecretListResponse) _call(appid, serviceUrl + "rest/listsecrets", _params, headers, SecretListResponse.class);
  }

  public Secrets listSecrets(final String appid, final String session, final String secretNames, final String scope, final Callback callback){
      new Thread(() -> {
              SecretListResponse response = listSecrets(appid, session, secretNames, scope);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Secrets listSecrets(final String appid, final String session, final String secretNames, final String scope, final Map headers, final Callback callback){
      new Thread(() -> {
              SecretListResponse response = listSecrets(appid, session, secretNames, scope);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public SecretListResponse listSecrets(String appid, String session, String secretNames){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secretNames", secretNames);
      _params.put("client_source", client_source);
      return (SecretListResponse) _call(appid, serviceUrl + "rest/listsecrets", _params, SecretListResponse.class);
  }

  public SecretListResponse listSecrets(String appid, String session, String secretNames, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secretNames", secretNames);
      _params.put("client_source", client_source);
      return (SecretListResponse) _call(appid, serviceUrl + "rest/listsecrets", _params, headers, SecretListResponse.class);
  }

  public Secrets listSecrets(final String appid, final String session, final String secretNames, final Callback callback){
      new Thread(() -> {
              SecretListResponse response = listSecrets(appid, session, secretNames);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Secrets listSecrets(final String appid, final String session, final String secretNames, final Map headers, final Callback callback){
      new Thread(() -> {
              SecretListResponse response = listSecrets(appid, session, secretNames);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public SecretListResponse listSecrets(String appid, String session){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("client_source", client_source);
      return (SecretListResponse) _call(appid, serviceUrl + "rest/listsecrets", _params, SecretListResponse.class);
  }

  public SecretListResponse listSecrets(String appid, String session, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("client_source", client_source);
      return (SecretListResponse) _call(appid, serviceUrl + "rest/listsecrets", _params, headers, SecretListResponse.class);
  }

  public Secrets listSecrets(final String appid, final String session, final Callback callback){
      new Thread(() -> {
              SecretListResponse response = listSecrets(appid, session);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Secrets listSecrets(final String appid, final String session, final Map headers, final Callback callback){
      new Thread(() -> {
              SecretListResponse response = listSecrets(appid, session);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public SecretListResponse listSecrets(String secretNames){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secretNames", secretNames);
      _params.put("client_source", client_source);
      return (SecretListResponse) _call(appid, serviceUrl + "rest/listsecrets", _params, SecretListResponse.class);
  }

  public SecretListResponse listSecrets(String secretNames, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secretNames", secretNames);
      _params.put("client_source", client_source);
      return (SecretListResponse) _call(appid, serviceUrl + "rest/listsecrets", _params, headers, SecretListResponse.class);
  }

  public Secrets listSecrets(final String secretNames, final Callback callback){
      new Thread(() -> {
              SecretListResponse response = listSecrets(secretNames);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Secrets listSecrets(final String secretNames, final Map headers, final Callback callback){
      new Thread(() -> {
              SecretListResponse response = listSecrets(secretNames);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public SecretListResponse listSecrets(){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("client_source", client_source);
      return (SecretListResponse) _call(appid, serviceUrl + "rest/listsecrets", _params, SecretListResponse.class);
  }

  public Secrets listSecrets(final Callback callback){
      new Thread(() -> {
              SecretListResponse response = listSecrets();
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public SecretListResponse listSecrets(Map _params){
      if (!_params.containsKey("appid")) _params.put("appid", appid);
      if (!_params.containsKey("session")) _params.put("session", session);
      if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
      return (SecretListResponse) _call(appid, serviceUrl + "rest/listsecrets", _params, SecretListResponse.class);
  }

  public SecretListResponse listSecrets(Map _params, Map headers){
      if (!_params.containsKey("appid")) _params.put("appid", appid);
      if (!_params.containsKey("session")) _params.put("session", session);
      if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
      return (SecretListResponse) _call(appid, serviceUrl + "rest/listsecrets", _params, headers, SecretListResponse.class);
  }

  public ApplySecretsResponse applySecrets(String appid, String session, String secrets, String scope, String description){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secrets", secrets);
      _params.put("scope", scope);
      _params.put("description", description);
      _params.put("client_source", client_source);
      return (ApplySecretsResponse) _call(appid, serviceUrl + "rest/applysecrets", _params, ApplySecretsResponse.class);
  }

  public ApplySecretsResponse applySecrets(String appid, String session, String secrets, String scope, String description, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secrets", secrets);
      _params.put("scope", scope);
      _params.put("description", description);
      _params.put("client_source", client_source);
      return (ApplySecretsResponse) _call(appid, serviceUrl + "rest/applysecrets", _params, headers, ApplySecretsResponse.class);
  }

  public Secrets applySecrets(final String appid, final String session, final String secrets, final String scope, final String description, final Callback callback){
      new Thread(() -> {
              ApplySecretsResponse response = applySecrets(appid, session, secrets, scope, description);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Secrets applySecrets(final String appid, final String session, final String secrets, final String scope, final String description, final Map headers, final Callback callback){
      new Thread(() -> {
              ApplySecretsResponse response = applySecrets(appid, session, secrets, scope, description);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public ApplySecretsResponse applySecrets(String appid, String session, String secrets, String scope){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secrets", secrets);
      _params.put("scope", scope);
      _params.put("client_source", client_source);
      return (ApplySecretsResponse) _call(appid, serviceUrl + "rest/applysecrets", _params, ApplySecretsResponse.class);
  }

  public ApplySecretsResponse applySecrets(String appid, String session, String secrets, String scope, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secrets", secrets);
      _params.put("scope", scope);
      _params.put("client_source", client_source);
      return (ApplySecretsResponse) _call(appid, serviceUrl + "rest/applysecrets", _params, headers, ApplySecretsResponse.class);
  }

  public Secrets applySecrets(final String appid, final String session, final String secrets, final String scope, final Callback callback){
      new Thread(() -> {
              ApplySecretsResponse response = applySecrets(appid, session, secrets, scope);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Secrets applySecrets(final String appid, final String session, final String secrets, final String scope, final Map headers, final Callback callback){
      new Thread(() -> {
              ApplySecretsResponse response = applySecrets(appid, session, secrets, scope);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public ApplySecretsResponse applySecrets(String appid, String session, String secrets){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secrets", secrets);
      _params.put("client_source", client_source);
      return (ApplySecretsResponse) _call(appid, serviceUrl + "rest/applysecrets", _params, ApplySecretsResponse.class);
  }

  public ApplySecretsResponse applySecrets(String appid, String session, String secrets, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secrets", secrets);
      _params.put("client_source", client_source);
      return (ApplySecretsResponse) _call(appid, serviceUrl + "rest/applysecrets", _params, headers, ApplySecretsResponse.class);
  }

  public Secrets applySecrets(final String appid, final String session, final String secrets, final Callback callback){
      new Thread(() -> {
              ApplySecretsResponse response = applySecrets(appid, session, secrets);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Secrets applySecrets(final String appid, final String session, final String secrets, final Map headers, final Callback callback){
      new Thread(() -> {
              ApplySecretsResponse response = applySecrets(appid, session, secrets);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public ApplySecretsResponse applySecrets(String secrets, String scope){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secrets", secrets);
      _params.put("scope", scope);
      _params.put("client_source", client_source);
      return (ApplySecretsResponse) _call(appid, serviceUrl + "rest/applysecrets", _params, ApplySecretsResponse.class);
  }

  public ApplySecretsResponse applySecrets(String secrets, String scope, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secrets", secrets);
      _params.put("scope", scope);
      _params.put("client_source", client_source);
      return (ApplySecretsResponse) _call(appid, serviceUrl + "rest/applysecrets", _params, headers, ApplySecretsResponse.class);
  }

  public Secrets applySecrets(final String secrets, final String scope, final Callback callback){
      new Thread(() -> {
              ApplySecretsResponse response = applySecrets(secrets, scope);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Secrets applySecrets(final String secrets, final String scope, final Map headers, final Callback callback){
      new Thread(() -> {
              ApplySecretsResponse response = applySecrets(secrets, scope);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public ApplySecretsResponse applySecrets(String secrets){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secrets", secrets);
      _params.put("client_source", client_source);
      return (ApplySecretsResponse) _call(appid, serviceUrl + "rest/applysecrets", _params, ApplySecretsResponse.class);
  }

  public ApplySecretsResponse applySecrets(String secrets, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secrets", secrets);
      _params.put("client_source", client_source);
      return (ApplySecretsResponse) _call(appid, serviceUrl + "rest/applysecrets", _params, headers, ApplySecretsResponse.class);
  }

  public Secrets applySecrets(final String secrets, final Callback callback){
      new Thread(() -> {
              ApplySecretsResponse response = applySecrets(secrets);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Secrets applySecrets(final String secrets, final Map headers, final Callback callback){
      new Thread(() -> {
              ApplySecretsResponse response = applySecrets(secrets);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public ApplySecretsResponse applySecrets(Map _params){
      if (!_params.containsKey("appid")) _params.put("appid", appid);
      if (!_params.containsKey("session")) _params.put("session", session);
      if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
      return (ApplySecretsResponse) _call(appid, serviceUrl + "rest/applysecrets", _params, ApplySecretsResponse.class);
  }

  public ApplySecretsResponse applySecrets(Map _params, Map headers){
      if (!_params.containsKey("appid")) _params.put("appid", appid);
      if (!_params.containsKey("session")) _params.put("session", session);
      if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
      return (ApplySecretsResponse) _call(appid, serviceUrl + "rest/applysecrets", _params, headers, ApplySecretsResponse.class);
  }

  public ScriptEvalProxyResponse deleteSecrets(String appid, String session, String secretNames, String scope){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secretNames", secretNames);
      _params.put("scope", scope);
      _params.put("client_source", client_source);
      return (ScriptEvalProxyResponse) _call(appid, serviceUrl + "rest/deletesecrets", _params, ScriptEvalProxyResponse.class);
  }

  public ScriptEvalProxyResponse deleteSecrets(String appid, String session, String secretNames, String scope, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secretNames", secretNames);
      _params.put("scope", scope);
      _params.put("client_source", client_source);
      return (ScriptEvalProxyResponse) _call(appid, serviceUrl + "rest/deletesecrets", _params, headers, ScriptEvalProxyResponse.class);
  }

  public Secrets deleteSecrets(final String appid, final String session, final String secretNames, final String scope, final Callback callback){
      new Thread(() -> {
              ScriptEvalProxyResponse response = deleteSecrets(appid, session, secretNames, scope);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Secrets deleteSecrets(final String appid, final String session, final String secretNames, final String scope, final Map headers, final Callback callback){
      new Thread(() -> {
              ScriptEvalProxyResponse response = deleteSecrets(appid, session, secretNames, scope);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public ScriptEvalProxyResponse deleteSecrets(String appid, String session, String secretNames){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secretNames", secretNames);
      _params.put("client_source", client_source);
      return (ScriptEvalProxyResponse) _call(appid, serviceUrl + "rest/deletesecrets", _params, ScriptEvalProxyResponse.class);
  }

  public ScriptEvalProxyResponse deleteSecrets(String appid, String session, String secretNames, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secretNames", secretNames);
      _params.put("client_source", client_source);
      return (ScriptEvalProxyResponse) _call(appid, serviceUrl + "rest/deletesecrets", _params, headers, ScriptEvalProxyResponse.class);
  }

  public Secrets deleteSecrets(final String appid, final String session, final String secretNames, final Callback callback){
      new Thread(() -> {
              ScriptEvalProxyResponse response = deleteSecrets(appid, session, secretNames);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Secrets deleteSecrets(final String appid, final String session, final String secretNames, final Map headers, final Callback callback){
      new Thread(() -> {
              ScriptEvalProxyResponse response = deleteSecrets(appid, session, secretNames);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public ScriptEvalProxyResponse deleteSecrets(String secretNames, String scope){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secretNames", secretNames);
      _params.put("scope", scope);
      _params.put("client_source", client_source);
      return (ScriptEvalProxyResponse) _call(appid, serviceUrl + "rest/deletesecrets", _params, ScriptEvalProxyResponse.class);
  }

  public ScriptEvalProxyResponse deleteSecrets(String secretNames, String scope, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secretNames", secretNames);
      _params.put("scope", scope);
      _params.put("client_source", client_source);
      return (ScriptEvalProxyResponse) _call(appid, serviceUrl + "rest/deletesecrets", _params, headers, ScriptEvalProxyResponse.class);
  }

  public Secrets deleteSecrets(final String secretNames, final String scope, final Callback callback){
      new Thread(() -> {
              ScriptEvalProxyResponse response = deleteSecrets(secretNames, scope);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Secrets deleteSecrets(final String secretNames, final String scope, final Map headers, final Callback callback){
      new Thread(() -> {
              ScriptEvalProxyResponse response = deleteSecrets(secretNames, scope);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public ScriptEvalProxyResponse deleteSecrets(String secretNames){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secretNames", secretNames);
      _params.put("client_source", client_source);
      return (ScriptEvalProxyResponse) _call(appid, serviceUrl + "rest/deletesecrets", _params, ScriptEvalProxyResponse.class);
  }

  public ScriptEvalProxyResponse deleteSecrets(String secretNames, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("secretNames", secretNames);
      _params.put("client_source", client_source);
      return (ScriptEvalProxyResponse) _call(appid, serviceUrl + "rest/deletesecrets", _params, headers, ScriptEvalProxyResponse.class);
  }

  public Secrets deleteSecrets(final String secretNames, final Callback callback){
      new Thread(() -> {
              ScriptEvalProxyResponse response = deleteSecrets(secretNames);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Secrets deleteSecrets(final String secretNames, final Map headers, final Callback callback){
      new Thread(() -> {
              ScriptEvalProxyResponse response = deleteSecrets(secretNames);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public ScriptEvalProxyResponse deleteSecrets(Map _params){
      if (!_params.containsKey("appid")) _params.put("appid", appid);
      if (!_params.containsKey("session")) _params.put("session", session);
      if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
      return (ScriptEvalProxyResponse) _call(appid, serviceUrl + "rest/deletesecrets", _params, ScriptEvalProxyResponse.class);
  }

  public ScriptEvalProxyResponse deleteSecrets(Map _params, Map headers){
      if (!_params.containsKey("appid")) _params.put("appid", appid);
      if (!_params.containsKey("session")) _params.put("session", session);
      if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
      return (ScriptEvalProxyResponse) _call(appid, serviceUrl + "rest/deletesecrets", _params, headers, ScriptEvalProxyResponse.class);
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy