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.4.1 test/api_stub/models/dns/zone.rb
fog-azure-rm-0.4.0 test/api_stub/models/dns/zone.rb
fog-azure-rm-0.3.9 test/api_stub/models/dns/zone.rb
fog-azure-rm-0.3.8 test/api_stub/models/dns/zone.rb
fog-azure-rm-0.3.7 test/api_stub/models/dns/zone.rb
fog-azure-rm-0.3.6 test/api_stub/models/dns/zone.rb
fog-azure-rm-0.3.5 test/api_stub/models/dns/zone.rb
fog-azure-rm-0.3.4 test/api_stub/models/dns/zone.rb
fog-azure-rm-temp-0.0.4 test/api_stub/models/dns/zone.rb
fog-azure-rm-temp-0.0.3 test/api_stub/models/dns/zone.rb
fog-azure-rm-0.3.3 test/api_stub/models/dns/zone.rb
fog-azure-rm-temp-0.0.2 test/api_stub/models/dns/zone.rb
fog-azure-rm-temp-0.0.1 test/api_stub/models/dns/zone.rb
fog-azure-rm-0.3.2 test/api_stub/models/dns/zone.rb
fog-azure-rm-downgraded-0.3.1 test/api_stub/models/dns/zone.rb
fog-azure-rm-0.3.1 test/api_stub/models/dns/zone.rb
fog-azure-rm-downgraded-0.3.0 test/api_stub/models/dns/zone.rb
fog-azure-rm-0.3.0 test/api_stub/models/dns/zone.rb
fog-azure-rm-0.2.7 test/api_stub/models/dns/zone.rb
fog-azure-rm-0.2.6 test/api_stub/models/dns/zone.rb