Class: PuppetX::VMware::MapperNsx::NsxEdgeLbPool

Inherits:
Map
  • Object
show all
Defined in:
lib/puppet_x/vmware/mapper_nsx/nsx_edge_lb_pool.rb

Constant Summary

Constants inherited from Map

Map::PIN_NIL_VALUE, Map::PIN_NO_PARENT, Map::PIN_NO_VALUE

Instance Attribute Summary

Attributes inherited from Map

#leaf_list, #node_list

Instance Method Summary collapse

Methods inherited from Map

#ensure_is_class, #gyoku_issue_48, #gyoku_self_closing_keys, #nested_value, #nested_value_set, #prep_for_serialization, #prep_is_now

Constructor Details

#initializeNsxEdgeLbPool

Returns a new instance of NsxEdgeLbPool.



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# File 'lib/puppet_x/vmware/mapper_nsx/nsx_edge_lb_pool.rb', line 8

def initialize
  @initTree = {
    :pool => {
      Node => NodeData[
        :node_type => 'REST',
        :olio => {
          :ensure_is_class => ::Hash,
        },
        #:xml_ns    => 'http://www.vmware.com/vcloud/v1.5',
        #:xml_type  => 'application/vnd.vmware.admin.organization+xml',
      ],
      :poolId => LeafData[
        :desc => "Only used internally when a update or removal to an existing pool",
      ],
      :'name' => LeafData[
        :prop_name => 'name',
      ],
      :description => LeafData[
        :desc => "Description",
        :olio => {
          :ensure_is_class => ::String,
        },
      ],
      :algorithm => LeafData[
        :desc => "algorithm, valid values: round-robin/ip-hash/uri/leastconn",
        :valid_enum => [ :'round-robin', :'ip-hash', :uri, :leastconn, ],
      ],
      :transparent => LeafData[
        :desc => "Whether or not transparent is set to true/false",
        :valid_enum => [:true, :false],
      ],
      :monitorId => LeafData[
        :desc => "Optional: which monitor name to use, the built-in ones are: default_(tcp|http|https)_monitor",
      ],
      :applicationRuleId => LeafData[
        :desc => "Optional: an application rule",
      ],
      # optional
      :member => LeafData[
        :olio => {
          Puppet::Property::VMware_Array_Hash => {
            :property_option => {
              :array_matching => :all,
              #:inclusive      => :false,
              #:preserve       => :true,
            },
          }, 
        },
      ], # end :member
    }, # end :pool
  }
  super
end