Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 1 | { |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame^] | 2 | "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json", |
| 3 | "copyright": "Copyright 2014-2018 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 4 | "definitions": { |
| 5 | "Capability": { |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame^] | 6 | "additionalProperties": false, |
| 7 | "description": "This type describes a specific capability of a collection for a given use case.", |
| 8 | "longDescription": "This type shall describe a specific capability of a collection in terms of how a client is able to create new resources within the collection for the specified use case.", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 9 | "patternProperties": { |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame^] | 10 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": { |
| 11 | "description": "This property shall specify a valid odata or Redfish property.", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 12 | "type": [ |
| 13 | "array", |
| 14 | "boolean", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame^] | 15 | "integer", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 16 | "number", |
| 17 | "null", |
| 18 | "object", |
| 19 | "string" |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame^] | 20 | ] |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 21 | } |
| 22 | }, |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 23 | "properties": { |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame^] | 24 | "CapabilitiesObject": { |
| 25 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_3.json#/definitions/idRef", |
| 26 | "description": "Reference to the resource the client may GET to in order to understand how to form a POST request for a given collection.", |
| 27 | "longDescription": "The value of this property shall be a reference to a Resource that matches the type for the given collection and shall contain annotations that describe the properties allowed in the POST request.", |
| 28 | "readonly": true |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 29 | }, |
| 30 | "Links": { |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame^] | 31 | "$ref": "#/definitions/Links", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 32 | "description": "Contains references to other resources that are related to this resource.", |
| 33 | "longDescription": "The Links property, as described by the Redfish Specification, shall contain references to resources that are related to, but not contained by (subordinate to), this resource." |
| 34 | }, |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame^] | 35 | "UseCase": { |
| 36 | "$ref": "#/definitions/UseCase", |
| 37 | "description": "This property represents the use case in which a client may issue a POST request to the collection.", |
| 38 | "longDescription": "The value of this property shall be an enumerated value describing the use case for this capability instance.", |
| 39 | "readonly": true |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 40 | } |
| 41 | }, |
| 42 | "required": [ |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame^] | 43 | "CapabilitiesObject", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 44 | "UseCase", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame^] | 45 | "Links" |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 46 | ], |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame^] | 47 | "type": "object" |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 48 | }, |
| 49 | "CollectionCapabilities": { |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame^] | 50 | "additionalProperties": false, |
| 51 | "description": "This type describes the capabilities of a collection.", |
| 52 | "longDescription": "This type shall describe any capabilities of a collection in terms of how a client is able to create new resources within the collection.", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 53 | "patternProperties": { |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame^] | 54 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": { |
| 55 | "description": "This property shall specify a valid odata or Redfish property.", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 56 | "type": [ |
| 57 | "array", |
| 58 | "boolean", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame^] | 59 | "integer", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 60 | "number", |
| 61 | "null", |
| 62 | "object", |
| 63 | "string" |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame^] | 64 | ] |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 65 | } |
| 66 | }, |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 67 | "properties": { |
| 68 | "Capabilities": { |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame^] | 69 | "description": "This property contains the list of capabilities supported by this resource.", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 70 | "items": { |
| 71 | "$ref": "#/definitions/Capability" |
| 72 | }, |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame^] | 73 | "longDescription": "The value of this property shall be an array of Capability structures.", |
| 74 | "type": "array" |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 75 | } |
| 76 | }, |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame^] | 77 | "type": "object" |
| 78 | }, |
| 79 | "Links": { |
| 80 | "additionalProperties": false, |
| 81 | "description": "Contains references to other resources that are related to this resource.", |
| 82 | "longDescription": "This type, as described by the Redfish Specification, shall contain references to resources that are related to, but not contained by (subordinate to), this resource.", |
| 83 | "patternProperties": { |
| 84 | "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": { |
| 85 | "description": "This property shall specify a valid odata or Redfish property.", |
| 86 | "type": [ |
| 87 | "array", |
| 88 | "boolean", |
| 89 | "integer", |
| 90 | "number", |
| 91 | "null", |
| 92 | "object", |
| 93 | "string" |
| 94 | ] |
| 95 | } |
| 96 | }, |
| 97 | "properties": { |
| 98 | "Oem": { |
| 99 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Oem", |
| 100 | "description": "Oem extension object.", |
| 101 | "longDescription": "This object represents the Oem property. All values for resources described by this schema shall comply to the requirements as described in the Redfish specification." |
| 102 | }, |
| 103 | "RelatedItem": { |
| 104 | "description": "The ID(s) of the resources associated with this capability.", |
| 105 | "items": { |
| 106 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_3.json#/definitions/idRef" |
| 107 | }, |
| 108 | "longDescription": "The value of this property shall be an array of IDs containing pointers consistent with JSON pointer syntax to the resource that is related to this capability.", |
| 109 | "readonly": true, |
| 110 | "type": "array" |
| 111 | }, |
| 112 | "RelatedItem@odata.count": { |
| 113 | "$ref": "http://redfish.dmtf.org/schemas/v1/odata.v4_0_3.json#/definitions/count" |
| 114 | }, |
| 115 | "TargetCollection": { |
| 116 | "$ref": "http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/ResourceCollection", |
| 117 | "description": "Reference to the collection that this capabilities structure is describing.", |
| 118 | "longDescription": "The value of this property shall be a reference to a Resource Collection that this structure is describing. This structure may be used by a client in order to understand how to form the POST request for the given collection.", |
| 119 | "readonly": true |
| 120 | } |
| 121 | }, |
| 122 | "required": [ |
| 123 | "TargetCollection" |
| 124 | ], |
| 125 | "type": "object" |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 126 | }, |
| 127 | "UseCase": { |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 128 | "enum": [ |
| 129 | "ComputerSystemComposition", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame^] | 130 | "ComputerSystemConstrainedComposition", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 131 | "VolumeCreation" |
| 132 | ], |
| 133 | "enumDescriptions": { |
| 134 | "ComputerSystemComposition": "This capability describes a client creating a new ComputerSystem instance from a set of disaggregated hardware.", |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame^] | 135 | "ComputerSystemConstrainedComposition": "This capability describes a client creating a new ComputerSystem instance from a set of constraints.", |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 136 | "VolumeCreation": "This capability describes a client creating a new Volume instance as part of an existing storage subsystem." |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame^] | 137 | }, |
| 138 | "type": "string" |
Ed Tanous | 118b1c7 | 2018-09-13 13:45:51 -0700 | [diff] [blame] | 139 | } |
| 140 | }, |
Ed Tanous | 530520e | 2019-01-02 13:41:37 -0800 | [diff] [blame^] | 141 | "owningEntity": "DMTF", |
| 142 | "title": "#CollectionCapabilities.v1_1_0" |
| 143 | } |