Sha256: 9c70a541eed6b30232a7ba7ca2b5dd84a3a49121a813384dd2e53f8290fd0b23
Contents?: true
Size: 838 Bytes
Versions: 47
Compression:
Stored size: 838 Bytes
Contents
module Fog module ApplicationGateway class AzureRM class Real def stop_application_gateway(resource_group, name) msg = "Stopping Application Gateway #{name} in Resource Group #{resource_group}" Fog::Logger.debug msg begin @network_client.application_gateways.stop(resource_group, name) rescue MsRestAzure::AzureOperationError => e raise_azure_exception(e, msg) end Fog::Logger.debug "Successfully stopped Application Gateway #{name} in Resource Group #{resource_group}" true end end class Mock def stop_application_gateway(*) Fog::Logger.debug 'Successfully stopped Application Gateway {name} in Resource Group {resource_group}' true end end end end end
Version data entries
47 entries across 47 versions & 4 rubygems