Sha256: b2a11337ba39507c64fb9fd5d799eca5f717ea7874b2e44e4c516d86c3fedad8

Contents?: true

Size: 1001 Bytes

Versions: 47

Compression:

Stored size: 1001 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, Fog::JSON.decode(zone), 'result.body')
        end
      end
    end
  end
end

Version data entries

47 entries across 47 versions & 4 rubygems

Version Path
fog-azure-rm-0.2.5 test/api_stub/models/dns/zone.rb
fog-azure-rm-0.2.4 test/api_stub/models/dns/zone.rb
fog-azure-rm-0.2.3 test/api_stub/models/dns/zone.rb
fog-azure-rm-0.2.2 test/api_stub/models/dns/zone.rb
fog-azure-rm-0.2.1 test/api_stub/models/dns/zone.rb
fog-azure-rm-0.2.0 test/api_stub/models/dns/zone.rb
fog-azure-rm-0.1.2 test/api_stub/models/dns/zone.rb