Sha256: 468a0edad0f79c5b8fac0be68c8e5f9948582319eb87f2d8cc1bb5739b1d3205
Contents?: true
Size: 1.21 KB
Versions: 4
Compression:
Stored size: 1.21 KB
Contents
require 'fog/huaweicloud/models/model' module Fog module Network class HuaweiCloud class SubnetPool < Fog::HuaweiCloud::Model identity :id attribute :name attribute :prefixes attribute :description attribute :address_scope_id attribute :shared attribute :ip_version attribute :min_prefixlen attribute :max_prefixlen attribute :default_prefixlen attribute :is_default attribute :default_quota attribute :created_at attribute :updated_at attribute :tenant_id def create requires :name, :prefixes merge_attributes(service.create_subnet_pool(name, prefixes, attributes).body['subnetpool']) self end def update requires :id merge_attributes(service.update_subnet_pool(id, attributes).body['subnetpool']) self end def destroy requires :id service.delete_subnet_pool(id) true end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems