katello_api 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -6,13 +6,13 @@
6
6
  <title>
7
7
  Class: KatelloApi::Base
8
8
 
9
- &mdash; Documentation by YARD 0.8.5.2
9
+ &mdash; Documentation by YARD 0.8.7.3
10
10
 
11
11
  </title>
12
12
 
13
- <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
14
14
 
15
- <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
16
16
 
17
17
  <script type="text/javascript" charset="utf-8">
18
18
  hasFrames = window.top.frames.main ? true : false;
@@ -101,7 +101,7 @@
101
101
 
102
102
  <div id="subclasses">
103
103
  <h2>Direct Known Subclasses</h2>
104
- <p class="children"><span class='object_link'><a href="Resources/ActivationKey.html" title="KatelloApi::Resources::ActivationKey (class)">Resources::ActivationKey</a></span>, <span class='object_link'><a href="Resources/Architecture.html" title="KatelloApi::Resources::Architecture (class)">Resources::Architecture</a></span>, <span class='object_link'><a href="Resources/Changeset.html" title="KatelloApi::Resources::Changeset (class)">Resources::Changeset</a></span>, <span class='object_link'><a href="Resources/ChangesetsContent.html" title="KatelloApi::Resources::ChangesetsContent (class)">Resources::ChangesetsContent</a></span>, <span class='object_link'><a href="Resources/ComputeResource.html" title="KatelloApi::Resources::ComputeResource (class)">Resources::ComputeResource</a></span>, <span class='object_link'><a href="Resources/ConfigTemplate.html" title="KatelloApi::Resources::ConfigTemplate (class)">Resources::ConfigTemplate</a></span>, <span class='object_link'><a href="Resources/ContentView.html" title="KatelloApi::Resources::ContentView (class)">Resources::ContentView</a></span>, <span class='object_link'><a href="Resources/ContentViewDefinition.html" title="KatelloApi::Resources::ContentViewDefinition (class)">Resources::ContentViewDefinition</a></span>, <span class='object_link'><a href="Resources/Crl.html" title="KatelloApi::Resources::Crl (class)">Resources::Crl</a></span>, <span class='object_link'><a href="Resources/Distribution.html" title="KatelloApi::Resources::Distribution (class)">Resources::Distribution</a></span>, <span class='object_link'><a href="Resources/Distributor.html" title="KatelloApi::Resources::Distributor (class)">Resources::Distributor</a></span>, <span class='object_link'><a href="Resources/Domain.html" title="KatelloApi::Resources::Domain (class)">Resources::Domain</a></span>, <span class='object_link'><a href="Resources/Environment.html" title="KatelloApi::Resources::Environment (class)">Resources::Environment</a></span>, <span class='object_link'><a href="Resources/Erratum.html" title="KatelloApi::Resources::Erratum (class)">Resources::Erratum</a></span>, <span class='object_link'><a href="Resources/GpgKey.html" title="KatelloApi::Resources::GpgKey (class)">Resources::GpgKey</a></span>, <span class='object_link'><a href="Resources/HardwareModel.html" title="KatelloApi::Resources::HardwareModel (class)">Resources::HardwareModel</a></span>, <span class='object_link'><a href="Resources/Organization.html" title="KatelloApi::Resources::Organization (class)">Resources::Organization</a></span>, <span class='object_link'><a href="Resources/Package.html" title="KatelloApi::Resources::Package (class)">Resources::Package</a></span>, <span class='object_link'><a href="Resources/Permission.html" title="KatelloApi::Resources::Permission (class)">Resources::Permission</a></span>, <span class='object_link'><a href="Resources/Ping.html" title="KatelloApi::Resources::Ping (class)">Resources::Ping</a></span>, <span class='object_link'><a href="Resources/Product.html" title="KatelloApi::Resources::Product (class)">Resources::Product</a></span>, <span class='object_link'><a href="Resources/Provider.html" title="KatelloApi::Resources::Provider (class)">Resources::Provider</a></span>, <span class='object_link'><a href="Resources/Repository.html" title="KatelloApi::Resources::Repository (class)">Resources::Repository</a></span>, <span class='object_link'><a href="Resources/RepositorySet.html" title="KatelloApi::Resources::RepositorySet (class)">Resources::RepositorySet</a></span>, <span class='object_link'><a href="Resources/Role.html" title="KatelloApi::Resources::Role (class)">Resources::Role</a></span>, <span class='object_link'><a href="Resources/RoleLdapGroup.html" title="KatelloApi::Resources::RoleLdapGroup (class)">Resources::RoleLdapGroup</a></span>, <span class='object_link'><a href="Resources/SmartProxy.html" title="KatelloApi::Resources::SmartProxy (class)">Resources::SmartProxy</a></span>, <span class='object_link'><a href="Resources/Statu.html" title="KatelloApi::Resources::Statu (class)">Resources::Statu</a></span>, <span class='object_link'><a href="Resources/Subnet.html" title="KatelloApi::Resources::Subnet (class)">Resources::Subnet</a></span>, <span class='object_link'><a href="Resources/Subscription.html" title="KatelloApi::Resources::Subscription (class)">Resources::Subscription</a></span>, <span class='object_link'><a href="Resources/Sync.html" title="KatelloApi::Resources::Sync (class)">Resources::Sync</a></span>, <span class='object_link'><a href="Resources/SyncPlan.html" title="KatelloApi::Resources::SyncPlan (class)">Resources::SyncPlan</a></span>, <span class='object_link'><a href="Resources/System.html" title="KatelloApi::Resources::System (class)">Resources::System</a></span>, <span class='object_link'><a href="Resources/SystemGroup.html" title="KatelloApi::Resources::SystemGroup (class)">Resources::SystemGroup</a></span>, <span class='object_link'><a href="Resources/SystemGroupErratum.html" title="KatelloApi::Resources::SystemGroupErratum (class)">Resources::SystemGroupErratum</a></span>, <span class='object_link'><a href="Resources/SystemGroupPackage.html" title="KatelloApi::Resources::SystemGroupPackage (class)">Resources::SystemGroupPackage</a></span>, <span class='object_link'><a href="Resources/SystemPackage.html" title="KatelloApi::Resources::SystemPackage (class)">Resources::SystemPackage</a></span>, <span class='object_link'><a href="Resources/Task.html" title="KatelloApi::Resources::Task (class)">Resources::Task</a></span>, <span class='object_link'><a href="Resources/Template.html" title="KatelloApi::Resources::Template (class)">Resources::Template</a></span>, <span class='object_link'><a href="Resources/TemplatesContent.html" title="KatelloApi::Resources::TemplatesContent (class)">Resources::TemplatesContent</a></span>, <span class='object_link'><a href="Resources/Uebercert.html" title="KatelloApi::Resources::Uebercert (class)">Resources::Uebercert</a></span>, <span class='object_link'><a href="Resources/User.html" title="KatelloApi::Resources::User (class)">Resources::User</a></span></p>
104
+ <p class="children"><span class='object_link'><a href="Resources/About.html" title="KatelloApi::Resources::About (class)">Resources::About</a></span>, <span class='object_link'><a href="Resources/ActivationKey.html" title="KatelloApi::Resources::ActivationKey (class)">Resources::ActivationKey</a></span>, <span class='object_link'><a href="Resources/Architecture.html" title="KatelloApi::Resources::Architecture (class)">Resources::Architecture</a></span>, <span class='object_link'><a href="Resources/Changeset.html" title="KatelloApi::Resources::Changeset (class)">Resources::Changeset</a></span>, <span class='object_link'><a href="Resources/ChangesetsContent.html" title="KatelloApi::Resources::ChangesetsContent (class)">Resources::ChangesetsContent</a></span>, <span class='object_link'><a href="Resources/ComputeResource.html" title="KatelloApi::Resources::ComputeResource (class)">Resources::ComputeResource</a></span>, <span class='object_link'><a href="Resources/ConfigTemplate.html" title="KatelloApi::Resources::ConfigTemplate (class)">Resources::ConfigTemplate</a></span>, <span class='object_link'><a href="Resources/ContentUpload.html" title="KatelloApi::Resources::ContentUpload (class)">Resources::ContentUpload</a></span>, <span class='object_link'><a href="Resources/ContentView.html" title="KatelloApi::Resources::ContentView (class)">Resources::ContentView</a></span>, <span class='object_link'><a href="Resources/ContentViewDefinition.html" title="KatelloApi::Resources::ContentViewDefinition (class)">Resources::ContentViewDefinition</a></span>, <span class='object_link'><a href="Resources/Crl.html" title="KatelloApi::Resources::Crl (class)">Resources::Crl</a></span>, <span class='object_link'><a href="Resources/CustomInfo.html" title="KatelloApi::Resources::CustomInfo (class)">Resources::CustomInfo</a></span>, <span class='object_link'><a href="Resources/Distribution.html" title="KatelloApi::Resources::Distribution (class)">Resources::Distribution</a></span>, <span class='object_link'><a href="Resources/Distributor.html" title="KatelloApi::Resources::Distributor (class)">Resources::Distributor</a></span>, <span class='object_link'><a href="Resources/Domain.html" title="KatelloApi::Resources::Domain (class)">Resources::Domain</a></span>, <span class='object_link'><a href="Resources/Environment.html" title="KatelloApi::Resources::Environment (class)">Resources::Environment</a></span>, <span class='object_link'><a href="Resources/Erratum.html" title="KatelloApi::Resources::Erratum (class)">Resources::Erratum</a></span>, <span class='object_link'><a href="Resources/Filter.html" title="KatelloApi::Resources::Filter (class)">Resources::Filter</a></span>, <span class='object_link'><a href="Resources/FilterRule.html" title="KatelloApi::Resources::FilterRule (class)">Resources::FilterRule</a></span>, <span class='object_link'><a href="Resources/GpgKey.html" title="KatelloApi::Resources::GpgKey (class)">Resources::GpgKey</a></span>, <span class='object_link'><a href="Resources/HardwareModel.html" title="KatelloApi::Resources::HardwareModel (class)">Resources::HardwareModel</a></span>, <span class='object_link'><a href="Resources/Organization.html" title="KatelloApi::Resources::Organization (class)">Resources::Organization</a></span>, <span class='object_link'><a href="Resources/OrganizationDefaultInfo.html" title="KatelloApi::Resources::OrganizationDefaultInfo (class)">Resources::OrganizationDefaultInfo</a></span>, <span class='object_link'><a href="Resources/Package.html" title="KatelloApi::Resources::Package (class)">Resources::Package</a></span>, <span class='object_link'><a href="Resources/Permission.html" title="KatelloApi::Resources::Permission (class)">Resources::Permission</a></span>, <span class='object_link'><a href="Resources/Ping.html" title="KatelloApi::Resources::Ping (class)">Resources::Ping</a></span>, <span class='object_link'><a href="Resources/Product.html" title="KatelloApi::Resources::Product (class)">Resources::Product</a></span>, <span class='object_link'><a href="Resources/Provider.html" title="KatelloApi::Resources::Provider (class)">Resources::Provider</a></span>, <span class='object_link'><a href="Resources/PuppetModule.html" title="KatelloApi::Resources::PuppetModule (class)">Resources::PuppetModule</a></span>, <span class='object_link'><a href="Resources/Repository.html" title="KatelloApi::Resources::Repository (class)">Resources::Repository</a></span>, <span class='object_link'><a href="Resources/RepositorySet.html" title="KatelloApi::Resources::RepositorySet (class)">Resources::RepositorySet</a></span>, <span class='object_link'><a href="Resources/Role.html" title="KatelloApi::Resources::Role (class)">Resources::Role</a></span>, <span class='object_link'><a href="Resources/RoleLdapGroup.html" title="KatelloApi::Resources::RoleLdapGroup (class)">Resources::RoleLdapGroup</a></span>, <span class='object_link'><a href="Resources/SmartProxy.html" title="KatelloApi::Resources::SmartProxy (class)">Resources::SmartProxy</a></span>, <span class='object_link'><a href="Resources/Statu.html" title="KatelloApi::Resources::Statu (class)">Resources::Statu</a></span>, <span class='object_link'><a href="Resources/Status.html" title="KatelloApi::Resources::Status (class)">Resources::Status</a></span>, <span class='object_link'><a href="Resources/Subnet.html" title="KatelloApi::Resources::Subnet (class)">Resources::Subnet</a></span>, <span class='object_link'><a href="Resources/Subscription.html" title="KatelloApi::Resources::Subscription (class)">Resources::Subscription</a></span>, <span class='object_link'><a href="Resources/Sync.html" title="KatelloApi::Resources::Sync (class)">Resources::Sync</a></span>, <span class='object_link'><a href="Resources/SyncPlan.html" title="KatelloApi::Resources::SyncPlan (class)">Resources::SyncPlan</a></span>, <span class='object_link'><a href="Resources/System.html" title="KatelloApi::Resources::System (class)">Resources::System</a></span>, <span class='object_link'><a href="Resources/SystemErratum.html" title="KatelloApi::Resources::SystemErratum (class)">Resources::SystemErratum</a></span>, <span class='object_link'><a href="Resources/SystemGroup.html" title="KatelloApi::Resources::SystemGroup (class)">Resources::SystemGroup</a></span>, <span class='object_link'><a href="Resources/SystemGroupErratum.html" title="KatelloApi::Resources::SystemGroupErratum (class)">Resources::SystemGroupErratum</a></span>, <span class='object_link'><a href="Resources/SystemGroupPackage.html" title="KatelloApi::Resources::SystemGroupPackage (class)">Resources::SystemGroupPackage</a></span>, <span class='object_link'><a href="Resources/SystemPackage.html" title="KatelloApi::Resources::SystemPackage (class)">Resources::SystemPackage</a></span>, <span class='object_link'><a href="Resources/SystemsBulkAction.html" title="KatelloApi::Resources::SystemsBulkAction (class)">Resources::SystemsBulkAction</a></span>, <span class='object_link'><a href="Resources/Task.html" title="KatelloApi::Resources::Task (class)">Resources::Task</a></span>, <span class='object_link'><a href="Resources/Template.html" title="KatelloApi::Resources::Template (class)">Resources::Template</a></span>, <span class='object_link'><a href="Resources/TemplatesContent.html" title="KatelloApi::Resources::TemplatesContent (class)">Resources::TemplatesContent</a></span>, <span class='object_link'><a href="Resources/Uebercert.html" title="KatelloApi::Resources::Uebercert (class)">Resources::Uebercert</a></span>, <span class='object_link'><a href="Resources/User.html" title="KatelloApi::Resources::User (class)">Resources::User</a></span></p>
105
105
  </div>
106
106
 
107
107
  <h2>Constant Summary</h2>
@@ -111,8 +111,7 @@
111
111
  <dt id="API_VERSION-constant" class="">API_VERSION =
112
112
 
113
113
  </dt>
114
- <dd><pre class="code"><span class='string val'>&quot;1.0&quot;</span>
115
- </pre></dd>
114
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>2</span><span class='tstring_end'>&quot;</span></span></pre></dd>
116
115
 
117
116
  </dl>
118
117
 
@@ -145,9 +144,8 @@
145
144
 
146
145
 
147
146
 
148
- <span class="summary_desc"><div class='inline'><p>
149
- Returns the value of attribute client.
150
- </p>
147
+ <span class="summary_desc"><div class='inline'>
148
+ <p>Returns the value of attribute client.</p>
151
149
  </div></span>
152
150
 
153
151
  </li>
@@ -175,9 +173,8 @@ Returns the value of attribute client.
175
173
 
176
174
 
177
175
 
178
- <span class="summary_desc"><div class='inline'><p>
179
- Returns the value of attribute config.
180
- </p>
176
+ <span class="summary_desc"><div class='inline'>
177
+ <p>Returns the value of attribute config.</p>
181
178
  </div></span>
182
179
 
183
180
  </li>
@@ -296,7 +293,7 @@ Returns the value of attribute config.
296
293
  <li class="public ">
297
294
  <span class="summary_signature">
298
295
 
299
- <a href="#initialize-instance_method" title="#initialize (instance method)">- (Base) <strong>initialize</strong>(config, options = { }) </a>
296
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (Base) <strong>initialize</strong>(config, options = {}) </a>
300
297
 
301
298
 
302
299
 
@@ -312,9 +309,8 @@ Returns the value of attribute config.
312
309
 
313
310
 
314
311
 
315
- <span class="summary_desc"><div class='inline'><p>
316
- A new instance of Base.
317
- </p>
312
+ <span class="summary_desc"><div class='inline'>
313
+ <p>A new instance of Base.</p>
318
314
  </div></span>
319
315
 
320
316
  </li>
@@ -373,7 +369,7 @@ A new instance of Base.
373
369
  <div class="method_details first">
374
370
  <h3 class="signature first" id="initialize-instance_method">
375
371
 
376
- - (<tt><span class='object_link'><a href="" title="KatelloApi::Base (class)">Base</a></span></tt>) <strong>initialize</strong>(config, options = { })
372
+ - (<tt><span class='object_link'><a href="" title="KatelloApi::Base (class)">Base</a></span></tt>) <strong>initialize</strong>(config, options = {})
377
373
 
378
374
 
379
375
 
@@ -381,9 +377,8 @@ A new instance of Base.
381
377
 
382
378
  </h3><div class="docstring">
383
379
  <div class="discussion">
384
- <p>
385
- A new instance of Base
386
- </p>
380
+
381
+ <p>Returns a new instance of Base</p>
387
382
 
388
383
 
389
384
  </div>
@@ -408,24 +403,25 @@ A new instance of Base
408
403
  39
409
404
  40
410
405
  41
411
- 42</pre>
406
+ 42
407
+ 43</pre>
412
408
  </td>
413
409
  <td>
414
410
  <pre class="code"><span class="info file"># File 'lib/katello_api/base.rb', line 31</span>
415
411
 
416
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='rubyid_config identifier id'>config</span><span class='comma token'>,</span> <span class='rubyid_options identifier id'>options</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span> <span class='rbrace token'>}</span><span class='rparen token'>)</span>
417
- <span class='rubyid_@client ivar id'>@client</span> <span class='assign token'>=</span> <span class='rubyid_RestClient constant id'>RestClient</span><span class='colon2 op'>::</span><span class='rubyid_Resource constant id'>Resource</span><span class='dot token'>.</span><span class='rubyid_new identifier id'>new</span><span class='lparen token'>(</span>
418
- <span class='rubyid_config identifier id'>config</span><span class='lbrack token'>[</span><span class='symbol val'>:base_url</span><span class='rbrack token'>]</span><span class='comma token'>,</span>
419
- <span class='lbrace token'>{</span> <span class='symbol val'>:user</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='rubyid_config identifier id'>config</span><span class='lbrack token'>[</span><span class='symbol val'>:username</span><span class='rbrack token'>]</span><span class='comma token'>,</span>
420
- <span class='symbol val'>:password</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='rubyid_config identifier id'>config</span><span class='lbrack token'>[</span><span class='symbol val'>:password</span><span class='rbrack token'>]</span><span class='comma token'>,</span>
421
- <span class='symbol val'>:oauth</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='rubyid_config identifier id'>config</span><span class='lbrack token'>[</span><span class='symbol val'>:oauth</span><span class='rbrack token'>]</span><span class='comma token'>,</span>
422
- <span class='symbol val'>:headers</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lbrace token'>{</span> <span class='symbol val'>:content_type</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>'application/json'</span><span class='comma token'>,</span>
423
- <span class='symbol val'>:accept</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='dstring node'>&quot;application/json;version=#{API_VERSION}&quot;</span><span class='comma token'>,</span>
424
- <span class='string val'>'HTTP_KATELLO_USER'</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>'admin'</span> <span class='rbrace token'>}</span>
425
- <span class='rbrace token'>}</span><span class='dot token'>.</span><span class='rubyid_merge identifier id'>merge</span><span class='lparen token'>(</span><span class='rubyid_options identifier id'>options</span><span class='rparen token'>)</span><span class='rparen token'>)</span>
426
- <span class='rubyid_@config ivar id'>@config</span> <span class='assign token'>=</span> <span class='rubyid_config identifier id'>config</span>
427
- <span class='rubyid_end end kw'>end</span>
428
- </pre>
412
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_config'>config</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
413
+ <span class='id identifier rubyid_headers'>headers</span> <span class='op'>=</span> <span class='lbrace'>{</span> <span class='symbol'>:content_type</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>application/json</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
414
+ <span class='symbol'>:accept</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>application/json,version=</span><span class='embexpr_beg'>#{</span><span class='const'>API_VERSION</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span> <span class='rbrace'>}</span>
415
+
416
+ <span class='ivar'>@client</span> <span class='op'>=</span> <span class='const'>RestClient</span><span class='op'>::</span><span class='const'>Resource</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span>
417
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_config'>config</span><span class='lbracket'>[</span><span class='symbol'>:base_url</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='tstring_content'>/katello</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
418
+ <span class='lbrace'>{</span> <span class='symbol'>:user</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_config'>config</span><span class='lbracket'>[</span><span class='symbol'>:username</span><span class='rbracket'>]</span><span class='comma'>,</span>
419
+ <span class='symbol'>:password</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_config'>config</span><span class='lbracket'>[</span><span class='symbol'>:password</span><span class='rbracket'>]</span><span class='comma'>,</span>
420
+ <span class='symbol'>:oauth</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_config'>config</span><span class='lbracket'>[</span><span class='symbol'>:oauth</span><span class='rbracket'>]</span><span class='comma'>,</span>
421
+ <span class='symbol'>:headers</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_headers'>headers</span>
422
+ <span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span><span class='rparen'>)</span>
423
+ <span class='ivar'>@config</span> <span class='op'>=</span> <span class='id identifier rubyid_config'>config</span>
424
+ <span class='kw'>end</span></pre>
429
425
  </td>
430
426
  </tr>
431
427
  </table>
@@ -449,9 +445,8 @@ A new instance of Base
449
445
 
450
446
  </h3><div class="docstring">
451
447
  <div class="discussion">
452
- <p>
453
- Returns the value of attribute client
454
- </p>
448
+
449
+ <p>Returns the value of attribute client</p>
455
450
 
456
451
 
457
452
  </div>
@@ -472,10 +467,9 @@ Returns the value of attribute client
472
467
  <td>
473
468
  <pre class="code"><span class="info file"># File 'lib/katello_api/base.rb', line 29</span>
474
469
 
475
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_client identifier id'>client</span>
476
- <span class='rubyid_@client ivar id'>@client</span>
477
- <span class='rubyid_end end kw'>end</span>
478
- </pre>
470
+ <span class='kw'>def</span> <span class='id identifier rubyid_client'>client</span>
471
+ <span class='ivar'>@client</span>
472
+ <span class='kw'>end</span></pre>
479
473
  </td>
480
474
  </tr>
481
475
  </table>
@@ -494,9 +488,8 @@ Returns the value of attribute client
494
488
 
495
489
  </h3><div class="docstring">
496
490
  <div class="discussion">
497
- <p>
498
- Returns the value of attribute config
499
- </p>
491
+
492
+ <p>Returns the value of attribute config</p>
500
493
 
501
494
 
502
495
  </div>
@@ -517,10 +510,9 @@ Returns the value of attribute config
517
510
  <td>
518
511
  <pre class="code"><span class="info file"># File 'lib/katello_api/base.rb', line 29</span>
519
512
 
520
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_config identifier id'>config</span>
521
- <span class='rubyid_@config ivar id'>@config</span>
522
- <span class='rubyid_end end kw'>end</span>
523
- </pre>
513
+ <span class='kw'>def</span> <span class='id identifier rubyid_config'>config</span>
514
+ <span class='ivar'>@config</span>
515
+ <span class='kw'>end</span></pre>
524
516
  </td>
525
517
  </tr>
526
518
  </table>
@@ -570,17 +562,16 @@ Returns the value of attribute config
570
562
  <pre class="lines">
571
563
 
572
564
 
573
- 67
574
565
  68
575
- 69</pre>
566
+ 69
567
+ 70</pre>
576
568
  </td>
577
569
  <td>
578
- <pre class="code"><span class="info file"># File 'lib/katello_api/base.rb', line 67</span>
570
+ <pre class="code"><span class="info file"># File 'lib/katello_api/base.rb', line 68</span>
579
571
 
580
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_doc identifier id'>doc</span>
581
- <span class='rubyid_raise identifier id'>raise</span> <span class='rubyid_NotImplementedError constant id'>NotImplementedError</span>
582
- <span class='rubyid_end end kw'>end</span>
583
- </pre>
572
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_doc'>doc</span>
573
+ <span class='id identifier rubyid_raise'>raise</span> <span class='const'>NotImplementedError</span>
574
+ <span class='kw'>end</span></pre>
584
575
  </td>
585
576
  </tr>
586
577
  </table>
@@ -601,17 +592,16 @@ Returns the value of attribute config
601
592
  <pre class="lines">
602
593
 
603
594
 
604
- 75
605
595
  76
606
- 77</pre>
596
+ 77
597
+ 78</pre>
607
598
  </td>
608
599
  <td>
609
- <pre class="code"><span class="info file"># File 'lib/katello_api/base.rb', line 75</span>
600
+ <pre class="code"><span class="info file"># File 'lib/katello_api/base.rb', line 76</span>
610
601
 
611
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_method_doc identifier id'>method_doc</span><span class='lparen token'>(</span><span class='rubyid_method identifier id'>method</span><span class='rparen token'>)</span>
612
- <span class='rubyid_method_docs identifier id'>method_docs</span><span class='lbrack token'>[</span><span class='rubyid_method identifier id'>method</span><span class='dot token'>.</span><span class='rubyid_to_s identifier id'>to_s</span><span class='rbrack token'>]</span>
613
- <span class='rubyid_end end kw'>end</span>
614
- </pre>
602
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_method_doc'>method_doc</span><span class='lparen'>(</span><span class='id identifier rubyid_method'>method</span><span class='rparen'>)</span>
603
+ <span class='id identifier rubyid_method_docs'>method_docs</span><span class='lbracket'>[</span><span class='id identifier rubyid_method'>method</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='rbracket'>]</span>
604
+ <span class='kw'>end</span></pre>
615
605
  </td>
616
606
  </tr>
617
607
  </table>
@@ -632,17 +622,16 @@ Returns the value of attribute config
632
622
  <pre class="lines">
633
623
 
634
624
 
635
- 71
636
625
  72
637
- 73</pre>
626
+ 73
627
+ 74</pre>
638
628
  </td>
639
629
  <td>
640
- <pre class="code"><span class="info file"># File 'lib/katello_api/base.rb', line 71</span>
630
+ <pre class="code"><span class="info file"># File 'lib/katello_api/base.rb', line 72</span>
641
631
 
642
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_validation_hash identifier id'>validation_hash</span><span class='lparen token'>(</span><span class='rubyid_method identifier id'>method</span><span class='rparen token'>)</span>
643
- <span class='rubyid_validation_hashes identifier id'>validation_hashes</span><span class='lbrack token'>[</span><span class='rubyid_method identifier id'>method</span><span class='dot token'>.</span><span class='rubyid_to_s identifier id'>to_s</span><span class='rbrack token'>]</span>
644
- <span class='rubyid_end end kw'>end</span>
645
- </pre>
632
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_validation_hash'>validation_hash</span><span class='lparen'>(</span><span class='id identifier rubyid_method'>method</span><span class='rparen'>)</span>
633
+ <span class='id identifier rubyid_validation_hashes'>validation_hashes</span><span class='lbracket'>[</span><span class='id identifier rubyid_method'>method</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='rbracket'>]</span>
634
+ <span class='kw'>end</span></pre>
646
635
  </td>
647
636
  </tr>
648
637
  </table>
@@ -669,7 +658,6 @@ Returns the value of attribute config
669
658
  <pre class="lines">
670
659
 
671
660
 
672
- 53
673
661
  54
674
662
  55
675
663
  56
@@ -681,25 +669,25 @@ Returns the value of attribute config
681
669
  62
682
670
  63
683
671
  64
684
- 65</pre>
672
+ 65
673
+ 66</pre>
685
674
  </td>
686
675
  <td>
687
- <pre class="code"><span class="info file"># File 'lib/katello_api/base.rb', line 53</span>
688
-
689
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_http_call identifier id'>http_call</span><span class='lparen token'>(</span><span class='rubyid_http_method identifier id'>http_method</span><span class='comma token'>,</span> <span class='rubyid_path identifier id'>path</span><span class='comma token'>,</span> <span class='rubyid_params identifier id'>params</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span> <span class='rbrace token'>}</span><span class='comma token'>,</span> <span class='rubyid_headers identifier id'>headers</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span> <span class='rbrace token'>}</span><span class='rparen token'>)</span>
690
- <span class='rubyid_headers identifier id'>headers</span> <span class='opasgn op'>||=</span> <span class='lbrace token'>{</span> <span class='rbrace token'>}</span>
691
-
692
- <span class='rubyid_args identifier id'>args</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='rubyid_http_method identifier id'>http_method</span><span class='rbrack token'>]</span>
693
- <span class='rubyid_if if kw'>if</span> <span class='dstring node'>%w[post put]</span><span class='dot token'>.</span><span class='rubyid_include? fid id'>include?</span><span class='lparen token'>(</span><span class='rubyid_http_method identifier id'>http_method</span><span class='dot token'>.</span><span class='rubyid_to_s identifier id'>to_s</span><span class='rparen token'>)</span>
694
- <span class='rubyid_args identifier id'>args</span> <span class='lshft op'>&lt;&lt;</span> <span class='rubyid_params identifier id'>params</span><span class='dot token'>.</span><span class='rubyid_to_json identifier id'>to_json</span>
695
- <span class='rubyid_else else kw'>else</span>
696
- <span class='rubyid_headers identifier id'>headers</span><span class='lbrack token'>[</span><span class='symbol val'>:params</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='rubyid_params identifier id'>params</span> <span class='rubyid_if if_mod kw'>if</span> <span class='rubyid_params identifier id'>params</span>
697
- <span class='rubyid_end end kw'>end</span>
698
-
699
- <span class='rubyid_args identifier id'>args</span> <span class='lshft op'>&lt;&lt;</span> <span class='rubyid_headers identifier id'>headers</span> <span class='rubyid_if if_mod kw'>if</span> <span class='rubyid_headers identifier id'>headers</span>
700
- <span class='rubyid_process_data identifier id'>process_data</span> <span class='rubyid_client identifier id'>client</span><span class='lbrack token'>[</span><span class='rubyid_path identifier id'>path</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_send identifier id'>send</span><span class='lparen token'>(</span><span class='mult op'>*</span><span class='rubyid_args identifier id'>args</span><span class='rparen token'>)</span>
701
- <span class='rubyid_end end kw'>end</span>
702
- </pre>
676
+ <pre class="code"><span class="info file"># File 'lib/katello_api/base.rb', line 54</span>
677
+
678
+ <span class='kw'>def</span> <span class='id identifier rubyid_http_call'>http_call</span><span class='lparen'>(</span><span class='id identifier rubyid_http_method'>http_method</span><span class='comma'>,</span> <span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='lbrace'>{</span> <span class='rbrace'>}</span><span class='comma'>,</span> <span class='id identifier rubyid_headers'>headers</span> <span class='op'>=</span> <span class='lbrace'>{</span> <span class='rbrace'>}</span><span class='rparen'>)</span>
679
+ <span class='id identifier rubyid_headers'>headers</span> <span class='op'>||=</span> <span class='lbrace'>{</span> <span class='rbrace'>}</span>
680
+
681
+ <span class='id identifier rubyid_args'>args</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='id identifier rubyid_http_method'>http_method</span><span class='rbracket'>]</span>
682
+ <span class='kw'>if</span> <span class='qwords_beg'>%w[</span><span class='tstring_content'>post</span><span class='words_sep'> </span><span class='tstring_content'>put</span><span class='words_sep'>]</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='id identifier rubyid_http_method'>http_method</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='rparen'>)</span>
683
+ <span class='id identifier rubyid_args'>args</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_params'>params</span><span class='period'>.</span><span class='id identifier rubyid_to_json'>to_json</span>
684
+ <span class='kw'>else</span>
685
+ <span class='id identifier rubyid_headers'>headers</span><span class='lbracket'>[</span><span class='symbol'>:params</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_params'>params</span> <span class='kw'>if</span> <span class='id identifier rubyid_params'>params</span>
686
+ <span class='kw'>end</span>
687
+
688
+ <span class='id identifier rubyid_args'>args</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_headers'>headers</span> <span class='kw'>if</span> <span class='id identifier rubyid_headers'>headers</span>
689
+ <span class='id identifier rubyid_process_data'>process_data</span> <span class='id identifier rubyid_client'>client</span><span class='lbracket'>[</span><span class='id identifier rubyid_path'>path</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
690
+ <span class='kw'>end</span></pre>
703
691
  </td>
704
692
  </tr>
705
693
  </table>
@@ -720,27 +708,26 @@ Returns the value of attribute config
720
708
  <pre class="lines">
721
709
 
722
710
 
723
- 44
724
711
  45
725
712
  46
726
713
  47
727
714
  48
728
715
  49
729
716
  50
730
- 51</pre>
717
+ 51
718
+ 52</pre>
731
719
  </td>
732
720
  <td>
733
- <pre class="code"><span class="info file"># File 'lib/katello_api/base.rb', line 44</span>
734
-
735
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_perform_call identifier id'>perform_call</span><span class='lparen token'>(</span><span class='rubyid_method_name identifier id'>method_name</span><span class='comma token'>,</span> <span class='rubyid_params identifier id'>params</span><span class='comma token'>,</span> <span class='rubyid_headers identifier id'>headers</span><span class='rparen token'>)</span>
736
- <span class='rubyid_method_doc identifier id'>method_doc</span> <span class='assign token'>=</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_class identifier id'>class</span><span class='dot token'>.</span><span class='rubyid_method_doc identifier id'>method_doc</span><span class='lparen token'>(</span><span class='rubyid_method_name identifier id'>method_name</span><span class='rparen token'>)</span>
737
- <span class='rubyid_check_params identifier id'>check_params</span> <span class='rubyid_params identifier id'>params</span><span class='comma token'>,</span> <span class='symbol val'>:allowed</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='rubyid_method_doc identifier id'>method_doc</span><span class='lbrack token'>[</span><span class='string val'>'params'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_any? fid id'>any?</span><span class='comma token'>,</span> <span class='symbol val'>:method</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='rubyid_method_name identifier id'>method_name</span>
738
- <span class='rubyid_method_apis identifier id'>method_apis</span> <span class='assign token'>=</span> <span class='rubyid_method_doc identifier id'>method_doc</span><span class='lbrack token'>[</span><span class='string val'>'apis'</span><span class='rbrack token'>]</span>
739
- <span class='rubyid_api identifier id'>api</span> <span class='assign token'>=</span> <span class='rubyid_find_suitable_api_call identifier id'>find_suitable_api_call</span><span class='lparen token'>(</span><span class='rubyid_method_apis identifier id'>method_apis</span><span class='comma token'>,</span> <span class='rubyid_params identifier id'>params</span><span class='rparen token'>)</span>
740
- <span class='rubyid_url identifier id'>url</span><span class='comma token'>,</span> <span class='rubyid_params identifier id'>params</span> <span class='assign token'>=</span> <span class='rubyid_fill_params_in_url identifier id'>fill_params_in_url</span> <span class='rubyid_api identifier id'>api</span><span class='lbrack token'>[</span><span class='string val'>'api_url'</span><span class='rbrack token'>]</span><span class='comma token'>,</span> <span class='rubyid_params identifier id'>params</span>
741
- <span class='rubyid_return return kw'>return</span> <span class='rubyid_http_call identifier id'>http_call</span><span class='lparen token'>(</span><span class='rubyid_api identifier id'>api</span><span class='lbrack token'>[</span><span class='string val'>'http_method'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_downcase identifier id'>downcase</span><span class='comma token'>,</span> <span class='rubyid_url identifier id'>url</span><span class='comma token'>,</span> <span class='rubyid_params identifier id'>params</span><span class='comma token'>,</span> <span class='rubyid_headers identifier id'>headers</span><span class='rparen token'>)</span>
742
- <span class='rubyid_end end kw'>end</span>
743
- </pre>
721
+ <pre class="code"><span class="info file"># File 'lib/katello_api/base.rb', line 45</span>
722
+
723
+ <span class='kw'>def</span> <span class='id identifier rubyid_perform_call'>perform_call</span><span class='lparen'>(</span><span class='id identifier rubyid_method_name'>method_name</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span><span class='comma'>,</span> <span class='id identifier rubyid_headers'>headers</span><span class='rparen'>)</span>
724
+ <span class='id identifier rubyid_method_doc'>method_doc</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_method_doc'>method_doc</span><span class='lparen'>(</span><span class='id identifier rubyid_method_name'>method_name</span><span class='rparen'>)</span>
725
+ <span class='id identifier rubyid_check_params'>check_params</span> <span class='id identifier rubyid_params'>params</span><span class='comma'>,</span> <span class='symbol'>:allowed</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_method_doc'>method_doc</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>params</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_any?'>any?</span><span class='comma'>,</span> <span class='symbol'>:method</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_method_name'>method_name</span>
726
+ <span class='id identifier rubyid_method_apis'>method_apis</span> <span class='op'>=</span> <span class='id identifier rubyid_method_doc'>method_doc</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>apis</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
727
+ <span class='id identifier rubyid_api'>api</span> <span class='op'>=</span> <span class='id identifier rubyid_find_suitable_api_call'>find_suitable_api_call</span><span class='lparen'>(</span><span class='id identifier rubyid_method_apis'>method_apis</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span><span class='rparen'>)</span>
728
+ <span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='id identifier rubyid_fill_params_in_url'>fill_params_in_url</span> <span class='id identifier rubyid_api'>api</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>api_url</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span>
729
+ <span class='kw'>return</span> <span class='id identifier rubyid_http_call'>http_call</span><span class='lparen'>(</span><span class='id identifier rubyid_api'>api</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>http_method</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_downcase'>downcase</span><span class='comma'>,</span> <span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span><span class='comma'>,</span> <span class='id identifier rubyid_headers'>headers</span><span class='rparen'>)</span>
730
+ <span class='kw'>end</span></pre>
744
731
  </td>
745
732
  </tr>
746
733
  </table>
@@ -783,7 +770,6 @@ Returns the value of attribute config
783
770
  <pre class="lines">
784
771
 
785
772
 
786
- 79
787
773
  80
788
774
  81
789
775
  82
@@ -794,24 +780,24 @@ Returns the value of attribute config
794
780
  87
795
781
  88
796
782
  89
797
- 90</pre>
783
+ 90
784
+ 91</pre>
798
785
  </td>
799
786
  <td>
800
- <pre class="code"><span class="info file"># File 'lib/katello_api/base.rb', line 79</span>
787
+ <pre class="code"><span class="info file"># File 'lib/katello_api/base.rb', line 80</span>
801
788
 
802
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_validate_params! fid id'>validate_params!</span><span class='lparen token'>(</span><span class='rubyid_params identifier id'>params</span><span class='comma token'>,</span> <span class='rubyid_rules identifier id'>rules</span><span class='rparen token'>)</span>
803
- <span class='rubyid_return return kw'>return</span> <span class='rubyid_unless unless_mod kw'>unless</span> <span class='rubyid_params identifier id'>params</span><span class='dot token'>.</span><span class='rubyid_is_a? fid id'>is_a?</span><span class='lparen token'>(</span><span class='rubyid_Hash constant id'>Hash</span><span class='rparen token'>)</span>
789
+ <span class='kw'>def</span> <span class='id identifier rubyid_validate_params!'>validate_params!</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='comma'>,</span> <span class='id identifier rubyid_rules'>rules</span><span class='rparen'>)</span>
790
+ <span class='kw'>return</span> <span class='kw'>unless</span> <span class='id identifier rubyid_params'>params</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Hash</span><span class='rparen'>)</span>
804
791
 
805
- <span class='rubyid_invalid_keys identifier id'>invalid_keys</span> <span class='assign token'>=</span> <span class='rubyid_params identifier id'>params</span><span class='dot token'>.</span><span class='rubyid_keys identifier id'>keys</span><span class='dot token'>.</span><span class='rubyid_map identifier id'>map</span><span class='lparen token'>(</span><span class='bitand op'>&amp;</span><span class='symbol val'>:to_s</span><span class='rparen token'>)</span> <span class='minus op'>-</span> <span class='lparen token'>(</span><span class='rubyid_rules identifier id'>rules</span><span class='dot token'>.</span><span class='rubyid_is_a? fid id'>is_a?</span><span class='lparen token'>(</span><span class='rubyid_Hash constant id'>Hash</span><span class='rparen token'>)</span> <span class='question op'>?</span> <span class='rubyid_rules identifier id'>rules</span><span class='dot token'>.</span><span class='rubyid_keys identifier id'>keys</span> <span class='colon op'>:</span> <span class='rubyid_rules identifier id'>rules</span><span class='rparen token'>)</span>
806
- <span class='rubyid_raise identifier id'>raise</span> <span class='rubyid_ArgumentError constant id'>ArgumentError</span><span class='comma token'>,</span> <span class='dstring node'>&quot;Invalid keys: #{invalid_keys.join(&quot;, &quot;)}&quot;</span> <span class='rubyid_unless unless_mod kw'>unless</span> <span class='rubyid_invalid_keys identifier id'>invalid_keys</span><span class='dot token'>.</span><span class='rubyid_empty? fid id'>empty?</span>
792
+ <span class='id identifier rubyid_invalid_keys'>invalid_keys</span> <span class='op'>=</span> <span class='id identifier rubyid_params'>params</span><span class='period'>.</span><span class='id identifier rubyid_keys'>keys</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='symbol'>:to_s</span><span class='rparen'>)</span> <span class='op'>-</span> <span class='lparen'>(</span><span class='id identifier rubyid_rules'>rules</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Hash</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='id identifier rubyid_rules'>rules</span><span class='period'>.</span><span class='id identifier rubyid_keys'>keys</span> <span class='op'>:</span> <span class='id identifier rubyid_rules'>rules</span><span class='rparen'>)</span>
793
+ <span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Invalid keys: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_invalid_keys'>invalid_keys</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>, </span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>unless</span> <span class='id identifier rubyid_invalid_keys'>invalid_keys</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
807
794
 
808
- <span class='rubyid_if if kw'>if</span> <span class='rubyid_rules identifier id'>rules</span><span class='dot token'>.</span><span class='rubyid_is_a? fid id'>is_a?</span> <span class='rubyid_Hash constant id'>Hash</span>
809
- <span class='rubyid_rules identifier id'>rules</span><span class='dot token'>.</span><span class='rubyid_each identifier id'>each</span> <span class='rubyid_do do kw'>do</span> <span class='bitor op'>|</span><span class='rubyid_key identifier id'>key</span><span class='comma token'>,</span> <span class='rubyid_sub_keys identifier id'>sub_keys</span><span class='bitor op'>|</span>
810
- <span class='rubyid_validate_params! fid id'>validate_params!</span><span class='lparen token'>(</span><span class='rubyid_params identifier id'>params</span><span class='lbrack token'>[</span><span class='rubyid_key identifier id'>key</span><span class='rbrack token'>]</span><span class='comma token'>,</span> <span class='rubyid_sub_keys identifier id'>sub_keys</span><span class='rparen token'>)</span> <span class='rubyid_if if_mod kw'>if</span> <span class='rubyid_params identifier id'>params</span><span class='lbrack token'>[</span><span class='rubyid_key identifier id'>key</span><span class='rbrack token'>]</span>
811
- <span class='rubyid_end end kw'>end</span>
812
- <span class='rubyid_end end kw'>end</span>
813
- <span class='rubyid_end end kw'>end</span>
814
- </pre>
795
+ <span class='kw'>if</span> <span class='id identifier rubyid_rules'>rules</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Hash</span>
796
+ <span class='id identifier rubyid_rules'>rules</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_sub_keys'>sub_keys</span><span class='op'>|</span>
797
+ <span class='id identifier rubyid_validate_params!'>validate_params!</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='lbracket'>[</span><span class='id identifier rubyid_key'>key</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_sub_keys'>sub_keys</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_params'>params</span><span class='lbracket'>[</span><span class='id identifier rubyid_key'>key</span><span class='rbracket'>]</span>
798
+ <span class='kw'>end</span>
799
+ <span class='kw'>end</span>
800
+ <span class='kw'>end</span></pre>
815
801
  </td>
816
802
  </tr>
817
803
  </table>
@@ -822,9 +808,9 @@ Returns the value of attribute config
822
808
  </div>
823
809
 
824
810
  <div id="footer">
825
- Generated on Mon Mar 18 14:17:40 2013 by
811
+ Generated on Wed Jan 15 20:45:13 2014 by
826
812
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
827
- 0.8.5.2 (ruby-1.8.7).
813
+ 0.8.7.3 (ruby-1.9.3).
828
814
  </div>
829
815
 
830
816
  </body>