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
@@ -6,50 +6,52 @@ 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/permissions+ path
9
10
  # @option params [String] all_tags filter by all_flags flag
10
11
  # @option params [String] all_verbs filter by all_verbs flag
11
12
  # @option params [String] description filter by description
12
13
  # @option params [String] name filter by name
13
14
  #
14
15
  # @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/roles/:role_id/permissions", params
18
- call(:"get", url, params, headers)
16
+ # @return [Array] First item: parsed data; second item: raw body
17
+ def index(params = {}, headers = {})
18
+ perform_call(__method__, params, headers)
19
19
  end
20
20
 
21
21
  # @param [Hash] params a hash of params to be passed to the service
22
+ # @option params [Object] id Part of +/api/roles/:role_id/permissions/:id+ path
23
+ # @option params [Object] role_id Part of +/api/roles/:role_id/permissions/:id+ path
22
24
  #
23
25
  # @param [Hash] headers additional http headers
24
- def show(params = { }, headers = { })
25
- check_params params, :allowed => false, :method => __method__
26
- url, params = fill_params_in_url "/api/roles/:role_id/permissions/:id", params
27
- call(:"get", url, params, headers)
26
+ # @return [Array] First item: parsed data; second item: raw body
27
+ def show(params = {}, headers = {})
28
+ perform_call(__method__, params, headers)
28
29
  end
29
30
 
30
31
  # @param [Hash] params a hash of params to be passed to the service
32
+ # @option params [String] organization_id
33
+ # @option params [Object] role_id Part of +/api/roles/:role_id/permissions+ path
31
34
  # @option params [String] all_tags true if the permission should use all tags
32
- # @option params [String, nil] description
33
- # @option params [String] name
34
- # @option params [String] organization_id
35
+ # @option params [String, nil] description
36
+ # @option params [String] name
35
37
  # @option params [String] tags array of tag ids
36
38
  # @option params [String] type name of a resource or ‘all’
37
39
  # @option params [String] verbs array of permission verbs
38
40
  #
39
41
  # @param [Hash] headers additional http headers
40
- def create(params = { }, headers = { })
41
- check_params params, :allowed => true, :method => __method__
42
- url, params = fill_params_in_url "/api/roles/:role_id/permissions", params
43
- call(:"post", url, params, headers)
42
+ # @return [Array] First item: parsed data; second item: raw body
43
+ def create(params = {}, headers = {})
44
+ perform_call(__method__, params, headers)
44
45
  end
45
46
 
46
47
  # @param [Hash] params a hash of params to be passed to the service
48
+ # @option params [Object] id Part of +/api/roles/:role_id/permissions/:id+ path
49
+ # @option params [Object] role_id Part of +/api/roles/:role_id/permissions/:id+ path
47
50
  #
48
51
  # @param [Hash] headers additional http headers
49
- def destroy(params = { }, headers = { })
50
- check_params params, :allowed => false, :method => __method__
51
- url, params = fill_params_in_url "/api/roles/:role_id/permissions/:id", params
52
- 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)
53
55
  end
54
56
 
55
57
  end
@@ -8,28 +8,25 @@ 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/ping", 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
  #
19
18
  # @param [Hash] headers additional http headers
20
- def status(params = { }, headers = { })
21
- check_params params, :allowed => false, :method => __method__
22
- url, params = fill_params_in_url "/api/status", params
23
- call(:"get", url, params, headers)
19
+ # @return [Array] First item: parsed data; second item: raw body
20
+ def status(params = {}, headers = {})
21
+ perform_call(__method__, params, headers)
24
22
  end
25
23
 
26
24
  # @param [Hash] params a hash of params to be passed to the service
27
25
  #
28
26
  # @param [Hash] headers additional http headers
29
- def version(params = { }, headers = { })
30
- check_params params, :allowed => false, :method => __method__
31
- url, params = fill_params_in_url "/api/version", params
32
- call(:"get", url, params, headers)
27
+ # @return [Array] First item: parsed data; second item: raw body
28
+ def version(params = {}, headers = {})
29
+ perform_call(__method__, params, headers)
33
30
  end
34
31
 
35
32
  end
@@ -10,38 +10,35 @@ module KatelloApi
10
10
  # @option params [String] organization_id organization identifier
11
11
  #
12
12
  # @param [Hash] headers additional http headers
13
- def show(params = { }, headers = { })
14
- check_params params, :allowed => true, :method => __method__
15
- url, params = fill_params_in_url "/api/organizations/:organization_id/products/:id", params
16
- call(:"get", url, params, headers)
13
+ # @return [Array] First item: parsed data; second item: raw body
14
+ def show(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 product numeric identifier
21
20
  # @option params [String] organization_id organization identifier
22
- # @option params [Hash] product
23
- # allowed keys are:
24
- # * description [String, nil] product description ,
25
- # * gpg_key_name [String, nil] identifier of the gpg key ,
26
- # * recursive [String] set to true to recursive update gpg key ,
21
+ # @option params [Hash] product
22
+ # allowed keys are:
23
+ # * description [String, nil] product description
24
+ # * gpg_key_name [String, nil] identifier of the gpg key
25
+ # * recursive [String] set to true to recursive update gpg key
27
26
  #
28
27
  # @param [Hash] headers additional http headers
29
- def update(params = { }, headers = { })
30
- check_params params, :allowed => true, :method => __method__
31
- url, params = fill_params_in_url "/api/organizations/:organization_id/products/:id", params
32
- call(:"put", url, params, headers)
28
+ # @return [Array] First item: parsed data; second item: raw body
29
+ def update(params = {}, headers = {})
30
+ perform_call(__method__, params, headers)
33
31
  end
34
32
 
35
33
  # @param [Hash] params a hash of params to be passed to the service
36
34
  # @option params [String] environment_id environment identifier
37
- # @option params [String] name product identifier
38
35
  # @option params [String] organization_id organization identifier
36
+ # @option params [String] name product identifier
39
37
  #
40
38
  # @param [Hash] headers additional http headers
41
- def index(params = { }, headers = { })
42
- check_params params, :allowed => true, :method => __method__
43
- url, params = fill_params_in_url "/api/environments/:environment_id/products", params
44
- call(:"get", url, params, headers)
39
+ # @return [Array] First item: parsed data; second item: raw body
40
+ def index(params = {}, headers = {})
41
+ perform_call(__method__, params, headers)
45
42
  end
46
43
 
47
44
  # @param [Hash] params a hash of params to be passed to the service
@@ -49,24 +46,22 @@ module KatelloApi
49
46
  # @option params [String] organization_id organization identifier
50
47
  #
51
48
  # @param [Hash] headers additional http headers
52
- def destroy(params = { }, headers = { })
53
- check_params params, :allowed => true, :method => __method__
54
- url, params = fill_params_in_url "/api/organizations/:organization_id/products/:id", params
55
- call(:"delete", url, params, headers)
49
+ # @return [Array] First item: parsed data; second item: raw body
50
+ def destroy(params = {}, headers = {})
51
+ perform_call(__method__, params, headers)
56
52
  end
57
53
 
58
54
  # @param [Hash] params a hash of params to be passed to the service
59
55
  # @option params [String] id product numeric identifier
60
56
  # @option params [String] environment_id environment identifier
57
+ # @option params [String] organization_id organization identifier
61
58
  # @option params [String] include_disabled set to true if you want to list disabled repositories
62
59
  # @option params [String] name repository identifier
63
- # @option params [String] organization_id organization identifier
64
60
  #
65
61
  # @param [Hash] headers additional http headers
66
- def repositories(params = { }, headers = { })
67
- check_params params, :allowed => true, :method => __method__
68
- url, params = fill_params_in_url "/api/environments/:environment_id/products/:id/repositories", params
69
- call(:"get", url, params, headers)
62
+ # @return [Array] First item: parsed data; second item: raw body
63
+ def repositories(params = {}, headers = {})
64
+ perform_call(__method__, params, headers)
70
65
  end
71
66
 
72
67
  # @param [Hash] params a hash of params to be passed to the service
@@ -75,10 +70,9 @@ module KatelloApi
75
70
  # @option params [String] plan_id plan numeric identifier
76
71
  #
77
72
  # @param [Hash] headers additional http headers
78
- def set_sync_plan(params = { }, headers = { })
79
- check_params params, :allowed => true, :method => __method__
80
- url, params = fill_params_in_url "/api/organizations/:organization_id/products/:id/sync_plan", params
81
- call(:"post", url, params, headers)
73
+ # @return [Array] First item: parsed data; second item: raw body
74
+ def set_sync_plan(params = {}, headers = {})
75
+ perform_call(__method__, params, headers)
82
76
  end
83
77
 
84
78
  # @param [Hash] params a hash of params to be passed to the service
@@ -87,20 +81,18 @@ module KatelloApi
87
81
  # @option params [String] plan_id plan numeric identifier
88
82
  #
89
83
  # @param [Hash] headers additional http headers
90
- def remove_sync_plan(params = { }, headers = { })
91
- check_params params, :allowed => true, :method => __method__
92
- url, params = fill_params_in_url "/api/organizations/:organization_id/products/:id/sync_plan", params
93
- call(:"delete", url, params, headers)
84
+ # @return [Array] First item: parsed data; second item: raw body
85
+ def remove_sync_plan(params = {}, headers = {})
86
+ perform_call(__method__, params, headers)
94
87
  end
95
88
 
96
89
  # @param [Hash] params a hash of params to be passed to the service
97
90
  # @option params [String] content_view_definition_id content view definition identifier
98
91
  #
99
92
  # @param [Hash] headers additional http headers
100
- def list_content_view_definition_products(params = { }, headers = { })
101
- check_params params, :allowed => true, :method => __method__
102
- url, params = fill_params_in_url "/api/content_view_definitions/:content_view_definition_id/products", params
103
- call(:"get", url, params, headers)
93
+ # @return [Array] First item: parsed data; second item: raw body
94
+ def list_content_view_definition_products(params = {}, headers = {})
95
+ perform_call(__method__, params, headers)
104
96
  end
105
97
 
106
98
  # @param [Hash] params a hash of params to be passed to the service
@@ -108,10 +100,9 @@ module KatelloApi
108
100
  # @option params [String] products updated list of products
109
101
  #
110
102
  # @param [Hash] headers additional http headers
111
- def update_content_view_definition_products(params = { }, headers = { })
112
- check_params params, :allowed => true, :method => __method__
113
- url, params = fill_params_in_url "/api/content_view_definitions/:content_view_definition_id/products", params
114
- call(:"put", url, params, headers)
103
+ # @return [Array] First item: parsed data; second item: raw body
104
+ def update_content_view_definition_products(params = {}, headers = {})
105
+ perform_call(__method__, params, headers)
115
106
  end
116
107
 
117
108
  end
@@ -6,85 +6,79 @@ 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 filter providers by name
10
9
  # @option params [String] organization_id organization identifier
10
+ # @option params [String] name filter providers by name
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/organizations/:organization_id/providers", 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 provider numeric identifier
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/providers/: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
28
  # @option params [String] organization_id organization identifier
31
- # @option params [Hash] provider
32
- # allowed keys are:
33
- # * description [String, nil] provider description ,
34
- # * name [String] provider name ,
35
- # * provider_type [String],
36
- # * repository_url [String, nil] repository url ,
29
+ # @option params [Hash] provider
30
+ # allowed keys are:
31
+ # * description [String, nil] provider description
32
+ # * name [String] provider name
33
+ # * provider_type [String]
34
+ # * repository_url [String, nil] repository url
37
35
  #
38
36
  # @param [Hash] headers additional http headers
39
- def create(params = { }, headers = { })
40
- check_params params, :allowed => true, :method => __method__
41
- url, params = fill_params_in_url "/api/providers", params
42
- 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)
43
40
  end
44
41
 
45
42
  # @param [Hash] params a hash of params to be passed to the service
46
43
  # @option params [String] id provider numeric identifier
47
- # @option params [Hash] provider
48
- # allowed keys are:
49
- # * description [String, nil] provider description ,
50
- # * name [String] provider name ,
51
- # * repository_url [String, nil] repository url ,
44
+ # @option params [Hash] provider
45
+ # allowed keys are:
46
+ # * description [String, nil] provider description
47
+ # * name [String] provider name
48
+ # * repository_url [String, nil] repository url
52
49
  #
53
50
  # @param [Hash] headers additional http headers
54
- def update(params = { }, headers = { })
55
- check_params params, :allowed => true, :method => __method__
56
- url, params = fill_params_in_url "/api/providers/:id", params
57
- call(:"put", url, params, headers)
51
+ # @return [Array] First item: parsed data; second item: raw body
52
+ def update(params = {}, headers = {})
53
+ perform_call(__method__, params, headers)
58
54
  end
59
55
 
60
56
  # @param [Hash] params a hash of params to be passed to the service
61
57
  # @option params [String] id provider numeric identifier
62
58
  #
63
59
  # @param [Hash] headers additional http headers
64
- def destroy(params = { }, headers = { })
65
- check_params params, :allowed => true, :method => __method__
66
- url, params = fill_params_in_url "/api/providers/:id", params
67
- 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)
68
63
  end
69
64
 
70
65
  # @param [Hash] params a hash of params to be passed to the service
71
66
  # @option params [String] id provider numeric identifier
72
67
  #
73
68
  # @param [Hash] headers additional http headers
74
- def products(params = { }, headers = { })
75
- check_params params, :allowed => true, :method => __method__
76
- url, params = fill_params_in_url "/api/providers/:id/products", params
77
- call(:"get", url, params, headers)
69
+ # @return [Array] First item: parsed data; second item: raw body
70
+ def products(params = {}, headers = {})
71
+ perform_call(__method__, params, headers)
78
72
  end
79
73
 
80
74
  # @param [Hash] params a hash of params to be passed to the service
75
+ # @option params [Object] id Part of +/api/providers/:id/discovery+ path
81
76
  # @option params [String] url remote url to perform discovery
82
77
  #
83
78
  # @param [Hash] headers additional http headers
84
- def discovery(params = { }, headers = { })
85
- check_params params, :allowed => true, :method => __method__
86
- url, params = fill_params_in_url "/api/providers/:id/discovery", params
87
- call(:"post", url, params, headers)
79
+ # @return [Array] First item: parsed data; second item: raw body
80
+ def discovery(params = {}, headers = {})
81
+ perform_call(__method__, params, headers)
88
82
  end
89
83
 
90
84
  # @param [Hash] params a hash of params to be passed to the service
@@ -93,30 +87,27 @@ module KatelloApi
93
87
  # @option params [String] import manifest file
94
88
  #
95
89
  # @param [Hash] headers additional http headers
96
- def import_manifest(params = { }, headers = { })
97
- check_params params, :allowed => true, :method => __method__
98
- url, params = fill_params_in_url "/api/providers/:id/import_manifest", params
99
- call(:"post", url, params, headers)
90
+ # @return [Array] First item: parsed data; second item: raw body
91
+ def import_manifest(params = {}, headers = {})
92
+ perform_call(__method__, params, headers)
100
93
  end
101
94
 
102
95
  # @param [Hash] params a hash of params to be passed to the service
103
96
  # @option params [String] id provider numeric identifier
104
97
  #
105
98
  # @param [Hash] headers additional http headers
106
- def delete_manifest(params = { }, headers = { })
107
- check_params params, :allowed => true, :method => __method__
108
- url, params = fill_params_in_url "/api/providers/:id/delete_manifest", params
109
- call(:"post", url, params, headers)
99
+ # @return [Array] First item: parsed data; second item: raw body
100
+ def delete_manifest(params = {}, headers = {})
101
+ perform_call(__method__, params, headers)
110
102
  end
111
103
 
112
104
  # @param [Hash] params a hash of params to be passed to the service
113
105
  # @option params [String] id provider numeric identifier
114
106
  #
115
107
  # @param [Hash] headers additional http headers
116
- def refresh_products(params = { }, headers = { })
117
- check_params params, :allowed => true, :method => __method__
118
- url, params = fill_params_in_url "/api/providers/:id/refresh_products", params
119
- call(:"post", url, params, headers)
108
+ # @return [Array] First item: parsed data; second item: raw body
109
+ def refresh_products(params = {}, headers = {})
110
+ perform_call(__method__, params, headers)
120
111
  end
121
112
 
122
113
  # @param [Hash] params a hash of params to be passed to the service
@@ -124,26 +115,24 @@ module KatelloApi
124
115
  # @option params [String] products array of products to import
125
116
  #
126
117
  # @param [Hash] headers additional http headers
127
- def import_products(params = { }, headers = { })
128
- check_params params, :allowed => true, :method => __method__
129
- url, params = fill_params_in_url "/api/providers/:id/import_products", params
130
- call(:"post", url, params, headers)
118
+ # @return [Array] First item: parsed data; second item: raw body
119
+ def import_products(params = {}, headers = {})
120
+ perform_call(__method__, params, headers)
131
121
  end
132
122
 
133
123
  # @param [Hash] params a hash of params to be passed to the service
134
124
  # @option params [String] id provider numeric identifier
135
- # @option params [Hash] product
136
- # allowed keys are:
137
- # * description [String, nil] product description ,
138
- # * gpg_key_name [String, nil] identifier of the gpg key ,
139
- # * label [String],
140
- # * name [String] product name ,
125
+ # @option params [Hash] product
126
+ # allowed keys are:
127
+ # * description [String, nil] product description
128
+ # * gpg_key_name [String, nil] identifier of the gpg key
129
+ # * label [String]
130
+ # * name [String] product name
141
131
  #
142
132
  # @param [Hash] headers additional http headers
143
- def product_create(params = { }, headers = { })
144
- check_params params, :allowed => true, :method => __method__
145
- url, params = fill_params_in_url "/api/providers/:id/product_create", params
146
- call(:"post", url, params, headers)
133
+ # @return [Array] First item: parsed data; second item: raw body
134
+ def product_create(params = {}, headers = {})
135
+ perform_call(__method__, params, headers)
147
136
  end
148
137
 
149
138
  end
@@ -6,110 +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 [String] gpg_key_name name of a gpg key that will be assigned to the new repository
10
- # @option params [String] name
11
9
  # @option params [String] organization_id id of an organization the repository will be contained in
12
10
  # @option params [String] product_id id of a product the repository will be contained in
11
+ # @option params [String] gpg_key_name name of a gpg key that will be assigned to the new repository
12
+ # @option params [String] name
13
13
  # @option params [String] url repository source url
14
14
  #
15
15
  # @param [Hash] headers additional http headers
16
- def create(params = { }, headers = { })
17
- check_params params, :allowed => true, :method => __method__
18
- url, params = fill_params_in_url "/api/repositories", params
19
- call(:"post", url, params, headers)
16
+ # @return [Array] First item: parsed data; second item: raw body
17
+ def create(params = {}, headers = {})
18
+ perform_call(__method__, params, headers)
20
19
  end
21
20
 
22
21
  # @param [Hash] params a hash of params to be passed to the service
23
22
  # @option params [String] id repository id
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/repositories/: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] id repository id
34
- # @option params [Hash] repository
35
- # allowed keys are:
36
- # * gpg_key_name [String] name of a gpg key that will be assigned to the repository ,
32
+ # @option params [Hash] repository
33
+ # allowed keys are:
34
+ # * gpg_key_name [String] name of a gpg key that will be assigned to the repository
37
35
  #
38
36
  # @param [Hash] headers additional http headers
39
- def update(params = { }, headers = { })
40
- check_params params, :allowed => true, :method => __method__
41
- url, params = fill_params_in_url "/api/repositories/:id", params
42
- call(:"put", url, params, headers)
37
+ # @return [Array] First item: parsed data; second item: raw body
38
+ def update(params = {}, headers = {})
39
+ perform_call(__method__, params, headers)
43
40
  end
44
41
 
45
42
  # @param [Hash] params a hash of params to be passed to the service
46
- # @option params [String] id
43
+ # @option params [String] id
47
44
  #
48
45
  # @param [Hash] headers additional http headers
49
- def destroy(params = { }, headers = { })
50
- check_params params, :allowed => true, :method => __method__
51
- url, params = fill_params_in_url "/api/repositories/:id", params
52
- call(:"delete", url, params, headers)
46
+ # @return [Array] First item: parsed data; second item: raw body
47
+ def destroy(params = {}, headers = {})
48
+ perform_call(__method__, params, headers)
53
49
  end
54
50
 
55
51
  # @param [Hash] params a hash of params to be passed to the service
56
- # @option params [String] id
52
+ # @option params [String] id
57
53
  # @option params [String] enable flag that enables/disables the repository
58
54
  #
59
55
  # @param [Hash] headers additional http headers
60
- def enable(params = { }, headers = { })
61
- check_params params, :allowed => true, :method => __method__
62
- url, params = fill_params_in_url "/api/repositories/:id/enable", params
63
- call(:"post", url, params, headers)
56
+ # @return [Array] First item: parsed data; second item: raw body
57
+ def enable(params = {}, headers = {})
58
+ perform_call(__method__, params, headers)
64
59
  end
65
60
 
66
61
  # @param [Hash] params a hash of params to be passed to the service
67
- # @option params [String] id
62
+ # @option params [String] id
68
63
  #
69
64
  # @param [Hash] headers additional http headers
70
- def sync_complete(params = { }, headers = { })
71
- check_params params, :allowed => true, :method => __method__
72
- url, params = fill_params_in_url "/api/repositories/:id/sync_complete", params
73
- call(:"post", url, params, headers)
65
+ # @return [Array] First item: parsed data; second item: raw body
66
+ def sync_complete(params = {}, headers = {})
67
+ perform_call(__method__, params, headers)
74
68
  end
75
69
 
76
70
  # @param [Hash] params a hash of params to be passed to the service
77
- # @option params [String] id
71
+ # @option params [String] id
78
72
  #
79
73
  # @param [Hash] headers additional http headers
80
- def package_groups(params = { }, headers = { })
81
- check_params params, :allowed => true, :method => __method__
82
- url, params = fill_params_in_url "/api/repositories/:id/package_groups", params
83
- call(:"get", url, params, headers)
74
+ # @return [Array] First item: parsed data; second item: raw body
75
+ def package_groups(params = {}, headers = {})
76
+ perform_call(__method__, params, headers)
84
77
  end
85
78
 
86
79
  # @param [Hash] params a hash of params to be passed to the service
87
- # @option params [String] id
80
+ # @option params [String] id
88
81
  #
89
82
  # @param [Hash] headers additional http headers
90
- def package_group_categories(params = { }, headers = { })
91
- check_params params, :allowed => true, :method => __method__
92
- url, params = fill_params_in_url "/api/repositories/:id/package_group_categories", params
93
- call(:"get", url, params, headers)
83
+ # @return [Array] First item: parsed data; second item: raw body
84
+ def package_group_categories(params = {}, headers = {})
85
+ perform_call(__method__, params, headers)
94
86
  end
95
87
 
96
88
  # @param [Hash] params a hash of params to be passed to the service
97
- # @option params [String] id
89
+ # @option params [String] id
98
90
  #
99
91
  # @param [Hash] headers additional http headers
100
- def gpg_key_content(params = { }, headers = { })
101
- check_params params, :allowed => true, :method => __method__
102
- url, params = fill_params_in_url "/api/repositories/:id/gpg_key_content", params
103
- call(:"get", url, params, headers)
92
+ # @return [Array] First item: parsed data; second item: raw body
93
+ def gpg_key_content(params = {}, headers = {})
94
+ perform_call(__method__, params, headers)
104
95
  end
105
96
 
106
97
  # @param [Hash] params a hash of params to be passed to the service
107
98
  #
108
99
  # @param [Hash] headers additional http headers
109
- def list_content_view_definition_repositories(params = { }, headers = { })
110
- check_params params, :allowed => false, :method => __method__
111
- url, params = fill_params_in_url "/api/content_view_definitions/%s/repositories", params
112
- call(:"get", url, params, headers)
100
+ # @return [Array] First item: parsed data; second item: raw body
101
+ def list_content_view_definition_repositories(params = {}, headers = {})
102
+ perform_call(__method__, params, headers)
113
103
  end
114
104
 
115
105
  # @param [Hash] params a hash of params to be passed to the service
@@ -117,10 +107,9 @@ module KatelloApi
117
107
  # @option params [String] repos updated list of repo ids
118
108
  #
119
109
  # @param [Hash] headers additional http headers
120
- def update_content_view_definition_repositories(params = { }, headers = { })
121
- check_params params, :allowed => true, :method => __method__
122
- url, params = fill_params_in_url "/api/content_view_definitions/:content_view_definition_id/repositories", params
123
- call(:"put", url, params, headers)
110
+ # @return [Array] First item: parsed data; second item: raw body
111
+ def update_content_view_definition_repositories(params = {}, headers = {})
112
+ perform_call(__method__, params, headers)
124
113
  end
125
114
 
126
115
  end