foreman_api 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. checksums.yaml +4 -4
  2. data/doc/ForemanApi.html +3 -3
  3. data/doc/ForemanApi/Resources.html +4 -4
  4. data/doc/ForemanApi/Resources/Architecture.html +7 -7
  5. data/doc/ForemanApi/Resources/Audit.html +5 -5
  6. data/doc/ForemanApi/Resources/AuthSourceLdap.html +15 -15
  7. data/doc/ForemanApi/Resources/Bookmark.html +3 -3
  8. data/doc/ForemanApi/Resources/CommonParameter.html +5 -5
  9. data/doc/ForemanApi/Resources/ComputeResource.html +167 -24
  10. data/doc/ForemanApi/Resources/ConfigTemplate.html +14 -14
  11. data/doc/ForemanApi/Resources/Dashboard.html +2 -2
  12. data/doc/ForemanApi/Resources/Domain.html +14 -14
  13. data/doc/ForemanApi/Resources/Environment.html +199 -25
  14. data/doc/ForemanApi/Resources/FactValue.html +5 -5
  15. data/doc/ForemanApi/Resources/Home.html +1 -1
  16. data/doc/ForemanApi/Resources/Host.html +509 -10
  17. data/doc/ForemanApi/Resources/HostClass.html +5 -5
  18. data/doc/ForemanApi/Resources/Hostgroup.html +5 -5
  19. data/doc/ForemanApi/Resources/HostgroupClass.html +5 -5
  20. data/doc/ForemanApi/Resources/Image.html +5 -5
  21. data/doc/ForemanApi/Resources/Interface.html +1045 -0
  22. data/doc/ForemanApi/Resources/Location.html +5 -5
  23. data/doc/ForemanApi/Resources/LookupKey.html +62 -811
  24. data/doc/ForemanApi/Resources/Medium.html +13 -13
  25. data/doc/ForemanApi/Resources/Model.html +5 -5
  26. data/doc/ForemanApi/Resources/OperatingSystem.html +5 -5
  27. data/doc/ForemanApi/Resources/Organization.html +5 -5
  28. data/doc/ForemanApi/Resources/OverrideValue.html +1060 -0
  29. data/doc/ForemanApi/Resources/Parameter.html +26 -26
  30. data/doc/ForemanApi/Resources/Ptable.html +5 -5
  31. data/doc/ForemanApi/Resources/Puppetclass.html +80 -28
  32. data/doc/ForemanApi/Resources/Report.html +164 -6
  33. data/doc/ForemanApi/Resources/Role.html +3 -3
  34. data/doc/ForemanApi/Resources/Setting.html +5 -5
  35. data/doc/ForemanApi/Resources/SmartClassParameter.html +747 -0
  36. data/doc/ForemanApi/Resources/SmartProxy.html +341 -24
  37. data/doc/ForemanApi/Resources/SmartVariable.html +1043 -0
  38. data/doc/ForemanApi/Resources/Statistic.html +330 -0
  39. data/doc/ForemanApi/Resources/Subnet.html +33 -33
  40. data/doc/ForemanApi/Resources/TemplateCombination.html +3 -3
  41. data/doc/ForemanApi/Resources/TemplateKind.html +3 -3
  42. data/doc/ForemanApi/Resources/User.html +7 -7
  43. data/doc/ForemanApi/Resources/Usergroup.html +5 -5
  44. data/doc/_index.html +36 -1
  45. data/doc/class_list.html +1 -1
  46. data/doc/file.MIT-LICENSE.html +1 -1
  47. data/doc/file.README.html +1 -1
  48. data/doc/index.html +1 -1
  49. data/doc/method_list.html +515 -347
  50. data/doc/top-level-namespace.html +1 -1
  51. data/lib/foreman_api/base.rb +2 -1
  52. data/lib/foreman_api/documentation.json +1 -1
  53. data/lib/foreman_api/resources/architecture.rb +6 -6
  54. data/lib/foreman_api/resources/audit.rb +4 -4
  55. data/lib/foreman_api/resources/auth_source_ldap.rb +14 -14
  56. data/lib/foreman_api/resources/bookmark.rb +2 -2
  57. data/lib/foreman_api/resources/common_parameter.rb +4 -4
  58. data/lib/foreman_api/resources/compute_resource.rb +29 -20
  59. data/lib/foreman_api/resources/config_template.rb +13 -13
  60. data/lib/foreman_api/resources/dashboard.rb +1 -1
  61. data/lib/foreman_api/resources/domain.rb +13 -13
  62. data/lib/foreman_api/resources/environment.rb +16 -4
  63. data/lib/foreman_api/resources/fact_value.rb +4 -4
  64. data/lib/foreman_api/resources/host.rb +40 -8
  65. data/lib/foreman_api/resources/host_class.rb +4 -4
  66. data/lib/foreman_api/resources/hostgroup.rb +4 -4
  67. data/lib/foreman_api/resources/hostgroup_class.rb +4 -4
  68. data/lib/foreman_api/resources/image.rb +4 -4
  69. data/lib/foreman_api/resources/interface.rb +80 -0
  70. data/lib/foreman_api/resources/location.rb +4 -4
  71. data/lib/foreman_api/resources/lookup_key.rb +6 -65
  72. data/lib/foreman_api/resources/medium.rb +10 -10
  73. data/lib/foreman_api/resources/model.rb +4 -4
  74. data/lib/foreman_api/resources/operating_system.rb +4 -4
  75. data/lib/foreman_api/resources/organization.rb +4 -4
  76. data/lib/foreman_api/resources/override_value.rb +73 -0
  77. data/lib/foreman_api/resources/parameter.rb +25 -25
  78. data/lib/foreman_api/resources/ptable.rb +4 -4
  79. data/lib/foreman_api/resources/puppetclass.rb +11 -7
  80. data/lib/foreman_api/resources/report.rb +19 -4
  81. data/lib/foreman_api/resources/role.rb +2 -2
  82. data/lib/foreman_api/resources/setting.rb +4 -4
  83. data/lib/foreman_api/resources/smart_class_parameter.rb +55 -0
  84. data/lib/foreman_api/resources/smart_proxy.rb +24 -3
  85. data/lib/foreman_api/resources/smart_variable.rb +80 -0
  86. data/lib/foreman_api/resources/statistic.rb +18 -0
  87. data/lib/foreman_api/resources/subnet.rb +32 -32
  88. data/lib/foreman_api/resources/template_combination.rb +2 -2
  89. data/lib/foreman_api/resources/template_kind.rb +2 -2
  90. data/lib/foreman_api/resources/user.rb +6 -6
  91. data/lib/foreman_api/resources/usergroup.rb +4 -4
  92. data/lib/foreman_api/version.rb +1 -1
  93. metadata +13 -3
