Sha256: 249f3042963274dbc0dc6e59e30b7216ae2f11bc13d173207eb9f14dff844a25

Contents?: true

Size: 1.68 KB

Versions: 4

Compression:

Stored size: 1.68 KB

Contents

module ApiStub
  module Models
    module DNS
      # Mock class for Zone
      class Zone
        # This class contain two mocks, for collection and for model
        def self.list_zones
          {
            '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_00,
                'nameServers' => nil,
                'numberOfRecordSets' => 2,
                'parentResourceGroupName' => 'fog-test-rg'
              },
            'resource_group' => 'fog-test-rg'
          }
        end

        def self.create_zone_obj
          {
            '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_00,
                'nameServers' => nil,
                'numberOfRecordSets' => 2,
                'parentResourceGroupName' => 'fog-test-rg'
              },
            'resource_group' => 'fog-test-rg'
          }
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fog-azure-rm-0.0.8 test/api_stub/models/dns/zone.rb
fog-azure-rm-0.0.6 test/api_stub/models/dns/zone.rb
fog-azure-rm-0.0.5 test/api_stub/models/dns/zone.rb
fog-azure-rm-0.0.4 test/api_stub/models/dns/zone.rb