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 Detail

      • name

        protected java.lang.String name
      • description

        protected java.lang.String description
      • refType

        protected java.lang.String refType
      • refId

        protected java.lang.Long refId
    • Constructor Detail

      • AccountInventory

        public AccountInventory()
    • Method Detail

      • getName

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

        public void setName​(java.lang.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 java.lang.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​(java.lang.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 java.lang.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​(java.lang.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 java.lang.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​(java.lang.Long refId)
        Sets the reference id this inventory is associated with
        Parameters:
        refId - the id of the ref type object this belongs to.