Class AccountInventory


public class AccountInventory extends AccountInventoryIdentityProjection
Represents ansible inventory files. This also represents synced inventories from external integrations such as Ansible Tower
Since:
0.8.0
  • Field Details

  • Constructor Details

    • AccountInventory

      public AccountInventory()
  • Method Details

    • getName

      public String getName()
      Gets the name of the inventory file for display
      Returns:
      the current inventory name
    • setName

      public void setName(String name)
      Sets the name of the inventory for reference and display
      Parameters:
      name - the name to be assigned to the inventory
    • getOwner

      public Account getOwner()
      Gets the owner of the inventory. This Account is the account that owns the integration this inventory belongs to typically. However, inventory access can typically be cross tenant if the integration is shared or resource permissions set the tenant default
      Returns:
      the owner of the inventory
    • setOwner

      public void setOwner(Account owner)
      Sets the owner of the inventory. This is typically only done in a sync.
      Parameters:
      owner - the owner of the inventory
    • getDescription

      public String getDescription()
      Gets the more detailed description of the inventory file. users may want to set this in tower to better describe the purpose of the inventory file.
      Returns:
      the description information
    • setDescription

      public void setDescription(String description)
      Sets the description of the inventory file typically during a sync operation. This provides more detailed information about the inventory file.
      Parameters:
      description - the description string to be saved
    • getRefType

      public String getRefType()
      Gets the polymorphic reference association type of the object. In the case of an inventory file this can often be the ansible tower integration aka `AccountIntegration`
      Returns:
      the ref type model
    • setRefType

      public void setRefType(String refType)
      Sets the polymorphic reference assocation type of the object. This is often paired with refId to figure out what this object relates to.
      Parameters:
      refType - the ref type of the object associated with the inventory (typically AccountIntegration)
    • getRefId

      public Long getRefId()
      Gets the reference id of the object this belongs to. Pair this with the refType to figure out the association.
      Returns:
      the unique reference id this belongs to
    • setRefId

      public void setRefId(Long refId)
      Sets the reference id this inventory is associated with
      Parameters:
      refId - the id of the ref type object this belongs to.
    • getType

      public AccountInventoryType getType()
    • setType

      public void setType(AccountInventoryType type)