Sha256: 92a3cef6ce69c03c4bdc236e875b0bcd306f500e64aaf9f2e739899fcf1c49f4

Contents?: true

Size: 1.45 KB

Versions: 22

Compression:

Stored size: 1.45 KB

Contents

# frozen_string_literal: true

require 'fog/core/model'
module Fog
  module Compute
    class Aliyun
      class RouteEntry < Fog::Model
        # "RouteTables"=>{"RouteTable"=>[
        #  {"CreationTime"=>"2015-08-03T11:23:35Z", "RouteEntrys"=>{"RouteEntry"=>[
        #    {"Status"=>"Available", "Type"=>"System", "InstanceId"=>"", "RouteTableId"=>"vtb-2504onoxh", "DestinationCidrBlock"=>"172.16.0.0/24"},
        #    {"Status"=>"Available", "Type"=>"System", "InstanceId"=>"", "RouteTableId"=>"vtb-2504onoxh", "DestinationCidrBlock"=>"172.16.1.0/24"},
        #    {"Status"=>"Available", "Type"=>"System", "InstanceId"=>"", "RouteTableId"=>"vtb-2504onoxh", "DestinationCidrBlock"=>"172.16.2.0/24"},
        #    {"Status"=>"Available", "Type"=>"System", "InstanceId"=>"", "RouteTableId"=>"vtb-2504onoxh", "DestinationCidrBlock"=>"100.64.0.0/10"},
        #    {"Status"=>"Available", "Type"=>"System", "InstanceId"=>"", "RouteTableId"=>"vtb-2504onoxh", "DestinationCidrBlock"=>"10.0.0.0/8"}]},
        #  "RouteTableId"=>"vtb-2504onoxh", "RouteTableType"=>"System", "VRouterId"=>"vrt-25azmd2wm"}]}
        identity :cidr_block, aliases: 'DestinationCidrBlock'
        attribute :state, aliases: 'Status'
        attribute :server_id, aliases: 'InstanceId'
        attribute :type, aliases: 'Type'
        attribute :route_table_id, aliases: 'RouteTableId'

        # def save
        #   requires :cidr_block,:route_table_id
        #   if(cidr_block)
      end
    end
  end
end

Version data entries

22 entries across 20 versions & 2 rubygems

Version Path
fog-aliyun-0.4.0 lib/fog/aliyun/models/compute/route_entry.rb
fog-aliyun-0.3.19 lib/fog/aliyun/models/compute/route_entry.rb
fog-aliyun-0.3.18 lib/fog/aliyun/models/compute/route_entry.rb
fog-aliyun-0.3.17 lib/fog/aliyun/models/compute/route_entry.rb
fog-aliyun-0.3.16 lib/fog/aliyun/models/compute/route_entry.rb
fog-aliyun-0.3.15 lib/fog/aliyun/models/compute/route_entry.rb
fog-aliyun-0.3.13 lib/fog/aliyun/models/compute/route_entry.rb
fog-aliyun-0.3.12 lib/fog/aliyun/models/compute/route_entry.rb
fog-aliyun-0.3.11 lib/fog/aliyun/models/compute/route_entry.rb
fog-aliyun-0.3.10 lib/fog/aliyun/models/compute/route_entry.rb
fog-aliyun-0.3.9 lib/fog/aliyun/models/compute/route_entry.rb
fog-aliyun-0.3.8 lib/fog/aliyun/models/compute/route_entry.rb
fog-aliyun-0.3.7 lib/fog/aliyun/models/compute/route_entry.rb
fog-aliyun-0.3.6 lib/fog/aliyun/models/compute/route_entry.rb
fog-aliyun-0.3.5 lib/fog/aliyun/models/compute/route_entry.rb
fog-aliyun-0.3.4 lib/fog/aliyun/models/compute/route_entry.rb
fog-aliyun-0.3.3 lib/fog/aliyun/models/compute/route_entry.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-aliyun-0.3.2/lib/fog/aliyun/models/compute/route_entry.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-aliyun-0.3.2/lib/fog/aliyun/models/compute/route_entry.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-aliyun-0.3.2/lib/fog/aliyun/models/compute/route_entry.rb