Class: Fog::Compute::Aliyun::VRouter

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/aliyun/models/compute/vrouter.rb

Instance Method Summary collapse

Instance Method Details

#route_tablesObject



20
21
22
23
24
25
26
27
# File 'lib/fog/aliyun/models/compute/vrouter.rb', line 20

def route_tables
  @route_tables ||= begin
    Fog::Compute::Aliyun::RouteTables.new(
      :v_router => self,
      :service  => service
    )
  end
end

#vpcObject



15
16
17
18
# File 'lib/fog/aliyun/models/compute/vrouter.rb', line 15

def vpc
  requires :vpc_id
  $vpc=Fog::Compute::Aliyun::Vpcs.new(:service=>service).all('vpcId'=>vpc_id)[0]
end