katello_api 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. data/.gitignore +2 -0
  2. data/Gemfile +2 -0
  3. data/README.rdoc +0 -4
  4. data/doc/KatelloApi/Base.html +831 -0
  5. data/doc/KatelloApi/Generator/Base.html +671 -0
  6. data/doc/KatelloApi/Generator.html +115 -0
  7. data/doc/KatelloApi/Resources/ActivationKey.html +1757 -0
  8. data/doc/KatelloApi/Resources/Architecture.html +1007 -0
  9. data/doc/KatelloApi/Resources/Changeset.html +1413 -0
  10. data/doc/KatelloApi/Resources/ChangesetsContent.html +2674 -0
  11. data/doc/KatelloApi/Resources/ComputeResource.html +1067 -0
  12. data/doc/KatelloApi/Resources/ConfigTemplate.html +1361 -0
  13. data/doc/KatelloApi/Resources/ContentView.html +938 -0
  14. data/doc/KatelloApi/Resources/ContentViewDefinition.html +1629 -0
  15. data/doc/KatelloApi/Resources/Crl.html +367 -0
  16. data/doc/KatelloApi/Resources/Distribution.html +560 -0
  17. data/doc/KatelloApi/Resources/Distributor.html +1892 -0
  18. data/doc/KatelloApi/Resources/Domain.html +1066 -0
  19. data/doc/KatelloApi/Resources/Environment.html +1645 -0
  20. data/doc/KatelloApi/Resources/Erratum.html +632 -0
  21. data/doc/KatelloApi/Resources/GpgKey.html +1220 -0
  22. data/doc/KatelloApi/Resources/HardwareModel.html +1025 -0
  23. data/doc/KatelloApi/Resources/Organization.html +1062 -0
  24. data/doc/KatelloApi/Resources/Package.html +728 -0
  25. data/doc/KatelloApi/Resources/Permission.html +1021 -0
  26. data/doc/KatelloApi/Resources/Ping.html +625 -0
  27. data/doc/KatelloApi/Resources/Product.html +1845 -0
  28. data/doc/KatelloApi/Resources/Provider.html +2237 -0
  29. data/doc/KatelloApi/Resources/Repository.html +1976 -0
  30. data/doc/KatelloApi/Resources/RepositorySet.html +770 -0
  31. data/doc/KatelloApi/Resources/Role.html +1257 -0
  32. data/doc/KatelloApi/Resources/RoleLdapGroup.html +728 -0
  33. data/doc/KatelloApi/Resources/SmartProxy.html +1054 -0
  34. data/doc/KatelloApi/Resources/Statu.html +367 -0
  35. data/doc/KatelloApi/Resources/Subnet.html +1007 -0
  36. data/doc/KatelloApi/Resources/Subscription.html +1064 -0
  37. data/doc/KatelloApi/Resources/Sync.html +826 -0
  38. data/doc/KatelloApi/Resources/SyncPlan.html +1148 -0
  39. data/doc/KatelloApi/Resources/System.html +3576 -0
  40. data/doc/KatelloApi/Resources/SystemGroup.html +2006 -0
  41. data/doc/KatelloApi/Resources/SystemGroupErratum.html +602 -0
  42. data/doc/KatelloApi/Resources/SystemGroupPackage.html +826 -0
  43. data/doc/KatelloApi/Resources/SystemPackage.html +770 -0
  44. data/doc/KatelloApi/Resources/Task.html +546 -0
  45. data/doc/KatelloApi/Resources/Template.html +1573 -0
  46. data/doc/KatelloApi/Resources/TemplatesContent.html +2268 -0
  47. data/doc/KatelloApi/Resources/Uebercert.html +406 -0
  48. data/doc/KatelloApi/Resources/User.html +1846 -0
  49. data/doc/KatelloApi/Resources.html +117 -0
  50. data/doc/KatelloApi.html +365 -0
  51. data/doc/_index.html +539 -0
  52. data/doc/class_list.html +53 -0
  53. data/doc/css/common.css +1 -0
  54. data/doc/css/full_list.css +57 -0
  55. data/doc/css/style.css +338 -0
  56. data/doc/file.README.html +127 -0
  57. data/doc/file_list.html +55 -0
  58. data/doc/frames.html +28 -0
  59. data/doc/index.html +127 -0
  60. data/doc/js/app.js +214 -0
  61. data/doc/js/full_list.js +173 -0
  62. data/doc/js/jquery.js +4 -0
  63. data/doc/method_list.html +2548 -0
  64. data/doc/top-level-namespace.html +112 -0
  65. data/lib/katello_api/base.rb +61 -6
  66. data/lib/katello_api/documentation.json +1 -0
  67. data/lib/katello_api/resources/activation_key.rb +51 -48
  68. data/lib/katello_api/resources/architecture.rb +19 -24
  69. data/lib/katello_api/resources/changeset.rb +39 -37
  70. data/lib/katello_api/resources/changesets_content.rb +64 -57
  71. data/lib/katello_api/resources/compute_resource.rb +37 -42
  72. data/lib/katello_api/resources/config_template.rb +40 -44
  73. data/lib/katello_api/resources/content_view.rb +14 -17
  74. data/lib/katello_api/resources/content_view_definition.rb +34 -42
  75. data/lib/katello_api/resources/crl.rb +3 -4
  76. data/lib/katello_api/resources/distribution.rb +8 -8
  77. data/lib/katello_api/resources/distributor.rb +35 -37
  78. data/lib/katello_api/resources/domain.rb +28 -32
  79. data/lib/katello_api/resources/environment.rb +38 -44
  80. data/lib/katello_api/resources/erratum.rb +9 -8
  81. data/lib/katello_api/resources/gpg_key.rb +28 -33
  82. data/lib/katello_api/resources/hardware_model.rb +25 -30
  83. data/lib/katello_api/resources/organization.rb +24 -26
  84. data/lib/katello_api/resources/package.rb +9 -12
  85. data/lib/katello_api/resources/permission.rb +21 -19
  86. data/lib/katello_api/resources/ping.rb +9 -12
  87. data/lib/katello_api/resources/product.rb +34 -43
  88. data/lib/katello_api/resources/provider.rb +55 -66
  89. data/lib/katello_api/resources/repository.rb +44 -55
  90. data/lib/katello_api/resources/repository_set.rb +9 -12
  91. data/lib/katello_api/resources/role.rb +35 -33
  92. data/lib/katello_api/resources/role_ldap_group.rb +10 -12
  93. data/lib/katello_api/resources/smart_proxy.rb +24 -28
  94. data/lib/katello_api/resources/statu.rb +3 -4
  95. data/lib/katello_api/resources/subnet.rb +19 -24
  96. data/lib/katello_api/resources/subscription.rb +16 -21
  97. data/lib/katello_api/resources/sync.rb +9 -12
  98. data/lib/katello_api/resources/sync_plan.rb +28 -33
  99. data/lib/katello_api/resources/system.rb +81 -90
  100. data/lib/katello_api/resources/system_group.rb +47 -57
  101. data/lib/katello_api/resources/system_group_erratum.rb +6 -8
  102. data/lib/katello_api/resources/system_group_package.rb +15 -18
  103. data/lib/katello_api/resources/system_package.rb +12 -15
  104. data/lib/katello_api/resources/task.rb +6 -8
  105. data/lib/katello_api/resources/template.rb +39 -47
  106. data/lib/katello_api/resources/templates_content.rb +40 -52
  107. data/lib/katello_api/resources/uebercert.rb +4 -4
  108. data/lib/katello_api/resources/user.rb +47 -50
  109. data/lib/katello_api/version.rb +1 -1
  110. data/lib/katello_api.rb +0 -13
  111. metadata +68 -4
@@ -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
- def index(params = { }, headers = { })
12
- check_params params, :allowed => false, :method => __method__
13
- url, params = fill_params_in_url "/api/compute_resources", params
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
- def show(params = { }, headers = { })
22
- check_params params, :allowed => true, :method => __method__
23
- url, params = fill_params_in_url "/api/compute_resources/:id", params
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
- def create(params = { }, headers = { })
43
- check_params params, :allowed => true, :method => __method__
44
- url, params = fill_params_in_url "/api/compute_resources", params
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
- def update(params = { }, headers = { })
65
- check_params params, :allowed => true, :method => __method__
66
- url, params = fill_params_in_url "/api/compute_resources/:id", params
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
- def destroy(params = { }, headers = { })
75
- check_params params, :allowed => true, :method => __method__
76
- url, params = fill_params_in_url "/api/compute_resources/:id", params
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
- def index(params = { }, headers = { })
14
- check_params params, :allowed => true, :method => __method__
15
- url, params = fill_params_in_url "/api/config_templates", params
16
- call(:"get", url, params, headers)
13
+ # @return [Array] First item: parsed data; second item: raw body
14
+ def index(params = {}, headers = {})
15
+ perform_call(__method__, params, headers)
17
16
  end
18
17
 
19
18
  # @param [Hash] params a hash of params to be passed to the service
19
+ # @option params [Object] id Part of +/api/config_templates/:id+ path
20
20
  #
21
21
  # @param [Hash] headers additional http headers
22
- def show(params = { }, headers = { })
23
- check_params params, :allowed => false, :method => __method__
24
- url, params = fill_params_in_url "/api/config_templates/:id", params
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
- # * 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) ,
36
- # * template_kind_id [String, nil] not relevant for snippet ,
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
- def create(params = { }, headers = { })
40
- check_params params, :allowed => true, :method => __method__
41
- url, params = fill_params_in_url "/api/config_templates", params
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 [Hash] config_template
47
- # allowed keys are:
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) ,
53
- # * template_kind_id [String, nil] not relevant for snippet ,
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
- def update(params = { }, headers = { })
57
- check_params params, :allowed => true, :method => __method__
58
- url, params = fill_params_in_url "/api/config_templates/:id", params
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
- def destroy(params = { }, headers = { })
66
- check_params params, :allowed => false, :method => __method__
67
- url, params = fill_params_in_url "/api/config_templates/:id", params
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
- def revision(params = { }, headers = { })
76
- check_params params, :allowed => true, :method => __method__
77
- url, params = fill_params_in_url "/api/config_templates/revision", params
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
- def build_pxe_default(params = { }, headers = { })
85
- check_params params, :allowed => false, :method => __method__
86
- url, params = fill_params_in_url "/api/config_templates/build_pxe_default", params
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
- def index(params = { }, headers = { })
17
- check_params params, :allowed => true, :method => __method__
18
- url, params = fill_params_in_url "/api/organizations/:organization_id/content_views", params
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
- def show(params = { }, headers = { })
28
- check_params params, :allowed => true, :method => __method__
29
- url, params = fill_params_in_url "/api/content_views/:id", params
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
- def promote(params = { }, headers = { })
39
- check_params params, :allowed => true, :method => __method__
40
- url, params = fill_params_in_url "/api/content_views/:id/promote", params
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
- def refresh(params = { }, headers = { })
48
- check_params params, :allowed => false, :method => __method__
49
- url, params = fill_params_in_url "/api/content_views/:id/refresh", params
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
- def index(params = { }, headers = { })
16
- check_params params, :allowed => true, :method => __method__
17
- url, params = fill_params_in_url "/api/organizations/:organization_id/content_view_definitions", params
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
- def create(params = { }, headers = { })
31
- check_params params, :allowed => true, :method => __method__
32
- url, params = fill_params_in_url "/api/content_view_definitions", params
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
- def update(params = { }, headers = { })
46
- check_params params, :allowed => true, :method => __method__
47
- url, params = fill_params_in_url "/api/organizations/:org/content_view_definitions/:id", params
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
- def show(params = { }, headers = { })
56
- check_params params, :allowed => true, :method => __method__
57
- url, params = fill_params_in_url "/api/content_view_definitions/:id", params
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
- def publish(params = { }, headers = { })
69
- check_params params, :allowed => true, :method => __method__
70
- url, params = fill_params_in_url "/api/organizations/:name/content_view_definitions/:id/publish", params
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
- def destroy(params = { }, headers = { })
79
- check_params params, :allowed => true, :method => __method__
80
- url, params = fill_params_in_url "/api/content_view_definitions/:id", params
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
- def content_views(params = { }, headers = { })
89
- check_params params, :allowed => true, :method => __method__
90
- url, params = fill_params_in_url "/api/content_view_definitions/:id/content_views", params
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
- def update_content_views(params = { }, headers = { })
100
- check_params params, :allowed => true, :method => __method__
101
- url, params = fill_params_in_url "/api/content_view_definitions/:id/content_views", params
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
- def index(params = { }, headers = { })
12
- check_params params, :allowed => false, :method => __method__
13
- url, params = fill_params_in_url "/api/crls", params
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
- def index(params = { }, headers = { })
12
- check_params params, :allowed => false, :method => __method__
13
- url, params = fill_params_in_url "/api/repositories/:repository_id/distributions", params
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
- def show(params = { }, headers = { })
22
- check_params params, :allowed => true, :method => __method__
23
- url, params = fill_params_in_url "/api/repositories/:repository_id/distributions/:id", params
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
- def create(params = { }, headers = { })
19
- check_params params, :allowed => true, :method => __method__
20
- url, params = fill_params_in_url "/api/environments/:environment_id/distributors", params
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
- def update(params = { }, headers = { })
34
- check_params params, :allowed => true, :method => __method__
35
- url, params = fill_params_in_url "/api/distributors/:id", params
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 [String] name filter distributors by name
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
- def index(params = { }, headers = { })
45
- check_params params, :allowed => true, :method => __method__
46
- url, params = fill_params_in_url "/api/environments/:environment_id/distributors", params
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
- def show(params = { }, headers = { })
55
- check_params params, :allowed => true, :method => __method__
56
- url, params = fill_params_in_url "/api/distributors/:id", params
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
- def destroy(params = { }, headers = { })
65
- check_params params, :allowed => true, :method => __method__
66
- url, params = fill_params_in_url "/api/distributors/:id", params
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
- def pools(params = { }, headers = { })
75
- check_params params, :allowed => true, :method => __method__
76
- url, params = fill_params_in_url "/api/distributors/:id/pools", params
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
- def report(params = { }, headers = { })
84
- check_params params, :allowed => false, :method => __method__
85
- url, params = fill_params_in_url "/api/environments/:environment_id/distributors/report", params
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
- def tasks(params = { }, headers = { })
95
- check_params params, :allowed => true, :method => __method__
96
- url, params = fill_params_in_url "/api/organizations/:organization_id/distributors/tasks", params
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
- def task_show(params = { }, headers = { })
105
- check_params params, :allowed => true, :method => __method__
106
- url, params = fill_params_in_url "/api/distributors/tasks/:id", params
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