Sha256: ba8df6557887883246e0a8041a5f902d46d521abd4ac992e43c973f1148f10c4

Contents?: true

Size: 1023 Bytes

Versions: 2

Compression:

Stored size: 1023 Bytes

Contents

module ApiStub
  module Models
    module DNS
      # Mock class for Zone
      class Zone
        def self.create_zone_obj(dns_client)
          zone = '{
            "id": "/subscriptions/########-####-####-####-############/resourceGroups/fog-test-rg/providers/Microsoft.Network/dnszones/fog-test-zone.com",
            "name": "fog-test-zone.com",
            "type": "Microsoft.Network/dnszones",
            "etag": "00000003-0000-0000-bd66-02b337a4d101",
            "location": "global",
            "tags": {},
            "properties":
              {
                "maxNumberOfRecordSets": 100,
                "nameServers": [],
                "numberOfRecordSets": 2,
                "parentResourceGroupName": "fog-test-rg"
              },
            "resource_group": "fog-test-rg"
          }'
          zone_mapper = Azure::ARM::Dns::Models::Zone.mapper
          dns_client.deserialize(zone_mapper, JSON.load(zone), 'result.body')
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fog-azure-rm-0.1.0 test/api_stub/models/dns/zone.rb
fog-azure-rm-0.0.9 test/api_stub/models/dns/zone.rb