Sha256: bf1ada63919ae333989690467c4132ea2399ba85c8c571c721f2d3f3f6390795

Contents?: true

Size: 953 Bytes

Versions: 5

Compression:

Stored size: 953 Bytes

Contents

module Fog
  module ApplicationGateway
    class AzureRM
      # Real class for Application Gateway Request
      class Real
        def update_subnet_id_in_gateway_ip_configuration(gateway_params, subnet_id)
          msg = 'Updating Subnet id of IP Configuration'
          Fog::Logger.debug msg
          gateway_params[:gateway_ip_configurations].each do |ip_configuration|
            ip_configuration[:subnet_id] = subnet_id
          end
          begin
            gateway = create_or_update_application_gateway(gateway_params)
          rescue MsRestAzure::AzureOperationError => e
            raise_azure_exception(e, msg)
          end
          Fog::Logger.debug 'IP Configuration updated Successfully'
          gateway
        end
      end

      # Mock class for Application Gateway Request
      class Mock
        def update_subnet_id_in_gateway_ip_configuration(*)
        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_subnet_id_in_gateway_ip_configuration.rb
fog-azure-rm-0.1.0 lib/fog/azurerm/requests/application_gateway/update_subnet_id_in_gateway_ip_configuration.rb
fog-azure-rm-0.0.9 lib/fog/azurerm/requests/application_gateway/update_subnet_id_in_gateway_ip_configuration.rb
fog-azure-rm-0.0.8 lib/fog/azurerm/requests/application_gateway/update_subnet_id_in_gateway_ip_configuration.rb
fog-azure-rm-0.0.6 lib/fog/azurerm/requests/application_gateway/update_subnet_id_in_gateway_ip_configuration.rb