Class EnvironmentCreateParam


public class EnvironmentCreateParam extends FlattenHalfDuplexParamBase
  • Constructor Details

  • Method Details

    • getHttpBody

      public com.google.gson.JsonObject getHttpBody()
      Description copied from class: HalfDuplexParamBase
      Get the batch request data. Http body include {"model": "model_name", "input": "input data", "parameters": "The request parameters"}
      Specified by:
      getHttpBody in class HalfDuplexParamBase
      Returns:
      The http request body
    • builder

    • getName

      @NonNull public @NonNull String getName()
    • getConfig

      @NonNull public @NonNull Map<String,Object> getConfig()
      Environment runtime configuration (open structure, aligned with server-side JSONObject).

      Known keys:

      • type (String) — hosting type, e.g. "cloud"
      • networking (Map) — e.g. {"type": "unrestricted"}
      • packages (Map<String, List<String>>) — e.g. {"pip": ["numpy"]}

      Example:

      
       Map<String, Object> config = new HashMap<>();
       config.put("type", "cloud");
       config.put("networking", Collections.singletonMap("type", "unrestricted"));
      
       Map<String, List<String>> packages = new HashMap<>();
       packages.put("pip", Arrays.asList("numpy", "pandas"));
       config.put("packages", packages);
       
    • getDescription

      public String getDescription()
    • getScope

      public String getScope()
    • getMetadata

      public Map<String,String> getMetadata()
    • setName

      public void setName(@NonNull @NonNull String name)
    • setConfig

      public void setConfig(@NonNull @NonNull Map<String,Object> config)
      Environment runtime configuration (open structure, aligned with server-side JSONObject).

      Known keys:

      • type (String) — hosting type, e.g. "cloud"
      • networking (Map) — e.g. {"type": "unrestricted"}
      • packages (Map<String, List<String>>) — e.g. {"pip": ["numpy"]}

      Example:

      
       Map<String, Object> config = new HashMap<>();
       config.put("type", "cloud");
       config.put("networking", Collections.singletonMap("type", "unrestricted"));
      
       Map<String, List<String>> packages = new HashMap<>();
       packages.put("pip", Arrays.asList("numpy", "pandas"));
       config.put("packages", packages);
       
    • setDescription

      public void setDescription(String description)
    • setScope

      public void setScope(String scope)
    • setMetadata

      public void setMetadata(Map<String,String> metadata)
    • toString

      public String toString()
      Overrides:
      toString in class FlattenHalfDuplexParamBase
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class FlattenHalfDuplexParamBase
    • canEqual

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class FlattenHalfDuplexParamBase
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class FlattenHalfDuplexParamBase