module ApiStub module Models module DNS # Mock class for Record Set class RecordSet # This class contain two mocks, for collection and for model def self.list_record_sets { 'id' => '/subscriptions/########-####-####-####-############/resourceGroups/fog-test-rg/providers/Microsoft.Network/dnszones/fog-test-zone.com/A/fog-test-record_set', 'name' => 'fog-test-record_set', 'type' => 'Microsoft.Network/dnszones/A', 'etag' => '3376a38f-a53f-4ed0-a2e7-dfaba67dbb40', 'location' => 'global', 'properties' => { 'metadata' => nil, 'fqdn' => 'fog-test-record_set.fog-test-zone.com.', 'TTL' => 60, 'ARecords' => [ { 'ipv4Address' => '1.2.3.4' }, { 'ipv4Address' => '1.2.3.3' } ] } } end def self.create_record_set_obj { 'id' => '/subscriptions/########-####-####-####-############/resourceGroups/fog-test-rg/providers/Microsoft.Network/dnszones/fog-test-zone.com/A/fog-test-record_set', 'name' => 'fog-test-record_set', 'type' => 'Microsoft.Network/dnszones/A', 'etag' => '3376a38f-a53f-4ed0-a2e7-dfaba67dbb40', 'location' => 'global', 'properties' => { 'metadata' => nil, 'fqdn' => 'fog-test-record_set.fog-test-zone.com.', 'TTL' => 60, 'ARecords' => [ { 'ipv4Address' => '1.2.3.4' }, { 'ipv4Address' => '1.2.3.3' } ] } } end def self.response_for_cname { 'id' => '/subscriptions/########-####-####-####-############/resourceGroups/EdgeMonitoring2/providers/Microsoft.Network/dnszones/edgemonitoring2.com./CNAME/www', 'location' => 'global', 'name' => 'www', 'tags' => {}, 'type' => 'Microsoft.Network/dnszones/CNAME', 'etag' => '5b83020b-b59c-44be-8f19-a052ebe80fe7', 'properties' => { 'metadata' => 'nil', 'fqdn' => 'fog-test-record_set.fog-test-zone.com.', 'TTL' => '60', 'CNAMERecord' => { 'cname' => 'test.fog.com' } } } end end end end end