lib/fog/azurerm/docs/network.md in fog-azure-rm-0.2.3 vs lib/fog/azurerm/docs/network.md in fog-azure-rm-0.2.4

- old
+ new

@@ -251,11 +251,11 @@ resource_group: '<Resource Group name>', location: 'eastus', subnet_id: '/subscriptions/<Subscriptionid>/resourceGroups/<Resource Group name>/providers/Microsoft.Network/virtualNetworks/<Virtual Network name>/subnets/<Subnet name>', public_ip_address_id: '/subscriptions/<Subscriptionid>/resourceGroups/<Resource Group name>/providers/Microsoft.Network/publicIPAddresses/<Public IP name>', ip_configuration_name: '<Ip Configuration Name>', - private_ip_allocation_method: Fog::Network::AzureRM::IPAllocationMethod::Dynamic + private_ip_allocation_method: Fog::ARM::Network::Models::IPAllocationMethod::Dynamic ) ``` ## List Network Interface Cards @@ -331,11 +331,11 @@ ```ruby pubip = azure_network_service.public_ips.create( name: '<Public IP name>', resource_group: '<Resource Group name>', location: 'westus', - public_ip_allocation_method: Fog::Network::AzureRM::IPAllocationMethod::Static + public_ip_allocation_method: Fog::ARM::Network::Models::IPAllocationMethod::Static ) ``` ## Check for Public IP @@ -402,18 +402,18 @@ name: '<Network Security Group name>', resource_group: '<Resource Group name>', location: 'eastus', security_rules: [{ name: '<Security Rule name>', - protocol: Fog::Network::AzureRM::SecurityRuleProtocol::Tcp, + protocol: Fog::ARM::Network::Models::SecurityRuleProtocol::Tcp, 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 }] ) ``` ## List Network Security Groups @@ -446,18 +446,18 @@ nsg.update_security_rules( security_rules: [ { name: '<Security Rule name>', - protocol: Fog::Network::AzureRM::SecurityRuleProtocol::Tcp, + protocol: Fog::ARM::Network::Models::SecurityRuleProtocol::Tcp, source_port_range: '*', destination_port_range: '*', 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 } ] ) ``` `Note: You can't modify Name of a security rule.` @@ -469,18 +469,18 @@ ```ruby nsg.add_security_rules( [ { name: '<Security Rule name>', - protocol: Fog::Network::AzureRM::SecurityRuleProtocol::Tcp, + protocol: Fog::ARM::Network::Models::SecurityRuleProtocol::Tcp, source_port_range: '3389', destination_port_range: '3389', 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: '102', - direction: Fog::Network::AzureRM::SecurityRuleDirection::Inbound + direction: Fog::ARM::Network::Models::SecurityRuleDirection::Inbound } ] ) ``` @@ -510,19 +510,19 @@ ```ruby azure_network_service.network_security_rules.create( name: '<Security Rule name>', resource_group: '<Resource Group name>', - protocol: Fog::Network::AzureRM::SecurityRuleProtocol::Tcp, + protocol: Fog::ARM::Network::Models::SecurityRuleProtocol::Tcp, network_security_group_name: '<Network Security Group name>', 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 ) ``` ## List Network Security Rules @@ -573,11 +573,11 @@ frontend_ip_configurations: [ { name: 'fic', - private_ipallocation_method: Fog::Network::AzureRM::IPAllocationMethod::Dynamic, + private_ipallocation_method: Fog::ARM::Network::Models::IPAllocationMethod::Dynamic, public_ipaddress_id: '/subscriptions/<Subscriptionid>/resourceGroups/<Resource Group name>/providers/Microsoft.Network/publicIPAddresses/<Public-IP-Name>' } ], backend_address_pool_names: [ @@ -620,11 +620,11 @@ location: 'westus', frontend_ip_configurations: [ { name: 'LB-Frontend', - private_ipallocation_method: Fog::Network::AzureRM::IPAllocationMethod::Static, + private_ipallocation_method: Fog::ARM::Network::Models::IPAllocationMethod::Static, private_ipaddress: '10.1.2.5', subnet_id: subnet.id } ], backend_address_pool_names: @@ -734,10 +734,10 @@ key2: 'value2' }, ip_configurations: [ { name: 'default', - private_ipallocation_method: Fog::Network::AzureRM::IPAllocationMethod::Dynamic, + private_ipallocation_method: Fog::ARM::Network::Models::IPAllocationMethod::Dynamic, public_ipaddress_id: '/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.Network/publicIPAddresses/{public_ip_name}', subnet_id: '/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.Network/virtualNetworks/{virtual_network_name}/subnets/{subnet_name}', private_ipaddress: nil } ],