@@ -15,8 +15,8 @@ module ForemanApi
15
15
  end
16
16
 
17
17
  # @param [Hash] params a hash of params to be passed to the service
18
- # @option params [String] host_id Id of host
19
- # @option params [String] puppetclass_id Id of puppetclass
18
+ # @option params [String] host_id id of host
19
+ # @option params [String] puppetclass_id id of puppetclass
20
20
  #
21
21
  # @param [Hash] headers additional http headers
22
22
  # @return [Array] First item: parsed data; second item: raw body
@@ -25,8 +25,8 @@ module ForemanApi
25
25
  end
26
26
 
27
27
  # @param [Hash] params a hash of params to be passed to the service
28
- # @option params [String] id Id of puppetclass
29
- # @option params [String] host_id Id of host
28
+ # @option params [String] id id of puppetclass
29
+ # @option params [String] host_id id of host
30
30
  #
31
31
  # @param [Hash] headers additional http headers
32
32
  # @return [Array] First item: parsed data; second item: raw body
@@ -6,10 +6,10 @@ module ForemanApi
6
6
  end
7
7
 
8
8
  # @param [Hash] params a hash of params to be passed to the service
9
- # @option params [String] order Sort results
10
- # @option params [String] page Paginate results
11
- # @option params [String] per_page Number of entries per request
12
- # @option params [String] search Filter results
9
+ # @option params [String] order sort results
10
+ # @option params [String] page paginate results
11
+ # @option params [String] per_page number of entries per request
12
+ # @option params [String] search filter results
13
13
  #
14
14
  # @param [Hash] headers additional http headers
15
15
  # @return [Array] First item: parsed data; second item: raw body
@@ -15,8 +15,8 @@ module ForemanApi
15
15
  end
16
16
 
17
17
  # @param [Hash] params a hash of params to be passed to the service
18
- # @option params [String] hostgroup_id Id of hostgroup
19
- # @option params [String] puppetclass_id Id of puppetclass
18
+ # @option params [String] hostgroup_id id of hostgroup
19
+ # @option params [String] puppetclass_id id of puppetclass
20
20
  #
21
21
  # @param [Hash] headers additional http headers
22
22
  # @return [Array] First item: parsed data; second item: raw body
@@ -26,8 +26,8 @@ module ForemanApi
26
26
 
27
27
  # @param [Hash] params a hash of params to be passed to the service
28
28
  # @option params [Object] id Part of +/api/hostgroups/:hostgroup_id/puppetclass_ids/:id+ path
29
- # @option params [String] hostgroup_id Id of hostgroup
30
- # @option params [String] puppetclass_id Id of puppetclass
29
+ # @option params [String] hostgroup_id id of hostgroup
30
+ # @option params [String] puppetclass_id id of puppetclass
31
31
  #
32
32
  # @param [Hash] headers additional http headers
33
33
  # @return [Array] First item: parsed data; second item: raw body
@@ -7,10 +7,10 @@ module ForemanApi
7
7
 
8
8
  # @param [Hash] params a hash of params to be passed to the service
9
9
  # @option params [String] compute_resource_id
10
- # @option params [String] order Sort results
11
- # @option params [String] page Paginate results
12
- # @option params [String] per_page Number of entries per request
13
- # @option params [String] search Filter results
10
+ # @option params [String] order sort results
11
+ # @option params [String] page paginate results
12
+ # @option params [String] per_page number of entries per request
13
+ # @option params [String] search filter results
14
14
  #
15
15
  # @param [Hash] headers additional http headers
16
16
  # @return [Array] First item: parsed data; second item: raw body
@@ -0,0 +1,80 @@
1
+ module ForemanApi
2
+ module Resources
3
+ class Interface < ForemanApi::Base
4
+ def self.doc
5
+ @doc ||= ForemanApi.doc['resources']["interfaces"]
6
+ end
7
+
8
+ # @param [Hash] params a hash of params to be passed to the service
9
+ # @option params [String] host_id id or name of host
10
+ #
11
+ # @param [Hash] headers additional http headers
12
+ # @return [Array] First item: parsed data; second item: raw body
13
+ def index(params = {}, headers = {})
14
+ perform_call(__method__, params, headers)
15
+ end
16
+
17
+ # @param [Hash] params a hash of params to be passed to the service
18
+ # @option params [String] id id or name of interface
19
+ # @option params [String] host_id id or name of nested host
20
+ #
21
+ # @param [Hash] headers additional http headers
22
+ # @return [Array] First item: parsed data; second item: raw body
23
+ def show(params = {}, headers = {})
24
+ perform_call(__method__, params, headers)
25
+ end
26
+
27
+ # @param [Hash] params a hash of params to be passed to the service
28
+ # @option params [String] host_id id or name of host
29
+ # @option params [Hash] interface interface information
30
+ # allowed keys are:
31
+ # * domain_id [Numeric] foreman domain id of interface
32
+ # * subnet_id [Numeric] foreman subnet id of interface
33
+ # * ip [String] ip address of interface
34
+ # * mac [String] mac address of interface
35
+ # * name [String] interface name
36
+ # * password [String]
37
+ # * provider [String] interface provider, i.e: ipmi
38
+ # * type [String] interface type, i.e: nic::bmc
39
+ # * username [String]
40
+ #
41
+ # @param [Hash] headers additional http headers
42
+ # @return [Array] First item: parsed data; second item: raw body
43
+ def create(params = {}, headers = {})
44
+ perform_call(__method__, params, headers)
45
+ end
46
+
47
+ # @param [Hash] params a hash of params to be passed to the service
48
+ # @option params [Object] id Part of +/api/hosts/:host_id/interfaces/:id+ path
49
+ # @option params [String] host_id id or name of host
50
+ # @option params [Hash] interface interface information
51
+ # allowed keys are:
52
+ # * domain_id [Numeric] foreman domain id of interface
53
+ # * subnet_id [Numeric] foreman subnet id of interface
54
+ # * ip [String] ip address of interface
55
+ # * mac [String] mac address of interface
56
+ # * name [String] interface name
57
+ # * password [String]
58
+ # * provider [String] interface provider, i.e: ipmi
59
+ # * type [String] interface type, i.e: nic::bmc
60
+ # * username [String]
61
+ #
62
+ # @param [Hash] headers additional http headers
63
+ # @return [Array] First item: parsed data; second item: raw body
64
+ def update(params = {}, headers = {})
65
+ perform_call(__method__, params, headers)
66
+ end
67
+
68
+ # @param [Hash] params a hash of params to be passed to the service
69
+ # @option params [String] id id of interface
70
+ # @option params [Object] host_id Part of +/api/hosts/:host_id/interfaces/:id+ path
71
+ #
72
+ # @param [Hash] headers additional http headers
73
+ # @return [Array] First item: parsed data; second item: raw body
74
+ def destroy(params = {}, headers = {})
75
+ perform_call(__method__, params, headers)
76
+ end
77
+
78
+ end
79
+ end
80
+ end
@@ -6,10 +6,10 @@ module ForemanApi
6
6
  end
7
7
 
8
8
  # @param [Hash] params a hash of params to be passed to the service
9
- # @option params [String] order Sort results
10
- # @option params [String] page Paginate results
11
- # @option params [String] per_page Number of entries per request
12
- # @option params [String] search Filter results
9
+ # @option params [String] order sort results
10
+ # @option params [String] page paginate results
11
+ # @option params [String] per_page number of entries per request
12
+ # @option params [String] search filter results
13
13
  #
14
14
  # @param [Hash] headers additional http headers
15
15
  # @return [Array] First item: parsed data; second item: raw body
@@ -6,10 +6,10 @@ module ForemanApi
6
6
  end
7
7
 
8
8
  # @param [Hash] params a hash of params to be passed to the service
9
- # @option params [String] order Sort results
10
- # @option params [String] page Paginate results
11
- # @option params [String] per_page Number of entries per request
12
- # @option params [String] search Filter results
9
+ # @option params [String] order sort results
10
+ # @option params [String] page paginate results
11
+ # @option params [String] per_page number of entries per request
12
+ # @option params [String] search filter results
13
13
  #
14
14
  # @param [Hash] headers additional http headers
15
15
  # @return [Array] First item: parsed data; second item: raw body
@@ -32,14 +32,9 @@ module ForemanApi
32
32
  # * puppetclass_id [String]
33
33
  # * default_value [String]
34
34
  # * description [String]
35
- # * is_param [String]
36
35
  # * key [String]
37
- # * key_type [String]
38
- # * override [String]
36
+ # * lookup_values_count [String]
39
37
  # * path [String]
40
- # * required [String]
41
- # * validator_rule [String]
42
- # * validator_type [String]
43
38
  #
44
39
  # @param [Hash] headers additional http headers
45
40
  # @return [Array] First item: parsed data; second item: raw body
@@ -54,14 +49,9 @@ module ForemanApi
54
49
  # * puppetclass_id [String]
55
50
  # * default_value [String]
56
51
  # * description [String]
57
- # * is_param [String]
58
52
  # * key [String]
59
- # * key_type [String]
60
- # * override [String]
53
+ # * lookup_values_count [String]
61
54
  # * path [String]
62
- # * required [String]
63
- # * validator_rule [String]
64
- # * validator_type [String]
65
55
  #
66
56
  # @param [Hash] headers additional http headers
67
57
  # @return [Array] First item: parsed data; second item: raw body
@@ -78,55 +68,6 @@ module ForemanApi
78
68
  perform_call(__method__, params, headers)
79
69
  end
80
70
 
81
- # @param [Hash] params a hash of params to be passed to the service
82
- # @option params [String] host_id
83
- # @option params [String] hostgroup_id
84
- # @option params [String] page Paginate results
85
- # @option params [String] per_page Number of entries per request
86
- #
87
- # @param [Hash] headers additional http headers
88
- # @return [Array] First item: parsed data; second item: raw body
89
- def host_or_hostgroup_smart_parameters(params = {}, headers = {})
90
- perform_call(__method__, params, headers)
91
- end
92
-
93
- # @param [Hash] params a hash of params to be passed to the service
94
- # @option params [String] host_id
95
- # @option params [String] hostgroup_id
96
- # @option params [String] page Paginate results
97
- # @option params [String] per_page Number of entries per request
98
- #
99
- # @param [Hash] headers additional http headers
100
- # @return [Array] First item: parsed data; second item: raw body
101
- def host_or_hostgroup_smart_class_parameters(params = {}, headers = {})
102
- perform_call(__method__, params, headers)
103
- end
104
-
105
- # @param [Hash] params a hash of params to be passed to the service
106
- # @option params [String] puppetclass_id
107
- # @option params [String] order Sort results
108
- # @option params [String] page Paginate results
109
- # @option params [String] per_page Number of entries per request
110
- #
111
- # @param [Hash] headers additional http headers
112
- # @return [Array] First item: parsed data; second item: raw body
113
- def puppet_smart_parameters(params = {}, headers = {})
114
- perform_call(__method__, params, headers)
115
- end
116
-
117
- # @param [Hash] params a hash of params to be passed to the service
118
- # @option params [String] environment_id
119
- # @option params [String] puppetclass_id
120
- # @option params [String] order Sort results
121
- # @option params [String] page Paginate results
122
- # @option params [String] per_page Number of entries per request
123
- #
124
- # @param [Hash] headers additional http headers
125
- # @return [Array] First item: parsed data; second item: raw body
126
- def puppet_smart_class_parameters(params = {}, headers = {})
127
- perform_call(__method__, params, headers)
128
- end
129
-
130
71
  end
131
72
  end
132
73
  end
@@ -6,10 +6,10 @@ module ForemanApi
6
6
  end
7
7
 
8
8
  # @param [Hash] params a hash of params to be passed to the service
9
- # @option params [String] order For example, name asc, or name desc
10
- # @option params [String] page Paginate results
11
- # @option params [String] per_page Number of entries per request
12
- # @option params [String] search Filter results
9
+ # @option params [String] order for example, name asc, or name desc
10
+ # @option params [String] page paginate results
11
+ # @option params [String] per_page number of entries per request
12
+ # @option params [String] search filter results
13
13
  #
14
14
  # @param [Hash] headers additional http headers
15
15
  # @return [Array] First item: parsed data; second item: raw body
@@ -30,9 +30,9 @@ module ForemanApi
30
30
  # @option params [Hash] medium
31
31
  # allowed keys are:
32
32
  # * operatingsystem_ids [Array]
33
- # * name [String] Name of media
34
- # * os_family [String] The family that the operating system belongs to. available families: archlinux debian gentoo redhat solaris suse windows
35
- # * path [String] The path to the medium, can be a url or a valid nfs server (exclusive of the architecture). for example http://mirror.averse.net/centos/$version/os/$arch where $arch will be substituted for the host’s actual os architecture and $version, $major and $minor will be substituted for the version of the operating system. solaris and debian media may also use $release.
33
+ # * name [String] name of media
34
+ # * os_family [String] the family that the operating system belongs to. available families: archlinux debian gentoo redhat solaris suse windows
35
+ # * path [String] the path to the medium, can be a url or a valid nfs server (exclusive of the architecture). for example http://mirror.centos.org/centos/$version/os/$arch where $arch will be substituted for the host’s actual os architecture and $version, $major and $minor will be substituted for the version of the operating system. solaris and debian media may also use $release.
36
36
  #
37
37
  # @param [Hash] headers additional http headers
38
38
  # @return [Array] First item: parsed data; second item: raw body
@@ -45,9 +45,9 @@ module ForemanApi
45
45
  # @option params [Hash] medium
46
46
  # allowed keys are:
47
47
  # * operatingsystem_ids [Array]
48
- # * name [String] Name of media
49
- # * os_family [String, nil] The family that the operating system belongs to. available families: archlinux debian gentoo redhat solaris suse windows
50
- # * path [String] The path to the medium, can be a url or a valid nfs server (exclusive of the architecture). for example http://mirror.averse.net/centos/$version/os/$arch where $arch will be substituted for the host’s actual os architecture and $version, $major and $minor will be substituted for the version of the operating system. solaris and debian media may also use $release.
48
+ # * name [String] name of media
49
+ # * os_family [String, nil] the family that the operating system belongs to. available families: archlinux debian gentoo redhat solaris suse windows
50
+ # * path [String] the path to the medium, can be a url or a valid nfs server (exclusive of the architecture). for example http://mirror.centos.org/centos/$version/os/$arch where $arch will be substituted for the host’s actual os architecture and $version, $major and $minor will be substituted for the version of the operating system. solaris and debian media may also use $release.
51
51
  #
52
52
  # @param [Hash] headers additional http headers
53
53
  # @return [Array] First item: parsed data; second item: raw body
@@ -6,10 +6,10 @@ module ForemanApi
6
6
  end
7
7
 
8
8
  # @param [Hash] params a hash of params to be passed to the service
9
- # @option params [String] order Sort results
10
- # @option params [String] page Paginate results
11
- # @option params [String] per_page Number of entries per request
12
- # @option params [String] search Filter results
9
+ # @option params [String] order sort results
10
+ # @option params [String] page paginate results
11
+ # @option params [String] per_page number of entries per request
12
+ # @option params [String] search filter results
13
13
  #
14
14
  # @param [Hash] headers additional http headers
15
15
  # @return [Array] First item: parsed data; second item: raw body
@@ -6,10 +6,10 @@ module ForemanApi
6
6
  end
7
7
 
8
8
  # @param [Hash] params a hash of params to be passed to the service
9
- # @option params [String] order For example, name asc, or name desc
10
- # @option params [String] page Paginate results
11
- # @option params [String] per_page Number of entries per request
12
- # @option params [String] search Filter results
9
+ # @option params [String] order for example, name asc, or name desc
10
+ # @option params [String] page paginate results
11
+ # @option params [String] per_page number of entries per request
12
+ # @option params [String] search filter results
13
13
  #
14
14
  # @param [Hash] headers additional http headers
15
15
  # @return [Array] First item: parsed data; second item: raw body
@@ -6,10 +6,10 @@ module ForemanApi
6
6
  end
7
7
 
8
8
  # @param [Hash] params a hash of params to be passed to the service
9
- # @option params [String] order Sort results
10
- # @option params [String] page Paginate results
11
- # @option params [String] per_page Number of entries per request
12
- # @option params [String] search Filter results
9
+ # @option params [String] order sort results
10
+ # @option params [String] page paginate results
11
+ # @option params [String] per_page number of entries per request
12
+ # @option params [String] search filter results
13
13
  #
14
14
  # @param [Hash] headers additional http headers
15
15
  # @return [Array] First item: parsed data; second item: raw body
@@ -0,0 +1,73 @@
1
+ module ForemanApi
2
+ module Resources
3
+ class OverrideValue < ForemanApi::Base
4
+ def self.doc
5
+ @doc ||= ForemanApi.doc['resources']["override_values"]
6
+ end
7
+
8
+ # @param [Hash] params a hash of params to be passed to the service
9
+ # @option params [String] smart_class_parameter_id
10
+ # @option params [String] smart_variable_id
11
+ # @option params [String] page paginate results
12
+ # @option params [String] per_page number of entries per request
13
+ #
14
+ # @param [Hash] headers additional http headers
15
+ # @return [Array] First item: parsed data; second item: raw body
16
+ def index(params = {}, headers = {})
17
+ perform_call(__method__, params, headers)
18
+ end
19
+
20
+ # @param [Hash] params a hash of params to be passed to the service
21
+ # @option params [String] id
22
+ # @option params [String] smart_class_parameter_id
23
+ # @option params [String] smart_variable_id
24
+ #
25
+ # @param [Hash] headers additional http headers
26
+ # @return [Array] First item: parsed data; second item: raw body
27
+ def show(params = {}, headers = {})
28
+ perform_call(__method__, params, headers)
29
+ end
30
+
31
+ # @param [Hash] params a hash of params to be passed to the service
32
+ # @option params [String] smart_class_parameter_id
33
+ # @option params [String] smart_variable_id
34
+ # @option params [Hash] override_value
35
+ # allowed keys are:
36
+ # * match [String]
37
+ # * value [String]
38
+ #
39
+ # @param [Hash] headers additional http headers
40
+ # @return [Array] First item: parsed data; second item: raw body
41
+ def create(params = {}, headers = {})
42
+ perform_call(__method__, params, headers)
43
+ end
44
+
45
+ # @param [Hash] params a hash of params to be passed to the service
46
+ # @option params [Object] id Part of +/api/smart_variables/:smart_variable_id/override_values/:id+ path
47
+ # @option params [String] smart_class_parameter_id
48
+ # @option params [String] smart_variable_id
49
+ # @option params [Hash] override_value
50
+ # allowed keys are:
51
+ # * match [String]
52
+ # * value [String]
53
+ #
54
+ # @param [Hash] headers additional http headers
55
+ # @return [Array] First item: parsed data; second item: raw body
56
+ def update(params = {}, headers = {})
57
+ perform_call(__method__, params, headers)
58
+ end
59
+
60
+ # @param [Hash] params a hash of params to be passed to the service
61
+ # @option params [String] id
62
+ # @option params [String] smart_class_parameter_id
63
+ # @option params [String] smart_variable_id
64
+ #
65
+ # @param [Hash] headers additional http headers
66
+ # @return [Array] First item: parsed data; second item: raw body
67
+ def destroy(params = {}, headers = {})
68
+ perform_call(__method__, params, headers)
69
+ end
70
+
71
+ end
72
+ end
73
+ end
@@ -6,12 +6,12 @@ module ForemanApi
6
6
  end
