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
@@ -8,73 +8,68 @@ 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 compute resource 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] compute_resource compute resource info
|
29
|
-
# allowed keys are:
|
30
|
-
# * description [String, nil]
|
31
|
-
# * name [String]
|
32
|
-
# * password [String, nil] password for ovirt, ec2, vmware, openstack. secret key for ec2
|
33
|
-
# * provider [String] providers include libvirt, ovirt, ec2, vmware, openstack, rackspace
|
34
|
-
# * region [String, nil] for ec2 only
|
35
|
-
# * server [String, nil] for vmware
|
36
|
-
# * tenant [String, nil] for openstack only
|
37
|
-
# * url [String] url for libvirt, ovirt, and openstack
|
38
|
-
# * user [String, nil] username for ovirt, ec2, vmware, openstack. access key for ec2.
|
39
|
-
# * uuid [String, nil] for ovirt, vmware datacenter
|
27
|
+
# allowed keys are:
|
28
|
+
# * description [String, nil]
|
29
|
+
# * name [String]
|
30
|
+
# * password [String, nil] password for ovirt, ec2, vmware, openstack. secret key for ec2
|
31
|
+
# * provider [String] providers include libvirt, ovirt, ec2, vmware, openstack, rackspace
|
32
|
+
# * region [String, nil] for ec2 only
|
33
|
+
# * server [String, nil] for vmware
|
34
|
+
# * tenant [String, nil] for openstack only
|
35
|
+
# * url [String] url for libvirt, ovirt, and openstack
|
36
|
+
# * user [String, nil] username for ovirt, ec2, vmware, openstack. access key for ec2.
|
37
|
+
# * uuid [String, nil] for ovirt, vmware datacenter
|
40
38
|
#
|
41
39
|
# @param [Hash] headers additional http headers
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
call(:"post", url, params, headers)
|
40
|
+
# @return [Array] First item: parsed data; second item: raw body
|
41
|
+
def create(params = {}, headers = {})
|
42
|
+
perform_call(__method__, params, headers)
|
46
43
|
end
|
47
44
|
|
48
45
|
# @param [Hash] params a hash of params to be passed to the service
|
49
46
|
# @option params [String] id compute resource name
|
50
47
|
# @option params [Hash] compute_resource compute resource info
|
51
|
-
# allowed keys are:
|
52
|
-
# * description [String, nil]
|
53
|
-
# * name [String]
|
54
|
-
# * password [String, nil] password for ovirt, ec2, vmware, openstack. secret key for ec2
|
55
|
-
# * provider [String] providers include libvirt, ovirt, ec2, vmware, openstack, rackspace
|
56
|
-
# * region [String, nil] for ec2 only
|
57
|
-
# * server [String, nil] for vmware
|
58
|
-
# * tenant [String, nil] for openstack only
|
59
|
-
# * url [String] url for libvirt, ovirt, and openstack
|
60
|
-
# * user [String, nil] username for ovirt, ec2, vmware, openstack. access key for ec2.
|
61
|
-
# * uuid [String, nil] for ovirt, vmware datacenter
|
48
|
+
# allowed keys are:
|
49
|
+
# * description [String, nil]
|
50
|
+
# * name [String]
|
51
|
+
# * password [String, nil] password for ovirt, ec2, vmware, openstack. secret key for ec2
|
52
|
+
# * provider [String] providers include libvirt, ovirt, ec2, vmware, openstack, rackspace
|
53
|
+
# * region [String, nil] for ec2 only
|
54
|
+
# * server [String, nil] for vmware
|
55
|
+
# * tenant [String, nil] for openstack only
|
56
|
+
# * url [String] url for libvirt, ovirt, and openstack
|
57
|
+
# * user [String, nil] username for ovirt, ec2, vmware, openstack. access key for ec2.
|
58
|
+
# * uuid [String, nil] for ovirt, vmware datacenter
|
62
59
|
#
|
63
60
|
# @param [Hash] headers additional http headers
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
call(:"put", url, params, headers)
|
61
|
+
# @return [Array] First item: parsed data; second item: raw body
|
62
|
+
def update(params = {}, headers = {})
|
63
|
+
perform_call(__method__, params, headers)
|
68
64
|
end
|
69
65
|
|
70
66
|
# @param [Hash] params a hash of params to be passed to the service
|
71
67
|
# @option params [String] id compute resource name
|
72
68
|
#
|
73
69
|
# @param [Hash] headers additional http headers
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
call(:"delete", url, params, headers)
|
70
|
+
# @return [Array] First item: parsed data; second item: raw body
|
71
|
+
def destroy(params = {}, headers = {})
|
72
|
+
perform_call(__method__, params, headers)
|
78
73
|
end
|
79
74
|
|
80
75
|
end
|
@@ -10,81 +10,77 @@ 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
|
19
|
+
# @option params [Object] id Part of +/api/config_templates/:id+ path
|
20
20
|
#
|
21
21
|
# @param [Hash] headers additional http headers
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
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)
|
26
25
|
end
|
27
26
|
|
28
27
|
# @param [Hash] params a hash of params to be passed to the service
|
29
|
-
# @option params [Hash] config_template
|
30
|
-
# allowed keys are:
|
31
|
-
# *
|
32
|
-
# *
|
33
|
-
# *
|
34
|
-
# *
|
35
|
-
# *
|
36
|
-
# *
|
28
|
+
# @option params [Hash] config_template
|
29
|
+
# allowed keys are:
|
30
|
+
# * template_kind_id [String, nil] not relevant for snippet
|
31
|
+
# * audit_comment [String, nil]
|
32
|
+
# * name [String] template name
|
33
|
+
# * snippet [String, nil]
|
34
|
+
# * template [String]
|
35
|
+
# * template_combinations_attributes [String, nil] array of template combinations (hostgroup_id, environment_id)
|
37
36
|
#
|
38
37
|
# @param [Hash] headers additional http headers
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
call(:"post", url, params, headers)
|
38
|
+
# @return [Array] First item: parsed data; second item: raw body
|
39
|
+
def create(params = {}, headers = {})
|
40
|
+
perform_call(__method__, params, headers)
|
43
41
|
end
|
44
42
|
|
45
43
|
# @param [Hash] params a hash of params to be passed to the service
|
46
|
-
# @option params [
|
47
|
-
#
|
48
|
-
#
|
49
|
-
# *
|
50
|
-
# *
|
51
|
-
# *
|
52
|
-
# *
|
53
|
-
# *
|
44
|
+
# @option params [Object] id Part of +/api/config_templates/:id+ path
|
45
|
+
# @option params [Hash] config_template
|
46
|
+
# allowed keys are:
|
47
|
+
# * template_kind_id [String, nil] not relevant for snippet
|
48
|
+
# * audit_comment [String, nil]
|
49
|
+
# * name [String] template name
|
50
|
+
# * snippet [String, nil]
|
51
|
+
# * template [String]
|
52
|
+
# * template_combinations_attributes [String, nil] array of template combinations (hostgroup_id, environment_id)
|
54
53
|
#
|
55
54
|
# @param [Hash] headers additional http headers
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
call(:"put", url, params, headers)
|
55
|
+
# @return [Array] First item: parsed data; second item: raw body
|
56
|
+
def update(params = {}, headers = {})
|
57
|
+
perform_call(__method__, params, headers)
|
60
58
|
end
|
61
59
|
|
62
60
|
# @param [Hash] params a hash of params to be passed to the service
|
61
|
+
# @option params [Object] id Part of +/api/config_templates/:id+ path
|
63
62
|
#
|
64
63
|
# @param [Hash] headers additional http headers
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
call(:"delete", url, params, headers)
|
64
|
+
# @return [Array] First item: parsed data; second item: raw body
|
65
|
+
def destroy(params = {}, headers = {})
|
66
|
+
perform_call(__method__, params, headers)
|
69
67
|
end
|
70
68
|
|
71
69
|
# @param [Hash] params a hash of params to be passed to the service
|
72
70
|
# @option params [String] version template version
|
73
71
|
#
|
74
72
|
# @param [Hash] headers additional http headers
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
call(:"get", url, params, headers)
|
73
|
+
# @return [Array] First item: parsed data; second item: raw body
|
74
|
+
def revision(params = {}, headers = {})
|
75
|
+
perform_call(__method__, params, headers)
|
79
76
|
end
|
80
77
|
|
81
78
|
# @param [Hash] params a hash of params to be passed to the service
|
82
79
|
#
|
83
80
|
# @param [Hash] headers additional http headers
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
call(:"get", url, params, headers)
|
81
|
+
# @return [Array] First item: parsed data; second item: raw body
|
82
|
+
def build_pxe_default(params = {}, headers = {})
|
83
|
+
perform_call(__method__, params, headers)
|
88
84
|
end
|
89
85
|
|
90
86
|
end
|
@@ -8,15 +8,14 @@ module KatelloApi
|
|
8
8
|
# @param [Hash] params a hash of params to be passed to the service
|
9
9
|
# @option params [String] id content view id
|
10
10
|
# @option params [String] environment_id environment identifier
|
11
|
+
# @option params [String] organization_id organization identifier
|
11
12
|
# @option params [String] label content view label
|
12
13
|
# @option params [String] name content view name
|
13
|
-
# @option params [String] organization_id organization identifier
|
14
14
|
#
|
15
15
|
# @param [Hash] headers additional http headers
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
call(:"get", url, params, headers)
|
16
|
+
# @return [Array] First item: parsed data; second item: raw body
|
17
|
+
def index(params = {}, headers = {})
|
18
|
+
perform_call(__method__, params, headers)
|
20
19
|
end
|
21
20
|
|
22
21
|
# @param [Hash] params a hash of params to be passed to the service
|
@@ -24,10 +23,9 @@ module KatelloApi
|
|
24
23
|
# @option params [String] environment_id environment id
|
25
24
|
#
|
26
25
|
# @param [Hash] headers additional http headers
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
call(:"get", url, params, headers)
|
26
|
+
# @return [Array] First item: parsed data; second item: raw body
|
27
|
+
def show(params = {}, headers = {})
|
28
|
+
perform_call(__method__, params, headers)
|
31
29
|
end
|
32
30
|
|
33
31
|
# @param [Hash] params a hash of params to be passed to the service
|
@@ -35,19 +33,18 @@ module KatelloApi
|
|
35
33
|
# @option params [String] environment_id environment promoting to
|
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 promote(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
|
42
|
+
# @option params [Object] id Part of +/api/content_views/:id/refresh+ path
|
45
43
|
#
|
46
44
|
# @param [Hash] headers additional http headers
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
call(:"post", url, params, headers)
|
45
|
+
# @return [Array] First item: parsed data; second item: raw body
|
46
|
+
def refresh(params = {}, headers = {})
|
47
|
+
perform_call(__method__, params, headers)
|
51
48
|
end
|
52
49
|
|
53
50
|
end
|
@@ -7,55 +7,51 @@ module KatelloApi
|
|
7
7
|
|
8
8
|
# @param [Hash] params a hash of params to be passed to the service
|
9
9
|
# @option params [String] id content view id
|
10
|
+
# @option params [String] organization_id organization identifier
|
10
11
|
# @option params [String] label content view label
|
11
12
|
# @option params [String] name content view name
|
12
|
-
# @option params [String] organization_id organization identifier
|
13
13
|
#
|
14
14
|
# @param [Hash] headers additional http headers
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
call(:"get", url, params, headers)
|
15
|
+
# @return [Array] First item: parsed data; second item: raw body
|
16
|
+
def index(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 [Hash] content_view_definition
|
23
|
-
# allowed keys are:
|
24
|
-
# * description [String, nil] definition description ,
|
25
|
-
# * label [String] content view identifier ,
|
26
|
-
# * name [String] content view definition name ,
|
27
21
|
# @option params [String] organization_id organization identifier
|
22
|
+
# @option params [Hash] content_view_definition
|
23
|
+
# allowed keys are:
|
24
|
+
# * description [String, nil] definition description
|
25
|
+
# * label [String] content view identifier
|
26
|
+
# * name [String] content view definition name
|
28
27
|
#
|
29
28
|
# @param [Hash] headers additional http headers
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
call(:"post", url, params, headers)
|
29
|
+
# @return [Array] First item: parsed data; second item: raw body
|
30
|
+
def create(params = {}, headers = {})
|
31
|
+
perform_call(__method__, params, headers)
|
34
32
|
end
|
35
33
|
|
36
34
|
# @param [Hash] params a hash of params to be passed to the service
|
37
35
|
# @option params [String] id definition identifer
|
38
|
-
# @option params [Hash] content_view_definition
|
39
|
-
# allowed keys are:
|
40
|
-
# * description [String, nil] definition description
|
41
|
-
# * name [String] content view definition name
|
36
|
+
# @option params [Hash] content_view_definition
|
37
|
+
# allowed keys are:
|
38
|
+
# * description [String, nil] definition description
|
39
|
+
# * name [String] content view definition name
|
42
40
|
# @option params [String] org organization name
|
43
41
|
#
|
44
42
|
# @param [Hash] headers additional http headers
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
call(:"put", url, params, headers)
|
43
|
+
# @return [Array] First item: parsed data; second item: raw body
|
44
|
+
def update(params = {}, headers = {})
|
45
|
+
perform_call(__method__, params, headers)
|
49
46
|
end
|
50
47
|
|
51
48
|
# @param [Hash] params a hash of params to be passed to the service
|
52
49
|
# @option params [String] id definition identifier
|
53
50
|
#
|
54
51
|
# @param [Hash] headers additional http headers
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
call(:"get", url, params, headers)
|
52
|
+
# @return [Array] First item: parsed data; second item: raw body
|
53
|
+
def show(params = {}, headers = {})
|
54
|
+
perform_call(__method__, params, headers)
|
59
55
|
end
|
60
56
|
|
61
57
|
# @param [Hash] params a hash of params to be passed to the service
|
@@ -65,30 +61,27 @@ module KatelloApi
|
|
65
61
|
# @option params [String] name name for the new content view
|
66
62
|
#
|
67
63
|
# @param [Hash] headers additional http headers
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
call(:"post", url, params, headers)
|
64
|
+
# @return [Array] First item: parsed data; second item: raw body
|
65
|
+
def publish(params = {}, headers = {})
|
66
|
+
perform_call(__method__, params, headers)
|
72
67
|
end
|
73
68
|
|
74
69
|
# @param [Hash] params a hash of params to be passed to the service
|
75
70
|
# @option params [String] id definition identifier
|
76
71
|
#
|
77
72
|
# @param [Hash] headers additional http headers
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
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)
|
82
76
|
end
|
83
77
|
|
84
78
|
# @param [Hash] params a hash of params to be passed to the service
|
85
79
|
# @option params [String] id definition identifier
|
86
80
|
#
|
87
81
|
# @param [Hash] headers additional http headers
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
call(:"get", url, params, headers)
|
82
|
+
# @return [Array] First item: parsed data; second item: raw body
|
83
|
+
def content_views(params = {}, headers = {})
|
84
|
+
perform_call(__method__, params, headers)
|
92
85
|
end
|
93
86
|
|
94
87
|
# @param [Hash] params a hash of params to be passed to the service
|
@@ -96,10 +89,9 @@ module KatelloApi
|
|
96
89
|
# @option params [String] views updated list of view ids
|
97
90
|
#
|
98
91
|
# @param [Hash] headers additional http headers
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
call(:"put", url, params, headers)
|
92
|
+
# @return [Array] First item: parsed data; second item: raw body
|
93
|
+
def update_content_views(params = {}, headers = {})
|
94
|
+
perform_call(__method__, params, headers)
|
103
95
|
end
|
104
96
|
|
105
97
|
end
|
@@ -8,10 +8,9 @@ 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
|
end
|
@@ -6,22 +6,22 @@ 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] repository_id Part of +/api/repositories/:repository_id/distributions+ path
|
9
10
|
#
|
10
11
|
# @param [Hash] headers additional http headers
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
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)
|
15
15
|
end
|
16
16
|
|
17
17
|
# @param [Hash] params a hash of params to be passed to the service
|
18
|
+
# @option params [Object] id Part of +/api/repositories/:repository_id/distributions/:id+ path
|
18
19
|
# @option params [String] repository_id repository numeric id
|
19
20
|
#
|
20
21
|
# @param [Hash] headers additional http headers
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
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)
|
25
25
|
end
|
26
26
|
|
27
27
|
end
|
@@ -6,6 +6,7 @@ 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] environment_id Part of +/api/environments/:environment_id/distributors+ path
|
9
10
|
# @option params [Hash] facts key-value hash of distributor-specific facts
|
10
11
|
# @option params [String] installedProducts list of products installed on the distributor
|
11
12
|
# @option params [String] location physical of the distributor
|
@@ -15,13 +16,13 @@ module KatelloApi
|
|
15
16
|
# @option params [String] type type of the distributor, it should always be ‘distributor’
|
16
17
|
#
|
17
18
|
# @param [Hash] headers additional http headers
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
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)
|
22
22
|
end
|
23
23
|
|
24
24
|
# @param [Hash] params a hash of params to be passed to the service
|
25
|
+
# @option params [Object] id Part of +/api/distributors/:id+ path
|
25
26
|
# @option params [Hash] facts key-value hash of distributor-specific facts
|
26
27
|
# @option params [String] installedProducts list of products installed on the distributor
|
27
28
|
# @option params [String] location physical of the distributor
|
@@ -30,81 +31,78 @@ module KatelloApi
|
|
30
31
|
# @option params [String, nil] serviceLevel a service level for auto-healing process, e.g. self-support
|
31
32
|
#
|
32
33
|
# @param [Hash] headers additional http headers
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
call(:"put", url, params, headers)
|
34
|
+
# @return [Array] First item: parsed data; second item: raw body
|
35
|
+
def update(params = {}, headers = {})
|
36
|
+
perform_call(__method__, params, headers)
|
37
37
|
end
|
38
38
|
|
39
39
|
# @param [Hash] params a hash of params to be passed to the service
|
40
|
-
# @option params [
|
40
|
+
# @option params [Object] environment_id Part of +/api/environments/:environment_id/distributors+ path
|
41
|
+
# @option params [Object] organization_id Part of +/api/organizations/:organization_id/distributors+ path
|
41
42
|
# @option params [String] pool_id filter distributors by subscribed pool
|
43
|
+
# @option params [String] name filter distributors by name
|
42
44
|
#
|
43
45
|
# @param [Hash] headers additional http headers
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
call(:"get", url, params, headers)
|
46
|
+
# @return [Array] First item: parsed data; second item: raw body
|
47
|
+
def index(params = {}, headers = {})
|
48
|
+
perform_call(__method__, params, headers)
|
48
49
|
end
|
49
50
|
|
50
51
|
# @param [Hash] params a hash of params to be passed to the service
|
51
52
|
# @option params [String] id uuid of the distributor
|
52
53
|
#
|
53
54
|
# @param [Hash] headers additional http headers
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
call(:"get", url, params, headers)
|
55
|
+
# @return [Array] First item: parsed data; second item: raw body
|
56
|
+
def show(params = {}, headers = {})
|
57
|
+
perform_call(__method__, params, headers)
|
58
58
|
end
|
59
59
|
|
60
60
|
# @param [Hash] params a hash of params to be passed to the service
|
61
61
|
# @option params [String] id uuid of the distributor
|
62
62
|
#
|
63
63
|
# @param [Hash] headers additional http headers
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
call(:"delete", url, params, headers)
|
64
|
+
# @return [Array] First item: parsed data; second item: raw body
|
65
|
+
def destroy(params = {}, headers = {})
|
66
|
+
perform_call(__method__, params, headers)
|
68
67
|
end
|
69
68
|
|
70
69
|
# @param [Hash] params a hash of params to be passed to the service
|
71
70
|
# @option params [String] id uuid of the distributor
|
72
71
|
#
|
73
72
|
# @param [Hash] headers additional http headers
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
call(:"get", url, params, headers)
|
73
|
+
# @return [Array] First item: parsed data; second item: raw body
|
74
|
+
def pools(params = {}, headers = {})
|
75
|
+
perform_call(__method__, params, headers)
|
78
76
|
end
|
79
77
|
|
80
78
|
# @param [Hash] params a hash of params to be passed to the service
|
79
|
+
# @option params [Object] environment_id Part of +/api/environments/:environment_id/distributors/report+ path
|
80
|
+
# @option params [Object] organization_id Part of +/api/organizations/:organization_id/distributors/report+ path
|
81
81
|
#
|
82
82
|
# @param [Hash] headers additional http headers
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
call(:"get", url, params, headers)
|
83
|
+
# @return [Array] First item: parsed data; second item: raw body
|
84
|
+
def report(params = {}, headers = {})
|
85
|
+
perform_call(__method__, params, headers)
|
87
86
|
end
|
88
87
|
|
89
88
|
# @param [Hash] params a hash of params to be passed to the service
|
89
|
+
# @option params [Object] organization_id Part of +/api/organizations/:organization_id/distributors/tasks+ path
|
90
90
|
# @option params [String] distributor_name name of the distributor
|
91
91
|
# @option params [String] distributor_uuid uuid of the distributor
|
92
92
|
#
|
93
93
|
# @param [Hash] headers additional http headers
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
call(:"get", url, params, headers)
|
94
|
+
# @return [Array] First item: parsed data; second item: raw body
|
95
|
+
def tasks(params = {}, headers = {})
|
96
|
+
perform_call(__method__, params, headers)
|
98
97
|
end
|
99
98
|
|
100
99
|
# @param [Hash] params a hash of params to be passed to the service
|
101
100
|
# @option params [String] id uuid of the task
|
102
101
|
#
|
103
102
|
# @param [Hash] headers additional http headers
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
call(:"get", url, params, headers)
|
103
|
+
# @return [Array] First item: parsed data; second item: raw body
|
104
|
+
def task_show(params = {}, headers = {})
|
105
|
+
perform_call(__method__, params, headers)
|
108
106
|
end
|
109
107
|
|
110
108
|
end
|