katello_api 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. data/.gitignore +2 -0
  2. data/Gemfile +2 -0
  3. data/README.rdoc +0 -4
  4. data/doc/KatelloApi/Base.html +831 -0
  5. data/doc/KatelloApi/Generator/Base.html +671 -0
  6. data/doc/KatelloApi/Generator.html +115 -0
  7. data/doc/KatelloApi/Resources/ActivationKey.html +1757 -0
  8. data/doc/KatelloApi/Resources/Architecture.html +1007 -0
  9. data/doc/KatelloApi/Resources/Changeset.html +1413 -0
  10. data/doc/KatelloApi/Resources/ChangesetsContent.html +2674 -0
  11. data/doc/KatelloApi/Resources/ComputeResource.html +1067 -0
  12. data/doc/KatelloApi/Resources/ConfigTemplate.html +1361 -0
  13. data/doc/KatelloApi/Resources/ContentView.html +938 -0
  14. data/doc/KatelloApi/Resources/ContentViewDefinition.html +1629 -0
  15. data/doc/KatelloApi/Resources/Crl.html +367 -0
  16. data/doc/KatelloApi/Resources/Distribution.html +560 -0
  17. data/doc/KatelloApi/Resources/Distributor.html +1892 -0
  18. data/doc/KatelloApi/Resources/Domain.html +1066 -0
  19. data/doc/KatelloApi/Resources/Environment.html +1645 -0
  20. data/doc/KatelloApi/Resources/Erratum.html +632 -0
  21. data/doc/KatelloApi/Resources/GpgKey.html +1220 -0
  22. data/doc/KatelloApi/Resources/HardwareModel.html +1025 -0
  23. data/doc/KatelloApi/Resources/Organization.html +1062 -0
  24. data/doc/KatelloApi/Resources/Package.html +728 -0
  25. data/doc/KatelloApi/Resources/Permission.html +1021 -0
  26. data/doc/KatelloApi/Resources/Ping.html +625 -0
  27. data/doc/KatelloApi/Resources/Product.html +1845 -0
  28. data/doc/KatelloApi/Resources/Provider.html +2237 -0
  29. data/doc/KatelloApi/Resources/Repository.html +1976 -0
  30. data/doc/KatelloApi/Resources/RepositorySet.html +770 -0
  31. data/doc/KatelloApi/Resources/Role.html +1257 -0
  32. data/doc/KatelloApi/Resources/RoleLdapGroup.html +728 -0
  33. data/doc/KatelloApi/Resources/SmartProxy.html +1054 -0
  34. data/doc/KatelloApi/Resources/Statu.html +367 -0
  35. data/doc/KatelloApi/Resources/Subnet.html +1007 -0
  36. data/doc/KatelloApi/Resources/Subscription.html +1064 -0
  37. data/doc/KatelloApi/Resources/Sync.html +826 -0
  38. data/doc/KatelloApi/Resources/SyncPlan.html +1148 -0
  39. data/doc/KatelloApi/Resources/System.html +3576 -0
  40. data/doc/KatelloApi/Resources/SystemGroup.html +2006 -0
  41. data/doc/KatelloApi/Resources/SystemGroupErratum.html +602 -0
  42. data/doc/KatelloApi/Resources/SystemGroupPackage.html +826 -0
  43. data/doc/KatelloApi/Resources/SystemPackage.html +770 -0
  44. data/doc/KatelloApi/Resources/Task.html +546 -0
  45. data/doc/KatelloApi/Resources/Template.html +1573 -0
  46. data/doc/KatelloApi/Resources/TemplatesContent.html +2268 -0
  47. data/doc/KatelloApi/Resources/Uebercert.html +406 -0
  48. data/doc/KatelloApi/Resources/User.html +1846 -0
  49. data/doc/KatelloApi/Resources.html +117 -0
  50. data/doc/KatelloApi.html +365 -0
  51. data/doc/_index.html +539 -0
  52. data/doc/class_list.html +53 -0
  53. data/doc/css/common.css +1 -0
  54. data/doc/css/full_list.css +57 -0
  55. data/doc/css/style.css +338 -0
  56. data/doc/file.README.html +127 -0
  57. data/doc/file_list.html +55 -0
  58. data/doc/frames.html +28 -0
  59. data/doc/index.html +127 -0
  60. data/doc/js/app.js +214 -0
  61. data/doc/js/full_list.js +173 -0
  62. data/doc/js/jquery.js +4 -0
  63. data/doc/method_list.html +2548 -0
  64. data/doc/top-level-namespace.html +112 -0
  65. data/lib/katello_api/base.rb +61 -6
  66. data/lib/katello_api/documentation.json +1 -0
  67. data/lib/katello_api/resources/activation_key.rb +51 -48
  68. data/lib/katello_api/resources/architecture.rb +19 -24
  69. data/lib/katello_api/resources/changeset.rb +39 -37
  70. data/lib/katello_api/resources/changesets_content.rb +64 -57
  71. data/lib/katello_api/resources/compute_resource.rb +37 -42
  72. data/lib/katello_api/resources/config_template.rb +40 -44
  73. data/lib/katello_api/resources/content_view.rb +14 -17
  74. data/lib/katello_api/resources/content_view_definition.rb +34 -42
  75. data/lib/katello_api/resources/crl.rb +3 -4
  76. data/lib/katello_api/resources/distribution.rb +8 -8
  77. data/lib/katello_api/resources/distributor.rb +35 -37
  78. data/lib/katello_api/resources/domain.rb +28 -32
  79. data/lib/katello_api/resources/environment.rb +38 -44
  80. data/lib/katello_api/resources/erratum.rb +9 -8
  81. data/lib/katello_api/resources/gpg_key.rb +28 -33
  82. data/lib/katello_api/resources/hardware_model.rb +25 -30
  83. data/lib/katello_api/resources/organization.rb +24 -26
  84. data/lib/katello_api/resources/package.rb +9 -12
  85. data/lib/katello_api/resources/permission.rb +21 -19
  86. data/lib/katello_api/resources/ping.rb +9 -12
  87. data/lib/katello_api/resources/product.rb +34 -43
  88. data/lib/katello_api/resources/provider.rb +55 -66
  89. data/lib/katello_api/resources/repository.rb +44 -55
  90. data/lib/katello_api/resources/repository_set.rb +9 -12
  91. data/lib/katello_api/resources/role.rb +35 -33
  92. data/lib/katello_api/resources/role_ldap_group.rb +10 -12
  93. data/lib/katello_api/resources/smart_proxy.rb +24 -28
  94. data/lib/katello_api/resources/statu.rb +3 -4
  95. data/lib/katello_api/resources/subnet.rb +19 -24
  96. data/lib/katello_api/resources/subscription.rb +16 -21
  97. data/lib/katello_api/resources/sync.rb +9 -12
  98. data/lib/katello_api/resources/sync_plan.rb +28 -33
  99. data/lib/katello_api/resources/system.rb +81 -90
  100. data/lib/katello_api/resources/system_group.rb +47 -57
  101. data/lib/katello_api/resources/system_group_erratum.rb +6 -8
  102. data/lib/katello_api/resources/system_group_package.rb +15 -18
  103. data/lib/katello_api/resources/system_package.rb +12 -15
  104. data/lib/katello_api/resources/task.rb +6 -8
  105. data/lib/katello_api/resources/template.rb +39 -47
  106. data/lib/katello_api/resources/templates_content.rb +40 -52
  107. data/lib/katello_api/resources/uebercert.rb +4 -4
  108. data/lib/katello_api/resources/user.rb +47 -50
  109. data/lib/katello_api/version.rb +1 -1
  110. data/lib/katello_api.rb +0 -13
  111. metadata +68 -4
@@ -11,10 +11,9 @@ module KatelloApi
11
11
  # @option params [String] product_id id of a product the repository will be contained in
12
12
  #
13
13
  # @param [Hash] headers additional http headers
14
- def enable(params = { }, headers = { })
15
- check_params params, :allowed => true, :method => __method__
16
- url, params = fill_params_in_url "/api/product/:product_id/repository_set/:id/enable", params
17
- call(:"post", url, params, headers)
14
+ # @return [Array] First item: parsed data; second item: raw body
15
+ def enable(params = {}, headers = {})
16
+ perform_call(__method__, params, headers)
18
17
  end
19
18
 
20
19
  # @param [Hash] params a hash of params to be passed to the service
@@ -23,10 +22,9 @@ module KatelloApi
23
22
  # @option params [String] product_id id of a product the repository will be contained in
24
23
  #
25
24
  # @param [Hash] headers additional http headers
26
- def disable(params = { }, headers = { })
27
- check_params params, :allowed => true, :method => __method__
28
- url, params = fill_params_in_url "/api/product/:product_id/repository_set/:id/disable", params
29
- call(:"post", url, params, headers)
25
+ # @return [Array] First item: parsed data; second item: raw body
26
+ def disable(params = {}, headers = {})
27
+ perform_call(__method__, params, headers)
30
28
  end
31
29
 
32
30
  # @param [Hash] params a hash of params to be passed to the service
@@ -34,10 +32,9 @@ module KatelloApi
34
32
  # @option params [String] product_id id of a product to list repository sets in
35
33
  #
36
34
  # @param [Hash] headers additional http headers
37
- def index(params = { }, headers = { })
38
- check_params params, :allowed => true, :method => __method__
39
- url, params = fill_params_in_url "/api/product/:product_id/repository_set", params
40
- call(:"get", url, params, headers)
35
+ # @return [Array] First item: parsed data; second item: raw body
36
+ def index(params = {}, headers = {})
37
+ perform_call(__method__, params, headers)
41
38
  end
42
39
 
43
40
  end
@@ -6,67 +6,69 @@ module KatelloApi
6
6
  end
7
7
 
8
8
  # @param [Hash] params a hash of params to be passed to the service
9
- # @option params [String] name
9
+ # @option params [Object] user_id Part of +/api/users/:user_id/roles+ path
10
+ # @option params [String] name
10
11
  #
11
12
  # @param [Hash] headers additional http headers
12
- def index(params = { }, headers = { })
13
- check_params params, :allowed => true, :method => __method__
14
- url, params = fill_params_in_url "/api/roles", params
15
- call(:"get", url, params, headers)
13
+ # @return [Array] First item: parsed data; second item: raw body
14
+ def index(params = {}, headers = {})
15
+ perform_call(__method__, params, headers)
16
16
  end
17
17
 
18
18
  # @param [Hash] params a hash of params to be passed to the service
19
+ # @option params [Object] id Part of +/api/roles/:id+ path
20
+ # @option params [Object] user_id Part of +/api/users/:user_id/roles/:id+ path
19
21
  #
20
22
  # @param [Hash] headers additional http headers
21
- def show(params = { }, headers = { })
22
- check_params params, :allowed => false, :method => __method__
23
- url, params = fill_params_in_url "/api/roles/:id", params
24
- call(:"get", url, params, headers)
23
+ # @return [Array] First item: parsed data; second item: raw body
24
+ def show(params = {}, headers = {})
25
+ perform_call(__method__, params, headers)
25
26
  end
26
27
 
27
28
  # @param [Hash] params a hash of params to be passed to the service
28
- # @option params [Hash] role
29
- # allowed keys are:
30
- # * description [String, nil],
31
- # * name [String],
29
+ # @option params [Object] user_id Part of +/api/users/:user_id/roles+ path
30
+ # @option params [Hash] role
31
+ # allowed keys are:
32
+ # * description [String, nil]
33
+ # * name [String]
32
34
  #
33
35
  # @param [Hash] headers additional http headers
34
- def create(params = { }, headers = { })
35
- check_params params, :allowed => true, :method => __method__
36
- url, params = fill_params_in_url "/api/roles", params
37
- call(:"post", url, params, headers)
36
+ # @return [Array] First item: parsed data; second item: raw body
37
+ def create(params = {}, headers = {})
38
+ perform_call(__method__, params, headers)
38
39
  end
39
40
 
40
41
  # @param [Hash] params a hash of params to be passed to the service
41
- # @option params [Hash] role
42
- # allowed keys are:
43
- # * description [String, nil],
44
- # * name [String],
42
+ # @option params [Object] id Part of +/api/roles/:id+ path
43
+ # @option params [Object] user_id Part of +/api/users/:user_id/roles/:id+ path
44
+ # @option params [Hash] role
45
+ # allowed keys are:
46
+ # * description [String, nil]
47
+ # * name [String]
45
48
  #
46
49
  # @param [Hash] headers additional http headers
47
- def update(params = { }, headers = { })
48
- check_params params, :allowed => true, :method => __method__
49
- url, params = fill_params_in_url "/api/roles/:id", params
50
- call(:"put", url, params, headers)
50
+ # @return [Array] First item: parsed data; second item: raw body
51
+ def update(params = {}, headers = {})
52
+ perform_call(__method__, params, headers)
51
53
  end
52
54
 
53
55
  # @param [Hash] params a hash of params to be passed to the service
56
+ # @option params [Object] id Part of +/api/roles/:id+ path
57
+ # @option params [Object] user_id Part of +/api/users/:user_id/roles/:id+ path
54
58
  #
55
59
  # @param [Hash] headers additional http headers
56
- def destroy(params = { }, headers = { })
57
- check_params params, :allowed => false, :method => __method__
58
- url, params = fill_params_in_url "/api/roles/:id", params
59
- call(:"delete", url, params, headers)
60
+ # @return [Array] First item: parsed data; second item: raw body
61
+ def destroy(params = {}, headers = {})
62
+ perform_call(__method__, params, headers)
60
63
  end
61
64
 
62
65
  # @param [Hash] params a hash of params to be passed to the service
63
66
  # @option params [String] organization_id with this option specified the listed tags are scoped to the organization.
64
67
  #
65
68
  # @param [Hash] headers additional http headers
66
- def available_verbs(params = { }, headers = { })
67
- check_params params, :allowed => true, :method => __method__
68
- url, params = fill_params_in_url "/api/roles/available_verbs", params
69
- call(:"get", url, params, headers)
69
+ # @return [Array] First item: parsed data; second item: raw body
70
+ def available_verbs(params = {}, headers = {})
71
+ perform_call(__method__, params, headers)
70
72
  end
71
73
 
72
74
  end
@@ -6,13 +6,13 @@ 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] role_id Part of +/api/roles/:role_id/ldap_groups+ path
9
10
  # @option params [String] name name of the ldap group
10
11
  #
11
12
  # @param [Hash] headers additional http headers
12
- def create(params = { }, headers = { })
13
- check_params params, :allowed => true, :method => __method__
14
- url, params = fill_params_in_url "/api/roles/:role_id/ldap_groups", params
15
- call(:"post", url, params, headers)
13
+ # @return [Array] First item: parsed data; second item: raw body
14
+ def create(params = {}, headers = {})
15
+ perform_call(__method__, params, headers)
16
16
  end
17
17
 
18
18
  # @param [Hash] params a hash of params to be passed to the service
@@ -20,20 +20,18 @@ module KatelloApi
20
20
  # @option params [String] role_id role identifier
21
21
  #
22
22
  # @param [Hash] headers additional http headers
23
- def destroy(params = { }, headers = { })
24
- check_params params, :allowed => true, :method => __method__
25
- url, params = fill_params_in_url "/api/roles/:role_id/ldap_groups/:id", params
26
- call(:"delete", url, params, headers)
23
+ # @return [Array] First item: parsed data; second item: raw body
24
+ def destroy(params = {}, headers = {})
25
+ perform_call(__method__, params, headers)
27
26
  end
28
27
 
29
28
  # @param [Hash] params a hash of params to be passed to the service
30
29
  # @option params [String] role_id role identifier
31
30
  #
32
31
  # @param [Hash] headers additional http headers
33
- def index(params = { }, headers = { })
34
- check_params params, :allowed => true, :method => __method__
35
- url, params = fill_params_in_url "/api/roles/:role_id/ldap_groups", params
36
- call(:"get", url, params, headers)
32
+ # @return [Array] First item: parsed data; second item: raw body
33
+ def index(params = {}, headers = {})
34
+ perform_call(__method__, params, headers)
37
35
  end
38
36
 
39
37
  end
@@ -10,56 +10,52 @@ module KatelloApi
10
10
  # @option params [String] search filter results
11
11
  #
12
12
  # @param [Hash] headers additional http headers
13
- def index(params = { }, headers = { })
14
- check_params params, :allowed => true, :method => __method__
15
- url, params = fill_params_in_url "/api/smart_proxies", params
16
- call(:"get", url, params, headers)
13
+ # @return [Array] First item: parsed data; second item: raw body
14
+ def index(params = {}, headers = {})
15
+ perform_call(__method__, params, headers)
17
16
  end
18
17
 
19
18
  # @param [Hash] params a hash of params to be passed to the service
20
19
  # @option params [String] id domain name (no slashes)
21
20
  #
22
21
  # @param [Hash] headers additional http headers
23
- def show(params = { }, headers = { })
24
- check_params params, :allowed => true, :method => __method__
25
- url, params = fill_params_in_url "/api/smart_proxies/:id", params
26
- call(:"get", url, params, headers)
22
+ # @return [Array] First item: parsed data; second item: raw body
23
+ def show(params = {}, headers = {})
24
+ perform_call(__method__, params, headers)
27
25
  end
28
26
 
29
27
  # @param [Hash] params a hash of params to be passed to the service
30
- # @option params [Hash] smart_proxy
31
- # allowed keys are:
32
- # * name [String] the smart proxy name ,
33
- # * url [String] the smart proxy url starting with ‘http://’ or ‘https://’ ,
28
+ # @option params [Hash] smart_proxy
29
+ # allowed keys are:
30
+ # * name [String] the smart proxy name
31
+ # * url [String] the smart proxy url starting with ‘http://’ or ‘https://’
34
32
  #
35
33
  # @param [Hash] headers additional http headers
36
- def create(params = { }, headers = { })
37
- check_params params, :allowed => true, :method => __method__
38
- url, params = fill_params_in_url "/api/smart_proxies", params
39
- call(:"post", url, params, headers)
34
+ # @return [Array] First item: parsed data; second item: raw body
35
+ def create(params = {}, headers = {})
36
+ perform_call(__method__, params, headers)
40
37
  end
41
38
 
42
39
  # @param [Hash] params a hash of params to be passed to the service
43
- # @option params [Hash] smart_proxy
44
- # allowed keys are:
45
- # * name [String] the smart proxy name ,
46
- # * url [String] the smart proxy url starting with ‘http://’ or ‘https://’ ,
40
+ # @option params [Object] id Part of +/api/smart_proxies/:id+ path
41
+ # @option params [Hash] smart_proxy
42
+ # allowed keys are:
43
+ # * name [String] the smart proxy name
44
+ # * url [String] the smart proxy url starting with ‘http://’ or ‘https://’
47
45
  #
48
46
  # @param [Hash] headers additional http headers
49
- def update(params = { }, headers = { })
50
- check_params params, :allowed => true, :method => __method__
51
- url, params = fill_params_in_url "/api/smart_proxies/:id", params
52
- call(:"put", url, params, headers)
47
+ # @return [Array] First item: parsed data; second item: raw body
48
+ def update(params = {}, headers = {})
49
+ perform_call(__method__, params, headers)
53
50
  end
54
51
 
55
52
  # @param [Hash] params a hash of params to be passed to the service
56
53
  # @option params [String] id domain name (no slashes)
57
54
  #
58
55
  # @param [Hash] headers additional http headers
59
- def destroy(params = { }, headers = { })
60
- check_params params, :allowed => true, :method => __method__
61
- url, params = fill_params_in_url "/api/smart_proxies/:id", params
62
- call(:"delete", url, params, headers)
56
+ # @return [Array] First item: parsed data; second item: raw body
57
+ def destroy(params = {}, headers = {})
58
+ perform_call(__method__, params, headers)
63
59
  end
64
60
 
65
61
  end
@@ -8,10 +8,9 @@ module KatelloApi
8
8
  # @param [Hash] params a hash of params to be passed to the service
9
9
  #
10
10
  # @param [Hash] headers additional http headers
11
- def memory(params = { }, headers = { })
12
- check_params params, :allowed => false, :method => __method__
13
- url, params = fill_params_in_url "/api/status/memory", params
14
- call(:"get", url, params, headers)
11
+ # @return [Array] First item: parsed data; second item: raw body
12
+ def memory(params = {}, headers = {})
13
+ perform_call(__method__, params, headers)
15
14
  end
16
15
 
17
16
  end
@@ -8,55 +8,50 @@ module KatelloApi
8
8
  # @param [Hash] params a hash of params to be passed to the service
9
9
  #
10
10
  # @param [Hash] headers additional http headers
11
- def index(params = { }, headers = { })
12
- check_params params, :allowed => false, :method => __method__
13
- url, params = fill_params_in_url "/api/subnets", params
14
- call(:"get", url, params, headers)
11
+ # @return [Array] First item: parsed data; second item: raw body
12
+ def index(params = {}, headers = {})
13
+ perform_call(__method__, params, headers)
15
14
  end
16
15
 
17
16
  # @param [Hash] params a hash of params to be passed to the service
18
17
  # @option params [String] id subnet name
19
18
  #
20
19
  # @param [Hash] headers additional http headers
21
- def show(params = { }, headers = { })
22
- check_params params, :allowed => true, :method => __method__
23
- url, params = fill_params_in_url "/api/subnets/:id", params
24
- call(:"get", url, params, headers)
20
+ # @return [Array] First item: parsed data; second item: raw body
21
+ def show(params = {}, headers = {})
22
+ perform_call(__method__, params, headers)
25
23
  end
26
24
 
27
25
  # @param [Hash] params a hash of params to be passed to the service
28
26
  # @option params [Hash] subnet subnet info
29
- # allowed keys are:
30
- # * name [String] subnet name ,
27
+ # allowed keys are:
28
+ # * name [String] subnet name
31
29
  #
32
30
  # @param [Hash] headers additional http headers
33
- def create(params = { }, headers = { })
34
- check_params params, :allowed => true, :method => __method__
35
- url, params = fill_params_in_url "/api/subnet", params
36
- call(:"post", url, params, headers)
31
+ # @return [Array] First item: parsed data; second item: raw body
32
+ def create(params = {}, headers = {})
33
+ perform_call(__method__, params, headers)
37
34
  end
38
35
 
39
36
  # @param [Hash] params a hash of params to be passed to the service
40
37
  # @option params [String] id subnet name
41
38
  # @option params [Hash] subnet subnet info
42
- # allowed keys are:
43
- # * name [String] subnet name ,
39
+ # allowed keys are:
40
+ # * name [String] subnet name
44
41
  #
45
42
  # @param [Hash] headers additional http headers
46
- def update(params = { }, headers = { })
47
- check_params params, :allowed => true, :method => __method__
48
- url, params = fill_params_in_url "/api/subnets/:id", params
49
- call(:"put", url, params, headers)
43
+ # @return [Array] First item: parsed data; second item: raw body
44
+ def update(params = {}, headers = {})
45
+ perform_call(__method__, params, headers)
50
46
  end
51
47
 
52
48
  # @param [Hash] params a hash of params to be passed to the service
53
49
  # @option params [String] id subnet name
54
50
  #
55
51
  # @param [Hash] headers additional http headers
56
- def destroy(params = { }, headers = { })
57
- check_params params, :allowed => true, :method => __method__
58
- url, params = fill_params_in_url "/api/subnets/:id", params
59
- call(:"delete", url, params, headers)
52
+ # @return [Array] First item: parsed data; second item: raw body
53
+ def destroy(params = {}, headers = {})
54
+ perform_call(__method__, params, headers)
60
55
  end
61
56
 
62
57
  end
@@ -9,22 +9,20 @@ module KatelloApi
9
9
  # @option params [String] system_id system uuid
10
10
  #
11
11
  # @param [Hash] headers additional http headers
12
- def index(params = { }, headers = { })
13
- check_params params, :allowed => true, :method => __method__
14
- url, params = fill_params_in_url "/api/systems/:system_id/subscriptions", params
15
- call(:"get", url, params, headers)
12
+ # @return [Array] First item: parsed data; second item: raw body
13
+ def index(params = {}, headers = {})
14
+ perform_call(__method__, params, headers)
16
15
  end
17
16
 
18
17
  # @param [Hash] params a hash of params to be passed to the service
18
+ # @option params [String] system_id system uuid
19
19
  # @option params [String] pool subscription pool uuid
20
20
  # @option params [String] quantity number of subscription to use
21
- # @option params [String] system_id system uuid
22
21
  #
23
22
  # @param [Hash] headers additional http headers
24
- def create(params = { }, headers = { })
25
- check_params params, :allowed => true, :method => __method__
26
- url, params = fill_params_in_url "/api/systems/:system_id/subscriptions", params
27
- call(:"post", url, params, headers)
23
+ # @return [Array] First item: parsed data; second item: raw body
24
+ def create(params = {}, headers = {})
25
+ perform_call(__method__, params, headers)
28
26
  end
29
27
 
30
28
  # @param [Hash] params a hash of params to be passed to the service
@@ -32,20 +30,18 @@ module KatelloApi
32
30
  # @option params [String] system_id system uuid
33
31
  #
34
32
  # @param [Hash] headers additional http headers
35
- def destroy(params = { }, headers = { })
36
- check_params params, :allowed => true, :method => __method__
37
- url, params = fill_params_in_url "/api/systems/:system_id/subscriptions/:id", params
38
- call(:"delete", url, params, headers)
33
+ # @return [Array] First item: parsed data; second item: raw body
34
+ def destroy(params = {}, headers = {})
35
+ perform_call(__method__, params, headers)
39
36
  end
40
37
 
41
38
  # @param [Hash] params a hash of params to be passed to the service
42
39
  # @option params [String] system_id system uuid
43
40
  #
44
41
  # @param [Hash] headers additional http headers
45
- def destroy_all(params = { }, headers = { })
46
- check_params params, :allowed => true, :method => __method__
47
- url, params = fill_params_in_url "/api/systems/:system_id/subscriptions", params
48
- call(:"delete", url, params, headers)
42
+ # @return [Array] First item: parsed data; second item: raw body
43
+ def destroy_all(params = {}, headers = {})
44
+ perform_call(__method__, params, headers)
49
45
  end
50
46
 
51
47
  # @param [Hash] params a hash of params to be passed to the service
@@ -53,10 +49,9 @@ module KatelloApi
53
49
  # @option params [String] system_id system uuid
54
50
  #
55
51
  # @param [Hash] headers additional http headers
56
- def destroy_by_serial(params = { }, headers = { })
57
- check_params params, :allowed => true, :method => __method__
58
- url, params = fill_params_in_url "/api/systems/:system_id/subscriptions/serials/:serial_id", params
59
- call(:"delete", url, params, headers)
52
+ # @return [Array] First item: parsed data; second item: raw body
53
+ def destroy_by_serial(params = {}, headers = {})
54
+ perform_call(__method__, params, headers)
60
55
  end
61
56
 
62
57
  end
@@ -12,10 +12,9 @@ module KatelloApi
12
12
  # @option params [String] repository_id repository identifier
13
13
  #
14
14
  # @param [Hash] headers additional http headers
15
- def index(params = { }, headers = { })
16
- check_params params, :allowed => true, :method => __method__
17
- url, params = fill_params_in_url "/api/providers/:provider_id/sync", params
18
- call(:"get", url, params, headers)
15
+ # @return [Array] First item: parsed data; second item: raw body
16
+ def index(params = {}, headers = {})
17
+ perform_call(__method__, params, headers)
19
18
  end
20
19
 
21
20
  # @param [Hash] params a hash of params to be passed to the service
@@ -25,10 +24,9 @@ module KatelloApi
25
24
  # @option params [String] repository_id repository identifier
26
25
  #
27
26
  # @param [Hash] headers additional http headers
28
- def create(params = { }, headers = { })
29
- check_params params, :allowed => true, :method => __method__
30
- url, params = fill_params_in_url "/api/providers/:provider_id/sync", params
31
- call(:"post", url, params, headers)
27
+ # @return [Array] First item: parsed data; second item: raw body
28
+ def create(params = {}, headers = {})
29
+ perform_call(__method__, params, headers)
32
30
  end
33
31
 
34
32
  # @param [Hash] params a hash of params to be passed to the service
@@ -38,10 +36,9 @@ module KatelloApi
38
36
  # @option params [String] repository_id repository identifier
39
37
  #
40
38
  # @param [Hash] headers additional http headers
41
- def cancel(params = { }, headers = { })
42
- check_params params, :allowed => true, :method => __method__
43
- url, params = fill_params_in_url "/api/providers/:provider_id/sync", params
44
- call(:"delete", url, params, headers)
39
+ # @return [Array] First item: parsed data; second item: raw body
40
+ def cancel(params = {}, headers = {})
41
+ perform_call(__method__, params, headers)
45
42
  end
46
43
 
47
44
  end
@@ -6,16 +6,15 @@ module KatelloApi
6
6
  end
7
7
 
8
8
  # @param [Hash] params a hash of params to be passed to the service
9
+ # @option params [String] organization_id oranization identifier
9
10
  # @option params [String] interval filter by interval
10
11
  # @option params [String] name filter by name
11
- # @option params [String] organization_id oranization identifier
12
12
  # @option params [String] sync_date filter by sync date
13
13
  #
14
14
  # @param [Hash] headers additional http headers
