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

org.openmetadata.schema.metadataIngestion.StorageServiceMetadataPipeline Maven / Gradle / Ivy

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

package org.openmetadata.schema.metadataIngestion;

import java.util.HashMap;
import java.util.Map;
import javax.annotation.processing.Generated;
import javax.validation.Valid;
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.annotations.MaskedField;


/**
 * StorageServiceMetadataPipeline
 * 

* StorageService Metadata Pipeline Configuration. * */ @JsonInclude(JsonInclude.Include.NON_NULL) @JsonPropertyOrder({ "type", "containerFilterPattern", "storageMetadataConfigSource", "markDeletedContainers", "overrideMetadata", "includeTags" }) @Generated("jsonschema2pojo") public class StorageServiceMetadataPipeline { /** * Object Store Source Config Metadata Pipeline type * */ @JsonProperty("type") @JsonPropertyDescription("Object Store Source Config Metadata Pipeline type") private StorageServiceMetadataPipeline.StorageMetadataConfigType type = StorageServiceMetadataPipeline.StorageMetadataConfigType.fromValue("StorageMetadata"); /** * Regex to only fetch dashboards or charts that matches the pattern. * */ @JsonProperty("containerFilterPattern") @JsonPropertyDescription("Regex to only fetch dashboards or charts that matches the pattern.") @Valid private FilterPattern containerFilterPattern; /** * Storage Metadata Configuration Source *

* * */ @JsonProperty("storageMetadataConfigSource") @MaskedField private Object storageMetadataConfigSource; /** * Mark Deleted Containers *

* Optional configuration to soft delete containers in OpenMetadata if the source containers are deleted. Also, if the topic is deleted, all the associated entities with that containers will be deleted * */ @JsonProperty("markDeletedContainers") @JsonPropertyDescription("Optional configuration to soft delete containers in OpenMetadata if the source containers are deleted. Also, if the topic is deleted, all the associated entities with that containers will be deleted") private Boolean markDeletedContainers = true; /** * Override Metadata *

* Set the 'Override Metadata' toggle to control whether to override the existing metadata in the OpenMetadata server with the metadata fetched from the source. If the toggle is set to true, the metadata fetched from the source will override the existing metadata in the OpenMetadata server. If the toggle is set to false, the metadata fetched from the source will not override the existing metadata in the OpenMetadata server. This is applicable for fields like description, tags, owner and displayName * */ @JsonProperty("overrideMetadata") @JsonPropertyDescription("Set the 'Override Metadata' toggle to control whether to override the existing metadata in the OpenMetadata server with the metadata fetched from the source. If the toggle is set to true, the metadata fetched from the source will override the existing metadata in the OpenMetadata server. If the toggle is set to false, the metadata fetched from the source will not override the existing metadata in the OpenMetadata server. This is applicable for fields like description, tags, owner and displayName") private Boolean overrideMetadata = false; /** * Include Tags *

* Optional configuration to toggle the tags ingestion. * */ @JsonProperty("includeTags") @JsonPropertyDescription("Optional configuration to toggle the tags ingestion.") private Boolean includeTags = false; /** * Object Store Source Config Metadata Pipeline type * */ @JsonProperty("type") public StorageServiceMetadataPipeline.StorageMetadataConfigType getType() { return type; } /** * Object Store Source Config Metadata Pipeline type * */ @JsonProperty("type") public void setType(StorageServiceMetadataPipeline.StorageMetadataConfigType type) { this.type = type; } public StorageServiceMetadataPipeline withType(StorageServiceMetadataPipeline.StorageMetadataConfigType type) { this.type = type; return this; } /** * Regex to only fetch dashboards or charts that matches the pattern. * */ @JsonProperty("containerFilterPattern") public FilterPattern getContainerFilterPattern() { return containerFilterPattern; } /** * Regex to only fetch dashboards or charts that matches the pattern. * */ @JsonProperty("containerFilterPattern") public void setContainerFilterPattern(FilterPattern containerFilterPattern) { this.containerFilterPattern = containerFilterPattern; } public StorageServiceMetadataPipeline withContainerFilterPattern(FilterPattern containerFilterPattern) { this.containerFilterPattern = containerFilterPattern; return this; } /** * Storage Metadata Configuration Source *

* * */ @JsonProperty("storageMetadataConfigSource") @MaskedField public Object getStorageMetadataConfigSource() { return storageMetadataConfigSource; } /** * Storage Metadata Configuration Source *

* * */ @JsonProperty("storageMetadataConfigSource") @MaskedField public void setStorageMetadataConfigSource(Object storageMetadataConfigSource) { this.storageMetadataConfigSource = storageMetadataConfigSource; } public StorageServiceMetadataPipeline withStorageMetadataConfigSource(Object storageMetadataConfigSource) { this.storageMetadataConfigSource = storageMetadataConfigSource; return this; } /** * Mark Deleted Containers *

* Optional configuration to soft delete containers in OpenMetadata if the source containers are deleted. Also, if the topic is deleted, all the associated entities with that containers will be deleted * */ @JsonProperty("markDeletedContainers") public Boolean getMarkDeletedContainers() { return markDeletedContainers; } /** * Mark Deleted Containers *

* Optional configuration to soft delete containers in OpenMetadata if the source containers are deleted. Also, if the topic is deleted, all the associated entities with that containers will be deleted * */ @JsonProperty("markDeletedContainers") public void setMarkDeletedContainers(Boolean markDeletedContainers) { this.markDeletedContainers = markDeletedContainers; } public StorageServiceMetadataPipeline withMarkDeletedContainers(Boolean markDeletedContainers) { this.markDeletedContainers = markDeletedContainers; return this; } /** * Override Metadata *

* Set the 'Override Metadata' toggle to control whether to override the existing metadata in the OpenMetadata server with the metadata fetched from the source. If the toggle is set to true, the metadata fetched from the source will override the existing metadata in the OpenMetadata server. If the toggle is set to false, the metadata fetched from the source will not override the existing metadata in the OpenMetadata server. This is applicable for fields like description, tags, owner and displayName * */ @JsonProperty("overrideMetadata") public Boolean getOverrideMetadata() { return overrideMetadata; } /** * Override Metadata *

* Set the 'Override Metadata' toggle to control whether to override the existing metadata in the OpenMetadata server with the metadata fetched from the source. If the toggle is set to true, the metadata fetched from the source will override the existing metadata in the OpenMetadata server. If the toggle is set to false, the metadata fetched from the source will not override the existing metadata in the OpenMetadata server. This is applicable for fields like description, tags, owner and displayName * */ @JsonProperty("overrideMetadata") public void setOverrideMetadata(Boolean overrideMetadata) { this.overrideMetadata = overrideMetadata; } public StorageServiceMetadataPipeline withOverrideMetadata(Boolean overrideMetadata) { this.overrideMetadata = overrideMetadata; return this; } /** * Include Tags *

* Optional configuration to toggle the tags ingestion. * */ @JsonProperty("includeTags") public Boolean getIncludeTags() { return includeTags; } /** * Include Tags *

* Optional configuration to toggle the tags ingestion. * */ @JsonProperty("includeTags") public void setIncludeTags(Boolean includeTags) { this.includeTags = includeTags; } public StorageServiceMetadataPipeline withIncludeTags(Boolean includeTags) { this.includeTags = includeTags; return this; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(StorageServiceMetadataPipeline.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('['); sb.append("type"); sb.append('='); sb.append(((this.type == null)?"":this.type)); sb.append(','); sb.append("containerFilterPattern"); sb.append('='); sb.append(((this.containerFilterPattern == null)?"":this.containerFilterPattern)); sb.append(','); sb.append("storageMetadataConfigSource"); sb.append('='); sb.append(((this.storageMetadataConfigSource == null)?"":this.storageMetadataConfigSource)); sb.append(','); sb.append("markDeletedContainers"); sb.append('='); sb.append(((this.markDeletedContainers == null)?"":this.markDeletedContainers)); sb.append(','); sb.append("overrideMetadata"); sb.append('='); sb.append(((this.overrideMetadata == null)?"":this.overrideMetadata)); sb.append(','); sb.append("includeTags"); sb.append('='); sb.append(((this.includeTags == null)?"":this.includeTags)); 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.containerFilterPattern == null)? 0 :this.containerFilterPattern.hashCode())); result = ((result* 31)+((this.storageMetadataConfigSource == null)? 0 :this.storageMetadataConfigSource.hashCode())); result = ((result* 31)+((this.markDeletedContainers == null)? 0 :this.markDeletedContainers.hashCode())); result = ((result* 31)+((this.overrideMetadata == null)? 0 :this.overrideMetadata.hashCode())); result = ((result* 31)+((this.includeTags == null)? 0 :this.includeTags.hashCode())); result = ((result* 31)+((this.type == null)? 0 :this.type.hashCode())); return result; } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof StorageServiceMetadataPipeline) == false) { return false; } StorageServiceMetadataPipeline rhs = ((StorageServiceMetadataPipeline) other); return (((((((this.containerFilterPattern == rhs.containerFilterPattern)||((this.containerFilterPattern!= null)&&this.containerFilterPattern.equals(rhs.containerFilterPattern)))&&((this.storageMetadataConfigSource == rhs.storageMetadataConfigSource)||((this.storageMetadataConfigSource!= null)&&this.storageMetadataConfigSource.equals(rhs.storageMetadataConfigSource))))&&((this.markDeletedContainers == rhs.markDeletedContainers)||((this.markDeletedContainers!= null)&&this.markDeletedContainers.equals(rhs.markDeletedContainers))))&&((this.overrideMetadata == rhs.overrideMetadata)||((this.overrideMetadata!= null)&&this.overrideMetadata.equals(rhs.overrideMetadata))))&&((this.includeTags == rhs.includeTags)||((this.includeTags!= null)&&this.includeTags.equals(rhs.includeTags))))&&((this.type == rhs.type)||((this.type!= null)&&this.type.equals(rhs.type)))); } /** * Object Store Source Config Metadata Pipeline type * */ @Generated("jsonschema2pojo") public enum StorageMetadataConfigType { STORAGE_METADATA("StorageMetadata"); private final String value; private final static Map CONSTANTS = new HashMap(); static { for (StorageServiceMetadataPipeline.StorageMetadataConfigType c: values()) { CONSTANTS.put(c.value, c); } } StorageMetadataConfigType(String value) { this.value = value; } @Override public String toString() { return this.value; } @JsonValue public String value() { return this.value; } @JsonCreator public static StorageServiceMetadataPipeline.StorageMetadataConfigType fromValue(String value) { StorageServiceMetadataPipeline.StorageMetadataConfigType constant = CONSTANTS.get(value); if (constant == null) { throw new IllegalArgumentException(value); } else { return constant; } } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy