Sha256: a4c400774d1cb3ebbe84a75a12ac7f76d1eabb162bb00401d7653c69a89cba96
Contents?: true
Size: 1.2 KB
Versions: 1
Compression:
Stored size: 1.2 KB
Contents
module ApiStub module Models module Network # Mock class for Network Security Rule Model class NetworkSecurityRule def self.create_network_security_rule_response(network_client) nsr = '{ "name":"myNsRule", "id":"/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/myNsg/securityRules/myNsRule", "etag":"W/\"00000000-0000-0000-0000-000000000000\"", "properties":{ "provisioningState":"Succeeded", "description":"description-of-this-rule", "protocol": "*", "sourcePortRange":"source-port-range", "destinationPortRange":"destination-port-range", "sourceAddressPrefix":"*", "destinationAddressPrefix":"*", "access":"Allow", "priority":6500, "direction":"Inbound" } }' nsr_mapper = Azure::ARM::Network::Models::SecurityRule.mapper network_client.deserialize(nsr_mapper, Fog::JSON.decode(nsr), 'result.body') end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fog-azure-rm-0.1.1 | test/api_stub/models/network/network_security_rule.rb |