OpenCloud/LoadBalancer/Resources/Readonly.php
Classes
Readonly
Properties
Yes
No
Description
This defines a read-only SubResource - one that cannot be created, updated, or deleted. Many subresources are like this, and this simplifies their class definitions.There are really four pieces of data that define a subresource: * `$url_resource` - the actual name of the url component * `$json_name` - the name of the JSON object holding the data * `$json_collection_name` - if the collection is not simply `$json_name . 's'`, this defines the collectio name. * `$json_collection_element` - if the object in a collection is not anonymous, this defines the name of the element holding the object. Of these, only the `$json_name` and `$url_resource` are required.