7
7
 
8
8
  # @param [Hash] params a hash of params to be passed to the service
9
- # @option params [String] domain_id Id of domain
10
- # @option params [String] host_id Id of host
11
- # @option params [String] hostgroup_id Id of hostgroup
12
- # @option params [String] operatingsystem_id Id of operating system
13
- # @option params [String] page Paginate results
14
- # @option params [String] per_page Number of entries per request
9
+ # @option params [String] domain_id id of domain
10
+ # @option params [String] host_id id of host
11
+ # @option params [String] hostgroup_id id of hostgroup
12
+ # @option params [String] operatingsystem_id id of operating system
13
+ # @option params [String] page paginate results
14
+ # @option params [String] per_page number of entries per request
15
15
  #
16
16
  # @param [Hash] headers additional http headers
17
17
  # @return [Array] First item: parsed data; second item: raw body
@@ -20,11 +20,11 @@ module ForemanApi
20
20
  end
21
21
 
22
22
  # @param [Hash] params a hash of params to be passed to the service
23
- # @option params [String] id Id of parameter
24
- # @option params [String] domain_id Id of domain
25
- # @option params [String] host_id Id of host
26
- # @option params [String] hostgroup_id Id of hostgroup
27
- # @option params [String] operatingsystem_id Id of operating system
23
+ # @option params [String] id id of parameter
24
+ # @option params [String] domain_id id of domain
25
+ # @option params [String] host_id id of host
26
+ # @option params [String] hostgroup_id id of hostgroup
27
+ # @option params [String] operatingsystem_id id of operating system
28
28
  #
29
29
  # @param [Hash] headers additional http headers
30
30
  # @return [Array] First item: parsed data; second item: raw body
@@ -33,10 +33,10 @@ module ForemanApi
33
33
  end
34
34
 
35
35
  # @param [Hash] params a hash of params to be passed to the service
36
- # @option params [String] domain_id Id of domain
37
- # @option params [String] host_id Id of host
38
- # @option params [String] hostgroup_id Id of hostgroup
39
- # @option params [String] operatingsystem_id Id of operating system
36
+ # @option params [String] domain_id id of domain
37
+ # @option params [String] host_id id of host
38
+ # @option params [String] hostgroup_id id of hostgroup
39
+ # @option params [String] operatingsystem_id id of operating system
40
40
  # @option params [Hash] parameter
41
41
  # allowed keys are:
42
42
  # * name [String]
@@ -49,11 +49,11 @@ module ForemanApi
49
49
  end
50
50
 
51
51
  # @param [Hash] params a hash of params to be passed to the service
52
- # @option params [String] id Id of parameter
53
- # @option params [String] domain_id Id of domain
54
- # @option params [String] host_id Id of host
55
- # @option params [String] hostgroup_id Id of hostgroup
56
- # @option params [String] operatingsystem_id Id of operating system
52
+ # @option params [String] id id of parameter
53
+ # @option params [String] domain_id id of domain
54
+ # @option params [String] host_id id of host
55
+ # @option params [String] hostgroup_id id of hostgroup
56
+ # @option params [String] operatingsystem_id id of operating system
57
57
  # @option params [Hash] parameter
58
58
  # allowed keys are:
59
59
  # * name [String]
@@ -66,11 +66,11 @@ module ForemanApi
66
66
  end
67
67
 
68
68
  # @param [Hash] params a hash of params to be passed to the service
69
- # @option params [String] id Id of parameter
70
- # @option params [String] domain_id Id of domain
71
- # @option params [String] host_id Id of host
72
- # @option params [String] hostgroup_id Id of hostgroup
73
- # @option params [String] operatingsystem_id Id of operating system
69
+ # @option params [String] id id of parameter
70
+ # @option params [String] domain_id id of domain
71
+ # @option params [String] host_id id of host
72
+ # @option params [String] hostgroup_id id of hostgroup
73
+ # @option params [String] operatingsystem_id id of operating system
74
74
  #
75
75
  # @param [Hash] headers additional http headers
76
76
  # @return [Array] First item: parsed data; second item: raw body