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

com.databricks.sdk.service.ml.RegistryWebhook 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.ml;

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;

@Generated
public class RegistryWebhook {
  /** Creation time of the object, as a Unix timestamp in milliseconds. */
  @JsonProperty("creation_timestamp")
  private Long creationTimestamp;

  /** User-specified description for the webhook. */
  @JsonProperty("description")
  private String description;

  /**
   * Events that can trigger a registry webhook: * `MODEL_VERSION_CREATED`: A new model version was
   * created for the associated model.
   *
   * 

* `MODEL_VERSION_TRANSITIONED_STAGE`: A model version’s stage was changed. * *

* `TRANSITION_REQUEST_CREATED`: A user requested a model version’s stage be transitioned. * *

* `COMMENT_CREATED`: A user wrote a comment on a registered model. * *

* `REGISTERED_MODEL_CREATED`: A new registered model was created. This event type can only * be specified for a registry-wide webhook, which can be created by not specifying a model name * in the create request. * *

* `MODEL_VERSION_TAG_SET`: A user set a tag on the model version. * *

* `MODEL_VERSION_TRANSITIONED_TO_STAGING`: A model version was transitioned to staging. * *

* `MODEL_VERSION_TRANSITIONED_TO_PRODUCTION`: A model version was transitioned to * production. * *

* `MODEL_VERSION_TRANSITIONED_TO_ARCHIVED`: A model version was archived. * *

* `TRANSITION_REQUEST_TO_STAGING_CREATED`: A user requested a model version be transitioned * to staging. * *

* `TRANSITION_REQUEST_TO_PRODUCTION_CREATED`: A user requested a model version be * transitioned to production. * *

* `TRANSITION_REQUEST_TO_ARCHIVED_CREATED`: A user requested a model version be archived. */ @JsonProperty("events") private Collection events; /** */ @JsonProperty("http_url_spec") private HttpUrlSpecWithoutSecret httpUrlSpec; /** Webhook ID */ @JsonProperty("id") private String id; /** */ @JsonProperty("job_spec") private JobSpecWithoutSecret jobSpec; /** Time of the object at last update, as a Unix timestamp in milliseconds. */ @JsonProperty("last_updated_timestamp") private Long lastUpdatedTimestamp; /** Name of the model whose events would trigger this webhook. */ @JsonProperty("model_name") private String modelName; /** * Enable or disable triggering the webhook, or put the webhook into test mode. The default is * `ACTIVE`: * `ACTIVE`: Webhook is triggered when an associated event happens. * *

* `DISABLED`: Webhook is not triggered. * *

* `TEST_MODE`: Webhook can be triggered through the test endpoint, but is not triggered on a * real event. */ @JsonProperty("status") private RegistryWebhookStatus status; public RegistryWebhook setCreationTimestamp(Long creationTimestamp) { this.creationTimestamp = creationTimestamp; return this; } public Long getCreationTimestamp() { return creationTimestamp; } public RegistryWebhook setDescription(String description) { this.description = description; return this; } public String getDescription() { return description; } public RegistryWebhook setEvents(Collection events) { this.events = events; return this; } public Collection getEvents() { return events; } public RegistryWebhook setHttpUrlSpec(HttpUrlSpecWithoutSecret httpUrlSpec) { this.httpUrlSpec = httpUrlSpec; return this; } public HttpUrlSpecWithoutSecret getHttpUrlSpec() { return httpUrlSpec; } public RegistryWebhook setId(String id) { this.id = id; return this; } public String getId() { return id; } public RegistryWebhook setJobSpec(JobSpecWithoutSecret jobSpec) { this.jobSpec = jobSpec; return this; } public JobSpecWithoutSecret getJobSpec() { return jobSpec; } public RegistryWebhook setLastUpdatedTimestamp(Long lastUpdatedTimestamp) { this.lastUpdatedTimestamp = lastUpdatedTimestamp; return this; } public Long getLastUpdatedTimestamp() { return lastUpdatedTimestamp; } public RegistryWebhook setModelName(String modelName) { this.modelName = modelName; return this; } public String getModelName() { return modelName; } public RegistryWebhook setStatus(RegistryWebhookStatus status) { this.status = status; return this; } public RegistryWebhookStatus getStatus() { return status; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; RegistryWebhook that = (RegistryWebhook) o; return Objects.equals(creationTimestamp, that.creationTimestamp) && Objects.equals(description, that.description) && Objects.equals(events, that.events) && Objects.equals(httpUrlSpec, that.httpUrlSpec) && Objects.equals(id, that.id) && Objects.equals(jobSpec, that.jobSpec) && Objects.equals(lastUpdatedTimestamp, that.lastUpdatedTimestamp) && Objects.equals(modelName, that.modelName) && Objects.equals(status, that.status); } @Override public int hashCode() { return Objects.hash( creationTimestamp, description, events, httpUrlSpec, id, jobSpec, lastUpdatedTimestamp, modelName, status); } @Override public String toString() { return new ToStringer(RegistryWebhook.class) .add("creationTimestamp", creationTimestamp) .add("description", description) .add("events", events) .add("httpUrlSpec", httpUrlSpec) .add("id", id) .add("jobSpec", jobSpec) .add("lastUpdatedTimestamp", lastUpdatedTimestamp) .add("modelName", modelName) .add("status", status) .toString(); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy