katello_api 0.0.3 → 0.0.4

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.
Files changed (115) hide show
  1. checksums.yaml +15 -0
  2. data/.gitignore +3 -0
  3. data/Gemfile +1 -1
  4. data/README.rdoc +22 -13
  5. data/Rakefile +0 -1
  6. data/doc/KatelloApi/Base.html +102 -116
  7. data/doc/KatelloApi/Generator/Base.html +65 -80
  8. data/doc/KatelloApi/Generator.html +5 -5
  9. data/doc/KatelloApi/Resources/About.html +360 -0
  10. data/doc/KatelloApi/Resources/ActivationKey.html +190 -304
  11. data/doc/KatelloApi/Resources/Architecture.html +89 -129
  12. data/doc/KatelloApi/Resources/Changeset.html +156 -399
  13. data/doc/KatelloApi/Resources/ChangesetsContent.html +97 -2215
  14. data/doc/KatelloApi/Resources/ComputeResource.html +131 -189
  15. data/doc/KatelloApi/Resources/ConfigTemplate.html +143 -208
  16. data/doc/KatelloApi/Resources/ContentUpload.html +1046 -0
  17. data/doc/KatelloApi/Resources/ContentView.html +229 -117
  18. data/doc/KatelloApi/Resources/ContentViewDefinition.html +1190 -323
  19. data/doc/KatelloApi/Resources/Crl.html +21 -28
  20. data/doc/KatelloApi/Resources/CustomInfo.html +1110 -0
  21. data/doc/KatelloApi/Resources/Distribution.html +40 -56
  22. data/doc/KatelloApi/Resources/Distributor.html +406 -469
  23. data/doc/KatelloApi/Resources/Domain.html +107 -155
  24. data/doc/KatelloApi/Resources/Environment.html +211 -539
  25. data/doc/KatelloApi/Resources/Erratum.html +56 -90
  26. data/doc/KatelloApi/Resources/Filter.html +1533 -0
  27. data/doc/KatelloApi/Resources/FilterRule.html +591 -0
  28. data/doc/KatelloApi/Resources/GpgKey.html +230 -196
  29. data/doc/KatelloApi/Resources/HardwareModel.html +101 -147
  30. data/doc/KatelloApi/Resources/Organization.html +647 -158
  31. data/doc/KatelloApi/Resources/OrganizationDefaultInfo.html +803 -0
  32. data/doc/KatelloApi/Resources/Package.html +57 -81
  33. data/doc/KatelloApi/Resources/Permission.html +109 -197
  34. data/doc/KatelloApi/Resources/Ping.html +37 -179
  35. data/doc/KatelloApi/Resources/Product.html +289 -462
  36. data/doc/KatelloApi/Resources/Provider.html +397 -424
  37. data/doc/KatelloApi/Resources/PuppetModule.html +704 -0
  38. data/doc/KatelloApi/Resources/Repository.html +302 -958
  39. data/doc/KatelloApi/Resources/RepositorySet.html +64 -104
  40. data/doc/KatelloApi/Resources/Role.html +131 -250
  41. data/doc/KatelloApi/Resources/RoleLdapGroup.html +74 -95
  42. data/doc/KatelloApi/Resources/SmartProxy.html +97 -143
  43. data/doc/KatelloApi/Resources/Statu.html +21 -28
  44. data/doc/KatelloApi/Resources/Status.html +360 -0
  45. data/doc/KatelloApi/Resources/Subnet.html +89 -129
  46. data/doc/KatelloApi/Resources/Subscription.html +486 -162
  47. data/doc/KatelloApi/Resources/Sync.html +85 -155
  48. data/doc/KatelloApi/Resources/SyncPlan.html +127 -220
  49. data/doc/KatelloApi/Resources/System.html +913 -925
  50. data/doc/KatelloApi/Resources/SystemErratum.html +557 -0
  51. data/doc/KatelloApi/Resources/SystemGroup.html +634 -408
  52. data/doc/KatelloApi/Resources/SystemGroupErratum.html +47 -66
  53. data/doc/KatelloApi/Resources/SystemGroupPackage.html +77 -108
  54. data/doc/KatelloApi/Resources/SystemPackage.html +734 -108
  55. data/doc/KatelloApi/Resources/SystemsBulkAction.html +1706 -0
  56. data/doc/KatelloApi/Resources/Task.html +38 -53
  57. data/doc/KatelloApi/Resources/Template.html +159 -233
  58. data/doc/KatelloApi/Resources/TemplatesContent.html +214 -312
  59. data/doc/KatelloApi/Resources/Uebercert.html +25 -34
  60. data/doc/KatelloApi/Resources/User.html +204 -433
  61. data/doc/KatelloApi/Resources.html +7 -7
  62. data/doc/KatelloApi.html +21 -26
  63. data/doc/_index.html +87 -9
  64. data/doc/class_list.html +3 -2
  65. data/doc/css/style.css +1 -1
  66. data/doc/file.README.html +60 -54
  67. data/doc/file_list.html +2 -1
  68. data/doc/frames.html +5 -7
  69. data/doc/index.html +60 -54
  70. data/doc/js/app.js +7 -2
  71. data/doc/js/full_list.js +7 -2
  72. data/doc/method_list.html +854 -1225
  73. data/doc/top-level-namespace.html +5 -5
  74. data/katello_api.gemspec +7 -5
  75. data/lib/katello_api/base.rb +9 -8
  76. data/lib/katello_api/documentation.json +1 -1
  77. data/lib/katello_api/resources/about.rb +18 -0
  78. data/lib/katello_api/resources/activation_key.rb +11 -13
  79. data/lib/katello_api/resources/changeset.rb +4 -15
  80. data/lib/katello_api/resources/changesets_content.rb +6 -130
  81. data/lib/katello_api/resources/content_upload.rb +61 -0
  82. data/lib/katello_api/resources/content_view.rb +10 -1
  83. data/lib/katello_api/resources/content_view_definition.rb +65 -3
  84. data/lib/katello_api/resources/custom_info.rb +70 -0
  85. data/lib/katello_api/resources/distributor.rb +33 -18
  86. data/lib/katello_api/resources/environment.rb +20 -41
  87. data/lib/katello_api/resources/erratum.rb +3 -4
  88. data/lib/katello_api/resources/filter.rb +93 -0
  89. data/lib/katello_api/resources/filter_rule.rb +36 -0
  90. data/lib/katello_api/resources/gpg_key.rb +18 -14
  91. data/lib/katello_api/resources/organization.rb +43 -8
  92. data/lib/katello_api/resources/organization_default_info.rb +48 -0
  93. data/lib/katello_api/resources/permission.rb +10 -7
  94. data/lib/katello_api/resources/ping.rb +1 -9
  95. data/lib/katello_api/resources/product.rb +26 -30
  96. data/lib/katello_api/resources/provider.rb +21 -20
  97. data/lib/katello_api/resources/puppet_module.rb +39 -0
  98. data/lib/katello_api/resources/repository.rb +28 -62
  99. data/lib/katello_api/resources/repository_set.rb +1 -2
  100. data/lib/katello_api/resources/role.rb +0 -5
  101. data/lib/katello_api/resources/role_ldap_group.rb +3 -1
  102. data/lib/katello_api/resources/status.rb +18 -0
  103. data/lib/katello_api/resources/subscription.rb +33 -7
  104. data/lib/katello_api/resources/sync.rb +9 -12
  105. data/lib/katello_api/resources/sync_plan.rb +2 -5
  106. data/lib/katello_api/resources/system.rb +95 -73
  107. data/lib/katello_api/resources/system_erratum.rb +30 -0
  108. data/lib/katello_api/resources/system_group.rb +40 -27
  109. data/lib/katello_api/resources/system_group_erratum.rb +1 -1
  110. data/lib/katello_api/resources/system_group_package.rb +6 -6
  111. data/lib/katello_api/resources/system_package.rb +46 -5
  112. data/lib/katello_api/resources/systems_bulk_action.rb +140 -0
  113. data/lib/katello_api/resources/user.rb +14 -18
  114. data/lib/katello_api/version.rb +1 -1
  115. metadata +26 -14
@@ -0,0 +1,18 @@
1
+ module KatelloApi
2
+ module Resources
3
+ class About < KatelloApi::Base
4
+ def self.doc
5
+ @doc ||= KatelloApi.doc['resources']["about"]
6
+ end
7
+
8
+ # @param [Hash] params a hash of params to be passed to the service
9
+ #
10
+ # @param [Hash] headers additional http headers
11
+ # @return [Array] First item: parsed data; second item: raw body
12
+ def index(params = {}, headers = {})
13
+ perform_call(__method__, params, headers)
14
+ end
15
+
16
+ end
17
+ end
18
+ end
@@ -29,7 +29,7 @@ module KatelloApi
29
29
  # @option params [Object] environment_id Part of +/api/environments/:environment_id/activation_keys+ path
30
30
  # @option params [Hash] activation_key
31
31
  # allowed keys are:
32
- # * content_view_id [String, nil] content view id
32
+ # * content_view_id [String] content view id
33
33
  # * description [String, nil]
34
34
  # * name [String] activation key identifier (alphanum characters, space, _ and -)
35
35
  #
@@ -43,7 +43,7 @@ module KatelloApi
43
43
  # @option params [Object] id Part of +/api/activation_keys/:id+ path
44
44
  # @option params [Hash] activation_key
45
45
  # allowed keys are:
46
- # * content_view_id [String, nil] content view id
46
+ # * content_view_id [String] content view id
47
47
  # * environment_id [String, nil]
48
48
  # * description [String, nil]
49
49
  # * name [String] activation key identifier (alphanum characters, space, _ and -)
@@ -55,36 +55,35 @@ module KatelloApi
55
55
  end
56
56
 
57
57
  # @param [Hash] params a hash of params to be passed to the service
58
- # @option params [Object] id Part of +/api/activation_keys/:id/pools+ path
58
+ # @option params [Object] id Part of +/api/activation_keys/:id+ path
59
59
  #
60
60
  # @param [Hash] headers additional http headers
61
61
  # @return [Array] First item: parsed data; second item: raw body
62
- def add_pool(params = {}, headers = {})
62
+ def destroy(params = {}, headers = {})
63
63
  perform_call(__method__, params, headers)
64
64
  end
65
65
 
66
66
  # @param [Hash] params a hash of params to be passed to the service
67
- # @option params [Object] id Part of +/api/activation_keys/:id/pools/:poolid+ path
68
- # @option params [Object] poolid Part of +/api/activation_keys/:id/pools/:poolid+ path
67
+ # @option params [Object] id Part of +/api/activation_keys/:id/pools+ path
69
68
  #
70
69
  # @param [Hash] headers additional http headers
71
70
  # @return [Array] First item: parsed data; second item: raw body
72
- def remove_pool(params = {}, headers = {})
71
+ def add_pool(params = {}, headers = {})
73
72
  perform_call(__method__, params, headers)
74
73
  end
75
74
 
76
75
  # @param [Hash] params a hash of params to be passed to the service
77
- # @option params [Object] id Part of +/api/activation_keys/:id+ path
76
+ # @option params [Object] id Part of +/api/activation_keys/:id/pools/:poolid+ path
77
+ # @option params [Object] poolid Part of +/api/activation_keys/:id/pools/:poolid+ path
78
78
  #
79
79
  # @param [Hash] headers additional http headers
80
80
  # @return [Array] First item: parsed data; second item: raw body
81
- def destroy(params = {}, headers = {})
81
+ def remove_pool(params = {}, headers = {})
82
82
  perform_call(__method__, params, headers)
83
83
  end
84
84
 
85
85
  # @param [Hash] params a hash of params to be passed to the service
86
- # @option params [Object] id Part of +/api/organizations/:organization_id/activation_keys/:id/system_groups+ path
87
- # @option params [Object] organization_id Part of +/api/organizations/:organization_id/activation_keys/:id/system_groups+ path
86
+ # @option params [Object] id Part of +/api/activation_keys/:id/system_groups+ path
88
87
  #
89
88
  # @param [Hash] headers additional http headers
90
89
  # @return [Array] First item: parsed data; second item: raw body
@@ -93,8 +92,7 @@ module KatelloApi
93
92
  end
94
93
 
95
94
  # @param [Hash] params a hash of params to be passed to the service
96
- # @option params [Object] id Part of +/api/organizations/:organization_id/activation_keys/:id/system_groups+ path
97
- # @option params [Object] organization_id Part of +/api/organizations/:organization_id/activation_keys/:id/system_groups+ path
95
+ # @option params [Object] id Part of +/api/activation_keys/:id/system_groups+ path
98
96
  #
99
97
  # @param [Hash] headers additional http headers
100
98
  # @return [Array] First item: parsed data; second item: raw body
@@ -6,8 +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/organizations/:organization_id/environments/:environment_id/changesets+ path
10
- # @option params [Object] organization_id Part of +/api/organizations/:organization_id/environments/:environment_id/changesets+ path
9
+ # @option params [Object] environment_id Part of +/api/environments/:environment_id/changesets+ path
11
10
  # @option params [String] name an optional changeset name to filter upon
12
11
  #
13
12
  # @param [Hash] headers additional http headers
@@ -39,17 +38,7 @@ module KatelloApi
39
38
  end
40
39
 
41
40
  # @param [Hash] params a hash of params to be passed to the service
42
- # @option params [Object] id Part of +/api/changesets/:id/dependencies+ path
43
- #
44
- # @param [Hash] headers additional http headers
45
- # @return [Array] First item: parsed data; second item: raw body
46
- def dependencies(params = {}, headers = {})
47
- perform_call(__method__, params, headers)
48
- end
49
-
50
- # @param [Hash] params a hash of params to be passed to the service
51
- # @option params [Object] environment_id Part of +/api/organizations/:organization_id/environments/:environment_id/changesets+ path
52
- # @option params [Object] organization_id Part of +/api/organizations/:organization_id/environments/:environment_id/changesets+ path
41
+ # @option params [Object] environment_id Part of +/api/environments/:environment_id/changesets+ path
53
42
  # @option params [Hash] changeset
54
43
  # allowed keys are:
55
44
  # * description [String, nil] the description of the changeset
@@ -63,11 +52,11 @@ module KatelloApi
63
52
  end
64
53
 
65
54
  # @param [Hash] params a hash of params to be passed to the service
66
- # @option params [Object] id Part of +/api/changesets/:id/promote+ path
55
+ # @option params [Object] id Part of +/api/changesets/:id/apply+ path
67
56
  #
68
57
  # @param [Hash] headers additional http headers
69
58
  # @return [Array] First item: parsed data; second item: raw body
70
- def promote(params = {}, headers = {})
59
+ def apply(params = {}, headers = {})
71
60
  perform_call(__method__, params, headers)
72
61
  end
73
62
 
@@ -6,113 +6,10 @@ 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] changeset_id Part of +/api/changesets/:changeset_id/products+ path
10
- # @option params [String] product_id the id of the product which should be added
11
- #
12
- # @param [Hash] headers additional http headers
13
- # @return [Array] First item: parsed data; second item: raw body
14
- def add_product(params = {}, headers = {})
15
- perform_call(__method__, params, headers)
16
- end
17
-
18
- # @param [Hash] params a hash of params to be passed to the service
19
- # @option params [Object] id Part of +/api/changesets/:changeset_id/products/:id+ path
20
- # @option params [Object] changeset_id Part of +/api/changesets/:changeset_id/products/:id+ path
21
- # @option params [String] content_id the id of the product to remove
22
- #
23
- # @param [Hash] headers additional http headers
24
- # @return [Array] First item: parsed data; second item: raw body
25
- def remove_product(params = {}, headers = {})
26
- perform_call(__method__, params, headers)
27
- end
28
-
29
- # @param [Hash] params a hash of params to be passed to the service
30
- # @option params [Object] changeset_id Part of +/api/changesets/:changeset_id/packages+ path
31
- # @option params [String] product_id the id of the product which contains the package
32
- # @option params [String] name the nvrea of the package to add
33
- #
34
- # @param [Hash] headers additional http headers
35
- # @return [Array] First item: parsed data; second item: raw body
36
- def add_package(params = {}, headers = {})
37
- perform_call(__method__, params, headers)
38
- end
39
-
40
- # @param [Hash] params a hash of params to be passed to the service
41
- # @option params [Object] id Part of +/api/changesets/:changeset_id/packages/:id+ path
42
- # @option params [Object] changeset_id Part of +/api/changesets/:changeset_id/packages/:id+ path
43
- # @option params [String] product_id the id of the product which contains the package
44
- #
45
- # @param [Hash] headers additional http headers
46
- # @return [Array] First item: parsed data; second item: raw body
47
- def remove_package(params = {}, headers = {})
48
- perform_call(__method__, params, headers)
49
- end
50
-
51
- # @param [Hash] params a hash of params to be passed to the service
52
- # @option params [Object] changeset_id Part of +/api/changesets/:changeset_id/errata+ path
53
- # @option params [String] erratum_id the id of the errata to add
54
- # @option params [String] product_id the product which contains the errata
55
- #
56
- # @param [Hash] headers additional http headers
57
- # @return [Array] First item: parsed data; second item: raw body
58
- def add_erratum(params = {}, headers = {})
59
- perform_call(__method__, params, headers)
60
- end
61
-
62
- # @param [Hash] params a hash of params to be passed to the service
63
- # @option params [Object] id Part of +/api/changesets/:changeset_id/errata/:id+ path
64
- # @option params [Object] changeset_id Part of +/api/changesets/:changeset_id/errata/:id+ path
65
- # @option params [String] product_id the product which contains the errata
66
- #
67
- # @param [Hash] headers additional http headers
68
- # @return [Array] First item: parsed data; second item: raw body
69
- def remove_erratum(params = {}, headers = {})
70
- perform_call(__method__, params, headers)
71
- end
72
-
73
- # @param [Hash] params a hash of params to be passed to the service
74
- # @option params [Object] changeset_id Part of +/api/changesets/:changeset_id/repositories+ path
75
- # @option params [String] repository_id the id of the repository to add
76
- #
77
- # @param [Hash] headers additional http headers
78
- # @return [Array] First item: parsed data; second item: raw body
79
- def add_repo(params = {}, headers = {})
80
- perform_call(__method__, params, headers)
81
- end
82
-
83
- # @param [Hash] params a hash of params to be passed to the service
84
- # @option params [Object] id Part of +/api/changesets/:changeset_id/repositories/:id+ path
85
- # @option params [Object] changeset_id Part of +/api/changesets/:changeset_id/repositories/:id+ path
86
- #
87
- # @param [Hash] headers additional http headers
88
- # @return [Array] First item: parsed data; second item: raw body
89
- def remove_repo(params = {}, headers = {})
90
- perform_call(__method__, params, headers)
91
- end
92
-
93
- # @param [Hash] params a hash of params to be passed to the service
94
- # @option params [Object] changeset_id Part of +/api/changesets/:changeset_id/templates+ path
95
- # @option params [String] template_id the id of the template to add
96
- #
97
- # @param [Hash] headers additional http headers
98
- # @return [Array] First item: parsed data; second item: raw body
99
- def add_template(params = {}, headers = {})
100
- perform_call(__method__, params, headers)
101
- end
102
-
103
- # @param [Hash] params a hash of params to be passed to the service
104
- # @option params [Object] id Part of +/api/changesets/:changeset_id/templates/:id+ path
105
- # @option params [Object] changeset_id Part of +/api/changesets/:changeset_id/templates/:id+ path
106
- #
107
- # @param [Hash] headers additional http headers
108
- # @return [Array] First item: parsed data; second item: raw body
109
- def remove_template(params = {}, headers = {})
110
- perform_call(__method__, params, headers)
111
- end
112
-
113
- # @param [Hash] params a hash of params to be passed to the service
114
- # @option params [Object] changeset_id Part of +/api/changesets/:changeset_id/content_views+ path
115
- # @option params [String] content_view_id the id of the content view to add
9
+ # @option params [String] changeset_id id of the product to remove
10
+ # @option params [Hash] content_view
11
+ # allowed keys are:
12
+ # * id [String] id of the content view to add
116
13
  #
117
14
  # @param [Hash] headers additional http headers
118
15
  # @return [Array] First item: parsed data; second item: raw body
@@ -121,8 +18,8 @@ module KatelloApi
121
18
  end
122
19
 
123
20
  # @param [Hash] params a hash of params to be passed to the service
124
- # @option params [Object] id Part of +/api/changesets/:changeset_id/content_views/:id+ path
125
- # @option params [Object] changeset_id Part of +/api/changesets/:changeset_id/content_views/:id+ path
21
+ # @option params [String] changeset_id
22
+ # @option params [String] content_view_id id of the content view to remove
126
23
  #
127
24
  # @param [Hash] headers additional http headers
128
25
  # @return [Array] First item: parsed data; second item: raw body
@@ -130,27 +27,6 @@ module KatelloApi
130
27
  perform_call(__method__, params, headers)
131
28
  end
132
29
 
133
- # @param [Hash] params a hash of params to be passed to the service
134
- # @option params [Object] changeset_id Part of +/api/changesets/:changeset_id/distributions+ path
135
- # @option params [String] distribution_id the id of the distribution to add
136
- # @option params [String] product_id the product which contains the distribution
137
- #
138
- # @param [Hash] headers additional http headers
139
- # @return [Array] First item: parsed data; second item: raw body
140
- def add_distribution(params = {}, headers = {})
141
- perform_call(__method__, params, headers)
142
- end
143
-
144
- # @param [Hash] params a hash of params to be passed to the service
145
- # @option params [Object] id Part of +/api/changesets/:changeset_id/distributions/:id+ path
146
- # @option params [Object] changeset_id Part of +/api/changesets/:changeset_id/distributions/:id+ path
147
- #
148
- # @param [Hash] headers additional http headers
149
- # @return [Array] First item: parsed data; second item: raw body
150
- def remove_distribution(params = {}, headers = {})
151
- perform_call(__method__, params, headers)
152
- end
153
-
154
30
  end
155
31
  end
156
32
  end
@@ -0,0 +1,61 @@
1
+ module KatelloApi
2
+ module Resources
3
+ class ContentUpload < KatelloApi::Base
4
+ def self.doc
5
+ @doc ||= KatelloApi.doc['resources']["content_uploads"]
6
+ end
7
+
8
+ # @param [Hash] params a hash of params to be passed to the service
9
+ # @option params [String] repo_id repository id
10
+ #
11
+ # @param [Hash] headers additional http headers
12
+ # @return [Array] First item: parsed data; second item: raw body
13
+ def create(params = {}, headers = {})
14
+ perform_call(__method__, params, headers)
15
+ end
16
+
17
+ # @param [Hash] params a hash of params to be passed to the service
18
+ # @option params [String] id upload request id
19
+ # @option params [String] repo_id repository id
20
+ # @option params [String] content file contents
21
+ # @option params [String] offset the offset at which pulp will store the file contents
22
+ #
23
+ # @param [Hash] headers additional http headers
24
+ # @return [Array] First item: parsed data; second item: raw body
25
+ def upload_bits(params = {}, headers = {})
26
+ perform_call(__method__, params, headers)
27
+ end
28
+
29
+ # @param [Hash] params a hash of params to be passed to the service
30
+ # @option params [String] id upload request id
31
+ # @option params [String] repo_id repository id
32
+ #
33
+ # @param [Hash] headers additional http headers
34
+ # @return [Array] First item: parsed data; second item: raw body
35
+ def destroy(params = {}, headers = {})
36
+ perform_call(__method__, params, headers)
37
+ end
38
+
39
+ # @param [Hash] params a hash of params to be passed to the service
40
+ # @option params [String] repo_id repository id
41
+ # @option params [Array] uploads array of uploads to import
42
+ #
43
+ # @param [Hash] headers additional http headers
44
+ # @return [Array] First item: parsed data; second item: raw body
45
+ def import_into_repo(params = {}, headers = {})
46
+ perform_call(__method__, params, headers)
47
+ end
48
+
49
+ # @param [Hash] params a hash of params to be passed to the service
50
+ # @option params [String] id
51
+ # @option params [String] content file contents
52
+ #
53
+ # @param [Hash] headers additional http headers
54
+ # @return [Array] First item: parsed data; second item: raw body
55
+ def upload_file(params = {}, headers = {})
56
+ perform_call(__method__, params, headers)
57
+ end
58
+
59
+ end
60
+ end
61
+ end
@@ -39,7 +39,7 @@ module KatelloApi
39
39
  end
40
40
 
41
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
42
+ # @option params [String] id content view id
43
43
  #
44
44
  # @param [Hash] headers additional http headers
45
45
  # @return [Array] First item: parsed data; second item: raw body
@@ -47,6 +47,15 @@ module KatelloApi
47
47
  perform_call(__method__, params, headers)
48
48
  end
49
49
 
50
+ # @param [Hash] params a hash of params to be passed to the service
51
+ # @option params [String] id content view id
52
+ #
53
+ # @param [Hash] headers additional http headers
54
+ # @return [Array] First item: parsed data; second item: raw body
55
+ def destroy(params = {}, headers = {})
56
+ perform_call(__method__, params, headers)
57
+ end
58
+
50
59
  end
51
60
  end
52
61
  end
@@ -32,7 +32,7 @@ module KatelloApi
32
32
  end
33
33
 
34
34
  # @param [Hash] params a hash of params to be passed to the service
35
- # @option params [String] id definition identifer
35
+ # @option params [String] id definition identifier
36
36
  # @option params [Hash] content_view_definition
37
37
  # allowed keys are:
38
38
  # * description [String, nil] definition description
@@ -77,16 +77,30 @@ module KatelloApi
77
77
 
78
78
  # @param [Hash] params a hash of params to be passed to the service
79
79
  # @option params [String] id definition identifier
80
+ # @option params [Hash] content_view_definition
81
+ # allowed keys are:
82
+ # * description [String, nil] definition description
83
+ # * label [String] content view identifier
84
+ # * name [String] content view definition name
80
85
  #
81
86
  # @param [Hash] headers additional http headers
82
87
  # @return [Array] First item: parsed data; second item: raw body
83
- def content_views(params = {}, headers = {})
88
+ def clone(params = {}, headers = {})
84
89
  perform_call(__method__, params, headers)
85
90
  end
86
91
 
87
92
  # @param [Hash] params a hash of params to be passed to the service
88
93
  # @option params [String] id definition identifier
89
- # @option params [String] views updated list of view ids
94
+ #
95
+ # @param [Hash] headers additional http headers
96
+ # @return [Array] First item: parsed data; second item: raw body
97
+ def content_views(params = {}, headers = {})
98
+ perform_call(__method__, params, headers)
99
+ end
100
+
101
+ # @param [Hash] params a hash of params to be passed to the service
102
+ # @option params [String] content_view_definition_id definition identifier
103
+ # @option params [Array] views updated list of view ids
90
104
  #
91
105
  # @param [Hash] headers additional http headers
92
106
  # @return [Array] First item: parsed data; second item: raw body
@@ -94,6 +108,54 @@ module KatelloApi
94
108
  perform_call(__method__, params, headers)
95
109
  end
96
110
 
111
+ # @param [Hash] params a hash of params to be passed to the service
112
+ # @option params [String] content_view_definition_id definition id
113
+ #
114
+ # @param [Hash] headers additional http headers
115
+ # @return [Array] First item: parsed data; second item: raw body
116
+ def list_repositories(params = {}, headers = {})
117
+ perform_call(__method__, params, headers)
118
+ end
119
+
120
+ # @param [Hash] params a hash of params to be passed to the service
121
+ # @option params [String] content_view_definition_id content view definition identifier
122
+ # @option params [Array] repos updated list of repo ids
123
+ #
124
+ # @param [Hash] headers additional http headers
125
+ # @return [Array] First item: parsed data; second item: raw body
126
+ def update_repositories(params = {}, headers = {})
127
+ perform_call(__method__, params, headers)
128
+ end
129
+
130
+ # @param [Hash] params a hash of params to be passed to the service
131
+ # @option params [String] content_view_definition_id content view definition identifier
132
+ # @option params [String] organization_id organization identifier
133
+ #
134
+ # @param [Hash] headers additional http headers
135
+ # @return [Array] First item: parsed data; second item: raw body
136
+ def list_products(params = {}, headers = {})
137
+ perform_call(__method__, params, headers)
138
+ end
139
+
140
+ # @param [Hash] params a hash of params to be passed to the service
141
+ # @option params [String] content_view_definition_id content view definition identifier
142
+ # @option params [Array] products updated list of products
143
+ #
144
+ # @param [Hash] headers additional http headers
145
+ # @return [Array] First item: parsed data; second item: raw body
146
+ def update_products(params = {}, headers = {})
147
+ perform_call(__method__, params, headers)
148
+ end
149
+
150
+ # @param [Hash] params a hash of params to be passed to the service
151
+ # @option params [String] content_view_definition_id content view definition identifier
152
+ #
153
+ # @param [Hash] headers additional http headers
154
+ # @return [Array] First item: parsed data; second item: raw body
155
+ def list_all_products(params = {}, headers = {})
156
+ perform_call(__method__, params, headers)
157
+ end
158
+
97
159
  end
98
160
  end
99
161
  end
@@ -0,0 +1,70 @@
1
+ module KatelloApi
2
+ module Resources
3
+ class CustomInfo < KatelloApi::Base
4
+ def self.doc
5
+ @doc ||= KatelloApi.doc['resources']["custom_info"]
6
+ end
7
+
8
+ # @param [Hash] params a hash of params to be passed to the service
9
+ # @option params [String] informable_id resource identifier
10
+ # @option params [Hash] custom_info
11
+ # allowed keys are:
12
+ # * keyname [String]
13
+ # * value [String]
14
+ # @option params [String] informable_type name of the resource
15
+ #
16
+ # @param [Hash] headers additional http headers
17
+ # @return [Array] First item: parsed data; second item: raw body
18
+ def create(params = {}, headers = {})
19
+ perform_call(__method__, params, headers)
20
+ end
21
+
22
+ # @param [Hash] params a hash of params to be passed to the service
23
+ # @option params [String] informable_id resource identifier
24
+ # @option params [String] informable_type name of the resource
25
+ #
26
+ # @param [Hash] headers additional http headers
27
+ # @return [Array] First item: parsed data; second item: raw body
28
+ def index(params = {}, headers = {})
29
+ perform_call(__method__, params, headers)
30
+ end
31
+
32
+ # @param [Hash] params a hash of params to be passed to the service
33
+ # @option params [String] informable_id resource identifier
34
+ # @option params [String] informable_type name of the resource
35
+ # @option params [String] keyname custom info key
36
+ #
37
+ # @param [Hash] headers additional http headers
38
+ # @return [Array] First item: parsed data; second item: raw body
39
+ def show(params = {}, headers = {})
40
+ perform_call(__method__, params, headers)
41
+ end
42
+
43
+ # @param [Hash] params a hash of params to be passed to the service
44
+ # @option params [String] informable_id resource identifier
45
+ # @option params [Hash] custom_info
46
+ # allowed keys are:
47
+ # * value [String]
48
+ # @option params [String] informable_type name of the resource
49
+ # @option params [String] keyname custom info key
50
+ #
51
+ # @param [Hash] headers additional http headers
52
+ # @return [Array] First item: parsed data; second item: raw body
53
+ def update(params = {}, headers = {})
54
+ perform_call(__method__, params, headers)
55
+ end
56
+
57
+ # @param [Hash] params a hash of params to be passed to the service
58
+ # @option params [String] informable_id resource identifier
59
+ # @option params [String] informable_type name of the resource
60
+ # @option params [String] keyname custom info key
61
+ #
62
+ # @param [Hash] headers additional http headers
63
+ # @return [Array] First item: parsed data; second item: raw body
64
+ def destroy(params = {}, headers = {})
65
+ perform_call(__method__, params, headers)
66
+ end
67
+
68
+ end
69
+ end
70
+ end
@@ -7,13 +7,17 @@ module KatelloApi
7
7
 
8
8
  # @param [Hash] params a hash of params to be passed to the service
9
9
  # @option params [Object] environment_id Part of +/api/environments/:environment_id/distributors+ path
10
- # @option params [Hash] facts key-value hash of distributor-specific facts
11
- # @option params [String] installedProducts list of products installed on the distributor
12
- # @option params [String] location physical of the distributor
13
- # @option params [String] name name of the distributor
14
- # @option params [String] releaseVer release of the os. the $releasever variable in repo url will be replaced with this value
15
- # @option params [String, nil] serviceLevel a service level for auto-healing process, e.g. self-support
16
- # @option params [String] type type of the distributor, it should always be ‘distributor’
10
+ # @option params [Hash] distributor
11
+ # allowed keys are:
12
+ # * capabilities [Array, nil] list of subscription capabilities
13
+ # * facts [Hash, nil] key-value hash of distributor-specific facts
14
+ # * installedProducts [Array, nil] list of products installed on the distributor
15
+ # * location [String, nil] physical of the distributor
16
+ # * name [String] name of the distributor
17
+ # * releaseVer [String, nil] release of the os. the $releasever variable in repo url will be replaced with this value
18
+ # * serviceLevel [String, nil] a service level for auto-healing process, e.g. self-support
19
+ # * type [String] type of the distributor, it should always be ‘distributor’
20
+ # * version [String, nil] version of the distributor. defaults to the latest if not given.
17
21
  #
18
22
  # @param [Hash] headers additional http headers
19
23
  # @return [Array] First item: parsed data; second item: raw body
@@ -23,12 +27,16 @@ module KatelloApi
23
27
 
24
28
  # @param [Hash] params a hash of params to be passed to the service
25
29
  # @option params [Object] id Part of +/api/distributors/:id+ path
26
- # @option params [Hash] facts key-value hash of distributor-specific facts
27
- # @option params [String] installedProducts list of products installed on the distributor
28
- # @option params [String] location physical of the distributor
29
- # @option params [String] name name of the distributor
30
- # @option params [String] releaseVer release of the os. the $releasever variable in repo url will be replaced with this value
31
- # @option params [String, nil] serviceLevel a service level for auto-healing process, e.g. self-support
30
+ # @option params [Array] capabilities for backwards capability with red hat hosted candlepin - list of subscription capabilities
31
+ # @option params [Hash] distributor
32
+ # allowed keys are:
33
+ # * capabilities [Array, nil] list of subscription capabilities
34
+ # * facts [Hash, nil] key-value hash of distributor-specific facts
35
+ # * installedProducts [Array, nil] list of products installed on the distributor
36
+ # * location [String, nil] physical of the distributor
37
+ # * name [String] name of the distributor
38
+ # * releaseVer [String, nil] release of the os. the $releasever variable in repo url will be replaced with this value
39
+ # * serviceLevel [String, nil] a service level for auto-healing process, e.g. self-support
32
40
  #
33
41
  # @param [Hash] headers additional http headers
34
42
  # @return [Array] First item: parsed data; second item: raw body
@@ -62,7 +70,7 @@ module KatelloApi
62
70
  #
63
71
  # @param [Hash] headers additional http headers
64
72
  # @return [Array] First item: parsed data; second item: raw body
65
- def destroy(params = {}, headers = {})
73
+ def export(params = {}, headers = {})
66
74
  perform_call(__method__, params, headers)
67
75
  end
68
76
 
@@ -71,17 +79,16 @@ module KatelloApi
71
79
  #
72
80
  # @param [Hash] headers additional http headers
73
81
  # @return [Array] First item: parsed data; second item: raw body
74
- def pools(params = {}, headers = {})
82
+ def destroy(params = {}, headers = {})
75
83
  perform_call(__method__, params, headers)
76
84
  end
77
85
 
78
86
  # @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
87
+ # @option params [String] id uuid of the distributor
81
88
  #
82
89
  # @param [Hash] headers additional http headers
83
90
  # @return [Array] First item: parsed data; second item: raw body
84
- def report(params = {}, headers = {})
91
+ def pools(params = {}, headers = {})
85
92
  perform_call(__method__, params, headers)
86
93
  end
87
94
 
@@ -105,6 +112,14 @@ module KatelloApi
105
112
  perform_call(__method__, params, headers)
106
113
  end
107
114
 
115
+ # @param [Hash] params a hash of params to be passed to the service
116
+ #
117
+ # @param [Hash] headers additional http headers
118
+ # @return [Array] First item: parsed data; second item: raw body
119
+ def versions(params = {}, headers = {})
120
+ perform_call(__method__, params, headers)
121
+ end
122
+
108
123
  end
109
124
  end
110
125
  end