Sha256: c292c1eddd3dc20662959944bc0413402f8dfe5a688fc757daed3b71b370c959
Contents?: true
Size: 874 Bytes
Versions: 47
Compression:
Stored size: 874 Bytes
Contents
module Fog module ApplicationGateway class AzureRM # Real class for Application Gateway Request class Real def update_sku_attributes(gateway_params, sku_name, sku_capacity) msg = "Updating sku attributes for #{sku_name}" Fog::Logger.debug msg gateway_params[:sku_name] = sku_name if sku_name gateway_params[:sku_capacity] = sku_capacity if sku_capacity begin gateway = create_or_update_application_gateway(gateway_params) rescue MsRestAzure::AzureOperationError => e raise_azure_exception(e, msg) end Fog::Logger.debug "Sku #{sku_name} updated Successfully" gateway end end # Mock class for Application Gateway Request class Mock def update_sku_attributes(*) end end end end end
Version data entries
47 entries across 47 versions & 4 rubygems