Sha256: 45ed581d63b45c730bd28b0a9e454c2f1f8992cc95934e891a74fa49c5f88bd9
Contents?: true
Size: 1.38 KB
Versions: 47
Compression:
Stored size: 1.38 KB
Contents
module ApiStub module Models module Network # Mock class for Virtual Network Gateway Connection Models class VirtualNetworkGatewayConnection def self.create_virtual_network_gateway_connection_response(network_client) gateway_connection = '{ "name": "cn1", "id": "/subscriptions/{subscription-id}/resourceGroups/{resource_group_name}/providers/microsoft.network/connections/connection1", "location": "West US", "tags": { "key1": "value1" }, "properties": { "virtualNetworkGateway1": { "name": "firstgateway", "id": "/subscriptions/{subscription-id}/resourceGroups/{resource_group_name}/providers/microsoft.network/SiteToSite/firstgateway" }, "virtualNetworkGateway2": { "name": "secondgateway", "id": "/subscriptions/{subscription-id}/resourceGroups/{resource_group_name}/providers/microsoft.network/SiteToSite/secondgateway" }, "connectionType": "SiteToSite", "connectivityState": "Connected" } }' connection_mapper = Azure::ARM::Network::Models::VirtualNetworkGatewayConnection.mapper network_client.deserialize(connection_mapper, Fog::JSON.decode(gateway_connection), 'result.body') end end end end end
Version data entries
47 entries across 47 versions & 4 rubygems