Sha256: 6a275c888733e8066129be37b15279d9c596be8ebed2a06e8881acfaafb57988
Contents?: true
Size: 698 Bytes
Versions: 4
Compression:
Stored size: 698 Bytes
Contents
require 'fog/huaweicloud/models/model' module Fog module Network class HuaweiCloud class Vpc < Fog::HuaweiCloud::Model identity :id attribute :name attribute :cidr attribute :status def create requires :name, :cidr merge_attributes(service.create_vpc(name, cidr).body['vpc']) self end # TODO not support # def update # requires :id # merge_attributes(service.update_subnet(id, attributes).body['subnet']) # self # end def destroy requires :id service.delete_vpc(id) true end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems