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
@@ -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
|
10
|
-
# @option params [String] page
|
11
|
-
# @option params [String] per_page
|
12
|
-
# @option params [String] search
|
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,9 +6,13 @@ 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] environment_id
|
10
|
-
# @option params [String] host_id
|
11
|
-
# @option params [String] hostgroup_id
|
9
|
+
# @option params [String] environment_id id of nested environment
|
10
|
+
# @option params [String] host_id id of nested host
|
11
|
+
# @option params [String] hostgroup_id id of nested hostgroup
|
12
|
+
# @option params [String] order sort results
|
13
|
+
# @option params [String] page paginate results
|
14
|
+
# @option params [String] per_page number of entries per request
|
15
|
+
# @option params [String] search filter results
|
12
16
|
#
|
13
17
|
# @param [Hash] headers additional http headers
|
14
18
|
# @return [Array] First item: parsed data; second item: raw body
|
@@ -17,10 +21,10 @@ module ForemanApi
|
|
17
21
|
end
|
18
22
|
|
19
23
|
# @param [Hash] params a hash of params to be passed to the service
|
20
|
-
# @option params [String] id
|
21
|
-
# @option params [String] environment_id
|
22
|
-
# @option params [String] host_id
|
23
|
-
# @option params [String] hostgroup_id
|
24
|
+
# @option params [String] id id of puppetclass
|
25
|
+
# @option params [String] environment_id id of nested environment
|
26
|
+
# @option params [String] host_id id of nested host
|
27
|
+
# @option params [String] hostgroup_id id of nested hostgroup
|
24
28
|
#
|
25
29
|
# @param [Hash] headers additional http headers
|
26
30
|
# @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
|
10
|
-
# @option params [String] page
|
11
|
-
# @option params [String] per_page
|
12
|
-
# @option params [String] search
|
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
|
@@ -45,6 +45,21 @@ module ForemanApi
|
|
45
45
|
perform_call(__method__, params, headers)
|
46
46
|
end
|
47
47
|
|
48
|
+
# @param [Hash] params a hash of params to be passed to the service
|
49
|
+
# @option params [Hash] report
|
50
|
+
# allowed keys are:
|
51
|
+
# * host [String] hostname or certname
|
52
|
+
# * logs [Array] optional array of log hashes
|
53
|
+
# * metrics [Hash] hash of report metrics, can be just {}
|
54
|
+
# * reported_at [String] utc time of report
|
55
|
+
# * status [Hash] hash of status type totals
|
56
|
+
#
|
57
|
+
# @param [Hash] headers additional http headers
|
58
|
+
# @return [Array] First item: parsed data; second item: raw body
|
59
|
+
def create(params = {}, headers = {})
|
60
|
+
perform_call(__method__, params, headers)
|
61
|
+
end
|
62
|
+
|
48
63
|
end
|
49
64
|
end
|
50
65
|
end
|
@@ -6,8 +6,8 @@ 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] page
|
10
|
-
# @option params [String] per_page
|
9
|
+
# @option params [String] page paginate results
|
10
|
+
# @option params [String] per_page number of entries per request
|
11
11
|
#
|
12
12
|
# @param [Hash] headers additional http headers
|
13
13
|
# @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
|
10
|
-
# @option params [String] page
|
11
|
-
# @option params [String] per_page
|
12
|
-
# @option params [String] search
|
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,55 @@
|
|
1
|
+
module ForemanApi
|
2
|
+
module Resources
|
3
|
+
class SmartClassParameter < ForemanApi::Base
|
4
|
+
def self.doc
|
5
|
+
@doc ||= ForemanApi.doc['resources']["smart_class_parameters"]
|
6
|
+
end
|
7
|
+
|
8
|
+
# @param [Hash] params a hash of params to be passed to the service
|
9
|
+
# @option params [String] environment_id
|
10
|
+
# @option params [String] host_id
|
11
|
+
# @option params [String] hostgroup_id
|
12
|
+
# @option params [String] puppetclass_id
|
13
|
+
# @option params [String] order sort results
|
14
|
+
# @option params [String] page paginate results
|
15
|
+
# @option params [String] per_page number of entries per request
|
16
|
+
# @option params [String] search filter results
|
17
|
+
#
|
18
|
+
# @param [Hash] headers additional http headers
|
19
|
+
# @return [Array] First item: parsed data; second item: raw body
|
20
|
+
def index(params = {}, headers = {})
|
21
|
+
perform_call(__method__, params, headers)
|
22
|
+
end
|
23
|
+
|
24
|
+
# @param [Hash] params a hash of params to be passed to the service
|
25
|
+
# @option params [String] id
|
26
|
+
#
|
27
|
+
# @param [Hash] headers additional http headers
|
28
|
+
# @return [Array] First item: parsed data; second item: raw body
|
29
|
+
def show(params = {}, headers = {})
|
30
|
+
perform_call(__method__, params, headers)
|
31
|
+
end
|
32
|
+
|
33
|
+
# @param [Hash] params a hash of params to be passed to the service
|
34
|
+
# @option params [String] id
|
35
|
+
# @option params [Hash] smart_class_parameter
|
36
|
+
# allowed keys are:
|
37
|
+
# * default_value [String]
|
38
|
+
# * description [String]
|
39
|
+
# * override [String]
|
40
|
+
# * override_value_order [String]
|
41
|
+
# * parameter_type [String]
|
42
|
+
# * path [String]
|
43
|
+
# * required [String]
|
44
|
+
# * validator_rule [String]
|
45
|
+
# * validator_type [String]
|
46
|
+
#
|
47
|
+
# @param [Hash] headers additional http headers
|
48
|
+
# @return [Array] First item: parsed data; second item: raw body
|
49
|
+
def update(params = {}, headers = {})
|
50
|
+
perform_call(__method__, params, headers)
|
51
|
+
end
|
52
|
+
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
@@ -6,9 +6,21 @@ 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 [
|
10
|
-
# @option params [String]
|
11
|
-
# @option params [String]
|
9
|
+
# @option params [Object] id Part of +/api/smart_proxies/:id/import_puppetclasses+ path
|
10
|
+
# @option params [String] environment_id
|
11
|
+
# @option params [String] smart_proxy_id
|
12
|
+
# @option params [String] dryrun
|
13
|
+
#
|
14
|
+
# @param [Hash] headers additional http headers
|
15
|
+
# @return [Array] First item: parsed data; second item: raw body
|
16
|
+
def import_puppetclasses(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] page paginate results
|
22
|
+
# @option params [String] per_page number of entries per request
|
23
|
+
# @option params [String] type filter by type
|
12
24
|
#
|
13
25
|
# @param [Hash] headers additional http headers
|
14
26
|
# @return [Array] First item: parsed data; second item: raw body
|
@@ -59,6 +71,15 @@ module ForemanApi
|
|
59
71
|
perform_call(__method__, params, headers)
|
60
72
|
end
|
61
73
|
|
74
|
+
# @param [Hash] params a hash of params to be passed to the service
|
75
|
+
# @option params [String] id
|
76
|
+
#
|
77
|
+
# @param [Hash] headers additional http headers
|
78
|
+
# @return [Array] First item: parsed data; second item: raw body
|
79
|
+
def refresh(params = {}, headers = {})
|
80
|
+
perform_call(__method__, params, headers)
|
81
|
+
end
|
82
|
+
|
62
83
|
end
|
63
84
|
end
|
64
85
|
end
|
@@ -0,0 +1,80 @@
|
|
1
|
+
module ForemanApi
|
2
|
+
module Resources
|
3
|
+
class SmartVariable < ForemanApi::Base
|
4
|
+
def self.doc
|
5
|
+
@doc ||= ForemanApi.doc['resources']["smart_variables"]
|
6
|
+
end
|
7
|
+
|
8
|
+
# @param [Hash] params a hash of params to be passed to the service
|
9
|
+
# @option params [String] host_id
|
10
|
+
# @option params [String] hostgroup_id
|
11
|
+
# @option params [String] puppetclass_id
|
12
|
+
# @option params [String] order sort results
|
13
|
+
# @option params [String] page paginate results
|
14
|
+
# @option params [String] per_page number of entries per request
|
15
|
+
# @option params [String] search filter results
|
16
|
+
#
|
17
|
+
# @param [Hash] headers additional http headers
|
18
|
+
# @return [Array] First item: parsed data; second item: raw body
|
19
|
+
def index(params = {}, headers = {})
|
20
|
+
perform_call(__method__, params, headers)
|
21
|
+
end
|
22
|
+
|
23
|
+
# @param [Hash] params a hash of params to be passed to the service
|
24
|
+
# @option params [String] id
|
25
|
+
#
|
26
|
+
# @param [Hash] headers additional http headers
|
27
|
+
# @return [Array] First item: parsed data; second item: raw body
|
28
|
+
def show(params = {}, headers = {})
|
29
|
+
perform_call(__method__, params, headers)
|
30
|
+
end
|
31
|
+
|
32
|
+
# @param [Hash] params a hash of params to be passed to the service
|
33
|
+
# @option params [Hash] smart_variable
|
34
|
+
# allowed keys are:
|
35
|
+
# * puppetclass_id [String]
|
36
|
+
# * default_value [String]
|
37
|
+
# * description [String]
|
38
|
+
# * override_value_order [String]
|
39
|
+
# * validator_rule [String]
|
40
|
+
# * validator_type [String]
|
41
|
+
# * variable [String]
|
42
|
+
# * variable_type [String]
|
43
|
+
#
|
44
|
+
# @param [Hash] headers additional http headers
|
45
|
+
# @return [Array] First item: parsed data; second item: raw body
|
46
|
+
def create(params = {}, headers = {})
|
47
|
+
perform_call(__method__, params, headers)
|
48
|
+
end
|
49
|
+
|
50
|
+
# @param [Hash] params a hash of params to be passed to the service
|
51
|
+
# @option params [String] id
|
52
|
+
# @option params [Hash] smart_variable
|
53
|
+
# allowed keys are:
|
54
|
+
# * puppetclass_id [String]
|
55
|
+
# * default_value [String]
|
56
|
+
# * description [String]
|
57
|
+
# * override_value_order [String]
|
58
|
+
# * validator_rule [String]
|
59
|
+
# * validator_type [String]
|
60
|
+
# * variable [String]
|
61
|
+
# * variable_type [String]
|
62
|
+
#
|
63
|
+
# @param [Hash] headers additional http headers
|
64
|
+
# @return [Array] First item: parsed data; second item: raw body
|
65
|
+
def update(params = {}, headers = {})
|
66
|
+
perform_call(__method__, params, headers)
|
67
|
+
end
|
68
|
+
|
69
|
+
# @param [Hash] params a hash of params to be passed to the service
|
70
|
+
# @option params [String] id
|
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
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module ForemanApi
|
2
|
+
module Resources
|
3
|
+
class Statistic < ForemanApi::Base
|
4
|
+
def self.doc
|
5
|
+
@doc ||= ForemanApi.doc['resources']["statistics"]
|
6
|
+
end
|
7
|
+
|
8
|
+
# @param [Hash] params a hash of params to be passed to the service
|
9
|
+
#
|
10
|
+
# @param [Hash] headers additional http headers
|
11
|
+
# @return [Array] First item: parsed data; second item: raw body
|
12
|
+
def index(params = {}, headers = {})
|
13
|
+
perform_call(__method__, params, headers)
|
14
|
+
end
|
15
|
+
|
16
|
+
end
|
17
|
+
end
|
18
|
+
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
|
10
|
-
# @option params [String] page
|
11
|
-
# @option params [String] per_page
|
12
|
-
# @option params [String] search
|
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
|
@@ -29,19 +29,19 @@ module ForemanApi
|
|
29
29
|
# @param [Hash] params a hash of params to be passed to the service
|
30
30
|
# @option params [Hash] subnet
|
31
31
|
# allowed keys are:
|
32
|
-
# * dhcp_id [String]
|
33
|
-
# * dns_id [String]
|
34
|
-
# * domain_ids [Array]
|
35
|
-
# * tftp_id [String]
|
36
|
-
# * dns_primary [String]
|
37
|
-
# * dns_secondary [String]
|
38
|
-
# * from [String]
|
39
|
-
# * gateway [String]
|
40
|
-
# * mask [String]
|
41
|
-
# * name [String]
|
42
|
-
# * network [String]
|
43
|
-
# * to [String]
|
44
|
-
# * vlanid [String]
|
32
|
+
# * dhcp_id [String] dhcp proxy to use within this subnet
|
33
|
+
# * dns_id [String] dns proxy to use within this subnet
|
34
|
+
# * domain_ids [Array] domains in which this subnet is part
|
35
|
+
# * tftp_id [String] tftp proxy to use within this subnet
|
36
|
+
# * dns_primary [String] primary dns for this subnet
|
37
|
+
# * dns_secondary [String] secondary dns for this subnet
|
38
|
+
# * from [String] starting ip address for ip auto suggestion
|
39
|
+
# * gateway [String] primary dns for this subnet
|
40
|
+
# * mask [String] netmask for this subnet
|
41
|
+
# * name [String] subnet name
|
42
|
+
# * network [String] subnet network
|
43
|
+
# * to [String] ending ip address for ip auto suggestion
|
44
|
+
# * vlanid [String] vlan id for this subnet
|
45
45
|
#
|
46
46
|
# @param [Hash] headers additional http headers
|
47
47
|
# @return [Array] First item: parsed data; second item: raw body
|
@@ -50,22 +50,22 @@ module ForemanApi
|
|
50
50
|
end
|
51
51
|
|
52
52
|
# @param [Hash] params a hash of params to be passed to the service
|
53
|
-
# @option params [String] id
|
53
|
+
# @option params [String] id subnet numeric identifier
|
54
54
|
# @option params [Hash] subnet
|
55
55
|
# allowed keys are:
|
56
|
-
# * dhcp_id [String, nil]
|
57
|
-
# * dns_id [String, nil]
|
58
|
-
# * domain_ids [Array, nil]
|
59
|
-
# * tftp_id [String, nil]
|
60
|
-
# * dns_primary [String, nil]
|
61
|
-
# * dns_secondary [String, nil]
|
62
|
-
# * from [String, nil]
|
63
|
-
# * gateway [String, nil]
|
64
|
-
# * mask [String]
|
65
|
-
# * name [String]
|
66
|
-
# * network [String]
|
67
|
-
# * to [String, nil]
|
68
|
-
# * vlanid [String, nil]
|
56
|
+
# * dhcp_id [String, nil] dhcp proxy to use within this subnet
|
57
|
+
# * dns_id [String, nil] dns proxy to use within this subnet
|
58
|
+
# * domain_ids [Array, nil] domains in which this subnet is part
|
59
|
+
# * tftp_id [String, nil] tftp proxy to use within this subnet
|
60
|
+
# * dns_primary [String, nil] primary dns for this subnet
|
61
|
+
# * dns_secondary [String, nil] secondary dns for this subnet
|
62
|
+
# * from [String, nil] starting ip address for ip auto suggestion
|
63
|
+
# * gateway [String, nil] primary dns for this subnet
|
64
|
+
# * mask [String] netmask for this subnet
|
65
|
+
# * name [String] subnet name
|
66
|
+
# * network [String] subnet network
|
67
|
+
# * to [String, nil] ending ip address for ip auto suggestion
|
68
|
+
# * vlanid [String, nil] vlan id for this subnet
|
69
69
|
#
|
70
70
|
# @param [Hash] headers additional http headers
|
71
71
|
# @return [Array] First item: parsed data; second item: raw body
|
@@ -74,7 +74,7 @@ module ForemanApi
|
|
74
74
|
end
|
75
75
|
|
76
76
|
# @param [Hash] params a hash of params to be passed to the service
|
77
|
-
# @option params [String] id
|
77
|
+
# @option params [String] id subnet numeric identifier
|
78
78
|
#
|
79
79
|
# @param [Hash] headers additional http headers
|
80
80
|
# @return [Array] First item: parsed data; second item: raw body
|
@@ -18,8 +18,8 @@ module ForemanApi
|
|
18
18
|
# @option params [String] config_template_id
|
19
19
|
# @option params [Hash] template_combination
|
20
20
|
# allowed keys are:
|
21
|
-
# * environment_id [String, nil]
|
22
|
-
# * hostgroup_id [String, nil]
|
21
|
+
# * environment_id [String, nil] environment id
|
22
|
+
# * hostgroup_id [String, nil] hostgroup id
|
23
23
|
#
|
24
24
|
# @param [Hash] headers additional http headers
|
25
25
|
# @return [Array] First item: parsed data; second item: raw body
|
@@ -6,8 +6,8 @@ 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] page
|
10
|
-
# @option params [String] per_page
|
9
|
+
# @option params [String] page paginate results
|
10
|
+
# @option params [String] per_page number of entries per request
|
11
11
|
#
|
12
12
|
# @param [Hash] headers additional http headers
|
13
13
|
# @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
|
10
|
-
# @option params [String] page
|
11
|
-
# @option params [String] per_page
|
12
|
-
# @option params [String] search
|
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
|
@@ -30,7 +30,7 @@ module ForemanApi
|
|
30
30
|
# @option params [Hash] user
|
31
31
|
# allowed keys are:
|
32
32
|
# * auth_source_id [Numeric]
|
33
|
-
# * admin [String]
|
33
|
+
# * admin [String] is an admin account?
|
34
34
|
# * firstname [String]
|
35
35
|
# * lastname [String]
|
36
36
|
# * login [String]
|
@@ -47,7 +47,7 @@ module ForemanApi
|
|
47
47
|
# @option params [String] id
|
48
48
|
# @option params [Hash] user
|
49
49
|
# allowed keys are:
|
50
|
-
# * admin [String]
|
50
|
+
# * admin [String] is an admin account?
|
51
51
|
# * firstname [String, nil]
|
52
52
|
# * lastname [String, nil]
|
53
53
|
# * login [String]
|