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.
- data/.gitignore +2 -0
- data/Gemfile +2 -0
- data/README.rdoc +0 -4
- data/doc/KatelloApi/Base.html +831 -0
- data/doc/KatelloApi/Generator/Base.html +671 -0
- data/doc/KatelloApi/Generator.html +115 -0
- data/doc/KatelloApi/Resources/ActivationKey.html +1757 -0
- data/doc/KatelloApi/Resources/Architecture.html +1007 -0
- data/doc/KatelloApi/Resources/Changeset.html +1413 -0
- data/doc/KatelloApi/Resources/ChangesetsContent.html +2674 -0
- data/doc/KatelloApi/Resources/ComputeResource.html +1067 -0
- data/doc/KatelloApi/Resources/ConfigTemplate.html +1361 -0
- data/doc/KatelloApi/Resources/ContentView.html +938 -0
- data/doc/KatelloApi/Resources/ContentViewDefinition.html +1629 -0
- data/doc/KatelloApi/Resources/Crl.html +367 -0
- data/doc/KatelloApi/Resources/Distribution.html +560 -0
- data/doc/KatelloApi/Resources/Distributor.html +1892 -0
- data/doc/KatelloApi/Resources/Domain.html +1066 -0
- data/doc/KatelloApi/Resources/Environment.html +1645 -0
- data/doc/KatelloApi/Resources/Erratum.html +632 -0
- data/doc/KatelloApi/Resources/GpgKey.html +1220 -0
- data/doc/KatelloApi/Resources/HardwareModel.html +1025 -0
- data/doc/KatelloApi/Resources/Organization.html +1062 -0
- data/doc/KatelloApi/Resources/Package.html +728 -0
- data/doc/KatelloApi/Resources/Permission.html +1021 -0
- data/doc/KatelloApi/Resources/Ping.html +625 -0
- data/doc/KatelloApi/Resources/Product.html +1845 -0
- data/doc/KatelloApi/Resources/Provider.html +2237 -0
- data/doc/KatelloApi/Resources/Repository.html +1976 -0
- data/doc/KatelloApi/Resources/RepositorySet.html +770 -0
- data/doc/KatelloApi/Resources/Role.html +1257 -0
- data/doc/KatelloApi/Resources/RoleLdapGroup.html +728 -0
- data/doc/KatelloApi/Resources/SmartProxy.html +1054 -0
- data/doc/KatelloApi/Resources/Statu.html +367 -0
- data/doc/KatelloApi/Resources/Subnet.html +1007 -0
- data/doc/KatelloApi/Resources/Subscription.html +1064 -0
- data/doc/KatelloApi/Resources/Sync.html +826 -0
- data/doc/KatelloApi/Resources/SyncPlan.html +1148 -0
- data/doc/KatelloApi/Resources/System.html +3576 -0
- data/doc/KatelloApi/Resources/SystemGroup.html +2006 -0
- data/doc/KatelloApi/Resources/SystemGroupErratum.html +602 -0
- data/doc/KatelloApi/Resources/SystemGroupPackage.html +826 -0
- data/doc/KatelloApi/Resources/SystemPackage.html +770 -0
- data/doc/KatelloApi/Resources/Task.html +546 -0
- data/doc/KatelloApi/Resources/Template.html +1573 -0
- data/doc/KatelloApi/Resources/TemplatesContent.html +2268 -0
- data/doc/KatelloApi/Resources/Uebercert.html +406 -0
- data/doc/KatelloApi/Resources/User.html +1846 -0
- data/doc/KatelloApi/Resources.html +117 -0
- data/doc/KatelloApi.html +365 -0
- data/doc/_index.html +539 -0
- data/doc/class_list.html +53 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +338 -0
- data/doc/file.README.html +127 -0
- data/doc/file_list.html +55 -0
- data/doc/frames.html +28 -0
- data/doc/index.html +127 -0
- data/doc/js/app.js +214 -0
- data/doc/js/full_list.js +173 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +2548 -0
- data/doc/top-level-namespace.html +112 -0
- data/lib/katello_api/base.rb +61 -6
- data/lib/katello_api/documentation.json +1 -0
- data/lib/katello_api/resources/activation_key.rb +51 -48
- data/lib/katello_api/resources/architecture.rb +19 -24
- data/lib/katello_api/resources/changeset.rb +39 -37
- data/lib/katello_api/resources/changesets_content.rb +64 -57
- data/lib/katello_api/resources/compute_resource.rb +37 -42
- data/lib/katello_api/resources/config_template.rb +40 -44
- data/lib/katello_api/resources/content_view.rb +14 -17
- data/lib/katello_api/resources/content_view_definition.rb +34 -42
- data/lib/katello_api/resources/crl.rb +3 -4
- data/lib/katello_api/resources/distribution.rb +8 -8
- data/lib/katello_api/resources/distributor.rb +35 -37
- data/lib/katello_api/resources/domain.rb +28 -32
- data/lib/katello_api/resources/environment.rb +38 -44
- data/lib/katello_api/resources/erratum.rb +9 -8
- data/lib/katello_api/resources/gpg_key.rb +28 -33
- data/lib/katello_api/resources/hardware_model.rb +25 -30
- data/lib/katello_api/resources/organization.rb +24 -26
- data/lib/katello_api/resources/package.rb +9 -12
- data/lib/katello_api/resources/permission.rb +21 -19
- data/lib/katello_api/resources/ping.rb +9 -12
- data/lib/katello_api/resources/product.rb +34 -43
- data/lib/katello_api/resources/provider.rb +55 -66
- data/lib/katello_api/resources/repository.rb +44 -55
- data/lib/katello_api/resources/repository_set.rb +9 -12
- data/lib/katello_api/resources/role.rb +35 -33
- data/lib/katello_api/resources/role_ldap_group.rb +10 -12
- data/lib/katello_api/resources/smart_proxy.rb +24 -28
- data/lib/katello_api/resources/statu.rb +3 -4
- data/lib/katello_api/resources/subnet.rb +19 -24
- data/lib/katello_api/resources/subscription.rb +16 -21
- data/lib/katello_api/resources/sync.rb +9 -12
- data/lib/katello_api/resources/sync_plan.rb +28 -33
- data/lib/katello_api/resources/system.rb +81 -90
- data/lib/katello_api/resources/system_group.rb +47 -57
- data/lib/katello_api/resources/system_group_erratum.rb +6 -8
- data/lib/katello_api/resources/system_group_package.rb +15 -18
- data/lib/katello_api/resources/system_package.rb +12 -15
- data/lib/katello_api/resources/task.rb +6 -8
- data/lib/katello_api/resources/template.rb +39 -47
- data/lib/katello_api/resources/templates_content.rb +40 -52
- data/lib/katello_api/resources/uebercert.rb +4 -4
- data/lib/katello_api/resources/user.rb +47 -50
- data/lib/katello_api/version.rb +1 -1
- data/lib/katello_api.rb +0 -13
- metadata +68 -4
@@ -9,20 +9,18 @@ module KatelloApi
|
|
9
9
|
# @option params [String] organization_id organization identifier
|
10
10
|
#
|
11
11
|
# @param [Hash] headers additional http headers
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
call(:"get", url, params, headers)
|
12
|
+
# @return [Array] First item: parsed data; second item: raw body
|
13
|
+
def index(params = {}, headers = {})
|
14
|
+
perform_call(__method__, params, headers)
|
16
15
|
end
|
17
16
|
|
18
17
|
# @param [Hash] params a hash of params to be passed to the service
|
19
18
|
# @option params [String] id task identifier
|
20
19
|
#
|
21
20
|
# @param [Hash] headers additional http headers
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
call(:"get", url, params, headers)
|
21
|
+
# @return [Array] First item: parsed data; second item: raw body
|
22
|
+
def show(params = {}, headers = {})
|
23
|
+
perform_call(__method__, params, headers)
|
26
24
|
end
|
27
25
|
|
28
26
|
end
|
@@ -10,96 +10,88 @@ module KatelloApi
|
|
10
10
|
# @option params [String] name system template identifier
|
11
11
|
#
|
12
12
|
# @param [Hash] headers additional http headers
|
13
|
-
|
14
|
-
|
15
|
-
|
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
|
20
19
|
# @option params [String] id system template numeric identifier
|
21
20
|
#
|
22
21
|
# @param [Hash] headers additional http headers
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
call(:"get", url, params, headers)
|
22
|
+
# @return [Array] First item: parsed data; second item: raw body
|
23
|
+
def show(params = {}, headers = {})
|
24
|
+
perform_call(__method__, params, headers)
|
27
25
|
end
|
28
26
|
|
29
27
|
# @param [Hash] params a hash of params to be passed to the service
|
30
28
|
# @option params [String] environment_id environment numeric identifier
|
31
|
-
# @option params [Hash] template
|
32
|
-
# allowed keys are:
|
33
|
-
# *
|
34
|
-
# *
|
35
|
-
# *
|
29
|
+
# @option params [Hash] template
|
30
|
+
# allowed keys are:
|
31
|
+
# * parent_id [String, nil] parent template numeric identifier
|
32
|
+
# * description [String, nil] template description
|
33
|
+
# * name [String] new template name
|
36
34
|
#
|
37
35
|
# @param [Hash] headers additional http headers
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
call(:"post", url, params, headers)
|
36
|
+
# @return [Array] First item: parsed data; second item: raw body
|
37
|
+
def create(params = {}, headers = {})
|
38
|
+
perform_call(__method__, params, headers)
|
42
39
|
end
|
43
40
|
|
44
41
|
# @param [Hash] params a hash of params to be passed to the service
|
45
42
|
# @option params [String] id template numeric identifier
|
46
|
-
# @option params [Hash] template
|
47
|
-
# allowed keys are:
|
48
|
-
# *
|
49
|
-
# *
|
50
|
-
# *
|
43
|
+
# @option params [Hash] template
|
44
|
+
# allowed keys are:
|
45
|
+
# * parent_id [String, nil] parent template numeric identifier
|
46
|
+
# * description [String, nil] template description
|
47
|
+
# * name [String] new template name
|
51
48
|
#
|
52
49
|
# @param [Hash] headers additional http headers
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
call(:"put", url, params, headers)
|
50
|
+
# @return [Array] First item: parsed data; second item: raw body
|
51
|
+
def update(params = {}, headers = {})
|
52
|
+
perform_call(__method__, params, headers)
|
57
53
|
end
|
58
54
|
|
59
55
|
# @param [Hash] params a hash of params to be passed to the service
|
60
56
|
# @option params [String] id template numeric identifier
|
61
57
|
#
|
62
58
|
# @param [Hash] headers additional http headers
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
call(:"delete", url, params, headers)
|
59
|
+
# @return [Array] First item: parsed data; second item: raw body
|
60
|
+
def destroy(params = {}, headers = {})
|
61
|
+
perform_call(__method__, params, headers)
|
67
62
|
end
|
68
63
|
|
69
64
|
# @param [Hash] params a hash of params to be passed to the service
|
70
65
|
# @option params [String] environment_id environment numeric identifier
|
71
|
-
# @option params [Hash] template
|
72
|
-
# allowed keys are:
|
73
|
-
# *
|
74
|
-
# *
|
75
|
-
# *
|
66
|
+
# @option params [Hash] template
|
67
|
+
# allowed keys are:
|
68
|
+
# * parent_id [String, nil] parent template numeric identifier
|
69
|
+
# * description [String, nil] template description
|
70
|
+
# * name [String] new template name
|
76
71
|
# @option params [String] template_file template file to import
|
77
72
|
#
|
78
73
|
# @param [Hash] headers additional http headers
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
call(:"post", url, params, headers)
|
74
|
+
# @return [Array] First item: parsed data; second item: raw body
|
75
|
+
def import(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
|
86
80
|
# @option params [String] id template numeric identifier
|
87
81
|
#
|
88
82
|
# @param [Hash] headers additional http headers
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
call(:"get", url, params, headers)
|
83
|
+
# @return [Array] First item: parsed data; second item: raw body
|
84
|
+
def validate(params = {}, headers = {})
|
85
|
+
perform_call(__method__, params, headers)
|
93
86
|
end
|
94
87
|
|
95
88
|
# @param [Hash] params a hash of params to be passed to the service
|
96
89
|
# @option params [String] id template numeric identifier
|
97
90
|
#
|
98
91
|
# @param [Hash] headers additional http headers
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
call(:"get", url, params, headers)
|
92
|
+
# @return [Array] First item: parsed data; second item: raw body
|
93
|
+
def export(params = {}, headers = {})
|
94
|
+
perform_call(__method__, params, headers)
|
103
95
|
end
|
104
96
|
|
105
97
|
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 package identifier
|
10
9
|
# @option params [String] template_id template numeric identifier
|
10
|
+
# @option params [String] name package identifier
|
11
11
|
#
|
12
12
|
# @param [Hash] headers additional http headers
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
call(:"post", url, params, headers)
|
13
|
+
# @return [Array] First item: parsed data; second item: raw body
|
14
|
+
def add_package(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,22 +20,20 @@ module KatelloApi
|
|
21
20
|
# @option params [String] template_id template numeric identifier
|
22
21
|
#
|
23
22
|
# @param [Hash] headers additional http headers
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
call(:"delete", url, params, headers)
|
23
|
+
# @return [Array] First item: parsed data; second item: raw body
|
24
|
+
def remove_package(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
|
-
# @option params [String] name parameter identifier
|
32
29
|
# @option params [String] template_id template numeric identifier
|
30
|
+
# @option params [String] name parameter identifier
|
33
31
|
# @option params [String] value parameter value
|
34
32
|
#
|
35
33
|
# @param [Hash] headers additional http headers
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
call(:"post", url, params, headers)
|
34
|
+
# @return [Array] First item: parsed data; second item: raw body
|
35
|
+
def add_parameter(params = {}, headers = {})
|
36
|
+
perform_call(__method__, params, headers)
|
40
37
|
end
|
41
38
|
|
42
39
|
# @param [Hash] params a hash of params to be passed to the service
|
@@ -44,21 +41,19 @@ module KatelloApi
|
|
44
41
|
# @option params [String] template_id template numeric identifier
|
45
42
|
#
|
46
43
|
# @param [Hash] headers additional http headers
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
call(:"delete", url, params, headers)
|
44
|
+
# @return [Array] First item: parsed data; second item: raw body
|
45
|
+
def remove_parameter(params = {}, headers = {})
|
46
|
+
perform_call(__method__, params, headers)
|
51
47
|
end
|
52
48
|
|
53
49
|
# @param [Hash] params a hash of params to be passed to the service
|
54
|
-
# @option params [String] name package group identifier
|
55
50
|
# @option params [String] template_id template numeric identifier
|
51
|
+
# @option params [String] name package group identifier
|
56
52
|
#
|
57
53
|
# @param [Hash] headers additional http headers
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
call(:"post", url, params, headers)
|
54
|
+
# @return [Array] First item: parsed data; second item: raw body
|
55
|
+
def add_package_group(params = {}, headers = {})
|
56
|
+
perform_call(__method__, params, headers)
|
62
57
|
end
|
63
58
|
|
64
59
|
# @param [Hash] params a hash of params to be passed to the service
|
@@ -66,21 +61,19 @@ module KatelloApi
|
|
66
61
|
# @option params [String] template_id template numeric identifier
|
67
62
|
#
|
68
63
|
# @param [Hash] headers additional http headers
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
call(:"delete", url, params, headers)
|
64
|
+
# @return [Array] First item: parsed data; second item: raw body
|
65
|
+
def remove_package_group(params = {}, headers = {})
|
66
|
+
perform_call(__method__, params, headers)
|
73
67
|
end
|
74
68
|
|
75
69
|
# @param [Hash] params a hash of params to be passed to the service
|
76
|
-
# @option params [String] name package group category identifier
|
77
70
|
# @option params [String] template_id template numeric identifier
|
71
|
+
# @option params [String] name package group category identifier
|
78
72
|
#
|
79
73
|
# @param [Hash] headers additional http headers
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
call(:"post", url, params, headers)
|
74
|
+
# @return [Array] First item: parsed data; second item: raw body
|
75
|
+
def add_package_group_category(params = {}, headers = {})
|
76
|
+
perform_call(__method__, params, headers)
|
84
77
|
end
|
85
78
|
|
86
79
|
# @param [Hash] params a hash of params to be passed to the service
|
@@ -88,10 +81,9 @@ module KatelloApi
|
|
88
81
|
# @option params [String] template_id template numeric identifier
|
89
82
|
#
|
90
83
|
# @param [Hash] headers additional http headers
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
call(:"delete", url, params, headers)
|
84
|
+
# @return [Array] First item: parsed data; second item: raw body
|
85
|
+
def remove_package_group_category(params = {}, headers = {})
|
86
|
+
perform_call(__method__, params, headers)
|
95
87
|
end
|
96
88
|
|
97
89
|
# @param [Hash] params a hash of params to be passed to the service
|
@@ -99,10 +91,9 @@ module KatelloApi
|
|
99
91
|
# @option params [String] template_id template numeric identifier
|
100
92
|
#
|
101
93
|
# @param [Hash] headers additional http headers
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
call(:"post", url, params, headers)
|
94
|
+
# @return [Array] First item: parsed data; second item: raw body
|
95
|
+
def add_distribution(params = {}, headers = {})
|
96
|
+
perform_call(__method__, params, headers)
|
106
97
|
end
|
107
98
|
|
108
99
|
# @param [Hash] params a hash of params to be passed to the service
|
@@ -110,10 +101,9 @@ module KatelloApi
|
|
110
101
|
# @option params [String] template_id template numeric identifier
|
111
102
|
#
|
112
103
|
# @param [Hash] headers additional http headers
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
call(:"delete", url, params, headers)
|
104
|
+
# @return [Array] First item: parsed data; second item: raw body
|
105
|
+
def remove_distribution(params = {}, headers = {})
|
106
|
+
perform_call(__method__, params, headers)
|
117
107
|
end
|
118
108
|
|
119
109
|
# @param [Hash] params a hash of params to be passed to the service
|
@@ -121,10 +111,9 @@ module KatelloApi
|
|
121
111
|
# @option params [String] template_id template numeric identifier
|
122
112
|
#
|
123
113
|
# @param [Hash] headers additional http headers
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
call(:"post", url, params, headers)
|
114
|
+
# @return [Array] First item: parsed data; second item: raw body
|
115
|
+
def add_repo(params = {}, headers = {})
|
116
|
+
perform_call(__method__, params, headers)
|
128
117
|
end
|
129
118
|
|
130
119
|
# @param [Hash] params a hash of params to be passed to the service
|
@@ -132,10 +121,9 @@ module KatelloApi
|
|
132
121
|
# @option params [String] template_id template numeric identifier
|
133
122
|
#
|
134
123
|
# @param [Hash] headers additional http headers
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
call(:"delete", url, params, headers)
|
124
|
+
# @return [Array] First item: parsed data; second item: raw body
|
125
|
+
def remove_repo(params = {}, headers = {})
|
126
|
+
perform_call(__method__, params, headers)
|
139
127
|
end
|
140
128
|
|
141
129
|
end
|
@@ -6,13 +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 [Object] organization_id Part of +/api/organizations/:organization_id/uebercert+ path
|
9
10
|
# @option params [String] regenerate when set to ‘true’ certificate will be re-issued
|
10
11
|
#
|
11
12
|
# @param [Hash] headers additional http headers
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
call(:"get", url, params, headers)
|
13
|
+
# @return [Array] First item: parsed data; second item: raw body
|
14
|
+
def show(params = {}, headers = {})
|
15
|
+
perform_call(__method__, params, headers)
|
16
16
|
end
|
17
17
|
|
18
18
|
end
|
@@ -11,101 +11,98 @@ module KatelloApi
|
|
11
11
|
# @option params [String] username filter by username
|
12
12
|
#
|
13
13
|
# @param [Hash] headers additional http headers
|
14
|
-
|
15
|
-
|
16
|
-
|
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
|
20
|
+
# @option params [Object] id Part of +/api/users/:id+ path
|
21
21
|
#
|
22
22
|
# @param [Hash] headers additional http headers
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
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)
|
27
26
|
end
|
28
27
|
|
29
28
|
# @param [Hash] params a hash of params to be passed to the service
|
30
|
-
# @option params [Numeric, nil] default_environment_id
|
31
|
-
# @option params [String, nil] disabled
|
32
|
-
# @option params [String] email
|
33
|
-
# @option params [String] password
|
34
|
-
# @option params [String] username
|
29
|
+
# @option params [Numeric, nil] default_environment_id
|
30
|
+
# @option params [String, nil] disabled
|
31
|
+
# @option params [String] email
|
32
|
+
# @option params [String] password
|
33
|
+
# @option params [String] username
|
35
34
|
#
|
36
35
|
# @param [Hash] headers additional http headers
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
call(:"post", url, params, headers)
|
36
|
+
# @return [Array] First item: parsed data; second item: raw body
|
37
|
+
def create(params = {}, headers = {})
|
38
|
+
perform_call(__method__, params, headers)
|
41
39
|
end
|
42
40
|
|
43
41
|
# @param [Hash] params a hash of params to be passed to the service
|
44
|
-
# @option params [
|
45
|
-
# @option params [
|
46
|
-
# @option params [String]
|
47
|
-
# @option params [String]
|
42
|
+
# @option params [Object] id Part of +/api/users/:id+ path
|
43
|
+
# @option params [Numeric, nil] default_environment_id
|
44
|
+
# @option params [String, nil] disabled
|
45
|
+
# @option params [String] email
|
46
|
+
# @option params [String] password
|
48
47
|
#
|
49
48
|
# @param [Hash] headers additional http headers
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
call(:"put", url, params, headers)
|
49
|
+
# @return [Array] First item: parsed data; second item: raw body
|
50
|
+
def update(params = {}, headers = {})
|
51
|
+
perform_call(__method__, params, headers)
|
54
52
|
end
|
55
53
|
|
56
54
|
# @param [Hash] params a hash of params to be passed to the service
|
55
|
+
# @option params [Object] id Part of +/api/users/:id+ path
|
57
56
|
#
|
58
57
|
# @param [Hash] headers additional http headers
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
call(:"delete", url, params, headers)
|
58
|
+
# @return [Array] First item: parsed data; second item: raw body
|
59
|
+
def destroy(params = {}, headers = {})
|
60
|
+
perform_call(__method__, params, headers)
|
63
61
|
end
|
64
62
|
|
65
63
|
# @param [Hash] params a hash of params to be passed to the service
|
64
|
+
# @option params [Object] user_id Part of +/api/users/:user_id/roles+ path
|
66
65
|
#
|
67
66
|
# @param [Hash] headers additional http headers
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
call(:"get", url, params, headers)
|
67
|
+
# @return [Array] First item: parsed data; second item: raw body
|
68
|
+
def list_roles(params = {}, headers = {})
|
69
|
+
perform_call(__method__, params, headers)
|
72
70
|
end
|
73
71
|
|
74
72
|
# @param [Hash] params a hash of params to be passed to the service
|
75
73
|
#
|
76
74
|
# @param [Hash] headers additional http headers
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
call(:"get", url, params, headers)
|
75
|
+
# @return [Array] First item: parsed data; second item: raw body
|
76
|
+
def sync_ldap_roles(params = {}, headers = {})
|
77
|
+
perform_call(__method__, params, headers)
|
81
78
|
end
|
82
79
|
|
83
80
|
# @param [Hash] params a hash of params to be passed to the service
|
84
|
-
# @option params [Numeric] role_id
|
81
|
+
# @option params [Numeric] role_id
|
82
|
+
# @option params [Object] user_id Part of +/api/users/:user_id/roles+ path
|
85
83
|
#
|
86
84
|
# @param [Hash] headers additional http headers
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
call(:"post", url, params, headers)
|
85
|
+
# @return [Array] First item: parsed data; second item: raw body
|
86
|
+
def add_role(params = {}, headers = {})
|
87
|
+
perform_call(__method__, params, headers)
|
91
88
|
end
|
92
89
|
|
93
90
|
# @param [Hash] params a hash of params to be passed to the service
|
91
|
+
# @option params [Object] id Part of +/api/users/:user_id/roles/:id+ path
|
92
|
+
# @option params [Object] user_id Part of +/api/users/:user_id/roles/:id+ path
|
94
93
|
#
|
95
94
|
# @param [Hash] headers additional http headers
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
call(:"delete", url, params, headers)
|
95
|
+
# @return [Array] First item: parsed data; second item: raw body
|
96
|
+
def remove_role(params = {}, headers = {})
|
97
|
+
perform_call(__method__, params, headers)
|
100
98
|
end
|
101
99
|
|
102
100
|
# @param [Hash] params a hash of params to be passed to the service
|
103
101
|
#
|
104
102
|
# @param [Hash] headers additional http headers
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
call(:"get", url, params, headers)
|
103
|
+
# @return [Array] First item: parsed data; second item: raw body
|
104
|
+
def report(params = {}, headers = {})
|
105
|
+
perform_call(__method__, params, headers)
|
109
106
|
end
|
110
107
|
|
111
108
|
end
|
data/lib/katello_api/version.rb
CHANGED
data/lib/katello_api.rb
CHANGED
@@ -2,19 +2,6 @@ require 'json'
|
|
2
2
|
require 'yaml'
|
3
3
|
|
4
4
|
module KatelloApi
|
5
|
-
def self.client_config
|
6
|
-
@client_config ||= YAML.load_file("#{root}/katello_api/config.yml")
|
7
|
-
end
|
8
|
-
|
9
|
-
def self.root
|
10
|
-
@root ||= File.expand_path(File.dirname(__FILE__))
|
11
|
-
end
|
12
|
-
|
13
|
-
def self.doc
|
14
|
-
@doc ||= File.open("#{root}/katello_api/documentation.json", 'r') do |f|
|
15
|
-
JSON.load(f.read)['docs']
|
16
|
-
end
|
17
|
-
end
|
18
5
|
end
|
19
6
|
|
20
7
|
require 'katello_api/base'
|