Class: Fog::Network::AzureRM::VirtualNetworkGatewayConnections
- Inherits:
-
Collection
- Object
- Collection
- Fog::Network::AzureRM::VirtualNetworkGatewayConnections
- Defined in:
- lib/fog/azurerm/models/network/virtual_network_gateway_connections.rb
Overview
VirtualNetworkGatewayConnections collection class for Network Service
Instance Method Summary collapse
- #all ⇒ Object
- #check_vnet_gateway_connection_exists(resource_group_name, name) ⇒ Object
- #get(resource_group_name, name) ⇒ Object
Instance Method Details
#all ⇒ Object
9 10 11 12 13 |
# File 'lib/fog/azurerm/models/network/virtual_network_gateway_connections.rb', line 9 def all requires :resource_group gateway_connections = service.list_virtual_network_gateway_connections(resource_group).map { |connection| Fog::Network::AzureRM::VirtualNetworkGatewayConnection.parse(connection) } load(gateway_connections) end |
#check_vnet_gateway_connection_exists(resource_group_name, name) ⇒ Object
21 22 23 |
# File 'lib/fog/azurerm/models/network/virtual_network_gateway_connections.rb', line 21 def check_vnet_gateway_connection_exists(resource_group_name, name) service.check_vnet_gateway_connection_exists(resource_group_name, name) end |
#get(resource_group_name, name) ⇒ Object
15 16 17 18 19 |
# File 'lib/fog/azurerm/models/network/virtual_network_gateway_connections.rb', line 15 def get(resource_group_name, name) connection = service.get_virtual_network_gateway_connection(resource_group_name, name) gateway_connection = Fog::Network::AzureRM::VirtualNetworkGatewayConnection.new(service: service) gateway_connection.merge_attributes(Fog::Network::AzureRM::VirtualNetworkGatewayConnection.parse(connection)) end |