Package com.morpheusdata.model
Class AccountInventory
java.lang.Object
com.morpheusdata.model.MorpheusModel
com.morpheusdata.model.projection.MorpheusIdentityModel
com.morpheusdata.model.projection.AccountInventoryIdentityProjection
com.morpheusdata.model.AccountInventory
Represents ansible inventory files. This also represents synced inventories from external integrations such as
Ansible Tower
- Since:
- 0.8.0
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected String
protected Account
protected Long
protected String
protected AccountInventoryType
Fields inherited from class com.morpheusdata.model.projection.AccountInventoryIdentityProjection
externalId
Fields inherited from class com.morpheusdata.model.MorpheusModel
config, id
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the more detailed description of the inventory file.getName()
Gets the name of the inventory file for displaygetOwner()
Gets the owner of the inventory.getRefId()
Gets the reference id of the object this belongs to.Gets the polymorphic reference association type of the object.getType()
void
setDescription
(String description) Sets the description of the inventory file typically during a sync operation.void
Sets the name of the inventory for reference and displayvoid
Sets the owner of the inventory.void
Sets the reference id this inventory is associated withvoid
setRefType
(String refType) Sets the polymorphic reference assocation type of the object.void
setType
(AccountInventoryType type) Methods inherited from class com.morpheusdata.model.projection.AccountInventoryIdentityProjection
getExternalId, setExternalId
Methods inherited from class com.morpheusdata.model.projection.MorpheusIdentityModel
getIdentityProperties
Methods inherited from class com.morpheusdata.model.MorpheusModel
getConfig, getConfigMap, getConfigProperty, getDirtyProperties, getDirtyPropertyValues, getId, getProperties, isDirty, markClean, markDirty, markDirty, setConfig, setConfigMap, setConfigProperty, setId
-
Field Details
-
owner
-
name
-
description
-
refType
-
refId
-
type
-
-
Constructor Details
-
AccountInventory
public AccountInventory()
-
-
Method Details
-
getName
Gets the name of the inventory file for display- Returns:
- the current inventory name
-
setName
Sets the name of the inventory for reference and display- Parameters:
name
- the name to be assigned to the inventory
-
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
Sets the owner of the inventory. This is typically only done in a sync.- Parameters:
owner
- the owner of the inventory
-
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
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
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
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
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
Sets the reference id this inventory is associated with- Parameters:
refId
- the id of the ref type object this belongs to.
-
getType
-
setType
-