Sha256: d05d7fa2d1bf34c1aa926454bc29b917da050d9beae11ea2c04ab88420a1bb61
Contents?: true
Size: 872 Bytes
Versions: 47
Compression:
Stored size: 872 Bytes
Contents
module Fog module ApplicationGateway class AzureRM # Real class for Application Gateway Request class Real def list_application_gateways(resource_group) msg = "Getting list of Application-Gateway from Resource Group #{resource_group}." Fog::Logger.debug msg begin gateways = @network_client.application_gateways.list_as_lazy(resource_group) rescue MsRestAzure::AzureOperationError => e raise_azure_exception(e, msg) end gateways.value end end # Mock class for Network Request class Mock def list_application_gateways(_resource_group) ag = Azure::ARM::Network::Models::ApplicationGateway.new ag.name = 'fogtestgateway' ag.location = 'East US' [ag] end end end end end
Version data entries
47 entries across 47 versions & 4 rubygems