com.databricks.sdk.service.workspace.RepoInfo Maven / Gradle / Ivy
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
package com.databricks.sdk.service.workspace;
import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
@Generated
public class RepoInfo {
/** Branch that the local version of the repo is checked out to. */
@JsonProperty("branch")
private String branch;
/** SHA-1 hash representing the commit ID of the current HEAD of the repo. */
@JsonProperty("head_commit_id")
private String headCommitId;
/** ID of the repo object in the workspace. */
@JsonProperty("id")
private Long id;
/**
* Desired path for the repo in the workspace. Almost any path in the workspace can be chosen. If
* repo is created in /Repos, path must be in the format /Repos/{folder}/{repo-name}.
*/
@JsonProperty("path")
private String path;
/**
* Git provider. This field is case-insensitive. The available Git providers are gitHub,
* bitbucketCloud, gitLab, azureDevOpsServices, gitHubEnterprise, bitbucketServer,
* gitLabEnterpriseEdition and awsCodeCommit.
*/
@JsonProperty("provider")
private String provider;
/** */
@JsonProperty("sparse_checkout")
private SparseCheckout sparseCheckout;
/** URL of the Git repository to be linked. */
@JsonProperty("url")
private String url;
public RepoInfo setBranch(String branch) {
this.branch = branch;
return this;
}
public String getBranch() {
return branch;
}
public RepoInfo setHeadCommitId(String headCommitId) {
this.headCommitId = headCommitId;
return this;
}
public String getHeadCommitId() {
return headCommitId;
}
public RepoInfo setId(Long id) {
this.id = id;
return this;
}
public Long getId() {
return id;
}
public RepoInfo setPath(String path) {
this.path = path;
return this;
}
public String getPath() {
return path;
}
public RepoInfo setProvider(String provider) {
this.provider = provider;
return this;
}
public String getProvider() {
return provider;
}
public RepoInfo setSparseCheckout(SparseCheckout sparseCheckout) {
this.sparseCheckout = sparseCheckout;
return this;
}
public SparseCheckout getSparseCheckout() {
return sparseCheckout;
}
public RepoInfo setUrl(String url) {
this.url = url;
return this;
}
public String getUrl() {
return url;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
RepoInfo that = (RepoInfo) o;
return Objects.equals(branch, that.branch)
&& Objects.equals(headCommitId, that.headCommitId)
&& Objects.equals(id, that.id)
&& Objects.equals(path, that.path)
&& Objects.equals(provider, that.provider)
&& Objects.equals(sparseCheckout, that.sparseCheckout)
&& Objects.equals(url, that.url);
}
@Override
public int hashCode() {
return Objects.hash(branch, headCommitId, id, path, provider, sparseCheckout, url);
}
@Override
public String toString() {
return new ToStringer(RepoInfo.class)
.add("branch", branch)
.add("headCommitId", headCommitId)
.add("id", id)
.add("path", path)
.add("provider", provider)
.add("sparseCheckout", sparseCheckout)
.add("url", url)
.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy