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



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

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

#vpcObject



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

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