Sha256: 7b2d2e74c826ab10273a98f577c309a9064232ccfb7065af4eb7f12617d9558a
Contents?: true
Size: 697 Bytes
Versions: 22
Compression:
Stored size: 697 Bytes
Contents
# frozen_string_literal: true require 'fog/core/collection' require 'fog/aliyun/models/compute/route_table' module Fog module Compute class Aliyun class RouteTables < Fog::Collection attribute :v_router model Fog::Compute::Aliyun::RouteTable def all(options = {}) requires :v_router data = Fog::JSON.decode(service.list_route_tables(v_router.id, options).body)['RouteTables']['RouteTable'] load(data) end def get(routeTableId) requires :v_router self.class.new(service: service, v_router: v_router).all(routeTableId: routeTableId)[0] if routeTableId end end end end end
Version data entries
22 entries across 20 versions & 2 rubygems