Sha256: 358b5138bc23526611227af4600b76d02284657256527734d3ebb269e928c757

Contents?: true

Size: 1.15 KB

Versions: 46

Compression:

Stored size: 1.15 KB

Contents

module Fog
  module ApplicationGateway
    class AzureRM
      # Application Gateway collection class for Application Gateway Service
      class Gateways < Fog::Collection
        model Fog::ApplicationGateway::AzureRM::Gateway
        attribute :resource_group

        def all
          requires :resource_group
          application_gateways = []
          service.list_application_gateways(resource_group).each do |gateway|
            application_gateways << Fog::ApplicationGateway::AzureRM::Gateway.parse(gateway)
          end
          load(application_gateways)
        end

        def get(resource_group_name, application_gateway_name)
          gateway = service.get_application_gateway(resource_group_name, application_gateway_name)
          application_gateway = Fog::ApplicationGateway::AzureRM::Gateway.new(service: service)
          application_gateway.merge_attributes(Fog::ApplicationGateway::AzureRM::Gateway.parse(gateway))
        end

        def check_application_gateway_exists(resource_group_name, application_gateway_name)
          service.check_ag_exists(resource_group_name, application_gateway_name)
        end
      end
    end
  end
end

Version data entries

46 entries across 46 versions & 4 rubygems

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