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

Version Path
fog-azure-rm-0.6.0 lib/fog/azurerm/requests/application_gateway/update_sku_attributes.rb
fog-azure-rm-0.5.3 lib/fog/azurerm/requests/application_gateway/update_sku_attributes.rb
fog-azure-rm-0.5.2 lib/fog/azurerm/requests/application_gateway/update_sku_attributes.rb
far-gem-0.5.6 lib/fog/azurerm/requests/application_gateway/update_sku_attributes.rb
fog-azure-rm-0.5.1 lib/fog/azurerm/requests/application_gateway/update_sku_attributes.rb
far-gem-0.5.5 lib/fog/azurerm/requests/application_gateway/update_sku_attributes.rb
fog-azure-rm-0.5.0 lib/fog/azurerm/requests/application_gateway/update_sku_attributes.rb
far-gem-0.5.4 lib/fog/azurerm/requests/application_gateway/update_sku_attributes.rb
far-gem-0.5.3 lib/fog/azurerm/requests/application_gateway/update_sku_attributes.rb
fog-azure-rm-0.4.9 lib/fog/azurerm/requests/application_gateway/update_sku_attributes.rb
far-gem-0.5.2 lib/fog/azurerm/requests/application_gateway/update_sku_attributes.rb
fog-azure-rm-0.4.8 lib/fog/azurerm/requests/application_gateway/update_sku_attributes.rb
fog-azure-rm-0.4.7 lib/fog/azurerm/requests/application_gateway/update_sku_attributes.rb
fog-azure-rm-0.4.6 lib/fog/azurerm/requests/application_gateway/update_sku_attributes.rb
fog-azure-rm-0.4.5 lib/fog/azurerm/requests/application_gateway/update_sku_attributes.rb
fog-azure-rm-temp-0.0.5 lib/fog/azurerm/requests/application_gateway/update_sku_attributes.rb
fog-azure-rm-0.4.4 lib/fog/azurerm/requests/application_gateway/update_sku_attributes.rb
fog-azure-rm-0.4.3 lib/fog/azurerm/requests/application_gateway/update_sku_attributes.rb
far-gem-0.5.1 lib/fog/azurerm/requests/application_gateway/update_sku_attributes.rb
fog-azure-rm-0.4.2 lib/fog/azurerm/requests/application_gateway/update_sku_attributes.rb