Class: Fog::ApplicationGateway::AzureRM::Gateways
- Inherits:
-
Collection
- Object
- Collection
- Fog::ApplicationGateway::AzureRM::Gateways
- Defined in:
- lib/fog/azurerm/models/application_gateway/gateways.rb
Overview
Application Gateway collection class for Application Gateway Service
Instance Method Summary collapse
- #all ⇒ Object
- #check_application_gateway_exists(resource_group_name, application_gateway_name) ⇒ Object
- #get(resource_group_name, application_gateway_name) ⇒ Object
Instance Method Details
#all ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/fog/azurerm/models/application_gateway/gateways.rb', line 9 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 |
#check_application_gateway_exists(resource_group_name, application_gateway_name) ⇒ Object
24 25 26 |
# File 'lib/fog/azurerm/models/application_gateway/gateways.rb', line 24 def check_application_gateway_exists(resource_group_name, application_gateway_name) service.check_ag_exists(resource_group_name, application_gateway_name) end |
#get(resource_group_name, application_gateway_name) ⇒ Object
18 19 20 21 22 |
# File 'lib/fog/azurerm/models/application_gateway/gateways.rb', line 18 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 |