test/api_stub.rb in fog-azure-rm-0.0.5 vs test/api_stub.rb in fog-azure-rm-0.0.6

- old
+ new

@@ -1,51 +1,100 @@ -require File.expand_path 'api_stub/models/compute/server', __dir__ -require File.expand_path 'api_stub/models/compute/availability_set', __dir__ -require File.expand_path 'api_stub/models/resources/resource_group', __dir__ -require File.expand_path 'api_stub/models/resources/deployment', __dir__ -require File.expand_path 'api_stub/models/resources/resource', __dir__ -require File.expand_path 'api_stub/models/storage/storageaccount', __dir__ -require File.expand_path 'api_stub/models/storage/blob', __dir__ -require File.expand_path 'api_stub/models/storage/container', __dir__ -require File.expand_path 'api_stub/models/network/public_ip', __dir__ -require File.expand_path 'api_stub/models/network/subnet', __dir__ -require File.expand_path 'api_stub/models/network/virtual_network', __dir__ -require File.expand_path 'api_stub/models/network/network_interface', __dir__ -require File.expand_path 'api_stub/models/network/load_balancer', __dir__ -require File.expand_path 'api_stub/models/network/network_security_group', __dir__ -require File.expand_path 'api_stub/models/application_gateway/gateway', __dir__ -require File.expand_path 'api_stub/models/network/virtual_network_gateway', __dir__ -require File.expand_path 'api_stub/models/network/express_route_circuit', __dir__ -require File.expand_path 'api_stub/models/network/express_route_circuit_peering', __dir__ -require File.expand_path 'api_stub/models/network/express_route_service_provider', __dir__ -require File.expand_path 'api_stub/models/traffic_manager/traffic_manager_end_point', __dir__ -require File.expand_path 'api_stub/models/traffic_manager/traffic_manager_profile', __dir__ -require File.expand_path 'api_stub/models/dns/zone', __dir__ -require File.expand_path 'api_stub/models/dns/record_set', __dir__ - -require File.expand_path 'api_stub/requests/compute/availability_set', __dir__ -require File.expand_path 'api_stub/requests/compute/virtual_machine', __dir__ -require File.expand_path 'api_stub/requests/resources/resource_group', __dir__ -require File.expand_path 'api_stub/requests/resources/deployment', __dir__ -require File.expand_path 'api_stub/requests/resources/resource', __dir__ -require File.expand_path 'api_stub/requests/storage/storageaccount', __dir__ -require File.expand_path 'api_stub/requests/storage/blob', __dir__ -require File.expand_path 'api_stub/requests/storage/container', __dir__ -require File.expand_path 'api_stub/requests/network/public_ip', __dir__ -require File.expand_path 'api_stub/requests/network/subnet', __dir__ -require File.expand_path 'api_stub/requests/network/virtual_network', __dir__ -require File.expand_path 'api_stub/requests/network/network_interface', __dir__ -require File.expand_path 'api_stub/requests/network/load_balancer', __dir__ -require File.expand_path 'api_stub/requests/network/network_security_group', __dir__ -require File.expand_path 'api_stub/requests/application_gateway/gateway', __dir__ -require File.expand_path 'api_stub/requests/network/virtual_network_gateway', __dir__ -require File.expand_path 'api_stub/requests/network/express_route_circuit', __dir__ -require File.expand_path 'api_stub/requests/network/express_route_circuit_peering', __dir__ -require File.expand_path 'api_stub/requests/network/express_route_service_provider', __dir__ -require File.expand_path 'api_stub/requests/traffic_manager/traffic_manager_endpoint', __dir__ -require File.expand_path 'api_stub/requests/traffic_manager/traffic_manager_profile', __dir__ -require File.expand_path 'api_stub/requests/dns/zone', __dir__ -require File.expand_path 'api_stub/requests/dns/record_set', __dir__ - # Module for API Stub module ApiStub + module Models + module Compute + autoload :Server, File.expand_path('api_stub/models/compute/server', __dir__) + autoload :AvailabilitySet, File.expand_path('api_stub/models/compute/availability_set', __dir__) + end + + module Resources + autoload :ResourceGroup, File.expand_path('api_stub/models/resources/resource_group', __dir__) + autoload :Deployment, File.expand_path('api_stub/models/resources/deployment', __dir__) + autoload :Resource, File.expand_path('api_stub/models/resources/resource', __dir__) + end + + module Storage + autoload :StorageAccount, File.expand_path('api_stub/models/storage/storageaccount', __dir__) + autoload :Blob, File.expand_path('api_stub/models/storage/blob', __dir__) + autoload :Container, File.expand_path('api_stub/models/storage/container', __dir__) + end + + module Network + autoload :PublicIp, File.expand_path('api_stub/models/network/public_ip', __dir__) + autoload :Subnet, File.expand_path('api_stub/models/network/subnet', __dir__) + autoload :VirtualNetwork, File.expand_path('api_stub/models/network/virtual_network', __dir__) + autoload :NetworkInterface, File.expand_path('api_stub/models/network/network_interface', __dir__) + autoload :LoadBalancer, File.expand_path('api_stub/models/network/load_balancer', __dir__) + autoload :NetworkSecurityGroup, File.expand_path('api_stub/models/network/network_security_group', __dir__) + autoload :VirtualNetworkGateway, File.expand_path('api_stub/models/network/virtual_network_gateway', __dir__) + autoload :VirtualNetworkGatewayConnection, File.expand_path('api_stub/models/network/virtual_network_gateway_connection', __dir__) + autoload :ExpressRouteCircuit, File.expand_path('api_stub/models/network/express_route_circuit', __dir__) + autoload :ExpressRouteCircuitPeering, File.expand_path('api_stub/models/network/express_route_circuit_peering', __dir__) + autoload :ExpressRouteCircuitAuthorization, File.expand_path('api_stub/models/network/express_route_circuit_authorization', __dir__) + autoload :ExpressRouteServiceProvider, File.expand_path('api_stub/models/network/express_route_service_provider', __dir__) + autoload :LocalNetworkGateway, File.expand_path('api_stub/models/network/local_network_gateway', __dir__) + end + + module ApplicationGateway + autoload :Gateway, File.expand_path('api_stub/models/application_gateway/gateway', __dir__) + end + + module TrafficManager + autoload :TrafficManagerEndPoint, File.expand_path('api_stub/models/traffic_manager/traffic_manager_end_point', __dir__) + autoload :TrafficManagerProfile, File.expand_path('api_stub/models/traffic_manager/traffic_manager_profile', __dir__) + end + + module DNS + autoload :Zone, File.expand_path('api_stub/models/dns/zone', __dir__) + autoload :RecordSet, File.expand_path('api_stub/models/dns/record_set', __dir__) + end + end + + module Requests + module Compute + autoload :AvailabilitySet, File.expand_path('api_stub/requests/compute/availability_set', __dir__) + autoload :VirtualMachine, File.expand_path('api_stub/requests/compute/virtual_machine', __dir__) + end + + module Resources + autoload :ResourceGroup, File.expand_path('api_stub/requests/resources/resource_group', __dir__) + autoload :Deployment, File.expand_path('api_stub/requests/resources/deployment', __dir__) + autoload :AzureResource, File.expand_path('api_stub/requests/resources/resource', __dir__) + end + + module Storage + autoload :StorageAccount, File.expand_path('api_stub/requests/storage/storageaccount', __dir__) + autoload :Blob, File.expand_path('api_stub/requests/storage/blob', __dir__) + autoload :Container, File.expand_path('api_stub/requests/storage/container', __dir__) + end + + module Network + autoload :PublicIp, File.expand_path('api_stub/requests/network/public_ip', __dir__) + autoload :Subnet, File.expand_path('api_stub/requests/network/subnet', __dir__) + autoload :VirtualNetwork, File.expand_path('api_stub/requests/network/virtual_network', __dir__) + autoload :NetworkInterface, File.expand_path('api_stub/requests/network/network_interface', __dir__) + autoload :LoadBalancer, File.expand_path('api_stub/requests/network/load_balancer', __dir__) + autoload :NetworkSecurityGroup, File.expand_path('api_stub/requests/network/network_security_group', __dir__) + autoload :VirtualNetworkGateway, File.expand_path('api_stub/requests/network/virtual_network_gateway', __dir__) + autoload :VirtualNetworkGatewayConnection, File.expand_path('api_stub/requests/network/virtual_network_gateway_connection', __dir__) + autoload :ExpressRouteCircuit, File.expand_path('api_stub/requests/network/express_route_circuit', __dir__) + autoload :ExpressRouteCircuitPeering, File.expand_path('api_stub/requests/network/express_route_circuit_peering', __dir__) + autoload :ExpressRouteCircuitAuthorization, File.expand_path('api_stub/requests/network/express_route_circuit_authorization', __dir__) + autoload :ExpressRouteServiceProvider, File.expand_path('api_stub/requests/network/express_route_service_provider', __dir__) + autoload :LocalNetworkGateway, File.expand_path('api_stub/requests/network/local_network_gateway', __dir__) + end + + module ApplicationGateway + autoload :Gateway, File.expand_path('api_stub/requests/application_gateway/gateway', __dir__) + end + + module TrafficManager + autoload :TrafficManagerEndPoint, File.expand_path('api_stub/requests/traffic_manager/traffic_manager_endpoint', __dir__) + autoload :TrafficManagerProfile, File.expand_path('api_stub/requests/traffic_manager/traffic_manager_profile', __dir__) + end + + module DNS + autoload :Zone, File.expand_path('api_stub/requests/dns/zone', __dir__) + autoload :RecordSet, File.expand_path('api_stub/requests/dns/record_set', __dir__) + end + end end