Sha256: f8e9c0000114b10534be5ac266d4fe0859cf20d245a9d51ec3302f9417217108

Contents?: true

Size: 902 Bytes

Versions: 5

Compression:

Stored size: 902 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

5 entries across 5 versions & 1 rubygems

Version Path
fog-azure-rm-0.1.1 lib/fog/azurerm/requests/application_gateway/update_sku_attributes.rb
fog-azure-rm-0.1.0 lib/fog/azurerm/requests/application_gateway/update_sku_attributes.rb
fog-azure-rm-0.0.9 lib/fog/azurerm/requests/application_gateway/update_sku_attributes.rb
fog-azure-rm-0.0.8 lib/fog/azurerm/requests/application_gateway/update_sku_attributes.rb
fog-azure-rm-0.0.6 lib/fog/azurerm/requests/application_gateway/update_sku_attributes.rb