Class: PuppetX::VMware::MapperNsx::NsxEdgeLbGlobal

Inherits:
Map
  • Object
show all
Defined in:
lib/puppet_x/vmware/mapper_nsx/nsx_edge_lb_global.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

#initializeNsxEdgeLbGlobal

Returns a new instance of NsxEdgeLbGlobal.



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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# File 'lib/puppet_x/vmware/mapper_nsx/nsx_edge_lb_global.rb', line 8

def initialize
  @initTree = {
    :loadBalancer => {
      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',
      ],
      :enabled => LeafData[
        :desc => "type of monitor http/https/tcp",
        :valid_enum => [:true, :false],
      ],
      :enableServiceInsertion => LeafData[
        :desc => "type of monitor http/https/tcp",
        :valid_enum => [:true, :false],
      ],
      :accelerationEnabled => LeafData[
        :desc => "type of monitor http/https/tcp",
        :valid_enum => [:true, :false],
      ],
      :logging => {
        Node => NodeData[
          :node_type => 'REST',
          :olio => {
            :ensure_is_class => ::Hash,
          },
        ],
        :enable => LeafData[
          :desc => "If logging is enabled",
          :valid_enum => [:true, :false],
        ],
        :logLevel => LeafData[
          :desc => "logging level",
          :valid_enum => [:emergency, :alert, :critical, :error, :warning, :notice, :info, :debug],
        ],
      }, # end :logging
      :pool => {
        Node => NodeData[
          :node_type => 'REST',
        ],
      },
      :applicationProfile => {
        Node => NodeData[
          :node_type => 'REST',
        ],
      },
      :monitor => {
        Node => NodeData[
          :node_type => 'REST',
        ],
      },
      :virtualServer => {
        Node => NodeData[
          :node_type => 'REST',
        ],
      },
      :applicationRule => {
        Node => NodeData[
          :node_type => 'REST',
        ],
      },
      :version => LeafData[
        :desc => "version number of the configuration",
        :olio => {
          :ensure_is_class => ::Integer,
        },
      ],
    }, # end :loadBalancer
  }
  super
end