foreman_api 0.1.9 → 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) 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 +5 -5
  5. data/doc/ForemanApi/Resources/Audit.html +1 -1
  6. data/doc/ForemanApi/Resources/AuthSourceLdap.html +23 -23
  7. data/doc/ForemanApi/Resources/Autosign.html +1 -1
  8. data/doc/ForemanApi/Resources/Bookmark.html +5 -5
  9. data/doc/ForemanApi/Resources/CommonParameter.html +3 -3
  10. data/doc/ForemanApi/Resources/ComputeResource.html +27 -27
  11. data/doc/ForemanApi/Resources/ConfigTemplate.html +12 -12
  12. data/doc/ForemanApi/Resources/Dashboard.html +1 -1
  13. data/doc/ForemanApi/Resources/Domain.html +8 -6
  14. data/doc/ForemanApi/Resources/Environment.html +3 -3
  15. data/doc/ForemanApi/Resources/FactValue.html +1 -1
  16. data/doc/ForemanApi/Resources/Home.html +1 -1
  17. data/doc/ForemanApi/Resources/Host.html +58 -62
  18. data/doc/ForemanApi/Resources/HostClass.html +1 -1
  19. data/doc/ForemanApi/Resources/Hostgroup.html +23 -23
  20. data/doc/ForemanApi/Resources/HostgroupClass.html +6 -19
  21. data/doc/ForemanApi/Resources/Image.html +3 -3
  22. data/doc/ForemanApi/Resources/Interface.html +14 -18
  23. data/doc/ForemanApi/Resources/Location.html +3 -3
  24. data/doc/ForemanApi/Resources/LookupKey.html +1 -1
  25. data/doc/ForemanApi/Resources/Medium.html +10 -10
  26. data/doc/ForemanApi/Resources/Model.html +9 -9
  27. data/doc/ForemanApi/Resources/OperatingSystem.html +9 -9
  28. data/doc/ForemanApi/Resources/Organization.html +3 -3
  29. data/doc/ForemanApi/Resources/OsDefaultTemplate.html +1031 -0
  30. data/doc/ForemanApi/Resources/OverrideValue.html +38 -12
  31. data/doc/ForemanApi/Resources/Parameter.html +191 -35
  32. data/doc/ForemanApi/Resources/Plugin.html +1 -1
  33. data/doc/ForemanApi/Resources/Ptable.html +5 -5
  34. data/doc/ForemanApi/Resources/Puppetclass.html +3 -3
  35. data/doc/ForemanApi/Resources/Report.html +15 -15
  36. data/doc/ForemanApi/Resources/Role.html +3 -3
  37. data/doc/ForemanApi/Resources/Setting.html +1 -1
  38. data/doc/ForemanApi/Resources/SmartClassParameter.html +1 -1
  39. data/doc/ForemanApi/Resources/SmartProxy.html +3 -3
  40. data/doc/ForemanApi/Resources/SmartVariable.html +17 -17
  41. data/doc/ForemanApi/Resources/Statistic.html +1 -1
  42. data/doc/ForemanApi/Resources/Subnet.html +13 -13
  43. data/doc/ForemanApi/Resources/Task.html +1 -1
  44. data/doc/ForemanApi/Resources/TemplateCombination.html +1 -1
  45. data/doc/ForemanApi/Resources/TemplateKind.html +1 -1
  46. data/doc/ForemanApi/Resources/User.html +15 -13
  47. data/doc/ForemanApi/Resources/Usergroup.html +3 -3
  48. data/doc/_index.html +8 -1
  49. data/doc/class_list.html +1 -1
  50. data/doc/file.MIT-LICENSE.html +1 -1
  51. data/doc/file.README.html +1 -1
  52. data/doc/index.html +1 -1
  53. data/doc/method_list.html +443 -407
  54. data/doc/top-level-namespace.html +1 -1
  55. data/lib/foreman_api/base.rb +1 -1
  56. data/lib/foreman_api/documentation.json +1 -1
  57. data/lib/foreman_api/resources/architecture.rb +4 -4
  58. data/lib/foreman_api/resources/auth_source_ldap.rb +22 -22
  59. data/lib/foreman_api/resources/bookmark.rb +4 -4
  60. data/lib/foreman_api/resources/common_parameter.rb +2 -2
  61. data/lib/foreman_api/resources/compute_resource.rb +20 -20
  62. data/lib/foreman_api/resources/config_template.rb +7 -7
  63. data/lib/foreman_api/resources/domain.rb +5 -5
  64. data/lib/foreman_api/resources/environment.rb +2 -2
  65. data/lib/foreman_api/resources/host.rb +55 -55
  66. data/lib/foreman_api/resources/hostgroup.rb +22 -22
  67. data/lib/foreman_api/resources/hostgroup_class.rb +1 -2
  68. data/lib/foreman_api/resources/image.rb +2 -2
  69. data/lib/foreman_api/resources/interface.rb +13 -13
  70. data/lib/foreman_api/resources/location.rb +2 -2
  71. data/lib/foreman_api/resources/medium.rb +6 -6
  72. data/lib/foreman_api/resources/model.rb +8 -8
  73. data/lib/foreman_api/resources/operating_system.rb +8 -8
  74. data/lib/foreman_api/resources/organization.rb +2 -2
  75. data/lib/foreman_api/resources/os_default_template.rb +68 -0
  76. data/lib/foreman_api/resources/override_value.rb +11 -11
  77. data/lib/foreman_api/resources/parameter.rb +18 -6
  78. data/lib/foreman_api/resources/ptable.rb +4 -4
  79. data/lib/foreman_api/resources/puppetclass.rb +2 -2
  80. data/lib/foreman_api/resources/report.rb +12 -12
  81. data/lib/foreman_api/resources/role.rb +2 -2
  82. data/lib/foreman_api/resources/smart_proxy.rb +2 -2
  83. data/lib/foreman_api/resources/smart_variable.rb +16 -16
  84. data/lib/foreman_api/resources/subnet.rb +12 -12
  85. data/lib/foreman_api/resources/user.rb +7 -6
  86. data/lib/foreman_api/resources/usergroup.rb +2 -2
  87. data/lib/foreman_api/version.rb +1 -1
  88. metadata +4 -2
@@ -27,36 +27,36 @@ module ForemanApi
27
27
  end
28
28
 
29
29
  # @param [Hash] params a hash of params to be passed to the service
30
- # @option params [String] id
30
+ # @option params [Hash, nil] report
31
+ # allowed keys are:
32
+ # * host [String] hostname or certname
33
+ # * logs [Array, nil] optional array of log hashes
34
+ # * metrics [Hash] hash of report metrics, can be just {}
35
+ # * reported_at [String] utc time of report
36
+ # * status [Hash] hash of status type totals
31
37
  #
32
38
  # @param [Hash] headers additional http headers
33
39
  # @return [Array] First item: parsed data; second item: raw body
34
- def destroy(params = {}, headers = {})
40
+ def create(params = {}, headers = {})
35
41
  perform_call(__method__, params, headers)
36
42
  end
37
43
 
38
44
  # @param [Hash] params a hash of params to be passed to the service
39
45
  # @option params [String] id
40
- # @option params [Object] host_id Part of +/api/hosts/:host_id/reports/last+ path
41
46
  #
42
47
  # @param [Hash] headers additional http headers
43
48
  # @return [Array] First item: parsed data; second item: raw body
44
- def last(params = {}, headers = {})
49
+ def destroy(params = {}, headers = {})
45
50
  perform_call(__method__, params, headers)
46
51
  end
47
52
 
48
53
  # @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
54
+ # @option params [String] id
55
+ # @option params [Object] host_id Part of +/api/hosts/:host_id/reports/last+ path
56
56
  #
57
57
  # @param [Hash] headers additional http headers
58
58
  # @return [Array] First item: parsed data; second item: raw body
59
- def create(params = {}, headers = {})
59
+ def last(params = {}, headers = {})
60
60
  perform_call(__method__, params, headers)
61
61
  end
62
62
 
@@ -25,7 +25,7 @@ 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 [Hash] role
28
+ # @option params [Hash, nil] role
29
29
  # allowed keys are:
30
30
  # * name [String]
31
31
  #
@@ -37,7 +37,7 @@ module ForemanApi
37
37
 
38
38
  # @param [Hash] params a hash of params to be passed to the service
39
39
  # @option params [String] id
40
- # @option params [Hash] role
40
+ # @option params [Hash, nil] role
41
41
  # allowed keys are:
42
42
  # * name [String]
43
43
  #
@@ -38,7 +38,7 @@ module ForemanApi
38
38
  end
39
39
 
40
40
  # @param [Hash] params a hash of params to be passed to the service
41
- # @option params [Hash] smart_proxy
41
+ # @option params [Hash, nil] smart_proxy
42
42
  # allowed keys are:
43
43
  # * name [String]
44
44
  # * url [String]
@@ -51,7 +51,7 @@ module ForemanApi
51
51
 
52
52
  # @param [Hash] params a hash of params to be passed to the service
53
53
  # @option params [String] id
54
- # @option params [Hash] smart_proxy
54
+ # @option params [Hash, nil] smart_proxy
55
55
  # allowed keys are:
56
56
  # * name [String]
57
57
  # * url [String]
@@ -30,16 +30,16 @@ module ForemanApi
30
30
  end
31
31
 
32
32
  # @param [Hash] params a hash of params to be passed to the service
33
- # @option params [Hash] smart_variable
33
+ # @option params [Hash, nil] smart_variable
34
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]
35
+ # * puppetclass_id [String, nil]
36
+ # * default_value [String, nil]
37
+ # * description [String, nil]
38
+ # * override_value_order [String, nil]
39
+ # * validator_rule [String, nil]
40
+ # * validator_type [String, nil]
41
41
  # * variable [String]
42
- # * variable_type [String]
42
+ # * variable_type [String, nil]
43
43
  #
44
44
  # @param [Hash] headers additional http headers
45
45
  # @return [Array] First item: parsed data; second item: raw body
@@ -49,16 +49,16 @@ module ForemanApi
49
49
 
50
50
  # @param [Hash] params a hash of params to be passed to the service
51
51
  # @option params [String] id
52
- # @option params [Hash] smart_variable
52
+ # @option params [Hash, nil] smart_variable
53
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]
54
+ # * puppetclass_id [String, nil]
55
+ # * default_value [String, nil]
56
+ # * description [String, nil]
57
+ # * override_value_order [String, nil]
58
+ # * validator_rule [String, nil]
59
+ # * validator_type [String, nil]
60
60
  # * variable [String]
61
- # * variable_type [String]
61
+ # * variable_type [String, nil]
62
62
  #
63
63
  # @param [Hash] headers additional http headers
64
64
  # @return [Array] First item: parsed data; second item: raw body
@@ -27,21 +27,21 @@ module ForemanApi
27
27
  end
28
28
 
29
29
  # @param [Hash] params a hash of params to be passed to the service
30
- # @option params [Hash] subnet
30
+ # @option params [Hash, nil] subnet
31
31
  # allowed keys are:
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
32
+ # * dhcp_id [String, nil] dhcp proxy to use within this subnet
33
+ # * dns_id [String, nil] dns proxy to use within this subnet
34
+ # * domain_ids [Array, nil] domains in which this subnet is part
35
+ # * tftp_id [String, nil] tftp proxy to use within this subnet
36
+ # * dns_primary [String, nil] primary dns for this subnet
37
+ # * dns_secondary [String, nil] secondary dns for this subnet
38
+ # * from [String, nil] starting ip address for ip auto suggestion
39
+ # * gateway [String, nil] primary dns for this subnet
40
40
  # * mask [String] netmask for this subnet
