Class AuthPolicy

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

@Generated("com.atlan.generators.ModelGeneratorV2") public class AuthPolicy extends Asset implements IAuthPolicy, IAsset, IReferenceable
Model to store an accesscontrol policy in Atlas
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • trimToReference

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

      public static FluentSearch.FluentSearchBuilder<?,?> select()
      Start a fluent search that will return all AuthPolicy 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) AuthPolicy assets will be included.
      Returns:
      a fluent search that includes all AuthPolicy assets
    • select

      public static FluentSearch.FluentSearchBuilder<?,?> select(AtlanClient client)
      Start a fluent search that will return all AuthPolicy 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) AuthPolicy assets will be included.
      Parameters:
      client - connectivity to the Atlan tenant from which to retrieve the assets
      Returns:
      a fluent search that includes all AuthPolicy assets
    • select

      public static FluentSearch.FluentSearchBuilder<?,?> select(boolean includeArchived)
      Start a fluent search that will return all AuthPolicy 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:
      includeArchived - when true, archived (soft-deleted) AuthPolicys will be included
      Returns:
      a fluent search that includes all AuthPolicy assets
    • select

      public static FluentSearch.FluentSearchBuilder<?,?> select(AtlanClient client, boolean includeArchived)
      Start a fluent search that will return all AuthPolicy 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) AuthPolicys will be included
      Returns:
      a fluent search that includes all AuthPolicy assets
    • refByGuid

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

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

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

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

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

      public static AuthPolicy get(AtlanClient client, String id) throws AtlanException
      Retrieves a AuthPolicy 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 AuthPolicy to retrieve, either its GUID or its full qualifiedName
      Returns:
      the requested full AuthPolicy, complete with all of its relationships
      Throws:
      AtlanException - on any error during the API invocation, such as the NotFoundException if the AuthPolicy does not exist or the provided GUID is not a AuthPolicy
    • get

      public static AuthPolicy get(AtlanClient client, String id, boolean includeRelationships) throws AtlanException
      Retrieves a AuthPolicy 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 AuthPolicy to retrieve, either its GUID or its full qualifiedName
      includeRelationships - if true, all of the asset's relationships will also be retrieved; if false, no relationships will be retrieved
      Returns:
      the requested full AuthPolicy, optionally complete with all of its relationships
      Throws:
      AtlanException - on any error during the API invocation, such as the NotFoundException if the AuthPolicy does not exist or the provided GUID is not a AuthPolicy
    • restore

      public static boolean restore(String qualifiedName) throws AtlanException
      Restore the archived (soft-deleted) AuthPolicy to active.
      Parameters:
      qualifiedName - for the AuthPolicy
      Returns:
      true if the AuthPolicy is now active, and false otherwise
      Throws:
      AtlanException - on any API problems
    • restore

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

      public static AuthPolicy.AuthPolicyBuilder<?,?> creator(String name)
      Builds the minimal object necessary to create an AuthPolicy. Note: this method is only for internal use; for creating policies specific to a persona or purpose, use the helper methods from those classes.
      Parameters:
      name - of the AuthPolicy
      Returns:
      the minimal request necessary to create the AuthPolicy, as a builder
      See Also:
    • trimToRequired

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

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

      public static AuthPolicy appendAtlanTags(AtlanClient client, String qualifiedName, List<String> atlanTagNames) throws AtlanException
      Add Atlan tags to a AuthPolicy, without replacing existing Atlan tags linked to the AuthPolicy. Note: this operation must make two API calls — one to retrieve the AuthPolicy'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 AuthPolicy
      qualifiedName - of the AuthPolicy
      atlanTagNames - human-readable names of the Atlan tags to add
      Returns:
      the updated AuthPolicy
      Throws:
      AtlanException - on any API problems
    • appendAtlanTags

      public static AuthPolicy appendAtlanTags(String qualifiedName, List<String> atlanTagNames, boolean propagate, boolean removePropagationsOnDelete, boolean restrictLineagePropagation) throws AtlanException
      Add Atlan tags to a AuthPolicy, without replacing existing Atlan tags linked to the AuthPolicy. Note: this operation must make two API calls — one to retrieve the AuthPolicy's existing Atlan tags, and a second to append the new Atlan tags.
      Parameters:
      qualifiedName - of the AuthPolicy
      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 AuthPolicy
      Throws:
      AtlanException - on any API problems
    • appendAtlanTags

      public static AuthPolicy appendAtlanTags(AtlanClient client, String qualifiedName, List<String> atlanTagNames, boolean propagate, boolean removePropagationsOnDelete, boolean restrictLineagePropagation) throws AtlanException
      Add Atlan tags to a AuthPolicy, without replacing existing Atlan tags linked to the AuthPolicy. Note: this operation must make two API calls — one to retrieve the AuthPolicy'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 AuthPolicy
      qualifiedName - of the AuthPolicy
      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 AuthPolicy
      Throws:
      AtlanException - on any API problems
    • removeAtlanTag

      public static void removeAtlanTag(String qualifiedName, String atlanTagName) throws AtlanException
      Remove an Atlan tag from a AuthPolicy.
      Parameters:
      qualifiedName - of the AuthPolicy
      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 AuthPolicy
    • removeAtlanTag

      public static void removeAtlanTag(AtlanClient client, String qualifiedName, String atlanTagName) throws AtlanException
      Remove an Atlan tag from a AuthPolicy.
      Parameters:
      client - connectivity to the Atlan tenant from which to remove an Atlan tag from a AuthPolicy
      qualifiedName - of the AuthPolicy
      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 AuthPolicy
    • _internal

      public static AuthPolicy.AuthPolicyBuilder<?,?> _internal()
    • toBuilder

      public AuthPolicy.AuthPolicyBuilder<?,?> toBuilder()
      Overrides:
      toBuilder in class Reference
    • getAccessControl

      public IAccessControl getAccessControl()
      TBC
      Specified by:
      getAccessControl in interface IAuthPolicy
    • getIsPolicyEnabled

      public Boolean getIsPolicyEnabled()
      TBC
      Specified by:
      getIsPolicyEnabled in interface IAuthPolicy
    • getPolicyActions

      public SortedSet<AtlanPolicyAction> getPolicyActions()
      TBC
      Specified by:
      getPolicyActions in interface IAuthPolicy
    • getPolicyCategory

      public AuthPolicyCategory getPolicyCategory()
      TBC
      Specified by:
      getPolicyCategory in interface IAuthPolicy
    • getPolicyConditions

      public List<AuthPolicyCondition> getPolicyConditions()
      TBC
      Specified by:
      getPolicyConditions in interface IAuthPolicy
    • getPolicyDelegateAdmin

      public Boolean getPolicyDelegateAdmin()
      TBC
      Specified by:
      getPolicyDelegateAdmin in interface IAuthPolicy
    • getPolicyGroups

      public SortedSet<String> getPolicyGroups()
      TBC
      Specified by:
      getPolicyGroups in interface IAuthPolicy
    • getPolicyMaskType

      public DataMaskingType getPolicyMaskType()
      TBC
      Specified by:
      getPolicyMaskType in interface IAuthPolicy
    • getPolicyPriority

      public Integer getPolicyPriority()
      TBC
      Specified by:
      getPolicyPriority in interface IAuthPolicy
    • getPolicyResourceCategory

      public AuthPolicyResourceCategory getPolicyResourceCategory()
      TBC
      Specified by:
      getPolicyResourceCategory in interface IAuthPolicy
    • getPolicyResourceSignature

      public String getPolicyResourceSignature()
      TBC
      Specified by:
      getPolicyResourceSignature in interface IAuthPolicy
    • getPolicyResources

      public SortedSet<String> getPolicyResources()
      TBC
      Specified by:
      getPolicyResources in interface IAuthPolicy
    • getPolicyRoles

      public SortedSet<String> getPolicyRoles()
      TBC
      Specified by:
      getPolicyRoles in interface IAuthPolicy
    • getPolicyServiceName

      public String getPolicyServiceName()
      TBC
      Specified by:
      getPolicyServiceName in interface IAuthPolicy
    • getPolicySubCategory

      public String getPolicySubCategory()
      TBC
      Specified by:
      getPolicySubCategory in interface IAuthPolicy
    • getPolicyType

      public AuthPolicyType getPolicyType()
      TBC
      Specified by:
      getPolicyType in interface IAuthPolicy
    • getPolicyUsers

      public SortedSet<String> getPolicyUsers()
      TBC
      Specified by:
      getPolicyUsers in interface IAuthPolicy
    • getPolicyValiditySchedule

      public List<AuthPolicyValiditySchedule> getPolicyValiditySchedule()
      TBC
      Specified by:
      getPolicyValiditySchedule in interface IAuthPolicy
    • 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 AuthPolicys.
      Specified by:
      getTypeName in interface AuditDetail
      Specified by:
      getTypeName in interface IAsset
      Specified by:
      getTypeName in interface IAuthPolicy
      Specified by:
      getTypeName in interface IReferenceable
      Overrides:
      getTypeName in class Reference