test/integration/network_security_rule.rb in fog-azure-rm-0.2.3 vs test/integration/network_security_rule.rb in fog-azure-rm-0.2.4
- old
+ new
@@ -54,18 +54,18 @@
########################################################################################################################
network_security_rule = network.network_security_rules.create(
name: 'testRule',
resource_group: 'TestRG-NSR',
- protocol: Fog::Network::AzureRM::SecurityRuleProtocol::Tcp,
+ protocol: Fog::ARM::Network::Models::SecurityRuleProtocol::Tcp,
network_security_group_name: 'testGroup',
source_port_range: '22',
destination_port_range: '22',
source_address_prefix: '0.0.0.0/0',
destination_address_prefix: '0.0.0.0/0',
- access: Fog::Network::AzureRM::SecurityRuleAccess::Allow,
+ access: Fog::ARM::Network::Models::SecurityRuleAccess::Allow,
priority: '100',
- direction: Fog::Network::AzureRM::SecurityRuleDirection::Inbound
+ direction: Fog::ARM::Network::Models::SecurityRuleDirection::Inbound
)
puts "Created network security rule: #{network_security_rule.name}"
########################################################################################################################
###################### List Network Security Rules ######################