41
41
  # * name [String] subnet name
42
42
  # * network [String] subnet network
43
- # * to [String] ending ip address for ip auto suggestion
44
- # * vlanid [String] vlan id for this subnet
43
+ # * to [String, nil] ending ip address for ip auto suggestion
44
+ # * vlanid [String, nil] 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
@@ -51,7 +51,7 @@ module ForemanApi
51
51
 
52
52
  # @param [Hash] params a hash of params to be passed to the service
53
53
  # @option params [String] id subnet numeric identifier
54
- # @option params [Hash] subnet
54
+ # @option params [Hash, nil] subnet
55
55
  # allowed keys are:
56
56
  # * dhcp_id [String, nil] dhcp proxy to use within this subnet
57
57
  # * dns_id [String, nil] dns proxy to use within this subnet
@@ -27,12 +27,12 @@ module ForemanApi
27
27
  end
28
28
 
29
29
  # @param [Hash] params a hash of params to be passed to the service
30
- # @option params [Hash] user
30
+ # @option params [Hash, nil] user
31
31
  # allowed keys are:
32
32
  # * auth_source_id [Numeric]
33
- # * admin [String] is an admin account?
34
- # * firstname [String]
35
- # * lastname [String]
33
+ # * admin [String, nil] is an admin account?
34
+ # * firstname [String, nil]
35
+ # * lastname [String, nil]
36
36
  # * login [String]
37
37
  # * mail [String]
38
38
  # * password [String]
@@ -45,9 +45,10 @@ module ForemanApi
45
45
 
46
46
  # @param [Hash] params a hash of params to be passed to the service
47
47
  # @option params [String] id
48
- # @option params [Hash] user
48
+ # @option params [Hash, nil] user
49
49
  # allowed keys are:
50
- # * admin [String] is an admin account?
50
+ # * auth_source_id [Numeric]
51
+ # * admin [String, nil] is an admin account?
51
52
  # * firstname [String, nil]
52
53
  # * lastname [String, nil]
53
54
  # * login [String]
@@ -27,7 +27,7 @@ module ForemanApi
27
27
  end
28
28
 
29
29
  # @param [Hash] params a hash of params to be passed to the service
30
- # @option params [Hash] usergroup
30
+ # @option params [Hash, nil] usergroup
31
31
  # allowed keys are:
32
32
  # * name [String]
33
33
  #
@@ -39,7 +39,7 @@ module ForemanApi
39
39
 
40
40
  # @param [Hash] params a hash of params to be passed to the service
41
41
  # @option params [String] id
42
- # @option params [Hash] usergroup
42
+ # @option params [Hash, nil] usergroup
43
43
  # allowed keys are:
44
44
  # * name [String]
45
45
  #
@@ -1,3 +1,3 @@
1
1
  module ForemanApi
2
- VERSION = "0.1.9"
2
+ VERSION = "0.1.10"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Bačovský
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-19 00:00:00.000000000 Z
11
+ date: 2014-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -88,6 +88,7 @@ files:
88
88
  - lib/foreman_api/resources/parameter.rb
89
89
  - lib/foreman_api/resources/environment.rb
90
90
  - lib/foreman_api/resources/user.rb
91
+ - lib/foreman_api/resources/os_default_template.rb
91
92
  - lib/foreman_api/resources/config_template.rb
92
93
  - lib/foreman_api/resources/subnet.rb
93
94
  - lib/foreman_api/resources/interface.rb
@@ -125,6 +126,7 @@ files:
125
126
  - doc/ForemanApi/Resources/Architecture.html
126
127
  - doc/ForemanApi/Resources/Plugin.html
127
128
  - doc/ForemanApi/Resources/Audit.html
129
+ - doc/ForemanApi/Resources/OsDefaultTemplate.html
128
130
  - doc/ForemanApi/Resources/AuthSourceLdap.html
129
131
  - doc/ForemanApi/Resources/Puppetclass.html
130
132
  - doc/ForemanApi/Resources/TemplateKind.html