foreman_api 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/ForemanApi.html +3 -3
- data/doc/ForemanApi/Resources.html +4 -4
- data/doc/ForemanApi/Resources/Architecture.html +7 -7
- data/doc/ForemanApi/Resources/Audit.html +5 -5
- data/doc/ForemanApi/Resources/AuthSourceLdap.html +15 -15
- data/doc/ForemanApi/Resources/Bookmark.html +3 -3
- data/doc/ForemanApi/Resources/CommonParameter.html +5 -5
- data/doc/ForemanApi/Resources/ComputeResource.html +167 -24
- data/doc/ForemanApi/Resources/ConfigTemplate.html +14 -14
- data/doc/ForemanApi/Resources/Dashboard.html +2 -2
- data/doc/ForemanApi/Resources/Domain.html +14 -14
- data/doc/ForemanApi/Resources/Environment.html +199 -25
- data/doc/ForemanApi/Resources/FactValue.html +5 -5
- data/doc/ForemanApi/Resources/Home.html +1 -1
- data/doc/ForemanApi/Resources/Host.html +509 -10
- data/doc/ForemanApi/Resources/HostClass.html +5 -5
- data/doc/ForemanApi/Resources/Hostgroup.html +5 -5
- data/doc/ForemanApi/Resources/HostgroupClass.html +5 -5
- data/doc/ForemanApi/Resources/Image.html +5 -5
- data/doc/ForemanApi/Resources/Interface.html +1045 -0
- data/doc/ForemanApi/Resources/Location.html +5 -5
- data/doc/ForemanApi/Resources/LookupKey.html +62 -811
- data/doc/ForemanApi/Resources/Medium.html +13 -13
- data/doc/ForemanApi/Resources/Model.html +5 -5
- data/doc/ForemanApi/Resources/OperatingSystem.html +5 -5
- data/doc/ForemanApi/Resources/Organization.html +5 -5
- data/doc/ForemanApi/Resources/OverrideValue.html +1060 -0
- data/doc/ForemanApi/Resources/Parameter.html +26 -26
- data/doc/ForemanApi/Resources/Ptable.html +5 -5
- data/doc/ForemanApi/Resources/Puppetclass.html +80 -28
- data/doc/ForemanApi/Resources/Report.html +164 -6
- data/doc/ForemanApi/Resources/Role.html +3 -3
- data/doc/ForemanApi/Resources/Setting.html +5 -5
- data/doc/ForemanApi/Resources/SmartClassParameter.html +747 -0
- data/doc/ForemanApi/Resources/SmartProxy.html +341 -24
- data/doc/ForemanApi/Resources/SmartVariable.html +1043 -0
- data/doc/ForemanApi/Resources/Statistic.html +330 -0
- data/doc/ForemanApi/Resources/Subnet.html +33 -33
- data/doc/ForemanApi/Resources/TemplateCombination.html +3 -3
- data/doc/ForemanApi/Resources/TemplateKind.html +3 -3
- data/doc/ForemanApi/Resources/User.html +7 -7
- data/doc/ForemanApi/Resources/Usergroup.html +5 -5
- data/doc/_index.html +36 -1
- data/doc/class_list.html +1 -1
- data/doc/file.MIT-LICENSE.html +1 -1
- data/doc/file.README.html +1 -1
- data/doc/index.html +1 -1
- data/doc/method_list.html +515 -347
- data/doc/top-level-namespace.html +1 -1
- data/lib/foreman_api/base.rb +2 -1
- data/lib/foreman_api/documentation.json +1 -1
- data/lib/foreman_api/resources/architecture.rb +6 -6
- data/lib/foreman_api/resources/audit.rb +4 -4
- data/lib/foreman_api/resources/auth_source_ldap.rb +14 -14
- data/lib/foreman_api/resources/bookmark.rb +2 -2
- data/lib/foreman_api/resources/common_parameter.rb +4 -4
- data/lib/foreman_api/resources/compute_resource.rb +29 -20
- data/lib/foreman_api/resources/config_template.rb +13 -13
- data/lib/foreman_api/resources/dashboard.rb +1 -1
- data/lib/foreman_api/resources/domain.rb +13 -13
- data/lib/foreman_api/resources/environment.rb +16 -4
- data/lib/foreman_api/resources/fact_value.rb +4 -4
- data/lib/foreman_api/resources/host.rb +40 -8
- data/lib/foreman_api/resources/host_class.rb +4 -4
- data/lib/foreman_api/resources/hostgroup.rb +4 -4
- data/lib/foreman_api/resources/hostgroup_class.rb +4 -4
- data/lib/foreman_api/resources/image.rb +4 -4
- data/lib/foreman_api/resources/interface.rb +80 -0
- data/lib/foreman_api/resources/location.rb +4 -4
- data/lib/foreman_api/resources/lookup_key.rb +6 -65
- data/lib/foreman_api/resources/medium.rb +10 -10
- data/lib/foreman_api/resources/model.rb +4 -4
- data/lib/foreman_api/resources/operating_system.rb +4 -4
- data/lib/foreman_api/resources/organization.rb +4 -4
- data/lib/foreman_api/resources/override_value.rb +73 -0
- data/lib/foreman_api/resources/parameter.rb +25 -25
- data/lib/foreman_api/resources/ptable.rb +4 -4
- data/lib/foreman_api/resources/puppetclass.rb +11 -7
- data/lib/foreman_api/resources/report.rb +19 -4
- data/lib/foreman_api/resources/role.rb +2 -2
- data/lib/foreman_api/resources/setting.rb +4 -4
- data/lib/foreman_api/resources/smart_class_parameter.rb +55 -0
- data/lib/foreman_api/resources/smart_proxy.rb +24 -3
- data/lib/foreman_api/resources/smart_variable.rb +80 -0
- data/lib/foreman_api/resources/statistic.rb +18 -0
- data/lib/foreman_api/resources/subnet.rb +32 -32
- data/lib/foreman_api/resources/template_combination.rb +2 -2
- data/lib/foreman_api/resources/template_kind.rb +2 -2
- data/lib/foreman_api/resources/user.rb +6 -6
- data/lib/foreman_api/resources/usergroup.rb +4 -4
- data/lib/foreman_api/version.rb +1 -1
- metadata +13 -3
@@ -390,15 +390,15 @@
|
|
390
390
|
<ul><li>
|
391
391
|
<p>operatingsystem_ids [Array]</p>
|
392
392
|
</li><li>
|
393
|
-
<p>name [String]
|
393
|
+
<p>name [String] name of media</p>
|
394
394
|
</li><li>
|
395
|
-
<p>os_family [String]
|
395
|
+
<p>os_family [String] the family that the operating system belongs to.
|
396
396
|
available families: archlinux debian gentoo redhat solaris suse
|
397
397
|
windows</p>
|
398
398
|
</li><li>
|
399
|
-
<p>path [String]
|
399
|
+
<p>path [String] the path to the medium, can be a url or a valid nfs server
|
400
400
|
(exclusive of the architecture). for example <a
|
401
|
-
href="http://mirror.
|
401
|
+
href="http://mirror.centos.org/centos/$version/os/$arch">mirror.centos.org/centos/$version/os/$arch</a>
|
402
402
|
where $arch will be substituted for the host’s actual os architecture and
|
403
403
|
$version, $major and $minor will be substituted for the version of the
|
404
404
|
operating system. solaris and debian media may also use $release.</p>
|
@@ -644,7 +644,7 @@ operating system. solaris and debian media may also use $release.</p>
|
|
644
644
|
</span>
|
645
645
|
|
646
646
|
— <div class='inline'>
|
647
|
-
<p>
|
647
|
+
<p>for example, name asc, or name desc</p>
|
648
648
|
</div>
|
649
649
|
|
650
650
|
</li>
|
@@ -657,7 +657,7 @@ operating system. solaris and debian media may also use $release.</p>
|
|
657
657
|
</span>
|
658
658
|
|
659
659
|
— <div class='inline'>
|
660
|
-
<p>
|
660
|
+
<p>paginate results</p>
|
661
661
|
</div>
|
662
662
|
|
663
663
|
</li>
|
@@ -670,7 +670,7 @@ operating system. solaris and debian media may also use $release.</p>
|
|
670
670
|
</span>
|
671
671
|
|
672
672
|
— <div class='inline'>
|
673
|
-
<p>
|
673
|
+
<p>number of entries per request</p>
|
674
674
|
</div>
|
675
675
|
|
676
676
|
</li>
|
@@ -683,7 +683,7 @@ operating system. solaris and debian media may also use $release.</p>
|
|
683
683
|
</span>
|
684
684
|
|
685
685
|
— <div class='inline'>
|
686
|
-
<p>
|
686
|
+
<p>filter results</p>
|
687
687
|
</div>
|
688
688
|
|
689
689
|
</li>
|
@@ -938,15 +938,15 @@ operating system. solaris and debian media may also use $release.</p>
|
|
938
938
|
<ul><li>
|
939
939
|
<p>operatingsystem_ids [Array]</p>
|
940
940
|
</li><li>
|
941
|
-
<p>name [String]
|
941
|
+
<p>name [String] name of media</p>
|
942
942
|
</li><li>
|
943
|
-
<p>os_family [String, nil]
|
943
|
+
<p>os_family [String, nil] the family that the operating system belongs to.
|
944
944
|
available families: archlinux debian gentoo redhat solaris suse
|
945
945
|
windows</p>
|
946
946
|
</li><li>
|
947
|
-
<p>path [String]
|
947
|
+
<p>path [String] the path to the medium, can be a url or a valid nfs server
|
948
948
|
(exclusive of the architecture). for example <a
|
949
|
-
href="http://mirror.
|
949
|
+
href="http://mirror.centos.org/centos/$version/os/$arch">mirror.centos.org/centos/$version/os/$arch</a>
|
950
950
|
where $arch will be substituted for the host’s actual os architecture and
|
951
951
|
$version, $major and $minor will be substituted for the version of the
|
952
952
|
operating system. solaris and debian media may also use $release.</p>
|
@@ -1005,7 +1005,7 @@ operating system. solaris and debian media may also use $release.</p>
|
|
1005
1005
|
</div>
|
1006
1006
|
|
1007
1007
|
<div id="footer">
|
1008
|
-
Generated on Mon
|
1008
|
+
Generated on Mon Oct 21 11:10:43 2013 by
|
1009
1009
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1010
1010
|
0.8.7 (ruby-2.0.0).
|
1011
1011
|
</div>
|
@@ -637,7 +637,7 @@
|
|
637
637
|
</span>
|
638
638
|
|
639
639
|
— <div class='inline'>
|
640
|
-
<p>
|
640
|
+
<p>sort results</p>
|
641
641
|
</div>
|
642
642
|
|
643
643
|
</li>
|
@@ -650,7 +650,7 @@
|
|
650
650
|
</span>
|
651
651
|
|
652
652
|
— <div class='inline'>
|
653
|
-
<p>
|
653
|
+
<p>paginate results</p>
|
654
654
|
</div>
|
655
655
|
|
656
656
|
</li>
|
@@ -663,7 +663,7 @@
|
|
663
663
|
</span>
|
664
664
|
|
665
665
|
— <div class='inline'>
|
666
|
-
<p>
|
666
|
+
<p>number of entries per request</p>
|
667
667
|
</div>
|
668
668
|
|
669
669
|
</li>
|
@@ -676,7 +676,7 @@
|
|
676
676
|
</span>
|
677
677
|
|
678
678
|
— <div class='inline'>
|
679
|
-
<p>
|
679
|
+
<p>filter results</p>
|
680
680
|
</div>
|
681
681
|
|
682
682
|
</li>
|
@@ -991,7 +991,7 @@
|
|
991
991
|
</div>
|
992
992
|
|
993
993
|
<div id="footer">
|
994
|
-
Generated on Mon
|
994
|
+
Generated on Mon Oct 21 11:10:43 2013 by
|
995
995
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
996
996
|
0.8.7 (ruby-2.0.0).
|
997
997
|
</div>
|
@@ -800,7 +800,7 @@
|
|
800
800
|
</span>
|
801
801
|
|
802
802
|
— <div class='inline'>
|
803
|
-
<p>
|
803
|
+
<p>for example, name asc, or name desc</p>
|
804
804
|
</div>
|
805
805
|
|
806
806
|
</li>
|
@@ -813,7 +813,7 @@
|
|
813
813
|
</span>
|
814
814
|
|
815
815
|
— <div class='inline'>
|
816
|
-
<p>
|
816
|
+
<p>paginate results</p>
|
817
817
|
</div>
|
818
818
|
|
819
819
|
</li>
|
@@ -826,7 +826,7 @@
|
|
826
826
|
</span>
|
827
827
|
|
828
828
|
— <div class='inline'>
|
829
|
-
<p>
|
829
|
+
<p>number of entries per request</p>
|
830
830
|
</div>
|
831
831
|
|
832
832
|
</li>
|
@@ -839,7 +839,7 @@
|
|
839
839
|
</span>
|
840
840
|
|
841
841
|
— <div class='inline'>
|
842
|
-
<p>
|
842
|
+
<p>filter results</p>
|
843
843
|
</div>
|
844
844
|
|
845
845
|
</li>
|
@@ -1156,7 +1156,7 @@
|
|
1156
1156
|
</div>
|
1157
1157
|
|
1158
1158
|
<div id="footer">
|
1159
|
-
Generated on Mon
|
1159
|
+
Generated on Mon Oct 21 11:10:46 2013 by
|
1160
1160
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1161
1161
|
0.8.7 (ruby-2.0.0).
|
1162
1162
|
</div>
|
@@ -635,7 +635,7 @@
|
|
635
635
|
</span>
|
636
636
|
|
637
637
|
— <div class='inline'>
|
638
|
-
<p>
|
638
|
+
<p>sort results</p>
|
639
639
|
</div>
|
640
640
|
|
641
641
|
</li>
|
@@ -648,7 +648,7 @@
|
|
648
648
|
</span>
|
649
649
|
|
650
650
|
— <div class='inline'>
|
651
|
-
<p>
|
651
|
+
<p>paginate results</p>
|
652
652
|
</div>
|
653
653
|
|
654
654
|
</li>
|
@@ -661,7 +661,7 @@
|
|
661
661
|
</span>
|
662
662
|
|
663
663
|
— <div class='inline'>
|
664
|
-
<p>
|
664
|
+
<p>number of entries per request</p>
|
665
665
|
</div>
|
666
666
|
|
667
667
|
</li>
|
@@ -674,7 +674,7 @@
|
|
674
674
|
</span>
|
675
675
|
|
676
676
|
— <div class='inline'>
|
677
|
-
<p>
|
677
|
+
<p>filter results</p>
|
678
678
|
</div>
|
679
679
|
|
680
680
|
</li>
|
@@ -991,7 +991,7 @@
|
|
991
991
|
</div>
|
992
992
|
|
993
993
|
<div id="footer">
|
994
|
-
Generated on Mon
|
994
|
+
Generated on Mon Oct 21 11:10:46 2013 by
|
995
995
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
996
996
|
0.8.7 (ruby-2.0.0).
|
997
997
|
</div>
|
@@ -0,0 +1,1060 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Class: ForemanApi::Resources::OverrideValue
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.7
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
hasFrames = window.top.frames.main ? true : false;
|
19
|
+
relpath = '../../';
|
20
|
+
framesUrl = "../../frames.html#!" + escape(window.location.href);
|
21
|
+
</script>
|
22
|
+
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
25
|
+
|
26
|
+
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
|
27
|
+
|
28
|
+
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="header">
|
32
|
+
<div id="menu">
|
33
|
+
|
34
|
+
<a href="../../_index.html">Index (O)</a> »
|
35
|
+
<span class='title'><span class='object_link'><a href="../../ForemanApi.html" title="ForemanApi (module)">ForemanApi</a></span></span> » <span class='title'><span class='object_link'><a href="../Resources.html" title="ForemanApi::Resources (module)">Resources</a></span></span>
|
36
|
+
»
|
37
|
+
<span class="title">OverrideValue</span>
|
38
|
+
|
39
|
+
|
40
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<div id="search">
|
44
|
+
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
46
|
+
href="../../class_list.html">
|
47
|
+
Class List
|
48
|
+
</a>
|
49
|
+
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
51
|
+
href="../../method_list.html">
|
52
|
+
Method List
|
53
|
+
</a>
|
54
|
+
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
56
|
+
href="../../file_list.html">
|
57
|
+
File List
|
58
|
+
</a>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
<div class="clear"></div>
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<iframe id="search_frame"></iframe>
|
65
|
+
|
66
|
+
<div id="content"><h1>Class: ForemanApi::Resources::OverrideValue
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
<dt class="r1">Inherits:</dt>
|
75
|
+
<dd class="r1">
|
76
|
+
<span class="inheritName">Base</span>
|
77
|
+
|
78
|
+
<ul class="fullTree">
|
79
|
+
<li>Object</li>
|
80
|
+
|
81
|
+
<li class="next">Base</li>
|
82
|
+
|
83
|
+
<li class="next">ForemanApi::Resources::OverrideValue</li>
|
84
|
+
|
85
|
+
</ul>
|
86
|
+
<a href="#" class="inheritanceTree">show all</a>
|
87
|
+
|
88
|
+
</dd>
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
<dt class="r2 last">Defined in:</dt>
|
99
|
+
<dd class="r2 last">lib/foreman_api/resources/override_value.rb</dd>
|
100
|
+
|
101
|
+
</dl>
|
102
|
+
<div class="clear"></div>
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
<h2>
|
113
|
+
Class Method Summary
|
114
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
115
|
+
</h2>
|
116
|
+
|
117
|
+
<ul class="summary">
|
118
|
+
|
119
|
+
<li class="public ">
|
120
|
+
<span class="summary_signature">
|
121
|
+
|
122
|
+
<a href="#doc-class_method" title="doc (class method)">+ (Object) <strong>doc</strong> </a>
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
</span>
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
137
|
+
|
138
|
+
</li>
|
139
|
+
|
140
|
+
|
141
|
+
</ul>
|
142
|
+
|
143
|
+
<h2>
|
144
|
+
Instance Method Summary
|
145
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
146
|
+
</h2>
|
147
|
+
|
148
|
+
<ul class="summary">
|
149
|
+
|
150
|
+
<li class="public ">
|
151
|
+
<span class="summary_signature">
|
152
|
+
|
153
|
+
<a href="#create-instance_method" title="#create (instance method)">- (Array) <strong>create</strong>(params = {}, headers = {}) </a>
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
</span>
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
<span class="summary_desc"><div class='inline'>
|
168
|
+
<p>First item: parsed data; second item: raw body.</p>
|
169
|
+
</div></span>
|
170
|
+
|
171
|
+
</li>
|
172
|
+
|
173
|
+
|
174
|
+
<li class="public ">
|
175
|
+
<span class="summary_signature">
|
176
|
+
|
177
|
+
<a href="#destroy-instance_method" title="#destroy (instance method)">- (Array) <strong>destroy</strong>(params = {}, headers = {}) </a>
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
</span>
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
<span class="summary_desc"><div class='inline'>
|
192
|
+
<p>First item: parsed data; second item: raw body.</p>
|
193
|
+
</div></span>
|
194
|
+
|
195
|
+
</li>
|
196
|
+
|
197
|
+
|
198
|
+
<li class="public ">
|
199
|
+
<span class="summary_signature">
|
200
|
+
|
201
|
+
<a href="#index-instance_method" title="#index (instance method)">- (Array) <strong>index</strong>(params = {}, headers = {}) </a>
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
</span>
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
<span class="summary_desc"><div class='inline'>
|
216
|
+
<p>First item: parsed data; second item: raw body.</p>
|
217
|
+
</div></span>
|
218
|
+
|
219
|
+
</li>
|
220
|
+
|
221
|
+
|
222
|
+
<li class="public ">
|
223
|
+
<span class="summary_signature">
|
224
|
+
|
225
|
+
<a href="#show-instance_method" title="#show (instance method)">- (Array) <strong>show</strong>(params = {}, headers = {}) </a>
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
</span>
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
<span class="summary_desc"><div class='inline'>
|
240
|
+
<p>First item: parsed data; second item: raw body.</p>
|
241
|
+
</div></span>
|
242
|
+
|
243
|
+
</li>
|
244
|
+
|
245
|
+
|
246
|
+
<li class="public ">
|
247
|
+
<span class="summary_signature">
|
248
|
+
|
249
|
+
<a href="#update-instance_method" title="#update (instance method)">- (Array) <strong>update</strong>(params = {}, headers = {}) </a>
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
</span>
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
<span class="summary_desc"><div class='inline'>
|
264
|
+
<p>First item: parsed data; second item: raw body.</p>
|
265
|
+
</div></span>
|
266
|
+
|
267
|
+
</li>
|
268
|
+
|
269
|
+
|
270
|
+
</ul>
|
271
|
+
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
<div id="class_method_details" class="method_details_list">
|
277
|
+
<h2>Class Method Details</h2>
|
278
|
+
|
279
|
+
|
280
|
+
<div class="method_details first">
|
281
|
+
<h3 class="signature first" id="doc-class_method">
|
282
|
+
|
283
|
+
+ (<tt>Object</tt>) <strong>doc</strong>
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
</h3><table class="source_code">
|
290
|
+
<tr>
|
291
|
+
<td>
|
292
|
+
<pre class="lines">
|
293
|
+
|
294
|
+
|
295
|
+
4
|
296
|
+
5
|
297
|
+
6</pre>
|
298
|
+
</td>
|
299
|
+
<td>
|
300
|
+
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/override_value.rb', line 4</span>
|
301
|
+
|
302
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_doc'>doc</span>
|
303
|
+
<span class='ivar'>@doc</span> <span class='op'>||=</span> <span class='const'>ForemanApi</span><span class='period'>.</span><span class='id identifier rubyid_doc'>doc</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>resources</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>override_values</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span>
|
304
|
+
<span class='kw'>end</span></pre>
|
305
|
+
</td>
|
306
|
+
</tr>
|
307
|
+
</table>
|
308
|
+
</div>
|
309
|
+
|
310
|
+
</div>
|
311
|
+
|
312
|
+
<div id="instance_method_details" class="method_details_list">
|
313
|
+
<h2>Instance Method Details</h2>
|
314
|
+
|
315
|
+
|
316
|
+
<div class="method_details first">
|
317
|
+
<h3 class="signature first" id="create-instance_method">
|
318
|
+
|
319
|
+
- (<tt>Array</tt>) <strong>create</strong>(params = {}, headers = {})
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
</h3><div class="docstring">
|
326
|
+
<div class="discussion">
|
327
|
+
|
328
|
+
<p>Returns First item: parsed data; second item: raw body</p>
|
329
|
+
|
330
|
+
|
331
|
+
</div>
|
332
|
+
</div>
|
333
|
+
<div class="tags">
|
334
|
+
<p class="tag_title">Parameters:</p>
|
335
|
+
<ul class="param">
|
336
|
+
|
337
|
+
<li>
|
338
|
+
|
339
|
+
<span class='name'>params</span>
|
340
|
+
|
341
|
+
|
342
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
343
|
+
|
344
|
+
|
345
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
346
|
+
|
347
|
+
|
348
|
+
—
|
349
|
+
<div class='inline'>
|
350
|
+
<p>a hash of params to be passed to the service</p>
|
351
|
+
</div>
|
352
|
+
|
353
|
+
</li>
|
354
|
+
|
355
|
+
<li>
|
356
|
+
|
357
|
+
<span class='name'>headers</span>
|
358
|
+
|
359
|
+
|
360
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
361
|
+
|
362
|
+
|
363
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
364
|
+
|
365
|
+
|
366
|
+
—
|
367
|
+
<div class='inline'>
|
368
|
+
<p>additional http headers</p>
|
369
|
+
</div>
|
370
|
+
|
371
|
+
</li>
|
372
|
+
|
373
|
+
</ul>
|
374
|
+
|
375
|
+
|
376
|
+
|
377
|
+
|
378
|
+
<p class="tag_title">Options Hash (<tt>params</tt>):</p>
|
379
|
+
<ul class="option">
|
380
|
+
|
381
|
+
<li>
|
382
|
+
<span class="name">smart_class_parameter_id</span>
|
383
|
+
<span class="type">(<tt>String</tt>)</span>
|
384
|
+
<span class="default">
|
385
|
+
|
386
|
+
</span>
|
387
|
+
|
388
|
+
</li>
|
389
|
+
|
390
|
+
<li>
|
391
|
+
<span class="name">smart_variable_id</span>
|
392
|
+
<span class="type">(<tt>String</tt>)</span>
|
393
|
+
<span class="default">
|
394
|
+
|
395
|
+
</span>
|
396
|
+
|
397
|
+
</li>
|
398
|
+
|
399
|
+
<li>
|
400
|
+
<span class="name">override_value</span>
|
401
|
+
<span class="type">(<tt>Hash</tt>)</span>
|
402
|
+
<span class="default">
|
403
|
+
|
404
|
+
</span>
|
405
|
+
|
406
|
+
— <div class='inline'>
|
407
|
+
<p>allowed keys are:</p>
|
408
|
+
<ul><li>
|
409
|
+
<p>match [String]</p>
|
410
|
+
</li><li>
|
411
|
+
<p>value [String]</p>
|
412
|
+
</li></ul>
|
413
|
+
</div>
|
414
|
+
|
415
|
+
</li>
|
416
|
+
|
417
|
+
</ul>
|
418
|
+
|
419
|
+
|
420
|
+
|
421
|
+
|
422
|
+
<p class="tag_title">Returns:</p>
|
423
|
+
<ul class="return">
|
424
|
+
|
425
|
+
<li>
|
426
|
+
|
427
|
+
|
428
|
+
<span class='type'>(<tt>Array</tt>)</span>
|
429
|
+
|
430
|
+
|
431
|
+
|
432
|
+
—
|
433
|
+
<div class='inline'>
|
434
|
+
<p>First item: parsed data; second item: raw body</p>
|
435
|
+
</div>
|
436
|
+
|
437
|
+
</li>
|
438
|
+
|
439
|
+
</ul>
|
440
|
+
|
441
|
+
</div><table class="source_code">
|
442
|
+
<tr>
|
443
|
+
<td>
|
444
|
+
<pre class="lines">
|
445
|
+
|
446
|
+
|
447
|
+
41
|
448
|
+
42
|
449
|
+
43</pre>
|
450
|
+
</td>
|
451
|
+
<td>
|
452
|
+
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/override_value.rb', line 41</span>
|
453
|
+
|
454
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_create'>create</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='id identifier rubyid_headers'>headers</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
455
|
+
<span class='id identifier rubyid_perform_call'>perform_call</span><span class='lparen'>(</span><span class='id identifier rubyid___method__'>__method__</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span><span class='comma'>,</span> <span class='id identifier rubyid_headers'>headers</span><span class='rparen'>)</span>
|
456
|
+
<span class='kw'>end</span></pre>
|
457
|
+
</td>
|
458
|
+
</tr>
|
459
|
+
</table>
|
460
|
+
</div>
|
461
|
+
|
462
|
+
<div class="method_details ">
|
463
|
+
<h3 class="signature " id="destroy-instance_method">
|
464
|
+
|
465
|
+
- (<tt>Array</tt>) <strong>destroy</strong>(params = {}, headers = {})
|
466
|
+
|
467
|
+
|
468
|
+
|
469
|
+
|
470
|
+
|
471
|
+
</h3><div class="docstring">
|
472
|
+
<div class="discussion">
|
473
|
+
|
474
|
+
<p>Returns First item: parsed data; second item: raw body</p>
|
475
|
+
|
476
|
+
|
477
|
+
</div>
|
478
|
+
</div>
|
479
|
+
<div class="tags">
|
480
|
+
<p class="tag_title">Parameters:</p>
|
481
|
+
<ul class="param">
|
482
|
+
|
483
|
+
<li>
|
484
|
+
|
485
|
+
<span class='name'>params</span>
|
486
|
+
|
487
|
+
|
488
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
489
|
+
|
490
|
+
|
491
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
492
|
+
|
493
|
+
|
494
|
+
—
|
495
|
+
<div class='inline'>
|
496
|
+
<p>a hash of params to be passed to the service</p>
|
497
|
+
</div>
|
498
|
+
|
499
|
+
</li>
|
500
|
+
|
501
|
+
<li>
|
502
|
+
|
503
|
+
<span class='name'>headers</span>
|
504
|
+
|
505
|
+
|
506
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
507
|
+
|
508
|
+
|
509
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
510
|
+
|
511
|
+
|
512
|
+
—
|
513
|
+
<div class='inline'>
|
514
|
+
<p>additional http headers</p>
|
515
|
+
</div>
|
516
|
+
|
517
|
+
</li>
|
518
|
+
|
519
|
+
</ul>
|
520
|
+
|
521
|
+
|
522
|
+
|
523
|
+
|
524
|
+
<p class="tag_title">Options Hash (<tt>params</tt>):</p>
|
525
|
+
<ul class="option">
|
526
|
+
|
527
|
+
<li>
|
528
|
+
<span class="name">id</span>
|
529
|
+
<span class="type">(<tt>String</tt>)</span>
|
530
|
+
<span class="default">
|
531
|
+
|
532
|
+
</span>
|
533
|
+
|
534
|
+
</li>
|
535
|
+
|
536
|
+
<li>
|
537
|
+
<span class="name">smart_class_parameter_id</span>
|
538
|
+
<span class="type">(<tt>String</tt>)</span>
|
539
|
+
<span class="default">
|
540
|
+
|
541
|
+
</span>
|
542
|
+
|
543
|
+
</li>
|
544
|
+
|
545
|
+
<li>
|
546
|
+
<span class="name">smart_variable_id</span>
|
547
|
+
<span class="type">(<tt>String</tt>)</span>
|
548
|
+
<span class="default">
|
549
|
+
|
550
|
+
</span>
|
551
|
+
|
552
|
+
</li>
|
553
|
+
|
554
|
+
</ul>
|
555
|
+
|
556
|
+
|
557
|
+
|
558
|
+
|
559
|
+
<p class="tag_title">Returns:</p>
|
560
|
+
<ul class="return">
|
561
|
+
|
562
|
+
<li>
|
563
|
+
|
564
|
+
|
565
|
+
<span class='type'>(<tt>Array</tt>)</span>
|
566
|
+
|
567
|
+
|
568
|
+
|
569
|
+
—
|
570
|
+
<div class='inline'>
|
571
|
+
<p>First item: parsed data; second item: raw body</p>
|
572
|
+
</div>
|
573
|
+
|
574
|
+
</li>
|
575
|
+
|
576
|
+
</ul>
|
577
|
+
|
578
|
+
</div><table class="source_code">
|
579
|
+
<tr>
|
580
|
+
<td>
|
581
|
+
<pre class="lines">
|
582
|
+
|
583
|
+
|
584
|
+
67
|
585
|
+
68
|
586
|
+
69</pre>
|
587
|
+
</td>
|
588
|
+
<td>
|
589
|
+
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/override_value.rb', line 67</span>
|
590
|
+
|
591
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_destroy'>destroy</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='id identifier rubyid_headers'>headers</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
592
|
+
<span class='id identifier rubyid_perform_call'>perform_call</span><span class='lparen'>(</span><span class='id identifier rubyid___method__'>__method__</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span><span class='comma'>,</span> <span class='id identifier rubyid_headers'>headers</span><span class='rparen'>)</span>
|
593
|
+
<span class='kw'>end</span></pre>
|
594
|
+
</td>
|
595
|
+
</tr>
|
596
|
+
</table>
|
597
|
+
</div>
|
598
|
+
|
599
|
+
<div class="method_details ">
|
600
|
+
<h3 class="signature " id="index-instance_method">
|
601
|
+
|
602
|
+
- (<tt>Array</tt>) <strong>index</strong>(params = {}, headers = {})
|
603
|
+
|
604
|
+
|
605
|
+
|
606
|
+
|
607
|
+
|
608
|
+
</h3><div class="docstring">
|
609
|
+
<div class="discussion">
|
610
|
+
|
611
|
+
<p>Returns First item: parsed data; second item: raw body</p>
|
612
|
+
|
613
|
+
|
614
|
+
</div>
|
615
|
+
</div>
|
616
|
+
<div class="tags">
|
617
|
+
<p class="tag_title">Parameters:</p>
|
618
|
+
<ul class="param">
|
619
|
+
|
620
|
+
<li>
|
621
|
+
|
622
|
+
<span class='name'>params</span>
|
623
|
+
|
624
|
+
|
625
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
626
|
+
|
627
|
+
|
628
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
629
|
+
|
630
|
+
|
631
|
+
—
|
632
|
+
<div class='inline'>
|
633
|
+
<p>a hash of params to be passed to the service</p>
|
634
|
+
</div>
|
635
|
+
|
636
|
+
</li>
|
637
|
+
|
638
|
+
<li>
|
639
|
+
|
640
|
+
<span class='name'>headers</span>
|
641
|
+
|
642
|
+
|
643
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
644
|
+
|
645
|
+
|
646
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
647
|
+
|
648
|
+
|
649
|
+
—
|
650
|
+
<div class='inline'>
|
651
|
+
<p>additional http headers</p>
|
652
|
+
</div>
|
653
|
+
|
654
|
+
</li>
|
655
|
+
|
656
|
+
</ul>
|
657
|
+
|
658
|
+
|
659
|
+
|
660
|
+
|
661
|
+
<p class="tag_title">Options Hash (<tt>params</tt>):</p>
|
662
|
+
<ul class="option">
|
663
|
+
|
664
|
+
<li>
|
665
|
+
<span class="name">smart_class_parameter_id</span>
|
666
|
+
<span class="type">(<tt>String</tt>)</span>
|
667
|
+
<span class="default">
|
668
|
+
|
669
|
+
</span>
|
670
|
+
|
671
|
+
</li>
|
672
|
+
|
673
|
+
<li>
|
674
|
+
<span class="name">smart_variable_id</span>
|
675
|
+
<span class="type">(<tt>String</tt>)</span>
|
676
|
+
<span class="default">
|
677
|
+
|
678
|
+
</span>
|
679
|
+
|
680
|
+
</li>
|
681
|
+
|
682
|
+
<li>
|
683
|
+
<span class="name">page</span>
|
684
|
+
<span class="type">(<tt>String</tt>)</span>
|
685
|
+
<span class="default">
|
686
|
+
|
687
|
+
</span>
|
688
|
+
|
689
|
+
— <div class='inline'>
|
690
|
+
<p>paginate results</p>
|
691
|
+
</div>
|
692
|
+
|
693
|
+
</li>
|
694
|
+
|
695
|
+
<li>
|
696
|
+
<span class="name">per_page</span>
|
697
|
+
<span class="type">(<tt>String</tt>)</span>
|
698
|
+
<span class="default">
|
699
|
+
|
700
|
+
</span>
|
701
|
+
|
702
|
+
— <div class='inline'>
|
703
|
+
<p>number of entries per request</p>
|
704
|
+
</div>
|
705
|
+
|
706
|
+
</li>
|
707
|
+
|
708
|
+
</ul>
|
709
|
+
|
710
|
+
|
711
|
+
|
712
|
+
|
713
|
+
<p class="tag_title">Returns:</p>
|
714
|
+
<ul class="return">
|
715
|
+
|
716
|
+
<li>
|
717
|
+
|
718
|
+
|
719
|
+
<span class='type'>(<tt>Array</tt>)</span>
|
720
|
+
|
721
|
+
|
722
|
+
|
723
|
+
—
|
724
|
+
<div class='inline'>
|
725
|
+
<p>First item: parsed data; second item: raw body</p>
|
726
|
+
</div>
|
727
|
+
|
728
|
+
</li>
|
729
|
+
|
730
|
+
</ul>
|
731
|
+
|
732
|
+
</div><table class="source_code">
|
733
|
+
<tr>
|
734
|
+
<td>
|
735
|
+
<pre class="lines">
|
736
|
+
|
737
|
+
|
738
|
+
16
|
739
|
+
17
|
740
|
+
18</pre>
|
741
|
+
</td>
|
742
|
+
<td>
|
743
|
+
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/override_value.rb', line 16</span>
|
744
|
+
|
745
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_index'>index</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='id identifier rubyid_headers'>headers</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
746
|
+
<span class='id identifier rubyid_perform_call'>perform_call</span><span class='lparen'>(</span><span class='id identifier rubyid___method__'>__method__</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span><span class='comma'>,</span> <span class='id identifier rubyid_headers'>headers</span><span class='rparen'>)</span>
|
747
|
+
<span class='kw'>end</span></pre>
|
748
|
+
</td>
|
749
|
+
</tr>
|
750
|
+
</table>
|
751
|
+
</div>
|
752
|
+
|
753
|
+
<div class="method_details ">
|
754
|
+
<h3 class="signature " id="show-instance_method">
|
755
|
+
|
756
|
+
- (<tt>Array</tt>) <strong>show</strong>(params = {}, headers = {})
|
757
|
+
|
758
|
+
|
759
|
+
|
760
|
+
|
761
|
+
|
762
|
+
</h3><div class="docstring">
|
763
|
+
<div class="discussion">
|
764
|
+
|
765
|
+
<p>Returns First item: parsed data; second item: raw body</p>
|
766
|
+
|
767
|
+
|
768
|
+
</div>
|
769
|
+
</div>
|
770
|
+
<div class="tags">
|
771
|
+
<p class="tag_title">Parameters:</p>
|
772
|
+
<ul class="param">
|
773
|
+
|
774
|
+
<li>
|
775
|
+
|
776
|
+
<span class='name'>params</span>
|
777
|
+
|
778
|
+
|
779
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
780
|
+
|
781
|
+
|
782
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
783
|
+
|
784
|
+
|
785
|
+
—
|
786
|
+
<div class='inline'>
|
787
|
+
<p>a hash of params to be passed to the service</p>
|
788
|
+
</div>
|
789
|
+
|
790
|
+
</li>
|
791
|
+
|
792
|
+
<li>
|
793
|
+
|
794
|
+
<span class='name'>headers</span>
|
795
|
+
|
796
|
+
|
797
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
798
|
+
|
799
|
+
|
800
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
801
|
+
|
802
|
+
|
803
|
+
—
|
804
|
+
<div class='inline'>
|
805
|
+
<p>additional http headers</p>
|
806
|
+
</div>
|
807
|
+
|
808
|
+
</li>
|
809
|
+
|
810
|
+
</ul>
|
811
|
+
|
812
|
+
|
813
|
+
|
814
|
+
|
815
|
+
<p class="tag_title">Options Hash (<tt>params</tt>):</p>
|
816
|
+
<ul class="option">
|
817
|
+
|
818
|
+
<li>
|
819
|
+
<span class="name">id</span>
|
820
|
+
<span class="type">(<tt>String</tt>)</span>
|
821
|
+
<span class="default">
|
822
|
+
|
823
|
+
</span>
|
824
|
+
|
825
|
+
</li>
|
826
|
+
|
827
|
+
<li>
|
828
|
+
<span class="name">smart_class_parameter_id</span>
|
829
|
+
<span class="type">(<tt>String</tt>)</span>
|
830
|
+
<span class="default">
|
831
|
+
|
832
|
+
</span>
|
833
|
+
|
834
|
+
</li>
|
835
|
+
|
836
|
+
<li>
|
837
|
+
<span class="name">smart_variable_id</span>
|
838
|
+
<span class="type">(<tt>String</tt>)</span>
|
839
|
+
<span class="default">
|
840
|
+
|
841
|
+
</span>
|
842
|
+
|
843
|
+
</li>
|
844
|
+
|
845
|
+
</ul>
|
846
|
+
|
847
|
+
|
848
|
+
|
849
|
+
|
850
|
+
<p class="tag_title">Returns:</p>
|
851
|
+
<ul class="return">
|
852
|
+
|
853
|
+
<li>
|
854
|
+
|
855
|
+
|
856
|
+
<span class='type'>(<tt>Array</tt>)</span>
|
857
|
+
|
858
|
+
|
859
|
+
|
860
|
+
—
|
861
|
+
<div class='inline'>
|
862
|
+
<p>First item: parsed data; second item: raw body</p>
|
863
|
+
</div>
|
864
|
+
|
865
|
+
</li>
|
866
|
+
|
867
|
+
</ul>
|
868
|
+
|
869
|
+
</div><table class="source_code">
|
870
|
+
<tr>
|
871
|
+
<td>
|
872
|
+
<pre class="lines">
|
873
|
+
|
874
|
+
|
875
|
+
27
|
876
|
+
28
|
877
|
+
29</pre>
|
878
|
+
</td>
|
879
|
+
<td>
|
880
|
+
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/override_value.rb', line 27</span>
|
881
|
+
|
882
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_show'>show</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='id identifier rubyid_headers'>headers</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
883
|
+
<span class='id identifier rubyid_perform_call'>perform_call</span><span class='lparen'>(</span><span class='id identifier rubyid___method__'>__method__</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span><span class='comma'>,</span> <span class='id identifier rubyid_headers'>headers</span><span class='rparen'>)</span>
|
884
|
+
<span class='kw'>end</span></pre>
|
885
|
+
</td>
|
886
|
+
</tr>
|
887
|
+
</table>
|
888
|
+
</div>
|
889
|
+
|
890
|
+
<div class="method_details ">
|
891
|
+
<h3 class="signature " id="update-instance_method">
|
892
|
+
|
893
|
+
- (<tt>Array</tt>) <strong>update</strong>(params = {}, headers = {})
|
894
|
+
|
895
|
+
|
896
|
+
|
897
|
+
|
898
|
+
|
899
|
+
</h3><div class="docstring">
|
900
|
+
<div class="discussion">
|
901
|
+
|
902
|
+
<p>Returns First item: parsed data; second item: raw body</p>
|
903
|
+
|
904
|
+
|
905
|
+
</div>
|
906
|
+
</div>
|
907
|
+
<div class="tags">
|
908
|
+
<p class="tag_title">Parameters:</p>
|
909
|
+
<ul class="param">
|
910
|
+
|
911
|
+
<li>
|
912
|
+
|
913
|
+
<span class='name'>params</span>
|
914
|
+
|
915
|
+
|
916
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
917
|
+
|
918
|
+
|
919
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
920
|
+
|
921
|
+
|
922
|
+
—
|
923
|
+
<div class='inline'>
|
924
|
+
<p>a hash of params to be passed to the service</p>
|
925
|
+
</div>
|
926
|
+
|
927
|
+
</li>
|
928
|
+
|
929
|
+
<li>
|
930
|
+
|
931
|
+
<span class='name'>headers</span>
|
932
|
+
|
933
|
+
|
934
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
935
|
+
|
936
|
+
|
937
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
938
|
+
|
939
|
+
|
940
|
+
—
|
941
|
+
<div class='inline'>
|
942
|
+
<p>additional http headers</p>
|
943
|
+
</div>
|
944
|
+
|
945
|
+
</li>
|
946
|
+
|
947
|
+
</ul>
|
948
|
+
|
949
|
+
|
950
|
+
|
951
|
+
|
952
|
+
<p class="tag_title">Options Hash (<tt>params</tt>):</p>
|
953
|
+
<ul class="option">
|
954
|
+
|
955
|
+
<li>
|
956
|
+
<span class="name">id</span>
|
957
|
+
<span class="type">(<tt>Object</tt>)</span>
|
958
|
+
<span class="default">
|
959
|
+
|
960
|
+
</span>
|
961
|
+
|
962
|
+
— <div class='inline'>
|
963
|
+
<p>Part of <tt>/api/smart_variables/:smart_variable_id/override_values/:id</tt> path</p>
|
964
|
+
</div>
|
965
|
+
|
966
|
+
</li>
|
967
|
+
|
968
|
+
<li>
|
969
|
+
<span class="name">smart_class_parameter_id</span>
|
970
|
+
<span class="type">(<tt>String</tt>)</span>
|
971
|
+
<span class="default">
|
972
|
+
|
973
|
+
</span>
|
974
|
+
|
975
|
+
</li>
|
976
|
+
|
977
|
+
<li>
|
978
|
+
<span class="name">smart_variable_id</span>
|
979
|
+
<span class="type">(<tt>String</tt>)</span>
|
980
|
+
<span class="default">
|
981
|
+
|
982
|
+
</span>
|
983
|
+
|
984
|
+
</li>
|
985
|
+
|
986
|
+
<li>
|
987
|
+
<span class="name">override_value</span>
|
988
|
+
<span class="type">(<tt>Hash</tt>)</span>
|
989
|
+
<span class="default">
|
990
|
+
|
991
|
+
</span>
|
992
|
+
|
993
|
+
— <div class='inline'>
|
994
|
+
<p>allowed keys are:</p>
|
995
|
+
<ul><li>
|
996
|
+
<p>match [String]</p>
|
997
|
+
</li><li>
|
998
|
+
<p>value [String]</p>
|
999
|
+
</li></ul>
|
1000
|
+
</div>
|
1001
|
+
|
1002
|
+
</li>
|
1003
|
+
|
1004
|
+
</ul>
|
1005
|
+
|
1006
|
+
|
1007
|
+
|
1008
|
+
|
1009
|
+
<p class="tag_title">Returns:</p>
|
1010
|
+
<ul class="return">
|
1011
|
+
|
1012
|
+
<li>
|
1013
|
+
|
1014
|
+
|
1015
|
+
<span class='type'>(<tt>Array</tt>)</span>
|
1016
|
+
|
1017
|
+
|
1018
|
+
|
1019
|
+
—
|
1020
|
+
<div class='inline'>
|
1021
|
+
<p>First item: parsed data; second item: raw body</p>
|
1022
|
+
</div>
|
1023
|
+
|
1024
|
+
</li>
|
1025
|
+
|
1026
|
+
</ul>
|
1027
|
+
|
1028
|
+
</div><table class="source_code">
|
1029
|
+
<tr>
|
1030
|
+
<td>
|
1031
|
+
<pre class="lines">
|
1032
|
+
|
1033
|
+
|
1034
|
+
56
|
1035
|
+
57
|
1036
|
+
58</pre>
|
1037
|
+
</td>
|
1038
|
+
<td>
|
1039
|
+
<pre class="code"><span class="info file"># File 'lib/foreman_api/resources/override_value.rb', line 56</span>
|
1040
|
+
|
1041
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_update'>update</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='id identifier rubyid_headers'>headers</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
1042
|
+
<span class='id identifier rubyid_perform_call'>perform_call</span><span class='lparen'>(</span><span class='id identifier rubyid___method__'>__method__</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span><span class='comma'>,</span> <span class='id identifier rubyid_headers'>headers</span><span class='rparen'>)</span>
|
1043
|
+
<span class='kw'>end</span></pre>
|
1044
|
+
</td>
|
1045
|
+
</tr>
|
1046
|
+
</table>
|
1047
|
+
</div>
|
1048
|
+
|
1049
|
+
</div>
|
1050
|
+
|
1051
|
+
</div>
|
1052
|
+
|
1053
|
+
<div id="footer">
|
1054
|
+
Generated on Mon Oct 21 11:10:46 2013 by
|
1055
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1056
|
+
0.8.7 (ruby-2.0.0).
|
1057
|
+
</div>
|
1058
|
+
|
1059
|
+
</body>
|
1060
|
+
</html>
|