Package com.morpheusdata.model
Class AccountInventory
- java.lang.Object
-
- com.morpheusdata.model.MorpheusModel
-
- com.morpheusdata.model.projection.AccountInventoryIdentityProjection
-
- com.morpheusdata.model.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 Summary
Fields Modifier and Type Field Description protected java.lang.String
description
protected java.lang.String
name
protected Account
owner
protected java.lang.Long
refId
protected java.lang.String
refType
-
Fields inherited from class com.morpheusdata.model.projection.AccountInventoryIdentityProjection
externalId
-
Fields inherited from class com.morpheusdata.model.MorpheusModel
config, id
-
-
Constructor Summary
Constructors Constructor Description AccountInventory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDescription()
Gets the more detailed description of the inventory file.java.lang.String
getName()
Gets the name of the inventory file for displayAccount
getOwner()
Gets the owner of the inventory.java.lang.Long
getRefId()
Gets the reference id of the object this belongs to.java.lang.String
getRefType()
Gets the polymorphic reference association type of the object.void
setDescription(java.lang.String description)
Sets the description of the inventory file typically during a sync operation.void
setName(java.lang.String name)
Sets the name of the inventory for reference and displayvoid
setOwner(Account owner)
Sets the owner of the inventory.void
setRefId(java.lang.Long refId)
Sets the reference id this inventory is associated withvoid
setRefType(java.lang.String refType)
Sets the polymorphic reference assocation type of the object.-
Methods inherited from class com.morpheusdata.model.projection.AccountInventoryIdentityProjection
getExternalId, setExternalId
-
Methods inherited from class com.morpheusdata.model.MorpheusModel
getConfig, getConfigMap, getConfigProperty, getDirtyProperties, getDirtyPropertyValues, getId, getProperties, isDirty, markClean, markDirty, markDirty, setConfig, setConfigMap, setConfigProperty, setId
-
-
-
-
Field Detail
-
owner
protected Account owner
-
name
protected java.lang.String name
-
description
protected java.lang.String description
-
refType
protected java.lang.String refType
-
refId
protected java.lang.Long refId
-
-
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. ThisAccount
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.
-
-