Sha256: f171bac0db3314990b56591969b61d877fcf3a56bcf0f03dbdfb393fc78f2039

Contents?: true

Size: 1.1 KB

Versions: 10

Compression:

Stored size: 1.1 KB

Contents

module Vcloud
  module Schema

    NAT_RULE = {
      type: Hash,
      internals: {
        id: {type: 'string_or_number', required: false},
        enabled: {type: 'boolean', required: false},
        rule_type: { type: 'enum', required: true, acceptable_values: ['SNAT', 'DNAT' ]},
        description: {type: 'string', required: false, allowed_empty: true},
        network_id: {type: 'string', required: true},
        original_ip: {type: 'ip_address_range', required: true},
        original_port: {type: 'string', required: false},
        translated_ip: {type: 'ip_address_range', required: true},
        translated_port: {type: 'string', required: false},
        protocol: {type: 'enum', required: false, acceptable_values: ['tcp', 'udp', 'icmp', 'tcp+udp', 'any']},
      }
    }

    NAT_SERVICE = {
      type: Hash,
      allowed_empty: true,
      required: false,
      internals: {
        enabled: {type: 'boolean', required: false},
        nat_rules: {
          type: Array,
          required: false,
          allowed_empty: true,
          each_element_is: NAT_RULE
        }
      }
    }
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
vcloud-edge_gateway-0.4.0 lib/vcloud/schema/nat_service.rb
vcloud-edge_gateway-0.3.0 lib/vcloud/schema/nat_service.rb
vcloud-edge_gateway-0.2.4 lib/vcloud/schema/nat_service.rb
vcloud-edge_gateway-0.2.3 lib/vcloud/schema/nat_service.rb
vcloud-edge_gateway-0.2.2 lib/vcloud/schema/nat_service.rb
vcloud-edge_gateway-0.2.1 lib/vcloud/schema/nat_service.rb
vcloud-edge_gateway-0.2.0 lib/vcloud/schema/nat_service.rb
vcloud-edge_gateway-0.1.0 lib/vcloud/schema/nat_service.rb
vcloud-edge_gateway-0.0.2 lib/vcloud/schema/nat_service.rb
vcloud-edge_gateway-0.0.1 lib/vcloud/schema/nat_service.rb