Class: Shared::MutableCollection Abstract
- Inherits:
-
Collection
- Object
- Resource
- Collection
- Shared::MutableCollection
- Defined in:
- lib/vas/shared/mutable_collection.rb
Overview
This class is abstract.
A collection that allows items to be created
Direct Known Subclasses
Gemfire::AgentInstances, Gemfire::ApplicationCodeImages, Gemfire::CacheServerInstances, Gemfire::DiskStores, Gemfire::LocatorInstances, Gemfire::PendingApplicationCodes, Gemfire::Statistics, RabbitMq::Instances, RabbitMq::PluginImages, RabbitMq::Plugins, Groups, InstallationImages, Installations, Logs, PendingConfigurations, Sqlfire::AgentInstances, Sqlfire::LocatorInstances, Sqlfire::ServerInstances, TcServer::Applications, TcServer::Instances, TcServer::RevisionImages, TcServer::Revisions, TcServer::TemplateImages, TcServer::Templates, VFabric::Nodes, WebServer::Instances
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
Methods inherited from Collection
Constructor Details
This class inherits a constructor from Shared::Collection
Instance Method Details
#create(payload, rel = nil) ⇒ Object
23 24 25 26 27 |
# File 'lib/vas/shared/mutable_collection.rb', line 23 def create(payload, rel=nil) created = create_entry(client.post(location, payload, rel)) reload created end |
#create_image(path, payload = nil) ⇒ Object
30 31 32 33 34 |
# File 'lib/vas/shared/mutable_collection.rb', line 30 def create_image(path, payload=nil) created = create_entry(client.post_image(location, path, payload)) reload created end |