18.1.1 Creating a Custom Object

To create a new object, use the command goldsh Object Create. When an object is created, the 5 default actions are automatically created for the object: Create, Delete, Modify, Query and Undelete. A number of default metadata attributes are creates as well: CreationTime, ModificationTime, Deleted, RequestId and TransactionId. These attributes are normally hidden in regular queries.

goldsh Object Create Name=<Object Name> [AutoGen=True|(False)] [DefaultValue=<Default Value>] [Description=<Description>] [Association=True|False)] [Child=<Child Object>] [Parent=<Parent Object>][ShowUsage:=True]

Example 1. Creating a Node Object
$ goldsh Object Create Name=Node Description=\"Node Information\"
Successfully created 1 object and 5 actions
Example 2. Add a node name attribute
$ goldsh Attribute Create Object=Node Name=Name DataType=String PrimaryKey=True
Successfully created 1 attribute
Example 3. Add a processor count attribute
$ goldsh Attribute Create Object=Node Name=Processors DataType=Integer
Successfully created 1 attribute

(Undefined variable: MyVariables.!CopyrightInfo!)