Class FlowProject

All Implemented Interfaces:
IAsset, IFlow, IFlowProject, IReferenceable, AuditDetail, Serializable, Comparable<Reference>

@Generated("com.atlan.generators.ModelGeneratorV2") public class FlowProject extends Asset implements IFlowProject, IFlow, IAsset, IReferenceable
A project, workspace or namespace that is used to organize data processing.
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • trimToReference

      public FlowProject trimToReference() throws InvalidRequestException
      Builds the minimal object necessary to create a relationship to a FlowProject, from a potentially more-complete FlowProject object.
      Overrides:
      trimToReference in class Asset
      Returns:
      the minimal object necessary to relate to the FlowProject
      Throws:
      InvalidRequestException - if any of the minimal set of required properties for a FlowProject relationship are not found in the initial object
    • select

      public static FluentSearch.FluentSearchBuilder<?,?> select(AtlanClient client)
      Start a fluent search that will return all FlowProject assets. Additional conditions can be chained onto the returned search before any asset retrieval is attempted, ensuring all conditions are pushed-down for optimal retrieval. Only active (non-archived) FlowProject assets will be included.
      Parameters:
      client - connectivity to the Atlan tenant from which to retrieve the assets
      Returns:
      a fluent search that includes all FlowProject assets
    • select

      public static FluentSearch.FluentSearchBuilder<?,?> select(AtlanClient client, boolean includeArchived)
      Start a fluent search that will return all FlowProject assets. Additional conditions can be chained onto the returned search before any asset retrieval is attempted, ensuring all conditions are pushed-down for optimal retrieval.
      Parameters:
      client - connectivity to the Atlan tenant from which to retrieve the assets
      includeArchived - when true, archived (soft-deleted) FlowProjects will be included
      Returns:
      a fluent search that includes all FlowProject assets
    • refByGuid

      public static FlowProject refByGuid(String guid)
      Reference to a FlowProject by GUID. Use this to create a relationship to this FlowProject, where the relationship should be replaced.
      Parameters:
      guid - the GUID of the FlowProject to reference
      Returns:
      reference to a FlowProject that can be used for defining a relationship to a FlowProject
    • refByGuid

      public static FlowProject refByGuid(String guid, Reference.SaveSemantic semantic)
      Reference to a FlowProject by GUID. Use this to create a relationship to this FlowProject, where you want to further control how that relationship should be updated (i.e. replaced, appended, or removed).
      Parameters:
      guid - the GUID of the FlowProject to reference
      semantic - how to save this relationship (replace all with this, append it, or remove it)
      Returns:
      reference to a FlowProject that can be used for defining a relationship to a FlowProject
    • refByQualifiedName

      public static FlowProject refByQualifiedName(String qualifiedName)
      Reference to a FlowProject by qualifiedName. Use this to create a relationship to this FlowProject, where the relationship should be replaced.
      Parameters:
      qualifiedName - the qualifiedName of the FlowProject to reference
      Returns:
      reference to a FlowProject that can be used for defining a relationship to a FlowProject
    • refByQualifiedName

      public static FlowProject refByQualifiedName(String qualifiedName, Reference.SaveSemantic semantic)
      Reference to a FlowProject by qualifiedName. Use this to create a relationship to this FlowProject, where you want to further control how that relationship should be updated (i.e. replaced, appended, or removed).
      Parameters:
      qualifiedName - the qualifiedName of the FlowProject to reference
      semantic - how to save this relationship (replace all with this, append it, or remove it)
      Returns:
      reference to a FlowProject that can be used for defining a relationship to a FlowProject
    • get

      public static FlowProject get(AtlanClient client, String id) throws AtlanException
      Retrieves a FlowProject by one of its identifiers, complete with all of its relationships.
      Parameters:
      client - connectivity to the Atlan tenant from which to retrieve the asset
      id - of the FlowProject to retrieve, either its GUID or its full qualifiedName
      Returns:
      the requested full FlowProject, complete with all of its relationships
      Throws:
      AtlanException - on any error during the API invocation, such as the NotFoundException if the FlowProject does not exist or the provided GUID is not a FlowProject
    • get

      public static FlowProject get(AtlanClient client, String id, boolean includeAllRelationships) throws AtlanException
      Retrieves a FlowProject by one of its identifiers, optionally complete with all of its relationships.
      Parameters:
      client - connectivity to the Atlan tenant from which to retrieve the asset
      id - of the FlowProject to retrieve, either its GUID or its full qualifiedName
      includeAllRelationships - if true, all the asset's relationships will also be retrieved; if false, no relationships will be retrieved
      Returns:
      the requested full FlowProject, optionally complete with all of its relationships
      Throws:
      AtlanException - on any error during the API invocation, such as the NotFoundException if the FlowProject does not exist or the provided GUID is not a FlowProject
    • get

      public static FlowProject get(AtlanClient client, String id, Collection<AtlanField> attributes) throws AtlanException
      Retrieves a FlowProject by one of its identifiers, with only the requested attributes (and relationships).
      Parameters:
      client - connectivity to the Atlan tenant from which to retrieve the asset
      id - of the FlowProject to retrieve, either its GUID or its full qualifiedName
      attributes - to retrieve for the FlowProject, including any relationships
      Returns:
      the requested FlowProject, with only its minimal information and the requested attributes (and relationships)
      Throws:
      AtlanException - on any error during the API invocation, such as the NotFoundException if the FlowProject does not exist or the provided GUID is not a FlowProject
    • get

      public static FlowProject get(AtlanClient client, String id, Collection<AtlanField> attributes, Collection<AtlanField> attributesOnRelated) throws AtlanException
      Retrieves a FlowProject by one of its identifiers, with only the requested attributes (and relationships).
      Parameters:
      client - connectivity to the Atlan tenant from which to retrieve the asset
      id - of the FlowProject to retrieve, either its GUID or its full qualifiedName
      attributes - to retrieve for the FlowProject, including any relationships
      attributesOnRelated - to retrieve on each relationship retrieved for the FlowProject
      Returns:
      the requested FlowProject, with only its minimal information and the requested attributes (and relationships)
      Throws:
      AtlanException - on any error during the API invocation, such as the NotFoundException if the FlowProject does not exist or the provided GUID is not a FlowProject
    • restore

      public static boolean restore(AtlanClient client, String qualifiedName) throws AtlanException
      Restore the archived (soft-deleted) FlowProject to active.
      Parameters:
      client - connectivity to the Atlan tenant on which to restore the asset
      qualifiedName - for the FlowProject
      Returns:
      true if the FlowProject is now active, and false otherwise
      Throws:
      AtlanException - on any API problems
    • updater

      public static FlowProject.FlowProjectBuilder<?,?> updater(String qualifiedName, String name)
      Builds the minimal object necessary to update a FlowProject.
      Parameters:
      qualifiedName - of the FlowProject
      name - of the FlowProject
      Returns:
      the minimal request necessary to update the FlowProject, as a builder
    • trimToRequired

      public FlowProject.FlowProjectBuilder<?,?> trimToRequired() throws InvalidRequestException
      Builds the minimal object necessary to apply an update to a FlowProject, from a potentially more-complete FlowProject object.
      Overrides:
      trimToRequired in class Asset
      Returns:
      the minimal object necessary to update the FlowProject, as a builder
      Throws:
      InvalidRequestException - if any of the minimal set of required properties for FlowProject are not found in the initial object
    • removeDescription

      public static FlowProject removeDescription(AtlanClient client, String qualifiedName, String name) throws AtlanException
      Remove the system description from a FlowProject.
      Parameters:
      client - connectivity to the Atlan tenant on which to remove the asset's description
      qualifiedName - of the FlowProject
      name - of the FlowProject
      Returns:
      the updated FlowProject, or null if the removal failed
      Throws:
      AtlanException - on any API problems
    • removeUserDescription

      public static FlowProject removeUserDescription(AtlanClient client, String qualifiedName, String name) throws AtlanException
      Remove the user's description from a FlowProject.
      Parameters:
      client - connectivity to the Atlan tenant on which to remove the asset's description
      qualifiedName - of the FlowProject
      name - of the FlowProject
      Returns:
      the updated FlowProject, or null if the removal failed
      Throws:
      AtlanException - on any API problems
    • removeOwners

      public static FlowProject removeOwners(AtlanClient client, String qualifiedName, String name) throws AtlanException
      Remove the owners from a FlowProject.
      Parameters:
      client - connectivity to the Atlan tenant from which to remove the FlowProject's owners
      qualifiedName - of the FlowProject
      name - of the FlowProject
      Returns:
      the updated FlowProject, or null if the removal failed
      Throws:
      AtlanException - on any API problems
    • updateCertificate

      public static FlowProject updateCertificate(AtlanClient client, String qualifiedName, CertificateStatus certificate, String message) throws AtlanException
      Update the certificate on a FlowProject.
      Parameters:
      client - connectivity to the Atlan tenant on which to update the FlowProject's certificate
      qualifiedName - of the FlowProject
      certificate - to use
      message - (optional) message, or null if no message
      Returns:
      the updated FlowProject, or null if the update failed
      Throws:
      AtlanException - on any API problems
    • removeCertificate

      public static FlowProject removeCertificate(AtlanClient client, String qualifiedName, String name) throws AtlanException
      Remove the certificate from a FlowProject.
      Parameters:
      client - connectivity to the Atlan tenant from which to remove the FlowProject's certificate
      qualifiedName - of the FlowProject
      name - of the FlowProject
      Returns:
      the updated FlowProject, or null if the removal failed
      Throws:
      AtlanException - on any API problems
    • updateAnnouncement

      public static FlowProject updateAnnouncement(AtlanClient client, String qualifiedName, AtlanAnnouncementType type, String title, String message) throws AtlanException
      Update the announcement on a FlowProject.
      Parameters:
      client - connectivity to the Atlan tenant on which to update the FlowProject's announcement
      qualifiedName - of the FlowProject
      type - type of announcement to set
      title - (optional) title of the announcement to set (or null for no title)
      message - (optional) message of the announcement to set (or null for no message)
      Returns:
      the result of the update, or null if the update failed
      Throws:
      AtlanException - on any API problems
    • removeAnnouncement

      public static FlowProject removeAnnouncement(AtlanClient client, String qualifiedName, String name) throws AtlanException
      Remove the announcement from a FlowProject.
      Parameters:
      client - connectivity to the Atlan client from which to remove the FlowProject's announcement
      qualifiedName - of the FlowProject
      name - of the FlowProject
      Returns:
      the updated FlowProject, or null if the removal failed
      Throws:
      AtlanException - on any API problems
    • replaceTerms

      public static FlowProject replaceTerms(AtlanClient client, String qualifiedName, String name, List<IGlossaryTerm> terms) throws AtlanException
      Replace the terms linked to the FlowProject.
      Parameters:
      client - connectivity to the Atlan tenant on which to replace the FlowProject's assigned terms
      qualifiedName - for the FlowProject
      name - human-readable name of the FlowProject
      terms - the list of terms to replace on the FlowProject, or null to remove all terms from the FlowProject
      Returns:
      the FlowProject that was updated (note that it will NOT contain details of the replaced terms)
      Throws:
      AtlanException - on any API problems
    • appendTerms

      @Deprecated public static FlowProject appendTerms(AtlanClient client, String qualifiedName, List<IGlossaryTerm> terms) throws AtlanException
      Link additional terms to the FlowProject, without replacing existing terms linked to the FlowProject. Note: this operation must make two API calls — one to retrieve the FlowProject's existing terms, and a second to append the new terms.
      Parameters:
      client - connectivity to the Atlan tenant on which to append terms to the FlowProject
      qualifiedName - for the FlowProject
      terms - the list of terms to append to the FlowProject
      Returns:
      the FlowProject that was updated (note that it will NOT contain details of the appended terms)
      Throws:
      AtlanException - on any API problems
    • removeTerms

      @Deprecated public static FlowProject removeTerms(AtlanClient client, String qualifiedName, List<IGlossaryTerm> terms) throws AtlanException
      Remove terms from a FlowProject, without replacing all existing terms linked to the FlowProject. Note: this operation must make two API calls — one to retrieve the FlowProject's existing terms, and a second to remove the provided terms.
      Parameters:
      client - connectivity to the Atlan tenant from which to remove terms from the FlowProject
      qualifiedName - for the FlowProject
      terms - the list of terms to remove from the FlowProject, which must be referenced by GUID
      Returns:
      the FlowProject that was updated (note that it will NOT contain details of the resulting terms)
      Throws:
      AtlanException - on any API problems
    • appendAtlanTags

      @Deprecated public static FlowProject appendAtlanTags(AtlanClient client, String qualifiedName, List<String> atlanTagNames) throws AtlanException
      Add Atlan tags to a FlowProject, without replacing existing Atlan tags linked to the FlowProject. Note: this operation must make two API calls — one to retrieve the FlowProject's existing Atlan tags, and a second to append the new Atlan tags.
      Parameters:
      client - connectivity to the Atlan tenant on which to append Atlan tags to the FlowProject
      qualifiedName - of the FlowProject
      atlanTagNames - human-readable names of the Atlan tags to add
      Returns:
      the updated FlowProject
      Throws:
      AtlanException - on any API problems
    • appendAtlanTags

      @Deprecated public static FlowProject appendAtlanTags(AtlanClient client, String qualifiedName, List<String> atlanTagNames, boolean propagate, boolean removePropagationsOnDelete, boolean restrictLineagePropagation) throws AtlanException
      Add Atlan tags to a FlowProject, without replacing existing Atlan tags linked to the FlowProject. Note: this operation must make two API calls — one to retrieve the FlowProject's existing Atlan tags, and a second to append the new Atlan tags.
      Parameters:
      client - connectivity to the Atlan tenant on which to append Atlan tags to the FlowProject
      qualifiedName - of the FlowProject
      atlanTagNames - human-readable names of the Atlan tags to add
      propagate - whether to propagate the Atlan tag (true) or not (false)
      removePropagationsOnDelete - whether to remove the propagated Atlan tags when the Atlan tag is removed from this asset (true) or not (false)
      restrictLineagePropagation - whether to avoid propagating through lineage (true) or do propagate through lineage (false)
      Returns:
      the updated FlowProject
      Throws:
      AtlanException - on any API problems
    • removeAtlanTag

      @Deprecated public static void removeAtlanTag(AtlanClient client, String qualifiedName, String atlanTagName) throws AtlanException
      Remove an Atlan tag from a FlowProject.
      Parameters:
      client - connectivity to the Atlan tenant from which to remove an Atlan tag from a FlowProject
      qualifiedName - of the FlowProject
      atlanTagName - human-readable name of the Atlan tag to remove
      Throws:
      AtlanException - on any API problems, or if the Atlan tag does not exist on the FlowProject
    • _internal

      public static FlowProject.FlowProjectBuilder<?,?> _internal()
    • toBuilder

      public FlowProject.FlowProjectBuilder<?,?> toBuilder()
      Overrides:
      toBuilder in class Reference
    • getFlowErrorMessage

      public String getFlowErrorMessage()
      Optional error message of the flow run.
      Specified by:
      getFlowErrorMessage in interface IFlow
      Specified by:
      getFlowErrorMessage in interface IFlowProject
    • getFlowFinishedAt

      public Long getFlowFinishedAt()
      Date and time at which this point in the data processing or orchestration finished.
      Specified by:
      getFlowFinishedAt in interface IFlow
      Specified by:
      getFlowFinishedAt in interface IFlowProject
    • getFlowFolderName

      public String getFlowFolderName()
      Simple name of the folder in which this asset is contained.
      Specified by:
      getFlowFolderName in interface IFlow
      Specified by:
      getFlowFolderName in interface IFlowProject
    • getFlowFolderQualifiedName

      public String getFlowFolderQualifiedName()
      Unique name of the folder in which this asset is contained.
      Specified by:
      getFlowFolderQualifiedName in interface IFlow
      Specified by:
      getFlowFolderQualifiedName in interface IFlowProject
    • getFlowId

      public String getFlowId()
      Unique ID for this flow asset, which will remain constant throughout the lifecycle of the asset.
      Specified by:
      getFlowId in interface IFlow
      Specified by:
      getFlowId in interface IFlowProject
    • getFlowProjectName

      public String getFlowProjectName()
      Simple name of the project in which this asset is contained.
      Specified by:
      getFlowProjectName in interface IFlow
      Specified by:
      getFlowProjectName in interface IFlowProject
    • getFlowProjectQualifiedName

      public String getFlowProjectQualifiedName()
      Unique name of the project in which this asset is contained.
      Specified by:
      getFlowProjectQualifiedName in interface IFlow
      Specified by:
      getFlowProjectQualifiedName in interface IFlowProject
    • getFlowReusableUnitName

      public String getFlowReusableUnitName()
      Simple name of the reusable grouping of operations in which this ephemeral data is contained.
      Specified by:
      getFlowReusableUnitName in interface IFlow
      Specified by:
      getFlowReusableUnitName in interface IFlowProject
    • getFlowReusableUnitQualifiedName

      public String getFlowReusableUnitQualifiedName()
      Unique name of the reusable grouping of operations in which this ephemeral data is contained.
      Specified by:
      getFlowReusableUnitQualifiedName in interface IFlow
      Specified by:
      getFlowReusableUnitQualifiedName in interface IFlowProject
    • getFlowRunId

      public String getFlowRunId()
      Unique ID of the flow run, which could change on subsequent runs of the same flow.
      Specified by:
      getFlowRunId in interface IFlow
      Specified by:
      getFlowRunId in interface IFlowProject
    • getFlowSchedule

      public String getFlowSchedule()
      Schedule for this point in the data processing or orchestration.
      Specified by:
      getFlowSchedule in interface IFlow
      Specified by:
      getFlowSchedule in interface IFlowProject
    • getFlowStartedAt

      public Long getFlowStartedAt()
      Date and time at which this point in the data processing or orchestration started.
      Specified by:
      getFlowStartedAt in interface IFlow
      Specified by:
      getFlowStartedAt in interface IFlowProject
    • getFlowStatus

      public String getFlowStatus()
      Overall status of this point in the data processing or orchestration.
      Specified by:
      getFlowStatus in interface IFlow
      Specified by:
      getFlowStatus in interface IFlowProject
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Asset
    • canEqual

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class Asset
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Asset
    • toString

      public String toString()
      Description copied from class: AtlanObject
      Overrides:
      toString in class Asset
    • getTypeName

      public String getTypeName()
      Fixed typeName for FlowProjects.
      Specified by:
      getTypeName in interface AuditDetail
      Specified by:
      getTypeName in interface IAsset
      Specified by:
      getTypeName in interface IFlow
      Specified by:
      getTypeName in interface IFlowProject
      Specified by:
      getTypeName in interface IReferenceable
      Overrides:
      getTypeName in class Reference