Package com.atlan.api

Class ContractsEndpoint


public class ContractsEndpoint extends HeraclesEndpoint
API endpoints for data contract-specific operations.
  • Constructor Details

    • ContractsEndpoint

      public ContractsEndpoint(AtlanClient client)
  • Method Details

    • generateInitialSpec

      public String generateInitialSpec(Asset asset) throws AtlanException
      Generate an initial contract spec for the provided asset. The asset must have at least its qualifiedName (and type) populated.
      Parameters:
      asset - for which to generate the initial contract spec
      Returns:
      the YAML for the initial contract spec for the provided asset
      Throws:
      AtlanException - on any issue interacting with the API
    • generateInitialSpec

      public String generateInitialSpec(Asset asset, RequestOptions options) throws AtlanException
      Generate an initial contract spec for the provided asset. The asset must have at least its qualifiedName (and type) populated.
      Parameters:
      asset - for which to generate the initial contract spec
      options - to override default client settings
      Returns:
      the YAML for the initial contract spec for the provided asset
      Throws:
      AtlanException - on any issue interacting with the API