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

org.openmetadata.schema.metadataIngestion.dbtconfig.DbtAzureConfig Maven / Gradle / Ivy

There is a newer version: 1.6.0-rc1
Show newest version

package org.openmetadata.schema.metadataIngestion.dbtconfig;

import java.util.HashMap;
import java.util.Map;
import javax.annotation.processing.Generated;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonValue;
import org.openmetadata.schema.security.credentials.AzureCredentials;


/**
 * DBT Azure Config
 * 

* DBT Catalog, Manifest and Run Results files in Azure bucket. We will search for catalog.json, manifest.json and run_results.json. * */ @JsonInclude(JsonInclude.Include.NON_NULL) @JsonPropertyOrder({ "dbtConfigType", "dbtSecurityConfig", "dbtPrefixConfig" }) @Generated("jsonschema2pojo") public class DbtAzureConfig { /** * dbt Configuration type * (Required) * */ @JsonProperty("dbtConfigType") @JsonPropertyDescription("dbt Configuration type") @NotNull private DbtAzureConfig.DbtConfigType dbtConfigType = DbtAzureConfig.DbtConfigType.fromValue("azure"); /** * AzureCredentials *

* Azure Cloud Credentials * (Required) * */ @JsonProperty("dbtSecurityConfig") @JsonPropertyDescription("Azure Cloud Credentials") @Valid @NotNull private AzureCredentials dbtSecurityConfig; /** * DBT Prefix Config *

* Details of the bucket where the dbt files are stored * */ @JsonProperty("dbtPrefixConfig") @JsonPropertyDescription("Details of the bucket where the dbt files are stored") @Valid private DbtPrefixConfig dbtPrefixConfig; /** * dbt Configuration type * (Required) * */ @JsonProperty("dbtConfigType") public DbtAzureConfig.DbtConfigType getDbtConfigType() { return dbtConfigType; } /** * dbt Configuration type * (Required) * */ @JsonProperty("dbtConfigType") public void setDbtConfigType(DbtAzureConfig.DbtConfigType dbtConfigType) { this.dbtConfigType = dbtConfigType; } public DbtAzureConfig withDbtConfigType(DbtAzureConfig.DbtConfigType dbtConfigType) { this.dbtConfigType = dbtConfigType; return this; } /** * AzureCredentials *

* Azure Cloud Credentials * (Required) * */ @JsonProperty("dbtSecurityConfig") public AzureCredentials getDbtSecurityConfig() { return dbtSecurityConfig; } /** * AzureCredentials *

* Azure Cloud Credentials * (Required) * */ @JsonProperty("dbtSecurityConfig") public void setDbtSecurityConfig(AzureCredentials dbtSecurityConfig) { this.dbtSecurityConfig = dbtSecurityConfig; } public DbtAzureConfig withDbtSecurityConfig(AzureCredentials dbtSecurityConfig) { this.dbtSecurityConfig = dbtSecurityConfig; return this; } /** * DBT Prefix Config *

* Details of the bucket where the dbt files are stored * */ @JsonProperty("dbtPrefixConfig") public DbtPrefixConfig getDbtPrefixConfig() { return dbtPrefixConfig; } /** * DBT Prefix Config *

* Details of the bucket where the dbt files are stored * */ @JsonProperty("dbtPrefixConfig") public void setDbtPrefixConfig(DbtPrefixConfig dbtPrefixConfig) { this.dbtPrefixConfig = dbtPrefixConfig; } public DbtAzureConfig withDbtPrefixConfig(DbtPrefixConfig dbtPrefixConfig) { this.dbtPrefixConfig = dbtPrefixConfig; return this; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(DbtAzureConfig.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('['); sb.append("dbtConfigType"); sb.append('='); sb.append(((this.dbtConfigType == null)?"":this.dbtConfigType)); sb.append(','); sb.append("dbtSecurityConfig"); sb.append('='); sb.append(((this.dbtSecurityConfig == null)?"":this.dbtSecurityConfig)); sb.append(','); sb.append("dbtPrefixConfig"); sb.append('='); sb.append(((this.dbtPrefixConfig == null)?"":this.dbtPrefixConfig)); sb.append(','); if (sb.charAt((sb.length()- 1)) == ',') { sb.setCharAt((sb.length()- 1), ']'); } else { sb.append(']'); } return sb.toString(); } @Override public int hashCode() { int result = 1; result = ((result* 31)+((this.dbtConfigType == null)? 0 :this.dbtConfigType.hashCode())); result = ((result* 31)+((this.dbtPrefixConfig == null)? 0 :this.dbtPrefixConfig.hashCode())); result = ((result* 31)+((this.dbtSecurityConfig == null)? 0 :this.dbtSecurityConfig.hashCode())); return result; } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof DbtAzureConfig) == false) { return false; } DbtAzureConfig rhs = ((DbtAzureConfig) other); return ((((this.dbtConfigType == rhs.dbtConfigType)||((this.dbtConfigType!= null)&&this.dbtConfigType.equals(rhs.dbtConfigType)))&&((this.dbtPrefixConfig == rhs.dbtPrefixConfig)||((this.dbtPrefixConfig!= null)&&this.dbtPrefixConfig.equals(rhs.dbtPrefixConfig))))&&((this.dbtSecurityConfig == rhs.dbtSecurityConfig)||((this.dbtSecurityConfig!= null)&&this.dbtSecurityConfig.equals(rhs.dbtSecurityConfig)))); } /** * dbt Configuration type * */ @Generated("jsonschema2pojo") public enum DbtConfigType { AZURE("azure"); private final String value; private final static Map CONSTANTS = new HashMap(); static { for (DbtAzureConfig.DbtConfigType c: values()) { CONSTANTS.put(c.value, c); } } DbtConfigType(String value) { this.value = value; } @Override public String toString() { return this.value; } @JsonValue public String value() { return this.value; } @JsonCreator public static DbtAzureConfig.DbtConfigType fromValue(String value) { DbtAzureConfig.DbtConfigType constant = CONSTANTS.get(value); if (constant == null) { throw new IllegalArgumentException(value); } else { return constant; } } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy