katello_api 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
@@ -10,60 +10,56 @@ module KatelloApi
|
|
|
10
10
|
# @option params [String] search filter results
|
|
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 domain name (no slashes)
|
|
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
|
-
# @option params [Hash] domain
|
|
31
|
-
# allowed keys are:
|
|
32
|
-
# * dns_id [String, nil] dns proxy to use within this domain
|
|
33
|
-
# * domain_parameters_attributes [String, nil] array of parameters (name, value)
|
|
34
|
-
# * fullname [String, nil] full name describing the domain
|
|
35
|
-
# * name [String] the full dns domain name
|
|
28
|
+
# @option params [Hash] domain
|
|
29
|
+
# allowed keys are:
|
|
30
|
+
# * dns_id [String, nil] dns proxy to use within this domain
|
|
31
|
+
# * domain_parameters_attributes [String, nil] array of parameters (name, value)
|
|
32
|
+
# * fullname [String, nil] full name describing the domain
|
|
33
|
+
# * name [String] the full dns domain 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
|
-
# @option params [
|
|
46
|
-
#
|
|
47
|
-
#
|
|
48
|
-
# *
|
|
49
|
-
# *
|
|
50
|
-
# *
|
|
42
|
+
# @option params [Object] id Part of +/api/domains/:id+ path
|
|
43
|
+
# @option params [Hash] domain
|
|
44
|
+
# allowed keys are:
|
|
45
|
+
# * dns_id [String, nil] dns proxy to use within this domain
|
|
46
|
+
# * domain_parameters_attributes [String, nil] array of parameters (name, value)
|
|
47
|
+
# * fullname [String, nil] full name describing the domain
|
|
48
|
+
# * name [String] the full dns domain name
|
|
51
49
|
#
|
|
52
50
|
# @param [Hash] headers additional http headers
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
call(:"put", url, params, headers)
|
|
51
|
+
# @return [Array] First item: parsed data; second item: raw body
|
|
52
|
+
def update(params = {}, headers = {})
|
|
53
|
+
perform_call(__method__, params, headers)
|
|
57
54
|
end
|
|
58
55
|
|
|
59
56
|
# @param [Hash] params a hash of params to be passed to the service
|
|
60
57
|
# @option params [String] id domain name (no slashes)
|
|
61
58
|
#
|
|
62
59
|
# @param [Hash] headers additional http headers
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
call(:"delete", url, params, headers)
|
|
60
|
+
# @return [Array] First item: parsed data; second item: raw body
|
|
61
|
+
def destroy(params = {}, headers = {})
|
|
62
|
+
perform_call(__method__, params, headers)
|
|
67
63
|
end
|
|
68
64
|
|
|
69
65
|
end
|
|
@@ -6,27 +6,25 @@ 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] organization_id organization identifier
|
|
9
10
|
# @option params [String] library set true if you want to see only library environment
|
|
10
11
|
# @option params [String] name filter only environments with this identifier
|
|
11
|
-
# @option params [String] organization_id organization identifier
|
|
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 [String] organization_id organization identifier
|
|
21
21
|
# @option params [String] library set true if you want to see only library environment
|
|
22
22
|
# @option params [String] name filter only environments with this identifier
|
|
23
|
-
# @option params [String] organization_id organization identifier
|
|
24
23
|
#
|
|
25
24
|
# @param [Hash] headers additional http headers
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
call(:"get", url, params, headers)
|
|
25
|
+
# @return [Array] First item: parsed data; second item: raw body
|
|
26
|
+
def rhsm_index(params = {}, headers = {})
|
|
27
|
+
perform_call(__method__, params, headers)
|
|
30
28
|
end
|
|
31
29
|
|
|
32
30
|
# @param [Hash] params a hash of params to be passed to the service
|
|
@@ -34,38 +32,37 @@ module KatelloApi
|
|
|
34
32
|
# @option params [String] organization_id organization identifier
|
|
35
33
|
#
|
|
36
34
|
# @param [Hash] headers additional http headers
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
call(:"get", url, params, headers)
|
|
35
|
+
# @return [Array] First item: parsed data; second item: raw body
|
|
36
|
+
def show(params = {}, headers = {})
|
|
37
|
+
perform_call(__method__, params, headers)
|
|
41
38
|
end
|
|
42
39
|
|
|
43
40
|
# @param [Hash] params a hash of params to be passed to the service
|
|
44
|
-
# @option params [Hash] environment
|
|
45
|
-
# allowed keys are:
|
|
46
|
-
# * description [String, nil],
|
|
47
|
-
# * name [String] name of the environment (identifier) ,
|
|
48
|
-
# * prior [String] identifier of an environment that is prior the new environment in the chain, it has to be either library or an environment at the end of the chain ,
|
|
49
41
|
# @option params [String] organization_id organization identifier
|
|
42
|
+
# @option params [Hash] environment
|
|
43
|
+
# allowed keys are:
|
|
44
|
+
# * description [String, nil]
|
|
45
|
+
# * name [String] name of the environment (identifier)
|
|
46
|
+
# * prior [String] identifier of an environment that is prior the new environment in the chain, it has to be either library or an environment at the end of the chain
|
|
50
47
|
#
|
|
51
48
|
# @param [Hash] headers additional http headers
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
call(:"post", url, params, headers)
|
|
49
|
+
# @return [Array] First item: parsed data; second item: raw body
|
|
50
|
+
def create(params = {}, headers = {})
|
|
51
|
+
perform_call(__method__, params, headers)
|
|
56
52
|
end
|
|
57
53
|
|
|
58
54
|
# @param [Hash] params a hash of params to be passed to the service
|
|
59
|
-
# @option params [
|
|
60
|
-
#
|
|
61
|
-
#
|
|
62
|
-
#
|
|
55
|
+
# @option params [Object] id Part of +/api/environments/:id+ path
|
|
56
|
+
# @option params [Object] organization_id Part of +/api/organizations/:organization_id/environments/:id+ path
|
|
57
|
+
# @option params [Hash] environment
|
|
58
|
+
# allowed keys are:
|
|
59
|
+
# * description [String, nil]
|
|
60
|
+
# * name [String] name of the environment (identifier)
|
|
63
61
|
#
|
|
64
62
|
# @param [Hash] headers additional http headers
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
call(:"put", url, params, headers)
|
|
63
|
+
# @return [Array] First item: parsed data; second item: raw body
|
|
64
|
+
def update(params = {}, headers = {})
|
|
65
|
+
perform_call(__method__, params, headers)
|
|
69
66
|
end
|
|
70
67
|
|
|
71
68
|
# @param [Hash] params a hash of params to be passed to the service
|
|
@@ -73,32 +70,29 @@ module KatelloApi
|
|
|
73
70
|
# @option params [String] organization_id organization identifier
|
|
74
71
|
#
|
|
75
72
|
# @param [Hash] headers additional http headers
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
call(:"delete", url, params, headers)
|
|
73
|
+
# @return [Array] First item: parsed data; second item: raw body
|
|
74
|
+
def destroy(params = {}, headers = {})
|
|
75
|
+
perform_call(__method__, params, headers)
|
|
80
76
|
end
|
|
81
77
|
|
|
82
78
|
# @param [Hash] params a hash of params to be passed to the service
|
|
83
79
|
# @option params [String] id environment identifier
|
|
84
|
-
# @option params [String] include_disabled set to true if you want to see also disabled repositories
|
|
85
80
|
# @option params [String] organization_id organization identifier
|
|
81
|
+
# @option params [String] include_disabled set to true if you want to see also disabled repositories
|
|
86
82
|
#
|
|
87
83
|
# @param [Hash] headers additional http headers
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
call(:"get", url, params, headers)
|
|
84
|
+
# @return [Array] First item: parsed data; second item: raw body
|
|
85
|
+
def repositories(params = {}, headers = {})
|
|
86
|
+
perform_call(__method__, params, headers)
|
|
92
87
|
end
|
|
93
88
|
|
|
94
89
|
# @param [Hash] params a hash of params to be passed to the service
|
|
95
90
|
# @option params [String] id environment identifier
|
|
96
91
|
#
|
|
97
92
|
# @param [Hash] headers additional http headers
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
call(:"get", url, params, headers)
|
|
93
|
+
# @return [Array] First item: parsed data; second item: raw body
|
|
94
|
+
def releases(params = {}, headers = {})
|
|
95
|
+
perform_call(__method__, params, headers)
|
|
102
96
|
end
|
|
103
97
|
|
|
104
98
|
end
|
|
@@ -8,24 +8,25 @@ module KatelloApi
|
|
|
8
8
|
# @param [Hash] params a hash of params to be passed to the service
|
|
9
9
|
# @option params [String] environment_id id of environment containing the errata.
|
|
10
10
|
# @option params [String] product_id the product which contains the errata.
|
|
11
|
+
# @option params [Object] repository_id Part of +/api/repositories/:repository_id/errata+ path
|
|
11
12
|
# @option params [String] repoid id of repository containing the errata.
|
|
12
13
|
# @option params [String] severity severity of errata. usually one of: critical, important, moderate, low. case insensitive.
|
|
13
14
|
# @option params [String] type type of errata. usually one of: security, bugfix, enhancement. case insensitive.
|
|
14
15
|
#
|
|
15
16
|
# @param [Hash] headers additional http headers
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
call(:"get", url, params, headers)
|
|
17
|
+
# @return [Array] First item: parsed data; second item: raw body
|
|
18
|
+
def index(params = {}, headers = {})
|
|
19
|
+
perform_call(__method__, params, headers)
|
|
20
20
|
end
|
|
21
21
|
|
|
22
22
|
# @param [Hash] params a hash of params to be passed to the service
|
|
23
|
+
# @option params [Object] id Part of +/api/repositories/:repository_id/errata/:id+ path
|
|
24
|
+
# @option params [Object] repository_id Part of +/api/repositories/:repository_id/errata/:id+ path
|
|
23
25
|
#
|
|
24
26
|
# @param [Hash] headers additional http headers
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
call(:"get", url, params, headers)
|
|
27
|
+
# @return [Array] First item: parsed data; second item: raw body
|
|
28
|
+
def show(params = {}, headers = {})
|
|
29
|
+
perform_call(__method__, params, headers)
|
|
29
30
|
end
|
|
30
31
|
|
|
31
32
|
end
|
|
@@ -6,71 +6,66 @@ 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 identifier of the gpg key
|
|
10
9
|
# @option params [String] organization_id organization identifier
|
|
10
|
+
# @option params [String] name identifier of the gpg key
|
|
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 gpg key 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
|
-
# @option params [Hash] gpg_key
|
|
31
|
-
# allowed keys are:
|
|
32
|
-
# * content [String] public key block in der encoding ,
|
|
33
|
-
# * name [String] identifier of the gpg key ,
|
|
34
28
|
# @option params [String] organization_id organization identifier
|
|
29
|
+
# @option params [Hash] gpg_key
|
|
30
|
+
# allowed keys are:
|
|
31
|
+
# * content [String] public key block in der encoding
|
|
32
|
+
# * name [String] identifier of the gpg key
|
|
35
33
|
#
|
|
36
34
|
# @param [Hash] headers additional http headers
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
call(:"post", url, params, headers)
|
|
35
|
+
# @return [Array] First item: parsed data; second item: raw body
|
|
36
|
+
def create(params = {}, headers = {})
|
|
37
|
+
perform_call(__method__, params, headers)
|
|
41
38
|
end
|
|
42
39
|
|
|
43
40
|
# @param [Hash] params a hash of params to be passed to the service
|
|
44
|
-
# @option params [
|
|
45
|
-
#
|
|
46
|
-
#
|
|
47
|
-
# *
|
|
41
|
+
# @option params [Object] id Part of +/api/gpg_keys/:id+ path
|
|
42
|
+
# @option params [Hash] gpg_key
|
|
43
|
+
# allowed keys are:
|
|
44
|
+
# * content [String] public key block in der encoding
|
|
45
|
+
# * name [String] identifier of the gpg key
|
|
48
46
|
#
|
|
49
47
|
# @param [Hash] headers additional http headers
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
call(:"put", url, params, headers)
|
|
48
|
+
# @return [Array] First item: parsed data; second item: raw body
|
|
49
|
+
def update(params = {}, headers = {})
|
|
50
|
+
perform_call(__method__, params, headers)
|
|
54
51
|
end
|
|
55
52
|
|
|
56
53
|
# @param [Hash] params a hash of params to be passed to the service
|
|
57
54
|
# @option params [String] id gpg key numeric identifier
|
|
58
55
|
#
|
|
59
56
|
# @param [Hash] headers additional http headers
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
call(:"delete", url, params, headers)
|
|
57
|
+
# @return [Array] First item: parsed data; second item: raw body
|
|
58
|
+
def destroy(params = {}, headers = {})
|
|
59
|
+
perform_call(__method__, params, headers)
|
|
64
60
|
end
|
|
65
61
|
|
|
66
62
|
# @param [Hash] params a hash of params to be passed to the service
|
|
67
63
|
# @option params [String] id gpg key numeric identifier
|
|
68
64
|
#
|
|
69
65
|
# @param [Hash] headers additional http headers
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
call(:"get", url, params, headers)
|
|
66
|
+
# @return [Array] First item: parsed data; second item: raw body
|
|
67
|
+
def content(params = {}, headers = {})
|
|
68
|
+
perform_call(__method__, params, headers)
|
|
74
69
|
end
|
|
75
70
|
|
|
76
71
|
end
|
|
@@ -8,61 +8,56 @@ module KatelloApi
|
|
|
8
8
|
# @param [Hash] params a hash of params to be passed to the service
|
|
9
9
|
#
|
|
10
10
|
# @param [Hash] headers additional http headers
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
call(:"get", url, params, headers)
|
|
11
|
+
# @return [Array] First item: parsed data; second item: raw body
|
|
12
|
+
def index(params = {}, headers = {})
|
|
13
|
+
perform_call(__method__, params, headers)
|
|
15
14
|
end
|
|
16
15
|
|
|
17
16
|
# @param [Hash] params a hash of params to be passed to the service
|
|
18
17
|
# @option params [String] id hardware model name
|
|
19
18
|
#
|
|
20
19
|
# @param [Hash] headers additional http headers
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
call(:"get", url, params, headers)
|
|
20
|
+
# @return [Array] First item: parsed data; second item: raw body
|
|
21
|
+
def show(params = {}, headers = {})
|
|
22
|
+
perform_call(__method__, params, headers)
|
|
25
23
|
end
|
|
26
24
|
|
|
27
25
|
# @param [Hash] params a hash of params to be passed to the service
|
|
28
26
|
# @option params [Hash] hardware_model hardware model info
|
|
29
|
-
# allowed keys are:
|
|
30
|
-
# * hardware_model [String, nil]
|
|
31
|
-
# * info [String, nil]
|
|
32
|
-
# * name [String]
|
|
33
|
-
# * vendor_class [String, nil]
|
|
27
|
+
# allowed keys are:
|
|
28
|
+
# * hardware_model [String, nil]
|
|
29
|
+
# * info [String, nil]
|
|
30
|
+
# * name [String]
|
|
31
|
+
# * vendor_class [String, nil]
|
|
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 create(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
|
|
43
40
|
# @option params [String] id hardware model name
|
|
44
41
|
# @option params [Hash] hardware_model hardware model info
|
|
45
|
-
# allowed keys are:
|
|
46
|
-
# * hardware_model [String, nil]
|
|
47
|
-
# * info [String, nil]
|
|
48
|
-
# * name [String]
|
|
49
|
-
# * vendor_class [String, nil]
|
|
42
|
+
# allowed keys are:
|
|
43
|
+
# * hardware_model [String, nil]
|
|
44
|
+
# * info [String, nil]
|
|
45
|
+
# * name [String]
|
|
46
|
+
# * vendor_class [String, nil]
|
|
50
47
|
#
|
|
51
48
|
# @param [Hash] headers additional http headers
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
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)
|
|
56
52
|
end
|
|
57
53
|
|
|
58
54
|
# @param [Hash] params a hash of params to be passed to the service
|
|
59
55
|
# @option params [String] id hardware model name
|
|
60
56
|
#
|
|
61
57
|
# @param [Hash] headers additional http headers
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
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)
|
|
66
61
|
end
|
|
67
62
|
|
|
68
63
|
end
|
|
@@ -6,57 +6,55 @@ 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] description
|
|
9
|
+
# @option params [String] description
|
|
10
10
|
# @option params [String] label label for filtering
|
|
11
11
|
# @option params [String] name name for the organization
|
|
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/organizations/: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 [String] description
|
|
29
|
+
# @option params [String] description
|
|
31
30
|
# @option params [String] name name for the organization
|
|
32
31
|
#
|
|
33
32
|
# @param [Hash] headers additional http headers
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
call(:"post", url, params, headers)
|
|
33
|
+
# @return [Array] First item: parsed data; second item: raw body
|
|
34
|
+
def create(params = {}, headers = {})
|
|
35
|
+
perform_call(__method__, params, headers)
|
|
38
36
|
end
|
|
39
37
|
|
|
40
38
|
# @param [Hash] params a hash of params to be passed to the service
|
|
41
|
-
# @option params [
|
|
42
|
-
#
|
|
43
|
-
#
|
|
44
|
-
# *
|
|
39
|
+
# @option params [Object] id Part of +/api/organizations/:id+ path
|
|
40
|
+
# @option params [Hash] organization
|
|
41
|
+
# allowed keys are:
|
|
42
|
+
# * description [String]
|
|
43
|
+
# * name [String] name for the organization
|
|
45
44
|
#
|
|
46
45
|
# @param [Hash] headers additional http headers
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
call(:"put", url, params, headers)
|
|
46
|
+
# @return [Array] First item: parsed data; second item: raw body
|
|
47
|
+
def update(params = {}, headers = {})
|
|
48
|
+
perform_call(__method__, params, headers)
|
|
51
49
|
end
|
|
52
50
|
|
|
53
51
|
# @param [Hash] params a hash of params to be passed to the service
|
|
52
|
+
# @option params [Object] id Part of +/api/organizations/:id+ path
|
|
54
53
|
#
|
|
55
54
|
# @param [Hash] headers additional http headers
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
call(:"delete", url, params, headers)
|
|
55
|
+
# @return [Array] First item: parsed data; second item: raw body
|
|
56
|
+
def destroy(params = {}, headers = {})
|
|
57
|
+
perform_call(__method__, params, headers)
|
|
60
58
|
end
|
|
61
59
|
|
|
62
60
|
end
|
|
@@ -9,10 +9,9 @@ module KatelloApi
|
|
|
9
9
|
# @option params [String] repository_id environment numeric 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
|
|
@@ -20,10 +19,9 @@ module KatelloApi
|
|
|
20
19
|
# @option params [String] search search expression
|
|
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 search(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
|
|
@@ -31,10 +29,9 @@ module KatelloApi
|
|
|
31
29
|
# @option params [String] repository_id environment numeric identifier
|
|
32
30
|
#
|
|
33
31
|
# @param [Hash] headers additional http headers
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
call(:"get", url, params, headers)
|
|
32
|
+
# @return [Array] First item: parsed data; second item: raw body
|
|
33
|
+
def show(params = {}, headers = {})
|
|
34
|
+
perform_call(__method__, params, headers)
|
|
38
35
|
end
|
|
39
36
|
|
|
40
37
|
end
|