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
@@ -10,60 +10,56 @@ 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/domains", 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/domains/: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] domain
31
- # allowed keys are:
32
- # * dns_id [String, nil] dns proxy to use within this domain ,
33
- # * domain_parameters_attributes [String, nil] array of parameters (name, value) ,
34
- # * fullname [String, nil] full name describing the domain ,
35
- # * name [String] the full dns domain name ,
28
+ # @option params [Hash] domain
29
+ # allowed keys are:
30
+ # * dns_id [String, nil] dns proxy to use within this domain
31
+ # * domain_parameters_attributes [String, nil] array of parameters (name, value)
32
+ # * fullname [String, nil] full name describing the domain
33
+ # * name [String] the full dns domain name
36
34
  #
37
35
  # @param [Hash] headers additional http headers
38
- def create(params = { }, headers = { })
39
- check_params params, :allowed => true, :method => __method__
40
- url, params = fill_params_in_url "/api/domains", params
41
- 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)
42
39
  end
43
40
 
44
41
  # @param [Hash] params a hash of params to be passed to the service
45
- # @option params [Hash] domain
46
- # allowed keys are:
47
- # * dns_id [String, nil] dns proxy to use within this domain ,
48
- # * domain_parameters_attributes [String, nil] array of parameters (name, value) ,
49
- # * fullname [String, nil] full name describing the domain ,
50
- # * name [String] the full dns domain name ,
42
+ # @option params [Object] id Part of +/api/domains/:id+ path
43
+ # @option params [Hash] domain
44
+ # allowed keys are:
45
+ # * dns_id [String, nil] dns proxy to use within this domain
46
+ # * domain_parameters_attributes [String, nil] array of parameters (name, value)
47
+ # * fullname [String, nil] full name describing the domain
48
+ # * name [String] the full dns domain name
51
49
  #
52
50
  # @param [Hash] headers additional http headers
53
- def update(params = { }, headers = { })
54
- check_params params, :allowed => true, :method => __method__
55
- url, params = fill_params_in_url "/api/domains/:id", params
56
- 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)
57
54
  end
58
55
 
59
56
  # @param [Hash] params a hash of params to be passed to the service
60
57
  # @option params [String] id domain name (no slashes)
61
58
  #
62
59
  # @param [Hash] headers additional http headers
63
- def destroy(params = { }, headers = { })
64
- check_params params, :allowed => true, :method => __method__
65
- url, params = fill_params_in_url "/api/domains/:id", params
66
- 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)
67
63
  end
68
64
 
69
65
  end
@@ -6,27 +6,25 @@ 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 organization identifier
9
10
  # @option params [String] library set true if you want to see only library environment
10
11
  # @option params [String] name filter only environments with this identifier
11
- # @option params [String] organization_id organization identifier
12
12
  #
13
13
  # @param [Hash] headers additional http headers
14
- def index(params = { }, headers = { })
15
- check_params params, :allowed => true, :method => __method__
16
- url, params = fill_params_in_url "/api/organizations/:organization_id/environments", params
17
- 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)
18
17
  end
19
18
 
20
19
  # @param [Hash] params a hash of params to be passed to the service
20
+ # @option params [String] organization_id organization identifier
21
21
  # @option params [String] library set true if you want to see only library environment
22
22
  # @option params [String] name filter only environments with this identifier
23
- # @option params [String] organization_id organization identifier
24
23
  #
25
24
  # @param [Hash] headers additional http headers
26
- def rhsm_index(params = { }, headers = { })
27
- check_params params, :allowed => true, :method => __method__
28
- url, params = fill_params_in_url "/api/owners/:organization_id/environments", params
29
- call(:"get", url, params, headers)
25
+ # @return [Array] First item: parsed data; second item: raw body
26
+ def rhsm_index(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,38 +32,37 @@ module KatelloApi
34
32
  # @option params [String] organization_id organization identifier
35
33
  #
36
34
  # @param [Hash] headers additional http headers
37
- def show(params = { }, headers = { })
38
- check_params params, :allowed => true, :method => __method__
39
- url, params = fill_params_in_url "/api/environments/:id", params
40
- call(:"get", url, params, headers)
35
+ # @return [Array] First item: parsed data; second item: raw body
36
+ def show(params = {}, headers = {})
37
+ perform_call(__method__, params, headers)
41
38
  end
42
39
 
43
40
  # @param [Hash] params a hash of params to be passed to the service
44
- # @option params [Hash] environment
45
- # allowed keys are:
46
- # * description [String, nil],
47
- # * name [String] name of the environment (identifier) ,
48
- # * prior [String] identifier of an environment that is prior the new environment in the chain, it has to be either library or an environment at the end of the chain ,
49
41
  # @option params [String] organization_id organization identifier
42
+ # @option params [Hash] environment
43
+ # allowed keys are:
44
+ # * description [String, nil]
45
+ # * name [String] name of the environment (identifier)
46
+ # * prior [String] identifier of an environment that is prior the new environment in the chain, it has to be either library or an environment at the end of the chain
50
47
  #
51
48
  # @param [Hash] headers additional http headers
52
- def create(params = { }, headers = { })
53
- check_params params, :allowed => true, :method => __method__
54
- url, params = fill_params_in_url "/api/organizations/:organization_id/environments", params
55
- call(:"post", url, params, headers)
49
+ # @return [Array] First item: parsed data; second item: raw body
50
+ def create(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
- # @option params [Hash] environment
60
- # allowed keys are:
61
- # * description [String, nil],
62
- # * name [String] name of the environment (identifier) ,
55
+ # @option params [Object] id Part of +/api/environments/:id+ path
56
+ # @option params [Object] organization_id Part of +/api/organizations/:organization_id/environments/:id+ path
57
+ # @option params [Hash] environment
58
+ # allowed keys are:
59
+ # * description [String, nil]
60
+ # * name [String] name of the environment (identifier)
63
61
  #
64
62
  # @param [Hash] headers additional http headers
65
- def update(params = { }, headers = { })
66
- check_params params, :allowed => true, :method => __method__
67
- url, params = fill_params_in_url "/api/environments/:id", params
68
- call(:"put", url, params, headers)
63
+ # @return [Array] First item: parsed data; second item: raw body
64
+ def update(params = {}, headers = {})
65
+ perform_call(__method__, params, headers)
69
66
  end
70
67
 
71
68
  # @param [Hash] params a hash of params to be passed to the service
@@ -73,32 +70,29 @@ module KatelloApi
73
70
  # @option params [String] organization_id organization identifier
74
71
  #
75
72
  # @param [Hash] headers additional http headers
76
- def destroy(params = { }, headers = { })
77
- check_params params, :allowed => true, :method => __method__
78
- url, params = fill_params_in_url "/api/environments/:id", params
79
- call(:"delete", url, params, headers)
73
+ # @return [Array] First item: parsed data; second item: raw body
74
+ def destroy(params = {}, headers = {})
75
+ perform_call(__method__, params, headers)
80
76
  end
81
77
 
82
78
  # @param [Hash] params a hash of params to be passed to the service
83
79
  # @option params [String] id environment identifier
84
- # @option params [String] include_disabled set to true if you want to see also disabled repositories
85
80
  # @option params [String] organization_id organization identifier
81
+ # @option params [String] include_disabled set to true if you want to see also disabled repositories
86
82
  #
87
83
  # @param [Hash] headers additional http headers
88
- def repositories(params = { }, headers = { })
89
- check_params params, :allowed => true, :method => __method__
90
- url, params = fill_params_in_url "/api/organizations/:organization_id/environments/:id/repositories", params
91
- call(:"get", url, params, headers)
84
+ # @return [Array] First item: parsed data; second item: raw body
85
+ def repositories(params = {}, headers = {})
86
+ perform_call(__method__, params, headers)
92
87
  end
93
88
 
94
89
  # @param [Hash] params a hash of params to be passed to the service
95
90
  # @option params [String] id environment identifier
96
91
  #
97
92
  # @param [Hash] headers additional http headers
98
- def releases(params = { }, headers = { })
99
- check_params params, :allowed => true, :method => __method__
100
- url, params = fill_params_in_url "/api/environments/:id/releases", params
101
- call(:"get", url, params, headers)
93
+ # @return [Array] First item: parsed data; second item: raw body
94
+ def releases(params = {}, headers = {})
95
+ perform_call(__method__, params, headers)
102
96
  end
103
97
 
104
98
  end
@@ -8,24 +8,25 @@ module KatelloApi
8
8
  # @param [Hash] params a hash of params to be passed to the service
9
9
  # @option params [String] environment_id id of environment containing the errata.
10
10
  # @option params [String] product_id the product which contains the errata.
11
+ # @option params [Object] repository_id Part of +/api/repositories/:repository_id/errata+ path
11
12
  # @option params [String] repoid id of repository containing the errata.
12
13
  # @option params [String] severity severity of errata. usually one of: critical, important, moderate, low. case insensitive.
13
14
  # @option params [String] type type of errata. usually one of: security, bugfix, enhancement. case insensitive.
14
15
  #
15
16
  # @param [Hash] headers additional http headers
16
- def index(params = { }, headers = { })
17
- check_params params, :allowed => true, :method => __method__
18
- url, params = fill_params_in_url "/api/errata", params
19
- call(:"get", url, params, headers)
17
+ # @return [Array] First item: parsed data; second item: raw body
18
+ def index(params = {}, headers = {})
19
+ perform_call(__method__, params, headers)
20
20
  end
21
21
 
22
22
  # @param [Hash] params a hash of params to be passed to the service
23
+ # @option params [Object] id Part of +/api/repositories/:repository_id/errata/:id+ path
24
+ # @option params [Object] repository_id Part of +/api/repositories/:repository_id/errata/:id+ path
23
25
  #
24
26
  # @param [Hash] headers additional http headers
25
- def show(params = { }, headers = { })
26
- check_params params, :allowed => false, :method => __method__
27
- url, params = fill_params_in_url "/api/repositories/:repository_id/errata/:id", params
28
- call(:"get", url, params, headers)
27
+ # @return [Array] First item: parsed data; second item: raw body
28
+ def show(params = {}, headers = {})
29
+ perform_call(__method__, params, headers)
29
30
  end
30
31
 
31
32
  end
@@ -6,71 +6,66 @@ 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 identifier of the gpg key
10
9
  # @option params [String] organization_id organization identifier
10
+ # @option params [String] name identifier of the gpg key
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/gpg_keys", 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 gpg key 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/gpg_keys/: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] gpg_key
31
- # allowed keys are:
32
- # * content [String] public key block in der encoding ,
33
- # * name [String] identifier of the gpg key ,
34
28
  # @option params [String] organization_id organization identifier
29
+ # @option params [Hash] gpg_key
30
+ # allowed keys are:
31
+ # * content [String] public key block in der encoding
32
+ # * name [String] identifier of the gpg key
35
33
  #
36
34
  # @param [Hash] headers additional http headers
37
- def create(params = { }, headers = { })
38
- check_params params, :allowed => true, :method => __method__
39
- url, params = fill_params_in_url "/api/organizations/:organization_id/gpg_keys", params
40
- call(:"post", url, params, headers)
35
+ # @return [Array] First item: parsed data; second item: raw body
36
+ def create(params = {}, headers = {})
37
+ perform_call(__method__, params, headers)
41
38
  end
42
39
 
43
40
  # @param [Hash] params a hash of params to be passed to the service
44
- # @option params [Hash] gpg_key
45
- # allowed keys are:
46
- # * content [String] public key block in der encoding ,
47
- # * name [String] identifier of the gpg key ,
41
+ # @option params [Object] id Part of +/api/gpg_keys/:id+ path
42
+ # @option params [Hash] gpg_key
43
+ # allowed keys are:
44
+ # * content [String] public key block in der encoding
45
+ # * name [String] identifier of the gpg key
48
46
  #
49
47
  # @param [Hash] headers additional http headers
50
- def update(params = { }, headers = { })
51
- check_params params, :allowed => true, :method => __method__
52
- url, params = fill_params_in_url "/api/gpg_keys/:id", params
53
- call(:"put", url, params, headers)
48
+ # @return [Array] First item: parsed data; second item: raw body
49
+ def update(params = {}, headers = {})
50
+ perform_call(__method__, params, headers)
54
51
  end
55
52
 
56
53
  # @param [Hash] params a hash of params to be passed to the service
57
54
  # @option params [String] id gpg key numeric identifier
58
55
  #
59
56
  # @param [Hash] headers additional http headers
60
- def destroy(params = { }, headers = { })
61
- check_params params, :allowed => true, :method => __method__
62
- url, params = fill_params_in_url "/api/gpg_keys/:id", params
63
- call(:"delete", url, params, headers)
57
+ # @return [Array] First item: parsed data; second item: raw body
58
+ def destroy(params = {}, headers = {})
59
+ perform_call(__method__, params, headers)
64
60
  end
65
61
 
66
62
  # @param [Hash] params a hash of params to be passed to the service
67
63
  # @option params [String] id gpg key numeric identifier
68
64
  #
69
65
  # @param [Hash] headers additional http headers
70
- def content(params = { }, headers = { })
71
- check_params params, :allowed => true, :method => __method__
72
- url, params = fill_params_in_url "/api/gpg_keys/:id/content", params
73
- call(:"get", url, params, headers)
66
+ # @return [Array] First item: parsed data; second item: raw body
67
+ def content(params = {}, headers = {})
68
+ perform_call(__method__, params, headers)
74
69
  end
75
70
 
76
71
  end
@@ -8,61 +8,56 @@ 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/hardware_models", 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 hardware model 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/hardware_models/: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] hardware_model hardware model info
29
- # allowed keys are:
30
- # * hardware_model [String, nil],
31
- # * info [String, nil],
32
- # * name [String],
33
- # * vendor_class [String, nil],
27
+ # allowed keys are:
28
+ # * hardware_model [String, nil]
29
+ # * info [String, nil]
30
+ # * name [String]
31
+ # * vendor_class [String, nil]
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/hardware_models", 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
40
  # @option params [String] id hardware model name
44
41
  # @option params [Hash] hardware_model hardware model info
45
- # allowed keys are:
46
- # * hardware_model [String, nil],
47
- # * info [String, nil],
48
- # * name [String],
49
- # * vendor_class [String, nil],
42
+ # allowed keys are:
43
+ # * hardware_model [String, nil]
44
+ # * info [String, nil]
45
+ # * name [String]
46
+ # * vendor_class [String, nil]
50
47
  #
51
48
  # @param [Hash] headers additional http headers
52
- def update(params = { }, headers = { })
53
- check_params params, :allowed => true, :method => __method__
54
- url, params = fill_params_in_url "/api/hardware_models/:id", params
55
- call(:"put", url, params, headers)
49
+ # @return [Array] First item: parsed data; second item: raw body
50
+ def update(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 hardware model name
60
56
  #
61
57
  # @param [Hash] headers additional http headers
62
- def destroy(params = { }, headers = { })
63
- check_params params, :allowed => true, :method => __method__
64
- url, params = fill_params_in_url "/api/hardware_models/:id", params
65
- call(:"delete", url, params, headers)
58
+ # @return [Array] First item: parsed data; second item: raw body
59
+ def destroy(params = {}, headers = {})
60
+ perform_call(__method__, params, headers)
66
61
  end
67
62
 
68
63
  end
@@ -6,57 +6,55 @@ 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] description
9
+ # @option params [String] description
10
10
  # @option params [String] label label for filtering
11
11
  # @option params [String] name name for the organization
12
12
  #
13
13
  # @param [Hash] headers additional http headers
14
- def index(params = { }, headers = { })
15
- check_params params, :allowed => true, :method => __method__
16
- url, params = fill_params_in_url "/api/organizations", params
17
- 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)
18
17
  end
19
18
 
20
19
  # @param [Hash] params a hash of params to be passed to the service
20
+ # @option params [Object] id Part of +/api/organizations/:id+ path
21
21
  #
22
22
  # @param [Hash] headers additional http headers
23
- def show(params = { }, headers = { })
24
- check_params params, :allowed => false, :method => __method__
25
- url, params = fill_params_in_url "/api/organizations/:id", params
26
- 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)
27
26
  end
28
27
 
29
28
  # @param [Hash] params a hash of params to be passed to the service
30
- # @option params [String] description
29
+ # @option params [String] description
31
30
  # @option params [String] name name for the organization
32
31
  #
33
32
  # @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/organizations", params
37
- call(:"post", url, params, headers)
33
+ # @return [Array] First item: parsed data; second item: raw body
34
+ def create(params = {}, headers = {})
35
+ perform_call(__method__, params, headers)
38
36
  end
39
37
 
40
38
  # @param [Hash] params a hash of params to be passed to the service
41
- # @option params [Hash] organization
42
- # allowed keys are:
43
- # * description [String],
44
- # * name [String] name for the organization ,
39
+ # @option params [Object] id Part of +/api/organizations/:id+ path
40
+ # @option params [Hash] organization
41
+ # allowed keys are:
42
+ # * description [String]
43
+ # * name [String] name for the organization
45
44
  #
46
45
  # @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/organizations/:id", params
50
- call(:"put", url, params, headers)
46
+ # @return [Array] First item: parsed data; second item: raw body
47
+ def update(params = {}, headers = {})
48
+ perform_call(__method__, params, headers)
51
49
  end
52
50
 
53
51
  # @param [Hash] params a hash of params to be passed to the service
52
+ # @option params [Object] id Part of +/api/organizations/:id+ path
54
53
  #
55
54
  # @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/organizations/:id", params
59
- call(:"delete", url, params, headers)
55
+ # @return [Array] First item: parsed data; second item: raw body
56
+ def destroy(params = {}, headers = {})
57
+ perform_call(__method__, params, headers)
60
58
  end
61
59
 
62
60
  end
@@ -9,10 +9,9 @@ module KatelloApi
9
9
  # @option params [String] repository_id environment numeric identifier
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/repositories/:repository_id/packages", 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
@@ -20,10 +19,9 @@ module KatelloApi
20
19
  # @option params [String] search search expression
21
20
  #
22
21
  # @param [Hash] headers additional http headers
23
- def search(params = { }, headers = { })
24
- check_params params, :allowed => true, :method => __method__
25
- url, params = fill_params_in_url "/api/repositories/:repository_id/packages/search", params
26
- call(:"get", url, params, headers)
22
+ # @return [Array] First item: parsed data; second item: raw body
23
+ def search(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
@@ -31,10 +29,9 @@ module KatelloApi
31
29
  # @option params [String] repository_id environment numeric identifier
32
30
  #
33
31
  # @param [Hash] headers additional http headers
34
- def show(params = { }, headers = { })
35
- check_params params, :allowed => true, :method => __method__
36
- url, params = fill_params_in_url "/api/repositories/:repository_id/packages/:id", params
37
- call(:"get", url, params, headers)
32
+ # @return [Array] First item: parsed data; second item: raw body
33
+ def show(params = {}, headers = {})
34
+ perform_call(__method__, params, headers)
38
35
  end
39
36
 
40
37
  end