15
- def index(params = { }, headers = { })
16
- check_params params, :allowed => true, :method => __method__
17
- url, params = fill_params_in_url "/api/organizations/:organization_id/sync_plans", params
18
- call(:"get", url, params, headers)
15
+ # @return [Array] First item: parsed data; second item: raw body
16
+ def index(params = {}, headers = {})
17
+ perform_call(__method__, params, headers)
19
18
  end
20
19
 
21
20
  # @param [Hash] params a hash of params to be passed to the service
@@ -23,43 +22,40 @@ module KatelloApi
23
22
  # @option params [String] organization_id oranization identifier
24
23
  #
25
24
  # @param [Hash] headers additional http headers
26
- def show(params = { }, headers = { })
27
- check_params params, :allowed => true, :method => __method__
28
- url, params = fill_params_in_url "/api/organizations/:organization_id/sync_plans/:id", params
29
- call(:"get", url, params, headers)
25
+ # @return [Array] First item: parsed data; second item: raw body
26
+ def show(params = {}, headers = {})
27
+ perform_call(__method__, params, headers)
30
28
  end
31
29
 
32
30
  # @param [Hash] params a hash of params to be passed to the service
33
31
  # @option params [String] organization_id oranization identifier
34
- # @option params [Hash] sync_plan
35
- # allowed keys are:
36
- # * description [String, nil] sync plan description ,
37
- # * interval [String, nil] how often synchronization should run ,
38
- # * name [String] sync plan name ,
39
- # * sync_date [String, nil] start datetime of synchronization ,
32
+ # @option params [Hash] sync_plan
33
+ # allowed keys are:
34
+ # * description [String, nil] sync plan description
35
+ # * interval [String, nil] how often synchronization should run
36
+ # * name [String] sync plan name
37
+ # * sync_date [String, nil] start datetime of synchronization
40
38
  #
41
39
  # @param [Hash] headers additional http headers
42
- def create(params = { }, headers = { })
43
- check_params params, :allowed => true, :method => __method__
44
- url, params = fill_params_in_url "/api/organizations/:organization_id/sync_plans", params
45
- call(:"post", url, params, headers)
40
+ # @return [Array] First item: parsed data; second item: raw body
41
+ def create(params = {}, headers = {})
42
+ perform_call(__method__, params, headers)
46
43
  end
47
44
 
48
45
  # @param [Hash] params a hash of params to be passed to the service
49
46
  # @option params [String] id sync plan numeric identifier
50
47
  # @option params [String] organization_id oranization identifier
51
- # @option params [Hash] sync_plan
52
- # allowed keys are:
53
- # * description [String, nil] sync plan description ,
54
- # * interval [String, nil] how often synchronization should run ,
55
- # * name [String] sync plan name ,
56
- # * sync_date [String, nil] start datetime of synchronization ,
48
+ # @option params [Hash] sync_plan
49
+ # allowed keys are:
50
+ # * description [String, nil] sync plan description
51
+ # * interval [String, nil] how often synchronization should run
52
+ # * name [String] sync plan name
53
+ # * sync_date [String, nil] start datetime of synchronization
57
54
  #
58
55
  # @param [Hash] headers additional http headers
59
- def update(params = { }, headers = { })
60
- check_params params, :allowed => true, :method => __method__
61
- url, params = fill_params_in_url "/api/organizations/:organization_id/sync_plans/:id", params
62
- call(:"put", url, params, headers)
56
+ # @return [Array] First item: parsed data; second item: raw body
57
+ def update(params = {}, headers = {})
58
+ perform_call(__method__, params, headers)
63
59
  end
64
60
 
65
61
  # @param [Hash] params a hash of params to be passed to the service
@@ -67,10 +63,9 @@ module KatelloApi
67
63
  # @option params [String] organization_id oranization identifier
68
64
  #
69
65
  # @param [Hash] headers additional http headers
70
- def destroy(params = { }, headers = { })
71
- check_params params, :allowed => true, :method => __method__
72
- url, params = fill_params_in_url "/api/organizations/:organization_id/sync_plans/:id", params
73
- call(:"delete", url, params, headers)
66
+ # @return [Array] First item: parsed data; second item: raw body
67
+ def destroy(params = {}, headers = {})
68
+ perform_call(__method__, params, headers)
74
69
  end
75
70
 
76
71
  end