Sha256: 4258f361af94a20ccb7ce2d55ae3b332890daa03aca9fbbc86ab331ecaf7571e
Contents?: true
Size: 924 Bytes
Versions: 47
Compression:
Stored size: 924 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
47 entries across 47 versions & 4 rubygems