Sha256: 2d35e183fca751f1338fa52e1b525683c0f05a7fbe5ab3307ca63a481f623f29
Contents?: true
Size: 1.14 KB
Versions: 39
Compression:
Stored size: 1.14 KB
Contents
require 'fog/openstack/models/model' module Fog module NFV class OpenStack class Vnfd < Fog::OpenStack::Model identity :id attribute :service_types attribute :description attribute :tenant_id attribute :mgmt_driver attribute :infra_driver attribute :name attribute :vnf_attributes # Attributes for create attribute :vnfd attribute :auth def create(options = {}) merge_attributes(service.create_vnfd(default_options.merge(options)).body['vnfd']) self end def update(_options = {}) raise Fog::OpenStack::Errors::InterfaceNotImplemented, "Method 'update' is not supported" end def save(options = {}) identity ? update(options) : create(options) end def destroy requires :id service.delete_vnfd(id) true end def default_options { :vnfd => vnfd, :auth => auth } end def vnf_attributes attributes['attributes'] end end end end end
Version data entries
39 entries across 37 versions & 3 rubygems