Metadata definition objects
1. objects(id=None)
Get the list of Object
Parameters:
| Name | Type | Description |
|---|---|---|
| id | string | could be None |
Return value: List of Object Instance
Return value example:
istack/image/v2/Object ImageObject
created_at : 2016-08-26T14:11:59Z
schema : /v2/schemas/metadefs/object
name : PythonTest
self : /v2/metadefs/namespaces/pythonTestT/objects/PythonTest
required : []
updated_at : 2016-08-26T14:11:59Z
properties : {}
2. create_object(**attrs)
Create an object.
Parameters:
| Name | Type | Description |
|---|---|---|
| name | string | The name of the object, suitable for use as an identifier. |
| description (Optional) | string | Detailed description of the object. |
| properties (Optional) | object | A set of key:value pairs, where each value is a property entity. |
| required (Optional) | array | A list of the names of properties that are required on this object. |
Return value: ImageObject Instance
Return value example:
istack/image/v2/Object ImageObject
created_at : 2016-08-26T14:11:59Z
schema : /v2/schemas/metadefs/object
name : PythonTest
self : /v2/metadefs/namespaces/pythonTestT/objects/PythonTest
required : []
updated_at : 2016-08-26T14:11:59Z
properties : {}
3. update_object(imageObject, **attrs)
Update an object.
Parameters:
| Name | Type | Description |
|---|---|---|
| name | string(inside imageObject) | must be specified |
| description(optional) | string | Detail |
Return value: ImageObject Instance
Return value example:
istack/image/v2/Object ImageObject
created_at : 2016-08-26T14:11:59Z
schema : /v2/schemas/metadefs/object
name : PythonTest
self : /v2/metadefs/namespaces/pythonTestT/objects/PythonTest
required : []
updated_at : 2016-08-26T14:11:59Z
properties : {}
4. delete_object(imageObject)
Delete an object.
Parameters:
| Name | Type | Description |
|---|---|---|
| name | string(inside imageObject) | must be specified |
Return value: None