Sha256: 0568b03d90ddaf6afc65ba55924cecf2157f832b2ad18e595c628997c0dfdec5

Contents?: true

Size: 1.98 KB

Versions: 1

Compression:

Stored size: 1.98 KB

Contents

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
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fog-azure-rm-0.0.4 test/api_stub/models/dns/record_set.rb