Class: PuppetX::VMware::MapperNsx::NsxEdgeLbMonitor

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

#initializeNsxEdgeLbMonitor

Returns a new instance of NsxEdgeLbMonitor.



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_monitor.rb', line 8

def initialize
  @initTree = {
    :monitor => {
      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',
      ],
      :monitorId => LeafData[
        :desc => "Only used internally when a update or removal to an existing monitor",
      ],
      :type => LeafData[
        :desc => "type of monitor http/https/tcp",
        :valid_enum => [:http, :https, :tcp],
      ],
      :interval => LeafData[
        :desc => "interval to check in seconds",
        :olio => {
          :ensure_is_class => ::Integer,
        },
      ],
      :timeout => LeafData[
        :desc => "timeout in seconds",
        :olio => {
          :ensure_is_class => ::Integer,
        },
      ],
      :maxRetries => LeafData[
        :desc => "max retries",
        :olio => {
          :ensure_is_class => ::Integer,
        },
      ],
      :method => LeafData[
        :desc => "monitor method GET/OPTIONS/POST",
        :valid_enum => [:GET, :OPTIONS, :POST],
      ],
      :url => LeafData[
        :desc => "url to use, default is *",
        :olio => {
          :ensure_is_class => ::String,
        },
      ],
      :'name' => LeafData[
        :prop_name => 'name',
      ],
    }, # end :monitor
  }
  super
end