katello_api 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. data/.gitignore +2 -0
  2. data/Gemfile +2 -0
  3. data/README.rdoc +0 -4
  4. data/doc/KatelloApi/Base.html +831 -0
  5. data/doc/KatelloApi/Generator/Base.html +671 -0
  6. data/doc/KatelloApi/Generator.html +115 -0
  7. data/doc/KatelloApi/Resources/ActivationKey.html +1757 -0
  8. data/doc/KatelloApi/Resources/Architecture.html +1007 -0
  9. data/doc/KatelloApi/Resources/Changeset.html +1413 -0
  10. data/doc/KatelloApi/Resources/ChangesetsContent.html +2674 -0
  11. data/doc/KatelloApi/Resources/ComputeResource.html +1067 -0
  12. data/doc/KatelloApi/Resources/ConfigTemplate.html +1361 -0
  13. data/doc/KatelloApi/Resources/ContentView.html +938 -0
  14. data/doc/KatelloApi/Resources/ContentViewDefinition.html +1629 -0
  15. data/doc/KatelloApi/Resources/Crl.html +367 -0
  16. data/doc/KatelloApi/Resources/Distribution.html +560 -0
  17. data/doc/KatelloApi/Resources/Distributor.html +1892 -0
  18. data/doc/KatelloApi/Resources/Domain.html +1066 -0
  19. data/doc/KatelloApi/Resources/Environment.html +1645 -0
  20. data/doc/KatelloApi/Resources/Erratum.html +632 -0
  21. data/doc/KatelloApi/Resources/GpgKey.html +1220 -0
  22. data/doc/KatelloApi/Resources/HardwareModel.html +1025 -0
  23. data/doc/KatelloApi/Resources/Organization.html +1062 -0
  24. data/doc/KatelloApi/Resources/Package.html +728 -0
  25. data/doc/KatelloApi/Resources/Permission.html +1021 -0
  26. data/doc/KatelloApi/Resources/Ping.html +625 -0
  27. data/doc/KatelloApi/Resources/Product.html +1845 -0
  28. data/doc/KatelloApi/Resources/Provider.html +2237 -0
  29. data/doc/KatelloApi/Resources/Repository.html +1976 -0
  30. data/doc/KatelloApi/Resources/RepositorySet.html +770 -0
  31. data/doc/KatelloApi/Resources/Role.html +1257 -0
  32. data/doc/KatelloApi/Resources/RoleLdapGroup.html +728 -0
  33. data/doc/KatelloApi/Resources/SmartProxy.html +1054 -0
  34. data/doc/KatelloApi/Resources/Statu.html +367 -0
  35. data/doc/KatelloApi/Resources/Subnet.html +1007 -0
  36. data/doc/KatelloApi/Resources/Subscription.html +1064 -0
  37. data/doc/KatelloApi/Resources/Sync.html +826 -0
  38. data/doc/KatelloApi/Resources/SyncPlan.html +1148 -0
  39. data/doc/KatelloApi/Resources/System.html +3576 -0
  40. data/doc/KatelloApi/Resources/SystemGroup.html +2006 -0
  41. data/doc/KatelloApi/Resources/SystemGroupErratum.html +602 -0
  42. data/doc/KatelloApi/Resources/SystemGroupPackage.html +826 -0
  43. data/doc/KatelloApi/Resources/SystemPackage.html +770 -0
  44. data/doc/KatelloApi/Resources/Task.html +546 -0
  45. data/doc/KatelloApi/Resources/Template.html +1573 -0
  46. data/doc/KatelloApi/Resources/TemplatesContent.html +2268 -0
  47. data/doc/KatelloApi/Resources/Uebercert.html +406 -0
  48. data/doc/KatelloApi/Resources/User.html +1846 -0
  49. data/doc/KatelloApi/Resources.html +117 -0
  50. data/doc/KatelloApi.html +365 -0
  51. data/doc/_index.html +539 -0
  52. data/doc/class_list.html +53 -0
  53. data/doc/css/common.css +1 -0
  54. data/doc/css/full_list.css +57 -0
  55. data/doc/css/style.css +338 -0
  56. data/doc/file.README.html +127 -0
  57. data/doc/file_list.html +55 -0
  58. data/doc/frames.html +28 -0
  59. data/doc/index.html +127 -0
  60. data/doc/js/app.js +214 -0
  61. data/doc/js/full_list.js +173 -0
  62. data/doc/js/jquery.js +4 -0
  63. data/doc/method_list.html +2548 -0
  64. data/doc/top-level-namespace.html +112 -0
  65. data/lib/katello_api/base.rb +61 -6
  66. data/lib/katello_api/documentation.json +1 -0
  67. data/lib/katello_api/resources/activation_key.rb +51 -48
  68. data/lib/katello_api/resources/architecture.rb +19 -24
  69. data/lib/katello_api/resources/changeset.rb +39 -37
  70. data/lib/katello_api/resources/changesets_content.rb +64 -57
  71. data/lib/katello_api/resources/compute_resource.rb +37 -42
  72. data/lib/katello_api/resources/config_template.rb +40 -44
  73. data/lib/katello_api/resources/content_view.rb +14 -17
  74. data/lib/katello_api/resources/content_view_definition.rb +34 -42
  75. data/lib/katello_api/resources/crl.rb +3 -4
  76. data/lib/katello_api/resources/distribution.rb +8 -8
  77. data/lib/katello_api/resources/distributor.rb +35 -37
  78. data/lib/katello_api/resources/domain.rb +28 -32
  79. data/lib/katello_api/resources/environment.rb +38 -44
  80. data/lib/katello_api/resources/erratum.rb +9 -8
  81. data/lib/katello_api/resources/gpg_key.rb +28 -33
  82. data/lib/katello_api/resources/hardware_model.rb +25 -30
  83. data/lib/katello_api/resources/organization.rb +24 -26
  84. data/lib/katello_api/resources/package.rb +9 -12
  85. data/lib/katello_api/resources/permission.rb +21 -19
  86. data/lib/katello_api/resources/ping.rb +9 -12
  87. data/lib/katello_api/resources/product.rb +34 -43
  88. data/lib/katello_api/resources/provider.rb +55 -66
  89. data/lib/katello_api/resources/repository.rb +44 -55
  90. data/lib/katello_api/resources/repository_set.rb +9 -12
  91. data/lib/katello_api/resources/role.rb +35 -33
  92. data/lib/katello_api/resources/role_ldap_group.rb +10 -12
  93. data/lib/katello_api/resources/smart_proxy.rb +24 -28
  94. data/lib/katello_api/resources/statu.rb +3 -4
  95. data/lib/katello_api/resources/subnet.rb +19 -24
  96. data/lib/katello_api/resources/subscription.rb +16 -21
  97. data/lib/katello_api/resources/sync.rb +9 -12
  98. data/lib/katello_api/resources/sync_plan.rb +28 -33
  99. data/lib/katello_api/resources/system.rb +81 -90
  100. data/lib/katello_api/resources/system_group.rb +47 -57
  101. data/lib/katello_api/resources/system_group_erratum.rb +6 -8
  102. data/lib/katello_api/resources/system_group_package.rb +15 -18
  103. data/lib/katello_api/resources/system_package.rb +12 -15
  104. data/lib/katello_api/resources/task.rb +6 -8
  105. data/lib/katello_api/resources/template.rb +39 -47
  106. data/lib/katello_api/resources/templates_content.rb +40 -52
  107. data/lib/katello_api/resources/uebercert.rb +4 -4
  108. data/lib/katello_api/resources/user.rb +47 -50
  109. data/lib/katello_api/version.rb +1 -1
  110. data/lib/katello_api.rb +0 -13
  111. metadata +68 -4
@@ -6,8 +6,8 @@ module KatelloApi
6
6
  end
7
7
 
8
8
  # @param [Hash] params a hash of params to be passed to the service
9
- # @option params [String] content_view_id
10
- # @option params [String] environment_id
9
+ # @option params [String] content_view_id
10
+ # @option params [String] environment_id
11
11
  # @option params [Hash, nil] facts key-value hash of system-specific facts
12
12
  # @option params [String, nil] installedProducts list of products installed on the system
13
13
  # @option params [String] location physical of the system
@@ -16,25 +16,24 @@ module KatelloApi
16
16
  # @option params [String] type type of the system, it should always be ‘system’
17
17
  #
18
18
  # @param [Hash] headers additional http headers
19
- def create(params = { }, headers = { })
20
- check_params params, :allowed => true, :method => __method__
21
- url, params = fill_params_in_url "/api/environments/:environment_id/consumers", params
22
- call(:"post", url, params, headers)
19
+ # @return [Array] First item: parsed data; second item: raw body
20
+ def create(params = {}, headers = {})
21
+ perform_call(__method__, params, headers)
23
22
  end
24
23
 
25
24
  # @param [Hash] params a hash of params to be passed to the service
26
25
  #
27
26
  # @param [Hash] headers additional http headers
28
- def hypervisors_update(params = { }, headers = { })
29
- check_params params, :allowed => false, :method => __method__
30
- url, params = fill_params_in_url "/api/hypervisors", params
31
- call(:"post", url, params, headers)
27
+ # @return [Array] First item: parsed data; second item: raw body
28
+ def hypervisors_update(params = {}, headers = {})
29
+ perform_call(__method__, params, headers)
32
30
  end
33
31
 
34
32
  # @param [Hash] params a hash of params to be passed to the service
35
- # @option params [String] activation_keys
36
- # @option params [String] content_view_id
37
- # @option params [String] environment_id
33
+ # @option params [String] content_view_id
34
+ # @option params [String] environment_id
35
+ # @option params [Object] organization_id Part of +/api/organizations/:organization_id/systems+ path
36
+ # @option params [String] activation_keys
38
37
  # @option params [Hash, nil] facts key-value hash of system-specific facts
39
38
  # @option params [String, nil] installedProducts list of products installed on the system
40
39
  # @option params [String] location physical of the system
@@ -43,25 +42,24 @@ module KatelloApi
43
42
  # @option params [String] type type of the system, it should always be ‘system’
44
43
  #
45
44
  # @param [Hash] headers additional http headers
46
- def activate(params = { }, headers = { })
47
- check_params params, :allowed => true, :method => __method__
48
- url, params = fill_params_in_url "/api/consumers", params
49
- call(:"post", url, params, headers)
45
+ # @return [Array] First item: parsed data; second item: raw body
46
+ def activate(params = {}, headers = {})
47
+ perform_call(__method__, params, headers)
50
48
  end
51
49
 
52
50
  # @param [Hash] params a hash of params to be passed to the service
53
51
  # @option params [String] id uuid of the consumer
54
52
  #
55
53
  # @param [Hash] headers additional http headers
56
- def regenerate_identity_certificates(params = { }, headers = { })
57
- check_params params, :allowed => true, :method => __method__
58
- url, params = fill_params_in_url "/api/consumers/:id", params
59
- call(:"post", url, params, headers)
54
+ # @return [Array] First item: parsed data; second item: raw body
55
+ def regenerate_identity_certificates(params = {}, headers = {})
56
+ perform_call(__method__, params, headers)
60
57
  end
61
58
 
62
59
  # @param [Hash] params a hash of params to be passed to the service
63
- # @option params [String] content_view_id
64
- # @option params [String] environment_id
60
+ # @option params [Object] id Part of +/api/consumers/:id+ path
61
+ # @option params [String] content_view_id
62
+ # @option params [String] environment_id
65
63
  # @option params [Hash, nil] facts key-value hash of system-specific facts
66
64
  # @option params [String, nil] installedProducts list of products installed on the system
67
65
  # @option params [String] location physical of the system
@@ -70,155 +68,148 @@ module KatelloApi
70
68
  # @option params [String] type type of the system, it should always be ‘system’
71
69
  #
72
70
  # @param [Hash] headers additional http headers
73
- def update(params = { }, headers = { })
74
- check_params params, :allowed => true, :method => __method__
75
- url, params = fill_params_in_url "/api/consumers/:id", params
76
- call(:"put", url, params, headers)
71
+ # @return [Array] First item: parsed data; second item: raw body
72
+ def update(params = {}, headers = {})
73
+ perform_call(__method__, params, headers)
77
74
  end
78
75
 
79
76
  # @param [Hash] params a hash of params to be passed to the service
80
- # @option params [String] name filter systems by name
77
+ # @option params [Object] environment_id Part of +/api/environments/:environment_id/consumers+ path
78
+ # @option params [Object] organization_id Part of +/api/organizations/:organization_id/systems+ path
81
79
  # @option params [String] pool_id filter systems by subscribed pool
80
+ # @option params [String] name filter systems by name
82
81
  # @option params [String] search filter systems by advanced search query
83
82
  #
84
83
  # @param [Hash] headers additional http headers
85
- def index(params = { }, headers = { })
86
- check_params params, :allowed => true, :method => __method__
87
- url, params = fill_params_in_url "/api/environments/:environment_id/consumers", params
88
- call(:"get", url, params, headers)
84
+ # @return [Array] First item: parsed data; second item: raw body
85
+ def index(params = {}, headers = {})
86
+ perform_call(__method__, params, headers)
89
87
  end
90
88
 
91
89
  # @param [Hash] params a hash of params to be passed to the service
92
90
  # @option params [String] id uuid of the system
93
91
  #
94
92
  # @param [Hash] headers additional http headers
95
- def show(params = { }, headers = { })
96
- check_params params, :allowed => true, :method => __method__
97
- url, params = fill_params_in_url "/api/consumers/:id", params
98
- call(:"get", url, params, headers)
93
+ # @return [Array] First item: parsed data; second item: raw body
94
+ def show(params = {}, headers = {})
95
+ perform_call(__method__, params, headers)
99
96
  end
100
97
 
101
98
  # @param [Hash] params a hash of params to be passed to the service
102
99
  # @option params [String] id uuid of the system
103
100
  #
104
101
  # @param [Hash] headers additional http headers
105
- def destroy(params = { }, headers = { })
106
- check_params params, :allowed => true, :method => __method__
107
- url, params = fill_params_in_url "/api/consumers/:id", params
108
- call(:"delete", url, params, headers)
102
+ # @return [Array] First item: parsed data; second item: raw body
103
+ def destroy(params = {}, headers = {})
104
+ perform_call(__method__, params, headers)
109
105
  end
110
106
 
111
107
  # @param [Hash] params a hash of params to be passed to the service
112
108
  # @option params [String] id uuid of the system
113
109
  #
114
110
  # @param [Hash] headers additional http headers
115
- def pools(params = { }, headers = { })
116
- check_params params, :allowed => true, :method => __method__
117
- url, params = fill_params_in_url "/api/systems/:id/pools", params
118
- call(:"get", url, params, headers)
111
+ # @return [Array] First item: parsed data; second item: raw body
112
+ def pools(params = {}, headers = {})
113
+ perform_call(__method__, params, headers)
119
114
  end
120
115
 
121
116
  # @param [Hash] params a hash of params to be passed to the service
122
117
  # @option params [String] id uuid of the system
123
118
  #
124
119
  # @param [Hash] headers additional http headers
125
- def releases(params = { }, headers = { })
126
- check_params params, :allowed => true, :method => __method__
127
- url, params = fill_params_in_url "/api/systems/:id/releases", params
128
- call(:"get", url, params, headers)
120
+ # @return [Array] First item: parsed data; second item: raw body
121
+ def releases(params = {}, headers = {})
122
+ perform_call(__method__, params, headers)
129
123
  end
130
124
 
131
125
  # @param [Hash] params a hash of params to be passed to the service
132
126
  # @option params [String] id uuid of the system
133
127
  #
134
128
  # @param [Hash] headers additional http headers
135
- def package_profile(params = { }, headers = { })
136
- check_params params, :allowed => true, :method => __method__
137
- url, params = fill_params_in_url "/api/systems/:id/packages", params
138
- call(:"get", url, params, headers)
129
+ # @return [Array] First item: parsed data; second item: raw body
130
+ def package_profile(params = {}, headers = {})
131
+ perform_call(__method__, params, headers)
139
132
  end
140
133
 
141
134
  # @param [Hash] params a hash of params to be passed to the service
142
135
  # @option params [String] id uuid of the system
143
136
  #
144
137
  # @param [Hash] headers additional http headers
145
- def errata(params = { }, headers = { })
146
- check_params params, :allowed => true, :method => __method__
147
- url, params = fill_params_in_url "/api/systems/:id/errata", params
148
- call(:"get", url, params, headers)
138
+ # @return [Array] First item: parsed data; second item: raw body
139
+ def errata(params = {}, headers = {})
140
+ perform_call(__method__, params, headers)
149
141
  end
150
142
 
151
143
  # @param [Hash] params a hash of params to be passed to the service
152
144
  # @option params [String] id uuid of the system
153
145
  #
154
146
  # @param [Hash] headers additional http headers
155
- def upload_package_profile(params = { }, headers = { })
156
- check_params params, :allowed => true, :method => __method__
157
- url, params = fill_params_in_url "/api/consumers/:id/packages", params
158
- call(:"put", url, params, headers)
147
+ # @return [Array] First item: parsed data; second item: raw body
148
+ def upload_package_profile(params = {}, headers = {})
149
+ perform_call(__method__, params, headers)
159
150
  end
160
151
 
161
152
  # @param [Hash] params a hash of params to be passed to the service
153
+ # @option params [Object] environment_id Part of +/api/environments/:environment_id/systems/report+ path
154
+ # @option params [Object] organization_id Part of +/api/organizations/:organization_id/systems/report+ path
162
155
  #
163
156
  # @param [Hash] headers additional http headers
164
- def report(params = { }, headers = { })
165
- check_params params, :allowed => false, :method => __method__
166
- url, params = fill_params_in_url "/api/environments/:environment_id/systems/report", params
167
- call(:"get", url, params, headers)
157
+ # @return [Array] First item: parsed data; second item: raw body
158
+ def report(params = {}, headers = {})
159
+ perform_call(__method__, params, headers)
168
160
  end
169
161
 
170
162
  # @param [Hash] params a hash of params to be passed to the service
163
+ # @option params [Object] organization_id Part of +/api/organizations/:organization_id/systems/tasks+ path
171
164
  # @option params [String] system_name name of the system
172
165
  # @option params [String] system_uuid uuid of the system
173
166
  #
174
167
  # @param [Hash] headers additional http headers
175
- def tasks(params = { }, headers = { })
176
- check_params params, :allowed => true, :method => __method__
177
- url, params = fill_params_in_url "/api/organizations/:organization_id/systems/tasks", params
178
- call(:"get", url, params, headers)
168
+ # @return [Array] First item: parsed data; second item: raw body
169
+ def tasks(params = {}, headers = {})
170
+ perform_call(__method__, params, headers)
179
171
  end
180
172
 
181
173
  # @param [Hash] params a hash of params to be passed to the service
182
174
  # @option params [String] id uuid of the task
183
175
  #
184
176
  # @param [Hash] headers additional http headers
185
- def task_show(params = { }, headers = { })
186
- check_params params, :allowed => true, :method => __method__
187
- url, params = fill_params_in_url "/api/systems/tasks/:id", params
188
- call(:"get", url, params, headers)
177
+ # @return [Array] First item: parsed data; second item: raw body
178
+ def task_show(params = {}, headers = {})
179
+ perform_call(__method__, params, headers)
189
180
  end
190
181
 
191
182
  # @param [Hash] params a hash of params to be passed to the service
183
+ # @option params [Object] id Part of +/api/systems/:id/enabled_repos+ path
192
184
  #
193
185
  # @param [Hash] headers additional http headers
194
- def enabled_repos(params = { }, headers = { })
195
- check_params params, :allowed => false, :method => __method__
196
- url, params = fill_params_in_url "/api/systems/:id/enabled_repos", params
197
- call(:"put", url, params, headers)
186
+ # @return [Array] First item: parsed data; second item: raw body
187
+ def enabled_repos(params = {}, headers = {})
188
+ perform_call(__method__, params, headers)
198
189
  end
199
190
 
200
191
  # @param [Hash] params a hash of params to be passed to the service
201
- # @option params [Hash] system
202
- # allowed keys are:
203
- # * system_group_ids [String] list of group ids to add the system to ,
192
+ # @option params [Object] id Part of +/api/systems/:id/system_groups+ path
193
+ # @option params [Hash] system
194
+ # allowed keys are:
195
+ # * system_group_ids [String] list of group ids to add the system to
204
196
  #
205
197
  # @param [Hash] headers additional http headers
206
- def add_system_groups(params = { }, headers = { })
207
- check_params params, :allowed => true, :method => __method__
208
- url, params = fill_params_in_url "/api/systems/:id/system_groups", params
209
- call(:"post", url, params, headers)
198
+ # @return [Array] First item: parsed data; second item: raw body
199
+ def add_system_groups(params = {}, headers = {})
200
+ perform_call(__method__, params, headers)
210
201
  end
211
202
 
212
203
  # @param [Hash] params a hash of params to be passed to the service
213
- # @option params [Hash] system
214
- # allowed keys are:
215
- # * system_group_ids [String] list of group ids to add the system to ,
204
+ # @option params [Object] id Part of +/api/systems/:id/system_groups+ path
205
+ # @option params [Hash] system
206
+ # allowed keys are:
207
+ # * system_group_ids [String] list of group ids to add the system to
216
208
  #
217
209
  # @param [Hash] headers additional http headers
218
- def remove_system_groups(params = { }, headers = { })
219
- check_params params, :allowed => true, :method => __method__
220
- url, params = fill_params_in_url "/api/systems/:id/system_groups", params
221
- call(:"delete", url, params, headers)
210
+ # @return [Array] First item: parsed data; second item: raw body
211
+ def remove_system_groups(params = {}, headers = {})
212
+ perform_call(__method__, params, headers)
222
213
  end
223
214
 
224
215
  end
@@ -6,14 +6,13 @@ module KatelloApi
6
6
  end
7
7
 
8
8
  # @param [Hash] params a hash of params to be passed to the service
9
- # @option params [String] name system group name to filter by
10
9
  # @option params [String] organization_id organization identifier
10
+ # @option params [String] name system group name to filter by
11
11
  #
12
12
  # @param [Hash] headers additional http headers
13
- def index(params = { }, headers = { })
14
- check_params params, :allowed => true, :method => __method__
15
- url, params = fill_params_in_url "/api/organizations/:organization_id/system_groups", params
16
- call(:"get", url, params, headers)
13
+ # @return [Array] First item: parsed data; second item: raw body
14
+ def index(params = {}, headers = {})
15
+ perform_call(__method__, params, headers)
17
16
  end
18
17
 
19
18
  # @param [Hash] params a hash of params to be passed to the service
@@ -21,26 +20,24 @@ module KatelloApi
21
20
  # @option params [String] organization_id organization identifier
22
21
  #
23
22
  # @param [Hash] headers additional http headers
24
- def show(params = { }, headers = { })
25
- check_params params, :allowed => true, :method => __method__
26
- url, params = fill_params_in_url "/api/organizations/:organization_id/system_groups/:id", params
27
- call(:"get", url, params, headers)
23
+ # @return [Array] First item: parsed data; second item: raw body
24
+ def show(params = {}, headers = {})
25
+ perform_call(__method__, params, headers)
28
26
  end
29
27
 
30
28
  # @param [Hash] params a hash of params to be passed to the service
31
29
  # @option params [String] id id of the system group
32
30
  # @option params [String] organization_id organization identifier
33
- # @option params [Hash] system_group
34
- # allowed keys are:
35
- # * description [String, nil],
36
- # * max_systems [Numeric, nil] maximum number of systems in the group ,
37
- # * name [String] system group name ,
31
+ # @option params [Hash] system_group
32
+ # allowed keys are:
33
+ # * description [String, nil]
34
+ # * max_systems [Numeric, nil] maximum number of systems in the group
35
+ # * name [String] system group name
38
36
  #
39
37
  # @param [Hash] headers additional http headers
40
- def update(params = { }, headers = { })
41
- check_params params, :allowed => true, :method => __method__
42
- url, params = fill_params_in_url "/api/organizations/:organization_id/system_groups/:id", params
43
- call(:"put", url, params, headers)
38
+ # @return [Array] First item: parsed data; second item: raw body
39
+ def update(params = {}, headers = {})
40
+ perform_call(__method__, params, headers)
44
41
  end
45
42
 
46
43
  # @param [Hash] params a hash of params to be passed to the service
@@ -48,38 +45,35 @@ module KatelloApi
48
45
  # @option params [String] organization_id organization identifier
49
46
  #
50
47
  # @param [Hash] headers additional http headers
51
- def systems(params = { }, headers = { })
52
- check_params params, :allowed => true, :method => __method__
53
- url, params = fill_params_in_url "/api/organizations/:organization_id/system_groups/:id/systems", params
54
- call(:"get", url, params, headers)
48
+ # @return [Array] First item: parsed data; second item: raw body
49
+ def systems(params = {}, headers = {})
50
+ perform_call(__method__, params, headers)
55
51
  end
56
52
 
57
53
  # @param [Hash] params a hash of params to be passed to the service
58
54
  # @option params [String] id id of the system group
59
55
  # @option params [String] organization_id organization identifier
60
- # @option params [Hash] system_group
61
- # allowed keys are:
62
- # * system_ids [String] array of system ids ,
56
+ # @option params [Hash] system_group
57
+ # allowed keys are:
58
+ # * system_ids [String] array of system ids
63
59
  #
64
60
  # @param [Hash] headers additional http headers
65
- def add_systems(params = { }, headers = { })
66
- check_params params, :allowed => true, :method => __method__
67
- url, params = fill_params_in_url "/api/organizations/:organization_id/system_groups/:id/add_systems", params
68
- call(:"post", url, params, headers)
61
+ # @return [Array] First item: parsed data; second item: raw body
62
+ def add_systems(params = {}, headers = {})
63
+ perform_call(__method__, params, headers)
69
64
  end
70
65
 
71
66
  # @param [Hash] params a hash of params to be passed to the service
72
67
  # @option params [String] id id of the system group
73
68
  # @option params [String] organization_id organization identifier
74
- # @option params [Hash] system_group
75
- # allowed keys are:
76
- # * system_ids [String] array of system ids ,
69
+ # @option params [Hash] system_group
70
+ # allowed keys are:
71
+ # * system_ids [String] array of system ids
77
72
  #
78
73
  # @param [Hash] headers additional http headers
79
- def remove_systems(params = { }, headers = { })
80
- check_params params, :allowed => true, :method => __method__
81
- url, params = fill_params_in_url "/api/organizations/:organization_id/system_groups/:id/remove_systems", params
82
- call(:"post", url, params, headers)
74
+ # @return [Array] First item: parsed data; second item: raw body
75
+ def remove_systems(params = {}, headers = {})
76
+ perform_call(__method__, params, headers)
83
77
  end
84
78
 
85
79
  # @param [Hash] params a hash of params to be passed to the service
@@ -87,10 +81,9 @@ module KatelloApi
87
81
  # @option params [String] organization_id organization identifier
88
82
  #
89
83
  # @param [Hash] headers additional http headers
90
- def history(params = { }, headers = { })
91
- check_params params, :allowed => true, :method => __method__
92
- url, params = fill_params_in_url "/api/organizations/:organization_id/system_groups/:id/history", params
93
- call(:"get", url, params, headers)
84
+ # @return [Array] First item: parsed data; second item: raw body
85
+ def history(params = {}, headers = {})
86
+ perform_call(__method__, params, headers)
94
87
  end
95
88
 
96
89
  # @param [Hash] params a hash of params to be passed to the service
@@ -99,25 +92,23 @@ module KatelloApi
99
92
  # @option params [String] organization_id organization identifier
100
93
  #
101
94
  # @param [Hash] headers additional http headers
102
- def history_show(params = { }, headers = { })
103
- check_params params, :allowed => true, :method => __method__
104
- url, params = fill_params_in_url "/api/organizations/:organization_id/system_groups/:id/history", params
105
- call(:"get", url, params, headers)
95
+ # @return [Array] First item: parsed data; second item: raw body
96
+ def history_show(params = {}, headers = {})
97
+ perform_call(__method__, params, headers)
106
98
  end
107
99
 
108
100
  # @param [Hash] params a hash of params to be passed to the service
109
101
  # @option params [String] organization_id organization identifier
110
- # @option params [Hash] system_group
111
- # allowed keys are:
112
- # * description [String, nil],
113
- # * max_systems [Numeric, nil] maximum number of systems in the group ,
114
- # * name [String] system group name ,
102
+ # @option params [Hash] system_group
103
+ # allowed keys are:
104
+ # * description [String, nil]
105
+ # * max_systems [Numeric, nil] maximum number of systems in the group
106
+ # * name [String] system group name
115
107
  #
116
108
  # @param [Hash] headers additional http headers
117
- def create(params = { }, headers = { })
118
- check_params params, :allowed => true, :method => __method__
119
- url, params = fill_params_in_url "/api/organizations/:organization_id/system_groups", params
120
- call(:"post", url, params, headers)
109
+ # @return [Array] First item: parsed data; second item: raw body
110
+ def create(params = {}, headers = {})
111
+ perform_call(__method__, params, headers)
121
112
  end
122
113
 
123
114
  # @param [Hash] params a hash of params to be passed to the service
@@ -125,10 +116,9 @@ module KatelloApi
125
116
  # @option params [String] organization_id organization identifier
126
117
  #
127
118
  # @param [Hash] headers additional http headers
128
- def destroy(params = { }, headers = { })
129
- check_params params, :allowed => true, :method => __method__
130
- url, params = fill_params_in_url "/api/organizations/:organization_id/system_groups/:id", params
131
- call(:"delete", url, params, headers)
119
+ # @return [Array] First item: parsed data; second item: raw body
120
+ def destroy(params = {}, headers = {})
121
+ perform_call(__method__, params, headers)
132
122
  end
133
123
 
134
124
  end
@@ -11,10 +11,9 @@ module KatelloApi
11
11
  # @option params [String] type filter errata by type
12
12
  #
13
13
  # @param [Hash] headers additional http headers
14
- def index(params = { }, headers = { })
15
- check_params params, :allowed => true, :method => __method__
16
- url, params = fill_params_in_url "/api/organizations/:organization_id/system_groups/:system_group_id/errata", params
17
- call(:"get", url, params, headers)
14
+ # @return [Array] First item: parsed data; second item: raw body
15
+ def index(params = {}, headers = {})
16
+ perform_call(__method__, params, headers)
18
17
  end
19
18
 
20
19
  # @param [Hash] params a hash of params to be passed to the service
@@ -23,10 +22,9 @@ module KatelloApi
23
22
  # @option params [String] system_group_id system_group identifier
24
23
  #
25
24
  # @param [Hash] headers additional http headers
26
- def create(params = { }, headers = { })
27
- check_params params, :allowed => true, :method => __method__
28
- url, params = fill_params_in_url "/api/organizations/:organization_id/system_groups/:system_group_id/errata", params
29
- call(:"post", url, params, headers)
25
+ # @return [Array] First item: parsed data; second item: raw body
26
+ def create(params = {}, headers = {})
27
+ perform_call(__method__, params, headers)
30
28
  end
31
29
 
32
30
  end
@@ -6,42 +6,39 @@ module KatelloApi
6
6
  end
7
7
 
8
8
  # @param [Hash] params a hash of params to be passed to the service
9
- # @option params [String] groups list of package group names
10
9
  # @option params [String] organization_id oranization identifier
11
- # @option params [String] packages list of package names
12
10
  # @option params [String] system_group_id system_group identifier
11
+ # @option params [String] groups list of package group names
12
+ # @option params [String] packages list of package names
13
13
  #
14
14
  # @param [Hash] headers additional http headers
15
- def create(params = { }, headers = { })
16
- check_params params, :allowed => true, :method => __method__
17
- url, params = fill_params_in_url "/api/organizations/:organization_id/system_groups/:system_group_id/packages", params
18
- call(:"post", url, params, headers)
15
+ # @return [Array] First item: parsed data; second item: raw body
16
+ def create(params = {}, headers = {})
17
+ perform_call(__method__, params, headers)
19
18
  end
20
19
 
21
20
  # @param [Hash] params a hash of params to be passed to the service
22
- # @option params [String] groups list of package group names
23
21
  # @option params [String] organization_id oranization identifier
24
- # @option params [String] packages list of package names
25
22
  # @option params [String] system_group_id system_group identifier
23
+ # @option params [String] groups list of package group names
24
+ # @option params [String] packages list of package names
26
25
  #
27
26
  # @param [Hash] headers additional http headers
28
- def update(params = { }, headers = { })
29
- check_params params, :allowed => true, :method => __method__
30
- url, params = fill_params_in_url "/api/organizations/:organization_id/system_groups/:system_group_id/packages", params
31
- call(:"put", url, params, headers)
27
+ # @return [Array] First item: parsed data; second item: raw body
28
+ def update(params = {}, headers = {})
29
+ perform_call(__method__, params, headers)
32
30
  end
33
31
 
34
32
  # @param [Hash] params a hash of params to be passed to the service
35
- # @option params [String] groups list of package group names
36
33
  # @option params [String] organization_id oranization identifier
37
- # @option params [String] packages list of package names
38
34
  # @option params [String] system_group_id system_group identifier
35
+ # @option params [String] groups list of package group names
36
+ # @option params [String] packages list of package names
39
37
  #
40
38
  # @param [Hash] headers additional http headers
41
- def destroy(params = { }, headers = { })
42
- check_params params, :allowed => true, :method => __method__
43
- url, params = fill_params_in_url "/api/organizations/:organization_id/system_groups/:system_group_id/packages", params
44
- call(:"delete", url, params, headers)
39
+ # @return [Array] First item: parsed data; second item: raw body
40
+ def destroy(params = {}, headers = {})
41
+ perform_call(__method__, params, headers)
45
42
  end
46
43
 
47
44
  end
@@ -6,38 +6,35 @@ module KatelloApi
6
6
  end
7
7
 
8
8
  # @param [Hash] params a hash of params to be passed to the service
9
+ # @option params [String] system_id system identifier
9
10
  # @option params [String] groups list of package group names
10
11
  # @option params [String] packages list of package names
11
- # @option params [String] system_id system identifier
12
12
  #
13
13
  # @param [Hash] headers additional http headers
14
- def create(params = { }, headers = { })
15
- check_params params, :allowed => true, :method => __method__
16
- url, params = fill_params_in_url "/api/systems/:system_id/packages", params
17
- call(:"post", url, params, headers)
14
+ # @return [Array] First item: parsed data; second item: raw body
15
+ def create(params = {}, headers = {})
16
+ perform_call(__method__, params, headers)
18
17
  end
19
18
 
20
19
  # @param [Hash] params a hash of params to be passed to the service
21
- # @option params [String] packages list of packages names
22
20
  # @option params [String] system_id system identifier
21
+ # @option params [String] packages list of packages names
23
22
  #
24
23
  # @param [Hash] headers additional http headers
25
- def update(params = { }, headers = { })
26
- check_params params, :allowed => true, :method => __method__
27
- url, params = fill_params_in_url "/api/systems/:system_id/packages", params
28
- call(:"put", url, params, headers)
24
+ # @return [Array] First item: parsed data; second item: raw body
25
+ def update(params = {}, headers = {})
26
+ perform_call(__method__, params, headers)
29
27
  end
30
28
 
31
29
  # @param [Hash] params a hash of params to be passed to the service
30
+ # @option params [String] system_id system identifier
32
31
  # @option params [String] groups list of package group names
33
32
  # @option params [String] packages list of package names
34
- # @option params [String] system_id system identifier
35
33
  #
36
34
  # @param [Hash] headers additional http headers
37
- def destroy(params = { }, headers = { })
38
- check_params params, :allowed => true, :method => __method__
39
- url, params = fill_params_in_url "/api/systems/:system_id/packages", params
40
- call(:"delete", url, params, headers)
35
+ # @return [Array] First item: parsed data; second item: raw body
36
+ def destroy(params = {}, headers = {})
37
+ perform_call(__method__, params, headers)
41
38
  end
42
39
 
43
40
  end