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

com.databricks.sdk.service.compute.Environment Maven / Gradle / Ivy

There is a newer version: 0.35.0
Show newest version
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.

package com.databricks.sdk.service.compute;

import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Collection;
import java.util.Objects;

/**
 * The environment entity used to preserve serverless environment side panel and jobs' environment
 * for non-notebook task. In this minimal environment spec, only pip dependencies are supported.
 */
@Generated
public class Environment {
  /**
   * Client version used by the environment The client is the user-facing environment of the
   * runtime. Each client comes with a specific set of pre-installed libraries. The version is a
   * string, consisting of the major client version.
   */
  @JsonProperty("client")
  private String client;

  /**
   * List of pip dependencies, as supported by the version of pip in this environment. Each
   * dependency is a pip requirement file line
   * https://pip.pypa.io/en/stable/reference/requirements-file-format/ Allowed dependency could be
   * , , (WSFS or Volumes in
   * Databricks),  E.g. dependencies: ["foo==0.0.1", "-r
   * /Workspace/test/requirements.txt"]
   */
  @JsonProperty("dependencies")
  private Collection dependencies;

  public Environment setClient(String client) {
    this.client = client;
    return this;
  }

  public String getClient() {
    return client;
  }

  public Environment setDependencies(Collection dependencies) {
    this.dependencies = dependencies;
    return this;
  }

  public Collection getDependencies() {
    return dependencies;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    Environment that = (Environment) o;
    return Objects.equals(client, that.client) && Objects.equals(dependencies, that.dependencies);
  }

  @Override
  public int hashCode() {
    return Objects.hash(client, dependencies);
  }

  @Override
  public String toString() {
    return new ToStringer(Environment.class)
        .add("client", client)
        .add("dependencies", dependencies)
        .toString();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy