katello_api 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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
@@ -6,97 +6,100 @@ module KatelloApi
6
6
  end
7
7
 
8
8
  # @param [Hash] params a hash of params to be passed to the service
9
+ # @option params [Object] environment_id Part of +/api/environments/:environment_id/activation_keys+ path
10
+ # @option params [Object] organization_id Part of +/api/organizations/:organization_id/activation_keys+ path
9
11
  # @option params [String] name lists by activation key name
10
12
  #
11
13
  # @param [Hash] headers additional http headers
12
- def index(params = { }, headers = { })
13
- check_params params, :allowed => true, :method => __method__
14
- # we don't use the default path here from apipie
15
- url, params = fill_params_in_url "/api/environments/:environment_id/activation_keys", params
16
- call(:"get", url, params, headers)
14
+ # @return [Array] First item: parsed data; second item: raw body
15
+ def index(params = {}, headers = {})
16
+ perform_call(__method__, params, headers)
17
17
  end
18
18
 
19
19
  # @param [Hash] params a hash of params to be passed to the service
20
+ # @option params [Object] id Part of +/api/activation_keys/:id+ path
20
21
  #
21
22
  # @param [Hash] headers additional http headers
22
- def show(params = { }, headers = { })
23
- check_params params, :allowed => false, :method => __method__
24
- url, params = fill_params_in_url "/api/activation_keys/:id", params
25
- 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)
26
26
  end
27
27
 
28
28
  # @param [Hash] params a hash of params to be passed to the service
29
- # @option params [Hash] activation_key
30
- # allowed keys are:
31
- # * content_view_id [String, nil] content view id ,
32
- # * description [String, nil],
33
- # * name [String] activation key identifier (alphanum characters, space, _ and -) ,
29
+ # @option params [Object] environment_id Part of +/api/environments/:environment_id/activation_keys+ path
30
+ # @option params [Hash] activation_key
31
+ # allowed keys are:
32
+ # * content_view_id [String, nil] content view id
33
+ # * description [String, nil]
34
+ # * name [String] activation key identifier (alphanum characters, space, _ and -)
34
35
  #
35
36
  # @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/activation_keys", params
39
- call(:"post", url, params, headers)
37
+ # @return [Array] First item: parsed data; second item: raw body
38
+ def create(params = {}, headers = {})
39
+ perform_call(__method__, params, headers)
40
40
  end
41
41
 
42
42
  # @param [Hash] params a hash of params to be passed to the service
43
- # @option params [Hash] activation_key
44
- # allowed keys are:
45
- # * content_view_id [String, nil] content view id ,
46
- # * description [String, nil],
47
- # * environment_id [String, nil],
48
- # * name [String] activation key identifier (alphanum characters, space, _ and -) ,
43
+ # @option params [Object] id Part of +/api/activation_keys/:id+ path
44
+ # @option params [Hash] activation_key
45
+ # allowed keys are:
46
+ # * content_view_id [String, nil] content view id
47
+ # * environment_id [String, nil]
48
+ # * description [String, nil]
49
+ # * name [String] activation key identifier (alphanum characters, space, _ and -)
49
50
  #
50
51
  # @param [Hash] headers additional http headers
51
- def update(params = { }, headers = { })
52
- check_params params, :allowed => true, :method => __method__
53
- url, params = fill_params_in_url "/api/activation_keys/:id", params
54
- call(:"put", url, params, headers)
52
+ # @return [Array] First item: parsed data; second item: raw body
53
+ def update(params = {}, headers = {})
54
+ perform_call(__method__, params, headers)
55
55
  end
56
56
 
57
57
  # @param [Hash] params a hash of params to be passed to the service
58
+ # @option params [Object] id Part of +/api/activation_keys/:id/pools+ path
58
59
  #
59
60
  # @param [Hash] headers additional http headers
60
- def add_pool(params = { }, headers = { })
61
- check_params params, :allowed => false, :method => __method__
62
- url, params = fill_params_in_url "/api/activation_keys/:id/pools", params
63
- call(:"post", url, params, headers)
61
+ # @return [Array] First item: parsed data; second item: raw body
62
+ def add_pool(params = {}, headers = {})
63
+ perform_call(__method__, params, headers)
64
64
  end
65
65
 
66
66
  # @param [Hash] params a hash of params to be passed to the service
67
+ # @option params [Object] id Part of +/api/activation_keys/:id/pools/:poolid+ path
68
+ # @option params [Object] poolid Part of +/api/activation_keys/:id/pools/:poolid+ path
67
69
  #
68
70
  # @param [Hash] headers additional http headers
69
- def remove_pool(params = { }, headers = { })
70
- check_params params, :allowed => false, :method => __method__
71
- url, params = fill_params_in_url "/api/activation_keys/:id/pools/:poolid", params
72
- call(:"delete", url, params, headers)
71
+ # @return [Array] First item: parsed data; second item: raw body
72
+ def remove_pool(params = {}, headers = {})
73
+ perform_call(__method__, params, headers)
73
74
  end
74
75
 
75
76
  # @param [Hash] params a hash of params to be passed to the service
77
+ # @option params [Object] id Part of +/api/activation_keys/:id+ path
76
78
  #
77
79
  # @param [Hash] headers additional http headers
78
- def destroy(params = { }, headers = { })
79
- check_params params, :allowed => false, :method => __method__
80
- url, params = fill_params_in_url "/api/activation_keys/:id", params
81
- call(:"delete", url, params, headers)
80
+ # @return [Array] First item: parsed data; second item: raw body
81
+ def destroy(params = {}, headers = {})
82
+ perform_call(__method__, params, headers)
82
83
  end
83
84
 
84
85
  # @param [Hash] params a hash of params to be passed to the service
86
+ # @option params [Object] id Part of +/api/organizations/:organization_id/activation_keys/:id/system_groups+ path
87
+ # @option params [Object] organization_id Part of +/api/organizations/:organization_id/activation_keys/:id/system_groups+ path
85
88
  #
86
89
  # @param [Hash] headers additional http headers
87
- def add_system_groups(params = { }, headers = { })
88
- check_params params, :allowed => false, :method => __method__
89
- url, params = fill_params_in_url "/api/organizations/:organization_id/activation_keys/:id/system_groups", params
90
- call(:"post", url, params, headers)
90
+ # @return [Array] First item: parsed data; second item: raw body
91
+ def add_system_groups(params = {}, headers = {})
92
+ perform_call(__method__, params, headers)
91
93
  end
92
94
 
93
95
  # @param [Hash] params a hash of params to be passed to the service
96
+ # @option params [Object] id Part of +/api/organizations/:organization_id/activation_keys/:id/system_groups+ path
97
+ # @option params [Object] organization_id Part of +/api/organizations/:organization_id/activation_keys/:id/system_groups+ path
94
98
  #
95
99
  # @param [Hash] headers additional http headers
96
- def remove_system_groups(params = { }, headers = { })
97
- check_params params, :allowed => false, :method => __method__
98
- url, params = fill_params_in_url "/api/organizations/:organization_id/activation_keys/:id/system_groups", params
99
- call(:"delete", url, params, headers)
100
+ # @return [Array] First item: parsed data; second item: raw body
101
+ def remove_system_groups(params = {}, headers = {})
102
+ perform_call(__method__, params, headers)
100
103
  end
101
104
 
102
105
  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/architectures", 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 architecture 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/architectures/: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] architecture architecture info
29
- # allowed keys are:
30
- # * name [String] architecture name ,
27
+ # allowed keys are:
28
+ # * name [String] architecture 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/architecture", 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 architecture name
41
38
  # @option params [Hash] architecture architecture info
42
- # allowed keys are:
43
- # * name [String] architecture name ,
39
+ # allowed keys are:
40
+ # * name [String] architecture 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/architectures/: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 architecture 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/architectures/: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
@@ -6,76 +6,78 @@ module KatelloApi
6
6
  end
7
7
 
8
8
  # @param [Hash] params a hash of params to be passed to the service
9
+ # @option params [Object] environment_id Part of +/api/organizations/:organization_id/environments/:environment_id/changesets+ path
10
+ # @option params [Object] organization_id Part of +/api/organizations/:organization_id/environments/:environment_id/changesets+ path
9
11
  # @option params [String] name an optional changeset name to filter upon
10
12
  #
11
13
  # @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/organizations/:organization_id/environments/:environment_id/changesets", params
15
- call(:"get", url, params, headers)
14
+ # @return [Array] First item: parsed data; second item: raw body
15
+ def index(params = {}, headers = {})
16
+ perform_call(__method__, params, headers)
16
17
  end
17
18
 
18
19
  # @param [Hash] params a hash of params to be passed to the service
20
+ # @option params [Object] id Part of +/api/changesets/: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/changesets/: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] changeset
29
- # allowed keys are:
30
- # * description [String, nil] the description of the changeset ,
31
- # * name [String] the name of the changeset ,
29
+ # @option params [Object] id Part of +/api/changesets/:id+ path
30
+ # @option params [Hash] changeset
31
+ # allowed keys are:
32
+ # * description [String, nil] the description of the changeset
33
+ # * name [String] the name of the changeset
32
34
  #
33
35
  # @param [Hash] headers additional http headers
34
- def update(params = { }, headers = { })
35
- check_params params, :allowed => true, :method => __method__
36
- url, params = fill_params_in_url "/api/changesets/:id", params
37
- call(:"put", url, params, headers)
36
+ # @return [Array] First item: parsed data; second item: raw body
37
+ def update(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
42
+ # @option params [Object] id Part of +/api/changesets/:id/dependencies+ path
41
43
  #
42
44
  # @param [Hash] headers additional http headers
43
- def dependencies(params = { }, headers = { })
44
- check_params params, :allowed => false, :method => __method__
45
- url, params = fill_params_in_url "/api/changesets/:id/dependencies", params
46
- call(:"get", url, params, headers)
45
+ # @return [Array] First item: parsed data; second item: raw body
46
+ def dependencies(params = {}, headers = {})
47
+ perform_call(__method__, params, headers)
47
48
  end
48
49
 
49
50
  # @param [Hash] params a hash of params to be passed to the service
50
- # @option params [Hash] changeset
51
- # allowed keys are:
52
- # * description [String, nil] the description of the changeset ,
53
- # * name [String] the name of the changeset ,
54
- # * type [String],
51
+ # @option params [Object] environment_id Part of +/api/organizations/:organization_id/environments/:environment_id/changesets+ path
52
+ # @option params [Object] organization_id Part of +/api/organizations/:organization_id/environments/:environment_id/changesets+ path
53
+ # @option params [Hash] changeset
54
+ # allowed keys are:
55
+ # * description [String, nil] the description of the changeset
56
+ # * name [String] the name of the changeset
57
+ # * type [String]
55
58
  #
56
59
  # @param [Hash] headers additional http headers
57
- def create(params = { }, headers = { })
58
- check_params params, :allowed => true, :method => __method__
59
- url, params = fill_params_in_url "/api/organizations/:organization_id/environments/:environment_id/changesets", params
60
- call(:"post", url, params, headers)
60
+ # @return [Array] First item: parsed data; second item: raw body
61
+ def create(params = {}, headers = {})
62
+ perform_call(__method__, params, headers)
61
63
  end
62
64
 
63
65
  # @param [Hash] params a hash of params to be passed to the service
66
+ # @option params [Object] id Part of +/api/changesets/:id/promote+ path
64
67
  #
65
68
  # @param [Hash] headers additional http headers
66
- def promote(params = { }, headers = { })
67
- check_params params, :allowed => false, :method => __method__
68
- url, params = fill_params_in_url "/api/changesets/:id/promote", params
69
- call(:"post", url, params, headers)
69
+ # @return [Array] First item: parsed data; second item: raw body
70
+ def promote(params = {}, headers = {})
71
+ perform_call(__method__, params, headers)
70
72
  end
71
73
 
72
74
  # @param [Hash] params a hash of params to be passed to the service
75
+ # @option params [Object] id Part of +/api/changesets/:id+ path
73
76
  #
74
77
  # @param [Hash] headers additional http headers
75
- def destroy(params = { }, headers = { })
76
- check_params params, :allowed => false, :method => __method__
77
- url, params = fill_params_in_url "/api/changesets/:id", params
78
- call(:"delete", url, params, headers)
78
+ # @return [Array] First item: parsed data; second item: raw body
79
+ def destroy(params = {}, headers = {})
80
+ perform_call(__method__, params, headers)
79
81
  end
80
82
 
81
83
  end
@@ -6,142 +6,149 @@ module KatelloApi
6
6
  end
7
7
 
8
8
  # @param [Hash] params a hash of params to be passed to the service
9
+ # @option params [Object] changeset_id Part of +/api/changesets/:changeset_id/products+ path
9
10
  # @option params [String] product_id the id of the product which should be added
10
11
  #
11
12
  # @param [Hash] headers additional http headers
12
- def add_product(params = { }, headers = { })
13
- check_params params, :allowed => true, :method => __method__
14
- url, params = fill_params_in_url "/api/changesets/:changeset_id/products", params
15
- call(:"post", url, params, headers)
13
+ # @return [Array] First item: parsed data; second item: raw body
14
+ def add_product(params = {}, headers = {})
15
+ perform_call(__method__, params, headers)
16
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/changesets/:changeset_id/products/:id+ path
20
+ # @option params [Object] changeset_id Part of +/api/changesets/:changeset_id/products/:id+ path
19
21
  # @option params [String] content_id the id of the product to remove
20
22
  #
21
23
  # @param [Hash] headers additional http headers
22
- def remove_product(params = { }, headers = { })
23
- check_params params, :allowed => true, :method => __method__
24
- url, params = fill_params_in_url "/api/changesets/:changeset_id/products/:id", params
25
- call(:"delete", url, params, headers)
24
+ # @return [Array] First item: parsed data; second item: raw body
25
+ def remove_product(params = {}, headers = {})
26
+ perform_call(__method__, params, headers)
26
27
  end
27
28
 
28
29
  # @param [Hash] params a hash of params to be passed to the service
29
- # @option params [String] name the nvrea of the package to add
30
+ # @option params [Object] changeset_id Part of +/api/changesets/:changeset_id/packages+ path
30
31
  # @option params [String] product_id the id of the product which contains the package
32
+ # @option params [String] name the nvrea of the package to add
31
33
  #
32
34
  # @param [Hash] headers additional http headers
33
- def add_package(params = { }, headers = { })
34
- check_params params, :allowed => true, :method => __method__
35
- url, params = fill_params_in_url "/api/changesets/:changeset_id/packages", params
36
- call(:"post", url, params, headers)
35
+ # @return [Array] First item: parsed data; second item: raw body
36
+ def add_package(params = {}, headers = {})
37
+ perform_call(__method__, params, headers)
37
38
  end
38
39
 
39
40
  # @param [Hash] params a hash of params to be passed to the service
41
+ # @option params [Object] id Part of +/api/changesets/:changeset_id/packages/:id+ path
42
+ # @option params [Object] changeset_id Part of +/api/changesets/:changeset_id/packages/:id+ path
40
43
  # @option params [String] product_id the id of the product which contains the package
41
44
  #
42
45
  # @param [Hash] headers additional http headers
43
- def remove_package(params = { }, headers = { })
44
- check_params params, :allowed => true, :method => __method__
45
- url, params = fill_params_in_url "/api/changesets/:changeset_id/packages/:id", params
46
- call(:"delete", url, params, headers)
46
+ # @return [Array] First item: parsed data; second item: raw body
47
+ def remove_package(params = {}, headers = {})
48
+ perform_call(__method__, params, headers)
47
49
  end
48
50
 
49
51
  # @param [Hash] params a hash of params to be passed to the service
52
+ # @option params [Object] changeset_id Part of +/api/changesets/:changeset_id/errata+ path
50
53
  # @option params [String] erratum_id the id of the errata to add
51
54
  # @option params [String] product_id the product which contains the errata
52
55
  #
53
56
  # @param [Hash] headers additional http headers
54
- def add_erratum(params = { }, headers = { })
55
- check_params params, :allowed => true, :method => __method__
56
- url, params = fill_params_in_url "/api/changesets/:changeset_id/errata", params
57
- call(:"post", url, params, headers)
57
+ # @return [Array] First item: parsed data; second item: raw body
58
+ def add_erratum(params = {}, headers = {})
59
+ perform_call(__method__, params, headers)
58
60
  end
59
61
 
60
62
  # @param [Hash] params a hash of params to be passed to the service
63
+ # @option params [Object] id Part of +/api/changesets/:changeset_id/errata/:id+ path
64
+ # @option params [Object] changeset_id Part of +/api/changesets/:changeset_id/errata/:id+ path
61
65
  # @option params [String] product_id the product which contains the errata
62
66
  #
63
67
  # @param [Hash] headers additional http headers
64
- def remove_erratum(params = { }, headers = { })
65
- check_params params, :allowed => true, :method => __method__
66
- url, params = fill_params_in_url "/api/changesets/:changeset_id/errata/:id", params
67
- call(:"delete", url, params, headers)
68
+ # @return [Array] First item: parsed data; second item: raw body
69
+ def remove_erratum(params = {}, headers = {})
70
+ perform_call(__method__, params, headers)
68
71
  end
69
72
 
70
73
  # @param [Hash] params a hash of params to be passed to the service
74
+ # @option params [Object] changeset_id Part of +/api/changesets/:changeset_id/repositories+ path
71
75
  # @option params [String] repository_id the id of the repository to add
72
76
  #
73
77
  # @param [Hash] headers additional http headers
74
- def add_repo(params = { }, headers = { })
75
- check_params params, :allowed => true, :method => __method__
76
- url, params = fill_params_in_url "/api/changesets/:changeset_id/repositories", params
77
- call(:"post", url, params, headers)
78
+ # @return [Array] First item: parsed data; second item: raw body
79
+ def add_repo(params = {}, headers = {})
80
+ perform_call(__method__, params, headers)
78
81
  end
79
82
 
80
83
  # @param [Hash] params a hash of params to be passed to the service
84
+ # @option params [Object] id Part of +/api/changesets/:changeset_id/repositories/:id+ path
85
+ # @option params [Object] changeset_id Part of +/api/changesets/:changeset_id/repositories/:id+ path
81
86
  #
82
87
  # @param [Hash] headers additional http headers
83
- def remove_repo(params = { }, headers = { })
84
- check_params params, :allowed => false, :method => __method__
85
- url, params = fill_params_in_url "/api/changesets/:changeset_id/repositories/:id", params
86
- call(:"delete", url, params, headers)
88
+ # @return [Array] First item: parsed data; second item: raw body
89
+ def remove_repo(params = {}, headers = {})
90
+ perform_call(__method__, params, headers)
87
91
  end
88
92
 
89
93
  # @param [Hash] params a hash of params to be passed to the service
94
+ # @option params [Object] changeset_id Part of +/api/changesets/:changeset_id/templates+ path
90
95
  # @option params [String] template_id the id of the template to add
91
96
  #
92
97
  # @param [Hash] headers additional http headers
93
- def add_template(params = { }, headers = { })
94
- check_params params, :allowed => true, :method => __method__
95
- url, params = fill_params_in_url "/api/changesets/:changeset_id/templates", params
96
- call(:"post", url, params, headers)
98
+ # @return [Array] First item: parsed data; second item: raw body
99
+ def add_template(params = {}, headers = {})
100
+ perform_call(__method__, params, headers)
97
101
  end
98
102
 
99
103
  # @param [Hash] params a hash of params to be passed to the service
104
+ # @option params [Object] id Part of +/api/changesets/:changeset_id/templates/:id+ path
105
+ # @option params [Object] changeset_id Part of +/api/changesets/:changeset_id/templates/:id+ path
100
106
  #
101
107
  # @param [Hash] headers additional http headers
102
- def remove_template(params = { }, headers = { })
103
- check_params params, :allowed => false, :method => __method__
104
- url, params = fill_params_in_url "/api/changesets/:changeset_id/templates/:id", params
105
- call(:"delete", url, params, headers)
108
+ # @return [Array] First item: parsed data; second item: raw body
109
+ def remove_template(params = {}, headers = {})
110
+ perform_call(__method__, params, headers)
106
111
  end
107
112
 
108
113
  # @param [Hash] params a hash of params to be passed to the service
114
+ # @option params [Object] changeset_id Part of +/api/changesets/:changeset_id/content_views+ path
109
115
  # @option params [String] content_view_id the id of the content view to add
110
116
  #
111
117
  # @param [Hash] headers additional http headers
112
- def add_content_view(params = { }, headers = { })
113
- check_params params, :allowed => true, :method => __method__
114
- url, params = fill_params_in_url "/api/changesets/:changeset_id/content_views", params
115
- call(:"post", url, params, headers)
118
+ # @return [Array] First item: parsed data; second item: raw body
119
+ def add_content_view(params = {}, headers = {})
120
+ perform_call(__method__, params, headers)
116
121
  end
117
122
 
118
123
  # @param [Hash] params a hash of params to be passed to the service
124
+ # @option params [Object] id Part of +/api/changesets/:changeset_id/content_views/:id+ path
125
+ # @option params [Object] changeset_id Part of +/api/changesets/:changeset_id/content_views/:id+ path
119
126
  #
120
127
  # @param [Hash] headers additional http headers
121
- def remove_content_view(params = { }, headers = { })
122
- check_params params, :allowed => false, :method => __method__
123
- url, params = fill_params_in_url "/api/changesets/:changeset_id/content_views/:id", params
124
- call(:"delete", url, params, headers)
128
+ # @return [Array] First item: parsed data; second item: raw body
129
+ def remove_content_view(params = {}, headers = {})
130
+ perform_call(__method__, params, headers)
125
131
  end
126
132
 
127
133
  # @param [Hash] params a hash of params to be passed to the service
134
+ # @option params [Object] changeset_id Part of +/api/changesets/:changeset_id/distributions+ path
128
135
  # @option params [String] distribution_id the id of the distribution to add
129
136
  # @option params [String] product_id the product which contains the distribution
130
137
  #
131
138
  # @param [Hash] headers additional http headers
132
- def add_distribution(params = { }, headers = { })
133
- check_params params, :allowed => true, :method => __method__
134
- url, params = fill_params_in_url "/api/changesets/:changeset_id/distributions", params
135
- call(:"post", url, params, headers)
139
+ # @return [Array] First item: parsed data; second item: raw body
140
+ def add_distribution(params = {}, headers = {})
141
+ perform_call(__method__, params, headers)
136
142
  end
137
143
 
138
144
  # @param [Hash] params a hash of params to be passed to the service
145
+ # @option params [Object] id Part of +/api/changesets/:changeset_id/distributions/:id+ path
146
+ # @option params [Object] changeset_id Part of +/api/changesets/:changeset_id/distributions/:id+ path
139
147
  #
140
148
  # @param [Hash] headers additional http headers
141
- def remove_distribution(params = { }, headers = { })
142
- check_params params, :allowed => false, :method => __method__
143
- url, params = fill_params_in_url "/api/changesets/:changeset_id/distributions/:id", params
144
- call(:"delete", url, params, headers)
149
+ # @return [Array] First item: parsed data; second item: raw body
150
+ def remove_distribution(params = {}, headers = {})
151
+ perform_call(__method__, params, headers)
145
152
  end
146
153
 
147
154
  end