katello_api 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.gitignore +3 -0
- data/Gemfile +1 -1
- data/README.rdoc +22 -13
- data/Rakefile +0 -1
- data/doc/KatelloApi/Base.html +102 -116
- data/doc/KatelloApi/Generator/Base.html +65 -80
- data/doc/KatelloApi/Generator.html +5 -5
- data/doc/KatelloApi/Resources/About.html +360 -0
- data/doc/KatelloApi/Resources/ActivationKey.html +190 -304
- data/doc/KatelloApi/Resources/Architecture.html +89 -129
- data/doc/KatelloApi/Resources/Changeset.html +156 -399
- data/doc/KatelloApi/Resources/ChangesetsContent.html +97 -2215
- data/doc/KatelloApi/Resources/ComputeResource.html +131 -189
- data/doc/KatelloApi/Resources/ConfigTemplate.html +143 -208
- data/doc/KatelloApi/Resources/ContentUpload.html +1046 -0
- data/doc/KatelloApi/Resources/ContentView.html +229 -117
- data/doc/KatelloApi/Resources/ContentViewDefinition.html +1190 -323
- data/doc/KatelloApi/Resources/Crl.html +21 -28
- data/doc/KatelloApi/Resources/CustomInfo.html +1110 -0
- data/doc/KatelloApi/Resources/Distribution.html +40 -56
- data/doc/KatelloApi/Resources/Distributor.html +406 -469
- data/doc/KatelloApi/Resources/Domain.html +107 -155
- data/doc/KatelloApi/Resources/Environment.html +211 -539
- data/doc/KatelloApi/Resources/Erratum.html +56 -90
- data/doc/KatelloApi/Resources/Filter.html +1533 -0
- data/doc/KatelloApi/Resources/FilterRule.html +591 -0
- data/doc/KatelloApi/Resources/GpgKey.html +230 -196
- data/doc/KatelloApi/Resources/HardwareModel.html +101 -147
- data/doc/KatelloApi/Resources/Organization.html +647 -158
- data/doc/KatelloApi/Resources/OrganizationDefaultInfo.html +803 -0
- data/doc/KatelloApi/Resources/Package.html +57 -81
- data/doc/KatelloApi/Resources/Permission.html +109 -197
- data/doc/KatelloApi/Resources/Ping.html +37 -179
- data/doc/KatelloApi/Resources/Product.html +289 -462
- data/doc/KatelloApi/Resources/Provider.html +397 -424
- data/doc/KatelloApi/Resources/PuppetModule.html +704 -0
- data/doc/KatelloApi/Resources/Repository.html +302 -958
- data/doc/KatelloApi/Resources/RepositorySet.html +64 -104
- data/doc/KatelloApi/Resources/Role.html +131 -250
- data/doc/KatelloApi/Resources/RoleLdapGroup.html +74 -95
- data/doc/KatelloApi/Resources/SmartProxy.html +97 -143
- data/doc/KatelloApi/Resources/Statu.html +21 -28
- data/doc/KatelloApi/Resources/Status.html +360 -0
- data/doc/KatelloApi/Resources/Subnet.html +89 -129
- data/doc/KatelloApi/Resources/Subscription.html +486 -162
- data/doc/KatelloApi/Resources/Sync.html +85 -155
- data/doc/KatelloApi/Resources/SyncPlan.html +127 -220
- data/doc/KatelloApi/Resources/System.html +913 -925
- data/doc/KatelloApi/Resources/SystemErratum.html +557 -0
- data/doc/KatelloApi/Resources/SystemGroup.html +634 -408
- data/doc/KatelloApi/Resources/SystemGroupErratum.html +47 -66
- data/doc/KatelloApi/Resources/SystemGroupPackage.html +77 -108
- data/doc/KatelloApi/Resources/SystemPackage.html +734 -108
- data/doc/KatelloApi/Resources/SystemsBulkAction.html +1706 -0
- data/doc/KatelloApi/Resources/Task.html +38 -53
- data/doc/KatelloApi/Resources/Template.html +159 -233
- data/doc/KatelloApi/Resources/TemplatesContent.html +214 -312
- data/doc/KatelloApi/Resources/Uebercert.html +25 -34
- data/doc/KatelloApi/Resources/User.html +204 -433
- data/doc/KatelloApi/Resources.html +7 -7
- data/doc/KatelloApi.html +21 -26
- data/doc/_index.html +87 -9
- data/doc/class_list.html +3 -2
- data/doc/css/style.css +1 -1
- data/doc/file.README.html +60 -54
- data/doc/file_list.html +2 -1
- data/doc/frames.html +5 -7
- data/doc/index.html +60 -54
- data/doc/js/app.js +7 -2
- data/doc/js/full_list.js +7 -2
- data/doc/method_list.html +854 -1225
- data/doc/top-level-namespace.html +5 -5
- data/katello_api.gemspec +7 -5
- data/lib/katello_api/base.rb +9 -8
- data/lib/katello_api/documentation.json +1 -1
- data/lib/katello_api/resources/about.rb +18 -0
- data/lib/katello_api/resources/activation_key.rb +11 -13
- data/lib/katello_api/resources/changeset.rb +4 -15
- data/lib/katello_api/resources/changesets_content.rb +6 -130
- data/lib/katello_api/resources/content_upload.rb +61 -0
- data/lib/katello_api/resources/content_view.rb +10 -1
- data/lib/katello_api/resources/content_view_definition.rb +65 -3
- data/lib/katello_api/resources/custom_info.rb +70 -0
- data/lib/katello_api/resources/distributor.rb +33 -18
- data/lib/katello_api/resources/environment.rb +20 -41
- data/lib/katello_api/resources/erratum.rb +3 -4
- data/lib/katello_api/resources/filter.rb +93 -0
- data/lib/katello_api/resources/filter_rule.rb +36 -0
- data/lib/katello_api/resources/gpg_key.rb +18 -14
- data/lib/katello_api/resources/organization.rb +43 -8
- data/lib/katello_api/resources/organization_default_info.rb +48 -0
- data/lib/katello_api/resources/permission.rb +10 -7
- data/lib/katello_api/resources/ping.rb +1 -9
- data/lib/katello_api/resources/product.rb +26 -30
- data/lib/katello_api/resources/provider.rb +21 -20
- data/lib/katello_api/resources/puppet_module.rb +39 -0
- data/lib/katello_api/resources/repository.rb +28 -62
- data/lib/katello_api/resources/repository_set.rb +1 -2
- data/lib/katello_api/resources/role.rb +0 -5
- data/lib/katello_api/resources/role_ldap_group.rb +3 -1
- data/lib/katello_api/resources/status.rb +18 -0
- data/lib/katello_api/resources/subscription.rb +33 -7
- data/lib/katello_api/resources/sync.rb +9 -12
- data/lib/katello_api/resources/sync_plan.rb +2 -5
- data/lib/katello_api/resources/system.rb +95 -73
- data/lib/katello_api/resources/system_erratum.rb +30 -0
- data/lib/katello_api/resources/system_group.rb +40 -27
- data/lib/katello_api/resources/system_group_erratum.rb +1 -1
- data/lib/katello_api/resources/system_group_package.rb +6 -6
- data/lib/katello_api/resources/system_package.rb +46 -5
- data/lib/katello_api/resources/systems_bulk_action.rb +140 -0
- data/lib/katello_api/resources/user.rb +14 -18
- data/lib/katello_api/version.rb +1 -1
- metadata +26 -14
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
N2E4ZTEwZmM4M2Q2NzEyZTBhZDlhNTg3NmU5Nzc1YWU4ZDljOTdlZA==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
NTg3N2YxNjVlYTMxZjAyMDYyYWI2MGQ2N2I0N2E4ZDhmMTYxNzI4OA==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
NmQ5YmZmYTE1NGU4OGU4ODBjMDE4NzEyZjZmNTFlYWJjNzc2NjY2MjBkNDJh
|
10
|
+
ODRlYWFmNDQwYTk1ZjlmODdkN2M4MzhjNGU4ZmZkM2UwODhmMTZmMjQ0NzIy
|
11
|
+
NTM1NGJjMzk1NDFiNzlkODNjMDI4Y2ZkZWI4MmMyMjNlYzdhYjQ=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
ZWNiNTExNDRhZmQxMzVjZjI2MjQyZWU3ODMyZjY3MDM4NjY1ZGRjOTYwNDQ3
|
14
|
+
ZGMzNTBjMDk5NWE2MjMwNzBkOWJiMDgyZjYyMjRkZjFjMzhlMTA2MTdmMzhi
|
15
|
+
ZWIzOTQxNDVkZWE4NTc1NWI2OGRkNzQyNTk2NDY5Yzc2MDBiMTU=
|
data/.gitignore
CHANGED
data/Gemfile
CHANGED
data/README.rdoc
CHANGED
@@ -3,11 +3,11 @@
|
|
3
3
|
== Summary
|
4
4
|
|
5
5
|
require 'katello_api'
|
6
|
-
|
7
|
-
|
8
|
-
|
6
|
+
envs = KatelloApi::Resources::Environment.new(:base_url => 'https://localhost/katello',
|
7
|
+
:username => 'admin',
|
8
|
+
:password => 'admin')
|
9
9
|
|
10
|
-
data, raw_response
|
10
|
+
data, raw_response = envs.index(:organization_id => "ACME_Corporation")
|
11
11
|
pp data # parsed data of the response
|
12
12
|
pp raw_response # raw string of the response body
|
13
13
|
|
@@ -24,25 +24,34 @@ are coming soon.
|
|
24
24
|
=== Regenerating bindings
|
25
25
|
|
26
26
|
The code for generating the bindings is a part of this repo. The
|
27
|
-
generator needs a running
|
27
|
+
generator needs a running Foreman instance with Katello as and engine
|
28
|
+
to load the `apidoc.json`.
|
29
|
+
|
30
|
+
In case the `/apidoc` reports some issues with loading modules, you can
|
31
|
+
temporarily commenting out the following line in Foreman's
|
32
|
+
`config/initializers/wrap_parameters.rb` file:
|
33
|
+
|
34
|
+
wrap_parameters :format => [:json]
|
28
35
|
|
29
36
|
Usage:
|
30
37
|
|
31
|
-
bin/generate.rb
|
32
|
-
|
33
|
-
|
34
|
-
|
38
|
+
$ bin/generate.rb --help
|
39
|
+
Generate Ruby API bindings for Katello's API from Apipie docs.
|
40
|
+
|
41
|
+
USAGE: bin/generate.rb [FLAGS]
|
42
|
+
-u, --url APIDOC_URL By default http://localhost:3000/apidoc
|
43
|
+
--api-version VERSION version of the API to hit (default: v2)
|
35
44
|
|
36
45
|
Only files under +lib/katello_api/resources+ are touched by the generator.
|
37
46
|
|
38
47
|
=== Authentication
|
39
48
|
|
40
|
-
Katello API supports authentication with username/password
|
49
|
+
Katello API supports authentication with username/password or OAuth.
|
41
50
|
For use of OAuth with the bindings you only have to change the params
|
42
51
|
|
43
|
-
|
44
|
-
|
45
|
-
|
52
|
+
envs = KatelloApi::Resources::Environment.new(:base_url => 'https://localhost:3000/katello',
|
53
|
+
:oauth => { :consumer_key => 'mykey',
|
54
|
+
:consumer_secret => 'shhhh' })
|
46
55
|
|
47
56
|
== License
|
48
57
|
|
data/Rakefile
CHANGED