Class Fog::Image::OpenStack::V2::Image
In: lib/fog/image/openstack/v2/models/image.rb
Parent: Fog::OpenStack::Model

Methods

Public Instance methods

This overrides the behaviour of Fog::OpenStack::Model::save() which tries to be clever and

 assumes save=update if an ID is present - but Image V2 allows ID to be specified on creation

Here we convert ‘attributes’ into a form suitable for Glance‘s usage of JSON Patch (RFC6902).

 We fetch the existing attributes from the server to compute the delta (difference)
 Setting value to nil will delete that attribute from the server.

[Validate]