Sha256: c6dd89c56a7ff45f81b6ad13940c9b2b996972d5f268d2e887d90cfd5a442211
Contents?: true
Size: 1.1 KB
Versions: 22
Compression:
Stored size: 1.1 KB
Contents
# frozen_string_literal: true require 'fog/core/model' module Fog module Compute class Aliyun class VRouter < Fog::Model identity :id, aliases: 'VRouterId' attribute :name, aliases: 'VRouterName' attribute :route_table_ids, aliases: 'RouteTableIds' attribute :created_at, aliases: 'CreationTime' attribute :description, aliases: 'Description' attribute :region_id, aliases: 'RegionId' attribute :vpc_id, aliases: 'VpcId' def vpc requires :vpc_id $vpc = Fog::Compute::Aliyun::Vpcs.new(service: service).all('vpcId' => vpc_id)[0] end def route_tables @route_tables ||= begin Fog::Compute::Aliyun::RouteTables.new( v_router: self, service: service ) end end end end end end # "VRouters"=>{"VRouter"=>[{"VRouterName"=>"", "RouteTableIds"=>{"RouteTableId"=>["vtb-2504onoxh"]}, # "CreationTime"=>"2015-08-03T11:23:35Z", "Description"=>"", "RegionId"=>"cn-beijing", # "VRouterId"=>"vrt-25azmd2wm", "VpcId"=>"vpc-25mj6mguq"}]}
Version data entries
22 entries across 20 versions & 2 rubygems